diff --git a/build.gradle b/build.gradle index 0b631db..110149a 100644 --- a/build.gradle +++ b/build.gradle @@ -244,7 +244,7 @@ publishing { tareactnativetts(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-tts' - version '4.1.0' + version '4.1.1' artifact("$libsDirName/react-native-tts-release.aar") } @@ -293,7 +293,7 @@ publishing { tatecnaviareactnativebridge(MavenPublication) { groupId 'tecnavia' artifactId 'tecnavia_react-native-bridge' - version '1.3.6' + version '1.3.8' artifact("$libsDirName/tecnavia_react-native-bridge-release.aar") } @@ -480,14 +480,14 @@ dependencies { implementation "tecnavia:react-native-svg:15.7.1" implementation "tecnavia:react-native-tecnavia-utils:1.3.1" implementation "tecnavia:react-native-text-size:3.0.0" - implementation "tecnavia:react-native-tts:4.1.0" + implementation "tecnavia:react-native-tts:4.1.1" implementation "tecnavia:react-native-uuid-generator:6.1.1" implementation "tecnavia:react-native-vector-icons:8.1.0" implementation "tecnavia:react-native-video:5.2.1" implementation "tecnavia:react-native-volume-control:1.0.1" implementation "tecnavia:react-native-webview:12.4.0" implementation "tecnavia:rn-fetch-blob:0.11.2" - api "tecnavia:tecnavia_react-native-bridge:1.3.6" + api "tecnavia:tecnavia_react-native-bridge:1.3.8" implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0" implementation "tecnavia:tecnavia_react-native-dfp:1.5.0" implementation "tecnavia:tecnavia_react-native-geolocation:3.0.1" diff --git a/gradle.properties b/gradle.properties index 5a87249..fdeaae7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ android.useAndroidX=true APP_NAME=Android SDK -APP_VERSION_NAME=3.16.14 -APP_VERSION_CODE=1734693746919 +APP_VERSION_NAME=3.17.02 +APP_VERSION_CODE=1736264169881 ANDROID_APP_ID=com.tecnaviaapplication IS_ADDON=true diff --git a/libs/react-native-tts-release.aar b/libs/react-native-tts-release.aar index 174de1b..a89f187 100644 Binary files a/libs/react-native-tts-release.aar and b/libs/react-native-tts-release.aar differ diff --git a/libs/tecnavia_react-native-bridge-release.aar b/libs/tecnavia_react-native-bridge-release.aar index fea9b8c..3d786fa 100644 Binary files a/libs/tecnavia_react-native-bridge-release.aar and b/libs/tecnavia_react-native-bridge-release.aar differ diff --git a/src/main/assets/index.android.bundle b/src/main/assets/index.android.bundle index 6a4ea7a..9ccb234 100644 --- a/src/main/assets/index.android.bundle +++ b/src/main/assets/index.android.bundle @@ -803,7 +803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1]); _$$_REQUIRE(_dependencyMap[2]); -},0,[1,404,2133]); +},0,[1,404,2123]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47626,7 +47626,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[10]).Logger.initializedLogSession = false; _$$_REQUIRE(_dependencyMap[10]).Logger.logSessionFileName = ""; global.getLocaleConfig().initLocale(); -},404,[3,270,405,1863,1931,1932,1723,627,1724,443,438,1933,1947,1993,2060,2067,1854,2075,1850]); +},404,[3,270,405,1868,1889,1890,1728,630,1729,443,438,1891,1905,1953,2050,2057,1859,2065,1855]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47834,7 +47834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hybrid: 2, hybridLite: 3 }; -},405,[3,270,6,7,406,1723,438,1726,1805,1806,1846,1847,1850,1857,1862]); +},405,[3,270,6,7,406,1728,438,1731,1810,1811,1851,1852,1855,1862,1867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -49010,7 +49010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},406,[3,4,270,6,7,407,434,586,627,856,566,857,668,858,862,863,864,438,588,587,868]); +},406,[3,4,270,6,7,407,434,586,630,859,566,860,671,861,865,866,867,438,588,587,871]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -85495,14 +85495,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + var _Notifications = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _Notifications = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + var _OurNativeBridge = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _OurNativeBridge = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[3])); - - var _RNEventEmitter = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[4])); -},579,[18,3,580,581,585]); + var _RNEventEmitter = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); +},579,[3,580,581,585]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -85517,8 +85515,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - var ActivityStarter = _reactNative.NativeModules.ActivityStarter, - Notifications = _reactNative.NativeModules.Notifications; + var Notifications = _reactNative.NativeModules.Notifications; var Notification = exports.default = function () { function Notification() { @@ -85530,40 +85527,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function isAndroid() { return _reactNative.Platform.OS === "android"; } - }, { - key: "setBadge", - value: function () { - var _setBadge = (0, _asyncToGenerator2.default)(function* (number) { - if (!Notification.isAndroid()) { - return ActivityStarter.setBadge(number); - } - - return Promise.resolve(); - }); - - function setBadge(_x) { - return _setBadge.apply(this, arguments); - } - - return setBadge; - }() - }, { - key: "getBadge", - value: function () { - var _getBadge = (0, _asyncToGenerator2.default)(function* () { - if (!Notification.isAndroid()) { - return ActivityStarter.getBadge(); - } - - return Promise.resolve(); - }); - - function getBadge() { - return _getBadge.apply(this, arguments); - } - - return getBadge; - }() }, { key: "displayNotification", value: function () { @@ -85572,21 +85535,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Notifications.displayNotification(notification); } - var title = notification.title, - body = notification.body, - data = notification.data, - message_id = notification.message_id; - - try { - var pushNotificationIOS = undefined; - } catch (e) { - console.warn(e.message); - } - return Promise.resolve(); }); - function displayNotification(_x2) { + function displayNotification(_x) { return _displayNotification.apply(this, arguments); } @@ -85603,7 +85555,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.resolve(); }); - function createChannel(_x3) { + function createChannel(_x2) { return _createChannel.apply(this, arguments); } @@ -85620,7 +85572,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.resolve(); }); - function removeDeliveredNotification(_x4) { + function removeDeliveredNotification(_x3) { return _removeDeliveredNotification.apply(this, arguments); } @@ -87404,7 +87356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaImage; -},588,[3,33,4,270,589,582,16,18,590,592,593,566,617,438,579,179]); +},588,[3,33,4,270,589,582,16,18,590,592,596,566,620,438,579,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -87609,7 +87561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - var _excluded = ["children", "errorContainerStyle", "indicator", "indicatorContainerStyle", "indicatorProps", "renderError", "renderIndicator", "source", "style", "threshold", "imageStyle"]; + var _excluded = ["children", "errorContainerStyle", "indicator", "indicatorContainerStyle", "indicatorProps", "renderError", "renderIndicator", "source", "style", "threshold"]; function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } @@ -87707,7 +87659,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error: null, loading: false, progress: 0, - thresholdReached: !props.threshold + thresholdReached: !props.threshold, + imageStyle: [_reactNative.StyleSheet.absoluteFill, props.imageStyle] }; return _this; } @@ -87770,8 +87723,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e source = _this$props.source, style = _this$props.style, threshold = _this$props.threshold, - imageStyle = _this$props.imageStyle, props = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var imageStyle = this.state.imageStyle; if (!source || !source.uri) { return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { @@ -87779,7 +87732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: this.handleRef, children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(ImageComponent, Object.assign({}, props, { source: source, - style: [_reactNative.StyleSheet.absoluteFill, imageStyle] + style: imageStyle })), children] }); } @@ -87827,17 +87780,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onLoad: this.handleLoad, onLoadEnd: this.handleLoadEnd, source: source, - style: [_reactNative.StyleSheet.absoluteFill, imageStyle] + style: imageStyle })), indicatorElement, children] }); } }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(props, state) { + var update = null; var sourceKey = getSourceKey(props.source); if (sourceKey !== state.sourceKey) { - return { + update = { sourceKey: sourceKey, error: null, loading: false, @@ -87845,7 +87799,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } - return null; + if (props.imageStyle !== state.imageStyle[1]) { + update = Object.assign({}, update, { + imageStyle: [_reactNative.StyleSheet.absoluteFill, props.imageStyle] + }); + } + + return update; } }]); }(_react.Component), _ImageProgress.propTypes = { @@ -87858,7 +87818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderError: _propTypes.default.func, source: _propTypes.default.any, style: _propTypes.default.any, - imageStyle: _propTypes.default.object, + imageStyle: _propTypes.default.any, threshold: _propTypes.default.number }, _ImageProgress.defaultProps = { indicatorContainerStyle: styles.centered, @@ -87868,7 +87828,73 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = createImageProgress(_reactNative.Image); -},592,[3,4,6,7,11,13,14,16,582,18,179]); +},592,[3,4,6,7,11,13,14,16,593,18,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + { + module.exports = _$$_REQUIRE(_dependencyMap[0])(); + } +},593,[594]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function emptyFunction() {} + + function emptyFunctionWithReset() {} + + emptyFunctionWithReset.resetWarningCache = emptyFunction; + + module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === _$$_REQUIRE(_dependencyMap[0])) { + return; + } + + var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"); + err.name = 'Invariant Violation'; + throw err; + } + + ; + shim.isRequired = shim; + + function getShim() { + return shim; + } + + ; + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; + }; +},594,[595]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + module.exports = ReactPropTypesSecret; +},595,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -87878,7 +87904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _PhotoView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = _PhotoView.default; -},593,[3,594]); +},596,[3,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -88015,7 +88041,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; var PhotoViewAndroid = (0, _reactNative.requireNativeComponent)('PhotoViewAndroid', PhotoView, cfg); -},594,[3,4,6,7,11,13,14,582,16,18,179,595]); +},597,[3,4,6,7,11,13,14,582,16,18,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88049,7 +88075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},595,[596,598,602,613,614,615,603]); +},598,[599,601,605,616,617,618,606]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88076,7 +88102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ColorPropType = colorPropType.bind(null, false); ColorPropType.isRequired = colorPropType.bind(null, true); module.exports = ColorPropType; -},596,[597]); +},599,[600]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88745,7 +88771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = normalizeColor; -},597,[]); +},600,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88757,12 +88783,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},598,[599]); +},601,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { { module.exports = _$$_REQUIRE(_dependencyMap[0])(); } -},599,[600]); +},602,[603]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88817,13 +88843,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; -},600,[601]); +},603,[604]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; module.exports = ReactPropTypesSecret; -},601,[]); +},604,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88858,7 +88884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: _$$_REQUIRE(_dependencyMap[1]).number }); module.exports = DeprecatedImagePropType; -},602,[603,599,598,611,605,612,596]); +},605,[606,602,601,614,608,615,599]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88966,7 +88992,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e testID: _$$_REQUIRE(_dependencyMap[0]).string }); module.exports = DeprecatedViewPropTypes; -},603,[599,604,598,605,607]); +},606,[602,607,601,608,610]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88978,7 +89004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RolePropType: _$$_REQUIRE(_dependencyMap[0]).oneOf(['alert', 'alertdialog', 'application', 'article', 'banner', 'button', 'cell', 'checkbox', 'columnheader', 'combobox', 'complementary', 'contentinfo', 'definition', 'dialog', 'directory', 'document', 'feed', 'figure', 'form', 'grid', 'group', 'heading', 'img', 'link', 'list', 'listitem', 'log', 'main', 'marquee', 'math', 'menu', 'menubar', 'menuitem', 'meter', 'navigation', 'none', 'note', 'option', 'presentation', 'progressbar', 'radio', 'radiogroup', 'region', 'row', 'rowgroup', 'rowheader', 'scrollbar', 'searchbox', 'separator', 'slider', 'spinbutton', 'status', 'summary', 'switch', 'tab', 'table', 'tablist', 'tabpanel', 'term', 'timer', 'toolbar', 'tooltip', 'tree', 'treegrid', 'treeitem']) }; module.exports = DeprecatedViewAccessibility; -},604,[599]); +},607,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89026,7 +89052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},605,[606]); +},608,[609]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89082,7 +89108,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},606,[31]); +},609,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89121,7 +89147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pointerEvents: _$$_REQUIRE(_dependencyMap[3]).oneOf(['auto', 'box-none', 'box-only', 'none']) }); module.exports = DeprecatedViewStylePropTypes; -},607,[608,609,610,599,596]); +},610,[611,612,613,602,599]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89205,7 +89231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e zIndex: _$$_REQUIRE(_dependencyMap[0]).number }; module.exports = DeprecatedLayoutPropTypes; -},608,[599]); +},611,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89219,7 +89245,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},609,[596,599]); +},612,[599,602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89251,7 +89277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })])) }; module.exports = DeprecatedTransformPropTypes; -},610,[599]); +},613,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89270,7 +89296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ImageSourcePropType = _$$_REQUIRE(_dependencyMap[0]).oneOfType([ImageURISourcePropType, _$$_REQUIRE(_dependencyMap[0]).number, _$$_REQUIRE(_dependencyMap[0]).arrayOf(ImageURISourcePropType)]); module.exports = ImageSourcePropType; -},611,[599]); +},614,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89292,7 +89318,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['center', 'contain', 'cover', 'repeat', 'stretch']) }); module.exports = DeprecatedImageStylePropTypes; -},612,[608,609,610,599,596]); +},615,[611,612,613,602,599]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89302,7 +89328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},613,[599]); +},616,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89373,7 +89399,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: _$$_REQUIRE(_dependencyMap[1]).string }); module.exports = DeprecatedTextInputPropTypes; -},614,[603,599,596,615]); +},617,[606,602,599,618]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89428,7 +89454,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textBreakStrategy: _$$_REQUIRE(_dependencyMap[0]).oneOf(['balanced', 'highQuality', 'simple']) }; module.exports = DeprecatedTextPropTypes; -},615,[599,604,598,596,605,616]); +},618,[602,607,601,599,608,619]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89459,7 +89485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},616,[607,596,599]); +},619,[610,599,602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89555,7 +89581,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = TecnaviaImageFilters; -},617,[3,22,4,240,16,618,438,179]); +},620,[3,22,4,240,16,621,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89664,7 +89690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var tritanopia = exports.tritanopia = _rnColorMatrices.default.tritanopia; var vintage = exports.vintage = _rnColorMatrices.default.vintage; var warm = exports.warm = _rnColorMatrices.default.warm; -},618,[619,3,620,622]); +},621,[622,3,623,625]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89694,7 +89720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _invariant.default)(Array.isArray(matrices) && matrices.length > 0, "Matrices should be an array of non zero length."); return matrices.reduce(concatTwoColorMatrices); }; -},619,[3,31]); +},622,[3,31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89904,14 +89930,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return staticFilters.achromatomaly; } }; -},620,[3,33,18,621]); +},623,[3,33,18,624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = clamp; function clamp(value, min, max) { return min < max ? value < min ? min : value > max ? max : value : value < max ? max : value > min ? min : value; } -},621,[]); +},624,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90220,7 +90246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref }, props)); }); -},622,[3,4,16,620,623,179]); +},625,[3,4,16,623,626,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90245,7 +90271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref })); }); -},623,[3,4,16,624,625,179]); +},626,[3,4,16,627,628,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90255,7 +90281,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('CMIFColorMatrixImageFilter'); -},624,[3,183]); +},627,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90280,7 +90306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _tsTinyInvariant.default)((0, _reactNative.processColor)(backgroundColor) !== 0, "ImageFilter: Can't use '" + String(backgroundColor) + "' backgroundColor," + " consider using '#fff0' instead."); } }; -},625,[18,3,626]); +},628,[18,3,629]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90296,7 +90322,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error(prefix); } -},626,[]); +},629,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -91266,7 +91292,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},627,[3,22,4,270,224,33,7,6,628,657,636,662,663,664,665,587,668,434,438,670,812,817]); +},630,[3,22,4,270,224,33,7,6,631,660,639,665,666,667,668,587,671,434,438,673,815,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91281,7 +91307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })(this, function (CryptoJS) { return CryptoJS; }); -},628,[629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661]); +},631,[632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91581,7 +91607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS; }); -},629,[]); +},632,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91645,7 +91671,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS; }); -},630,[629]); +},633,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91696,7 +91722,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.lib.WordArray; }); -},631,[629]); +},634,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91770,7 +91796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.enc.Utf16; }); -},632,[629]); +},635,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91864,7 +91890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.enc.Base64; }); -},633,[629]); +},636,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92049,7 +92075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.MD5; }); -},634,[629]); +},637,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92140,7 +92166,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA1; }); -},635,[629]); +},638,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92274,7 +92300,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA256; }); -},636,[629]); +},639,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92310,7 +92336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA224; }); -},637,[629,636]); +},640,[632,639]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92510,7 +92536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA512; }); -},638,[629,630]); +},641,[632,633]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92547,7 +92573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA384; }); -},639,[629,630,638]); +},642,[632,633,641]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92774,7 +92800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA3; }); -},640,[629,630]); +},643,[632,633]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92952,7 +92978,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RIPEMD160; }); -},641,[629]); +},644,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93021,7 +93047,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); })(); }); -},642,[629]); +},645,[632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93094,7 +93120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.PBKDF2; }); -},643,[629,635,642]); +},646,[632,638,645]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93159,7 +93185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.EvpKDF; }); -},644,[629,635,642]); +},647,[632,638,645]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93482,7 +93508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }(); }); -},645,[629,644]); +},648,[632,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93537,7 +93563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CFB; }); -},646,[629,645]); +},649,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93579,7 +93605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CTR; }); -},647,[629,645]); +},650,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93670,7 +93696,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CTRGladman; }); -},648,[629,645]); +},651,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93710,7 +93736,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.OFB; }); -},649,[629,645]); +},652,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93740,7 +93766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.ECB; }); -},650,[629,645]); +},653,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93770,7 +93796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Ansix923; }); -},651,[629,645]); +},654,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93796,7 +93822,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Iso10126; }); -},652,[629,645]); +},655,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93821,7 +93847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Iso97971; }); -},653,[629,645]); +},656,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93853,7 +93879,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.ZeroPadding; }); -},654,[629,645]); +},657,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93872,7 +93898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.NoPadding; }); -},655,[629,645]); +},658,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93907,7 +93933,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.format.Hex; }); -},656,[629,645]); +},659,[632,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94077,7 +94103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.AES; }); -},657,[629,633,634,644,645]); +},660,[632,636,637,647,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94747,7 +94773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.TripleDES; }); -},658,[629,633,634,644,645]); +},661,[632,636,637,647,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94832,7 +94858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RC4; }); -},659,[629,633,634,644,645]); +},662,[632,636,637,647,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94955,7 +94981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.Rabbit; }); -},660,[629,633,634,644,645]); +},663,[632,636,637,647,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -95073,7 +95099,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RabbitLegacy; }); -},661,[629,633,634,644,645]); +},664,[632,636,637,647,648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95136,7 +95162,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},662,[3,6,7]); +},665,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95315,7 +95341,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},663,[3,6,7,438]); +},666,[3,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95690,7 +95716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},664,[3,6,7,665,668,666]); +},667,[3,6,7,668,671,669]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95978,7 +96004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},665,[3,6,7,662,663,666,667,438]); +},668,[3,6,7,665,666,669,670,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96122,7 +96148,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},666,[3,6,7]); +},669,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96179,7 +96205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},667,[3,6,7]); +},670,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96190,13 +96216,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); var SYMBOL_PAGE_STOP = exports.SYMBOL_PAGE_STOP = "."; var PageType = exports.PageType = { @@ -96414,13 +96440,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "getArticles", value: function getArticles() { - if (this.articles) { + if (!_$$_REQUIRE(_dependencyMap[7]).JSUtils.isEmpty(this.articles) && Array.isArray(this.articles)) { return this.articles.filter(function (article) { return article && !article.isEmpty(); }); } - return this.articles; + return []; } }, { key: "setImages", @@ -96557,7 +96583,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},668,[3,6,7,669,665,587,663,438]); +},671,[3,6,7,666,668,587,672,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96691,7 +96717,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},669,[3,6,7,438]); +},672,[3,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96832,7 +96858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return pages; } -},670,[671,438]); +},673,[674,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96876,7 +96902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = Animated; -},671,[672,3,762,744,763]); +},674,[675,3,765,747,766]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96963,7 +96989,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},672,[673,3,685,739,740,741,742,743,744]); +},675,[676,3,688,742,743,744,745,746,747]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97105,7 +97131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } configureProps(); -},673,[674]); +},676,[677]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97139,7 +97165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(){}"; _f.__workletHash = 16394749715515; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; return _f; }(); @@ -97191,7 +97217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function requestFrame(frame){const{NativeReanimatedModule,pushFrame}=jsThis._closure;{if(NativeReanimatedModule.native){requestAnimationFrame(frame);}else{pushFrame(frame);}}}"; _f.__workletHash = 12115854397223; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; return _f; }(); @@ -97243,7 +97269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(){if(_frameTimestamp){return _frameTimestamp;}if(_eventTimestamp){return _eventTimestamp;}return _getCurrentTime();}"; _f.__workletHash = 7105333655134; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; return _f; }(); } @@ -97268,7 +97294,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function getTimestamp(){const{Platform,NativeReanimatedModule,_getTimestamp}=jsThis._closure;{if(Platform.OS==='web'){return NativeReanimatedModule.getTimestamp();}return _getTimestamp();}}"; _f.__workletHash = 16781279444967; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; return _f; }(); @@ -97336,7 +97362,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function workletValueSetter(value){const{getTimestamp}=jsThis._closure;{var _this=this;const previousAnimation=this._animation;if(previousAnimation){previousAnimation.cancelled=true;this._animation=null;}if(typeof value==='function'||value!==null&&typeof value==='object'&&value.onFrame!==undefined){const animation=typeof value==='function'?value():value;if(this._value===animation.current&&!animation.isHigherOrder){animation.callback&&animation.callback(true);return;}const initializeAnimation=function(timestamp){animation.onStart(animation,_this.value,timestamp,previousAnimation);};initializeAnimation(getTimestamp());const step=function(timestamp){if(animation.cancelled){animation.callback&&animation.callback(false);return;}const finished=animation.onFrame(animation,timestamp);animation.finished=true;animation.timestamp=timestamp;_this._value=animation.current;if(finished){animation.callback&&animation.callback(true);}else{requestAnimationFrame(step);}};this._animation=animation;if(_frameTimestamp){step(_frameTimestamp);}else{requestAnimationFrame(step);}}else{if(this._value===value){return;}this._value=value;}}}"; _f.__workletHash = 16934339415702; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; return _f; }(); @@ -97426,7 +97452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function runOnJS(fun){if(!_WORKLET){return fun;}if(!fun.__callAsync){throw new Error(\"Attempting to call runOnJS with an object that is not a host function. Using runOnJS is only possible with methods that are defined on the main React-Native Javascript thread and that aren't marked as worklets\");}else{return fun.__callAsync;}}"; _f.__workletHash = 6674264901856; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; return _f; }(); @@ -97459,7 +97485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{runOnJS,capturableConsole}=jsThis._closure;{const console={debug:runOnJS(capturableConsole.debug),log:runOnJS(capturableConsole.log),warn:runOnJS(capturableConsole.warn),error:runOnJS(capturableConsole.error),info:runOnJS(capturableConsole.info)};_setGlobalConsole(console);}}"; _f.__workletHash = 12797137083328; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; return _f; }())(); } @@ -97495,7 +97521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function jestResetJsReanimatedModule() { _NativeReanimated.default.jestResetModule(); } -},674,[3,675,18,681]); +},677,[3,678,18,684]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97513,7 +97539,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = exportedModule; -},675,[3,676,681,682]); +},678,[3,679,684,685]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97569,7 +97595,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = reanimatedJS; -},676,[3,33,677]); +},679,[3,33,680]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97749,7 +97775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function unsubscribeFromKeyboardEvents(_) {} }]); }(_$$_REQUIRE(_dependencyMap[11]).NativeReanimated); -},677,[3,22,6,7,11,13,14,678,679,680,681,682]); +},680,[3,22,6,7,11,13,14,681,682,683,684,685]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97897,7 +97923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.mapper = mapper; this.children = children; }); -},678,[3,33,22,6,7]); +},681,[3,33,22,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97965,7 +97991,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); Mapper.MAPPER_ID = 1; -},679,[3,6,7,680]); +},682,[3,6,7,683]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98017,7 +98043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); MutableValue.MUTABLE_ID = 1; -},680,[3,6,7]); +},683,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98049,7 +98075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function nativeShouldBeMock() { return isJest() || isChromeDebugger(); } -},681,[18]); +},684,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98162,7 +98188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},682,[3,6,7,18,683]); +},685,[3,6,7,18,686]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98201,7 +98227,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e console.error("[Reanimated] Mismatch between JavaScript part and native part of Reanimated (" + _$$_REQUIRE(_dependencyMap[2]).version + " vs. " + cppVersion + "). Did you forget to re-build the app after upgrading react-native-reanimated? If you use Expo Go, you must downgrade to " + cppVersion + " which is bundled into Expo SDK."); } } -},683,[3,33,684]); +},686,[3,33,687]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "@react-native-community/bob": { @@ -98215,7 +98241,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "_args": [ [ "react-native-reanimated@2.17.0", - "/Users/ipaddev/sdk/3.16.14.rc" + "/Users/ipaddev/sdk/3.17.02.rc" ] ], "_from": "react-native-reanimated@2.17.0", @@ -98239,7 +98265,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ], "_resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.17.0.tgz", "_spec": "2.17.0", - "_where": "/Users/ipaddev/sdk/3.16.14.rc", + "_where": "/Users/ipaddev/sdk/3.17.02.rc", "author": { "name": "Krzysztof Magiera", "email": "krzys.magiera@gmail.com" @@ -98399,7 +98425,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "version": "2.17.0" } ; -},684,[]); +},687,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98586,7 +98612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{tag,config}=jsThis._closure;{global.LayoutAnimationRepository.registerConfig(tag,config);}}"; _f.__workletHash = 5455589887771; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; return _f; }())(); } @@ -98998,7 +99024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); }); } -},685,[3,6,7,11,13,14,16,18,686,689,690,691,708,709,710,31,681,674,726,727,731,673,732,179]); +},688,[3,6,7,11,13,14,16,18,689,692,693,694,711,712,713,31,684,677,729,730,734,676,735,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99010,7 +99036,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[2]); var _default = exports.default = new _reactNative.NativeEventEmitter(_ReanimatedModule.default); -},686,[3,687,18]); +},689,[3,690,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99031,7 +99057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = exportedModule; -},687,[18,3,688,681]); +},690,[18,3,691,684]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99143,7 +99169,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return animateNextTransition; }() }; -},688,[3,270]); +},691,[3,270]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99308,7 +99334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedEvent(argMapping, config) { return new AnimatedEvent(argMapping, config); } -},689,[3,6,7,11,13,14,18,687,690,691,31,707,706]); +},692,[3,6,7,11,13,14,18,690,693,694,31,710,709]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99579,7 +99605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},690,[3,6,7,687,18]); +},693,[3,6,7,690,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99642,7 +99668,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_InternalAnimatedValue.default); -},691,[3,6,7,11,13,14,692,697,18,687,694,703,705]); +},694,[3,6,7,11,13,14,695,700,18,690,697,706,708]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99752,7 +99778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return output; } -},692,[3,33,31,690,693,700,702]); +},695,[3,33,31,693,696,703,705]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99836,7 +99862,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[11]).createAnimatedCallFunc)(func, args, params); }; } -},693,[3,63,6,7,11,13,14,690,31,694,695,698]); +},696,[3,63,6,7,11,13,14,693,31,697,698,701]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99846,7 +99872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function val(v) { return v && v.__getValue ? v.__getValue() : v || 0; } -},694,[]); +},697,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99972,7 +99998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedParam() { return new AnimatedParam(); } -},695,[3,6,7,11,13,14,31,690,696,694]); +},698,[3,6,7,11,13,14,31,693,699,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100114,7 +100140,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_AnimatedNode2.default); -},696,[3,6,7,11,85,13,14,697,690,694]); +},699,[3,6,7,11,85,13,14,700,693,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100243,7 +100269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_AnimatedNode2.default); -},697,[3,6,7,11,85,13,14,690,687,31,694]); +},700,[3,6,7,11,85,13,14,693,690,31,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100341,7 +100367,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[10]).adapt)(p); }), params); } -},698,[3,22,6,7,11,13,14,690,31,694,699]); +},701,[3,22,6,7,11,13,14,693,31,697,702]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100426,7 +100452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return adapt(node); })) : nodify(v); } -},699,[3,6,7,11,13,14,31,690,697,694]); +},702,[3,6,7,11,13,14,31,693,700,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100494,7 +100520,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var max = exports.max = _$$_REQUIRE(_dependencyMap[0]).createAnimatedOperator('max'); var min = exports.min = _$$_REQUIRE(_dependencyMap[0]).createAnimatedOperator('min'); -},700,[701]); +},703,[704]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100690,7 +100716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return new AnimatedOperator(name, args.map(_$$_REQUIRE(_dependencyMap[9]).adapt)); }; } -},701,[3,6,7,11,13,14,690,31,694,699]); +},704,[3,6,7,11,13,14,693,31,697,702]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100756,7 +100782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedCond(cond, ifBlock, elseBlock) { return new AnimatedCond((0, _$$_REQUIRE(_dependencyMap[9]).adapt)(cond), (0, _$$_REQUIRE(_dependencyMap[9]).adapt)(ifBlock), elseBlock === undefined ? undefined : (0, _$$_REQUIRE(_dependencyMap[9]).adapt)(elseBlock)); } -},702,[3,6,7,11,13,14,31,690,694,699]); +},705,[3,6,7,11,13,14,31,693,697,702]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100791,7 +100817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alwaysNode.__attach(); } } -},703,[3,697,702,704,705,706]); +},706,[3,700,705,707,708,709]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100884,7 +100910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedCall(args, func) { return new AnimatedCall(args, func); } -},704,[3,6,7,11,85,13,14,31,686,690,694]); +},707,[3,6,7,11,85,13,14,31,689,693,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100948,7 +100974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedSet(what, value) { return new AnimatedSet(what, (0, _$$_REQUIRE(_dependencyMap[9]).adapt)(value)); } -},705,[3,6,7,11,13,14,690,31,694,699]); +},708,[3,6,7,11,13,14,693,31,697,702]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101010,7 +101036,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedAlways(item) { return new AnimatedAlways(item); } -},706,[3,6,7,11,13,14,690,31,694]); +},709,[3,6,7,11,13,14,693,31,697]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101078,7 +101104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return nodesMap; } -},707,[]); +},710,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101148,7 +101174,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},708,[3,6,7,675]); +},711,[3,6,7,678]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101171,7 +101197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = setAndForwardRef; -},709,[]); +},712,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (0, _$$_REQUIRE(_dependencyMap[0]).runOnUI)(function () { var _f = function _f() { @@ -101258,10 +101284,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{ColorProperties,processColor,withStyleAnimation}=jsThis._closure;{const configs=Object.create(null);const enteringAnimationForTag={};global.LayoutAnimationRepository={configs:configs,registerConfig:function(tag,config){configs[tag]=config;enteringAnimationForTag[tag]=null;},removeConfig:function(tag){delete configs[tag];delete enteringAnimationForTag[tag];},startAnimationForTag:function(tag,type,yogaValues){if(configs[tag]==null){return;}const style=configs[tag][type](yogaValues);let currentAnimation=style.animations;if(type==='entering'){enteringAnimationForTag[tag]=style;}else if(type==='layout'&&enteringAnimationForTag[tag]!==null){const entryAniamtion=enteringAnimationForTag[tag].animations;const layoutAnimation=style.animations;currentAnimation={};for(const key in entryAniamtion){currentAnimation[key]=entryAniamtion[key];}for(const key in layoutAnimation){currentAnimation[key]=layoutAnimation[key];}}const sv=configs[tag].sv;_stopObservingProgress(tag,false);_startObservingProgress(tag,sv);const backupColor={};for(const key in style.initialValues){if(ColorProperties.includes(key)){const value=style.initialValues[key];backupColor[key]=value;style.initialValues[key]=processColor(value);}}sv.value=Object.assign({},sv._value,style.initialValues);_stopObservingProgress(tag,false);const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){_stopObservingProgress(tag,finished);}style.callback&&style.callback(finished);};if(backupColor){configs[tag].sv._value={...configs[tag].sv.value,...backupColor};}configs[tag].sv.value=animation;_startObservingProgress(tag,sv);}};}}"; _f.__workletHash = 10033167792218; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; return _f; }())(); -},710,[674,711,712,713]); +},713,[677,714,715,716]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101286,7 +101312,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(_,updates,maybeViewRef){const{_updatePropsJS}=jsThis._closure;{if(maybeViewRef){maybeViewRef.items.forEach(function(item,_){_updatePropsJS(updates,item);});}}}"; _f.__workletHash = 2597780801718; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; return _f; }(); } else { @@ -101309,7 +101335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(viewDescriptors,updates,_){const{ColorProperties,processColor}=jsThis._closure;{for(const key in updates){if(ColorProperties.indexOf(key)!==-1){updates[key]=processColor(updates[key]);}}viewDescriptors.value.forEach(function(viewDescriptor){_updateProps(viewDescriptor.tag,viewDescriptor.name||'RCTView',updates);});}}"; _f.__workletHash = 5208286904059; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; return _f; }(); } @@ -101325,7 +101351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = updateProps; -},711,[674,681,676,712]); +},714,[677,684,679,715]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101349,7 +101375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function call(...args){return'\\\\(\\\\s*('+args.join(')\\\\s*,\\\\s*(')+')\\\\s*\\\\)';}"; _f.__workletHash = 17112204286815; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; return _f; }(); @@ -101383,7 +101409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function getMatchers(){const{uiCachedMatchers,jsCachedMatchers,call,NUMBER,PERCENTAGE}=jsThis._closure;{const cachedMatchers=_WORKLET?uiCachedMatchers:jsCachedMatchers;if(cachedMatchers.rgb===undefined){cachedMatchers.rgb=new RegExp('rgb'+call(NUMBER,NUMBER,NUMBER));cachedMatchers.rgba=new RegExp('rgba'+call(NUMBER,NUMBER,NUMBER,NUMBER));cachedMatchers.hsl=new RegExp('hsl'+call(NUMBER,PERCENTAGE,PERCENTAGE));cachedMatchers.hsla=new RegExp('hsla'+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER));cachedMatchers.hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;cachedMatchers.hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;cachedMatchers.hex6=/^#([0-9a-fA-F]{6})$/;cachedMatchers.hex8=/^#([0-9a-fA-F]{8})$/;}return cachedMatchers;}}"; _f.__workletHash = 11728480460328; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; return _f; }(); @@ -101417,7 +101443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function hue2rgb(p,q,t){if(t<0){t+=1;}if(t>1){t-=1;}if(t<1/6){return p+(q-p)*6*t;}if(t<1/2){return q;}if(t<2/3){return p+(q-p)*(2/3-t)*6;}return p;}"; _f.__workletHash = 3618366985414; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; return _f; }(); @@ -101436,7 +101462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function hslToRgb(h,s,l){const{hue2rgb}=jsThis._closure;{const q=l<0.5?l*(1+s):l+s-l*s;const p=2*l-q;const r=hue2rgb(p,q,h+1/3);const g=hue2rgb(p,q,h);const b=hue2rgb(p,q,h-1/3);return Math.round(r*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8;}}"; _f.__workletHash = 4500055963175; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; return _f; }(); @@ -101458,7 +101484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse255(str){const int=Number.parseInt(str,10);if(int<0){return 0;}if(int>255){return 255;}return int;}"; _f.__workletHash = 7024550667346; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; return _f; }(); @@ -101471,7 +101497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse360(str){const int=Number.parseFloat(str);return(int%360+360)%360/360;}"; _f.__workletHash = 6683812623228; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; return _f; }(); @@ -101493,7 +101519,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse1(str){const num=Number.parseFloat(str);if(num<0){return 0;}if(num>1){return 255;}return Math.round(num*255);}"; _f.__workletHash = 7197247664793; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; return _f; }(); @@ -101515,7 +101541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parsePercentage(str){const int=Number.parseFloat(str);if(int<0){return 0;}if(int>100){return 1;}return int/100;}"; _f.__workletHash = 8813932430184; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; return _f; }(); @@ -101741,7 +101767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function normalizeColor(color){const{getMatchers,names,parse255,parse1,hslToRgb,parse360,parsePercentage}=jsThis._closure;{var _matchers$hex,_matchers$rgb,_matchers$rgba,_matchers$hex2,_matchers$hex3,_matchers$hex4,_matchers$hsl,_matchers$hsla;if(typeof color==='number'){if(color>>>0===color&&color>=0&&color<=0xffffffff){return color;}return null;}if(typeof color!=='string'){return null;}const matchers=getMatchers();let match;if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex=matchers.hex6)===null||_matchers$hex===void 0?void 0:_matchers$hex.exec(color)){return Number.parseInt(match[1]+'ff',16)>>>0;}if(names[color]!==undefined){return names[color];}if(match=matchers===null||matchers===void 0?void 0:(_matchers$rgb=matchers.rgb)===null||_matchers$rgb===void 0?void 0:_matchers$rgb.exec(color)){return(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|0x000000ff)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$rgba=matchers.rgba)===null||_matchers$rgba===void 0?void 0:_matchers$rgba.exec(color)){return(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|parse1(match[4]))>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex2=matchers.hex3)===null||_matchers$hex2===void 0?void 0:_matchers$hex2.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+'ff',16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex3=matchers.hex8)===null||_matchers$hex3===void 0?void 0:_matchers$hex3.exec(color)){return Number.parseInt(match[1],16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex4=matchers.hex4)===null||_matchers$hex4===void 0?void 0:_matchers$hex4.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hsl=matchers.hsl)===null||_matchers$hsl===void 0?void 0:_matchers$hsl.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hsla=matchers.hsla)===null||_matchers$hsla===void 0?void 0:_matchers$hsla.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|parse1(match[4]))>>>0;}return null;}}"; _f.__workletHash = 10755688444334; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; return _f; }(); @@ -101753,7 +101779,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return(c>>24&255)/255;}"; _f.__workletHash = 14708696455524; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; return _f; }(); @@ -101765,7 +101791,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c>>16&255;}"; _f.__workletHash = 12808130152281; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; return _f; }(); @@ -101777,7 +101803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c>>8&255;}"; _f.__workletHash = 3499836539046; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; return _f; }(); @@ -101789,7 +101815,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c&255;}"; _f.__workletHash = 14770248723134; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; return _f; }(); @@ -101817,7 +101843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(r,g,b,alpha=1){const{Platform}=jsThis._closure;{if(Platform.OS==='web'||!_WORKLET){return\"rgba(\"+r+\", \"+g+\", \"+b+\", \"+alpha+\")\";}const c=Math.round(alpha*255)*(1<<24)+Math.round(r)*(1<<16)+Math.round(g)*(1<<8)+Math.round(b);if(Platform.OS==='android'){return c<1<<31>>>0?c:c-4294967296;}return c;}}"; _f.__workletHash = 3685267134575; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; return _f; }(); @@ -101868,7 +101894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function RGBtoHSV(r,g,b){if(arguments.length===1){g=r.g;b=r.b;r=r.r;}const max=Math.max(r,g,b);const min=Math.min(r,g,b);const d=max-min;const s=max===0?0:d/max;const v=max/255;let h;switch(max){default:case min:h=0;break;case r:h=g-b+d*(g0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}}"; _f.__workletHash = 16217306184372; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; return _f; }()); }; @@ -102324,10 +102350,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withStyleAnimation(styleAnimations){const{defineAnimation,ColorProperties,processColor,setPath,resolvePath,withTiming}=jsThis._closure;{return defineAnimation({},function(){'worklet';const onFrame=function(animation,now){let stillGoing=false;const entriesToCheck=[{value:animation.styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};});}}"; _f.__workletHash = 5859144058646; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; return _f; }(); -},713,[714,711,712,715]); +},716,[717,714,715,718]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102376,7 +102402,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function recognizePrefixSuffix(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw Error(\"Couldn't parse animation value. Check if there isn't any typo.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}"; _f.__workletHash = 10298453511432; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; return _f; }(); @@ -102529,7 +102555,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function decorateAnimation(animation){const{recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,rgbaArrayToRGBAColor,toGammaSpace}=jsThis._closure;{if(animation.isHigherOrder){return;}const baseOnStart=animation.onStart;const baseOnFrame=animation.onFrame;const animationCopy=Object.assign({},animation);delete animationCopy.callback;const prefNumberSuffOnStart=function(animation,value,timestamp,previousAnimation){var _animation$__prefix,_animation$__suffix;const{prefix:prefix,suffix:suffix,strippedValue:strippedValue}=recognizePrefixSuffix(value);animation.__prefix=prefix;animation.__suffix=suffix;animation.strippedCurrent=strippedValue;const{strippedValue:strippedToValue}=recognizePrefixSuffix(animation.toValue);animation.current=strippedValue;animation.startValue=strippedValue;animation.toValue=strippedToValue;if(previousAnimation&&previousAnimation!==animation){const{prefix:paPrefix,suffix:paSuffix,strippedValue:paStrippedValue}=recognizePrefixSuffix(previousAnimation.current);previousAnimation.current=paStrippedValue;previousAnimation.__prefix=paPrefix;previousAnimation.__suffix=paSuffix;}baseOnStart(animation,strippedValue,timestamp,previousAnimation);animation.current=((_animation$__prefix=animation.__prefix)!==null&&_animation$__prefix!==void 0?_animation$__prefix:'')+animation.current+((_animation$__suffix=animation.__suffix)!==null&&_animation$__suffix!==void 0?_animation$__suffix:'');if(previousAnimation&&previousAnimation!==animation){var _previousAnimation$__,_previousAnimation$__2;previousAnimation.current=((_previousAnimation$__=previousAnimation.__prefix)!==null&&_previousAnimation$__!==void 0?_previousAnimation$__:'')+previousAnimation.current+((_previousAnimation$__2=previousAnimation.__suffix)!==null&&_previousAnimation$__2!==void 0?_previousAnimation$__2:'');}};const prefNumberSuffOnFrame=function(animation,timestamp){var _animation$__prefix2,_animation$__suffix2;animation.current=animation.strippedCurrent;const res=baseOnFrame(animation,timestamp);animation.strippedCurrent=animation.current;animation.current=((_animation$__prefix2=animation.__prefix)!==null&&_animation$__prefix2!==void 0?_animation$__prefix2:'')+animation.current+((_animation$__suffix2=animation.__suffix)!==null&&_animation$__suffix2!==void 0?_animation$__suffix2:'');return res;};const tab=['R','G','B','A'];const colorOnStart=function(animation,value,timestamp,previousAnimation){let RGBAValue;let RGBACurrent;let RGBAToValue;const res=[];if(isColor(value)){RGBACurrent=toLinearSpace(convertToRGBA(animation.current));RGBAValue=toLinearSpace(convertToRGBA(value));if(animation.toValue){RGBAToValue=toLinearSpace(convertToRGBA(animation.toValue));}}tab.forEach(function(i,index){animation[i]=Object.assign({},animationCopy);animation[i].current=RGBACurrent[index];animation[i].toValue=RGBAToValue?RGBAToValue[index]:undefined;animation[i].onStart(animation[i],RGBAValue[index],timestamp,previousAnimation?previousAnimation[i]:undefined);res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const RGBACurrent=toLinearSpace(convertToRGBA(animation.current));const res=[];let finished=true;tab.forEach(function(i,index){animation[i].current=RGBACurrent[index];finished&=animation[i].onFrame(animation[i],timestamp);res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));return finished;};const arrayOnStart=function(animation,value,timestamp,previousAnimation){value.forEach(function(v,i){animation[i]=Object.assign({},animationCopy);animation[i].current=v;animation[i].toValue=animation.toValue[i];animation[i].onStart(animation[i],v,timestamp,previousAnimation?previousAnimation[i]:undefined);});animation.current=value;};const arrayOnFrame=function(animation,timestamp){let finished=true;animation.current.forEach(function(v,i){finished&=animation[i].onFrame(animation[i],timestamp);animation.current[i]=animation[i].current;});return finished;};animation.onStart=function(animation,value,timestamp,previousAnimation){if(isColor(value)){colorOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=colorOnFrame;return;}else if(Array.isArray(value)){arrayOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=arrayOnFrame;return;}else if(typeof value==='string'){prefNumberSuffOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=prefNumberSuffOnFrame;return;}baseOnStart(animation,value,timestamp,previousAnimation);};}}"; _f.__workletHash = 7767808760058; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; return _f; }(); @@ -102552,7 +102578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{factory,decorateAnimation}=jsThis._closure;{const animation=factory();decorateAnimation(animation);return animation;}}"; _f.__workletHash = 2441595458132; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; return _f; }(); @@ -102572,7 +102598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function defineAnimation(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,NativeReanimatedModule}=jsThis._closure;{if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||!NativeReanimatedModule.native){return create();}return create;}}"; _f.__workletHash = 4939784890886; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; return _f; }(); @@ -102584,7 +102610,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function cancelAnimation(sharedValue){sharedValue.value=sharedValue.value;}"; _f.__workletHash = 15056882569526; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; return _f; }(); @@ -102606,7 +102632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{animation,startValue}=jsThis._closure;{if(!_WORKLET&&typeof animation==='function'){animation=animation();}animation.current=startValue;return animation;}}"; _f.__workletHash = 5374403234008; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; return _f; }()); }; @@ -102616,10 +102642,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withStartValue(startValue,animation){const{defineAnimation}=jsThis._closure;{return defineAnimation(startValue,function(){'worklet';if(!_WORKLET&&typeof animation==='function'){animation=animation();}animation.current=startValue;return animation;});}}"; _f.__workletHash = 5100017907325; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; return _f; }(); -},714,[3,675,712]); +},717,[3,678,715]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102703,7 +102729,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{Easing,userConfig,toValue,callback}=jsThis._closure;{const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback};}}"; _f.__workletHash = 7771814081277; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; return _f; }()); }; @@ -102717,10 +102743,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withTiming(toValue,userConfig,callback){const{defineAnimation,Easing}=jsThis._closure;{return defineAnimation(toValue,function(){'worklet';const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback};});}}"; _f.__workletHash = 2875714024024; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; return _f; }(); -},715,[714,716]); +},718,[717,719]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102737,7 +102763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function linear(t){return t;}"; _f.__workletHash = 7988822508142; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; return _f; }(); @@ -102751,7 +102777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function ease(t){const{Bezier}=jsThis._closure;{return Bezier(0.42,0,1,1)(t);}}"; _f.__workletHash = 13039945852153; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; return _f; }(); @@ -102763,7 +102789,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function quad(t){return t*t;}"; _f.__workletHash = 8628631460172; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; return _f; }(); @@ -102775,7 +102801,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function cubic(t){return t*t*t;}"; _f.__workletHash = 9374441307661; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; return _f; }(); @@ -102791,7 +102817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{n}=jsThis._closure;{return Math.pow(t,n);}}"; _f.__workletHash = 1121339919789; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; return _f; }(); }; @@ -102799,7 +102825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function poly(n){return function(t){'worklet';return Math.pow(t,n);};}"; _f.__workletHash = 16553371555377; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; return _f; }(); @@ -102811,7 +102837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function sin(t){return 1-Math.cos(t*Math.PI/2);}"; _f.__workletHash = 8621899987563; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; return _f; }(); @@ -102823,7 +102849,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function circle(t){return 1-Math.sqrt(1-t*t);}"; _f.__workletHash = 15893365817828; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; return _f; }(); @@ -102835,7 +102861,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function exp(t){return Math.pow(2,10*(t-1));}"; _f.__workletHash = 15907471981377; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; return _f; }(); @@ -102853,7 +102879,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{p}=jsThis._closure;{return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);}}"; _f.__workletHash = 8897284077766; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; return _f; }(); }; @@ -102861,7 +102887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function elastic(bounciness=1){const p=bounciness*Math.PI;return function(t){'worklet';return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);};}"; _f.__workletHash = 15898989302935; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; return _f; }(); @@ -102878,7 +102904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{s}=jsThis._closure;{return t*t*((s+1)*t-s);}}"; _f.__workletHash = 9334724225624; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; return _f; }(); }; @@ -102886,7 +102912,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function back(s=1.70158){return function(t){'worklet';return t*t*((s+1)*t-s);};}"; _f.__workletHash = 2360128598492; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; return _f; }(); @@ -102915,7 +102941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function bounce(t){if(t<1/2.75){return 7.5625*t*t;}if(t<2/2.75){const t2=t-1.5/2.75;return 7.5625*t2*t2+0.75;}if(t<2.5/2.75){const t2=t-2.25/2.75;return 7.5625*t2*t2+0.9375;}const t2=t-2.625/2.75;return 7.5625*t2*t2+0.984375;}"; _f.__workletHash = 5721637210615; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; return _f; }(); @@ -102936,7 +102962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{Bezier,x1,y1,x2,y2}=jsThis._closure;{return Bezier(x1,y1,x2,y2);}}"; _f.__workletHash = 4879686787739; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; return _f; }() }; @@ -102947,7 +102973,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function bezier(x1,y1,x2,y2){const{Bezier}=jsThis._closure;{return{factory:function(){'worklet';return Bezier(x1,y1,x2,y2);}};}}"; _f.__workletHash = 853527302262; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; return _f; }(); @@ -102961,7 +102987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function bezierFn(x1,y1,x2,y2){const{Bezier}=jsThis._closure;{return Bezier(x1,y1,x2,y2);}}"; _f.__workletHash = 15185855900453; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; return _f; }(); @@ -102973,7 +102999,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function in_(easing){return easing;}"; _f.__workletHash = 1837493474379; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; return _f; }(); @@ -102989,7 +103015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{easing}=jsThis._closure;{return 1-easing(1-t);}}"; _f.__workletHash = 5726884014519; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; return _f; }(); }; @@ -102997,7 +103023,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function out(easing){return function(t){'worklet';return 1-easing(1-t);};}"; _f.__workletHash = 7718549646703; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; return _f; }(); @@ -103017,7 +103043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{easing}=jsThis._closure;{if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;}}"; _f.__workletHash = 2325007799982; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; return _f; }(); }; @@ -103025,7 +103051,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function inOut(easing){return function(t){'worklet';if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;};}"; _f.__workletHash = 7048715165105; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; return _f; }(); @@ -103085,7 +103111,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function checkIfReaOne(){const{prevArgs,EasingNode,workletName,worklet,createChecker}=jsThis._closure;{if(arguments&&!_WORKLET){for(let i=0;i2){if(x>input[length-1]){narrowedInput.leftEdgeInput=input[length-2];narrowedInput.rightEdgeInput=input[length-1];narrowedInput.leftEdgeOutput=output[length-2];narrowedInput.rightEdgeOutput=output[length-1];}else{for(let i=1;i 0 && arguments[0] !== undefined ? arguments[0] : {}; - var defaultCustomDimensions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; yield (0, _get2.default)((0, _getPrototypeOf2.default)(MatomoConfig.prototype), "init", this).call(this, json); var _this$getStorageKeys = this.getStorageKeys(), @@ -129097,7 +129107,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.rssSiteId = (yield this.getValue(rss_site_id)) || ""; this.baseURL = (yield this.getValue(base_url)) || ""; this.visitCustomDimensions = (yield this.getValue(visit_custom_dimensions)) || ""; - this.customDimensions = (yield this.getValue(custom_dimensions)) || defaultCustomDimensions; + this.customDimensions = (yield this.getValue(custom_dimensions)) || DEFAULT_CUSTOM_DIMENSIONS; this.dispatchInterval = parseFloat((yield this.getValue(dispatch_interval)) || "30.0"); return true; }); @@ -129110,7 +129120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},874,[3,270,6,7,11,85,13,14,865,872]); +},877,[3,270,6,7,11,85,13,14,868,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129204,7 +129214,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},875,[3,270,11,85,13,14,7,6,865,438,872]); +},878,[3,270,11,85,13,14,7,6,868,438,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129267,7 +129277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},876,[3,270,6,7,11,85,13,14,865,872]); +},879,[3,270,6,7,11,85,13,14,868,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129377,7 +129387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},877,[3,270,6,7,11,85,13,14,865,872]); +},880,[3,270,6,7,11,85,13,14,868,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129449,7 +129459,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GO_BACK: "backButtonClicked", ALERT: "alert", CONFIRM: "confirm", - SET_RN_DEMO: "setRnDemo", OPEN_RSS: "xc_openRSSReader", GET_USED_SPACE: "getIssuesUsedSpace", CLOSE_WINDOW: "closeWindow", @@ -129816,61 +129825,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},878,[3,4,6,7,434,879,438]); +},881,[3,4,6,7,434,882,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var Dfp = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var IubendaCMP = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + var _OptionalPackages$mod16; - var IOSNewsmemorySDK = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - - var WebAnalytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var NativeOptionsPage = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - var BlueConic; - var PushNotificationIOS; - var AdMob; - var ChartBeat; - var Push; - var DailyMotionPlayer; - var IOSExternalLinkAccount; - var FirebaseAnalytics; - var FirebaseCrashlytics; - var IOSClassicEPaper; - var Osano; - var ScreenshotPrevent; - var MatomoTracker; - var AdobeAnalytics; - var Baronweather; - var Comscore; - var FacebookSDK; - var GoogleAnalytics3; - var RNHTMLtoPDF; - var RNIap; - var Maps; - var MatherAnalytics; - var Matomo; - var Nativo; - var OneSignal; - var Prebid; - var PushNotification; - var IOSTrackingTransparency; - var ViafouraWebView; - var Voice; + var DEPENDENCIES = { + AdMob: "@tecnavia/react-native-admob", + AdobeAnalytics: "react-native-adbmobile", + Baronweather: "react-native-baronweather", + BlueConic: "@blueconic/blueconic-react-native", + ChartBeat: "@tecnavia/react-native-chartbeat", + Comscore: "react-native-comscore", + DailyMotionPlayer: "@tecnavia/react-native-dailymotion-sdk", + Dfp: "@tecnavia/react-native-dfp", + FacebookSDK: "react-native-fbsdk-next", + FirebaseAnalytics: "@tecnavia/react-native-firebase-analytics", + FirebaseCrashlytics: "@tecnavia/react-native-firebase-crashlytics", + IOSExternalLinkAccount: "@tecnavia/react-native-external-link-account", + IOSNewsmemorySDK: "@tecnavia/react-native-newsmemory-pod", + IOSTrackingTransparency: "react-native-tracking-transparency", + IubendaCMP: "@tecnavia/react-native-iubenda-web", + Maps: "react-native-maps", + Matomo: "react-native-matomo", + MatomoTracker: "matomo-tracker-react-native", + MatherAnalytics: "react-native-mather-analytics", + NativeOptionsPage: "rn-options-page", + Nativo: "react-native-nativo-ads", + OneSignal: "react-native-onesignal", + Osano: "@tecnavia/react-native-osano-web", + Prebid: "react-native-prebid", + Push: "@tecnavia/react-native-cloud-messaging", + PushNotification: "react-native-push-notification", + PushNotificationIOS: "@react-native-community/push-notification-ios", + RNHTMLtoPDF: "react-native-html-to-pdf", + RNIap: "react-native-iap", + ScreenshotPrevent: "@tecnavia/react-native-screenshot-prevent", + ViafouraWebView: "react-native-viafoura", + Voice: "react-native-voice", + WebAnalytics: "@tecnavia/react-native-web-analytics" + }; var OptionalPackages = exports.default = function () { function OptionalPackages() { @@ -129880,430 +129884,808 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(OptionalPackages, null, [{ key: "getTrackingTransparency", value: function getTrackingTransparency() { - return OptionalPackages.isTrackingTransparencyAvailable() ? { - getTrackingStatus: IOSTrackingTransparency.getTrackingStatus, - requestTrackingPermission: IOSTrackingTransparency.requestTrackingPermission - } : {}; + if (!OptionalPackages.isTrackingTransparencyAvailable()) { + return {}; + } + + var _OptionalPackages$mod = OptionalPackages.modules[DEPENDENCIES.IOSTrackingTransparency], + getTrackingStatus = _OptionalPackages$mod.getTrackingStatus, + requestTrackingPermission = _OptionalPackages$mod.requestTrackingPermission; + return { + getTrackingStatus: getTrackingStatus, + requestTrackingPermission: requestTrackingPermission + }; } }, { key: "getAdMob", value: function getAdMob() { - return OptionalPackages.isAdMobAvailable() ? { - BannerAd: AdMob.BannerAd, - BannerAdSize: AdMob.BannerAdSize, - InterstitialAd: AdMob.InterstitialAd, - AdEventType: AdMob.AdEventType, - TestIds: AdMob.TestIds, - RewardedAd: AdMob.RewardedAd, - RewardedAdEventType: AdMob.RewardedAdEventType - } : {}; + if (!OptionalPackages.isAdMobAvailable()) { + return {}; + } + + var _OptionalPackages$mod2 = OptionalPackages.modules[DEPENDENCIES.AdMob], + BannerAd = _OptionalPackages$mod2.BannerAd, + BannerAdSize = _OptionalPackages$mod2.BannerAdSize, + InterstitialAd = _OptionalPackages$mod2.InterstitialAd, + AdEventType = _OptionalPackages$mod2.AdEventType, + TestIds = _OptionalPackages$mod2.TestIds, + RewardedAd = _OptionalPackages$mod2.RewardedAd, + RewardedAdEventType = _OptionalPackages$mod2.RewardedAdEventType; + return { + BannerAd: BannerAd, + BannerAdSize: BannerAdSize, + InterstitialAd: InterstitialAd, + AdEventType: AdEventType, + TestIds: TestIds, + RewardedAd: RewardedAd, + RewardedAdEventType: RewardedAdEventType + }; } }, { key: "getDFP", value: function getDFP() { - return OptionalPackages.isDFPAvailable() ? { - DFPBanner: Dfp.Banner, - Interstitial: Dfp.Interstitial - } : {}; + if (!OptionalPackages.isDFPAvailable()) { + return {}; + } + + var _OptionalPackages$mod3 = OptionalPackages.modules[DEPENDENCIES.Dfp], + DFPBanner = _OptionalPackages$mod3.Banner, + Interstitial = _OptionalPackages$mod3.Interstitial; + return { + DFPBanner: DFPBanner, + Interstitial: Interstitial + }; } }, { key: "getBaronWeather", value: function getBaronWeather() { - return OptionalPackages.isBaronAvailable() ? Baronweather.default : null; + return OptionalPackages.isBaronAvailable() ? OptionalPackages.modules[DEPENDENCIES.Baronweather].default : null; } }, { key: "getNativoAds", value: function getNativoAds() { - return OptionalPackages.isNativoSDKAvailable() ? { - NativoSDK: Nativo.NativoSDK, - NativoWebContent: Nativo.NativoWebContent, - NativoAd: Nativo.NativoAd, - NativoVideo: Nativo.NativoVideo - } : {}; + if (!OptionalPackages.isNativoSDKAvailable()) { + return {}; + } + + var _OptionalPackages$mod4 = OptionalPackages.modules[DEPENDENCIES.Nativo], + NativoSDK = _OptionalPackages$mod4.NativoSDK, + NativoWebContent = _OptionalPackages$mod4.NativoWebContent, + NativoAd = _OptionalPackages$mod4.NativoAd, + NativoVideo = _OptionalPackages$mod4.NativoVideo; + return { + NativoSDK: NativoSDK, + NativoWebContent: NativoWebContent, + NativoAd: NativoAd, + NativoVideo: NativoVideo + }; } }, { key: "getPrebid", value: function getPrebid() { - return OptionalPackages.isPrebidAvailable() ? { - PrebidBanner: Prebid.PrebidBanner, - PrebidInterstitial: Prebid.PrebidInterstitial - } : {}; + if (!OptionalPackages.isPrebidAvailable()) { + return {}; + } + + var _OptionalPackages$mod5 = OptionalPackages.modules[DEPENDENCIES.Prebid], + PrebidBanner = _OptionalPackages$mod5.PrebidBanner, + PrebidInterstitial = _OptionalPackages$mod5.PrebidInterstitial; + return { + PrebidBanner: PrebidBanner, + PrebidInterstitial: PrebidInterstitial + }; } }, { key: "getOneSignal", value: function getOneSignal() { - return OptionalPackages.isOneSignalAvailable() ? OneSignal.default : null; + return OptionalPackages.isOneSignalAvailable() ? OptionalPackages.modules[DEPENDENCIES.OneSignal].default : null; } }, { key: "getRNHtmlToPdf", value: function getRNHtmlToPdf() { - return OptionalPackages.isRNHtmlToPdfAvailable() ? RNHTMLtoPDF.default : null; + return OptionalPackages.isRNHtmlToPdfAvailable() ? OptionalPackages.modules[DEPENDENCIES.RNHTMLtoPDF].default : null; } }, { key: "getMatherAnalytics", value: function getMatherAnalytics() { - return OptionalPackages.isMatherAnalyticsAvailable() ? { - MatherAnalytics: MatherAnalytics.MatherAnalytics - } : {}; + return OptionalPackages.isMatherAnalyticsAvailable() ? OptionalPackages.modules[DEPENDENCIES.MatherAnalytics].MatherAnalytics : null; } }, { key: "getComscore", value: function getComscore() { - return OptionalPackages.isComScoreAvailable() ? Comscore.default : null; + return OptionalPackages.isComScoreAvailable() ? OptionalPackages.modules[DEPENDENCIES.Comscore].default : null; } }, { key: "getAdobeAnalytics", value: function getAdobeAnalytics() { - return OptionalPackages.isAdobeAnalyticsAvailable() ? { - Analytics: AdobeAnalytics.Analytics, - ADBMobileConfig: AdobeAnalytics.Config - } : {}; + if (!OptionalPackages.isAdobeAnalyticsAvailable()) { + return {}; + } + + var _OptionalPackages$mod6 = OptionalPackages.modules[DEPENDENCIES.AdobeAnalytics], + Analytics = _OptionalPackages$mod6.Analytics, + ADBMobileConfig = _OptionalPackages$mod6.Config; + return { + Analytics: Analytics, + ADBMobileConfig: ADBMobileConfig + }; } }, { key: "getFacebookSDK", value: function getFacebookSDK() { - return OptionalPackages.isFacebookSDKAvailable() ? { - Settings: FacebookSDK.Settings, - AppEventsLogger: FacebookSDK.AppEventsLogger, - LoginManager: FacebookSDK.LoginManager, - Profile: FacebookSDK.Profile, - AccessToken: FacebookSDK.AccessToken, - GraphRequest: FacebookSDK.GraphRequest, - GraphRequestManager: FacebookSDK.GraphRequestManager - } : {}; + if (!OptionalPackages.isFacebookSDKAvailable()) { + return {}; + } + + var _OptionalPackages$mod7 = OptionalPackages.modules[DEPENDENCIES.FacebookSDK], + Settings = _OptionalPackages$mod7.Settings, + AppEventsLogger = _OptionalPackages$mod7.AppEventsLogger, + LoginManager = _OptionalPackages$mod7.LoginManager, + Profile = _OptionalPackages$mod7.Profile, + AccessToken = _OptionalPackages$mod7.AccessToken, + GraphRequest = _OptionalPackages$mod7.GraphRequest, + GraphRequestManager = _OptionalPackages$mod7.GraphRequestManager; + return { + Settings: Settings, + AppEventsLogger: AppEventsLogger, + LoginManager: LoginManager, + Profile: Profile, + AccessToken: AccessToken, + GraphRequest: GraphRequest, + GraphRequestManager: GraphRequestManager + }; } }, { key: "getVoice", value: function getVoice() { - return OptionalPackages.isVoiceAvailable() ? { - Voice: Voice.default - } : {}; + if (!OptionalPackages.isVoiceAvailable()) { + return {}; + } + + var Voice = OptionalPackages.modules[DEPENDENCIES.Voice].default; + return { + Voice: Voice + }; } }, { key: "getPushLibraries", value: function getPushLibraries() { - return OptionalPackages.isPushAvailable() ? { - CloudMessaging: Push.FirebaseCloudMessaging, - AmazonDeviceMessaging: Push.AmazonDeviceMessaging, - HcmDeviceMessaging: Push.HcmDeviceMessaging, + var CloudMessaging; + var AmazonDeviceMessaging; + var HcmDeviceMessaging; + var PushNotification; + var PushNotificationIOS; + + if (OptionalPackages.isPushAvailable()) { + var _OptionalPackages$mod8 = OptionalPackages.modules[DEPENDENCIES.Push]; + CloudMessaging = _OptionalPackages$mod8.FirebaseCloudMessaging; + AmazonDeviceMessaging = _OptionalPackages$mod8.AmazonDeviceMessaging; + HcmDeviceMessaging = _OptionalPackages$mod8.HcmDeviceMessaging; + } + + if (OptionalPackages.isPushNotificationAvailable()) { + PushNotification = OptionalPackages.modules[DEPENDENCIES.PushNotification]; + } + + if (OptionalPackages.isPushNotificationIOSAvailable()) { + PushNotificationIOS = OptionalPackages.modules[DEPENDENCIES.PushNotificationIOS].default; + } + + return { + CloudMessaging: CloudMessaging, + AmazonDeviceMessaging: AmazonDeviceMessaging, + HcmDeviceMessaging: HcmDeviceMessaging, PushNotification: PushNotification, - PushNotificationIOS: PushNotificationIOS.default - } : {}; + PushNotificationIOS: PushNotificationIOS + }; } }, { key: "getMatomo", value: function getMatomo() { - return OptionalPackages.isMatomoAvailable() ? Matomo : {}; + return OptionalPackages.isMatomoAvailable() ? OptionalPackages.modules[DEPENDENCIES.Matomo] : null; } }, { key: "getMatomoTracker", value: function getMatomoTracker() { - return OptionalPackages.isMatomoTrackerAvailable() ? MatomoTracker.default : {}; - } - }, { - key: "getGoogleAnalytics3Tracker", - value: function getGoogleAnalytics3Tracker() { - return OptionalPackages.isGoogleAnalytics3Available() ? GoogleAnalytics3.GoogleAnalyticsTracker : {}; + return OptionalPackages.isMatomoTrackerAvailable() ? OptionalPackages.modules[DEPENDENCIES.MatomoTracker].default : null; } }, { key: "getIapModule", value: function getIapModule() { - return OptionalPackages.isIapModuleAvailable() ? { - initConnection: RNIap.initConnection, - endConnection: RNIap.endConnection, - PurchaseError: RNIap.PurchaseError, - ProductPurchase: RNIap.ProductPurchase, - IAPErrorCode: RNIap.ErrorCode, - Product: RNIap.Product, - Subscription: RNIap.Subscription, - getProducts: RNIap.getProducts, - getSubscriptions: RNIap.getSubscriptions, - getPurchaseHistory: RNIap.getPurchaseHistory, - flushFailedPurchasesCachedAsPendingAndroid: RNIap.flushFailedPurchasesCachedAsPendingAndroid, - purchaseErrorListener: RNIap.purchaseErrorListener, - purchaseUpdatedListener: RNIap.purchaseUpdatedListener, - finishTransaction: RNIap.finishTransaction, - requestPurchase: RNIap.requestPurchase, - requestSubscription: RNIap.requestSubscription, - getAvailablePurchases: RNIap.getAvailablePurchases, - validateReceiptIos: RNIap.validateReceiptIos, - validateReceiptAmazon: RNIap.validateReceiptAmazon - } : {}; + if (!OptionalPackages.isIapModuleAvailable()) { + return {}; + } + + var _OptionalPackages$mod9 = OptionalPackages.modules[DEPENDENCIES.RNIap], + initConnection = _OptionalPackages$mod9.initConnection, + endConnection = _OptionalPackages$mod9.endConnection, + PurchaseError = _OptionalPackages$mod9.PurchaseError, + ProductPurchase = _OptionalPackages$mod9.ProductPurchase, + IAPErrorCode = _OptionalPackages$mod9.ErrorCode, + Product = _OptionalPackages$mod9.Product, + Subscription = _OptionalPackages$mod9.Subscription, + getProducts = _OptionalPackages$mod9.getProducts, + getSubscriptions = _OptionalPackages$mod9.getSubscriptions, + getPurchaseHistory = _OptionalPackages$mod9.getPurchaseHistory, + flushFailedPurchasesCachedAsPendingAndroid = _OptionalPackages$mod9.flushFailedPurchasesCachedAsPendingAndroid, + purchaseErrorListener = _OptionalPackages$mod9.purchaseErrorListener, + purchaseUpdatedListener = _OptionalPackages$mod9.purchaseUpdatedListener, + finishTransaction = _OptionalPackages$mod9.finishTransaction, + requestPurchase = _OptionalPackages$mod9.requestPurchase, + requestSubscription = _OptionalPackages$mod9.requestSubscription, + getAvailablePurchases = _OptionalPackages$mod9.getAvailablePurchases, + validateReceiptIos = _OptionalPackages$mod9.validateReceiptIos, + validateReceiptAmazon = _OptionalPackages$mod9.validateReceiptAmazon; + return { + initConnection: initConnection, + endConnection: endConnection, + PurchaseError: PurchaseError, + ProductPurchase: ProductPurchase, + IAPErrorCode: IAPErrorCode, + Product: Product, + Subscription: Subscription, + getProducts: getProducts, + getSubscriptions: getSubscriptions, + getPurchaseHistory: getPurchaseHistory, + flushFailedPurchasesCachedAsPendingAndroid: flushFailedPurchasesCachedAsPendingAndroid, + purchaseErrorListener: purchaseErrorListener, + purchaseUpdatedListener: purchaseUpdatedListener, + finishTransaction: finishTransaction, + requestPurchase: requestPurchase, + requestSubscription: requestSubscription, + getAvailablePurchases: getAvailablePurchases, + validateReceiptIos: validateReceiptIos, + validateReceiptAmazon: validateReceiptAmazon + }; } }, { key: "getNativeOptionsPage", value: function getNativeOptionsPage() { - return OptionalPackages.isNativeOptionsPageAvailable() ? { - OptionsPage: NativeOptionsPage.default, - Methods: NativeOptionsPage.Methods, - Models: NativeOptionsPage.Models - } : {}; + if (!OptionalPackages.isNativeOptionsPageAvailable()) { + return {}; + } + + var _OptionalPackages$mod10 = OptionalPackages.modules[DEPENDENCIES.NativeOptionsPage], + OptionsPage = _OptionalPackages$mod10.default, + Methods = _OptionalPackages$mod10.Methods, + Models = _OptionalPackages$mod10.Models; + return { + OptionsPage: OptionsPage, + Methods: Methods, + Models: Models + }; } }, { key: "getCrashlytics", value: function getCrashlytics() { - return OptionalPackages.isCrashlyticsAvailable() ? FirebaseCrashlytics.default : undefined; + return OptionalPackages.isCrashlyticsAvailable() ? OptionalPackages.modules[DEPENDENCIES.FirebaseCrashlytics].default : null; } }, { key: "getMaps", value: function getMaps() { - return OptionalPackages.isMapsAvailable() ? { - Callout: Maps.Callout, - Marker: Maps.Marker, - MapView: Maps.default - } : undefined; - } - }, { - key: "getIOSClassicEPaper", - value: function getIOSClassicEPaper() { - return OptionalPackages.isIOSClassicEPaperAvailable() ? IOSClassicEPaper.default : null; + if (!OptionalPackages.isMapsAvailable()) { + return {}; + } + + var _OptionalPackages$mod11 = OptionalPackages.modules[DEPENDENCIES.Maps], + MapView = _OptionalPackages$mod11.default, + Marker = _OptionalPackages$mod11.Marker, + Callout = _OptionalPackages$mod11.Callout; + return { + Callout: Callout, + Marker: Marker, + MapView: MapView + }; } }, { key: "getIOSExternalLinkAccountAPI", value: function getIOSExternalLinkAccountAPI() { - return OptionalPackages.isIOSExternalLinkAccountAPIAvailable() ? IOSExternalLinkAccount.default : null; + return OptionalPackages.isIOSExternalLinkAccountAPIAvailable() ? OptionalPackages.modules[DEPENDENCIES.IOSExternalLinkAccount].default : null; } }, { key: "getIOSNewsmemorySDK", value: function getIOSNewsmemorySDK() { - return OptionalPackages.isIOSNewsmemorySDKAvailable() ? IOSNewsmemorySDK.default : null; + return OptionalPackages.isIOSNewsmemorySDKAvailable() ? OptionalPackages.modules[DEPENDENCIES.IOSNewsmemorySDK].default : null; } }, { key: "getViafouraWebView", value: function getViafouraWebView() { - return OptionalPackages.isViafouraAvailable() ? ViafouraWebView.default : null; + return OptionalPackages.isViafouraAvailable() ? OptionalPackages.modules[DEPENDENCIES.ViafouraWebView].default : null; } }, { key: "getDailymotionVideoPlayer", value: function getDailymotionVideoPlayer() { - return OptionalPackages.isDailymotionVideoPlayerAvailable() ? { - Player: DailyMotionPlayer.default, - setConsentString: DailyMotionPlayer.setConsentString - } : {}; + if (!OptionalPackages.isDailymotionVideoPlayerAvailable()) { + return {}; + } + + var _OptionalPackages$mod12 = OptionalPackages.modules[DEPENDENCIES.DailyMotionPlayer], + Player = _OptionalPackages$mod12.default, + setConsentString = _OptionalPackages$mod12.setConsentString; + return { + Player: Player, + setConsentString: setConsentString + }; } }, { key: "getIubenda", value: function getIubenda() { - return OptionalPackages.isIubendaCMPAvailable() ? { - Iubenda: IubendaCMP.default, - Container: IubendaCMP.Container - } : {}; + if (!OptionalPackages.isIubendaCMPAvailable()) { + return {}; + } + + var _OptionalPackages$mod13 = OptionalPackages.modules[DEPENDENCIES.IubendaCMP], + Iubenda = _OptionalPackages$mod13.default, + Container = _OptionalPackages$mod13.Container; + return { + Iubenda: Iubenda, + Container: Container + }; } }, { key: "getOsano", value: function getOsano() { - return OptionalPackages.isOsanoAvailable() ? { - Osano: Osano.Osano, - Container: Osano.default - } : {}; + if (!OptionalPackages.isOsanoAvailable()) { + return {}; + } + + var _OptionalPackages$mod14 = OptionalPackages.modules[DEPENDENCIES.Osano], + Container = _OptionalPackages$mod14.default, + Osano = _OptionalPackages$mod14.Osano; + return { + Osano: Osano, + Container: Container + }; } }, { key: "getScreenshotPrevent", value: function getScreenshotPrevent() { - return OptionalPackages.isScreenshotPreventAvailable() ? { - RNScreenshotPrevent: ScreenshotPrevent.default, - addListener: ScreenshotPrevent.addListener - } : {}; + if (!OptionalPackages.isScreenshotPreventAvailable()) { + return {}; + } + + var _OptionalPackages$mod15 = OptionalPackages.modules[DEPENDENCIES.ScreenshotPrevent], + RNScreenshotPrevent = _OptionalPackages$mod15.default, + addListener = _OptionalPackages$mod15.addListener; + return { + RNScreenshotPrevent: RNScreenshotPrevent, + addListener: addListener + }; } }, { key: "getChartBeat", value: function getChartBeat() { - return OptionalPackages.isChartBeatAvailable() ? ChartBeat.default : undefined; + return OptionalPackages.isChartBeatAvailable() ? OptionalPackages.modules[DEPENDENCIES.ChartBeat].default : undefined; } }, { key: "getFirebaseAnalytics", value: function getFirebaseAnalytics() { - return OptionalPackages.isFirebaseAnalyticsAvailable() ? FirebaseAnalytics.default : undefined; + return OptionalPackages.isFirebaseAnalyticsAvailable() ? OptionalPackages.modules[DEPENDENCIES.FirebaseAnalytics].default : undefined; } }, { key: "getWebAnalytics", value: function getWebAnalytics() { - return OptionalPackages.isWebAnalyticsAvailable() ? WebAnalytics.default : undefined; + return OptionalPackages.isWebAnalyticsAvailable() ? OptionalPackages.modules[DEPENDENCIES.WebAnalytics].default : undefined; } }, { key: "getBlueConic", value: function getBlueConic() { - return OptionalPackages.isBlueConicAvailable() ? BlueConic.default : undefined; + return OptionalPackages.isBlueConicAvailable() ? OptionalPackages.modules[DEPENDENCIES.BlueConic].default : undefined; } }, { key: "isCrashlyticsAvailable", value: function isCrashlyticsAvailable() { - return OptionalPackages.isModuleAvailable(FirebaseCrashlytics, "@react-native-firebase/crashlytics"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.FirebaseCrashlytics); } }, { key: "isFirebaseAnalyticsAvailable", value: function isFirebaseAnalyticsAvailable() { - return OptionalPackages.isModuleAvailable(FirebaseAnalytics, "@tecnavia/react-native-firebase-analytics"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.FirebaseAnalytics); } }, { key: "isWebAnalyticsAvailable", value: function isWebAnalyticsAvailable() { - return OptionalPackages.isModuleAvailable(WebAnalytics, "@tecnavia/react-native-web-analytics"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.WebAnalytics); } }, { key: "isTrackingTransparencyAvailable", value: function isTrackingTransparencyAvailable() { - return OptionalPackages.isModuleAvailable(IOSTrackingTransparency, "react-native-tracking-transparency"); + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(DEPENDENCIES.IOSTrackingTransparency); } }, { key: "isAdMobAvailable", value: function isAdMobAvailable() { - return OptionalPackages.isModuleAvailable(AdMob, "@tecnavia/react-native-admob"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.AdMob); } }, { key: "isDFPAvailable", value: function isDFPAvailable() { - return OptionalPackages.isModuleAvailable(Dfp, "@tecnavia/react-native-dfp"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Dfp); } }, { key: "isBaronAvailable", value: function isBaronAvailable() { - return OptionalPackages.isModuleAvailable(Baronweather, "react-native-baronweather"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Baronweather); } }, { key: "isPrebidAvailable", value: function isPrebidAvailable() { - return OptionalPackages.isModuleAvailable(Prebid, "react-native-prebid"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Prebid); } }, { key: "isNativoSDKAvailable", value: function isNativoSDKAvailable() { - return OptionalPackages.isModuleAvailable(Nativo, "react-native-nativo-ads"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Nativo); } }, { key: "isOneSignalAvailable", value: function isOneSignalAvailable() { - return OptionalPackages.isModuleAvailable(OneSignal, "react-native-onesignal"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.OneSignal); } }, { key: "isRNHtmlToPdfAvailable", value: function isRNHtmlToPdfAvailable() { - return OptionalPackages.isModuleAvailable(RNHTMLtoPDF, "react-native-html-to-pdf"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.RNHTMLtoPDF); } }, { key: "isComScoreAvailable", value: function isComScoreAvailable() { - return OptionalPackages.isModuleAvailable(Comscore, "react-native-comscore"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Comscore); } }, { key: "isAdobeAnalyticsAvailable", value: function isAdobeAnalyticsAvailable() { - return OptionalPackages.isModuleAvailable(AdobeAnalytics, "react-native-adbmobile"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.AdobeAnalytics); } }, { key: "isMatherAnalyticsAvailable", value: function isMatherAnalyticsAvailable() { - return OptionalPackages.isModuleAvailable(MatherAnalytics, "react-native-mather-analytics"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.MatherAnalytics); } }, { key: "isFacebookSDKAvailable", value: function isFacebookSDKAvailable() { - return OptionalPackages.isModuleAvailable(FacebookSDK, "react-native-fbsdk-next"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.FacebookSDK); } }, { key: "isVoiceAvailable", value: function isVoiceAvailable() { - return OptionalPackages.isModuleAvailable(Voice, "react-native-voice"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Voice); } }, { key: "isPushAvailable", value: function isPushAvailable() { - return OptionalPackages.isModuleAvailable(Push, "@tecnavia/react-native-cloud-messaging"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Push); + } + }, { + key: "isPushNotificationAvailable", + value: function isPushNotificationAvailable() { + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(DEPENDENCIES.PushNotification); + } + }, { + key: "isPushNotificationIOSAvailable", + value: function isPushNotificationIOSAvailable() { + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(DEPENDENCIES.PushNotificationIOS); } }, { key: "isMatomoAvailable", value: function isMatomoAvailable() { - return OptionalPackages.isModuleAvailable(Matomo, "react-native-matomo"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Matomo); } }, { key: "isMatomoTrackerAvailable", value: function isMatomoTrackerAvailable() { - return OptionalPackages.isModuleAvailable(MatomoTracker, "matomo-tracker-react-native"); - } - }, { - key: "isGoogleAnalytics3Available", - value: function isGoogleAnalytics3Available() { - return OptionalPackages.isModuleAvailable(GoogleAnalytics3, "react-native-google-analytics-bridge"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.MatomoTracker); } }, { key: "isIapModuleAvailable", value: function isIapModuleAvailable() { - return OptionalPackages.isModuleAvailable(RNIap, "react-native-iap"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.RNIap); } }, { key: "isMapsAvailable", value: function isMapsAvailable() { - return OptionalPackages.isModuleAvailable(Maps, "react-native-maps"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Maps); } }, { key: "isNativeOptionsPageAvailable", value: function isNativeOptionsPageAvailable() { - return OptionalPackages.isModuleAvailable(NativeOptionsPage, "rn-options-page"); - } - }, { - key: "isIOSClassicEPaperAvailable", - value: function isIOSClassicEPaperAvailable() { - return _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(IOSClassicEPaper, "@tecnavia/react-native-ios-classic-epaper"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.NativeOptionsPage); } }, { key: "isIOSExternalLinkAccountAPIAvailable", value: function isIOSExternalLinkAccountAPIAvailable() { - return _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(IOSExternalLinkAccount, "@tecnavia/react-native-external-link-account"); + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(DEPENDENCIES.IOSExternalLinkAccount); } }, { key: "isIOSNewsmemorySDKAvailable", value: function isIOSNewsmemorySDKAvailable() { - return _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(IOSNewsmemorySDK, "@tecnavia/react-native-newsmemory-pod"); + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() && OptionalPackages.isModuleAvailable(DEPENDENCIES.IOSNewsmemorySDK); } }, { key: "isViafouraAvailable", value: function isViafouraAvailable() { - return OptionalPackages.isModuleAvailable(ViafouraWebView, "react-native-viafoura"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.ViafouraWebView); } }, { key: "isDailymotionVideoPlayerAvailable", value: function isDailymotionVideoPlayerAvailable() { - return OptionalPackages.isModuleAvailable(DailyMotionPlayer, "@tecnavia/react-native-dailymotion-sdk"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.DailyMotionPlayer); } }, { key: "isIubendaCMPAvailable", value: function isIubendaCMPAvailable() { - return OptionalPackages.isModuleAvailable(IubendaCMP, "@tecnavia/react-native-iubenda-web"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.IubendaCMP); } }, { key: "isOsanoAvailable", value: function isOsanoAvailable() { - return OptionalPackages.isModuleAvailable(Osano, "@tecnavia/react-native-osano-web"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.Osano); } }, { key: "isScreenshotPreventAvailable", value: function isScreenshotPreventAvailable() { - return OptionalPackages.isModuleAvailable(ScreenshotPrevent, "@tecnavia/react-native-screenshot-prevent"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.ScreenshotPrevent); } }, { key: "isChartBeatAvailable", value: function isChartBeatAvailable() { - return OptionalPackages.isModuleAvailable(ChartBeat, "@tecnavia/react-native-chartbeat"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.ChartBeat); } }, { key: "isBlueConicAvailable", value: function isBlueConicAvailable() { - return OptionalPackages.isModuleAvailable(BlueConic, "@blueconic/blueconic-react-native"); + return OptionalPackages.isModuleAvailable(DEPENDENCIES.BlueConic); } }, { key: "isModuleAvailable", - value: function isModuleAvailable(moduleVariable, moduleName) { + value: function isModuleAvailable(moduleName) { + if (OptionalPackages.modules[moduleName] === undefined) { + OptionalPackages.loadModule(moduleName); + } + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(OptionalPackages.modules[moduleName])) { + return false; + } + + return true; + } + }, { + key: "loadModule", + value: function loadModule(moduleName) { + if (OptionalPackages.modules[moduleName] !== undefined) { + return; + } + + var module = null; + try { - if (moduleVariable) { - return true; + switch (moduleName) { + case DEPENDENCIES.BlueConic: + module = function () { + throw new Error("Cannot find module '@blueconic/blueconic-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.AdMob: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-admob'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.ChartBeat: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-chartbeat'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Push: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-cloud-messaging'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.PushNotification: + module = function () { + throw new Error("Cannot find module 'react-native-push-notification'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.PushNotificationIOS: + module = function () { + throw new Error("Cannot find module '@react-native-community/push-notification-ios'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.DailyMotionPlayer: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-dailymotion-sdk'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Dfp: + module = _$$_REQUIRE(_dependencyMap[5]); + break; + + case DEPENDENCIES.IOSExternalLinkAccount: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-external-link-account'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.FirebaseAnalytics: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-firebase-analytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.FirebaseCrashlytics: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-firebase-crashlytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.IubendaCMP: + module = _$$_REQUIRE(_dependencyMap[6]); + break; + + case DEPENDENCIES.IOSNewsmemorySDK: + module = _$$_REQUIRE(_dependencyMap[7]); + break; + + case DEPENDENCIES.Osano: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-osano-web'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.ScreenshotPrevent: + module = function () { + throw new Error("Cannot find module '@tecnavia/react-native-screenshot-prevent'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.WebAnalytics: + module = _$$_REQUIRE(_dependencyMap[8]); + break; + + case DEPENDENCIES.MatomoTracker: + module = function () { + throw new Error("Cannot find module 'matomo-tracker-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.AdobeAnalytics: + module = function () { + throw new Error("Cannot find module 'react-native-adbmobile'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Baronweather: + module = function () { + throw new Error("Cannot find module 'react-native-baronweather'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Comscore: + module = function () { + throw new Error("Cannot find module 'react-native-comscore'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.FacebookSDK: + module = function () { + throw new Error("Cannot find module 'react-native-fbsdk-next'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.RNHTMLtoPDF: + module = function () { + throw new Error("Cannot find module 'react-native-html-to-pdf'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.RNIap: + module = function () { + throw new Error("Cannot find module 'react-native-iap'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Maps: + module = function () { + throw new Error("Cannot find module 'react-native-maps'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.MatherAnalytics: + module = function () { + throw new Error("Cannot find module 'react-native-mather-analytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Matomo: + module = function () { + throw new Error("Cannot find module 'react-native-matomo'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Nativo: + module = function () { + throw new Error("Cannot find module 'react-native-nativo-ads'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.OneSignal: + module = function () { + throw new Error("Cannot find module 'react-native-onesignal'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Prebid: + module = function () { + throw new Error("Cannot find module 'react-native-prebid'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.IOSTrackingTransparency: + module = function () { + throw new Error("Cannot find module 'react-native-tracking-transparency'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.ViafouraWebView: + module = function () { + throw new Error("Cannot find module 'react-native-viafoura'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.Voice: + module = function () { + throw new Error("Cannot find module 'react-native-voice'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/src/lib/utils/noop.js"); + }(); + + break; + + case DEPENDENCIES.NativeOptionsPage: + module = _$$_REQUIRE(_dependencyMap[9]); + break; } } catch (e) {} - return false; + OptionalPackages.modules[moduleName] = module; } }]); }(); -},879,[3,6,7,880,883,903,904,910,438]); + + OptionalPackages.modules = (_OptionalPackages$mod16 = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_OptionalPackages$mod16, DEPENDENCIES.AdMob, undefined), DEPENDENCIES.AdobeAnalytics, undefined), DEPENDENCIES.Baronweather, undefined), DEPENDENCIES.BlueConic, undefined), DEPENDENCIES.ChartBeat, undefined), DEPENDENCIES.Comscore, undefined), DEPENDENCIES.DailyMotionPlayer, undefined), DEPENDENCIES.Dfp, undefined), DEPENDENCIES.FacebookSDK, undefined), DEPENDENCIES.FirebaseAnalytics, undefined), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_OptionalPackages$mod16, DEPENDENCIES.FirebaseCrashlytics, undefined), DEPENDENCIES.IOSExternalLinkAccount, undefined), DEPENDENCIES.IOSNewsmemorySDK, undefined), DEPENDENCIES.IOSTrackingTransparency, undefined), DEPENDENCIES.IubendaCMP, undefined), DEPENDENCIES.Maps, undefined), DEPENDENCIES.Matomo, undefined), DEPENDENCIES.MatomoTracker, undefined), DEPENDENCIES.MatherAnalytics, undefined), DEPENDENCIES.NativeOptionsPage, undefined), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_OptionalPackages$mod16, DEPENDENCIES.Nativo, undefined), DEPENDENCIES.OneSignal, undefined), DEPENDENCIES.Osano, undefined), DEPENDENCIES.Prebid, undefined), DEPENDENCIES.Push, undefined), DEPENDENCIES.PushNotification, undefined), DEPENDENCIES.PushNotificationIOS, undefined), DEPENDENCIES.RNHTMLtoPDF, undefined), DEPENDENCIES.RNIap, undefined), DEPENDENCIES.ScreenshotPrevent, undefined), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_OptionalPackages$mod16, DEPENDENCIES.ViafouraWebView, undefined), DEPENDENCIES.Voice, undefined), DEPENDENCIES.WebAnalytics, undefined)); +},882,[3,240,6,7,438,883,886,906,907,913]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _RNDFPBanner = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -130313,7 +130695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Banner: _RNDFPBanner.default, Interstitial: _RNDFPInterstitial.default }; -},880,[3,881,882]); +},883,[3,884,885]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130458,7 +130840,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e targeting: _propTypes.default.object }; var RNBanner = (0, _reactNative.requireNativeComponent)("RNDFPBanner", DFPBanner); -},881,[3,224,6,7,11,13,14,16,582,18,179]); +},884,[3,224,6,7,11,13,14,16,582,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130468,7 +130850,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.RNDFPInterstitial; -},882,[18]); +},885,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130486,7 +130868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _iubendaContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); var _default = exports.default = _iubenda.default; -},883,[3,884,896]); +},886,[3,887,899]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130797,7 +131179,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onConsentChange: undefined, onDismiss: undefined }; -},884,[3,4,270,7,6,16,885,438,887,179,888]); +},887,[3,4,270,7,6,16,888,438,890,179,891]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131035,7 +131417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},885,[3,270,6,7,886,438]); +},888,[3,270,6,7,889,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131109,7 +131491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e uspData: "uspData" } }; -},886,[3,270,6,7,438]); +},889,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131140,7 +131522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onShowConsentUI(value); } }; -},887,[3,33,16]); +},890,[3,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131398,7 +131780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOptOut: _propTypes.default.func, onClose: _propTypes.default.func }; -},888,[3,22,4,6,7,11,13,14,16,582,18,438,179,889]); +},891,[3,22,4,6,7,11,13,14,16,582,18,438,179,892]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131414,7 +131796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _WebView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = _WebView.default; -},889,[3,890]); +},892,[3,893]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131680,7 +132062,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = WebView; -},890,[16,18,3,37,31,891,892,893,894,179]); +},893,[16,18,3,37,31,894,895,896,897,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131696,7 +132078,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNCWebView'); -},891,[3,183,133]); +},894,[3,183,133]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131706,7 +132088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNCWebView'); -},892,[18]); +},895,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131748,7 +132130,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = styles; -},893,[18]); +},896,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131957,7 +132339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e lastErrorEvent: lastErrorEvent }; }; -},894,[3,895,16,18,893,179]); +},897,[3,898,16,18,896,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -131970,7 +132352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(matchOperatorsRegex, '\\$&'); }; -},895,[]); +},898,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132007,7 +132389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = IubendaContainer; -},896,[3,16,582,884,887,897,179]); +},899,[3,16,582,887,890,900,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132052,7 +132434,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},897,[898,900,901,902]); +},900,[901,903,904,905]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132185,7 +132567,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var SafeAreaConsumer = exports.SafeAreaConsumer = SafeAreaInsetsContext.Consumer; var SafeAreaContext = exports.SafeAreaContext = SafeAreaInsetsContext; -},898,[3,33,16,18,899,179]); +},901,[3,33,16,18,902,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132195,7 +132577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = (0, _reactNative.requireNativeComponent)('RNCSafeAreaProvider'); -},899,[18]); +},902,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132205,7 +132587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var SafeAreaView = exports.SafeAreaView = (0, _reactNative.requireNativeComponent)('RNCSafeAreaView'); -},900,[18]); +},903,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132218,12 +132600,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var initialWindowMetrics = exports.initialWindowMetrics = RNCSafeAreaProviderConfig != null && RNCSafeAreaProviderConfig.Constants != null ? RNCSafeAreaProviderConfig.Constants.initialWindowMetrics : null; var initialWindowSafeAreaInsets = exports.initialWindowSafeAreaInsets = initialWindowMetrics == null ? undefined : initialWindowMetrics.insets; -},901,[18]); +},904,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); -},902,[]); +},905,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132351,7 +132733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},903,[3,270,6,7,18]); +},906,[3,270,6,7,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132368,7 +132750,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = analytics; -},904,[905]); +},907,[908]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132530,14 +132912,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},905,[3,270,6,7,18,906,907,908]); +},908,[3,270,6,7,18,909,910,911]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.RAW_HTML = undefined; var RAW_HTML = exports.RAW_HTML = "\n \n \n \n \n \n \n \n"; -},906,[]); +},909,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132598,7 +132980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } -},907,[908,909]); +},910,[911,912]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132703,14 +133085,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function noop() {} -},908,[]); +},911,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.RESERVED_EVENT_NAMES = undefined; var RESERVED_EVENT_NAMES = exports.RESERVED_EVENT_NAMES = ["ad_reward", "app_background", "app_clear_data", "app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_convert", "app_store_subscription_renew", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "first_open", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "os_update", "session_start", "session_start_with_rollout", "user_engagement"]; -},909,[]); +},912,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132881,13 +133263,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Root; exports.default = _default; -},910,[3,591,4,911,16,582,18,932,1718,1719,951,943,1316,1076,1072]); +},913,[3,591,4,914,16,582,18,935,1723,1724,954,946,1319,1079,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { _$$_REQUIRE(_dependencyMap[0]); -},911,[912]); +},914,[915]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (0, _$$_REQUIRE(_dependencyMap[0]).setupURLPolyfill)(); -},912,[913]); +},915,[916]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132931,7 +133313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[2]).URLSearchParams; }); } -},913,[914,915,930,931,70]); +},916,[917,918,933,934,70]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -132948,7 +133330,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},914,[18]); +},917,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132979,7 +133361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1]).URL.revokeObjectURL = function revokeObjectURL(url) {}; var URL = exports.URL = _$$_REQUIRE(_dependencyMap[1]).URL; -},915,[18,916]); +},918,[18,919]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133001,13 +133383,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.setThePassword = _$$_REQUIRE(_dependencyMap[1]).setThePassword; exports.cannotHaveAUsernamePasswordPort = _$$_REQUIRE(_dependencyMap[1]).cannotHaveAUsernamePasswordPort; exports.percentDecode = _$$_REQUIRE(_dependencyMap[2]).percentDecode; -},916,[917,921,926]); +},919,[920,924,929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; exports.URL = _$$_REQUIRE(_dependencyMap[0]); exports.URLSearchParams = _$$_REQUIRE(_dependencyMap[1]); -},917,[918,927]); +},920,[921,930]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133420,7 +133802,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},918,[919,920,6,929,7,240]); +},921,[922,923,6,932,7,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133540,7 +133922,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e namedSetExisting: namedSetExisting, namedDelete: namedDelete }; -},919,[]); +},922,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133793,7 +134175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},920,[6,921,927,7,926]); +},923,[6,924,930,7,929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -135127,7 +135509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e encodingOverride: options.encodingOverride }); }; -},921,[922,923,924,926]); +},924,[925,926,927,929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -135406,7 +135788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 'toUnicode': toUnicode }; module.exports = punycode; -},922,[22]); +},925,[22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -135432,7 +135814,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isASCIIAlphanumeric: isASCIIAlphanumeric, isASCIIHex: isASCIIHex }; -},923,[]); +},926,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /*! * The buffer module from node.js, for the browser. @@ -137107,7 +137489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return table; }(); -},924,[94,925]); +},927,[94,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m; @@ -137197,7 +137579,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buffer[offset + i - d] |= s * 128; }; -},925,[]); +},928,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -137348,7 +137730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, serializeUrlencoded: serializeUrlencoded }; -},926,[924,923,33]); +},929,[927,926,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -137872,7 +138254,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},927,[919,240,33,928,6,929,7]); +},930,[922,240,33,931,6,932,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -138041,7 +138423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(Symbol.iterator); -},928,[6,926,7]); +},931,[6,929,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -138397,7 +138779,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DOMTimeStamp = exports["unsigned long long"]; exports.Function = convertCallbackFunction; exports.VoidFunction = convertCallbackFunction; -},929,[]); +},932,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138408,13 +138790,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[0]).URLSearchParams; } }); -},930,[916]); +},933,[919]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "_args": [ [ "react-native-url-polyfill@1.3.0", - "/Users/ipaddev/sdk/3.16.14.rc" + "/Users/ipaddev/sdk/3.17.02.rc" ] ], "_from": "react-native-url-polyfill@1.3.0", @@ -138438,7 +138820,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ], "_resolved": "https://registry.npmjs.org/react-native-url-polyfill/-/react-native-url-polyfill-1.3.0.tgz", "_spec": "1.3.0", - "_where": "/Users/ipaddev/sdk/3.16.14.rc", + "_where": "/Users/ipaddev/sdk/3.17.02.rc", "author": { "name": "Nicolas Charpentier", "email": "nicolas.charpentier079@gmail.com" @@ -138517,7 +138899,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "version": "1.3.0" } ; -},931,[]); +},934,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138767,8 +139149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setFavEdi = _useState6[1]; setFavoriteEditionMethod = setFavEdi; - - var loadConfig = function _callee() { + var loadConfig = (0, _react.useCallback)(function _callee() { var startDate, mPSetup, mLocale, mUserSettings; return _regenerator.default.async(function _callee$(_context2) { while (1) { @@ -138844,9 +139225,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }, null, null, [[5, 13], [16, 22], [25, 31]], Promise); - }; - - var setRoutes = function setRoutes(editions) { + }, [pSetup, server, baseTabPath]); + var setRoutes = (0, _react.useCallback)(function (editions) { var _LiveConfig$getPSetup = _liveConfig.default.getPSetup(), tabs = _LiveConfig$getPSetup.tabs; @@ -138876,9 +139256,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e initialRoute: initialRoute, drawerRoutes: drawerRoutes }; - }; - - var loadData = function _callee2() { + }, [initialRouteName]); + var loadData = (0, _react.useCallback)(function _callee2() { var startDate, newData, _setRoutes, initialRoute, drawerRoutes; return _regenerator.default.async(function _callee2$(_context3) { @@ -138906,9 +139285,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }, null, null, null, Promise); - }; - - var loadSpecials = function _callee3() { + }, [getSavedIssues]); + var loadSpecials = (0, _react.useCallback)(function _callee3() { var editions, specials; return _regenerator.default.async(function _callee3$(_context4) { while (1) { @@ -138942,9 +139320,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }, null, null, [[0, 10]], Promise); - }; - - var load = function _callee4() { + }, [data]); + var load = (0, _react.useCallback)(function _callee4() { return _regenerator.default.async(function _callee4$(_context5) { while (1) { switch (_context5.prev = _context5.next) { @@ -138975,8 +139352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }, null, null, [[2, 7]], Promise); - }; - + }, [loadConfig, loadData]); (0, _react.useEffect)(function () { var onLogger = _log.default.addListeners(logCallbacks); @@ -139056,6 +139432,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }); + + if (!loading) { + _liveConfig.default.getLocale().initI18n(_liveConfig.default.getPSetup()); + } + return _react.default.createElement(_reactNative.View, { style: styles.app }, !loading && data ? _react.default.createElement(_$$_REQUIRE(_dependencyMap[29]).AspectRatioContext.Provider, { @@ -139111,7 +139492,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Container; exports.default = _default; -},932,[3,22,33,4,933,591,16,18,582,935,939,949,950,1077,1208,1210,1211,1078,1083,1079,1196,1212,938,951,1067,1706,1707,1085,1076,1342,1708]); +},935,[3,22,33,4,936,591,16,18,582,938,942,952,953,1080,1211,1213,1214,1081,1086,1082,1199,1215,941,954,1070,1711,1712,1088,1079,1345,1713]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var runtime = _$$_REQUIRE(_dependencyMap[0])(); @@ -139126,7 +139507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Function("r", "regeneratorRuntime = r")(runtime); } } -},933,[934]); +},936,[937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _regeneratorRuntime() { "use strict"; @@ -139480,7 +139861,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; -},934,[10]); +},937,[10]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139857,7 +140238,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = API; exports.default = _default; -},935,[3,933,591,6,7,936,937,408,938,939,940,941,942]); +},938,[3,936,591,6,7,939,940,408,941,942,943,944,945]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _classPrivateFieldBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { @@ -139868,7 +140249,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; -},936,[]); +},939,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var id = 0; @@ -139877,7 +140258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; -},937,[]); +},940,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140206,7 +140587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Issue; -},938,[3,6,7,936,937]); +},941,[3,6,7,939,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140317,7 +140698,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: {} }); -},939,[3,6,7,936,937]); +},942,[3,6,7,939,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140359,7 +140740,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function dpToPx(size) { return _reactNative.PixelRatio.roundToNearestPixel(size) * _reactNative.PixelRatio.get(); } -},940,[18]); +},943,[18]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = [ { @@ -140382,7 +140763,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex } ] ; -},941,[]); +},944,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140444,7 +140825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var uri = segmentURL(referenceURL); return domain === uri.getDomain(); } -},942,[3,472,943,939,945]); +},945,[3,472,946,942,948]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140567,7 +140948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = URI; -},943,[3,6,7,936,937,944]); +},946,[3,6,7,939,940,947]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140921,7 +141302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = JSUtils; -},944,[3,33,22,6,7,933,18,939]); +},947,[3,33,22,6,7,936,18,942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -141109,7 +141490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } exports.decode = decode; -},945,[946,947,948]); +},948,[949,950,951]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145499,7 +145880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},946,[]); +},949,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145518,7 +145899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; exports.highSurrogateFrom = 55296; exports.highSurrogateTo = 56319; -},947,[]); +},950,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145555,7 +145936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 158: 382, 159: 376 }; -},948,[]); +},951,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145768,7 +146149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Network.IP = "n/a"; var _default = Network; exports.default = _default; -},949,[3,933,6,7,556]); +},952,[3,936,6,7,556]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145904,7 +146285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Errors; exports.default = _default; -},950,[3,22,33,16,582,18,951,952,939,1076,1072,942]); +},953,[3,22,33,16,582,18,954,955,942,1079,1075,945]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145928,7 +146309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Events.ON_ACTION_CLICK = "on_action_click"; var _default = Events; exports.default = _default; -},951,[3,7,6]); +},954,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146094,7 +146475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Error; exports.default = _default; -},952,[16,3,582,18,953,1068,1073,1074,1067,1075,1072]); +},955,[16,3,582,18,956,1071,1076,1077,1070,1078,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146235,7 +146616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.TaAnimatedImageIcon = TaAnimatedImageIcon; var _default = TaImageIcon; exports.default = _default; -},953,[3,6,7,14,11,13,591,4,16,18,582,954,955,956,940]); +},956,[3,6,7,14,11,13,591,4,16,18,582,957,958,959,943]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146280,7 +146661,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = FSImage; exports.default = _default; -},954,[3,591,4,16,590]); +},957,[3,591,4,16,590]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146468,7 +146849,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = CssStyle; exports.default = _default; -},955,[3,6,7]); +},958,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146573,7 +146954,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function TaPath(props) { return _react.default.createElement(_reactNativeSvg.Path, props); } -},956,[3,591,4,16,18,957,1066]); +},959,[3,591,4,16,18,960,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146603,7 +146984,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -},957,[958]); +},960,[961]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146956,7 +147337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -},958,[959,960,988,1064,3,996,1065,990]); +},961,[962,963,991,1067,3,999,1068,993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147006,7 +147387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function loadLocalRawResource() { showErrorCSS('loadLocalRawResource', 'function'); } -},959,[]); +},962,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147227,7 +147608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _FeMergeNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[26])); var _FeOffsetNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[27])); -},960,[3,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987]); +},963,[3,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147237,36 +147618,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGCircle'); -},961,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGClipPath'); -},962,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGDefs'); -},963,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGEllipse'); },964,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147276,7 +147627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGForeignObject'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGClipPath'); },965,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147286,7 +147637,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGGroup'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGDefs'); },966,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147296,39 +147647,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGEllipse'); +},967,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGForeignObject'); +},968,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGGroup'); +},969,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGImage', { interfaceOnly: true }); -},967,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLinearGradient'); -},968,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLine'); -},969,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMarker'); },970,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147338,7 +147689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMask'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLinearGradient'); },971,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147348,7 +147699,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPath'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLine'); },972,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147358,7 +147709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPattern'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMarker'); },973,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147368,7 +147719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRadialGradient'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMask'); },974,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147378,7 +147729,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRect'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPath'); },975,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147388,10 +147739,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPattern'); +},976,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRadialGradient'); +},977,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRect'); +},978,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgViewAndroid', { excludedPlatforms: ['iOS'] }); -},976,[3,183]); +},979,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147403,36 +147784,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgView', { excludedPlatforms: ['android'] }); -},977,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSymbol'); -},978,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGText'); -},979,[3,183]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTextPath'); },980,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147442,7 +147793,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTSpan'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSymbol'); },981,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147452,7 +147803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGUse'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGText'); },982,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147462,7 +147813,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFilter'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTextPath'); },983,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147472,7 +147823,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeColorMatrix'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTSpan'); },984,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147482,7 +147833,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeGaussianBlur'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGUse'); },985,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147492,7 +147843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeMerge'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFilter'); },986,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -147502,8 +147853,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeOffset'); + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeColorMatrix'); },987,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeGaussianBlur'); +},988,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeMerge'); +},989,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeOffset'); +},990,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148147,7 +148528,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } -},988,[989,3,270,6,7,11,13,14,33,16,179,1064]); +},991,[992,3,270,6,7,11,13,14,33,16,179,1067]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148201,7 +148582,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e tspan: _$$_REQUIRE(_dependencyMap[0]).TSpan, use: _$$_REQUIRE(_dependencyMap[0]).Use }; -},989,[990]); +},992,[993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148601,7 +148982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Filter = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[47])); var _default = exports.default = _Svg.default; -},990,[991,3,995,1011,1012,1013,1014,1015,1017,1019,1020,1023,1024,1026,1027,1028,1030,1031,1032,1033,1034,1036,1037,1038,1039,1040,1041,1042,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063]); +},993,[994,3,998,1014,1015,1016,1017,1018,1020,1022,1023,1026,1027,1029,1030,1031,1033,1034,1035,1036,1037,1039,1040,1041,1042,1043,1044,1045,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148742,7 +149123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(FeComponentTransferFunction); FeFuncA.displayName = 'FeFuncA'; -},991,[3,6,7,11,13,14,992,993]); +},994,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148801,7 +149182,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},992,[3,7,6,11,13,14,16]); +},995,[3,7,6,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148837,7 +149218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var warnUnimplementedFilter = exports.warnUnimplementedFilter = function warnUnimplementedFilter() { (0, _warnOnce.default)(true, "Some of the used filters are not yet supported on native platforms. Please check the USAGE.md for more info. Not implemented filters:\n", JSON.stringify(['FeBlend', 'FeComponentTransfer', 'FeComposite', 'FeConvolveMatrix', 'FeDiffuseLighting', 'FeDisplacementMap', 'FeDropShadow', 'FeFlood', 'FeFuncA', 'FeFuncB', 'FeFuncG', 'FeFuncR', 'FeImage', 'FeMorphology', 'FePointLight', 'FeSpecularLighting', 'FeSpotLight', 'FeTile', 'FeTurbulence'], null, 2)); }; -},993,[3,994]); +},996,[3,997]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DEV = false; var warnings = new Set(); @@ -148845,7 +149226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function warnOnce(condition) {} module.exports = warnOnce; -},994,[]); +},997,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148912,7 +149293,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cy: 0, r: 0 }; -},995,[3,6,7,11,13,14,16,996,961,1001,179]); +},998,[3,6,7,11,13,14,16,999,964,1004,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149303,7 +149684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Shape.prototype.ownerSVGElement = ownerSVGElement; -},996,[3,11,13,14,6,7,16,997,998,18,1000]); +},999,[3,11,13,14,6,7,16,1000,1001,18,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149438,7 +149819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e target.state = touchableGetInitialState(); }; -},997,[18]); +},1000,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149504,7 +149885,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e console.warn("\"" + String(color) + "\" is not a valid color or brush"); return null; } -},998,[18,999]); +},1001,[18,1002]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149545,7 +149926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isPercentageRgb = RGB_RGBA_PATTERN.test(rgbColorWithoutSpaces); return isPercentageRgb ? parsePercentageRGBColor(rgbColorWithoutSpaces) : color; }; -},999,[]); +},1002,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149555,7 +149936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNSVGRenderableModule'); -},1000,[18]); +},1003,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149718,7 +150099,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: null }), instance); } -},1001,[3,22,1002,1004,1006,1010,1003,993]); +},1004,[3,22,1005,1007,1009,1013,1006,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149762,7 +150143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.fillRule = fillRule && fillRules[fillRule] === 0 ? 0 : 1; } } -},1002,[3,998,1003,18]); +},1005,[3,1001,1006,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149773,7 +150154,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var value = typeof opacity === 'string' && opacity.trim().endsWith('%') ? +opacity.slice(0, -1) / 100 : +opacity; return isNaN(value) || value > 1 ? 1 : Math.max(value, 0); } -},1003,[]); +},1006,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149861,7 +150242,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.vectorEffect = vectorEffect && vectorEffects[vectorEffect] || 0; } } -},1004,[3,998,1003,1005]); +},1007,[3,1001,1006,1008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149881,7 +150262,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return []; } } -},1005,[]); +},1008,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150066,7 +150447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return props.transform; } -},1006,[1007,1008,1009]); +},1009,[1010,1011,1012]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150176,7 +150557,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasInitialState = false; } } -},1007,[]); +},1010,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -151901,7 +152282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SyntaxError: peg$SyntaxError, parse: peg$parse }; -},1008,[]); +},1011,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -153268,7 +153649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SyntaxError: peg$SyntaxError, parse: peg$parse }; -},1009,[22]); +},1012,[22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153322,7 +153703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.responsible = true; } } -},1010,[18]); +},1013,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153374,7 +153755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); ClipPath.displayName = 'ClipPath'; -},1011,[3,6,7,11,13,14,16,996,962,179,1001]); +},1014,[3,6,7,11,13,14,16,999,965,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153423,7 +153804,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Defs.displayName = 'Defs'; -},1012,[3,6,7,11,13,14,16,963,179]); +},1015,[3,6,7,11,13,14,16,966,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153493,7 +153874,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rx: 0, ry: 0 }; -},1013,[3,6,7,11,13,14,16,996,964,1001,179]); +},1016,[3,6,7,11,13,14,16,999,967,1004,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153566,7 +153947,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},1014,[3,6,7,11,13,14,16,1015,965,179,1001]); +},1017,[3,6,7,11,13,14,16,1018,968,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153663,7 +154044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }; -},1015,[3,6,7,11,13,14,16,1001,1006,996,966,1016,179]); +},1018,[3,6,7,11,13,14,16,1004,1009,999,969,1019,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153798,7 +154179,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotate: (0, _extractLengthList.default)(rotate) }; } -},1016,[16,3,1005,993,179]); +},1019,[16,3,1008,996,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153887,7 +154268,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 0, preserveAspectRatio: 'xMidYMid meet' }; -},1017,[3,6,7,11,13,14,16,18,996,967,1018,179,1001]); +},1020,[3,6,7,11,13,14,16,18,999,970,1021,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153933,7 +154314,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e meetOrSlice: meetOrSliceTypes[meetOrSlice] || 0 }; } -},1018,[]); +},1021,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154003,7 +154384,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x2: 0, y2: 0 }; -},1019,[3,6,7,11,13,14,16,996,969,1001,179]); +},1022,[3,6,7,11,13,14,16,999,972,1004,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154075,7 +154456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x2: '100%', y2: '0%' }; -},1020,[3,6,7,11,13,14,16,1021,996,968,179]); +},1023,[3,6,7,11,13,14,16,1024,999,971,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154180,7 +154561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gradientTransform: (0, _extractTransform.default)(gradientTransform || transform || props) }; } -},1021,[16,18,3,1003,1006,1022]); +},1024,[16,18,3,1006,1009,1025]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154192,7 +154573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = units; -},1022,[]); +},1025,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154280,7 +154661,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e markerHeight: 3, markerUnits: 'strokeWidth' }; -},1023,[3,6,7,11,13,14,16,1018,996,970,179]); +},1026,[3,6,7,11,13,14,16,1021,999,973,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154361,7 +154742,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},1024,[3,6,7,11,13,14,16,1022,996,971,1025,179,1001]); +},1027,[3,6,7,11,13,14,16,1025,999,974,1028,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154371,7 +154752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e luminance: 0, alpha: 1 }; -},1025,[]); +},1028,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154429,7 +154810,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Path.displayName = 'Path'; -},1026,[3,6,7,11,13,14,16,996,972,1001,179]); +},1029,[3,6,7,11,13,14,16,999,975,1004,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154524,7 +154905,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},1027,[3,6,7,11,13,14,16,1006,1018,1022,996,973,179]); +},1030,[3,6,7,11,13,14,16,1009,1021,1025,999,976,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154600,7 +154981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Polygon.defaultProps = { points: '' }; -},1028,[3,6,7,11,13,14,16,1026,996,1029,179]); +},1031,[3,6,7,11,13,14,16,1029,999,1032,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154611,7 +154992,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var polyPoints = Array.isArray(points) ? points.join(',') : points; return polyPoints.replace(/[^eE]-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' '); } -},1029,[]); +},1032,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154687,7 +155068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Polyline.defaultProps = { points: '' }; -},1030,[3,6,7,11,13,14,16,1026,996,1029,179]); +},1033,[3,6,7,11,13,14,16,1029,999,1032,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154765,7 +155146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cy: '50%', r: '50%' }; -},1031,[3,6,7,11,13,14,16,1021,996,974,179]); +},1034,[3,6,7,11,13,14,16,1024,999,977,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154839,7 +155220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 0, height: 0 }; -},1032,[3,6,7,11,13,14,16,996,975,179,1001]); +},1035,[3,6,7,11,13,14,16,999,978,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154895,7 +155276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Stop.displayName = 'Stop'; -},1033,[3,6,7,11,13,14,16]); +},1036,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155135,7 +155516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Svg.defaultProps = { preserveAspectRatio: 'xMidYMid meet' }; -},1034,[3,22,4,6,7,11,13,14,16,18,1010,1018,996,1015,976,977,1003,1035,1006,179]); +},1037,[3,22,4,6,7,11,13,14,16,18,1013,1021,999,1018,979,980,1006,1038,1009,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155145,7 +155526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNSVGSvgViewModule'); -},1035,[18]); +},1038,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155208,7 +155589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Symbol.displayName = 'Symbol'; -},1036,[3,6,7,11,13,14,16,1018,996,978,179]); +},1039,[3,6,7,11,13,14,16,1021,999,981,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155290,7 +155671,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TSpan.displayName = 'TSpan'; (0, _extractText.setTSpan)(TSpan); -},1037,[3,6,7,11,13,14,16,1001,1006,1016,996,981,993,179]); +},1040,[3,6,7,11,13,14,16,1004,1009,1019,999,984,996,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155373,7 +155754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Text.displayName = 'Text'; -},1038,[3,6,7,11,13,14,16,1016,1001,1006,996,1037,979,993,179]); +},1041,[3,6,7,11,13,14,16,1019,1004,1009,999,1040,982,996,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155487,7 +155868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); TextPath.displayName = 'TextPath'; -},1039,[3,4,6,7,11,13,14,16,1006,1016,996,1037,980,993,1001,179]); +},1042,[3,4,6,7,11,13,14,16,1009,1019,999,1040,983,996,1004,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155571,7 +155952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 0, height: 0 }; -},1040,[3,6,7,11,13,14,16,996,982,993,179,1001]); +},1043,[3,6,7,11,13,14,16,999,985,996,179,1004]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155615,7 +155996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeBlend = FeBlend; FeBlend.displayName = 'FeBlend'; FeBlend.defaultProps = Object.assign({}, _FeBlend.defaultPrimitiveProps); -},1041,[3,6,7,11,13,14,992,993]); +},1044,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155675,7 +156056,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e type: 'matrix', values: '' }); -},1042,[3,6,7,11,13,14,16,984,992,179,1043]); +},1045,[3,6,7,11,13,14,16,987,995,179,1046]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155778,7 +156159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nodes: nodes }; }; -},1043,[3,16]); +},1046,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155822,7 +156203,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeComponentTransfer = FeComponentTransfer; FeComponentTransfer.displayName = 'FeComponentTransfer'; FeComponentTransfer.defaultProps = Object.assign({}, _FeComponentTransfer.defaultPrimitiveProps); -},1044,[3,6,7,11,13,14,992,993]); +},1047,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155866,7 +156247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeComposite = FeComposite; FeComposite.displayName = 'FeComposite'; FeComposite.defaultProps = Object.assign({}, _FeComposite.defaultPrimitiveProps); -},1045,[3,6,7,11,13,14,992,993]); +},1048,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155910,7 +156291,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeConvolveMatrix = FeConvolveMatrix; FeConvolveMatrix.displayName = 'FeConvolveMatrix'; FeConvolveMatrix.defaultProps = Object.assign({}, _FeConvolveMatrix.defaultPrimitiveProps); -},1046,[3,6,7,11,13,14,992,993]); +},1049,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155954,7 +156335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDiffuseLighting = FeDiffuseLighting; FeDiffuseLighting.displayName = 'FeDiffuseLighting'; FeDiffuseLighting.defaultProps = Object.assign({}, _FeDiffuseLighting.defaultPrimitiveProps); -},1047,[3,6,7,11,13,14,992,993]); +},1050,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155998,7 +156379,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDisplacementMap = FeDisplacementMap; FeDisplacementMap.displayName = 'FeDisplacementMap'; FeDisplacementMap.defaultProps = Object.assign({}, _FeDisplacementMap.defaultPrimitiveProps); -},1048,[3,6,7,11,13,14,992,993]); +},1051,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156039,7 +156420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FeDistantLight.displayName = 'FeDistantLight'; FeDistantLight.defaultProps = {}; -},1049,[3,6,7,11,13,14,16,993]); +},1052,[3,6,7,11,13,14,16,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156083,7 +156464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDropShadow = FeDropShadow; FeDropShadow.displayName = 'FeDropShadow'; FeDropShadow.defaultProps = Object.assign({}, _FeDropShadow.defaultPrimitiveProps); -},1050,[3,6,7,11,13,14,992,993]); +},1053,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156127,7 +156508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeFlood = FeFlood; FeFlood.displayName = 'FeFlood'; FeFlood.defaultProps = Object.assign({}, _FeFlood.defaultPrimitiveProps); -},1051,[3,6,7,11,13,14,992,993]); +},1054,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156187,7 +156568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e stdDeviation: 0, edgeMode: 'none' }); -},1052,[3,6,7,11,13,14,16,985,992,179,1043]); +},1055,[3,6,7,11,13,14,16,988,995,179,1046]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156231,7 +156612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeImage = FeImage; FeImage.displayName = 'FeImage'; FeImage.defaultProps = Object.assign({}, _FeImage.defaultPrimitiveProps); -},1053,[3,6,7,11,13,14,992,993]); +},1056,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156288,7 +156669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeMerge = FeMerge; FeMerge.displayName = 'FeMerge'; FeMerge.defaultProps = Object.assign({}, _FeMerge.defaultPrimitiveProps); -},1054,[3,6,7,11,13,14,16,986,992,179,1043]); +},1057,[3,6,7,11,13,14,16,989,995,179,1046]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156344,7 +156725,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_FilterPrimitive2.default); FeMergeNode.displayName = 'FeMergeNode'; -},1055,[3,6,7,11,13,14,992]); +},1058,[3,6,7,11,13,14,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156388,7 +156769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeMorphology = FeMorphology; FeMorphology.displayName = 'FeMorphology'; FeMorphology.defaultProps = Object.assign({}, _FeMorphology.defaultPrimitiveProps); -},1056,[3,6,7,11,13,14,992,993]); +},1059,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156448,7 +156829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e dx: 0, dy: 0 }); -},1057,[3,6,7,11,13,14,16,987,992,179,1043]); +},1060,[3,6,7,11,13,14,16,990,995,179,1046]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156489,7 +156870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FePointLight.displayName = 'FePointLight'; FePointLight.defaultProps = {}; -},1058,[3,6,7,11,13,14,16,993]); +},1061,[3,6,7,11,13,14,16,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156533,7 +156914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeSpecularLighting = FeSpecularLighting; FeSpecularLighting.displayName = 'FeSpecularLighting'; FeSpecularLighting.defaultProps = Object.assign({}, _FeSpecularLighting.defaultPrimitiveProps); -},1059,[3,6,7,11,13,14,992,993]); +},1062,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156574,7 +156955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FeSpotLight.displayName = 'FeSpotLight'; FeSpotLight.defaultProps = {}; -},1060,[3,6,7,11,13,14,16,993]); +},1063,[3,6,7,11,13,14,16,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156618,7 +156999,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeTile = FeTile; FeTile.displayName = 'FeTile'; FeTile.defaultProps = Object.assign({}, _FeTile.defaultPrimitiveProps); -},1061,[3,6,7,11,13,14,992,993]); +},1064,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156662,7 +157043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeTurbulence = FeTurbulence; FeTurbulence.displayName = 'FeTurbulence'; FeTurbulence.defaultProps = Object.assign({}, _FeTurbulence.defaultPrimitiveProps); -},1062,[3,6,7,11,13,14,992,993]); +},1065,[3,6,7,11,13,14,995,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156742,7 +157123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filterUnits: 'objectBoundingBox', primitiveUnits: 'userSpaceOnUse' }; -},1063,[3,6,7,11,13,14,16,983,996,179]); +},1066,[3,6,7,11,13,14,16,986,999,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156796,8 +157177,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _fetchUriData.apply(this, arguments); } -},1064,[3,270,18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1065,[]); +},1067,[3,270,18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1068,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156811,7 +157192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.icCommonProps = icCommonProps; -},1066,[1067]); +},1069,[1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157262,7 +157643,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ColorUtils; -},1067,[3,6,7]); +},1070,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157336,7 +157717,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = ErrorIcon; exports.default = _default; -},1068,[3,16,582,18,953,1069,1070,1071,1072,1067]); +},1071,[3,16,582,18,956,1072,1073,1074,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157356,7 +157737,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcInfo; exports.default = _default; -},1069,[3,16,956]); +},1072,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157376,7 +157757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcWarning; exports.default = _default; -},1070,[3,16,956]); +},1073,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157396,7 +157777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcError; exports.default = _default; -},1071,[3,16,956]); +},1074,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157483,7 +157864,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.CssHelper = CssHelper; -},1072,[3,16,818]); +},1075,[3,16,821]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157503,7 +157884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TaText.propTypes = (0, _extends2.default)({}, _reactNative.TextProps); var _default = TaText; exports.default = _default; -},1073,[3,591,16,18]); +},1076,[3,591,16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157520,7 +157901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCloseCircleOutline; exports.default = _default; -},1074,[3,16,956]); +},1077,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157687,7 +158068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.commonStyles = commonStyles; -},1075,[3,591,18,1067]); +},1078,[3,591,18,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157825,7 +158206,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e refs: {} } }); -},1076,[3,6,7,936,937,939]); +},1079,[3,6,7,939,940,942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158206,7 +158587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RoutesHelper; exports.default = _default; -},1077,[3,22,591,6,7,1078,1199,1201,1202,1204,1205,1206,1207,949,1208,942,1085]); +},1080,[3,22,591,6,7,1081,1202,1204,1205,1207,1208,1209,1210,952,1211,945,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158372,14 +158753,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function apiParams() { var _classPrivateFieldLoo3; - return (_classPrivateFieldLoo3 = (0, _classPrivateFieldLooseBase2.default)(LiveConfig, _get)[_get]("apiParams")) != null ? _classPrivateFieldLoo3 : ""; + return (_classPrivateFieldLoo3 = (0, _classPrivateFieldLooseBase2.default)(LiveConfig, _get)[_get]("apiParams")) != null ? _classPrivateFieldLoo3 : {}; + } + }, { + key: "isDebug", + value: function isDebug() { + var _LiveConfig$apiParams = LiveConfig.apiParams(), + _LiveConfig$apiParams2 = _LiveConfig$apiParams.isDebug, + isDebug = _LiveConfig$apiParams2 === undefined ? false : _LiveConfig$apiParams2; + + return isDebug; } }, { key: "urlParams", value: function urlParams() { var _classPrivateFieldLoo4; - return (_classPrivateFieldLoo4 = (0, _classPrivateFieldLooseBase2.default)(LiveConfig, _get)[_get]("urlParams")) != null ? _classPrivateFieldLoo4 : ""; + return (_classPrivateFieldLoo4 = (0, _classPrivateFieldLooseBase2.default)(LiveConfig, _get)[_get]("urlParams")) != null ? _classPrivateFieldLoo4 : {}; } }, { key: "setUrlParams", @@ -158525,7 +158915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: {} }); -},1078,[3,591,6,7,936,937,18,1067,1079,1083,1196,944,1072,1198,942,1075]); +},1081,[3,591,6,7,939,940,18,1070,1082,1086,1199,947,1075,1201,945,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158606,68 +158996,77 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _log.default.debug("Initializing locale: " + language + ", fileTime: " + customLanguagePackFileTime); - (0, _classPrivateFieldLooseBase2.default)(this, _language)[_language] = language; - - (0, _classPrivateFieldLooseBase2.default)(this, _initLocale)[_initLocale](); + this.initI18n(pSetup); _localeHelper.default.setStorageName(paper); - _context.next = 8; + _context.next = 7; return _regenerator.default.awrap(_localeHelper.default.getLanguagePack()); - case 8: + case 7: languagePack = _context.sent; - _context.next = 11; + _context.next = 10; return _regenerator.default.awrap(_localeHelper.default.getFiletime()); - case 11: + case 10: lastCustomLanguagePackFileTime = _context.sent; if (!(_network.default.isOnline() && customLanguagePackFileTime > -1 && customLanguagePackFileTime > lastCustomLanguagePackFileTime)) { - _context.next = 25; + _context.next = 24; break; } - _context.prev = 13; + _context.prev = 12; _log.default.debug("Downloading new language pack"); - _context.next = 17; + _context.next = 16; return _regenerator.default.awrap((0, _$$_REQUIRE(_dependencyMap[12]).getLanguagePack)()); - case 17: + case 16: languagePack = _context.sent; - _context.next = 23; + _context.next = 22; break; - case 20: - _context.prev = 20; - _context.t0 = _context["catch"](13); + case 19: + _context.prev = 19; + _context.t0 = _context["catch"](12); _log.default.warn(_context.t0.message); - case 23: - _context.next = 26; + case 22: + _context.next = 25; break; - case 25: + case 24: if (customLanguagePackFileTime === -1) { languagePack = {}; } - case 26: + case 25: (0, _classPrivateFieldLooseBase2.default)(this, _locale)[_locale] = (0, _extends2.default)({}, languagePack, languagePackOverride); _localeHelper.default.setFiletime(customLanguagePackFileTime); _localeHelper.default.setLanguagePack((0, _classPrivateFieldLooseBase2.default)(this, _locale)[_locale]); - case 29: + case 28: case "end": return _context.stop(); } } - }, null, this, [[13, 20]], Promise); + }, null, this, [[12, 19]], Promise); + } + }, { + key: "initI18n", + value: function initI18n(pSetup) { + var language = pSetup.language; + + _log.default.debug("Initializing i18n: " + language); + + (0, _classPrivateFieldLooseBase2.default)(this, _language)[_language] = language; + + (0, _classPrivateFieldLooseBase2.default)(this, _initLocale)[_initLocale](); } }, { key: "date", @@ -158725,7 +159124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = LocaleConfig; exports.default = _default; -},1079,[3,933,591,6,7,936,937,1080,949,1081,939,1083,935,1178]); +},1082,[3,936,591,6,7,939,940,1083,952,1084,942,1086,938,1181]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158841,7 +159240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = DateUtils; -},1080,[3,6,7,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531]); +},1083,[3,6,7,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -159021,7 +159420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filetime: "filetime" } }; -},1081,[3,933,6,7,1082]); +},1084,[3,936,6,7,1085]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -159353,7 +159752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: new _promiseQueue.default(1, Infinity) }); -},1082,[3,933,6,7,936,937,535,541,939]); +},1085,[3,936,6,7,939,940,535,541,942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -159433,6 +159832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.sortingTabs = []; this.newsstandTabs = []; this.orderNewsstandTabs = []; + this.showSearchArchiveIcon = false; this.xpaperUniversalLinks = {}; this.remapEdition = {}; (0, _classPrivateFieldLooseBase2.default)(this, _pSetup)[_pSetup] = pSetup; @@ -159786,23 +160186,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + _context2.next = 144; + return _regenerator.default.awrap((0, _classPrivateFieldLooseBase2.default)(this, _getValue)[_getValue](keys.show_search_archive_icon)); + + case 144: + _context2.t28 = _context2.sent; + this.showSearchArchiveIcon = _context2.t28 === "1"; return _context2.abrupt("return", true); - case 145: - _context2.prev = 145; - _context2.t28 = _context2["catch"](1); + case 149: + _context2.prev = 149; + _context2.t29 = _context2["catch"](1); - _log.default.warn(_context2.t28.message); + _log.default.warn(_context2.t29.message); - case 148: + case 152: return _context2.abrupt("return", false); - case 149: + case 153: case "end": return _context2.stop(); } } - }, null, this, [[1, 145], [64, 72], [76, 83], [86, 94], [97, 105], [108, 116], [120, 127]], Promise); + }, null, this, [[1, 149], [64, 72], [76, 83], [86, 94], [97, 105], [108, 116], [120, 127]], Promise); } }]); return PaperSetupConfig; @@ -159865,7 +160271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, null, this, null, Promise); } -},1083,[3,933,591,6,7,936,937,1084,944,939,1082,935,1085]); +},1086,[3,936,591,6,7,939,940,1087,947,942,1085,938,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -159945,12 +160351,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e xpaper_universal_links: "xpaperUniversalLinks", remap_edition: "remapEdition", show_multi_editions_flat: "showMultiEditionsFlat", - hide_favorites_modal: "hideFavoritesModal" + hide_favorites_modal: "hideFavoritesModal", + show_search_archive_icon: "showSearchArchiveIcon" } }; var _default = PaperSetupHelper; exports.default = _default; -},1084,[3,933,6,7,1082]); +},1087,[3,936,6,7,1085]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160076,7 +160483,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function navigateToValidation() { navigate(TABS.VALIDATION); } -},1085,[3,1086]); +},1088,[3,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160172,7 +160579,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationConfig.state = undefined; var _default = NavigationConfig; exports.default = _default; -},1086,[3,6,7,1087]); +},1089,[3,6,7,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160302,7 +160709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1087,[3,1088,1161,1171,1173,1162,1163,1174,1175,1176,1089,1091,1177,1092]); +},1090,[3,1091,1164,1174,1176,1165,1166,1177,1178,1179,1092,1094,1180,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160349,7 +160756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }))); } -},1088,[3,4,16,18,1089]); +},1091,[3,4,16,18,1092]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160440,7 +160847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: onPress }; } -},1089,[16,18,3,1090,1091,1092]); +},1092,[16,18,3,1093,1094,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160459,7 +160866,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LinkingContext.displayName = 'LinkingContext'; var _default = exports.default = LinkingContext; -},1090,[16]); +},1093,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160508,7 +160915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [linking, navigation]); return linkTo; } -},1091,[16,3,1090,1092]); +},1094,[16,3,1093,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160728,7 +161135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1092,[3,1093,1109,1119,1122,1097,1123,1124,1126,1134,1099,1100,1136,1101,1137,1138,1140,1139,1141,1158,1159,1160,1133,1110]); +},1095,[3,1096,1112,1122,1125,1100,1126,1127,1129,1137,1102,1103,1139,1104,1140,1141,1143,1142,1144,1161,1162,1163,1136,1113]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161078,7 +161485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = BaseNavigationContainer; -},1093,[3,33,4,16,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,179,1118]); +},1096,[3,33,4,16,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,179,1121]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161109,7 +161516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return duplicates; } -},1094,[]); +},1097,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161169,7 +161576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function checkSerializable(o) { return _checkSerializableWithoutCircularReference(o, new Set(), []); } -},1095,[3,22]); +},1098,[3,22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161216,7 +161623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children }); } -},1096,[16,179]); +},1099,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161237,7 +161644,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var route = (_current2 = current) == null ? undefined : _current2.routes[(_current$index3 = (_current3 = current) == null ? undefined : _current3.index) != null ? _current$index3 : 0]; return route; } -},1097,[]); +},1100,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161260,7 +161667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = NavigationBuilderContext; -},1098,[16]); +},1101,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161276,7 +161683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContainerRefContext = React.createContext(undefined); var _default = exports.default = NavigationContainerRefContext; -},1099,[16]); +},1102,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161292,7 +161699,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContext = React.createContext(undefined); var _default = exports.default = NavigationContext; -},1100,[16]); +},1103,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161308,7 +161715,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationRouteContext = React.createContext(undefined); var _default = exports.default = NavigationRouteContext; -},1101,[16]); +},1104,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161347,7 +161754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); -},1102,[16]); +},1105,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161363,7 +161770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var UnhandledActionContext = React.createContext(undefined); var _default = exports.default = UnhandledActionContext; -},1103,[16]); +},1106,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161395,7 +161802,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e addListener: addListener }; } -},1104,[16]); +},1107,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161511,7 +161918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [create, emit]); } -},1105,[3,22,16]); +},1108,[3,22,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161542,7 +161949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e addKeyedListener: addKeyedListener }; } -},1106,[16]); +},1109,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161637,7 +162044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getCurrentOptions: getCurrentOptions }; } -},1107,[16,3,1098,1102]); +},1110,[16,3,1101,1105]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161713,7 +162120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e React.useDebugValue(state); return [state, getState, setState, scheduleUpdate, flushUpdates]; } -},1108,[3,33,16]); +},1111,[3,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161809,7 +162216,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, {})); return ref; } -},1109,[3,33,22,1110]); +},1112,[3,33,22,1113]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161895,7 +162302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -},1110,[1111,3,1112,1114,1116,1115,1117]); +},1113,[1114,3,1115,1117,1119,1118,1120]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161949,7 +162356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } -},1111,[]); +},1114,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162016,7 +162423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = BaseRouter; -},1112,[1113]); +},1115,[1116]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162050,7 +162457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return id; }; -},1113,[]); +},1116,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162232,7 +162639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e actionCreators: DrawerActions }); } -},1114,[3,22,4,1115,1113]); +},1117,[3,22,4,1118,1116]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162512,7 +162919,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return router; } -},1115,[3,1112,1113]); +},1118,[3,1115,1116]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162846,8 +163253,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return router; } -},1116,[3,22,1112,1113]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1117,[]); +},1119,[3,22,1115,1116]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1120,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162879,7 +163286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleUpdate(callback); React.useEffect(flushUpdates); } -},1118,[16]); +},1121,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162903,7 +163310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; } -},1119,[3,1120,1121]); +},1122,[3,1123,1124]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162913,7 +163320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function Group(_) { return null; } -},1120,[]); +},1123,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162923,7 +163330,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function Screen(_) { return null; } -},1121,[]); +},1124,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162939,7 +163346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var CurrentRenderContext = React.createContext(undefined); var _default = exports.default = CurrentRenderContext; -},1122,[16]); +},1125,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163042,7 +163449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); }; -},1123,[3,33]); +},1126,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163057,7 +163464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var routeName = state ? state.routes[(_state$index = state.index) != null ? _state$index : typeof state.type === 'string' && state.type !== 'stack' ? 0 : state.routes.length - 1].name : typeof (params == null ? undefined : params.screen) === 'string' ? params.screen : undefined; return routeName; } -},1124,[1125]); +},1127,[1128]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163105,7 +163512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, new Map()); return Array.from(cache.current.values()); } -},1125,[3,4,16]); +},1128,[3,4,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163332,7 +163739,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [name, result]; })); }; -},1126,[3,22,33,1127,1132,1133]); +},1129,[3,22,33,1130,1135,1136]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -163808,7 +164215,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return exports.pick(input, exclusionFilter, options); }; -},1127,[22,1128,1129,1130,33,240,1131]); +},1130,[22,1131,1132,1133,33,240,1134]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -163817,7 +164224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return "%" + x.charCodeAt(0).toString(16).toUpperCase(); }); }; -},1128,[]); +},1131,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -163899,7 +164306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return customDecodeURIComponent(encodedURI); } }; -},1129,[]); +},1132,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -163920,7 +164327,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [string.slice(0, separatorIndex), string.slice(separatorIndex + separator.length)]; }; -},1130,[]); +},1133,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -163940,7 +164347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ret; }; -},1131,[]); +},1134,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163963,7 +164370,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); } -},1132,[3,33]); +},1135,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164006,7 +164413,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},1133,[3,33]); +},1136,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164439,7 +164846,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Object.keys(params).length ? params : undefined; }; -},1134,[3,240,22,1135,1127,1097,1133]); +},1137,[3,240,22,1138,1130,1100,1136]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -164450,7 +164857,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d'); }; -},1135,[]); +},1138,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164466,7 +164873,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationHelpersContext = React.createContext(undefined); var _default = exports.default = NavigationHelpersContext; -},1136,[16]); +},1139,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164480,7 +164887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var PrivateValueStore = exports.PrivateValueStore = (0, _createClass2.default)(function PrivateValueStore() { (0, _classCallCheck2.default)(this, PrivateValueStore); }); -},1137,[3,7,6]); +},1140,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164550,7 +164957,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [effect, navigation]); } -},1138,[16,3,1139]); +},1141,[16,3,1142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164577,7 +164984,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return navigation != null ? navigation : root; } -},1139,[16,3,1099,1100]); +},1142,[16,3,1102,1103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164625,7 +165032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e React.useDebugValue(valueToReturn); return valueToReturn; } -},1140,[3,33,16,1139]); +},1143,[3,33,16,1142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165048,7 +165455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationContent: NavigationContent }; } -},1141,[3,33,240,4,22,16,1120,1142,1143,1136,1101,1102,1121,1104,1144,1145,1146,1105,1150,1151,1106,1152,1153,1155,1156,1157,1118,1137,1110]); +},1144,[3,33,240,4,22,16,1123,1145,1146,1139,1104,1105,1124,1107,1147,1148,1149,1108,1153,1154,1109,1155,1156,1158,1159,1160,1121,1140,1113]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165068,7 +165475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return it === b[index]; }); } -},1142,[]); +},1145,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165091,7 +165498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return a[key] === b[key]; }); } -},1143,[]); +},1146,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165120,7 +165527,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[1]).jsx)(Component, Object.assign({}, props, rest)); }).current; } -},1144,[16,179]); +},1147,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165145,7 +165552,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e current.options = descriptors[state.routes[state.index].key].options; } } -},1145,[16,3,1122]); +},1148,[16,3,1125]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165285,7 +165692,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); } -},1146,[3,4,22,33,16,1098,1100,1101,1147,1149,1125,179]); +},1149,[3,4,22,33,16,1101,1103,1104,1150,1152,1128,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165388,7 +165795,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},1147,[16,3,1096,1102,1148,1107,179]); +},1150,[16,3,1099,1105,1151,1110,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165425,7 +165832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; }); -},1148,[16]); +},1151,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165530,7 +165937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, {}); return cache.current; } -},1149,[3,240,4,16,1098,1110]); +},1152,[3,240,4,16,1101,1113]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165582,7 +165989,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return addListener == null ? undefined : addListener('focus', listener); }, [addListener, listener]); } -},1150,[16,3,1098]); +},1153,[16,3,1101]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165650,7 +166057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }, [currentFocusedKey, emitter, navigation]); } -},1151,[16,3,1100]); +},1154,[16,3,1103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165715,7 +166122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }, [emitter.emit, getState, onAction, onUnhandledAction, parentNavigationHelpers, router]); } -},1152,[16,3,1100,1103,1137,1110]); +},1155,[16,3,1103,1106,1140,1113]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165817,7 +166224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [addListenerParent, onAction]); return onAction; } -},1153,[16,3,1098,1154]); +},1156,[16,3,1101,1157]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165901,7 +166308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [addKeyedListener, beforeRemoveListeners, emitter, getState, routeKey]); } -},1154,[3,240,16,1098,1101]); +},1157,[3,240,16,1101,1104]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165957,7 +166364,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return addKeyedListener == null ? undefined : addKeyedListener('getState', key, getRehydratedState); }, [addKeyedListener, getRehydratedState, key]); } -},1155,[16,3,1142,1098,1101]); +},1158,[16,3,1145,1101,1104]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -165994,7 +166401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [getState, onRouteFocusParent, router, setState, sourceRouteKey]); } -},1156,[16,3,1098]); +},1159,[16,3,1101]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166032,7 +166439,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [container, key]); return key; } -},1157,[3,33,16,1113,1096]); +},1160,[3,33,16,1116,1099]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166056,7 +166463,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return navigation.current; } -},1158,[16,3,1109]); +},1161,[16,3,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166094,7 +166501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [navigation]); return selector(navigation.getState()); } -},1159,[3,33,16,1139]); +},1162,[3,33,16,1142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166118,7 +166525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return route; } -},1160,[16,3,1101]); +},1163,[16,3,1104]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166241,7 +166648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContainer = React.forwardRef(NavigationContainerInner); var _default = exports.default = NavigationContainer; -},1161,[3,33,4,16,1090,1162,1163,1165,1166,1167,1170,1092,179]); +},1164,[3,33,4,16,1093,1165,1166,1168,1169,1170,1173,1095,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166260,7 +166667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DefaultTheme; -},1162,[]); +},1165,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166283,7 +166690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children }); } -},1163,[16,3,1164,179]); +},1166,[16,3,1167,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166302,7 +166709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ThemeContext.displayName = 'ThemeContext'; var _default = exports.default = ThemeContext; -},1164,[16,3,1162]); +},1167,[16,3,1165]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166339,7 +166746,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [ref]); } -},1165,[16,18]); +},1168,[16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166347,7 +166754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = useDocumentTitle; function useDocumentTitle() {} -},1166,[]); +},1169,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166516,7 +166923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getInitialState: getInitialState }; } -},1167,[16,18,3,1168,1092]); +},1170,[16,18,3,1171,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166543,7 +166950,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; } -},1168,[3,1169]); +},1171,[3,1172]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -166554,7 +166961,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d'); }; -},1169,[]); +},1172,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166620,7 +167027,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [promise, resolved]); return state; } -},1170,[3,270,33,16]); +},1173,[3,270,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166667,7 +167074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); }); -},1171,[16,3,1172,179,1092]); +},1174,[16,3,1175,179,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166683,7 +167090,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ServerContext = React.createContext(undefined); var _default = exports.default = ServerContext; -},1172,[16]); +},1175,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166702,7 +167109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DarkTheme; -},1173,[]); +},1176,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166721,8 +167128,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var theme = React.useContext(_ThemeContext.default); return theme; } -},1174,[16,3,1164]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1175,[]); +},1177,[16,3,1167]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1178,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166781,7 +167188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [linking, navigation]); return buildLink; } -},1176,[16,3,1090,1092]); +},1179,[16,3,1093,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166856,7 +167263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return unsubscribe; }, [navigation, ref, route.key]); } -},1177,[16,1092]); +},1180,[16,1095]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166945,7 +167352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function i18nTxt(name, params) { return _i18nJs.default.t(name, params); } -},1178,[3,591,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195]); +},1181,[3,591,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -167762,7 +168169,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e I18n.p = I18n.pluralize.bind(I18n); return I18n; }); -},1179,[]); +},1182,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -167787,7 +168194,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Downloaded" } ; -},1180,[]); +},1183,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -167812,7 +168219,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Scaricati" } ; -},1181,[]); +},1184,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "أقسام خاصة", @@ -167837,7 +168244,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "تم التنزيل" } ; -},1182,[]); +},1185,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Særlige sektioner", @@ -167862,7 +168269,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Downloadet" } ; -},1183,[]); +},1186,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Prospekte", @@ -167887,7 +168294,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Heruntergeladen" } ; -},1184,[]); +},1187,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Section Spéciale", @@ -167912,7 +168319,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Téléchargé" } ; -},1185,[]); +},1188,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Speciale secties", @@ -167937,7 +168344,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "gedownload" } ; -},1186,[]); +},1189,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -167962,7 +168369,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "descargado" } ; -},1187,[]); +},1190,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Secțiuni speciale", @@ -167987,7 +168394,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Descărcat" } ; -},1188,[]); +},1191,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Särskilda avsnitt", @@ -168012,7 +168419,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Nedladdat" } ; -},1189,[]); +},1192,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -168037,7 +168444,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "baixado" } ; -},1190,[]); +},1193,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -168062,7 +168469,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "baixado" } ; -},1191,[]); +},1194,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Speciale secties", @@ -168087,7 +168494,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "gedownload" } ; -},1192,[]); +},1195,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Spesielle seksjoner", @@ -168111,7 +168518,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_month_names_short": "Jan,feb,mars,apr,mai,jun,jul,aug,sep,okt,nov,des" } ; -},1193,[]); +},1196,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Spesielle seksjoner", @@ -168136,7 +168543,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Lastet ned" } ; -},1194,[]); +},1197,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -168161,7 +168568,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Preneseno" } ; -},1195,[]); +},1198,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168401,7 +168808,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = UserConfig; exports.default = _default; -},1196,[3,933,6,7,936,937,16,939,1197]); +},1199,[3,936,6,7,939,940,16,942,1200]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168468,7 +168875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = UserHelper; exports.default = _default; -},1197,[3,933,6,7,1082]); +},1200,[3,936,6,7,1085]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168480,7 +168887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function init() { _log.default.log("Do nothing on native code"); } -},1198,[3,939]); +},1201,[3,942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168637,7 +169044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_publication.default); exports.default = Edition; -},1199,[3,6,7,12,14,11,13,936,937,1200]); +},1202,[3,6,7,12,14,11,13,939,940,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168847,7 +169254,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Publication; -},1200,[3,6,7,936,937,938]); +},1203,[3,6,7,939,940,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169010,7 +169417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Route; -},1201,[3,6,7,936,937]); +},1204,[3,6,7,939,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169116,7 +169523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeLabeled.default); exports.default = RouteAction; -},1202,[3,591,6,7,12,85,14,11,13,936,937,1203]); +},1205,[3,591,6,7,12,85,14,11,13,939,940,1206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169227,7 +169634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_route.default); exports.default = RouteLabeled; -},1203,[3,591,6,7,12,85,14,11,13,936,937,1201]); +},1206,[3,591,6,7,12,85,14,11,13,939,940,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169357,7 +169764,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_route.default); exports.default = RouteEdition; -},1204,[3,591,6,7,12,85,14,11,13,936,937,1199,1201]); +},1207,[3,591,6,7,12,85,14,11,13,939,940,1202,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169480,7 +169887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeEdition.default); exports.default = RouteEditionsDate; -},1205,[3,591,6,7,12,85,14,11,13,936,937,1204]); +},1208,[3,591,6,7,12,85,14,11,13,939,940,1207]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169604,7 +170011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteTabs; exports.default = _default; -},1206,[3,591,6,7,12,85,14,11,13,936,937,1201]); +},1209,[3,591,6,7,12,85,14,11,13,939,940,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169727,7 +170134,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeLabeled.default); exports.default = RouteUrl; -},1207,[3,591,6,7,12,85,14,11,13,936,937,1203]); +},1210,[3,591,6,7,12,85,14,11,13,939,940,1206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170277,7 +170684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionsHelper; exports.default = _default; -},1208,[3,478,22,6,7,936,937,1078,1199,938,1200,1209,1080,942]); +},1211,[3,478,22,6,7,939,940,1081,1202,941,1203,1212,1083,945]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170341,7 +170748,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_publication.default); exports.default = Special; -},1209,[3,7,6,14,11,13,1200]); +},1212,[3,7,6,14,11,13,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170406,7 +170813,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteSeparator; exports.default = _default; -},1210,[3,7,6,14,11,13,1201]); +},1213,[3,7,6,14,11,13,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170503,7 +170910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteHeader; exports.default = _default; -},1211,[3,6,7,12,14,11,13,936,937,1201]); +},1214,[3,6,7,12,14,11,13,939,940,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170627,7 +171034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Content; exports.default = _default; -},1212,[3,591,22,33,4,16,18,582,1201,1213,1078,1199,1072,1196]); +},1215,[3,591,22,33,4,16,18,582,1204,1216,1081,1202,1075,1199]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170816,9 +171223,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return function () { - if (onDimensionsChange) { - onDimensionsChange.remove(); - } + onDimensionsChange == null ? undefined : onDimensionsChange.remove(); }; }, []); var initialRouteName = initialRoute ? initialRoute.getRoute() : ""; @@ -170855,7 +171260,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e routes: routes, specials: specials, props: { - issueCallbacks: issueCallbacks + issueCallbacks: issueCallbacks, + hasArchive: routes.some(function (route) { + return route.getRoute() === _$$_REQUIRE(_dependencyMap[20]).TABS.ARCHIVE; + }) }, viewSize: windowDimensions })))); @@ -170879,7 +171287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerNavigator; exports.default = _default; -},1213,[3,33,22,591,16,18,582,1201,1214,1086,1306,1207,1314,1200,1206,1319,1322,1224,1087,1075]); +},1216,[3,33,22,591,16,18,582,1204,1217,1089,1309,1210,1317,1203,1209,1322,1325,1227,1090,1078,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171044,7 +171452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerContent; exports.default = _default; -},1214,[16,3,582,18,1201,1215,939,1210,1222,1204,1207,1211,1223,1206,951,1202,1076,1072,1224]); +},1217,[16,3,582,18,1204,1218,942,1213,1225,1207,1210,1214,1226,1209,954,1205,1079,1075,1227]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171204,7 +171612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DrawerItemWithState.propTypes = (0, _extends2.default)({}, DrawerItem.propTypes); var _default = DrawerItemWithState; exports.default = _default; -},1215,[3,591,33,16,582,1201,1216,1220,1221,1086,1087]); +},1218,[3,591,33,16,582,1204,1219,1223,1224,1089,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171471,7 +171879,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CollapseLine; exports.default = _default; -},1216,[3,22,33,16,582,18,1217,1078,1067,1072,1075]); +},1219,[3,22,33,16,582,18,1220,1081,1070,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171535,7 +171943,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CollapseAccordion; exports.default = _default; -},1217,[3,16,582,18,953,1218,1219,1072]); +},1220,[3,16,582,18,956,1221,1222,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171552,7 +171960,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcChevronDown; exports.default = _default; -},1218,[3,16,956]); +},1221,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171569,7 +171977,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcChevronUp; exports.default = _default; -},1219,[3,16,956]); +},1222,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171698,7 +172106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerItemLeft; exports.default = _default; -},1220,[3,16,582,18,1067,953,1073,1201,1078,1072]); +},1223,[3,16,582,18,1070,956,1076,1204,1081,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171715,7 +172123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},1221,[3,1201]); +},1224,[3,1204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171755,7 +172163,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerSeparator; exports.default = _default; -},1222,[3,16,582,18,1210,1067,1072]); +},1225,[3,16,582,18,1213,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171809,7 +172217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerHeader; exports.default = _default; -},1223,[3,16,582,18,1211,1073,1067,1072]); +},1226,[3,16,582,18,1214,1076,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171910,7 +172318,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _useDrawerProgress = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); var _useDrawerStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); -},1224,[3,1225,1231,1232,1234,1233,1268,1227,1272,1274,1230,1304,1305]); +},1227,[3,1228,1234,1235,1237,1236,1271,1230,1275,1277,1233,1307,1308]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172002,7 +172410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[5]).createNavigatorFactory)(DrawerNavigator); -},1225,[3,4,16,1226,1227,1087,179]); +},1228,[3,4,16,1229,1230,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DEV = false; var warnings = new Set(); @@ -172010,7 +172418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function warnOnce(condition) {} module.exports = warnOnce; -},1226,[]); +},1229,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172296,7 +172704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1227,[3,4,22,33,16,18,671,1228,1229,1230,1231,1268,1270,179,1273,1276,897,1087,1278,1244]); +},1230,[3,4,22,33,16,18,674,1231,1232,1233,1234,1271,1273,179,1276,1279,900,1090,1281,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172310,7 +172718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(undefined); -},1228,[16]); +},1231,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172326,7 +172734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var DrawerStatusContext = React.createContext(undefined); var _default = exports.default = DrawerStatusContext; -},1229,[16]); +},1232,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172345,7 +172753,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return (_ref = (_entry$status = entry == null ? undefined : entry.status) != null ? _entry$status : state.default) != null ? _ref : 'closed'; } -},1230,[]); +},1233,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172384,7 +172792,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, rest)) })); } -},1231,[3,4,16,1232,1233,179]); +},1234,[3,4,16,1235,1236,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172432,7 +172840,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1232,[3,4,16,18,1228,897,179]); +},1235,[3,4,16,18,1231,900,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172502,7 +172910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, route.key); }); } -},1233,[16,3,1234,1087,179]); +},1236,[16,3,1237,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172656,7 +173064,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e display: 'flex' } }); -},1234,[3,4,1235,16,18,179,1087,1244]); +},1237,[3,4,1238,16,18,179,1090,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -173078,7 +173486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = Color; -},1235,[1236,1240]); +},1238,[1239,1243]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var convert = {}; var models = Object.keys(_$$_REQUIRE(_dependencyMap[0])); @@ -173150,7 +173558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); module.exports = convert; -},1236,[1237,1239]); +},1239,[1240,1242]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reverseKeywords = {}; @@ -174029,7 +174437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; -},1237,[1238]); +},1240,[1241]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -174183,7 +174591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "yellow": [255, 255, 0], "yellowgreen": [154, 205, 50] }; -},1238,[]); +},1241,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function buildGraph() { var graph = {}; @@ -174264,7 +174672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return conversion; }; -},1239,[1237]); +},1242,[1240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var hasOwnProperty = Object.hasOwnProperty; var reverseNames = {}; @@ -174489,7 +174897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var str = Math.round(num).toString(16).toUpperCase(); return str.length < 2 ? '0' + str : str; } -},1240,[1241,1242]); +},1243,[1244,1245]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -174643,7 +175051,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "yellow": [255, 255, 0], "yellowgreen": [154, 205, 50] }; -},1241,[]); +},1244,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -174671,7 +175079,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fn(swizzle(arguments)); }; }; -},1242,[1243]); +},1245,[1246]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = function isArrayish(obj) { if (!obj || typeof obj === 'string') { @@ -174680,7 +175088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && (obj.splice instanceof Function || Object.getOwnPropertyDescriptor(obj, obj.length - 1) && obj.constructor.name !== 'String'); }; -},1243,[]); +},1246,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174846,7 +175254,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); var Assets = exports.Assets = [_$$_REQUIRE(_dependencyMap[18]), _$$_REQUIRE(_dependencyMap[19])]; -},1244,[3,1245,1246,1247,1248,1253,1260,1249,1261,1250,1252,1262,1263,1256,1264,1265,1266,1267,1257,1259]); +},1247,[3,1248,1249,1250,1251,1256,1263,1252,1264,1253,1255,1265,1266,1259,1267,1268,1269,1270,1260,1262]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174879,7 +175287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, style] })); } -},1245,[3,4,16,18,1087,179]); +},1248,[3,4,16,18,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174918,7 +175326,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return headerHeight + statusBarHeight; } -},1246,[18]); +},1249,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174928,7 +175336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getHeaderTitle(options, fallback) { return typeof options.headerTitle === 'string' ? options.headerTitle : options.title !== undefined ? options.title : fallback; } -},1247,[]); +},1250,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175171,7 +175579,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexBasis: 0 } }); -},1248,[3,4,16,18,1246,1249,1250,1252,897,179]); +},1251,[3,4,16,18,1249,1252,1253,1255,900,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175226,7 +175634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1249,[3,4,16,18,1087,179]); +},1252,[3,4,16,18,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175238,7 +175646,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderShownContext = (0, _getNamedContext.default)('HeaderShownContext', false); var _default = exports.default = HeaderShownContext; -},1250,[3,1251]); +},1253,[3,1254]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175268,7 +175676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global[contexts].set(name, context); return context; } -},1251,[16]); +},1254,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175323,7 +175731,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }) }); -},1252,[3,4,16,18,1087,179]); +},1255,[3,4,16,18,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175545,7 +175953,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] } }); -},1253,[3,33,16,18,1254,1256,1087,179,1257,1259]); +},1256,[3,33,16,18,1257,1259,1090,179,1260,1262]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175558,7 +175966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _MaskedViewNative = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); -},1254,[3,1255]); +},1257,[3,1258]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175580,7 +175988,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var RNCMaskedView; try { - RNCMaskedView = _$$_REQUIRE(_dependencyMap[4]).default; + RNCMaskedView = function () { + throw new Error("Cannot find module '@react-native-masked-view/masked-view'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/elements/src/noop.js"); + }().default; } catch (e) {} var isMaskedViewAvailable = _reactNative.UIManager.getViewManagerConfig('RNCMaskedView') != null; @@ -175590,14 +176000,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); if (isMaskedViewAvailable && RNCMaskedView) { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(RNCMaskedView, Object.assign({}, rest, { + return (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(RNCMaskedView, Object.assign({}, rest, { children: children })); } return children; } -},1255,[3,4,16,18,179]); +},1258,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175676,7 +176086,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, style] }, rest)); } -},1256,[3,33,4,16,18,1087,179]); +},1259,[3,33,4,16,18,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -175688,12 +176098,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "back-icon", "type": "png" }); -},1257,[1258]); +},1260,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = _$$_REQUIRE(_dependencyMap[0]); -},1258,[156]); +},1261,[156]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -175705,7 +176115,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "back-icon-mask", "type": "png" }); -},1259,[1258]); +},1262,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175717,7 +176127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderBackContext = (0, _getNamedContext.default)('HeaderBackContext', undefined); var _default = exports.default = HeaderBackContext; -},1260,[3,1251]); +},1263,[3,1254]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175729,7 +176139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderHeightContext = (0, _getNamedContext.default)('HeaderHeightContext', undefined); var _default = exports.default = HeaderHeightContext; -},1261,[3,1251]); +},1264,[3,1254]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175753,7 +176163,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return height; } -},1262,[16,3,1261]); +},1265,[16,3,1264]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175786,7 +176196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1263,[16,18,179]); +},1266,[16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175851,7 +176261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e top: FAR_FAR_AWAY } }); -},1264,[3,4,16,18,179]); +},1267,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175915,7 +176325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1265,[16,18,897,179]); +},1268,[16,18,900,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176011,8 +176421,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e right: 0 } }); -},1266,[3,33,16,18,1245,1246,1261,1250,897,179,1087]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1267,[]); +},1269,[3,33,16,18,1248,1249,1264,1253,900,179,1090]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1270,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176075,7 +176485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginHorizontal: 11 } }); -},1268,[3,4,16,18,1087,179,1244,1269]); +},1271,[3,4,16,18,1090,179,1247,1272]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -176087,7 +176497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "toggle-drawer-icon", "type": "png" }); -},1269,[1258]); +},1272,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176102,7 +176512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1270,[1271]); +},1273,[1274]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176148,7 +176558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_$$_REQUIRE(_dependencyMap[0]).PanGestureHandler, Object.assign({}, props)) }); } -},1271,[1,16,3,1272,179]); +},1274,[1,16,3,1275,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176162,7 +176572,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(null); -},1272,[16]); +},1275,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176593,7 +177003,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1273,[3,33,6,7,11,13,14,16,18,671,1274,1275,1270,179]); +},1276,[3,33,6,7,11,13,14,16,18,674,1277,1278,1273,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176607,7 +177017,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(undefined); -},1274,[16]); +},1277,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176673,7 +177083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = Overlay; -},1275,[3,4,16,18,671,179]); +},1278,[3,4,16,18,674,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176705,7 +177115,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(value,start,end){return Math.min(Math.max(value,start),end);}"; _f.__workletHash = 12387352865556; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (33:15)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (33:15)"; return _f; }(); @@ -176763,7 +177173,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(open){const{drawerPosition,drawerWidth}=jsThis._closure;{if(drawerPosition==='left'){return open?0:-drawerWidth;}return open?0:drawerWidth;}}"; _f.__workletHash = 4752955090285; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (81:4)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (81:4)"; return _f; }(), [drawerPosition, drawerWidth]); var hideStatusBar = React.useCallback(function (hide) { @@ -176849,7 +177259,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{translationX,getDrawerTranslationX,runOnJS,onOpen,onClose}=jsThis._closure;{if(translationX.value===getDrawerTranslationX(true)){runOnJS(onOpen)();}else if(translationX.value===getDrawerTranslationX(false)){runOnJS(onClose)();}}}"; _f.__workletHash = 6284511356291; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (169:8)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (169:8)"; return _f; }()); }; @@ -176866,7 +177276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(open,velocity){const{getDrawerTranslationX,touchStartX,touchX,translationX,withSpring,runOnJS,onOpen,onClose}=jsThis._closure;{const translateX=getDrawerTranslationX(open);touchStartX.value=0;touchX.value=0;translationX.value=withSpring(translateX,{velocity:velocity,stiffness:1000,damping:500,mass:3,overshootClamping:true,restDisplacementThreshold:0.01,restSpeedThreshold:0.01},function(){if(translationX.value===getDrawerTranslationX(true)){runOnJS(onOpen)();}else if(translationX.value===getDrawerTranslationX(false)){runOnJS(onClose)();}});}}"; _f.__workletHash = 16911414692686; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (151:4)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (151:4)"; return _f; }(), [getDrawerTranslationX, onClose, onOpen, touchStartX, touchX, translationX]); React.useEffect(function () { @@ -176890,7 +177300,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(event,ctx){const{translationX,gestureState,touchStartX,runOnJS,onGestureStart}=jsThis._closure;{ctx.startX=translationX.value;gestureState.value=event.state;touchStartX.value=event.x;runOnJS(onGestureStart)();}}"; _f.__workletHash = 5837278583014; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (187:13)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (187:13)"; return _f; }(), onActive: function () { @@ -176907,7 +177317,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(event,ctx){const{touchX,translationX,gestureState}=jsThis._closure;{touchX.value=event.x;translationX.value=ctx.startX+event.translationX;gestureState.value=event.state;}}"; _f.__workletHash = 16355851393191; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (194:14)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (194:14)"; return _f; }(), onEnd: function () { @@ -176928,7 +177338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(event){const{gestureState,SWIPE_DISTANCE_MINIMUM,swipeVelocityThreshold,swipeDistanceThreshold,drawerPosition,open,toggleDrawer}=jsThis._closure;{gestureState.value=event.state;const nextOpen=Math.abs(event.translationX)>SWIPE_DISTANCE_MINIMUM&&Math.abs(event.translationX)>swipeVelocityThreshold||Math.abs(event.translationX)>swipeDistanceThreshold?drawerPosition==='left'?(event.velocityX===0?event.translationX:event.velocityX)>0:(event.velocityX===0?event.translationX:event.velocityX)<0:open;toggleDrawer(nextOpen,event.velocityX);}}"; _f.__workletHash = 8167669550273; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:11)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:11)"; return _f; }(), onFinish: function () { @@ -176942,7 +177352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{runOnJS,onGestureFinish}=jsThis._closure;{runOnJS(onGestureFinish)();}}"; _f.__workletHash = 10753070071248; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (215:14)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (215:14)"; return _f; }() }); @@ -176970,7 +177380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{drawerType,gestureState,GestureState,minmax,drawerPosition,touchStartX,drawerWidth,dimensions,translationX}=jsThis._closure;{const touchDistance=drawerType==='front'&&gestureState.value===GestureState.ACTIVE?minmax(drawerPosition==='left'?touchStartX.value-drawerWidth:dimensions.width-drawerWidth-touchStartX.value,0,dimensions.width):0;const translateX=drawerPosition==='left'?minmax(translationX.value+touchDistance,-drawerWidth,0):minmax(translationX.value-touchDistance,0,drawerWidth);return translateX;}}"; _f.__workletHash = 16881564590342; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (220:37)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (220:37)"; return _f; }()); var drawerAnimatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(function () { @@ -176997,7 +177407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{dimensions,drawerWidth,drawerType,translateX,drawerPosition,I18nManager}=jsThis._closure;{const distanceFromEdge=dimensions.width-drawerWidth;return{transform:drawerType==='permanent'?[]:[{translateX:(drawerType==='back'?0:translateX.value)+(drawerPosition==='left'?I18nManager.isRTL?-distanceFromEdge:0:I18nManager.isRTL?0:distanceFromEdge)}]};}}"; _f.__workletHash = 6560524982379; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (265:47)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (265:47)"; _f.__optimalization = 3; return _f; }()); @@ -177018,7 +177428,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{drawerType,translateX,drawerWidth,drawerPosition}=jsThis._closure;{return{transform:drawerType==='permanent'?[]:[{translateX:drawerType==='front'?0:translateX.value+drawerWidth*(drawerPosition==='left'?1:-1)}]};}}"; _f.__workletHash = 10940802030343; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (291:48)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (291:48)"; _f.__optimalization = 3; return _f; }()); @@ -177035,7 +177445,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{drawerType,interpolate,translateX,getDrawerTranslationX}=jsThis._closure;{return drawerType==='permanent'?1:interpolate(translateX.value,[getDrawerTranslationX(false),getDrawerTranslationX(true)],[0,1]);}}"; _f.__workletHash = 10677902672597; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (311:35)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (311:35)"; return _f; }()); return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_DrawerProgressContext.default.Provider, { @@ -177098,7 +177508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1276,[16,18,671,3,1274,1277,1,179]); +},1279,[16,18,674,3,1277,1280,1,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177139,7 +177549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{progress,PROGRESS_EPSILON}=jsThis._closure;{return{opacity:progress.value,zIndex:progress.value>PROGRESS_EPSILON?0:-1};}}"; _f.__workletHash = 1802421920871; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (19:41)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (19:41)"; _f.__optimalization = 3; return _f; }()); @@ -177159,7 +177569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{progress,PROGRESS_EPSILON}=jsThis._closure;{const active=progress.value>PROGRESS_EPSILON;return{pointerEvents:active?'auto':'none',accessibilityElementsHidden:!active,importantForAccessibility:active?'auto':'no-hide-descendants'};}}"; _f.__workletHash = 1603427272892; - _f.__location = "/Users/ipaddev/sdk/3.16.14.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (28:41)"; + _f.__location = "/Users/ipaddev/sdk/3.17.02.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (28:41)"; return _f; }()); return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNativeReanimated.default.View, Object.assign({}, props, { @@ -177190,7 +177600,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = Overlay; -},1277,[3,4,16,18,671,179]); +},1280,[3,4,16,18,674,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177253,7 +177663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},1278,[3,4,16,18,1279,179,1244]); +},1281,[3,4,16,18,1282,179,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177499,7 +177909,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -},1279,[1280,1281,1284,1285,1286,1287,1293,3,1296,1298,1300,1302,1303]); +},1282,[1283,1284,1287,1288,1289,1290,1296,3,1299,1301,1303,1305,1306]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177513,7 +177923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: props.children }); }); -},1280,[3,16,179]); +},1283,[3,16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177580,7 +177990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: 'center' } }); -},1281,[3,16,18,1282,1283,179]); +},1284,[3,16,18,1285,1286,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177590,7 +178000,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreenStackHeaderConfig', {}); -},1282,[3,183]); +},1285,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177600,7 +178010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreenStackHeaderSubview', {}); -},1283,[3,183]); +},1286,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177650,7 +178060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function freezeEnabled() { return ENABLE_FREEZE; } -},1284,[18]); +},1287,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177669,12 +178079,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var isNewBackTitleImplementation = exports.isNewBackTitleImplementation = true; -},1285,[18]); +},1288,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); -},1286,[]); +},1289,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177837,7 +178247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Screen; -},1287,[3,4,16,18,1288,1289,1291,1292,1284,179]); +},1290,[3,4,16,18,1291,1292,1294,1295,1287,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177851,7 +178261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(undefined); -},1288,[16]); +},1291,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177887,7 +178297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = DelayedFreeze; -},1289,[3,33,16,179,1290]); +},1292,[3,33,16,179,1293]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177930,7 +178340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},1290,[16,179]); +},1293,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177942,7 +178352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreen', { interfaceOnly: true }); -},1291,[3,183]); +},1294,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177954,7 +178364,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSModalScreen', { interfaceOnly: true }); -},1292,[3,183]); +},1295,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -177994,7 +178404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = ScreenContainer; -},1293,[3,4,18,16,1294,1295,1284,179]); +},1296,[3,4,18,16,1297,1298,1287,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178004,7 +178414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreenContainer', {}); -},1294,[3,183]); +},1297,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178014,7 +178424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreenNavigationContainer', {}); -},1295,[3,183]); +},1298,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178067,7 +178477,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = ScreenStack; -},1296,[3,4,16,1289,1297,1279,179]); +},1299,[3,4,16,1292,1300,1282,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178077,7 +178487,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreenStack', {}); -},1297,[3,183]); +},1300,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178162,7 +178572,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = _react.default.forwardRef(SearchBar); -},1298,[3,16,18,1299,1279,179]); +},1301,[3,16,18,1302,1282,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178178,7 +178588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSSearchBar', {}); -},1299,[3,183,133]); +},1302,[3,183,133]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178210,7 +178620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = FullWindowOverlay; -},1300,[3,16,18,1301,179]); +},1303,[3,16,18,1304,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178220,7 +178630,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSFullWindowOverlay', {}); -},1301,[3,183]); +},1304,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178230,7 +178640,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.get('RNSModule'); -},1302,[18]); +},1305,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178254,7 +178664,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return progress; } -},1303,[16,3,1288]); +},1306,[16,3,1291]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178278,7 +178688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return progress; } -},1304,[16,3,1274]); +},1307,[16,3,1277]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178302,7 +178712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return drawerStatus; } -},1305,[16,3,1229]); +},1308,[16,3,1232]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178389,7 +178799,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = MainHeader; exports.default = _default; -},1306,[3,16,582,18,1307,1310,1311,1313,1075,1067,1072]); +},1309,[3,16,582,18,1310,1313,1314,1316,1078,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178449,7 +178859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HamburgerButton; exports.default = _default; -},1307,[3,16,582,18,1086,1308,953,1309,1072,1067]); +},1310,[3,16,582,18,1089,1311,956,1312,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178474,7 +178884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = _default; -},1308,[18]); +},1311,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178491,7 +178901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcMenu; exports.default = _default; -},1309,[3,16,956]); +},1312,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178575,7 +178985,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Logo; exports.default = _default; -},1310,[3,16,582,18,953,1078,1075,1072,1067]); +},1313,[3,16,582,18,956,1081,1078,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178682,7 +179092,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CloseButton; exports.default = _default; -},1311,[16,3,582,18,1308,953,1312,951,1072,1076,1067]); +},1314,[16,3,582,18,1311,956,1315,954,1075,1079,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178699,7 +179109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcClose; exports.default = _default; -},1312,[3,16,956]); +},1315,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178733,7 +179143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = PlaceHolderButton; exports.default = _default; -},1313,[3,16,582,18,1308,1072,1067]); +},1316,[3,16,582,18,1311,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178808,7 +179218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = UrlPage; exports.default = _default; -},1314,[3,16,582,18,1315,949,1073,1078,1318,1087]); +},1317,[3,16,582,18,1318,952,1076,1081,1321,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -178979,6 +179389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thirdPartyCookiesEnabled: true, domStorageEnabled: true, javaScriptEnabled: true, + webviewDebuggingEnabled: _liveConfig.default.isDebug(), bounces: false, cacheEnabled: true, startInLoadingState: true, @@ -179009,7 +179420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TaWebView; exports.default = _default; -},1315,[3,591,16,582,889,18,939,951,1316,1078,942,1076,940,1317]); +},1318,[3,591,16,582,892,18,942,954,1319,1081,945,1079,943,1320]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179053,7 +179464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Message; -},1316,[3,6,7,936,937]); +},1319,[3,6,7,939,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179063,7 +179474,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getTargetBlankPatch() { return "\n Array.from(document.querySelectorAll('a[target=\"_blank\"]')).forEach(link => link.removeAttribute('target'));"; } -},1317,[]); +},1320,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179080,7 +179491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcWebOff; exports.default = _default; -},1318,[3,16,956]); +},1321,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179111,7 +179522,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _tabBar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var Tab = (0, _$$_REQUIRE(_dependencyMap[13]).createMaterialTopTabNavigator)(); + var _route = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var Tab = (0, _$$_REQUIRE(_dependencyMap[14]).createMaterialTopTabNavigator)(); function renderTabScreens(_ref) { var routes = _ref.routes, @@ -179164,6 +179577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e initialRouteName = props.initialRouteName, specials = props.specials, issueCallbacks = props.issueCallbacks, + hasArchive = props.hasArchive, viewSize = props.viewSize; return _react.default.createElement(Tab.Navigator, { initialRouteName: initialRouteName, @@ -179183,7 +179597,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e routes: routes, props: { specials: specials, - issueCallbacks: issueCallbacks + issueCallbacks: issueCallbacks, + hasArchive: hasArchive || routes.some(function (route) { + return route.getRoute() === _$$_REQUIRE(_dependencyMap[15]).TABS.ARCHIVE; + }) } })); } @@ -179196,11 +179613,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: _propTypes.default.number, height: _propTypes.default.number }), - issueCallbacks: _issueItem.default.propTypes.issueCallbacks + issueCallbacks: _issueItem.default.propTypes.issueCallbacks, + hasArchive: _propTypes.default.bool }; var _default = TabNavigator; exports.default = _default; -},1319,[3,591,16,582,1205,1204,1320,1078,1322,1354,1207,1314,1681,1682]); +},1322,[3,591,16,582,1208,1207,1323,1081,1325,1357,1210,1317,1686,1204,1687,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179275,7 +179693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionsNested.defaultProps = {}; var _default = EditionsNested; exports.default = _default; -},1320,[3,22,16,582,1199,1321,1343,1078,938]); +},1323,[3,22,16,582,1202,1324,1346,1081,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179367,10 +179785,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var textFormat = props.issueLabelFormat; if (!textFormat && issues.length > 1) { - var referenceEdition = issues[0].getEdition(); + var referenceEdition = issues[0].getEditionLabel(); for (var i = 1; i < issues.length; i++) { - if (issues[i].getEdition() !== referenceEdition) { + if (issues[i].getEditionLabel() !== referenceEdition) { textFormat = "edition" + _$$_REQUIRE(_dependencyMap[11]).NEW_LINE + "-" + _$$_REQUIRE(_dependencyMap[11]).NEW_LINE + "issue"; break; } @@ -179433,7 +179851,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = IssueList; exports.default = _default; -},1321,[3,591,4,16,582,938,1322,1334,1338,1339,1340,1075,1341,1342]); +},1324,[3,591,4,16,582,941,1325,1337,1341,1342,1343,1078,1344,1345]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179502,7 +179920,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = IssueItem; exports.default = _default; -},1322,[3,591,4,16,582,938,1323,1075]); +},1325,[3,591,4,16,582,941,1326,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179604,7 +180022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = BaseItemWithImage; exports.default = _default; -},1323,[3,591,4,16,582,18,1324,938,1329,1330,1072,1067,1075]); +},1326,[3,591,4,16,582,18,1327,941,1332,1333,1075,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179622,7 +180040,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var LinearGradient = exports.LinearGradient = _reactNative.Platform.OS === "ios" ? _indexIos.default : _reactNative.Platform.OS === "android" ? _indexAndroid.default : _indexWindows.default; var _default = exports.default = LinearGradient; -},1324,[18,3,1325,1327,1328]); +},1327,[18,3,1328,1330,1331]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179732,7 +180150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1325,[3,4,6,7,11,13,14,16,18,1326,179]); +},1328,[3,4,6,7,11,13,14,16,18,1329,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179742,7 +180160,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = (0, _reactNative.requireNativeComponent)('BVLinearGradient'); -},1326,[18]); +},1329,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179875,7 +180293,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1327,[3,4,6,7,11,13,14,16,18,1326,179]); +},1330,[3,4,6,7,11,13,14,16,18,1329,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179992,7 +180410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1328,[3,4,6,7,11,13,14,16,18,1326,179]); +},1331,[3,4,6,7,11,13,14,16,18,1329,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180067,7 +180485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e IssueImage.defaultProps = {}; var _default = IssueImage; exports.default = _default; -},1329,[3,591,16,582,18,938,953,1072,1075,935]); +},1332,[3,591,16,582,18,941,956,1075,1078,938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180189,7 +180607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = BaseItem; exports.default = _default; -},1330,[3,591,16,582,18,938,1331,1072,1075]); +},1333,[3,591,16,582,18,941,1334,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180440,7 +180858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Badge; exports.default = _default; -},1331,[3,33,591,16,582,18,1073,1332,1075,1067,1072]); +},1334,[3,33,591,16,582,18,1076,1335,1078,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180482,7 +180900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DownloadedCheck.defaultProps = {}; var _default = DownloadedCheck; exports.default = _default; -},1332,[3,591,4,16,582,1333,1072]); +},1335,[3,591,4,16,582,1336,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180499,7 +180917,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCheckCircle; exports.default = _default; -},1333,[3,16,956]); +},1336,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180594,7 +181012,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = List; exports.default = _default; -},1334,[3,22,591,4,16,18,582,1335,1337,1072,1075]); +},1337,[3,22,591,4,16,18,582,1338,1340,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180670,7 +181088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HorizontalList; exports.default = _default; -},1335,[3,4,591,16,582,18,1336,1072,1075]); +},1338,[3,4,591,16,582,18,1339,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180749,7 +181167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HeaderList; exports.default = _default; -},1336,[3,16,582,18,1073,953,1075,1067,1072]); +},1339,[3,16,582,18,1076,956,1078,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180945,7 +181363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = VerticalList; exports.default = _default; -},1337,[3,33,4,591,16,582,18,1072,1075]); +},1340,[3,33,4,591,16,582,18,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180999,7 +181417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IssueCardItem; exports.default = _default; -},1338,[3,591,4,16,18,1322,1331,1067,1075]); +},1341,[3,591,4,16,18,1325,1334,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181029,7 +181447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e IssueFlatItem.propTypes = _issueItem.default.propTypes; var _default = IssueFlatItem; exports.default = _default; -},1339,[3,591,4,16,1322,1075]); +},1342,[3,591,4,16,1325,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181223,7 +181641,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = LayoutList; exports.default = _default; -},1340,[3,591,22,33,4,16,18,582,1335,1337,955,1072,1075,1341]); +},1343,[3,591,22,33,4,16,18,582,1338,1340,958,1075,1078,1344]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181269,7 +181687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return size; } -},1341,[18]); +},1344,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181281,7 +181699,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var AspectRatioContext = _react.default.createContext(1); exports.AspectRatioContext = AspectRatioContext; -},1342,[3,16]); +},1345,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181599,7 +182017,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionList; exports.default = _default; -},1343,[3,933,22,33,4,591,16,582,1340,1199,1208,1322,938,1344,1338,1078,1348,1349,1351,1341,1075,935,1342]); +},1346,[3,936,22,33,4,591,16,582,1343,1202,1211,1325,941,1347,1341,1081,1351,1352,1354,1344,1078,938,1345]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181642,7 +182060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionBackItem.defaultProps = {}; var _default = EditionBackItem; exports.default = _default; -},1344,[3,591,16,18,1345,1346,1067,1075]); +},1347,[3,591,16,18,1348,1349,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181659,7 +182077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcBackCircle; exports.default = _default; -},1345,[3,16,956]); +},1348,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181746,7 +182164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionCardItemWithIcons; exports.default = _default; -},1346,[3,591,4,16,582,18,1347,1067,1072,1075]); +},1349,[3,591,4,16,582,18,1350,1070,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181804,7 +182222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionCardItem.defaultProps = (0, _extends2.default)({}, _editionItem.default.defaultProps); var _default = EditionCardItem; exports.default = _default; -},1347,[3,591,4,16,18,582,1348,1331,1067,1075]); +},1350,[3,591,4,16,18,582,1351,1334,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181921,7 +182339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionItem; exports.default = _default; -},1348,[3,591,4,16,582,1199,1330,1208,1323,1075]); +},1351,[3,591,4,16,582,1202,1333,1211,1326,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181997,7 +182415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionFolderItem.defaultProps = (0, _extends2.default)({}, _editionCardItemWithIcons.default.defaultProps, { enableFavorite: true }); -},1349,[3,591,22,4,16,582,18,1350,1346,1067,1351]); +},1352,[3,591,22,4,16,582,18,1353,1349,1070,1354]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182014,7 +182432,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcNewspaperMultiple; exports.default = _default; -},1350,[3,16,956]); +},1353,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182061,7 +182479,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionFavoriteItem.defaultProps = (0, _extends2.default)({}, _editionCardItemWithIcons.default.defaultProps, { selected: false }); -},1351,[3,591,22,4,16,582,18,1346,1352,1353]); +},1354,[3,591,22,4,16,582,18,1349,1355,1356]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182078,7 +182496,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcHeartMinus; exports.default = _default; -},1352,[3,16,956]); +},1355,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182095,7 +182513,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcHeartPlusOutline; exports.default = _default; -},1353,[3,16,956]); +},1356,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182170,7 +182588,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function EditionDayContainer(props) { var main = props.main, - navigation = props.navigation; + navigation = props.navigation, + hasArchive = props.hasArchive; var _useState = (0, _react.useState)(main.getIssueDayIndex()), _useState2 = (0, _slicedToArray2.default)(_useState, 2), @@ -182190,7 +182609,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation, onIndexChange: function onIndexChange(index) { return setIssueDayIndex(index); - } + }, + hasArchive: hasArchive }), enableCalendarConstraint: !main.isFixed(), edition: edition, @@ -182202,11 +182622,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } EditionDayContainer.propTypes = (0, _extends2.default)({}, _editionDayPage.default.propTypes, { - main: _propTypes.default.instanceOf(_routeEditionsDate.default) + main: _propTypes.default.instanceOf(_routeEditionsDate.default), + hasArchive: _propTypes.default.bool }); var _default = EditionDayContainer; exports.default = _default; -},1354,[3,591,33,16,582,1355,1205,1371,1208,1342]); +},1357,[3,591,33,16,582,1358,1208,1374,1211,1345]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182571,7 +182992,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayPage; exports.default = _default; -},1355,[3,591,478,33,22,16,582,18,1199,938,1356,1368,1369,1370,1322,1208,1365,1078,1367,1331,1075,1072,1067]); +},1358,[3,591,478,33,22,16,582,18,1202,941,1359,1371,1372,1373,1325,1211,1368,1081,1370,1334,1078,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182773,7 +183194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueList.default.propTypes); var _default = EditionsSecondary; exports.default = _default; -},1356,[3,591,22,33,16,582,18,1321,1199,1208,1357,1359,1078,938,1365,1367,1358,1075,1067]); +},1359,[3,591,22,33,16,582,18,1324,1202,1211,1360,1362,1081,941,1368,1370,1361,1078,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182843,7 +183264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryEmpty; exports.default = _default; -},1357,[3,16,582,18,953,1358,1067,1075,1072]); +},1360,[3,16,582,18,956,1361,1070,1078,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182860,7 +183281,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcPlus; exports.default = _default; -},1358,[3,16,956]); +},1361,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183101,7 +183522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryModal; exports.default = _default; -},1359,[3,33,22,16,582,18,1078,1199,1360,1208,1343,1362,1067,1072,1075,1363,1196]); +},1362,[3,33,22,16,582,18,1081,1202,1363,1211,1346,1365,1070,1075,1078,1366,1199]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183238,7 +183659,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryModalHeader; exports.default = _default; -},1360,[3,16,582,18,1073,953,1312,1361,1078,1075,1067,1072]); +},1363,[3,16,582,18,1076,956,1315,1364,1081,1078,1070,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183255,7 +183676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcContentSaveOutline; exports.default = _default; -},1361,[3,16,956]); +},1364,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183336,7 +183757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsTags; exports.default = _default; -},1362,[3,16,582,18,1312,1073,1078,1199,1067,1075]); +},1365,[3,16,582,18,1315,1076,1081,1202,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183717,7 +184138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textColor: _$$_REQUIRE(_dependencyMap[14]).colors.black, autoFocus: false }; -},1363,[3,933,6,7,12,14,11,13,16,582,18,955,1364,1072,1067]); +},1366,[3,936,6,7,12,14,11,13,16,582,18,958,1367,1075,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183734,7 +184155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCloseCircle; exports.default = _default; -},1364,[3,16,956]); +},1367,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -183905,7 +184326,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueList.default.propTypes); var _default = IssuesGrid; exports.default = _default; -},1365,[3,591,22,33,16,582,18,1321,938,1338,1366,1075]); +},1368,[3,591,22,33,16,582,18,1324,941,1341,1369,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184070,7 +184491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Grid; exports.default = _default; -},1366,[3,33,16,18,582]); +},1369,[3,33,16,18,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184159,7 +184580,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayHeader; exports.default = _default; -},1367,[3,591,4,16,582,18,1073,1078]); +},1370,[3,591,4,16,582,18,1076,1081]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184213,7 +184634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueItem.default.propTypes); var _default = IssueShadowItem; exports.default = _default; -},1368,[3,591,4,16,582,18,1322,1332,1075]); +},1371,[3,591,4,16,582,18,1325,1335,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184291,7 +184712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = _default; -},1369,[3,591,18,1067,1075]); +},1372,[3,591,18,1070,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184335,7 +184756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayBg; exports.default = _default; -},1370,[3,16,582,18,1078,1067]); +},1373,[3,16,582,18,1081,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184364,6 +184785,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _editionDayHeader = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _icSearch = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); @@ -184426,7 +184849,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e issueIndex = props.issueIndex, issues = props.issues, onIndexChange = props.onIndexChange, - navigation = props.navigation; + navigation = props.navigation, + hasArchive = props.hasArchive; var _useState = (0, _react.useState)(false), _useState2 = (0, _slicedToArray2.default)(_useState, 2), @@ -184468,6 +184892,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hide(); }; + var ArchiveIcon = hasArchive && _liveConfig.default.getPSetup().showSearchArchiveIcon ? _react.default.createElement(_reactNative.TouchableOpacity, { + style: styles.icon, + onPress: _$$_REQUIRE(_dependencyMap[13]).navigateToArchive + }, _react.default.createElement(_icSearch.default, { + fill: _liveConfig.default.getForegroundColor() + })) : null; var Icon = null; if (selector && (issues == null ? undefined : issues.length) >= 2) { @@ -184481,7 +184911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _react.default.createElement(_editionDayHeader.default.Container, null, _react.default.createElement(_editionDayHeader.default.Body, { text: currentIssue ? currentIssue.getDateLabel().replace(currentIssue.getDayOfWeek(), currentIssue.getDayOfWeekComplete()) : "No issue in this date" - }, Icon, (issues == null ? undefined : issues.length) >= 2 ? _react.default.createElement(_calendarModal.default, { + }, ArchiveIcon, Icon, (issues == null ? undefined : issues.length) >= 2 ? _react.default.createElement(_calendarModal.default, { onClose: hide, visible: showCalender, onDateChange: onDateChange, @@ -184505,15 +184935,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), issueIndex: _propTypes.default.number, onIndexChange: _propTypes.default.func.isRequired, - issues: _propTypes.default.arrayOf(_propTypes.default.instanceOf(_issue.default)) + issues: _propTypes.default.arrayOf(_propTypes.default.instanceOf(_issue.default)), + hasArchive: _propTypes.default.bool }; EditionDaySelector.defaultProps = { selector: false, - issueIndex: 0 + issueIndex: 0, + hasArchive: false }; var _default = EditionDaySelector; exports.default = _default; -},1371,[3,33,16,582,18,1078,938,1208,1372,1373,1080,1367]); +},1374,[3,33,16,582,18,1081,941,1211,1375,1376,1083,1370,1685,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184530,7 +184962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCalendarMonth; exports.default = _default; -},1372,[3,16,956]); +},1375,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184595,7 +185027,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TaCalendarModal; exports.default = _default; -},1373,[3,4,591,16,582,18,829,1374,1377,1072]); +},1376,[3,4,591,16,582,18,832,1377,1380,1075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184606,20 +185038,76 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _liveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - var _date = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - var _icArrowLeft = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _liveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _icArrowRight = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _date = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _calendarCommon = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _icArrowLeft = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _icArrowRight = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _calendarCommon = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); var _excluded = ["date"]; + function _getRequireWildcardCache(nodeInterop) { + if (typeof WeakMap !== "function") return null; + var cacheBabelInterop = new WeakMap(); + var cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + + function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) { + return obj; + } + + if (obj === null || typeof obj !== "object" && typeof obj !== "function") { + return { + default: obj + }; + } + + var cache = _getRequireWildcardCache(nodeInterop); + + if (cache && cache.has(obj)) { + return cache.get(obj); + } + + var newObj = {}; + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + + for (var key in obj) { + if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + + if (desc && (desc.get || desc.set)) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + + newObj.default = obj; + + if (cache) { + cache.set(obj, newObj); + } + + return newObj; + } + + var ARROW_ICOM_SIZE = 16; + function TaCalendar(props) { var date = props.date, minDate = props.minDate, @@ -184627,17 +185115,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onDateChange = props.onDateChange, markedDates = props.markedDates, theme = props.theme; + var currentMonth = date.getMonth(); + var currentYear = date.getFullYear(); - var onChange = function onChange(_ref) { + var _useState = (0, _react.useState)(currentYear === minDate.getFullYear() && currentMonth === minDate.getMonth()), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + disableArrowLeft = _useState2[0], + setDisableArrowLeft = _useState2[1]; + + var _useState3 = (0, _react.useState)(currentYear === maxDate.getFullYear() && currentMonth === maxDate.getMonth()), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + disableArrowRight = _useState4[0], + setDisableArrowRight = _useState4[1]; + + var onChange = (0, _react.useCallback)(function (_ref) { var timestamp = _ref.timestamp; if (typeof onDateChange === "function") { onDateChange(new Date(timestamp)); } + }, [onDateChange]); + var onMonthChange = (0, _react.useCallback)(function (month) { + var year = month.year, + monthNumber = month.month; + setDisableArrowLeft(year === minDate.getFullYear() && monthNumber === minDate.getMonth() + 1); + setDisableArrowRight(year === maxDate.getFullYear() && monthNumber === maxDate.getMonth() + 1); + }, [minDate, maxDate]); + var renderArrow = (0, _react.useCallback)(function (direction) { + var ArrowIcon = direction === "left" ? _icArrowLeft.default : _icArrowRight.default; + var isDisabled = direction === "left" ? disableArrowLeft : disableArrowRight; + return !isDisabled ? _react.default.createElement(ArrowIcon, { + width: ARROW_ICOM_SIZE + }) : _react.default.createElement(_reactNative.View, { + style: { + width: ARROW_ICOM_SIZE, + height: ARROW_ICOM_SIZE + } + }); + }, [disableArrowLeft, disableArrowRight]); + var others = { + disableArrowLeft: disableArrowLeft, + disableArrowRight: disableArrowRight }; - var others = {}; - if (minDate) { others.minDate = _date.default.formatDate(minDate, "YYYY-MM-DD"); } @@ -184657,7 +185177,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e result[_date.default.formatDate(markedDate, "YYYY-MM-DD")] = rest; return result; }, {}); - var currentDate = minDate; + + var currentDate = _date.default.strToDate(others.minDate); while (currentDate.getTime() < maxDate.getTime()) { var currentDateString = _date.default.formatDate(currentDate, "YYYY-MM-DD"); @@ -184677,15 +185198,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var locale = _liveConfig.default.getLocale(); - _$$_REQUIRE(_dependencyMap[9]).LocaleConfig.locales[language] = { + _$$_REQUIRE(_dependencyMap[11]).LocaleConfig.locales[language] = { monthNames: locale.strings("str_month_names").split(","), monthNamesShort: locale.strings("str_month_names_short").split(","), dayNames: locale.strings("str_day_names").split(","), dayNamesShort: locale.strings("str_day_names_short").split(","), today: locale.strings("str_today") }; - _$$_REQUIRE(_dependencyMap[9]).LocaleConfig.defaultLocale = language; - return _react.default.createElement(_$$_REQUIRE(_dependencyMap[9]).Calendar, (0, _extends2.default)({}, others, { + _$$_REQUIRE(_dependencyMap[11]).LocaleConfig.defaultLocale = language; + return _react.default.createElement(_$$_REQUIRE(_dependencyMap[11]).Calendar, (0, _extends2.default)({}, others, { theme: { dotColor: theme.dotColor || _liveConfig.default.getSupportColor(), selectedDotColor: theme.selectedDotColor || _liveConfig.default.getForegroundColor(), @@ -184693,24 +185214,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e selectedDayBackgroundColor: theme.selectedDayBackgroundColor || _liveConfig.default.getSupportColor() }, style: { - borderRadius: _$$_REQUIRE(_dependencyMap[10]).CARD_RADIUS, + borderRadius: _$$_REQUIRE(_dependencyMap[12]).CARD_RADIUS, overflow: "hidden" }, hideExtraDays: true, - renderArrow: function renderArrow(direction) { - if (direction === "left") { - return _react.default.createElement(_icArrowLeft.default, { - width: 16 - }); - } - - return _react.default.createElement(_icArrowRight.default, { - width: 16 - }); - }, hideArrows: false, disableAllTouchEventsForDisabledDays: true, - onDayPress: onChange + renderArrow: renderArrow, + onDayPress: onChange, + onMonthChange: onMonthChange })); } @@ -184718,7 +185230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TaCalendar.defaultProps = (0, _extends2.default)({}, _calendarCommon.default.defaultProps); var _default = TaCalendar; exports.default = _default; -},1374,[3,591,4,16,1078,1080,1375,1376,1377,1378,1075]); +},1377,[3,591,4,33,16,18,1081,1083,1378,1379,1380,1381,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184735,7 +185247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcArrowLeft; exports.default = _default; -},1375,[3,16,956]); +},1378,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184752,7 +185264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcArrowRight; exports.default = _default; -},1376,[3,16,956]); +},1379,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184786,7 +185298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CalendarCommons; exports.default = _default; -},1377,[3,582]); +},1380,[3,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184911,7 +185423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); var _Profiler = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); -},1378,[3,1379,1586,1590,1628,1637,1646,1647,1644,1652,1656,1657,1677,1579,1380,1680]); +},1381,[3,1382,1589,1593,1631,1640,1649,1650,1647,1656,1660,1661,1681,1582,1383,1684]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185198,7 +185710,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customHeader: _propTypes.default.any, allowSelectionOutOfRange: _propTypes.default.bool }); -},1379,[3,33,582,1380,1381,16,18,1410,1411,1412,1414,1435,1565,1432,1584,1431,179,1573,1585]); +},1382,[3,33,582,1383,1384,16,18,1413,1414,1415,1417,1438,1568,1435,1587,1434,179,1576,1588]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @preserve XDate v@VERSION @@ -185883,7 +186395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return XDate; }(Date, Math, Array); -},1380,[]); +},1383,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]', setTag = '[object Set]'; @@ -185919,14 +186431,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isEmpty; -},1381,[1382,1385,1386,1388,1392,1394,1406,1407]); +},1384,[1385,1388,1389,1391,1395,1397,1409,1410]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isArrayLike(value) { return value != null && _$$_REQUIRE(_dependencyMap[0])(value.length) && !_$$_REQUIRE(_dependencyMap[1])(value); } module.exports = isArrayLike; -},1382,[1383,1384]); +},1385,[1386,1387]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; @@ -185935,7 +186447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isLength; -},1383,[]); +},1386,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', @@ -185953,11 +186465,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isFunction; -},1384,[490,484]); +},1387,[490,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var isArray = Array.isArray; module.exports = isArray; -},1385,[]); +},1388,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; @@ -185968,20 +186480,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isBuffer = nativeIsBuffer || _$$_REQUIRE(_dependencyMap[1]); module.exports = isBuffer; -},1386,[486,1387]); +},1389,[486,1390]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stubFalse() { return false; } module.exports = stubFalse; -},1387,[]); +},1390,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nodeIsTypedArray = _$$_REQUIRE(_dependencyMap[0]) && _$$_REQUIRE(_dependencyMap[0]).isTypedArray; var isTypedArray = nodeIsTypedArray ? _$$_REQUIRE(_dependencyMap[1])(nodeIsTypedArray) : _$$_REQUIRE(_dependencyMap[2]); module.exports = isTypedArray; -},1388,[1389,1390,1391]); +},1391,[1392,1393,1394]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; @@ -186002,7 +186514,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = nodeUtil; -},1389,[487]); +},1392,[487]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseUnary(func) { return function (value) { @@ -186011,7 +186523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseUnary; -},1390,[]); +},1393,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var argsTag = '[object Arguments]', arrayTag = '[object Array]', @@ -186046,7 +186558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsTypedArray; -},1391,[483,1383,484]); +},1394,[483,1386,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -186057,7 +186569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[1])(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; -},1392,[1393,483]); +},1395,[1396,483]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var argsTag = '[object Arguments]'; @@ -186066,7 +186578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsArguments; -},1393,[483,484]); +},1396,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]', objectTag = '[object Object]', @@ -186113,7 +186625,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getTag; -},1394,[1395,1396,1402,1403,1404,1405,484]); +},1397,[1398,1399,1405,1406,1407,1408,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var funcProto = Function.prototype; var funcToString = funcProto.toString; @@ -186133,12 +186645,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toSource; -},1395,[]); +},1398,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DataView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'DataView'); module.exports = DataView; -},1396,[1397,486]); +},1399,[1400,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getNative(object, key) { var value = _$$_REQUIRE(_dependencyMap[0])(object, key); @@ -186147,14 +186659,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getNative; -},1397,[1398,1399]); +},1400,[1401,1402]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; -},1398,[]); +},1401,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; @@ -186174,7 +186686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsNative; -},1399,[490,1400,1384,1395]); +},1402,[490,1403,1387,1398]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var maskSrcKey = function () { var uid = /[^.]+$/.exec(_$$_REQUIRE(_dependencyMap[0]) && _$$_REQUIRE(_dependencyMap[0]).keys && _$$_REQUIRE(_dependencyMap[0]).keys.IE_PROTO || ''); @@ -186186,30 +186698,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isMasked; -},1400,[1401]); +},1403,[1404]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0])['__core-js_shared__']; -},1401,[486]); +},1404,[486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Map = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Map'); module.exports = Map; -},1402,[1397,486]); +},1405,[1400,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Promise = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Promise'); module.exports = Promise; -},1403,[1397,486]); +},1406,[1400,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Set = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Set'); module.exports = Set; -},1404,[1397,486]); +},1407,[1400,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var WeakMap = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'WeakMap'); module.exports = WeakMap; -},1405,[1397,486]); +},1408,[1400,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; @@ -186220,7 +186732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isPrototype; -},1406,[]); +},1409,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -186242,12 +186754,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseKeys; -},1407,[1406,1408]); +},1410,[1409,1411]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeKeys = _$$_REQUIRE(_dependencyMap[0])(Object.keys, Object); module.exports = nativeKeys; -},1408,[1409]); +},1411,[1412]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function overArg(func, transform) { return function (arg) { @@ -186256,7 +186768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = overArg; -},1409,[]); +},1412,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -186429,7 +186941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); var _default = exports.default = GestureRecognizer; -},1410,[3,6,7,11,13,14,16,18,179]); +},1413,[3,6,7,11,13,14,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186447,6 +186959,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isIOS = _reactNative.Platform.OS === 'ios'; var screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight; var isTablet = _reactNative.Platform.isPad || screenAspectRatio < 1.6 && Math.max(screenWidth, screenHeight) >= 900; + var isAndroidRTL = isAndroid && isRTL; var _default = exports.default = { screenWidth: screenWidth, @@ -186454,9 +186967,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isRTL: isRTL, isAndroid: isAndroid, isIOS: isIOS, - isTablet: isTablet + isTablet: isTablet, + isAndroidRTL: isAndroidRTL }; -},1411,[18]); +},1414,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186497,7 +187011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar.main'] || {})); } -},1412,[18,1413]); +},1415,[18,1416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186553,7 +187067,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var todayButtonTextColor = exports.todayButtonTextColor = SECONDARY_TEXT_COLOR; var todayButtonPosition = exports.todayButtonPosition = undefined; var weekVerticalMargin = exports.weekVerticalMargin = 7; -},1413,[]); +},1416,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186800,7 +187314,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e webAriaLevel: 1, arrowsHitSlop: 20 }; -},1414,[3,1415,1380,16,18,1430,1431,179,1433,1434]); +},1417,[3,1418,1383,16,18,1433,1434,179,1436,1437]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -186817,14 +187331,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = includes; -},1415,[1382,1416,1423,1425,1426]); +},1418,[1385,1419,1426,1428,1429]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function values(object) { return object == null ? [] : _$$_REQUIRE(_dependencyMap[0])(object, _$$_REQUIRE(_dependencyMap[1])(object)); } module.exports = values; -},1416,[1417,1419]); +},1419,[1420,1422]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseValues(object, props) { return _$$_REQUIRE(_dependencyMap[0])(props, function (key) { @@ -186833,7 +187347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseValues; -},1417,[1418]); +},1420,[1421]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayMap(array, iteratee) { var index = -1, @@ -186848,14 +187362,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayMap; -},1418,[]); +},1421,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function keys(object) { return _$$_REQUIRE(_dependencyMap[0])(object) ? _$$_REQUIRE(_dependencyMap[1])(object) : _$$_REQUIRE(_dependencyMap[2])(object); } module.exports = keys; -},1419,[1382,1420,1407]); +},1422,[1385,1423,1410]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -186879,7 +187393,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayLikeKeys; -},1420,[1385,1392,1386,1388,1421,1422]); +},1423,[1388,1395,1389,1391,1424,1425]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseTimes(n, iteratee) { var index = -1, @@ -186893,7 +187407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseTimes; -},1421,[]); +},1424,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; @@ -186905,7 +187419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isIndex; -},1422,[]); +},1425,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function toInteger(value) { var result = _$$_REQUIRE(_dependencyMap[0])(value), @@ -186915,7 +187429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toInteger; -},1423,[1424]); +},1426,[1427]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e+308; @@ -186936,7 +187450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toFinite; -},1424,[481]); +},1427,[481]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var stringTag = '[object String]'; @@ -186945,14 +187459,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isString; -},1425,[1385,483,484]); +},1428,[1388,483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIndexOf(array, value, fromIndex) { return value === value ? _$$_REQUIRE(_dependencyMap[0])(array, value, fromIndex) : _$$_REQUIRE(_dependencyMap[1])(array, _$$_REQUIRE(_dependencyMap[2]), fromIndex); } module.exports = baseIndexOf; -},1426,[1427,1428,1429]); +},1429,[1430,1431,1432]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, @@ -186968,7 +187482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = strictIndexOf; -},1427,[]); +},1430,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, @@ -186984,14 +187498,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFindIndex; -},1428,[]); +},1431,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIsNaN(value) { return value !== value; } module.exports = baseIsNaN; -},1429,[]); +},1432,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -187075,7 +187589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar.header'] || {})); } -},1430,[18,1413,3,1411]); +},1433,[18,1416,3,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -187171,11 +187685,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function isGTE(a, b) { - return b.diffDays(a) > -1; + if (a && b) { + return b.diffDays(a) > -1; + } } function isLTE(a, b) { - return a.diffDays(b) > -1; + if (a && b) { + return a.diffDays(b) > -1; + } } function formatNumbers(date) { @@ -187325,7 +187843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getLocale() { return _$$_REQUIRE(_dependencyMap[0]).locales[_$$_REQUIRE(_dependencyMap[0]).defaultLocale]; } -},1431,[1380,1432]); +},1434,[1383,1435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -187386,7 +187904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 'Invalid Date'; } -},1432,[1380]); +},1435,[1383]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -187398,7 +187916,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "previous", "type": "png" }); -},1433,[1258]); +},1436,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -187410,7 +187928,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "next", "type": "png" }); -},1434,[1258]); +},1437,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -187509,7 +188027,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = Day; Day.displayName = 'Day'; -},1435,[3,1436,1530,1543,1380,16,1565,1577,1431,1579,1432,179]); +},1438,[3,1439,1533,1546,1383,16,1568,1580,1434,1582,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, @@ -187545,19 +188063,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = omit; -},1436,[1437,1418,1450,1480,1483,1493,1522,1524]); +},1439,[1440,1421,1453,1483,1486,1496,1525,1527]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function flatRest(func) { return _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])(func, undefined, _$$_REQUIRE(_dependencyMap[2])), func + ''); } module.exports = flatRest; -},1437,[1438,1444,1446]); +},1440,[1441,1447,1449]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var setToString = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); module.exports = setToString; -},1438,[1439,1440]); +},1441,[1442,1443]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HOT_COUNT = 800, HOT_SPAN = 16; @@ -187584,7 +188102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = shortOut; -},1439,[]); +},1442,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var baseSetToString = !_$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[1]) : function (func, string) { return _$$_REQUIRE(_dependencyMap[0])(func, 'toString', { @@ -187595,7 +188113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; module.exports = baseSetToString; -},1440,[1441,1442,1443]); +},1443,[1444,1445,1446]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var defineProperty = function () { try { @@ -187607,14 +188125,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = defineProperty; -},1441,[1397]); +},1444,[1400]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function identity(value) { return value; } module.exports = identity; -},1442,[]); +},1445,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function constant(value) { return function () { @@ -187623,7 +188141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = constant; -},1443,[]); +},1446,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -187652,7 +188170,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = overRest; -},1444,[1445]); +},1447,[1448]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function apply(func, thisArg, args) { switch (args.length) { @@ -187673,7 +188191,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = apply; -},1445,[]); +},1448,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function flatten(array) { var length = array == null ? 0 : array.length; @@ -187681,7 +188199,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = flatten; -},1446,[1447]); +},1449,[1450]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, @@ -187707,7 +188225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFlatten; -},1447,[1448,1449]); +},1450,[1451,1452]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var spreadableSymbol = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0]).isConcatSpreadable : undefined; @@ -187716,7 +188234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isFlattenable; -},1448,[485,1385,1392]); +},1451,[485,1388,1395]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayPush(array, values) { var index = -1, @@ -187731,7 +188249,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayPush; -},1449,[]); +},1452,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function castPath(value, object) { if (_$$_REQUIRE(_dependencyMap[0])(value)) { @@ -187742,7 +188260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = castPath; -},1450,[1385,1451,1452,1478]); +},1453,[1388,1454,1455,1481]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; @@ -187762,7 +188280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isKey; -},1451,[1385,482]); +},1454,[1388,482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; @@ -187781,7 +188299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = stringToPath; -},1452,[1453]); +},1455,[1456]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_MEMOIZE_SIZE = 500; @@ -187799,7 +188317,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = memoizeCapped; -},1453,[1454]); +},1456,[1457]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; @@ -187828,7 +188346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e memoize.Cache = _$$_REQUIRE(_dependencyMap[0]); module.exports = memoize; -},1454,[1455]); +},1457,[1458]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function MapCache(entries) { var index = -1, @@ -187847,7 +188365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e MapCache.prototype.has = _$$_REQUIRE(_dependencyMap[3]); MapCache.prototype.set = _$$_REQUIRE(_dependencyMap[4]); module.exports = MapCache; -},1455,[1456,1472,1475,1476,1477]); +},1458,[1459,1475,1478,1479,1480]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheClear() { this.size = 0; @@ -187859,7 +188377,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheClear; -},1456,[1457,1402,1464]); +},1459,[1460,1405,1467]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function Hash(entries) { var index = -1, @@ -187878,7 +188396,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Hash.prototype.has = _$$_REQUIRE(_dependencyMap[3]); Hash.prototype.set = _$$_REQUIRE(_dependencyMap[4]); module.exports = Hash; -},1457,[1458,1460,1461,1462,1463]); +},1460,[1461,1463,1464,1465,1466]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hashClear() { this.__data__ = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0])(null) : {}; @@ -187886,12 +188404,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashClear; -},1458,[1459]); +},1461,[1462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeCreate = _$$_REQUIRE(_dependencyMap[0])(Object, 'create'); module.exports = nativeCreate; -},1459,[1397]); +},1462,[1400]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; @@ -187900,7 +188418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashDelete; -},1460,[]); +},1463,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; var objectProto = Object.prototype; @@ -187918,7 +188436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashGet; -},1461,[1459]); +},1464,[1462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -187929,7 +188447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashHas; -},1462,[1459]); +},1465,[1462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -187941,7 +188459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashSet; -},1463,[1459]); +},1466,[1462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function ListCache(entries) { var index = -1, @@ -187960,7 +188478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ListCache.prototype.has = _$$_REQUIRE(_dependencyMap[3]); ListCache.prototype.set = _$$_REQUIRE(_dependencyMap[4]); module.exports = ListCache; -},1464,[1465,1466,1469,1470,1471]); +},1467,[1468,1469,1472,1473,1474]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheClear() { this.__data__ = []; @@ -187968,7 +188486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheClear; -},1465,[]); +},1468,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var arrayProto = Array.prototype; var splice = arrayProto.splice; @@ -187994,7 +188512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheDelete; -},1466,[1467]); +},1469,[1470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function assocIndexOf(array, key) { var length = array.length; @@ -188009,14 +188527,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = assocIndexOf; -},1467,[1468]); +},1470,[1471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function eq(value, other) { return value === other || value !== value && other !== other; } module.exports = eq; -},1468,[]); +},1471,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheGet(key) { var data = this.__data__, @@ -188026,14 +188544,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheGet; -},1469,[1467]); +},1472,[1470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheHas(key) { return _$$_REQUIRE(_dependencyMap[0])(this.__data__, key) > -1; } module.exports = listCacheHas; -},1470,[1467]); +},1473,[1470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheSet(key, value) { var data = this.__data__, @@ -188050,7 +188568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheSet; -},1471,[1467]); +},1474,[1470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheDelete(key) { var result = _$$_REQUIRE(_dependencyMap[0])(this, key)['delete'](key); @@ -188060,7 +188578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheDelete; -},1472,[1473]); +},1475,[1476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getMapData(map, key) { var data = map.__data__; @@ -188068,7 +188586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getMapData; -},1473,[1474]); +},1476,[1477]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isKeyable(value) { var type = typeof value; @@ -188076,21 +188594,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isKeyable; -},1474,[]); +},1477,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheGet(key) { return _$$_REQUIRE(_dependencyMap[0])(this, key).get(key); } module.exports = mapCacheGet; -},1475,[1473]); +},1478,[1476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheHas(key) { return _$$_REQUIRE(_dependencyMap[0])(this, key).has(key); } module.exports = mapCacheHas; -},1476,[1473]); +},1479,[1476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheSet(key, value) { var data = _$$_REQUIRE(_dependencyMap[0])(this, key), @@ -188102,14 +188620,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheSet; -},1477,[1473]); +},1480,[1476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function toString(value) { return value == null ? '' : _$$_REQUIRE(_dependencyMap[0])(value); } module.exports = toString; -},1478,[1479]); +},1481,[1482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0; var symbolProto = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0]).prototype : undefined, @@ -188133,7 +188651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseToString; -},1479,[485,1385,1418,482]); +},1482,[485,1388,1421,482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copyObject(source, props, object, customizer) { var isNew = !object; @@ -188160,7 +188678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = copyObject; -},1480,[1481,1482]); +},1483,[1484,1485]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseAssignValue(object, key, value) { if (key == '__proto__' && _$$_REQUIRE(_dependencyMap[0])) { @@ -188176,7 +188694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseAssignValue; -},1481,[1441]); +},1484,[1444]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -188190,14 +188708,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = assignValue; -},1482,[1468,1481]); +},1485,[1471,1484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getAllKeysIn(object) { return _$$_REQUIRE(_dependencyMap[0])(object, _$$_REQUIRE(_dependencyMap[1]), _$$_REQUIRE(_dependencyMap[2])); } module.exports = getAllKeysIn; -},1483,[1484,1485,1488]); +},1486,[1487,1488,1491]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); @@ -188205,14 +188723,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseGetAllKeys; -},1484,[1385,1449]); +},1487,[1388,1452]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function keysIn(object) { return _$$_REQUIRE(_dependencyMap[0])(object) ? _$$_REQUIRE(_dependencyMap[1])(object, true) : _$$_REQUIRE(_dependencyMap[2])(object); } module.exports = keysIn; -},1485,[1382,1420,1486]); +},1488,[1385,1423,1489]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -188235,7 +188753,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseKeysIn; -},1486,[490,1487,1406]); +},1489,[490,1490,1409]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function nativeKeysIn(object) { var result = []; @@ -188250,7 +188768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = nativeKeysIn; -},1487,[]); +},1490,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeGetSymbols = Object.getOwnPropertySymbols; var getSymbolsIn = !nativeGetSymbols ? _$$_REQUIRE(_dependencyMap[0]) : function (object) { @@ -188265,14 +188783,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }; module.exports = getSymbolsIn; -},1488,[1489,1449,1490,1492]); +},1491,[1492,1452,1493,1495]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stubArray() { return []; } module.exports = stubArray; -},1489,[]); +},1492,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var propertyIsEnumerable = objectProto.propertyIsEnumerable; @@ -188288,7 +188806,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; module.exports = getSymbols; -},1490,[1489,1491]); +},1493,[1492,1494]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayFilter(array, predicate) { var index = -1, @@ -188308,12 +188826,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayFilter; -},1491,[]); +},1494,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var getPrototype = _$$_REQUIRE(_dependencyMap[0])(Object.getPrototypeOf, Object); module.exports = getPrototype; -},1492,[1409]); +},1495,[1412]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, @@ -188432,7 +188950,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseClone; -},1493,[490,1385,1494,1495,1394,1386,1496,1497,1499,1500,1501,1502,1503,1510,1516,1518,1483,1520,1485,1419,1521,1482]); +},1496,[490,1388,1497,1498,1397,1389,1499,1500,1502,1503,1504,1505,1506,1513,1519,1521,1486,1523,1488,1422,1524,1485]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -188450,7 +188968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = initCloneArray; -},1494,[]); +},1497,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copyArray(source, array) { var index = -1, @@ -188465,7 +188983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = copyArray; -},1495,[]); +},1498,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; @@ -188485,14 +189003,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneBuffer; -},1496,[486]); +},1499,[486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function initCloneObject(object) { return typeof object.constructor == 'function' && !_$$_REQUIRE(_dependencyMap[0])(object) ? _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])(object)) : {}; } module.exports = initCloneObject; -},1497,[1406,1498,1492]); +},1500,[1409,1501,1495]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectCreate = Object.create; @@ -188516,35 +189034,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = baseCreate; -},1498,[490]); +},1501,[490]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copySymbolsIn(source, object) { return _$$_REQUIRE(_dependencyMap[0])(source, _$$_REQUIRE(_dependencyMap[1])(source), object); } module.exports = copySymbolsIn; -},1499,[1480,1488]); +},1502,[1483,1491]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseAssignIn(object, source) { return object && _$$_REQUIRE(_dependencyMap[0])(source, _$$_REQUIRE(_dependencyMap[1])(source), object); } module.exports = baseAssignIn; -},1500,[1480,1485]); +},1503,[1483,1488]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copySymbols(source, object) { return _$$_REQUIRE(_dependencyMap[0])(source, _$$_REQUIRE(_dependencyMap[1])(source), object); } module.exports = copySymbols; -},1501,[1480,1490]); +},1504,[1483,1493]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseAssign(object, source) { return object && _$$_REQUIRE(_dependencyMap[0])(source, _$$_REQUIRE(_dependencyMap[1])(source), object); } module.exports = baseAssign; -},1502,[1480,1419]); +},1505,[1483,1422]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var boolTag = '[object Boolean]', dateTag = '[object Date]', @@ -188610,7 +189128,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = initCloneByTag; -},1503,[1504,1506,1507,1508,1509]); +},1506,[1507,1509,1510,1511,1512]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); @@ -188619,10 +189137,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneArrayBuffer; -},1504,[1505]); +},1507,[1508]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).Uint8Array; -},1505,[486]); +},1508,[486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cloneDataView(dataView, isDeep) { var buffer = isDeep ? _$$_REQUIRE(_dependencyMap[0])(dataView.buffer) : dataView.buffer; @@ -188630,7 +189148,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneDataView; -},1506,[1504]); +},1509,[1507]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? _$$_REQUIRE(_dependencyMap[0])(typedArray.buffer) : typedArray.buffer; @@ -188638,7 +189156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneTypedArray; -},1507,[1504]); +},1510,[1507]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reFlags = /\w*$/; @@ -188649,7 +189167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneRegExp; -},1508,[]); +},1511,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var symbolProto = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0]).prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; @@ -188659,7 +189177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneSymbol; -},1509,[485]); +},1512,[485]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function Stack(entries) { var data = this.__data__ = new (_$$_REQUIRE(_dependencyMap[0]))(entries); @@ -188672,7 +189190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Stack.prototype.has = _$$_REQUIRE(_dependencyMap[4]); Stack.prototype.set = _$$_REQUIRE(_dependencyMap[5]); module.exports = Stack; -},1510,[1464,1511,1512,1513,1514,1515]); +},1513,[1467,1514,1515,1516,1517,1518]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackClear() { this.__data__ = new (_$$_REQUIRE(_dependencyMap[0]))(); @@ -188680,7 +189198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackClear; -},1511,[1464]); +},1514,[1467]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackDelete(key) { var data = this.__data__, @@ -188690,21 +189208,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackDelete; -},1512,[]); +},1515,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; -},1513,[]); +},1516,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; -},1514,[]); +},1517,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var LARGE_ARRAY_SIZE = 200; @@ -188729,13 +189247,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackSet; -},1515,[1464,1402,1455]); +},1518,[1467,1405,1458]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nodeIsSet = _$$_REQUIRE(_dependencyMap[0]) && _$$_REQUIRE(_dependencyMap[0]).isSet; var isSet = nodeIsSet ? _$$_REQUIRE(_dependencyMap[1])(nodeIsSet) : _$$_REQUIRE(_dependencyMap[2]); module.exports = isSet; -},1516,[1389,1390,1517]); +},1519,[1392,1393,1520]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var setTag = '[object Set]'; @@ -188744,13 +189262,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsSet; -},1517,[483,1394]); +},1520,[483,1397]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nodeIsMap = _$$_REQUIRE(_dependencyMap[0]) && _$$_REQUIRE(_dependencyMap[0]).isMap; var isMap = nodeIsMap ? _$$_REQUIRE(_dependencyMap[1])(nodeIsMap) : _$$_REQUIRE(_dependencyMap[2]); module.exports = isMap; -},1518,[1389,1390,1519]); +},1521,[1392,1393,1522]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]'; @@ -188759,14 +189277,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsMap; -},1519,[483,1394]); +},1522,[483,1397]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getAllKeys(object) { return _$$_REQUIRE(_dependencyMap[0])(object, _$$_REQUIRE(_dependencyMap[1]), _$$_REQUIRE(_dependencyMap[2])); } module.exports = getAllKeys; -},1520,[1484,1419,1490]); +},1523,[1487,1422,1493]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayEach(array, iteratee) { var index = -1, @@ -188782,14 +189300,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayEach; -},1521,[]); +},1524,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function customOmitClone(value) { return _$$_REQUIRE(_dependencyMap[0])(value) ? undefined : value; } module.exports = customOmitClone; -},1522,[1523]); +},1525,[1526]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectTag = '[object Object]'; var funcProto = Function.prototype, @@ -188814,7 +189332,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isPlainObject; -},1523,[483,484,1492]); +},1526,[483,484,1495]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseUnset(object, path) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -188823,14 +189341,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseUnset; -},1524,[1450,1525,1527,1529]); +},1527,[1453,1528,1530,1532]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function parent(object, path) { return path.length < 2 ? object : _$$_REQUIRE(_dependencyMap[0])(object, _$$_REQUIRE(_dependencyMap[1])(path, 0, -1)); } module.exports = parent; -},1525,[1526,1528]); +},1528,[1529,1531]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseGet(object, path) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -188845,7 +189363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseGet; -},1526,[1450,1527]); +},1529,[1453,1530]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0; @@ -188859,7 +189377,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toKey; -},1527,[482]); +},1530,[482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSlice(array, start, end) { var index = -1, @@ -188887,7 +189405,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSlice; -},1528,[]); +},1531,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function last(array) { var length = array == null ? 0 : array.length; @@ -188895,14 +189413,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = last; -},1529,[]); +},1532,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isEqual(value, other) { return _$$_REQUIRE(_dependencyMap[0])(value, other); } module.exports = isEqual; -},1530,[1531]); +},1533,[1534]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { @@ -188917,7 +189435,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsEqual; -},1531,[483,1532]); +},1534,[483,1535]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1; var argsTag = '[object Arguments]', @@ -188973,7 +189491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsEqualDeep; -},1532,[1385,1394,1386,1510,1388,1533,1539,1542]); +},1535,[1388,1397,1389,1513,1391,1536,1542,1545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -189038,7 +189556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalArrays; -},1533,[1534,1537,1538]); +},1536,[1537,1540,1541]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function SetCache(values) { var index = -1, @@ -189053,7 +189571,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SetCache.prototype.add = SetCache.prototype.push = _$$_REQUIRE(_dependencyMap[1]); SetCache.prototype.has = _$$_REQUIRE(_dependencyMap[2]); module.exports = SetCache; -},1534,[1455,1535,1536]); +},1537,[1458,1538,1539]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -189064,14 +189582,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = setCacheAdd; -},1535,[]); +},1538,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function setCacheHas(value) { return this.__data__.has(value); } module.exports = setCacheHas; -},1536,[]); +},1539,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arraySome(array, predicate) { var index = -1, @@ -189087,14 +189605,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arraySome; -},1537,[]); +},1540,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cacheHas(cache, key) { return cache.has(key); } module.exports = cacheHas; -},1538,[]); +},1541,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -189177,7 +189695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalByTag; -},1539,[485,1505,1468,1540,1541,1533]); +},1542,[485,1508,1471,1543,1544,1536]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapToArray(map) { var index = -1, @@ -189189,7 +189707,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapToArray; -},1540,[]); +},1543,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function setToArray(set) { var index = -1, @@ -189201,7 +189719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = setToArray; -},1541,[]); +},1544,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1; var objectProto = Object.prototype; @@ -189272,7 +189790,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalObjects; -},1542,[1520]); +},1545,[1523]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function some(collection, predicate, guard) { var func = _$$_REQUIRE(_dependencyMap[0])(collection) ? _$$_REQUIRE(_dependencyMap[1]) : _$$_REQUIRE(_dependencyMap[2]); @@ -189285,7 +189803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = some; -},1543,[1385,1537,1544,1550,1551]); +},1546,[1388,1540,1547,1553,1554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSome(collection, predicate) { var result; @@ -189299,12 +189817,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSome; -},1544,[1545]); +},1547,[1548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var baseEach = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); module.exports = baseEach; -},1545,[1546,1547]); +},1548,[1549,1550]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createBaseEach(eachFunc, fromRight) { return function (collection, iteratee) { @@ -189331,19 +189849,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createBaseEach; -},1546,[1382]); +},1549,[1385]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseForOwn(object, iteratee) { return object && _$$_REQUIRE(_dependencyMap[0])(object, iteratee, _$$_REQUIRE(_dependencyMap[1])); } module.exports = baseForOwn; -},1547,[1548,1419]); +},1550,[1551,1422]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var baseFor = _$$_REQUIRE(_dependencyMap[0])(); module.exports = baseFor; -},1548,[1549]); +},1551,[1552]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createBaseFor(fromRight) { return function (object, iteratee, keysFunc) { @@ -189365,7 +189883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createBaseFor; -},1549,[]); +},1552,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isIterateeCall(value, index, object) { if (!_$$_REQUIRE(_dependencyMap[0])(object)) { @@ -189382,7 +189900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isIterateeCall; -},1550,[490,1382,1422,1468]); +},1553,[490,1385,1425,1471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIteratee(value) { if (typeof value == 'function') { @@ -189401,7 +189919,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIteratee; -},1551,[1442,1385,1552,1559,1562]); +},1554,[1445,1388,1555,1562,1565]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -189419,14 +189937,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMatchesProperty; -},1552,[1451,1553,1554,1527,1555,1556,1531]); +},1555,[1454,1556,1557,1530,1558,1559,1534]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isStrictComparable(value) { return value === value && !_$$_REQUIRE(_dependencyMap[0])(value); } module.exports = isStrictComparable; -},1553,[490]); +},1556,[490]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function matchesStrictComparable(key, srcValue) { return function (object) { @@ -189439,7 +189957,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = matchesStrictComparable; -},1554,[]); +},1557,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function get(object, path, defaultValue) { var result = object == null ? undefined : _$$_REQUIRE(_dependencyMap[0])(object, path); @@ -189447,14 +189965,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = get; -},1555,[1526]); +},1558,[1529]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hasIn(object, path) { return object != null && _$$_REQUIRE(_dependencyMap[0])(object, path, _$$_REQUIRE(_dependencyMap[1])); } module.exports = hasIn; -},1556,[1557,1558]); +},1559,[1560,1561]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hasPath(object, path, hasFunc) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -189481,14 +189999,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hasPath; -},1557,[1450,1527,1383,1422,1385,1392]); +},1560,[1453,1530,1386,1425,1388,1395]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseHasIn(object, key) { return object != null && key in Object(object); } module.exports = baseHasIn; -},1558,[]); +},1561,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseMatches(source) { var matchData = _$$_REQUIRE(_dependencyMap[0])(source); @@ -189503,7 +190021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMatches; -},1559,[1560,1554,1561]); +},1562,[1563,1557,1564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getMatchData(object) { var result = _$$_REQUIRE(_dependencyMap[0])(object), @@ -189519,7 +190037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getMatchData; -},1560,[1419,1553]); +},1563,[1422,1556]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -189570,14 +190088,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsMatch; -},1561,[1510,1531]); +},1564,[1513,1534]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function property(path) { return _$$_REQUIRE(_dependencyMap[0])(path) ? _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])(path)) : _$$_REQUIRE(_dependencyMap[3])(path); } module.exports = property; -},1562,[1451,1563,1527,1564]); +},1565,[1454,1566,1530,1567]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseProperty(key) { return function (object) { @@ -189586,7 +190104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseProperty; -},1563,[]); +},1566,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function basePropertyDeep(path) { return function (object) { @@ -189595,7 +190113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = basePropertyDeep; -},1564,[1526]); +},1567,[1529]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -189781,7 +190299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = BasicDay; BasicDay.displayName = 'BasicDay'; -},1565,[16,18,3,1566,1567,1432,179]); +},1568,[16,18,3,1569,1570,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -189864,7 +190382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.day.basic'] || {})); } -},1566,[18,1413,3,1411]); +},1569,[18,1416,3,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -189982,7 +190500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Marking.displayName = 'Marking'; Marking.markings = Markings; -},1567,[3,1568,16,18,1570,1571,179,1573]); +},1570,[3,1571,16,18,1573,1574,179,1576]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function filter(collection, predicate) { var func = _$$_REQUIRE(_dependencyMap[0])(collection) ? _$$_REQUIRE(_dependencyMap[1]) : _$$_REQUIRE(_dependencyMap[2]); @@ -189990,7 +190508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = filter; -},1568,[1385,1491,1569,1551]); +},1571,[1388,1494,1572,1554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFilter(collection, predicate) { var result = []; @@ -190005,7 +190523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFilter; -},1569,[1545]); +},1572,[1548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190047,7 +190565,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.marking'] || {})); } -},1570,[18,1412]); +},1573,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190107,7 +190625,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Dot; -},1571,[16,18,3,1572,179]); +},1574,[16,18,3,1575,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190152,7 +190670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.dot'] || {})); } -},1572,[18,1413]); +},1575,[18,1416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190412,7 +190930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return reservationProps; } -},1573,[3,4,1530,1555,1436,1574,1415]); +},1576,[3,4,1533,1558,1439,1577,1418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function pickBy(object, predicate) { if (object == null) { @@ -190430,7 +190948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = pickBy; -},1574,[1418,1483,1551,1575]); +},1577,[1421,1486,1554,1578]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function basePickBy(object, paths, predicate) { var index = -1, @@ -190450,7 +190968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = basePickBy; -},1575,[1526,1576,1450]); +},1578,[1529,1579,1453]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSet(object, path, value, customizer) { if (!_$$_REQUIRE(_dependencyMap[0])(object)) { @@ -190489,7 +191007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSet; -},1576,[490,1450,1527,1422,1482]); +},1579,[490,1453,1530,1425,1485]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190592,11 +191110,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 17, overflow: 'hidden' }); - - if (markingStyle.containerStyle) { - containerStyle.push(markingStyle.containerStyle); - } - var start = markingStyle.startingDay; var end = markingStyle.endingDay; @@ -190613,6 +191126,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: (_markingStyle$endingD = markingStyle.endingDay) == null ? undefined : _markingStyle$endingD.backgroundColor }); } + + if (markingStyle.containerStyle) { + containerStyle.push(markingStyle.containerStyle); + } } return containerStyle; @@ -190734,7 +191251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onLongPress: _propTypes.default.func, date: _propTypes.default.string }; -},1577,[3,582,16,18,1578,1571,1432,179]); +},1580,[3,582,16,18,1581,1574,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190812,7 +191329,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.day.period'] || {})); } -},1578,[18,1413]); +},1581,[18,1416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190853,20 +191370,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getCalendarDateString: getCalendarDateString, getDefaultLocale: getDefaultLocale }; -},1579,[3,1580,1581,1425,1583,1380,1432,1431]); +},1582,[3,1583,1584,1428,1586,1383,1435,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isUndefined(value) { return value === undefined; } module.exports = isUndefined; -},1580,[]); +},1583,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nodeIsDate = _$$_REQUIRE(_dependencyMap[0]) && _$$_REQUIRE(_dependencyMap[0]).isDate; var isDate = nodeIsDate ? _$$_REQUIRE(_dependencyMap[1])(nodeIsDate) : _$$_REQUIRE(_dependencyMap[2]); module.exports = isDate; -},1581,[1389,1390,1582]); +},1584,[1392,1393,1585]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var dateTag = '[object Date]'; @@ -190875,7 +191392,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsDate; -},1582,[483,484]); +},1585,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var numberTag = '[object Number]'; @@ -190884,7 +191401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isNumber; -},1583,[483,484]); +},1586,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190931,7 +191448,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return targetRef; }; -},1584,[16]); +},1587,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190961,7 +191478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return state; } -},1585,[1432,1431]); +},1588,[1435,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -190990,6 +191507,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _index = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _isEqual = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } @@ -191053,21 +191572,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onScrollEndDrag = props.onScrollEndDrag, onMomentumScrollBegin = props.onMomentumScrollBegin, onMomentumScrollEnd = props.onMomentumScrollEnd, + contentContainerStyle = props.contentContainerStyle, onEndReachedThreshold = props.onEndReachedThreshold, onEndReached = props.onEndReached; - var calendarProps = (0, _$$_REQUIRE(_dependencyMap[12]).extractCalendarProps)(props); - var headerProps = (0, _$$_REQUIRE(_dependencyMap[12]).extractHeaderProps)(props); + var calendarProps = (0, _$$_REQUIRE(_dependencyMap[13]).extractCalendarProps)(props); + var headerProps = (0, _$$_REQUIRE(_dependencyMap[13]).extractHeaderProps)(props); var calendarSize = horizontal ? calendarWidth : calendarHeight; - var _useState = (0, _react.useState)((0, _$$_REQUIRE(_dependencyMap[13]).parseDate)(current)), + var _useState = (0, _react.useState)((0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(current)), _useState2 = (0, _slicedToArray2.default)(_useState, 2), currentMonth = _useState2[0], setCurrentMonth = _useState2[1]; + var shouldUseAndroidRTLFix = (0, _react.useMemo)(function () { + return _constants.default.isAndroidRTL && horizontal; + }, [horizontal]); var style = (0, _react.useRef)((0, _style.default)(theme)); var list = (0, _react.useRef)(); var range = (0, _react.useRef)(horizontal ? 1 : 3); - var initialDate = (0, _react.useRef)((0, _$$_REQUIRE(_dependencyMap[13]).parseDate)(current) || new _xdate.default()); + var initialDate = (0, _react.useRef)((0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(current) || new _xdate.default()); var visibleMonth = (0, _react.useRef)(currentMonth); var items = (0, _react.useMemo)(function () { var months = []; @@ -191104,11 +191627,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _scrollToMonth(new _xdate.default(current)); } }, [current]); - (0, _$$_REQUIRE(_dependencyMap[14]).useDidUpdate)(function () { + (0, _$$_REQUIRE(_dependencyMap[15]).useDidUpdate)(function () { var currMont = currentMonth == null ? undefined : currentMonth.clone(); if (currMont) { - var data = (0, _$$_REQUIRE(_dependencyMap[13]).xdateToData)(currMont); + var data = (0, _$$_REQUIRE(_dependencyMap[14]).xdateToData)(currMont); onMonthChange == null ? undefined : onMonthChange(data); onVisibleMonthsChange == null ? undefined : onVisibleMonthsChange([data]); } @@ -191117,18 +191640,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _scrollToDay = function _scrollToDay(date, offset, animated) { var _initialDate$current3; - var scrollTo = (0, _$$_REQUIRE(_dependencyMap[13]).parseDate)(date); + var scrollTo = (0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(date); var diffMonths = Math.round(initialDate == null ? undefined : (_initialDate$current3 = initialDate.current) == null ? undefined : _initialDate$current3.clone().setDate(1).diffMonths(scrollTo == null ? undefined : scrollTo.clone().setDate(1))); var scrollAmount = calendarSize * pastScrollRange + diffMonths * calendarSize + (offset || 0); if (!horizontal) { var week = 0; - var days = (0, _$$_REQUIRE(_dependencyMap[15]).page)(scrollTo, firstDay); + var days = (0, _$$_REQUIRE(_dependencyMap[16]).page)(scrollTo, firstDay); for (var i = 0; i < days.length; i++) { week = Math.floor(i / 7); - if ((0, _$$_REQUIRE(_dependencyMap[15]).sameDate)(days[i], scrollTo)) { + if ((0, _$$_REQUIRE(_dependencyMap[16]).sameDate)(days[i], scrollTo)) { scrollAmount += 46 * week; break; } @@ -191148,9 +191671,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _scrollToMonth = (0, _react.useCallback)(function (date) { var _initialDate$current4; - var scrollTo = (0, _$$_REQUIRE(_dependencyMap[13]).parseDate)(date); + var scrollTo = (0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(date); var diffMonths = Math.round(initialDate == null ? undefined : (_initialDate$current4 = initialDate.current) == null ? undefined : _initialDate$current4.clone().setDate(1).diffMonths(scrollTo == null ? undefined : scrollTo.clone().setDate(1))); - var scrollAmount = calendarSize * pastScrollRange + diffMonths * calendarSize; + var scrollAmount = calendarSize * (shouldUseAndroidRTLFix ? pastScrollRange - diffMonths : pastScrollRange + diffMonths); if (scrollAmount !== 0) { var _list$current2; @@ -191160,12 +191683,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e animated: animateScroll }); } - }, [calendarSize]); + }, [calendarSize, shouldUseAndroidRTLFix, pastScrollRange, animateScroll]); var addMonth = (0, _react.useCallback)(function (count) { var day = currentMonth == null ? undefined : currentMonth.clone().addMonths(count, true); - if ((0, _$$_REQUIRE(_dependencyMap[15]).sameMonth)(day, currentMonth) || getDateIndex(day) === -1) { + if ((0, _$$_REQUIRE(_dependencyMap[16]).sameMonth)(day, currentMonth) || getDateIndex(day) === -1) { return; } @@ -191181,7 +191704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var key = _ref2[0]; var _ = _ref2[1]; - if ((0, _$$_REQUIRE(_dependencyMap[15]).sameMonth)(new _xdate.default(key), new _xdate.default(item))) { + if ((0, _$$_REQUIRE(_dependencyMap[16]).sameMonth)(new _xdate.default(key), new _xdate.default(item))) { return markedDates; } } @@ -191198,7 +191721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = -range.current; i <= range.current; i++) { var newMonth = currentMonth == null ? undefined : currentMonth.clone().addMonths(i, true); - if ((0, _$$_REQUIRE(_dependencyMap[15]).sameMonth)(date, newMonth)) { + if ((0, _$$_REQUIRE(_dependencyMap[16]).sameMonth)(date, newMonth)) { return true; } } @@ -191207,7 +191730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [currentMonth]); var renderItem = (0, _react.useCallback)(function (_ref3) { var item = _ref3.item; - var dateString = (0, _$$_REQUIRE(_dependencyMap[13]).toMarkingFormat)(item); + var dateString = (0, _$$_REQUIRE(_dependencyMap[14]).toMarkingFormat)(item); var _dateString$split = dateString.split('-'), _dateString$split2 = (0, _slicedToArray2.default)(_dateString$split, 2), @@ -191215,7 +191738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e month = _dateString$split2[1]; var testId = testID + ".item_" + year + "-" + month; - return (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_item.default, Object.assign({}, calendarProps, { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_item.default, Object.assign({}, calendarProps, { testID: testId, markedDates: getMarkedDatesForItem(item), item: item, @@ -191230,7 +191753,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var renderStaticHeader = function renderStaticHeader() { if (staticHeader && horizontal) { - return (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_index.default, Object.assign({}, headerProps, { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_index.default, Object.assign({}, headerProps, { testID: testID + ".staticHeader", style: staticHeaderStyle, month: currentMonth, @@ -191248,22 +191771,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _viewableItems$; var viewableItems = _ref4.viewableItems; - var newVisibleMonth = (0, _$$_REQUIRE(_dependencyMap[13]).parseDate)((_viewableItems$ = viewableItems[0]) == null ? undefined : _viewableItems$.item); + var newVisibleMonth = (0, _$$_REQUIRE(_dependencyMap[14]).parseDate)((_viewableItems$ = viewableItems[0]) == null ? undefined : _viewableItems$.item); - if (!(0, _$$_REQUIRE(_dependencyMap[15]).sameDate)(visibleMonth == null ? undefined : visibleMonth.current, newVisibleMonth)) { - visibleMonth.current = newVisibleMonth; + if (shouldUseAndroidRTLFix) { + var centerIndex = items.findIndex(function (item) { + return (0, _isEqual.default)((0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(current), item); + }); + var adjustedOffset = centerIndex - items.findIndex(function (item) { + return (0, _isEqual.default)(newVisibleMonth, item); + }); + visibleMonth.current = items[centerIndex + adjustedOffset]; setCurrentMonth(visibleMonth.current); + } else { + if (!(0, _$$_REQUIRE(_dependencyMap[16]).sameDate)(visibleMonth == null ? undefined : visibleMonth.current, newVisibleMonth)) { + visibleMonth.current = newVisibleMonth; + setCurrentMonth(visibleMonth.current); + } } - }, []); + }, [items, shouldUseAndroidRTLFix, current]); var viewabilityConfigCallbackPairs = (0, _react.useRef)([{ viewabilityConfig: viewabilityConfig.current, onViewableItemsChanged: onViewableItemsChanged }]); - return (0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { style: style.current.flatListContainer, testID: testID, - children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.FlatList, { + children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.FlatList, { ref: list, + windowSize: shouldUseAndroidRTLFix ? pastScrollRange + futureScrollRange + 1 : undefined, style: listStyle, showsVerticalScrollIndicator: showScrollIndicator, showsHorizontalScrollIndicator: showScrollIndicator, @@ -191288,7 +191823,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onMomentumScrollBegin: onMomentumScrollBegin, onMomentumScrollEnd: onMomentumScrollEnd, onScrollBeginDrag: onScrollBeginDrag, - onScrollEndDrag: onScrollEndDrag + onScrollEndDrag: onScrollEndDrag, + contentContainerStyle: contentContainerStyle }), renderStaticHeader()] }); }; @@ -191315,7 +191851,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onEndReached: _propTypes.default.func, nestedScrollEnabled: _propTypes.default.bool }); -},1586,[3,33,1587,582,1380,16,18,1411,1588,1379,1589,1414,1573,1432,1584,1431,179]); +},1589,[3,33,1590,582,1383,16,18,1414,1591,1382,1592,1417,1533,1576,1435,1587,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -191336,7 +191872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = findIndex; -},1587,[1423,1428,1551]); +},1590,[1426,1431,1554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191385,7 +191921,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar-list.main'] || {})); } -},1588,[18,1413]); +},1591,[18,1416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191484,7 +192020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = CalendarListItem; CalendarListItem.displayName = 'CalendarListItem'; -},1589,[16,18,3,1588,1379,1573,1432,179]); +},1592,[16,18,3,1591,1382,1576,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191718,7 +192254,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return array; } -},1590,[3,22,33,1380,16,18,1411,1379,1414,1591,1588,1573,1432,179]); +},1593,[3,22,33,1383,16,18,1414,1382,1417,1594,1591,1576,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191761,6 +192297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onReachNearEdgeThreshold = props.onReachNearEdgeThreshold, _props$initialPageInd = props.initialPageIndex, initialPageIndex = _props$initialPageInd === undefined ? 0 : _props$initialPageInd, + initialOffset = props.initialOffset, extendedState = props.extendedState, scrollViewProps = props.scrollViewProps, _props$positionIndex = props.positionIndex, @@ -191771,8 +192308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e layoutProvider = props.layoutProvider, onScroll = props.onScroll, onEndReached = props.onEndReached, - renderFooter = props.renderFooter, - style = props.style; + renderFooter = props.renderFooter; var dataProvider = (0, _react.useMemo)(function () { return dataProviderMaker(data); }, [data]); @@ -191784,6 +192320,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e dim.height = pageHeight; })); + var shouldUseAndroidRTLFix = (0, _react.useMemo)(function () { + return _constants.default.isAndroidRTL && isHorizontal; + }, []); var listRef = (0, _$$_REQUIRE(_dependencyMap[7]).useCombinedRefs)(ref); var pageIndex = (0, _react.useRef)(); var isOnEdge = (0, _react.useRef)(false); @@ -191801,7 +192340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e setTimeout(function () { var _listRef$current; - var x = isHorizontal ? Math.floor(data.length / 2) * pageWidth : 0; + var x = isHorizontal ? _constants.default.isAndroidRTL ? Math.floor(data.length / 2) + 1 : Math.floor(data.length / 2) * pageWidth : 0; var y = isHorizontal ? 0 : positionIndex * pageHeight; (_listRef$current = listRef.current) == null ? undefined : _listRef$current.scrollToOffset == null ? undefined : _listRef$current.scrollToOffset(x, y, false); }, 0); @@ -191809,9 +192348,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _onScroll = (0, _react.useCallback)(function (event, offsetX, offsetY) { reloadPagesDebounce == null ? undefined : reloadPagesDebounce.cancel(); - var _event$nativeEvent$co = event.nativeEvent.contentOffset, - x = _event$nativeEvent$co.x, - y = _event$nativeEvent$co.y; + var contentOffset = event.nativeEvent.contentOffset; + var y = contentOffset.y; + var x = shouldUseAndroidRTLFix ? pageWidth * data.length - contentOffset.x : contentOffset.x; var newPageIndex = Math.round(isHorizontal ? x / pageWidth : y / pageHeight); if (pageIndex.current !== newPageIndex) { @@ -191867,24 +192406,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onMomentumScrollEnd: onMomentumScrollEnd }); }, [onScrollBeginDrag, onMomentumScrollEnd, scrollViewProps, isHorizontal]); - - var _style = (0, _react.useMemo)(function () { - return [{ + var style = (0, _react.useMemo)(function () { + return { height: pageHeight - }, style]; - }, [pageHeight, style]); - + }; + }, [pageHeight]); return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[6]).RecyclerListView, { ref: listRef, isHorizontal: isHorizontal, + disableRecycling: shouldUseAndroidRTLFix, rowRenderer: renderItem, dataProvider: dataProvider, layoutProvider: layoutProvider != null ? layoutProvider : _layoutProvider.current, extendedState: extendedState, - initialRenderIndex: initialPageIndex, + initialRenderIndex: initialOffset ? undefined : initialPageIndex, + initialOffset: initialOffset, renderAheadOffset: 5 * pageWidth, onScroll: _onScroll, - style: _style, + style: style, scrollViewProps: scrollViewPropsMemo, onEndReached: onEndReached, onEndReachedThreshold: onEndReachedThreshold, @@ -191894,7 +192433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _react.forwardRef)(InfiniteList); -},1591,[3,1592,480,1594,16,1411,1595,1584,179]); +},1594,[3,1595,480,1597,16,1414,1598,1587,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function inRange(number, start, end) { start = _$$_REQUIRE(_dependencyMap[0])(start); @@ -191911,7 +192450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = inRange; -},1592,[1424,481,1593]); +},1595,[1427,481,1596]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max, nativeMin = Math.min; @@ -191921,34 +192460,85 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseInRange; -},1593,[]); +},1596,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function noop() {} module.exports = noop; -},1594,[]); +},1597,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.ComponentCompat = exports.BaseDataProvider = exports.AutoScroll = exports.BaseScrollView = exports.BaseItemAnimator = exports.ProgressiveListView = exports.RecyclerListView = exports.GridLayoutManager = exports.GridLayoutProvider = exports.WrapGridLayoutManager = exports.LayoutManager = exports.BaseLayoutProvider = exports.LayoutProvider = exports.DataProvider = exports.ContextProvider = undefined; exports.ContextProvider = _$$_REQUIRE(_dependencyMap[0]).default; exports.DataProvider = _$$_REQUIRE(_dependencyMap[1]).default; - exports.BaseDataProvider = _$$_REQUIRE(_dependencyMap[1]).BaseDataProvider; - exports.BaseLayoutProvider = _$$_REQUIRE(_dependencyMap[2]).BaseLayoutProvider; - exports.LayoutProvider = _$$_REQUIRE(_dependencyMap[2]).LayoutProvider; - exports.GridLayoutProvider = _$$_REQUIRE(_dependencyMap[3]).GridLayoutProvider; + Object.defineProperty(exports, "BaseDataProvider", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).BaseDataProvider; + } + }); + Object.defineProperty(exports, "BaseLayoutProvider", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2]).BaseLayoutProvider; + } + }); + Object.defineProperty(exports, "LayoutProvider", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2]).LayoutProvider; + } + }); + Object.defineProperty(exports, "GridLayoutProvider", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3]).GridLayoutProvider; + } + }); exports.RecyclerListView = _$$_REQUIRE(_dependencyMap[4]).default; exports.BaseScrollView = _$$_REQUIRE(_dependencyMap[5]).default; - exports.BaseItemAnimator = _$$_REQUIRE(_dependencyMap[6]).BaseItemAnimator; - exports.AutoScroll = _$$_REQUIRE(_dependencyMap[7]).AutoScroll; - exports.LayoutManager = _$$_REQUIRE(_dependencyMap[8]).LayoutManager; - exports.WrapGridLayoutManager = _$$_REQUIRE(_dependencyMap[8]).WrapGridLayoutManager; - exports.GridLayoutManager = _$$_REQUIRE(_dependencyMap[9]).GridLayoutManager; + Object.defineProperty(exports, "BaseItemAnimator", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[6]).BaseItemAnimator; + } + }); + Object.defineProperty(exports, "AutoScroll", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[7]).AutoScroll; + } + }); + Object.defineProperty(exports, "LayoutManager", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[8]).LayoutManager; + } + }); + Object.defineProperty(exports, "WrapGridLayoutManager", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[8]).WrapGridLayoutManager; + } + }); + Object.defineProperty(exports, "GridLayoutManager", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[9]).GridLayoutManager; + } + }); exports.ProgressiveListView = _$$_REQUIRE(_dependencyMap[10]).default; - exports.ComponentCompat = _$$_REQUIRE(_dependencyMap[11]).ComponentCompat; -},1595,[1596,1597,1601,1604,1606,1625,1608,1626,1602,1605,1627,1621]); + Object.defineProperty(exports, "ComponentCompat", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[11]).ComponentCompat; + } + }); +},1598,[1599,1600,1604,1607,1609,1628,1611,1629,1605,1608,1630,1624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -191963,7 +192553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ContextProvider; -},1596,[]); +},1599,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -191974,13 +192564,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -191994,6 +192586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.BaseDataProvider = undefined; var BaseDataProvider = function () { function BaseDataProvider(rowHasChanged, getStableId) { @@ -192086,7 +192679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(BaseDataProvider); exports.default = DataProvider; -},1597,[1598]); +},1600,[1601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192095,7 +192688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.ObjectUtil = _$$_REQUIRE(_dependencyMap[0]).ObjectUtil; exports.Default = _$$_REQUIRE(_dependencyMap[1]).Default; -},1598,[1599,1600]); +},1601,[1602,1603]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192135,7 +192728,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.ObjectUtil = ObjectUtil; -},1599,[]); +},1602,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192154,7 +192747,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.Default = Default; -},1600,[1599]); +},1603,[1602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192165,13 +192758,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -192185,6 +192780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.LayoutProvider = exports.BaseLayoutProvider = undefined; var BaseLayoutProvider = function () { function BaseLayoutProvider() { @@ -192249,7 +192845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(BaseLayoutProvider); exports.LayoutProvider = LayoutProvider; -},1601,[1602]); +},1604,[1605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192260,13 +192856,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -192280,6 +192878,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.WrapGridLayoutManager = exports.LayoutManager = undefined; var LayoutManager = function () { function LayoutManager() {} @@ -192349,6 +192948,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; + WrapGridLayoutManager.prototype.removeLayout = function (index) { + _super.prototype.removeLayout.call(this, index); + + if (this._layouts.length === 0) { + this._totalHeight = 0; + this._totalWidth = 0; + } + }; + WrapGridLayoutManager.prototype.getLayouts = function () { return this._layouts; }; @@ -192516,7 +193124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(LayoutManager); exports.WrapGridLayoutManager = WrapGridLayoutManager; -},1602,[1603]); +},1605,[1606]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192527,13 +193135,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -192562,7 +193172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(Error); exports.default = CustomError; -},1603,[]); +},1606,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192573,13 +193183,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -192593,6 +193205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.GridLayoutProvider = undefined; var GridLayoutProvider = function (_super) { __extends(GridLayoutProvider, _super); @@ -192641,7 +193254,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[1]).LayoutProvider); exports.GridLayoutProvider = GridLayoutProvider; -},1604,[1605,1601]); +},1607,[1608,1604]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192652,13 +193265,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -192672,6 +193287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.GridLayoutManager = undefined; var GridLayoutManager = function (_super) { __extends(GridLayoutManager, _super); @@ -192740,7 +193356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).WrapGridLayoutManager); exports.GridLayoutManager = GridLayoutManager; -},1605,[1602]); +},1608,[1605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -192751,13 +193367,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -193170,6 +193788,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; }; + RecyclerListView.prototype.getNativeScrollRef = function () { + if (this._scrollComponent && this._scrollComponent.getNativeScrollRef) { + return this._scrollComponent.getNativeScrollRef(); + } + + return null; + }; + RecyclerListView.prototype.renderCompat = function () { var _this = this; @@ -193338,7 +193964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; RecyclerListView.prototype._initStateIfRequired = function (stack) { - if (!this.state) { + if (!this.state && !this.getHasRenderedOnce()) { this.state = { internalSnapshot: {}, renderStack: stack @@ -193558,7 +194184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemLayout: _$$_REQUIRE(_dependencyMap[13]).func, windowCorrectionConfig: _$$_REQUIRE(_dependencyMap[13]).object }; -},1606,[16,18,1607,1608,1603,1609,1610,1615,1616,1617,1598,1619,1621,1622,1601,1597,1596]); +},1609,[16,18,1610,1611,1606,1612,1613,1618,1619,1620,1601,1622,1624,1625,1604,1600,1599]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; var NAN = 0 / 0; @@ -193734,13 +194360,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = debounce; -},1607,[]); +},1610,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.BaseItemAnimator = undefined; var BaseItemAnimator = function () { function BaseItemAnimator() {} @@ -193764,7 +194391,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.BaseItemAnimator = BaseItemAnimator; -},1608,[]); +},1611,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -193814,7 +194441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.default = RecyclerListViewExceptions; -},1609,[]); +},1612,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -194244,7 +194871,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = VirtualRenderer; -},1610,[1611,1598,1612,1613,1603,1609]); +},1613,[1614,1601,1615,1616,1606,1612]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -194263,7 +194890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = TSCast; -},1611,[]); +},1614,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -194348,10 +194975,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = RecycleItemPool; -},1612,[]); +},1615,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; + var __spreadArray = this && this.__spreadArray || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + Object.defineProperty(exports, "__esModule", { value: true }); @@ -194683,7 +195320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var notNow = this._calculateArrayDiff(oldItems, newItems); if (now.length > 0 || notNow.length > 0) { - func(newItems.slice(), now, notNow); + func(__spreadArray([], newItems, true), now, notNow); } } }; @@ -194705,7 +195342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ViewabilityTracker; -},1613,[1614]); +},1616,[1617]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -194871,31 +195508,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = BinarySearch; -},1614,[1603]); +},1617,[1606]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.Constants = undefined; exports.Constants = { CONTEXT_PROVIDER_OFFSET_KEY_SUFFIX: "_offset", CONTEXT_PROVIDER_LAYOUT_KEY_SUFFIX: "_layouts" }; -},1615,[]); +},1618,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.Messages = undefined; exports.Messages = { ERROR_LISTVIEW_VALIDATION: "missing datasource or layout provider, cannot proceed without it", WARN_SCROLL_TO_INDEX: "scrollTo was called before RecyclerListView was measured, please wait for the mount to finish", VISIBLE_INDEXES_CHANGED_DEPRECATED: "onVisibleIndexesChanged deprecated. Please use onVisibleIndicesChanged instead.", ANIMATION_ON_PAGINATION: "Looks like you're trying to use RecyclerListView's layout animation render while doing pagination. This operation will be ignored to avoid creation of too many items due to developer error." }; -},1616,[]); +},1619,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -194906,13 +195545,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195008,6 +195649,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; }; + ScrollComponent.prototype.getNativeScrollRef = function () { + return this._scrollViewRef; + }; + ScrollComponent.prototype.render = function () { var Scroller = _$$_REQUIRE(_dependencyMap[2]).default.cast(this.props.externalScrollView); @@ -195052,7 +195697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[3]).default); exports.default = ScrollComponent; -},1617,[16,18,1611,1618]); +},1620,[16,18,1614,1621]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195063,13 +195708,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195097,11 +195744,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; }; + BaseScrollComponent.prototype.getNativeScrollRef = function () { + return null; + }; + return BaseScrollComponent; }(React.Component); exports.default = BaseScrollComponent; -},1618,[16]); +},1621,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195112,13 +195763,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195212,21 +195865,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var props = this.props.forceNonDeterministicRendering ? { ref: this._setRef, onLayout: this._onLayout, - style: __assign({ + style: __assign(__assign({ flexDirection: this.props.isHorizontal ? "column" : "row", left: this.props.x, position: "absolute", top: this.props.y - }, this.props.styleOverrides, this.animatorStyleOverrides) + }, this.props.styleOverrides), this.animatorStyleOverrides) } : { ref: this._setRef, - style: __assign({ + style: __assign(__assign({ left: this.props.x, position: "absolute", top: this.props.y, height: this.props.height, width: this.props.width - }, this.props.styleOverrides, this.animatorStyleOverrides) + }, this.props.styleOverrides), this.animatorStyleOverrides) }; return this._renderItemContainer(props, this.props, this.renderChild()); }; @@ -195263,7 +195916,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[2]).default); exports.default = ViewRenderer; -},1619,[16,18,1620]); +},1622,[16,18,1623]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195274,13 +195927,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195346,7 +196001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).ComponentCompat); exports.default = BaseViewRenderer; -},1620,[1621]); +},1623,[1624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195357,13 +196012,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195377,6 +196034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); + exports.ComponentCompat = undefined; var React = _$$_REQUIRE(_dependencyMap[0]); @@ -195399,6 +196057,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; }; + ComponentCompat.prototype.getHasRenderedOnce = function () { + return this._hasRenderedOnce; + }; + ComponentCompat.prototype.componentWillReceivePropsCompat = function (newProps) {}; ComponentCompat.prototype.componentWillMountCompat = function () {}; @@ -195420,12 +196082,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); exports.ComponentCompat = ComponentCompat; -},1621,[16]); +},1624,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { { module.exports = _$$_REQUIRE(_dependencyMap[0])(); } -},1622,[1623]); +},1625,[1626]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -195480,13 +196142,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; -},1623,[1624]); +},1626,[1627]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; module.exports = ReactPropTypesSecret; -},1624,[]); +},1627,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195497,13 +196159,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195531,13 +196195,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); exports.default = BaseScrollView; -},1625,[16]); +},1628,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.AutoScroll = undefined; var AutoScroll = function () { function AutoScroll() {} @@ -195582,7 +196247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.AutoScroll = AutoScroll; -},1626,[]); +},1629,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -195593,13 +196258,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } instanceof Array && function (d, b) { d.__proto__ = b; } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return _extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + _extendStatics(d, b); function __() { @@ -195713,7 +196380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; - ProgressiveListView.defaultProps = __assign({}, _$$_REQUIRE(_dependencyMap[0]).default.defaultProps, { + ProgressiveListView.defaultProps = __assign(__assign({}, _$$_REQUIRE(_dependencyMap[0]).default.defaultProps), { maxRenderAhead: Number.MAX_VALUE, renderAheadStep: 300, renderAheadOffset: 0 @@ -195722,7 +196389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).default); exports.default = ProgressiveListView; -},1627,[1606]); +},1630,[1609]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196277,7 +196944,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hideKnob: _propTypes.default.bool, showClosingKnob: _propTypes.default.bool }); -},1628,[3,224,240,6,7,11,13,14,1384,582,1380,241,16,18,1629,1631,1586,1632,1432,1431,179,1636,1573,1579,1635]); +},1631,[3,224,240,6,7,11,13,14,1387,582,1383,241,16,18,1632,1634,1589,1635,1435,1434,179,1639,1576,1582,1638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196349,7 +197016,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.agenda.main'] || {})); } -},1629,[18,1413,3,1630]); +},1632,[18,1416,3,1633]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196380,7 +197047,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } -},1630,[]); +},1633,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196407,7 +197074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = WeekDaysNames; -},1631,[3,16,18,1431,179]); +},1634,[3,16,18,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196737,7 +197404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ReservationList; -},1632,[3,6,7,11,13,14,1384,582,1380,16,18,1633,1634,1431,1573,179,1432]); +},1635,[3,6,7,11,13,14,1387,582,1383,16,18,1636,1637,1434,1576,179,1435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196790,7 +197457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.agenda.list'] || {})); } -},1633,[18,1413]); +},1636,[18,1416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196941,7 +197608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Reservation; -},1634,[3,6,7,11,13,14,1384,582,16,18,1633,1431,1579,179,1635]); +},1637,[3,6,7,11,13,14,1387,582,16,18,1636,1434,1582,179,1638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var PREFIX = 'native.calendar'; module.exports = { @@ -196957,7 +197624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WEEK_NUMBER: "native.calendar.WEEK_NUMBER", HEADER_LOADING_INDICATOR: "native.calendar.HEADER_LOADING_INDICATOR" }; -},1635,[]); +},1638,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -197010,46 +197677,48 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1636,[3,6,7]); +},1639,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.Positions = undefined; - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _first = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _isFunction = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _first = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _isNumber = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _isFunction = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _throttle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _isNumber = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _throttle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - var _style = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - var _WeekDaysNames = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _style = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - var _calendar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _WeekDaysNames = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _calendarList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _calendar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var _week = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _calendarList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _WeekCalendar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var _week = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + var _WeekCalendar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); var _excluded = ["initialPosition", "onCalendarToggled", "disablePan", "hideKnob", "leftArrowImageSource", "rightArrowImageSource", "allowShadow", "disableWeekScroll", "openThreshold", "closeThreshold", "closeOnDayPress", "horizontal", "calendarStyle", "theme", "style", "firstDay", "onDayPress", "hideArrows", "onPressArrowLeft", "onPressArrowRight", "renderArrow", "testID"]; @@ -197105,9 +197774,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _props$hideKnob = props.hideKnob, hideKnob = _props$hideKnob === undefined ? numberOfDays && numberOfDays > 1 : _props$hideKnob, _props$leftArrowImage = props.leftArrowImageSource, - leftArrowImageSource = _props$leftArrowImage === undefined ? _$$_REQUIRE(_dependencyMap[18]) : _props$leftArrowImage, + leftArrowImageSource = _props$leftArrowImage === undefined ? _$$_REQUIRE(_dependencyMap[19]) : _props$leftArrowImage, _props$rightArrowImag = props.rightArrowImageSource, - rightArrowImageSource = _props$rightArrowImag === undefined ? _$$_REQUIRE(_dependencyMap[19]) : _props$rightArrowImag, + rightArrowImageSource = _props$rightArrowImag === undefined ? _$$_REQUIRE(_dependencyMap[20]) : _props$rightArrowImag, _props$allowShadow = props.allowShadow, allowShadow = _props$allowShadow === undefined ? true : _props$allowShadow, disableWeekScroll = props.disableWeekScroll, @@ -197171,7 +197840,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [date]); var getNumberOfWeeksInMonth = function getNumberOfWeeksInMonth(month) { - var days = (0, _$$_REQUIRE(_dependencyMap[20]).page)(new _xdate.default(month), firstDay); + var days = (0, _$$_REQUIRE(_dependencyMap[21]).page)(new _xdate.default(month), firstDay); return days.length / 7; }; @@ -197321,7 +197990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var scrollPage = (0, _react.useCallback)(function (next) { if (horizontal) { - var d = (0, _$$_REQUIRE(_dependencyMap[21]).parseDate)(date); + var d = (0, _$$_REQUIRE(_dependencyMap[22]).parseDate)(date); if (isOpen) { d.setDate(1); @@ -197342,7 +198011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } - setDate == null ? undefined : setDate((0, _$$_REQUIRE(_dependencyMap[21]).toMarkingFormat)(d), _$$_REQUIRE(_dependencyMap[22]).UpdateSources.PAGE_SCROLL); + setDate == null ? undefined : setDate((0, _$$_REQUIRE(_dependencyMap[22]).toMarkingFormat)(d), _$$_REQUIRE(_dependencyMap[23]).UpdateSources.PAGE_SCROLL); } }, [horizontal, isOpen, firstDay, numberOfDays, setDate, date]); @@ -197407,27 +198076,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e deltaY.setValue(_height.current); _height.current = toValue || newValue; _isOpen = _height.current >= threshold; + resetWeekCalendarOpacity(_isOpen); _reactNative.Animated.spring(deltaY, { toValue: _height.current, speed: SPEED, bounciness: BOUNCINESS, useNativeDriver: false - }).start(); - - onCalendarToggled == null ? undefined : onCalendarToggled(_isOpen); - setPosition(function () { - return _height.current === closedHeight ? Positions.CLOSED : Positions.OPEN; + }).start(function () { + onCalendarToggled == null ? undefined : onCalendarToggled(_isOpen); + setPosition(function () { + return _height.current === closedHeight ? Positions.CLOSED : Positions.OPEN; + }); }); + closeHeader(_isOpen); - resetWeekCalendarOpacity(_isOpen); } }; - var resetWeekCalendarOpacity = function resetWeekCalendarOpacity(isOpen) { - _weekCalendarStyles.style.opacity = isOpen ? 0 : 1; - updateNativeStyles(); - }; + var resetWeekCalendarOpacity = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (isOpen) { + _weekCalendarStyles.style.opacity = isOpen ? 0 : 1; + updateNativeStyles(); + }); + + return function resetWeekCalendarOpacity(_x) { + return _ref.apply(this, arguments); + }; + }(); var closeHeader = function closeHeader(isOpen) { headerDeltaY.current.setValue(Number(_headerStyles.style.top)); @@ -197465,7 +198141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _onDayPress = (0, _react.useCallback)(function (value) { if (numberOfDaysCondition) { - setDate == null ? undefined : setDate(value.dateString, _$$_REQUIRE(_dependencyMap[22]).UpdateSources.DAY_PRESS); + setDate == null ? undefined : setDate(value.dateString, _$$_REQUIRE(_dependencyMap[23]).UpdateSources.DAY_PRESS); } if (closeOnDayPress) { @@ -197518,7 +198194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return renderArrow(direction); } - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.Image, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.Image, { source: direction === 'right' ? rightArrowImageSource : leftArrowImageSource, style: style.current.arrowImage, testID: testID + "." + direction + "Arrow" @@ -197526,9 +198202,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [renderArrow, rightArrowImageSource, leftArrowImageSource, testID]); var renderWeekDaysNames = function renderWeekDaysNames() { - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.View, { style: weekDaysStyle, - children: (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_WeekDaysNames.default, { + children: (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_WeekDaysNames.default, { firstDay: firstDay, style: style.current.dayHeader }) @@ -197539,11 +198215,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _XDate; var monthYear = (_XDate = new _xdate.default(date)) == null ? undefined : _XDate.toString('MMMM yyyy'); - return (0, _$$_REQUIRE(_dependencyMap[23]).jsxs)(_reactNative.Animated.View, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsxs)(_reactNative.Animated.View, { ref: header, style: animatedHeaderStyle, pointerEvents: 'none', - children: [(0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.Text, { + children: [(0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.Text, { allowFontScaling: false, style: style.current.headerTitle, children: monthYear @@ -197552,10 +198228,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var renderKnob = function renderKnob() { - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.View, { style: style.current.knobContainer, pointerEvents: 'box-none', - children: (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.TouchableOpacity, { + children: (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.TouchableOpacity, { style: style.current.knob, testID: testID + ".knob", onPress: toggleCalendarPosition, @@ -197566,11 +198242,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var renderWeekCalendar = function renderWeekCalendar() { var WeekComponent = disableWeekScroll ? _week.default : _WeekCalendar.default; - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.Animated.View, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.Animated.View, { ref: weekCalendarWrapper, style: weekCalendarStyle, pointerEvents: isOpen ? 'none' : 'auto', - children: (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(WeekComponent, Object.assign({ + children: (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(WeekComponent, Object.assign({ testID: testID + ".weekCalendar", firstDay: firstDay }, others, { @@ -197587,7 +198263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var renderCalendarList = function renderCalendarList() { - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_calendarList.default, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_calendarList.default, Object.assign({ testID: testID + ".calendarList", horizontal: horizontal, firstDay: firstDay, @@ -197613,17 +198289,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); }; - return (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_reactNative.View, { testID: testID, style: containerStyle, - children: screenReaderEnabled ? (0, _$$_REQUIRE(_dependencyMap[23]).jsx)(_calendar.default, Object.assign({ + children: screenReaderEnabled ? (0, _$$_REQUIRE(_dependencyMap[24]).jsx)(_calendar.default, Object.assign({ testID: testID + ".calendarAccessible" }, others, { theme: themeObject, onDayPress: _onDayPress, hideExtraDays: true, renderArrow: _renderArrow - })) : (0, _$$_REQUIRE(_dependencyMap[23]).jsxs)(_reactNative.Animated.View, Object.assign({ + })) : (0, _$$_REQUIRE(_dependencyMap[24]).jsxs)(_reactNative.Animated.View, Object.assign({ testID: testID + ".expandableContainer", ref: wrapper, style: wrapperStyle @@ -197640,25 +198316,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e horizontal: true, initialPosition: Positions.CLOSED, firstDay: 0, - leftArrowImageSource: _$$_REQUIRE(_dependencyMap[18]), - rightArrowImageSource: _$$_REQUIRE(_dependencyMap[19]), + leftArrowImageSource: _$$_REQUIRE(_dependencyMap[19]), + rightArrowImageSource: _$$_REQUIRE(_dependencyMap[20]), allowShadow: true, openThreshold: PAN_GESTURE_THRESHOLD, closeThreshold: PAN_GESTURE_THRESHOLD, closeOnDayPress: true }; ExpandableCalendar.positions = Positions; -},1637,[3,33,4,1638,1384,1583,1640,1380,16,18,1641,1631,1379,1586,1642,1643,1644,1411,1433,1434,1431,1432,1645,179]); +},1640,[3,270,33,4,1641,1387,1586,1643,1383,16,18,1644,1634,1382,1589,1645,1646,1647,1414,1436,1437,1434,1435,1648,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]); -},1638,[1639]); +},1641,[1642]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function head(array) { return array && array.length ? array[0] : undefined; } module.exports = head; -},1639,[]); +},1642,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; @@ -197683,7 +198359,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = throttle; -},1640,[490,480]); +},1643,[490,480]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -197877,7 +198553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, (theme == null ? undefined : (_theme$stylesheet = theme.stylesheet) == null ? undefined : (_theme$stylesheet$exp = _theme$stylesheet.expandable) == null ? undefined : _theme$stylesheet$exp.main) || {})); } -},1641,[18,1413,3,1411]); +},1644,[18,1416,3,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198004,7 +198680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = Week; Week.displayName = 'Week'; -},1642,[3,4,1380,16,18,1530,1641,1435,1431,1573,1432,179,1585]); +},1645,[3,4,1383,16,18,1533,1644,1438,1434,1576,1435,179,1588]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198044,7 +198720,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NUMBER_OF_PAGES = exports.NUMBER_OF_PAGES = 6; var NUM_OF_ITEMS = NUMBER_OF_PAGES * 2 + 1; - var APPLY_ANDROID_FIX = _constants.default.isAndroid && _constants.default.isRTL; var WeekCalendar = function WeekCalendar(props) { var calendarWidth = props.calendarWidth, @@ -198107,16 +198782,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (pageIndex !== currentIndex.current) { var _list$current2; + var adjustedIndexFrScroll = _constants.default.isAndroidRTL ? NUM_OF_ITEMS - 1 - pageIndex : pageIndex; + if (pageIndex >= 0) { - visibleWeek.current = items.current[pageIndex]; - currentIndex.current = pageIndex; + visibleWeek.current = items.current[adjustedIndexFrScroll]; + currentIndex.current = adjustedIndexFrScroll; } else { visibleWeek.current = date; currentIndex.current = NUMBER_OF_PAGES; } pageIndex <= 0 ? onEndReached() : list == null ? undefined : (_list$current2 = list.current) == null ? undefined : _list$current2.scrollToIndex({ - index: pageIndex, + index: adjustedIndexFrScroll, animated: false }); } @@ -198213,7 +198890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var newDate = (_viewableItems$ = viewableItems[0]) == null ? undefined : _viewableItems$.item; if (newDate !== visibleWeek.current) { - if (APPLY_ANDROID_FIX) { + if (_constants.default.isAndroidRTL) { var newDateOffset = -1 * (NUMBER_OF_PAGES - currItems.indexOf(newDate)); var adjustedNewDate = currItems[NUMBER_OF_PAGES - newDateOffset]; visibleWeek.current = adjustedNewDate; @@ -198315,7 +198992,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WeekCalendar.displayName = 'WeekCalendar'; var _default = exports.default = WeekCalendar; -},1643,[3,22,240,33,4,1380,16,18,1641,1631,1642,1411,1644,1573,1584,1645,1431,1432,179]); +},1646,[3,22,240,33,4,1383,16,18,1644,1634,1645,1414,1647,1576,1587,1648,1434,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198327,7 +199004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var CalendarContext = _react.default.createContext({}); var _default = exports.default = CalendarContext; -},1644,[3,16]); +},1647,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198345,7 +199022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UpdateSources["WEEK_SCROLL"] = "weekScroll"; UpdateSources["PROP_UPDATE"] = "propUpdate"; })(UpdateSources || (exports.UpdateSources = UpdateSources = {})); -},1645,[]); +},1648,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198520,12 +199197,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return array; } -},1646,[3,578,4,33,16,18,1380,1591,1642,1631,1644,1641,1411,1645,1431,1573,179,1432]); +},1649,[3,578,4,33,16,18,1383,1594,1645,1634,1647,1644,1414,1648,1434,1576,179,1435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = exports.AgendaSectionHeader = undefined; + exports.default = undefined; var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -198539,21 +199216,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _debounce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _isEqual = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - var _reactNative = _$$_REQUIRE(_dependencyMap[10]); + var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _style = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _style = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _infiniteAgendaList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _infiniteAgendaList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } @@ -198567,7 +199242,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _sections$; if (props.infiniteListProps) { - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_infiniteAgendaList.default, Object.assign({}, props)); + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_infiniteAgendaList.default, Object.assign({}, props)); } var theme = props.theme, @@ -198612,8 +199287,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, 500); } }, []); - (0, _$$_REQUIRE(_dependencyMap[16]).useDidUpdate)(function () { - if (updateSource !== _$$_REQUIRE(_dependencyMap[17]).UpdateSources.LIST_DRAG && updateSource !== _$$_REQUIRE(_dependencyMap[17]).UpdateSources.CALENDAR_INIT) { + (0, _$$_REQUIRE(_dependencyMap[15]).useDidUpdate)(function () { + if (updateSource !== _$$_REQUIRE(_dependencyMap[16]).UpdateSources.LIST_DRAG && updateSource !== _$$_REQUIRE(_dependencyMap[16]).UpdateSources.CALENDAR_INIT) { scrollToSection(date); } }, [date]); @@ -198634,14 +199309,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var j = 1; j < sections.length; j++) { var _sections, _sections$j; - var prev = (0, _$$_REQUIRE(_dependencyMap[18]).parseDate)((_sections = sections[j - 1]) == null ? undefined : _sections.title); - var next = (0, _$$_REQUIRE(_dependencyMap[18]).parseDate)((_sections$j = sections[j]) == null ? undefined : _sections$j.title); + var prev = (0, _$$_REQUIRE(_dependencyMap[17]).parseDate)((_sections = sections[j - 1]) == null ? undefined : _sections.title); + var next = (0, _$$_REQUIRE(_dependencyMap[17]).parseDate)((_sections$j = sections[j]) == null ? undefined : _sections$j.title); var cur = new _xdate.default(date); - if ((0, _$$_REQUIRE(_dependencyMap[19]).isGTE)(cur, prev) && (0, _$$_REQUIRE(_dependencyMap[19]).isGTE)(next, cur)) { - i = (0, _$$_REQUIRE(_dependencyMap[19]).sameDate)(prev, cur) ? j - 1 : j; + if ((0, _$$_REQUIRE(_dependencyMap[18]).isGTE)(cur, prev) && (0, _$$_REQUIRE(_dependencyMap[18]).isGTE)(next, cur)) { + i = (0, _$$_REQUIRE(_dependencyMap[18]).sameDate)(prev, cur) ? j - 1 : j; break; - } else if ((0, _$$_REQUIRE(_dependencyMap[19]).isGTE)(cur, next)) { + } else if ((0, _$$_REQUIRE(_dependencyMap[18]).isGTE)(cur, next)) { i = j; } } @@ -198657,7 +199332,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionTitle = dayFormatter(title); } else if (dayFormat) { if (useMoment) { - var moment = (0, _$$_REQUIRE(_dependencyMap[20]).getMoment)(); + var moment = (0, _$$_REQUIRE(_dependencyMap[19]).getMoment)(); sectionTitle = moment(title).format(dayFormat); } else { sectionTitle = new _xdate.default(title).toString(dayFormat); @@ -198665,9 +199340,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (markToday) { - var string = (0, _$$_REQUIRE(_dependencyMap[21]).getDefaultLocale)().today || _$$_REQUIRE(_dependencyMap[17]).todayString; + var string = (0, _$$_REQUIRE(_dependencyMap[20]).getDefaultLocale)().today || _$$_REQUIRE(_dependencyMap[16]).todayString; - var today = (0, _$$_REQUIRE(_dependencyMap[19]).isToday)(title); + var today = (0, _$$_REQUIRE(_dependencyMap[18]).isToday)(title); sectionTitle = today ? string + ", " + sectionTitle : sectionTitle; } @@ -198706,7 +199381,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _topSection.current = topSection; if (didScroll.current && !avoidDateUpdates) { - setDate == null ? undefined : setDate(_topSection.current, _$$_REQUIRE(_dependencyMap[17]).UpdateSources.LIST_DRAG); + setDate == null ? undefined : setDate(_topSection.current, _$$_REQUIRE(_dependencyMap[16]).UpdateSources.LIST_DRAG); } } } @@ -198758,7 +199433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var headerTitle = getSectionTitle(title); - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(AgendaSectionHeader, { + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[21]).AgendaSectionHeader, { title: headerTitle, style: headerTextStyle, onLayout: onHeaderLayout @@ -198769,7 +199444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _isFunction.default)(keyExtractor) ? keyExtractor(item, index) : String(index); }, [keyExtractor]); - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNative.SectionList, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.SectionList, Object.assign({ stickySectionHeadersEnabled: true }, props, { ref: list, @@ -198785,19 +199460,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); }; - function areTextPropsEqual(prev, next) { - return (0, _isEqual.default)(prev.style, next.style) && prev.title === next.title; - } - - var AgendaSectionHeader = exports.AgendaSectionHeader = _react.default.memo(function (props) { - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNative.Text, { - allowFontScaling: false, - style: props.style, - onLayout: props.onLayout, - children: props.title - }); - }, areTextPropsEqual); - var _default = exports.default = AgendaList; AgendaList.displayName = 'AgendaList'; @@ -198809,7 +199471,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), avoidDateUpdates: _propTypes.default.bool }; -},1647,[3,582,1555,1648,1384,1580,480,1530,1380,16,18,1411,1641,1644,1650,179,1584,1645,1432,1431,1651,1579]); +},1650,[3,582,1558,1651,1387,1583,480,1383,16,18,1414,1644,1647,1653,179,1587,1648,1435,1434,1654,1582,1655]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function map(collection, iteratee) { var func = _$$_REQUIRE(_dependencyMap[0])(collection) ? _$$_REQUIRE(_dependencyMap[1]) : _$$_REQUIRE(_dependencyMap[2]); @@ -198817,7 +199479,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = map; -},1648,[1385,1418,1649,1551]); +},1651,[1388,1421,1652,1554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseMap(collection, iteratee) { var index = -1, @@ -198831,7 +199493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMap; -},1649,[1382,1545]); +},1652,[1385,1548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198842,49 +199504,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _isUndefined = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _debounce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _isUndefined = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _infiniteList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _debounce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _infiniteList = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + var _xdate = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _style = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _style = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _Context = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _excluded = ["theme", "sections", "scrollToNextEvent", "avoidDateUpdates", "onScroll", "renderSectionHeader", "sectionStyle", "dayFormatter", "dayFormat", "useMoment", "markToday", "infiniteListProps", "renderItem", "onEndReached", "onEndReachedThreshold"]; function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - var InfiniteAgendaList = function InfiniteAgendaList(props) { + var InfiniteAgendaList = function InfiniteAgendaList(_ref) { var _sections$, _infiniteListProps$vi; - var theme = props.theme, - sections = props.sections, - scrollToNextEvent = props.scrollToNextEvent, - avoidDateUpdates = props.avoidDateUpdates, - onScroll = props.onScroll, - renderSectionHeader = props.renderSectionHeader, - sectionStyle = props.sectionStyle, - dayFormatter = props.dayFormatter, - _props$dayFormat = props.dayFormat, - dayFormat = _props$dayFormat === undefined ? 'dddd, MMM d' : _props$dayFormat, - useMoment = props.useMoment, - _props$markToday = props.markToday, - markToday = _props$markToday === undefined ? true : _props$markToday, - infiniteListProps = props.infiniteListProps, - renderItem = props.renderItem, - onEndReached = props.onEndReached, - onEndReachedThreshold = props.onEndReachedThreshold, - refreshControl = props.refreshControl; + var theme = _ref.theme, + sections = _ref.sections, + scrollToNextEvent = _ref.scrollToNextEvent, + avoidDateUpdates = _ref.avoidDateUpdates, + onScroll = _ref.onScroll, + renderSectionHeader = _ref.renderSectionHeader, + sectionStyle = _ref.sectionStyle, + dayFormatter = _ref.dayFormatter, + _ref$dayFormat = _ref.dayFormat, + dayFormat = _ref$dayFormat === undefined ? 'dddd, MMM d' : _ref$dayFormat, + useMoment = _ref.useMoment, + _ref$markToday = _ref.markToday, + markToday = _ref$markToday === undefined ? true : _ref$markToday, + infiniteListProps = _ref.infiniteListProps, + renderItem = _ref.renderItem, + onEndReached = _ref.onEndReached, + onEndReachedThreshold = _ref.onEndReachedThreshold, + others = (0, _objectWithoutProperties2.default)(_ref, _excluded); var _useContext = (0, _react.useContext)(_Context.default), date = _useContext.date, @@ -198904,6 +199570,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data = _useState2[0], setData = _useState2[1]; + var dataRef = (0, _react.useRef)(data); (0, _react.useEffect)(function () { var items = sections.reduce(function (acc, cur) { return [].concat((0, _toConsumableArray2.default)(acc), [{ @@ -198912,6 +199579,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }], (0, _toConsumableArray2.default)(cur.data)); }, []); setData(items); + dataRef.current = items; if (date !== _topSection.current) { setTimeout(function () { @@ -198919,8 +199587,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, 500); } }, [sections]); - (0, _$$_REQUIRE(_dependencyMap[12]).useDidUpdate)(function () { - if (updateSource !== _$$_REQUIRE(_dependencyMap[13]).UpdateSources.LIST_DRAG && updateSource !== _$$_REQUIRE(_dependencyMap[13]).UpdateSources.CALENDAR_INIT) { + (0, _$$_REQUIRE(_dependencyMap[13]).useDidUpdate)(function () { + if (updateSource !== _$$_REQUIRE(_dependencyMap[14]).UpdateSources.LIST_DRAG && updateSource !== _$$_REQUIRE(_dependencyMap[14]).UpdateSources.CALENDAR_INIT) { scrollToSection(date); } }, [date]); @@ -198942,9 +199610,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var dataIndex = 0; for (var i = 0; i < sections.length; i++) { - var titleDate = (0, _$$_REQUIRE(_dependencyMap[14]).parseDate)(sections[i].title); + var titleDate = (0, _$$_REQUIRE(_dependencyMap[15]).parseDate)(sections[i].title); - if ((0, _$$_REQUIRE(_dependencyMap[15]).isGTE)(titleDate, cur)) { + if ((0, _$$_REQUIRE(_dependencyMap[16]).isGTE)(titleDate, cur)) { return dataIndex; } @@ -198960,7 +199628,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionTitle = dayFormatter(title); } else if (dayFormat) { if (useMoment) { - var moment = (0, _$$_REQUIRE(_dependencyMap[16]).getMoment)(); + var moment = (0, _$$_REQUIRE(_dependencyMap[17]).getMoment)(); sectionTitle = moment(title).format(dayFormat); } else { sectionTitle = new _xdate.default(title).toString(dayFormat); @@ -198968,44 +199636,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (markToday) { - var string = (0, _$$_REQUIRE(_dependencyMap[17]).getDefaultLocale)().today || _$$_REQUIRE(_dependencyMap[13]).todayString; + var string = (0, _$$_REQUIRE(_dependencyMap[18]).getDefaultLocale)().today || _$$_REQUIRE(_dependencyMap[14]).todayString; - var today = (0, _$$_REQUIRE(_dependencyMap[15]).isToday)(title); + var today = (0, _$$_REQUIRE(_dependencyMap[16]).isToday)(title); sectionTitle = today ? string + ", " + sectionTitle : sectionTitle; } return sectionTitle; }, []); - var scrollToSection = (0, _react.useCallback)((0, _debounce.default)(function (d) { - var sectionIndex = scrollToNextEvent ? getNextSectionIndex(d) : getSectionIndex(d); + var scrollToSection = (0, _react.useCallback)((0, _debounce.default)(function (requestedDate) { + var sectionIndex = scrollToNextEvent ? getNextSectionIndex(requestedDate) : getSectionIndex(requestedDate); if ((0, _isUndefined.default)(sectionIndex)) { return; } if (list != null && list.current && sectionIndex !== undefined) { - var _sections$findItemTit, _list$current; - sectionScroll.current = true; - _topSection.current = (_sections$findItemTit = sections[findItemTitleIndex(sectionIndex)]) == null ? undefined : _sections$findItemTit.title; - (_list$current = list.current) == null ? undefined : _list$current.scrollToIndex(sectionIndex, true); + + if (requestedDate !== _topSection.current) { + var _sections$findItemTit, _list$current; + + _topSection.current = (_sections$findItemTit = sections[findItemTitleIndex(sectionIndex)]) == null ? undefined : _sections$findItemTit.title; + (_list$current = list.current) == null ? undefined : _list$current.scrollToIndex(sectionIndex, true); + } + + setTimeout(function () { + _onMomentumScrollEnd(); + }, 500); } }, 1000, { leading: false, trailing: true }), [sections]); var layoutProvider = (0, _react.useMemo)(function () { - return new (_$$_REQUIRE(_dependencyMap[18]).LayoutProvider)(function (index) { - var _data$index; + return new (_$$_REQUIRE(_dependencyMap[19]).LayoutProvider)(function (index) { + var _dataRef$current$inde, _dataRef$current$inde2, _dataRef$current$inde3; - return (_data$index = data[index]) != null && _data$index.isTitle ? 'title' : 'page'; + return (_dataRef$current$inde = dataRef.current[index]) != null && _dataRef$current$inde.isTitle ? 'title' : (_dataRef$current$inde2 = (_dataRef$current$inde3 = dataRef.current[index]) == null ? undefined : _dataRef$current$inde3.itemCustomHeightType) != null ? _dataRef$current$inde2 : 'page'; }, function (type, dim) { - var _infiniteListProps$ti, _infiniteListProps$it; + var _infiniteListProps$ti, _infiniteListProps$it, _ref2, _infiniteListProps$it2, _infiniteListProps$it3; dim.width = _constants.default.screenWidth; - dim.height = type === 'title' ? (_infiniteListProps$ti = infiniteListProps == null ? undefined : infiniteListProps.titleHeight) != null ? _infiniteListProps$ti : 60 : (_infiniteListProps$it = infiniteListProps == null ? undefined : infiniteListProps.itemHeight) != null ? _infiniteListProps$it : 80; + + switch (type) { + case 'title': + dim.height = (_infiniteListProps$ti = infiniteListProps == null ? undefined : infiniteListProps.titleHeight) != null ? _infiniteListProps$ti : 60; + break; + + case 'page': + dim.height = (_infiniteListProps$it = infiniteListProps == null ? undefined : infiniteListProps.itemHeight) != null ? _infiniteListProps$it : 80; + break; + + default: + dim.height = (_ref2 = (_infiniteListProps$it2 = infiniteListProps == null ? undefined : (_infiniteListProps$it3 = infiniteListProps.itemHeightByType) == null ? undefined : _infiniteListProps$it3[type]) != null ? _infiniteListProps$it2 : infiniteListProps == null ? undefined : infiniteListProps.itemHeight) != null ? _ref2 : 80; + } }); - }, [data]); + }, []); var _onScroll = (0, _react.useCallback)(function (rawEvent) { if (!didScroll.current) { @@ -199032,7 +199719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _topSection.current = topSection.title; if (didScroll.current && !avoidDateUpdates) { - setDate == null ? undefined : setDate(topSection.title, _$$_REQUIRE(_dependencyMap[13]).UpdateSources.LIST_DRAG); + setDate == null ? undefined : setDate(topSection.title, _$$_REQUIRE(_dependencyMap[14]).UpdateSources.LIST_DRAG); } } } @@ -199071,7 +199758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var headerTitle = getSectionTitle(title); - return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).AgendaSectionHeader, { + return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[21]).AgendaSectionHeader, { title: headerTitle, style: headerTextStyle }); @@ -199090,7 +199777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[19]).Fragment, {}); + return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[20]).Fragment, {}); }, [renderItem]); var _onEndReached = (0, _react.useCallback)(function () { @@ -199101,19 +199788,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [onEndReached]); - return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_infiniteList.default, { + return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_infiniteList.default, { ref: list, renderItem: _renderItem, data: data, - style: infiniteListProps == null ? undefined : infiniteListProps.style, + style: style.current.container, layoutProvider: layoutProvider, onScroll: _onScroll, onVisibleIndicesChanged: _onVisibleIndicesChanged, - scrollViewProps: { - onMomentumScrollEnd: _onMomentumScrollEnd, - nestedScrollEnabled: true, - refreshControl: refreshControl - }, + scrollViewProps: Object.assign({ + nestedScrollEnabled: true + }, others, { + onMomentumScrollEnd: _onMomentumScrollEnd + }), onEndReached: _onEndReached, onEndReachedThreshold: onEndReachedThreshold, disableScrollOnDataChange: true, @@ -199132,7 +199819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), avoidDateUpdates: _propTypes.default.bool }; -},1650,[3,22,33,582,1580,480,1591,1380,16,1641,1644,1411,1584,1645,1432,1431,1651,1579,1601,179,1647]); +},1653,[3,22,33,4,582,1583,480,1594,1383,16,1644,1647,1414,1587,1648,1435,1434,1654,1582,1604,179,1655]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199149,7 +199836,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return moment; }; -},1651,[516]); +},1654,[516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.AgendaSectionHeader = undefined; + + var _isEqual = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + function areTextPropsEqual(prev, next) { + return (0, _isEqual.default)(prev.style, next.style) && prev.title === next.title; + } + + var AgendaSectionHeader = exports.AgendaSectionHeader = _react.default.memo(function (props) { + return (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.Text, { + allowFontScaling: false, + style: props.style, + onLayout: props.onLayout, + children: props.title + }); + }, areTextPropsEqual); +},1655,[3,1533,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199267,7 +199979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = CalendarProvider; CalendarProvider.displayName = 'CalendarProvider'; -},1652,[3,33,1380,16,18,1641,1644,1653,1645,1584,1431,1432,179]); +},1656,[3,33,1383,16,18,1644,1647,1657,1648,1587,1434,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199427,7 +200139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _react.forwardRef)(TodayButton); -},1653,[3,33,1380,16,18,1641,1644,1431,1579,1645,1654,1655,1432,179]); +},1657,[3,33,1383,16,18,1644,1647,1434,1582,1648,1658,1659,1435,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -199439,7 +200151,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "up", "type": "png" }); -},1654,[1258]); +},1658,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -199451,7 +200163,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "down", "type": "png" }); -},1655,[1258]); +},1659,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199525,7 +200237,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = asCalendarConsumer; -},1656,[3,6,7,11,13,14,16,398,1644,179]); +},1660,[3,6,7,11,13,14,16,398,1647,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199591,7 +200303,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _props$numberOfDays = props.numberOfDays, numberOfDays = _props$numberOfDays === undefined ? 1 : _props$numberOfDays, _props$timelineLeftIn = props.timelineLeftInset, - timelineLeftInset = _props$timelineLeftIn === undefined ? 0 : _props$timelineLeftIn; + timelineLeftInset = _props$timelineLeftIn === undefined ? 0 : _props$timelineLeftIn, + testID = props.testID; var pageDates = (0, _react.useMemo)(function () { return typeof date === 'string' ? [date] : date; }, [date]); @@ -199676,7 +200389,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e styles: styles.current, format24h: format24h, onPress: onEventPress, - renderEvent: renderEvent + renderEvent: renderEvent, + testID: testID + ".event." + event.id }, eventIndex); }); return (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.View, { @@ -199708,6 +200422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }], showsVerticalScrollIndicator: false }, scrollEvents, { + testID: testID, children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_TimelineHours.default, { start: start, end: end, @@ -199720,20 +200435,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onBackgroundLongPressOut: onBackgroundLongPressOut, width: width, numberOfDays: numberOfDays, - timelineLeftInset: timelineLeftInset + timelineLeftInset: timelineLeftInset, + testID: testID + ".hours" }), (0, _times.default)(numberOfDays, renderTimelineDay)] })); }; var _default = exports.default = _react.default.memo(Timeline); -},1657,[3,1658,1648,1661,1663,16,18,1411,1667,1668,1674,1675,1676,1579,1672,1673,179,1431]); +},1661,[3,1662,1651,1665,1667,16,18,1414,1671,1672,1678,1679,1680,1582,1676,1677,179,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function min(array) { return array && array.length ? _$$_REQUIRE(_dependencyMap[0])(array, _$$_REQUIRE(_dependencyMap[1]), _$$_REQUIRE(_dependencyMap[2])) : undefined; } module.exports = min; -},1658,[1659,1442,1660]); +},1662,[1663,1445,1664]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseExtremum(array, iteratee, comparator) { var index = -1, @@ -199753,14 +200469,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseExtremum; -},1659,[482]); +},1663,[482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseLt(value, other) { return value < other; } module.exports = baseLt; -},1660,[]); +},1664,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; var MAX_ARRAY_LENGTH = 4294967295; @@ -199788,14 +200504,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = times; -},1661,[1423,1662,1421]); +},1665,[1426,1666,1424]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function castFunction(value) { return typeof value == 'function' ? value : _$$_REQUIRE(_dependencyMap[0]); } module.exports = castFunction; -},1662,[1442]); +},1666,[1445]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -199809,7 +200525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = groupBy; -},1663,[1664,1481]); +},1667,[1668,1484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createAggregator(setter, initializer) { return function (collection, iteratee) { @@ -199820,7 +200536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createAggregator; -},1664,[1385,1665,1666,1551]); +},1668,[1388,1669,1670,1554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, @@ -199835,7 +200551,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayAggregator; -},1665,[]); +},1669,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseAggregator(collection, setter, iteratee, accumulator) { _$$_REQUIRE(_dependencyMap[0])(collection, function (value, key, collection) { @@ -199846,7 +200562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseAggregator; -},1666,[1545]); +},1670,[1548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199974,7 +200690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); } -},1667,[18,1413,3,1411]); +},1671,[18,1416,3,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200014,7 +200730,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _props$numberOfDays = props.numberOfDays, numberOfDays = _props$numberOfDays === undefined ? 1 : _props$numberOfDays, _props$timelineLeftIn = props.timelineLeftInset, - timelineLeftInset = _props$timelineLeftIn === undefined ? 0 : _props$timelineLeftIn; + timelineLeftInset = _props$timelineLeftIn === undefined ? 0 : _props$timelineLeftIn, + testID = props.testID; var lastLongPressEventTime = (0, _react.useRef)(); var offset = _$$_REQUIRE(_dependencyMap[6]).HOUR_BLOCK_HEIGHT; @@ -200099,12 +200816,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }], children: timeText }, "timeLabel" + time), time === start ? null : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + testID: testID + "." + time + ".line", style: [styles.line, { top: offset * index, width: dimensionWidth - EVENT_DIFF, left: timelineLeftInset - 16 }] }, "line" + time), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + testID: testID + "." + time + ".lineHalf", style: [styles.line, { top: offset * (index + 0.5), width: dimensionWidth - EVENT_DIFF, @@ -200123,12 +200842,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = _react.default.memo(TimelineHours); -},1668,[3,1669,1661,16,18,1411,1672,1673,179]); +},1672,[3,1673,1665,16,18,1414,1676,1677,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var range = _$$_REQUIRE(_dependencyMap[0])(); module.exports = range; -},1669,[1670]); +},1673,[1674]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createRange(fromRight) { return function (start, end, step) { @@ -200151,7 +200870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createRange; -},1670,[1550,1424,1671]); +},1674,[1553,1427,1675]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeCeil = Math.ceil, nativeMax = Math.max; @@ -200170,7 +200889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseRange; -},1671,[]); +},1675,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200336,7 +201055,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }).filter(Boolean); } -},1672,[3,1592,1380,1411]); +},1676,[3,1595,1383,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200383,7 +201102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var m = minutes != null ? minutes : now.getMinutes(); return (h + m / 60) * hourBlockHeight; } -},1673,[3,1380,1411,1431]); +},1677,[3,1383,1414,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200427,6 +201146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [index, onPress]); return (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.TouchableOpacity, { + testID: props.testID, activeOpacity: 0.9, onPress: _onPress, style: [styles.event, eventStyle], @@ -200449,7 +201169,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EventBlock; -},1674,[3,1380,16,18,179]); +},1678,[3,1383,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200488,7 +201208,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NowIndicator; -},1675,[16,18,1673,1672,179]); +},1679,[16,18,1677,1676,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200531,7 +201251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; }; -},1676,[16]); +},1680,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200556,6 +201276,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _useTimelinePages2 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + var _constants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } @@ -200601,9 +201323,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var scrollToCurrentDate = (0, _react.useCallback)(function (date) { var datePageIndex = pagesRef.current.indexOf(date); - if (updateSource !== _$$_REQUIRE(_dependencyMap[10]).UpdateSources.LIST_DRAG) { + if (updateSource !== _$$_REQUIRE(_dependencyMap[11]).UpdateSources.LIST_DRAG) { if (isOutOfRange(datePageIndex)) { - updateSource === _$$_REQUIRE(_dependencyMap[10]).UpdateSources.DAY_PRESS ? resetPages(date) : resetPagesDebounce(date); + updateSource === _$$_REQUIRE(_dependencyMap[11]).UpdateSources.DAY_PRESS ? resetPages(date) : resetPagesDebounce(date); } else { scrollToPageDebounce(datePageIndex); } @@ -200611,6 +201333,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e prevDate.current = date; }, [updateSource]); + var initialOffset = (0, _react.useMemo)(function () { + return _constants.default.isAndroidRTL ? _constants.default.screenWidth * (_useTimelinePages2.PAGES_COUNT - _useTimelinePages2.INITIAL_PAGE - 1) : _constants.default.screenWidth * _useTimelinePages2.INITIAL_PAGE; + }, []); (0, _react.useEffect)(function () { if (date !== prevDate.current) { scrollToCurrentDate(date); @@ -200627,10 +201352,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, []); var onPageChange = (0, _react.useCallback)((0, _throttle.default)(function (pageIndex) { - var newDate = pages[pageIndex]; + var newDate = pages[_constants.default.isAndroidRTL ? pageIndex - 1 : pageIndex]; if (newDate !== prevDate.current) { - setDate(newDate, _$$_REQUIRE(_dependencyMap[10]).UpdateSources.LIST_DRAG); + setDate(newDate, _$$_REQUIRE(_dependencyMap[11]).UpdateSources.LIST_DRAG); } }, 0), [pages]); var onReachNearEdge = (0, _react.useCallback)(function () { @@ -200643,10 +201368,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isCurrent = prevDate.current === item; var isInitialPage = index === _useTimelinePages2.INITIAL_PAGE; - var _isToday = (0, _$$_REQUIRE(_dependencyMap[11]).isToday)(item); + var _isToday = (0, _$$_REQUIRE(_dependencyMap[12]).isToday)(item); - var weekEvents = [events[item] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 1)] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 2)] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 3)] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 4)] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 5)] || [], events[(0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 6)] || []]; - var weekDates = [item, (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 1), (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 2), (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 3), (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 4), (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 5), (0, _$$_REQUIRE(_dependencyMap[11]).generateDay)(item, 6)]; + var weekEvents = [events[item] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 1)] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 2)] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 3)] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 4)] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 5)] || [], events[(0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 6)] || []]; + var weekDates = [item, (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 1), (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 2), (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 3), (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 4), (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 5), (0, _$$_REQUIRE(_dependencyMap[12]).generateDay)(item, 6)]; var numberOfDaysToDrop = 7 - numberOfDays; var _timelineProps = Object.assign({}, timelineProps, { @@ -200673,11 +201398,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Fragment, { - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_Timeline.default, Object.assign({}, _timelineProps)) + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Fragment, { + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_Timeline.default, Object.assign({}, _timelineProps)) }); }, [events, timelineOffset, showNowIndicator, numberOfDays]); - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_infiniteList.default, { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_infiniteList.default, { isHorizontal: true, ref: listRef, data: pages, @@ -200690,7 +201415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e todayEvents: events[date], pages: pages }, - initialPageIndex: _useTimelinePages2.INITIAL_PAGE, + initialOffset: initialOffset, scrollViewProps: { onMomentumScrollEnd: onMomentumScrollEnd } @@ -200698,7 +201423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TimelineList; -},1677,[3,33,1640,1446,1678,16,1591,1644,1657,1679,1645,1431,179]); +},1681,[3,33,1643,1449,1682,16,1594,1647,1661,1683,1414,1648,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function dropRight(array, n, guard) { var length = array == null ? 0 : array.length; @@ -200713,7 +201438,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = dropRight; -},1678,[1423,1528]); +},1682,[1426,1531]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200770,7 +201495,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var scrollToPage = function scrollToPage(pageIndex) { var _listRef$current; - (_listRef$current = listRef.current) == null ? undefined : _listRef$current.scrollToOffset(pageIndex * _constants.default.screenWidth, 0, false); + (_listRef$current = listRef.current) == null ? undefined : _listRef$current.scrollToOffset(_constants.default.isAndroidRTL ? (PAGES_COUNT - 1 - pageIndex) * _constants.default.screenWidth : pageIndex * _constants.default.screenWidth, 0, false); }; var resetPages = function resetPages(date) { @@ -200805,7 +201530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = UseTimelinePages; -},1679,[3,33,16,1592,1661,480,1411,1431]); +},1683,[3,33,16,1595,1665,480,1414,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200906,7 +201631,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cumulativeDuration = _ref3.cumulativeDuration, phase = _ref3.phase; }; -},1680,[3,33,6,7,11,13,14,16,179]); +},1684,[3,33,6,7,11,13,14,16,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var IcSearch = function IcSearch(props) { + return _react.default.createElement(_$$_REQUIRE(_dependencyMap[2]).Svg, props, _react.default.createElement(_$$_REQUIRE(_dependencyMap[2]).Path, { + d: "M0 0h24v24H0z", + fill: "none" + }), _react.default.createElement(_$$_REQUIRE(_dependencyMap[2]).Path, { + d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" + })); + }; + + var _default = IcSearch; + exports.default = _default; +},1685,[3,16,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201169,7 +201914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TabBar; exports.default = _default; -},1681,[3,22,33,16,18,582,1072,1075]); +},1686,[3,22,33,16,18,582,1075,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201198,7 +201943,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _MaterialTopTabBar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); var _MaterialTopTabView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); -},1682,[3,1683,1685,1684]); +},1687,[3,1688,1690,1689]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201308,7 +202053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[6]).createNavigatorFactory)(MaterialTopTabNavigator); -},1683,[3,33,4,16,1226,1684,1087,179]); +},1688,[3,33,4,16,1229,1689,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201393,7 +202138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, sceneContainerStyle] })); } -},1684,[3,4,16,1685,179,1087,1690]); +},1689,[3,4,16,1690,179,1090,1695]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201560,7 +202305,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1685,[3,4,1686,16,18,1087,179,1690]); +},1690,[3,4,1691,16,18,1090,179,1695]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var skippedModels = ['keyword', 'gray', 'hex']; var hashedModelKeys = {}; @@ -202012,7 +202757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = Color; -},1686,[1687,22,1240,33]); +},1691,[1692,22,1243,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var convert = {}; var models = Object.keys(_$$_REQUIRE(_dependencyMap[0])); @@ -202096,7 +202841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); module.exports = convert; -},1687,[1688,1689]); +},1692,[1693,1694]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reverseKeywords = {}; @@ -202945,7 +203690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; -},1688,[1241,33]); +},1693,[1244,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function buildGraph() { var graph = {}; @@ -203026,7 +203771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return conversion; }; -},1689,[1688]); +},1694,[1693]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -203071,7 +203816,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _TabBarItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); var _SceneMap = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); -},1690,[3,1691,1695,1694,1692,1705]); +},1695,[3,1696,1700,1699,1697,1710]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -203469,7 +204214,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},1691,[3,6,7,11,13,14,16,18,1692,1694,179]); +},1696,[3,6,7,11,13,14,16,18,1697,1699,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -203732,7 +204477,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1692,[3,6,7,11,13,14,16,18,1693,179]); +},1697,[3,6,7,11,13,14,16,18,1698,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -203775,7 +204520,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, rest)); } -},1693,[3,4,16,18,179]); +},1698,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -203935,7 +204680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 2 } }); -},1694,[3,22,6,7,11,13,14,16,18,179]); +},1699,[3,22,6,7,11,13,14,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204076,7 +204821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1695,[3,33,16,18,1691,1696,1697,179]); +},1700,[3,33,16,18,1696,1701,1702,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204225,7 +204970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1696,[3,6,7,11,13,14,16,18,179]); +},1701,[3,6,7,11,13,14,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204238,7 +204983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _PagerViewAdapter = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); -},1697,[3,1698]); +},1702,[3,1703]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204379,7 +205124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1698,[3,4,16,18,1699,1704,179]); +},1703,[3,4,16,18,1704,1709,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204387,7 +205132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = undefined; var _default = exports.default = _$$_REQUIRE(_dependencyMap[0]).PagerView; -},1699,[1700]); +},1704,[1705]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204553,7 +205298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref })); }); -},1700,[3,4,6,7,11,13,14,16,18,1701,1702,179,1703]); +},1705,[3,4,6,7,11,13,14,16,18,1706,1707,179,1708]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204569,7 +205314,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNCViewPager'); -},1701,[3,133,183]); +},1706,[3,133,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204585,7 +205330,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('LEGACY_RNCViewPager'); -},1702,[3,133,183]); +},1707,[3,133,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204628,7 +205373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); }; -},1703,[16,18,179]); +},1708,[16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204652,7 +205397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return lazyRef.current; } -},1704,[16,18]); +},1709,[16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204714,15 +205459,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, route.key); }; } -},1705,[3,4,6,7,11,13,14,16,179]); +},1710,[3,4,6,7,11,13,14,16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.VERSION = undefined; - var VERSION = "1.4.8"; + var VERSION = "1.5.0"; exports.VERSION = VERSION; -},1706,[]); +},1711,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204816,7 +205561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, null, null, [[1, 10]], Promise); } -},1707,[3,933,18,1078,939,935]); +},1712,[3,936,18,1081,942,938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204907,7 +205652,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: null }, rest)); } -},1708,[3,4,591,16,1709,1078,1067]); +},1713,[3,4,591,16,1714,1081,1070]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -204944,7 +205689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _CircleSnail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _Pie = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); -},1709,[3,1710,1711,1714,1715]); +},1714,[3,1715,1716,1719,1720]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -205158,7 +205903,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, animationType: 'spring' }; -},1710,[3,4,6,7,11,13,14,16,582,18,179]); +},1715,[3,4,6,7,11,13,14,16,582,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -205380,7 +206125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _withAnimation.default)(ProgressCircle); -},1711,[3,4,6,7,11,13,14,16,582,18,1712,1713,957,179]); +},1716,[3,4,6,7,11,13,14,16,582,18,1717,1718,960,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -205495,7 +206240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeWidth: 0, direction: 'clockwise' }; -},1712,[3,4,6,7,11,13,14,16,582,179,957]); +},1717,[3,4,6,7,11,13,14,16,582,179,960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -205650,7 +206395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e progress: 0 }, _AnimatedComponent; } -},1713,[3,6,7,11,13,14,16,582,18,179]); +},1718,[3,6,7,11,13,14,16,582,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -205865,7 +206610,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeCap: 'round', useNativeDriver: false }; -},1714,[3,4,6,7,11,13,14,16,582,18,1712,179,957]); +},1719,[3,4,6,7,11,13,14,16,582,18,1717,179,960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206004,7 +206749,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _withAnimation.default)(ProgressPie, 0.2); -},1715,[3,4,6,7,11,13,14,16,582,18,1716,1717,1713,957,179]); +},1720,[3,4,6,7,11,13,14,16,582,18,1721,1722,1718,960,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206085,7 +206830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeWidth: 0, direction: 'clockwise' }; -},1716,[3,4,6,7,11,13,14,16,582,179,957]); +},1721,[3,4,6,7,11,13,14,16,582,179,960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206170,7 +206915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e left: 0 } }; -},1717,[3,4,6,7,11,13,14,16,582,179,957]); +},1722,[3,4,6,7,11,13,14,16,582,179,960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206249,7 +206994,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function jsInjectionOnActiveWebViews(payload) { _$$_REQUIRE(_dependencyMap[4]).EventRegister.emit(_events.default.JS_INJECTION, payload); } -},1718,[932,3,951,1085,1076]); +},1723,[935,3,954,1088,1079]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206342,7 +207087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _special = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); var _uri = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); -},1719,[3,1199,938,1316,1200,1201,1204,1205,1207,1202,1209,943]); +},1724,[3,1202,941,1319,1203,1204,1207,1208,1210,1205,1212,946]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206417,7 +207162,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1720,[3,270,6,7,11,85,13,14,865,438,872]); +},1725,[3,270,6,7,11,85,13,14,868,438,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206555,7 +207300,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1721,[3,270,6,7,11,85,13,14,865,879,872]); +},1726,[3,270,6,7,11,85,13,14,868,882,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206664,7 +207409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},1722,[3,270,6,7,11,85,13,14,865,872]); +},1727,[3,270,6,7,11,85,13,14,868,875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206873,7 +207618,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1723,[3,4,270,6,7,1724,1725,438]); +},1728,[3,4,270,6,7,1729,1730,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -206953,7 +207698,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1724,[3,6,7]); +},1729,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -207032,7 +207777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e current: "currentPublication" } }; -},1725,[3,270,6,7,438]); +},1730,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -207500,7 +208245,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return items; }; -},1726,[3,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,438]); +},1731,[3,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -207532,7 +208277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1727,[3,6,7]); +},1732,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207544,7 +208289,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-back", "type": "png" }); -},1728,[1258]); +},1733,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207556,7 +208301,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-next", "type": "png" }); -},1729,[1258]); +},1734,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207568,7 +208313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-up", "type": "png" }); -},1730,[1258]); +},1735,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207580,7 +208325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-store", "type": "png" }); -},1731,[1258]); +},1736,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207592,7 +208337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-language", "type": "png" }); -},1732,[1258]); +},1737,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207604,7 +208349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-more", "type": "png" }); -},1733,[1258]); +},1738,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207616,7 +208361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-rss", "type": "png" }); -},1734,[1258]); +},1739,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207628,7 +208373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-thumbnail", "type": "png" }); -},1735,[1258]); +},1740,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207640,7 +208385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-browse", "type": "png" }); -},1736,[1258]); +},1741,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207652,7 +208397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-read", "type": "png" }); -},1737,[1258]); +},1742,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207664,7 +208409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-index", "type": "png" }); -},1738,[1258]); +},1743,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207676,7 +208421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-accessibility", "type": "png" }); -},1739,[1258]); +},1744,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207688,7 +208433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-search", "type": "png" }); -},1740,[1258]); +},1745,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207700,7 +208445,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-supplements", "type": "png" }); -},1741,[1258]); +},1746,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207712,7 +208457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-calendar", "type": "png" }); -},1742,[1258]); +},1747,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207724,7 +208469,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-contact", "type": "png" }); -},1743,[1258]); +},1748,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207736,7 +208481,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-login", "type": "png" }); -},1744,[1258]); +},1749,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207748,7 +208493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-settings", "type": "png" }); -},1745,[1258]); +},1750,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207760,7 +208505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-help", "type": "png" }); -},1746,[1258]); +},1751,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207772,7 +208517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-archive", "type": "png" }); -},1747,[1258]); +},1752,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207784,7 +208529,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-car-mode", "type": "png" }); -},1748,[1258]); +},1753,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207796,7 +208541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-download", "type": "png" }); -},1749,[1258]); +},1754,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207808,7 +208553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-fit", "type": "png" }); -},1750,[1258]); +},1755,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207820,7 +208565,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-unfit", "type": "png" }); -},1751,[1258]); +},1756,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207832,7 +208577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-up", "type": "png" }); -},1752,[1258]); +},1757,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207844,7 +208589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-prev", "type": "png" }); -},1753,[1258]); +},1758,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207856,7 +208601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-next", "type": "png" }); -},1754,[1258]); +},1759,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207868,7 +208613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-share", "type": "png" }); -},1755,[1258]); +},1760,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207880,7 +208625,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-car-mode", "type": "png" }); -},1756,[1258]); +},1761,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207892,7 +208637,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-accessibility", "type": "png" }); -},1757,[1258]); +},1762,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207904,7 +208649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-close", "type": "png" }); -},1758,[1258]); +},1763,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207916,7 +208661,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-search", "type": "png" }); -},1759,[1258]); +},1764,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207928,7 +208673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-clear-search", "type": "png" }); -},1760,[1258]); +},1765,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207940,7 +208685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-share", "type": "png" }); -},1761,[1258]); +},1766,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207952,7 +208697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-share-facebook", "type": "png" }); -},1762,[1258]); +},1767,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207964,7 +208709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-share-twitter", "type": "png" }); -},1763,[1258]); +},1768,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207976,7 +208721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-share-reddit", "type": "png" }); -},1764,[1258]); +},1769,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -207988,7 +208733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-share-email", "type": "png" }); -},1765,[1258]); +},1770,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208000,7 +208745,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-expand", "type": "png" }); -},1766,[1258]); +},1771,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208012,7 +208757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-collapse", "type": "png" }); -},1767,[1258]); +},1772,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208024,7 +208769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-tts-on", "type": "png" }); -},1768,[1258]); +},1773,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208036,7 +208781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-tts-off", "type": "png" }); -},1769,[1258]); +},1774,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208048,7 +208793,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-toggle-graphic", "type": "png" }); -},1770,[1258]); +},1775,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208060,7 +208805,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-toggle-text", "type": "png" }); -},1771,[1258]); +},1776,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208072,7 +208817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-font-increase", "type": "png" }); -},1772,[1258]); +},1777,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208084,7 +208829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-font-decrease", "type": "png" }); -},1773,[1258]); +},1778,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208096,7 +208841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-graph-increase", "type": "png" }); -},1774,[1258]); +},1779,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208108,7 +208853,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-graph-decrease", "type": "png" }); -},1775,[1258]); +},1780,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208120,7 +208865,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-zoom-fit-out", "type": "png" }); -},1776,[1258]); +},1781,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208132,7 +208877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-print", "type": "png" }); -},1777,[1258]); +},1782,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208144,7 +208889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-translate", "type": "png" }); -},1778,[1258]); +},1783,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208156,7 +208901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ar", "type": "png" }); -},1779,[1258]); +},1784,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208168,7 +208913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "cn", "type": "png" }); -},1780,[1258]); +},1785,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208180,7 +208925,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "bs", "type": "png" }); -},1781,[1258]); +},1786,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208192,7 +208937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "da", "type": "png" }); -},1782,[1258]); +},1787,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208204,7 +208949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "de", "type": "png" }); -},1783,[1258]); +},1788,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208216,7 +208961,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "el", "type": "png" }); -},1784,[1258]); +},1789,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208228,7 +208973,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "en", "type": "png" }); -},1785,[1258]); +},1790,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208240,7 +208985,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "es", "type": "png" }); -},1786,[1258]); +},1791,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208252,7 +208997,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "fr", "type": "png" }); -},1787,[1258]); +},1792,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208264,7 +209009,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "hr", "type": "png" }); -},1788,[1258]); +},1793,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208276,7 +209021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "it", "type": "png" }); -},1789,[1258]); +},1794,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208288,7 +209033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ja", "type": "png" }); -},1790,[1258]); +},1795,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208300,7 +209045,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ko", "type": "png" }); -},1791,[1258]); +},1796,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208312,7 +209057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ms", "type": "png" }); -},1792,[1258]); +},1797,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208324,7 +209069,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "no", "type": "png" }); -},1793,[1258]); +},1798,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208336,7 +209081,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "nl", "type": "png" }); -},1794,[1258]); +},1799,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208348,7 +209093,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "pt", "type": "png" }); -},1795,[1258]); +},1800,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208360,7 +209105,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ru", "type": "png" }); -},1796,[1258]); +},1801,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208372,7 +209117,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "sl", "type": "png" }); -},1797,[1258]); +},1802,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208384,7 +209129,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "sq", "type": "png" }); -},1798,[1258]); +},1803,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208396,7 +209141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "sr", "type": "png" }); -},1799,[1258]); +},1804,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208408,7 +209153,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "sv", "type": "png" }); -},1800,[1258]); +},1805,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208420,7 +209165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "us", "type": "png" }); -},1801,[1258]); +},1806,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208432,7 +209177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-warning", "type": "png" }); -},1802,[1258]); +},1807,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208444,7 +209189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-eye-off", "type": "png" }); -},1803,[1258]); +},1808,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -208456,7 +209201,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-circle-eye", "type": "png" }); -},1804,[1258]); +},1809,[1261]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "main": { @@ -208990,7 +209735,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex } } ; -},1805,[]); +},1810,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209141,7 +209886,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).BaseModel); -},1806,[3,6,7,11,13,14,438,817,1726,1807,1845]); +},1811,[3,6,7,11,13,14,438,820,1731,1812,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209343,7 +210088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaIcon; -},1807,[3,6,7,11,13,14,270,4,16,582,1808,1818,1820,1822,1824,1826,1831,1833,1835,1837,1839,1841,1843,566,438,179]); +},1812,[3,6,7,11,13,14,270,4,16,582,1813,1823,1825,1827,1829,1831,1836,1838,1840,1842,1844,1846,1848,566,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209361,7 +210106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1808,[3,1809,1817]); +},1813,[3,1814,1822]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209609,7 +210354,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Icon.getFontFamily = getFontFamily; return Icon; } -},1809,[3,22,270,4,6,7,11,13,14,16,582,1810,1812,1813,1811,179]); +},1814,[3,22,270,4,6,7,11,13,14,16,582,1815,1817,1818,1816,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209627,7 +210372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.'); } } -},1810,[1811]); +},1815,[1816]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209645,7 +210390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1811,[18]); +},1816,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209698,7 +210443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e get: get }; } -},1812,[]); +},1817,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -209813,7 +210558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e size: 20 }, _IconButton; } -},1813,[3,4,6,7,11,13,14,1814,1815,1816,16,582,1811,179]); +},1818,[3,4,6,7,11,13,14,1819,1820,1821,16,582,1816,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var stringTag = '[object String]'; var objectProto = Object.prototype; @@ -209829,7 +210574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isString; -},1814,[]); +},1819,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var LARGE_ARRAY_SIZE = 200; var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -210501,7 +211246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = omit; -},1815,[]); +},1820,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991; @@ -210687,7 +211432,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); }); module.exports = pick; -},1816,[]); +},1821,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "stepforward": 58880, @@ -210989,7 +211734,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "slack": 59141, "slack-square": 59142 }; -},1817,[]); +},1822,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -211007,7 +211752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1818,[3,1809,1819]); +},1823,[3,1814,1824]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "500px": 61696, @@ -211422,7 +212167,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "youtube": 62105, "youtube-with-circle": 62106 }; -},1819,[]); +},1824,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -211440,7 +212185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1820,[3,1809,1821]); +},1825,[3,1814,1826]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "archive": 61696, @@ -211514,7 +212259,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "unlock": 61764, "user": 61765 }; -},1821,[]); +},1826,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -211532,7 +212277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1822,[3,1809,1823]); +},1827,[3,1814,1828]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "activity": 61696, @@ -211822,7 +212567,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-in": 61980, "zoom-out": 61981 }; -},1823,[]); +},1828,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -211840,7 +212585,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1824,[3,1809,1825]); +},1829,[3,1814,1830]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "glass": 61440, @@ -212630,7 +213375,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "wpexplorer": 62174, "meetup": 62176 }; -},1825,[]); +},1830,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -212655,7 +213400,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1826,[1827,3,1829,1830]); +},1831,[1832,3,1834,1835]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -212735,7 +213480,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return Icon; } -},1827,[3,1828,1811]); +},1832,[3,1833,1816]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -212899,7 +213644,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Icon.hasIcon = hasIcon; return Icon; } -},1828,[3,6,7,11,13,14,240,16,582,1809,179]); +},1833,[3,6,7,11,13,14,240,16,582,1814,179]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "500px": 62062, @@ -214341,7 +215086,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "youtube-square": 62513, "zhihu": 63039 }; -},1829,[]); +},1834,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "brands": [ @@ -215943,7 +216688,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ] } ; -},1830,[]); +},1835,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -215961,7 +216706,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1831,[3,1809,1832]); +},1836,[3,1814,1837]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "acrobat-reader": 60095, @@ -216582,7 +217327,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "rectangle": 59917, "shield": 59914 }; -},1832,[]); +},1837,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -216600,7 +217345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1833,[3,1809,1834]); +},1838,[3,1814,1839]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "address-book": 61696, @@ -216887,7 +217632,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-in": 61977, "zoom-out": 61978 }; -},1834,[]); +},1839,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -216905,7 +217650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1835,[3,1809,1836]); +},1840,[3,1814,1841]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "add": 61696, @@ -220591,7 +221336,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "md-woman-sharp": 62922 } ; -},1836,[]); +},1841,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -220609,7 +221354,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1837,[3,1809,1838]); +},1842,[3,1814,1843]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "360": 58743, @@ -222175,7 +222920,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-out": 59648, "zoom-out-map": 58731 }; -},1838,[]); +},1843,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -222193,7 +222938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1839,[3,1809,1840]); +},1844,[3,1814,1845]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "ab-testing": 983497, @@ -227543,7 +228288,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zodiac-virgo": 985736, "blank": 63116 }; -},1840,[]); +},1845,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -227561,7 +228306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1841,[3,1809,1842]); +},1846,[3,1814,1847]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "alert": 61696, @@ -227749,7 +228494,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "x": 61878, "zap": 61879 }; -},1842,[]); +},1847,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -227767,7 +228512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Button = exports.Button = iconSet.Button, getImageSource = exports.getImageSource = iconSet.getImageSource, getImageSourceSync = exports.getImageSourceSync = iconSet.getImageSourceSync; -},1843,[3,1809,1844]); +},1848,[3,1814,1849]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "acrobat": 61696, @@ -227871,7 +228616,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "yelp": 61794, "youtube": 61795 }; -},1844,[]); +},1849,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -227900,7 +228645,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1845,[3,6,7]); +},1850,[3,6,7]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "main": { @@ -228514,7 +229259,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex } } ; -},1846,[]); +},1851,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -228616,7 +229361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); -},1847,[3,6,7,11,13,14,438,1848,1849,1845]); +},1852,[3,6,7,11,13,14,438,1853,1854,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -228646,7 +229391,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(FooterIcon, _Icon); return (0, _createClass2.default)(FooterIcon); }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},1848,[3,7,6,11,13,14,1806]); +},1853,[3,7,6,11,13,14,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -228676,7 +229421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(MoreIcon, _Icon); return (0, _createClass2.default)(MoreIcon); }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},1849,[3,7,6,11,13,14,1806]); +},1854,[3,7,6,11,13,14,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -228869,7 +229614,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e machineToUse = _this$getActivePSetup.machine; } - if (!external && !global.isTaAddon() && (!isGenericApp || PaperSetupManager.isPSetupASpecialOfActivePSetup(pSetup))) { + if (!external && !global.isTaAddon() && (!isGenericApp || PaperSetupManager.isPSetupASpecialOfActivePSetup(pSetup) || PaperSetupManager.isPSetupXPaperOfActivePSetup(pSetup))) { var xpSetup = pSetup; if (pSetup.indexOf("-xp-") !== -1) { @@ -229036,14 +229781,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "isPSetupASpecialOfActivePSetup", value: function isPSetupASpecialOfActivePSetup(pSetup) { var _global$getActivePSet = global.getActivePSetup(), - initpageXpaperNotView = _global$getActivePSet.initpageXpaperNotView; + specials = _global$getActivePSet.specials; - if (pSetup && initpageXpaperNotView) { - var xPaperSplitted = initpageXpaperNotView.split(","); - return xPaperSplitted.includes(pSetup); - } + return pSetup && specials ? specials.split(",").includes(pSetup) : false; + } + }, { + key: "isPSetupXPaperOfActivePSetup", + value: function isPSetupXPaperOfActivePSetup(pSetup) { + var _global$getActivePSet2 = global.getActivePSetup(), + xPapers = _global$getActivePSet2.xPapers; - return false; + return pSetup && xPapers ? xPapers.split(",").includes(pSetup) : false; } }, { key: "download", @@ -229111,7 +229859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1850,[3,4,270,6,7,407,1723,1851,1854,864,438]); +},1855,[3,4,270,6,7,407,1728,1856,1859,867,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229153,7 +229901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1851,[3,270,6,7,1852,1853]); +},1856,[3,270,6,7,1857,1858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229200,7 +229948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _getDataFromApiResponse.apply(this, arguments); } -},1852,[3,270,436,407,564]); +},1857,[3,270,436,407,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229225,7 +229973,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return json; } -},1853,[438]); +},1858,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229393,7 +230141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1854,[3,270,6,7,406,862,1855,1856,438]); +},1859,[3,270,6,7,406,865,1860,1861,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229516,7 +230264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filetime: "filetime" } }; -},1855,[3,270,6,7,438]); +},1860,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229666,7 +230414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1856,[3,270,6,7,1855,566,438]); +},1861,[3,270,6,7,1860,566,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229754,7 +230502,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); -},1857,[3,6,7,11,13,14,1858,1859,1860,1845]); +},1862,[3,6,7,11,13,14,1863,1864,1865,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229818,7 +230566,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[6]).BaseModel); -},1858,[3,6,7,11,13,14,1845]); +},1863,[3,6,7,11,13,14,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229876,7 +230624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); -},1859,[3,6,7,11,13,14,438,1845]); +},1864,[3,6,7,11,13,14,438,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229969,7 +230717,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[8]).BaseModel); -},1860,[3,6,7,11,13,14,438,1861,1845]); +},1865,[3,6,7,11,13,14,438,1866,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -229999,7 +230747,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(ArticleIcon, _Icon); return (0, _createClass2.default)(ArticleIcon); }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},1861,[3,7,6,11,13,14,1806]); +},1866,[3,7,6,11,13,14,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -230063,7 +230811,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); -},1862,[3,6,7,11,13,14,1860,1845]); +},1867,[3,6,7,11,13,14,1865,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -230084,16 +230832,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _IAPHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), - Methods = _OptionalPackages$get.Methods; + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); var DEFAULT_MAX_NUMBER_OF_EDITION_TO_KEEP = exports.DEFAULT_MAX_NUMBER_OF_EDITION_TO_KEEP = 4; var _NewsmemoryHelper$SP = _NewsmemoryHelper.default.SP, @@ -230132,7 +230875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enableTabIndexMode = _global$getActivePSet.enableTabIndexMode, showOpenArticleExtraOnTitleBox = _global$getActivePSet.showOpenArticleExtraOnTitleBox; - this.network = (yield _NewsmemoryHelper.default.getItem(keys.network)) || defaultConnectivity || _$$_REQUIRE(_dependencyMap[12]).DownloadType.MID_AND_LOW; + this.network = (yield _NewsmemoryHelper.default.getItem(keys.network)) || defaultConnectivity || _$$_REQUIRE(_dependencyMap[11]).DownloadType.MID_AND_LOW; this.networkTimestamp = (yield _NewsmemoryHelper.default.getItem(keys.network_timestamp)) || ""; this.limit = parseInt(yield _NewsmemoryHelper.default.getItem(keys.limit), 10) || DEFAULT_MAX_NUMBER_OF_EDITION_TO_KEEP; this.connectivity = parseInt(yield _NewsmemoryHelper.default.getItem(keys.connectivity), 10) || 0; @@ -230144,15 +230887,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.singleTapToZoom = false; } - this.isIphone = parseInt(yield _NewsmemoryHelper.default.getItem(keys.is_phone), 10) || (!_$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isTablet() ? 1 : 0); + this.isIphone = parseInt(yield _NewsmemoryHelper.default.getItem(keys.is_phone), 10) || (!_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isTablet() ? 1 : 0); this.prefEdi = (yield this.getValue(udb + "_" + paper.preferredEdition)) || ""; this.favoriteEdition = (yield _NewsmemoryHelper.default.getItem(keys.favorite_edition)) || defaultFavoriteEdition; this.editionfromcalling = (yield _NewsmemoryHelper.default.getItem(keys.edition_from_calling)) || ""; this.cssTheme = (yield _NewsmemoryHelper.default.getItem(keys.css_theme)) || ""; this.lastOperationTimestamp = parseInt(yield _NewsmemoryHelper.default.getItem(keys.last_op_time), 10) || 0; this.showDownloadTip = ((yield _NewsmemoryHelper.default.getItem(keys.show_download_tip)) || "1") === "1"; - this.useRnDemo = (yield _NewsmemoryHelper.default.getItem(keys.use_rn_demo)) || ""; - this.useRnDemoTimestamp = yield _NewsmemoryHelper.default.getItem(keys.use_rn_demo_timestamp); this.articleFullscreen = { portrait: ((yield this.getValue(keys.article_fullscreen_portrait)) || articleModeDefaultFullscreenPortrait) === "1", landscape: ((yield this.getValue(keys.article_fullscreen_landscape)) || articleModeDefaultFullscreenLandscape) === "1" @@ -230167,14 +230908,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.lastDbNetwork = undefined; var dbNetworkValue = yield _NewsmemoryHelper.default.getItem(keys.lastDbNetwork); - if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isNull(dbNetworkValue)) { + if (!_$$_REQUIRE(_dependencyMap[12]).JSUtils.isNull(dbNetworkValue)) { this.lastDbNetwork = parseInt(dbNetworkValue, 10); } this.lastDbDownloadSpeed = undefined; var speedValue = yield _NewsmemoryHelper.default.getItem(keys.lastDbDownloadSpeed); - if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isNull(speedValue)) { + if (!_$$_REQUIRE(_dependencyMap[12]).JSUtils.isNull(speedValue)) { this.lastDbDownloadSpeed = parseFloat(speedValue); } @@ -230225,7 +230966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } this.soPass = yield this.getValue(keys.social_login_platform); - this.titleBoxDebug = showOpenArticleExtraOnTitleBox !== _$$_REQUIRE(_dependencyMap[14]).ARTICLE_TITLE_BOX_MODE.NEVER ? global.isLayoutDebug || ((yield this.getValue(keys.title_box_debug)) || "0") === "1" : false; + this.titleBoxDebug = showOpenArticleExtraOnTitleBox !== _$$_REQUIRE(_dependencyMap[13]).ARTICLE_TITLE_BOX_MODE.NEVER ? global.isLayoutDebug || ((yield this.getValue(keys.title_box_debug)) || "0") === "1" : false; return true; }); @@ -230266,19 +231007,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NewsmemoryHelper.default.setItem(key, value); if (key === keys.epaper_start_mode) { - this.setReadMode(value === _$$_REQUIRE(_dependencyMap[14]).NEWSMEMORY_START_MODE.READ); + this.setReadMode(value === _$$_REQUIRE(_dependencyMap[13]).NEWSMEMORY_START_MODE.READ); } else if (key === keys.network) { this.setNetworkTimestamp(); - } else if (key === keys.use_rn_demo) { - this.setUseRnDemoTimestamp(); - } else if (key === keys.favorite_edition && showNativeOptionsPage && Methods) { - var favoriteEdition = value; + } else if (key === keys.favorite_edition && showNativeOptionsPage) { + var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get.Methods; - if (favoriteEdition) { - favoriteEdition = favoriteEdition.split("|")[0]; + if (Methods) { + var favoriteEdition = value && value.split("|")[0]; + Methods.setFavoriteEdition(favoriteEdition); } - - Methods.setFavoriteEdition(favoriteEdition); } } } @@ -230299,25 +231038,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NewsmemoryHelper.default.setItem("limit", "" + value); } - }, { - key: "setRNUseDemo", - value: function setRNUseDemo(value) { - if (value !== this.useRnDemo) { - this.useRnDemo = value; - var openRN = this.useRnDemo === "1"; - - if (openRN) { - _IAPHelper.default.registerReceiver(); - } - - _NavigationService.default.main.reset("NewsmemoryNavigator"); - - _NewsmemoryHelper.default.setItem(_NewsmemoryHelper.default.SP.keys.use_rn_demo, value); - - (0, _$$_REQUIRE(_dependencyMap[15]).sendNewsmemoryUseBeta)(openRN); - this.setUseRnDemoTimestamp(); - } - } }, { key: "checkNetworkTimestamp", value: function checkNetworkTimestamp(pSetupTimestamp) { @@ -230325,22 +231045,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.setNetwork(""); } } - }, { - key: "checkRnUseDemoTimestamp", - value: function checkRnUseDemoTimestamp(pSetupTimestamp) { - if (this.useRnDemoTimestamp && pSetupTimestamp && parseInt(this.useRnDemoTimestamp, 10) < parseInt(pSetupTimestamp, 10)) { - this.resetRNUseDemo(); - } - } - }, { - key: "resetRNUseDemo", - value: function resetRNUseDemo() { - this.useRnDemo = ""; - - _NewsmemoryHelper.default.removeItem(_NewsmemoryHelper.default.SP.keys.use_rn_demo); - - this.setUseRnDemoTimestamp(); - } }, { key: "getValue", value: function () { @@ -230379,7 +231083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (e) {} } - if (_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(result)) { + if (_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(result)) { try { var data = yield _NewsmemoryAJAX.default.translationsAvailable(); result = data.languages; @@ -230550,21 +231254,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "setNetworkTimestamp", value: function setNetworkTimestamp() { - var networkTimestamp = _$$_REQUIRE(_dependencyMap[13]).DateUtils.getCurrentDateString(); + var networkTimestamp = _$$_REQUIRE(_dependencyMap[12]).DateUtils.getCurrentDateString(); this.networkTimestamp = networkTimestamp; _NewsmemoryHelper.default.setItem(keys.network_timestamp, networkTimestamp); } - }, { - key: "setUseRnDemoTimestamp", - value: function setUseRnDemoTimestamp() { - var timestamp = _$$_REQUIRE(_dependencyMap[13]).DateUtils.getCurrentDateString(); - - this.useRnDemoTimestamp = timestamp; - - _NewsmemoryHelper.default.setItem(keys.use_rn_demo_timestamp, timestamp); - } }, { key: "setLastOperationTimestamp", value: function setLastOperationTimestamp() { @@ -230587,7 +231282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function getGraphSize() { var allowFontScaling = global.getUserSettings().getAllowFontScaling(); - var scaleFactor = _$$_REQUIRE(_dependencyMap[13]).FontUtils.getSystemFontScaleFactor(allowFontScaling, _$$_REQUIRE(_dependencyMap[13]).PlatformUtils.info.fontScale); + var scaleFactor = _$$_REQUIRE(_dependencyMap[12]).FontUtils.getSystemFontScaleFactor(allowFontScaling, _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.info.fontScale); return parseInt(this.graphSize, 10) * scaleFactor; } @@ -230622,9 +231317,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.setGraphSize(size); - _$$_REQUIRE(_dependencyMap[16]).EventRegister.emit(_events.default.TOGGLE_NEWSMEMORY_GRAPH_SIZE); + _$$_REQUIRE(_dependencyMap[14]).EventRegister.emit(_events.default.TOGGLE_NEWSMEMORY_GRAPH_SIZE); - _$$_REQUIRE(_dependencyMap[16]).EventRegister.emit(_events.default.ARTICLE_GRAPHIC_ZOOM_CHANGE); + _$$_REQUIRE(_dependencyMap[14]).EventRegister.emit(_events.default.ARTICLE_GRAPHIC_ZOOM_CHANGE); return size; } @@ -230723,12 +231418,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "shouldStartInReadMode", value: function shouldStartInReadMode() { - return this.epaperStartMode === _$$_REQUIRE(_dependencyMap[14]).NEWSMEMORY_START_MODE.READ; + return this.epaperStartMode === _$$_REQUIRE(_dependencyMap[13]).NEWSMEMORY_START_MODE.READ; } }, { key: "shouldStartInBrowseMode", value: function shouldStartInBrowseMode() { - return this.epaperStartMode === _$$_REQUIRE(_dependencyMap[14]).NEWSMEMORY_START_MODE.SWIPE; + return this.epaperStartMode === _$$_REQUIRE(_dependencyMap[13]).NEWSMEMORY_START_MODE.SWIPE; } }, { key: "setEnableArticleExtras", @@ -230757,32 +231452,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "isArticleModeShowOnlyText", value: function isArticleModeShowOnlyText() { - return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[14]).SHOW_TYPES_ARTICLE.ONLY_TEXT; + return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[13]).SHOW_TYPES_ARTICLE.ONLY_TEXT; } }, { key: "isArticleModeShowTextAndGraph", value: function isArticleModeShowTextAndGraph() { - return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[14]).SHOW_TYPES_ARTICLE.TEXT_AND_GRAPH; + return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[13]).SHOW_TYPES_ARTICLE.TEXT_AND_GRAPH; } }, { key: "isArticleModeShowAll", value: function isArticleModeShowAll() { - return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[14]).SHOW_TYPES_ARTICLE.ALL; + return this.showTypesArticle === _$$_REQUIRE(_dependencyMap[13]).SHOW_TYPES_ARTICLE.ALL; } }, { key: "pagesNavigationButtonsHidden", value: function pagesNavigationButtonsHidden() { - return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[14]).PAGES_NAVIGATION_BUTTONS_LAYOUT.HIDDEN; + return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[13]).PAGES_NAVIGATION_BUTTONS_LAYOUT.HIDDEN; } }, { key: "pagesNavigationButtonsFixed", value: function pagesNavigationButtonsFixed() { - return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[14]).PAGES_NAVIGATION_BUTTONS_LAYOUT.FIXED; + return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[13]).PAGES_NAVIGATION_BUTTONS_LAYOUT.FIXED; } }, { key: "pagesNavigationButtonsAnimated", value: function pagesNavigationButtonsAnimated() { - return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[14]).PAGES_NAVIGATION_BUTTONS_LAYOUT.ANIMATED; + return this.pagesNavigationButtonsLayout === _$$_REQUIRE(_dependencyMap[13]).PAGES_NAVIGATION_BUTTONS_LAYOUT.ANIMATED; } }, { key: "getFavEdiSync", @@ -230905,8 +231600,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _clearAll = (0, _asyncToGenerator2.default)(function* () { var userSettings = global.getUserSettings(); - this.useRnDemo = undefined; - this.useRnDemoTimestamp = undefined; this.network = undefined; this.networkTimestamp = undefined; this.limit = undefined; @@ -230973,7 +231666,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1863,[3,270,6,7,1179,406,1864,436,1865,434,879,1881,627,438,864,1900,564]); +},1868,[3,270,6,7,1182,406,1869,436,434,882,1870,630,438,867,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -231076,8 +231769,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e article_fullscreen_landscape: "articleFullscreenLandscape", last_op_time: "lastOperationTimestamp", show_download_tip: "showDownloadTip", - use_rn_demo: "useRnDemo", - use_rn_demo_timestamp: "useRnDemoTimestamp", custom_scale_factor: "customScaleFactor", graph_size: "graphSize", font_size: "fontSize", @@ -231118,3703 +231809,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e accessibility_mode: "accessibilityMode" } }; -},1864,[3,270,6,7,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.IAP_SYSTEMS = exports.IAP_STATUS = exports.IAP_SECRET = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - - var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _IAPApi = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _IAPBase = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var IAP_SYSTEMS = exports.IAP_SYSTEMS = { - GOOGLE: "google", - APPLE: "apple", - AMAZON: "amazon" - }; - var IAP_STATUS = exports.IAP_STATUS = { - FAILED: 0, - SUCCESS: 1, - RESTORED: 2 - }; - var IAP_SECRET = exports.IAP_SECRET = "tecnavia"; - var RESTORE_TRANSACTIONS_MESSAGES = { - SUCCESS: "Purchases restored", - IPN_FAILED: "Call to restore transactions API failed", - NO_PURCHASES_FOUND: "No purchases to restore found", - SYSTEM_ERROR: "In-app purchase system in error", - ENGINE_NOT_SET: "In-app purchase engine not set" - }; - var RESTORE_TRANSACTIONS_CHUNK_LENGTH = 50; - - var _OptionalPackages$get = _optionalPackageUtils.default.getIapModule(), - IAPErrorCode = _OptionalPackages$get.IAPErrorCode, - PurchaseError = _OptionalPackages$get.PurchaseError, - Product = _OptionalPackages$get.Product, - Subscription = _OptionalPackages$get.Subscription; - - var IAPHelper = exports.default = function () { - function IAPHelper() { - (0, _classCallCheck2.default)(this, IAPHelper); - } - - return (0, _createClass2.default)(IAPHelper, null, [{ - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (productId, key) { - return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.getItem(IAPHelper.SP.name + "_" + productId, key); - }); - - function getItem(_x, _x2) { - return _getItem.apply(this, arguments); - } - - return getItem; - }() - }, { - key: "setItem", - value: function () { - var _setItem = (0, _asyncToGenerator2.default)(function* (productId, key, value) { - _$$_REQUIRE(_dependencyMap[11]).StorageUtils.setItem(IAPHelper.SP.name + "_" + productId, key, "" + value); - }); - - function setItem(_x3, _x4, _x5) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "removeItem", - value: function () { - var _removeItem = (0, _asyncToGenerator2.default)(function* (productId, key) { - return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clear(IAPHelper.SP.name + "_" + productId, key); - }); - - function removeItem(_x6, _x7) { - return _removeItem.apply(this, arguments); - } - - return removeItem; - }() - }, { - key: "updateItem", - value: function () { - var _updateItem = (0, _asyncToGenerator2.default)(function* (productId, key, value) { - if (value) { - IAPHelper.setItem(productId, key, value); - } else { - IAPHelper.removeItem(productId, key); - } - }); - - function updateItem(_x8, _x9, _x10) { - return _updateItem.apply(this, arguments); - } - - return updateItem; - }() - }, { - key: "clearAll", - value: function () { - var _clearAll = (0, _asyncToGenerator2.default)(function* (productId) { - if (productId) { - return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clearAll(IAPHelper.SP.name + "_" + productId); - } - - return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clearAllByRegExp(IAPHelper.SP.name + "_.*"); - }); - - function clearAll(_x11) { - return _clearAll.apply(this, arguments); - } - - return clearAll; - }() - }, { - key: "storePurchaseModel", - value: function () { - var _storePurchaseModel = (0, _asyncToGenerator2.default)(function* (model) { - var productId = model.productId, - invoiceId = model.invoiceId, - pSetup = model.pSetup, - issue = model.issue, - edition = model.edition, - editionId = model.editionId, - transactionId = model.transactionId, - transactionDate = model.transactionDate, - originalTransactionId = model.originalTransactionId, - originalTransactionDate = model.originalTransactionDate, - recurringSubscriptionPeriod = model.recurringSubscriptionPeriod, - recurringSubscriptionId = model.recurringSubscriptionId, - receipt = model.receipt, - purchaseToken = model.purchaseToken; - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.invoiceId, invoiceId); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.pSetup, pSetup); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.issue, issue); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.edition, edition); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.editionId, editionId); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.transactionId, transactionId); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.transactionDate, transactionDate); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.originalTransactionId, originalTransactionId); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.originalTransactionDate, originalTransactionDate); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.receipt, receipt); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.recurringSubscriptionPeriod, recurringSubscriptionPeriod); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.recurringSubscriptionId, recurringSubscriptionId); - yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.purchaseToken, purchaseToken); - }); - - function storePurchaseModel(_x12) { - return _storePurchaseModel.apply(this, arguments); - } - - return storePurchaseModel; - }() - }, { - key: "getPurchaseModel", - value: function () { - var _getPurchaseModel = (0, _asyncToGenerator2.default)(function* (productId) { - try { - var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaModel)(); - model.setProductId(productId); - model.setInvoiceId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.invoiceId)); - model.setPSetup(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.pSetup)); - model.setIssue(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.issue)); - model.setEdition(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.edition)); - model.setEditionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.editionId)); - model.setTransactionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.transactionId)); - model.setTransactionDate(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.transactionDate)); - model.setOriginalTransactionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.originalTransactionId)); - model.setOriginalTransactionDate(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.originalTransactionDate)); - model.setReceipt(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.receipt)); - model.setRecurringSubscriptionPeriod(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.recurringSubscriptionPeriod)); - model.setRecurringSubscriptionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.recurringSubscriptionId)); - model.setPurchaseToken(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.purchaseToken)); - return model; - } catch (e) { - return null; - } - }); - - function getPurchaseModel(_x13) { - return _getPurchaseModel.apply(this, arguments); - } - - return getPurchaseModel; - }() - }, { - key: "initProductsAndSubscriptions", - value: function () { - var _initProductsAndSubscriptions = (0, _asyncToGenerator2.default)(function* () { - if (IAPHelper.engineInit) { - var _global$getActivePSet = global.getActivePSetup(), - payments = _global$getActivePSet.payments; - - if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(payments)) { - var pSetupProductsSKUs = payments.filter(function (payment) { - return !payment.isSubscription(); - }).map(function (payment) { - return payment.getProductId(); - }); - - if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pSetupProductsSKUs)) { - IAPHelper.products = yield IAPHelper.engine.getProducts(pSetupProductsSKUs); - } - - var pSetupSubscriptionsSKUs = payments.filter(function (payment) { - return payment.isSubscription(); - }).map(function (payment) { - return payment.getProductId(); - }); - - if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pSetupSubscriptionsSKUs)) { - IAPHelper.subscriptions = yield IAPHelper.engine.getSubscriptions(pSetupSubscriptionsSKUs); - } - } - } - }); - - function initProductsAndSubscriptions() { - return _initProductsAndSubscriptions.apply(this, arguments); - } - - return initProductsAndSubscriptions; - }() - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - if (!IAPHelper.engineInit && _optionalPackageUtils.default.isIapModuleAvailable()) { - (0, _$$_REQUIRE(_dependencyMap[13]).addDebugOperation)("IAPHelper", " start init"); - - switch (IAPHelper.getSystem()) { - case IAP_SYSTEMS.GOOGLE: - IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[14]).IAPGoogle)({ - callbackToServer: IAPHelper.storeIAPResultToServer, - onPurchaseError: IAPHelper.onPurchaseError - }); - break; - - case IAP_SYSTEMS.APPLE: - IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[15]).IAPApple)({ - callbackToServer: IAPHelper.storeIAPResultToServer, - onPurchaseError: IAPHelper.onPurchaseError - }); - break; - - case IAP_SYSTEMS.AMAZON: - IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[16]).IAPAmazon)({ - callbackToServer: IAPHelper.storeIAPResultToServer, - onPurchaseError: IAPHelper.onPurchaseError - }); - break; - - default: - IAPHelper.systemInError = true; - } - - IAPHelper.engineInit = false; - - if (IAPHelper.engine) { - IAPHelper.engineInit = yield IAPHelper.engine.init(); - } - - if (IAPHelper.engineInit) { - IAPHelper.onPurchaseUpdateOperationAdded(function () { - if (IAPHelper.pendingPurchases === 0) { - IAPHelper.onPurchaseUpdateOperationsIdle().then(function () { - IAPHelper.pendingPurchases = 0; - IAPHelper.pendingPurchasesCompleted = 0; - setTimeout(IAPHelper.hidePurchaseUpdateCompletedMessage, 2000); - }); - } - - IAPHelper.pendingPurchases += 1; - IAPHelper.showPurchaseUpdateCompletedMessage(); - }); - IAPHelper.onPurchaseUpdateOperationCompleted(function () { - IAPHelper.pendingPurchasesCompleted += 1; - IAPHelper.showPurchaseUpdateCompletedMessage(); - }); - yield IAPHelper.initProductsAndSubscriptions(); - } else { - IAPHelper.systemInError = true; - } - - (0, _$$_REQUIRE(_dependencyMap[13]).addDebugOperation)("IAPHelper", "init completed"); - } else {} - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "onPurchaseError", - value: function () { - var _onPurchaseError = (0, _asyncToGenerator2.default)(function* (error) { - if (error) { - var model; - - if (error.productId) { - model = yield IAPHelper.getPurchaseModel(error.productId); - } - - yield IAPHelper.callToIpn(IAP_STATUS.FAILED, model); - - if (IAPHelper.serverCallback) { - IAPHelper.serverCallback({ - status: IAP_STATUS.FAILED, - model: model, - error: error - }); - } - } - }); - - function onPurchaseError(_x14) { - return _onPurchaseError.apply(this, arguments); - } - - return onPurchaseError; - }() - }, { - key: "requestIAP", - value: function () { - var _requestIAP = (0, _asyncToGenerator2.default)(function* (model) { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - IAPHelper.purchasing = true; - var error; - - if (!IAPHelper.systemInError && IAPHelper.engine && model) { - yield IAPHelper.storePurchaseModel(model); - - try { - if (model.type && model.type === _$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaType.SUBSCRIPTION) { - var subscriptions = yield IAPHelper.engine.getSubscriptions([model.productId]); - var offer = IAPHelper.engine.getSubscriptionOffersDetails(subscriptions, model.productId); - var activeSubscriptions = yield IAPHelper.engine.getActiveSubscriptions(model.productId); - activeSubscriptions = IAPHelper.getActiveSubscriptionPerActivePSetup(activeSubscriptions); - yield IAPHelper.showSubscriptionsAlert(activeSubscriptions); - yield IAPHelper.engine.requestSubscription(model.productId, [offer]); - } else { - yield IAPHelper.engine.getProducts([model.productId]); - yield IAPHelper.engine.requestPurchase(model.productId); - } - } catch (e) { - error = { - code: e.code, - message: e.message, - productId: model.productId - }; - } - } else { - error = { - code: IAPErrorCode.E_IAP_NOT_AVAILABLE, - message: "In app purchases not configured", - productId: model.productId - }; - } - - yield IAPHelper.onPurchaseError(error); - IAPHelper.purchasing = false; - } - }); - - function requestIAP(_x15) { - return _requestIAP.apply(this, arguments); - } - - return requestIAP; - }() - }, { - key: "getActiveSubscriptionPerActivePSetup", - value: function getActiveSubscriptionPerActivePSetup(activeSubscriptions) { - var activePsetup = global.getActivePSetup(); - return activeSubscriptions.filter(function (_ref) { - var productId = _ref.productId; - return activePsetup.getPaymentByProductId(productId) !== undefined; - }); - } - }, { - key: "showSubscriptionsAlert", - value: function () { - var _showSubscriptionsAlert = (0, _asyncToGenerator2.default)(function* (activeSubscriptions) { - var _global$getActivePSet2 = global.getActivePSetup(), - enableMultipleSubscriptionsAlert = _global$getActivePSet2.enableMultipleSubscriptionsAlert; - - if (activeSubscriptions.length === 0 || !enableMultipleSubscriptionsAlert || !_optionalPackageUtils.default.isIapModuleAvailable()) { - return Promise.resolve(); - } - - return new Promise(function (resolve, reject) { - _$$_REQUIRE(_dependencyMap[17]).CustomAlert.alert(global.strings("iap_multiple_subscriptions"), global.strings("iap_multiple_active_subscriptions_message", { - subscriptions: IAPHelper.getActiveSubscriptionsText(activeSubscriptions) - }), [{ - text: global.strings("btn_continue"), - onPress: resolve - }, { - text: global.strings("btn_cancel"), - onPress: function onPress() { - var e = new Error(); - e.message = "there is already an active subscription"; - e.name = IAPErrorCode.E_ACTIVE_SUBSCRIPTION; - reject(e); - } - }], { - cancelable: false - }); - }); - }); - - function showSubscriptionsAlert(_x16) { - return _showSubscriptionsAlert.apply(this, arguments); - } - - return showSubscriptionsAlert; - }() - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { - var message; - var SUCCESS = RESTORE_TRANSACTIONS_MESSAGES.SUCCESS, - IPN_FAILED = RESTORE_TRANSACTIONS_MESSAGES.IPN_FAILED, - NO_PURCHASES_FOUND = RESTORE_TRANSACTIONS_MESSAGES.NO_PURCHASES_FOUND, - SYSTEM_ERROR = RESTORE_TRANSACTIONS_MESSAGES.SYSTEM_ERROR, - ENGINE_NOT_SET = RESTORE_TRANSACTIONS_MESSAGES.ENGINE_NOT_SET; - - if (!IAPHelper.systemInError && IAPHelper.engine && _optionalPackageUtils.default.isIapModuleAvailable()) { - try { - var purchases = yield IAPHelper.engine.restoreTransactions(productId); - - if (purchases && purchases.length > 0) { - var result = yield IAPHelper.callToRestoreTransactions(purchases); - - if (result) { - var activePSetup = global.getActivePSetup(); - var loginStatus = activePSetup.loginStatus; - - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { - for (var i = 0; i < purchases.length; i++) { - if (purchases[i]) { - var _purchases$i = purchases[i], - currentProductId = _purchases$i.productId, - receipt = _purchases$i.receipt; - var payment = activePSetup.getPaymentByProductId(currentProductId); - - if (payment && payment.isSubscription() && receipt) { - loginStatus.setReceipt(receipt); - break; - } - } - } - } else if (purchases[0]) { - var _purchases$ = purchases[0], - _currentProductId = _purchases$.productId, - _receipt = _purchases$.receipt; - - var _payment = activePSetup.getPaymentByProductId(_currentProductId); - - if (_payment && _payment.isSubscription() && _receipt) { - loginStatus.setReceipt(_receipt); - } - } - - return { - success: true, - message: SUCCESS, - purchases: purchases - }; - } - - message = IPN_FAILED; - } else { - message = NO_PURCHASES_FOUND; - } - } catch (e) { - message = e.message; - } - } else { - message = IAPHelper.engine ? SYSTEM_ERROR : ENGINE_NOT_SET; - } - - return { - success: false, - message: message - }; - }); - - function restoreTransactions(_x17) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }, { - key: "autoRestoreSubscription", - value: function () { - var _autoRestoreSubscription = (0, _asyncToGenerator2.default)(function* () { - if (IAPHelper.getSystem() === IAP_SYSTEMS.APPLE || IAPHelper.getSystem() === IAP_SYSTEMS.AMAZON) { - var _yield$IAPHelper$rest = yield IAPHelper.restoreTransactions(), - success = _yield$IAPHelper$rest.success; - - return success; - } - - if (!IAPHelper.engine) { - return false; - } - - var activeSubscriptions = yield IAPHelper.engine.getBoughtSubscriptions(); - activeSubscriptions = IAPHelper.getActiveSubscriptionPerActivePSetup(activeSubscriptions); - - if (!activeSubscriptions || !activeSubscriptions.length) { - return false; - } - - activeSubscriptions.sort(function (a, b) { - return parseInt(b.expiresDate, 10) - parseInt(b.originalPurchaseDate, 10) - (parseInt(a.expiresDate, 10) - parseInt(b.originalPurchaseDate, 10)); - }); - - for (var i = 0; i < activeSubscriptions.length; i++) { - var activeSubscription = activeSubscriptions[i]; - - try { - yield IAPHelper.storeIAPResultToServer({ - productId: activeSubscription.productId, - transactionId: activeSubscription.transactionId, - receipt: activeSubscription.receipt, - originalTransactionId: activeSubscription.originalTransactionId, - originalTransactionDate: activeSubscription.originalTransactionDate - }); - } catch (e) {} - } - - activeSubscriptions = IAPHelper.engine.applyFiltersToSubscriptions(activeSubscriptions); - - if (activeSubscriptions.length > 1) { - IAPHelper.showConcurrentSubscriptions(activeSubscriptions); - } - - return true; - }); - - function autoRestoreSubscription() { - return _autoRestoreSubscription.apply(this, arguments); - } - - return autoRestoreSubscription; - }() - }, { - key: "showConcurrentSubscriptions", - value: function showConcurrentSubscriptions() { - var activeSubscriptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - var _global$getActivePSet3 = global.getActivePSetup(), - enableMultipleSubscriptionsAlert = _global$getActivePSet3.enableMultipleSubscriptionsAlert; - - if (!enableMultipleSubscriptionsAlert) { - return; - } - - _$$_REQUIRE(_dependencyMap[17]).CustomAlert.alert(global.strings("iap_multiple_subscriptions"), global.strings("iap_multiple_subscriptions_message", { - subscriptions: IAPHelper.getActiveSubscriptionsText(activeSubscriptions) - }), [{ - text: global.strings("iap_go_to_subscriptions"), - onPress: function onPress() { - var url = "https://play.google.com/store/account/subscriptions"; - - if (_reactNative.Linking.canOpenURL(url)) { - _reactNative.Linking.openURL(url); - } - } - }, { - text: global.strings("btn_close") - }], { - cancelable: false - }); - } - }, { - key: "getActiveSubscriptionsText", - value: function getActiveSubscriptionsText(activeSubscriptions) { - if (activeSubscriptions && activeSubscriptions.length) { - var paymentsStr = "\n\n"; - var activePsetup = global.getActivePSetup(); - activeSubscriptions.forEach(function (subscription) { - var payment = activePsetup.getPaymentByProductId(subscription.productId); - - if (payment) { - paymentsStr += _$$_REQUIRE(_dependencyMap[11]).StringUtils.BULLET + " " + payment.getDescription() + "\n"; - } - }); - return paymentsStr; - } - - return ""; - } - }, { - key: "storeIAPResultToServer", - value: function () { - var _storeIAPResultToServer = (0, _asyncToGenerator2.default)(function* (purchaseResult) { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - if (purchaseResult) { - var productId = purchaseResult.productId, - transactionId = purchaseResult.transactionId, - transactionDate = purchaseResult.transactionDate, - originalTransactionId = purchaseResult.originalTransactionId, - originalTransactionDate = purchaseResult.originalTransactionDate, - receipt = purchaseResult.receipt, - purchaseToken = purchaseResult.purchaseToken; - - if (productId) { - var status = IAP_STATUS.FAILED; - var model = yield IAPHelper.getPurchaseModel(productId); - - if (model) { - model.setTransactionId(transactionId); - model.setTransactionDate(transactionDate); - model.setOriginalTransactionId(originalTransactionId); - model.setOriginalTransactionDate(originalTransactionDate); - - if (purchaseToken) { - model.setPurchaseToken(purchaseToken); - } - - if (receipt) { - status = IAP_STATUS.SUCCESS; - model.setReceipt(receipt); - - if (model.isRecurring()) { - var _global$getActivePSet4 = global.getActivePSetup(), - loginStatus = _global$getActivePSet4.loginStatus; - - loginStatus.setReceipt(receipt); - model = yield IAPHelper.callToReceiptManager(model); - } - } - - yield IAPHelper.storePurchaseModel(model); - var result = yield IAPHelper.callToIpn(status, model); - - if (IAPHelper.serverCallback) { - if (result) { - IAPHelper.serverCallback({ - status: status, - model: model - }); - } else { - var error = {}; - error.code = IAPErrorCode.E_REMOTE_ERROR; - error.message = "Call to IPN API failed"; - IAPHelper.serverCallback({ - status: IAP_STATUS.FAILED, - model: model, - error: error - }); - } - } - - return result; - } - } else {} - } else {} - } else {} - - return false; - }); - - function storeIAPResultToServer(_x18) { - return _storeIAPResultToServer.apply(this, arguments); - } - - return storeIAPResultToServer; - }() - }, { - key: "callToReceiptManager", - value: function () { - var _callToReceiptManager = (0, _asyncToGenerator2.default)(function* (model) { - var attempts = 0; - var success = false; - - do { - attempts += 1; - - try { - var response = yield _IAPApi.default.receiptManager(model); - var originalTransactionId = undefined; - - if (response && response.data && response.data.decoded) { - originalTransactionId = response.data.decoded.originalTransactionId; - } - - model.setRecurringSubscriptionId(IAPHelper.computeRecurringSubscriptionId(model, originalTransactionId)); - success = true; - } catch (e) {} - } while (attempts < 2 && !success); - - return model; - }); - - function callToReceiptManager(_x19) { - return _callToReceiptManager.apply(this, arguments); - } - - return callToReceiptManager; - }() - }, { - key: "callToIpn", - value: function () { - var _callToIpn = (0, _asyncToGenerator2.default)(function* (status, model) { - var success = status === IAP_STATUS.SUCCESS; - var ipnAttempts = 0; - var ipnCallSuccess = false; - - do { - ipnAttempts += 1; - - try { - var isSandbox = false; - - if (model) { - isSandbox = IAPHelper.isSandboxReceipt(model.receipt); - } - - var ipnResponse = yield _IAPApi.default.ipn(success, model, isSandbox); - - if (ipnResponse != null && ipnResponse.data) { - ipnCallSuccess = true; - - if (ipnResponse.data.indexOf("ERROR") === -1) { - return true; - } - } - } catch (e) {} - } while (ipnAttempts < 2 && !ipnCallSuccess); - - return false; - }); - - function callToIpn(_x20, _x21) { - return _callToIpn.apply(this, arguments); - } - - return callToIpn; - }() - }, { - key: "callToRestoreTransactions", - value: function () { - var _callToRestoreTransactions = (0, _asyncToGenerator2.default)(function* (restoreTransactions) { - var isSandbox = false; - - if (restoreTransactions.length > 0) { - isSandbox = IAPHelper.isSandboxReceipt(restoreTransactions[0].receipt); - } - - var chunksLength = Math.ceil(restoreTransactions.length / RESTORE_TRANSACTIONS_CHUNK_LENGTH); - var chunks = Array.from({ - length: chunksLength - }, function (v, i) { - return restoreTransactions.slice(i * RESTORE_TRANSACTIONS_CHUNK_LENGTH, i * RESTORE_TRANSACTIONS_CHUNK_LENGTH + RESTORE_TRANSACTIONS_CHUNK_LENGTH); - }); - - for (var i = 0; i < chunks.length; i++) { - var attempts = 0; - var success = false; - - do { - attempts += 1; - - try { - var response = yield _IAPApi.default.restoreTransactions(chunks[i], isSandbox); - - if (response != null && response.data) { - success = true; - - if (response.data.indexOf("ERROR") !== -1) { - return false; - } - } - } catch (e) {} - - if (!success) {} - } while (attempts < 2 && !success); - - if (!success) { - return false; - } - } - - return true; - }); - - function callToRestoreTransactions(_x22) { - return _callToRestoreTransactions.apply(this, arguments); - } - - return callToRestoreTransactions; - }() - }, { - key: "getPurchaseUpdateCompletedMessage", - value: function getPurchaseUpdateCompletedMessage() { - return global.strings("msg_pending_purchases", { - completed: Math.min(IAPHelper.pendingPurchasesCompleted, IAPHelper.pendingPurchases), - total: IAPHelper.pendingPurchases - }); - } - }, { - key: "showPurchaseUpdateCompletedMessage", - value: function showPurchaseUpdateCompletedMessage() {} - }, { - key: "hidePurchaseUpdateCompletedMessage", - value: function hidePurchaseUpdateCompletedMessage() {} - }, { - key: "onPurchaseUpdateOperationAdded", - value: function onPurchaseUpdateOperationAdded(callback) { - IAPHelper.engine.onPurchaseUpdateOperationAdded(callback); - } - }, { - key: "onPurchaseUpdateOperationCompleted", - value: function onPurchaseUpdateOperationCompleted(callback) { - IAPHelper.engine.onPurchaseUpdateOperationCompleted(callback); - } - }, { - key: "onPurchaseUpdateOperationsIdle", - value: function () { - var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { - return IAPHelper.engine.onPurchaseUpdateOperationsIdle(); - }); - - function onPurchaseUpdateOperationsIdle() { - return _onPurchaseUpdateOperationsIdle.apply(this, arguments); - } - - return onPurchaseUpdateOperationsIdle; - }() - }, { - key: "getPurchaseUpdateOperationsInQueue", - value: function getPurchaseUpdateOperationsInQueue() { - return IAPHelper.engine.getPurchaseUpdateOperationsInQueue(); - } - }, { - key: "completePendingPurchases", - value: function () { - var _completePendingPurchases = (0, _asyncToGenerator2.default)(function* () { - if (IAPHelper.engineInit) { - IAPHelper.pendingPurchases = IAPHelper.getPurchaseUpdateOperationsInQueue(); - - if (IAPHelper.pendingPurchases > 0) { - IAPHelper.showPurchaseUpdateCompletedMessage(); - yield IAPHelper.onPurchaseUpdateOperationsIdle(); - IAPHelper.pendingPurchases = 0; - IAPHelper.pendingPurchasesCompleted = 0; - IAPHelper.hidePurchaseUpdateCompletedMessage(); - } - } - }); - - function completePendingPurchases() { - return _completePendingPurchases.apply(this, arguments); - } - - return completePendingPurchases; - }() - }, { - key: "setServerCallback", - value: function () { - var _setServerCallback = (0, _asyncToGenerator2.default)(function* (callback) { - if (callback) { - yield IAPHelper.completePendingPurchases(); - IAPHelper.onPurchaseUpdateOperationAdded(undefined); - IAPHelper.onPurchaseUpdateOperationCompleted(undefined); - IAPHelper.serverCallback = callback; - } - }); - - function setServerCallback(_x23) { - return _setServerCallback.apply(this, arguments); - } - - return setServerCallback; - }() - }, { - key: "resetServerCallback", - value: function resetServerCallback() { - IAPHelper.serverCallback = undefined; - } - }, { - key: "computeRecurringSubscriptionId", - value: function computeRecurringSubscriptionId(model) { - var originalTransactionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; - var invoiceId = model.invoiceId, - recurringSubscriptionPeriod = model.recurringSubscriptionPeriod, - originalTransactionIdFromModel = model.originalTransactionId; - - if (originalTransactionIdFromModel && !originalTransactionId) { - originalTransactionId = originalTransactionIdFromModel; - } else if (invoiceId && !originalTransactionId) { - var invoiceParts = invoiceId.split("_"); - - if (invoiceParts.length > 2) { - originalTransactionId = invoiceParts[2]; - } - } - - return "P" + originalTransactionId + "_" + recurringSubscriptionPeriod; - } - }, { - key: "getSystem", - value: function getSystem() { - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { - return IAP_SYSTEMS.APPLE; - } - - if (_deviceUtils.default.isKindle()) { - return IAP_SYSTEMS.AMAZON; - } - - return IAP_SYSTEMS.GOOGLE; - } - }, { - key: "validateReceipt", - value: function () { - var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - if (!IAPHelper.systemInError && IAPHelper.engine && receipt) { - return IAPHelper.engine.validateReceipt(receipt); - } - - return false; - }); - - function validateReceipt(_x24) { - return _validateReceipt.apply(this, arguments); - } - - return validateReceipt; - }() - }, { - key: "isSandboxReceipt", - value: function isSandboxReceipt(receipt) { - if (!IAPHelper.systemInError && IAPHelper.engine && receipt) { - return IAPHelper.engine.isSandboxReceipt(receipt); - } - - return false; - } - }, { - key: "registerReceiver", - value: function registerReceiver() { - if (IAPHelper.engine) { - IAPHelper.engine.registerReceiver(); - } - } - }, { - key: "unregisterReceiver", - value: function unregisterReceiver() { - if (IAPHelper.engine) { - IAPHelper.engine.unregisterReceiver(); - } - } - }, { - key: "getProductsAndSubscriptions", - value: function getProductsAndSubscriptions() { - var products = [].concat((0, _toConsumableArray2.default)(IAPHelper.products), (0, _toConsumableArray2.default)(IAPHelper.subscriptions)).map(function (product) { - var newProduct = Object.assign({}, product); - Object.keys(newProduct).forEach(function (key) { - if (key === "name" || key === "title" || key === "description") { - newProduct[key] = encodeURIComponent(newProduct[key]).replace(/'/g, "%27"); - } - }); - return newProduct; - }); - return products; - } - }]); - }(); - - IAPHelper.engine = undefined; - IAPHelper.engineInit = false; - IAPHelper.system = ""; - IAPHelper.systemInError = false; - IAPHelper.serverCallback = undefined; - IAPHelper.purchasing = false; - IAPHelper.products = []; - IAPHelper.subscriptions = []; - IAPHelper.pendingPurchases = 0; - IAPHelper.pendingPurchasesCompleted = 0; - IAPHelper.SP = { - name: "purchase", - keys: { - invoiceId: "invoiceId", - pSetup: "pSetup", - issue: "issue", - edition: "edition", - editionId: "editionId", - transactionId: "transactionId", - transactionDate: "transactionDate", - originalTransactionId: "originalTransactionId", - originalTransactionDate: "originalTransactionDate", - recurringSubscriptionPeriod: "recurringSubscriptionPeriod", - recurringSubscriptionId: "recurringSubscriptionId", - receipt: "receipt", - purchaseToken: "purchaseToken" - } - }; -},1865,[3,22,270,6,7,18,867,434,879,1866,1867,438,1868,815,1869,1879,1880,812]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var endpoints = { - receipt_manager: "receipt_manager.php", - ipn: "ipn.php", - restore_transactions: "restore_transactions.php" - }; - var IPNStatus = { - SUCCESS: "Completed", - FAILED: "Failed" - }; - - var IAPApi = exports.default = function () { - function IAPApi() { - (0, _classCallCheck2.default)(this, IAPApi); - } - - return (0, _createClass2.default)(IAPApi, null, [{ - key: "baseUrl", - value: function baseUrl(endpoint) { - var _global$getActivePSet = global.getActivePSetup(), - baseInAppPurchaseAPIUrl = _global$getActivePSet.baseInAppPurchaseAPIUrl; - - return _$$_REQUIRE(_dependencyMap[6]).StringUtils.appendParams(_$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(baseInAppPurchaseAPIUrl).concat("/" + endpoint), _Api.default.getDefaultParams()); - } - }, { - key: "receiptManager", - value: function () { - var _receiptManager = (0, _asyncToGenerator2.default)(function* (model) { - var _global$getActivePSet2 = global.getActivePSetup(), - loginStatus = _global$getActivePSet2.loginStatus; - - var TAUID = loginStatus.TAUID; - var receipt = model.receipt; - return _Api.default.post(IAPApi.baseUrl(endpoints.receipt_manager), {}, { - action: "write", - tauid: TAUID, - receipt: receipt - }); - }); - - function receiptManager(_x) { - return _receiptManager.apply(this, arguments); - } - - return receiptManager; - }() - }, { - key: "getCustomParam", - value: function getCustomParam() { - var _global$getActivePSet3 = global.getActivePSetup(), - pSetup = _global$getActivePSet3.pSetup, - paper = _global$getActivePSet3.xpaper; - - var type = "ipad"; - - if (_$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isAndroid()) { - type = "play"; - - if (_deviceUtils.default.isKindle()) { - type = "amazon"; - } - } - - return pSetup + "#" + paper + "#" + type + "_payment"; - } - }, { - key: "ipn", - value: function () { - var _ipn = (0, _asyncToGenerator2.default)(function* (success, model, isSandbox) { - var _global$getActivePSet4 = global.getActivePSetup(), - loginStatus = _global$getActivePSet4.loginStatus; - - var TAUID = loginStatus.TAUID; - var invoiceId = model.invoiceId, - originalTransactionId = model.originalTransactionId, - transactionId = model.transactionId, - transactionDate = model.transactionDate, - recurringSubscriptionId = model.recurringSubscriptionId, - edition = model.edition, - editionId = model.editionId, - receipt = model.receipt, - productId = model.productId, - purchaseToken = model.purchaseToken; - var payment_status = success ? IPNStatus.SUCCESS : IPNStatus.FAILED; - var purchase_time; - - if (!_$$_REQUIRE(_dependencyMap[6]).JSUtils.isNull(transactionDate)) { - purchase_time = _$$_REQUIRE(_dependencyMap[6]).DateUtils.unixToString(parseInt(transactionDate, 10) / 1000, "YYYYMMDDHHmmss"); - } - - var otherParams = { - product_id: productId, - payment_status: payment_status, - invoice: invoiceId, - custom: IAPApi.getCustomParam(), - txn_id: transactionId, - original_txn_id: originalTransactionId, - purchase_token: purchaseToken, - purchase_time: purchase_time, - edition: edition, - editionid: editionId, - TAUID: TAUID, - doPost: false, - isSandbox: isSandbox || undefined - }; - - if (model.isRecurring()) { - otherParams = Object.assign({}, otherParams, { - txn_type: "subscr_payment", - subscr_id: recurringSubscriptionId, - receipt: receipt - }); - } - - return _Api.default.post(IAPApi.baseUrl(endpoints.ipn), { - responseType: "text", - timeout: 30000 - }, otherParams); - }); - - function ipn(_x2, _x3, _x4) { - return _ipn.apply(this, arguments); - } - - return ipn; - }() - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (restoredTransactions, isSandbox) { - var transactions = restoredTransactions.map(function (restoredTransaction) { - return { - productID: restoredTransaction.productId, - purchase_date: restoredTransaction.purchaseDate, - expires_date: restoredTransaction.expiresDate, - cancellation_date: restoredTransaction.cancellationDate, - cancel_reason: restoredTransaction.cancelReason, - original_transaction_id: restoredTransaction.originalTransactionId, - receipt: restoredTransaction.receipt, - transaction_id: restoredTransaction.transactionId - }; - }); - return _Api.default.post(IAPApi.baseUrl(endpoints.restore_transactions), { - responseType: "text", - timeout: 180000 - }, { - transactions: JSON.stringify(transactions), - isSandbox: isSandbox || undefined - }); - }); - - function restoreTransactions(_x5, _x6) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }]); - }(); -},1866,[3,270,6,7,407,434,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var IAPBase = exports.default = function () { - function IAPBase() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - (0, _classCallCheck2.default)(this, IAPBase); - this.callbackToServer = undefined; - this.onPurchaseError = undefined; - this.callbackToServer = props.callbackToServer; - this.onPurchaseError = props.onPurchaseError; - } - - return (0, _createClass2.default)(IAPBase, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - return false; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "getProducts", - value: function () { - var _getProducts = (0, _asyncToGenerator2.default)(function* (skus) { - return []; - }); - - function getProducts(_x) { - return _getProducts.apply(this, arguments); - } - - return getProducts; - }() - }, { - key: "getSubscriptions", - value: function () { - var _getSubscriptions = (0, _asyncToGenerator2.default)(function* (skus) { - return []; - }); - - function getSubscriptions(_x2) { - return _getSubscriptions.apply(this, arguments); - } - - return getSubscriptions; - }() - }, { - key: "getSubscriptionOffersDetails", - value: function getSubscriptionOffersDetails(skus) { - return []; - } - }, { - key: "requestPurchase", - value: function () { - var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { - return undefined; - }); - - function requestPurchase(_x3) { - return _requestPurchase.apply(this, arguments); - } - - return requestPurchase; - }() - }, { - key: "requestSubscription", - value: function () { - var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku) { - return undefined; - }); - - function requestSubscription(_x4) { - return _requestSubscription.apply(this, arguments); - } - - return requestSubscription; - }() - }, { - key: "getAvailablePurchases", - value: function () { - var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { - return undefined; - }); - - function getAvailablePurchases() { - return _getAvailablePurchases.apply(this, arguments); - } - - return getAvailablePurchases; - }() - }, { - key: "registerReceiver", - value: function registerReceiver() {} - }, { - key: "unregisterReceiver", - value: function unregisterReceiver() {} - }, { - key: "finishTransaction", - value: function finishTransaction(purchase) {} - }, { - key: "_callServerToStoreIAP", - value: function () { - var _callServerToStoreIAP2 = (0, _asyncToGenerator2.default)(function* (params) { - if (typeof this.callbackToServer === "function") { - try { - return this.callbackToServer(params); - } catch (e) {} - } - - return false; - }); - - function _callServerToStoreIAP(_x5) { - return _callServerToStoreIAP2.apply(this, arguments); - } - - return _callServerToStoreIAP; - }() - }, { - key: "_concludePurchase", - value: function () { - var _concludePurchase2 = (0, _asyncToGenerator2.default)(function* (purchase) { - if (!purchase) { - return false; - } - - var success = false; - - try { - success = yield this._callServerToStoreIAP(purchase); - } catch (e) {} - - return success; - }); - - function _concludePurchase(_x6) { - return _concludePurchase2.apply(this, arguments); - } - - return _concludePurchase; - }() - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { - return []; - }); - - function restoreTransactions(_x7) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }, { - key: "getBoughtSubscriptions", - value: function () { - var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* () { - return []; - }); - - function getBoughtSubscriptions() { - return _getBoughtSubscriptions.apply(this, arguments); - } - - return getBoughtSubscriptions; - }() - }, { - key: "isSandboxReceipt", - value: function isSandboxReceipt(receipt) { - return global.__DEV__; - } - }, { - key: "getPurchaseUpdateOperationsInQueue", - value: function getPurchaseUpdateOperationsInQueue() { - return 0; - } - }, { - key: "onPurchaseUpdateOperationsIdle", - value: function () { - var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { - return Promise.resolve(); - }); - - function onPurchaseUpdateOperationsIdle() { - return _onPurchaseUpdateOperationsIdle.apply(this, arguments); - } - - return onPurchaseUpdateOperationsIdle; - }() - }, { - key: "onPurchaseUpdateOperationAdded", - value: function onPurchaseUpdateOperationAdded(callback) {} - }, { - key: "onPurchaseUpdateOperationCompleted", - value: function onPurchaseUpdateOperationCompleted(callback) {} - }]); - }(); -},1867,[3,270,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPTecnaviaType = exports.IAPTecnaviaModel = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var IAPTecnaviaType = exports.IAPTecnaviaType = { - NON_CONSUMABLE: 0, - CONSUMABLE: 1, - SUBSCRIPTION: 2 - }; - - var IAPTecnaviaModel = exports.IAPTecnaviaModel = function () { - function IAPTecnaviaModel() { - (0, _classCallCheck2.default)(this, IAPTecnaviaModel); - } - - return (0, _createClass2.default)(IAPTecnaviaModel, [{ - key: "setProductId", - value: function setProductId(productId) { - this.productId = productId; - } - }, { - key: "setType", - value: function setType(type) { - this.type = type; - } - }, { - key: "setTitle", - value: function setTitle(title) { - this.title = title; - } - }, { - key: "setDescription", - value: function setDescription(description) { - this.description = description; - } - }, { - key: "setPSetup", - value: function setPSetup(pSetup) { - this.pSetup = pSetup; - } - }, { - key: "setIssue", - value: function setIssue(issue) { - this.issue = issue; - } - }, { - key: "setEdition", - value: function setEdition(edition) { - this.edition = edition; - } - }, { - key: "setEditionId", - value: function setEditionId(editionId) { - this.editionId = editionId; - } - }, { - key: "setInvoiceId", - value: function setInvoiceId(invoiceId) { - this.invoiceId = invoiceId; - } - }, { - key: "setTransactionId", - value: function setTransactionId(transactionId) { - this.transactionId = transactionId; - } - }, { - key: "setTransactionDate", - value: function setTransactionDate(transactionDate) { - this.transactionDate = transactionDate; - } - }, { - key: "setOriginalTransactionId", - value: function setOriginalTransactionId(originalTransactionId) { - this.originalTransactionId = originalTransactionId; - } - }, { - key: "setOriginalTransactionDate", - value: function setOriginalTransactionDate(originalTransactionDate) { - this.originalTransactionDate = originalTransactionDate; - } - }, { - key: "setReceipt", - value: function setReceipt(receipt) { - this.receipt = receipt; - } - }, { - key: "setRecurringSubscriptionPeriod", - value: function setRecurringSubscriptionPeriod(recurringSubscriptionPeriod) { - this.recurringSubscriptionPeriod = recurringSubscriptionPeriod; - } - }, { - key: "setRecurringSubscriptionId", - value: function setRecurringSubscriptionId(recurringSubscriptionId) { - this.recurringSubscriptionId = recurringSubscriptionId; - } - }, { - key: "isRecurring", - value: function isRecurring() { - return !!this.recurringSubscriptionPeriod; - } - }, { - key: "setPurchaseToken", - value: function setPurchaseToken(purchaseToken) { - this.purchaseToken = purchaseToken; - } - }]); - }(); -},1868,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPGoogle = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var RNIap = _optionalPackageUtils.default.getIapModule(); - - var IAPGoogle = exports.IAPGoogle = function (_IAPrnBase) { - function IAPGoogle() { - var _this; - - (0, _classCallCheck2.default)(this, IAPGoogle); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, IAPGoogle, [].concat(args)); - _this.lastGoogleToken = undefined; - _this.lastGoogleTokenRequest = -1; - return _this; - } - - (0, _inherits2.default)(IAPGoogle, _IAPrnBase); - return (0, _createClass2.default)(IAPGoogle, [{ - key: "getGoogleReceiptOldMethod", - value: function () { - var _getGoogleReceiptOldMethod = (0, _asyncToGenerator2.default)(function* (receipt) { - var isSubscription = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - var currentTime = new Date().getTime(); - - if (!this.lastGoogleToken || this.lastGoogleTokenRequest + this.lastGoogleToken.expires_in * 1000 < currentTime) { - this.lastGoogleTokenRequest = currentTime; - this.lastGoogleToken = yield this.getToken(); - } - - if (this.lastGoogleToken) { - return RNIap.validateReceiptAndroid(global.androidAppId, receipt.productId, receipt.purchaseToken, this.lastGoogleToken.access_token, true); - } - - throw new Error("access_token not found"); - } - - return undefined; - }); - - function getGoogleReceiptOldMethod(_x) { - return _getGoogleReceiptOldMethod.apply(this, arguments); - } - - return getGoogleReceiptOldMethod; - }() - }, { - key: "getGoogleReceipt", - value: function () { - var _getGoogleReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - var isSubscription = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - return (yield _NewsmemoryAJAX.default.validateReceipt({ - service: "google", - packageName: global.androidAppId, - productId: receipt.productId, - purchaseToken: receipt.purchaseToken, - isSubscription: isSubscription - })).data; - }); - - function getGoogleReceipt(_x2) { - return _getGoogleReceipt.apply(this, arguments); - } - - return getGoogleReceipt; - }() - }, { - key: "isReceiptActive", - value: function isReceiptActive(receipt) { - if (receipt) { - var expiryTimeMillis = receipt.expiryTimeMillis; - var expireMills = parseInt(expiryTimeMillis, 10); - var currentTime = new Date(); - return currentTime < new Date(expireMills); - } - - return false; - } - }, { - key: "validateReceipt", - value: function () { - var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - if (receipt) { - try { - var parsedReceipt = JSON.parse(receipt); - var subscription = (yield this.getSubscriptions([parsedReceipt.productId])).length; - - if (subscription) { - var googleReceipt = yield this.getGoogleReceipt(parsedReceipt); - return this.isReceiptActive(googleReceipt); - } - } catch (e) {} - } - - return false; - }); - - function validateReceipt(_x3) { - return _validateReceipt.apply(this, arguments); - } - - return validateReceipt; - }() - }, { - key: "getOriginalTransactionId", - value: function getOriginalTransactionId(purchase) { - var transactionId = purchase.transactionId; - return transactionId.replace(/\.\.[0-9]+/, ""); - } - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { - return this.getBoughtSubscriptions(productId); - }); - - function restoreTransactions(_x4) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }, { - key: "getActiveSubscriptions", - value: function () { - var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { - var activeSubscriptions = yield this.getBoughtSubscriptions(); - return this.applyFiltersToSubscriptions(activeSubscriptions); - }); - - function getActiveSubscriptions(_x5) { - return _getActiveSubscriptions.apply(this, arguments); - } - - return getActiveSubscriptions; - }() - }, { - key: "getSubscriptionOffersDetails", - value: function getSubscriptionOffersDetails() { - var subscriptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var sku = arguments.length > 1 ? arguments[1] : undefined; - var selectedOfferIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - - if (!sku) { - throw new Error("Sku must be valid"); - } - - if (!subscriptions.length) { - throw new Error("Subscriptions can't be empty"); - } - - for (var i = 0; i < subscriptions.length; i++) { - var _subscriptions$i = subscriptions[i], - productId = _subscriptions$i.productId, - _subscriptions$i$subs = _subscriptions$i.subscriptionOfferDetails, - subscriptionOfferDetails = _subscriptions$i$subs === undefined ? [] : _subscriptions$i$subs; - - if (productId === sku) { - var offer = subscriptionOfferDetails[selectedOfferIndex]; - - if (offer) { - return { - sku: productId, - offerToken: offer.offerToken - }; - } - - throw new Error("Found subscription for " + sku + " but there aren't any offer available"); - } - } - - throw new Error("Not found subscription for " + sku); - } - }, { - key: "applyFiltersToSubscriptions", - value: function applyFiltersToSubscriptions(activeSubscriptions) { - var _this2 = this; - - return activeSubscriptions.filter(function (subscription) { - return subscription.getCancelReason() === -1; - }).filter(function (subscription) { - return _this2.isReceiptActive({ - expiryTimeMillis: subscription.expiresDate - }); - }); - } - }, { - key: "getBoughtSubscriptions", - value: function () { - var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* (productId) { - var purchases = yield this.getAvailablePurchases(); - - if (productId) { - purchases = purchases.filter(function (purchase) { - return purchase.productId === productId; - }); - } - - var transactions = []; - - if (purchases && purchases.length > 0) { - for (var i = 0; i < purchases.length; i++) { - var purchase = purchases[i]; - var payment = global.getActivePSetup().getPaymentByProductId(purchase.productId); - var parsedReceipt = JSON.parse(purchase.receipt); - var googleReceipt = undefined; - - try { - googleReceipt = yield this.getGoogleReceipt(parsedReceipt, payment.isSubscription()); - } catch (e) {} - - if (googleReceipt) { - var transactionId = googleReceipt.orderId; - var transaction = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaRestoreModel)(); - transaction.setProductId(purchase.productId); - transaction.setTransactionId(transactionId); - - if (transactionId) { - transaction.setOriginalTransactionId(this.getOriginalTransactionId({ - transactionId: transactionId - })); - } - - transaction.setReceipt(purchase.receipt); - transaction.setPurchaseDate(purchase.purchaseDate); - transaction.setExpiresDate(googleReceipt.expiryTimeMillis); - transaction.setOriginalPurchaseDate(googleReceipt.startTimeMillis); - transaction.setCancellationDate(googleReceipt.userCancellationTimeMillis); - transaction.setCancelReason(googleReceipt.cancelReason !== undefined ? googleReceipt.cancelReason : -1); - transactions.push(transaction); - } - } - } - - return transactions; - }); - - function getBoughtSubscriptions(_x6) { - return _getBoughtSubscriptions.apply(this, arguments); - } - - return getBoughtSubscriptions; - }() - }, { - key: "getToken", - value: function () { - var _getToken = (0, _asyncToGenerator2.default)(function* () { - return (yield _Api.default.getGoogleAccessToken()).data; - }); - - function getToken() { - return _getToken.apply(this, arguments); - } - - return getToken; - }() - }]); - }(_IAPrnBase2.default); -},1869,[3,270,6,7,11,13,14,1870,407,867,879,406,1878]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _pQueue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _IAPBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var RNIap = _optionalPackageUtils.default.getIapModule(); - - var IAPrnBase = exports.default = function (_IAPBase) { - function IAPrnBase(props) { - var _this; - - (0, _classCallCheck2.default)(this, IAPrnBase); - _this = _callSuper(this, IAPrnBase, [props]); - _this.purchaseUpdateAddedCallback = undefined; - _this.purchaseUpdateCompletedCallback = undefined; - _this.purchaseUpdateSubscription = undefined; - _this.purchaseErrorSubscription = undefined; - _this.currentPurchaseId = undefined; - _this.onPurchaseUpdateListener = _this._onPurchaseUpdateListener.bind(_this); - _this.onPurchaseErrorListener = _this._onPurchaseErrorListener.bind(_this); - return _this; - } - - (0, _inherits2.default)(IAPrnBase, _IAPBase); - return (0, _createClass2.default)(IAPrnBase, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var result = false; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - try { - result = yield RNIap.initConnection(); - - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid()) { - try { - yield RNIap.flushFailedPurchasesCachedAsPendingAndroid(); - } catch (e) {} - } - - this.purchaseUpdateQueue = new _pQueue.default({ - concurrency: 1 - }); - this.registerReceiver(); - } catch (e) {} - } - - return result; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "_onPurchaseErrorListener", - value: function _onPurchaseErrorListener(error) { - if (typeof this.onPurchaseError === "function") { - this.onPurchaseError(Object.assign({}, error, { - productId: this.currentPurchaseId - })); - - this._resetPurchaseId(); - } - } - }, { - key: "_onPurchaseUpdateListener", - value: function _onPurchaseUpdateListener(purchase) { - var _this2 = this; - - if (typeof this.purchaseUpdateAddedCallback === "function") { - this.purchaseUpdateAddedCallback(purchase); - } - - this.purchaseUpdateQueue.add((0, _asyncToGenerator2.default)(function* () { - var result = yield _this2._concludePurchase({ - productId: _this2.getProductId(purchase), - transactionId: _this2.getTransactionId(purchase), - transactionDate: _this2.getTransactionDate(purchase), - originalTransactionId: _this2.getOriginalTransactionId(purchase), - originalTransactionDate: _this2.getOriginalTransactionDate(purchase), - receipt: _this2.getReceipt(purchase), - purchaseToken: _this2.getPurchaseToken(purchase) - }); - - if (result) { - _this2.finishTransaction(purchase); - } else {} - - if (typeof _this2.purchaseUpdateCompletedCallback === "function") { - _this2.purchaseUpdateCompletedCallback(purchase); - } - - _this2._resetPurchaseId(); - })); - } - }, { - key: "_resetPurchaseId", - value: function _resetPurchaseId() { - this.currentPurchaseId = undefined; - } - }, { - key: "getProducts", - value: function () { - var _getProducts = (0, _asyncToGenerator2.default)(function* () { - var skus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - try { - var products = yield RNIap.getProducts({ - skus: skus - }); - return products; - } catch (e) {} - } - - return []; - }); - - function getProducts() { - return _getProducts.apply(this, arguments); - } - - return getProducts; - }() - }, { - key: "getSubscriptions", - value: function () { - var _getSubscriptions = (0, _asyncToGenerator2.default)(function* () { - var skus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - try { - var subscriptions = yield RNIap.getSubscriptions({ - skus: skus - }); - return subscriptions; - } catch (e) {} - - return []; - }); - - function getSubscriptions() { - return _getSubscriptions.apply(this, arguments); - } - - return getSubscriptions; - }() - }, { - key: "requestPurchase", - value: function () { - var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - this.currentPurchaseId = sku; - return RNIap.requestPurchase({ - sku: sku, - skus: [sku], - andDangerouslyFinishTransactionAutomaticallyIOS: false - }); - } - - return Promise.reject(new Error("Iap module not available")); - }); - - function requestPurchase(_x) { - return _requestPurchase.apply(this, arguments); - } - - return requestPurchase; - }() - }, { - key: "requestSubscription", - value: function () { - var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku, offersDetails) { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - this.currentPurchaseId = sku; - return RNIap.requestSubscription({ - sku: sku, - subscriptionOffers: offersDetails, - andDangerouslyFinishTransactionAutomaticallyIOS: false - }); - } - - return Promise.reject(new Error("Iap module not available")); - }); - - function requestSubscription(_x2, _x3) { - return _requestSubscription.apply(this, arguments); - } - - return requestSubscription; - }() - }, { - key: "finishTransaction", - value: function finishTransaction(purchase) { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - var payment = global.getActivePSetup().getPaymentByProductId(purchase.productId); - - if (payment) { - RNIap.finishTransaction({ - purchase: purchase, - isConsumable: payment.isConsumable() - }); - } else { - RNIap.finishTransaction({ - purchase: purchase, - isConsumable: true - }); - } - } - } - }, { - key: "getProductId", - value: function getProductId(purchase) { - return purchase.productId; - } - }, { - key: "getReceipt", - value: function getReceipt(purchase) { - return purchase.transactionReceipt; - } - }, { - key: "getTransactionId", - value: function getTransactionId(purchase) { - return purchase.transactionId; - } - }, { - key: "getTransactionDate", - value: function getTransactionDate(purchase) { - return purchase.transactionDate; - } - }, { - key: "getOriginalTransactionId", - value: function getOriginalTransactionId(purchase) { - return purchase.transactionId; - } - }, { - key: "getOriginalTransactionDate", - value: function getOriginalTransactionDate(purchase) { - return purchase.transactionDate; - } - }, { - key: "getPurchaseToken", - value: function getPurchaseToken(purchase) { - return purchase.purchaseToken; - } - }, { - key: "registerReceiver", - value: function registerReceiver() { - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - this.purchaseUpdateSubscription = RNIap.purchaseUpdatedListener(this.onPurchaseUpdateListener); - this.purchaseErrorSubscription = RNIap.purchaseErrorListener(this.onPurchaseErrorListener); - } - } - }, { - key: "applyFiltersToSubscriptions", - value: function applyFiltersToSubscriptions(activeSubscriptions) { - return activeSubscriptions; - } - }, { - key: "getAvailablePurchases", - value: function () { - var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { - var history = []; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - var histories = yield RNIap.getPurchaseHistory(); - var orderedHistories = histories.sort(function (a, b) { - return b.transactionDate - a.transactionDate; - }); - history = orderedHistories.map(function (purchase) { - var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPRestoreModel)(); - model.setProductId(purchase.productId); - model.setPurchaseDate(purchase.transactionDate); - model.setTransactionId(purchase.purchaseToken); - model.setReceipt(purchase.transactionReceipt); - model.setOriginalTransactionId(purchase.purchaseToken); - model.setOriginalTransactionDate(purchase.transactionDate); - return model; - }); - } - - return history; - }); - - function getAvailablePurchases() { - return _getAvailablePurchases.apply(this, arguments); - } - - return getAvailablePurchases; - }() - }, { - key: "unregisterReceiver", - value: function unregisterReceiver() { - if (this.purchaseUpdateSubscription) { - this.purchaseUpdateSubscription.remove(); - this.purchaseUpdateSubscription = undefined; - } - - if (this.purchaseErrorSubscription) { - this.purchaseErrorSubscription.remove(); - this.purchaseErrorSubscription = undefined; - } - } - }, { - key: "getPurchaseUpdateOperationsInQueue", - value: function getPurchaseUpdateOperationsInQueue() { - return this.purchaseUpdateQueue.size; - } - }, { - key: "onPurchaseUpdateOperationsIdle", - value: function () { - var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { - return this.purchaseUpdateQueue.onIdle(); - }); - - function onPurchaseUpdateOperationsIdle() { - return _onPurchaseUpdateOperationsIdle.apply(this, arguments); - } - - return onPurchaseUpdateOperationsIdle; - }() - }, { - key: "onPurchaseUpdateOperationAdded", - value: function onPurchaseUpdateOperationAdded(callback) { - this.purchaseUpdateAddedCallback = callback; - } - }, { - key: "onPurchaseUpdateOperationCompleted", - value: function onPurchaseUpdateOperationCompleted(callback) { - this.purchaseUpdateCompletedCallback = callback; - } - }]); - }(_IAPBase2.default); -},1870,[3,270,6,7,11,13,14,1871,867,879,1867,438,1877]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - "use strict"; - - function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var empty = function empty() {}; - - var timeoutError = new (_$$_REQUIRE(_dependencyMap[2]).TimeoutError)(); - - var PQueue = function (_EventEmitter) { - function PQueue(options) { - var _this; - - _$$_REQUIRE(_dependencyMap[3])(this, PQueue); - - var _a, _b, _c, _d; - - _this = _callSuper(this, PQueue); - _this._intervalCount = 0; - _this._intervalEnd = 0; - _this._pendingCount = 0; - _this._resolveEmpty = empty; - _this._resolveIdle = empty; - options = Object.assign({ - carryoverConcurrencyCount: false, - intervalCap: Infinity, - interval: 0, - concurrency: Infinity, - autoStart: true, - queueClass: _$$_REQUIRE(_dependencyMap[4]).default - }, options); - - if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) { - throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `" + ((_b = (_a = options.intervalCap) === null || _a === undefined ? undefined : _a.toString()) !== null && _b !== undefined ? _b : '') + "` (" + typeof options.intervalCap + ")"); - } - - if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) { - throw new TypeError("Expected `interval` to be a finite number >= 0, got `" + ((_d = (_c = options.interval) === null || _c === undefined ? undefined : _c.toString()) !== null && _d !== undefined ? _d : '') + "` (" + typeof options.interval + ")"); - } - - _this._carryoverConcurrencyCount = options.carryoverConcurrencyCount; - _this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0; - _this._intervalCap = options.intervalCap; - _this._interval = options.interval; - _this._queue = new options.queueClass(); - _this._queueClass = options.queueClass; - _this.concurrency = options.concurrency; - _this._timeout = options.timeout; - _this._throwOnTimeout = options.throwOnTimeout === true; - _this._isPaused = options.autoStart === false; - return _this; - } - - _$$_REQUIRE(_dependencyMap[5])(PQueue, _EventEmitter); - - return _$$_REQUIRE(_dependencyMap[6])(PQueue, [{ - key: "_doesIntervalAllowAnother", - get: function get() { - return this._isIntervalIgnored || this._intervalCount < this._intervalCap; - } - }, { - key: "_doesConcurrentAllowAnother", - get: function get() { - return this._pendingCount < this._concurrency; - } - }, { - key: "_next", - value: function _next() { - this._pendingCount--; - - this._tryToStartAnother(); - - this.emit('next'); - } - }, { - key: "_resolvePromises", - value: function _resolvePromises() { - this._resolveEmpty(); - - this._resolveEmpty = empty; - - if (this._pendingCount === 0) { - this._resolveIdle(); - - this._resolveIdle = empty; - this.emit('idle'); - } - } - }, { - key: "_onResumeInterval", - value: function _onResumeInterval() { - this._onInterval(); - - this._initializeIntervalIfNeeded(); - - this._timeoutId = undefined; - } - }, { - key: "_isIntervalPaused", - value: function _isIntervalPaused() { - var _this2 = this; - - var now = Date.now(); - - if (this._intervalId === undefined) { - var delay = this._intervalEnd - now; - - if (delay < 0) { - this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0; - } else { - if (this._timeoutId === undefined) { - this._timeoutId = setTimeout(function () { - _this2._onResumeInterval(); - }, delay); - } - - return true; - } - } - - return false; - } - }, { - key: "_tryToStartAnother", - value: function _tryToStartAnother() { - if (this._queue.size === 0) { - if (this._intervalId) { - clearInterval(this._intervalId); - } - - this._intervalId = undefined; - - this._resolvePromises(); - - return false; - } - - if (!this._isPaused) { - var canInitializeInterval = !this._isIntervalPaused(); - - if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) { - var job = this._queue.dequeue(); - - if (!job) { - return false; - } - - this.emit('active'); - job(); - - if (canInitializeInterval) { - this._initializeIntervalIfNeeded(); - } - - return true; - } - } - - return false; - } - }, { - key: "_initializeIntervalIfNeeded", - value: function _initializeIntervalIfNeeded() { - var _this3 = this; - - if (this._isIntervalIgnored || this._intervalId !== undefined) { - return; - } - - this._intervalId = setInterval(function () { - _this3._onInterval(); - }, this._interval); - this._intervalEnd = Date.now() + this._interval; - } - }, { - key: "_onInterval", - value: function _onInterval() { - if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) { - clearInterval(this._intervalId); - this._intervalId = undefined; - } - - this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0; - - this._processQueue(); - } - }, { - key: "_processQueue", - value: function _processQueue() { - while (this._tryToStartAnother()) {} - } - }, { - key: "concurrency", - get: function get() { - return this._concurrency; - }, - set: function set(newConcurrency) { - if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) { - throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `" + newConcurrency + "` (" + typeof newConcurrency + ")"); - } - - this._concurrency = newConcurrency; - - this._processQueue(); - } - }, { - key: "add", - value: function () { - var _add = _$$_REQUIRE(_dependencyMap[7])(function* (fn) { - var _this4 = this; - - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new Promise(function (resolve, reject) { - var run = function () { - var _ref = _$$_REQUIRE(_dependencyMap[7])(function* () { - _this4._pendingCount++; - _this4._intervalCount++; - - try { - var operation = _this4._timeout === undefined && options.timeout === undefined ? fn() : _$$_REQUIRE(_dependencyMap[2]).default(Promise.resolve(fn()), options.timeout === undefined ? _this4._timeout : options.timeout, function () { - if (options.throwOnTimeout === undefined ? _this4._throwOnTimeout : options.throwOnTimeout) { - reject(timeoutError); - } - - return undefined; - }); - resolve(yield operation); - } catch (error) { - reject(error); - } - - _this4._next(); - }); - - return function run() { - return _ref.apply(this, arguments); - }; - }(); - - _this4._queue.enqueue(run, options); - - _this4._tryToStartAnother(); - - _this4.emit('add'); - }); - }); - - function add(_x) { - return _add.apply(this, arguments); - } - - return add; - }() - }, { - key: "addAll", - value: function () { - var _addAll = _$$_REQUIRE(_dependencyMap[7])(function* (functions, options) { - var _this5 = this; - - return Promise.all(functions.map(function () { - var _ref2 = _$$_REQUIRE(_dependencyMap[7])(function* (function_) { - return _this5.add(function_, options); - }); - - return function (_x4) { - return _ref2.apply(this, arguments); - }; - }())); - }); - - function addAll(_x2, _x3) { - return _addAll.apply(this, arguments); - } - - return addAll; - }() - }, { - key: "start", - value: function start() { - if (!this._isPaused) { - return this; - } - - this._isPaused = false; - - this._processQueue(); - - return this; - } - }, { - key: "pause", - value: function pause() { - this._isPaused = true; - } - }, { - key: "clear", - value: function clear() { - this._queue = new this._queueClass(); - } - }, { - key: "onEmpty", - value: function () { - var _onEmpty = _$$_REQUIRE(_dependencyMap[7])(function* () { - var _this6 = this; - - if (this._queue.size === 0) { - return; - } - - return new Promise(function (resolve) { - var existingResolve = _this6._resolveEmpty; - - _this6._resolveEmpty = function () { - existingResolve(); - resolve(); - }; - }); - }); - - function onEmpty() { - return _onEmpty.apply(this, arguments); - } - - return onEmpty; - }() - }, { - key: "onIdle", - value: function () { - var _onIdle = _$$_REQUIRE(_dependencyMap[7])(function* () { - var _this7 = this; - - if (this._pendingCount === 0 && this._queue.size === 0) { - return; - } - - return new Promise(function (resolve) { - var existingResolve = _this7._resolveIdle; - - _this7._resolveIdle = function () { - existingResolve(); - resolve(); - }; - }); - }); - - function onIdle() { - return _onIdle.apply(this, arguments); - } - - return onIdle; - }() - }, { - key: "size", - get: function get() { - return this._queue.size; - } - }, { - key: "sizeBy", - value: function sizeBy(options) { - return this._queue.filter(options).length; - } - }, { - key: "pending", - get: function get() { - return this._pendingCount; - } - }, { - key: "isPaused", - get: function get() { - return this._isPaused; - } - }, { - key: "timeout", - get: function get() { - return this._timeout; - }, - set: function set(milliseconds) { - this._timeout = milliseconds; - } - }]); - }(_$$_REQUIRE(_dependencyMap[8])); - - exports.default = PQueue; -},1871,[13,11,1872,6,1874,14,7,270,1876]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var TimeoutError = function (_Error) { - function TimeoutError(message) { - var _this; - - _$$_REQUIRE(_dependencyMap[2])(this, TimeoutError); - - _this = _callSuper(this, TimeoutError, [message]); - _this.name = 'TimeoutError'; - return _this; - } - - _$$_REQUIRE(_dependencyMap[3])(TimeoutError, _Error); - - return _$$_REQUIRE(_dependencyMap[4])(TimeoutError); - }(_$$_REQUIRE(_dependencyMap[5])(Error)); - - var pTimeout = function pTimeout(promise, milliseconds, fallback) { - return new Promise(function (resolve, reject) { - if (typeof milliseconds !== 'number' || milliseconds < 0) { - throw new TypeError('Expected `milliseconds` to be a positive number'); - } - - if (milliseconds === Infinity) { - resolve(promise); - return; - } - - var timer = setTimeout(function () { - if (typeof fallback === 'function') { - try { - resolve(fallback()); - } catch (error) { - reject(error); - } - - return; - } - - var message = typeof fallback === 'string' ? fallback : "Promise timed out after " + milliseconds + " milliseconds"; - var timeoutError = fallback instanceof Error ? fallback : new TimeoutError(message); - - if (typeof promise.cancel === 'function') { - promise.cancel(); - } - - reject(timeoutError); - }, milliseconds); - - _$$_REQUIRE(_dependencyMap[6])(promise.then(resolve, reject), function () { - clearTimeout(timer); - }); - }); - }; - - module.exports = pTimeout; - module.exports.default = pTimeout; - module.exports.TimeoutError = TimeoutError; -},1872,[13,11,6,14,7,61,1873]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = function (promise, onFinally) { - onFinally = onFinally || function () {}; - - return promise.then(function (val) { - return new Promise(function (resolve) { - resolve(onFinally()); - }).then(function () { - return val; - }); - }, function (err) { - return new Promise(function (resolve) { - resolve(onFinally()); - }).then(function () { - throw err; - }); - }); - }; -},1873,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var PriorityQueue = function () { - function PriorityQueue() { - _$$_REQUIRE(_dependencyMap[0])(this, PriorityQueue); - - this._queue = []; - } - - return _$$_REQUIRE(_dependencyMap[1])(PriorityQueue, [{ - key: "enqueue", - value: function enqueue(run, options) { - options = Object.assign({ - priority: 0 - }, options); - var element = { - priority: options.priority, - run: run - }; - - if (this.size && this._queue[this.size - 1].priority >= options.priority) { - this._queue.push(element); - - return; - } - - var index = _$$_REQUIRE(_dependencyMap[2]).default(this._queue, element, function (a, b) { - return b.priority - a.priority; - }); - - this._queue.splice(index, 0, element); - } - }, { - key: "dequeue", - value: function dequeue() { - var item = this._queue.shift(); - - return item === null || item === undefined ? undefined : item.run; - } - }, { - key: "filter", - value: function filter(options) { - return this._queue.filter(function (element) { - return element.priority === options.priority; - }).map(function (element) { - return element.run; - }); - } - }, { - key: "size", - get: function get() { - return this._queue.length; - } - }]); - }(); - - exports.default = PriorityQueue; -},1874,[6,7,1875]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - function lowerBound(array, value, comparator) { - var first = 0; - var count = array.length; - - while (count > 0) { - var step = count / 2 | 0; - var it = first + step; - - if (comparator(array[it], value) <= 0) { - first = ++it; - count -= step + 1; - } else { - count = step; - } - } - - return first; - } - - exports.default = lowerBound; -},1875,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - var has = Object.prototype.hasOwnProperty, - prefix = '~'; - - function Events() {} - - if (Object.create) { - Events.prototype = Object.create(null); - if (!new Events().__proto__) prefix = false; - } - - function EE(fn, context, once) { - this.fn = fn; - this.context = context; - this.once = once || false; - } - - function addListener(emitter, event, fn, context, once) { - if (typeof fn !== 'function') { - throw new TypeError('The listener must be a function'); - } - - var listener = new EE(fn, context || emitter, once), - evt = prefix ? prefix + event : event; - if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener]; - return emitter; - } - - function clearEvent(emitter, evt) { - if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; - } - - function EventEmitter() { - this._events = new Events(); - this._eventsCount = 0; - } - - EventEmitter.prototype.eventNames = function eventNames() { - var names = [], - events, - name; - if (this._eventsCount === 0) return names; - - for (name in events = this._events) { - if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); - } - - if (Object.getOwnPropertySymbols) { - return names.concat(Object.getOwnPropertySymbols(events)); - } - - return names; - }; - - EventEmitter.prototype.listeners = function listeners(event) { - var evt = prefix ? prefix + event : event, - handlers = this._events[evt]; - if (!handlers) return []; - if (handlers.fn) return [handlers.fn]; - - for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { - ee[i] = handlers[i].fn; - } - - return ee; - }; - - EventEmitter.prototype.listenerCount = function listenerCount(event) { - var evt = prefix ? prefix + event : event, - listeners = this._events[evt]; - if (!listeners) return 0; - if (listeners.fn) return 1; - return listeners.length; - }; - - EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) return false; - var listeners = this._events[evt], - len = arguments.length, - args, - i; - - if (listeners.fn) { - if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); - - switch (len) { - case 1: - return listeners.fn.call(listeners.context), true; - - case 2: - return listeners.fn.call(listeners.context, a1), true; - - case 3: - return listeners.fn.call(listeners.context, a1, a2), true; - - case 4: - return listeners.fn.call(listeners.context, a1, a2, a3), true; - - case 5: - return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; - - case 6: - return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; - } - - for (i = 1, args = new Array(len - 1); i < len; i++) { - args[i - 1] = arguments[i]; - } - - listeners.fn.apply(listeners.context, args); - } else { - var length = listeners.length, - j; - - for (i = 0; i < length; i++) { - if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); - - switch (len) { - case 1: - listeners[i].fn.call(listeners[i].context); - break; - - case 2: - listeners[i].fn.call(listeners[i].context, a1); - break; - - case 3: - listeners[i].fn.call(listeners[i].context, a1, a2); - break; - - case 4: - listeners[i].fn.call(listeners[i].context, a1, a2, a3); - break; - - default: - if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) { - args[j - 1] = arguments[j]; - } - listeners[i].fn.apply(listeners[i].context, args); - } - } - } - - return true; - }; - - EventEmitter.prototype.on = function on(event, fn, context) { - return addListener(this, event, fn, context, false); - }; - - EventEmitter.prototype.once = function once(event, fn, context) { - return addListener(this, event, fn, context, true); - }; - - EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) return this; - - if (!fn) { - clearEvent(this, evt); - return this; - } - - var listeners = this._events[evt]; - - if (listeners.fn) { - if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { - clearEvent(this, evt); - } - } else { - for (var i = 0, events = [], length = listeners.length; i < length; i++) { - if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { - events.push(listeners[i]); - } - } - - if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); - } - - return this; - }; - - EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { - var evt; - - if (event) { - evt = prefix ? prefix + event : event; - if (this._events[evt]) clearEvent(this, evt); - } else { - this._events = new Events(); - this._eventsCount = 0; - } - - return this; - }; - - EventEmitter.prototype.off = EventEmitter.prototype.removeListener; - EventEmitter.prototype.addListener = EventEmitter.prototype.on; - EventEmitter.prefixed = prefix; - EventEmitter.EventEmitter = EventEmitter; - - if ('undefined' !== typeof module) { - module.exports = EventEmitter; - } -},1876,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPRestoreModel = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var IAPRestoreModel = exports.IAPRestoreModel = function () { - function IAPRestoreModel() { - (0, _classCallCheck2.default)(this, IAPRestoreModel); - } - - return (0, _createClass2.default)(IAPRestoreModel, [{ - key: "setProductId", - value: function setProductId(productId) { - this.productId = productId; - } - }, { - key: "setReceipt", - value: function setReceipt(receipt) { - this.receipt = receipt; - } - }, { - key: "setPurchaseDate", - value: function setPurchaseDate(date) { - this.purchaseDate = date; - } - }, { - key: "setTransactionId", - value: function setTransactionId(transactionId) { - this.transactionId = transactionId; - } - }, { - key: "setOriginalTransactionId", - value: function setOriginalTransactionId(originalTransactionId) { - this.originalTransactionId = originalTransactionId; - } - }, { - key: "setOriginalTransactionDate", - value: function setOriginalTransactionDate(originalTransactionDate) { - this.originalTransactionDate = originalTransactionDate; - } - }, { - key: "setUserId", - value: function setUserId(userId) { - this.userId = userId; - } - }]); - }(); -},1877,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPTecnaviaRestoreModel = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var IAPTecnaviaRestoreModel = exports.IAPTecnaviaRestoreModel = function () { - function IAPTecnaviaRestoreModel() { - (0, _classCallCheck2.default)(this, IAPTecnaviaRestoreModel); - } - - return (0, _createClass2.default)(IAPTecnaviaRestoreModel, [{ - key: "setProductId", - value: function setProductId(productId) { - this.productId = productId; - } - }, { - key: "setTransactionId", - value: function setTransactionId(transactionId) { - this.transactionId = transactionId; - } - }, { - key: "setOriginalTransactionId", - value: function setOriginalTransactionId(originalTransactionId) { - this.originalTransactionId = originalTransactionId; - } - }, { - key: "setOriginalPurchaseDate", - value: function setOriginalPurchaseDate(originalTransactionDate) { - this.originalTransactionDate = originalTransactionDate; - } - }, { - key: "setReceipt", - value: function setReceipt(receipt) { - this.receipt = receipt; - } - }, { - key: "setPurchaseDate", - value: function setPurchaseDate(purchaseDate) { - this.purchaseDate = purchaseDate; - } - }, { - key: "setExpiresDate", - value: function setExpiresDate(expiresDate) { - this.expiresDate = expiresDate; - } - }, { - key: "setCancellationDate", - value: function setCancellationDate(cancellationDate) { - this.cancellationDate = cancellationDate; - } - }, { - key: "setCancelReason", - value: function setCancelReason(cancelReason) { - this.cancelReason = cancelReason; - } - }, { - key: "getCancelReason", - value: function getCancelReason() { - return this.cancelReason; - } - }]); - }(); -},1878,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPApple = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _cryptoJs = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var IOS_RESTORE_TRANSACTIONS_ERRORS = { - NO_SECRET: "No secret provided", - UNABLE_TO_DECODE_RECEIPT: "Unable to decode receipt" - }; - - var RNIap = _optionalPackageUtils.default.getIapModule(); - - var IAPApple = exports.IAPApple = function (_IAPrnBase) { - function IAPApple() { - var _this; - - (0, _classCallCheck2.default)(this, IAPApple); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, IAPApple, [].concat(args)); - _this.isRestoringTransactions = false; - return _this; - } - - (0, _inherits2.default)(IAPApple, _IAPrnBase); - return (0, _createClass2.default)(IAPApple, [{ - key: "_onPurchaseUpdateListener", - value: function _onPurchaseUpdateListener(purchase) { - if (!this.isRestoringTransactions) { - (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "_onPurchaseUpdateListener", this).call(this, purchase); - } - } - }, { - key: "getOriginalTransactionDate", - value: function getOriginalTransactionDate(purchase) { - return purchase.originalTransactionDateIOS; - } - }, { - key: "requestPurchase", - value: function () { - var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { - this.isRestoringTransactions = false; - return (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "requestPurchase", this).call(this, sku); - }); - - function requestPurchase(_x) { - return _requestPurchase.apply(this, arguments); - } - - return requestPurchase; - }() - }, { - key: "requestSubscription", - value: function () { - var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku, offersDetails) { - this.isRestoringTransactions = false; - return (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "requestSubscription", this).call(this, sku, offersDetails); - }); - - function requestSubscription(_x2, _x3) { - return _requestSubscription.apply(this, arguments); - } - - return requestSubscription; - }() - }, { - key: "getAvailablePurchases", - value: function () { - var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { - var history = []; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - var histories = yield RNIap.getAvailablePurchases(); - var orderedHistories = histories.sort(function (a, b) { - return b.transactionDate - a.transactionDate; - }); - history = orderedHistories.map(function (purchase) { - var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPRestoreModel)(); - model.setProductId(purchase.productId); - model.setPurchaseDate(purchase.transactionDate); - model.setTransactionId(purchase.transactionId); - model.setReceipt(purchase.transactionReceipt); - model.setOriginalTransactionId(purchase.originalTransactionIdentifierIOS); - model.setOriginalTransactionDate(purchase.originalTransactionDateIOS); - return model; - }); - } - - return history; - }); - - function getAvailablePurchases() { - return _getAvailablePurchases.apply(this, arguments); - } - - return getAvailablePurchases; - }() - }, { - key: "getSharedSecret", - value: function getSharedSecret() { - var _global$getActivePSet = global.getActivePSetup(), - forcedSharedSecret = _global$getActivePSet.forcedSharedSecret; - - return forcedSharedSecret || global.iosIapSharedSecret; - } - }, { - key: "useDebugServer", - value: function useDebugServer() { - var _global$getActivePSet2 = global.getActivePSetup(), - useIOSSandboxReceiptValidation = _global$getActivePSet2.useIOSSandboxReceiptValidation; - - return useIOSSandboxReceiptValidation || global.isDebug; - } - }, { - key: "validateReceipt", - value: function () { - var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - var _yield$this$decodeRec = yield this.decodeReceipt(receipt), - status = _yield$this$decodeRec.status, - decodedReceipt = _yield$this$decodeRec.decodedReceipt; - - if (status === 0 && decodedReceipt) { - var iapList = decodedReceipt.in_app; - var now = new Date().getTime(); - var validTransactions = iapList.filter(function (purchase) { - return purchase.expires_date_ms && parseInt(purchase.expires_date_ms, 10) >= now; - }); - return validTransactions.length > 0; - } - - return false; - }); - - function validateReceipt(_x4) { - return _validateReceipt.apply(this, arguments); - } - - return validateReceipt; - }() - }, { - key: "decodeReceiptLocal", - value: function () { - var _decodeReceiptLocal = (0, _asyncToGenerator2.default)(function* (receipt) { - var status = -1; - var decodedReceipt; - var errorMessage = ""; - - if (_optionalPackageUtils.default.isIapModuleAvailable()) { - var password = this.getSharedSecret(); - - if (password) { - var receiptBody = { - "receipt-data": receipt, - password: password - }; - - try { - var testServer = this.useDebugServer(); - var result = yield RNIap.validateReceiptIos(receiptBody, testServer); - status = result.status; - decodedReceipt = result.receipt; - } catch (e) { - errorMessage = e.message; - } - } - } - - return { - status: status, - decodedReceipt: decodedReceipt, - errorMessage: errorMessage - }; - }); - - function decodeReceiptLocal(_x5) { - return _decodeReceiptLocal.apply(this, arguments); - } - - return decodeReceiptLocal; - }() - }, { - key: "decodeReceipt", - value: function () { - var _decodeReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - var status = -1; - var decodedReceipt; - var latestReceiptInfo; - var errorMessage = ""; - - try { - var response = yield _NewsmemoryAJAX.default.validateReceipt({ - service: "apple", - receipt: receipt - }); - var data = response.data; - status = data.status; - decodedReceipt = data.receipt; - latestReceiptInfo = data.latest_receipt_info; - errorMessage = data.error; - } catch (e) { - errorMessage = e.message; - } - - return { - status: status, - decodedReceipt: decodedReceipt, - latestReceiptInfo: latestReceiptInfo, - errorMessage: errorMessage - }; - }); - - function decodeReceipt(_x6) { - return _decodeReceipt.apply(this, arguments); - } - - return decodeReceipt; - }() - }, { - key: "getBoughtSubscriptions", - value: function () { - var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* () { - var purchases = yield this.getAvailablePurchases(); - var transactions = []; - - if (purchases.length > 0) { - var receipt = purchases[purchases.length - 1].receipt; - - var _yield$this$decodeRec2 = yield this.decodeReceipt(receipt), - status = _yield$this$decodeRec2.status, - decodedReceipt = _yield$this$decodeRec2.decodedReceipt, - latestReceiptInfo = _yield$this$decodeRec2.latestReceiptInfo, - errorMessage = _yield$this$decodeRec2.errorMessage; - - if (decodedReceipt) { - var iapList = decodedReceipt.in_app; - - if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(latestReceiptInfo)) { - latestReceiptInfo.forEach(function (purchase) { - var found = iapList.findIndex(function (iap) { - return iap.transaction_id === purchase.transaction_id; - }) !== -1; - - if (!found) { - iapList.push(purchase); - } - }); - iapList.sort(function (a, b) { - return a.purchase_date_ms - b.purchase_date_ms; - }); - } - - transactions = iapList.map(function (purchase) { - var transaction = new (_$$_REQUIRE(_dependencyMap[14]).IAPTecnaviaRestoreModel)(); - transaction.setProductId(purchase.product_id); - transaction.setTransactionId(purchase.transaction_id); - transaction.setOriginalTransactionId(purchase.original_transaction_id); - transaction.setOriginalPurchaseDate(purchase.original_purchase_date_ms); - transaction.setReceipt(receipt); - transaction.setPurchaseDate(purchase.purchase_date_ms); - transaction.setExpiresDate(purchase.expires_date_ms); - transaction.setCancellationDate(purchase.cancellation_date_ms); - return transaction; - }); - } else { - throw new Error(IOS_RESTORE_TRANSACTIONS_ERRORS.UNABLE_TO_DECODE_RECEIPT + ", status: " + status + " " + errorMessage); - } - } - - return transactions; - }); - - function getBoughtSubscriptions() { - return _getBoughtSubscriptions.apply(this, arguments); - } - - return getBoughtSubscriptions; - }() - }, { - key: "getActiveSubscriptions", - value: function () { - var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { - var transactions = yield this.getBoughtSubscriptions(); - - if (transactions) { - var now = new Date().getTime(); - return transactions.filter(function (transaction) { - return transaction.productId !== excludeProductId && _$$_REQUIRE(_dependencyMap[13]).JSUtils.isNull(transaction.cancellationDate) && transaction.expiresDate && parseInt(transaction.expiresDate, 10) >= now; - }); - } - - return []; - }); - - function getActiveSubscriptions(_x7) { - return _getActiveSubscriptions.apply(this, arguments); - } - - return getActiveSubscriptions; - }() - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { - this.isRestoringTransactions = true; - var purchases = yield this.getBoughtSubscriptions(); - this.isRestoringTransactions = false; - return purchases; - }); - - function restoreTransactions(_x8) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }, { - key: "isSandboxReceipt", - value: function isSandboxReceipt(receipt) { - if (receipt) { - try { - var decodedReceipt = _cryptoJs.default.enc.Base64.parse(receipt); - - var receiptString = _cryptoJs.default.enc.Latin1.stringify(decodedReceipt); - - return receiptString.indexOf("ProductionSandbox") > -1; - } catch (e) {} - } - - return false; - } - }, { - key: "getOriginalTransactionId", - value: function getOriginalTransactionId(purchase) { - var originalTransactionIdentifierIOS = purchase.originalTransactionIdentifierIOS, - transactionId = purchase.transactionId; - return originalTransactionIdentifierIOS || transactionId; - } - }]); - }(_IAPrnBase2.default); -},1879,[3,270,6,7,11,85,13,14,628,1870,879,406,1877,438,1878]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.IAPAmazon = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var RNIap = _optionalPackageUtils.default.getIapModule(); - - var IAPAmazon = exports.IAPAmazon = function (_IAPrnBase) { - function IAPAmazon() { - (0, _classCallCheck2.default)(this, IAPAmazon); - return _callSuper(this, IAPAmazon, arguments); - } - - (0, _inherits2.default)(IAPAmazon, _IAPrnBase); - return (0, _createClass2.default)(IAPAmazon, [{ - key: "getAvailablePurchases", - value: function () { - var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { - try { - var items = yield RNIap.getAvailablePurchases(); - var history = items.filter(function (purchase) { - var transactionReceipt = purchase.transactionReceipt; - var receipt = JSON.parse(transactionReceipt); - return receipt.itemType === "SUBSCRIPTION"; - }).map(function (purchase) { - var transactionReceipt = purchase.transactionReceipt; - var receipt = JSON.parse(transactionReceipt); - var model = new (_$$_REQUIRE(_dependencyMap[10]).IAPRestoreModel)(); - model.setProductId(receipt.sku); - model.setReceipt(receipt.receiptId); - model.setPurchaseDate(receipt.purchaseDate); - model.setUserId(purchase.userIdAmazon); - return model; - }); - return history; - } catch (e) {} - - return []; - }); - - function getAvailablePurchases() { - return _getAvailablePurchases.apply(this, arguments); - } - - return getAvailablePurchases; - }() - }, { - key: "getReceipt", - value: function getReceipt(purchase) { - return purchase.transactionReceipt; - } - }, { - key: "getTransactionId", - value: function getTransactionId(purchase) { - var userIdAmazon = purchase.userIdAmazon, - transactionReceipt = purchase.transactionReceipt, - transactionDate = purchase.transactionDate; - - var _JSON$parse = JSON.parse(transactionReceipt), - receiptId = _JSON$parse.receiptId; - - return this.generateTransactionId({ - userId: userIdAmazon, - receiptId: receiptId, - purchaseDate: transactionDate - }); - } - }, { - key: "getOriginalTransactionId", - value: function getOriginalTransactionId(purchase) { - var userIdAmazon = purchase.userIdAmazon, - transactionReceipt = purchase.transactionReceipt; - - var _JSON$parse2 = JSON.parse(transactionReceipt), - receiptId = _JSON$parse2.receiptId; - - return this.generateTransactionId({ - userId: userIdAmazon, - receiptId: receiptId - }); - } - }, { - key: "generateTransactionId", - value: function generateTransactionId(_ref) { - var userId = _ref.userId, - receiptId = _ref.receiptId, - purchaseDate = _ref.purchaseDate; - - if (purchaseDate) { - return _$$_REQUIRE(_dependencyMap[11]).StringUtils.getMd5(userId + "_" + receiptId + "_" + purchaseDate); - } - - return _$$_REQUIRE(_dependencyMap[11]).StringUtils.getMd5(userId + "_" + receiptId); - } - }, { - key: "getAmazonReceipt", - value: function () { - var _getAmazonReceipt = (0, _asyncToGenerator2.default)(function* (userId, receiptId) { - return (yield _NewsmemoryAJAX.default.validateReceipt({ - service: "amazon", - userId: userId, - receiptId: receiptId - })).data; - }); - - function getAmazonReceipt(_x, _x2) { - return _getAmazonReceipt.apply(this, arguments); - } - - return getAmazonReceipt; - }() - }, { - key: "validateReceipt", - value: function () { - var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { - if (receipt) { - try { - var response = yield this.getAmazonReceipt(receipt.userId, receipt.receiptId); - var cancelDate = response.cancelDate; - - if (!cancelDate) { - return true; - } - } catch (e) {} - } - - return false; - }); - - function validateReceipt(_x3) { - return _validateReceipt.apply(this, arguments); - } - - return validateReceipt; - }() - }, { - key: "restoreTransactions", - value: function () { - var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { - return this.getBoughtSubscriptions(productId); - }); - - function restoreTransactions(_x4) { - return _restoreTransactions.apply(this, arguments); - } - - return restoreTransactions; - }() - }, { - key: "getActiveSubscriptions", - value: function () { - var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { - var activeSubscriptions = yield this.getBoughtSubscriptions(); - return this.applyFiltersToSubscriptions(activeSubscriptions); - }); - - function getActiveSubscriptions(_x5) { - return _getActiveSubscriptions.apply(this, arguments); - } - - return getActiveSubscriptions; - }() - }, { - key: "applyFiltersToSubscriptions", - value: function applyFiltersToSubscriptions(activeSubscriptions) { - return activeSubscriptions.filter(function (subscription) { - return !subscription.expiresDate; - }); - } - }, { - key: "getBoughtSubscriptions", - value: function () { - var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* (productId) { - var transactions = []; - - if (_optionalPackageUtils.default.isAmazonLibraryAvailable()) { - var purchases = yield this.getAvailablePurchases(); - - if (productId) { - purchases = purchases.filter(function (purchase) { - return purchase.productId === productId; - }); - } - - if (purchases && purchases.length > 0) { - for (var i = 0; i < purchases.length; i++) { - var purchase = purchases[i]; - var amazonReceipt = undefined; - - try { - amazonReceipt = yield this.getAmazonReceipt(purchase.userId, purchase.receipt); - } catch (e) {} - - if (amazonReceipt) { - var transaction = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaRestoreModel)(); - transaction.setProductId(amazonReceipt.productId); - transaction.setTransactionId(this.generateTransactionId({ - userId: purchase.userId, - receiptId: purchase.receipt, - purchaseDate: amazonReceipt.purchaseDate - })); - transaction.setOriginalTransactionId(this.generateTransactionId({ - userId: purchase.userId, - receiptId: purchase.receipt - })); - transaction.setOriginalPurchaseDate(amazonReceipt.purchaseDate); - transaction.setReceipt(purchase.receipt); - transaction.setExpiresDate(amazonReceipt.cancelDate || amazonReceipt.renewalDate); - transaction.setCancellationDate(amazonReceipt.cancelDate); - transactions.push(transaction); - } - } - } - } - - return transactions; - }); - - function getBoughtSubscriptions(_x6) { - return _getBoughtSubscriptions.apply(this, arguments); - } - - return getBoughtSubscriptions; - }() - }]); - }(_IAPrnBase2.default); -},1880,[3,270,6,7,11,13,14,879,1870,406,1877,438,1878]); +},1869,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -234940,7 +231935,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } }; -},1881,[3,434,1087,1882,1224,1888,1682,438]); +},1870,[3,434,1090,1871,1227,1877,1687,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -234961,7 +231956,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createNativeStackNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _NativeStackView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); -},1882,[3,1883,1884]); +},1871,[3,1872,1873]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235020,7 +232015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[4]).createNavigatorFactory)(NativeStackNavigator); -},1883,[3,4,16,1884,1087,179]); +},1872,[3,4,16,1873,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235279,7 +232274,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1884,[3,33,16,18,1226,1885,1886,1087,179,1279,897,1244]); +},1873,[3,33,16,18,1229,1874,1875,1090,179,1282,900,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235303,7 +232298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Container = _reactNative.View; var _default = exports.default = Container; -},1885,[3,4,16,18,336]); +},1874,[3,4,16,18,336]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235496,7 +232491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1886,[3,33,16,18,897,1087,1887,1279,179,1244]); +},1875,[3,33,16,18,900,1090,1876,1282,179,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235516,7 +232511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fontFamilies; } -},1887,[3,142]); +},1876,[3,142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235561,7 +232556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); var _useBottomTabBarHeight = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); -},1888,[3,1889,1893,1890,1892,1899]); +},1877,[3,1878,1882,1879,1881,1888]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235652,7 +232647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[5]).createNavigatorFactory)(BottomTabNavigator); -},1889,[3,4,16,1226,1890,1087,179]); +},1878,[3,4,16,1229,1879,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235810,7 +232805,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1890,[3,22,33,16,18,1891,1892,1893,179,1244,897,1898]); +},1879,[3,22,33,16,18,1880,1881,1882,179,1247,900,1887]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235824,7 +232819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(undefined); -},1891,[16]); +},1880,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235838,7 +232833,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var _default = exports.default = React.createContext(undefined); -},1892,[16]); +},1881,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236182,7 +233177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexDirection: 'row' } }); -},1893,[3,33,4,16,18,1891,1894,1895,1087,897,179,1244]); +},1882,[3,33,4,16,18,1880,1883,1884,1090,900,179,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236230,7 +233225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, []); return isKeyboardShown; } -},1894,[3,33,16,18]); +},1883,[3,33,16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236418,7 +233413,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e display: 'flex' } }); -},1895,[3,4,1235,16,18,1896,179,1087]); +},1884,[3,4,1238,16,18,1885,179,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236500,7 +233495,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e top: 7 } }); -},1896,[3,16,18,1897,179]); +},1885,[3,16,18,1886,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236614,7 +233609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1897,[3,33,4,1235,16,18,1087,179]); +},1886,[3,33,4,1238,16,18,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236677,7 +233672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},1898,[3,4,16,18,1279,179,1244]); +},1887,[3,4,16,18,1282,179,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236701,7267 +233696,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return height; } -},1899,[16,3,1892]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.sendNewsmemoryZoom = exports.sendNewsmemoryUseBeta = exports.sendNewsmemoryTranslate = exports.sendNewsmemoryToogleArticleModeEvent = exports.sendNewsmemoryToggleFullscreenEvent = exports.sendNewsmemoryThumbnails = exports.sendNewsmemoryTTSEvent = exports.sendNewsmemoryShareEvent = exports.sendNewsmemorySectionIndex = exports.sendNewsmemoryScrollZoomedEvent = exports.sendNewsmemoryScroll = exports.sendNewsmemoryRotateEvent = exports.sendNewsmemoryPrintEvent = exports.sendNewsmemoryPinchToZoomEvent = exports.sendNewsmemoryOptionspage = exports.sendNewsmemoryLoginEvent = exports.sendNewsmemoryIndex = exports.sendNewsmemoryGraphSizeChangeEvent = exports.sendNewsmemoryGoToLastPageEvent = exports.sendNewsmemoryGallery = exports.sendNewsmemoryFontSizeChangeEvent = exports.sendNewsmemoryExtraYoutube = exports.sendNewsmemoryExtraVideo = exports.sendNewsmemoryExtraUrl = exports.sendNewsmemoryEditionLoad = exports.sendNewsmemoryDownloadPDFEvent = exports.sendNewsmemoryDownloadIpaddb = exports.sendNewsmemoryDoubleTapToZoomEvent = exports.sendNewsmemoryClearRecently = exports.sendNewsmemoryArticleGallery = exports.sendNewsmemoryArticleClickThrough = exports.sendNewsmemoryArticle = undefined; - exports.trackNewsmemoryRoute = trackNewsmemoryRoute; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _pageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _excluded = ["action", "event"]; - - function getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel) { - if (editionModel) { - var paper = editionModel.getPaper(); - var issue = editionModel.getIssue(); - var edition = editionModel.getEdition(); - var page; - var section; - var isFirstPage; - - if (pageModel) { - page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - section = pageModel.getSection(); - var firstPage = editionModel.getFirstPage(); - isFirstPage = _pageUtils.default.comparePages(firstPage, pageModel); - } - - return { - paper: paper, - issue: issue, - edition: edition, - page: page, - section: section, - isFirstPage: isFirstPage - }; - } - - return {}; - } - - function trackSessionAction(params) { - var _global$getActivePSet = global.getActivePSetup(), - enableSessionCollection = _global$getActivePSet.enableSessionCollection; - - if (enableSessionCollection) { - var action = params.action, - event = params.event, - rest = (0, _objectWithoutProperties2.default)(params, _excluded); - var paper = rest.paper, - edition = rest.edition, - issue = rest.issue; - - if (paper && edition && issue) { - _$$_REQUIRE(_dependencyMap[6]).NewspaperSessionManager.addAction(action, rest); - } - } - } - - function trackSessionRoute(route, params) { - var _global$getActivePSet2 = global.getActivePSetup(), - enableSessionCollection = _global$getActivePSet2.enableSessionCollection; - - if (enableSessionCollection) { - var paper = params.paper, - edition = params.edition, - issue = params.issue; - - if (paper && edition && issue) { - _$$_REQUIRE(_dependencyMap[6]).NewspaperSessionManager.addRoute(route, params); - } - } - } - - function trackNewsmemoryRoute(route, editionModel) { - trackSessionRoute(route, getNewsmemoryAnalyticsDefaultParams(editionModel)); - } - - function sendNewsmemoryAnalytics(params) { - try { - var _screenMapping = (0, _$$_REQUIRE(_dependencyMap[7]).screenMapping)(params), - screen = _screenMapping.screen, - event = _screenMapping.event, - firebaseScreenView = _screenMapping.firebaseScreenView, - customDimensions = _screenMapping.customDimensions, - remp = _screenMapping.remp; - - if (firebaseScreenView) { - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseScreen)(firebaseScreenView, screen, params); - } - - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)(event); - (0, _$$_REQUIRE(_dependencyMap[8]).trackScreen)(screen, params, customDimensions); - trackSessionAction(Object.assign({}, params, { - action: params.event - })); - - if (remp) { - (0, _$$_REQUIRE(_dependencyMap[8]).trackRempAccount)(remp); - } - } catch (e) {} - } - - function getArticleTitle(article) { - var title = ""; - - if (article) { - var type = article.getType(); - - var decodedTitle = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeURIComponent(article.getTitle()); - - title = type && type.toLowerCase() === "editorial" ? decodedTitle : type; - } - - return title; - } - - var sendNewsmemoryUseBeta = exports.sendNewsmemoryUseBeta = function sendNewsmemoryUseBeta(openRN) { - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_demo", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(), { - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - action: openRN ? "use_rn_demo" : "use_classic" - }) - }); - }; - - var sendNewsmemoryClearRecently = exports.sendNewsmemoryClearRecently = function sendNewsmemoryClearRecently() { - (0, _$$_REQUIRE(_dependencyMap[8]).clearRecently)(); - }; - - var sendNewsmemoryShareEvent = exports.sendNewsmemoryShareEvent = function sendNewsmemoryShareEvent(editionModel, pageModel, article, sharedApp) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var article_id = article ? article.getXmlId() : -1; - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.SHARE; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_share", - action: action, - remp: encodeURIComponent(article_id), - article_id: article_id, - type: type, - title: title, - platform: sharedApp, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - article: article_id, - sharedApp: sharedApp - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryLoginEvent = exports.sendNewsmemoryLoginEvent = function sendNewsmemoryLoginEvent(action) { - var category = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.LOGIN; - - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)({ - category: category, - action: action, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_login", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)({ - action: action - }) - }); - }; - - var sendNewsmemoryTTSEvent = exports.sendNewsmemoryTTSEvent = function sendNewsmemoryTTSEvent(action, editionModel, pageModel, article) { - var category = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.TTS; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var params = Object.assign({ - category: category, - action: action, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - title: title, - type: type - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_tts", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)({ - action: action - }) - }); - trackSessionAction(params); - }; - - var sendNewsmemoryTranslate = exports.sendNewsmemoryTranslate = function sendNewsmemoryTranslate(language, editionModel, pageModel, article) { - try { - var TRANSLATE = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.TRANSLATE; - - var params = Object.assign({ - category: TRANSLATE, - action: TRANSLATE + "_" + language, - label: article.getTitle(), - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_translate", - customParams: Object.assign({ - language: language - }, (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)({ - action: TRANSLATE - })) - }); - trackSessionAction(params); - } catch (e) {} - }; - - var sendNewsmemoryGoToLastPageEvent = exports.sendNewsmemoryGoToLastPageEvent = function sendNewsmemoryGoToLastPageEvent(editionModel, pageModel) { - var category = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.SKIP_TO_END; - - var commonParams = Object.assign({ - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ - category: category, - action: pageModel.getPage() - }, commonParams)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_go_to_last_page", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(Object.assign({ - action: category - }, commonParams)) - }); - trackSessionAction(Object.assign({ - action: "go_to_last_page" - }, commonParams)); - }; - - var sendNewsmemoryToogleArticleModeEvent = exports.sendNewsmemoryToogleArticleModeEvent = function sendNewsmemoryToogleArticleModeEvent(action, editionModel, pageModel, article) { - var TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.TOGGLE_TO_PRINT, - TOGGLE_TO_DIGITAL = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.TOGGLE_TO_DIGITAL; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - - var isTextMode = action === _$$_REQUIRE(_dependencyMap[11]).NewsmemoryArticleModes.TEXT; - - var params = Object.assign({ - category: isTextMode ? TOGGLE_TO_DIGITAL : TOGGLE_TO_PRINT, - action: action, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - type: type, - title: title - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); - var customEvent = isTextMode ? "epaper_article_toggle_text" : "epaper_article_toggle_graphic"; - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: customEvent, - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(params) - }); - trackSessionAction(Object.assign({}, params, { - action: customEvent - })); - }; - - var sendNewsmemoryFontSizeChangeEvent = exports.sendNewsmemoryFontSizeChangeEvent = function sendNewsmemoryFontSizeChangeEvent(action, scale, editionModel, pageModel, article) { - var FONT_SCALE = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.FONT_SCALE; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var params = Object.assign({ - category: FONT_SCALE, - action: action, - label: scale, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - type: type, - title: title - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryGraphSizeChangeEvent = exports.sendNewsmemoryGraphSizeChangeEvent = function sendNewsmemoryGraphSizeChangeEvent(action, scale, editionModel, pageModel, article) { - var GRAPH_SIZE = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.GRAPH_SIZE; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var params = Object.assign({ - category: GRAPH_SIZE, - action: action, - label: scale, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - type: type, - title: title - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryToggleFullscreenEvent = exports.sendNewsmemoryToggleFullscreenEvent = function sendNewsmemoryToggleFullscreenEvent(active, editionModel, pageModel, article) { - var TOGGLE_FULLSCREEN = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.TOGGLE_FULLSCREEN; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var params = Object.assign({ - category: TOGGLE_FULLSCREEN, - action: active ? "epaper_article_fullscreen" : "epaper_article_half_screen", - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - type: type, - title: title - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryPrintEvent = exports.sendNewsmemoryPrintEvent = function sendNewsmemoryPrintEvent(editionModel, pageModel, article) { - var PRINT = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.PRINT; - - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var params = Object.assign({ - category: PRINT, - action: PRINT, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper", - type: type, - title: title - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryDownloadPDFEvent = exports.sendNewsmemoryDownloadPDFEvent = function sendNewsmemoryDownloadPDFEvent(editionModel, pageModel) { - var DOWNLOAD_PDF = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.DOWNLOAD_PDF; - - var params = Object.assign({ - category: DOWNLOAD_PDF, - action: DOWNLOAD_PDF, - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryRotateEvent = exports.sendNewsmemoryRotateEvent = function sendNewsmemoryRotateEvent(orietation, editionModel) { - var ROTATE = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.ROTATE; - - var params = Object.assign({ - category: ROTATE, - action: ROTATE + "_" + orietation.toLowerCase(), - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel)); - trackSessionAction(params); - }; - - var sendNewsmemoryDoubleTapToZoomEvent = exports.sendNewsmemoryDoubleTapToZoomEvent = function sendNewsmemoryDoubleTapToZoomEvent(editionModel, pageModel) { - var DOUBLE_TAP_TO_ZOOM = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.DOUBLE_TAP_TO_ZOOM; - - var ZOOM = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ZOOM; - - var commonParams = Object.assign({ - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ - category: DOUBLE_TAP_TO_ZOOM, - action: ZOOM - }, commonParams)); - var params = Object.assign({ - action: DOUBLE_TAP_TO_ZOOM - }, commonParams); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_double_tap_to_zoom", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(params) - }); - trackSessionAction(params); - }; - - var sendNewsmemoryPinchToZoomEvent = exports.sendNewsmemoryPinchToZoomEvent = function sendNewsmemoryPinchToZoomEvent(editionModel, pageModel, scale) { - var PINCH_TO_ZOOM = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.PINCH_TO_ZOOM; - - var ZOOM = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ZOOM; - - var commonParams = Object.assign({ - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - scale: scale - }); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ - category: PINCH_TO_ZOOM, - action: ZOOM - }, commonParams)); - var params = Object.assign({ - action: PINCH_TO_ZOOM - }, commonParams); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_pinch_to_zoom", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(params) - }); - trackSessionAction(params); - }; - - var sendNewsmemoryScrollZoomedEvent = exports.sendNewsmemoryScrollZoomedEvent = function sendNewsmemoryScrollZoomedEvent(editionModel, pageModel, areas) { - var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[11]).analyticsEventTypes.SCROLL_ZOOMED; - - var ZOOM = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ZOOM; - - var commonParams = Object.assign({ - device: (0, _$$_REQUIRE(_dependencyMap[10]).gaBreakout)(), - appMode: "ePaper" - }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - areas: areas - }); - (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ - category: SCROLL_ZOOMED, - action: ZOOM - }, commonParams)); - var params = Object.assign({ - action: SCROLL_ZOOMED - }, commonParams); - var screen = (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)(Object.assign({ - type: ZOOM - }, commonParams)); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseScreen)(_$$_REQUIRE(_dependencyMap[11]).firebaseAnalyticsScreenNames.ZOOM, screen, params); - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "epaper_scroll_zoomed", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)(params) - }); - trackSessionAction(params); - }; - - var sendNewsmemoryArticle = exports.sendNewsmemoryArticle = function sendNewsmemoryArticle(editionModel, pageModel, article, mode) { - try { - var _pageModel$getSection; - - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var article_id = article.getXmlId(); - var type = article ? article.getType() : ""; - var title = getArticleTitle(article); - var section = (_pageModel$getSection = pageModel.getSection()) != null ? _pageModel$getSection : ""; - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.READ; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_read_article", - action: action, - remp: encodeURIComponent(article_id), - article_id: article_id, - type: type, - title: title, - section: section, - mode: mode, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - article: article_id, - title: title - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryZoom = exports.sendNewsmemoryZoom = function sendNewsmemoryZoom(editionModel, pageModel, scale) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ZOOM; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_zoom", - action: action, - remp: encodeURIComponent(pageModel.getPageId()), - zoom: scale, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryScroll = exports.sendNewsmemoryScroll = function sendNewsmemoryScroll(editionModel, pageModel, isZoomed) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.SCROLLED; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_scroll", - action: action, - remp: encodeURIComponent(pageModel.getPageId()), - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page - }), - isZoomed: isZoomed - })); - } catch (e) {} - }; - - var sendNewsmemoryDownloadIpaddb = exports.sendNewsmemoryDownloadIpaddb = function sendNewsmemoryDownloadIpaddb(paper, issue, edition, speed) { - try { - (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ - customEvent: "download_epaper_db", - customParams: (0, _$$_REQUIRE(_dependencyMap[10]).mapParamsToFirebaseCustomDimensions)({ - issue: issue, - edition: edition - }) - }); - trackSessionAction({ - action: "download_db", - paper: paper, - issue: issue, - edition: edition, - speed: speed - }); - } catch (e) {} - }; - - var sendNewsmemoryIndex = exports.sendNewsmemoryIndex = function sendNewsmemoryIndex(editionModel) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.INDEX; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel), { - event: "epaper_index", - action: action, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition - }) - })); - } catch (e) {} - }; - - var sendNewsmemorySectionIndex = exports.sendNewsmemorySectionIndex = function sendNewsmemorySectionIndex(editionModel, pageModel) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.SECTION_INDEX; - - var params = getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel); - sendNewsmemoryAnalytics(Object.assign({}, params, { - event: "epaper_section_index", - action: action, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - section: params.section - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryOptionspage = exports.sendNewsmemoryOptionspage = function sendNewsmemoryOptionspage(tab, title) { - try { - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.OPTIONSPAGE; - - sendNewsmemoryAnalytics({ - event: "epaper_optionspage", - action: action, - tab: tab, - section: title, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - page: tab - }) - }); - } catch (e) {} - }; - - var sendNewsmemoryThumbnails = exports.sendNewsmemoryThumbnails = function sendNewsmemoryThumbnails(editionModel) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.THUMBS; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel), { - event: "epaper_thumbs", - action: action, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryGallery = exports.sendNewsmemoryGallery = function sendNewsmemoryGallery(title, image, index, editionModel, pageModel) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.GALLERY; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_enrichment_gallery", - action: action, - type: "image", - gallery_id: title, - id: image, - index: index, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - title: title, - id: image, - index: index - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryArticleGallery = exports.sendNewsmemoryArticleGallery = function sendNewsmemoryArticleGallery(index, editionModel, pageModel, article) { - try { - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var article_id = article.getXmlId(); - var title = getArticleTitle(article); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ARTICLE_GALLERY; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_article_gallery", - action: action, - type: "image", - article_id: article_id, - title: title, - index: index, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - article: article_id, - title: title, - index: index - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryExtraYoutube = exports.sendNewsmemoryExtraYoutube = function sendNewsmemoryExtraYoutube(url, editionModel, pageModel) { - try { - var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[9]).StringUtils.segmentUrl(url), - getParams = _StringUtils$segmentU.getParams; - - var id = getParams.v; - - if (id === undefined) { - var regExp = new RegExp(/(?:http?s?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:(?:watch\?v=)|(?:v\/))+([^&]+)/g); - var m; - - while ((m = regExp.exec(url)) !== null) { - id = m[1]; - break; - } - } - - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.VIDEO; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_enrichment_video", - action: action, - type: "youtube", - url: url, - video_id: id, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - id: id - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryExtraVideo = exports.sendNewsmemoryExtraVideo = function sendNewsmemoryExtraVideo(url, editionModel, pageModel) { - try { - var id = _$$_REQUIRE(_dependencyMap[9]).StringUtils.getLastPathSegment(url); - - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.VIDEO; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_enrichment_video", - action: action, - type: "video", - url: url, - video_id: id, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - id: id - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryExtraUrl = exports.sendNewsmemoryExtraUrl = function sendNewsmemoryExtraUrl(url, editionModel, pageModel) { - try { - var analyticsUrl = url.replace(/\//g, "|"); - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.PAGE_CLICK; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_page_clickthrough", - action: action, - url: url, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - url: analyticsUrl - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryArticleClickThrough = exports.sendNewsmemoryArticleClickThrough = function sendNewsmemoryArticleClickThrough(editionModel, pageModel, article, url) { - try { - var analyticsUrl = url.replace(/\//g, "|"); - var issue = editionModel.getIssue(); - - var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); - - var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); - - var article_id = article.getXmlId(); - var title = getArticleTitle(article); - - var action = _$$_REQUIRE(_dependencyMap[11]).analyticsScreenTypes.ARTICLE_CLICK; - - sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { - event: "epaper_article_clickthrough", - action: action, - remp: encodeURIComponent(article_id), - article_id: article_id, - title: title, - url: url, - screen: (0, _$$_REQUIRE(_dependencyMap[10]).getScreenString)({ - type: action, - issue: issue, - edition: edition, - page: page, - article: article_id, - title: title, - url: analyticsUrl - }) - })); - } catch (e) {} - }; - - var sendNewsmemoryEditionLoad = exports.sendNewsmemoryEditionLoad = function sendNewsmemoryEditionLoad(edition, page) { - var _global$getActivePSet3 = global.getActivePSetup(), - adobeAnalyticsEnabled = _global$getActivePSet3.adobeAnalyticsEnabled, - adobeAnalyticsConfig = _global$getActivePSet3.adobeAnalyticsConfig; - - if (adobeAnalyticsEnabled && adobeAnalyticsConfig) { - (0, _$$_REQUIRE(_dependencyMap[8]).resetAdobeAnalyticsFirstScrolledSent)(); - var params = getNewsmemoryAnalyticsDefaultParams(edition, page); - (0, _$$_REQUIRE(_dependencyMap[8]).trackADBMobileAction)(adobeAnalyticsConfig.editionLoadActionName, params); - } - }; -},1900,[3,4,665,664,668,856,1901,1905,1910,438,1906,1909]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.NewspaperSessionManager = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _NewspaperSession = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var NewspaperSessionManagerSingleton = function (_SessionManagerSingle) { - function NewspaperSessionManagerSingleton() { - (0, _classCallCheck2.default)(this, NewspaperSessionManagerSingleton); - return _callSuper(this, NewspaperSessionManagerSingleton, arguments); - } - - (0, _inherits2.default)(NewspaperSessionManagerSingleton, _SessionManagerSingle); - return (0, _createClass2.default)(NewspaperSessionManagerSingleton, [{ - key: "startSession", - value: function startSession(_ref) { - var paper = _ref.paper, - edition = _ref.edition, - issue = _ref.issue; - this.activeKey = this.getSessionKey(); - var session = new _NewspaperSession.default(paper, edition, issue); - this.storeSession(this.activeKey, session); - return session; - } - }, { - key: "parseSession", - value: function parseSession(rawSession) { - try { - var _JSON$parse = JSON.parse(rawSession), - paper = _JSON$parse.paper, - edition = _JSON$parse.edition, - issue = _JSON$parse.issue, - startTime = _JSON$parse.startTime, - rawActions = _JSON$parse.actions, - rawNavigation = _JSON$parse.navigation; - - var actions = rawActions.map(function (rawAction) { - var _JSON$parse2 = JSON.parse(rawAction), - name = _JSON$parse2.name, - params = _JSON$parse2.params, - time = _JSON$parse2.time; - - return new (_$$_REQUIRE(_dependencyMap[8]).Action)(name, params, time); - }); - var routes = rawNavigation.map(function (rawRoute) { - var route = rawRoute.route, - time = rawRoute.time; - return new (_$$_REQUIRE(_dependencyMap[8]).Route)(route, time); - }); - return new _NewspaperSession.default(paper, edition, issue, actions, routes, startTime); - } catch (e) {} - - return undefined; - } - }]); - }(_$$_REQUIRE(_dependencyMap[9]).SessionManagerSingleton); - - var NewspaperSessionManager = exports.NewspaperSessionManager = function () { - function NewspaperSessionManager() { - (0, _classCallCheck2.default)(this, NewspaperSessionManager); - } - - return (0, _createClass2.default)(NewspaperSessionManager, null, [{ - key: "init", - value: function init() { - NewspaperSessionManager.instance = new NewspaperSessionManagerSingleton(); - NewspaperSessionManager.instance.load(); - } - }, { - key: "getInstance", - value: function getInstance() { - if (NewspaperSessionManager.instance === undefined) { - NewspaperSessionManager.init(); - } - - return NewspaperSessionManager.instance; - } - }, { - key: "addAction", - value: function addAction(name, params) { - NewspaperSessionManager.getInstance().addAction(name, params); - } - }, { - key: "addRoute", - value: function addRoute(route, params) { - NewspaperSessionManager.getInstance().addRoute(route, params); - } - }, { - key: "getActiveSessionReport", - value: function getActiveSessionReport() { - return NewspaperSessionManager.getInstance().getActiveSessionReport(); - } - }, { - key: "getActiveSessionString", - value: function getActiveSessionString() { - return NewspaperSessionManager.getInstance().getActiveSessionString(); - } - }, { - key: "flushActiveSession", - value: function () { - var _flushActiveSession = (0, _asyncToGenerator2.default)(function* () { - return NewspaperSessionManager.getInstance().flushSession(); - }); - - function flushActiveSession() { - return _flushActiveSession.apply(this, arguments); - } - - return flushActiveSession; - }() - }, { - key: "storeActiveSessionToFile", - value: function () { - var _storeActiveSessionToFile = (0, _asyncToGenerator2.default)(function* () { - return NewspaperSessionManager.getInstance().storeActiveSessionToFile(); - }); - - function storeActiveSessionToFile() { - return _storeActiveSessionToFile.apply(this, arguments); - } - - return storeActiveSessionToFile; - }() - }]); - }(); -},1901,[3,270,6,7,11,13,14,1902,863,1903]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Session2 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var NewspaperSession = exports.default = function (_Session) { - function NewspaperSession(paper, edition, issue) { - var _this; - - var actions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - var routes = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; - var time = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : new Date().getTime(); - (0, _classCallCheck2.default)(this, NewspaperSession); - _this = _callSuper(this, NewspaperSession, [actions, routes, time]); - _this.paper = paper; - _this.edition = edition; - _this.issue = issue; - return _this; - } - - (0, _inherits2.default)(NewspaperSession, _Session); - return (0, _createClass2.default)(NewspaperSession, [{ - key: "getPaperInfo", - value: function getPaperInfo() { - return { - paper: this.paper, - edition: this.edition, - issue: this.issue - }; - } - }, { - key: "getOtherInfo", - value: function getOtherInfo() { - var otherInfo = {}; - var downloadAction = this.actions.find(function (action) { - return action.getName() === "download_db"; - }); - - if (downloadAction) { - var _downloadAction$getPa = downloadAction.getParams(), - speed = _downloadAction$getPa.speed; - - if (speed) { - otherInfo.downloadSpeed = speed; - } - } - - return otherInfo; - } - }, { - key: "getReport", - value: function getReport() { - var paperInfo = this.getPaperInfo(); - var otherInfo = this.getOtherInfo(); - return Object.assign({}, (0, _get2.default)((0, _getPrototypeOf2.default)(NewspaperSession.prototype), "getReport", this).call(this), paperInfo, otherInfo); - } - }, { - key: "getFullReport", - value: function getFullReport() { - var paperInfo = this.getPaperInfo(); - var otherInfo = this.getOtherInfo(); - return Object.assign({}, (0, _get2.default)((0, _getPrototypeOf2.default)(NewspaperSession.prototype), "getFullReport", this).call(this), paperInfo, otherInfo); - } - }, { - key: "toString", - value: function toString() { - return "{\"paper\": \"" + this.paper + "\", \"edition\": \"" + this.edition + "\", \"issue\": \"" + this.issue + "\", \"startTime\": " + this.startTime + ", \"startOrientation\": \"" + this.startOrientation + "\", \"actions\": " + JSON.stringify(this.actions.map(function (action) { - return action.toString(); - })) + ", \"navigation\": " + JSON.stringify(this.navigation.map(function (route) { - return route.toString(); - })) + "}"; - } - }]); - }(_Session2.default); -},1902,[3,6,7,11,85,13,14,863]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.SessionManagerSingleton = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _Session = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _SessionHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - var SessionManagerSingleton = exports.SessionManagerSingleton = function () { - function SessionManagerSingleton() { - (0, _classCallCheck2.default)(this, SessionManagerSingleton); - this.sessions = {}; - } - - return (0, _createClass2.default)(SessionManagerSingleton, [{ - key: "load", - value: function () { - var _load = (0, _asyncToGenerator2.default)(function* () { - var _this = this; - - var allSessions = yield _SessionHelper.default.getAllItems(); - - if (allSessions) { - var sessionsToSend = Object.keys(allSessions).reduce(function (current, sessionKey) { - var session = _this.parseSession(allSessions[sessionKey]); - - if (session) { - current[sessionKey] = session; - } else { - _SessionHelper.default.removeItem(sessionKey); - } - - return current; - }, {}); - Object.keys(sessionsToSend).forEach(function (key) { - return _this.flushSession(key); - }); - } - }); - - function load() { - return _load.apply(this, arguments); - } - - return load; - }() - }, { - key: "getSessionKey", - value: function getSessionKey() { - return _$$_REQUIRE(_dependencyMap[8]).StringUtils.getRandomHash(); - } - }, { - key: "startSession", - value: function startSession() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - this.activeKey = this.getSessionKey(); - var session = new _Session.default(); - this.storeSession(this.activeKey, session); - return session; - } - }, { - key: "getActiveSession", - value: function getActiveSession(params) { - return this.activeKey && this.sessions[this.activeKey] ? this.sessions[this.activeKey] : this.startSession(params); - } - }, { - key: "addAction", - value: function addAction(name, params) { - var activeSession = this.getActiveSession(params); - activeSession.addAction(name, params); - this.storeSession(this.activeKey, activeSession); - } - }, { - key: "addRoute", - value: function addRoute(name, params) { - var activeSession = this.getActiveSession(params); - activeSession.addRoute(name); - this.storeSession(this.activeKey, activeSession); - } - }, { - key: "storeSession", - value: function storeSession(key, session) { - if (key) { - this.sessions[key] = session; - - _SessionHelper.default.setItem(key, session.toString()); - } - } - }, { - key: "retrieveSession", - value: function () { - var _retrieveSession = (0, _asyncToGenerator2.default)(function* () { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - - if (key) { - var session = this.sessions[key] || (yield _SessionHelper.default.getItem(key)); - return session; - } - - return undefined; - }); - - function retrieveSession() { - return _retrieveSession.apply(this, arguments); - } - - return retrieveSession; - }() - }, { - key: "clearSession", - value: function clearSession() { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - - if (key) { - this.sessions[key] = undefined; - return _SessionHelper.default.removeItem(key); - } - - return false; - } - }, { - key: "uploadSession", - value: function () { - var _uploadSession = (0, _asyncToGenerator2.default)(function* (key, session) { - var _global$getActivePSet = global.getActivePSetup(), - enableSessionAutoUpload = _global$getActivePSet.enableSessionAutoUpload; - - if (session && enableSessionAutoUpload) { - yield _NewsmemoryAJAX.default.uploadSessionReport(key, session); - } - - return false; - }); - - function uploadSession(_x, _x2) { - return _uploadSession.apply(this, arguments); - } - - return uploadSession; - }() - }, { - key: "flushSession", - value: function () { - var _flushSession = (0, _asyncToGenerator2.default)(function* () { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - - if (key) { - var session = this.sessions[key]; - this.clearSession(key); - yield this.uploadSession(key, session); - } - }); - - function flushSession() { - return _flushSession.apply(this, arguments); - } - - return flushSession; - }() - }, { - key: "parseSession", - value: function parseSession(rawSession) { - try { - var _JSON$parse = JSON.parse(rawSession), - startTime = _JSON$parse.startTime, - rawActions = _JSON$parse.actions, - rawNavigation = _JSON$parse.navigation; - - var rawActionArray = JSON.parse(rawActions); - var actions = rawActionArray.map(function (_ref) { - var name = _ref.name, - params = _ref.params, - time = _ref.time; - return new _Session.Action(name, JSON.parse(params), time); - }); - var rawNavigationArray = JSON.parse(rawNavigation); - var routes = rawNavigationArray.map(function (_ref2) { - var name = _ref2.name, - time = _ref2.time; - return new _Session.Route(name, time); - }); - return new _Session.default(actions, routes, startTime); - } catch (e) {} - - return undefined; - } - }, { - key: "getSessionDuration", - value: function getSessionDuration() { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - var session = this.sessions[key]; - return session ? session.getDuration() : 0; - } - }, { - key: "getSessionReport", - value: function getSessionReport() { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - var session = this.sessions[key]; - return session ? session.getReport() : undefined; - } - }, { - key: "getSessionFullReport", - value: function getSessionFullReport() { - var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; - var session = this.sessions[key]; - return session ? session.getFullReport() : undefined; - } - }, { - key: "getActiveSessionReport", - value: function getActiveSessionReport() { - return this.getSessionReport(this.activeKey); - } - }, { - key: "getActiveSessionFullReport", - value: function getActiveSessionFullReport() { - return this.getSessionFullReport(this.activeKey); - } - }, { - key: "getActiveSessionString", - value: function getActiveSessionString() { - if (this.activeKey) { - var session = this.sessions[this.activeKey]; - return session ? session.toString() : undefined; - } - - return undefined; - } - }, { - key: "storeActiveSessionToFile", - value: function () { - var _storeActiveSessionToFile = (0, _asyncToGenerator2.default)(function* () { - var fullReport = this.getActiveSessionFullReport(); - - if (fullReport) { - try { - yield _tecnaviaFileUtils.default.mkdir(_tecnaviaFileUtils.default.getDebugDirectory()); - } catch (e) {} - - var filePath = _tecnaviaFileUtils.default.getDebugDirectory() + global.machineId + "_" + this.activeKey + ".json"; - - try { - yield _tecnaviaFileUtils.default.appendFile(filePath, JSON.stringify(fullReport)); - - if (yield _tecnaviaFileUtils.default.exists(filePath)) { - return filePath; - } - } catch (e) {} - } - - return undefined; - }); - - function storeActiveSessionToFile() { - return _storeActiveSessionToFile.apply(this, arguments); - } - - return storeActiveSessionToFile; - }() - }]); - }(); - - var SessionManager = exports.default = function () { - function SessionManager() { - (0, _classCallCheck2.default)(this, SessionManager); - } - - return (0, _createClass2.default)(SessionManager, null, [{ - key: "init", - value: function init() { - SessionManager.instance = new SessionManagerSingleton(); - SessionManager.instance.load(); - } - }, { - key: "getInstance", - value: function getInstance() { - if (SessionManager.instance === undefined) { - SessionManager.init(); - } - - return SessionManager.instance; - } - }, { - key: "addAction", - value: function addAction(name, params) { - SessionManager.getInstance().addAction(name, params); - } - }, { - key: "addRoute", - value: function addRoute(name, params) { - SessionManager.getInstance().addRoute(name, params); - } - }, { - key: "getActiveSessionReport", - value: function getActiveSessionReport() { - return SessionManager.getInstance().getActiveSessionReport(); - } - }, { - key: "getActiveSessionString", - value: function getActiveSessionString() { - return SessionManager.getInstance().getActiveSessionString(); - } - }, { - key: "storeActiveSessionToFile", - value: function () { - var _storeActiveSessionToFile2 = (0, _asyncToGenerator2.default)(function* () { - return SessionManager.getInstance().storeActiveSessionToFile(); - }); - - function storeActiveSessionToFile() { - return _storeActiveSessionToFile2.apply(this, arguments); - } - - return storeActiveSessionToFile; - }() - }]); - }(); -},1903,[3,270,6,7,863,1904,566,406,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var SessionHelper = exports.default = function () { - function SessionHelper() { - (0, _classCallCheck2.default)(this, SessionHelper); - } - - return (0, _createClass2.default)(SessionHelper, null, [{ - key: "getAllItems", - value: function () { - var _getAllItems = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(SessionHelper.SP.name); - }); - - function getAllItems() { - return _getAllItems.apply(this, arguments); - } - - return getAllItems; - }() - }, { - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(SessionHelper.SP.name, key); - }); - - function getItem(_x) { - return _getItem.apply(this, arguments); - } - - return getItem; - }() - }, { - key: "setItem", - value: function () { - var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(SessionHelper.SP.name, key, value); - }); - - function setItem(_x2, _x3) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "removeItem", - value: function () { - var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(SessionHelper.SP.name, key); - }); - - function removeItem(_x4) { - return _removeItem.apply(this, arguments); - } - - return removeItem; - }() - }]); - }(); - - SessionHelper.SP = { - name: "sessions" - }; -},1904,[3,270,6,7,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.screenMapping = exports.eventMapping = undefined; - - var mapOnObjRequestedAndValidParams = function mapOnObjRequestedAndValidParams() { - var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var paramsKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var mapped = {}; - - for (var i = 0; i < paramsKey.length; i++) { - var value = obj[paramsKey[i]]; - - if (value === undefined) { - throw new Error("Analytics -> " + paramsKey[i] + " is missing or undefined"); - } else { - mapped[paramsKey[i]] = "" + value; - } - } - - return mapped; - }; - - var mapReadOnEvent = function mapReadOnEvent(params) { - return { - customEvent: "epaper_read_article", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "title", "section"]), { - mode: params.mode || _$$_REQUIRE(_dependencyMap[1]).NewsmemoryArticleModes.TEXT - }) - }; - }; - - var mapZoomOnEvent = function mapZoomOnEvent(params) { - return { - customEvent: "epaper_zoom", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page"])) - }; - }; - - var mapScrolledOnEvent = function mapScrolledOnEvent(params) { - return { - customEvent: "epaper_scroll", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page"])) - }; - }; - - var mapArticleClickThroughOnEvent = function mapArticleClickThroughOnEvent(params) { - return { - customEvent: "epaper_article_clickthrough", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "url"])) - }; - }; - - var mapPageClickThroughOnEvent = function mapPageClickThroughOnEvent(params) { - return { - customEvent: "epaper_page_clickthrough", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "url"])) - }; - }; - - var mapShareOnEvent = function mapShareOnEvent(params) { - return { - customEvent: "epaper_share", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "platform"])) - }; - }; - - var mapGalleryOnEvent = function mapGalleryOnEvent(params) { - return { - customEvent: "epaper_enrichment_gallery", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "gallery_id", "index", "id", "type"])) - }; - }; - - var mapArticleGalleryOnEvent = function mapArticleGalleryOnEvent(params) { - return { - customEvent: "epaper_article_gallery", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "title", "index", "type"])) - }; - }; - - var mapVideoOnEvent = function mapVideoOnEvent(params) { - return { - customEvent: "epaper_enrichment_video", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "video_id"]), { - type: params.type || "video" - }) - }; - }; - - var mapIndexOnEvent = function mapIndexOnEvent(params) { - return { - customEvent: "epaper_index", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition"])) - }; - }; - - var mapSectionIndexOnEvent = function mapSectionIndexOnEvent(params) { - return { - customEvent: "epaper_section_index", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "section"])) - }; - }; - - var mapOptionspageOnEvent = function mapOptionspageOnEvent(params) { - return { - customEvent: "epaper_optionspage", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["tab"])) - }; - }; - - var mapThumbnailsOnEvent = function mapThumbnailsOnEvent(params) { - return { - customEvent: "epaper_thumbs", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition"])) - }; - }; - - var screenMapping = exports.screenMapping = function screenMapping() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = params.action, - screen = params.screen, - remp = params.remp, - section = params.section, - tab = params.tab; - - if (!action) { - throw new Error("Analytics params is empty"); - } - - if (!screen) { - throw new Error("Analytics screen is empty"); - } - - var result = { - action: action, - screen: _$$_REQUIRE(_dependencyMap[2]).StringUtils.decodeURIComponent(screen), - remp: remp, - customDimensions: (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToCustomDimensions)(params) - }; - - try { - var SCROLLED = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SCROLLED, - READ = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.READ, - ZOOM = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ZOOM, - SHARE = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SHARE, - PAGE_CLICK = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.PAGE_CLICK, - ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ARTICLE_CLICK, - VIDEO = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.VIDEO, - GALLERY = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.GALLERY, - ARTICLE_GALLERY = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ARTICLE_GALLERY, - INDEX = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.INDEX, - SECTION_INDEX = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SECTION_INDEX, - OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.OPTIONSPAGE, - THUMBS = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.THUMBS; - - switch (action) { - case READ: - result.event = mapReadOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.READ; - break; - - case ZOOM: - result.event = mapZoomOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.ZOOM; - break; - - case SCROLLED: - result.event = mapScrolledOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.SCROLLED; - break; - - case ARTICLE_CLICK: - result.event = mapArticleClickThroughOnEvent(params); - break; - - case SHARE: - result.event = mapShareOnEvent(params); - break; - - case GALLERY: - result.event = mapGalleryOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.GALLERY; - break; - - case ARTICLE_GALLERY: - result.event = mapArticleGalleryOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.ARTICLE_GALLERY; - break; - - case VIDEO: - result.event = mapVideoOnEvent(params); - break; - - case PAGE_CLICK: - result.event = mapPageClickThroughOnEvent(params); - break; - - case INDEX: - result.event = mapIndexOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.INDEX; - break; - - case SECTION_INDEX: - result.event = mapSectionIndexOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.SECTION_INDEX.replace("##section##", section); - break; - - case OPTIONSPAGE: - result.event = mapOptionspageOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.OPTIONSPAGE.replace("##tab##", tab); - break; - - case THUMBS: - result.event = mapThumbnailsOnEvent(params); - result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.THUMBS; - break; - } - } catch (e) { - throw e; - } - - return result; - }; - - var eventMapping = exports.eventMapping = function eventMapping(params) { - try { - var category = params.category; - - var SOCIAL_SHARE = _$$_REQUIRE(_dependencyMap[1]).analyticsEventTypes.SOCIAL_SHARE; - - switch (category) { - case SOCIAL_SHARE: - params.socialPlatform = (0, _$$_REQUIRE(_dependencyMap[0]).getShareTypeByApp)(params.socialPlatform); - break; - } - } catch (e) { - throw e; - } - - return params; - }; -},1905,[1906,1909,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ARTICLE_READ_ANALYTICS_COOL_DOWN = exports.ANALYTICS_SERVICES = undefined; - exports.gaBreakout = gaBreakout; - exports.getScreenString = undefined; - exports.getShareTypeByApp = getShareTypeByApp; - exports.mapParamsToCustomDimensions = undefined; - exports.mapParamsToFirebaseCustomDimensions = mapParamsToFirebaseCustomDimensions; - exports.replaceCustomDimensionsPlaceholders = exports.parseCustomDimensionsString = undefined; - - var _LiveConfig = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[3])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - var ANALYTICS_SERVICES = exports.ANALYTICS_SERVICES = { - GA3: "googleAnalytics3", - FIREBASE_GA: "firebaseGoogleAnalytics", - FIREBASE_GA_WEB: "firebaseGoogleAnalyticsWeb", - MATHER: "mather_analytics", - MATOMO: "matomo", - MATOMO_MAS: "matomo_mas", - COMSCORE: "comscore", - ADOBE: "adobeAnalytics", - FACEBOOK: "facebook", - REMP: "remp", - CHARTBEAT: "chartbeat", - BLUECONIC: "blueconic" - }; - var ARTICLE_READ_ANALYTICS_COOL_DOWN = exports.ARTICLE_READ_ANALYTICS_COOL_DOWN = 3000; - - function gaBreakout() { - if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS()) { - return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "iPad" : "iPhone"; - } - - if (global.isKindle) { - return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "KindleTablet" : "KindlePhone"; - } - - return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "AndroidTablet" : "AndroidPhone"; - } - - var getScreenString = exports.getScreenString = function getScreenString() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - type: String, - issue: String, - edition: String, - page: String, - article: String, - sharedApp: String, - url: String, - name: String, - index: Number, - section: String - }, - type = _ref.type, - issue = _ref.issue, - edition = _ref.edition, - _ref$page = _ref.page, - page = _ref$page === undefined ? "" : _ref$page, - _ref$article = _ref.article, - article = _ref$article === undefined ? "" : _ref$article, - _ref$title = _ref.title, - title = _ref$title === undefined ? "" : _ref$title, - _ref$sharedApp = _ref.sharedApp, - sharedApp = _ref$sharedApp === undefined ? "" : _ref$sharedApp, - _ref$url = _ref.url, - url = _ref$url === undefined ? "" : _ref$url, - _ref$id = _ref.id, - id = _ref$id === undefined ? "" : _ref$id, - _ref$name = _ref.name, - name = _ref$name === undefined ? "" : _ref$name, - _ref$index = _ref.index, - index = _ref$index === undefined ? 0 : _ref$index, - _ref$section = _ref.section, - section = _ref$section === undefined ? "" : _ref$section; - - var SCROLLED = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SCROLLED, - READ = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.READ, - ZOOM = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ZOOM, - SHARE = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SHARE, - PAGE_CLICK = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.PAGE_CLICK, - ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ARTICLE_CLICK, - VIDEO = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.VIDEO, - GALLERY = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.GALLERY, - ARTICLE_GALLERY = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ARTICLE_GALLERY, - INDEX = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.INDEX, - SECTION_INDEX = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SECTION_INDEX, - OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.OPTIONSPAGE, - THUMBS = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.THUMBS, - NOTICE_FULLSCREEN = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.NOTICE_FULLSCREEN; - - var screen = ""; - var titleToSend = title; - - if (titleToSend) { - titleToSend = titleToSend.replace(/\//g, "|"); - } - - switch (type) { - case SHARE: - screen = "/" + gaBreakout() + "/shares/" + sharedApp + "/" + issue + "/" + edition + "/" + page + "/" + article; - break; - - case READ: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/read/" + page + "/" + article; - - if (titleToSend) { - screen += ":" + titleToSend; - } - - break; - - case ZOOM: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/read/" + page + "/zoom"; - break; - - case SCROLLED: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/scrolled/" + page; - break; - - case PAGE_CLICK: - screen = "/" + gaBreakout() + "/clickThroughs/" + url + "/" + issue + "/" + edition + "/" + page + "/fullpage/browse"; - break; - - case ARTICLE_CLICK: - screen = "/" + gaBreakout() + "/clickThroughs/" + url + "/" + issue + "/" + edition + "/" + page + "/" + article; - - if (titleToSend) { - screen += ":" + titleToSend; - } - - screen += "/article"; - break; - - case VIDEO: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/video/" + id; - break; - - case GALLERY: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/gallery/" + titleToSend + "/" + index + "/" + id; - break; - - case ARTICLE_GALLERY: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/" + article; - - if (titleToSend) { - screen += ":" + titleToSend; - } - - screen += "/gallery/" + index; - break; - - case INDEX: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/index"; - break; - - case SECTION_INDEX: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/index/" + section.replace(/\//g, "|"); - break; - - case OPTIONSPAGE: - screen = "/" + gaBreakout() + "/optionspage/" + page; - break; - - case THUMBS: - screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/thumbs"; - break; - - case NOTICE_FULLSCREEN: - screen = "/notice/" + gaBreakout() + "/notice_fullscreen/" + name + "/" + id; - break; - } - - return screen; - }; - - function getShareTypeByApp(appBundle) { - if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isAndroid()) { - switch (appBundle) { - case "com.google.android.gm": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.GMAIL; - - case "com.facebook.katana": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FACEBOOK; - - case "com.twitter.android": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.TWITTER; - } - } else { - switch (appBundle) { - case "com.apple.UIKit.activity.Mail": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.EMAIL; - - case "com.apple.UIKit.activity.PostToFacebook": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FACEBOOK; - - case "com.apple.UIKit.activity.PostToTwitter": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.TWITTER; - - case "com.google.Gmail.ShareExtension": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.GMAIL; - - case "com.apple.UIKit.activity.Print": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.PRINT; - - case "com.apple.UIKit.activity.CopyToPasteboard": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.PASTEBOARD; - - case "com.apple.DocumentManagerUICore.SaveToFiles": - return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FILE; - } - } - - return appBundle; - } - - var replaceCustomDimensionsPlaceholders = exports.replaceCustomDimensionsPlaceholders = function replaceCustomDimensionsPlaceholders(value) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var encodeValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var customReplacement = arguments.length > 3 ? arguments[3] : undefined; - var newValue = value; - - var _global$getActivePSet = global.getActivePSetup(), - paperName = _global$getActivePSet.paperName, - loginStatus = _global$getActivePSet.loginStatus, - machine = _global$getActivePSet.machine; - - var action = params.action, - issue = params.issue, - article_id = params.article_id, - type = params.type, - gallery_id = params.gallery_id; - var m; - var regExp = new RegExp(/\$([a-zA-Z0-9]+)/g); - - while ((m = regExp.exec(value)) !== null) { - if (m.length > 1) { - var _paramValue; - - var placeholder = m[0]; - var name = m[1]; - var paramValue = params[name]; - - switch (name) { - case "device": - paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.model(); - break; - - case "deviceType": - paramValue = gaBreakout(); - break; - - case "deviceCategory": - paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getDeviceType(); - - if (paramValue === "Handset") { - paramValue = "Phone"; - } - - break; - - case "platform": - paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isAndroid() ? "Android" : "iOS"; - break; - - case "os": - paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getSystemName() + " " + _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getSystemVersion(); - break; - - case "domain": - paramValue = _$$_REQUIRE(_dependencyMap[4]).NetworkUtils.addDefaultProtocol(machine); - break; - - case "appVersion": - paramValue = _deviceUtils.default.getAppVersion(); - break; - - case "appName": - paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.appName(); - break; - - case "appSide": - var side = _LiveConfig.default.getAppSide(); - - paramValue = side === _LiveConfig.APP_SIDE.rss ? "LiveNews" : side; - break; - - case "paperName": - paramValue = paperName; - break; - - case "issueYear": - if (issue) { - paramValue = issue.substring(0, 4); - } - - break; - - case "issueMonth": - if (issue) { - paramValue = issue.substring(4, 6); - } - - break; - - case "issueDate": - if (issue && issue.length > 6) { - paramValue = issue.substring(6); - } - - break; - - case "daysAgo": - if (issue && issue.length > 6) { - paramValue = ""; - var daysAgo = _$$_REQUIRE(_dependencyMap[4]).DateUtils.getDaysFromDateToToday(issue) - 1; - - if (daysAgo > 0) { - paramValue = -daysAgo; - } - } - - break; - - case "articleId": - paramValue = article_id; - break; - - case "extId": - if (loginStatus) { - var extid = loginStatus.extid; - - if (!_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(extid)) { - paramValue = extid; - } - } - - break; - - case "TAUID": - if (loginStatus) { - var TAUID = loginStatus.TAUID; - - if (TAUID > -1) { - paramValue = TAUID; - } - } - - break; - - case "machineId": - var _global = global, - machineId = _global.machineId; - - if (machineId) { - paramValue = machineId.substring(machineId.length - 6); - } - - break; - - case "title": - var title = params.title; - - if (action === "read" && type && type.toLowerCase() !== "editorial") { - title = type; - } else if (action === "gallery" && gallery_id) { - title = gallery_id; - } - - paramValue = title; - break; - - case "ePaperAccess": - if (!_LiveConfig.default.isRssSide()) { - paramValue = "ePaper"; - - var _global$getNewsmemory = global.getNewsmemoryConfig(), - dbDownloadPSetup = _global$getNewsmemory.dbDownloadPSetup; - - if (dbDownloadPSetup) { - var _NewsmemoryUtils$pars = _newsmemoryUtils.default.parseXpSetup(dbDownloadPSetup), - mainpSetup = _NewsmemoryUtils$pars.mainpSetup; - - if (mainpSetup) { - if (mainpSetup.endsWith("_preview")) { - paramValue += "-preview"; - } else if (mainpSetup.endsWith("_issuedemo")) { - paramValue += "-demo"; - } - } - } - } - - break; - - default: - paramValue = params[name]; - break; - } - - if (typeof customReplacement === "function") { - paramValue = customReplacement(name, paramValue, params); - } - - paramValue = (_paramValue = paramValue) != null ? _paramValue : ""; - - if (encodeValue) { - paramValue = encodeURIComponent(paramValue); - } - - newValue = newValue.replace(placeholder, paramValue); - } - } - - return newValue; - }; - - var parseCustomDimensionsString = exports.parseCustomDimensionsString = function parseCustomDimensionsString(rawCustomDimensions) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (rawCustomDimensions) { - var customDimensions = _$$_REQUIRE(_dependencyMap[4]).StringUtils.parseQuerystring(replaceCustomDimensionsPlaceholders(rawCustomDimensions, params, true)); - - return Object.keys(customDimensions).reduce(function (result, current) { - var key = current.replace("dimension", ""); - result[key] = customDimensions[current]; - return result; - }, {}); - } - - return {}; - }; - - var mapParamsToCustomDimensions = exports.mapParamsToCustomDimensions = function mapParamsToCustomDimensions(params) { - var _global$getActivePSet2 = global.getActivePSetup(), - googleAnalyticsCustomDimensions = _global$getActivePSet2.googleAnalyticsCustomDimensions; - - return parseCustomDimensionsString(googleAnalyticsCustomDimensions, params); - }; - - function mapParamsToFirebaseCustomDimensions() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var _global$getActivePSet3 = global.getActivePSetup(), - firebaseAnalyticsCustomDimensions = _global$getActivePSet3.firebaseAnalyticsCustomDimensions; - - if (firebaseAnalyticsCustomDimensions) { - var customDimensions = _$$_REQUIRE(_dependencyMap[4]).StringUtils.parseQuerystring(replaceCustomDimensionsPlaceholders(firebaseAnalyticsCustomDimensions, params, true)); - - return Object.keys(customDimensions).reduce(function (result, current) { - var value = customDimensions[current]; - - if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNumber(value) || !_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(value)) { - result[current] = value; - } - - return result; - }, {}); - } - - return {}; - } -},1906,[1907,3,434,627,438,1909]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.APP_SIDE = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _KeyEvent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var APP_SIDE = exports.APP_SIDE = { - ePaper: "ePaper", - ePaperClassic: "ePaperClassic", - ePaperHTML5: "ePaperHTML5", - rss: "rss" - }; - - var LiveConfigSingleton = function () { - function LiveConfigSingleton() { - var _this = this; - - (0, _classCallCheck2.default)(this, LiveConfigSingleton); - this.rssStartingUp = true; - this.lastRssCategory = ""; - this.startupNavigator = ""; - this.deletedRssDatabase = false; - this.isDrawerOpen = false; - this.appSide = undefined; - this.idEventSetValue = undefined; - this.idEventGetValue = undefined; - this.activeKeys = {}; - this.idEventSetValue = _$$_REQUIRE(_dependencyMap[5]).EventRegister.on(_events.default.LIVE_CONFIG_SET_VALUE, function (_ref) { - var key = _ref.key, - value = _ref.value, - resolve = _ref.resolve, - reject = _ref.reject; - - if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(_this, key)) { - _this[key] = value; - - _this._resolvePromise(resolve, _this[key]); - } else { - _this._rejectPromise(reject, key); - } - }); - this.idEventGetValue = _$$_REQUIRE(_dependencyMap[5]).EventRegister.on(_events.default.LIVE_CONFIG_GET_VALUE, function (_ref2) { - var key = _ref2.key, - resolve = _ref2.resolve, - reject = _ref2.reject; - - if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(_this, key)) { - _this._resolvePromise(resolve, _this[key]); - } else { - _this._rejectPromise(reject, key); - } - }); - } - - return (0, _createClass2.default)(LiveConfigSingleton, [{ - key: "set", - value: function set(key, value) { - if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(this, key)) { - this[key] = value; - } - } - }, { - key: "get", - value: function get(key) { - return this[key]; - } - }, { - key: "_resolvePromise", - value: function _resolvePromise(resolve, result) { - if (typeof resolve === "function") { - resolve(result); - } - } - }, { - key: "_rejectPromise", - value: function _rejectPromise(reject, key) { - if (typeof reject === "function") { - reject(new Error(key + " not found")); - } - } - }]); - }(); - - var LiveConfig = exports.default = function () { - function LiveConfig() { - (0, _classCallCheck2.default)(this, LiveConfig); - } - - return (0, _createClass2.default)(LiveConfig, null, [{ - key: "init", - value: function init() { - LiveConfig.instance = new LiveConfigSingleton(); - } - }, { - key: "getInstance", - value: function getInstance() { - if (LiveConfig.instance === undefined) { - LiveConfig.init(); - } - - return LiveConfig.instance; - } - }, { - key: "isDrawerOpen", - value: function isDrawerOpen() { - return LiveConfig.getInstance().get("isDrawerOpen"); - } - }, { - key: "setDrawerOpen", - value: function setDrawerOpen(value) { - LiveConfig.getInstance().set("isDrawerOpen", value); - } - }, { - key: "isRssDbDeleted", - value: function isRssDbDeleted() { - return LiveConfig.getInstance().get("deletedRssDatabase"); - } - }, { - key: "setRssDbDeleted", - value: function setRssDbDeleted(value) { - LiveConfig.getInstance().set("deletedRssDatabase", value); - } - }, { - key: "isRssStartingUp", - value: function isRssStartingUp() { - return LiveConfig.getInstance().get("rssStartingUp"); - } - }, { - key: "setRssStartingUp", - value: function setRssStartingUp(value) { - LiveConfig.getInstance().set("rssStartingUp", value); - } - }, { - key: "getLastRssCategory", - value: function getLastRssCategory() { - return LiveConfig.getInstance().get("lastRssCategory") || global.lastRssCategory; - } - }, { - key: "setLastRssCategory", - value: function setLastRssCategory(value) { - global.lastRssCategory = value; - LiveConfig.getInstance().set("lastRssCategory", value); - } - }, { - key: "resetLastRssCategory", - value: function resetLastRssCategory() { - global.lastRssCategory = undefined; - LiveConfig.getInstance().set("lastRssCategory", undefined); - } - }, { - key: "getStartUpNavigator", - value: function getStartUpNavigator() { - return LiveConfig.getInstance().get("startupNavigator"); - } - }, { - key: "setStartUpNavigator", - value: function setStartUpNavigator(value) { - LiveConfig.getInstance().set("startupNavigator", value); - } - }, { - key: "getAppSide", - value: function getAppSide() { - return LiveConfig.getInstance().get("appSide"); - } - }, { - key: "getActiveKeys", - value: function getActiveKeys() { - return LiveConfig.getInstance().get("activeKeys") || {}; - } - }, { - key: "setSide", - value: function setSide(side) { - global.lastAppSide = side; - LiveConfig.getInstance().set("appSide", side); - } - }, { - key: "setEpaperSide", - value: function setEpaperSide() { - LiveConfig.setSide(APP_SIDE.ePaper); - } - }, { - key: "setEpaperClassicSide", - value: function setEpaperClassicSide() { - LiveConfig.setSide(APP_SIDE.ePaperClassic); - } - }, { - key: "setEpaperHTML5Side", - value: function setEpaperHTML5Side() { - LiveConfig.setSide(APP_SIDE.ePaperHTML5); - } - }, { - key: "setRssSide", - value: function setRssSide() { - LiveConfig.setSide(APP_SIDE.rss); - } - }, { - key: "isEpaperSide", - value: function isEpaperSide() { - var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); - return side === APP_SIDE.ePaper; - } - }, { - key: "isEpaperClassicSide", - value: function isEpaperClassicSide() { - var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); - return side === APP_SIDE.ePaperClassic; - } - }, { - key: "isEpaperHTML5Side", - value: function isEpaperHTML5Side() { - var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); - return side === APP_SIDE.ePaperHTML5; - } - }, { - key: "isRssSide", - value: function isRssSide() { - var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); - return side === APP_SIDE.rss; - } - }, { - key: "keyDown", - value: function keyDown(event) { - var activeKeys = LiveConfig.getActiveKeys(); - activeKeys[event.keyCode] = event; - LiveConfig.getInstance().set("activeKeys", activeKeys); - } - }, { - key: "keyUp", - value: function keyUp(event) { - var activeKeys = LiveConfig.getActiveKeys(); - delete activeKeys[event.keyCode]; - LiveConfig.getInstance().set("activeKeys", activeKeys); - } - }, { - key: "getSortedKeys", - value: function getSortedKeys() { - var activeKeys = LiveConfig.getActiveKeys(); - - if (!activeKeys) { - throw new Error("no keys set"); - } - - var keysPressed = Object.values(activeKeys); - return keysPressed.sort(function (keyA, keyB) { - return keyA.downTime - keyB.downTime; - }); - } - }, { - key: "getKeysCombo", - value: function getKeysCombo() { - return LiveConfig.getSortedKeys().map(function (event) { - return event.getPressed(); - }).join("_"); - } - }, { - key: "getKeysComboNoRL", - value: function getKeysComboNoRL() { - return LiveConfig.getSortedKeys().map(function (event) { - return event.getPressed().replace(/_(LEFT|RIGHT)/g, ""); - }).join("_"); - } - }]); - }(); -},1907,[3,6,7,436,1908,564,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.VOICE_GROUPS = exports.KEY_GROUPS = exports.ANY_KEY = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var KEYS_MAP = _reactNative.Platform.select({ - ios: { - 4: "A", - 5: "B", - 6: "C", - 7: "D", - 8: "E", - 9: "F", - 10: "G", - 11: "H", - 12: "I", - 13: "J", - 14: "K", - 15: "L", - 16: "M", - 17: "N", - 18: "O", - 19: "P", - 20: "Q", - 21: "R", - 22: "S", - 23: "T", - 24: "U", - 25: "V", - 26: "W", - 27: "X", - 28: "Y", - 29: "Z", - 30: "1", - 31: "2", - 32: "3", - 33: "4", - 34: "5", - 35: "6", - 36: "7", - 37: "8", - 38: "9", - 39: "0", - 40: "ENTER", - 41: "ESCAPE", - 42: "DEL", - 43: "TAB", - 44: "SPACE", - 48: "+", - 56: "-", - 74: "MOVE_HOME", - 75: "PAGE_UP", - 77: "MOVE_END", - 78: "PAGE_DOWN", - 79: "DPAD_RIGHT", - 80: "DPAD_LEFT", - 81: "DPAD_DOWN", - 82: "DPAD_UP", - 86: "NUMPAD_SUBTRACT", - 87: "NUMPAD_ADD", - 88: "NUMPAD_ENTER", - 89: "NUMPAD_1", - 90: "NUMPAD_2", - 91: "NUMPAD_3", - 92: "NUMPAD_4", - 93: "NUMPAD_5", - 94: "NUMPAD_6", - 95: "NUMPAD_7", - 96: "NUMPAD_8", - 97: "NUMPAD_9", - 98: "NUMPAD_0", - 99: "NUMPAD_DOT", - 117: "HELP", - 224: "CTRL_LEFT", - 225: "SHIFT_LEFT", - 226: "ALT_LEFT", - 228: "CTRL_RIGHT", - 229: "SHIFT_RIGHT", - 230: "ALT_RIGHT" - }, - android: { - 3: "HOME", - 7: "0", - 8: "1", - 9: "2", - 10: "3", - 11: "4", - 12: "5", - 13: "6", - 14: "7", - 15: "8", - 16: "9", - 19: "DPAD_UP", - 20: "DPAD_DOWN", - 21: "DPAD_LEFT", - 22: "DPAD_RIGHT", - 23: "DPAD_CENTER", - 29: "A", - 30: "B", - 31: "C", - 32: "D", - 33: "E", - 34: "F", - 35: "G", - 36: "H", - 37: "I", - 38: "J", - 39: "K", - 40: "L", - 41: "M", - 42: "N", - 43: "O", - 44: "P", - 45: "Q", - 46: "R", - 47: "S", - 48: "T", - 49: "U", - 50: "V", - 51: "W", - 52: "X", - 53: "Y", - 54: "Z", - 57: "ALT_LEFT", - 58: "ALT_RIGHT", - 59: "SHIFT_LEFT", - 60: "SHIFT_RIGHT", - 62: "SPACE", - 61: "TAB", - 66: "ENTER", - 67: "DEL", - 69: "-", - 81: "+", - 84: "SEARCH", - 92: "PAGE_UP", - 93: "PAGE_DOWN", - 111: "ESCAPE", - 113: "CTRL_LEFT", - 114: "CTRL_RIGHT", - 122: "MOVE_HOME", - 123: "MOVE_END", - 144: "NUMPAD_0", - 145: "NUMPAD_1", - 146: "NUMPAD_2", - 147: "NUMPAD_3", - 148: "NUMPAD_4", - 149: "NUMPAD_5", - 150: "NUMPAD_6", - 151: "NUMPAD_7", - 152: "NUMPAD_8", - 153: "NUMPAD_9", - 156: "NUMPAD_SUBTRACT", - 157: "NUMPAD_ADD", - 158: "NUMPAD_DOT", - 160: "NUMPAD_ENTER", - 168: "ZOOM_IN", - 169: "ZOOM_OUT", - 176: "SETTINGS", - 259: "HELP" - } - }); - - var ANY_KEY = exports.ANY_KEY = "ANY"; - var VOICE_GROUPS = exports.VOICE_GROUPS = { - GO_UP: function GO_UP() { - return [global.strings("voice_back")]; - }, - WHAT: function WHAT() { - return [global.strings("voice_what")]; - }, - NEXT: function NEXT() { - return [global.strings("voice_next")]; - }, - NEXT_PAGE: function NEXT_PAGE() { - return [global.strings("voice_next_page")]; - }, - PREVIOUS: function PREVIOUS() { - return [global.strings("voice_previous")]; - }, - PREVIOUS_PAGE: function PREVIOUS_PAGE() { - return [global.strings("voice_previous_page")]; - }, - STOP: function STOP() { - return [global.strings("voice_stop")]; - }, - READ: function READ() { - return [global.strings("voice_read")]; - }, - CLOSE_APP: function CLOSE_APP() { - return [global.strings("voice_close")]; - }, - ITEM_UP: function ITEM_UP() { - return [global.strings("voice_up")]; - }, - ITEM_DOWN: function ITEM_DOWN() { - return [global.strings("voice_down")]; - }, - ITEM_SELECT: function ITEM_SELECT() { - return [global.strings("voice_select")]; - } - }; - var KEY_GROUPS = exports.KEY_GROUPS = { - ANY: [ANY_KEY], - CLOSE: ["ESCAPE"], - SUBMIT: ["ENTER", "NUMPAD_ENTER"], - OPEN: ["5", "NUMPAD_5", "O", "NUMPAD_DOT"], - SELECT: ["5", "NUMPAD_5", "O", "ENTER", "NUMPAD_ENTER"], - LEFT: ["4", "NUMPAD_4", "J", "DPAD_LEFT"], - RIGHT: ["6", "NUMPAD_6", "L", "DPAD_RIGHT"], - UP: ["8", "NUMPAD_8", "I", "DPAD_UP"], - DOWN: ["2", "NUMPAD_2", "K", "DPAD_DOWN"], - PAGE_UP: ["9", "NUMPAD_9", "N", "PAGE_UP"], - PAGE_DOWN: ["3", "NUMPAD_3", "M", "PAGE_DOWN"], - HOME: ["7", "NUMPAD_7", "MOVE_HOME"], - END: ["1", "NUMPAD_1", "MOVE_END"], - MORE: ["+", "NUMPAD_ADD"], - LESS: ["-", "NUMPAD_SUBTRACT"], - DELETE: ["DEL"] - }; - - var KeyEvent = exports.default = function () { - function KeyEvent(event) { - (0, _classCallCheck2.default)(this, KeyEvent); - Object.assign(this, event); - } - - return (0, _createClass2.default)(KeyEvent, [{ - key: "getPressed", - value: function getPressed() { - return KEYS_MAP[this.keyCode] || ""; - } - }]); - }(); -},1908,[3,6,7,18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.firebaseAnalyticsScreenNames = exports.analyticsScreenTypes = exports.analyticsEventTypes = exports.NewsmemoryShareType = exports.NewsmemoryArticleModes = undefined; - var analyticsScreenTypes = exports.analyticsScreenTypes = { - LAUNCH: "launch", - SCROLLED: "scrolled", - READ: "read", - ZOOM: "zoom", - SHARE: "share", - PAGE_CLICK: "page_clickthrough", - ARTICLE_CLICK: "article_clickthrough", - VIDEO: "video", - GALLERY: "gallery", - ARTICLE_GALLERY: "article_gallery", - INDEX: "index", - SECTION_INDEX: "section_index", - OPTIONSPAGE: "optionspage", - THUMBS: "thumbnails", - NOTICE_FULLSCREEN: "notice_fullscreen", - RSS_ARTICLE_READ: "rss_read", - RSS_DRAWER: "rss_drawer" - }; - var firebaseAnalyticsScreenNames = exports.firebaseAnalyticsScreenNames = { - SCROLLED: "ePaper page", - READ: "ePaper article", - ZOOM: "ePaper page detail", - INDEX: "ePaper index", - SECTION_INDEX: "ePaper ##section## section index", - OPTIONSPAGE: "ePaper ##tab## tab", - THUMBS: "ePaper thumbnails", - GALLERY: "ePaper gallery", - ARTICLE_GALLERY: "ePaper article gallery" - }; - var analyticsEventTypes = exports.analyticsEventTypes = { - LOGIN: "login", - TTS: "text_to_speech", - SKIP_TO_END: "skip_to_end", - DOUBLE_TAP_TO_ZOOM: "double_tap_to_zoom", - PINCH_TO_ZOOM: "pinch_to_zoom", - TOGGLE_TO_PRINT: "toggle_to_print", - TOGGLE_TO_DIGITAL: "toggle_to_digital", - SOCIAL_SHARE: "social_share", - SCROLL_ZOOMED: "scroll_zoomed", - TRANSLATE: "translate", - FONT_SIZE: "font_size_change", - GRAPH_SIZE: "graph_size_change", - TOGGLE_FULLSCREEN: "toggle_fullscreen", - PRINT: "print", - DOWNLOAD_PDF: "download_pdf", - ROTATE: "rotate", - LINK_CLICKED: "link_clicked" - }; - var NewsmemoryShareType = exports.NewsmemoryShareType = { - ALL: "all", - FACEBOOK: "facebook", - TWITTER: "twitter", - REDDIT: "reddit", - EMAIL: "email", - GMAIL: "gmail", - PRINT: "print", - PASTEBOARD: "pasteboard", - FILE: "file", - PDF: "pdf", - OTHER: "other" - }; - var NewsmemoryArticleModes = exports.NewsmemoryArticleModes = { - TEXT: "text", - GRAPHIC: "graphic" - }; -},1909,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.clearRecently = clearRecently; - exports.initAnalytics = initAnalytics; - exports.initGoogleAnalyticsFirebase = initGoogleAnalyticsFirebase; - exports.initMatomo = initMatomo; - exports.initMatomoTracker = initMatomoTracker; - exports.resetAdobeAnalyticsFirstScrolledSent = resetAdobeAnalyticsFirstScrolledSent; - exports.sendAdFailedError = sendAdFailedError; - exports.sendAdSuccess = sendAdSuccess; - exports.sendExternalIdToAnalytics = sendExternalIdToAnalytics; - exports.trackADBMobileAction = trackADBMobileAction; - exports.trackADBMobileState = trackADBMobileState; - exports.trackATTPermission = trackATTPermission; - exports.trackCustomFirebaseEvent = trackCustomFirebaseEvent; - exports.trackCustomFirebaseScreen = trackCustomFirebaseScreen; - exports.trackEnterBackground = trackEnterBackground; - exports.trackEnterForeground = trackEnterForeground; - exports.trackEvent = trackEvent; - exports.trackFeedback = trackFeedback; - exports.trackRempAccount = trackRempAccount; - exports.trackScreen = trackScreen; - exports.trackStartup = trackStartup; - exports.trackWebInterstitial = trackWebInterstitial; - exports.updateAnalytics = updateAnalytics; - exports.updateAnalyticsClientList = updateAnalyticsClientList; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _Manager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - function initAnalytics() { - return _initAnalytics.apply(this, arguments); - } - - function _initAnalytics() { - _initAnalytics = (0, _asyncToGenerator2.default)(function* () { - return _Manager.default.init(); - }); - return _initAnalytics.apply(this, arguments); - } - - function initMatomo() { - try { - var _trackerManager$matom; - - (_trackerManager$matom = _Manager.default.matomoTracker) == null ? undefined : _trackerManager$matom.init(); - } catch (e) {} - } - - function initMatomoTracker() { - try { - var _trackerManager$matom2; - - (_trackerManager$matom2 = _Manager.default.matomoMasTracker) == null ? undefined : _trackerManager$matom2.init(); - } catch (e) {} - } - - function initGoogleAnalyticsFirebase() { - return _initGoogleAnalyticsFirebase.apply(this, arguments); - } - - function _initGoogleAnalyticsFirebase() { - _initGoogleAnalyticsFirebase = (0, _asyncToGenerator2.default)(function* () { - var _trackerManager$fireb3, _trackerManager$webTr3; - - var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - yield (_trackerManager$fireb3 = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb3.init(); - yield (_trackerManager$webTr3 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr3.init(force); - }); - return _initGoogleAnalyticsFirebase.apply(this, arguments); - } - - function updateAnalyticsClientList() { - var _trackerManager$gaTra; - - (_trackerManager$gaTra = _Manager.default.gaTracker) == null ? undefined : _trackerManager$gaTra.updateClientList(); - } - - function updateAnalytics() { - return _updateAnalytics.apply(this, arguments); - } - - function _updateAnalytics() { - _updateAnalytics = (0, _asyncToGenerator2.default)(function* () { - var _trackerManager$webTr4; - - updateAnalyticsClientList(); - yield (_trackerManager$webTr4 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr4.init(); - (0, _$$_REQUIRE(_dependencyMap[4]).addDebugOperation)("updateAnalytics", "done"); - }); - return _updateAnalytics.apply(this, arguments); - } - - function resetAdobeAnalyticsFirstScrolledSent() { - _Manager.default.resetAdobeAnalyticsFirstScrolledSent(); - } - - function sendExternalIdToAnalytics() { - return _sendExternalIdToAnalytics.apply(this, arguments); - } - - function _sendExternalIdToAnalytics() { - _sendExternalIdToAnalytics = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup = global.getMainPSetup(), - firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; - - if (firebaseAnalyticsSendExternalId) { - yield initGoogleAnalyticsFirebase(true); - } - }); - return _sendExternalIdToAnalytics.apply(this, arguments); - } - - function trackScreen(screen, params, customDimensions) { - if (_LiveConfig.default.isRssSide() || !_Manager.default.checkIfScreenIsAlreadySent("" + screen)) { - _Manager.default.addToScreenRecentlyVisited("" + screen); - - _Manager.default.trackScreen(screen, params, customDimensions); - - return true; - } - - return false; - } - - function trackEvent(params) { - var str = JSON.stringify(params); - - if (!_Manager.default.checkIfEventIsAlreadySent(str)) { - _Manager.default.addToEventRecentlyVisited(str); - - _Manager.default.trackEvent(params); - - return true; - } - - return false; - } - - function trackCustomFirebaseEvent(_ref) { - var customEvent = _ref.customEvent, - customParams = _ref.customParams; - var str = customEvent + "_" + JSON.stringify(customParams); - - if (!_Manager.default.checkIfFirebaseEventIsAlreadySent(str)) { - var _trackerManager$fireb, _trackerManager$webTr; - - _Manager.default.addToFirebaseEventRecentlyVisited(str); - - (_trackerManager$fireb = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb.trackEvent(customEvent, customParams); - (_trackerManager$webTr = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr.trackEvent(customEvent, customParams); - return true; - } - - return false; - } - - function sendAdFailedError(params) { - trackCustomFirebaseEvent({ - customEvent: "advertisement_failed", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) - }); - } - - function sendAdSuccess(params) { - trackCustomFirebaseEvent({ - customEvent: "advertisement_loaded", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) - }); - } - - function trackATTPermission(action) { - if (action !== "unavailable") { - var event = "apple_att_permission"; - var device = (0, _$$_REQUIRE(_dependencyMap[5]).gaBreakout)(); - trackEvent({ - category: event, - action: action, - device: device - }); - trackCustomFirebaseEvent({ - customEvent: event, - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)({ - action: action - }), { - action: action, - device: device - }) - }); - } - } - - function trackWebInterstitial(model, action) { - if (model) { - var event = model.getScreenType(); - var name = model.getScreenName(); - var id = model.getId(); - var screen = (0, _$$_REQUIRE(_dependencyMap[5]).getScreenString)({ - type: event, - name: name, - id: id - }); - var params = { - id: id, - name: name, - action: action, - screen: screen, - type: "web" - }; - trackCustomFirebaseEvent({ - customEvent: event, - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) - }); - trackScreen(screen, Object.assign({ - event: event - }, params)); - } - } - - function trackADBMobileAction(action, params) { - try { - var _trackerManager$admob; - - (_trackerManager$admob = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob.trackAction(action, params); - } catch (e) {} - } - - function trackADBMobileState(state, params) { - try { - var _trackerManager$admob2; - - (_trackerManager$admob2 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob2.trackState(state, params); - } catch (e) {} - } - - function trackRempAccount(rParam) { - if (!_Manager.default.checkIfRempIsAlreadySent(rParam)) { - var _trackerManager$rempT; - - _Manager.default.addToRempRecentlyVisited(rParam); - - (_trackerManager$rempT = _Manager.default.rempTracker) == null ? undefined : _trackerManager$rempT.trackScreen(rParam); - return true; - } - - return false; - } - - function trackCustomFirebaseScreen(screenName) { - var pagePath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; - var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var str = screenName; - - if (pagePath) { - str += "_" + pagePath; - } - - if (!_Manager.default.checkIfFirebaseScreenIsAlreadySent(str)) { - var _trackerManager$fireb2, _trackerManager$webTr2; - - _Manager.default.addToFirebaseScreenRecentlyVisited(str); - - var customParams = (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params); - (_trackerManager$fireb2 = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb2.trackScreen(screenName, customParams); - var pageLocation; - - var _global$getActivePSet = global.getActivePSetup(), - machine = _global$getActivePSet.machine; - - if (machine) { - pageLocation = _$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(machine) + pagePath; - } - - (_trackerManager$webTr2 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr2.trackScreen(screenName, Object.assign({ - pageLocation: pageLocation - }, customParams)); - return true; - } - - return false; - } - - function clearRecently() { - _Manager.default.clearRecently(); - } - - function trackFeedback(screen) { - _Manager.default.trackFeedback(screen); - } - - function trackStartup() { - _Manager.default.trackStartup(); - } - - function trackEnterForeground() { - var _trackerManager$comsc, _trackerManager$admob3, _trackerManager$chart; - - (_trackerManager$comsc = _Manager.default.comscoreTracker) == null ? undefined : _trackerManager$comsc.onEnterForeground(); - (_trackerManager$admob3 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob3.start(); - (_trackerManager$chart = _Manager.default.chartbeatTracker) == null ? undefined : _trackerManager$chart.onEnterForeground(); - } - - function trackEnterBackground() { - var _trackerManager$comsc2, _trackerManager$admob4, _trackerManager$matom3, _trackerManager$chart2; - - (_trackerManager$comsc2 = _Manager.default.comscoreTracker) == null ? undefined : _trackerManager$comsc2.onExitForeground(); - (_trackerManager$admob4 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob4.pause(); - (_trackerManager$matom3 = _Manager.default.matomoTracker) == null ? undefined : _trackerManager$matom3.dispatch(); - (_trackerManager$chart2 = _Manager.default.chartbeatTracker) == null ? undefined : _trackerManager$chart2.onExitForeground(); - } -},1910,[3,270,1907,1911,815,1906,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _sdkUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var isScreenValid = function isScreenValid(screen) { - return screen.split("/").filter(function (part) { - return part === "null" || part === "undefined"; - }).length === 0; - }; - - var MAX_RECENTLY_VISITED = 5; - var TrackersManager = (0, _createClass2.default)(function TrackersManager() { - var _this = this; - - (0, _classCallCheck2.default)(this, TrackersManager); - this.recentlyScreenVisited = []; - this.recentlyEventVisited = []; - this.recentlyFirebaseEventVisited = []; - this.recentlyFirebaseScreenVisited = []; - this.recentlyRempVisited = []; - this.initialized = false; - this.init = (0, _asyncToGenerator2.default)(function* () { - _this.gaTracker = yield new (_$$_REQUIRE(_dependencyMap[5]).Ga3Tracker)().init(); - _this.firebaseTracker = yield new (_$$_REQUIRE(_dependencyMap[6]).FirebaseTracker)().init(); - _this.webTracker = yield new (_$$_REQUIRE(_dependencyMap[7]).WebTracker)().init(); - _this.rempTracker = yield new (_$$_REQUIRE(_dependencyMap[8]).RempTracker)().init(); - _this.matherTracker = yield new (_$$_REQUIRE(_dependencyMap[9]).MatherTracker)().init(); - _this.matomoTracker = yield new (_$$_REQUIRE(_dependencyMap[10]).MatomoTracker)().init(); - _this.matomoMasTracker = yield new (_$$_REQUIRE(_dependencyMap[11]).MatomoMasTracker)().init(); - _this.admobileTracker = yield new (_$$_REQUIRE(_dependencyMap[12]).AdmobileTracker)().init(); - _this.facebookTracker = yield new (_$$_REQUIRE(_dependencyMap[13]).FacebookTracker)().init(); - _this.comscoreTracker = yield new (_$$_REQUIRE(_dependencyMap[14]).ComscoreTracker)().init(); - _this.chartbeatTracker = yield new (_$$_REQUIRE(_dependencyMap[15]).ChartbeatTracker)().init(); - _this.blueconicTracker = yield new (_$$_REQUIRE(_dependencyMap[16]).BlueconicTracker)().init(); - _this.initialized = true; - }); - this.checkIfIsInitialized = (0, _asyncToGenerator2.default)(function* () { - if (!_this.initialized) { - return _this.init(); - } - - return Promise.resolve(); - }); - - this.trackSDKAction = function (type, params) { - if (!params) { - return; - } - - _sdkUtils.default.onTrackAction({ - trackType: type, - data: params - }); - }; - - this.trackStartup = function () { - var _this$gaTracker; - - if (!_this.initialized) { - return; - } - - (_this$gaTracker = _this.gaTracker) == null ? undefined : _this$gaTracker.trackStartup(); - }; - - this.trackFeedback = function (screen) { - var _this$gaTracker2; - - if (!_this.initialized) { - return; - } - - (_this$gaTracker2 = _this.gaTracker) == null ? undefined : _this$gaTracker2.trackFeedback(screen); - }; - - this.trackScreen = function (screen, params, customDimensions) { - var _this$gaTracker3, _this$admobileTracker, _this$matherTracker, _this$matomoTracker, _this$matomoMasTracke, _this$facebookTracker, _this$chartbeatTracke, _this$blueconicTracke; - - if (!_this.initialized) { - return; - } - - if (!isScreenValid(screen)) { - return; - } - - _this._track((_this$gaTracker3 = _this.gaTracker) == null ? undefined : _this$gaTracker3.trackScreen, screen, params, customDimensions); - - var screenParams = Object.assign({ - screen: screen - }, params); - - _this._track((_this$admobileTracker = _this.admobileTracker) == null ? undefined : _this$admobileTracker.trackScreen, screenParams); - - _this._track((_this$matherTracker = _this.matherTracker) == null ? undefined : _this$matherTracker.trackScreen, screenParams); - - _this._track((_this$matomoTracker = _this.matomoTracker) == null ? undefined : _this$matomoTracker.trackScreen, screenParams); - - _this._track((_this$matomoMasTracke = _this.matomoMasTracker) == null ? undefined : _this$matomoMasTracke.trackScreen, screenParams); - - _this._track((_this$facebookTracker = _this.facebookTracker) == null ? undefined : _this$facebookTracker.trackScreen, screenParams); - - _this._track((_this$chartbeatTracke = _this.chartbeatTracker) == null ? undefined : _this$chartbeatTracke.trackScreen, screenParams); - - _this._track((_this$blueconicTracke = _this.blueconicTracker) == null ? undefined : _this$blueconicTracke.trackScreen, screenParams); - - _this.trackSDKAction("screen", screenParams); - }; - - this.trackEvent = function (params) { - var _this$gaTracker4, _this$matherTracker2, _this$matomoTracker2, _this$matomoMasTracke2, _this$admobileTracker2, _this$facebookTracker2, _this$comscoreTracker, _this$chartbeatTracke2, _this$blueconicTracke2; - - if (!_this.initialized) { - return; - } - - _this._track((_this$gaTracker4 = _this.gaTracker) == null ? undefined : _this$gaTracker4.trackEvent, params); - - _this._track((_this$matherTracker2 = _this.matherTracker) == null ? undefined : _this$matherTracker2.trackEvent, params); - - _this._track((_this$matomoTracker2 = _this.matomoTracker) == null ? undefined : _this$matomoTracker2.trackEvent, params); - - _this._track((_this$matomoMasTracke2 = _this.matomoMasTracker) == null ? undefined : _this$matomoMasTracke2.trackEvent, params); - - _this._track((_this$admobileTracker2 = _this.admobileTracker) == null ? undefined : _this$admobileTracker2.trackEvent, params); - - _this._track((_this$facebookTracker2 = _this.facebookTracker) == null ? undefined : _this$facebookTracker2.trackEvent, params); - - _this._track((_this$comscoreTracker = _this.comscoreTracker) == null ? undefined : _this$comscoreTracker.trackEvent, params); - - _this._track((_this$chartbeatTracke2 = _this.chartbeatTracker) == null ? undefined : _this$chartbeatTracke2.trackEvent, params); - - _this._track((_this$blueconicTracke2 = _this.blueconicTracker) == null ? undefined : _this$blueconicTracke2.trackEvent, params); - - _this.trackSDKAction("event", params); - }; - - this.addToScreenRecentlyVisited = function (str) { - _this.addToRecentlyVisited(_this.recentlyScreenVisited, str); - }; - - this.addToEventRecentlyVisited = function (str) { - _this.addToRecentlyVisited(_this.recentlyEventVisited, str); - }; - - this.addToFirebaseEventRecentlyVisited = function (str) { - _this.addToRecentlyVisited(_this.recentlyFirebaseEventVisited, str); - }; - - this.addToFirebaseScreenRecentlyVisited = function (str) { - _this.addToRecentlyVisited(_this.recentlyFirebaseScreenVisited, str); - }; - - this.addToRempRecentlyVisited = function (str) { - _this.addToRecentlyVisited(_this.recentlyRempVisited, str); - }; - - this.checkIfScreenIsAlreadySent = function (str) { - return _this.checkIfIsAlreadySent(_this.recentlyScreenVisited, str); - }; - - this.checkIfEventIsAlreadySent = function (str) { - return _this.checkIfIsAlreadySent(_this.recentlyEventVisited, str); - }; - - this.checkIfFirebaseEventIsAlreadySent = function (str) { - return _this.checkIfIsAlreadySent(_this.recentlyFirebaseEventVisited, str); - }; - - this.checkIfFirebaseScreenIsAlreadySent = function (str) { - return _this.checkIfIsAlreadySent(_this.recentlyFirebaseScreenVisited, str); - }; - - this.checkIfRempIsAlreadySent = function (str) { - return _this.checkIfIsAlreadySent(_this.recentlyRempVisited, str); - }; - - this.clearRecently = function () { - _this.recentlyEventVisited = []; - _this.recentlyFirebaseEventVisited = []; - _this.recentlyFirebaseScreenVisited = []; - _this.recentlyScreenVisited = []; - _this.recentlyRempVisited = []; - }; - - this.addToRecentlyVisited = function (recentlyVisited, str) { - recentlyVisited.push(str); - var max = MAX_RECENTLY_VISITED; - - if (recentlyVisited.length > max) { - recentlyVisited.shift(); - } - }; - - this.checkIfIsAlreadySent = function (recentlyVisited, str) { - for (var i = 0; i < recentlyVisited.length; i++) { - if (str === recentlyVisited[i]) { - return true; - } - } - - return false; - }; - - this.updateClientList = function () { - var _this$gaTracker5; - - (_this$gaTracker5 = _this.gaTracker) == null ? undefined : _this$gaTracker5.updateClientList(); - }; - - this.resetAdobeAnalyticsFirstScrolledSent = function () { - var _this$admobileTracker3; - - (_this$admobileTracker3 = _this.admobileTracker) == null ? undefined : _this$admobileTracker3.resetFirstScrolledSent(); - }; - - this._track = function (trackerMethod) { - try { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - trackerMethod.apply(undefined, args); - } catch (e) {} - }; - }); - - var _default = exports.default = new TrackersManager(); -},1911,[3,270,7,6,1912,1913,1916,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var WILL_OPEN_URL_TIMEOUT = 2000; - var TOKEN_EXPIRED_TIMEOUT = 2000; - - var SDKUtils = exports.default = function () { - function SDKUtils() { - (0, _classCallCheck2.default)(this, SDKUtils); - } - - return (0, _createClass2.default)(SDKUtils, null, [{ - key: "close", - value: function () { - var _close = (0, _asyncToGenerator2.default)(function* () { - if (global.isTaAddon()) { - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - return IOSNewsmemorySDK.close(); - } - - return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onClose(); - } - - return Promise.resolve(); - }); - - function close() { - return _close.apply(this, arguments); - } - - return close; - }() - }, { - key: "willOpenURL", - value: function () { - var _willOpenURL = (0, _asyncToGenerator2.default)(function* (url) { - if (global.isTaAddon()) { - var sdkPromise; - - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - sdkPromise = IOSNewsmemorySDK.willOpenURL(url); - } else { - sdkPromise = _$$_REQUIRE(_dependencyMap[5]).OurBridge.willOpenURL(url); - } - - if (sdkPromise) { - var timeoutPromise = new Promise(function (resolve, reject) { - setTimeout(function () { - return resolve(false); - }, WILL_OPEN_URL_TIMEOUT); - }); - return Promise.race([sdkPromise, timeoutPromise]); - } - } - - return Promise.resolve(false); - }); - - function willOpenURL(_x) { - return _willOpenURL.apply(this, arguments); - } - - return willOpenURL; - }() - }, { - key: "onTrackAction", - value: function () { - var _onTrackAction = (0, _asyncToGenerator2.default)(function* (data) { - if (global.isTaAddon()) { - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - return IOSNewsmemorySDK.onTrackAction(data); - } - - return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onTrackAction(data); - } - - return Promise.resolve(); - }); - - function onTrackAction(_x2) { - return _onTrackAction.apply(this, arguments); - } - - return onTrackAction; - }() - }, { - key: "onReload", - value: function () { - var _onReload = (0, _asyncToGenerator2.default)(function* () { - if (global.isTaAddon()) { - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - return IOSNewsmemorySDK.onReload(); - } - } - - return Promise.resolve(); - }); - - function onReload() { - return _onReload.apply(this, arguments); - } - - return onReload; - }() - }, { - key: "onTokenExpired", - value: function () { - var _onTokenExpired = (0, _asyncToGenerator2.default)(function* (url) { - if (global.isTaAddon()) { - var sdkPromise; - - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - sdkPromise = IOSNewsmemorySDK.onTokenExpired(); - } else { - sdkPromise = _$$_REQUIRE(_dependencyMap[5]).OurBridge.onTokenExpired(); - } - - if (sdkPromise) { - var timeoutPromise = new Promise(function (resolve, reject) { - setTimeout(function () { - return resolve(false); - }, TOKEN_EXPIRED_TIMEOUT); - }); - return Promise.race([sdkPromise, timeoutPromise]); - } - } - - return Promise.resolve(false); - }); - - function onTokenExpired(_x3) { - return _onTokenExpired.apply(this, arguments); - } - - return onTokenExpired; - }() - }]); - }(); -},1912,[3,270,6,7,879,579]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Ga3Tracker = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var GoogleAnalyticsTracker = _optionalPackageUtils.default.getGoogleAnalytics3Tracker(); - - var replaceValueInPattern = function replaceValueInPattern(pattern, toReplace, value) { - return pattern.replace(toReplace, value || ""); - }; - - var Ga3Tracker = exports.Ga3Tracker = function (_Tracker) { - function Ga3Tracker() { - var _this; - - (0, _classCallCheck2.default)(this, Ga3Tracker); - _this = _callSuper(this, Ga3Tracker, [_$$_REQUIRE(_dependencyMap[11]).ANALYTICS_SERVICES.GA3]); - _this.categoryEventOnlyEnabled = false; - _this.googleAnalytics3Enabled = false; - _this.clientList = []; - _this.feedbackList = []; - _this.tecnaviaList = []; - _this.rssList = []; - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup = global.getMainPSetup(), - disableGoogleAnalytics3 = _global$getMainPSetup.disableGoogleAnalytics3, - feedbackGoogleAnalyticsAccount = _global$getMainPSetup.feedbackGoogleAnalyticsAccount, - tecnaviaGoogleAnalyticsAccount = _global$getMainPSetup.tecnaviaGoogleAnalyticsAccount, - TAGoogleAnalyticsEvent = _global$getMainPSetup.TAGoogleAnalyticsEvent; - - _this.categoryEventOnlyEnabled = TAGoogleAnalyticsEvent; - _this.enabled = _optionalPackageUtils.default.isGoogleAnalytics3Available() && !disableGoogleAnalytics3 && _this._isCmpAllowed(); - - if (_this.enabled) { - var _global$getActivePSet = global.getActivePSetup(), - clientGoogleAnalyticsAccount = _global$getActivePSet.clientGoogleAnalyticsAccount; - - _this._populateList(_this.clientList, clientGoogleAnalyticsAccount); - - _this._populateList(_this.feedbackList, feedbackGoogleAnalyticsAccount); - - _this._populateList(_this.tecnaviaList, tecnaviaGoogleAnalyticsAccount); - - var _global$getRssIndex = global.getRssIndex(), - googleAnalytics = _global$getRssIndex.googleAnalytics; - - if (googleAnalytics) { - googleAnalytics.forEach(function (item) { - if (_this._isCorrectOs(item) && _this._isCorrectDevice(item)) { - var googleAccount = item.googleAccount, - pattern = item.pattern; - - var tracker = _this._createGoogleAnalyticsTracker(googleAccount); - - _this.rssList.push({ - id: googleAccount, - pattern: pattern, - tracker: tracker - }); - } - }); - } - } - - return _this; - }); - - _this.trackScreen = function (screen, params, customDimensions) { - if (!_this._isValid()) { - return; - } - - if (_this.categoryEventOnlyEnabled !== "startup") { - _this.tecnaviaList.forEach(function (analytic) { - var _analytic$tracker; - - (_analytic$tracker = analytic.tracker) == null ? undefined : _analytic$tracker.trackScreenView(screen, { - customDimensions: customDimensions - }); - }); - } - - _this.clientList.forEach(function (analytic) { - var _analytic$tracker2; - - (_analytic$tracker2 = analytic.tracker) == null ? undefined : _analytic$tracker2.trackScreenView(screen, { - customDimensions: customDimensions - }); - }); - - _this.rssList.forEach(function (analytic) { - if (_LiveConfig.default.isRssSide() && params && analytic.pattern) { - var _analytic$tracker3; - - var pattern = analytic.pattern; - pattern = replaceValueInPattern(pattern, "{apptype}", params.apptype); - pattern = replaceValueInPattern(pattern, "{devicetype}", params.devicetype); - pattern = replaceValueInPattern(pattern, "{paper}", params.paper); - pattern = replaceValueInPattern(pattern, "{psetup}", params.psetup); - pattern = replaceValueInPattern(pattern, "{category}", params.category); - pattern = replaceValueInPattern(pattern, "{date}", params.date); - pattern = replaceValueInPattern(pattern, "{layout}", params.layout); - pattern = replaceValueInPattern(pattern, "{articletitle}", params.articletitle); - pattern = pattern.replace(new RegExp("/{2,}|/{2,}|/\\|", "g"), "/"); - (_analytic$tracker3 = analytic.tracker) == null ? undefined : _analytic$tracker3.trackScreenView(pattern, { - customDimensions: customDimensions - }); - } else { - var _analytic$tracker4; - - (_analytic$tracker4 = analytic.tracker) == null ? undefined : _analytic$tracker4.trackScreenView(screen, { - customDimensions: customDimensions - }); - } - }); - - var _ref2 = params != null ? params : {}, - activePSetup = _ref2.activePSetup, - googleAnalyticsAccount = _ref2.googleAnalyticsAccount; - - if (activePSetup && googleAnalyticsAccount) { - var customList = _this._getCustomList(activePSetup, googleAnalyticsAccount); - - customList.forEach(function (analytic) { - var _analytic$tracker5; - - (_analytic$tracker5 = analytic.tracker) == null ? undefined : _analytic$tracker5.trackScreenView(screen, { - customDimensions: customDimensions - }); - }); - } - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - var trackers = []; - - if (_this.categoryEventOnlyEnabled !== "startup") { - _this.tecnaviaList.forEach(function (analytic) { - return trackers.push(analytic.tracker); - }); - } - - _this.clientList.forEach(function (analytic) { - return trackers.push(analytic.tracker); - }); - - _this.rssList.forEach(function (analytic) { - return trackers.push(analytic.tracker); - }); - - var activePSetup = params.activePSetup, - googleAnalyticsAccount = params.googleAnalyticsAccount; - - if (activePSetup && googleAnalyticsAccount) { - var customList = _this._getCustomList(activePSetup, googleAnalyticsAccount); - - customList.forEach(function (analytic) { - return trackers.push(analytic.tracker); - }); - } - - trackers.forEach(function (tracker) { - tracker == null ? undefined : tracker.trackEvent(params.category, params.action, params.label ? { - label: params.label - } : {}); - }); - }; - - _this.trackStartup = function () { - if (!_this._isValid()) { - return; - } - - _this.tecnaviaList.forEach(function (analytic) { - var _analytic$tracker6; - - (_analytic$tracker6 = analytic.tracker) == null ? undefined : _analytic$tracker6.trackEvent(_LiveConfig.default.getAppSide(), "startup", _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.model()); - }); - }; - - _this.trackFeedback = function (screen) { - if (!_this._isValid()) { - return; - } - - _this.feedbackList.forEach(function (analytic) { - analytic.tracker.trackScreenView(screen); - }); - }; - - _this.updateClientList = function () { - if (_this.enabled) { - _this.clientList = []; - - var _global$getActivePSet2 = global.getActivePSetup(), - clientGoogleAnalyticsAccount = _global$getActivePSet2.clientGoogleAnalyticsAccount; - - _this._populateList(_this.clientList, clientGoogleAnalyticsAccount); - } - }; - - _this._populateList = function (list, values) { - if (values) { - var split = values.split(","); - split.forEach(function (item) { - var tracker = _this._createGoogleAnalyticsTracker(item); - - list.push({ - id: item.trim(), - tracker: tracker - }); - }); - } - }; - - _this._createGoogleAnalyticsTracker = function (trackerId) { - var _global$getMainPSetup2 = global.getMainPSetup(), - googleAnalyticsAnonymizeIP = _global$getMainPSetup2.googleAnalyticsAnonymizeIP; - - var tracker = new GoogleAnalyticsTracker(trackerId); - tracker.setAnonymizeIp(googleAnalyticsAnonymizeIP); - tracker.allowIDFA(false); - return tracker; - }; - - _this._createCustomList = function (customGoogleAnalyticsAccount) { - var customList = []; - - if (customGoogleAnalyticsAccount) { - var clientSplit = []; - - var _global$getActivePSet3 = global.getActivePSetup(), - clientGoogleAnalyticsAccount = _global$getActivePSet3.clientGoogleAnalyticsAccount; - - if (clientGoogleAnalyticsAccount) { - clientSplit.push.apply(clientSplit, (0, _toConsumableArray2.default)(clientGoogleAnalyticsAccount.split(","))); - } - - var rssSplit = []; - - var _global$getRssIndex2 = global.getRssIndex(), - googleAnalytics = _global$getRssIndex2.googleAnalytics; - - if (googleAnalytics) { - googleAnalytics.forEach(function (item) { - var googleAccount = item.googleAccount; - - if (googleAccount) { - rssSplit.push.apply(rssSplit, (0, _toConsumableArray2.default)(googleAccount.split(","))); - } - }); - } - - var customSplit = customGoogleAnalyticsAccount.split(","); - customSplit.forEach(function (item) { - if (!clientSplit.includes(item) && !rssSplit.includes(item)) { - var tracker = _this._createGoogleAnalyticsTracker(item); - - customList.push({ - id: item.trim(), - tracker: tracker - }); - } - }); - } - - return customList; - }; - - _this._getCustomList = function (activePSetup, googleAnalyticsAccount) { - if (_this.customLists[activePSetup]) { - var _this$customLists$act = _this.customLists[activePSetup], - rawAccount = _this$customLists$act.rawAccount, - _list = _this$customLists$act.list; - - if (rawAccount === googleAnalyticsAccount) { - return _list; - } - } - - var list = _this._createCustomList(googleAnalyticsAccount); - - _this.customLists[activePSetup] = { - rawAccount: googleAnalyticsAccount, - list: list - }; - return list; - }; - - _this._isCorrectOs = function (item) { - return !item.OS || item.OS.toLowerCase() === _reactNative.Platform.OS.toLowerCase(); - }; - - _this._isCorrectDevice = function (item) { - var isTablet = _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isTablet(); - - var deviceFamily = "all"; - - if (item.deviceFamily) { - if (item.deviceFamily === "iPad") { - deviceFamily = "tablet"; - } else if (item.deviceFamily === "iPhone") { - deviceFamily = "phone"; - } - } - - return deviceFamily === "all" || deviceFamily === "tablet" && isTablet || deviceFamily === "phone" && !isTablet; - }; - - return _this; - } - - (0, _inherits2.default)(Ga3Tracker, _Tracker); - return (0, _createClass2.default)(Ga3Tracker); - }(_$$_REQUIRE(_dependencyMap[13]).Tracker); -},1913,[3,22,270,7,6,11,13,14,18,1907,879,1906,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Tracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _cmpUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var Tracker = exports.Tracker = (0, _createClass2.default)(function Tracker(service) { - var _this = this; - - (0, _classCallCheck2.default)(this, Tracker); - this.service = undefined; - this.enabled = false; - this.init = (0, _asyncToGenerator2.default)(function* () { - return _this; - }); - - this.trackScreen = function () {}; - - this.trackEvent = function (params) {}; - - this._isValid = function () { - if (!_this.enabled) { - return false; - } - - if (!_this._isProduction()) { - return false; - } - - return true; - }; - - this._isParamsValid = function (params) { - if (!_this._isValid()) { - return false; - } - - if (!params) { - return false; - } - - return true; - }; - - this._isCmpAllowed = function () { - return _cmpUtils.default.isAnalyticsTrackingAllowed(_this.service); - }; - - this._isCmpAdAllowed = function () { - return _cmpUtils.default.isAdTrackingAllowed(); - }; - - this._isProduction = function () { - return !global.__DEV__; - }; - - this.service = service; - }); -},1914,[3,270,7,6,1915]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _OptionalPackages$get = _optionalPackageUtils.default.getIubenda(), - Iubenda = _OptionalPackages$get.Iubenda; - - var _OptionalPackages$get2 = _optionalPackageUtils.default.getOsano(), - Osano = _OptionalPackages$get2.Osano; - - var DailymotionVideo = _optionalPackageUtils.default.getDailymotionVideoPlayer(); - - var ATT_VALUES = { - UNAVAILABLE: "unavailable", - NOT_DETERMINED: "not-determined", - AUTHORIZED: "authorized", - DENIED: "denied" - }; - - var CmpUtils = exports.default = function () { - function CmpUtils() { - (0, _classCallCheck2.default)(this, CmpUtils); - } - - return (0, _createClass2.default)(CmpUtils, null, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (navigation) { - var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var _global$getMainPSetup = global.getMainPSetup(), - disableGoogleAnalytics3 = _global$getMainPSetup.disableGoogleAnalytics3, - disableFirebaseAnalytics = _global$getMainPSetup.disableFirebaseAnalytics, - googleAnalyticsAnonymizeIP = _global$getMainPSetup.googleAnalyticsAnonymizeIP, - matherAnalyticsEnabled = _global$getMainPSetup.matherAnalyticsEnabled, - comScoreId = _global$getMainPSetup.comScoreId, - adobeAnalyticsEnabled = _global$getMainPSetup.adobeAnalyticsEnabled, - facebookAnalyticsEnabled = _global$getMainPSetup.facebookAnalyticsEnabled, - matomoTrackerEnabled = _global$getMainPSetup.matomoTrackerEnabled, - attConfig = _global$getMainPSetup.attConfig, - iubendaEnabled = _global$getMainPSetup.iubendaEnabled, - iubendaConfig = _global$getMainPSetup.iubendaConfig; - - var disableAppTrackingTransparencyMessage = attConfig.disableAppTrackingTransparencyMessage, - forceAppTrackingTransparencyMessage = attConfig.forceAppTrackingTransparencyMessage, - forcePreAppTrackingTransparencyMessageOnAppUpdate = attConfig.forcePreAppTrackingTransparencyMessageOnAppUpdate, - showPreAppTrackingTransparencyMessage = attConfig.showPreAppTrackingTransparencyMessage; - - var adsRequireConsent = global.getAdsConfig().hasAdsRequiringIDFAPermissions() || _optionalPackageUtils.default.isDailymotionVideoPlayerAvailable(); - - var forceConsentPopup = false; - - if (iubendaEnabled && iubendaConfig) { - adsRequireConsent = iubendaConfig.adsRequireConsent; - forceConsentPopup = iubendaConfig.forceConsentPopup; - } - - var hasMather = _optionalPackageUtils.default.isMatherAnalyticsAvailable() && matherAnalyticsEnabled; - var hasComscore = _optionalPackageUtils.default.isComScoreAvailable() && comScoreId; - var hasAdobe = _optionalPackageUtils.default.isAdobeAnalyticsAvailable() && adobeAnalyticsEnabled; - var hasFacebook = _optionalPackageUtils.default.isFacebookSDKAvailable() && facebookAnalyticsEnabled; - var has3rdPartyMatomo = _optionalPackageUtils.default.isMatomoTrackerAvailable() && matomoTrackerEnabled; - var hasOtherAnalytics = hasMather || hasComscore || hasAdobe || hasFacebook || has3rdPartyMatomo; - var UNAVAILABLE = ATT_VALUES.UNAVAILABLE, - NOT_DETERMINED = ATT_VALUES.NOT_DETERMINED, - DENIED = ATT_VALUES.DENIED, - AUTHORIZED = ATT_VALUES.AUTHORIZED; - - try { - if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && _optionalPackageUtils.default.isTrackingTransparencyAvailable() && !disableAppTrackingTransparencyMessage && (forceAppTrackingTransparencyMessage || hasOtherAnalytics || adsRequireConsent)) { - CmpUtils.attUserChoice = yield CmpUtils.getTrackingPermission(); - - if (CmpUtils.attUserChoice !== UNAVAILABLE) { - var userChoiceUndetermined = CmpUtils.attUserChoice === NOT_DETERMINED; - var userChoiceDenied = CmpUtils.attUserChoice === DENIED; - - if (userChoiceUndetermined || forcePreAppTrackingTransparencyMessageOnAppUpdate && isAppUpgraded && userChoiceDenied) { - if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.isOnline() && showPreAppTrackingTransparencyMessage) { - var proceed = yield new Promise(function (onClose) { - navigation.navigate("PreAppTrackingTransparencyMessageScreen", { - userChoiceDenied: userChoiceDenied, - onClose: onClose - }); - }); - - if (proceed && userChoiceDenied) { - _reactNative.Linking.openSettings(); - } - } - - if (userChoiceUndetermined) { - CmpUtils.attUserChoice = yield CmpUtils.askTrackingPermission(); - } - } - - CmpUtils.advertisingTrackingConsent = CmpUtils.attUserChoice === AUTHORIZED; - } - } - - if (Iubenda && iubendaEnabled) { - if (CmpUtils.attUserChoice === DENIED) { - yield _$$_REQUIRE(_dependencyMap[8]).CmpStorage.init(true); - - if (CmpUtils.isGDPRComplianceRequired()) { - CmpUtils.trackingConsent = false; - return CmpUtils.attUserChoice; - } - } - - var result = yield CmpUtils.setupIubenda(); - - if (!result) { - CmpUtils.advertisingTrackingConsent = false; - - if (CmpUtils.isGDPRComplianceRequired()) { - CmpUtils.trackingConsent = false; - } - - return CmpUtils.attUserChoice; - } - - var googleAnalyticsEnabled = !disableGoogleAnalytics3 || !disableFirebaseAnalytics; - var notIPAnonymizedGoogleAnalyticsEnabled = googleAnalyticsEnabled && !googleAnalyticsAnonymizeIP; - - if (forceConsentPopup || CmpUtils.isGDPRComplianceRequired() && (googleAnalyticsEnabled || hasOtherAnalytics || adsRequireConsent) || (CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) && (notIPAnonymizedGoogleAnalyticsEnabled || hasOtherAnalytics || adsRequireConsent)) { - try { - var consents = yield CmpUtils.askIubendaConsent(); - CmpUtils.setConsentsIubenda(consents); - } catch (e) {} - } else { - yield CmpUtils.clearConsent(); - } - - return CmpUtils.attUserChoice; - } - - var initialized = yield CmpUtils.initOsanoCMP(); - - if (initialized) { - yield CmpUtils.updateOsanoTcData(); - - if (CmpUtils.attUserChoice === DENIED) { - yield _$$_REQUIRE(_dependencyMap[8]).CmpStorage.init(true); - - if (CmpUtils.isGDPRComplianceRequired()) { - CmpUtils.trackingConsent = false; - return CmpUtils.attUserChoice; - } - } - - yield CmpUtils.askOsanoConsent(); - yield CmpUtils.updateOsanoLawData(); - return CmpUtils.attUserChoice; - } - - yield CmpUtils.clearConsent(); - (0, _$$_REQUIRE(_dependencyMap[9]).addDebugOperation)("CmpUtils", "init CMP completed"); - } catch (e) {} - - return CmpUtils.attUserChoice; - }); - - function init(_x) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "getCmpConfig", - value: function getCmpConfig() { - var _global$getMainPSetup2 = global.getMainPSetup(), - iubendaEnabled = _global$getMainPSetup2.iubendaEnabled, - iubendaConfig = _global$getMainPSetup2.iubendaConfig, - osanoConfig = _global$getMainPSetup2.osanoConfig, - osanoEnabled = _global$getMainPSetup2.osanoEnabled; - - if (iubendaEnabled && iubendaConfig) { - return iubendaConfig; - } - - if (osanoEnabled && osanoConfig) { - return osanoConfig; - } - - return undefined; - } - }, { - key: "isGDPRComplianceRequired", - value: function isGDPRComplianceRequired() { - var _CmpUtils$getCmpConfi; - - return !!((_CmpUtils$getCmpConfi = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi.isGDPR()); - } - }, { - key: "isUSComplianceRequired", - value: function isUSComplianceRequired() { - var _CmpUtils$getCmpConfi2; - - return !!((_CmpUtils$getCmpConfi2 = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi2.isUS()); - } - }, { - key: "isLGPDComplianceRequired", - value: function isLGPDComplianceRequired() { - var _CmpUtils$getCmpConfi3; - - return !!((_CmpUtils$getCmpConfi3 = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi3.isLGPD()); - } - }, { - key: "isAnalyticsServiceIPAnonymized", - value: function isAnalyticsServiceIPAnonymized(service) { - var _global$getMainPSetup3 = global.getMainPSetup(), - googleAnalyticsAnonymizeIP = _global$getMainPSetup3.googleAnalyticsAnonymizeIP; - - var MATOMO = _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.MATOMO, - GA3 = _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.GA3, - FIREBASE_GA = _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.FIREBASE_GA; - - return service === MATOMO || service === GA3 && googleAnalyticsAnonymizeIP || service === FIREBASE_GA; - } - }, { - key: "isAnalyticsTrackingAllowed", - value: function isAnalyticsTrackingAllowed(service) { - if (service !== _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.MATOMO && CmpUtils.isConsentNeeded() && (CmpUtils.isGDPRComplianceRequired() || (CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) && !CmpUtils.isAnalyticsServiceIPAnonymized(service))) { - if (CmpUtils.trackingConsent !== undefined) { - return CmpUtils.trackingConsent; - } - - if (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) { - return false; - } - } - - return true; - } - }, { - key: "isAdTrackingAllowed", - value: function isAdTrackingAllowed(service) { - if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() || CmpUtils.isConsentNeeded() && (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired())) { - if (CmpUtils.advertisingTrackingConsent !== undefined) { - return CmpUtils.advertisingTrackingConsent; - } - - if (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) { - return false; - } - } - - return true; - } - }, { - key: "isConsentNeeded", - value: function isConsentNeeded() { - var _global$getMainPSetup4 = global.getMainPSetup(), - iubendaEnabled = _global$getMainPSetup4.iubendaEnabled, - osanoEnabled = _global$getMainPSetup4.osanoEnabled; - - return (iubendaEnabled && Iubenda || osanoEnabled && Osano) && !CmpUtils.consentNotNeeded; - } - }, { - key: "isConsentExpressed", - value: function isConsentExpressed() { - return CmpUtils.trackingConsent !== undefined && !CmpUtils.consentNotNeeded; - } - }, { - key: "askTrackingPermission", - value: function () { - var _askTrackingPermission = (0, _asyncToGenerator2.default)(function* () { - if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && _optionalPackageUtils.default.isTrackingTransparencyAvailable()) { - var trackingStatus = yield _optionalPackageUtils.default.getTrackingTransparency().requestTrackingPermission(); - return trackingStatus; - } - - return "unavailable"; - }); - - function askTrackingPermission() { - return _askTrackingPermission.apply(this, arguments); - } - - return askTrackingPermission; - }() - }, { - key: "getTrackingPermission", - value: function () { - var _getTrackingPermission = (0, _asyncToGenerator2.default)(function* () { - var trackingStatus = "unavailable"; - - if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && _optionalPackageUtils.default.isTrackingTransparencyAvailable()) { - trackingStatus = yield _optionalPackageUtils.default.getTrackingTransparency().getTrackingStatus(); - } - - return trackingStatus; - }); - - function getTrackingPermission() { - return _getTrackingPermission.apply(this, arguments); - } - - return getTrackingPermission; - }() - }, { - key: "testTrackingPermissionValue", - value: function () { - var _testTrackingPermissionValue = (0, _asyncToGenerator2.default)(function* (reference, status) { - var trackingStatus = status != null ? status : yield CmpUtils.getTrackingPermission(); - return trackingStatus === reference; - }); - - function testTrackingPermissionValue(_x2, _x3) { - return _testTrackingPermissionValue.apply(this, arguments); - } - - return testTrackingPermissionValue; - }() - }, { - key: "isTrackingPermissionUnavailable", - value: function () { - var _isTrackingPermissionUnavailable = (0, _asyncToGenerator2.default)(function* (status) { - return CmpUtils.testTrackingPermissionValue(ATT_VALUES.UNAVAILABLE, status); - }); - - function isTrackingPermissionUnavailable(_x4) { - return _isTrackingPermissionUnavailable.apply(this, arguments); - } - - return isTrackingPermissionUnavailable; - }() - }, { - key: "isTrackingPermissionNotDetermined", - value: function () { - var _isTrackingPermissionNotDetermined = (0, _asyncToGenerator2.default)(function* (status) { - return CmpUtils.testTrackingPermissionValue(ATT_VALUES.NOT_DETERMINED, status); - }); - - function isTrackingPermissionNotDetermined(_x5) { - return _isTrackingPermissionNotDetermined.apply(this, arguments); - } - - return isTrackingPermissionNotDetermined; - }() - }, { - key: "isTrackingPermissionAuthorized", - value: function () { - var _isTrackingPermissionAuthorized = (0, _asyncToGenerator2.default)(function* (status) { - return CmpUtils.testTrackingPermissionValue(ATT_VALUES.AUTHORIZED, status); - }); - - function isTrackingPermissionAuthorized(_x6) { - return _isTrackingPermissionAuthorized.apply(this, arguments); - } - - return isTrackingPermissionAuthorized; - }() - }, { - key: "isTrackingPermissionDenied", - value: function () { - var _isTrackingPermissionDenied = (0, _asyncToGenerator2.default)(function* (status) { - return CmpUtils.testTrackingPermissionValue(ATT_VALUES.DENIED, status); - }); - - function isTrackingPermissionDenied(_x7) { - return _isTrackingPermissionDenied.apply(this, arguments); - } - - return isTrackingPermissionDenied; - }() - }, { - key: "checkTrackingPermission", - value: function () { - var _checkTrackingPermission = (0, _asyncToGenerator2.default)(function* () { - var trackingStatus = yield CmpUtils.getTrackingPermission(); - - if (trackingStatus === ATT_VALUES.NOT_DETERMINED) { - trackingStatus = yield CmpUtils.askTrackingPermission(); - } - - return trackingStatus; - }); - - function checkTrackingPermission() { - return _checkTrackingPermission.apply(this, arguments); - } - - return checkTrackingPermission; - }() - }, { - key: "initIubendaCMP", - value: function () { - var _initIubendaCMP = (0, _asyncToGenerator2.default)(function* (_ref) { - var baseUrl = _ref.baseUrl, - siteId = _ref.siteId, - cookiePolicyId = _ref.cookiePolicyId, - gdprEnabled = _ref.gdprEnabled, - googleAds = _ref.googleAds, - enableTcf = _ref.enableTcf, - resetConsentDate = _ref.resetConsentDate, - laws = _ref.laws, - language = _ref.language; - return Iubenda.init({ - baseUrl: baseUrl, - siteId: siteId, - cookiePolicyId: cookiePolicyId, - googleAds: googleAds, - enableTcf: enableTcf, - resetConsentDate: resetConsentDate, - laws: laws.join(","), - lang: language, - perPurposeConsent: true - }); - }); - - function initIubendaCMP(_x8) { - return _initIubendaCMP.apply(this, arguments); - } - - return initIubendaCMP; - }() - }, { - key: "askIubendaConsent", - value: function () { - var _askIubendaConsent = (0, _asyncToGenerator2.default)(function* () { - if (Iubenda) { - return Iubenda.askConsent(); - } - - return undefined; - }); - - function askIubendaConsent() { - return _askIubendaConsent.apply(this, arguments); - } - - return askIubendaConsent; - }() - }, { - key: "changePreferences", - value: function () { - var _changePreferences = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup5 = global.getMainPSetup(), - iubendaEnabled = _global$getMainPSetup5.iubendaEnabled, - osanoEnabled = _global$getMainPSetup5.osanoEnabled; - - if (iubendaEnabled && Iubenda) { - return Iubenda.editPreferences(); - } - - if (osanoEnabled && Osano) { - try { - yield Osano.change(); - yield CmpUtils.updateOsanoLawData(); - Osano.destroy(); - } catch (e) { - throw e; - } - } - - return Promise.resolve(); - }); - - function changePreferences() { - return _changePreferences.apply(this, arguments); - } - - return changePreferences; - }() - }, { - key: "initOsanoCMP", - value: function () { - var _initOsanoCMP = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup6 = global.getMainPSetup(), - osanoEnabled = _global$getMainPSetup6.osanoEnabled, - osanoConfig = _global$getMainPSetup6.osanoConfig; - - if (!Osano || !osanoEnabled) { - return false; - } - - if (osanoConfig.customerId === "" || osanoConfig.configurationId === "") { - return false; - } - - var config = { - customerId: osanoConfig.customerId, - projectId: osanoConfig.configurationId, - baseActionUrl: _NewsmemoryAJAX.default.getCMPBaseURL() - }; - - try { - yield Osano.init(config); - return true; - } catch (e) {} - - return false; - }); - - function initOsanoCMP() { - return _initOsanoCMP.apply(this, arguments); - } - - return initOsanoCMP; - }() - }, { - key: "askOsanoConsent", - value: function () { - var _askOsanoConsent = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup7 = global.getMainPSetup(), - osanoEnabled = _global$getMainPSetup7.osanoEnabled, - osanoConfig = _global$getMainPSetup7.osanoConfig; - - if (!Osano || !osanoEnabled) { - return undefined; - } - - var resetConsentDate = osanoConfig.resetConsentDate; - - if (resetConsentDate) { - try { - yield Osano.resetIfNecessary({ - resetConsentDate: resetConsentDate - }); - } catch (e) {} - } - - try { - var osanoResult = yield Osano.ask(); - CmpUtils.setConsentsOsano(osanoResult); - return osanoResult; - } catch (e) {} - - return undefined; - }); - - function askOsanoConsent() { - return _askOsanoConsent.apply(this, arguments); - } - - return askOsanoConsent; - }() - }, { - key: "updateOsanoTcData", - value: function () { - var _updateOsanoTcData = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup8 = global.getMainPSetup(), - osanoConfig = _global$getMainPSetup8.osanoConfig, - osanoEnabled = _global$getMainPSetup8.osanoEnabled; - - if (!Osano || !osanoEnabled || !osanoConfig) { - return; - } - - try { - var tcData = yield Osano.askTcData(); - osanoConfig.setTcData(tcData); - } catch (e) {} - }); - - function updateOsanoTcData() { - return _updateOsanoTcData.apply(this, arguments); - } - - return updateOsanoTcData; - }() - }, { - key: "updateOsanoUspData", - value: function () { - var _updateOsanoUspData = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup9 = global.getMainPSetup(), - osanoConfig = _global$getMainPSetup9.osanoConfig, - osanoEnabled = _global$getMainPSetup9.osanoEnabled; - - if (!Osano || !osanoEnabled || !osanoConfig) { - return; - } - - try { - var uspData = yield Osano.askUspData(); - osanoConfig.setUspData(uspData); - } catch (e) {} - }); - - function updateOsanoUspData() { - return _updateOsanoUspData.apply(this, arguments); - } - - return updateOsanoUspData; - }() - }, { - key: "updateOsanoLawData", - value: function () { - var _updateOsanoLawData = (0, _asyncToGenerator2.default)(function* () { - yield CmpUtils.updateOsanoTcData(); - yield CmpUtils.updateOsanoUspData(); - }); - - function updateOsanoLawData() { - return _updateOsanoLawData.apply(this, arguments); - } - - return updateOsanoLawData; - }() - }, { - key: "setConsentsIubenda", - value: function setConsentsIubenda() { - var consents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var consentNotNeeded = consents.consentNotNeeded, - _consents$consentStri = consents.consentStrings, - consentStrings = _consents$consentStri === undefined ? {} : _consents$consentStri, - _consents$perPurposeC = consents.perPurposeConsents, - perPurposeConsents = _consents$perPurposeC === undefined ? {} : _consents$perPurposeC, - _consents$perTCFPurpo = consents.perTCFPurposeConsents, - perTCFPurposeConsents = _consents$perTCFPurpo === undefined ? {} : _consents$perTCFPurpo, - _consents$usprPurpose = consents.usprPurposesConsents, - usprPurposesConsents = _consents$usprPurpose === undefined ? {} : _consents$usprPurpose; - - var _global$getMainPSetup10 = global.getMainPSetup(), - iubendaConfig = _global$getMainPSetup10.iubendaConfig; - - var googleAds = iubendaConfig.googleAdsPresent; - var gdprEnabled = CmpUtils.isGDPRComplianceRequired(); - var usEnabled = CmpUtils.isUSComplianceRequired(); - var lgdpEnabled = CmpUtils.isLGPDComplianceRequired(); - CmpUtils.consentNotNeeded = consentNotNeeded != null ? consentNotNeeded : false; - CmpUtils.advertisingTrackingConsent = false; - CmpUtils.consentStrings = {}; - - if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED && consentStrings) { - CmpUtils.consentStrings = consentStrings; - } - - var s = usprPurposesConsents.s, - sh = usprPurposesConsents.sh, - adv = usprPurposesConsents.adv; - - if (usEnabled) { - var _ref2; - - CmpUtils.trackingConsent = (_ref2 = s && sh) != null ? _ref2 : false; - CmpUtils.advertisingTrackingConsent = adv != null ? adv : false; - - if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { - CmpUtils.advertisingTrackingConsent = adv != null ? adv : false; - } - } - - if (lgdpEnabled) {} - - if (gdprEnabled) { - var _ref3, _perPurposeConsents$; - - CmpUtils.trackingConsent = (_ref3 = (_perPurposeConsents$ = perPurposeConsents["4"]) != null ? _perPurposeConsents$ : s && sh) != null ? _ref3 : false; - - if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { - var _ref4, _perPurposeConsents$2; - - CmpUtils.advertisingTrackingConsent = (_ref4 = (_perPurposeConsents$2 = perPurposeConsents["5"]) != null ? _perPurposeConsents$2 : adv) != null ? _ref4 : false; - - if (_optionalPackageUtils.default.isDailymotionVideoPlayerAvailable()) { - DailymotionVideo.setConsentString(CmpUtils.getTCConsentString()); - } - } - - if (googleAds) { - CmpUtils.googlePersonalizedAdsConsent = CmpUtils.advertisingTrackingConsent; - CmpUtils.googleNonPersonalizedAdsConsent = CmpUtils.advertisingTrackingConsent; - - if (!CmpUtils.googlePersonalizedAdsConsent) { - var _perTCFPurposeConsent, _perTCFPurposeConsent2, _perTCFPurposeConsent3, _perTCFPurposeConsent4, _perTCFPurposeConsent5, _perTCFPurposeConsent6, _perTCFPurposeConsent7; - - CmpUtils.googleNonPersonalizedAdsConsent = ((_perTCFPurposeConsent = perTCFPurposeConsents["1"]) != null ? _perTCFPurposeConsent : false) && ((_perTCFPurposeConsent2 = perTCFPurposeConsents["2"]) != null ? _perTCFPurposeConsent2 : false) && ((_perTCFPurposeConsent3 = perTCFPurposeConsents["7"]) != null ? _perTCFPurposeConsent3 : false) && ((_perTCFPurposeConsent4 = perTCFPurposeConsents["9"]) != null ? _perTCFPurposeConsent4 : false) && ((_perTCFPurposeConsent5 = perTCFPurposeConsents["10"]) != null ? _perTCFPurposeConsent5 : false); - CmpUtils.googlePersonalizedAdsConsent = CmpUtils.googleNonPersonalizedAdsConsent && ((_perTCFPurposeConsent6 = perTCFPurposeConsents["3"]) != null ? _perTCFPurposeConsent6 : false) && ((_perTCFPurposeConsent7 = perTCFPurposeConsents["4"]) != null ? _perTCFPurposeConsent7 : false); - } - } - } - } - }, { - key: "setConsentsOsano", - value: function setConsentsOsano(consents) { - var _global$getMainPSetup11 = global.getMainPSetup(), - osanoConfig = _global$getMainPSetup11.osanoConfig; - - CmpUtils.consentNotNeeded = false; - CmpUtils.advertisingTrackingConsent = false; - CmpUtils.trackingConsent = consents.ANALYTICS === "ACCEPT"; - - if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { - var _osanoConfig$tcData, _osanoConfig$uspData; - - CmpUtils.advertisingTrackingConsent = consents.MARKETING === "ACCEPT"; - CmpUtils.consentStrings = { - tc: (_osanoConfig$tcData = osanoConfig.tcData) == null ? undefined : _osanoConfig$tcData.tcString, - us: (_osanoConfig$uspData = osanoConfig.uspData) == null ? undefined : _osanoConfig$uspData.uspString - } || {}; - - if (_optionalPackageUtils.default.isDailymotionVideoPlayerAvailable()) { - DailymotionVideo.setConsentString(CmpUtils.getTCConsentString()); - } - } - } - }, { - key: "setupIubenda", - value: function () { - var _setupIubenda = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup12 = global.getMainPSetup(), - iubendaEnabled = _global$getMainPSetup12.iubendaEnabled, - iubendaConfig = _global$getMainPSetup12.iubendaConfig; - - if (iubendaEnabled && iubendaConfig) { - var siteId = iubendaConfig.siteId, - cookiePolicyId = iubendaConfig.cookiePolicyId, - language = iubendaConfig.language, - googleAds = iubendaConfig.googleAdsPresent, - adsRequireConsent = iubendaConfig.adsRequireConsent, - laws = iubendaConfig.referencePrivacyLaws; - var resetConsentDate = iubendaConfig.resetConsentDate; - - if (siteId && cookiePolicyId) { - var gdprEnabled = CmpUtils.isGDPRComplianceRequired(); - var enableTcf = gdprEnabled && adsRequireConsent; - - if (global.isDebug) {} - - var userSettings = global.getUserSettings(); - var customResetConsentDate = userSettings.resetConsentDate; - - if (customResetConsentDate && customResetConsentDate > resetConsentDate) { - resetConsentDate = customResetConsentDate; - yield userSettings.deleteResetConsentDate(); - } - - yield CmpUtils.initIubendaCMP({ - baseUrl: _NewsmemoryAJAX.default.getCMPBaseURL(), - siteId: siteId, - cookiePolicyId: cookiePolicyId, - googleAds: googleAds, - enableTcf: enableTcf, - resetConsentDate: resetConsentDate, - laws: laws, - language: language - }); - return true; - } - } - - return false; - }); - - function setupIubenda() { - return _setupIubenda.apply(this, arguments); - } - - return setupIubenda; - }() - }, { - key: "editPreferences", - value: function () { - var _editPreferences = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup13 = global.getMainPSetup(), - iubendaEnabled = _global$getMainPSetup13.iubendaEnabled; - - if (iubendaEnabled) { - var consents = yield CmpUtils.editIubendaPreferences(); - CmpUtils.setConsents(consents); - } - }); - - function editPreferences() { - return _editPreferences.apply(this, arguments); - } - - return editPreferences; - }() - }, { - key: "clearConsent", - value: function () { - var _clearConsent = (0, _asyncToGenerator2.default)(function* () { - CmpUtils.trackingConsent = undefined; - CmpUtils.advertisingTrackingConsent = undefined; - CmpUtils.consentStrings = undefined; - CmpUtils.googlePersonalizedAdsConsent = undefined; - CmpUtils.googleNonPersonalizedAdsConsent = undefined; - CmpUtils.consentNotNeeded = false; - - if (Iubenda) { - yield Iubenda.clearData(); - var userSettings = global.getUserSettings(); - userSettings.setResetConsentDate(_$$_REQUIRE(_dependencyMap[8]).DateUtils.getTomorrowString("YYYYMMDD")); - } - - if (Osano) { - yield Osano.clear(); - } - }); - - function clearConsent() { - return _clearConsent.apply(this, arguments); - } - - return clearConsent; - }() - }, { - key: "getTCConsentString", - value: function getTCConsentString() { - var _ref5; - - return (_ref5 = CmpUtils.consentStrings && CmpUtils.consentStrings.tc) != null ? _ref5 : ""; - } - }, { - key: "getUSPConsentString", - value: function getUSPConsentString() { - var _ref6; - - return (_ref6 = CmpUtils.consentStrings && CmpUtils.consentStrings.usp) != null ? _ref6 : ""; - } - }, { - key: "getGDPRScript", - value: function getGDPRScript() { - return "\n try {\n window['gtag_enable_tcf_support'] = true;\n } catch(e) {};"; - } - }, { - key: "addCMPScript", - value: function addCMPScript(html) { - var result = html; - - if (result) { - var script = CmpUtils.getCMPScript(); - - if (script) { - var replacement = " "; - result = _webUtils.default.prependToHead(html, replacement); - } - } - - return result; - } - }, { - key: "getCMPScript", - value: function getCMPScript() { - var script; - - if (CmpUtils.isGDPRComplianceRequired()) { - script = "\n " + CmpUtils.getGDPRScript() + "\n true;"; - } else if (CmpUtils.isUSComplianceRequired()) {} else if (CmpUtils.isLGPDComplianceRequired()) {} - - return script; - } - }]); - }(); - - CmpUtils.attUserChoice = ATT_VALUES.UNAVAILABLE; - CmpUtils.trackingConsent = undefined; - CmpUtils.advertisingTrackingConsent = undefined; - CmpUtils.consentStrings = undefined; - CmpUtils.googlePersonalizedAdsConsent = undefined; - CmpUtils.googleNonPersonalizedAdsConsent = undefined; - CmpUtils.consentNotNeeded = false; -},1915,[3,270,6,7,18,406,879,866,438,815,1906]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FirebaseTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FirebaseAnalytics = _optionalPackageUtils.default.getFirebaseAnalytics(); - - var FirebaseCrashlytics = _optionalPackageUtils.default.getCrashlytics(); - - var FirebaseTracker = exports.FirebaseTracker = function (_FirebaseBaseTracker) { - function FirebaseTracker() { - var _this; - - (0, _classCallCheck2.default)(this, FirebaseTracker); - _this = _callSuper(this, FirebaseTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.FIREBASE_GA]); - _this.init = (0, _asyncToGenerator2.default)(function* () { - if (_optionalPackageUtils.default.isFirebaseAnalyticsAvailable() && _this._isCmpAllowed()) { - var _global$getMainPSetup = global.getMainPSetup(), - disableFirebaseAnalytics = _global$getMainPSetup.disableFirebaseAnalytics, - firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; - - _this.enabled = !disableFirebaseAnalytics; - - try { - yield FirebaseAnalytics().setAnalyticsCollectionEnabled(_this.enabled); - FirebaseCrashlytics().setJSCallback(FirebaseAnalytics().logEvent); - - if (_this.enabled && firebaseAnalyticsSendExternalId) { - var extid = _this._getExtId(); - - yield FirebaseAnalytics().setUserId(extid); - } - } catch (e) {} - } - - return _this; - }); - - _this.trackScreen = function (screenName) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!_this._isValid()) { - return; - } - - FirebaseAnalytics().logScreenView(Object.assign({}, _this._getCustomParams(), params, { - screen_name: screenName - })); - }; - - _this.trackEvent = function (event, params) { - if (!_this._isParamsValid(params)) { - return; - } - - FirebaseAnalytics().logEvent(event, Object.assign({}, _this._getCustomParams(), params)); - }; - - return _this; - } - - (0, _inherits2.default)(FirebaseTracker, _FirebaseBaseTracker); - return (0, _createClass2.default)(FirebaseTracker); - }(_$$_REQUIRE(_dependencyMap[9]).FirebaseBaseTracker); -},1916,[3,270,7,6,11,13,14,879,1906,1917]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FirebaseBaseTracker = undefined; - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FirebaseBaseTracker = exports.FirebaseBaseTracker = function (_Tracker) { - function FirebaseBaseTracker() { - var _this; - - (0, _classCallCheck2.default)(this, FirebaseBaseTracker); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, FirebaseBaseTracker, [].concat(args)); - - _this._getCustomParams = function () { - return { - ta_app_version: _deviceUtils.default.getAppVersion(), - ta_app_name: _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.appName(), - ta_operating_system: _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.getSystemName() + " " + _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.getSystemVersion() - }; - }; - - _this._getExtId = function () { - var _global$getActivePSet = global.getActivePSetup(), - loginStatus = _global$getActivePSet.loginStatus; - - return loginStatus && loginStatus.extid || _PaywallLoginStatus.default.getExtid(); - }; - - return _this; - } - - (0, _inherits2.default)(FirebaseBaseTracker, _Tracker); - return (0, _createClass2.default)(FirebaseBaseTracker); - }(_$$_REQUIRE(_dependencyMap[9]).Tracker); -},1917,[3,7,6,11,13,14,434,1918,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var PaywallLoginStatus = exports.default = function () { - function PaywallLoginStatus() { - (0, _classCallCheck2.default)(this, PaywallLoginStatus); - } - - return (0, _createClass2.default)(PaywallLoginStatus, null, [{ - key: "getUserStatus", - value: function () { - var _getUserStatus = (0, _asyncToGenerator2.default)(function* () { - return _PaywallHelper.default.getUserStatus(); - }); - - function getUserStatus() { - return _getUserStatus.apply(this, arguments); - } - - return getUserStatus; - }() - }, { - key: "getDefaultUserStatus", - value: function getDefaultUserStatus() { - return { - subscriptions: [_$$_REQUIRE(_dependencyMap[5]).unregisteredSubscriptionType] - }; - } - }, { - key: "setUserStatus", - value: function setUserStatus(userStatus) { - PaywallLoginStatus.userStatus = userStatus; - - _PaywallHelper.default.setUserStatus(userStatus); - } - }, { - key: "updateUserStatus", - value: function updateUserStatus(userStatus) { - PaywallLoginStatus.setUserStatus(Object.assign({}, PaywallLoginStatus.userStatus, userStatus)); - } - }, { - key: "resetUserStatus", - value: function resetUserStatus() { - PaywallLoginStatus.setUserStatus(PaywallLoginStatus.getDefaultUserStatus()); - } - }, { - key: "initUserStatus", - value: function () { - var _initUserStatus = (0, _asyncToGenerator2.default)(function* () { - var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; - - _PaywallHelper.default.setStorageName("paywall_" + appId); - - var userStatus = yield PaywallLoginStatus.getUserStatus(); - - if (userStatus) { - PaywallLoginStatus.userStatus = userStatus; - } else { - PaywallLoginStatus.resetUserStatus(); - } - }); - - function initUserStatus() { - return _initUserStatus.apply(this, arguments); - } - - return initUserStatus; - }() - }, { - key: "isLoginInvalid", - value: function isLoginInvalid() { - var _PaywallLoginStatus$u = PaywallLoginStatus.userStatus, - lastLoginTimestamp = _PaywallLoginStatus$u.lastLoginTimestamp, - logged = _PaywallLoginStatus$u.logged; - - if (!logged) { - return false; - } - - var _global$getRSSActiveP = global.getRSSActivePSetup(), - refreshesTAUIDTimestamp = _global$getRSSActiveP.refreshesTAUIDTimestamp; - - if (refreshesTAUIDTimestamp) { - var referenceTimestamp = lastLoginTimestamp || 0; - return refreshesTAUIDTimestamp >= referenceTimestamp; - } - - return false; - } - }, { - key: "remember", - value: function remember(credentials) { - PaywallLoginStatus.updateUserStatus({ - credentials: credentials - }); - } - }, { - key: "forget", - value: function forget() { - PaywallLoginStatus.updateUserStatus({ - credentials: undefined - }); - } - }, { - key: "isUserLoggedIn", - value: function isUserLoggedIn() { - if (PaywallLoginStatus.userStatus) { - var logged = PaywallLoginStatus.userStatus.logged; - return logged != null ? logged : false; - } - - return false; - } - }, { - key: "getCredentials", - value: function getCredentials() { - if (PaywallLoginStatus.userStatus) { - var credentials = PaywallLoginStatus.userStatus.credentials; - return credentials; - } - - return undefined; - } - }, { - key: "getSubscriptions", - value: function getSubscriptions() { - var _subscriptions; - - var subscriptions; - - if (PaywallLoginStatus.userStatus) { - subscriptions = PaywallLoginStatus.userStatus.subscriptions; - } - - return (_subscriptions = subscriptions) != null ? _subscriptions : [_$$_REQUIRE(_dependencyMap[5]).unregisteredSubscriptionType]; - } - }, { - key: "getTAUID", - value: function getTAUID() { - if (PaywallLoginStatus.userStatus) { - var TAUID = PaywallLoginStatus.userStatus.TAUID; - return TAUID; - } - - return undefined; - } - }, { - key: "setExtId", - value: function setExtId(extid) { - PaywallLoginStatus.updateUserStatus({ - extid: extid - }); - } - }, { - key: "getExtid", - value: function getExtid() { - if (PaywallLoginStatus.userStatus) { - var extid = PaywallLoginStatus.userStatus.extid; - return extid; - } - - return undefined; - } - }, { - key: "isAdFree", - value: function isAdFree() { - if (PaywallLoginStatus.userStatus) { - var adFree = PaywallLoginStatus.userStatus.adFree; - return adFree === "1"; - } - - return false; - } - }]); - }(); - - PaywallLoginStatus.userStatus = {}; -},1918,[3,270,6,7,1919,1920]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var PaywallHelper = exports.default = function () { - function PaywallHelper() { - (0, _classCallCheck2.default)(this, PaywallHelper); - } - - return (0, _createClass2.default)(PaywallHelper, null, [{ - key: "getOldName", - value: function getOldName() { - return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? null : PaywallHelper.androidSharedPreferences.name; - } - }, { - key: "getMachineIdFromUserDefaults", - value: function () { - var _getMachineIdFromUserDefaults = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.getOldName(), _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? PaywallHelper.iOSStandardUserDefaults.keys.machineId : PaywallHelper.androidSharedPreferences.keys.machineId); - }); - - function getMachineIdFromUserDefaults() { - return _getMachineIdFromUserDefaults.apply(this, arguments); - } - - return getMachineIdFromUserDefaults; - }() - }, { - key: "getUserStatusFromUserDefaults", - value: function () { - var _getUserStatusFromUserDefaults = (0, _asyncToGenerator2.default)(function* () { - var _global$getRssIndex = global.getRssIndex(), - paywallAppId = _global$getRssIndex.paywallAppId; - - var userStatus = yield _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.getOldName(), _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? paywallAppId : PaywallHelper.androidSharedPreferences.keys.taUserLoginPrefix + paywallAppId); - - if (userStatus) { - if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS()) { - return userStatus[PaywallHelper.iOSStandardUserDefaults.keys.userStatus]; - } - - try { - return JSON.parse(userStatus); - } catch (e) {} - } - - return undefined; - }); - - function getUserStatusFromUserDefaults() { - return _getUserStatusFromUserDefaults.apply(this, arguments); - } - - return getUserStatusFromUserDefaults; - }() - }, { - key: "setStandardUserDefaultsValue", - value: function setStandardUserDefaultsValue(key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItemInDefaultPreferences(PaywallHelper.getOldName(), key, value); - } - }, { - key: "clearStandardUserDefaults", - value: function clearStandardUserDefaults() { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAllFromDefaultPreferences(PaywallHelper.getOldName()); - } - }, { - key: "setStorageName", - value: function setStorageName(name) { - PaywallHelper.SP.name = name; - } - }, { - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.SP.name, key); - }); - - function getItem(_x) { - return _getItem.apply(this, arguments); - } - - return getItem; - }() - }, { - key: "setItem", - value: function () { - var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItemInDefaultPreferences(PaywallHelper.SP.name, key, value); - }); - - function setItem(_x2, _x3) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "clearItem", - value: function () { - var _clearItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearItemFromDefaultPreferences(PaywallHelper.SP.name, key); - }); - - function clearItem(_x4) { - return _clearItem.apply(this, arguments); - } - - return clearItem; - }() - }, { - key: "getAccessedProductsList", - value: function () { - var _getAccessedProductsList = (0, _asyncToGenerator2.default)(function* () { - try { - var alreadyAccessedProducts = yield PaywallHelper.getItem(PaywallHelper.SP.keys.alreadyAccessedProducts); - return JSON.parse(alreadyAccessedProducts); - } catch (e) { - return []; - } - }); - - function getAccessedProductsList() { - return _getAccessedProductsList.apply(this, arguments); - } - - return getAccessedProductsList; - }() - }, { - key: "setAccessedProductsList", - value: function () { - var _setAccessedProductsList = (0, _asyncToGenerator2.default)(function* (value) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.alreadyAccessedProducts, JSON.stringify(value)); - }); - - function setAccessedProductsList(_x5) { - return _setAccessedProductsList.apply(this, arguments); - } - - return setAccessedProductsList; - }() - }, { - key: "getOfflineProductsList", - value: function () { - var _getOfflineProductsList = (0, _asyncToGenerator2.default)(function* () { - try { - var offlineAccessedProducts = yield PaywallHelper.getItem(PaywallHelper.SP.keys.offlineAccessedProducts); - return JSON.parse(offlineAccessedProducts); - } catch (e) { - return []; - } - }); - - function getOfflineProductsList() { - return _getOfflineProductsList.apply(this, arguments); - } - - return getOfflineProductsList; - }() - }, { - key: "setOfflineProductsList", - value: function () { - var _setOfflineProductsList = (0, _asyncToGenerator2.default)(function* (value) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.offlineAccessedProducts, JSON.stringify(value)); - }); - - function setOfflineProductsList(_x6) { - return _setOfflineProductsList.apply(this, arguments); - } - - return setOfflineProductsList; - }() - }, { - key: "isFirstProductsLeftPopupAlreadyShown", - value: function () { - var _isFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - var result = yield PaywallHelper.getItem(PaywallHelper.SP.keys.firstProductsLeftPopupAlreadyShown); - return result === "1"; - }); - - function isFirstProductsLeftPopupAlreadyShown() { - return _isFirstProductsLeftPopupAlreadyShown.apply(this, arguments); - } - - return isFirstProductsLeftPopupAlreadyShown; - }() - }, { - key: "setFirstProductsLeftPopupAlreadyShown", - value: function () { - var _setFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - return PaywallHelper.setItem(PaywallHelper.SP.keys.firstProductsLeftPopupAlreadyShown, "1"); - }); - - function setFirstProductsLeftPopupAlreadyShown() { - return _setFirstProductsLeftPopupAlreadyShown.apply(this, arguments); - } - - return setFirstProductsLeftPopupAlreadyShown; - }() - }, { - key: "isWelcomePopupAlreadyShown", - value: function () { - var _isWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - var result = yield PaywallHelper.getItem(PaywallHelper.SP.keys.welcomePopupAlreadyShown); - return result === "1"; - }); - - function isWelcomePopupAlreadyShown() { - return _isWelcomePopupAlreadyShown.apply(this, arguments); - } - - return isWelcomePopupAlreadyShown; - }() - }, { - key: "setWelcomePopupAlreadyShown", - value: function () { - var _setWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - return PaywallHelper.setItem(PaywallHelper.SP.keys.welcomePopupAlreadyShown, "1"); - }); - - function setWelcomePopupAlreadyShown() { - return _setWelcomePopupAlreadyShown.apply(this, arguments); - } - - return setWelcomePopupAlreadyShown; - }() - }, { - key: "getUserStatus", - value: function () { - var _getUserStatus = (0, _asyncToGenerator2.default)(function* () { - try { - var userStatus = yield PaywallHelper.getItem(PaywallHelper.SP.keys.userStatus); - - if (userStatus) { - return JSON.parse(userStatus); - } - - var oldUserStatus = yield PaywallHelper.getUserStatusFromUserDefaults(); - - if (oldUserStatus) { - var user = oldUserStatus.user, - pwdEncrypt = oldUserStatus.pwdEncrypt, - challenge = oldUserStatus.challenge, - subscription = oldUserStatus.subscription, - remember = oldUserStatus.remember; - userStatus = { - credentials: { - user: user, - pwdEncrypt: pwdEncrypt, - challenge: challenge - }, - subscriptions: [subscription], - remember: remember - }; - yield PaywallHelper.setUserStatus(userStatus); - PaywallHelper.clearStandardUserDefaults(); - } - - return userStatus; - } catch (e) { - return null; - } - }); - - function getUserStatus() { - return _getUserStatus.apply(this, arguments); - } - - return getUserStatus; - }() - }, { - key: "setUserStatus", - value: function () { - var _setUserStatus = (0, _asyncToGenerator2.default)(function* (userStatus) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.userStatus, JSON.stringify(userStatus)); - }); - - function setUserStatus(_x7) { - return _setUserStatus.apply(this, arguments); - } - - return setUserStatus; - }() - }, { - key: "getConfig", - value: function () { - var _getConfig = (0, _asyncToGenerator2.default)(function* () { - try { - var config = yield PaywallHelper.getItem(PaywallHelper.SP.keys.config); - - if (config) { - return JSON.parse(config); - } - } catch (e) {} - - return {}; - }); - - function getConfig() { - return _getConfig.apply(this, arguments); - } - - return getConfig; - }() - }, { - key: "setConfig", - value: function () { - var _setConfig = (0, _asyncToGenerator2.default)(function* (config) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.config, JSON.stringify(config)); - }); - - function setConfig(_x8) { - return _setConfig.apply(this, arguments); - } - - return setConfig; - }() - }, { - key: "setLastProductsLeft", - value: function () { - var _setLastProductsLeft = (0, _asyncToGenerator2.default)(function* (productsLeft) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.lastProductsLeft, "" + productsLeft); - }); - - function setLastProductsLeft(_x9) { - return _setLastProductsLeft.apply(this, arguments); - } - - return setLastProductsLeft; - }() - }, { - key: "getLastProductsLeft", - value: function () { - var _getLastProductsLeft = (0, _asyncToGenerator2.default)(function* () { - return PaywallHelper.getItem(PaywallHelper.SP.keys.lastProductsLeft); - }); - - function getLastProductsLeft() { - return _getLastProductsLeft.apply(this, arguments); - } - - return getLastProductsLeft; - }() - }, { - key: "enableLogoutFlag", - value: function () { - var _enableLogoutFlag = (0, _asyncToGenerator2.default)(function* () { - return PaywallHelper.setItem(PaywallHelper.SP.keys.logout, "1"); - }); - - function enableLogoutFlag() { - return _enableLogoutFlag.apply(this, arguments); - } - - return enableLogoutFlag; - }() - }, { - key: "isLogoutFlagEnabled", - value: function () { - var _isLogoutFlagEnabled = (0, _asyncToGenerator2.default)(function* () { - var flag = yield PaywallHelper.getItem(PaywallHelper.SP.keys.logout); - return flag === "1"; - }); - - function isLogoutFlagEnabled() { - return _isLogoutFlagEnabled.apply(this, arguments); - } - - return isLogoutFlagEnabled; - }() - }, { - key: "clearLogoutFlag", - value: function () { - var _clearLogoutFlag = (0, _asyncToGenerator2.default)(function* () { - return PaywallHelper.clearItem(PaywallHelper.SP.keys.logout); - }); - - function clearLogoutFlag() { - return _clearLogoutFlag.apply(this, arguments); - } - - return clearLogoutFlag; - }() - }]); - }(); - - PaywallHelper.SP = { - name: "paywall", - keys: { - welcomePopupAlreadyShown: "welcomePopupAlreadyShown", - alreadyAccessedProducts: "alreadyAccessedProducts", - offlineAccessedProducts: "offlineAccessedProducts", - firstProductsLeftPopupAlreadyShown: "firstProductsLeftPopupAlreadyShown", - userStatus: "userStatus", - config: "config", - lastProductsLeft: "lastProductsLeft", - logout: "logoutInRSS" - } - }; - PaywallHelper.androidSharedPreferences = { - name: "ta_metered_paywall", - keys: { - taUserLoginPrefix: "ta_user_login_", - machineId: "ta_MACHINE_ID" - } - }; - PaywallHelper.iOSStandardUserDefaults = { - keys: { - machineId: "ta_MACHINE_ID", - userStatus: "ta_user_login" - } - }; -},1919,[3,270,6,7,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.unregisteredSubscriptionType = exports.services = exports.serverStatusCodes = exports.serverBaseDomain = exports.protectedServices = exports.popupTypes = exports.configKeys = exports.baseVer = exports.accessedProductsDuration = exports.UNLIMITED_ACCESS = undefined; - var serverBaseDomain = exports.serverBaseDomain = "pw.newsmemory.com"; - var baseVer = exports.baseVer = "meterapps.check.24120213"; - var accessedProductsDuration = exports.accessedProductsDuration = 86400000; - var unregisteredSubscriptionType = exports.unregisteredSubscriptionType = "UNREGISTERED"; - var services = exports.services = { - config: "get_config", - validate: "validate", - login: "login", - logout: "logout", - user_validate: "user_validate", - popups: "popups" - }; - var protectedServices = exports.protectedServices = [services.validate, services.user_validate, services.logout, services.login]; - var popupTypes = exports.popupTypes = { - account: "userProfile", - blocking: "paywall", - login: "loginForm", - productsLeft: "productsLeft", - welcome: "welcome" - }; - var serverStatusCodes = exports.serverStatusCodes = { - INTERNAL_ERROR: -5, - SESSION_EXPIRED: -4, - USER_NOT_LOGGED: -3, - WRONG_ACI: -3, - WRONG_APP_ID: -2, - SUCCESS: 0 - }; - var configKeys = exports.configKeys = { - showWelcomePopup: "show_welcome_popup", - showFirstProductsLeftPopup: "show_first_products_left_popup", - showLatestProductsLeftPopup: "show_latest_products_left_popup", - showPaywall: "show_paywall" - }; - var UNLIMITED_ACCESS = exports.UNLIMITED_ACCESS = "unlimited"; -},1920,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.WebTracker = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _excluded = ["pageLocation"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var WebAnalytics = _optionalPackageUtils.default.getWebAnalytics(); - - var WebTracker = exports.WebTracker = function (_FirebaseBaseTracker) { - function WebTracker() { - var _this; - - (0, _classCallCheck2.default)(this, WebTracker); - _this = _callSuper(this, WebTracker, [_$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.FIREBASE_GA_WEB]); - _this.initialized = false; - _this.projects = []; - _this.cachedScreens = []; - _this.cachedEvents = []; - _this.init = (0, _asyncToGenerator2.default)(function* () { - var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - - if (_optionalPackageUtils.default.isWebAnalyticsAvailable() && _this._isCmpAllowed()) { - var _global$getMainPSetup = global.getMainPSetup(), - pSetup = _global$getMainPSetup.pSetup, - otherFirebaseProjects = _global$getMainPSetup.otherFirebaseProjects, - firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; - - var _global$getActivePSet = global.getActivePSetup(), - activePSetup = _global$getActivePSet.pSetup, - otherActiveFirebaseProjects = _global$getActivePSet.otherFirebaseProjects; - - var projects = otherFirebaseProjects; - - if (pSetup !== activePSetup && otherActiveFirebaseProjects.length > 0) { - projects = _this._mergeProjectsLists(otherFirebaseProjects, otherActiveFirebaseProjects); - } - - if (force || !_this.enabled || !_$$_REQUIRE(_dependencyMap[11]).JSUtils.equals(projects, _this.projects)) { - _this.enabled = projects.length > 0; - _this.projects = projects; - - try { - if (_this.enabled) { - if (firebaseAnalyticsSendExternalId) { - var extid = _this._getExtId(); - - yield WebAnalytics().setUserId(extid); - } - - if (global.__DEV__) { - yield WebAnalytics().debugMode(true); - } - - WebAnalytics().initializeWebMode().then((0, _asyncToGenerator2.default)(function* () { - yield Promise.all(projects.map(function (instance) { - return WebAnalytics().addInstance(instance); - })); - _this.initialized = true; - - if (_this.cachedScreens.length > 0) { - _this.cachedScreens.forEach(function (_ref3) { - var screenName = _ref3.screenName, - params = _ref3.params; - - _this.trackScreen(screenName, params); - }); - - _this.cachedScreens = []; - } - - if (_this.cachedEvents.length > 0) { - _this.cachedEvents.forEach(function (_ref4) { - var event = _ref4.event, - params = _ref4.params; - - _this.trackEvent(event, params); - }); - - _this.cachedEvents = []; - } - })); - } - } catch (e) {} - } - } - - return _this; - }); - - _this.trackScreen = function (screenName) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!_this._isValid()) { - return; - } - - if (!_this.initialized) { - _this.cachedScreens.push({ - screenName: screenName, - params: params - }); - - return; - } - - var pageLocation = params.pageLocation, - rest = (0, _objectWithoutProperties2.default)(params, _excluded); - WebAnalytics().logScreenView(Object.assign({}, _this._getCustomParams(), rest, { - firebase_screen: screenName, - firebase_screen_class: _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() ? "SplashActivity" : "ReactViewController" - })); - WebAnalytics().logPageView(Object.assign({}, _this._getCustomParams(), rest, { - page_title: screenName, - page_location: pageLocation - })); - }; - - _this.trackEvent = function (event, params) { - if (!_this._isParamsValid(params)) { - return; - } - - if (!_this.initialized) { - _this.cachedEvents.push({ - event: event, - params: params - }); - - return; - } - - WebAnalytics().logEvent(event, Object.assign({}, _this._getCustomParams(), params)); - }; - - return _this; - } - - (0, _inherits2.default)(WebTracker, _FirebaseBaseTracker); - return (0, _createClass2.default)(WebTracker, [{ - key: "_mergeProjectsLists", - value: function _mergeProjectsLists() { - var listA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var listB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return listB.reduce(function (prev, instanceB) { - var found = listA.find(function (instanceA) { - return _$$_REQUIRE(_dependencyMap[11]).JSUtils.areEqualDeep(instanceA, instanceB, { - skipKeys: ["name"] - }); - }) !== undefined; - - if (!found) { - prev.push(instanceB); - } - - return prev; - }, (0, _toConsumableArray2.default)(listA)); - } - }]); - }(_$$_REQUIRE(_dependencyMap[12]).FirebaseBaseTracker); -},1921,[3,22,4,270,6,7,11,13,14,879,1906,438,1917]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.RempTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var RempTracker = exports.RempTracker = function (_Tracker) { - function RempTracker() { - var _this; - - (0, _classCallCheck2.default)(this, RempTracker); - _this = _callSuper(this, RempTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.REMP]); - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - rempAccountURL = _global$getActivePSet.rempAccountURL; - - _this.enabled = !!rempAccountURL && _this._isCmpAllowed(); - _this.url = rempAccountURL; - return _this; - }); - - _this.trackScreen = function () { - var _ref2 = (0, _asyncToGenerator2.default)(function* (rParam) { - if (!_this._isValid()) { - return; - } - - if (!rParam) { - return; - } - - try { - yield _Api.default.remp(_this.url, { - r: rParam - }); - } catch (e) {} - }); - - return function (_x) { - return _ref2.apply(this, arguments); - }; - }(); - - _this.url = ""; - return _this; - } - - (0, _inherits2.default)(RempTracker, _Tracker); - return (0, _createClass2.default)(RempTracker); - }(_$$_REQUIRE(_dependencyMap[9]).Tracker); -},1922,[3,270,7,6,11,13,14,407,1906,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MatherTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _OptionalPackages$get = _optionalPackageUtils.default.getMatherAnalytics(), - MatherAnalytics = _OptionalPackages$get.MatherAnalytics, - PageView = _OptionalPackages$get.PageView; - - var MatherTracker = exports.MatherTracker = function (_Tracker) { - function MatherTracker() { - var _this; - - (0, _classCallCheck2.default)(this, MatherTracker); - _this = _callSuper(this, MatherTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.MATHER]); - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - matherAnalyticsEnabled = _global$getActivePSet.matherAnalyticsEnabled, - matherAnalyticsCustomerId = _global$getActivePSet.matherAnalyticsCustomerId, - matherAnalyticsSiteId = _global$getActivePSet.matherAnalyticsSiteId; - - _this.enabled = _optionalPackageUtils.default.isMatherAnalyticsAvailable() && matherAnalyticsEnabled && _this._isCmpAllowed(); - - if (_this.enabled) { - _this.tracker = new MatherAnalytics(matherAnalyticsCustomerId, matherAnalyticsSiteId); - } - - return _this; - }); - - _this.trackScreen = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - try { - var _this$tracker; - - (_this$tracker = _this.tracker) == null ? undefined : _this$tracker.trackPageView(_this._getPageView(params)); - } catch (e) {} - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - try { - var _this$tracker2; - - (_this$tracker2 = _this.tracker) == null ? undefined : _this$tracker2.trackAction(_this._getPageView(params)); - } catch (e) {} - }; - - _this._getPageView = function () { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var _global$getActivePSet2 = global.getActivePSetup(), - loginStatus = _global$getActivePSet2.loginStatus, - matherAnalyticsSendEmail = _global$getActivePSet2.matherAnalyticsSendEmail; - - var username = loginStatus.username, - extid = loginStatus.extid; - var screen = params.screen, - action = params.action, - edition = params.edition, - title = params.title, - section = params.section, - page = params.page, - type = params.type; - var pageView = { - appName: global.appName, - pageUrl: screen, - publication: edition, - section: section, - pageNumber: page - }; - - if (matherAnalyticsSendEmail && loginStatus.isLoggedIn()) { - pageView.email = username; - pageView.userId = { - user: extid, - loggedIn: true - }; - } - - if (action === _$$_REQUIRE(_dependencyMap[9]).analyticsScreenTypes.READ) { - pageView.pageType = "article"; - } else { - pageView.pageType = "page"; - } - - if (title) { - pageView.pageTitle = title; - } - - if (type) { - pageView.articleType = type; - } - - return pageView; - }; - - return _this; - } - - (0, _inherits2.default)(MatherTracker, _Tracker); - return (0, _createClass2.default)(MatherTracker); - }(_$$_REQUIRE(_dependencyMap[10]).Tracker); -},1923,[3,270,7,6,11,13,14,879,1906,1909,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MatomoTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Matomo = _optionalPackageUtils.default.getMatomo(); - - var MatomoTracker = exports.MatomoTracker = function (_Tracker) { - function MatomoTracker() { - var _this; - - (0, _classCallCheck2.default)(this, MatomoTracker); - _this = _callSuper(this, MatomoTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.MATOMO]); - _this.tracker = undefined; - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - matomoEnabled = _global$getActivePSet.matomoEnabled, - matomoConfig = _global$getActivePSet.matomoConfig; - - _this.enabled = _optionalPackageUtils.default.isMatomoAvailable() && matomoEnabled && _this._isCmpAllowed() && matomoConfig; - - if (_this.enabled) { - var ePaperSiteId = matomoConfig.ePaperSiteId, - rssSiteId = matomoConfig.rssSiteId, - baseURL = matomoConfig.baseURL, - dispatchInterval = matomoConfig.dispatchInterval, - visitCustomDimensions = matomoConfig.visitCustomDimensions; - var siteId = _LiveConfig.default.isRssSide() ? rssSiteId : ePaperSiteId; - - if (baseURL && siteId) { - _this.tracker = Matomo; - - _this.tracker.initTracker(baseURL, siteId); - - _this.tracker.setDispatchInterval(dispatchInterval); - - _this.tracker.removeAllDimensions().then(function () { - if (visitCustomDimensions) { - var dimensions = (0, _$$_REQUIRE(_dependencyMap[9]).parseCustomDimensionsString)(visitCustomDimensions); - Object.keys(dimensions).forEach(function (key) { - _this.tracker.setCustomDimension(parseInt(key, 10), dimensions[key]); - }); - } - }); - } - } - - return _this; - }); - - _this.trackScreen = function (params) { - if (!_this._isValid()) { - return; - } - - try { - var _this$tracker; - - var _global$getActivePSet2 = global.getActivePSetup(), - matomoConfig = _global$getActivePSet2.matomoConfig; - - var customDimensions = matomoConfig.customDimensions; - var title = ""; - (_this$tracker = _this.tracker) == null ? undefined : _this$tracker.trackScreen(params.screen, title, (0, _$$_REQUIRE(_dependencyMap[9]).parseCustomDimensionsString)(customDimensions, params)); - } catch (e) {} - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - try { - var _this$tracker2; - - var category = params.category, - action = params.action, - label = params.label; - (_this$tracker2 = _this.tracker) == null ? undefined : _this$tracker2.trackEvent(category, action, label); - } catch (e) {} - }; - - _this.dispatch = function () { - if (!_this._isValid()) { - return; - } - - try { - var _this$tracker3; - - (_this$tracker3 = _this.tracker) == null ? undefined : _this$tracker3.dispatch(); - } catch (e) {} - }; - - return _this; - } - - (0, _inherits2.default)(MatomoTracker, _Tracker); - return (0, _createClass2.default)(MatomoTracker); - }(_$$_REQUIRE(_dependencyMap[10]).Tracker); -},1924,[3,270,7,6,11,13,14,1907,879,1906,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MatomoMasTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var MatomoTracker = _optionalPackageUtils.default.getMatomoTracker(); - - var MatomoMasTracker = exports.MatomoMasTracker = function (_Tracker) { - function MatomoMasTracker() { - var _this; - - (0, _classCallCheck2.default)(this, MatomoMasTracker); - _this = _callSuper(this, MatomoMasTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.MATOMO_MAS]); - _this.tracker = undefined; - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - matomoTrackerEnabled = _global$getActivePSet.matomoTrackerEnabled, - matomoTrackerConfig = _global$getActivePSet.matomoTrackerConfig; - - _this.enabled = _optionalPackageUtils.default.isMatomoTrackerAvailable() && matomoTrackerEnabled && matomoTrackerConfig && _this._isCmpAllowed(); - - if (_this.enabled) { - var ePaperSiteId = matomoTrackerConfig.ePaperSiteId, - rssSiteId = matomoTrackerConfig.rssSiteId, - baseURL = matomoTrackerConfig.baseURL; - var siteId = _LiveConfig.default.isRssSide() ? rssSiteId : ePaperSiteId; - - if (baseURL && siteId) { - _this.tracker = new MatomoTracker({ - urlBase: baseURL, - trackerUrl: baseURL, - siteId: siteId - }); - } - } - - return _this; - }); - - _this.trackScreen = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - try { - var userInfo = _this._getUserInfo(params); - - if (userInfo && userInfo.action_name) { - var _this$tracker; - - (_this$tracker = _this.tracker) == null ? undefined : _this$tracker.trackScreenView({ - name: userInfo.action_name, - userInfo: userInfo - }); - } - } catch (e) {} - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - try {} catch (e) {} - }; - - _this._getUserInfo = function () { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = params.action; - - var _global$getActivePSet2 = global.getActivePSetup(), - matomoTrackerConfig = _global$getActivePSet2.matomoTrackerConfig; - - if (action && matomoTrackerConfig) { - var titles = matomoTrackerConfig.titles, - customURLs = matomoTrackerConfig.customURLs, - customDimensions = matomoTrackerConfig.customDimensions; - - var title = _this._replacePlaceHolder(titles[action], params); - - var url = _this._replacePlaceHolder(customURLs[action], params); - - var customDimensionsObj = _$$_REQUIRE(_dependencyMap[10]).StringUtils.parseQuerystring(_this._replacePlaceHolder(customDimensions[action], params, true)); - - return Object.assign({ - action_name: title, - url: url - }, customDimensionsObj, { - ua: _$$_REQUIRE(_dependencyMap[10]).PlatformUtils.getUserAgent() - }); - } - - return {}; - }; - - _this._replacePlaceHolder = function (string, params) { - var encodeValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var newString = string || ""; - - if (newString) { - var _global$getActivePSet3 = global.getActivePSetup(), - matomoTrackerConfig = _global$getActivePSet3.matomoTrackerConfig; - - var edition = params.edition, - articlesource = params.articlesource; - newString = (0, _$$_REQUIRE(_dependencyMap[9]).replaceCustomDimensionsPlaceholders)(newString, params, encodeValue, function (name, paramValue) { - var customParamValue = paramValue; - - switch (name) { - case "actionBaseURL": - if (matomoTrackerConfig) { - customParamValue = matomoTrackerConfig.actionBaseURL; - } - - break; - - case "edition": - customParamValue = edition; - - if (matomoTrackerConfig && matomoTrackerConfig.editionRemapping && matomoTrackerConfig.editionRemapping[edition]) { - customParamValue = matomoTrackerConfig.editionRemapping[edition]; - } - - break; - - case "pageInstance": - if (articlesource) { - customParamValue = _$$_REQUIRE(_dependencyMap[10]).StringUtils.getLastPathSegment(articlesource, "-"); - } - - break; - - default: - break; - } - - return customParamValue; - }); - } - - return newString; - }; - - return _this; - } - - (0, _inherits2.default)(MatomoMasTracker, _Tracker); - return (0, _createClass2.default)(MatomoMasTracker); - }(_$$_REQUIRE(_dependencyMap[11]).Tracker); -},1925,[3,270,7,6,11,13,14,1907,879,1906,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.AdmobileTracker = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _OptionalPackages$get = _optionalPackageUtils.default.getAdobeAnalytics(), - Analytics = _OptionalPackages$get.Analytics, - ADBMobileConfig = _OptionalPackages$get.ADBMobileConfig; - - var AdmobileTracker = exports.AdmobileTracker = function (_Tracker) { - function AdmobileTracker() { - var _this; - - (0, _classCallCheck2.default)(this, AdmobileTracker); - _this = _callSuper(this, AdmobileTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.ADOBE]); - _this.adobeAnalyticsSendOnlyEditionLoad = false; - _this.firstScrolledSent = false; - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - adobeAnalyticsEnabled = _global$getActivePSet.adobeAnalyticsEnabled, - adobeAnalyticsConfig = _global$getActivePSet.adobeAnalyticsConfig; - - _this.enabled = _optionalPackageUtils.default.isAdobeAnalyticsAvailable() && adobeAnalyticsEnabled && _this._isCmpAllowed(); - - if (_this.enabled) { - var sendOnlyEditionLoad = adobeAnalyticsConfig.sendOnlyEditionLoad; - _this.sendOnlyEditionLoad = sendOnlyEditionLoad; - ADBMobileConfig.setDebugLogging(global.isDebug); - - _this.start(); - } - - return _this; - }); - _this.start = (0, _asyncToGenerator2.default)(function* () { - if (!_this._isValid()) { - return; - } - - var contextData = yield _this.getContextData({ - action: _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.LAUNCH - }); - ADBMobileConfig.collectLifecycleData(contextData); - }); - - _this.pause = function () { - if (!_this._isValid()) { - return; - } - - ADBMobileConfig.pauseCollectingLifecycleData(); - }; - - _this.trackScreen = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - var _global$getActivePSet2 = global.getActivePSetup(), - adobeAnalyticsConfig = _global$getActivePSet2.adobeAnalyticsConfig; - - if (!adobeAnalyticsConfig) { - return; - } - - var SCROLLED = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SCROLLED, - READ = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.READ, - ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM, - INDEX = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.INDEX, - SECTION_INDEX = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SECTION_INDEX, - OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.OPTIONSPAGE, - SHARE = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SHARE, - PAGE_CLICK = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.PAGE_CLICK, - ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ARTICLE_CLICK; - - var action = params.action, - section = params.section; - - if (!(!_this.sendOnlyEditionLoad || action === SCROLLED && !_this.firstScrolledSent)) { - return; - } - - var scrolledStateName = adobeAnalyticsConfig.scrolledStateName, - readStateName = adobeAnalyticsConfig.readStateName, - zoomedStateName = adobeAnalyticsConfig.zoomedStateName, - indexStateName = adobeAnalyticsConfig.indexStateName, - optionspageStateName = adobeAnalyticsConfig.optionspageStateName; - var stateName; - - switch (action) { - case SCROLLED: - stateName = scrolledStateName; - _this.firstScrolledSent = true; - break; - - case READ: - stateName = readStateName; - break; - - case ZOOM: - stateName = zoomedStateName; - break; - - case INDEX: - stateName = indexStateName; - - if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(section)) { - params.section = indexStateName; - } - - break; - - case SECTION_INDEX: - stateName = indexStateName; - break; - - case OPTIONSPAGE: - stateName = optionspageStateName; - break; - } - - if (stateName) { - _this.trackState(stateName, params); - } else if (action === SHARE) { - _this.trackEvent(Object.assign({ - category: _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SOCIAL_SHARE - }, params)); - } else if (action === PAGE_CLICK || action === ARTICLE_CLICK) { - _this.trackEvent(Object.assign({ - category: _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.LINK_CLICKED - }, params)); - } - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - var _global$getActivePSet3 = global.getActivePSetup(), - adobeAnalyticsConfig = _global$getActivePSet3.adobeAnalyticsConfig; - - if (adobeAnalyticsConfig) { - var doubleTapActionName = adobeAnalyticsConfig.doubleTapActionName, - pinchOutActionName = adobeAnalyticsConfig.pinchOutActionName, - scrollZoomActionName = adobeAnalyticsConfig.scrollZoomActionName, - textToSpeechActionName = adobeAnalyticsConfig.textToSpeechActionName, - skipToEndActionName = adobeAnalyticsConfig.skipToEndActionName, - toggleToPrintActionName = adobeAnalyticsConfig.toggleToPrintActionName, - toggleToDigitalActionName = adobeAnalyticsConfig.toggleToDigitalActionName, - shareActionName = adobeAnalyticsConfig.shareActionName, - linkClickActionName = adobeAnalyticsConfig.linkClickActionName; - - var TTS = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TTS, - DOUBLE_TAP_TO_ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.DOUBLE_TAP_TO_ZOOM, - PINCH_TO_ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.PINCH_TO_ZOOM, - SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SCROLL_ZOOMED, - SKIP_TO_END = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SKIP_TO_END, - TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_TO_PRINT, - TOGGLE_TO_DIGITAL = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_TO_DIGITAL, - SOCIAL_SHARE = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SOCIAL_SHARE, - LINK_CLICKED = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.LINK_CLICKED; - - var ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM; - - var category = params.category, - action = params.action; - var actionName; - - switch (category) { - case DOUBLE_TAP_TO_ZOOM: - actionName = doubleTapActionName; - - if (!action) { - params.action = ZOOM; - } - - break; - - case PINCH_TO_ZOOM: - actionName = pinchOutActionName; - - if (!action) { - params.action = ZOOM; - } - - break; - - case SCROLL_ZOOMED: - actionName = scrollZoomActionName; - - if (!action) { - params.action = ZOOM; - } - - break; - - case TTS: - actionName = textToSpeechActionName; - - if (action) { - if (action === _events.default.TTS_ENGINE_STARTED) { - actionName = actionName + ".on"; - } else if (action === _events.default.TTS_ENGINE_STOPPED) { - actionName = actionName + ".off"; - } - } - - break; - - case SKIP_TO_END: - actionName = skipToEndActionName; - break; - - case TOGGLE_TO_PRINT: - actionName = toggleToPrintActionName; - break; - - case TOGGLE_TO_DIGITAL: - actionName = toggleToDigitalActionName; - break; - - case SOCIAL_SHARE: - actionName = shareActionName; - break; - - case LINK_CLICKED: - actionName = linkClickActionName; - break; - } - - if (actionName) { - _this.trackAction(actionName, params); - } - } - }; - - _this.resetFirstScrolledSent = function () { - _this.firstScrolledSent = false; - }; - - _this.getContextData = (0, _asyncToGenerator2.default)(function* () { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var contextData = {}; - var action = params.action, - category = params.category, - isFirstPage = params.isFirstPage, - isZoomed = params.isZoomed, - mode = params.mode; - - var SCROLLED = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SCROLLED, - READ = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.READ, - ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM, - INDEX = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.INDEX, - SECTION_INDEX = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SECTION_INDEX, - OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.OPTIONSPAGE, - SHARE = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SHARE; - - var TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_TO_PRINT; - - var _global$getActivePSet4 = global.getActivePSetup(), - adobeAnalyticsConfig = _global$getActivePSet4.adobeAnalyticsConfig, - loginStatus = _global$getActivePSet4.loginStatus; - - if (adobeAnalyticsConfig) { - var propsList = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseQuerystring(adobeAnalyticsConfig.propsList); - - var extraUserInfo = loginStatus ? yield loginStatus.getExtraUserInfo() : undefined; - - if (action === SHARE) { - params.socialPlatform = params.platform; - params.platform = undefined; - } - - var userTypeSubscriber = adobeAnalyticsConfig.userTypeSubscriber, - userTypeUnknown = adobeAnalyticsConfig.userTypeUnknown, - printMedium = adobeAnalyticsConfig.printMedium, - digitalMedium = adobeAnalyticsConfig.digitalMedium, - zoomedMediumSuffix = adobeAnalyticsConfig.zoomedMediumSuffix, - firstPageSectionPrefix = adobeAnalyticsConfig.firstPageSectionPrefix, - pageContentType = adobeAnalyticsConfig.pageContentType, - firstPageContentType = adobeAnalyticsConfig.firstPageContentType, - indexContentType = adobeAnalyticsConfig.indexContentType, - articleContentType = adobeAnalyticsConfig.articleContentType, - optionspageContentType = adobeAnalyticsConfig.optionspageContentType, - editionType = adobeAnalyticsConfig.editionType, - deviceType = adobeAnalyticsConfig.deviceType; - Object.keys(propsList).forEach(function (prop) { - if (propsList[prop]) { - contextData[prop] = (0, _$$_REQUIRE(_dependencyMap[9]).replaceCustomDimensionsPlaceholders)(propsList[prop], params, false, function (name, paramValue) { - var customParamValue = paramValue; - - switch (name) { - case "section": - if (isFirstPage && firstPageSectionPrefix) { - customParamValue = "" + firstPageSectionPrefix + customParamValue; - } - - break; - - case "deviceType": - customParamValue = deviceType; - break; - - case "userType": - customParamValue = userTypeUnknown; - var TAUID = loginStatus.TAUID; - - if (TAUID) { - customParamValue = userTypeSubscriber; - } - - break; - - case "medium": - if (action === SCROLLED || action === ZOOM || action === INDEX || action === SECTION_INDEX) { - customParamValue = printMedium; - - if ((action === ZOOM || action === SCROLLED && isZoomed) && zoomedMediumSuffix) { - customParamValue += zoomedMediumSuffix; - } - } else if (action === READ) { - customParamValue = digitalMedium; - - if (mode === _$$_REQUIRE(_dependencyMap[10]).NewsmemoryArticleModes.GRAPHIC) { - customParamValue = printMedium; - } - } else if (action !== OPTIONSPAGE) { - customParamValue = digitalMedium; - - if (category && category === TOGGLE_TO_PRINT) { - customParamValue = printMedium; - } - } - - break; - - case "contentType": - if (action === SCROLLED || action === ZOOM) { - customParamValue = isFirstPage ? firstPageContentType : pageContentType; - } else if (action === READ) { - customParamValue = articleContentType; - } else if (action === INDEX || action === SECTION_INDEX) { - customParamValue = indexContentType; - } else if (action === OPTIONSPAGE) { - customParamValue = optionspageContentType; - } - - break; - - case "editionType": - customParamValue = editionType; - break; - - default: - if (extraUserInfo && Object.keys(extraUserInfo).length > 0) { - var matches = name.match(/eu([0-9]+)/); - - if (matches && matches.length > 1) { - var extraUserInfoId = matches[1]; - var extraUserInfoValue = extraUserInfo[extraUserInfoId]; - - if (extraUserInfoValue) { - customParamValue = extraUserInfoValue; - } - } - } - - break; - } - - return customParamValue; - }); - } - }); - } - - return contextData; - }); - - _this.trackState = function () { - var _ref4 = (0, _asyncToGenerator2.default)(function* (state, params) { - var data = yield _this.getContextData(params); - Analytics == null ? undefined : Analytics.trackState(state, data); - }); - - return function (_x, _x2) { - return _ref4.apply(this, arguments); - }; - }(); - - _this.trackAction = function () { - var _ref5 = (0, _asyncToGenerator2.default)(function* (action, params) { - var data = yield _this.getContextData(params); - Analytics == null ? undefined : Analytics.trackAction(action, data); - }); - - return function (_x3, _x4) { - return _ref5.apply(this, arguments); - }; - }(); - - return _this; - } - - (0, _inherits2.default)(AdmobileTracker, _Tracker); - return (0, _createClass2.default)(AdmobileTracker); - }(_$$_REQUIRE(_dependencyMap[12]).Tracker); -},1926,[3,270,7,6,11,13,14,436,879,1906,1909,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FacebookTracker = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _excluded = ["event", "isFirstPage", "isZoomed", "remp"], - _excluded2 = ["type", "apptype"], - _excluded3 = ["category", "isFirstPage"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _OptionalPackages$get = _optionalPackageUtils.default.getFacebookSDK(), - Settings = _OptionalPackages$get.Settings, - AppEventsLogger = _OptionalPackages$get.AppEventsLogger; - - var FacebookTracker = exports.FacebookTracker = function (_Tracker) { - function FacebookTracker() { - var _this; - - (0, _classCallCheck2.default)(this, FacebookTracker); - _this = _callSuper(this, FacebookTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.FACEBOOK]); - - _this.init = function () { - var _global$getMainPSetup = global.getMainPSetup(), - facebookAnalyticsEnabled = _global$getMainPSetup.facebookAnalyticsEnabled; - - _this.enabled = _optionalPackageUtils.default.isFacebookSDKAvailable() && facebookAnalyticsEnabled && global.facebookAppId && _this._isCmpAllowed(); - - if (_this.enabled) { - if (global.isDebug) { - Settings.setAppID(global.facebookAppId); - } - - if (typeof Settings.setAutoLogAppEventsEnabled === "function") { - Settings.setAutoLogAppEventsEnabled(true); - } - - if (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isIOS()) { - Settings.setAdvertiserTrackingEnabled(_this._isCmpAdAllowed()); - } - - Settings.initializeSDK(); - } - - return _this; - }; - - _this.trackScreen = function (params) { - _this.trackEvent(params); - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - var eventName; - var otherParams = {}; - - if (params.event) { - var event = params.event, - isFirstPage = params.isFirstPage, - isZoomed = params.isZoomed, - remp = params.remp, - rest = (0, _objectWithoutProperties2.default)(params, _excluded); - eventName = event; - otherParams = rest; - } else if (params.apptype === "rss") { - var type = params.type, - apptype = params.apptype, - _rest = (0, _objectWithoutProperties2.default)(params, _excluded2); - - eventName = type; - otherParams = Object.assign({}, _rest, { - appMode: apptype - }); - } else if (params.category) { - var category = params.category, - _isFirstPage = params.isFirstPage, - _rest2 = (0, _objectWithoutProperties2.default)(params, _excluded3); - - eventName = category; - otherParams = _rest2; - } - - if (eventName) { - AppEventsLogger == null ? undefined : AppEventsLogger.logEvent(eventName, otherParams); - } - }; - - return _this; - } - - (0, _inherits2.default)(FacebookTracker, _Tracker); - return (0, _createClass2.default)(FacebookTracker); - }(_$$_REQUIRE(_dependencyMap[10]).Tracker); -},1927,[3,4,7,6,11,13,14,879,1906,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ComscoreTracker = undefined; - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Comscore = _optionalPackageUtils.default.getComscore(); - - var ComscoreTracker = exports.ComscoreTracker = function (_Tracker) { - function ComscoreTracker() { - var _this; - - (0, _classCallCheck2.default)(this, ComscoreTracker); - _this = _callSuper(this, ComscoreTracker, [_$$_REQUIRE(_dependencyMap[7]).ANALYTICS_SERVICES.COMSCORE]); - - _this.init = function () { - var _global$getActivePSet = global.getActivePSetup(), - comScoreId = _global$getActivePSet.comScoreId, - comScorePublisherSecret = _global$getActivePSet.comScorePublisherSecret, - comScoreAppName = _global$getActivePSet.comScoreAppName; - - _this.enabled = _optionalPackageUtils.default.isComScoreAvailable() && comScoreId && comScorePublisherSecret && _this._isCmpAllowed(); - - if (_this.enabled) { - Comscore.startup({ - comScoreId: comScoreId, - comScorePublisherSecret: comScorePublisherSecret, - comScoreAppName: comScoreAppName, - persistentLabels: {} - }); - } - - return _this; - }; - - _this.onEnterForeground = function () { - if (!_this._isValid()) { - return; - } - - Comscore.onEnterForeground(); - }; - - _this.onExitForeground = function () { - if (!_this._isValid()) { - return; - } - - Comscore.onExitForeground(); - }; - - return _this; - } - - (0, _inherits2.default)(ComscoreTracker, _Tracker); - return (0, _createClass2.default)(ComscoreTracker); - }(_$$_REQUIRE(_dependencyMap[8]).Tracker); -},1928,[3,7,6,11,13,14,879,1906,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ChartbeatTracker = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _excluded = ["screen"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var ChartBeat = _optionalPackageUtils.default.getChartBeat(); - - var ChartbeatTracker = exports.ChartbeatTracker = function (_Tracker) { - function ChartbeatTracker() { - var _this; - - (0, _classCallCheck2.default)(this, ChartbeatTracker); - _this = _callSuper(this, ChartbeatTracker, [_$$_REQUIRE(_dependencyMap[11]).ANALYTICS_SERVICES.CHARTBEAT]); - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - chartbeatConfig = _global$getActivePSet.chartbeatConfig; - - var accountId = chartbeatConfig.accountId, - domain = chartbeatConfig.domain; - _this.enabled = _optionalPackageUtils.default.isChartBeatAvailable() && accountId && domain && _this._isCmpAllowed(); - - if (_this.enabled) { - ChartBeat.setupTracker(accountId, domain); - } - - _$$_REQUIRE(_dependencyMap[12]).EventRegister.addEventListener(_events.default.ON_USER_INTERACT, function () { - if (!_this.enabled) { - return; - } - - ChartBeat.userInteracted(); - }); - - return _this; - }); - - _this.trackScreen = function (_ref2) { - var screen = _ref2.screen, - rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded); - - if (!_this._isValid()) { - return; - } - - var _global$getActivePSet2 = global.getActivePSetup(), - chartbeatConfig = _global$getActivePSet2.chartbeatConfig; - - var rssEnabled = chartbeatConfig.rssEnabled, - epaperEnabled = chartbeatConfig.epaperEnabled; - - if (_LiveConfig.default.isRssSide() && rssEnabled) { - _this._trackView(screen, rest, chartbeatConfig.rssScreenKey, chartbeatConfig.rssTitleKeys, chartbeatConfig.authorRssProperties, chartbeatConfig.sectionRssProperties, chartbeatConfig.rssCustomData); - } else if (!_LiveConfig.default.isRssSide() && epaperEnabled) { - _this._trackView(screen, rest, chartbeatConfig.epaperScreenKey, chartbeatConfig.epaperTitleKeys, chartbeatConfig.authorEpaperProperties, chartbeatConfig.sectionEpaperProperties, chartbeatConfig.epaperCustomData); - } - }; - - _this.trackEvent = function (params) {}; - - _this._trackView = function () { - var screen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - var params = arguments.length > 1 ? arguments[1] : undefined; - var screenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; - var titleKeys = arguments.length > 3 ? arguments[3] : undefined; - var authorProperties = arguments.length > 4 ? arguments[4] : undefined; - var sectionProperties = arguments.length > 5 ? arguments[5] : undefined; - var customData = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ""; - - try { - var _Object$keys$find, _params$foundKey; - - var screenId = screen; - - if (screenKey) { - screenId = Object.keys(params).reduce(function (result, key) { - return result.replace("#" + key + "#", params[key]); - }, screenKey).replace(/#.*?#/g, ""); - } - - var hasLetterOrNumber = /[a-zA-Z0-9]/.test(screenId); - - if (!hasLetterOrNumber) { - screenId = screen; - } - - var customDataParams = {}; - - if (customData) { - var queryString = (0, _$$_REQUIRE(_dependencyMap[11]).replaceCustomDimensionsPlaceholders)(customData, params); - customDataParams = _$$_REQUIRE(_dependencyMap[13]).StringUtils.parseQuerystring(queryString); - } - - if (!screenId) { - return; - } - - var foundKey = (_Object$keys$find = Object.keys(params).find(function (key) { - return titleKeys.includes(key); - })) != null ? _Object$keys$find : ""; - var title = (_params$foundKey = params[foundKey]) != null ? _params$foundKey : ""; - var sections = sectionProperties.map(function (key) { - return params[key]; - }).filter(function (section) { - return section; - }); - var authors = authorProperties.map(function (key) { - return params[key]; - }).filter(function (author) { - return author; - }); - _this._lastScreenTracked = { - viewId: screenId, - title: title, - sections: sections, - authors: authors, - customData: customDataParams - }; - - _this._track(_this._lastScreenTracked); - } catch (e) {} - }; - - _this._track = function (trackParams) { - if (!trackParams) { - return; - } - - var viewId = trackParams.viewId, - title = trackParams.title, - sections = trackParams.sections, - authors = trackParams.authors, - customData = trackParams.customData; - ChartBeat.trackView(viewId, title); - - if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(customData)) { - ChartBeat.setCustomData(customData); - } - - ChartBeat.setSections(sections); - ChartBeat.setAuthors(authors); - }; - - _this.onEnterForeground = function () { - _this._track(_this._lastScreenTracked); - }; - - _this.onExitForeground = function () { - var _this$_lastScreenTrac; - - if (!((_this$_lastScreenTrac = _this._lastScreenTracked) != null && _this$_lastScreenTrac.viewId)) { - return; - } - - ChartBeat.userLeftView(_this._lastScreenTracked.viewId); - }; - - return _this; - } - - (0, _inherits2.default)(ChartbeatTracker, _Tracker); - return (0, _createClass2.default)(ChartbeatTracker); - }(_$$_REQUIRE(_dependencyMap[14]).Tracker); -},1929,[3,4,270,7,6,11,13,14,879,1907,436,1906,564,438,1914]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.BlueconicTracker = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _excluded = ["category", "action", "label"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var BlueConic = _optionalPackageUtils.default.getBlueConic(); - - var BlueconicTracker = exports.BlueconicTracker = function (_Tracker) { - function BlueconicTracker() { - var _this; - - (0, _classCallCheck2.default)(this, BlueconicTracker); - _this = _callSuper(this, BlueconicTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.BLUECONIC]); - _this.init = (0, _asyncToGenerator2.default)(function* () { - var _global$getMainPSetup = global.getMainPSetup(), - blueConicEnabled = _global$getMainPSetup.blueConicEnabled, - blueConicConfig = _global$getMainPSetup.blueConicConfig; - - _this.enabled = _optionalPackageUtils.default.isBlueConicAvailable() && blueConicEnabled && blueConicConfig && _this._isCmpAllowed(); - - _this._setBlueConicUserProfileProperties(); - - return _this; - }); - - _this.trackScreen = function () { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - if (!_this._isValid()) { - return; - } - - _this._setBlueConicViewProfileProperties(params); - - BlueConic.registerPageView(params.screen); - }; - - _this.trackEvent = function (params) { - if (!_this._isParamsValid(params)) { - return; - } - - var category = params.category, - action = params.action, - label = params.label, - rest = (0, _objectWithoutProperties2.default)(params, _excluded); - - var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SCROLL_ZOOMED; - - if (category === SCROLL_ZOOMED) { - var screen = (0, _$$_REQUIRE(_dependencyMap[9]).getScreenString)(Object.assign({ - type: action - }, rest)); - - _this.trackScreen(Object.assign({ - screen: screen, - action: action - }, rest)); - } else { - _this._setBlueConicViewProfileProperties(params); - - var values = []; - - if (action) { - values.push(action); - } - - if (label) { - values.push(label); - } - - BlueConic.registerAdvancedEvent(category, values); - } - }; - - return _this; - } - - (0, _inherits2.default)(BlueconicTracker, _Tracker); - return (0, _createClass2.default)(BlueconicTracker, [{ - key: "_blueConicCustomReplacement", - value: function _blueConicCustomReplacement(name, paramValue, params) { - if (name === "action") { - if (params.screen) { - var SCROLLED = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SCROLLED, - RSS_DRAWER = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.RSS_DRAWER, - RSS_ARTICLE_READ = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.RSS_ARTICLE_READ; - - var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SCROLL_ZOOMED; - - switch (paramValue) { - case SCROLLED: - return "Scroll"; - - case SCROLL_ZOOMED: - return "Zoom"; - - case RSS_DRAWER: - return "Category"; - - case RSS_ARTICLE_READ: - return "Read"; - - default: - return paramValue.charAt(0).toUpperCase() + paramValue.slice(1); - } - } - - return ""; - } - - return paramValue; - } - }, { - key: "_setBlueConicUserProfileProperties", - value: function _setBlueConicUserProfileProperties() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - if (!this.enabled) { - return; - } - - var _global$getMainPSetup2 = global.getMainPSetup(), - blueConicConfig = _global$getMainPSetup2.blueConicConfig; - - var userProfileProperties = blueConicConfig.userProfileProperties; - - this._setBlueConicProfileProperties(userProfileProperties, params); - } - }, { - key: "_setBlueConicViewProfileProperties", - value: function _setBlueConicViewProfileProperties(params) { - if (!this.enabled) { - return; - } - - var _global$getMainPSetup3 = global.getMainPSetup(), - blueConicConfig = _global$getMainPSetup3.blueConicConfig; - - var viewProfileProperties = blueConicConfig.viewProfileProperties; - - this._setBlueConicProfileProperties(viewProfileProperties, params); - } - }, { - key: "_setBlueConicProfileProperties", - value: function _setBlueConicProfileProperties(profilePropertiesString) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!this.enabled || !profilePropertiesString) { - return; - } - - var viewProfileProperties = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseQuerystring((0, _$$_REQUIRE(_dependencyMap[9]).replaceCustomDimensionsPlaceholders)(profilePropertiesString, params, true, this._blueConicCustomReplacement)); - - Object.keys(viewProfileProperties).forEach(function (key) { - var value = viewProfileProperties[key]; - - if (value) { - BlueConic.setProfileValue(key, value); - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[12]).Tracker); -},1930,[3,4,270,6,7,11,13,14,879,1906,1909,438,1914]); +},1888,[16,3,1881]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244085,7 +233820,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SslConfig.MAIN_DIRECTORY = "certs"; SslConfig.LIST = "list.json"; SslConfig.FILETIME = "filetime.txt"; -},1931,[3,270,6,7,407,566,438]); +},1889,[3,270,6,7,407,566,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244173,7 +233908,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1932,[3,270,6,7,566]); +},1890,[3,270,6,7,566]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244337,7 +234072,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1933,[3,270,6,7,436,1934,1935,438,1943,564]); +},1891,[3,270,6,7,436,1892,1893,438,1901,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244485,7 +234220,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e db_url: "DbPath", db_mtime: "DbMTime", drawer_content: "Index", - ga_json: "ga_json", grid_title_line_limit_phone: "boxTitleLinesLimitGridPhone", grid_title_line_limit_tablet: "boxTitleLinesLimitGridTablet", home_category_name: "homeCategoryName", @@ -244591,7 +234325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},1934,[3,270,6,7,438]); +},1892,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244766,7 +234500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); RssActionManager.PARSER = [new _ParserV2.default(), new _ParserV.default()]; -},1935,[3,6,7,1936,1938,1939]); +},1893,[3,6,7,1894,1896,1897]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244886,7 +234620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1936,[3,6,7,1937]); +},1894,[3,6,7,1895]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244918,7 +234652,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var REG_EX_LOAD_EXTERNAL_URL = exports.REG_EX_LOAD_EXTERNAL_URL = /(loadExternalURL)(:(.*)){0,1}/; var PROPERTIES = exports.PROPERTIES = [PROPERTY_HIDE_DATE, PROPERTY_PREMIUM_ARTICLE, PROPERTY_DISABLE_OPEN_IMAGE, PROPERTY_DISABLE_COLUMNIZER, PROPERTY_LOAD_URL_IN_ARTICLE, PROPERTY_LOAD_NATIVE_AD, PROPERTY_HIDE_ITEM_IN_FULL_SCREEN, PROPERTY_HIDE_IMAGE_IN_CARD_MODE, PROPERTY_HIDE_SUMMARY_IN_CARD_MODE, PROPERTY_TITLE_ON_IMAGE_IN_CARD_MODE, PROPERTY_IS_SCHEDULE, PROPERTY_NOT_CLICKABLE]; var ACTIONS = exports.ACTIONS = [ACTION_OPEN_GALLERY, ACTION_LOAD_EXTERNAL_URL, ACTION_LINK_TO_CATEGORY, ACTION_OPEN_E_EDITION, ACTION_SHARE, ACTION_SAVE_FOR_LATER, ACTION_LIVE_STREAM]; -},1937,[]); +},1895,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244999,7 +234733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1938,[3,6,7]); +},1896,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245288,7 +235022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return global.strings("action_unknown"); }; -},1939,[3,16,18,567,1937,1881,436,1807,179,1940]); +},1897,[3,16,18,567,1895,1870,436,1812,179,1898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245403,7 +235137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e clearFavoritesEventName: _propTypes.default.string, toggleFavoritesEventName: _propTypes.default.string }; -},1940,[3,6,7,11,13,14,16,582,1941,564,1942,179,817,1807]); +},1898,[3,6,7,11,13,14,16,582,1899,564,1900,179,820,1812]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245562,7 +235296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var AnimatedImageIconChooser = exports.AnimatedImageIconChooser = _reactNative.Animated.createAnimatedComponent(ImageIconChooser); var _default = exports.default = ImageIconChooser; -},1941,[3,6,7,11,13,14,4,16,18,582,1807,588,438,179]); +},1899,[3,6,7,11,13,14,4,16,18,582,1812,588,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245586,7 +235320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: CIRCULAR_MENU_ICON_SIZE } }); -},1942,[18]); +},1900,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245839,7 +235573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1943,[3,6,7,1944,1935,1945,438,1946]); +},1901,[3,6,7,1902,1893,1903,438,1904]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245901,7 +235635,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nativo: "nativo" } }; -},1944,[]); +},1902,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245955,7 +235689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1945,[3,6,7]); +},1903,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246120,7 +235854,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var action = item.action; return action.hasPropertyNotClickable(); } -},1946,[438]); +},1904,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246326,7 +236060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1947,[3,270,6,7,1179,407,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,438]); +},1905,[3,270,6,7,1182,407,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,438]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "android_location_usage_message": "The app uses location to provide the user search results related to the area where he/she lives", @@ -246678,7 +236412,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_number_stored_editions": "Number of editions to store", "settings_restore_defaults": "Restore default settings", "settings_clear_storage": "Clear storage", - "settings_back_to_classic": "Return to Classic eEdition", "settings_restart_from_latest": "Restart from the latest edition (min)", "settings_article_mode": "Article mode", "settings_article_mode_only_text": "Show articles only", @@ -246748,7 +236481,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "msg_edit_token_confirm": "New value: \"{{token}}\"", "btn_not_sure_yet": "Not sure yet" }; -},1948,[]); +},1906,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai a {{anchor}}", @@ -247036,7 +236769,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Mostra solo articoli testuali", "settings_restore_defaults": "Ripristina impostazioni iniziali", "settings_clear_storage": "Cancella dati", - "settings_back_to_classic": "Torna alla versione precedente dell'Edizione Digitale", "settings_two_fingers_tap_to_article": "Usa il tap con due dita per aprire la lettura testuale", "settings_single_tap_to_zoom": "Usa tap singolo per zoomare", "settings_favorite_edition": "Scegli la tua edizione preferita", @@ -247141,7 +236873,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Caricamento...", "btn_not_sure_yet": "Non ne sono ancora sicuro" }; -},1949,[]); +},1907,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "{{anchor}} اذهب إلى", @@ -247418,7 +237150,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "إظهار المقالات فقط", "settings_restore_defaults": "استعادة الإعدادات الافتراضية", "settings_clear_storage": "مسح البيانات", - "settings_back_to_classic": "العودة إلى الإصدار الكلاسيكي", "settings_two_fingers_tap_to_article": "استخدم الصنبور بإصبعين لفتح قراءة النص", "settings_single_tap_to_zoom": "استخدم نقرة واحدة للتكبير", "settings_favorite_edition": "اختر نسختك المفضلة", @@ -247497,7 +237228,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "جارٍ التحميل...", "btn_not_sure_yet": "لست متأكدا بعد" }; -},1950,[]); +},1908,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -247774,7 +237505,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Vis kun artikler", "settings_restore_defaults": "Gendan standardindstillinger", "settings_clear_storage": "Ryd data", - "settings_back_to_classic": "Vend tilbage til Classic eEdition", "settings_two_fingers_tap_to_article": "Brug hanen med to fingre til at åbne tekstaflæsningen", "settings_single_tap_to_zoom": "Brug enkelt tryk for at zoome", "settings_favorite_edition": "Vælg din yndlingsudgave", @@ -247866,7 +237596,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploader...", "btn_not_sure_yet": "Ikke sikker endnu" }; -},1951,[]); +},1909,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Weiter zu {{anchor}}", @@ -248144,7 +237874,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Nur Artikel anzeigen", "settings_restore_defaults": "Standardeinstellungen wiederherstellen", "settings_clear_storage": "Speicher leeren", - "settings_back_to_classic": "Zurück zu Classic e-Paper", "settings_two_fingers_tap_to_article": "Um Artikel lesen / Lesemodus zu aktivieren, verwenden Sie Zwei-Finger-Tap", "settings_single_tap_to_zoom": "Um zu vergrößern, verwenden Sie Ein-Finger-Tap", "settings_favorite_edition": "Wählen Sie Ihre Lieblingsausgabe", @@ -248253,7 +237982,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Hochladen...", "btn_not_sure_yet": "Noch nicht sicher" }; -},1952,[]); +},1910,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Aller à {{anchor}}", @@ -248531,7 +238260,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Affiche uniquement les articles textuels", "settings_restore_defaults": "Rétablir les paramètres d'usine", "settings_clear_storage": "Stockage clair", - "settings_back_to_classic": "Retour à l'édition classique", "settings_two_fingers_tap_to_article": "Taper deux fois pour ouvrir l'article", "settings_single_tap_to_zoom": "Taper pour zoomer", "settings_favorite_edition": "Choisissez votre édition préférée", @@ -248622,7 +238350,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Téléchargement...", "btn_not_sure_yet": "Je ne suis pas encore sûr" }; -},1953,[]); +},1911,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Ga naar {{anchor}}", @@ -248898,7 +238626,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Alleen artikelen weergeven", "settings_restore_defaults": "Standaard instellingen terugzetten", "settings_clear_storage": "Klar lagring", - "settings_back_to_classic": "Keer terug naar de klassieke editie", "settings_two_fingers_tap_to_article": "Gebruik de twee vinger tap om een artikel te openen in tekstmodus", "settings_single_tap_to_zoom": "Gebruik de enkele tap om in te zoomen", "settings_favorite_edition": "Kies je favoriete editie", @@ -248990,7 +238717,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploaden...", "btn_not_sure_yet": "Nog niet zeker" }; -},1954,[]); +},1912,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Acción ir a {{anchor}}", @@ -249264,7 +238991,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Mostrar solo los articulos textuales", "settings_restore_defaults": "Restaurar la configuración predeterminada", "settings_clear_storage": "Almacenaje vacío", - "settings_back_to_classic": "Vuelve a la versión de la Edición Digital anterior", "settings_two_fingers_tap_to_article": "Use dos dedos para abrir el modo de artículo", "settings_single_tap_to_zoom": "Use un solo toque para hacer zoom", "settings_favorite_edition": "Elige tu edición favorita", @@ -249374,7 +239100,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Cargando...", "btn_not_sure_yet": "No estoy seguro todavía" }; -},1955,[]); +},1913,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Du-te la {{anchor}}", @@ -249641,7 +239367,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Afișați numai articole", "settings_restore_defaults": "Restabilește setările implicite", "settings_clear_storage": "Spațiu de depozitare liber", - "settings_back_to_classic": "Reveniți la ediția clasică", "settings_two_fingers_tap_to_article": "Atingeți cu două degete pentru a deschide modul articol", "settings_single_tap_to_zoom": "Folosiți o singură atingere pentru a mări", "settings_favorite_edition": "Alegeți ediția preferată", @@ -249733,7 +239458,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Se încarcă...", "btn_not_sure_yet": "Încă nu sunt sigur" }; -},1956,[]); +},1914,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Pojdi na {{anchor}}", @@ -250074,7 +239799,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_number_stored_editions": "Število izdaj za shranjevanje", "settings_restore_defaults": "Obnovitev privzetih nastavitev", "settings_clear_storage": "Počisti shrambo", - "settings_back_to_classic": "Vrnitev na klasično e-izdajo", "settings_restart_from_latest": "Ponovni zagon od zadnje izdaje (min)", "settings_article_mode": "Način članka", "settings_article_mode_only_text": "Prikaži samo članke", @@ -250150,7 +239874,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "msg_edit_token_confirm": "Nova vrednost: \"{{token}}\"", "btn_not_sure_yet": "Nisem še prepričan" }; -},1957,[]); +},1915,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå till {{anchor}}", @@ -250453,7 +240177,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode": "Artikelläge", "settings_article_mode_all": "Visa allt", "settings_clear_storage": "Rensa lagring", - "settings_back_to_classic": "Återgå till Classic e-Edition", "settings_two_fingers_tap_to_article": "Använd två peka finger för att öppna artikeln läge", "settings_single_tap_to_zoom": "Använd enda tryck för att zooma", "settings_favorite_edition": "Välj din favorit edition", @@ -250538,7 +240261,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laddar upp...", "btn_not_sure_yet": "Inte säker än" }; -},1958,[]); +},1916,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai para {{anchor}}", @@ -250814,7 +240537,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Mostrar apenas artigos", "settings_restore_defaults": "Restaurar configurações", "settings_clear_storage": "Limpar dados", - "settings_back_to_classic": "Voltar à eEdition Clássica", "settings_two_fingers_tap_to_article": "Usa toque com dois dedos para abrir a modo artigo", "settings_single_tap_to_zoom": "Usa um tap para zoomar", "settings_favorite_edition": "Escolha a sua edição favorita", @@ -250924,7 +240646,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Carregando...", "btn_not_sure_yet": "Ainda não tenho certeza" }; -},1959,[]); +},1917,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai para {{anchor}}", @@ -251200,7 +240922,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Mostrar apenas artigos", "settings_restore_defaults": "Restaurar configurações", "settings_clear_storage": "Limpar dados", - "settings_back_to_classic": "Voltar à eEdition Clássica", "settings_two_fingers_tap_to_article": "Usa toque com dois dedos para abrir a modo artigo", "settings_single_tap_to_zoom": "Usa um tap para zoomar", "settings_favorite_edition": "Escolha a sua edição favorita", @@ -251308,7 +241029,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Carregando...", "btn_not_sure_yet": "Ainda não tenho certeza" }; -},1960,[]); +},1918,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Ga naar {{anchor}}", @@ -251584,7 +241305,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Alleen artikelen weergeven", "settings_restore_defaults": "Standaard instellingen terugzetten", "settings_clear_storage": "Klar lagring", - "settings_back_to_classic": "Keer terug naar de klassieke editie", "settings_two_fingers_tap_to_article": "Gebruik de twee vinger tap om een artikel te openen in tekstmodus", "settings_single_tap_to_zoom": "Gebruik de enkele tap om in te zoomen", "settings_favorite_edition": "Kies je favoriete editie", @@ -251676,7 +241396,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploaden...", "btn_not_sure_yet": "Nog niet zeker" }; -},1961,[]); +},1919,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -251952,7 +241672,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Vis kun artikler", "settings_restore_defaults": "Gjenopprett standardinnstillinger", "settings_clear_storage": "Klar lagring", - "settings_back_to_classic": "Gå tilbake til Classic eEdition", "settings_two_fingers_tap_to_article": "Bruk tofinger trykk for å åpne artikkel modus", "settings_single_tap_to_zoom": "Bruk enkelt trykk for å zoome", "settings_favorite_edition": "Velg din favorittutgave", @@ -252042,7 +241761,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laster opp ...", "btn_not_sure_yet": "Ikke sikker ennå" }; -},1962,[]); +},1920,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -252318,7 +242037,6 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "settings_article_mode_only_text": "Vis kun artikler", "settings_restore_defaults": "Gjenopprett standardinnstillinger", "settings_clear_storage": "Klar lagring", - "settings_back_to_classic": "Gå tilbake til Classic eEdition", "settings_two_fingers_tap_to_article": "Bruk tofinger trykk for å åpne artikkel modus", "settings_single_tap_to_zoom": "Bruk enkelt trykk for å zoome", "settings_favorite_edition": "Velg din favorittutgave", @@ -252409,7 +242127,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laster opp ...", "btn_not_sure_yet": "Ikke sikker ennå" }; -},1963,[]); +},1921,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -252537,7 +242255,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filetime: "filetime" } }; -},1964,[3,270,6,7,438]); +},1922,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -252585,36 +242303,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "setLanguage", value: function setLanguage(language) { - if (this.ttsManager) { - this.ttsManager.setLanguage(language); - } + var _this$ttsManager; + + (_this$ttsManager = this.ttsManager) == null ? undefined : _this$ttsManager.setLanguage(language); } }, { key: "setLocale", value: function setLocale(locale) { - if (this.ttsManager) { - this.ttsManager.setLocale(locale); - } + var _this$ttsManager2; + + (_this$ttsManager2 = this.ttsManager) == null ? undefined : _this$ttsManager2.setLocale(locale); } }, { key: "ttsIsPaused", value: function ttsIsPaused() { - return this.ttsManager && this.ttsManager.isPaused(); + var _this$ttsManager3; + + return !!((_this$ttsManager3 = this.ttsManager) != null && _this$ttsManager3.isPaused()); } }, { key: "ttsIsUserPaused", value: function ttsIsUserPaused() { - return this.ttsManager && this.ttsManager.isUserPaused(); + var _this$ttsManager4; + + return !!((_this$ttsManager4 = this.ttsManager) != null && _this$ttsManager4.isUserPaused()); } }, { key: "ttsIsSpeaking", value: function ttsIsSpeaking() { - return this.ttsManager && this.ttsManager.isSpeaking(); + var _this$ttsManager5; + + return !!((_this$ttsManager5 = this.ttsManager) != null && _this$ttsManager5.isSpeaking()); } }, { key: "ttsIsAutoRestart", value: function ttsIsAutoRestart() { - return this.ttsManager && this.ttsManager.isAutoRestart(); + var _this$ttsManager6; + + return !!((_this$ttsManager6 = this.ttsManager) != null && _this$ttsManager6.isAutoRestart()); } }, { key: "ttsWhat", @@ -252659,17 +242385,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "ttsStart", value: function () { var _ttsStart = (0, _asyncToGenerator2.default)(function* (text) { - if (this.ttsManager) { - if (this.stopPromise) { - try { - yield this.stopPromise; - } catch (e) {} - } - - return this.ttsManager.start(text); + if (!this.ttsManager) { + return Promise.resolve(); } - return Promise.resolve(); + if (this.stopPromise) { + try { + yield this.stopPromise; + } catch (e) {} + } + + return this.ttsManager.start(text); }); function ttsStart(_x2) { @@ -252684,23 +242410,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _ttsStop = (0, _asyncToGenerator2.default)(function* (autoRestartEnabled) { var _this = this; - if (this.ttsManager) { - this.rejectStopPromise(); + if (!this.ttsManager) { + return Promise.resolve(); + } - if (autoRestartEnabled) { - this.stopPromise = new Promise(function (resolve, reject) { - _this.stopResolve = resolve; - _this.stopReject = reject; - - _this.ttsManager.stop(autoRestartEnabled).then(_this.resolveStopPromise).catch(_this.rejectStopPromise); - }); - return this.stopPromise; - } + this.rejectStopPromise(); + if (!autoRestartEnabled) { return this.ttsManager.stop(); } - return Promise.resolve(); + this.stopPromise = new Promise(function (resolve, reject) { + _this.stopResolve = resolve; + _this.stopReject = reject; + + _this.ttsManager.stop(autoRestartEnabled).then(_this.resolveStopPromise).catch(_this.rejectStopPromise); + }); + return this.stopPromise; }); function ttsStop(_x3) { @@ -252763,28 +242489,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "ttsShowPlayer", value: function ttsShowPlayer() { - if (this.ttsManager) { - this.ttsManager.showPlayer(); - } + var _this$ttsManager7; + + (_this$ttsManager7 = this.ttsManager) == null ? undefined : _this$ttsManager7.showPlayer(); } }, { key: "ttsPlayerProps", value: function ttsPlayerProps() { - if (this.ttsManager) { - return this.ttsManager.getPlayerProps(); - } + var _this$ttsManager$getP, _this$ttsManager8; - return {}; + return (_this$ttsManager$getP = (_this$ttsManager8 = this.ttsManager) == null ? undefined : _this$ttsManager8.getPlayerProps()) != null ? _this$ttsManager$getP : {}; } }, { key: "srIsRunning", value: function srIsRunning() { - return this.voiceManager && this.voiceManager.isRunning(); + var _this$voiceManager; + + return !!((_this$voiceManager = this.voiceManager) != null && _this$voiceManager.isRunning()); } }, { key: "srIsLooping", value: function srIsLooping() { - return this.voiceManager && this.voiceManager.loop; + var _this$voiceManager2; + + return !!((_this$voiceManager2 = this.voiceManager) != null && _this$voiceManager2.loop); } }, { key: "srStart", @@ -252824,7 +242552,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1965,[3,270,6,7,1966,1982]); +},1923,[3,270,6,7,1924,1940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253187,7 +242915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1966,[3,270,6,7,436,434,1967,1972,1979,564]); +},1924,[3,270,6,7,436,434,1925,1930,1937,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253442,7 +243170,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPause: _propTypes.default.func, onClose: _propTypes.default.func }; -},1967,[3,224,6,7,11,13,14,16,582,18,1807,817,179,1968]); +},1925,[3,224,6,7,11,13,14,16,582,18,1812,820,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253457,7 +243185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1968,[1969]); +},1926,[1927]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253734,7 +243462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},1969,[3,22,6,7,11,13,14,16,18,582,1709,814,1970,438,817,179,1971]); +},1927,[3,22,6,7,11,13,14,16,18,582,1714,817,1928,438,820,179,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253775,7 +243503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},1970,[3,6,7,11,13,14,16,18,179]); +},1928,[3,6,7,11,13,14,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253818,7 +243546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1971,[18,438]); +},1929,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254170,7 +243898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1972,[3,270,6,7,1973,436,1974,564,438]); +},1930,[3,270,6,7,1931,436,1932,564,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254352,7 +244080,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_reactNative.NativeEventEmitter); var _default = exports.default = new Tts(); -},1973,[3,6,7,11,13,14,18]); +},1931,[3,6,7,11,13,14,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254516,7 +244244,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 0; } -},1974,[3,270,22,1973,1975,1976]); +},1932,[3,270,22,1931,1933,1934]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254529,7 +244257,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var VolumeControlEvents = exports.VolumeControlEvents = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.VolumeControl); var _default = exports.default = VolumeControl; -},1975,[18]); +},1933,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254544,7 +244272,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1976,[1977]); +},1934,[1935]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254782,7 +244510,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fadeDuration: 500, opacity: 1 }; -},1977,[3,6,7,11,13,14,16,18,434,814,438,817,179,1978]); +},1935,[3,6,7,11,13,14,16,18,434,817,438,820,179,1936]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254805,7 +244533,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 10 } }); -},1978,[18]); +},1936,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -254820,7 +244548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1979,[1980]); +},1937,[1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255017,7 +244745,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1980,[3,6,7,11,13,14,16,18,179,1981,1968,438]); +},1938,[3,6,7,11,13,14,16,18,179,1939,1926,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255053,7 +244781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1981,[18,438]); +},1939,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255074,14 +244802,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var MAX_RESTART_RETRY = 5; - var _OptionalPackages$get = _optionalPackageUtils.default.getVoice(), - Voice = _OptionalPackages$get.Voice; - var VoiceManager = exports.default = function () { function VoiceManager() { var _this = this; (0, _classCallCheck2.default)(this, VoiceManager); + this.module = null; this.loop = false; this.retry = 0; this.running = false; @@ -255167,14 +244893,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._onSpeechVolumeChanged = function (event) {}; + var _OptionalPackages$get = _optionalPackageUtils.default.getVoice(), + Voice = _OptionalPackages$get.Voice; + if (Voice) { - Voice.onSpeechStart = this._onSpeechStart; - Voice.onSpeechError = this._onSpeechError; - Voice.onSpeechPartialResults = this._onSpeechPartialResults; - Voice.onSpeechResults = this._onSpeechResults; - Voice.onSpeechRecognized = this._onSpeechRecognized; - Voice.onSpeechVolumeChanged = this._onSpeechVolumeChanged; - Voice.onSpeechEnd = this._onSpeechEnd; + this.module = Voice; + this.module.onSpeechStart = this._onSpeechStart; + this.module.onSpeechError = this._onSpeechError; + this.module.onSpeechPartialResults = this._onSpeechPartialResults; + this.module.onSpeechResults = this._onSpeechResults; + this.module.onSpeechRecognized = this._onSpeechRecognized; + this.module.onSpeechVolumeChanged = this._onSpeechVolumeChanged; + this.module.onSpeechEnd = this._onSpeechEnd; } } @@ -255199,11 +244929,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getServices", value: function () { var _getServices2 = (0, _asyncToGenerator2.default)(function* () { - if (Voice) { - return Voice.getSpeechRecognitionServices(); - } + var _this$module$getSpeec, _this$module; - return []; + return (_this$module$getSpeec = (_this$module = this.module) == null ? undefined : _this$module.getSpeechRecognitionServices()) != null ? _this$module$getSpeec : []; }); function _getServices() { @@ -255216,19 +244944,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_isRecognizing", value: function () { var _isRecognizing2 = (0, _asyncToGenerator2.default)(function* () { - if (Voice) { - try { - var result = yield Voice.isRecognizing(); - - this._log("is recognizing " + result); - - return result; - } catch (e) { - return false; - } + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(this.module)) { + return false; } - return false; + try { + var result = yield this.module.isRecognizing(); + + this._log("is recognizing " + result); + + return result; + } catch (e) { + return false; + } }); function _isRecognizing() { @@ -255241,19 +244969,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_isAvailable", value: function () { var _isAvailable2 = (0, _asyncToGenerator2.default)(function* () { - if (Voice) { - try { - var result = yield Voice.isAvailable(); - - this._log("is available " + result); - - return result; - } catch (e) { - return false; - } + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(this.module)) { + return false; } - return false; + try { + var result = yield this.module.isAvailable(); + + this._log("is available " + result); + + return result; + } catch (e) { + return false; + } }); function _isAvailable() { @@ -255271,18 +244999,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "stop", value: function () { var _stop = (0, _asyncToGenerator2.default)(function* () { - if (Voice) { - try { - this.running = false; - this.retry = 0; - this.loop = false; + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(this.module)) { + return; + } - _$$_REQUIRE(_dependencyMap[12]).VoiceOverlay.hide(); + try { + this.running = false; + this.retry = 0; + this.loop = false; - yield Voice.stop(); - } catch (e) { - this._log("no services available"); - } + _$$_REQUIRE(_dependencyMap[12]).VoiceOverlay.hide(); + + yield this.module.stop(); + } catch (e) { + this._log("no services available"); } }); @@ -255297,43 +245027,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _start = (0, _asyncToGenerator2.default)(function* () { var loop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(this.module)) { + return false; + } + var result = false; - if (Voice) { - try { - this.loop = loop; - var available = yield this._isAvailable(); + try { + this.loop = loop; + var available = yield this._isAvailable(); - if (available) { - _$$_REQUIRE(_dependencyMap[12]).VoiceOverlay.show(); + if (available) { + _$$_REQUIRE(_dependencyMap[12]).VoiceOverlay.show(); - yield Voice.start(global.getLocaleConfig().getCurrentLocale(), { - RECOGNIZER_ENGINE: "GOOGLE", - EXTRA_PARTIAL_RESULTS: true + yield this.module.start(global.getLocaleConfig().getCurrentLocale(), { + RECOGNIZER_ENGINE: "GOOGLE", + EXTRA_PARTIAL_RESULTS: true + }); + result = true; + this.running = true; + } else { + var services = yield this._getServices(); + + if (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isAndroid() && _$$_REQUIRE(_dependencyMap[9]).JSUtils.isEmpty(services)) { + this._showHint({ + config: _hintKeys.default.voiceRecognitionNoServices(), + onActionPress: _$$_REQUIRE(_dependencyMap[13]).NativeSettingsNavigation.appInputMethodSettings }); - result = true; - this.running = true; + + this._log("no installed services"); } else { - var services = yield this._getServices(); + this._showHint({ + config: _hintKeys.default.voiceRecognitionSomethingWrong() + }); - if ((!services || !services.length) && _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isAndroid()) { - this._showHint({ - config: _hintKeys.default.voiceRecognitionNoServices(), - onActionPress: _$$_REQUIRE(_dependencyMap[13]).NativeSettingsNavigation.appInputMethodSettings - }); - - this._log("no installed services"); - } else { - this._showHint({ - config: _hintKeys.default.voiceRecognitionSomethingWrong() - }); - - this._log("service is available but something went wrong"); - } + this._log("service is available but something went wrong"); } - } catch (e) { - this._log(e.message); } + } catch (e) { + this._log(e.message); } return result; @@ -255347,7 +245080,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1982,[3,270,6,7,436,879,1983,564,1984,438,1985,1807,1989,1991]); +},1940,[3,270,6,7,436,882,1941,564,1942,438,1945,1812,1949,1951]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255398,7 +245131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = HintKeys; -},1983,[3,436]); +},1941,[3,436]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255744,7 +245477,508 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Shortcut.propTypes = Object.assign({}, ShortcutManager.propTypes); Shortcut.defaultProps = Object.assign({}, ShortcutManager.defaultProps); -},1984,[3,11,13,14,270,6,7,16,582,1907,438,1908]); +},1942,[3,11,13,14,270,6,7,16,582,1943,438,1944]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.APP_SIDE = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _KeyEvent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var APP_SIDE = exports.APP_SIDE = { + ePaper: "ePaper", + ePaperHTML5: "ePaperHTML5", + rss: "rss" + }; + + var LiveConfigSingleton = function () { + function LiveConfigSingleton() { + var _this = this; + + (0, _classCallCheck2.default)(this, LiveConfigSingleton); + this.rssStartingUp = true; + this.lastRssCategory = ""; + this.startupNavigator = ""; + this.deletedRssDatabase = false; + this.isDrawerOpen = false; + this.appSide = undefined; + this.idEventSetValue = undefined; + this.idEventGetValue = undefined; + this.activeKeys = {}; + this.idEventSetValue = _$$_REQUIRE(_dependencyMap[5]).EventRegister.on(_events.default.LIVE_CONFIG_SET_VALUE, function (_ref) { + var key = _ref.key, + value = _ref.value, + resolve = _ref.resolve, + reject = _ref.reject; + + if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(_this, key)) { + _this[key] = value; + + _this._resolvePromise(resolve, _this[key]); + } else { + _this._rejectPromise(reject, key); + } + }); + this.idEventGetValue = _$$_REQUIRE(_dependencyMap[5]).EventRegister.on(_events.default.LIVE_CONFIG_GET_VALUE, function (_ref2) { + var key = _ref2.key, + resolve = _ref2.resolve, + reject = _ref2.reject; + + if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(_this, key)) { + _this._resolvePromise(resolve, _this[key]); + } else { + _this._rejectPromise(reject, key); + } + }); + } + + return (0, _createClass2.default)(LiveConfigSingleton, [{ + key: "set", + value: function set(key, value) { + if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(this, key)) { + this[key] = value; + } + } + }, { + key: "get", + value: function get(key) { + return this[key]; + } + }, { + key: "_resolvePromise", + value: function _resolvePromise(resolve, result) { + if (typeof resolve === "function") { + resolve(result); + } + } + }, { + key: "_rejectPromise", + value: function _rejectPromise(reject, key) { + if (typeof reject === "function") { + reject(new Error(key + " not found")); + } + } + }]); + }(); + + var LiveConfig = exports.default = function () { + function LiveConfig() { + (0, _classCallCheck2.default)(this, LiveConfig); + } + + return (0, _createClass2.default)(LiveConfig, null, [{ + key: "init", + value: function init() { + LiveConfig.instance = new LiveConfigSingleton(); + } + }, { + key: "getInstance", + value: function getInstance() { + if (LiveConfig.instance === undefined) { + LiveConfig.init(); + } + + return LiveConfig.instance; + } + }, { + key: "isDrawerOpen", + value: function isDrawerOpen() { + return LiveConfig.getInstance().get("isDrawerOpen"); + } + }, { + key: "setDrawerOpen", + value: function setDrawerOpen(value) { + LiveConfig.getInstance().set("isDrawerOpen", value); + } + }, { + key: "isRssDbDeleted", + value: function isRssDbDeleted() { + return LiveConfig.getInstance().get("deletedRssDatabase"); + } + }, { + key: "setRssDbDeleted", + value: function setRssDbDeleted(value) { + LiveConfig.getInstance().set("deletedRssDatabase", value); + } + }, { + key: "isRssStartingUp", + value: function isRssStartingUp() { + return LiveConfig.getInstance().get("rssStartingUp"); + } + }, { + key: "setRssStartingUp", + value: function setRssStartingUp(value) { + LiveConfig.getInstance().set("rssStartingUp", value); + } + }, { + key: "getLastRssCategory", + value: function getLastRssCategory() { + return LiveConfig.getInstance().get("lastRssCategory") || global.lastRssCategory; + } + }, { + key: "setLastRssCategory", + value: function setLastRssCategory(value) { + global.lastRssCategory = value; + LiveConfig.getInstance().set("lastRssCategory", value); + } + }, { + key: "resetLastRssCategory", + value: function resetLastRssCategory() { + global.lastRssCategory = undefined; + LiveConfig.getInstance().set("lastRssCategory", undefined); + } + }, { + key: "getStartUpNavigator", + value: function getStartUpNavigator() { + return LiveConfig.getInstance().get("startupNavigator"); + } + }, { + key: "setStartUpNavigator", + value: function setStartUpNavigator(value) { + LiveConfig.getInstance().set("startupNavigator", value); + } + }, { + key: "getAppSide", + value: function getAppSide() { + return LiveConfig.getInstance().get("appSide"); + } + }, { + key: "getActiveKeys", + value: function getActiveKeys() { + return LiveConfig.getInstance().get("activeKeys") || {}; + } + }, { + key: "setSide", + value: function setSide(side) { + global.lastAppSide = side; + LiveConfig.getInstance().set("appSide", side); + } + }, { + key: "setEpaperSide", + value: function setEpaperSide() { + LiveConfig.setSide(APP_SIDE.ePaper); + } + }, { + key: "setEpaperHTML5Side", + value: function setEpaperHTML5Side() { + LiveConfig.setSide(APP_SIDE.ePaperHTML5); + } + }, { + key: "setRssSide", + value: function setRssSide() { + LiveConfig.setSide(APP_SIDE.rss); + } + }, { + key: "isEpaperSide", + value: function isEpaperSide() { + var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); + return side === APP_SIDE.ePaper; + } + }, { + key: "isEpaperHTML5Side", + value: function isEpaperHTML5Side() { + var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); + return side === APP_SIDE.ePaperHTML5; + } + }, { + key: "isRssSide", + value: function isRssSide() { + var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LiveConfig.getAppSide(); + return side === APP_SIDE.rss; + } + }, { + key: "keyDown", + value: function keyDown(event) { + var activeKeys = LiveConfig.getActiveKeys(); + activeKeys[event.keyCode] = event; + LiveConfig.getInstance().set("activeKeys", activeKeys); + } + }, { + key: "keyUp", + value: function keyUp(event) { + var activeKeys = LiveConfig.getActiveKeys(); + delete activeKeys[event.keyCode]; + LiveConfig.getInstance().set("activeKeys", activeKeys); + } + }, { + key: "getSortedKeys", + value: function getSortedKeys() { + var activeKeys = LiveConfig.getActiveKeys(); + + if (!activeKeys) { + throw new Error("no keys set"); + } + + var keysPressed = Object.values(activeKeys); + return keysPressed.sort(function (keyA, keyB) { + return keyA.downTime - keyB.downTime; + }); + } + }, { + key: "getKeysCombo", + value: function getKeysCombo() { + return LiveConfig.getSortedKeys().map(function (event) { + return event.getPressed(); + }).join("_"); + } + }, { + key: "getKeysComboNoRL", + value: function getKeysComboNoRL() { + return LiveConfig.getSortedKeys().map(function (event) { + return event.getPressed().replace(/_(LEFT|RIGHT)/g, ""); + }).join("_"); + } + }]); + }(); +},1943,[3,6,7,436,1944,564,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.VOICE_GROUPS = exports.KEY_GROUPS = exports.ANY_KEY = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var KEYS_MAP = _reactNative.Platform.select({ + ios: { + 4: "A", + 5: "B", + 6: "C", + 7: "D", + 8: "E", + 9: "F", + 10: "G", + 11: "H", + 12: "I", + 13: "J", + 14: "K", + 15: "L", + 16: "M", + 17: "N", + 18: "O", + 19: "P", + 20: "Q", + 21: "R", + 22: "S", + 23: "T", + 24: "U", + 25: "V", + 26: "W", + 27: "X", + 28: "Y", + 29: "Z", + 30: "1", + 31: "2", + 32: "3", + 33: "4", + 34: "5", + 35: "6", + 36: "7", + 37: "8", + 38: "9", + 39: "0", + 40: "ENTER", + 41: "ESCAPE", + 42: "DEL", + 43: "TAB", + 44: "SPACE", + 48: "+", + 56: "-", + 74: "MOVE_HOME", + 75: "PAGE_UP", + 77: "MOVE_END", + 78: "PAGE_DOWN", + 79: "DPAD_RIGHT", + 80: "DPAD_LEFT", + 81: "DPAD_DOWN", + 82: "DPAD_UP", + 86: "NUMPAD_SUBTRACT", + 87: "NUMPAD_ADD", + 88: "NUMPAD_ENTER", + 89: "NUMPAD_1", + 90: "NUMPAD_2", + 91: "NUMPAD_3", + 92: "NUMPAD_4", + 93: "NUMPAD_5", + 94: "NUMPAD_6", + 95: "NUMPAD_7", + 96: "NUMPAD_8", + 97: "NUMPAD_9", + 98: "NUMPAD_0", + 99: "NUMPAD_DOT", + 117: "HELP", + 224: "CTRL_LEFT", + 225: "SHIFT_LEFT", + 226: "ALT_LEFT", + 228: "CTRL_RIGHT", + 229: "SHIFT_RIGHT", + 230: "ALT_RIGHT" + }, + android: { + 3: "HOME", + 7: "0", + 8: "1", + 9: "2", + 10: "3", + 11: "4", + 12: "5", + 13: "6", + 14: "7", + 15: "8", + 16: "9", + 19: "DPAD_UP", + 20: "DPAD_DOWN", + 21: "DPAD_LEFT", + 22: "DPAD_RIGHT", + 23: "DPAD_CENTER", + 29: "A", + 30: "B", + 31: "C", + 32: "D", + 33: "E", + 34: "F", + 35: "G", + 36: "H", + 37: "I", + 38: "J", + 39: "K", + 40: "L", + 41: "M", + 42: "N", + 43: "O", + 44: "P", + 45: "Q", + 46: "R", + 47: "S", + 48: "T", + 49: "U", + 50: "V", + 51: "W", + 52: "X", + 53: "Y", + 54: "Z", + 57: "ALT_LEFT", + 58: "ALT_RIGHT", + 59: "SHIFT_LEFT", + 60: "SHIFT_RIGHT", + 62: "SPACE", + 61: "TAB", + 66: "ENTER", + 67: "DEL", + 69: "-", + 81: "+", + 84: "SEARCH", + 92: "PAGE_UP", + 93: "PAGE_DOWN", + 111: "ESCAPE", + 113: "CTRL_LEFT", + 114: "CTRL_RIGHT", + 122: "MOVE_HOME", + 123: "MOVE_END", + 144: "NUMPAD_0", + 145: "NUMPAD_1", + 146: "NUMPAD_2", + 147: "NUMPAD_3", + 148: "NUMPAD_4", + 149: "NUMPAD_5", + 150: "NUMPAD_6", + 151: "NUMPAD_7", + 152: "NUMPAD_8", + 153: "NUMPAD_9", + 156: "NUMPAD_SUBTRACT", + 157: "NUMPAD_ADD", + 158: "NUMPAD_DOT", + 160: "NUMPAD_ENTER", + 168: "ZOOM_IN", + 169: "ZOOM_OUT", + 176: "SETTINGS", + 259: "HELP" + } + }); + + var ANY_KEY = exports.ANY_KEY = "ANY"; + var VOICE_GROUPS = exports.VOICE_GROUPS = { + GO_UP: function GO_UP() { + return [global.strings("voice_back")]; + }, + WHAT: function WHAT() { + return [global.strings("voice_what")]; + }, + NEXT: function NEXT() { + return [global.strings("voice_next")]; + }, + NEXT_PAGE: function NEXT_PAGE() { + return [global.strings("voice_next_page")]; + }, + PREVIOUS: function PREVIOUS() { + return [global.strings("voice_previous")]; + }, + PREVIOUS_PAGE: function PREVIOUS_PAGE() { + return [global.strings("voice_previous_page")]; + }, + STOP: function STOP() { + return [global.strings("voice_stop")]; + }, + READ: function READ() { + return [global.strings("voice_read")]; + }, + CLOSE_APP: function CLOSE_APP() { + return [global.strings("voice_close")]; + }, + ITEM_UP: function ITEM_UP() { + return [global.strings("voice_up")]; + }, + ITEM_DOWN: function ITEM_DOWN() { + return [global.strings("voice_down")]; + }, + ITEM_SELECT: function ITEM_SELECT() { + return [global.strings("voice_select")]; + } + }; + var KEY_GROUPS = exports.KEY_GROUPS = { + ANY: [ANY_KEY], + CLOSE: ["ESCAPE"], + SUBMIT: ["ENTER", "NUMPAD_ENTER"], + OPEN: ["5", "NUMPAD_5", "O", "NUMPAD_DOT"], + SELECT: ["5", "NUMPAD_5", "O", "ENTER", "NUMPAD_ENTER"], + LEFT: ["4", "NUMPAD_4", "J", "DPAD_LEFT"], + RIGHT: ["6", "NUMPAD_6", "L", "DPAD_RIGHT"], + UP: ["8", "NUMPAD_8", "I", "DPAD_UP"], + DOWN: ["2", "NUMPAD_2", "K", "DPAD_DOWN"], + PAGE_UP: ["9", "NUMPAD_9", "N", "PAGE_UP"], + PAGE_DOWN: ["3", "NUMPAD_3", "M", "PAGE_DOWN"], + HOME: ["7", "NUMPAD_7", "MOVE_HOME"], + END: ["1", "NUMPAD_1", "MOVE_END"], + MORE: ["+", "NUMPAD_ADD"], + LESS: ["-", "NUMPAD_SUBTRACT"], + DELETE: ["DEL"] + }; + + var KeyEvent = exports.default = function () { + function KeyEvent(event) { + (0, _classCallCheck2.default)(this, KeyEvent); + Object.assign(this, event); + } + + return (0, _createClass2.default)(KeyEvent, [{ + key: "getPressed", + value: function getPressed() { + return KEYS_MAP[this.keyCode] || ""; + } + }]); + }(); +},1944,[3,6,7,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255904,7 +246138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1985,[3,6,7,11,13,14,16,18,434,1986,1988,438,179]); +},1945,[3,6,7,11,13,14,16,18,434,1946,1948,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256167,7 +246401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Hint; -},1986,[3,33,582,16,18,1987,814,1807,1941,438,817,179]); +},1946,[3,33,582,16,18,1947,817,1812,1899,438,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256302,7 +246536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ProgressCountDown; -},1987,[3,33,16,582,18,957,814,179,438]); +},1947,[3,33,16,582,18,960,817,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256436,7 +246670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _hintComponent.default.defaultProps); var _default = exports.default = HintProgress; -},1988,[3,22,33,4,582,16,18,1986,438,564,817,179,1968]); +},1948,[3,22,33,4,582,16,18,1946,438,564,820,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256487,10 +246721,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _classCallCheck2.default)(this, VoiceOverlay); _this = _callSuper(this, VoiceOverlay, [props]); + _this.onPress = _this._onPress.bind(_this); _this.state = { isShow: false }; - _this.onPress = _this._onPress.bind(_this); return _this; } @@ -256521,11 +246755,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_onPress", value: function () { var _onPress2 = (0, _asyncToGenerator2.default)(function* () { - if (global.getAudio()) { - if (global.getAudio().srIsRunning()) { - yield global.getAudio().srStop(); + var audio = global.getAudio(); + + if (audio) { + if (audio.srIsRunning()) { + yield audio.srStop(); } else { - yield global.getAudio().srStart(global.getAudio().srIsLooping()); + yield audio.srStart(audio.srIsLooping()); } } }); @@ -256540,12 +246776,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "render", value: function render() { var isShow = this.state.isShow; - return isShow ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + + if (!isShow) { + return null; + } + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { style: styles.container, children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_voiceIconComponent.default, { onIconPress: this.onPress }) - }) : null; + }); } }], [{ key: "show", @@ -256559,7 +246800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1989,[3,270,6,7,11,13,14,16,18,1990,179]); +},1949,[3,270,6,7,11,13,14,16,18,1950,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256728,7 +246969,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = VoiceIcon; -},1990,[3,33,16,582,18,436,814,438,817,564,179,1941,1807]); +},1950,[3,33,16,582,18,436,817,438,820,564,179,1899,1812]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256773,7 +247014,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1991,[3,6,7,18,1992,438]); +},1951,[3,6,7,18,1952,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -256881,7 +247122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e deviceInfoSettings: deviceInfoSettings, appNotificationSettings: appNotificationSettings }; -},1992,[18]); +},1952,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257486,7 +247727,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1993,[3,270,6,7,16,18,1994,1998,1944,1999,2005,2002,2004,2003,2000,2006,2038,1907,2056,814,438,817,179]); +},1953,[3,270,6,7,16,18,1954,1958,1902,1959,1965,1962,1964,1963,1960,1966,2021,1943,2040,817,438,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257647,7 +247888,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e notices: "notices" } }; -},1994,[3,270,6,7,1995,438]); +},1954,[3,270,6,7,1955,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257689,7 +247930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1995,[3,270,6,7,1996,1997]); +},1955,[3,270,6,7,1956,1957]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257735,7 +247976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getNoticeBaseURI() { return _Api.default.noticeURI(getNoticeParams()); } -},1996,[3,270,407,1850]); +},1956,[3,270,407,1855]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257745,7 +247986,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function parse(json) { return JSON.stringify(json.result); } -},1997,[]); +},1957,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257859,7 +248100,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1998,[3,6,7,1944]); +},1958,[3,6,7,1902]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258157,7 +248398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1999,[3,270,6,7,2000,2003,2004,434,1944,2002,2005,1994,2001,1996,438,1907,1998]); +},1959,[3,270,6,7,1960,1963,1964,434,1902,1962,1965,1954,1961,1956,438,1943,1958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258218,7 +248459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticeAdOverPageModel.TAG = "ad_over_page"; -},2000,[3,6,7,11,13,14,856,2001,2002]); +},1960,[3,6,7,11,13,14,859,1961,1962]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258336,7 +248577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_Notice2.default); -},2001,[3,6,7,11,13,14,2002]); +},1961,[3,6,7,11,13,14,1962]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258603,7 +248844,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function print(text) {} }]); }(); -},2002,[3,6,7,1944,438]); +},1962,[3,6,7,1902,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258798,7 +249039,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticeInterstitialModel.TAG = "interstitial"; -},2003,[3,6,7,11,13,14,627,856,2001,668,2002]); +},1963,[3,6,7,11,13,14,630,859,1961,671,1962]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258844,7 +249085,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticePrestitialModel.TAG = "prestitial"; -},2004,[3,6,7,11,13,14,2001]); +},1964,[3,6,7,11,13,14,1961]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258910,7 +249151,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Notice2.default); NoticeInstoryAdModel.TAG = "instory_ad"; -},2005,[3,6,7,11,13,14,2002,1998]); +},1965,[3,6,7,11,13,14,1962,1958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258951,20 +249192,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getPrebid(), - PrebidBanner = _OptionalPackages$get.PrebidBanner; - - var _OptionalPackages$get2 = _optionalPackageUtils.default.getNativoAds(), - NativoAd = _OptionalPackages$get2.NativoAd; - - var _OptionalPackages$get3 = _optionalPackageUtils.default.getAdMob(), - BannerAd = _OptionalPackages$get3.BannerAd, - BannerAdSize = _OptionalPackages$get3.BannerAdSize, - TestIds = _OptionalPackages$get3.TestIds; - - var _OptionalPackages$get4 = _optionalPackageUtils.default.getDFP(), - DFPBanner = _OptionalPackages$get4.DFPBanner; - var AdNativeComponent = exports.default = function (_React$Component) { function AdNativeComponent(props) { var _this; @@ -259053,6 +249280,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } + var _OptionalPackages$get = _optionalPackageUtils.default.getAdMob(), + BannerAd = _OptionalPackages$get.BannerAd, + BannerAdSize = _OptionalPackages$get.BannerAdSize, + TestIds = _OptionalPackages$get.TestIds; + var model = this.props.model; var unitId = model.unitId, width = model.width, @@ -259112,6 +249344,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e other.targeting = targeting; } + var _OptionalPackages$get2 = _optionalPackageUtils.default.getDFP(), + DFPBanner = _OptionalPackages$get2.DFPBanner; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(DFPBanner, Object.assign({ ref: this.onRef, onAdViewDidReceiveAd: this.onDFPAdLoaded, @@ -259146,6 +249381,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bannerSize = "BANNER"; } + var _OptionalPackages$get3 = _optionalPackageUtils.default.getPrebid(), + PrebidBanner = _OptionalPackages$get3.PrebidBanner; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(PrebidBanner, { tag: "" + tag, onGoogleAdLoaded: this.onPrebidAdLoaded, @@ -259194,6 +249432,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: height }; var text = headerText || global.strings("sponsored_content"); + + var _OptionalPackages$get4 = _optionalPackageUtils.default.getNativoAds(), + NativoAd = _OptionalPackages$get4.NativoAd; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(NativoAd, { style: dimensions, index: nativoIndex, @@ -259466,7 +249708,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e card: false } }; -},2006,[3,6,7,11,13,14,582,16,18,1881,588,436,879,2007,2036,2037,564,815,438,179,1910]); +},1966,[3,6,7,11,13,14,582,16,18,1870,588,436,882,1967,1996,1997,564,818,438,179,1998]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259669,7 +249911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NativeAdTemplate; -},2007,[3,16,18,2008,2024,2030,434,879,2014,179,817,2033,2020]); +},1967,[3,16,18,1968,1984,1990,434,882,1974,179,820,1993,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259842,7 +250084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ImageComponent: undefined, imageContainerStyle: undefined }; -},2008,[3,6,7,11,13,14,16,18,582,2009,2013,2015,588,2020,438,179,817,2021,2016]); +},1968,[3,6,7,11,13,14,16,18,582,1969,1973,1975,588,1980,438,179,820,1981,1976]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259970,7 +250212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2009,[3,6,7,11,13,14,16,18,582,2010,1935,1941,179,817,2012,1087]); +},1969,[3,6,7,11,13,14,16,18,582,1970,1893,1899,179,820,1972,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260006,7 +250248,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: 5 } }); -},2010,[18,2011,438]); +},1970,[18,1971,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260042,7 +250284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: ICON_PADDING } }); -},2011,[18]); +},1971,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -260054,7 +250296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic_gallery_white", "type": "png" }); -},2012,[1258]); +},1972,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260074,7 +250316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingVertical: _$$_REQUIRE(_dependencyMap[1]).CONTAINER_VERTICAL_PADDING } }); -},2013,[18,2014]); +},1973,[18,1974]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260103,7 +250345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2014,[18,438]); +},1974,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260150,7 +250392,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = TilePreview; -},2015,[3,22,4,16,2016,2017,179,814]); +},1975,[3,22,4,16,1976,1977,179,817]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260181,7 +250423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2016,[18,2014,438]); +},1976,[18,1974,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260461,7 +250703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e topPadding: 0, verticalPaddingSize: 0 }; -},2017,[3,22,4,6,7,11,13,14,16,18,582,2018,438,179,817,2019]); +},1977,[3,22,4,6,7,11,13,14,16,18,582,1978,438,179,820,1979]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260476,7 +250718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexDirection: "column" } }); -},2018,[18]); +},1978,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260630,7 +250872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TextAutoMeasure.defaultProps = { numberOfLines: 1 }; -},2019,[3,4,270,6,7,11,13,14,16,582,814,438,179]); +},1979,[3,4,270,6,7,11,13,14,16,582,817,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260734,7 +250976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _deviceUtils.default.isPortrait() ? itemsPerRowPortrait : itemsPerRowLandscape; } -},2020,[18,3,434,438,2014]); +},1980,[18,3,434,438,1974]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260749,7 +250991,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2021,[2022]); +},1981,[1982]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260880,7 +251122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bgUrl: "", hideBottomLine: false }; -},2022,[3,6,7,11,13,14,16,18,582,2023,2020,817,179,438]); +},1982,[3,6,7,11,13,14,16,18,582,1983,1980,820,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260894,7 +251136,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2023,[18]); +},1983,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261029,7 +251271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BottomComponent: undefined, ImageComponent: undefined }; -},2024,[3,6,7,11,13,14,16,18,582,814,2025,2029,438,2020,2014,179,817,2021]); +},1984,[3,6,7,11,13,14,16,18,582,817,1985,1989,438,1980,1974,179,820,1981]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261042,9 +251284,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _IndexHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _IndexHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); var RssIndexConfig = exports.RssIndexConfig = function () { function RssIndexConfig(pSetup) { @@ -261243,7 +251485,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.adDefaultFallback = yield this.getValue(keys.ads.default_fallback); this.adsBackgroundColor = yield this.getValue(keys.ads.background_color); this.showGalleryTitle = (yield this.getValue(keys.show_gallery_title)) === "1"; - this.googleAnalytics = yield this.getValue(keys.ga_json); this.availableLayouts = yield this.getValue(keys.rn_available_layouts); this.homeCategory = yield this.getHomeCategory(); this.archiveSearchURL = yield this.getValue(keys.archive_search_url); @@ -261382,7 +251623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2025,[3,270,6,7,2026,1934,438,1850,2028]); +},1985,[3,270,6,7,1892,1986,438,1855,1988]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261783,7 +252024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2026,[3,270,22,6,7,1934,438,2027]); +},1986,[3,270,22,6,7,1892,438,1987]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261793,7 +252034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RSS: 1, EPAPER: 2 }; -},2027,[]); +},1987,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262066,7 +252307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssKey: "publications" }; } -},2028,[3,16,1934,2026,1731]); +},1988,[3,16,1892,1986,1736]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262121,7 +252362,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},2029,[18,2014,438]); +},1989,[18,1974,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262284,7 +252525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BottomComponent: undefined, ImageComponent: undefined }; -},2030,[3,6,7,11,13,14,16,18,582,814,2031,2032,2020,179,817]); +},1990,[3,6,7,11,13,14,16,18,582,817,1991,1992,1980,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262345,7 +252586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2031,[18,438,2014]); +},1991,[18,438,1974]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262546,7 +252787,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 300, blurRadius: 10 }; -},2032,[3,6,7,11,13,14,582,16,18,588,179]); +},1992,[3,6,7,11,13,14,582,16,18,588,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262710,7 +252951,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return formatResourceToDTO(resource); }); }; -},2033,[3,1935,1945,2026,438,1943,2034]); +},1993,[3,1893,1903,1986,438,1901,1994]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262738,7 +252979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function newsmemoryArticleGallery(json) { return NewsMemoryParser.getArticleGallery(json); } -},2034,[1946,2035]); +},1994,[1904,1995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262843,7 +253084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return []; } -},2035,[438]); +},1995,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -262854,19 +253095,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - var _tileGridNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _cardNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _tileListNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _tileGridNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _cardNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _tileListNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), - NativoVideo = _OptionalPackages$get.NativoVideo; - var styles = _reactNative.StyleSheet.create({ textRow: { flexDirection: "row", @@ -263000,6 +253238,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] })] }); + + var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), + NativoVideo = _OptionalPackages$get.NativoVideo; + var ImageComponent = (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Css, { classes: cssVideoClasses, children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(NativoVideo, { @@ -263051,7 +253293,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NativeVideoAdTemplate; -},2036,[3,16,18,2024,2008,2030,434,879,2014,179,817,2033]); +},1996,[3,16,18,1990,1984,1968,434,882,1974,179,820,1993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263062,15 +253304,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _tileListNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _tileListNativo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), - NativoWebContent = _OptionalPackages$get.NativoWebContent; - var StandardDisplayAdTemplate = function StandardDisplayAdTemplate(props) { if (!_optionalPackageUtils.default.isNativoSDKAvailable()) { return null; @@ -263107,8 +253344,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var modeStyles = {}; if (!card && !grid) { - var widthRatio = (dimensions.width - _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN * 2) / width; - var heightRatio = (dimensions.height - _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN * 2) / height; + var widthRatio = (dimensions.width - _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN * 2) / width; + var heightRatio = (dimensions.height - _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN * 2) / height; var ratio = Math.min(widthRatio, heightRatio); if (ratio < 1) { @@ -263121,13 +253358,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { translateY: -(height - height * ratio) }, { - translateX: _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN + translateX: _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN }, { - translateY: _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN + translateY: _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN }] }; } else { - marginTop = Math.max((dimensions.height - _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN * 2 - height) / 2, 0); + marginTop = Math.max((dimensions.height - _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN * 2 - height) / 2, 0); } } else { modeStyles = { @@ -263136,15 +253373,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; if (card) { - marginTop = Math.max((_$$_REQUIRE(_dependencyMap[7]).NATIVO_CARD_HEIGHT - height) / 2, 0); + marginTop = Math.max((_$$_REQUIRE(_dependencyMap[6]).NATIVO_CARD_HEIGHT - height) / 2, 0); } else { marginTop = Math.max((dimensions.height - height) / 2, 0); } } - var webContent = (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Css, { + var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), + NativoWebContent = _OptionalPackages$get.NativoWebContent; + + var webContent = (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[8]).Css, { classes: cssWebClasses, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(NativoWebContent, Object.assign({}, props, { + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(NativoWebContent, Object.assign({}, props, { style: Object.assign({ width: width, height: height, @@ -263154,19 +253394,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var key = card ? "card" : grid; var style = card ? { - width: (0, _$$_REQUIRE(_dependencyMap[10]).getRssCardBoxWidth)(), - height: _$$_REQUIRE(_dependencyMap[7]).NATIVO_CARD_HEIGHT + width: (0, _$$_REQUIRE(_dependencyMap[9]).getRssCardBoxWidth)(), + height: _$$_REQUIRE(_dependencyMap[6]).NATIVO_CARD_HEIGHT } : dimensions; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[8]).Css, { classes: cssClasses, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { nativeID: "nativoSDAdView", style: style, - children: grid || card ? webContent : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_tileListNativo.default, { + children: grid || card ? webContent : (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_tileListNativo.default, { item: item, ImageComponent: webContent, imageContainerStyle: { - margin: _$$_REQUIRE(_dependencyMap[6]).HORIZONTAL_MARGIN, + margin: _$$_REQUIRE(_dependencyMap[5]).HORIZONTAL_MARGIN, width: imageContainerWidth, flex: 0, flexDirection: "row" @@ -263177,7 +253417,4900 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = StandardDisplayAdTemplate; -},2037,[3,16,18,434,879,2008,2014,2030,179,817,2020]); +},1997,[3,16,18,1968,882,1974,1990,179,820,1980]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.clearRecently = clearRecently; + exports.initAnalytics = initAnalytics; + exports.initGoogleAnalyticsFirebase = initGoogleAnalyticsFirebase; + exports.initMatomo = initMatomo; + exports.initMatomoTracker = initMatomoTracker; + exports.resetAdobeAnalyticsFirstScrolledSent = resetAdobeAnalyticsFirstScrolledSent; + exports.sendAdFailedError = sendAdFailedError; + exports.sendAdSuccess = sendAdSuccess; + exports.sendExternalIdToAnalytics = sendExternalIdToAnalytics; + exports.trackADBMobileAction = trackADBMobileAction; + exports.trackADBMobileState = trackADBMobileState; + exports.trackATTPermission = trackATTPermission; + exports.trackCustomFirebaseEvent = trackCustomFirebaseEvent; + exports.trackCustomFirebaseScreen = trackCustomFirebaseScreen; + exports.trackEnterBackground = trackEnterBackground; + exports.trackEnterForeground = trackEnterForeground; + exports.trackEvent = trackEvent; + exports.trackRempAccount = trackRempAccount; + exports.trackScreen = trackScreen; + exports.trackStartup = trackStartup; + exports.trackWebInterstitial = trackWebInterstitial; + exports.updateAnalytics = updateAnalytics; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _Manager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + function initAnalytics() { + return _initAnalytics.apply(this, arguments); + } + + function _initAnalytics() { + _initAnalytics = (0, _asyncToGenerator2.default)(function* () { + return _Manager.default.init(); + }); + return _initAnalytics.apply(this, arguments); + } + + function initMatomo() { + try { + var _trackerManager$matom; + + (_trackerManager$matom = _Manager.default.matomoTracker) == null ? undefined : _trackerManager$matom.init(); + } catch (e) {} + } + + function initMatomoTracker() { + try { + var _trackerManager$matom2; + + (_trackerManager$matom2 = _Manager.default.matomoMasTracker) == null ? undefined : _trackerManager$matom2.init(); + } catch (e) {} + } + + function initGoogleAnalyticsFirebase() { + return _initGoogleAnalyticsFirebase.apply(this, arguments); + } + + function _initGoogleAnalyticsFirebase() { + _initGoogleAnalyticsFirebase = (0, _asyncToGenerator2.default)(function* () { + var _trackerManager$fireb3, _trackerManager$webTr3; + + var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + yield (_trackerManager$fireb3 = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb3.init(); + yield (_trackerManager$webTr3 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr3.init(force); + }); + return _initGoogleAnalyticsFirebase.apply(this, arguments); + } + + function updateAnalytics() { + return _updateAnalytics.apply(this, arguments); + } + + function _updateAnalytics() { + _updateAnalytics = (0, _asyncToGenerator2.default)(function* () { + var _trackerManager$webTr4; + + yield (_trackerManager$webTr4 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr4.init(); + (0, _$$_REQUIRE(_dependencyMap[4]).addDebugOperation)("updateAnalytics", "done"); + }); + return _updateAnalytics.apply(this, arguments); + } + + function resetAdobeAnalyticsFirstScrolledSent() { + _Manager.default.resetAdobeAnalyticsFirstScrolledSent(); + } + + function sendExternalIdToAnalytics() { + return _sendExternalIdToAnalytics.apply(this, arguments); + } + + function _sendExternalIdToAnalytics() { + _sendExternalIdToAnalytics = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup = global.getMainPSetup(), + firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; + + if (firebaseAnalyticsSendExternalId) { + yield initGoogleAnalyticsFirebase(true); + } + }); + return _sendExternalIdToAnalytics.apply(this, arguments); + } + + function trackScreen(screen, params) { + if (_LiveConfig.default.isRssSide() || !_Manager.default.checkIfScreenIsAlreadySent("" + screen)) { + _Manager.default.addToScreenRecentlyVisited("" + screen); + + _Manager.default.trackScreen(screen, params); + + return true; + } + + return false; + } + + function trackEvent(params) { + var str = JSON.stringify(params); + + if (!_Manager.default.checkIfEventIsAlreadySent(str)) { + _Manager.default.addToEventRecentlyVisited(str); + + _Manager.default.trackEvent(params); + + return true; + } + + return false; + } + + function trackCustomFirebaseEvent(_ref) { + var customEvent = _ref.customEvent, + customParams = _ref.customParams; + var str = customEvent + "_" + JSON.stringify(customParams); + + if (!_Manager.default.checkIfFirebaseEventIsAlreadySent(str)) { + var _trackerManager$fireb, _trackerManager$webTr; + + _Manager.default.addToFirebaseEventRecentlyVisited(str); + + (_trackerManager$fireb = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb.trackEvent(customEvent, customParams); + (_trackerManager$webTr = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr.trackEvent(customEvent, customParams); + return true; + } + + return false; + } + + function sendAdFailedError(params) { + trackCustomFirebaseEvent({ + customEvent: "advertisement_failed", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) + }); + } + + function sendAdSuccess(params) { + trackCustomFirebaseEvent({ + customEvent: "advertisement_loaded", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) + }); + } + + function trackATTPermission(action) { + if (action !== "unavailable") { + var event = "apple_att_permission"; + var device = (0, _$$_REQUIRE(_dependencyMap[5]).gaBreakout)(); + trackEvent({ + category: event, + action: action, + device: device + }); + trackCustomFirebaseEvent({ + customEvent: event, + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)({ + action: action + }), { + action: action, + device: device + }) + }); + } + } + + function trackWebInterstitial(model, action) { + if (model) { + var event = model.getScreenType(); + var name = model.getScreenName(); + var id = model.getId(); + var screen = (0, _$$_REQUIRE(_dependencyMap[5]).getScreenString)({ + type: event, + name: name, + id: id + }); + var params = { + id: id, + name: name, + action: action, + screen: screen, + type: "web" + }; + trackCustomFirebaseEvent({ + customEvent: event, + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params), params) + }); + trackScreen(screen, Object.assign({ + event: event + }, params)); + } + } + + function trackADBMobileAction(action, params) { + try { + var _trackerManager$admob; + + (_trackerManager$admob = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob.trackAction(action, params); + } catch (e) {} + } + + function trackADBMobileState(state, params) { + try { + var _trackerManager$admob2; + + (_trackerManager$admob2 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob2.trackState(state, params); + } catch (e) {} + } + + function trackRempAccount(rParam) { + if (!_Manager.default.checkIfRempIsAlreadySent(rParam)) { + var _trackerManager$rempT; + + _Manager.default.addToRempRecentlyVisited(rParam); + + (_trackerManager$rempT = _Manager.default.rempTracker) == null ? undefined : _trackerManager$rempT.trackScreen(rParam); + return true; + } + + return false; + } + + function trackCustomFirebaseScreen(screenName) { + var pagePath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var str = screenName; + + if (pagePath) { + str += "_" + pagePath; + } + + if (!_Manager.default.checkIfFirebaseScreenIsAlreadySent(str)) { + var _trackerManager$fireb2, _trackerManager$webTr2; + + _Manager.default.addToFirebaseScreenRecentlyVisited(str); + + var customParams = (0, _$$_REQUIRE(_dependencyMap[5]).mapParamsToFirebaseCustomDimensions)(params); + (_trackerManager$fireb2 = _Manager.default.firebaseTracker) == null ? undefined : _trackerManager$fireb2.trackScreen(screenName, customParams); + var pageLocation; + + var _global$getActivePSet = global.getActivePSetup(), + machine = _global$getActivePSet.machine; + + if (machine) { + pageLocation = _$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(machine) + pagePath; + } + + (_trackerManager$webTr2 = _Manager.default.webTracker) == null ? undefined : _trackerManager$webTr2.trackScreen(screenName, Object.assign({ + pageLocation: pageLocation + }, customParams)); + return true; + } + + return false; + } + + function clearRecently() { + _Manager.default.clearRecently(); + } + + function trackStartup() { + _Manager.default.trackStartup(); + } + + function trackEnterForeground() { + var _trackerManager$comsc, _trackerManager$admob3, _trackerManager$chart; + + (_trackerManager$comsc = _Manager.default.comscoreTracker) == null ? undefined : _trackerManager$comsc.onEnterForeground(); + (_trackerManager$admob3 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob3.start(); + (_trackerManager$chart = _Manager.default.chartbeatTracker) == null ? undefined : _trackerManager$chart.onEnterForeground(); + } + + function trackEnterBackground() { + var _trackerManager$comsc2, _trackerManager$admob4, _trackerManager$matom3, _trackerManager$chart2; + + (_trackerManager$comsc2 = _Manager.default.comscoreTracker) == null ? undefined : _trackerManager$comsc2.onExitForeground(); + (_trackerManager$admob4 = _Manager.default.admobileTracker) == null ? undefined : _trackerManager$admob4.pause(); + (_trackerManager$matom3 = _Manager.default.matomoTracker) == null ? undefined : _trackerManager$matom3.dispatch(); + (_trackerManager$chart2 = _Manager.default.chartbeatTracker) == null ? undefined : _trackerManager$chart2.onExitForeground(); + } +},1998,[3,270,1943,1999,818,2002,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _sdkUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var isScreenValid = function isScreenValid(screen) { + return screen.split("/").filter(function (part) { + return part === "null" || part === "undefined"; + }).length === 0; + }; + + var MAX_RECENTLY_VISITED = 5; + var TrackersManager = (0, _createClass2.default)(function TrackersManager() { + var _this = this; + + (0, _classCallCheck2.default)(this, TrackersManager); + this.recentlyScreenVisited = []; + this.recentlyEventVisited = []; + this.recentlyFirebaseEventVisited = []; + this.recentlyFirebaseScreenVisited = []; + this.recentlyRempVisited = []; + this.initialized = false; + this.init = (0, _asyncToGenerator2.default)(function* () { + _this.firebaseTracker = yield new (_$$_REQUIRE(_dependencyMap[5]).FirebaseTracker)().init(); + _this.webTracker = yield new (_$$_REQUIRE(_dependencyMap[6]).WebTracker)().init(); + _this.rempTracker = new (_$$_REQUIRE(_dependencyMap[7]).RempTracker)().init(); + _this.matherTracker = new (_$$_REQUIRE(_dependencyMap[8]).MatherTracker)().init(); + _this.matomoTracker = yield new (_$$_REQUIRE(_dependencyMap[9]).MatomoTracker)().init(); + _this.matomoMasTracker = new (_$$_REQUIRE(_dependencyMap[10]).MatomoMasTracker)().init(); + _this.admobileTracker = new (_$$_REQUIRE(_dependencyMap[11]).AdmobileTracker)().init(); + _this.facebookTracker = new (_$$_REQUIRE(_dependencyMap[12]).FacebookTracker)().init(); + _this.comscoreTracker = yield new (_$$_REQUIRE(_dependencyMap[13]).ComscoreTracker)().init(); + _this.chartbeatTracker = new (_$$_REQUIRE(_dependencyMap[14]).ChartbeatTracker)().init(); + _this.blueconicTracker = new (_$$_REQUIRE(_dependencyMap[15]).BlueconicTracker)().init(); + _this.initialized = true; + }); + this.checkIfIsInitialized = (0, _asyncToGenerator2.default)(function* () { + if (!_this.initialized) { + return _this.init(); + } + + return Promise.resolve(); + }); + + this.trackSDKAction = function (type, params) { + if (!params) { + return; + } + + _sdkUtils.default.onTrackAction({ + trackType: type, + data: params + }); + }; + + this.trackStartup = function () { + if (!_this.initialized) { + return; + } + }; + + this.trackScreen = function (screen, params) { + var _this$admobileTracker, _this$matherTracker, _this$matomoTracker, _this$matomoMasTracke, _this$facebookTracker, _this$chartbeatTracke, _this$blueconicTracke; + + if (!_this.initialized) { + return; + } + + if (!isScreenValid(screen)) { + return; + } + + var screenParams = Object.assign({ + screen: screen + }, params); + + _this._track((_this$admobileTracker = _this.admobileTracker) == null ? undefined : _this$admobileTracker.trackScreen, screenParams); + + _this._track((_this$matherTracker = _this.matherTracker) == null ? undefined : _this$matherTracker.trackScreen, screenParams); + + _this._track((_this$matomoTracker = _this.matomoTracker) == null ? undefined : _this$matomoTracker.trackScreen, screenParams); + + _this._track((_this$matomoMasTracke = _this.matomoMasTracker) == null ? undefined : _this$matomoMasTracke.trackScreen, screenParams); + + _this._track((_this$facebookTracker = _this.facebookTracker) == null ? undefined : _this$facebookTracker.trackScreen, screenParams); + + _this._track((_this$chartbeatTracke = _this.chartbeatTracker) == null ? undefined : _this$chartbeatTracke.trackScreen, screenParams); + + _this._track((_this$blueconicTracke = _this.blueconicTracker) == null ? undefined : _this$blueconicTracke.trackScreen, screenParams); + + _this.trackSDKAction("screen", screenParams); + }; + + this.trackEvent = function (params) { + var _this$matherTracker2, _this$matomoTracker2, _this$matomoMasTracke2, _this$admobileTracker2, _this$facebookTracker2, _this$comscoreTracker, _this$chartbeatTracke2, _this$blueconicTracke2; + + if (!_this.initialized) { + return; + } + + _this._track((_this$matherTracker2 = _this.matherTracker) == null ? undefined : _this$matherTracker2.trackEvent, params); + + _this._track((_this$matomoTracker2 = _this.matomoTracker) == null ? undefined : _this$matomoTracker2.trackEvent, params); + + _this._track((_this$matomoMasTracke2 = _this.matomoMasTracker) == null ? undefined : _this$matomoMasTracke2.trackEvent, params); + + _this._track((_this$admobileTracker2 = _this.admobileTracker) == null ? undefined : _this$admobileTracker2.trackEvent, params); + + _this._track((_this$facebookTracker2 = _this.facebookTracker) == null ? undefined : _this$facebookTracker2.trackEvent, params); + + _this._track((_this$comscoreTracker = _this.comscoreTracker) == null ? undefined : _this$comscoreTracker.trackEvent, params); + + _this._track((_this$chartbeatTracke2 = _this.chartbeatTracker) == null ? undefined : _this$chartbeatTracke2.trackEvent, params); + + _this._track((_this$blueconicTracke2 = _this.blueconicTracker) == null ? undefined : _this$blueconicTracke2.trackEvent, params); + + _this.trackSDKAction("event", params); + }; + + this.addToScreenRecentlyVisited = function (str) { + _this.addToRecentlyVisited(_this.recentlyScreenVisited, str); + }; + + this.addToEventRecentlyVisited = function (str) { + _this.addToRecentlyVisited(_this.recentlyEventVisited, str); + }; + + this.addToFirebaseEventRecentlyVisited = function (str) { + _this.addToRecentlyVisited(_this.recentlyFirebaseEventVisited, str); + }; + + this.addToFirebaseScreenRecentlyVisited = function (str) { + _this.addToRecentlyVisited(_this.recentlyFirebaseScreenVisited, str); + }; + + this.addToRempRecentlyVisited = function (str) { + _this.addToRecentlyVisited(_this.recentlyRempVisited, str); + }; + + this.checkIfScreenIsAlreadySent = function (str) { + return _this.checkIfIsAlreadySent(_this.recentlyScreenVisited, str); + }; + + this.checkIfEventIsAlreadySent = function (str) { + return _this.checkIfIsAlreadySent(_this.recentlyEventVisited, str); + }; + + this.checkIfFirebaseEventIsAlreadySent = function (str) { + return _this.checkIfIsAlreadySent(_this.recentlyFirebaseEventVisited, str); + }; + + this.checkIfFirebaseScreenIsAlreadySent = function (str) { + return _this.checkIfIsAlreadySent(_this.recentlyFirebaseScreenVisited, str); + }; + + this.checkIfRempIsAlreadySent = function (str) { + return _this.checkIfIsAlreadySent(_this.recentlyRempVisited, str); + }; + + this.clearRecently = function () { + _this.recentlyEventVisited = []; + _this.recentlyFirebaseEventVisited = []; + _this.recentlyFirebaseScreenVisited = []; + _this.recentlyScreenVisited = []; + _this.recentlyRempVisited = []; + }; + + this.addToRecentlyVisited = function (recentlyVisited, str) { + recentlyVisited.push(str); + var max = MAX_RECENTLY_VISITED; + + if (recentlyVisited.length > max) { + recentlyVisited.shift(); + } + }; + + this.checkIfIsAlreadySent = function (recentlyVisited, str) { + for (var i = 0; i < recentlyVisited.length; i++) { + if (str === recentlyVisited[i]) { + return true; + } + } + + return false; + }; + + this.resetAdobeAnalyticsFirstScrolledSent = function () { + var _this$admobileTracker3; + + (_this$admobileTracker3 = _this.admobileTracker) == null ? undefined : _this$admobileTracker3.resetFirstScrolledSent(); + }; + + this._track = function (trackerMethod) { + try { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + trackerMethod.apply(undefined, args); + } catch (e) {} + }; + }); + + var _default = exports.default = new TrackersManager(); +},1999,[3,270,7,6,2000,2001,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var WILL_OPEN_URL_TIMEOUT = 2000; + var TOKEN_EXPIRED_TIMEOUT = 2000; + + var SDKUtils = exports.default = function () { + function SDKUtils() { + (0, _classCallCheck2.default)(this, SDKUtils); + } + + return (0, _createClass2.default)(SDKUtils, null, [{ + key: "close", + value: function () { + var _close = (0, _asyncToGenerator2.default)(function* () { + if (!global.isTaAddon()) { + return Promise.resolve(); + } + + var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); + + if (IOSNewsmemorySDK) { + return IOSNewsmemorySDK.close(); + } + + return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onClose(); + }); + + function close() { + return _close.apply(this, arguments); + } + + return close; + }() + }, { + key: "willOpenURL", + value: function () { + var _willOpenURL = (0, _asyncToGenerator2.default)(function* (url) { + if (!global.isTaAddon()) { + return Promise.resolve(false); + } + + var sdkPromise; + + var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); + + if (IOSNewsmemorySDK) { + sdkPromise = IOSNewsmemorySDK.willOpenURL(url); + } else { + sdkPromise = _$$_REQUIRE(_dependencyMap[5]).OurBridge.willOpenURL(url); + } + + if (!sdkPromise) { + return Promise.resolve(false); + } + + var timeoutPromise = new Promise(function (resolve, reject) { + setTimeout(function () { + return resolve(false); + }, WILL_OPEN_URL_TIMEOUT); + }); + return Promise.race([sdkPromise, timeoutPromise]); + }); + + function willOpenURL(_x) { + return _willOpenURL.apply(this, arguments); + } + + return willOpenURL; + }() + }, { + key: "onTrackAction", + value: function () { + var _onTrackAction = (0, _asyncToGenerator2.default)(function* (data) { + if (!global.isTaAddon()) { + return Promise.resolve(); + } + + var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); + + if (IOSNewsmemorySDK) { + return IOSNewsmemorySDK.onTrackAction(data); + } + + return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onTrackAction(data); + }); + + function onTrackAction(_x2) { + return _onTrackAction.apply(this, arguments); + } + + return onTrackAction; + }() + }, { + key: "onReload", + value: function () { + var _onReload = (0, _asyncToGenerator2.default)(function* () { + if (!global.isTaAddon()) { + return Promise.resolve(); + } + + var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); + + if (IOSNewsmemorySDK) { + return IOSNewsmemorySDK.onReload(); + } + + return Promise.resolve(); + }); + + function onReload() { + return _onReload.apply(this, arguments); + } + + return onReload; + }() + }, { + key: "onTokenExpired", + value: function () { + var _onTokenExpired = (0, _asyncToGenerator2.default)(function* (url) { + if (!global.isTaAddon()) { + return Promise.resolve(false); + } + + var sdkPromise; + + var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); + + if (IOSNewsmemorySDK) { + sdkPromise = IOSNewsmemorySDK.onTokenExpired(); + } else { + sdkPromise = _$$_REQUIRE(_dependencyMap[5]).OurBridge.onTokenExpired(); + } + + if (!sdkPromise) { + return Promise.resolve(false); + } + + var timeoutPromise = new Promise(function (resolve, reject) { + setTimeout(function () { + return resolve(false); + }, TOKEN_EXPIRED_TIMEOUT); + }); + return Promise.race([sdkPromise, timeoutPromise]); + }); + + function onTokenExpired(_x3) { + return _onTokenExpired.apply(this, arguments); + } + + return onTokenExpired; + }() + }]); + }(); +},2000,[3,270,6,7,882,579]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FirebaseTracker = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FirebaseTracker = exports.FirebaseTracker = function (_FirebaseBaseTracker) { + function FirebaseTracker() { + (0, _classCallCheck2.default)(this, FirebaseTracker); + return _callSuper(this, FirebaseTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.FIREBASE_GA]); + } + + (0, _inherits2.default)(FirebaseTracker, _FirebaseBaseTracker); + return (0, _createClass2.default)(FirebaseTracker, [{ + key: "_init", + value: function () { + var _init2 = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup = global.getMainPSetup(), + disableFirebaseAnalytics = _global$getMainPSetup.disableFirebaseAnalytics, + firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; + + this.enabled = !disableFirebaseAnalytics && this._isCmpAllowed() && _optionalPackageUtils.default.isFirebaseAnalyticsAvailable(); + + if (this.enabled) { + var FirebaseAnalytics = _optionalPackageUtils.default.getFirebaseAnalytics(); + + if (!_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(FirebaseAnalytics)) { + this.tracker = FirebaseAnalytics(); + + try { + yield this.tracker.setAnalyticsCollectionEnabled(this.enabled); + + var FirebaseCrashlytics = _optionalPackageUtils.default.getCrashlytics(); + + if (!_$$_REQUIRE(_dependencyMap[9]).JSUtils.isNull(FirebaseCrashlytics)) { + FirebaseCrashlytics().setJSCallback(this.tracker.logEvent); + } + + if (firebaseAnalyticsSendExternalId) { + var extid = this._getExtId(); + + yield this.tracker.setUserId(extid); + } + } catch (e) {} + } else { + this.enabled = false; + } + } + + return this; + }); + + function _init() { + return _init2.apply(this, arguments); + } + + return _init; + }() + }, { + key: "_trackScreen", + value: function _trackScreen(screenName) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!this._isValid()) { + return; + } + + this.tracker.logScreenView(Object.assign({}, this._getCustomParams(), params, { + screen_name: screenName + })); + } + }, { + key: "_trackEvent", + value: function _trackEvent(event, params) { + if (!this._isParamsValid(params)) { + return; + } + + this.tracker.logEvent(event, Object.assign({}, this._getCustomParams(), params)); + } + }]); + }(_$$_REQUIRE(_dependencyMap[10]).FirebaseBaseTracker); +},2001,[3,270,6,7,11,13,14,882,2002,438,2004]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ARTICLE_READ_ANALYTICS_COOL_DOWN = exports.ANALYTICS_SERVICES = undefined; + exports.gaBreakout = gaBreakout; + exports.getScreenString = undefined; + exports.getShareTypeByApp = getShareTypeByApp; + exports.mapParamsToFirebaseCustomDimensions = mapParamsToFirebaseCustomDimensions; + exports.replaceCustomDimensionsPlaceholders = exports.parseCustomDimensionsString = undefined; + + var _LiveConfig = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[3])); + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + var ANALYTICS_SERVICES = exports.ANALYTICS_SERVICES = { + FIREBASE_GA: "firebaseGoogleAnalytics", + FIREBASE_GA_WEB: "firebaseGoogleAnalyticsWeb", + MATHER: "mather_analytics", + MATOMO: "matomo", + MATOMO_MAS: "matomo_mas", + COMSCORE: "comscore", + ADOBE: "adobeAnalytics", + FACEBOOK: "facebook", + REMP: "remp", + CHARTBEAT: "chartbeat", + BLUECONIC: "blueconic" + }; + var ARTICLE_READ_ANALYTICS_COOL_DOWN = exports.ARTICLE_READ_ANALYTICS_COOL_DOWN = 3000; + + function gaBreakout() { + if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS()) { + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "iPad" : "iPhone"; + } + + if (global.isKindle) { + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "KindleTablet" : "KindlePhone"; + } + + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() ? "AndroidTablet" : "AndroidPhone"; + } + + var getScreenString = exports.getScreenString = function getScreenString() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + type: String, + issue: String, + edition: String, + page: String, + article: String, + sharedApp: String, + url: String, + name: String, + index: Number, + section: String + }, + type = _ref.type, + issue = _ref.issue, + edition = _ref.edition, + _ref$page = _ref.page, + page = _ref$page === undefined ? "" : _ref$page, + _ref$article = _ref.article, + article = _ref$article === undefined ? "" : _ref$article, + _ref$title = _ref.title, + title = _ref$title === undefined ? "" : _ref$title, + _ref$sharedApp = _ref.sharedApp, + sharedApp = _ref$sharedApp === undefined ? "" : _ref$sharedApp, + _ref$url = _ref.url, + url = _ref$url === undefined ? "" : _ref$url, + _ref$id = _ref.id, + id = _ref$id === undefined ? "" : _ref$id, + _ref$name = _ref.name, + name = _ref$name === undefined ? "" : _ref$name, + _ref$index = _ref.index, + index = _ref$index === undefined ? 0 : _ref$index, + _ref$section = _ref.section, + section = _ref$section === undefined ? "" : _ref$section; + + var SCROLLED = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SCROLLED, + READ = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.READ, + ZOOM = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ZOOM, + SHARE = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SHARE, + PAGE_CLICK = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.PAGE_CLICK, + ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ARTICLE_CLICK, + VIDEO = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.VIDEO, + GALLERY = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.GALLERY, + ARTICLE_GALLERY = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.ARTICLE_GALLERY, + INDEX = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.INDEX, + SECTION_INDEX = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.SECTION_INDEX, + OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.OPTIONSPAGE, + THUMBS = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.THUMBS, + NOTICE_FULLSCREEN = _$$_REQUIRE(_dependencyMap[5]).analyticsScreenTypes.NOTICE_FULLSCREEN; + + var screen = ""; + var titleToSend = title; + + if (titleToSend) { + titleToSend = titleToSend.replace(/\//g, "|"); + } + + switch (type) { + case SHARE: + screen = "/" + gaBreakout() + "/shares/" + sharedApp + "/" + issue + "/" + edition + "/" + page + "/" + article; + break; + + case READ: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/read/" + page + "/" + article; + + if (titleToSend) { + screen += ":" + titleToSend; + } + + break; + + case ZOOM: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/read/" + page + "/zoom"; + break; + + case SCROLLED: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/scrolled/" + page; + break; + + case PAGE_CLICK: + screen = "/" + gaBreakout() + "/clickThroughs/" + url + "/" + issue + "/" + edition + "/" + page + "/fullpage/browse"; + break; + + case ARTICLE_CLICK: + screen = "/" + gaBreakout() + "/clickThroughs/" + url + "/" + issue + "/" + edition + "/" + page + "/" + article; + + if (titleToSend) { + screen += ":" + titleToSend; + } + + screen += "/article"; + break; + + case VIDEO: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/video/" + id; + break; + + case GALLERY: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/gallery/" + titleToSend + "/" + index + "/" + id; + break; + + case ARTICLE_GALLERY: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/" + page + "/" + article; + + if (titleToSend) { + screen += ":" + titleToSend; + } + + screen += "/gallery/" + index; + break; + + case INDEX: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/index"; + break; + + case SECTION_INDEX: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/index/" + section.replace(/\//g, "|"); + break; + + case OPTIONSPAGE: + screen = "/" + gaBreakout() + "/optionspage/" + page; + break; + + case THUMBS: + screen = "/" + gaBreakout() + "/" + issue + "/" + edition + "/thumbs"; + break; + + case NOTICE_FULLSCREEN: + screen = "/notice/" + gaBreakout() + "/notice_fullscreen/" + name + "/" + id; + break; + } + + return screen; + }; + + function getShareTypeByApp(appBundle) { + if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isAndroid()) { + switch (appBundle) { + case "com.google.android.gm": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.GMAIL; + + case "com.facebook.katana": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FACEBOOK; + + case "com.twitter.android": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.TWITTER; + } + } else { + switch (appBundle) { + case "com.apple.UIKit.activity.Mail": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.EMAIL; + + case "com.apple.UIKit.activity.PostToFacebook": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FACEBOOK; + + case "com.apple.UIKit.activity.PostToTwitter": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.TWITTER; + + case "com.google.Gmail.ShareExtension": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.GMAIL; + + case "com.apple.UIKit.activity.Print": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.PRINT; + + case "com.apple.UIKit.activity.CopyToPasteboard": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.PASTEBOARD; + + case "com.apple.DocumentManagerUICore.SaveToFiles": + return _$$_REQUIRE(_dependencyMap[5]).NewsmemoryShareType.FILE; + } + } + + return appBundle; + } + + var replaceCustomDimensionsPlaceholders = exports.replaceCustomDimensionsPlaceholders = function replaceCustomDimensionsPlaceholders(value) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var encodeValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var customReplacement = arguments.length > 3 ? arguments[3] : undefined; + var newValue = value; + + var _global$getActivePSet = global.getActivePSetup(), + paperName = _global$getActivePSet.paperName, + loginStatus = _global$getActivePSet.loginStatus, + machine = _global$getActivePSet.machine; + + var action = params.action, + issue = params.issue, + article_id = params.article_id, + type = params.type, + gallery_id = params.gallery_id; + var m; + var regExp = new RegExp(/\$([a-zA-Z0-9]+)/g); + + while ((m = regExp.exec(value)) !== null) { + if (m.length > 1) { + var _paramValue; + + var placeholder = m[0]; + var name = m[1]; + var paramValue = params[name]; + + switch (name) { + case "device": + paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.model(); + break; + + case "deviceType": + paramValue = gaBreakout(); + break; + + case "deviceCategory": + paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getDeviceType(); + + if (paramValue === "Handset") { + paramValue = "Phone"; + } + + break; + + case "platform": + paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isAndroid() ? "Android" : "iOS"; + break; + + case "os": + paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getSystemName() + " " + _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.getSystemVersion(); + break; + + case "domain": + paramValue = _$$_REQUIRE(_dependencyMap[4]).NetworkUtils.addDefaultProtocol(machine); + break; + + case "appVersion": + paramValue = _deviceUtils.default.getAppVersion(); + break; + + case "appName": + paramValue = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.appName(); + break; + + case "appSide": + var side = _LiveConfig.default.getAppSide(); + + paramValue = side === _LiveConfig.APP_SIDE.rss ? "LiveNews" : side; + break; + + case "paperName": + paramValue = paperName; + break; + + case "issueYear": + if (issue) { + paramValue = issue.substring(0, 4); + } + + break; + + case "issueMonth": + if (issue) { + paramValue = issue.substring(4, 6); + } + + break; + + case "issueDate": + if (issue && issue.length > 6) { + paramValue = issue.substring(6); + } + + break; + + case "daysAgo": + if (issue && issue.length > 6) { + paramValue = ""; + var daysAgo = _$$_REQUIRE(_dependencyMap[4]).DateUtils.getDaysFromDateToToday(issue) - 1; + + if (daysAgo > 0) { + paramValue = -daysAgo; + } + } + + break; + + case "articleId": + paramValue = article_id; + break; + + case "extId": + if (loginStatus) { + var extid = loginStatus.extid; + + if (!_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(extid)) { + paramValue = extid; + } + } + + break; + + case "TAUID": + if (loginStatus) { + var TAUID = loginStatus.TAUID; + + if (TAUID > -1) { + paramValue = TAUID; + } + } + + break; + + case "machineId": + var _global = global, + machineId = _global.machineId; + + if (machineId) { + paramValue = machineId.substring(machineId.length - 6); + } + + break; + + case "title": + var title = params.title; + + if (action === "read" && type && type.toLowerCase() !== "editorial") { + title = type; + } else if (action === "gallery" && gallery_id) { + title = gallery_id; + } + + paramValue = title; + break; + + case "ePaperAccess": + if (!_LiveConfig.default.isRssSide()) { + paramValue = "ePaper"; + + var _global$getNewsmemory = global.getNewsmemoryConfig(), + dbDownloadPSetup = _global$getNewsmemory.dbDownloadPSetup; + + if (dbDownloadPSetup) { + var _NewsmemoryUtils$pars = _newsmemoryUtils.default.parseXpSetup(dbDownloadPSetup), + mainpSetup = _NewsmemoryUtils$pars.mainpSetup; + + if (mainpSetup) { + if (mainpSetup.endsWith("_preview")) { + paramValue += "-preview"; + } else if (mainpSetup.endsWith("_issuedemo")) { + paramValue += "-demo"; + } + } + } + } + + break; + + default: + paramValue = params[name]; + break; + } + + if (typeof customReplacement === "function") { + paramValue = customReplacement(name, paramValue, params); + } + + paramValue = (_paramValue = paramValue) != null ? _paramValue : ""; + + if (encodeValue) { + paramValue = encodeURIComponent(paramValue); + } + + newValue = newValue.replace(placeholder, paramValue); + } + } + + return newValue; + }; + + var parseCustomDimensionsString = exports.parseCustomDimensionsString = function parseCustomDimensionsString(rawCustomDimensions) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!rawCustomDimensions) { + return {}; + } + + var customDimensions = _$$_REQUIRE(_dependencyMap[4]).StringUtils.parseQuerystring(replaceCustomDimensionsPlaceholders(rawCustomDimensions, params, true)); + + return Object.keys(customDimensions).reduce(function (result, current) { + var key = current.replace("dimension", ""); + result[key] = customDimensions[current]; + return result; + }, {}); + }; + + function mapParamsToFirebaseCustomDimensions() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var _global$getActivePSet2 = global.getActivePSetup(), + firebaseAnalyticsCustomDimensions = _global$getActivePSet2.firebaseAnalyticsCustomDimensions; + + if (firebaseAnalyticsCustomDimensions) { + var customDimensions = _$$_REQUIRE(_dependencyMap[4]).StringUtils.parseQuerystring(replaceCustomDimensionsPlaceholders(firebaseAnalyticsCustomDimensions, params, true)); + + return Object.keys(customDimensions).reduce(function (result, current) { + var value = customDimensions[current]; + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNumber(value) || !_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(value)) { + result[current] = value; + } + + return result; + }, {}); + } + + return {}; + } +},2002,[1943,3,434,630,438,2003]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.firebaseAnalyticsScreenNames = exports.analyticsScreenTypes = exports.analyticsEventTypes = exports.NewsmemoryShareType = exports.NewsmemoryArticleModes = undefined; + var analyticsScreenTypes = exports.analyticsScreenTypes = { + LAUNCH: "launch", + SCROLLED: "scrolled", + READ: "read", + ZOOM: "zoom", + SHARE: "share", + PAGE_CLICK: "page_clickthrough", + ARTICLE_CLICK: "article_clickthrough", + VIDEO: "video", + GALLERY: "gallery", + ARTICLE_GALLERY: "article_gallery", + INDEX: "index", + SECTION_INDEX: "section_index", + OPTIONSPAGE: "optionspage", + THUMBS: "thumbnails", + NOTICE_FULLSCREEN: "notice_fullscreen", + RSS_ARTICLE_READ: "rss_read", + RSS_DRAWER: "rss_drawer" + }; + var firebaseAnalyticsScreenNames = exports.firebaseAnalyticsScreenNames = { + SCROLLED: "ePaper page", + READ: "ePaper article", + ZOOM: "ePaper page detail", + INDEX: "ePaper index", + SECTION_INDEX: "ePaper ##section## section index", + OPTIONSPAGE: "ePaper ##tab## tab", + THUMBS: "ePaper thumbnails", + GALLERY: "ePaper gallery", + ARTICLE_GALLERY: "ePaper article gallery" + }; + var analyticsEventTypes = exports.analyticsEventTypes = { + LOGIN: "login", + TTS: "text_to_speech", + SKIP_TO_END: "skip_to_end", + DOUBLE_TAP_TO_ZOOM: "double_tap_to_zoom", + PINCH_TO_ZOOM: "pinch_to_zoom", + TOGGLE_TO_PRINT: "toggle_to_print", + TOGGLE_TO_DIGITAL: "toggle_to_digital", + SOCIAL_SHARE: "social_share", + SCROLL_ZOOMED: "scroll_zoomed", + TRANSLATE: "translate", + FONT_SIZE: "font_size_change", + GRAPH_SIZE: "graph_size_change", + TOGGLE_FULLSCREEN: "toggle_fullscreen", + PRINT: "print", + DOWNLOAD_PDF: "download_pdf", + ROTATE: "rotate", + LINK_CLICKED: "link_clicked" + }; + var NewsmemoryShareType = exports.NewsmemoryShareType = { + ALL: "all", + FACEBOOK: "facebook", + TWITTER: "twitter", + REDDIT: "reddit", + EMAIL: "email", + GMAIL: "gmail", + PRINT: "print", + PASTEBOARD: "pasteboard", + FILE: "file", + PDF: "pdf", + OTHER: "other" + }; + var NewsmemoryArticleModes = exports.NewsmemoryArticleModes = { + TEXT: "text", + GRAPHIC: "graphic" + }; +},2003,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FirebaseBaseTracker = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FirebaseBaseTracker = exports.FirebaseBaseTracker = function (_OptionalTracker) { + function FirebaseBaseTracker() { + (0, _classCallCheck2.default)(this, FirebaseBaseTracker); + return _callSuper(this, FirebaseBaseTracker, arguments); + } + + (0, _inherits2.default)(FirebaseBaseTracker, _OptionalTracker); + return (0, _createClass2.default)(FirebaseBaseTracker, [{ + key: "_getCustomParams", + value: function _getCustomParams() { + return { + ta_app_version: _deviceUtils.default.getAppVersion(), + ta_app_name: _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.appName(), + ta_operating_system: _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.getSystemName() + " " + _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.getSystemVersion() + }; + } + }, { + key: "_getExtId", + value: function _getExtId() { + var _global$getActivePSet = global.getActivePSetup(), + loginStatus = _global$getActivePSet.loginStatus; + + return loginStatus && loginStatus.extid || _PaywallLoginStatus.default.getExtid(); + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).OptionalTracker); +},2004,[3,6,7,11,13,14,2005,434,438,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var PaywallLoginStatus = exports.default = function () { + function PaywallLoginStatus() { + (0, _classCallCheck2.default)(this, PaywallLoginStatus); + } + + return (0, _createClass2.default)(PaywallLoginStatus, null, [{ + key: "getUserStatus", + value: function () { + var _getUserStatus = (0, _asyncToGenerator2.default)(function* () { + return _PaywallHelper.default.getUserStatus(); + }); + + function getUserStatus() { + return _getUserStatus.apply(this, arguments); + } + + return getUserStatus; + }() + }, { + key: "getDefaultUserStatus", + value: function getDefaultUserStatus() { + return { + subscriptions: [_$$_REQUIRE(_dependencyMap[5]).unregisteredSubscriptionType] + }; + } + }, { + key: "setUserStatus", + value: function setUserStatus(userStatus) { + PaywallLoginStatus.userStatus = userStatus; + + _PaywallHelper.default.setUserStatus(userStatus); + } + }, { + key: "updateUserStatus", + value: function updateUserStatus(userStatus) { + PaywallLoginStatus.setUserStatus(Object.assign({}, PaywallLoginStatus.userStatus, userStatus)); + } + }, { + key: "resetUserStatus", + value: function resetUserStatus() { + PaywallLoginStatus.setUserStatus(PaywallLoginStatus.getDefaultUserStatus()); + } + }, { + key: "initUserStatus", + value: function () { + var _initUserStatus = (0, _asyncToGenerator2.default)(function* () { + var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; + + _PaywallHelper.default.setStorageName("paywall_" + appId); + + var userStatus = yield PaywallLoginStatus.getUserStatus(); + + if (userStatus) { + PaywallLoginStatus.userStatus = userStatus; + } else { + PaywallLoginStatus.resetUserStatus(); + } + }); + + function initUserStatus() { + return _initUserStatus.apply(this, arguments); + } + + return initUserStatus; + }() + }, { + key: "isLoginInvalid", + value: function isLoginInvalid() { + var _PaywallLoginStatus$u = PaywallLoginStatus.userStatus, + lastLoginTimestamp = _PaywallLoginStatus$u.lastLoginTimestamp, + logged = _PaywallLoginStatus$u.logged; + + if (!logged) { + return false; + } + + var _global$getRSSActiveP = global.getRSSActivePSetup(), + refreshesTAUIDTimestamp = _global$getRSSActiveP.refreshesTAUIDTimestamp; + + if (refreshesTAUIDTimestamp) { + var referenceTimestamp = lastLoginTimestamp || 0; + return refreshesTAUIDTimestamp >= referenceTimestamp; + } + + return false; + } + }, { + key: "remember", + value: function remember(credentials) { + PaywallLoginStatus.updateUserStatus({ + credentials: credentials + }); + } + }, { + key: "forget", + value: function forget() { + PaywallLoginStatus.updateUserStatus({ + credentials: undefined + }); + } + }, { + key: "isUserLoggedIn", + value: function isUserLoggedIn() { + if (PaywallLoginStatus.userStatus) { + var logged = PaywallLoginStatus.userStatus.logged; + return logged != null ? logged : false; + } + + return false; + } + }, { + key: "getCredentials", + value: function getCredentials() { + if (PaywallLoginStatus.userStatus) { + var credentials = PaywallLoginStatus.userStatus.credentials; + return credentials; + } + + return undefined; + } + }, { + key: "getSubscriptions", + value: function getSubscriptions() { + var _subscriptions; + + var subscriptions; + + if (PaywallLoginStatus.userStatus) { + subscriptions = PaywallLoginStatus.userStatus.subscriptions; + } + + return (_subscriptions = subscriptions) != null ? _subscriptions : [_$$_REQUIRE(_dependencyMap[5]).unregisteredSubscriptionType]; + } + }, { + key: "getTAUID", + value: function getTAUID() { + if (PaywallLoginStatus.userStatus) { + var TAUID = PaywallLoginStatus.userStatus.TAUID; + return TAUID; + } + + return undefined; + } + }, { + key: "setExtId", + value: function setExtId(extid) { + PaywallLoginStatus.updateUserStatus({ + extid: extid + }); + } + }, { + key: "getExtid", + value: function getExtid() { + if (PaywallLoginStatus.userStatus) { + var extid = PaywallLoginStatus.userStatus.extid; + return extid; + } + + return undefined; + } + }, { + key: "isAdFree", + value: function isAdFree() { + if (PaywallLoginStatus.userStatus) { + var adFree = PaywallLoginStatus.userStatus.adFree; + return adFree === "1"; + } + + return false; + } + }]); + }(); + + PaywallLoginStatus.userStatus = {}; +},2005,[3,270,6,7,2006,2007]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var PaywallHelper = exports.default = function () { + function PaywallHelper() { + (0, _classCallCheck2.default)(this, PaywallHelper); + } + + return (0, _createClass2.default)(PaywallHelper, null, [{ + key: "getOldName", + value: function getOldName() { + return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? null : PaywallHelper.androidSharedPreferences.name; + } + }, { + key: "getMachineIdFromUserDefaults", + value: function () { + var _getMachineIdFromUserDefaults = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.getOldName(), _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? PaywallHelper.iOSStandardUserDefaults.keys.machineId : PaywallHelper.androidSharedPreferences.keys.machineId); + }); + + function getMachineIdFromUserDefaults() { + return _getMachineIdFromUserDefaults.apply(this, arguments); + } + + return getMachineIdFromUserDefaults; + }() + }, { + key: "getUserStatusFromUserDefaults", + value: function () { + var _getUserStatusFromUserDefaults = (0, _asyncToGenerator2.default)(function* () { + var _global$getRssIndex = global.getRssIndex(), + paywallAppId = _global$getRssIndex.paywallAppId; + + var userStatus = yield _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.getOldName(), _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? paywallAppId : PaywallHelper.androidSharedPreferences.keys.taUserLoginPrefix + paywallAppId); + + if (userStatus) { + if (_$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS()) { + return userStatus[PaywallHelper.iOSStandardUserDefaults.keys.userStatus]; + } + + try { + return JSON.parse(userStatus); + } catch (e) {} + } + + return undefined; + }); + + function getUserStatusFromUserDefaults() { + return _getUserStatusFromUserDefaults.apply(this, arguments); + } + + return getUserStatusFromUserDefaults; + }() + }, { + key: "setStandardUserDefaultsValue", + value: function setStandardUserDefaultsValue(key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItemInDefaultPreferences(PaywallHelper.getOldName(), key, value); + } + }, { + key: "clearStandardUserDefaults", + value: function clearStandardUserDefaults() { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAllFromDefaultPreferences(PaywallHelper.getOldName()); + } + }, { + key: "setStorageName", + value: function setStorageName(name) { + PaywallHelper.SP.name = name; + } + }, { + key: "getItem", + value: function () { + var _getItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.SP.name, key); + }); + + function getItem(_x) { + return _getItem.apply(this, arguments); + } + + return getItem; + }() + }, { + key: "setItem", + value: function () { + var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItemInDefaultPreferences(PaywallHelper.SP.name, key, value); + }); + + function setItem(_x2, _x3) { + return _setItem.apply(this, arguments); + } + + return setItem; + }() + }, { + key: "clearItem", + value: function () { + var _clearItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearItemFromDefaultPreferences(PaywallHelper.SP.name, key); + }); + + function clearItem(_x4) { + return _clearItem.apply(this, arguments); + } + + return clearItem; + }() + }, { + key: "getAccessedProductsList", + value: function () { + var _getAccessedProductsList = (0, _asyncToGenerator2.default)(function* () { + try { + var alreadyAccessedProducts = yield PaywallHelper.getItem(PaywallHelper.SP.keys.alreadyAccessedProducts); + return JSON.parse(alreadyAccessedProducts); + } catch (e) { + return []; + } + }); + + function getAccessedProductsList() { + return _getAccessedProductsList.apply(this, arguments); + } + + return getAccessedProductsList; + }() + }, { + key: "setAccessedProductsList", + value: function () { + var _setAccessedProductsList = (0, _asyncToGenerator2.default)(function* (value) { + return PaywallHelper.setItem(PaywallHelper.SP.keys.alreadyAccessedProducts, JSON.stringify(value)); + }); + + function setAccessedProductsList(_x5) { + return _setAccessedProductsList.apply(this, arguments); + } + + return setAccessedProductsList; + }() + }, { + key: "getOfflineProductsList", + value: function () { + var _getOfflineProductsList = (0, _asyncToGenerator2.default)(function* () { + try { + var offlineAccessedProducts = yield PaywallHelper.getItem(PaywallHelper.SP.keys.offlineAccessedProducts); + return JSON.parse(offlineAccessedProducts); + } catch (e) { + return []; + } + }); + + function getOfflineProductsList() { + return _getOfflineProductsList.apply(this, arguments); + } + + return getOfflineProductsList; + }() + }, { + key: "setOfflineProductsList", + value: function () { + var _setOfflineProductsList = (0, _asyncToGenerator2.default)(function* (value) { + return PaywallHelper.setItem(PaywallHelper.SP.keys.offlineAccessedProducts, JSON.stringify(value)); + }); + + function setOfflineProductsList(_x6) { + return _setOfflineProductsList.apply(this, arguments); + } + + return setOfflineProductsList; + }() + }, { + key: "isFirstProductsLeftPopupAlreadyShown", + value: function () { + var _isFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + var result = yield PaywallHelper.getItem(PaywallHelper.SP.keys.firstProductsLeftPopupAlreadyShown); + return result === "1"; + }); + + function isFirstProductsLeftPopupAlreadyShown() { + return _isFirstProductsLeftPopupAlreadyShown.apply(this, arguments); + } + + return isFirstProductsLeftPopupAlreadyShown; + }() + }, { + key: "setFirstProductsLeftPopupAlreadyShown", + value: function () { + var _setFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + return PaywallHelper.setItem(PaywallHelper.SP.keys.firstProductsLeftPopupAlreadyShown, "1"); + }); + + function setFirstProductsLeftPopupAlreadyShown() { + return _setFirstProductsLeftPopupAlreadyShown.apply(this, arguments); + } + + return setFirstProductsLeftPopupAlreadyShown; + }() + }, { + key: "isWelcomePopupAlreadyShown", + value: function () { + var _isWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + var result = yield PaywallHelper.getItem(PaywallHelper.SP.keys.welcomePopupAlreadyShown); + return result === "1"; + }); + + function isWelcomePopupAlreadyShown() { + return _isWelcomePopupAlreadyShown.apply(this, arguments); + } + + return isWelcomePopupAlreadyShown; + }() + }, { + key: "setWelcomePopupAlreadyShown", + value: function () { + var _setWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + return PaywallHelper.setItem(PaywallHelper.SP.keys.welcomePopupAlreadyShown, "1"); + }); + + function setWelcomePopupAlreadyShown() { + return _setWelcomePopupAlreadyShown.apply(this, arguments); + } + + return setWelcomePopupAlreadyShown; + }() + }, { + key: "getUserStatus", + value: function () { + var _getUserStatus = (0, _asyncToGenerator2.default)(function* () { + try { + var userStatus = yield PaywallHelper.getItem(PaywallHelper.SP.keys.userStatus); + + if (userStatus) { + return JSON.parse(userStatus); + } + + var oldUserStatus = yield PaywallHelper.getUserStatusFromUserDefaults(); + + if (oldUserStatus) { + var user = oldUserStatus.user, + pwdEncrypt = oldUserStatus.pwdEncrypt, + challenge = oldUserStatus.challenge, + subscription = oldUserStatus.subscription, + remember = oldUserStatus.remember; + userStatus = { + credentials: { + user: user, + pwdEncrypt: pwdEncrypt, + challenge: challenge + }, + subscriptions: [subscription], + remember: remember + }; + yield PaywallHelper.setUserStatus(userStatus); + PaywallHelper.clearStandardUserDefaults(); + } + + return userStatus; + } catch (e) { + return null; + } + }); + + function getUserStatus() { + return _getUserStatus.apply(this, arguments); + } + + return getUserStatus; + }() + }, { + key: "setUserStatus", + value: function () { + var _setUserStatus = (0, _asyncToGenerator2.default)(function* (userStatus) { + return PaywallHelper.setItem(PaywallHelper.SP.keys.userStatus, JSON.stringify(userStatus)); + }); + + function setUserStatus(_x7) { + return _setUserStatus.apply(this, arguments); + } + + return setUserStatus; + }() + }, { + key: "getConfig", + value: function () { + var _getConfig = (0, _asyncToGenerator2.default)(function* () { + try { + var config = yield PaywallHelper.getItem(PaywallHelper.SP.keys.config); + + if (config) { + return JSON.parse(config); + } + } catch (e) {} + + return {}; + }); + + function getConfig() { + return _getConfig.apply(this, arguments); + } + + return getConfig; + }() + }, { + key: "setConfig", + value: function () { + var _setConfig = (0, _asyncToGenerator2.default)(function* (config) { + return PaywallHelper.setItem(PaywallHelper.SP.keys.config, JSON.stringify(config)); + }); + + function setConfig(_x8) { + return _setConfig.apply(this, arguments); + } + + return setConfig; + }() + }, { + key: "setLastProductsLeft", + value: function () { + var _setLastProductsLeft = (0, _asyncToGenerator2.default)(function* (productsLeft) { + return PaywallHelper.setItem(PaywallHelper.SP.keys.lastProductsLeft, "" + productsLeft); + }); + + function setLastProductsLeft(_x9) { + return _setLastProductsLeft.apply(this, arguments); + } + + return setLastProductsLeft; + }() + }, { + key: "getLastProductsLeft", + value: function () { + var _getLastProductsLeft = (0, _asyncToGenerator2.default)(function* () { + return PaywallHelper.getItem(PaywallHelper.SP.keys.lastProductsLeft); + }); + + function getLastProductsLeft() { + return _getLastProductsLeft.apply(this, arguments); + } + + return getLastProductsLeft; + }() + }, { + key: "enableLogoutFlag", + value: function () { + var _enableLogoutFlag = (0, _asyncToGenerator2.default)(function* () { + return PaywallHelper.setItem(PaywallHelper.SP.keys.logout, "1"); + }); + + function enableLogoutFlag() { + return _enableLogoutFlag.apply(this, arguments); + } + + return enableLogoutFlag; + }() + }, { + key: "isLogoutFlagEnabled", + value: function () { + var _isLogoutFlagEnabled = (0, _asyncToGenerator2.default)(function* () { + var flag = yield PaywallHelper.getItem(PaywallHelper.SP.keys.logout); + return flag === "1"; + }); + + function isLogoutFlagEnabled() { + return _isLogoutFlagEnabled.apply(this, arguments); + } + + return isLogoutFlagEnabled; + }() + }, { + key: "clearLogoutFlag", + value: function () { + var _clearLogoutFlag = (0, _asyncToGenerator2.default)(function* () { + return PaywallHelper.clearItem(PaywallHelper.SP.keys.logout); + }); + + function clearLogoutFlag() { + return _clearLogoutFlag.apply(this, arguments); + } + + return clearLogoutFlag; + }() + }]); + }(); + + PaywallHelper.SP = { + name: "paywall", + keys: { + welcomePopupAlreadyShown: "welcomePopupAlreadyShown", + alreadyAccessedProducts: "alreadyAccessedProducts", + offlineAccessedProducts: "offlineAccessedProducts", + firstProductsLeftPopupAlreadyShown: "firstProductsLeftPopupAlreadyShown", + userStatus: "userStatus", + config: "config", + lastProductsLeft: "lastProductsLeft", + logout: "logoutInRSS" + } + }; + PaywallHelper.androidSharedPreferences = { + name: "ta_metered_paywall", + keys: { + taUserLoginPrefix: "ta_user_login_", + machineId: "ta_MACHINE_ID" + } + }; + PaywallHelper.iOSStandardUserDefaults = { + keys: { + machineId: "ta_MACHINE_ID", + userStatus: "ta_user_login" + } + }; +},2006,[3,270,6,7,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.unregisteredSubscriptionType = exports.services = exports.serverStatusCodes = exports.serverBaseDomain = exports.protectedServices = exports.popupTypes = exports.configKeys = exports.baseVer = exports.accessedProductsDuration = exports.UNLIMITED_ACCESS = undefined; + var serverBaseDomain = exports.serverBaseDomain = "pw.newsmemory.com"; + var baseVer = exports.baseVer = "meterapps.check.24120213"; + var accessedProductsDuration = exports.accessedProductsDuration = 86400000; + var unregisteredSubscriptionType = exports.unregisteredSubscriptionType = "UNREGISTERED"; + var services = exports.services = { + config: "get_config", + validate: "validate", + login: "login", + logout: "logout", + user_validate: "user_validate", + popups: "popups" + }; + var protectedServices = exports.protectedServices = [services.validate, services.user_validate, services.logout, services.login]; + var popupTypes = exports.popupTypes = { + account: "userProfile", + blocking: "paywall", + login: "loginForm", + productsLeft: "productsLeft", + welcome: "welcome" + }; + var serverStatusCodes = exports.serverStatusCodes = { + INTERNAL_ERROR: -5, + SESSION_EXPIRED: -4, + USER_NOT_LOGGED: -3, + WRONG_ACI: -3, + WRONG_APP_ID: -2, + SUCCESS: 0 + }; + var configKeys = exports.configKeys = { + showWelcomePopup: "show_welcome_popup", + showFirstProductsLeftPopup: "show_first_products_left_popup", + showLatestProductsLeftPopup: "show_latest_products_left_popup", + showPaywall: "show_paywall" + }; + var UNLIMITED_ACCESS = exports.UNLIMITED_ACCESS = "unlimited"; +},2007,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.OptionalTracker = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var OptionalTracker = exports.OptionalTracker = function (_Tracker) { + function OptionalTracker(service) { + var _this; + + (0, _classCallCheck2.default)(this, OptionalTracker); + _this = _callSuper(this, OptionalTracker, [service]); + _this.tracker = null; + _this.isTrackerAvailable = _this._isTrackerAvailable.bind(_this); + return _this; + } + + (0, _inherits2.default)(OptionalTracker, _Tracker); + return (0, _createClass2.default)(OptionalTracker, [{ + key: "_isTrackerAvailable", + value: function _isTrackerAvailable() { + return !_$$_REQUIRE(_dependencyMap[7]).JSUtils.isNull(this.tracker); + } + }, { + key: "_isValid", + value: function _isValid() { + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(OptionalTracker.prototype), "_isValid", this).call(this)) { + return false; + } + + if (!this._isTrackerAvailable()) { + return false; + } + + return true; + } + }]); + }(_$$_REQUIRE(_dependencyMap[8]).Tracker); +},2008,[3,6,7,11,85,13,14,438,2009]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Tracker = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _cmpUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var Tracker = exports.Tracker = function () { + function Tracker(service) { + (0, _classCallCheck2.default)(this, Tracker); + this.service = undefined; + this.enabled = false; + this.service = service; + this.init = this._init.bind(this); + this.trackScreen = this._trackScreen.bind(this); + this.trackEvent = this._trackEvent.bind(this); + this.isValid = this._isValid.bind(this); + this.isParamsValid = this._isParamsValid.bind(this); + this.isCmpAllowed = this._isCmpAllowed.bind(this); + } + + return (0, _createClass2.default)(Tracker, [{ + key: "_init", + value: function _init() { + return this; + } + }, { + key: "_trackScreen", + value: function _trackScreen() {} + }, { + key: "_trackEvent", + value: function _trackEvent(params) {} + }, { + key: "_isValid", + value: function _isValid() { + if (!this.enabled) { + return false; + } + + if (!this._isProduction()) { + return false; + } + + return true; + } + }, { + key: "_isParamsValid", + value: function _isParamsValid(params) { + if (!this._isValid()) { + return false; + } + + if (!params) { + return false; + } + + return true; + } + }, { + key: "_isCmpAllowed", + value: function _isCmpAllowed() { + return _cmpUtils.default.isAnalyticsTrackingAllowed(this.service); + } + }, { + key: "_isCmpAdAllowed", + value: function _isCmpAdAllowed() { + return _cmpUtils.default.isAdTrackingAllowed(); + } + }, { + key: "_isProduction", + value: function _isProduction() { + return !global.__DEV__; + } + }]); + }(); +},2009,[3,6,7,2010]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var ATT_VALUES = { + UNAVAILABLE: "unavailable", + NOT_DETERMINED: "not-determined", + AUTHORIZED: "authorized", + DENIED: "denied" + }; + + var CmpUtils = exports.default = function () { + function CmpUtils() { + (0, _classCallCheck2.default)(this, CmpUtils); + } + + return (0, _createClass2.default)(CmpUtils, null, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (navigation) { + var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var _global$getMainPSetup = global.getMainPSetup(), + disableFirebaseAnalytics = _global$getMainPSetup.disableFirebaseAnalytics, + matherAnalyticsEnabled = _global$getMainPSetup.matherAnalyticsEnabled, + comScoreId = _global$getMainPSetup.comScoreId, + adobeAnalyticsEnabled = _global$getMainPSetup.adobeAnalyticsEnabled, + facebookAnalyticsEnabled = _global$getMainPSetup.facebookAnalyticsEnabled, + matomoTrackerEnabled = _global$getMainPSetup.matomoTrackerEnabled, + attConfig = _global$getMainPSetup.attConfig, + iubendaEnabled = _global$getMainPSetup.iubendaEnabled, + iubendaConfig = _global$getMainPSetup.iubendaConfig; + + var disableAppTrackingTransparencyMessage = attConfig.disableAppTrackingTransparencyMessage, + forceAppTrackingTransparencyMessage = attConfig.forceAppTrackingTransparencyMessage, + forcePreAppTrackingTransparencyMessageOnAppUpdate = attConfig.forcePreAppTrackingTransparencyMessageOnAppUpdate, + showPreAppTrackingTransparencyMessage = attConfig.showPreAppTrackingTransparencyMessage; + + var adsRequireConsent = global.getAdsConfig().hasAdsRequiringIDFAPermissions() || _optionalPackageUtils.default.isDailymotionVideoPlayerAvailable(); + + var forceConsentPopup = false; + + if (iubendaEnabled && iubendaConfig) { + adsRequireConsent = iubendaConfig.adsRequireConsent; + forceConsentPopup = iubendaConfig.forceConsentPopup; + } + + var hasMather = _optionalPackageUtils.default.isMatherAnalyticsAvailable() && matherAnalyticsEnabled; + var hasComscore = _optionalPackageUtils.default.isComScoreAvailable() && comScoreId; + var hasAdobe = _optionalPackageUtils.default.isAdobeAnalyticsAvailable() && adobeAnalyticsEnabled; + var hasFacebook = _optionalPackageUtils.default.isFacebookSDKAvailable() && facebookAnalyticsEnabled; + var has3rdPartyMatomo = _optionalPackageUtils.default.isMatomoTrackerAvailable() && matomoTrackerEnabled; + var hasOtherAnalytics = hasMather || hasComscore || hasAdobe || hasFacebook || has3rdPartyMatomo; + var UNAVAILABLE = ATT_VALUES.UNAVAILABLE, + NOT_DETERMINED = ATT_VALUES.NOT_DETERMINED, + DENIED = ATT_VALUES.DENIED, + AUTHORIZED = ATT_VALUES.AUTHORIZED; + + try { + if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() && _optionalPackageUtils.default.isTrackingTransparencyAvailable() && !disableAppTrackingTransparencyMessage && (forceAppTrackingTransparencyMessage || hasOtherAnalytics || adsRequireConsent)) { + CmpUtils.attUserChoice = yield CmpUtils.getTrackingPermission(); + + if (CmpUtils.attUserChoice !== UNAVAILABLE) { + var userChoiceUndetermined = CmpUtils.attUserChoice === NOT_DETERMINED; + var userChoiceDenied = CmpUtils.attUserChoice === DENIED; + + if (userChoiceUndetermined || forcePreAppTrackingTransparencyMessageOnAppUpdate && isAppUpgraded && userChoiceDenied) { + if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.isOnline() && showPreAppTrackingTransparencyMessage) { + var proceed = yield new Promise(function (onClose) { + navigation.navigate("PreAppTrackingTransparencyMessageScreen", { + userChoiceDenied: userChoiceDenied, + onClose: onClose + }); + }); + + if (proceed && userChoiceDenied) { + _reactNative.Linking.openSettings(); + } + } + + if (userChoiceUndetermined) { + CmpUtils.attUserChoice = yield CmpUtils.askTrackingPermission(); + } + } + + CmpUtils.advertisingTrackingConsent = CmpUtils.attUserChoice === AUTHORIZED; + } + } + + var _OptionalPackages$get = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get.Iubenda; + + if (Iubenda && iubendaEnabled) { + if (CmpUtils.attUserChoice === DENIED) { + yield _$$_REQUIRE(_dependencyMap[8]).CmpStorage.init(true); + + if (CmpUtils.isGDPRComplianceRequired()) { + CmpUtils.trackingConsent = false; + return CmpUtils.attUserChoice; + } + } + + var result = yield CmpUtils.setupIubenda(); + + if (!result) { + CmpUtils.advertisingTrackingConsent = false; + + if (CmpUtils.isGDPRComplianceRequired()) { + CmpUtils.trackingConsent = false; + } + + return CmpUtils.attUserChoice; + } + + var googleAnalyticsEnabled = !disableFirebaseAnalytics; + + if (forceConsentPopup || CmpUtils.isGDPRComplianceRequired() && (googleAnalyticsEnabled || hasOtherAnalytics || adsRequireConsent) || (CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) && (hasOtherAnalytics || adsRequireConsent)) { + try { + var consents = yield CmpUtils.askIubendaConsent(); + CmpUtils.setConsentsIubenda(consents); + } catch (e) {} + } else { + yield CmpUtils.clearConsent(); + } + + return CmpUtils.attUserChoice; + } + + var initialized = yield CmpUtils.initOsanoCMP(); + + if (initialized) { + yield CmpUtils.updateOsanoTcData(); + + if (CmpUtils.attUserChoice === DENIED) { + yield _$$_REQUIRE(_dependencyMap[8]).CmpStorage.init(true); + + if (CmpUtils.isGDPRComplianceRequired()) { + CmpUtils.trackingConsent = false; + return CmpUtils.attUserChoice; + } + } + + yield CmpUtils.askOsanoConsent(); + yield CmpUtils.updateOsanoLawData(); + return CmpUtils.attUserChoice; + } + + yield CmpUtils.clearConsent(); + (0, _$$_REQUIRE(_dependencyMap[9]).addDebugOperation)("CmpUtils", "init CMP completed"); + } catch (e) {} + + return CmpUtils.attUserChoice; + }); + + function init(_x) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "getCmpConfig", + value: function getCmpConfig() { + var _global$getMainPSetup2 = global.getMainPSetup(), + iubendaEnabled = _global$getMainPSetup2.iubendaEnabled, + iubendaConfig = _global$getMainPSetup2.iubendaConfig, + osanoConfig = _global$getMainPSetup2.osanoConfig, + osanoEnabled = _global$getMainPSetup2.osanoEnabled; + + if (iubendaEnabled && iubendaConfig) { + return iubendaConfig; + } + + if (osanoEnabled && osanoConfig) { + return osanoConfig; + } + + return undefined; + } + }, { + key: "isGDPRComplianceRequired", + value: function isGDPRComplianceRequired() { + var _CmpUtils$getCmpConfi; + + return !!((_CmpUtils$getCmpConfi = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi.isGDPR()); + } + }, { + key: "isUSComplianceRequired", + value: function isUSComplianceRequired() { + var _CmpUtils$getCmpConfi2; + + return !!((_CmpUtils$getCmpConfi2 = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi2.isUS()); + } + }, { + key: "isLGPDComplianceRequired", + value: function isLGPDComplianceRequired() { + var _CmpUtils$getCmpConfi3; + + return !!((_CmpUtils$getCmpConfi3 = CmpUtils.getCmpConfig()) != null && _CmpUtils$getCmpConfi3.isLGPD()); + } + }, { + key: "isAnalyticsServiceIPAnonymized", + value: function isAnalyticsServiceIPAnonymized(service) { + var MATOMO = _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.MATOMO, + FIREBASE_GA = _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.FIREBASE_GA; + + return service === MATOMO || service === FIREBASE_GA; + } + }, { + key: "isAnalyticsTrackingAllowed", + value: function isAnalyticsTrackingAllowed(service) { + if (service !== _$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.MATOMO && CmpUtils.isConsentNeeded() && (CmpUtils.isGDPRComplianceRequired() || (CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) && !CmpUtils.isAnalyticsServiceIPAnonymized(service))) { + if (CmpUtils.trackingConsent !== undefined) { + return CmpUtils.trackingConsent; + } + + if (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) { + return false; + } + } + + return true; + } + }, { + key: "isAdTrackingAllowed", + value: function isAdTrackingAllowed(service) { + if (_$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isIOS() || CmpUtils.isConsentNeeded() && (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isUSComplianceRequired() || CmpUtils.isLGPDComplianceRequired())) { + if (CmpUtils.advertisingTrackingConsent !== undefined) { + return CmpUtils.advertisingTrackingConsent; + } + + if (CmpUtils.isGDPRComplianceRequired() || CmpUtils.isLGPDComplianceRequired()) { + return false; + } + } + + return true; + } + }, { + key: "isConsentNeeded", + value: function isConsentNeeded() { + var _global$getMainPSetup3 = global.getMainPSetup(), + iubendaEnabled = _global$getMainPSetup3.iubendaEnabled, + osanoEnabled = _global$getMainPSetup3.osanoEnabled; + + var _OptionalPackages$get2 = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get2.Iubenda; + + var _OptionalPackages$get3 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get3.Osano; + + return (iubendaEnabled && Iubenda || osanoEnabled && Osano) && !CmpUtils.consentNotNeeded; + } + }, { + key: "isConsentExpressed", + value: function isConsentExpressed() { + return CmpUtils.trackingConsent !== undefined && !CmpUtils.consentNotNeeded; + } + }, { + key: "askTrackingPermission", + value: function () { + var _askTrackingPermission = (0, _asyncToGenerator2.default)(function* () { + if (_optionalPackageUtils.default.isTrackingTransparencyAvailable()) { + var trackingStatus = yield _optionalPackageUtils.default.getTrackingTransparency().requestTrackingPermission(); + return trackingStatus; + } + + return "unavailable"; + }); + + function askTrackingPermission() { + return _askTrackingPermission.apply(this, arguments); + } + + return askTrackingPermission; + }() + }, { + key: "getTrackingPermission", + value: function () { + var _getTrackingPermission = (0, _asyncToGenerator2.default)(function* () { + var trackingStatus = "unavailable"; + + if (_optionalPackageUtils.default.isTrackingTransparencyAvailable()) { + trackingStatus = yield _optionalPackageUtils.default.getTrackingTransparency().getTrackingStatus(); + } + + return trackingStatus; + }); + + function getTrackingPermission() { + return _getTrackingPermission.apply(this, arguments); + } + + return getTrackingPermission; + }() + }, { + key: "testTrackingPermissionValue", + value: function () { + var _testTrackingPermissionValue = (0, _asyncToGenerator2.default)(function* (reference, status) { + var trackingStatus = status != null ? status : yield CmpUtils.getTrackingPermission(); + return trackingStatus === reference; + }); + + function testTrackingPermissionValue(_x2, _x3) { + return _testTrackingPermissionValue.apply(this, arguments); + } + + return testTrackingPermissionValue; + }() + }, { + key: "isTrackingPermissionUnavailable", + value: function () { + var _isTrackingPermissionUnavailable = (0, _asyncToGenerator2.default)(function* (status) { + return CmpUtils.testTrackingPermissionValue(ATT_VALUES.UNAVAILABLE, status); + }); + + function isTrackingPermissionUnavailable(_x4) { + return _isTrackingPermissionUnavailable.apply(this, arguments); + } + + return isTrackingPermissionUnavailable; + }() + }, { + key: "isTrackingPermissionNotDetermined", + value: function () { + var _isTrackingPermissionNotDetermined = (0, _asyncToGenerator2.default)(function* (status) { + return CmpUtils.testTrackingPermissionValue(ATT_VALUES.NOT_DETERMINED, status); + }); + + function isTrackingPermissionNotDetermined(_x5) { + return _isTrackingPermissionNotDetermined.apply(this, arguments); + } + + return isTrackingPermissionNotDetermined; + }() + }, { + key: "isTrackingPermissionAuthorized", + value: function () { + var _isTrackingPermissionAuthorized = (0, _asyncToGenerator2.default)(function* (status) { + return CmpUtils.testTrackingPermissionValue(ATT_VALUES.AUTHORIZED, status); + }); + + function isTrackingPermissionAuthorized(_x6) { + return _isTrackingPermissionAuthorized.apply(this, arguments); + } + + return isTrackingPermissionAuthorized; + }() + }, { + key: "isTrackingPermissionDenied", + value: function () { + var _isTrackingPermissionDenied = (0, _asyncToGenerator2.default)(function* (status) { + return CmpUtils.testTrackingPermissionValue(ATT_VALUES.DENIED, status); + }); + + function isTrackingPermissionDenied(_x7) { + return _isTrackingPermissionDenied.apply(this, arguments); + } + + return isTrackingPermissionDenied; + }() + }, { + key: "checkTrackingPermission", + value: function () { + var _checkTrackingPermission = (0, _asyncToGenerator2.default)(function* () { + var trackingStatus = yield CmpUtils.getTrackingPermission(); + + if (trackingStatus === ATT_VALUES.NOT_DETERMINED) { + trackingStatus = yield CmpUtils.askTrackingPermission(); + } + + return trackingStatus; + }); + + function checkTrackingPermission() { + return _checkTrackingPermission.apply(this, arguments); + } + + return checkTrackingPermission; + }() + }, { + key: "initIubendaCMP", + value: function () { + var _initIubendaCMP = (0, _asyncToGenerator2.default)(function* (_ref) { + var baseUrl = _ref.baseUrl, + siteId = _ref.siteId, + cookiePolicyId = _ref.cookiePolicyId, + gdprEnabled = _ref.gdprEnabled, + googleAds = _ref.googleAds, + enableTcf = _ref.enableTcf, + resetConsentDate = _ref.resetConsentDate, + laws = _ref.laws, + language = _ref.language; + + var _OptionalPackages$get4 = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get4.Iubenda; + + return Iubenda.init({ + baseUrl: baseUrl, + siteId: siteId, + cookiePolicyId: cookiePolicyId, + googleAds: googleAds, + enableTcf: enableTcf, + resetConsentDate: resetConsentDate, + laws: laws.join(","), + lang: language, + perPurposeConsent: true + }); + }); + + function initIubendaCMP(_x8) { + return _initIubendaCMP.apply(this, arguments); + } + + return initIubendaCMP; + }() + }, { + key: "askIubendaConsent", + value: function () { + var _askIubendaConsent = (0, _asyncToGenerator2.default)(function* () { + var _OptionalPackages$get5 = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get5.Iubenda; + + if (Iubenda) { + return Iubenda.askConsent(); + } + + return undefined; + }); + + function askIubendaConsent() { + return _askIubendaConsent.apply(this, arguments); + } + + return askIubendaConsent; + }() + }, { + key: "changePreferences", + value: function () { + var _changePreferences = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup4 = global.getMainPSetup(), + iubendaEnabled = _global$getMainPSetup4.iubendaEnabled, + osanoEnabled = _global$getMainPSetup4.osanoEnabled; + + var _OptionalPackages$get6 = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get6.Iubenda; + + var _OptionalPackages$get7 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get7.Osano; + + if (iubendaEnabled && Iubenda) { + return Iubenda.editPreferences(); + } + + if (osanoEnabled && Osano) { + try { + yield Osano.change(); + yield CmpUtils.updateOsanoLawData(); + Osano.destroy(); + } catch (e) { + throw e; + } + } + + return Promise.resolve(); + }); + + function changePreferences() { + return _changePreferences.apply(this, arguments); + } + + return changePreferences; + }() + }, { + key: "initOsanoCMP", + value: function () { + var _initOsanoCMP = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup5 = global.getMainPSetup(), + osanoEnabled = _global$getMainPSetup5.osanoEnabled, + osanoConfig = _global$getMainPSetup5.osanoConfig; + + var _OptionalPackages$get8 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get8.Osano; + + if (!Osano || !osanoEnabled) { + return false; + } + + if (osanoConfig.customerId === "" || osanoConfig.configurationId === "") { + return false; + } + + var config = { + customerId: osanoConfig.customerId, + projectId: osanoConfig.configurationId, + baseActionUrl: _NewsmemoryAJAX.default.getCMPBaseURL() + }; + + try { + yield Osano.init(config); + return true; + } catch (e) {} + + return false; + }); + + function initOsanoCMP() { + return _initOsanoCMP.apply(this, arguments); + } + + return initOsanoCMP; + }() + }, { + key: "askOsanoConsent", + value: function () { + var _askOsanoConsent = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup6 = global.getMainPSetup(), + osanoEnabled = _global$getMainPSetup6.osanoEnabled, + osanoConfig = _global$getMainPSetup6.osanoConfig; + + var _OptionalPackages$get9 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get9.Osano; + + if (!Osano || !osanoEnabled) { + return undefined; + } + + var resetConsentDate = osanoConfig.resetConsentDate; + + if (resetConsentDate) { + try { + yield Osano.resetIfNecessary({ + resetConsentDate: resetConsentDate + }); + } catch (e) {} + } + + try { + var osanoResult = yield Osano.ask(); + CmpUtils.setConsentsOsano(osanoResult); + return osanoResult; + } catch (e) {} + + return undefined; + }); + + function askOsanoConsent() { + return _askOsanoConsent.apply(this, arguments); + } + + return askOsanoConsent; + }() + }, { + key: "updateOsanoTcData", + value: function () { + var _updateOsanoTcData = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup7 = global.getMainPSetup(), + osanoConfig = _global$getMainPSetup7.osanoConfig, + osanoEnabled = _global$getMainPSetup7.osanoEnabled; + + var _OptionalPackages$get10 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get10.Osano; + + if (!Osano || !osanoEnabled || !osanoConfig) { + return; + } + + try { + var tcData = yield Osano.askTcData(); + osanoConfig.setTcData(tcData); + } catch (e) {} + }); + + function updateOsanoTcData() { + return _updateOsanoTcData.apply(this, arguments); + } + + return updateOsanoTcData; + }() + }, { + key: "updateOsanoUspData", + value: function () { + var _updateOsanoUspData = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup8 = global.getMainPSetup(), + osanoConfig = _global$getMainPSetup8.osanoConfig, + osanoEnabled = _global$getMainPSetup8.osanoEnabled; + + var _OptionalPackages$get11 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get11.Osano; + + if (!Osano || !osanoEnabled || !osanoConfig) { + return; + } + + try { + var uspData = yield Osano.askUspData(); + osanoConfig.setUspData(uspData); + } catch (e) {} + }); + + function updateOsanoUspData() { + return _updateOsanoUspData.apply(this, arguments); + } + + return updateOsanoUspData; + }() + }, { + key: "updateOsanoLawData", + value: function () { + var _updateOsanoLawData = (0, _asyncToGenerator2.default)(function* () { + yield CmpUtils.updateOsanoTcData(); + yield CmpUtils.updateOsanoUspData(); + }); + + function updateOsanoLawData() { + return _updateOsanoLawData.apply(this, arguments); + } + + return updateOsanoLawData; + }() + }, { + key: "setConsentsIubenda", + value: function setConsentsIubenda() { + var consents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var consentNotNeeded = consents.consentNotNeeded, + _consents$consentStri = consents.consentStrings, + consentStrings = _consents$consentStri === undefined ? {} : _consents$consentStri, + _consents$perPurposeC = consents.perPurposeConsents, + perPurposeConsents = _consents$perPurposeC === undefined ? {} : _consents$perPurposeC, + _consents$perTCFPurpo = consents.perTCFPurposeConsents, + perTCFPurposeConsents = _consents$perTCFPurpo === undefined ? {} : _consents$perTCFPurpo, + _consents$usprPurpose = consents.usprPurposesConsents, + usprPurposesConsents = _consents$usprPurpose === undefined ? {} : _consents$usprPurpose; + + var _global$getMainPSetup9 = global.getMainPSetup(), + iubendaConfig = _global$getMainPSetup9.iubendaConfig; + + var googleAds = iubendaConfig.googleAdsPresent; + var gdprEnabled = CmpUtils.isGDPRComplianceRequired(); + var usEnabled = CmpUtils.isUSComplianceRequired(); + var lgdpEnabled = CmpUtils.isLGPDComplianceRequired(); + CmpUtils.consentNotNeeded = consentNotNeeded != null ? consentNotNeeded : false; + CmpUtils.advertisingTrackingConsent = false; + CmpUtils.consentStrings = {}; + + if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED && consentStrings) { + CmpUtils.consentStrings = consentStrings; + } + + var s = usprPurposesConsents.s, + sh = usprPurposesConsents.sh, + adv = usprPurposesConsents.adv; + + if (usEnabled) { + var _ref2; + + CmpUtils.trackingConsent = (_ref2 = s && sh) != null ? _ref2 : false; + CmpUtils.advertisingTrackingConsent = adv != null ? adv : false; + + if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { + CmpUtils.advertisingTrackingConsent = adv != null ? adv : false; + } + } + + if (lgdpEnabled) {} + + if (gdprEnabled) { + var _ref3, _perPurposeConsents$; + + CmpUtils.trackingConsent = (_ref3 = (_perPurposeConsents$ = perPurposeConsents["4"]) != null ? _perPurposeConsents$ : s && sh) != null ? _ref3 : false; + + if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { + var _ref4, _perPurposeConsents$2; + + CmpUtils.advertisingTrackingConsent = (_ref4 = (_perPurposeConsents$2 = perPurposeConsents["5"]) != null ? _perPurposeConsents$2 : adv) != null ? _ref4 : false; + + if (_optionalPackageUtils.default.isDailymotionVideoPlayerAvailable()) { + var DailymotionVideo = _optionalPackageUtils.default.getDailymotionVideoPlayer(); + + DailymotionVideo.setConsentString(CmpUtils.getTCConsentString()); + } + } + + if (googleAds) { + CmpUtils.googlePersonalizedAdsConsent = CmpUtils.advertisingTrackingConsent; + CmpUtils.googleNonPersonalizedAdsConsent = CmpUtils.advertisingTrackingConsent; + + if (!CmpUtils.googlePersonalizedAdsConsent) { + var _perTCFPurposeConsent, _perTCFPurposeConsent2, _perTCFPurposeConsent3, _perTCFPurposeConsent4, _perTCFPurposeConsent5, _perTCFPurposeConsent6, _perTCFPurposeConsent7; + + CmpUtils.googleNonPersonalizedAdsConsent = ((_perTCFPurposeConsent = perTCFPurposeConsents["1"]) != null ? _perTCFPurposeConsent : false) && ((_perTCFPurposeConsent2 = perTCFPurposeConsents["2"]) != null ? _perTCFPurposeConsent2 : false) && ((_perTCFPurposeConsent3 = perTCFPurposeConsents["7"]) != null ? _perTCFPurposeConsent3 : false) && ((_perTCFPurposeConsent4 = perTCFPurposeConsents["9"]) != null ? _perTCFPurposeConsent4 : false) && ((_perTCFPurposeConsent5 = perTCFPurposeConsents["10"]) != null ? _perTCFPurposeConsent5 : false); + CmpUtils.googlePersonalizedAdsConsent = CmpUtils.googleNonPersonalizedAdsConsent && ((_perTCFPurposeConsent6 = perTCFPurposeConsents["3"]) != null ? _perTCFPurposeConsent6 : false) && ((_perTCFPurposeConsent7 = perTCFPurposeConsents["4"]) != null ? _perTCFPurposeConsent7 : false); + } + } + } + } + }, { + key: "setConsentsOsano", + value: function setConsentsOsano(consents) { + var _global$getMainPSetup10 = global.getMainPSetup(), + osanoConfig = _global$getMainPSetup10.osanoConfig; + + CmpUtils.consentNotNeeded = false; + CmpUtils.advertisingTrackingConsent = false; + CmpUtils.trackingConsent = consents.ANALYTICS === "ACCEPT"; + + if (CmpUtils.attUserChoice !== ATT_VALUES.DENIED) { + var _osanoConfig$tcData, _osanoConfig$uspData; + + CmpUtils.advertisingTrackingConsent = consents.MARKETING === "ACCEPT"; + CmpUtils.consentStrings = { + tc: (_osanoConfig$tcData = osanoConfig.tcData) == null ? undefined : _osanoConfig$tcData.tcString, + us: (_osanoConfig$uspData = osanoConfig.uspData) == null ? undefined : _osanoConfig$uspData.uspString + } || {}; + + if (_optionalPackageUtils.default.isDailymotionVideoPlayerAvailable()) { + var DailymotionVideo = _optionalPackageUtils.default.getDailymotionVideoPlayer(); + + DailymotionVideo.setConsentString(CmpUtils.getTCConsentString()); + } + } + } + }, { + key: "setupIubenda", + value: function () { + var _setupIubenda = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup11 = global.getMainPSetup(), + iubendaEnabled = _global$getMainPSetup11.iubendaEnabled, + iubendaConfig = _global$getMainPSetup11.iubendaConfig; + + if (iubendaEnabled && iubendaConfig) { + var siteId = iubendaConfig.siteId, + cookiePolicyId = iubendaConfig.cookiePolicyId, + language = iubendaConfig.language, + googleAds = iubendaConfig.googleAdsPresent, + adsRequireConsent = iubendaConfig.adsRequireConsent, + laws = iubendaConfig.referencePrivacyLaws; + var resetConsentDate = iubendaConfig.resetConsentDate; + + if (siteId && cookiePolicyId) { + var gdprEnabled = CmpUtils.isGDPRComplianceRequired(); + var enableTcf = gdprEnabled && adsRequireConsent; + + if (global.isDebug) {} + + var userSettings = global.getUserSettings(); + var customResetConsentDate = userSettings.resetConsentDate; + + if (customResetConsentDate && customResetConsentDate > resetConsentDate) { + resetConsentDate = customResetConsentDate; + yield userSettings.deleteResetConsentDate(); + } + + yield CmpUtils.initIubendaCMP({ + baseUrl: _NewsmemoryAJAX.default.getCMPBaseURL(), + siteId: siteId, + cookiePolicyId: cookiePolicyId, + googleAds: googleAds, + enableTcf: enableTcf, + resetConsentDate: resetConsentDate, + laws: laws, + language: language + }); + return true; + } + } + + return false; + }); + + function setupIubenda() { + return _setupIubenda.apply(this, arguments); + } + + return setupIubenda; + }() + }, { + key: "editPreferences", + value: function () { + var _editPreferences = (0, _asyncToGenerator2.default)(function* () { + var _global$getMainPSetup12 = global.getMainPSetup(), + iubendaEnabled = _global$getMainPSetup12.iubendaEnabled; + + if (iubendaEnabled) { + var consents = yield CmpUtils.editIubendaPreferences(); + CmpUtils.setConsents(consents); + } + }); + + function editPreferences() { + return _editPreferences.apply(this, arguments); + } + + return editPreferences; + }() + }, { + key: "clearConsent", + value: function () { + var _clearConsent = (0, _asyncToGenerator2.default)(function* () { + CmpUtils.trackingConsent = undefined; + CmpUtils.advertisingTrackingConsent = undefined; + CmpUtils.consentStrings = undefined; + CmpUtils.googlePersonalizedAdsConsent = undefined; + CmpUtils.googleNonPersonalizedAdsConsent = undefined; + CmpUtils.consentNotNeeded = false; + + var _OptionalPackages$get12 = _optionalPackageUtils.default.getIubenda(), + Iubenda = _OptionalPackages$get12.Iubenda; + + var _OptionalPackages$get13 = _optionalPackageUtils.default.getOsano(), + Osano = _OptionalPackages$get13.Osano; + + if (Iubenda) { + yield Iubenda.clearData(); + var userSettings = global.getUserSettings(); + userSettings.setResetConsentDate(_$$_REQUIRE(_dependencyMap[8]).DateUtils.getTomorrowString("YYYYMMDD")); + } + + if (Osano) { + yield Osano.clear(); + } + }); + + function clearConsent() { + return _clearConsent.apply(this, arguments); + } + + return clearConsent; + }() + }, { + key: "getTCConsentString", + value: function getTCConsentString() { + var _ref5; + + return (_ref5 = CmpUtils.consentStrings && CmpUtils.consentStrings.tc) != null ? _ref5 : ""; + } + }, { + key: "getUSPConsentString", + value: function getUSPConsentString() { + var _ref6; + + return (_ref6 = CmpUtils.consentStrings && CmpUtils.consentStrings.usp) != null ? _ref6 : ""; + } + }, { + key: "getGDPRScript", + value: function getGDPRScript() { + return "\n try {\n window['gtag_enable_tcf_support'] = true;\n } catch(e) {};"; + } + }, { + key: "addCMPScript", + value: function addCMPScript(html) { + var result = html; + + if (result) { + var script = CmpUtils.getCMPScript(); + + if (script) { + var replacement = " "; + result = _webUtils.default.prependToHead(html, replacement); + } + } + + return result; + } + }, { + key: "getCMPScript", + value: function getCMPScript() { + var script; + + if (CmpUtils.isGDPRComplianceRequired()) { + script = "\n " + CmpUtils.getGDPRScript() + "\n true;"; + } else if (CmpUtils.isUSComplianceRequired()) {} else if (CmpUtils.isLGPDComplianceRequired()) {} + + return script; + } + }]); + }(); + + CmpUtils.attUserChoice = ATT_VALUES.UNAVAILABLE; + CmpUtils.trackingConsent = undefined; + CmpUtils.advertisingTrackingConsent = undefined; + CmpUtils.consentStrings = undefined; + CmpUtils.googlePersonalizedAdsConsent = undefined; + CmpUtils.googleNonPersonalizedAdsConsent = undefined; + CmpUtils.consentNotNeeded = false; +},2010,[3,270,6,7,18,406,882,869,438,818,2002]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.WebTracker = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _excluded = ["pageLocation"]; + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var WebTracker = exports.WebTracker = function (_FirebaseBaseTracker) { + function WebTracker() { + var _this; + + (0, _classCallCheck2.default)(this, WebTracker); + _this = _callSuper(this, WebTracker, [_$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.FIREBASE_GA_WEB]); + _this.initialized = false; + _this.projects = []; + _this.cachedScreens = []; + _this.cachedEvents = []; + return _this; + } + + (0, _inherits2.default)(WebTracker, _FirebaseBaseTracker); + return (0, _createClass2.default)(WebTracker, [{ + key: "_mergeProjectsLists", + value: function _mergeProjectsLists() { + var listA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var listB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return listB.reduce(function (prev, instanceB) { + var found = listA.find(function (instanceA) { + return _$$_REQUIRE(_dependencyMap[11]).JSUtils.areEqualDeep(instanceA, instanceB, { + skipKeys: ["name"] + }); + }) !== undefined; + + if (!found) { + prev.push(instanceB); + } + + return prev; + }, (0, _toConsumableArray2.default)(listA)); + } + }, { + key: "_init", + value: function () { + var _init2 = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + + if (this._isCmpAllowed()) { + var _global$getMainPSetup = global.getMainPSetup(), + pSetup = _global$getMainPSetup.pSetup, + otherFirebaseProjects = _global$getMainPSetup.otherFirebaseProjects, + firebaseAnalyticsSendExternalId = _global$getMainPSetup.firebaseAnalyticsSendExternalId; + + var _global$getActivePSet = global.getActivePSetup(), + activePSetup = _global$getActivePSet.pSetup, + otherActiveFirebaseProjects = _global$getActivePSet.otherFirebaseProjects; + + var projects = otherFirebaseProjects; + + if (pSetup !== activePSetup && otherActiveFirebaseProjects.length > 0) { + projects = this._mergeProjectsLists(otherFirebaseProjects, otherActiveFirebaseProjects); + } + + if (force || !this.enabled || !_$$_REQUIRE(_dependencyMap[11]).JSUtils.equals(projects, this.projects)) { + this.enabled = projects.length > 0 && _optionalPackageUtils.default.isWebAnalyticsAvailable(); + + if (this.enabled) { + this.projects = projects; + + try { + var WebAnalytics = _optionalPackageUtils.default.getWebAnalytics(); + + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isNull(WebAnalytics)) { + this.enabled = false; + } else { + this.tracker = WebAnalytics(); + + if (firebaseAnalyticsSendExternalId) { + var extid = this._getExtId(); + + yield this.tracker.setUserId(extid); + } + + if (global.__DEV__) { + yield this.tracker.debugMode(true); + } + + this.tracker.initializeWebMode().then((0, _asyncToGenerator2.default)(function* () { + yield Promise.all(projects.map(function (instance) { + return _this2.tracker.addInstance(instance); + })); + _this2.initialized = true; + + if (_this2.cachedScreens.length > 0) { + _this2.cachedScreens.forEach(function (_ref2) { + var screenName = _ref2.screenName, + params = _ref2.params; + + _this2.trackScreen(screenName, params); + }); + + _this2.cachedScreens = []; + } + + if (_this2.cachedEvents.length > 0) { + _this2.cachedEvents.forEach(function (_ref3) { + var event = _ref3.event, + params = _ref3.params; + + _this2.trackEvent(event, params); + }); + + _this2.cachedEvents = []; + } + })); + } + } catch (e) {} + } + } + } + + return this; + }); + + function _init() { + return _init2.apply(this, arguments); + } + + return _init; + }() + }, { + key: "_trackScreen", + value: function _trackScreen(screenName) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!this._isValid()) { + return; + } + + if (!this.initialized) { + this.cachedScreens.push({ + screenName: screenName, + params: params + }); + return; + } + + var pageLocation = params.pageLocation, + rest = (0, _objectWithoutProperties2.default)(params, _excluded); + this.tracker.logScreenView(Object.assign({}, this._getCustomParams(), rest, { + firebase_screen: screenName, + firebase_screen_class: _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() ? "SplashActivity" : "ReactViewController" + })); + this.tracker.logPageView(Object.assign({}, this._getCustomParams(), rest, { + page_title: screenName, + page_location: pageLocation + })); + } + }, { + key: "_trackEvent", + value: function _trackEvent(event, params) { + if (!this._isParamsValid(params)) { + return; + } + + if (!this.initialized) { + this.cachedEvents.push({ + event: event, + params: params + }); + return; + } + + this.tracker.logEvent(event, Object.assign({}, this._getCustomParams(), params)); + } + }]); + }(_$$_REQUIRE(_dependencyMap[12]).FirebaseBaseTracker); +},2011,[3,4,270,22,6,7,11,13,14,882,2002,438,2004]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.RempTracker = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var RempTracker = exports.RempTracker = function (_Tracker) { + function RempTracker() { + var _this; + + (0, _classCallCheck2.default)(this, RempTracker); + _this = _callSuper(this, RempTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.REMP]); + _this.url = ""; + return _this; + } + + (0, _inherits2.default)(RempTracker, _Tracker); + return (0, _createClass2.default)(RempTracker, [{ + key: "_init", + value: function _init() { + var _global$getActivePSet = global.getActivePSetup(), + rempAccountURL = _global$getActivePSet.rempAccountURL; + + this.enabled = !!rempAccountURL && this._isCmpAllowed(); + this.url = rempAccountURL; + return this; + } + }, { + key: "_trackScreen", + value: function () { + var _trackScreen2 = (0, _asyncToGenerator2.default)(function* (rParam) { + if (!this._isValid()) { + return; + } + + if (!rParam) { + return; + } + + try { + yield _Api.default.remp(this.url, { + r: rParam + }); + } catch (e) {} + }); + + function _trackScreen(_x) { + return _trackScreen2.apply(this, arguments); + } + + return _trackScreen; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[9]).Tracker); +},2012,[3,270,6,7,11,13,14,407,2002,2009]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MatherTracker = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var MatherTracker = exports.MatherTracker = function (_OptionalTracker) { + function MatherTracker() { + (0, _classCallCheck2.default)(this, MatherTracker); + return _callSuper(this, MatherTracker, [_$$_REQUIRE(_dependencyMap[7]).ANALYTICS_SERVICES.MATHER]); + } + + (0, _inherits2.default)(MatherTracker, _OptionalTracker); + return (0, _createClass2.default)(MatherTracker, [{ + key: "_init", + value: function _init() { + var _global$getActivePSet = global.getActivePSetup(), + matherAnalyticsEnabled = _global$getActivePSet.matherAnalyticsEnabled, + matherAnalyticsCustomerId = _global$getActivePSet.matherAnalyticsCustomerId, + matherAnalyticsSiteId = _global$getActivePSet.matherAnalyticsSiteId; + + this.enabled = matherAnalyticsEnabled && this._isCmpAllowed() && _optionalPackageUtils.default.isMatherAnalyticsAvailable(); + + if (this.enabled) { + var MatherAnalytics = _optionalPackageUtils.default.getMatherAnalytics(); + + if (MatherAnalytics) { + this.tracker = new MatherAnalytics(matherAnalyticsCustomerId, matherAnalyticsSiteId); + } else { + this.enabled = false; + } + } + + return this; + } + }, { + key: "_trackScreen", + value: function _trackScreen(params) { + if (!this._isParamsValid(params)) { + return; + } + + try { + var _this$tracker; + + (_this$tracker = this.tracker) == null ? undefined : _this$tracker.trackPageView(this._getPageView(params)); + } catch (e) {} + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + try { + var _this$tracker2; + + (_this$tracker2 = this.tracker) == null ? undefined : _this$tracker2.trackAction(this._getPageView(params)); + } catch (e) {} + } + }, { + key: "_getPageView", + value: function _getPageView() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var _global$getActivePSet2 = global.getActivePSetup(), + loginStatus = _global$getActivePSet2.loginStatus, + matherAnalyticsSendEmail = _global$getActivePSet2.matherAnalyticsSendEmail; + + var username = loginStatus.username, + extid = loginStatus.extid; + var screen = params.screen, + action = params.action, + edition = params.edition, + title = params.title, + section = params.section, + page = params.page, + type = params.type; + var pageView = { + appName: global.appName, + pageUrl: screen, + publication: edition, + section: section, + pageNumber: page + }; + + if (matherAnalyticsSendEmail && loginStatus.isLoggedIn()) { + pageView.email = username; + pageView.userId = { + user: extid, + loggedIn: true + }; + } + + if (action === _$$_REQUIRE(_dependencyMap[8]).analyticsScreenTypes.READ) { + pageView.pageType = "article"; + } else { + pageView.pageType = "page"; + } + + if (title) { + pageView.pageTitle = title; + } + + if (type) { + pageView.articleType = type; + } + + return pageView; + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).OptionalTracker); +},2013,[3,6,7,11,13,14,882,2002,2003,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MatomoTracker = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var MatomoTracker = exports.MatomoTracker = function (_OptionalTracker) { + function MatomoTracker() { + var _this; + + (0, _classCallCheck2.default)(this, MatomoTracker); + _this = _callSuper(this, MatomoTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.MATOMO]); + _this.dispatch = _this._dispatch.bind(_this); + return _this; + } + + (0, _inherits2.default)(MatomoTracker, _OptionalTracker); + return (0, _createClass2.default)(MatomoTracker, [{ + key: "_init", + value: function () { + var _init2 = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + var _global$getActivePSet = global.getActivePSetup(), + matomoEnabled = _global$getActivePSet.matomoEnabled, + matomoConfig = _global$getActivePSet.matomoConfig; + + this.enabled = matomoEnabled && matomoConfig && this._isCmpAllowed() && _optionalPackageUtils.default.isMatomoAvailable(); + + if (this.enabled) { + var ePaperSiteId = matomoConfig.ePaperSiteId, + rssSiteId = matomoConfig.rssSiteId, + baseURL = matomoConfig.baseURL, + dispatchInterval = matomoConfig.dispatchInterval, + visitCustomDimensions = matomoConfig.visitCustomDimensions; + var siteId = _LiveConfig.default.isRssSide() ? rssSiteId : ePaperSiteId; + + if (baseURL && siteId) { + var Matomo = _optionalPackageUtils.default.getMatomo(); + + this.tracker = Matomo; + + if (this._isTrackerAvailable()) { + this.tracker.initTracker(baseURL, siteId); + this.tracker.setDispatchInterval(dispatchInterval); + yield this.tracker.removeAllDimensions(); + + if (visitCustomDimensions) { + var dimensions = (0, _$$_REQUIRE(_dependencyMap[9]).parseCustomDimensionsString)(visitCustomDimensions); + Object.keys(dimensions).forEach(function (key) { + _this2.tracker.setCustomDimension(parseInt(key, 10), dimensions[key]); + }); + } + } else { + this.enabled = false; + } + } + } + + return this; + }); + + function _init() { + return _init2.apply(this, arguments); + } + + return _init; + }() + }, { + key: "_trackScreen", + value: function _trackScreen(params) { + if (!this._isValid()) { + return; + } + + try { + var _global$getActivePSet2 = global.getActivePSetup(), + matomoConfig = _global$getActivePSet2.matomoConfig; + + var customDimensions = matomoConfig.customDimensions; + var title = ""; + this.tracker.trackScreen(params.screen, title, (0, _$$_REQUIRE(_dependencyMap[9]).parseCustomDimensionsString)(customDimensions, params)); + } catch (e) {} + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + try { + var category = params.category, + action = params.action, + label = params.label; + this.tracker.trackEvent(category, action, label); + } catch (e) {} + } + }, { + key: "_dispatch", + value: function _dispatch() { + if (!this._isValid()) { + return; + } + + try { + this.tracker.dispatch(); + } catch (e) {} + } + }]); + }(_$$_REQUIRE(_dependencyMap[10]).OptionalTracker); +},2014,[3,270,6,7,11,13,14,1943,882,2002,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MatomoMasTracker = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var MatomoMasTracker = exports.MatomoMasTracker = function (_OptionalTracker) { + function MatomoMasTracker() { + (0, _classCallCheck2.default)(this, MatomoMasTracker); + return _callSuper(this, MatomoMasTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.MATOMO_MAS]); + } + + (0, _inherits2.default)(MatomoMasTracker, _OptionalTracker); + return (0, _createClass2.default)(MatomoMasTracker, [{ + key: "_init", + value: function _init() { + var _global$getActivePSet = global.getActivePSetup(), + matomoTrackerEnabled = _global$getActivePSet.matomoTrackerEnabled, + matomoTrackerConfig = _global$getActivePSet.matomoTrackerConfig; + + this.enabled = matomoTrackerEnabled && matomoTrackerConfig && this._isCmpAllowed() && _optionalPackageUtils.default.isMatomoTrackerAvailable(); + + if (this.enabled) { + var ePaperSiteId = matomoTrackerConfig.ePaperSiteId, + rssSiteId = matomoTrackerConfig.rssSiteId, + baseURL = matomoTrackerConfig.baseURL; + var siteId = _LiveConfig.default.isRssSide() ? rssSiteId : ePaperSiteId; + + if (baseURL && siteId) { + var MatomoTracker = _optionalPackageUtils.default.getMatomoTracker(); + + if (MatomoTracker) { + this.tracker = new MatomoTracker({ + urlBase: baseURL, + trackerUrl: baseURL, + siteId: siteId + }); + } else { + this.enabled = false; + } + } + } + + return this; + } + }, { + key: "_trackScreen", + value: function _trackScreen(params) { + if (!this._isParamsValid(params)) { + return; + } + + try { + var userInfo = this._getUserInfo(params); + + if (userInfo != null && userInfo.action_name) { + this.tracker.trackScreenView({ + name: userInfo.action_name, + userInfo: userInfo + }); + } + } catch (e) {} + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + try {} catch (e) {} + } + }, { + key: "_getUserInfo", + value: function _getUserInfo() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = params.action; + + var _global$getActivePSet2 = global.getActivePSetup(), + matomoTrackerConfig = _global$getActivePSet2.matomoTrackerConfig; + + if (!action || !matomoTrackerConfig) { + return {}; + } + + var titles = matomoTrackerConfig.titles, + customURLs = matomoTrackerConfig.customURLs, + customDimensions = matomoTrackerConfig.customDimensions; + + var title = this._replacePlaceHolder(titles[action], params); + + var url = this._replacePlaceHolder(customURLs[action], params); + + var customDimensionsObj = _$$_REQUIRE(_dependencyMap[9]).StringUtils.parseQuerystring(this._replacePlaceHolder(customDimensions[action], params, true)); + + return Object.assign({ + action_name: title, + url: url + }, customDimensionsObj, { + ua: _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.getUserAgent() + }); + } + }, { + key: "_replacePlaceHolder", + value: function _replacePlaceHolder(string, params) { + var encodeValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + if (!string) { + return ""; + } + + var _global$getActivePSet3 = global.getActivePSetup(), + matomoTrackerConfig = _global$getActivePSet3.matomoTrackerConfig; + + var edition = params.edition, + articlesource = params.articlesource; + var newString = (0, _$$_REQUIRE(_dependencyMap[8]).replaceCustomDimensionsPlaceholders)(string, params, encodeValue, function (name, paramValue) { + var _matomoTrackerConfig$, _matomoTrackerConfig$2, _customParamValue; + + var customParamValue; + + switch (name) { + case "actionBaseURL": + customParamValue = matomoTrackerConfig == null ? undefined : matomoTrackerConfig.actionBaseURL; + break; + + case "edition": + customParamValue = (_matomoTrackerConfig$ = matomoTrackerConfig == null ? undefined : (_matomoTrackerConfig$2 = matomoTrackerConfig.editionRemapping) == null ? undefined : _matomoTrackerConfig$2[edition]) != null ? _matomoTrackerConfig$ : edition; + break; + + case "pageInstance": + customParamValue = articlesource && _$$_REQUIRE(_dependencyMap[9]).StringUtils.getLastPathSegment(articlesource, "-"); + break; + + default: + break; + } + + return (_customParamValue = customParamValue) != null ? _customParamValue : paramValue; + }); + return newString; + } + }]); + }(_$$_REQUIRE(_dependencyMap[10]).OptionalTracker); +},2015,[3,6,7,11,13,14,1943,882,2002,438,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.AdmobileTracker = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var AdmobileTracker = exports.AdmobileTracker = function (_OptionalTracker) { + function AdmobileTracker() { + var _this; + + (0, _classCallCheck2.default)(this, AdmobileTracker); + _this = _callSuper(this, AdmobileTracker, [_$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.ADOBE]); + _this.config = null; + _this.adobeAnalyticsSendOnlyEditionLoad = false; + _this.firstScrolledSent = false; + _this.trackState = _this._trackState.bind(_this); + _this.trackAction = _this._trackAction.bind(_this); + _this.start = _this._start.bind(_this); + _this.pause = _this._pause.bind(_this); + _this.resetFirstScrolledSent = _this._resetFirstScrolledSent.bind(_this); + return _this; + } + + (0, _inherits2.default)(AdmobileTracker, _OptionalTracker); + return (0, _createClass2.default)(AdmobileTracker, [{ + key: "_init", + value: function _init() { + var _global$getActivePSet = global.getActivePSetup(), + adobeAnalyticsEnabled = _global$getActivePSet.adobeAnalyticsEnabled, + adobeAnalyticsConfig = _global$getActivePSet.adobeAnalyticsConfig; + + this.enabled = adobeAnalyticsEnabled && this._isCmpAllowed() && _optionalPackageUtils.default.isAdobeAnalyticsAvailable(); + + if (this.enabled) { + var _OptionalPackages$get = _optionalPackageUtils.default.getAdobeAnalytics(), + Analytics = _OptionalPackages$get.Analytics, + ADBMobileConfig = _OptionalPackages$get.ADBMobileConfig; + + this.tracker = Analytics; + + if (this._isTrackerAvailable() && !_$$_REQUIRE(_dependencyMap[11]).JSUtils.isNull(ADBMobileConfig)) { + this.config = ADBMobileConfig; + var sendOnlyEditionLoad = adobeAnalyticsConfig.sendOnlyEditionLoad; + this.sendOnlyEditionLoad = sendOnlyEditionLoad; + ADBMobileConfig.setDebugLogging(global.isDebug); + this.start(); + } else { + this.enabled = false; + } + } + + return this; + } + }, { + key: "_isValid", + value: function _isValid() { + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(AdmobileTracker.prototype), "_isValid", this).call(this)) { + return false; + } + + if (!this.config) { + return false; + } + + return true; + } + }, { + key: "_start", + value: function () { + var _start2 = (0, _asyncToGenerator2.default)(function* () { + if (!this._isValid()) { + return; + } + + var contextData = yield this.getContextData({ + action: _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.LAUNCH + }); + this.config.collectLifecycleData(contextData); + }); + + function _start() { + return _start2.apply(this, arguments); + } + + return _start; + }() + }, { + key: "_pause", + value: function _pause() { + if (!this._isValid()) { + return; + } + + this.config.pauseCollectingLifecycleData(); + } + }, { + key: "_trackScreen", + value: function _trackScreen(params) { + if (!this._isParamsValid(params)) { + return; + } + + var _global$getActivePSet2 = global.getActivePSetup(), + adobeAnalyticsConfig = _global$getActivePSet2.adobeAnalyticsConfig; + + if (!adobeAnalyticsConfig) { + return; + } + + var SCROLLED = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SCROLLED, + READ = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.READ, + ZOOM = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.ZOOM, + INDEX = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.INDEX, + SECTION_INDEX = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SECTION_INDEX, + OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.OPTIONSPAGE, + SHARE = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SHARE, + PAGE_CLICK = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.PAGE_CLICK, + ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.ARTICLE_CLICK; + + var action = params.action, + section = params.section; + + if (!(!this.sendOnlyEditionLoad || action === SCROLLED && !this.firstScrolledSent)) { + return; + } + + var scrolledStateName = adobeAnalyticsConfig.scrolledStateName, + readStateName = adobeAnalyticsConfig.readStateName, + zoomedStateName = adobeAnalyticsConfig.zoomedStateName, + indexStateName = adobeAnalyticsConfig.indexStateName, + optionspageStateName = adobeAnalyticsConfig.optionspageStateName; + var stateName; + + switch (action) { + case SCROLLED: + stateName = scrolledStateName; + this.firstScrolledSent = true; + break; + + case READ: + stateName = readStateName; + break; + + case ZOOM: + stateName = zoomedStateName; + break; + + case INDEX: + stateName = indexStateName; + + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(section)) { + params.section = indexStateName; + } + + break; + + case SECTION_INDEX: + stateName = indexStateName; + break; + + case OPTIONSPAGE: + stateName = optionspageStateName; + break; + } + + if (stateName) { + this.trackState(stateName, params); + } else if (action === SHARE) { + this.trackEvent(Object.assign({ + category: _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.SOCIAL_SHARE + }, params)); + } else if (action === PAGE_CLICK || action === ARTICLE_CLICK) { + this.trackEvent(Object.assign({ + category: _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.LINK_CLICKED + }, params)); + } + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + var _global$getActivePSet3 = global.getActivePSetup(), + adobeAnalyticsConfig = _global$getActivePSet3.adobeAnalyticsConfig; + + if (adobeAnalyticsConfig) { + var doubleTapActionName = adobeAnalyticsConfig.doubleTapActionName, + pinchOutActionName = adobeAnalyticsConfig.pinchOutActionName, + scrollZoomActionName = adobeAnalyticsConfig.scrollZoomActionName, + textToSpeechActionName = adobeAnalyticsConfig.textToSpeechActionName, + skipToEndActionName = adobeAnalyticsConfig.skipToEndActionName, + toggleToPrintActionName = adobeAnalyticsConfig.toggleToPrintActionName, + toggleToDigitalActionName = adobeAnalyticsConfig.toggleToDigitalActionName, + shareActionName = adobeAnalyticsConfig.shareActionName, + linkClickActionName = adobeAnalyticsConfig.linkClickActionName; + + var TTS = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.TTS, + DOUBLE_TAP_TO_ZOOM = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.DOUBLE_TAP_TO_ZOOM, + PINCH_TO_ZOOM = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.PINCH_TO_ZOOM, + SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.SCROLL_ZOOMED, + SKIP_TO_END = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.SKIP_TO_END, + TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.TOGGLE_TO_PRINT, + TOGGLE_TO_DIGITAL = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.TOGGLE_TO_DIGITAL, + SOCIAL_SHARE = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.SOCIAL_SHARE, + LINK_CLICKED = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.LINK_CLICKED; + + var ZOOM = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.ZOOM; + + var category = params.category, + action = params.action; + var actionName; + + switch (category) { + case DOUBLE_TAP_TO_ZOOM: + actionName = doubleTapActionName; + + if (!action) { + params.action = ZOOM; + } + + break; + + case PINCH_TO_ZOOM: + actionName = pinchOutActionName; + + if (!action) { + params.action = ZOOM; + } + + break; + + case SCROLL_ZOOMED: + actionName = scrollZoomActionName; + + if (!action) { + params.action = ZOOM; + } + + break; + + case TTS: + actionName = textToSpeechActionName; + + if (action) { + if (action === _events.default.TTS_ENGINE_STARTED) { + actionName = actionName + ".on"; + } else if (action === _events.default.TTS_ENGINE_STOPPED) { + actionName = actionName + ".off"; + } + } + + break; + + case SKIP_TO_END: + actionName = skipToEndActionName; + break; + + case TOGGLE_TO_PRINT: + actionName = toggleToPrintActionName; + break; + + case TOGGLE_TO_DIGITAL: + actionName = toggleToDigitalActionName; + break; + + case SOCIAL_SHARE: + actionName = shareActionName; + break; + + case LINK_CLICKED: + actionName = linkClickActionName; + break; + } + + if (actionName) { + this.trackAction(actionName, params); + } + } + } + }, { + key: "_resetFirstScrolledSent", + value: function _resetFirstScrolledSent() { + this.firstScrolledSent = false; + } + }, { + key: "getContextData", + value: function () { + var _getContextData = (0, _asyncToGenerator2.default)(function* () { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var contextData = {}; + var action = params.action, + category = params.category, + isFirstPage = params.isFirstPage, + isZoomed = params.isZoomed, + mode = params.mode; + + var SCROLLED = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SCROLLED, + READ = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.READ, + ZOOM = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.ZOOM, + INDEX = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.INDEX, + SECTION_INDEX = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SECTION_INDEX, + OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.OPTIONSPAGE, + SHARE = _$$_REQUIRE(_dependencyMap[12]).analyticsScreenTypes.SHARE; + + var TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[12]).analyticsEventTypes.TOGGLE_TO_PRINT; + + var _global$getActivePSet4 = global.getActivePSetup(), + adobeAnalyticsConfig = _global$getActivePSet4.adobeAnalyticsConfig, + loginStatus = _global$getActivePSet4.loginStatus; + + if (adobeAnalyticsConfig) { + var propsList = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseQuerystring(adobeAnalyticsConfig.propsList); + + var extraUserInfo = loginStatus ? yield loginStatus.getExtraUserInfo() : undefined; + + if (action === SHARE) { + params.socialPlatform = params.platform; + params.platform = undefined; + } + + var userTypeSubscriber = adobeAnalyticsConfig.userTypeSubscriber, + userTypeUnknown = adobeAnalyticsConfig.userTypeUnknown, + printMedium = adobeAnalyticsConfig.printMedium, + digitalMedium = adobeAnalyticsConfig.digitalMedium, + zoomedMediumSuffix = adobeAnalyticsConfig.zoomedMediumSuffix, + firstPageSectionPrefix = adobeAnalyticsConfig.firstPageSectionPrefix, + pageContentType = adobeAnalyticsConfig.pageContentType, + firstPageContentType = adobeAnalyticsConfig.firstPageContentType, + indexContentType = adobeAnalyticsConfig.indexContentType, + articleContentType = adobeAnalyticsConfig.articleContentType, + optionspageContentType = adobeAnalyticsConfig.optionspageContentType, + editionType = adobeAnalyticsConfig.editionType, + deviceType = adobeAnalyticsConfig.deviceType; + Object.keys(propsList).forEach(function (prop) { + if (propsList[prop]) { + contextData[prop] = (0, _$$_REQUIRE(_dependencyMap[10]).replaceCustomDimensionsPlaceholders)(propsList[prop], params, false, function (name, paramValue) { + var customParamValue = paramValue; + + switch (name) { + case "section": + if (isFirstPage && firstPageSectionPrefix) { + customParamValue = "" + firstPageSectionPrefix + customParamValue; + } + + break; + + case "deviceType": + customParamValue = deviceType; + break; + + case "userType": + customParamValue = userTypeUnknown; + var TAUID = loginStatus.TAUID; + + if (TAUID) { + customParamValue = userTypeSubscriber; + } + + break; + + case "medium": + if (action === SCROLLED || action === ZOOM || action === INDEX || action === SECTION_INDEX) { + customParamValue = printMedium; + + if ((action === ZOOM || action === SCROLLED && isZoomed) && zoomedMediumSuffix) { + customParamValue += zoomedMediumSuffix; + } + } else if (action === READ) { + customParamValue = digitalMedium; + + if (mode === _$$_REQUIRE(_dependencyMap[12]).NewsmemoryArticleModes.GRAPHIC) { + customParamValue = printMedium; + } + } else if (action !== OPTIONSPAGE) { + customParamValue = digitalMedium; + + if (category && category === TOGGLE_TO_PRINT) { + customParamValue = printMedium; + } + } + + break; + + case "contentType": + if (action === SCROLLED || action === ZOOM) { + customParamValue = isFirstPage ? firstPageContentType : pageContentType; + } else if (action === READ) { + customParamValue = articleContentType; + } else if (action === INDEX || action === SECTION_INDEX) { + customParamValue = indexContentType; + } else if (action === OPTIONSPAGE) { + customParamValue = optionspageContentType; + } + + break; + + case "editionType": + customParamValue = editionType; + break; + + default: + if (extraUserInfo && Object.keys(extraUserInfo).length > 0) { + var matches = name.match(/eu([0-9]+)/); + + if ((matches == null ? undefined : matches.length) > 1) { + var extraUserInfoId = matches[1]; + var extraUserInfoValue = extraUserInfo[extraUserInfoId]; + + if (extraUserInfoValue) { + customParamValue = extraUserInfoValue; + } + } + } + + break; + } + + return customParamValue; + }); + } + }); + } + + return contextData; + }); + + function getContextData() { + return _getContextData.apply(this, arguments); + } + + return getContextData; + }() + }, { + key: "_trackState", + value: function () { + var _trackState2 = (0, _asyncToGenerator2.default)(function* (state, params) { + if (!this._isParamsValid(params)) { + return; + } + + var data = yield this.getContextData(params); + this.tracker.trackState(state, data); + }); + + function _trackState(_x, _x2) { + return _trackState2.apply(this, arguments); + } + + return _trackState; + }() + }, { + key: "_trackAction", + value: function () { + var _trackAction2 = (0, _asyncToGenerator2.default)(function* (action, params) { + if (!this._isParamsValid(params)) { + return; + } + + var data = yield this.getContextData(params); + this.tracker.trackAction(action, data); + }); + + function _trackAction(_x3, _x4) { + return _trackAction2.apply(this, arguments); + } + + return _trackAction; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[13]).OptionalTracker); +},2016,[3,270,6,7,11,85,13,14,436,882,2002,438,2003,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FacebookTracker = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _excluded = ["event", "isFirstPage", "isZoomed", "remp"], + _excluded2 = ["type", "apptype"], + _excluded3 = ["category", "isFirstPage"]; + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FacebookTracker = exports.FacebookTracker = function (_OptionalTracker) { + function FacebookTracker() { + var _this; + + (0, _classCallCheck2.default)(this, FacebookTracker); + _this = _callSuper(this, FacebookTracker, [_$$_REQUIRE(_dependencyMap[9]).ANALYTICS_SERVICES.FACEBOOK]); + _this.config = null; + return _this; + } + + (0, _inherits2.default)(FacebookTracker, _OptionalTracker); + return (0, _createClass2.default)(FacebookTracker, [{ + key: "_init", + value: function _init() { + var _global$getMainPSetup = global.getMainPSetup(), + facebookAnalyticsEnabled = _global$getMainPSetup.facebookAnalyticsEnabled; + + this.enabled = facebookAnalyticsEnabled && global.facebookAppId && this._isCmpAllowed() && _optionalPackageUtils.default.isFacebookSDKAvailable(); + + if (this.enabled) { + var _OptionalPackages$get = _optionalPackageUtils.default.getFacebookSDK(), + Settings = _OptionalPackages$get.Settings, + AppEventsLogger = _OptionalPackages$get.AppEventsLogger; + + this.tracker = AppEventsLogger; + + if (this._isTrackerAvailable() || !_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(Settings)) { + this.config = Settings; + + if (global.isDebug) { + this.config.setAppID(global.facebookAppId); + } + + if (typeof Settings.setAutoLogAppEventsEnabled === "function") { + this.config.setAutoLogAppEventsEnabled(true); + } + + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS()) { + this.config.setAdvertiserTrackingEnabled(this._isCmpAdAllowed()); + } + + this.config.initializeSDK(); + } else { + this.enabled = false; + } + } + + return this; + } + }, { + key: "_isValid", + value: function _isValid() { + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(FacebookTracker.prototype), "_isValid", this).call(this)) { + return false; + } + + if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(this.config)) { + return false; + } + + return true; + } + }, { + key: "_trackScreen", + value: function _trackScreen(params) { + this.trackEvent(params); + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + var eventName; + var otherParams = {}; + + if (params.event) { + var event = params.event, + isFirstPage = params.isFirstPage, + isZoomed = params.isZoomed, + remp = params.remp, + rest = (0, _objectWithoutProperties2.default)(params, _excluded); + eventName = event; + otherParams = rest; + } else if (params.apptype === "rss") { + var type = params.type, + apptype = params.apptype, + _rest = (0, _objectWithoutProperties2.default)(params, _excluded2); + + eventName = type; + otherParams = Object.assign({}, _rest, { + appMode: apptype + }); + } else if (params.category) { + var category = params.category, + _isFirstPage = params.isFirstPage, + _rest2 = (0, _objectWithoutProperties2.default)(params, _excluded3); + + eventName = category; + otherParams = _rest2; + } + + if (eventName) { + this.tracker.logEvent(eventName, otherParams); + } + } + }]); + }(_$$_REQUIRE(_dependencyMap[11]).OptionalTracker); +},2017,[3,4,6,7,11,85,13,14,882,2002,438,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ComscoreTracker = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var ComscoreTracker = exports.ComscoreTracker = function (_OptionalTracker) { + function ComscoreTracker() { + var _this; + + (0, _classCallCheck2.default)(this, ComscoreTracker); + _this = _callSuper(this, ComscoreTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.COMSCORE]); + _this.onEnterForeground = _this._onEnterForeground.bind(_this); + _this.onExitForeground = _this._onExitForeground.bind(_this); + return _this; + } + + (0, _inherits2.default)(ComscoreTracker, _OptionalTracker); + return (0, _createClass2.default)(ComscoreTracker, [{ + key: "_init", + value: function () { + var _init2 = (0, _asyncToGenerator2.default)(function* () { + var _global$getActivePSet = global.getActivePSetup(), + comScoreId = _global$getActivePSet.comScoreId, + comScorePublisherSecret = _global$getActivePSet.comScorePublisherSecret, + comScoreAppName = _global$getActivePSet.comScoreAppName; + + this.enabled = comScoreId && comScorePublisherSecret && this._isCmpAllowed() && _optionalPackageUtils.default.isComScoreAvailable(); + + if (this.enabled) { + this.tracker = _optionalPackageUtils.default.getComscore(); + + if (this._isTrackerAvailable()) { + yield this.tracker.startup({ + comScoreId: comScoreId, + comScorePublisherSecret: comScorePublisherSecret, + comScoreAppName: comScoreAppName, + persistentLabels: {} + }); + } else { + this.enabled = false; + } + } + + return this; + }); + + function _init() { + return _init2.apply(this, arguments); + } + + return _init; + }() + }, { + key: "_onEnterForeground", + value: function _onEnterForeground() { + var _this$tracker; + + if (!this._isValid()) { + return; + } + + (_this$tracker = this.tracker) == null ? undefined : _this$tracker.onEnterForeground(); + } + }, { + key: "_onExitForeground", + value: function _onExitForeground() { + var _this$tracker2; + + if (!this._isValid()) { + return; + } + + (_this$tracker2 = this.tracker) == null ? undefined : _this$tracker2.onExitForeground(); + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).OptionalTracker); +},2018,[3,270,6,7,11,13,14,882,2002,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ChartbeatTracker = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _excluded = ["screen"]; + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var ChartbeatTracker = exports.ChartbeatTracker = function (_OptionalTracker) { + function ChartbeatTracker() { + var _this; + + (0, _classCallCheck2.default)(this, ChartbeatTracker); + _this = _callSuper(this, ChartbeatTracker, [_$$_REQUIRE(_dependencyMap[10]).ANALYTICS_SERVICES.CHARTBEAT]); + _this.onEnterForeground = _this._onEnterForeground.bind(_this); + _this.onExitForeground = _this._onExitForeground.bind(_this); + return _this; + } + + (0, _inherits2.default)(ChartbeatTracker, _OptionalTracker); + return (0, _createClass2.default)(ChartbeatTracker, [{ + key: "_init", + value: function _init() { + var _this2 = this; + + var _global$getActivePSet = global.getActivePSetup(), + chartbeatConfig = _global$getActivePSet.chartbeatConfig; + + var accountId = chartbeatConfig.accountId, + domain = chartbeatConfig.domain; + this.enabled = accountId && domain && this._isCmpAllowed() && _optionalPackageUtils.default.isChartBeatAvailable(); + + if (this.enabled) { + this.tracker = _optionalPackageUtils.default.getChartBeat(); + + if (this._isTrackerAvailable()) { + this.tracker.setupTracker(accountId, domain); + + _$$_REQUIRE(_dependencyMap[11]).EventRegister.addEventListener(_events.default.ON_USER_INTERACT, function () { + if (!_this2.enabled) { + return; + } + + _this2.tracker.userInteracted(); + }); + } else { + this.enabled = false; + } + } + + return this; + } + }, { + key: "_trackScreen", + value: function _trackScreen(_ref) { + var screen = _ref.screen, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + + if (!this._isValid()) { + return; + } + + var _global$getActivePSet2 = global.getActivePSetup(), + chartbeatConfig = _global$getActivePSet2.chartbeatConfig; + + var rssEnabled = chartbeatConfig.rssEnabled, + epaperEnabled = chartbeatConfig.epaperEnabled; + + if (_LiveConfig.default.isRssSide() && rssEnabled) { + this._trackView(screen, rest, chartbeatConfig.rssScreenKey, chartbeatConfig.rssTitleKeys, chartbeatConfig.authorRssProperties, chartbeatConfig.sectionRssProperties, chartbeatConfig.rssCustomData); + } else if (!_LiveConfig.default.isRssSide() && epaperEnabled) { + this._trackView(screen, rest, chartbeatConfig.epaperScreenKey, chartbeatConfig.epaperTitleKeys, chartbeatConfig.authorEpaperProperties, chartbeatConfig.sectionEpaperProperties, chartbeatConfig.epaperCustomData); + } + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) {} + }, { + key: "_trackView", + value: function _trackView() { + var screen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + var params = arguments.length > 1 ? arguments[1] : undefined; + var screenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; + var titleKeys = arguments.length > 3 ? arguments[3] : undefined; + var authorProperties = arguments.length > 4 ? arguments[4] : undefined; + var sectionProperties = arguments.length > 5 ? arguments[5] : undefined; + var customData = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ""; + + try { + var _Object$keys$find, _params$foundKey; + + var screenId = screen; + + if (screenKey) { + screenId = Object.keys(params).reduce(function (result, key) { + return result.replace("#" + key + "#", params[key]); + }, screenKey).replace(/#.*?#/g, ""); + } + + var hasLetterOrNumber = /[a-zA-Z0-9]/.test(screenId); + + if (!hasLetterOrNumber) { + screenId = screen; + } + + var customDataParams = {}; + + if (customData) { + var queryString = (0, _$$_REQUIRE(_dependencyMap[10]).replaceCustomDimensionsPlaceholders)(customData, params); + customDataParams = _$$_REQUIRE(_dependencyMap[12]).StringUtils.parseQuerystring(queryString); + } + + if (!screenId) { + return; + } + + var foundKey = (_Object$keys$find = Object.keys(params).find(function (key) { + return titleKeys.includes(key); + })) != null ? _Object$keys$find : ""; + var title = (_params$foundKey = params[foundKey]) != null ? _params$foundKey : ""; + var sections = sectionProperties.map(function (key) { + return params[key]; + }).filter(function (section) { + return section; + }); + var authors = authorProperties.map(function (key) { + return params[key]; + }).filter(function (author) { + return author; + }); + this._lastScreenTracked = { + viewId: screenId, + title: title, + sections: sections, + authors: authors, + customData: customDataParams + }; + + this._track(this._lastScreenTracked); + } catch (e) {} + } + }, { + key: "_track", + value: function _track(trackParams) { + if (!trackParams) { + return; + } + + var viewId = trackParams.viewId, + title = trackParams.title, + sections = trackParams.sections, + authors = trackParams.authors, + customData = trackParams.customData; + this.tracker.trackView(viewId, title); + + if (!_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(customData)) { + this.tracker.setCustomData(customData); + } + + this.tracker.setSections(sections); + this.tracker.setAuthors(authors); + } + }, { + key: "_onEnterForeground", + value: function _onEnterForeground() { + if (!this._isValid()) { + return; + } + + this._track(this._lastScreenTracked); + } + }, { + key: "_onExitForeground", + value: function _onExitForeground() { + var _this$_lastScreenTrac; + + if (!this._isValid()) { + return; + } + + if (!((_this$_lastScreenTrac = this._lastScreenTracked) != null && _this$_lastScreenTrac.viewId)) { + return; + } + + this.tracker.userLeftView(this._lastScreenTracked.viewId); + } + }]); + }(_$$_REQUIRE(_dependencyMap[13]).OptionalTracker); +},2019,[3,4,6,7,11,13,14,1943,436,882,2002,564,438,2008]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.BlueconicTracker = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _excluded = ["category", "action", "label"]; + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var BlueconicTracker = exports.BlueconicTracker = function (_OptionalTracker) { + function BlueconicTracker() { + (0, _classCallCheck2.default)(this, BlueconicTracker); + return _callSuper(this, BlueconicTracker, [_$$_REQUIRE(_dependencyMap[8]).ANALYTICS_SERVICES.BLUECONIC]); + } + + (0, _inherits2.default)(BlueconicTracker, _OptionalTracker); + return (0, _createClass2.default)(BlueconicTracker, [{ + key: "_init", + value: function _init() { + var _global$getMainPSetup = global.getMainPSetup(), + blueConicEnabled = _global$getMainPSetup.blueConicEnabled, + blueConicConfig = _global$getMainPSetup.blueConicConfig; + + this.enabled = blueConicEnabled && blueConicConfig && this._isCmpAllowed() && _optionalPackageUtils.default.isBlueConicAvailable(); + + if (this.enabled) { + this.tracker = _optionalPackageUtils.default.getBlueConic(); + + if (this._isTrackerAvailable()) { + this._setBlueConicUserProfileProperties(); + } else { + this.enabled = false; + } + } + + return this; + } + }, { + key: "_trackScreen", + value: function _trackScreen() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + if (!this._isValid()) { + return; + } + + this._setBlueConicViewProfileProperties(params); + + this.tracker.registerPageView(params.screen); + } + }, { + key: "_trackEvent", + value: function _trackEvent(params) { + if (!this._isParamsValid(params)) { + return; + } + + var category = params.category, + action = params.action, + label = params.label, + rest = (0, _objectWithoutProperties2.default)(params, _excluded); + + var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[9]).analyticsEventTypes.SCROLL_ZOOMED; + + if (category === SCROLL_ZOOMED) { + var screen = (0, _$$_REQUIRE(_dependencyMap[8]).getScreenString)(Object.assign({ + type: action + }, rest)); + this.trackScreen(Object.assign({ + screen: screen, + action: action + }, rest)); + } else { + this._setBlueConicViewProfileProperties(params); + + var values = []; + + if (action) { + values.push(action); + } + + if (label) { + values.push(label); + } + + this.tracker.registerAdvancedEvent(category, values); + } + } + }, { + key: "_blueConicCustomReplacement", + value: function _blueConicCustomReplacement(name, paramValue, params) { + if (name === "action") { + if (params.screen) { + var SCROLLED = _$$_REQUIRE(_dependencyMap[9]).analyticsScreenTypes.SCROLLED, + RSS_DRAWER = _$$_REQUIRE(_dependencyMap[9]).analyticsScreenTypes.RSS_DRAWER, + RSS_ARTICLE_READ = _$$_REQUIRE(_dependencyMap[9]).analyticsScreenTypes.RSS_ARTICLE_READ; + + var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[9]).analyticsEventTypes.SCROLL_ZOOMED; + + switch (paramValue) { + case SCROLLED: + return "Scroll"; + + case SCROLL_ZOOMED: + return "Zoom"; + + case RSS_DRAWER: + return "Category"; + + case RSS_ARTICLE_READ: + return "Read"; + + default: + return paramValue.charAt(0).toUpperCase() + paramValue.slice(1); + } + } + + return ""; + } + + return paramValue; + } + }, { + key: "_setBlueConicUserProfileProperties", + value: function _setBlueConicUserProfileProperties() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + if (!this.enabled) { + return; + } + + var _global$getMainPSetup2 = global.getMainPSetup(), + blueConicConfig = _global$getMainPSetup2.blueConicConfig; + + var userProfileProperties = blueConicConfig.userProfileProperties; + + this._setBlueConicProfileProperties(userProfileProperties, params); + } + }, { + key: "_setBlueConicViewProfileProperties", + value: function _setBlueConicViewProfileProperties(params) { + if (!this.enabled) { + return; + } + + var _global$getMainPSetup3 = global.getMainPSetup(), + blueConicConfig = _global$getMainPSetup3.blueConicConfig; + + var viewProfileProperties = blueConicConfig.viewProfileProperties; + + this._setBlueConicProfileProperties(viewProfileProperties, params); + } + }, { + key: "_setBlueConicProfileProperties", + value: function _setBlueConicProfileProperties(profilePropertiesString) { + var _this = this; + + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!this.enabled || !profilePropertiesString) { + return; + } + + var viewProfileProperties = _$$_REQUIRE(_dependencyMap[10]).StringUtils.parseQuerystring((0, _$$_REQUIRE(_dependencyMap[8]).replaceCustomDimensionsPlaceholders)(profilePropertiesString, params, true, this._blueConicCustomReplacement)); + + Object.keys(viewProfileProperties).forEach(function (key) { + var value = viewProfileProperties[key]; + + if (value) { + _this.tracker.setProfileValue(key, value); + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[11]).OptionalTracker); +},2020,[3,4,6,7,11,13,14,882,2002,2003,438,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263502,7 +258635,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2038,[3,6,7,11,13,14,582,16,18,1881,436,1915,434,2039,866,564,2040,2033,438,2028,2044,179,2052,2055,1087]); +},2021,[3,6,7,11,13,14,582,16,18,1870,436,2010,434,2022,869,564,2023,1993,438,1988,2027,179,2035,2039,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263523,8 +258656,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _sdkUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var IOSExternalLinkAccount = _optionalPackageUtils.default.getIOSExternalLinkAccountAPI(); - var TecnaviaPlatformUtils = exports.default = function () { function TecnaviaPlatformUtils() { (0, _classCallCheck2.default)(this, TecnaviaPlatformUtils); @@ -263568,6 +258699,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getMainPSetup2 = global.getMainPSetup(), disableReaderAppModal = _global$getMainPSetup2.disableReaderAppModal; + var IOSExternalLinkAccount = _optionalPackageUtils.default.getIOSExternalLinkAccountAPI(); + if (IOSExternalLinkAccount && !disableReaderAppModal && TecnaviaPlatformUtils.externalLinkAccountCheck(url)) { yield IOSExternalLinkAccount.isExternalLinkAccountAllowed(url, TecnaviaPlatformUtils.getFallbackConfig()); return true; @@ -263588,6 +258721,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getMainPSetup3 = global.getMainPSetup(), disableReaderAppModal = _global$getMainPSetup3.disableReaderAppModal; + var IOSExternalLinkAccount = _optionalPackageUtils.default.getIOSExternalLinkAccountAPI(); + if (IOSExternalLinkAccount && !disableReaderAppModal && TecnaviaPlatformUtils.externalLinkAccountCheck(url)) { IOSExternalLinkAccount.isExternalLinkAccountAllowedSync(url, TecnaviaPlatformUtils.getFallbackConfig()); return true; @@ -263642,7 +258777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2039,[3,270,6,7,18,434,879,1912,812,438,1976]); +},2022,[3,270,6,7,18,434,882,2000,815,438,1934]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263731,7 +258866,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebViewProgress.defaultProps = { loadingPosition: LoadingStatePosition.center }; -},2040,[3,582,16,18,2041,179]); +},2023,[3,582,16,18,2024,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263746,7 +258881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2041,[2042]); +},2024,[2025]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263886,7 +259021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e advanced: false, hidden: false }; -},2042,[3,6,7,11,13,14,16,18,582,2043,179,1969]); +},2025,[3,6,7,11,13,14,16,18,582,2026,179,1927]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -263914,7 +259049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2043,[18,438]); +},2026,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -264211,7 +259346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } catch (e) {} } -},2044,[3,270,2045,1934,2049,2026,879,2039,1881,2051,1976,2048,2028,1087,878]); +},2027,[3,270,2028,1892,2032,1986,882,2022,1870,2034,1934,2031,1988,1090,881]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -264821,7 +259956,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssContentHelper.ERROR = -1; RssContentHelper.NO_NEW_ITEMS_AVAILABLE = 0; RssContentHelper.NEW_ITEMS_AVAILABLE = 1; -},2045,[3,270,6,7,2046,2047,586,566,1945,436,1983,1985,564,438,2048]); +},2028,[3,270,6,7,2029,2030,586,566,1903,436,1941,1945,564,438,2031]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265262,7 +260397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e version: 29400, queries: ["CREATE TABLE IF NOT EXISTS resource ( re_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, re_typeId INTEGER NOT NULL, re_value TEXT NOT NULL );", "CREATE TABLE IF NOT EXISTS resource_rel ( rr_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, rr_feedId INTEGER NOT NULL, rr_resourceId INTEGER NOT NULL );", "CREATE TABLE IF NOT EXISTS resource_type ( rt_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, rt_name VARCHAR(255) );"] }]; -},2046,[3,270,6,7,859,566,438,2033]); +},2029,[3,270,6,7,862,566,438,1993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265292,7 +260427,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _getJsonDbUpdate.apply(this, arguments); } -},2047,[3,270,408]); +},2030,[3,270,408]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265497,7 +260632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},2048,[3,4,1906,2028,1909,438,1910]); +},2031,[3,4,2002,1988,2003,438,1998]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265516,11 +260651,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _PaywallAJAX = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - var _PaywallAJAX = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - - var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); var _excluded = ["user"]; @@ -265587,7 +260720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Paywall.registerToConnectivityChangeEvent(); Paywall.firstProductsLeftPopupShown = yield Paywall.isFirstProductsLeftPopupAlreadyShown(); - if (_$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isOnline()) { + if (_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { var result = yield Paywall.downloadConfiguration(); if (Paywall.initialize) { @@ -265660,9 +260793,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "registerToConnectivityChangeEvent", value: function registerToConnectivityChangeEvent() { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.rm(Paywall.onConnectivityChange); + _$$_REQUIRE(_dependencyMap[10]).EventRegister.rm(Paywall.onConnectivityChange); - Paywall.onConnectivityChange = _$$_REQUIRE(_dependencyMap[11]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, function (_ref) { + Paywall.onConnectivityChange = _$$_REQUIRE(_dependencyMap[10]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, function (_ref) { var online = _ref.online; if (online) { @@ -265670,26 +260803,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); } - }, { - key: "registerToNewsMemoryEvents", - value: function registerToNewsMemoryEvents() { - var _Paywall$loginListene, _Paywall$logoutListen; - - (_Paywall$loginListene = Paywall.loginListener) == null ? undefined : _Paywall$loginListene.remove(); - (_Paywall$logoutListen = Paywall.logoutListener) == null ? undefined : _Paywall$logoutListen.remove(); - - var IOSClassicEPaper = _optionalPackageUtils.default.getIOSClassicEPaper(); - - if (IOSClassicEPaper) { - Paywall.loginListener = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_LOGIN, function () { - _PaywallLoginStatus.default.getUserStatus().then(function (status) { - _PaywallLoginStatus.default.userStatus = status; - Paywall.autoLogin(); - }); - }); - Paywall.logoutListener = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_LOGOUT, Paywall.logout); - } - } }, { key: "downloadConfiguration", value: function () { @@ -265736,7 +260849,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e default_product_type = _Paywall$config2.default_product_type, products_rules = _Paywall$config2.products_rules; - if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(products_rules == null ? undefined : products_rules.rules)) { + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isEmpty(products_rules == null ? undefined : products_rules.rules)) { return default_product_type; } @@ -265823,8 +260936,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e attachPaywallToArticle = _global$getRssIndex.attachPaywallToArticle; if (Paywall.shouldShowHardPaywall() && !attachPaywallToArticle) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[12]).tabs.account, + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, forceFullscreen: true }); } else {} @@ -265833,7 +260946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (Paywall.isAlreadyAccessed(ACI)) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { ACI: ACI, validated: true }); @@ -265847,12 +260960,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } - if (_$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isOnline()) { + if (_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { try { var outcome = yield _PaywallAJAX.default.validate(ACI, productType); return Paywall.handleValidationSuccess(ACI, outcome, showPopups); } catch (e) { - if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[13]).serverStatusCodes.SESSION_EXPIRED) { + if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[12]).serverStatusCodes.SESSION_EXPIRED) { var sessionResult = yield Paywall.handleSessionExpired(); if (sessionResult) { @@ -265871,8 +260984,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var productsLeft = yield Paywall.getLastProductsLeft(); - if (productsLeft && (productsLeft === _$$_REQUIRE(_dependencyMap[13]).UNLIMITED_ACCESS || productsLeft >= 0)) { - if (productsLeft !== _$$_REQUIRE(_dependencyMap[13]).UNLIMITED_ACCESS) { + if (productsLeft && (productsLeft === _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS || productsLeft >= 0)) { + if (productsLeft !== _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS) { Paywall.setLastProductsLeft(parseInt(productsLeft, 10) - 1); } @@ -265880,14 +260993,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _PaywallHelper.default.setOfflineProductsList(Paywall.offlineAccessedProductsList); - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { ACI: ACI, validated: true }); } else { Paywall.showOfflineDialog(true); - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_GO_BACK_HOME); + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_GO_BACK_HOME); } return true; @@ -265914,7 +261027,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e show_paywall = _Paywall$config3.show_paywall; Paywall.setLastProductsLeft(productsLeft); - if (productsLeft === _$$_REQUIRE(_dependencyMap[13]).UNLIMITED_ACCESS) {} else if (productsLeft >= 0) { + if (productsLeft === _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS) {} else if (productsLeft >= 0) { var min_threshold = Paywall.config.min_threshold; if (productType && Paywall.config[productType] && Paywall.config[productType].min_threshold !== undefined) { @@ -265934,7 +261047,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } (_Paywall$containerIns = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns.showPopup({ - type: _$$_REQUIRE(_dependencyMap[13]).popupTypes.productsLeft, + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.productsLeft, productsLeft: productsLeft, ACI: ACI }); @@ -265942,14 +261055,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { if (showPopups && show_paywall == 1) { if (Paywall.needToAppendPaywallPopup(ACI)) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_OPEN_POPUP, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_OPEN_POPUP, { forceAutoLogin: Paywall.forceAutoLogin }); } else { var _Paywall$containerIns2; (_Paywall$containerIns2 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns2.showPopup({ - type: _$$_REQUIRE(_dependencyMap[13]).popupTypes.blocking, + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.blocking, ACI: ACI, forceAutoLogin: Paywall.forceAutoLogin }); @@ -265962,7 +261075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (hasAccess) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { ACI: ACI, validated: true }); @@ -266001,7 +261114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var outcome = yield _PaywallAJAX.default.validateUser(); Paywall.handleUserValidationSuccess(outcome); } catch (e) { - if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[13]).serverStatusCodes.SESSION_EXPIRED) { + if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[12]).serverStatusCodes.SESSION_EXPIRED) { var sessionResult = yield Paywall.handleSessionExpired(); if (sessionResult) { @@ -266025,7 +261138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (!isLogged) { if (!Paywall.autoLogin()) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); Paywall.handleLogoutSuccess(); } @@ -266066,7 +261179,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Paywall.validate(ACI).then(validationCallback); } - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { hideAds: _PaywallLoginStatus.default.isAdFree() }); } @@ -266081,12 +261194,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var outcome = yield _PaywallAJAX.default.logout(); if (manual) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); } result = Paywall.handleLogoutSuccess(outcome, ACI, manual); } catch (e) { - if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[13]).serverStatusCodes.SESSION_EXPIRED) { + if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[12]).serverStatusCodes.SESSION_EXPIRED) { var sessionResult = yield Paywall.handleSessionExpired(); if (sessionResult) { @@ -266112,7 +261225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Paywall.updateAccountLabel(); - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { hideAds: false }); @@ -266150,7 +261263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e userNotLoggedText = messages.userNotLoggedText; var caption = loggedIn ? userLoggedInText : userNotLoggedText; - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.PAYWALL_USER_STATUS_UPDATE, { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_USER_STATUS_UPDATE, { loggedIn: loggedIn, caption: caption }); @@ -266183,7 +261296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (token) {} else {} (_Paywall$containerIns3 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns3.showPopup({ - type: _$$_REQUIRE(_dependencyMap[13]).popupTypes.login, + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.login, isInvisible: true, forceAutoLogin: true }); @@ -266204,7 +261317,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (productsList) { var filteredProductsList = productsList.filter(function (product) { - return product.addTime + _$$_REQUIRE(_dependencyMap[13]).accessedProductsDuration >= Date.now(); + return product.addTime + _$$_REQUIRE(_dependencyMap[12]).accessedProductsDuration >= Date.now(); }); if (filteredProductsList.length < productsList.length) { @@ -266295,7 +261408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "account", value: function account() { - if (!_$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isOnline()) { + if (!_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { Paywall.showOfflineDialog(); return; } @@ -266303,7 +261416,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (Paywall.initialize) { var _Paywall$containerIns4; - var type = _PaywallLoginStatus.default.isUserLoggedIn() ? _$$_REQUIRE(_dependencyMap[13]).popupTypes.account : _$$_REQUIRE(_dependencyMap[13]).popupTypes.login; + var type = _PaywallLoginStatus.default.isUserLoggedIn() ? _$$_REQUIRE(_dependencyMap[12]).popupTypes.account : _$$_REQUIRE(_dependencyMap[12]).popupTypes.login; (_Paywall$containerIns4 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns4.showPopup({ type: type }); @@ -266312,8 +261425,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e mustLoginToViewArticle = _global$getRssIndex2.mustLoginToViewArticle; if (mustLoginToViewArticle) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[12]).tabs.account, + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, forceFullscreen: true }); } else {} @@ -266325,7 +261438,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Paywall$containerIns5; (_Paywall$containerIns5 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns5.showPopup({ - type: _$$_REQUIRE(_dependencyMap[13]).popupTypes.welcome + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.welcome }); Paywall.setWelcomePopupAlreadyShown(); } @@ -266359,7 +261472,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }]; var message = validate ? global.strings("paywall_offline_warning") : global.strings("err_offline"); - _$$_REQUIRE(_dependencyMap[14]).CustomAlert.alert("", message, buttons, { + _$$_REQUIRE(_dependencyMap[13]).CustomAlert.alert("", message, buttons, { cancelable: false }); } @@ -266492,7 +261605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Paywall.offlineAccessedProductsList = []; Paywall.firstProductsLeftPopupShown = false; Paywall.forceAutoLogin = true; -},2049,[3,4,270,6,7,1919,436,879,2050,1918,438,564,878,1920,812]); +},2032,[3,4,270,6,7,2006,436,2033,2005,438,564,881,2007,815]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266894,7 +262007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2050,[3,270,6,7,11,13,14,61,408,434,1918,1920,438,555]); +},2033,[3,270,6,7,11,13,14,61,408,434,2005,2007,438,555]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266956,7 +262069,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2051,[3,6,7,270,812,438]); +},2034,[3,6,7,270,815,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266967,9 +262080,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); var _excluded = ["defaultHeight", "disableStartAutoHeightEvaluation", "htmlContentId", "source", "style", "onLoadStart", "onHeightChange", "onMessage", "webviewRef", "innerRef"]; @@ -267011,7 +262124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _recheckContentHeight = function _recheckContentHeight() { - _injectJavaScript("(" + _$$_REQUIRE(_dependencyMap[5]).checkContentHeight + ")(\"" + htmlContentId + "\", true);"); + _injectJavaScript((0, _$$_REQUIRE(_dependencyMap[5]).launchContentHeightCheck)(htmlContentId, true)); }; var _startAutoHeightEvaluation = function _startAutoHeightEvaluation() { @@ -267019,9 +262132,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _log("start auto height evaluation"); initialHeightEvaluationCompleted.current = true; - var js = "(" + _$$_REQUIRE(_dependencyMap[5]).checkContentHeight + ")(\"" + htmlContentId + "\");"; - _injectJavaScript(js); + _injectJavaScript((0, _$$_REQUIRE(_dependencyMap[5]).launchContentHeightCheck)(htmlContentId)); } else { _log("auto height evaluation already performed"); @@ -267054,6 +262166,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, []); var _onLoadStart = (0, _react.useCallback)(function () { + initialHeightEvaluationCompleted.current = false; + if (!disableAutoStartHeightEvaluation) { _startAutoHeightEvaluation(); } @@ -267136,14 +262250,195 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e htmlContentId: "", disableStartAutoHeightEvaluation: false }; -},2052,[3,33,4,16,582,2053,2054,179,2055]); +},2035,[3,33,4,582,16,2036,2038,179,2039]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.checkContentHeight = undefined; + exports.launchContentHeightCheck = exports.getFontSizeChangeListenerScript = exports.checkContentHeight = undefined; var checkContentHeight = exports.checkContentHeight = "\n function (id, oneShot) {\n if(oneShot === undefined){\n oneShot = false;\n }\n var MILLS_TO_CHECK = 500;\n var STEP_CHECK_COUNTER = 40;\n var step = 1;\n var counter = 0;\n var oldHeight = 0;\n var getHeight = function(param) {\n var currentHeight = 0;\n try {\n var element; \n if (param) { \n element = document.getElementById(param); \n } \n if (!element) {\n element = document.body;\n }\n currentHeight = Math.max(element.scrollHeight, element.offsetHeight, element.clientHeight);\n console.log(param+' - '+currentHeight);\n } catch (e) {}\n return currentHeight;\n };\n var sendHeight = function(height) {\n try {\n if (window.ReactNativeWebView) {\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: height, type: 'HEIGHT' }));\n return true;\n }\n } catch (e) {}\n\n return false;\n };\n var checkHeight = function(param) {\n var newHeight = getHeight(param);\n if (oneShot) {\n sendHeight(newHeight);\n } else {\n counter += 1;\n if (oldHeight !== newHeight) {\n var success = sendHeight(newHeight);\n if (success) {\n oldHeight = newHeight;\n }\n \n step = 1;\n counter = 0;\n } else if (counter > STEP_CHECK_COUNTER) {\n step += 1;\n counter = 0;\n }\n setTimeout(function() {checkHeight(param);}, MILLS_TO_CHECK * step);\n }\n };\n checkHeight(id);\n }\n"; -},2053,[]); + + var launchContentHeightCheck = exports.launchContentHeightCheck = function launchContentHeightCheck(elementId) { + var oneShot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + return "\n (" + checkContentHeight + ")(\"" + elementId + "\", " + oneShot + ");"; + }; + + var getFontSizeChangeListenerScript = exports.getFontSizeChangeListenerScript = function getFontSizeChangeListenerScript(elementId) { + var js = (0, _$$_REQUIRE(_dependencyMap[0]).setFontSizeMutationObserver)(elementId, launchContentHeightCheck(elementId, true)); + js += (0, _$$_REQUIRE(_dependencyMap[0]).updateWebviewFontSizeScript)(elementId); + return js; + }; +},2036,[2037]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.updateWebviewFontSizeScript = exports.truncateScript = exports.showNativeAd = exports.showImageOptions = exports.showAdMarkerText = exports.setFontSizeMutationObserver = exports.scrollpageToContinue = exports.saveImages = exports.saveImage = exports.retrievePositionIdAtOffset = exports.retrieveOffsetByPositionId = exports.retrieveInnerText = exports.retrieveImage = exports.retrieveAdPlaceholders = exports.replaceImgSrcWithBase64 = exports.removeWebAdsFromString = exports.openGallery = exports.onLoadFunctions = exports.movePageJumps = exports.moveImages = exports.hideNativeAd = exports.hideAdMarkerText = exports.handleImageError = exports.getJumpId = exports.getHrsPosition = exports.getArticleTruncateFunctions = exports.generateAssetsFontCss = exports.asyncPostMessageFunctions = exports.addPositionId = exports.addLongPressEvent = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _Paywall = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + + var truncateScript = exports.truncateScript = "\n function truncateArticle(){\n try{\n const hrs = document.getElementsByTagName('hr');\n if(hrs[0]){\n let found = false;\n const parent = hrs[0].parentElement;\n let i = 0;\n while(i < parent.childNodes.length){\n if(parent.childNodes[i] === hrs[0]){\n found = true;\n } else if(!found) {\n i++;\n }\n if(found){\n try{\n console.log(parent.childNodes[i]);\n parent.removeChild(parent.childNodes[i]);\n } catch(e){\n console.log(e.message);\n }\n }\n }\n }\n } catch(e){\n console.log(e.message);\n }\n }\n truncateArticle();"; + + var retrieveAdPlaceholders = exports.retrieveAdPlaceholders = function retrieveAdPlaceholders() { + var enableInStoryAdMarker = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var adMarkerScript = ""; + + if (enableInStoryAdMarker) { + var _global$getActivePSet = global.getActivePSetup(), + inStoryAdMarkerText = _global$getActivePSet.inStoryAdMarkerText; + + adMarkerScript = "\n var nativeAdDisclaimerId = 'native_ad_' + i + '_disclaimer';\n var nativeAdDisclaimer = document.getElementById(nativeAdDisclaimerId);\n if (nativeAdDisclaimer == undefined) {\n var paragraph = document.createElement(\"p\");\n paragraph.setAttribute('id', nativeAdDisclaimerId);\n paragraph.setAttribute('class', 'advp');\n var text = document.createTextNode('" + inStoryAdMarkerText + "');\n paragraph.appendChild(text);\n placeholder.parentNode.insertBefore(paragraph, placeholder);\n }"; + } + + return "\n function getLoadedAds() {\n var ads = [];\n try {\n var nativeAdPlaceholders = document.getElementsByClassName('native_ad');\n for (var i = 0; i < nativeAdPlaceholders.length; i++) {\n var placeholder = nativeAdPlaceholders[i];\n try {\n var config = {\n key: 'native_ad_' + i,\n unitId: placeholder.getAttribute('unitId'),\n provider: placeholder.getAttribute('provider'),\n os: placeholder.getAttribute('os'),\n left: placeholder.getBoundingClientRect().left,\n top: placeholder.getBoundingClientRect().top,\n width: parseInt(placeholder.getAttribute('width'), 10),\n height: parseInt(placeholder.getAttribute('height'), 10)\n };\n placeholder.setAttribute('id', 'native_ad_' + i);\n if (placeholder.parentElement && placeholder.parentElement.className === 'native_ad_container') {\n placeholder.parentElement.setAttribute('id', 'native_ad_' + i + '_container');\n } else {\n " + adMarkerScript + "\n }\n \n ads.push(config);\n } catch (e) {\n console.log(e);\n }\n }\n } catch (e) {\n console.log(e);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: ads, type: 'GET_NATIVE_ADS_PLACEHOLDER' }));\n }"; + }; + + var hideAdMarkerText = exports.hideAdMarkerText = "\n function hideAdMarkerText() {\n var elements = document.getElementsByClassName(\"advp\");\n for (var i = 0; i < elements.length; i++) {\n elements[i].style.display = \"none\";\n }\n }"; + var showAdMarkerText = exports.showAdMarkerText = "\n function showAdMarkerText() {\n var elements = document.getElementsByClassName(\"advp\");\n for (var i = 0; i < elements.length; i++) {\n elements[i].style.display = \"block\";\n }\n }"; + var showNativeAd = exports.showNativeAd = "\n function showNativeAd(id) {\n var nativeAd = document.getElementById(id);\n if (nativeAd) {\n var adHeight = parseInt(nativeAd.getAttribute('height'), 10);\n nativeAd.style.height = adHeight + 'px';\n var nativeAdContainer = document.getElementById(id + '_container');\n if (nativeAdContainer) {\n nativeAdContainer.style.height = adHeight + 10 + 'px';\n var prevElement = nativeAdContainer.previousElementSibling;\n if (prevElement && prevElement.className === \"advp\") {\n prevElement.style.display = 'block';\n }\n }\n }\n }"; + var hideNativeAd = exports.hideNativeAd = "\n function hideNativeAd(id) {\n var nativeAd = document.getElementById(id);\n if (nativeAd) {\n nativeAd.style.height = '0px';\n var nativeAdContainer = document.getElementById(id + '_container');\n if (nativeAdContainer) {\n nativeAdContainer.style.height = '0px';\n var prevElement = nativeAdContainer.previousElementSibling;\n if (prevElement && prevElement.className === \"advp\") {\n prevElement.style.display = 'none';\n }\n }\n }\n }"; + var retrieveInnerText = exports.retrieveInnerText = "\n function() {\n var text = '';\n try {\n text = document.body.innerText;\n } catch (e) {}\n \n return {\n content: text,\n type: 'INNER_TEXT'\n };\n }"; + var openGallery = exports.openGallery = "\n function openGallery(url) {\n try {\n console.log(\"open gallery:\" + url);\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: url, type: 'OPEN_GALLERY' }));\n } catch (e) {\n console.log(e);\n }\n }"; + var showImageOptions = exports.showImageOptions = "\n function showImageOptions(link, imageUrl) {\n try {\n console.log(\"show image options: \" + link + \", image url \"+imageUrl);\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { link: link, url: imageUrl }, type: 'SHOW_IMAGE_OPTIONS' }));\n } catch (e) {\n console.log(e);\n }\n }"; + var handleImageError = exports.handleImageError = "\n function handleImageError(img) {\n try {\n var hrsrc = img.getAttribute(\"hrsrc\");\n if (hrsrc && img.src !== hrsrc) {\n img.src = hrsrc;\n } else {\n img.style.height = 0;\n }\n } catch (e) {\n console.log(e);\n }\n }"; + var saveImages = exports.saveImages = "\n function saveImages() {\n try {\n $(\"img[data-save]\").each(function() {\n $(this).one(\"load\", function() {\n eval($(this).data(\"save\"));\n });\n });\n $(\"img[data-retrieve]\").each(function() {\n eval($(this).data(\"retrieve\"));\n }).hide();\n } catch (e) {\n console.log(e);\n }\n }"; + var saveImage = exports.saveImage = "\n function saveImage(img, paper, issue, edition, filename, image, filetime) {\n try {\n console.log(\"save image \" + paper + \" - \" + issue + \" - \" + edition + \" - \" + filename + \" - \" + image + \" - \" + filetime);\n var newImage = new Image();\n newImage.crossOrigin = \"anonymous\";\n\n newImage.onload = function () {\n console.log(\"onload image \" + newImage.width + \" - \" + newImage.height);\n var canvas = document.createElement(\"canvas\");\n canvas.width = newImage.width;\n canvas.height = newImage.height;\n var ctx = canvas.getContext(\"2d\");\n ctx.drawImage(newImage, 0, 0);\n var dataURL = canvas.toDataURL(\"image/jpeg\", 1);\n console.log(dataURL);\n var base64 = dataURL.replace(/^data:image\\/jpeg;base64,/, \"\");\n \n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { base64: base64, paper: paper, issue: issue, edition: edition, filename: filename, image: image, filetime: filetime}, type: 'SAVE_IMAGE' }));\n };\n\n newImage.src = img.src;\n\n } catch (e) {\n console.log(e);\n }\n }"; + var retrieveImage = exports.retrieveImage = "\n function retrieveImage(img, paper, issue, edition, filename, image, filetime) {\n try {\n console.log(\"retrieve image \" + paper + \" - \" + issue + \" - \" + edition + \" - \" + filename + \" - \" + image + \" - \" + filetime);\n \n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { imageSrc: img.src, paper: paper, issue: issue, edition: edition, filename: filename, image: image, filetime: filetime}, type: 'RETRIEVE_IMAGE' }));\n } catch (e) {\n console.log(e);\n }\n }"; + var replaceImgSrcWithBase64 = exports.replaceImgSrcWithBase64 = "\nfunction replaceImgSrcWithBase64(src, base64) {\n try { \n var imgTag = $(\"img[src='\"+src+\"']\");\n var newAction = \"javascript:openGallery('\"+base64+\"')\";\n imgTag.parent().attr(\"onclick\", newAction);\n imgTag.attr(\"src\", base64).show();\n } catch (e) {\n console.log(e);\n }\n}"; + + var moveImages = exports.moveImages = function moveImages(height) { + return "\nfunction moveImages() {\n var imgArtObjs = $(\"div[id^='imgArt']\");\n var abodyObjs = $(\".abody\");\n if(imgArtObjs.length >= 1 && abodyObjs.length > 1){\n for(var imgArtObjIdx = 0; imgArtObjIdx < imgArtObjs.length; imgArtObjIdx++){\n var imgArtObj = $(imgArtObjs[imgArtObjIdx]);\n if (imgArtObj.children().length > 0) {\n for(var abobyObjIdx = 0; abobyObjIdx < abodyObjs.length; abobyObjIdx++){\n var abodyElem = abodyObjs[abobyObjIdx];\n var offset = $(abodyElem).offset();\n var contentHeight = " + height + ";\n if(typeof offset != \"undefined\" && offset.top > (contentHeight * (imgArtObjIdx+1))){\n console.debug(\"abody offset: \"+offset.top+\", content height: \"+contentHeight);\n imgArtObj.insertAfter(abodyElem);\n break;\n }\n }\n }\n }\n }\n}"; + }; + + var movePageJumps = exports.movePageJumps = "\nfunction movePageJumps() {\n $(\"div[data-pjindex]\").each(function() {\n var index = parseInt($(this).data(\"pjindex\"), 10);\n if (index > 0) {\n var prevHr = $(\"#ArtADD\"+(index -1)+\" + hr\");\n if (prevHr) {\n prevHr.after(this);\n }\n }\n });\n}"; + var scrollpageToContinue = exports.scrollpageToContinue = "\n function scrollpageToContinue(pageNumber, artid) {\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: {page: pageNumber, xmlId: artid}, type: 'SCROLL_TO_PAGE' }));\n }"; + var getHrsPosition = exports.getHrsPosition = "\n function getHrsPosition(){\n var positions = [];\n var hrsTag = document.getElementsByTagName(\"hr\");\n for(var i = 0; i < hrsTag.length; i++){\n positions.push(hrsTag[i].offsetTop);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: positions, type: 'HRS_POSITION' }));\n }\n"; + var addLongPressEvent = exports.addLongPressEvent = "\n var body = document.body;\n var longPressMs = 500;\n var longPressTimeout = undefined;\n var onStart = function () {\n console.log('touch start');\n if (longPressTimeout) {\n clearTimeout(longPressTimeout);\n longPressTimeout = undefined;\n }\n longPressTimeout = setTimeout(function () {\n console.log('long touch');\n window.ReactNativeWebView.postMessage(JSON.stringify({ type: 'LONG_PRESS' }));\n }, longPressMs);\n };\n var onEnd = function () {\n console.log('touch end');\n if (longPressTimeout) {\n clearTimeout(longPressTimeout);\n longPressTimeout = undefined;\n }\n };\n if (body) {\n body.addEventListener('touchstart', onStart);\n body.addEventListener('mousedown', onStart);\n body.addEventListener('touchend', onEnd);\n body.addEventListener('mouseup', onEnd);\n }"; + var addPositionId = exports.addPositionId = "\n var positionId;\n $(\"#slideArt p\").toArray().forEach((elem, index) => {\n $(elem).attr(\"positionid\", index);\n $(elem).children().toArray().forEach((child, childIndex) => {\n $(child).attr(\"positionid\", index+\".\"+childIndex);\n });\n }\n );\n"; + var retrievePositionIdAtOffset = exports.retrievePositionIdAtOffset = "\n function getPositionId(x, y) {\n try {\n var offsetX = 0;\n var width = $(\"#slideArt\").width();\n var columns = $(\".article_body0 .column\").length;\n if (columns > 0) {\n offsetX = width / (columns * 2);\n } else {\n offsetX = width/2;\n }\n var currentPositionId = document.elementFromPoint(x + offsetX, y).getAttribute(\"positionid\");\n if (currentPositionId !== null) {\n positionId = currentPositionId;\n }\n } catch (e) {\n console.log(e);\n }\n if (positionId) {\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { positionId: positionId }, type: 'GET_POSITION_ID' }));\n }\n };\n"; + var retrieveOffsetByPositionId = exports.retrieveOffsetByPositionId = "\n function goToPositionId(positionId) {\n var top = 0;\n var left = 0;\n try {\n var offset = $(\"[positionId='\"+positionId+\"']\").position();\n top = offset.top;\n left = offset.left;\n } catch (e) {\n console.log(e);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { offset: { left: left, top: top } }, type: 'GET_POSITION_ID_OFFSET' }));\n };\n"; + var getJumpId = exports.getJumpId = "\n function art_getJumpId(page, issue, filename, xmlId) {\n try {\n if (window.ReactNativeWebView) {\n window.ReactNativeWebView.postMessage(\n JSON.stringify({\n page,\n issue,\n filename,\n xmlId,\n type: 'JUMP'\n })\n );\n }\n } catch (e) {\n console.error(e.message);\n }\n }"; + + var getArticleTruncateFunctions = exports.getArticleTruncateFunctions = function getArticleTruncateFunctions() { + if (_Paywall.default.shouldAppendPaywall()) { + return "\n var ta_truncateArticle = function ta_truncateArticle(threshold) {\n var ta_protectThreshold = ''+threshold;\n var ta_protectParentSelector = '#content';\n if (parseInt(ta_protectThreshold, 10) >= 0 && ta_protectParentSelector && document.querySelector) {\n var parentToProtect = document.querySelector(ta_protectParentSelector);\n if (parentToProtect == null) return;\n var styleTagsToAppend = [];\n var styleTags = parentToProtect.getElementsByTagName('STYLE');\n for (var i=0; i < styleTags.length; i++) {\n var styleTag = styleTags[i].cloneNode(true); \n styleTagsToAppend.push(styleTag); \n }\n \n var nodeToFill = parentToProtect.cloneNode(false);\n \n if (ta_protectThreshold.indexOf('%') > 0) {\n ta_protectThreshold = ta_protectThreshold.substr(0, ta_protectThreshold.length - 1);\n ta_protectThreshold = parseInt(ta_protectThreshold, 10);\n if (ta_protectThreshold > 100 || ta_protectThreshold < 0) {\n ta_protectThreshold = 100;\n }\n var ta_protectArticleLength = ta_articleTextCount(parentToProtect);\n ta_protectThreshold = parseInt((ta_protectThreshold / 100) * ta_protectArticleLength, 10);\n } else {\n ta_protectThreshold = parseInt(ta_protectThreshold, 10);\n }\n\n if (ta_protectThreshold > 0) {\n ta_fillThreshold(parentToProtect, nodeToFill, ta_protectThreshold);\n parentToProtect.innerHTML = nodeToFill.innerHTML;\n } else {\n parentToProtect.innerHTML = '';\n }\n for (var i=0; i < styleTagsToAppend.length; i++) {\n var styleTagToAppend = styleTagsToAppend[i]; \n parentToProtect.appendChild(styleTagToAppend);\n }\n }\n };\n\n var ta_elementThresholdExempt = function ta_elementThresholdExempt(elementNode) {\n var tagsToExclude = 'style';\n if (tagsToExclude.length > 0) {\n var tagsExcludeArray = tagsToExclude.split(',');\n for (var j = 0; j < tagsExcludeArray.length; j++) {\n if (elementNode.tagName && elementNode.tagName.toLowerCase() === tagsExcludeArray[j].trim().toLowerCase()) {\n return true;\n }\n }\n }\n if (typeof elementNode.className === 'string' && elementNode.className.length > 0) {\n var classesToExclude = '';\n if (classesToExclude.length > 0) {\n var excludeArray = classesToExclude.split(',');\n for (var j = 0; j < excludeArray.length; j++) {\n if (\n excludeArray[j].trim() !== '' &&\n elementNode.className.split(/ +/).indexOf(excludeArray[j].trim()) !== -1\n ) {\n return true;\n }\n }\n }\n }\n \n return false;\n };\n \n var ta_fillThreshold = function ta_fillThreshold(originalNode, nodeToFill, threshold, otherNodeToFill) {\n var preserveImages = false;\n if (originalNode.childNodes && originalNode.childNodes.length > 0) {\n for (var i = 0; i < originalNode.childNodes.length; i++) {\n var newNodeToFill = otherNodeToFill || null;\n if (ta_elementThresholdExempt(originalNode.childNodes[i])) { \n continue;\n } \n \n if (\n originalNode.childNodes[i].nodeType == Node.ELEMENT_NODE &&\n originalNode.childNodes[i].childNodes &&\n originalNode.childNodes[i].childNodes.length > 0\n ) {\n newNodeToFill = originalNode.childNodes[i].cloneNode(false);\n (otherNodeToFill || nodeToFill).appendChild(newNodeToFill);\n }\n var finished = ta_fillThreshold(originalNode.childNodes[i], nodeToFill, threshold, newNodeToFill) || 0;\n if (finished) return 1;\n }\n return 0;\n }\n if (originalNode.nodeType == Node.TEXT_NODE || originalNode.nodeType == Node.ELEMENT_NODE) {\n var innerHTML = '';\n if (originalNode.innerHTML) {\n innerHTML = originalNode.innerHTML.trim();\n } else if (originalNode.nodeValue) {\n innerHTML = originalNode.nodeValue.trim();\n } else if (!preserveImages && originalNode.nodeName.toLowerCase() == 'img') {\n return 0;\n }\n \n var allowedEmptyTags = ['IMG', 'HR', 'BR'];\n if (!innerHTML.length && allowedEmptyTags.indexOf(originalNode.nodeName) == -1) return 0; \n \n var nodeToFillLength = nodeToFill.innerText.length;\n if (!otherNodeToFill && originalNode.nodeType == Node.TEXT_NODE) {\n var newPNode = document.createElement('p');\n otherNodeToFill = newPNode;\n nodeToFill.appendChild(newPNode);\n }\n if (nodeToFillLength + innerHTML.length < threshold) {\n (otherNodeToFill || nodeToFill).appendChild(originalNode.cloneNode(true));\n return 0;\n }\n if (nodeToFillLength + innerHTML.length >= threshold) {\n var origIHLength = nodeToFillLength;\n var newChild = (otherNodeToFill || nodeToFill).appendChild(originalNode.cloneNode(true));\n if (innerHTML.indexOf(' ', threshold - origIHLength) !== -1) {\n innerHTML = innerHTML.substring(0, innerHTML.indexOf(' ', threshold - origIHLength));\n }\n if (innerHTML.slice(-3) != '...') {\n innerHTML += '...';\n }\n newChild.innerHTML = innerHTML;\n newChild.nodeValue = innerHTML;\n var protectArticleMessagePNode = document.createElement('p');\n protectArticleMessagePNode.innerHTML = '" + _Paywall.default.getArticlePreviewMessage() + "';\n nodeToFill.appendChild(protectArticleMessagePNode);\n return 1;\n }\n return 0;\n }\n return 0;\n };\n\n var ta_articleTextCount = function ta_articleTextCount(originalNode) {\n var currentLength = 0;\n if (originalNode.childNodes && originalNode.childNodes.length > 0) {\n for (var i = 0; i < originalNode.childNodes.length; i++) {\n if (ta_elementThresholdExempt(originalNode.childNodes[i])) continue;\n var newLength = ta_articleTextCount(originalNode.childNodes[i]) || 0;\n currentLength += newLength;\n }\n } else if (originalNode.nodeType == Node.TEXT_NODE || originalNode.nodeType == Node.ELEMENT_NODE) {\n if (originalNode.innerHTML) {\n currentLength = originalNode.innerHTML.trim().length;\n } else if (originalNode.nodeValue) {\n currentLength = originalNode.nodeValue.trim().length;\n }\n }\n return currentLength; \n };"; + } + + return ""; + }; + + var removeWebAdsFromString = exports.removeWebAdsFromString = function removeWebAdsFromString(html) { + try { + var articleHtml = _$$_REQUIRE(_dependencyMap[3]).StringUtils.parseFromString(html, "text/html"); + + if (!articleHtml) { + return html; + } + + var originalHtml = String(articleHtml); + var nativeAds = articleHtml.getElementsByClassName("native_ad"); + + for (var i = 0; i < nativeAds.length; i++) { + var originalTag = String(nativeAds[i]); + var os = nativeAds[i].getAttribute("os"); + + if (os && os !== _reactNative.Platform.OS) { + originalHtml = originalHtml.replace(originalTag, ""); + continue; + } + + while (nativeAds[i].childNodes.length > 0) { + var child = nativeAds[i].childNodes[0]; + nativeAds[i].removeChild(child); + } + + originalHtml = originalHtml.replace(originalTag, String(nativeAds[i])); + } + + return originalHtml; + } catch (e) { + console.warn(e.message); + } + + return html; + }; + + var getFontFaceStringFromFont = function getFontFaceStringFromFont(font) { + var weight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var fontWeb = font.fontWeb, + src = font.src; + var fontFamily = font.fontFamily, + fontWeight = font.fontWeight; + fontFamily = fontFamily || fontWeb; + fontWeight = weight || fontWeight || "normal"; + var fontFace = "\n @font-face {\n font-family: '" + fontFamily + "';\n font-weight: " + fontWeight + ";\n src: " + src + ";\n }\n "; + return fontFace; + }; + + var generateAssetsFontCss = exports.generateAssetsFontCss = function generateAssetsFontCss(fontFamilyRegular, fontFamilyBold, dynamicFonts) { + var fontCSS = ""; + + if (fontFamilyRegular && fontFamilyRegular.src) { + fontCSS += getFontFaceStringFromFont(fontFamilyRegular, "normal"); + + if (fontFamilyBold && fontFamilyBold.src && fontFamilyBold.fontWeb !== fontFamilyRegular.fontWeb) { + fontCSS += getFontFaceStringFromFont(fontFamilyBold, "bold"); + } + } else if (fontFamilyBold && fontFamilyBold.src) { + fontCSS += getFontFaceStringFromFont(fontFamilyBold, "bold"); + } + + if (dynamicFonts) { + dynamicFonts.forEach(function (dynamicFont) { + if (dynamicFont) { + var fontWeb = dynamicFont.fontWeb; + + if (!(fontFamilyRegular && fontFamilyRegular.fontWeb === fontWeb || fontFamilyBold && fontFamilyBold.fontWeb === fontWeb)) { + fontCSS += getFontFaceStringFromFont(dynamicFont); + } + } + }); + } + + return fontCSS; + }; + + var onLoadFunctions = exports.onLoadFunctions = function onLoadFunctions(hasColumnizer, enableTruncate) { + var truncate = ""; + var columnizer = ""; + + if (hasColumnizer) { + columnizer = "\n $('#content').columnize({ width: 400, doneFunc: getLoadedAds });"; + } + + if (_Paywall.default.needToAppendHardPaywall() || _Paywall.default.shouldAppendPaywallPopup() && enableTruncate) { + var articlePreviewLength = _Paywall.default.getArticlePreviewLength(); + + truncate = "ta_truncateArticle('" + articlePreviewLength + "');"; + } + + if (truncate || columnizer) { + return "\n $(function(){" + truncate + columnizer + "});"; + } + + return ""; + }; + + var asyncPostMessageFunctions = exports.asyncPostMessageFunctions = function asyncPostMessageFunctions() { + return "\n var waiting = {};\n var AWAITING_TIMEOUT = 30000;\n\n function parsePayload(payload) {\n if (payload === \"true\") {\n return true;\n }\n if (payload === \"false\") {\n return false;\n }\n let result = parseFloat(payload);\n if (!Number.isNaN(result)) {\n return result;\n }\n try {\n return JSON.parse(payload);\n } catch (e) {\n }\n\n return payload;\n }\n\n /**\n * resolve or reject the promise attacched to this key\n * @param {*} key contained inside postMessage payload\n * @param {string} method reject|resolve\n * @param {string} payload the string, if resolve will be parsed with JSON.parse otherwise is the error message\n */\n function awaitPostMessage(key, method, payload) {\n try {\n if (method === \"resolve\") {\n waiting[key].resolve(parsePayload(payload));\n } else {\n waiting[key].reject(new Error(payload));\n }\n } catch (e) {\n if (waiting[key] && waiting[key].reject) {\n waiting[key].reject(e);\n }\n }\n delete waiting[key];\n };\n\n function generateId() {\n return \"\"+Math.random().toString(36).substr(2, 9);\n }\n\n function emit(data) {\n window.ReactNativeWebView.postMessage(JSON.stringify(data ?? {}));\n }\n\n /**\n * call this method to post a message and awaiting a response from native code\n * each message has a unique key, used to identified the promise and resolve it\n * to resolve the promise from native code you need to inject js awaitPostMessage,\n * see the method below\n * @param {*} data\n * @returns Promise\n */\n async function asyncPostMessage (data) {\n return new Promise((resolve, reject) => {\n try {\n const key = generateId();\n waiting[key] = { resolve, reject };\n emit({ asyncKey: key, ...data });\n setTimeout(() => {\n awaitPostMessage(key, \"reject\", key+\" went in timeout\");\n }, AWAITING_TIMEOUT);\n } catch (e) {\n console.warn(e.message);\n reject(e);\n }\n });\n }"; + }; + + var updateWebviewFontSizeScript = exports.updateWebviewFontSizeScript = function updateWebviewFontSizeScript(elementId, fontSize) { + var size = fontSize != null ? fontSize : global.getUserSettings().getFontSize(); + return "\n try{ \n document.getElementById('" + elementId + "').style.fontSize = \"" + size + "%\";\n }catch(e){}"; + }; + + var setFontSizeMutationObserver = exports.setFontSizeMutationObserver = function setFontSizeMutationObserver(elementId, jsCallback) { + return "\n try{ \n var element = document.getElementById('" + elementId + "');\n if (element) {\n var observer = new MutationObserver(([mutation]) => {\n if (mutation.type === 'attributes' && mutation.attributeName === 'style') {\n " + jsCallback + "\n }\n });\n \n observer.observe(element, { attributes: true });\n }\n }catch(e){\n console.error(e.message);\n }"; + }; +},2037,[18,3,2032,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -267195,7 +262490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didMountRef.current = true; }, watcher); } -},2054,[3,33,16,436,434,564]); +},2038,[3,33,16,436,434,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -267926,7 +263221,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ignoreUrls: [], progressHidden: false }, _$$_REQUIRE(_dependencyMap[21]).OurBridge.customDefaultProps); -},2055,[3,22,4,270,6,7,11,13,14,582,16,18,436,2039,866,1881,564,438,878,179,2040,579,889]); +},2039,[3,22,4,270,6,7,11,13,14,582,16,18,436,2022,869,1870,564,438,881,179,2023,579,892]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -267961,15 +263256,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _Publication = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + var _LoginHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - var _LoginHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); var _LoginManager; @@ -268047,24 +263340,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function getClassicDatabaseFilePath() { return _tecnaviaFileUtils.default.getDocumentsDirectory() + "/" + CLASSIC_LOGIN_DB_NAME; } - }, { - key: "createLocalStorageTable", - value: function () { - var _createLocalStorageTable = (0, _asyncToGenerator2.default)(function* () { - try { - var query = "CREATE TABLE IF NOT EXISTS localStorage (key VARCHAR(255) PRIMARY KEY , value TEXT , UNIQUE (key) ON CONFLICT REPLACE);"; - yield LoginManager.openTransaction(query); - } catch (e) { - throw e; - } - }); - - function createLocalStorageTable() { - return _createLocalStorageTable.apply(this, arguments); - } - - return createLocalStorageTable; - }() }, { key: "databaseExists", value: function () { @@ -268185,7 +263460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e activePSetupConfig = _yield$global$loadPSe.config; if (!activePSetupConfig) { - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("login error"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("login error"); return {}; } @@ -268199,7 +263474,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var response = yield LoginManager.callToLogin(username, password, TAUID, token, challenge); if (!response) { - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("login timed out"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("login timed out"); return {}; } @@ -268207,7 +263482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data = response.data; if (!data || status !== 200) { - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("login error"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("login error"); return {}; } @@ -268253,18 +263528,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - yield LoginManager.storeClassicLoginStatus({ - TAUID: TAUID, - username: username, - password: password, - TOKEN: token, - challenge: challenge, - extid: extid, - remember: remember - }); - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("logged"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("logged"); } else { - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("login failed"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("login failed"); } return { @@ -268290,7 +263556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var prevExtid = loginStatus.extid; yield loginStatus.clear(); - if (!_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(prevExtid)) { + if (!_$$_REQUIRE(_dependencyMap[20]).JSUtils.isEmpty(prevExtid)) { yield Analytics.sendExternalIdToAnalytics(); } } @@ -268319,12 +263585,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } try { - (0, _$$_REQUIRE(_dependencyMap[22]).facebookLogout)(); + (0, _$$_REQUIRE(_dependencyMap[21]).facebookLogout)(); } catch (e) {} var newsmemoryConfig = global.getNewsmemoryConfig(); yield newsmemoryConfig == null ? undefined : newsmemoryConfig.resetSocialLoginPlatform(); - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("logged out"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("logged out"); }); function logout() { @@ -268419,8 +263685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getActivePSet3 = global.getActivePSetup(), udb = _global$getActivePSet3.udb; - var result = yield LoginManager.checkClassicLoginStatus(udb); - return result; + return LoginManager.checkClassicLoginStatus(udb); }); function checkClassicUdbLoginStatus() { @@ -268429,89 +263694,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return checkClassicUdbLoginStatus; }() - }, { - key: "storeClassicLoginStatus", - value: function () { - var _storeClassicLoginStatus = (0, _asyncToGenerator2.default)(function* (_ref) { - var TAUID = _ref.TAUID, - username = _ref.username, - password = _ref.password, - TOKEN = _ref.TOKEN, - challenge = _ref.challenge, - extid = _ref.extid, - remember = _ref.remember; - var result = false; - - try { - if (!(yield LoginManager.databaseExists())) { - yield LoginManager.createLocalStorageTable(); - } - - if (yield LoginManager.databaseExists()) { - var _global$getActivePSet4 = global.getActivePSetup(), - udb = _global$getActivePSet4.udb; - - var query = "INSERT INTO localstorage (key, value) VALUES (?,?),(?,?),(?,?),(?,?),(?,?),(?,?),(?,?)"; - yield LoginManager.openTransaction(query, [udb + "_TAUID", TAUID || "", udb + "_username", username || "", udb + "_password", password || "", udb + "_TOKEN", TOKEN || "", udb + "_challenge", challenge || "", udb + "_extid", extid || "", udb + "_remember", remember || ""]); - result = true; - yield LoginManager.closeDatabase(); - } - } catch (e) {} - - return result; - }); - - function storeClassicLoginStatus(_x12) { - return _storeClassicLoginStatus.apply(this, arguments); - } - - return storeClassicLoginStatus; - }() - }, { - key: "storeClassicCustomLoginStatus", - value: function () { - var _storeClassicCustomLoginStatus = (0, _asyncToGenerator2.default)(function* (_ref2) { - var paperName = _ref2.paperName, - username = _ref2.username, - password = _ref2.password, - extra = _ref2.extra; - var result = false; - - if (_$$_REQUIRE(_dependencyMap[21]).PlatformUtils.isIOS()) { - try { - if (!(yield LoginManager.databaseExists())) { - yield LoginManager.createLocalStorageTable(); - } - - if (yield LoginManager.databaseExists()) { - var query = "INSERT INTO localstorage (key, value) VALUES (?,?),(?,?),(?,?)"; - yield LoginManager.openTransaction(query, [paperName + "_username", username || "", paperName + "_password", password || "", paperName + "_extra", extra || ""]); - result = true; - yield LoginManager.closeDatabase(); - } - } catch (e) {} - } - - return result; - }); - - function storeClassicCustomLoginStatus(_x13) { - return _storeClassicCustomLoginStatus.apply(this, arguments); - } - - return storeClassicCustomLoginStatus; - }() }, { key: "isExpiredTAUID", value: function isExpiredTAUID() { - var _global$getActivePSet5 = global.getActivePSetup(), - loginStatus = _global$getActivePSet5.loginStatus, - refreshesTAUIDTimestamp = _global$getActivePSet5.refreshesTAUIDTimestamp; + var _global$getActivePSet4 = global.getActivePSetup(), + loginStatus = _global$getActivePSet4.loginStatus, + refreshesTAUIDTimestamp = _global$getActivePSet4.refreshesTAUIDTimestamp; var TAUID = loginStatus.TAUID, last_login_time = loginStatus.last_login_time; - if (_$$_REQUIRE(_dependencyMap[23]).LoginStatus.isValidTAUID(TAUID) && refreshesTAUIDTimestamp) { + if (_$$_REQUIRE(_dependencyMap[22]).LoginStatus.isValidTAUID(TAUID) && refreshesTAUIDTimestamp) { var lastLoginTimestamp = parseInt(last_login_time || 0, 10); return refreshesTAUIDTimestamp >= lastLoginTimestamp; } @@ -268523,7 +263716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _autoLogin = (0, _asyncToGenerator2.default)(function* () { var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("start autologin"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("start autologin"); var username = params.username, password = params.password, TAUID = params.TAUID, @@ -268544,7 +263737,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e userid = _data.userid; if ((protError === PROT_ERROR.LOGGED_IN || protError === PROT_ERROR.TOO_MANY_LOGINS_ALERT) && userid && userid > -1) { - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)("autologged"); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)("autologged"); return data; } @@ -268559,7 +263752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e error = PROT_ERROR.TIMEOUT; } - (0, _$$_REQUIRE(_dependencyMap[20]).sendNewsmemoryLoginEvent)(message); + (0, _$$_REQUIRE(_dependencyMap[19]).sendNewsmemoryLoginEvent)(message); throw new LoginError(error, message, data); }); @@ -268604,8 +263797,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "tokenLogin", value: function () { var _tokenLogin = (0, _asyncToGenerator2.default)(function* (universalLinkToken) { - var _global$getActivePSet6 = global.getActivePSetup(), - loginStatus = _global$getActivePSet6.loginStatus; + var _global$getActivePSet5 = global.getActivePSetup(), + loginStatus = _global$getActivePSet5.loginStatus; var prevExtid; @@ -268650,7 +263843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e loginStatus.resetLastModified(); } - if (!_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(prevExtid)) { + if (!_$$_REQUIRE(_dependencyMap[20]).JSUtils.isEmpty(prevExtid)) { yield Analytics.sendExternalIdToAnalytics(); } @@ -268666,7 +263859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return -1; }); - function tokenLogin(_x14) { + function tokenLogin(_x12) { return _tokenLogin.apply(this, arguments); } @@ -268678,13 +263871,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _tokenLoginFromUniversalLink = (0, _asyncToGenerator2.default)(function* () { var forceTokenLogin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - if (!_$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isOnline()) { + if (!_$$_REQUIRE(_dependencyMap[20]).NetworkUtils.isOnline()) { throw new LoginError(PROT_ERROR.NOT_LOGGEDIN, "Offline"); } - var _global$getActivePSet7 = global.getActivePSetup(), - loginStatus = _global$getActivePSet7.loginStatus, - validateSite = _global$getActivePSet7.validateSite; + var _global$getActivePSet6 = global.getActivePSetup(), + loginStatus = _global$getActivePSet6.loginStatus, + validateSite = _global$getActivePSet6.validateSite; var universalLinkToken = loginStatus.universalLinkToken; var universalLinkTokenPresent = !!universalLinkToken; @@ -268710,9 +263903,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (asynchronousTokenCall) { loginTokenPromise.then(function () { - var _ref3 = (0, _asyncToGenerator2.default)(function* (result) { + var _ref = (0, _asyncToGenerator2.default)(function* (result) { if (result === 1) {} else if (result === 0) { - (0, _$$_REQUIRE(_dependencyMap[24]).addDebugOperation)("LoginManager", "token autologin failed"); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("LoginManager", "token autologin failed"); try { yield LoginManager.credentialsLogin(true); @@ -268722,21 +263915,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (result === -1) {} }); - return function (_x15) { - return _ref3.apply(this, arguments); + return function (_x13) { + return _ref.apply(this, arguments); }; }()); return true; } - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); - (0, _$$_REQUIRE(_dependencyMap[24]).addDebugOperation)("LoginManager", "token autologin start"); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("LoginManager", "token autologin start"); var result = yield loginTokenPromise; - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); - (0, _$$_REQUIRE(_dependencyMap[24]).addDebugOperation)("LoginManager", "token autologin end"); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("LoginManager", "token autologin end"); if (result === 0) { return false; @@ -268761,8 +263954,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _performCredentialsLogin = (0, _asyncToGenerator2.default)(function* (username, password, challenge, TAUID, TOKEN, soPass) { var asynchronousCall = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; - var _global$getActivePSet8 = global.getActivePSetup(), - loginStatus = _global$getActivePSet8.loginStatus; + var _global$getActivePSet7 = global.getActivePSetup(), + loginStatus = _global$getActivePSet7.loginStatus; var prevExtid; @@ -268771,7 +263964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var success = function () { - var _ref4 = (0, _asyncToGenerator2.default)(function* (data) { + var _ref2 = (0, _asyncToGenerator2.default)(function* (data) { var userid = data.userid, extid = data.extid, extra_user_info = data.extra_user_info, @@ -268804,13 +263997,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - return function success(_x22) { - return _ref4.apply(this, arguments); + return function success(_x20) { + return _ref2.apply(this, arguments); }; }(); var fail = function () { - var _ref5 = (0, _asyncToGenerator2.default)(function* (error) { + var _ref3 = (0, _asyncToGenerator2.default)(function* (error) { if (!(error instanceof LoginError)) { return undefined; } @@ -268826,18 +264019,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e loginStatus.resetLastModified(); } - if (!_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(prevExtid)) { + if (!_$$_REQUIRE(_dependencyMap[20]).JSUtils.isEmpty(prevExtid)) { yield Analytics.sendExternalIdToAnalytics(); } - - yield LoginManager.clearClassicLoginStatus(); } return code; }); - return function fail(_x23) { - return _ref5.apply(this, arguments); + return function fail(_x21) { + return _ref3.apply(this, arguments); }; }(); @@ -268851,22 +264042,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (asynchronousCall) { loginPromise.then(success).catch(function () { - var _ref6 = (0, _asyncToGenerator2.default)(function* (error) { + var _ref4 = (0, _asyncToGenerator2.default)(function* (error) { var code = yield fail(error); if (code === PROT_ERROR.NOT_LOGGEDIN) { + if (username && password && !challenge) { + var _yield$LoginManager$c = yield LoginManager.checkClassicUdbLoginStatus(), + classicChallenge = _yield$LoginManager$c.challenge; + + if (classicChallenge) { + loginStatus.updateChallenge(classicChallenge); + yield LoginManager.clearClassicLoginStatus(); + LoginManager.performCredentialsLogin(username, password, classicChallenge, TAUID, TOKEN, soPass, true); + return; + } + } + + yield LoginManager.clearClassicLoginStatus(); LoginManager.triggerRestart(); } }); - return function (_x24) { - return _ref6.apply(this, arguments); + return function (_x22) { + return _ref4.apply(this, arguments); }; }()); return; } - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); try { var data = yield loginPromise; @@ -268874,17 +264078,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (error) { var code = yield fail(error); - if (code === PROT_ERROR.NOT_LOGGEDIN && soPass && TOKEN && !password) { - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[26]).tabs.login - }); + if (code === PROT_ERROR.NOT_LOGGEDIN) { + if (username && password && !challenge) { + var _yield$LoginManager$c2 = yield LoginManager.checkClassicUdbLoginStatus(), + classicChallenge = _yield$LoginManager$c2.challenge; + + if (classicChallenge) { + loginStatus.updateChallenge(classicChallenge); + yield LoginManager.clearClassicLoginStatus(); + + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); + + yield LoginManager.performCredentialsLogin(username, password, classicChallenge, TAUID, TOKEN, soPass); + return; + } + } + + yield LoginManager.clearClassicLoginStatus(); + + if (soPass && TOKEN && !password) { + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[25]).tabs.login + }); + } } } - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); }); - function performCredentialsLogin(_x16, _x17, _x18, _x19, _x20, _x21) { + function performCredentialsLogin(_x14, _x15, _x16, _x17, _x18, _x19) { return _performCredentialsLogin.apply(this, arguments); } @@ -268898,13 +264121,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var forceAutoLogin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - if (!_$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isOnline()) { + if (!_$$_REQUIRE(_dependencyMap[20]).NetworkUtils.isOnline()) { return; } - var _global$getActivePSet9 = global.getActivePSetup(), - loginStatus = _global$getActivePSet9.loginStatus, - isAllowedIP = _global$getActivePSet9.isAllowedIP; + var _global$getActivePSet8 = global.getActivePSetup(), + loginStatus = _global$getActivePSet8.loginStatus, + isAllowedIP = _global$getActivePSet8.isAllowedIP; var username = loginStatus.username, password = loginStatus.password, @@ -268914,7 +264137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var soPass = (_global$getNewsmemory2 = global.getNewsmemoryConfig()) == null ? undefined : _global$getNewsmemory2.soPass; var credentialsPresent = !!username || !!password || !!TOKEN; - var validEPaperTAUIDPresent = _$$_REQUIRE(_dependencyMap[23]).LoginStatus.isValidTAUID(TAUID); + var validEPaperTAUIDPresent = _$$_REQUIRE(_dependencyMap[22]).LoginStatus.isValidTAUID(TAUID); var asynchronousCall = validEPaperTAUIDPresent && credentialsPresent; @@ -268941,16 +264164,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e forceAutoLogin = true; } } else if (!validEPaperTAUIDPresent && !credentialsPresent) { - var _yield$LoginManager$c = yield LoginManager.checkClassicUdbLoginStatus(); + var _yield$LoginManager$c3 = yield LoginManager.checkClassicUdbLoginStatus(); - username = _yield$LoginManager$c.username; - password = _yield$LoginManager$c.password; - TOKEN = _yield$LoginManager$c.TOKEN; - TAUID = _yield$LoginManager$c.TAUID; - challenge = _yield$LoginManager$c.challenge; + username = _yield$LoginManager$c3.username; + password = _yield$LoginManager$c3.password; + TOKEN = _yield$LoginManager$c3.TOKEN; + TAUID = _yield$LoginManager$c3.TAUID; + challenge = _yield$LoginManager$c3.challenge; + LoginManager.clearClassicLoginStatus(); - if (_$$_REQUIRE(_dependencyMap[23]).LoginStatus.isValidTAUID(TAUID)) { + if (_$$_REQUIRE(_dependencyMap[22]).LoginStatus.isValidTAUID(TAUID)) { forceAutoLogin = true; + loginStatus.updateTAUID(TAUID); + loginStatus.updateToken(TOKEN); + loginStatus.updateChallenge(challenge); + loginStatus.updateUsername(username); + loginStatus.updatePassword(password); } else { if (isAllowedIP) { var allowIP = yield LoginManager.checkAllowedIP(); @@ -268981,10 +264210,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _triggerRestart = (0, _asyncToGenerator2.default)(function* () { var _global$getNewsmemory3; - yield (0, _$$_REQUIRE(_dependencyMap[27]).createPendingOperationPromise)(); + yield (0, _$$_REQUIRE(_dependencyMap[26]).createPendingOperationPromise)(); (_global$getNewsmemory3 = global.getNewsmemoryConfig()) == null ? undefined : _global$getNewsmemory3.setLastOperationTimestamp(); - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.TRIGGER_NEWSMEMORY_RESTART, { + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.TRIGGER_NEWSMEMORY_RESTART, { loginFailed: true }); }); @@ -269006,13 +264235,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } - if (!_$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isOnline()) { + if (!_$$_REQUIRE(_dependencyMap[20]).NetworkUtils.isOnline()) { return; } - var _global$getActivePSet10 = global.getActivePSetup(), - protectSite = _global$getActivePSet10.protectSite, - timeLimitCheckLogin = _global$getActivePSet10.timeLimitCheckLogin; + var _global$getActivePSet9 = global.getActivePSetup(), + protectSite = _global$getActivePSet9.protectSite, + timeLimitCheckLogin = _global$getActivePSet9.timeLimitCheckLogin; if (protectSite === 0) { return; @@ -269030,9 +264259,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } catch (e) {} - (0, _$$_REQUIRE(_dependencyMap[24]).addDebugOperation)("LoginManager", "credentials autologin start"); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("LoginManager", "credentials autologin start"); yield LoginManager.credentialsLogin(forceAutoLogin || timeLimitCheckLoginExpired); - (0, _$$_REQUIRE(_dependencyMap[24]).addDebugOperation)("LoginManager", "credentials autologin end"); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("LoginManager", "credentials autologin end"); }); function recheckLogin() { @@ -269041,42 +264270,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return recheckLogin; }() - }, { - key: "checkClassicFavorites", - value: function () { - var _checkClassicFavorites = (0, _asyncToGenerator2.default)(function* () { - var result = []; - - if (yield LoginManager.databaseExists()) { - var query = "SELECT * FROM favorites"; - - try { - var response = yield LoginManager.openTransaction(query, []); - - if ((response == null ? undefined : response.length) > 0) { - response.forEach(function (pub) { - result.push(new _Publication.default(pub)); - }); - } - - yield LoginManager.closeDatabase(); - } catch (e) {} - } - - return result; - }); - - function checkClassicFavorites() { - return _checkClassicFavorites.apply(this, arguments); - } - - return checkClassicFavorites; - }() }, { key: "isAdFree", value: function isAdFree() { - var _global$getActivePSet11 = global.getActivePSetup(), - loginStatus = _global$getActivePSet11.loginStatus; + var _global$getActivePSet10 = global.getActivePSetup(), + loginStatus = _global$getActivePSet10.loginStatus; return (loginStatus == null ? undefined : loginStatus.isAdFree()) || _PaywallLoginStatus.default.isAdFree(); } @@ -269086,7 +264284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _checkAllowedIP = (0, _asyncToGenerator2.default)(function* () { var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); - if (!_$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isOnline()) { + if (!_$$_REQUIRE(_dependencyMap[20]).NetworkUtils.isOnline()) { return false; } @@ -269098,14 +264296,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (isAllowedIP && !loginStatus.isLoggedIn()) { - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_STARTED); var _yield$LoginManager$a = yield LoginManager.autoLogin(), userid = _yield$LoginManager$a.userid; - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); + _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_LOGIN_CHECK_ENDED); - if (!_$$_REQUIRE(_dependencyMap[23]).LoginStatus.isValidTAUID(userid)) { + if (!_$$_REQUIRE(_dependencyMap[22]).LoginStatus.isValidTAUID(userid)) { return false; } @@ -269132,8 +264330,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "resetAllowedIP", value: function () { var _resetAllowedIP = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet12 = global.getActivePSetup(), - loginStatus = _global$getActivePSet12.loginStatus; + var _global$getActivePSet11 = global.getActivePSetup(), + loginStatus = _global$getActivePSet11.loginStatus; loginStatus.updateTAUID("-1"); loginStatus.setIsAllowedIPUser(false); @@ -269150,9 +264348,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getLoginConfigValue", value: function () { var _getLoginConfigValue = (0, _asyncToGenerator2.default)(function* (key) { - var _global$getActivePSet13 = global.getActivePSetup(), - loginStatus = _global$getActivePSet13.loginStatus, - udb = _global$getActivePSet13.udb; + var _global$getActivePSet12 = global.getActivePSetup(), + loginStatus = _global$getActivePSet12.loginStatus, + udb = _global$getActivePSet12.udb; if (key.startsWith(udb)) { return loginStatus.getValue(key.replace(udb + "_", "")); @@ -269167,7 +264365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; }); - function getLoginConfigValue(_x25) { + function getLoginConfigValue(_x23) { return _getLoginConfigValue.apply(this, arguments); } @@ -269181,7 +264379,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _LoginManager = LoginManager; LoginManager.database = new _Database.default(_LoginManager.getClassicDatabaseFilePath()); -},2056,[3,270,6,7,11,13,14,61,2057,436,1910,2049,1918,1912,566,1724,859,406,869,1864,1900,438,2058,868,815,564,878,2059]); +},2040,[3,270,6,7,11,13,14,61,2041,436,1998,2032,2005,2000,566,862,406,872,1869,2042,438,2048,871,818,564,881,2049]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -269256,7 +264454,1735 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = 0; i < functions.length; i++) { module.exports[functions[i]] = CookieManager[functions[i]]; } -},2057,[3,270,18,31]); +},2041,[3,270,18,31]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.sendNewsmemoryZoom = exports.sendNewsmemoryTranslate = exports.sendNewsmemoryToogleArticleModeEvent = exports.sendNewsmemoryToggleFullscreenEvent = exports.sendNewsmemoryThumbnails = exports.sendNewsmemoryTTSEvent = exports.sendNewsmemoryShareEvent = exports.sendNewsmemorySectionIndex = exports.sendNewsmemoryScrollZoomedEvent = exports.sendNewsmemoryScroll = exports.sendNewsmemoryRotateEvent = exports.sendNewsmemoryPrintEvent = exports.sendNewsmemoryPinchToZoomEvent = exports.sendNewsmemoryOptionspage = exports.sendNewsmemoryLoginEvent = exports.sendNewsmemoryIndex = exports.sendNewsmemoryGraphSizeChangeEvent = exports.sendNewsmemoryGoToLastPageEvent = exports.sendNewsmemoryGallery = exports.sendNewsmemoryFontSizeChangeEvent = exports.sendNewsmemoryExtraYoutube = exports.sendNewsmemoryExtraVideo = exports.sendNewsmemoryExtraUrl = exports.sendNewsmemoryEditionLoad = exports.sendNewsmemoryDownloadPDFEvent = exports.sendNewsmemoryDownloadIpaddb = exports.sendNewsmemoryDoubleTapToZoomEvent = exports.sendNewsmemoryClearRecently = exports.sendNewsmemoryArticleGallery = exports.sendNewsmemoryArticleClickThrough = exports.sendNewsmemoryArticle = undefined; + exports.trackNewsmemoryRoute = trackNewsmemoryRoute; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _pageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _excluded = ["action", "event"]; + + function getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel) { + if (editionModel) { + var paper = editionModel.getPaper(); + var issue = editionModel.getIssue(); + var edition = editionModel.getEdition(); + var page; + var section; + var isFirstPage; + + if (pageModel) { + page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + section = pageModel.getSection(); + var firstPage = editionModel.getFirstPage(); + isFirstPage = _pageUtils.default.comparePages(firstPage, pageModel); + } + + return { + paper: paper, + issue: issue, + edition: edition, + page: page, + section: section, + isFirstPage: isFirstPage + }; + } + + return {}; + } + + function trackSessionAction(params) { + var _global$getActivePSet = global.getActivePSetup(), + enableSessionCollection = _global$getActivePSet.enableSessionCollection; + + if (enableSessionCollection) { + var action = params.action, + event = params.event, + rest = (0, _objectWithoutProperties2.default)(params, _excluded); + var paper = rest.paper, + edition = rest.edition, + issue = rest.issue; + + if (paper && edition && issue) { + _$$_REQUIRE(_dependencyMap[6]).NewspaperSessionManager.addAction(action, rest); + } + } + } + + function trackSessionRoute(route, params) { + var _global$getActivePSet2 = global.getActivePSetup(), + enableSessionCollection = _global$getActivePSet2.enableSessionCollection; + + if (enableSessionCollection) { + var paper = params.paper, + edition = params.edition, + issue = params.issue; + + if (paper && edition && issue) { + _$$_REQUIRE(_dependencyMap[6]).NewspaperSessionManager.addRoute(route, params); + } + } + } + + function trackNewsmemoryRoute(route, editionModel) { + trackSessionRoute(route, getNewsmemoryAnalyticsDefaultParams(editionModel)); + } + + function sendNewsmemoryAnalytics(params) { + try { + var _screenMapping = (0, _$$_REQUIRE(_dependencyMap[7]).screenMapping)(params), + screen = _screenMapping.screen, + event = _screenMapping.event, + firebaseScreenView = _screenMapping.firebaseScreenView, + remp = _screenMapping.remp; + + if (firebaseScreenView) { + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseScreen)(firebaseScreenView, screen, params); + } + + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)(event); + (0, _$$_REQUIRE(_dependencyMap[8]).trackScreen)(screen, params); + trackSessionAction(Object.assign({}, params, { + action: params.event + })); + + if (remp) { + (0, _$$_REQUIRE(_dependencyMap[8]).trackRempAccount)(remp); + } + } catch (e) {} + } + + function getArticleTitle(article) { + var title = ""; + + if (article) { + var type = article.getType(); + + var decodedTitle = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeURIComponent(article.getTitle()); + + title = type && type.toLowerCase() === "editorial" ? decodedTitle : type; + } + + return title; + } + + var sendNewsmemoryClearRecently = exports.sendNewsmemoryClearRecently = function sendNewsmemoryClearRecently() { + (0, _$$_REQUIRE(_dependencyMap[8]).clearRecently)(); + }; + + var sendNewsmemoryShareEvent = exports.sendNewsmemoryShareEvent = function sendNewsmemoryShareEvent(editionModel, pageModel, article, sharedApp) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var article_id = article ? article.getXmlId() : -1; + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SHARE; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_share", + action: action, + remp: encodeURIComponent(article_id), + article_id: article_id, + type: type, + title: title, + platform: sharedApp, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + article: article_id, + sharedApp: sharedApp + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryLoginEvent = exports.sendNewsmemoryLoginEvent = function sendNewsmemoryLoginEvent(action) { + var category = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.LOGIN; + + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)({ + category: category, + action: action, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_login", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)({ + action: action + }) + }); + }; + + var sendNewsmemoryTTSEvent = exports.sendNewsmemoryTTSEvent = function sendNewsmemoryTTSEvent(action, editionModel, pageModel, article) { + var category = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TTS; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var params = Object.assign({ + category: category, + action: action, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + title: title, + type: type + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_tts", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)({ + action: action + }) + }); + trackSessionAction(params); + }; + + var sendNewsmemoryTranslate = exports.sendNewsmemoryTranslate = function sendNewsmemoryTranslate(language, editionModel, pageModel, article) { + try { + var TRANSLATE = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TRANSLATE; + + var params = Object.assign({ + category: TRANSLATE, + action: TRANSLATE + "_" + language, + label: article.getTitle(), + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_translate", + customParams: Object.assign({ + language: language + }, (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)({ + action: TRANSLATE + })) + }); + trackSessionAction(params); + } catch (e) {} + }; + + var sendNewsmemoryGoToLastPageEvent = exports.sendNewsmemoryGoToLastPageEvent = function sendNewsmemoryGoToLastPageEvent(editionModel, pageModel) { + var category = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SKIP_TO_END; + + var commonParams = Object.assign({ + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ + category: category, + action: pageModel.getPage() + }, commonParams)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_go_to_last_page", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)(Object.assign({ + action: category + }, commonParams)) + }); + trackSessionAction(Object.assign({ + action: "go_to_last_page" + }, commonParams)); + }; + + var sendNewsmemoryToogleArticleModeEvent = exports.sendNewsmemoryToogleArticleModeEvent = function sendNewsmemoryToogleArticleModeEvent(action, editionModel, pageModel, article) { + var TOGGLE_TO_PRINT = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_TO_PRINT, + TOGGLE_TO_DIGITAL = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_TO_DIGITAL; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + + var isTextMode = action === _$$_REQUIRE(_dependencyMap[10]).NewsmemoryArticleModes.TEXT; + + var params = Object.assign({ + category: isTextMode ? TOGGLE_TO_DIGITAL : TOGGLE_TO_PRINT, + action: action, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + type: type, + title: title + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(params); + var customEvent = isTextMode ? "epaper_article_toggle_text" : "epaper_article_toggle_graphic"; + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: customEvent, + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)(params) + }); + trackSessionAction(Object.assign({}, params, { + action: customEvent + })); + }; + + var sendNewsmemoryFontSizeChangeEvent = exports.sendNewsmemoryFontSizeChangeEvent = function sendNewsmemoryFontSizeChangeEvent(action, scale, editionModel, pageModel, article) { + var FONT_SCALE = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.FONT_SCALE; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var params = Object.assign({ + category: FONT_SCALE, + action: action, + label: scale, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + type: type, + title: title + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryGraphSizeChangeEvent = exports.sendNewsmemoryGraphSizeChangeEvent = function sendNewsmemoryGraphSizeChangeEvent(action, scale, editionModel, pageModel, article) { + var GRAPH_SIZE = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.GRAPH_SIZE; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var params = Object.assign({ + category: GRAPH_SIZE, + action: action, + label: scale, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + type: type, + title: title + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryToggleFullscreenEvent = exports.sendNewsmemoryToggleFullscreenEvent = function sendNewsmemoryToggleFullscreenEvent(active, editionModel, pageModel, article) { + var TOGGLE_FULLSCREEN = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.TOGGLE_FULLSCREEN; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var params = Object.assign({ + category: TOGGLE_FULLSCREEN, + action: active ? "epaper_article_fullscreen" : "epaper_article_half_screen", + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + type: type, + title: title + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryPrintEvent = exports.sendNewsmemoryPrintEvent = function sendNewsmemoryPrintEvent(editionModel, pageModel, article) { + var PRINT = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.PRINT; + + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var params = Object.assign({ + category: PRINT, + action: PRINT, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper", + type: type, + title: title + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryDownloadPDFEvent = exports.sendNewsmemoryDownloadPDFEvent = function sendNewsmemoryDownloadPDFEvent(editionModel, pageModel) { + var DOWNLOAD_PDF = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.DOWNLOAD_PDF; + + var params = Object.assign({ + category: DOWNLOAD_PDF, + action: DOWNLOAD_PDF, + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryRotateEvent = exports.sendNewsmemoryRotateEvent = function sendNewsmemoryRotateEvent(orietation, editionModel) { + var ROTATE = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.ROTATE; + + var params = Object.assign({ + category: ROTATE, + action: ROTATE + "_" + orietation.toLowerCase(), + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel)); + trackSessionAction(params); + }; + + var sendNewsmemoryDoubleTapToZoomEvent = exports.sendNewsmemoryDoubleTapToZoomEvent = function sendNewsmemoryDoubleTapToZoomEvent(editionModel, pageModel) { + var DOUBLE_TAP_TO_ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.DOUBLE_TAP_TO_ZOOM; + + var ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM; + + var commonParams = Object.assign({ + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ + category: DOUBLE_TAP_TO_ZOOM, + action: ZOOM + }, commonParams)); + var params = Object.assign({ + action: DOUBLE_TAP_TO_ZOOM + }, commonParams); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_double_tap_to_zoom", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)(params) + }); + trackSessionAction(params); + }; + + var sendNewsmemoryPinchToZoomEvent = exports.sendNewsmemoryPinchToZoomEvent = function sendNewsmemoryPinchToZoomEvent(editionModel, pageModel, scale) { + var PINCH_TO_ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.PINCH_TO_ZOOM; + + var ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM; + + var commonParams = Object.assign({ + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + scale: scale + }); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ + category: PINCH_TO_ZOOM, + action: ZOOM + }, commonParams)); + var params = Object.assign({ + action: PINCH_TO_ZOOM + }, commonParams); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_pinch_to_zoom", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)(params) + }); + trackSessionAction(params); + }; + + var sendNewsmemoryScrollZoomedEvent = exports.sendNewsmemoryScrollZoomedEvent = function sendNewsmemoryScrollZoomedEvent(editionModel, pageModel, areas) { + var SCROLL_ZOOMED = _$$_REQUIRE(_dependencyMap[10]).analyticsEventTypes.SCROLL_ZOOMED; + + var ZOOM = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM; + + var commonParams = Object.assign({ + device: (0, _$$_REQUIRE(_dependencyMap[11]).gaBreakout)(), + appMode: "ePaper" + }, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + areas: areas + }); + (0, _$$_REQUIRE(_dependencyMap[8]).trackEvent)(Object.assign({ + category: SCROLL_ZOOMED, + action: ZOOM + }, commonParams)); + var params = Object.assign({ + action: SCROLL_ZOOMED + }, commonParams); + var screen = (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)(Object.assign({ + type: ZOOM + }, commonParams)); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseScreen)(_$$_REQUIRE(_dependencyMap[10]).firebaseAnalyticsScreenNames.ZOOM, screen, params); + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "epaper_scroll_zoomed", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)(params) + }); + trackSessionAction(params); + }; + + var sendNewsmemoryArticle = exports.sendNewsmemoryArticle = function sendNewsmemoryArticle(editionModel, pageModel, article, mode) { + try { + var _pageModel$getSection; + + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var article_id = article.getXmlId(); + var type = article ? article.getType() : ""; + var title = getArticleTitle(article); + var section = (_pageModel$getSection = pageModel.getSection()) != null ? _pageModel$getSection : ""; + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.READ; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_read_article", + action: action, + remp: encodeURIComponent(article_id), + article_id: article_id, + type: type, + title: title, + section: section, + mode: mode, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + article: article_id, + title: title + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryZoom = exports.sendNewsmemoryZoom = function sendNewsmemoryZoom(editionModel, pageModel, scale) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ZOOM; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_zoom", + action: action, + remp: encodeURIComponent(pageModel.getPageId()), + zoom: scale, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryScroll = exports.sendNewsmemoryScroll = function sendNewsmemoryScroll(editionModel, pageModel, isZoomed) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SCROLLED; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_scroll", + action: action, + remp: encodeURIComponent(pageModel.getPageId()), + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page + }), + isZoomed: isZoomed + })); + } catch (e) {} + }; + + var sendNewsmemoryDownloadIpaddb = exports.sendNewsmemoryDownloadIpaddb = function sendNewsmemoryDownloadIpaddb(paper, issue, edition, speed) { + try { + (0, _$$_REQUIRE(_dependencyMap[8]).trackCustomFirebaseEvent)({ + customEvent: "download_epaper_db", + customParams: (0, _$$_REQUIRE(_dependencyMap[11]).mapParamsToFirebaseCustomDimensions)({ + issue: issue, + edition: edition + }) + }); + trackSessionAction({ + action: "download_db", + paper: paper, + issue: issue, + edition: edition, + speed: speed + }); + } catch (e) {} + }; + + var sendNewsmemoryIndex = exports.sendNewsmemoryIndex = function sendNewsmemoryIndex(editionModel) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.INDEX; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel), { + event: "epaper_index", + action: action, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition + }) + })); + } catch (e) {} + }; + + var sendNewsmemorySectionIndex = exports.sendNewsmemorySectionIndex = function sendNewsmemorySectionIndex(editionModel, pageModel) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.SECTION_INDEX; + + var params = getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel); + sendNewsmemoryAnalytics(Object.assign({}, params, { + event: "epaper_section_index", + action: action, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + section: params.section + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryOptionspage = exports.sendNewsmemoryOptionspage = function sendNewsmemoryOptionspage(tab, title) { + try { + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.OPTIONSPAGE; + + sendNewsmemoryAnalytics({ + event: "epaper_optionspage", + action: action, + tab: tab, + section: title, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + page: tab + }) + }); + } catch (e) {} + }; + + var sendNewsmemoryThumbnails = exports.sendNewsmemoryThumbnails = function sendNewsmemoryThumbnails(editionModel) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.THUMBS; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel), { + event: "epaper_thumbs", + action: action, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryGallery = exports.sendNewsmemoryGallery = function sendNewsmemoryGallery(title, image, index, editionModel, pageModel) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.GALLERY; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_enrichment_gallery", + action: action, + type: "image", + gallery_id: title, + id: image, + index: index, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + title: title, + id: image, + index: index + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryArticleGallery = exports.sendNewsmemoryArticleGallery = function sendNewsmemoryArticleGallery(index, editionModel, pageModel, article) { + try { + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var article_id = article.getXmlId(); + var title = getArticleTitle(article); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ARTICLE_GALLERY; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_article_gallery", + action: action, + type: "image", + article_id: article_id, + title: title, + index: index, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + article: article_id, + title: title, + index: index + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryExtraYoutube = exports.sendNewsmemoryExtraYoutube = function sendNewsmemoryExtraYoutube(url, editionModel, pageModel) { + try { + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[9]).StringUtils.segmentUrl(url), + getParams = _StringUtils$segmentU.getParams; + + var id = getParams.v; + + if (id === undefined) { + var regExp = new RegExp(/(?:http?s?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:(?:watch\?v=)|(?:v\/))+([^&]+)/g); + var m; + + while ((m = regExp.exec(url)) !== null) { + id = m[1]; + break; + } + } + + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.VIDEO; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_enrichment_video", + action: action, + type: "youtube", + url: url, + video_id: id, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + id: id + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryExtraVideo = exports.sendNewsmemoryExtraVideo = function sendNewsmemoryExtraVideo(url, editionModel, pageModel) { + try { + var id = _$$_REQUIRE(_dependencyMap[9]).StringUtils.getLastPathSegment(url); + + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.VIDEO; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_enrichment_video", + action: action, + type: "video", + url: url, + video_id: id, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + id: id + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryExtraUrl = exports.sendNewsmemoryExtraUrl = function sendNewsmemoryExtraUrl(url, editionModel, pageModel) { + try { + var analyticsUrl = url.replace(/\//g, "|"); + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.PAGE_CLICK; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_page_clickthrough", + action: action, + url: url, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + url: analyticsUrl + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryArticleClickThrough = exports.sendNewsmemoryArticleClickThrough = function sendNewsmemoryArticleClickThrough(editionModel, pageModel, article, url) { + try { + var analyticsUrl = url.replace(/\//g, "|"); + var issue = editionModel.getIssue(); + + var edition = _$$_REQUIRE(_dependencyMap[9]).StringUtils.decodeHTML(editionModel.getEdition()); + + var page = _pageUtils.default.removeZerosFromPageNumber(pageModel.getPage()); + + var article_id = article.getXmlId(); + var title = getArticleTitle(article); + + var action = _$$_REQUIRE(_dependencyMap[10]).analyticsScreenTypes.ARTICLE_CLICK; + + sendNewsmemoryAnalytics(Object.assign({}, getNewsmemoryAnalyticsDefaultParams(editionModel, pageModel), { + event: "epaper_article_clickthrough", + action: action, + remp: encodeURIComponent(article_id), + article_id: article_id, + title: title, + url: url, + screen: (0, _$$_REQUIRE(_dependencyMap[11]).getScreenString)({ + type: action, + issue: issue, + edition: edition, + page: page, + article: article_id, + title: title, + url: analyticsUrl + }) + })); + } catch (e) {} + }; + + var sendNewsmemoryEditionLoad = exports.sendNewsmemoryEditionLoad = function sendNewsmemoryEditionLoad(edition, page) { + var _global$getActivePSet3 = global.getActivePSetup(), + adobeAnalyticsEnabled = _global$getActivePSet3.adobeAnalyticsEnabled, + adobeAnalyticsConfig = _global$getActivePSet3.adobeAnalyticsConfig; + + if (adobeAnalyticsEnabled && adobeAnalyticsConfig) { + (0, _$$_REQUIRE(_dependencyMap[8]).resetAdobeAnalyticsFirstScrolledSent)(); + var params = getNewsmemoryAnalyticsDefaultParams(edition, page); + (0, _$$_REQUIRE(_dependencyMap[8]).trackADBMobileAction)(adobeAnalyticsConfig.editionLoadActionName, params); + } + }; +},2042,[3,4,668,667,671,859,2043,2047,1998,438,2003,2002]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NewspaperSessionManager = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _NewspaperSession = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var NewspaperSessionManagerSingleton = function (_SessionManagerSingle) { + function NewspaperSessionManagerSingleton() { + (0, _classCallCheck2.default)(this, NewspaperSessionManagerSingleton); + return _callSuper(this, NewspaperSessionManagerSingleton, arguments); + } + + (0, _inherits2.default)(NewspaperSessionManagerSingleton, _SessionManagerSingle); + return (0, _createClass2.default)(NewspaperSessionManagerSingleton, [{ + key: "startSession", + value: function startSession(_ref) { + var paper = _ref.paper, + edition = _ref.edition, + issue = _ref.issue; + this.activeKey = this.getSessionKey(); + var session = new _NewspaperSession.default(paper, edition, issue); + this.storeSession(this.activeKey, session); + return session; + } + }, { + key: "parseSession", + value: function parseSession(rawSession) { + try { + var _JSON$parse = JSON.parse(rawSession), + paper = _JSON$parse.paper, + edition = _JSON$parse.edition, + issue = _JSON$parse.issue, + startTime = _JSON$parse.startTime, + rawActions = _JSON$parse.actions, + rawNavigation = _JSON$parse.navigation; + + var actions = rawActions.map(function (rawAction) { + var _JSON$parse2 = JSON.parse(rawAction), + name = _JSON$parse2.name, + params = _JSON$parse2.params, + time = _JSON$parse2.time; + + return new (_$$_REQUIRE(_dependencyMap[8]).Action)(name, params, time); + }); + var routes = rawNavigation.map(function (rawRoute) { + var route = rawRoute.route, + time = rawRoute.time; + return new (_$$_REQUIRE(_dependencyMap[8]).Route)(route, time); + }); + return new _NewspaperSession.default(paper, edition, issue, actions, routes, startTime); + } catch (e) {} + + return undefined; + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).SessionManagerSingleton); + + var NewspaperSessionManager = exports.NewspaperSessionManager = function () { + function NewspaperSessionManager() { + (0, _classCallCheck2.default)(this, NewspaperSessionManager); + } + + return (0, _createClass2.default)(NewspaperSessionManager, null, [{ + key: "init", + value: function init() { + NewspaperSessionManager.instance = new NewspaperSessionManagerSingleton(); + NewspaperSessionManager.instance.load(); + } + }, { + key: "getInstance", + value: function getInstance() { + if (NewspaperSessionManager.instance === undefined) { + NewspaperSessionManager.init(); + } + + return NewspaperSessionManager.instance; + } + }, { + key: "addAction", + value: function addAction(name, params) { + NewspaperSessionManager.getInstance().addAction(name, params); + } + }, { + key: "addRoute", + value: function addRoute(route, params) { + NewspaperSessionManager.getInstance().addRoute(route, params); + } + }, { + key: "getActiveSessionReport", + value: function getActiveSessionReport() { + return NewspaperSessionManager.getInstance().getActiveSessionReport(); + } + }, { + key: "getActiveSessionString", + value: function getActiveSessionString() { + return NewspaperSessionManager.getInstance().getActiveSessionString(); + } + }, { + key: "flushActiveSession", + value: function () { + var _flushActiveSession = (0, _asyncToGenerator2.default)(function* () { + return NewspaperSessionManager.getInstance().flushSession(); + }); + + function flushActiveSession() { + return _flushActiveSession.apply(this, arguments); + } + + return flushActiveSession; + }() + }, { + key: "storeActiveSessionToFile", + value: function () { + var _storeActiveSessionToFile = (0, _asyncToGenerator2.default)(function* () { + return NewspaperSessionManager.getInstance().storeActiveSessionToFile(); + }); + + function storeActiveSessionToFile() { + return _storeActiveSessionToFile.apply(this, arguments); + } + + return storeActiveSessionToFile; + }() + }]); + }(); +},2043,[3,270,6,7,11,13,14,2044,866,2045]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _Session2 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var NewspaperSession = exports.default = function (_Session) { + function NewspaperSession(paper, edition, issue) { + var _this; + + var actions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + var routes = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; + var time = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : new Date().getTime(); + (0, _classCallCheck2.default)(this, NewspaperSession); + _this = _callSuper(this, NewspaperSession, [actions, routes, time]); + _this.paper = paper; + _this.edition = edition; + _this.issue = issue; + return _this; + } + + (0, _inherits2.default)(NewspaperSession, _Session); + return (0, _createClass2.default)(NewspaperSession, [{ + key: "getPaperInfo", + value: function getPaperInfo() { + return { + paper: this.paper, + edition: this.edition, + issue: this.issue + }; + } + }, { + key: "getOtherInfo", + value: function getOtherInfo() { + var otherInfo = {}; + var downloadAction = this.actions.find(function (action) { + return action.getName() === "download_db"; + }); + + if (downloadAction) { + var _downloadAction$getPa = downloadAction.getParams(), + speed = _downloadAction$getPa.speed; + + if (speed) { + otherInfo.downloadSpeed = speed; + } + } + + return otherInfo; + } + }, { + key: "getReport", + value: function getReport() { + var paperInfo = this.getPaperInfo(); + var otherInfo = this.getOtherInfo(); + return Object.assign({}, (0, _get2.default)((0, _getPrototypeOf2.default)(NewspaperSession.prototype), "getReport", this).call(this), paperInfo, otherInfo); + } + }, { + key: "getFullReport", + value: function getFullReport() { + var paperInfo = this.getPaperInfo(); + var otherInfo = this.getOtherInfo(); + return Object.assign({}, (0, _get2.default)((0, _getPrototypeOf2.default)(NewspaperSession.prototype), "getFullReport", this).call(this), paperInfo, otherInfo); + } + }, { + key: "toString", + value: function toString() { + return "{\"paper\": \"" + this.paper + "\", \"edition\": \"" + this.edition + "\", \"issue\": \"" + this.issue + "\", \"startTime\": " + this.startTime + ", \"startOrientation\": \"" + this.startOrientation + "\", \"actions\": " + JSON.stringify(this.actions.map(function (action) { + return action.toString(); + })) + ", \"navigation\": " + JSON.stringify(this.navigation.map(function (route) { + return route.toString(); + })) + "}"; + } + }]); + }(_Session2.default); +},2044,[3,6,7,11,85,13,14,866]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.SessionManagerSingleton = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _Session = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _SessionHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + var SessionManagerSingleton = exports.SessionManagerSingleton = function () { + function SessionManagerSingleton() { + (0, _classCallCheck2.default)(this, SessionManagerSingleton); + this.sessions = {}; + } + + return (0, _createClass2.default)(SessionManagerSingleton, [{ + key: "load", + value: function () { + var _load = (0, _asyncToGenerator2.default)(function* () { + var _this = this; + + var allSessions = yield _SessionHelper.default.getAllItems(); + + if (allSessions) { + var sessionsToSend = Object.keys(allSessions).reduce(function (current, sessionKey) { + var session = _this.parseSession(allSessions[sessionKey]); + + if (session) { + current[sessionKey] = session; + } else { + _SessionHelper.default.removeItem(sessionKey); + } + + return current; + }, {}); + Object.keys(sessionsToSend).forEach(function (key) { + return _this.flushSession(key); + }); + } + }); + + function load() { + return _load.apply(this, arguments); + } + + return load; + }() + }, { + key: "getSessionKey", + value: function getSessionKey() { + return _$$_REQUIRE(_dependencyMap[8]).StringUtils.getRandomHash(); + } + }, { + key: "startSession", + value: function startSession() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.activeKey = this.getSessionKey(); + var session = new _Session.default(); + this.storeSession(this.activeKey, session); + return session; + } + }, { + key: "getActiveSession", + value: function getActiveSession(params) { + return this.activeKey && this.sessions[this.activeKey] ? this.sessions[this.activeKey] : this.startSession(params); + } + }, { + key: "addAction", + value: function addAction(name, params) { + var activeSession = this.getActiveSession(params); + activeSession.addAction(name, params); + this.storeSession(this.activeKey, activeSession); + } + }, { + key: "addRoute", + value: function addRoute(name, params) { + var activeSession = this.getActiveSession(params); + activeSession.addRoute(name); + this.storeSession(this.activeKey, activeSession); + } + }, { + key: "storeSession", + value: function storeSession(key, session) { + if (key) { + this.sessions[key] = session; + + _SessionHelper.default.setItem(key, session.toString()); + } + } + }, { + key: "retrieveSession", + value: function () { + var _retrieveSession = (0, _asyncToGenerator2.default)(function* () { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + + if (key) { + var session = this.sessions[key] || (yield _SessionHelper.default.getItem(key)); + return session; + } + + return undefined; + }); + + function retrieveSession() { + return _retrieveSession.apply(this, arguments); + } + + return retrieveSession; + }() + }, { + key: "clearSession", + value: function clearSession() { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + + if (key) { + this.sessions[key] = undefined; + return _SessionHelper.default.removeItem(key); + } + + return false; + } + }, { + key: "uploadSession", + value: function () { + var _uploadSession = (0, _asyncToGenerator2.default)(function* (key, session) { + var _global$getActivePSet = global.getActivePSetup(), + enableSessionAutoUpload = _global$getActivePSet.enableSessionAutoUpload; + + if (session && enableSessionAutoUpload) { + yield _NewsmemoryAJAX.default.uploadSessionReport(key, session); + } + + return false; + }); + + function uploadSession(_x, _x2) { + return _uploadSession.apply(this, arguments); + } + + return uploadSession; + }() + }, { + key: "flushSession", + value: function () { + var _flushSession = (0, _asyncToGenerator2.default)(function* () { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + + if (key) { + var session = this.sessions[key]; + this.clearSession(key); + yield this.uploadSession(key, session); + } + }); + + function flushSession() { + return _flushSession.apply(this, arguments); + } + + return flushSession; + }() + }, { + key: "parseSession", + value: function parseSession(rawSession) { + try { + var _JSON$parse = JSON.parse(rawSession), + startTime = _JSON$parse.startTime, + rawActions = _JSON$parse.actions, + rawNavigation = _JSON$parse.navigation; + + var rawActionArray = JSON.parse(rawActions); + var actions = rawActionArray.map(function (_ref) { + var name = _ref.name, + params = _ref.params, + time = _ref.time; + return new _Session.Action(name, JSON.parse(params), time); + }); + var rawNavigationArray = JSON.parse(rawNavigation); + var routes = rawNavigationArray.map(function (_ref2) { + var name = _ref2.name, + time = _ref2.time; + return new _Session.Route(name, time); + }); + return new _Session.default(actions, routes, startTime); + } catch (e) {} + + return undefined; + } + }, { + key: "getSessionDuration", + value: function getSessionDuration() { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + var session = this.sessions[key]; + return session ? session.getDuration() : 0; + } + }, { + key: "getSessionReport", + value: function getSessionReport() { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + var session = this.sessions[key]; + return session ? session.getReport() : undefined; + } + }, { + key: "getSessionFullReport", + value: function getSessionFullReport() { + var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.activeKey; + var session = this.sessions[key]; + return session ? session.getFullReport() : undefined; + } + }, { + key: "getActiveSessionReport", + value: function getActiveSessionReport() { + return this.getSessionReport(this.activeKey); + } + }, { + key: "getActiveSessionFullReport", + value: function getActiveSessionFullReport() { + return this.getSessionFullReport(this.activeKey); + } + }, { + key: "getActiveSessionString", + value: function getActiveSessionString() { + if (this.activeKey) { + var session = this.sessions[this.activeKey]; + return session ? session.toString() : undefined; + } + + return undefined; + } + }, { + key: "storeActiveSessionToFile", + value: function () { + var _storeActiveSessionToFile = (0, _asyncToGenerator2.default)(function* () { + var fullReport = this.getActiveSessionFullReport(); + + if (fullReport) { + try { + yield _tecnaviaFileUtils.default.mkdir(_tecnaviaFileUtils.default.getDebugDirectory()); + } catch (e) {} + + var filePath = _tecnaviaFileUtils.default.getDebugDirectory() + global.machineId + "_" + this.activeKey + ".json"; + + try { + yield _tecnaviaFileUtils.default.appendFile(filePath, JSON.stringify(fullReport)); + + if (yield _tecnaviaFileUtils.default.exists(filePath)) { + return filePath; + } + } catch (e) {} + } + + return undefined; + }); + + function storeActiveSessionToFile() { + return _storeActiveSessionToFile.apply(this, arguments); + } + + return storeActiveSessionToFile; + }() + }]); + }(); + + var SessionManager = exports.default = function () { + function SessionManager() { + (0, _classCallCheck2.default)(this, SessionManager); + } + + return (0, _createClass2.default)(SessionManager, null, [{ + key: "init", + value: function init() { + SessionManager.instance = new SessionManagerSingleton(); + SessionManager.instance.load(); + } + }, { + key: "getInstance", + value: function getInstance() { + if (SessionManager.instance === undefined) { + SessionManager.init(); + } + + return SessionManager.instance; + } + }, { + key: "addAction", + value: function addAction(name, params) { + SessionManager.getInstance().addAction(name, params); + } + }, { + key: "addRoute", + value: function addRoute(name, params) { + SessionManager.getInstance().addRoute(name, params); + } + }, { + key: "getActiveSessionReport", + value: function getActiveSessionReport() { + return SessionManager.getInstance().getActiveSessionReport(); + } + }, { + key: "getActiveSessionString", + value: function getActiveSessionString() { + return SessionManager.getInstance().getActiveSessionString(); + } + }, { + key: "storeActiveSessionToFile", + value: function () { + var _storeActiveSessionToFile2 = (0, _asyncToGenerator2.default)(function* () { + return SessionManager.getInstance().storeActiveSessionToFile(); + }); + + function storeActiveSessionToFile() { + return _storeActiveSessionToFile2.apply(this, arguments); + } + + return storeActiveSessionToFile; + }() + }]); + }(); +},2045,[3,270,6,7,866,2046,566,406,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var SessionHelper = exports.default = function () { + function SessionHelper() { + (0, _classCallCheck2.default)(this, SessionHelper); + } + + return (0, _createClass2.default)(SessionHelper, null, [{ + key: "getAllItems", + value: function () { + var _getAllItems = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(SessionHelper.SP.name); + }); + + function getAllItems() { + return _getAllItems.apply(this, arguments); + } + + return getAllItems; + }() + }, { + key: "getItem", + value: function () { + var _getItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(SessionHelper.SP.name, key); + }); + + function getItem(_x) { + return _getItem.apply(this, arguments); + } + + return getItem; + }() + }, { + key: "setItem", + value: function () { + var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(SessionHelper.SP.name, key, value); + }); + + function setItem(_x2, _x3) { + return _setItem.apply(this, arguments); + } + + return setItem; + }() + }, { + key: "removeItem", + value: function () { + var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(SessionHelper.SP.name, key); + }); + + function removeItem(_x4) { + return _removeItem.apply(this, arguments); + } + + return removeItem; + }() + }]); + }(); + + SessionHelper.SP = { + name: "sessions" + }; +},2046,[3,270,6,7,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.screenMapping = exports.eventMapping = undefined; + + var mapOnObjRequestedAndValidParams = function mapOnObjRequestedAndValidParams() { + var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var paramsKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var mapped = {}; + + for (var i = 0; i < paramsKey.length; i++) { + var value = obj[paramsKey[i]]; + + if (value === undefined) { + throw new Error("Analytics -> " + paramsKey[i] + " is missing or undefined"); + } else { + mapped[paramsKey[i]] = "" + value; + } + } + + return mapped; + }; + + var mapReadOnEvent = function mapReadOnEvent(params) { + return { + customEvent: "epaper_read_article", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "title", "section"]), { + mode: params.mode || _$$_REQUIRE(_dependencyMap[1]).NewsmemoryArticleModes.TEXT + }) + }; + }; + + var mapZoomOnEvent = function mapZoomOnEvent(params) { + return { + customEvent: "epaper_zoom", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page"])) + }; + }; + + var mapScrolledOnEvent = function mapScrolledOnEvent(params) { + return { + customEvent: "epaper_scroll", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page"])) + }; + }; + + var mapArticleClickThroughOnEvent = function mapArticleClickThroughOnEvent(params) { + return { + customEvent: "epaper_article_clickthrough", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "url"])) + }; + }; + + var mapPageClickThroughOnEvent = function mapPageClickThroughOnEvent(params) { + return { + customEvent: "epaper_page_clickthrough", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "url"])) + }; + }; + + var mapShareOnEvent = function mapShareOnEvent(params) { + return { + customEvent: "epaper_share", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "platform"])) + }; + }; + + var mapGalleryOnEvent = function mapGalleryOnEvent(params) { + return { + customEvent: "epaper_enrichment_gallery", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "gallery_id", "index", "id", "type"])) + }; + }; + + var mapArticleGalleryOnEvent = function mapArticleGalleryOnEvent(params) { + return { + customEvent: "epaper_article_gallery", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "article_id", "title", "index", "type"])) + }; + }; + + var mapVideoOnEvent = function mapVideoOnEvent(params) { + return { + customEvent: "epaper_enrichment_video", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "page", "video_id"]), { + type: params.type || "video" + }) + }; + }; + + var mapIndexOnEvent = function mapIndexOnEvent(params) { + return { + customEvent: "epaper_index", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition"])) + }; + }; + + var mapSectionIndexOnEvent = function mapSectionIndexOnEvent(params) { + return { + customEvent: "epaper_section_index", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition", "section"])) + }; + }; + + var mapOptionspageOnEvent = function mapOptionspageOnEvent(params) { + return { + customEvent: "epaper_optionspage", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["tab"])) + }; + }; + + var mapThumbnailsOnEvent = function mapThumbnailsOnEvent(params) { + return { + customEvent: "epaper_thumbs", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[0]).mapParamsToFirebaseCustomDimensions)(params), mapOnObjRequestedAndValidParams(params, ["issue", "edition"])) + }; + }; + + var screenMapping = exports.screenMapping = function screenMapping() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = params.action, + screen = params.screen, + remp = params.remp, + section = params.section, + tab = params.tab; + + if (!action) { + throw new Error("Analytics params is empty"); + } + + if (!screen) { + throw new Error("Analytics screen is empty"); + } + + var result = { + action: action, + screen: _$$_REQUIRE(_dependencyMap[2]).StringUtils.decodeURIComponent(screen), + remp: remp + }; + + try { + var SCROLLED = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SCROLLED, + READ = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.READ, + ZOOM = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ZOOM, + SHARE = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SHARE, + PAGE_CLICK = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.PAGE_CLICK, + ARTICLE_CLICK = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ARTICLE_CLICK, + VIDEO = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.VIDEO, + GALLERY = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.GALLERY, + ARTICLE_GALLERY = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.ARTICLE_GALLERY, + INDEX = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.INDEX, + SECTION_INDEX = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.SECTION_INDEX, + OPTIONSPAGE = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.OPTIONSPAGE, + THUMBS = _$$_REQUIRE(_dependencyMap[1]).analyticsScreenTypes.THUMBS; + + switch (action) { + case READ: + result.event = mapReadOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.READ; + break; + + case ZOOM: + result.event = mapZoomOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.ZOOM; + break; + + case SCROLLED: + result.event = mapScrolledOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.SCROLLED; + break; + + case ARTICLE_CLICK: + result.event = mapArticleClickThroughOnEvent(params); + break; + + case SHARE: + result.event = mapShareOnEvent(params); + break; + + case GALLERY: + result.event = mapGalleryOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.GALLERY; + break; + + case ARTICLE_GALLERY: + result.event = mapArticleGalleryOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.ARTICLE_GALLERY; + break; + + case VIDEO: + result.event = mapVideoOnEvent(params); + break; + + case PAGE_CLICK: + result.event = mapPageClickThroughOnEvent(params); + break; + + case INDEX: + result.event = mapIndexOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.INDEX; + break; + + case SECTION_INDEX: + result.event = mapSectionIndexOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.SECTION_INDEX.replace("##section##", section); + break; + + case OPTIONSPAGE: + result.event = mapOptionspageOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.OPTIONSPAGE.replace("##tab##", tab); + break; + + case THUMBS: + result.event = mapThumbnailsOnEvent(params); + result.firebaseScreenView = _$$_REQUIRE(_dependencyMap[1]).firebaseAnalyticsScreenNames.THUMBS; + break; + } + } catch (e) { + throw e; + } + + return result; + }; + + var eventMapping = exports.eventMapping = function eventMapping(params) { + try { + var category = params.category; + + var SOCIAL_SHARE = _$$_REQUIRE(_dependencyMap[1]).analyticsEventTypes.SOCIAL_SHARE; + + switch (category) { + case SOCIAL_SHARE: + params.socialPlatform = (0, _$$_REQUIRE(_dependencyMap[0]).getShareTypeByApp)(params.socialPlatform); + break; + } + } catch (e) { + throw e; + } + + return params; + }; +},2047,[2002,2003,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -269292,7 +266218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GraphRequest = _OptionalPackages$get2.GraphRequest, GraphRequestManager = _OptionalPackages$get2.GraphRequestManager; - if (!Settings) { + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(Settings)) { var _module = "Facebook Settings"; _$$_REQUIRE(_dependencyMap[3]).Toast.show(global.strings("err_module_unavailable", { @@ -269302,7 +266228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("Missing Facebook Settings module"); } - if (!LoginManager) { + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(LoginManager)) { var _module2 = "Facebook LoginManager"; _$$_REQUIRE(_dependencyMap[3]).Toast.show(global.strings("err_module_unavailable", { @@ -269397,7 +266323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _OptionalPackages$get = _optionalPackageUtils.default.getFacebookSDK(), LoginManager = _OptionalPackages$get.LoginManager; - if (!LoginManager) { + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isNull(LoginManager)) { var module = "Facebook LoginManager"; _$$_REQUIRE(_dependencyMap[3]).Toast.show(global.strings("err_module_unavailable", { @@ -269410,7 +266336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LoginManager.logOut(); return true; } -},2058,[3,270,879,1976,438]); +},2048,[3,270,882,1934,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -269459,7 +266385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pendingOperations.operations -= 1; } }; -},2059,[]); +},2049,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -269519,7 +266445,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2060,[3,270,6,7,2061,2064,2065,2066]); +},2050,[3,270,6,7,2051,2054,2055,2056]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -269551,7 +266477,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(JobConfig, _VerticalConfig); return (0, _createClass2.default)(JobConfig); }(_$$_REQUIRE(_dependencyMap[7]).VerticalConfig); -},2061,[3,7,6,11,13,14,436,2062]); +},2051,[3,7,6,11,13,14,436,2052]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -269750,7 +266676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2062,[3,270,6,7,2063,438,564]); +},2052,[3,270,6,7,2053,438,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { !function (e) { if ("object" == typeof exports) module.exports = e();else if ("function" == typeof define && define.amd) define(e);else { @@ -271080,7 +268006,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] }, {}, [1])(1); }); -},2063,[]); +},2053,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271112,7 +268038,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(RealEstateConfig, _VerticalConfig); return (0, _createClass2.default)(RealEstateConfig); }(_$$_REQUIRE(_dependencyMap[7]).VerticalConfig); -},2064,[3,7,6,11,13,14,436,2062]); +},2054,[3,7,6,11,13,14,436,2052]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271144,7 +268070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(AutoConfig, _VerticalConfig); return (0, _createClass2.default)(AutoConfig); }(_$$_REQUIRE(_dependencyMap[7]).VerticalConfig); -},2065,[3,7,6,11,13,14,436,2062]); +},2055,[3,7,6,11,13,14,436,2052]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271176,7 +268102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(EventsConfig, _VerticalConfig); return (0, _createClass2.default)(EventsConfig); }(_$$_REQUIRE(_dependencyMap[7]).VerticalConfig); -},2066,[3,7,6,11,13,14,436,2062]); +},2056,[3,7,6,11,13,14,436,2052]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271298,7 +268224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2067,[3,270,6,7,2068,1934,2025,438]); +},2057,[3,270,6,7,2058,1892,1985,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271345,7 +268271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2068,[3,270,6,7,2069,2070]); +},2058,[3,270,6,7,2059,2060]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271411,7 +268337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _getDataFromApiResponse.apply(this, arguments); } -},2069,[3,270,407]); +},2059,[3,270,407]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -271488,7 +268414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } -},2070,[2071]); +},2060,[2061]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function DOMParser(options) { this.options = options || { @@ -271712,7 +268638,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.XMLSerializer = _$$_REQUIRE(_dependencyMap[2]).XMLSerializer; exports.DOMParser = DOMParser; exports.__DOMHandler = DOMHandler; -},2071,[2072,2073,2074]); +},2061,[2062,2063,2064]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nameStartChar = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var nameChar = new RegExp("[\\-\\.0-9" + nameStartChar.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"); @@ -272387,7 +269313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.XMLReader = XMLReader; exports.ParseError = ParseError; -},2072,[]); +},2062,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { exports.entityMap = { lt: '<', @@ -272632,7 +269558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hearts: "♥", diams: "♦" }; -},2073,[]); +},2063,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copy(src, dest) { for (var p in src) { @@ -273945,7 +270871,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DOMException = DOMException; exports.DOMImplementation = DOMImplementation; exports.XMLSerializer = XMLSerializer; -},2074,[]); +},2064,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274778,7 +271704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2075,[3,270,6,7,2076,436,2077,2078,2101,2132,438,815,564,812]); +},2065,[3,270,6,7,2066,436,2067,2068,2091,2122,438,818,564,815]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274949,7 +271875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},2076,[3,270,6,7,438]); +},2066,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275032,7 +271958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2077,[3,6,7]); +},2067,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275266,7 +272192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2078,[3,6,7,11,13,14,16,18,2079,2087,2089,2094,2095,434,2097,2099,438,2020,179,2084,1946,2101,1087]); +},2068,[3,6,7,11,13,14,16,18,2069,2077,2079,2084,2085,434,2087,2089,438,1980,179,2074,1904,2091,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275460,7 +272386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2079,[3,6,7,11,13,14,582,16,18,1324,1935,2032,814,2014,2009,2080,2031,2020,817,179,438,2084,1087]); +},2069,[3,6,7,11,13,14,582,16,18,1327,1893,1992,817,1974,1969,2070,1991,1980,820,179,438,2074,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275772,7 +272698,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2080,[3,6,7,11,13,14,582,16,18,1935,2081,814,588,2009,438,817,179,2011,2082,1939,1087]); +},2070,[3,6,7,11,13,14,582,16,18,1893,2071,817,588,1969,438,820,179,1971,2072,1897,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275943,7 +272869,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2081,[3,6,7,11,13,14,582,16,18,1807,2011,438,179,817,1087]); +},2071,[3,6,7,11,13,14,582,16,18,1812,1971,438,179,820,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276023,7 +272949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TilePremiumIcon.defaultProps = { show: false }; -},2082,[3,6,7,11,13,14,16,582,588,179,2083]); +},2072,[3,6,7,11,13,14,16,582,588,179,2073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276040,7 +272966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignSelf: "center" } }); -},2083,[18]); +},2073,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276055,7 +272981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2084,[2085]); +},2074,[2075]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276115,7 +273041,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, borderStyle: _propTypes.default.any }; -},2085,[3,16,18,582,2086,2020,179,438,817]); +},2075,[3,16,18,582,2076,1980,179,438,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276134,7 +273060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[1]).CARD_RADIUS } }); -},2086,[18,2020]); +},2076,[18,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276245,7 +273171,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2087,[3,6,7,11,13,14,16,582,18,814,588,438,817,179,2084,2088,2033,1087]); +},2077,[3,6,7,11,13,14,16,582,18,817,588,438,820,179,2074,2078,1993,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276274,7 +273200,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginVertical: 0 } }); -},2088,[18,438]); +},2078,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276416,7 +273342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2089,[3,6,7,11,13,14,16,582,18,2090,2093,438,179,2084,817,1087]); +},2079,[3,6,7,11,13,14,16,582,18,2080,2083,438,179,2074,820,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276538,7 +273464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); AdsHelper.PARSERS = [new (_$$_REQUIRE(_dependencyMap[4]).ParserV2)(), new (_$$_REQUIRE(_dependencyMap[4]).ParserV1)(), new (_$$_REQUIRE(_dependencyMap[4]).ParserV0)()]; -},2090,[3,6,7,438,2091]); +},2080,[3,6,7,438,2081]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276964,7 +273890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2091,[3,6,7,18,2092,1944]); +},2081,[3,6,7,18,2082,1902]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277019,7 +273945,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var webAdsTypes = exports.webAdsTypes = [adTypes.web.top_banner, adTypes.web.bottom_banner]; var nativeAdsTypes = exports.nativeAdsTypes = [adTypes.native.default, adTypes.native.inarticle, adTypes.native.grid, adTypes.native.list]; -},2092,[]); +},2082,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277041,7 +273967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _$$_REQUIRE(_dependencyMap[1]).NATIVO_CARD_HEIGHT } }); -},2093,[18,2030]); +},2083,[18,1990]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277221,7 +274147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2094,[3,6,7,11,13,14,582,16,18,1915,2039,866,817,179,2055,438,2040,2084,1087]); +},2084,[3,6,7,11,13,14,582,16,18,2010,2022,869,820,179,2039,438,2023,2074,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277363,7 +274289,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2095,[3,6,7,11,13,14,16,18,582,1324,814,2096,1935,2032,2020,179,817,2084,438,1087]); +},2085,[3,6,7,11,13,14,16,18,582,1327,817,2086,1893,1992,1980,179,820,2074,438,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277424,7 +274350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2096,[18,438,2014]); +},2086,[18,438,1974]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277618,7 +274544,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2097,[3,4,6,7,11,13,14,582,16,18,1935,436,814,2014,2031,2098,2080,2020,817,179,438,564,2084,1087]); +},2087,[3,4,6,7,11,13,14,582,16,18,1893,436,817,1974,1991,2088,2070,1980,820,179,438,564,2074,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277627,18 +274553,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); var _excluded = ["video", "autoplay", "onRef"]; - var _OptionalPackages$get = _optionalPackageUtils.default.getDailymotionVideoPlayer(), - DailymotionVideoPlayer = _OptionalPackages$get.Player; - function DailymotionVideoPlayerComponent(props) { + var _OptionalPackages$get = _optionalPackageUtils.default.getDailymotionVideoPlayer(), + DailymotionVideoPlayer = _OptionalPackages$get.Player; + if (DailymotionVideoPlayer) { var video = props.video, _props$autoplay = props.autoplay, @@ -277678,7 +274604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DailymotionVideoPlayerComponent; -},2098,[3,4,16,582,879,179]); +},2088,[3,4,582,16,882,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277789,7 +274715,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2099,[3,6,7,11,13,14,16,582,18,588,2017,438,817,179,2084,2100,814,2033,1087]); +},2089,[3,6,7,11,13,14,16,582,18,588,1977,438,820,179,2074,2090,817,1993,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277834,7 +274760,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: "100%" } }); -},2100,[18,2020]); +},2090,[18,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278487,7 +275413,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2101,[3,6,7,11,13,14,582,16,18,2102,2103,2113,2114,2116,438,2020,2028,179,2117,2120,2123,2125,2128,2131,817,1943,1087]); +},2091,[3,6,7,11,13,14,582,16,18,2092,2093,2103,2104,2106,438,1980,1988,179,2107,2110,2113,2115,2118,2121,820,1901,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278565,7 +275491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e progressBackgroundColor: "#ffffff", colors: ["#000000"] }; -},2102,[3,22,4,6,7,11,13,14,16,18,817,438,179]); +},2092,[3,22,4,6,7,11,13,14,16,18,820,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278869,7 +275795,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RssBaseView; -},2103,[3,4,6,7,11,13,14,16,582,18,2104,2105,179,2108,2112,438]); +},2093,[3,4,6,7,11,13,14,16,582,18,2094,2095,179,2098,2102,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278887,7 +275813,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, item: {} }); -},2104,[18]); +},2094,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279209,7 +276135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e windowSize: 2, initialNumToRender: 6 }; -},2105,[3,4,6,7,11,13,14,16,582,18,2106,179,2107]); +},2095,[3,4,6,7,11,13,14,16,582,18,2096,179,2097]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279335,7 +276261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e visibility: AsymmetricVisibility.VISIBLE, PlaceholderComponent: null }; -},2106,[3,4,6,7,11,13,14,16,18,582,179]); +},2096,[3,4,6,7,11,13,14,16,18,582,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279382,7 +276308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var TecnaviaAnimatedScrollView = exports.TecnaviaAnimatedScrollView = _reactNative.Animated.createAnimatedComponent(TecnaviaScrollView); -},2107,[3,4,16,582,18,179,579,1]); +},2097,[3,4,16,582,18,179,579,1]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279744,7 +276670,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FooterBar; -},2108,[3,33,582,16,18,436,2090,434,2109,1807,438,179,817,564,2111]); +},2098,[3,33,582,16,18,436,2080,434,2099,1812,438,179,820,564,2101]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279904,7 +276830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FooterElement; -},2109,[3,33,16,18,582,436,1934,814,1941,564,438,817,179,2110]); +},2099,[3,33,16,18,582,436,1892,817,1899,564,438,820,179,2100]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279929,7 +276855,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2110,[18]); +},2100,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279948,7 +276874,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function TecnaviaFooterTab(props) { return (0, _$$_REQUIRE(_dependencyMap[3]).jsx)(_reactNative.View, Object.assign({}, props)); } -},2111,[3,16,18,179]); +},2101,[3,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279978,7 +276904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); TecnaviaSectionList.displayName = "SectionList"; -},2112,[3,16,18,179]); +},2102,[3,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280164,7 +277090,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2113,[3,6,7,11,13,14,582,16,18,1324,2025,588,2014,2080,2015,2029,438,2020,817,179,2021,1087]); +},2103,[3,6,7,11,13,14,582,16,18,1327,1985,588,1974,2070,1975,1989,438,1980,820,179,1981,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280294,7 +277220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2114,[3,6,7,11,13,14,582,16,2014,2080,2015,2115,2020,438,817,179,2022,2016,1087]); +},2104,[3,6,7,11,13,14,582,16,1974,2070,1975,2105,1980,438,820,179,1982,1976,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280318,7 +277244,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingBottom: _$$_REQUIRE(_dependencyMap[1]).CONTAINER_VERTICAL_PADDING } }); -},2115,[18,2014]); +},2105,[18,1974]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280494,7 +277420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2116,[3,6,7,11,13,14,582,16,18,588,2014,2009,2080,2015,2013,2020,438,179,817,2021,2016,1087]); +},2106,[3,6,7,11,13,14,582,16,18,588,1974,1969,2070,1975,1973,1980,438,179,820,1981,1976,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280509,7 +277435,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2117,[2118]); +},2107,[2108]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280658,7 +277584,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e itemID: _propTypes.default.number, changeContainerStyleCallback: _propTypes.default.func }; -},2118,[3,6,7,11,13,14,16,582,2119,2090,817,179,2022]); +},2108,[3,6,7,11,13,14,16,582,2109,2080,820,179,1982]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280674,7 +277600,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2119,[18]); +},2109,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280689,7 +277615,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2120,[2121]); +},2110,[2111]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280844,7 +277770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TileWebView.defaultProps = { baseUrl: _webUtils.WEBVIEW_BASE_URL }; -},2121,[3,6,7,11,13,14,582,16,1915,2039,866,2122,817,179,2055,2040,2021]); +},2111,[3,6,7,11,13,14,582,16,2010,2022,869,2112,820,179,2039,2023,1981]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280862,7 +277788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},2122,[18]); +},2112,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280954,7 +277880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thumbnail: _propTypes.default.string }) }; -},2123,[3,6,7,11,13,14,16,582,814,2124,588,438,179,817,2021,2033]); +},2113,[3,6,7,11,13,14,16,582,817,2114,588,438,179,820,1981,1993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280985,7 +277911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginVertical: TITLE_VERTICAL_MARGIN } }); -},2124,[18,438]); +},2114,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281000,7 +277926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2125,[2126]); +},2115,[2116]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281123,7 +278049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isLinkToCategory: _propTypes.default.bool }) }; -},2126,[3,6,7,11,13,14,16,18,582,814,2127,588,438,179,817,2021,2033]); +},2116,[3,6,7,11,13,14,16,18,582,817,2117,588,438,179,820,1981,1993]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281150,7 +278076,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e margin: HORIZONTAL_MARGIN / 2 } }); -},2127,[18,438]); +},2117,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281311,7 +278237,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gridIndex: _propTypes.default.number }) }; -},2128,[3,6,7,11,13,14,16,18,1324,582,2129,814,434,438,179,817,2130,2021]); +},2118,[3,6,7,11,13,14,16,18,1327,582,2119,817,434,438,179,820,2120,1981]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281381,7 +278307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},2129,[18,438]); +},2119,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281537,7 +278463,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TopCropImage.defaultProps = { top: 0 }; -},2130,[3,270,6,7,11,13,14,16,582,18,588,179]); +},2120,[3,270,6,7,11,13,14,16,582,18,588,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281552,7 +278478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, item: {} }); -},2131,[18]); +},2121,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281696,7 +278622,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2132,[3,6,7,11,13,14,16,438,2020,2101,1087,179]); +},2122,[3,6,7,11,13,14,16,438,1980,2091,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -281715,7 +278641,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _reactNative.AppRegistry.registerHeadlessTask("TaHeadlessTask", function () { return _PushHelper.default.onBackgroundMessage; }); -},2133,[18,3,2134,1279,2142]); +},2123,[18,3,2124,1282,2132]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281983,7 +278909,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); PushHelper.instance = undefined; -},2134,[3,270,6,7,2135,2136,579,2137,2140,2141,2138]); +},2124,[3,270,6,7,2125,2126,579,2127,2130,2131,2128]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282012,16 +278938,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.serverMessage = NOT_AVAILABLE; this.isRegistered = false; this.tags = {}; + this.module = null; this.service = name; this.hasPushEnabled = true; + this.init = this.init.bind(this); + this.isModuleAvailable = this.isModuleAvailable.bind(this); this.setTag = this.setTag.bind(this); this.registerListener = this.registerListener.bind(this); this.unregisterListener = this.unregisterListener.bind(this); this.resetBadge = this.resetBadge.bind(this); + this.getToken = this.getToken.bind(this); + this.deleteToken = this.deleteToken.bind(this); + this.clearOldStoredNotifications = this.clearOldStoredNotifications.bind(this); + this.isTherePush = this.isTherePush.bind(this); + this.clearPush = this.clearPush.bind(this); + this.pushNeedFeedUpdate = this.pushNeedFeedUpdate.bind(this); + this.getPush = this.getPush.bind(this); + this.storePushToConsume = this.storePushToConsume.bind(this); + this.onBackgroundMessage = this.onBackgroundMessage.bind(this); this.initTags(); } return (0, _createClass2.default)(BasePush, [{ + key: "isModuleAvailable", + value: function isModuleAvailable() { + return !_$$_REQUIRE(_dependencyMap[5]).JSUtils.isNull(this.module); + } + }, { key: "registerListener", value: function registerListener() { this.isRegistered = true; @@ -282080,8 +279023,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "onBackgroundMessage", value: function () { var _onBackgroundMessage = (0, _asyncToGenerator2.default)(function* (notification) { - yield this.displayNotification(notification); - return Promise.resolve(); + this.printLog("on background message: " + JSON.stringify(notification)); + return this.displayNotification(notification); }); function onBackgroundMessage(_x) { @@ -282099,6 +279042,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "openNotification", value: function () { var _openNotification = (0, _asyncToGenerator2.default)(function* (id, data, onOpen) { + var _mainNavigator; + var _this$parsePushData = this.parsePushData(data), action = _this$parsePushData.action, value = _this$parsePushData.value; @@ -282106,11 +279051,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var rssIsEnabled = false; var pSetupConfig = global.getRSSActivePSetup(); - if (!(pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[5]).PaperSetupConfig)) { + if (!(pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig)) { pSetupConfig = global.getMainPSetup(); } - if (pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[5]).PaperSetupConfig) { + if (pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig) { rssIsEnabled = yield pSetupConfig.checkIfRssIsEnabled(); } @@ -282138,7 +279083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e break; } - if (mainNavigator && mainNavigator.length) { + if (((_mainNavigator = mainNavigator) == null ? undefined : _mainNavigator.length) > 0) { if (typeof onOpen === "function") { onOpen(mainNavigator); } @@ -282166,21 +279111,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e page = data.page, article = data.article, source = data.source; + var action = "openEpaper"; var value = ""; - var action = ""; if (type === "breakingnews") { action = "openRss"; - } else if (feedId && feedId.length) { + } else if ((feedId == null ? undefined : feedId.length) > 0) { action = "openArticle"; value = feedId; - } else if (source && source.length) { + } else if ((source == null ? undefined : source.length) > 0) { action = "openArticleBySource"; value = source; - } else if (category && category.length) { + } else if ((category == null ? undefined : category.length) > 0) { action = "openCategory"; value = category; - } else if (url && url.length) { + } else if ((url == null ? undefined : url.length) > 0) { action = "openUrl"; value = url; } else if (edition || issue || page || article) { @@ -282191,8 +279136,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e page: page, article: article }; - } else { - action = "openEpaper"; } return { @@ -282216,7 +279159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "init", value: function init() { - this.printLog(this.service + " not need init"); + this.printLog(this.service + " doesn't need init"); } }, { key: "initTags", @@ -282226,18 +279169,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "updateTags", value: function updateTags() { - this.printLog(this.service + " not need updateTags"); + this.printLog(this.service + " doesn't need updateTags"); } }, { key: "resetBadge", value: function resetBadge() { - this.printLog(this.service + " not need resetBadge"); + this.printLog(this.service + " doesn't need resetBadge"); } }, { key: "createAndroidChannels", value: function () { var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " not need createAndroidChannels"); + this.printLog(this.service + " doesn't need createAndroidChannels"); return Promise.resolve(); }); @@ -282251,7 +279194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "checkIfSendRegistration", value: function () { var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " not need checkIfSendRegistration"); + this.printLog(this.service + " doesn't need checkIfSendRegistration"); return Promise.resolve(); }); @@ -282265,7 +279208,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getToken", value: function () { var _getToken = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " not need getToken"); + this.printLog(this.service + " doesn't need getToken"); return Promise.resolve(); }); @@ -282279,7 +279222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteToken", value: function () { var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " not need deleteToken"); + this.printLog(this.service + " doesn't need deleteToken"); return Promise.resolve(); }); @@ -282293,7 +279236,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "sendRegistration", value: function () { var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token, service) { - this.printLog(this.service + " not need sendRegistration"); + this.printLog(this.service + " doesn't need sendRegistration"); return true; }); @@ -282307,7 +279250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteRegistration", value: function () { var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " not need deleteRegistration"); + this.printLog(this.service + " doesn't need deleteRegistration"); return true; }); @@ -282332,7 +279275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2135,[3,270,6,7,1881,864]); +},2125,[3,270,6,7,1870,438,867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282353,9 +279296,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _BasePush2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _BasePush2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); var _PushTags = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); @@ -282363,8 +279306,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var OneSignal = _optionalPackageUtils.default.getOneSignal(); - var OneSignalPush = exports.default = function (_BasePush) { function OneSignalPush() { var _this; @@ -282372,45 +279313,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _classCallCheck2.default)(this, OneSignalPush); _this = _callSuper(this, OneSignalPush, [OneSignalPush.NAME]); _this.notificationToOpenDuringStartup = undefined; - _this.onOpened = _this._onOpened.bind(_this); _this.initialized = false; + _this.module = _optionalPackageUtils.default.getOneSignal(); + _this.onOpened = _this._onOpened.bind(_this); return _this; } (0, _inherits2.default)(OneSignalPush, _BasePush); return (0, _createClass2.default)(OneSignalPush, [{ - key: "isPackageAvaiable", - value: function isPackageAvaiable() { - return _optionalPackageUtils.default.isOneSignalAvailable(); - } - }, { key: "init", value: function () { var _init = (0, _asyncToGenerator2.default)(function* (appId) { - if (this.isPackageAvaiable()) { - if (appId && appId.length) { - OneSignal.setAppId(appId); - OneSignal.setLogLevel(6, 0); - OneSignal.setRequiresUserPrivacyConsent(false); - var state = null; - - try { - state = yield OneSignal.getDeviceState(); - } catch (e) { - this.printLog(e.message); - } - - if (state) { - this.token = state.pushToken; - this.userId = state.userId; - } - - this.printLog("One Signal token: " + this.token); - this.printLog("One Signal userId: " + this.userId); - } else { - this.printLog("Missing one signal app id"); - } + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; } + + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(appId)) { + this.printLog("Missing one signal app id"); + return; + } + + this.module.setAppId(appId); + this.module.setLogLevel(6, 0); + this.module.setRequiresUserPrivacyConsent(false); + var state = null; + + try { + state = yield this.module.getDeviceState(); + } catch (e) { + this.printLog(e.message); + } + + if (state) { + this.token = state.pushToken; + this.userId = state.userId; + } + + this.printLog("One Signal token: " + this.token); + this.printLog("One Signal userId: " + this.userId); }); function init(_x) { @@ -282449,7 +279390,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "resetTags", value: function resetTags() { - OneSignal.deleteTags(Object.keys(this.tags)); + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + this.module.deleteTags(Object.keys(this.tags)); (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "resetTags", this).call(this); this.setTag("pSetup", global.getAppPSetup()); this.setTag("subLayout", global.getMainPSetup().layoutSubStyle); @@ -282459,11 +279405,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function setTag(key, value) { (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "setTag", this).call(this, key, value); - if (this.isPackageAvaiable()) { - if (key && key.length && value && value.length) { - OneSignal.sendTag(key, value); - } + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; } + + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(key) || _$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(value)) { + return; + } + + this.module.sendTag(key, value); } }, { key: "_onOpened", @@ -282489,19 +279440,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "registerListener", value: function registerListener() { - if (this.isPackageAvaiable()) { - (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "registerListener", this).call(this); - OneSignal.setNotificationOpenedHandler(this.onOpened); + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; } + + (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "registerListener", this).call(this); + this.module.setNotificationOpenedHandler(this.onOpened); } }, { key: "unregisterListener", value: function unregisterListener() { - if (this.isPackageAvaiable()) { - (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "unregisterListener", this).call(this); - OneSignal.clearHandlers(); - this.initialized = false; + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; } + + (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "unregisterListener", this).call(this); + this.module.clearHandlers(); + this.initialized = false; } }, { key: "checkIfAppIsOpenedByNotification", @@ -282530,13 +279487,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "deleteRegistration", value: function deleteRegistration() { - OneSignal.disablePush(true); + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + this.module.disablePush(true); } }]); }(_BasePush2.default); OneSignalPush.NAME = "onesignal"; -},2136,[3,270,6,7,11,85,13,14,2135,879,2077]); +},2126,[3,270,6,7,11,85,13,14,882,2125,2067,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282670,7 +279632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[10]).FirebasePush); MasPush.NAME = "mas"; -},2137,[3,270,4,6,7,11,85,13,14,407,2138,438,2135]); +},2127,[3,270,4,6,7,11,85,13,14,407,2128,438,2125]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282699,11 +279661,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), - CloudMessaging = _OptionalPackages$get.CloudMessaging, - PushNotification = _OptionalPackages$get.PushNotification, - PushNotificationIOS = _OptionalPackages$get.PushNotificationIOS; - var FirebasePush = exports.FirebasePush = function (_BaseCustomModulePush) { function FirebasePush() { var _this; @@ -282711,13 +279668,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : FirebasePush.NAME; (0, _classCallCheck2.default)(this, FirebasePush); _this = _callSuper(this, FirebasePush, [name]); + _this.pushNotificationModule = null; + _this.pushNotificationIOSModule = null; _this.hasPermission = false; - _this.isLibraryAvailable = CloudMessaging !== undefined; + + var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), + CloudMessaging = _OptionalPackages$get.CloudMessaging, + PushNotification = _OptionalPackages$get.PushNotification, + PushNotificationIOS = _OptionalPackages$get.PushNotificationIOS; + + _this.module = CloudMessaging; + _this.pushNotificationModule = PushNotification; + _this.pushNotificationIOSModule = PushNotificationIOS; + _this.isPushNotificationAvailable = _this.isPushNotificationAvailable.bind(_this); + _this.isPushNotificationIOSAvailable = _this.isPushNotificationIOSAvailable.bind(_this); + _this.checkPermission = _this.checkPermission.bind(_this); + _this.retrievePermission = _this.retrievePermission.bind(_this); return _this; } (0, _inherits2.default)(FirebasePush, _BaseCustomModulePush); return (0, _createClass2.default)(FirebasePush, [{ + key: "isPushNotificationAvailable", + value: function isPushNotificationAvailable() { + return !_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(this.pushNotificationModule); + } + }, { + key: "isPushNotificationIOSAvailable", + value: function isPushNotificationIOSAvailable() { + return !_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(this.pushNotificationIOSModule); + } + }, { key: "init", value: function () { var _init = (0, _asyncToGenerator2.default)(function* () { @@ -282760,20 +279741,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function registerListener() { var _this2 = this; - if (!this.isLibraryAvailable || !this.hasPermission) { + if (!this.isModuleAvailable() || !this.hasPermission) { return; } (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "registerListener", this).call(this); - this.onNotificationOpened = CloudMessaging.onNotificationOpenedApp(function (notificationOpen) { + this.onNotificationOpened = this.module.onNotificationOpenedApp(function (notificationOpen) { _this2.manageOpenedNotification(notificationOpen, function (navigator) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { key: "startupNavigator", value: navigator }); }); }); - this.onTokenRefreshListener = CloudMessaging.onTokenRefresh(function (fcmToken) { + this.onTokenRefreshListener = this.module.onTokenRefresh(function (fcmToken) { if (fcmToken) { _this2.token = fcmToken; @@ -282782,19 +279763,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2.printLog("New token -> " + _this2.token); } }); - this.onMessage = CloudMessaging.onMessage(function (event) { + this.onMessage = this.module.onMessage(function (event) { + _this2.printLog("onMessage: " + JSON.stringify(event)); + _this2.displayNotification(event); }); - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { - PushNotification.configure({ + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS()) { + if (!this.isPushNotificationAvailable()) { + this.printLog("PushNotification module is not available"); + return; + } + + if (!this.isPushNotificationIOSAvailable()) { + this.printLog("PushNotificationIOS module is not available"); + return; + } + + this.pushNotificationModule.configure({ onNotification: function onNotification(notification) { - if (notification && notification.foreground) { + _this2.printLog("onNotification: " + JSON.stringify(notification)); + + if (notification != null && notification.foreground) { var data = notification.data, title = notification.title, message = notification.message; var event = { - messageId: _$$_REQUIRE(_dependencyMap[11]).StringUtils.getRandomIdentifier(), + messageId: _$$_REQUIRE(_dependencyMap[10]).StringUtils.getRandomIdentifier(), data: data, notification: { title: title, @@ -282803,7 +279798,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _this2.manageOpenedNotification(event, function (navigator) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { key: "startupNavigator", value: navigator }); @@ -282812,20 +279807,87 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2.resetBadge(); } - notification.finish(PushNotificationIOS.FetchResult.NoData); + notification.finish(_this2.pushNotificationIOSModule.FetchResult.NoData); } }); } } + }, { + key: "unregisterListener", + value: function unregisterListener() { + if (!this.isModuleAvailable() || !this.hasPermission) { + return; + } + + (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "unregisterListener", this).call(this); + + if (typeof this.onNotificationOpened === "function") { + this.onNotificationOpened(); + } + + if (typeof this.onTokenRefreshListener === "function") { + this.onTokenRefreshListener(); + } + + if (typeof this.onMessage === "function") { + this.onMessage(); + } + } + }, { + key: "displayNotification", + value: function () { + var _displayNotification = (0, _asyncToGenerator2.default)(function* (event) { + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isAndroid()) { + return (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "displayNotification", this).call(this, event); + } + + if (!this.isPushNotificationIOSAvailable()) { + this.printLog("PushNotificationIOS module is not available"); + return Promise.resolve(); + } + + var _this$parsePushEvent = this.parsePushEvent(event), + title = _this$parsePushEvent.title, + body = _this$parsePushEvent.body, + messageId = _this$parsePushEvent.messageId, + data = _this$parsePushEvent.data; + + this.printLog("push -> id: " + messageId + ", title: " + title + ", with data: " + JSON.stringify(data)); + + try { + var id = messageId || _$$_REQUIRE(_dependencyMap[10]).StringUtils.getRandomIdentifier(); + + var notification = { + id: id, + title: title, + body: body, + badge: 1, + userInfo: data + }; + this.printLog("display notification -> " + JSON.stringify(notification)); + this.pushNotificationIOSModule.addNotificationRequest(notification); + } catch (e) { + this.printLog(e.message); + } + + return Promise.resolve(); + }); + + function displayNotification(_x) { + return _displayNotification.apply(this, arguments); + } + + return displayNotification; + }() }, { key: "getInitialNotification", value: function () { var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return CloudMessaging.getInitialNotification(); + if (!this.isModuleAvailable()) { + return undefined; } - return undefined; + return this.module.getInitialNotification(); }); function getInitialNotification() { @@ -282853,36 +279915,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e messageId: messageId }; } - }, { - key: "unregisterListener", - value: function unregisterListener() { - if (!this.isLibraryAvailable || !this.hasPermission) { - return; - } - - (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "unregisterListener", this).call(this); - - if (typeof this.onNotificationOpened === "function") { - this.onNotificationOpened(); - } - - if (typeof this.onTokenRefreshListener === "function") { - this.onTokenRefreshListener(); - } - - if (typeof this.onMessage === "function") { - this.onMessage(); - } - } }, { key: "getToken", value: function () { var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return CloudMessaging.getToken(); + if (!this.isModuleAvailable()) { + return ""; } - return ""; + return this.module.getToken(); }); function getToken() { @@ -282895,11 +279936,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteToken", value: function () { var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return CloudMessaging.deleteToken(); + if (!this.isModuleAvailable()) { + return Promise.resolve(); } - return Promise.resolve(); + return this.module.deleteToken(); }); function deleteToken() { @@ -282912,12 +279953,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "checkPermission", value: function () { var _checkPermission = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + var result = false; try { - if (this.isLibraryAvailable) { - result = (yield CloudMessaging.hasPermission()) === 1; - } + result = (yield this.module.hasPermission()) === 1; } catch (error) {} return result; @@ -282933,11 +279976,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "retrievePermission", value: function () { var _retrievePermission = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + try { - if (this.isLibraryAvailable) { - yield CloudMessaging.requestPermission(); - return true; - } + yield this.module.requestPermission(); + return true; } catch (error) {} return false; @@ -282953,11 +279998,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "clearOldStoredNotifications", value: function () { var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return CloudMessaging.clearOldStoredNotifications(); + if (!this.isModuleAvailable()) { + return false; } - return false; + return this.module.clearOldStoredNotifications(); }); function clearOldStoredNotifications() { @@ -282966,11 +280011,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return clearOldStoredNotifications; }() + }, { + key: "resetBadge", + value: function () { + var _resetBadge = (0, _asyncToGenerator2.default)(function* () { + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isAndroid() || !this.isModuleAvailable()) { + return; + } + + var count = yield this.module.getBadge(); + + if (count > 0) { + this.printLog("Reset push notification badge"); + this.module.setBadge(0); + } + }); + + function resetBadge() { + return _resetBadge.apply(this, arguments); + } + + return resetBadge; + }() }]); }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); FirebasePush.NAME = "fcm"; -},2138,[3,270,6,7,11,85,13,14,436,879,564,438,2139]); +},2128,[3,270,6,7,11,85,13,14,436,882,438,564,2129]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -283013,21 +280080,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this = _callSuper(this, BaseCustomModulePush, [name]); _this.channelId = global.pushChannel; _this.channelSilentId = global.pushChannelSilent; + _this.createAndroidChannel = _this.createAndroidChannel.bind(_this); + _this.displayNotification = _this.displayNotification.bind(_this); + _this.removeNotificationById = _this.removeNotificationById.bind(_this); + _this.getInitialNotification = _this.getInitialNotification.bind(_this); + _this.deleteRegistration = _this.deleteRegistration.bind(_this); return _this; } (0, _inherits2.default)(BaseCustomModulePush, _BasePush); return (0, _createClass2.default)(BaseCustomModulePush, [{ - key: "registerListener", - value: function registerListener() { - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "registerListener", this).call(this); - } - }, { - key: "unregisterListener", - value: function unregisterListener() { - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "unregisterListener", this).call(this); - } - }, { key: "hasTags", value: function hasTags() { var _global$getMainPSetup = global.getMainPSetup(), @@ -283089,6 +280151,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createAndroidChannel = (0, _asyncToGenerator2.default)(function* (id, name, description) { var importance = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 3; + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { + return; + } + try { yield _$$_REQUIRE(_dependencyMap[12]).Notification.createChannel({ id: id, @@ -283131,19 +280197,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e data = _this$parsePushEvent.data; this.printLog("push -> id: " + messageId + ", title: " + title + ", with data: " + JSON.stringify(data)); + var notification = { + title: title, + body: body, + data: data, + channelId: (sound == null ? undefined : sound.length) > 0 ? this.channelId : this.channelSilentId, + sound: sound, + message_id: messageId + }; try { - yield _$$_REQUIRE(_dependencyMap[12]).Notification.displayNotification({ - title: title, - body: body, - data: data, - channelId: sound && sound.length ? this.channelId : this.channelSilentId, - sound: sound, - message_id: messageId - }); + this.printLog("display notification -> " + JSON.stringify(notification)); + return _$$_REQUIRE(_dependencyMap[12]).Notification.displayNotification(notification); } catch (e) { this.printLog(e.message); } + + return Promise.resolve(); }); function displayNotification(_x4) { @@ -283156,13 +280226,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "removeNotificationById", value: function () { var _removeNotificationById = (0, _asyncToGenerator2.default)(function* (notificationId) { - if (notificationId) { - try { - yield _$$_REQUIRE(_dependencyMap[12]).Notification.removeDeliveredNotification(notificationId); - } catch (e) { - this.printLog(e.message); - } + if (!notificationId) { + return Promise.resolve(); } + + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { + return Promise.resolve(); + } + + try { + return _$$_REQUIRE(_dependencyMap[12]).Notification.removeDeliveredNotification(notificationId); + } catch (e) { + this.printLog(e.message); + } + + return Promise.resolve(); }); function removeNotificationById(_x5) { @@ -283207,15 +280285,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "manageOpenedNotification", value: function () { var _manageOpenedNotification = (0, _asyncToGenerator2.default)(function* (event, onOpen) { - if (event) { - this.removeNotificationById(this.getNotificationId(event)); + if (!event) { + this.printLog("no event to open"); + return; + } - var _this$parsePushEvent2 = this.parsePushEvent(event), - data = _this$parsePushEvent2.data; + var notificationId = this.getNotificationId(event); + this.removeNotificationById(notificationId); - if (data) { - this.openNotification(this.getNotificationId(event), data, onOpen); - } + var _this$parsePushEvent2 = this.parsePushEvent(event), + data = _this$parsePushEvent2.data; + + if (data) { + this.printLog("notification to open -> " + JSON.stringify(data)); + this.openNotification(notificationId, data, onOpen); } }); @@ -283231,21 +280314,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "clearPush", this).call(this); this.removeNotificationById(); } - }, { - key: "resetBadge", - value: function resetBadge() { - var _this3 = this; - - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { - _$$_REQUIRE(_dependencyMap[12]).Notification.getBadge().then(function (count) { - if (count > 0) { - _this3.printLog("Reset push notification badge"); - - _$$_REQUIRE(_dependencyMap[12]).Notification.setBadge(0); - } - }); - } - } }, { key: "checkIfSendRegistration", value: function () { @@ -283339,7 +280407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_BasePush2.default); -},2139,[3,270,6,7,11,85,13,14,407,2135,2077,438,579]); +},2129,[3,270,6,7,11,85,13,14,407,2125,2067,438,579]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -283372,16 +280440,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), - AmazonDeviceMessaging = _OptionalPackages$get.AmazonDeviceMessaging; - var AmazonPush = exports.AmazonPush = function (_BaseCustomModulePush) { function AmazonPush() { var _this; (0, _classCallCheck2.default)(this, AmazonPush); _this = _callSuper(this, AmazonPush, [AmazonPush.NAME]); - _this.isLibraryAvailable = AmazonDeviceMessaging !== undefined; + + var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), + AmazonDeviceMessaging = _OptionalPackages$get.AmazonDeviceMessaging; + + _this.module = AmazonDeviceMessaging; return _this; } @@ -283390,24 +280459,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "init", value: function () { var _init = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - try { - this.token = yield this.getToken(); - } catch (e) { - this.printLog(e); - } - - if (this.token) { - this.sendRegistration(this.token); - this.printLog("Init with token -> " + this.token); - } else { - this.printLog("Init without token -> permission: " + this.hasPermission); - } - - return true; + if (!this.isModuleAvailable()) { + return false; } - return false; + try { + this.token = yield this.getToken(); + } catch (e) { + this.printLog(e); + } + + if (this.token) { + this.sendRegistration(this.token); + this.printLog("Init with token -> " + this.token); + } else { + this.printLog("Init without token -> permission: " + this.hasPermission); + } + + return true; }); function init() { @@ -283423,48 +280492,52 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _get2.default)((0, _getPrototypeOf2.default)(AmazonPush.prototype), "registerListener", this).call(this); - if (this.isLibraryAvailable) { - AmazonDeviceMessaging.addOnNotificationOpenedListener(function (notification) { - _this2.manageOpenedNotification(notification, function (navigator) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { - key: "startupNavigator", - value: navigator - }); + if (!this.isModuleAvailable()) { + return; + } + + this.module.addOnNotificationOpenedListener(function (notification) { + _this2.manageOpenedNotification(notification, function (navigator) { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + key: "startupNavigator", + value: navigator }); }); - AmazonDeviceMessaging.addOnTokenRefreshedListener(function (token) { - _this2.token = token; + }); + this.module.addOnTokenRefreshedListener(function (token) { + _this2.token = token; - _this2.sendRegistration(token); + _this2.sendRegistration(token); - _this2.printLog("New token -> " + _this2.token); - }); - AmazonDeviceMessaging.addOnMessageListener(function (notification) { - _this2.displayNotification(notification); - }); - this.register(); - } + _this2.printLog("New token -> " + _this2.token); + }); + this.module.addOnMessageListener(function (notification) { + _this2.displayNotification(notification); + }); + this.register(); } }, { key: "unregisterListener", value: function unregisterListener() { (0, _get2.default)((0, _getPrototypeOf2.default)(AmazonPush.prototype), "unregisterListener", this).call(this); - if (this.isLibraryAvailable) { - AmazonDeviceMessaging.removeNotificationOpenedListener(); - AmazonDeviceMessaging.removeMessageListener(); - AmazonDeviceMessaging.removeTokenRefreshedListener(); + if (!this.isModuleAvailable()) { + return; } + + this.module.removeNotificationOpenedListener(); + this.module.removeMessageListener(); + this.module.removeTokenRefreshedListener(); } }, { key: "getInitialNotification", value: function () { var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return AmazonDeviceMessaging.getInitialNotification(); + if (!this.isModuleAvailable()) { + return undefined; } - return undefined; + return this.module.getInitialNotification(); }); function getInitialNotification() { @@ -283494,11 +280567,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getToken", value: function () { var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return AmazonDeviceMessaging.getToken(); + if (!this.isModuleAvailable()) { + return ""; } - return ""; + return this.module.getToken(); }); function getToken() { @@ -283511,11 +280584,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteToken", value: function () { var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return AmazonDeviceMessaging.deleteToken(); + if (!this.isModuleAvailable()) { + return Promise.resolve(); } - return Promise.resolve(); + return this.module.deleteToken(); }); function deleteToken() { @@ -283528,10 +280601,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "register", value: function () { var _register = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return; + } + try { - if (this.isLibraryAvailable) { - yield AmazonDeviceMessaging.register(); - } + yield this.module.register(); } catch (e) { this.printLog(e.message); } @@ -283547,11 +280622,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "clearOldStoredNotifications", value: function () { var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return AmazonDeviceMessaging.clearOldStoredNotifications(); + if (!this.isModuleAvailable()) { + return false; } - return false; + return this.module.clearOldStoredNotifications(); }); function clearOldStoredNotifications() { @@ -283564,7 +280639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); AmazonPush.NAME = "adm"; -},2140,[3,4,270,6,7,11,85,13,14,436,879,564,2139]); +},2130,[3,4,270,6,7,11,85,13,14,436,882,564,2129]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -283597,16 +280672,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), - HcmDeviceMessaging = _OptionalPackages$get.HcmDeviceMessaging; - var HuaweiPush = exports.HuaweiPush = function (_BaseCustomModulePush) { function HuaweiPush() { var _this; (0, _classCallCheck2.default)(this, HuaweiPush); _this = _callSuper(this, HuaweiPush, [HuaweiPush.NAME]); - _this.isLibraryAvailable = HcmDeviceMessaging !== undefined; + _this.module = null; + + var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), + HcmDeviceMessaging = _OptionalPackages$get.HcmDeviceMessaging; + + _this.module = HcmDeviceMessaging; return _this; } @@ -283617,24 +280694,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _init = (0, _asyncToGenerator2.default)(function* (appId) { this.appId = appId; - if (this.isLibraryAvailable) { - try { - this.token = yield this.getToken(); - } catch (e) { - this.printLog(e); - } - - if (this.token) { - this.sendRegistration(this.token); - this.printLog("Init with token -> " + this.token); - } else { - this.printLog("Init without token"); - } - - return true; + if (!this.isModuleAvailable()) { + return false; } - return false; + try { + this.token = yield this.getToken(); + } catch (e) { + this.printLog(e); + } + + if (this.token) { + this.sendRegistration(this.token); + this.printLog("Init with token -> " + this.token); + } else { + this.printLog("Init without token"); + } + + return true; }); function init(_x) { @@ -283650,47 +280727,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _get2.default)((0, _getPrototypeOf2.default)(HuaweiPush.prototype), "registerListener", this).call(this); - if (this.isLibraryAvailable) { - HcmDeviceMessaging.addOnNotificationOpenedListener(function (notification) { - _this2.manageOpenedNotification(notification, function (navigator) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { - key: "startupNavigator", - value: navigator - }); + if (!this.isModuleAvailable()) { + return; + } + + this.module.addOnNotificationOpenedListener(function (notification) { + _this2.manageOpenedNotification(notification, function (navigator) { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + key: "startupNavigator", + value: navigator }); }); - HcmDeviceMessaging.addOnTokenRefreshedListener(function (token) { - _this2.token = token; + }); + this.module.addOnTokenRefreshedListener(function (token) { + _this2.token = token; - _this2.sendRegistration(token); + _this2.sendRegistration(token); - _this2.printLog("New token -> " + _this2.token); - }); - HcmDeviceMessaging.addOnMessageListener(function (notification) { - _this2.displayNotification(notification); - }); - } + _this2.printLog("New token -> " + _this2.token); + }); + this.module.addOnMessageListener(function (notification) { + _this2.displayNotification(notification); + }); } }, { key: "unregisterListener", value: function unregisterListener() { (0, _get2.default)((0, _getPrototypeOf2.default)(HuaweiPush.prototype), "unregisterListener", this).call(this); - if (this.isLibraryAvailable) { - HcmDeviceMessaging.removeNotificationOpenedListener(); - HcmDeviceMessaging.removeMessageListener(); - HcmDeviceMessaging.removeTokenRefreshedListener(); + if (!this.isModuleAvailable()) { + return; } + + this.module.removeNotificationOpenedListener(); + this.module.removeMessageListener(); + this.module.removeTokenRefreshedListener(); } }, { key: "getInitialNotification", value: function () { var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return HcmDeviceMessaging.getInitialNotification(); + if (!this.isModuleAvailable()) { + return undefined; } - return undefined; + return this.module.getInitialNotification(); }); function getInitialNotification() { @@ -283723,11 +280804,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getToken", value: function () { var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return HcmDeviceMessaging.getToken(this.appId); + if (!this.isModuleAvailable()) { + return ""; } - return ""; + return this.module.getToken(this.appId); }); function getToken() { @@ -283740,11 +280821,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteToken", value: function () { var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return HcmDeviceMessaging.deleteToken(this.appId); + if (!this.isModuleAvailable()) { + return Promise.resolve(); } - return Promise.resolve(); + return this.module.deleteToken(this.appId); }); function deleteToken() { @@ -283757,11 +280838,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "clearOldStoredNotifications", value: function () { var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (this.isLibraryAvailable) { - return HcmDeviceMessaging.clearOldStoredNotifications(); + if (!this.isModuleAvailable()) { + return false; } - return false; + return this.module.clearOldStoredNotifications(); }); function clearOldStoredNotifications() { @@ -283774,7 +280855,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); HuaweiPush.NAME = "hcm"; -},2141,[3,4,270,6,7,11,85,13,14,436,879,564,2139]); +},2131,[3,4,270,6,7,11,85,13,14,436,882,564,2129]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -283819,19 +280900,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); - var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); + var _KeyEvent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); - var _KeyEvent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); + var _rootNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); - var _rootNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[24])); + var _zoomConstants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[24])); - var _zoomConstants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[25])); - - var _rootBase = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[26])); + var _rootBase = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[25])); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } @@ -283857,11 +280936,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return lockedOrientation; } - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isTablet() && lockedOrientationDevice === "tablet") { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isTablet() && lockedOrientationDevice === "tablet") { return lockedOrientation; } - if (!_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isTablet() && lockedOrientationDevice === "phone") { + if (!_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isTablet() && lockedOrientationDevice === "phone") { return lockedOrientation; } @@ -283869,13 +280948,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; global.startupTime = new Date().getTime(); - global.debugOperations = [new (_$$_REQUIRE(_dependencyMap[28]).DebugOperation)("RootComponent", "constructor")]; + global.debugOperations = [new (_$$_REQUIRE(_dependencyMap[27]).DebugOperation)("RootComponent", "constructor")]; global.initBaseValues(props); _this.currentAppState = _reactNative.AppState.currentState; _this.connectionInfo = undefined; _this.onHandleConnectivityChange = _this._handleConnectivityChange.bind(_this); _this.stateChangeHandler = _this._handleAppStateChange.bind(_this); - _this.onLayout = _$$_REQUIRE(_dependencyMap[27]).JSUtils.debounceEventHandler(_this._onLayout.bind(_this), 500, { + _this.onLayout = _$$_REQUIRE(_dependencyMap[26]).JSUtils.debounceEventHandler(_this._onLayout.bind(_this), 500, { leading: false, trailing: true }); @@ -283886,7 +280965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this.onUserInteract = _this._onUserInteract.bind(_this); _this.handleConfigUpdateOnPSetup = _this._handleConfigUpdateOnPSetup.bind(_this); - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isAndroid() && typeof _reactNative.UIManager.setLayoutAnimationEnabledExperimental === "function") { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid() && typeof _reactNative.UIManager.setLayoutAnimationEnabledExperimental === "function") { _reactNative.UIManager.setLayoutAnimationEnabledExperimental(true); } @@ -283906,12 +280985,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this2 = this; (0, _get2.default)((0, _getPrototypeOf2.default)(RootComponent.prototype), "componentDidMount", this).call(this); - this.connectionInfo = yield _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.getConnectionInfo(); + this.connectionInfo = yield _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.getConnectionInfo(); _Api.default.setTimeout(); - yield _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.initPlatformInfo(); - var fullOrientation = yield _$$_REQUIRE(_dependencyMap[29]).OurBridge.getStatusBarOrientation(); + yield _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.initPlatformInfo(); + var fullOrientation = yield _$$_REQUIRE(_dependencyMap[28]).OurBridge.getStatusBarOrientation(); var lockedOrientation = this._getLockedOrientationProps(); @@ -283930,14 +281009,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield _GlobalConfig.default.initMachineId(); this.appStateChangeListener = _reactNative.AppState.addEventListener("change", this.stateChangeHandler); - _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.addConnectionChangeEventListener(this.onHandleConnectivityChange); + _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.addConnectionChangeEventListener(this.onHandleConnectivityChange); - this.onKeyDownListener = _$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.ON_KEY_DOWN, this.onKeyDown); - this.onKeyUpListener = _$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.ON_KEY_UP, this.onKeyUp); + this.onKeyDownListener = _$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.ON_KEY_DOWN, this.onKeyDown); + this.onKeyUpListener = _$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.ON_KEY_UP, this.onKeyUp); - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isAndroid()) { - this.newIntentListener = _$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.NEW_INTENT, this.handleOpenURL); - this.onUserInteractListener = _$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[29]).RNEventEmitter.ON_USER_INTERACT, this.onUserInteract); + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid()) { + this.newIntentListener = _$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.NEW_INTENT, this.handleOpenURL); + this.onUserInteractListener = _$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.addListener(_$$_REQUIRE(_dependencyMap[28]).RNEventEmitter.ON_USER_INTERACT, this.onUserInteract); } this.onAccessibilityModeListener = _reactNative.AccessibilityInfo.addEventListener("screenReaderChanged", this.onAccessibilityModeChange); @@ -283946,7 +281025,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield global.getLocaleConfig().initLocale(); } catch (e) {} - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isAndroid()) { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid()) { var url = this.props.url; if (url) { @@ -283955,7 +281034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } else { - this.safeAreaChangeEventId = _$$_REQUIRE(_dependencyMap[30]).EventRegister.on(_events.default.ON_SAFE_AREA_CHANGE, function () { + this.safeAreaChangeEventId = _$$_REQUIRE(_dependencyMap[29]).EventRegister.on(_events.default.ON_SAFE_AREA_CHANGE, function () { _this2.setLayout(_deviceUtils.default.getSafeArea()); }); this.handleOpenURLListener = _reactNative.Linking.addEventListener("url", this.handleOpenURL); @@ -283968,11 +281047,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } - this.colorSchemeChangeListener = _reactNative.Appearance.addChangeListener(_$$_REQUIRE(_dependencyMap[27]).JSUtils.debounce(this.onDeviceColorSchemeChange, 200, { + this.colorSchemeChangeListener = _reactNative.Appearance.addChangeListener(_$$_REQUIRE(_dependencyMap[26]).JSUtils.debounce(this.onDeviceColorSchemeChange, 200, { leading: false, trailing: true })); - this.onCheckConfigUpdateEvent = _$$_REQUIRE(_dependencyMap[30]).EventRegister.on(_events.default.CONFIG_UPDATE_CHECK, (0, _asyncToGenerator2.default)(function* () { + this.onCheckConfigUpdateEvent = _$$_REQUIRE(_dependencyMap[29]).EventRegister.on(_events.default.CONFIG_UPDATE_CHECK, (0, _asyncToGenerator2.default)(function* () { var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref2$config = _ref2.config, config = _ref2$config === undefined ? global.getMainPSetup() : _ref2$config; @@ -283987,7 +281066,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2._showHintRestart(); } else { if (lastIssueChanged && config.pSetup === global.getActivePSetup().pSetup) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.TRIGGER_NEWSMEMORY_RESTART); + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.TRIGGER_NEWSMEMORY_RESTART); } if (allowedIPChanged && _LiveConfig.default.isRssSide() && config.pSetup === global.getRSSActivePSetup().pSetup) { @@ -283998,7 +281077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })); this.startNetworkStatusCheck(); - global.debugOperations.push(new (_$$_REQUIRE(_dependencyMap[28]).DebugOperation)("RootComponent", "mounted")); + global.debugOperations.push(new (_$$_REQUIRE(_dependencyMap[27]).DebugOperation)("RootComponent", "mounted")); this.setState({ loading: false, initialized: false @@ -284026,9 +281105,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (_this$colorSchemeChan = this.colorSchemeChangeListener) == null ? undefined : _this$colorSchemeChan.remove(); (_this$handleOpenURLLi = this.handleOpenURLListener) == null ? undefined : _this$handleOpenURLLi.remove(); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.rm(this.safeAreaChangeEventId); + _$$_REQUIRE(_dependencyMap[29]).EventRegister.rm(this.safeAreaChangeEventId); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.rm(this.onCheckConfigUpdateEvent); + _$$_REQUIRE(_dependencyMap[29]).EventRegister.rm(this.onCheckConfigUpdateEvent); _PushHelper.default.unregisterListener(); @@ -284046,7 +281125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _LiveConfig.default.keyDown(new _KeyEvent.default(event)); try { - _$$_REQUIRE(_dependencyMap[31]).ShortcutManager.onKeyDown({ + _$$_REQUIRE(_dependencyMap[30]).ShortcutManager.onKeyDown({ combo: _LiveConfig.default.getKeysCombo(), comboNoRL: _LiveConfig.default.getKeysComboNoRL() }); @@ -284060,14 +281139,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_onUserInteract", value: function _onUserInteract(event) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_USER_INTERACT); + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_USER_INTERACT); } }, { key: "_onAccessibilityModeChange", value: function _onAccessibilityModeChange(enable) { - _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.setSystemAccessibilityMode(enable); + _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.setSystemAccessibilityMode(enable); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_ACCESSIBILITY_MODE_CHANGE, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_ACCESSIBILITY_MODE_CHANGE, { enable: enable }); } @@ -284096,7 +281175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fromInterval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; try { - var info = yield _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.getConnectionInfo(); + var info = yield _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.getConnectionInfo(); this._handleConnectivityChange(info, fromInterval); } catch (e) {} @@ -284127,13 +281206,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (_deviceUtils.default.getAppearance() !== colorScheme) { _deviceUtils.default.setAppearance(colorScheme); - var activeTheme = _$$_REQUIRE(_dependencyMap[32]).Css.getActiveTheme(); + var activeTheme = _$$_REQUIRE(_dependencyMap[31]).Css.getActiveTheme(); - var themeInUse = _$$_REQUIRE(_dependencyMap[32]).Css.getThemeInUse(); + var themeInUse = _$$_REQUIRE(_dependencyMap[31]).Css.getThemeInUse(); - var isAutomaticTheme = _$$_REQUIRE(_dependencyMap[32]).Css.isAutomaticTheme(); + var isAutomaticTheme = _$$_REQUIRE(_dependencyMap[31]).Css.isAutomaticTheme(); - var isThemeDark = _$$_REQUIRE(_dependencyMap[32]).Css.isDarkTheme(); + var isThemeDark = _$$_REQUIRE(_dependencyMap[31]).Css.isDarkTheme(); var isSchemeDark = _deviceUtils.default.isDark(); @@ -284153,21 +281232,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } - if (_$$_REQUIRE(_dependencyMap[27]).JSUtils.equals(this.connectionInfo, connectionInfo)) { + if (_$$_REQUIRE(_dependencyMap[26]).JSUtils.equals(this.connectionInfo, connectionInfo)) { return; } this.clearConnectivityChangeTimeout(); RootComponent.CONNECTIVITY_TIMEOUT = setTimeout(function () { - if (!_$$_REQUIRE(_dependencyMap[27]).JSUtils.equals(_this4.connectionInfo, connectionInfo)) { + if (!_$$_REQUIRE(_dependencyMap[26]).JSUtils.equals(_this4.connectionInfo, connectionInfo)) { _Api.default.setTimeout(); var type = connectionInfo.type, effectiveType = connectionInfo.effectiveType; if (_this4.connectionInfo !== undefined) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_CONNECTIVITY_CHANGE, Object.assign({}, connectionInfo, { - online: _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.isOnline() + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_CONNECTIVITY_CHANGE, Object.assign({}, connectionInfo, { + online: _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.isOnline() })); } @@ -284188,7 +281267,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _PushHelper.default.checkIfSendRegistration(); - if (_$$_REQUIRE(_dependencyMap[27]).NetworkUtils.isOnline()) { + if (_$$_REQUIRE(_dependencyMap[26]).NetworkUtils.isOnline()) { update = yield this._checkConfigUpdate(); } @@ -284196,15 +281275,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var allowFontScaling = userSettings.getAllowFontScaling(); if (allowFontScaling) { - _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.updateFontScale().then(function () { + _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.updateFontScale().then(function () { var _ref5 = (0, _asyncToGenerator2.default)(function* (changed) { if (changed) { - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.hasNotDefaultFontScale() && !userSettings.userAlreadySetAllowFontScale) { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.hasNotDefaultFontScale() && !userSettings.userAlreadySetAllowFontScale) { allowFontScaling = yield userSettings.showAllowFontScalingModal(); } if (allowFontScaling) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.SYSTEM_FONT_SIZE_CHANGED); + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.SYSTEM_FONT_SIZE_CHANGED); } } }); @@ -284215,9 +281294,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }()); } - (0, _$$_REQUIRE(_dependencyMap[33]).trackEnterForeground)(); + (0, _$$_REQUIRE(_dependencyMap[32]).trackEnterForeground)(); } else { - (0, _$$_REQUIRE(_dependencyMap[33]).trackEnterBackground)(); + (0, _$$_REQUIRE(_dependencyMap[32]).trackEnterBackground)(); } if (!update) { @@ -284230,7 +281309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.startNetworkStatusCheck(); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, { currentAppState: this.currentAppState, nextAppState: nextAppState }); @@ -284242,12 +281321,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.clearNetworkStatusCheck(); this.clearConnectivityChangeTimeout(); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_BACKGROUND, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_BACKGROUND, { currentAppState: this.currentAppState, nextAppState: nextAppState }); } else if (this.currentAppState.match(/active/) && nextAppState === "inactive") { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_INACTIVE, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_INACTIVE, { currentAppState: this.currentAppState, nextAppState: nextAppState }); @@ -284297,31 +281376,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }, { key: "_forceRestart", - value: function () { - var _forceRestart2 = (0, _asyncToGenerator2.default)(function* () { - var IOSClassicEPaper = _optionalPackageUtils.default.getIOSClassicEPaper(); + value: function _forceRestart() { + _NavigationService.default.restart(); - if (IOSClassicEPaper) { - try { - yield IOSClassicEPaper.closeNativeNewsMemory(); - } catch (e) {} - } - - _NavigationService.default.restart(); - - return true; - }); - - function _forceRestart() { - return _forceRestart2.apply(this, arguments); - } - - return _forceRestart; - }() + return true; + } }, { key: "_showHint", value: function _showHint(hint, onHide) { - _$$_REQUIRE(_dependencyMap[34]).HintOverlay.show({ + _$$_REQUIRE(_dependencyMap[33]).HintOverlay.show({ config: { hint: hint, key: "hint_root_component", @@ -284337,20 +281400,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _showHintRestart2 = (0, _asyncToGenerator2.default)(function* () { var _this5 = this; - if (_LiveConfig.default.isEpaperClassicSide()) { - this._forceRestart(); - } else { - yield new Promise(function (resolve) { - return _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_POSTPONE_ACTION, { - resolve: resolve - }); + yield new Promise(function (resolve) { + return _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_POSTPONE_ACTION, { + resolve: resolve }); - yield (0, _$$_REQUIRE(_dependencyMap[35]).createPendingOperationPromise)(); + }); + yield (0, _$$_REQUIRE(_dependencyMap[34]).createPendingOperationPromise)(); - this._showHint(global.strings("hint_restart"), function () { - _this5._forceRestart(); - }); - } + this._showHint(global.strings("hint_restart"), function () { + _this5._forceRestart(); + }); }); function _showHintRestart() { @@ -284362,11 +281421,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_showHintUpdateUi", value: function _showHintUpdateUi() { - if (!_LiveConfig.default.isEpaperClassicSide()) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.CONFIG_FORCE_UPDATE, { - message: global.strings("hint_update_ui") - }); - } + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.CONFIG_FORCE_UPDATE, { + message: global.strings("hint_update_ui") + }); } }, { key: "_handleConfigUpdateOnPSetup", @@ -284385,7 +281442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var migrateChanged = false; var nativeOptionspageFallbackChanged = false; - if (!_$$_REQUIRE(_dependencyMap[27]).JSUtils.isEmpty(pSetupConfig)) { + if (!_$$_REQUIRE(_dependencyMap[26]).JSUtils.isEmpty(pSetupConfig)) { var pSetupUpdated = false; var pSetup = pSetupConfig.pSetup, machine = pSetupConfig.machine, @@ -284452,7 +281509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.setPSetupConfig(pSetup, config); } else { if (userIP) { - _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.setIP(userIP); + _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.setIP(userIP); } pSetupConfig.setAllowedIP(isAllowedIP); @@ -284658,8 +281715,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _setLayout = (0, _asyncToGenerator2.default)(function* (layout) { if (global.appNeedsSafeArea()) { - var orientation = layout.height > layout.width ? _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.PORTRAIT : _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.LANDSCAPE; - var fullOrientation = yield _$$_REQUIRE(_dependencyMap[29]).OurBridge.getStatusBarOrientation(); + var orientation = layout.height > layout.width ? _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.PORTRAIT : _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.LANDSCAPE; + var fullOrientation = yield _$$_REQUIRE(_dependencyMap[28]).OurBridge.getStatusBarOrientation(); var lockedOrientation = this._getLockedOrientationProps(); @@ -284671,7 +281728,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); if (somethingChange) { - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_ORIENTATION_CHANGE, Object.assign({}, _deviceUtils.default.screenDimensions, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_ORIENTATION_CHANGE, Object.assign({}, _deviceUtils.default.screenDimensions, { orientation: orientation, fullOrientation: fullOrientation })); @@ -284691,20 +281748,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _onLayout2 = (0, _asyncToGenerator2.default)(function* (_ref6) { var nativeEvent = _ref6.nativeEvent; - if (!(yield _$$_REQUIRE(_dependencyMap[29]).OurBridge.isActionModeVisible()) && !_IAPHelper.default.purchasing) { + if (!(yield _$$_REQUIRE(_dependencyMap[28]).OurBridge.isActionModeVisible()) && !_IAPHelper.default.purchasing) { var layout = nativeEvent.layout; var initialized = this.state.initialized; - (0, _$$_REQUIRE(_dependencyMap[36]).setRootContainerLayout)(layout); + (0, _$$_REQUIRE(_dependencyMap[35]).setRootContainerLayout)(layout); - if (_$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isAndroid() || !global.appNeedsSafeArea()) { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid() || !global.appNeedsSafeArea()) { var result = {}; try { - result = (yield _$$_REQUIRE(_dependencyMap[29]).OurBridge.isOrientationLocked()) || {}; + result = (yield _$$_REQUIRE(_dependencyMap[28]).OurBridge.isOrientationLocked()) || {}; } catch (e) {} - var fullOrientation = yield _$$_REQUIRE(_dependencyMap[29]).OurBridge.getStatusBarOrientation(); - var newOrientation = layout.height > layout.width ? _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.PORTRAIT : _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.LANDSCAPE; + var fullOrientation = yield _$$_REQUIRE(_dependencyMap[28]).OurBridge.getStatusBarOrientation(); + var newOrientation = layout.height > layout.width ? _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.PORTRAIT : _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.LANDSCAPE; var lockedOrientation = this._getLockedOrientationProps(); @@ -284719,12 +281776,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var densityDPI = this.props.densityDPI; - _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.setInchesBySizeAndDPI(densityDPI, _deviceUtils.default.getScreenDimensions()); + _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.setInchesBySizeAndDPI(densityDPI, _deviceUtils.default.getScreenDimensions()); if (somethingChange) { _deviceUtils.default.setSafeAreaFromScreenDimensions(); - _$$_REQUIRE(_dependencyMap[30]).EventRegister.emit(_events.default.ON_ORIENTATION_CHANGE, Object.assign({}, _deviceUtils.default.screenDimensions, { + _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_ORIENTATION_CHANGE, Object.assign({}, _deviceUtils.default.screenDimensions, { orientation: newOrientation })); } @@ -284738,7 +281795,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var userSettings = global.getUserSettings(); var startedAsTablet = userSettings.startedAsTablet; - var deviceChanged = startedAsTablet !== _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.isTablet(); + var deviceChanged = startedAsTablet !== _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isTablet(); if (deviceChanged) { _NavigationService.default.restart(); @@ -284757,14 +281814,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getTheme", value: function _getTheme() { if (global.isTaAddon()) { - return Object.assign({}, _$$_REQUIRE(_dependencyMap[37]).DefaultTheme, { - colors: Object.assign({}, _$$_REQUIRE(_dependencyMap[37]).DefaultTheme.colors, { - background: _$$_REQUIRE(_dependencyMap[27]).colors.transparent + return Object.assign({}, _$$_REQUIRE(_dependencyMap[36]).DefaultTheme, { + colors: Object.assign({}, _$$_REQUIRE(_dependencyMap[36]).DefaultTheme.colors, { + background: _$$_REQUIRE(_dependencyMap[26]).colors.transparent }) }); } - return _$$_REQUIRE(_dependencyMap[37]).DefaultTheme; + return _$$_REQUIRE(_dependencyMap[36]).DefaultTheme; } }, { key: "render", @@ -284778,22 +281835,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (initialized) { - var backgroundColor = global.splashBgColor ? global.splashBgColor : _$$_REQUIRE(_dependencyMap[27]).colors.white; + var backgroundColor = global.splashBgColor ? global.splashBgColor : _$$_REQUIRE(_dependencyMap[26]).colors.white; - _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.colorBars(backgroundColor, backgroundColor); + _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.colorBars(backgroundColor, backgroundColor); } - return (0, _$$_REQUIRE(_dependencyMap[38]).jsxs)(_$$_REQUIRE(_dependencyMap[36]).RootContainerLayoutContextProvider, { - children: [(0, _$$_REQUIRE(_dependencyMap[38]).jsx)(_$$_REQUIRE(_dependencyMap[39]).TecnaviaSafeAreaProvider, { - children: (0, _$$_REQUIRE(_dependencyMap[38]).jsx)(_rootBase.default, { + return (0, _$$_REQUIRE(_dependencyMap[37]).jsxs)(_$$_REQUIRE(_dependencyMap[35]).RootContainerLayoutContextProvider, { + children: [(0, _$$_REQUIRE(_dependencyMap[37]).jsx)(_$$_REQUIRE(_dependencyMap[38]).TecnaviaSafeAreaProvider, { + children: (0, _$$_REQUIRE(_dependencyMap[37]).jsx)(_rootBase.default, { onLayout: this.onLayout, - children: initialized ? (0, _$$_REQUIRE(_dependencyMap[38]).jsx)(_$$_REQUIRE(_dependencyMap[36]).CustomNavigationContainer, { + children: initialized ? (0, _$$_REQUIRE(_dependencyMap[37]).jsx)(_$$_REQUIRE(_dependencyMap[35]).CustomNavigationContainer, { theme: this._getTheme(), onNavigationRef: _NavigationService.default.main.setRef, - children: (0, _$$_REQUIRE(_dependencyMap[38]).jsx)(_rootNavigator.default, {}) + children: (0, _$$_REQUIRE(_dependencyMap[37]).jsx)(_rootNavigator.default, {}) }) : null }) - }), global.showSendLog ? (0, _$$_REQUIRE(_dependencyMap[38]).jsx)(_$$_REQUIRE(_dependencyMap[40]).LogButton, { + }), global.showSendLog ? (0, _$$_REQUIRE(_dependencyMap[37]).jsx)(_$$_REQUIRE(_dependencyMap[39]).LogButton, { style: { position: "absolute", end: 0 @@ -284825,7 +281882,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e migrate = pSetupConfig.migrate, showNativeOptionsPageFallbackUrl = pSetupConfig.showNativeOptionsPageFallbackUrl; - var userIP = _$$_REQUIRE(_dependencyMap[27]).NetworkUtils.getIP(); + var userIP = _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.getIP(); var pSetup = pSetupConfig.pSetup, machine = pSetupConfig.machine, @@ -284907,12 +281964,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cdnServer = _result.cdnServer; cdnVersion = _result.cdnVersion; - if (!_$$_REQUIRE(_dependencyMap[27]).JSUtils.isNull(result.migrate)) { + if (!_$$_REQUIRE(_dependencyMap[26]).JSUtils.isNull(result.migrate)) { var _result2 = result; migrate = _result2.migrate; } - if (!_$$_REQUIRE(_dependencyMap[27]).JSUtils.isNull(result.showNativeOptionsPageFallbackUrl)) { + if (!_$$_REQUIRE(_dependencyMap[26]).JSUtils.isNull(result.showNativeOptionsPageFallbackUrl)) { var _result3 = result; showNativeOptionsPageFallbackUrl = _result3.showNativeOptionsPageFallbackUrl; } @@ -284950,7 +282007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return checkConfigUpdateOnPSetup; }() }]); - }(_$$_REQUIRE(_dependencyMap[31]).Shortcut); + }(_$$_REQUIRE(_dependencyMap[30]).Shortcut); RootComponent.INTERVAL_ID = -1; RootComponent.INTERVAL_ID_VALUE = 60000; @@ -284994,18 +282051,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e lockedOrientation: _propTypes.default.oneOf(["default", "all", "portrait", "portrait_up", "portrait_down", "landscape", "landscape_left", "landscape_right"]), apiKey: _propTypes.default.string, enableDebugger: _propTypes.default.bool - }, _$$_REQUIRE(_dependencyMap[31]).Shortcut.propTypes); - RootComponent.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[31]).Shortcut.defaultProps, { + }, _$$_REQUIRE(_dependencyMap[30]).Shortcut.propTypes); + RootComponent.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[30]).Shortcut.defaultProps, { isAddon: false, isTecnaviaHelperApp: false, debugMode: false, - densityDPI: _$$_REQUIRE(_dependencyMap[27]).PlatformUtils.defaultDpi, + densityDPI: _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.defaultDpi, isHuawei: false, isKindle: false, shortcutEnabled: global.__DEV__, enableDebugger: false }); -},2142,[3,270,6,7,11,85,13,14,582,16,18,407,2143,1907,436,2197,1865,2134,434,627,879,866,1908,2205,1881,2153,2662,438,815,579,564,1984,817,1910,1985,2059,2238,1087,179,2210,2666]); +},2132,[3,270,6,7,11,85,13,14,582,16,18,407,2133,1943,436,2186,2194,2124,434,630,869,1944,2210,1870,2142,2666,438,818,579,564,1942,820,1998,1945,2049,2243,1090,179,2214,2670]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -285050,9 +282107,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), - Methods = _OptionalPackages$get.Methods; - var GlobalConfig = exports.default = function () { function GlobalConfig() { (0, _classCallCheck2.default)(this, GlobalConfig); @@ -285271,13 +282325,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _initNewsmemoryConfig = (0, _asyncToGenerator2.default)(function* () { var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getMainPSetup(); - var defaultConnectivityTimestamp = pSetupConfig.defaultConnectivityTimestamp, - newsmemoryToUseTimestamp = pSetupConfig.newsmemoryToUseTimestamp; + var defaultConnectivityTimestamp = pSetupConfig.defaultConnectivityTimestamp; try { yield global.getNewsmemoryConfig().init(); global.getNewsmemoryConfig().checkNetworkTimestamp(defaultConnectivityTimestamp); - global.getNewsmemoryConfig().checkRnUseDemoTimestamp(newsmemoryToUseTimestamp); } catch (e) {} }); @@ -285314,9 +282366,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (paywallEnabled) { yield _PaywallLoginStatus.default.initUserStatus(); - - _Paywall.default.registerToNewsMemoryEvents(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init paywall completed"); } } catch (e) {} @@ -285446,38 +282495,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getNewsmemoryScreenVersion", value: function getNewsmemoryScreenVersion() { var _global$getMainPSetup = global.getMainPSetup(), - newsmemoryToUse = _global$getMainPSetup.newsmemoryToUse, - disableRnDemo = _global$getMainPSetup.disableRnDemo; - - var _global$getNewsmemory2 = global.getNewsmemoryConfig(), - useRnDemo = _global$getNewsmemory2.useRnDemo; - - if (!disableRnDemo) {} - - if (global.isDebug && useRnDemo === "") { - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; - } + newsmemoryToUse = _global$getMainPSetup.newsmemoryToUse; switch (newsmemoryToUse) { case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.REACT: - if (!disableRnDemo && useRnDemo === "0" && !_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isAndroid()) { - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.NATIVE; - } - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; - case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.NATIVE: - if (!disableRnDemo && useRnDemo === "1" || _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isAndroid()) { - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; - } - - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.NATIVE; - case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.HTML5: return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.HTML5; default: - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.NATIVE; + return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; } } }, { @@ -285576,11 +282604,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e network = newsmemoryConfig.network, lastDbNetwork = newsmemoryConfig.lastDbNetwork, lastDbDownloadSpeed = newsmemoryConfig.lastDbDownloadSpeed; - - if (GlobalConfig.getNewsmemoryScreenVersion() === _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.NATIVE) { - epaperModeInfo += "\n USING EPAPER CLASSIC VERSION\n"; - } - var epaperDownloadMode = GlobalConfig.getNetworkLabel(network); epaperModeInfo += " EPAPER DOWNLOAD MODE: " + epaperDownloadMode + "\n"; @@ -285630,10 +282653,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _fallbackVersion = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getLastPathSegment(_$$_REQUIRE(_dependencyMap[18]).StringUtils.removeLastSlash(showNativeOptionsPageFallbackUrl)); nativeOptInfo = " NATIVE OPTIONS PAGE FALLBACK: " + _fallbackVersion + "\n"; - } else if (showNativeOptionsPage && Methods) { + } else if (showNativeOptionsPage) { var optVer = "n/d"; - if (typeof Methods.getVersion === "function") { + var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get.Methods; + + if (Methods && typeof Methods.getVersion === "function") { optVer = Methods.getVersion(); } @@ -285661,7 +282687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2143,[3,270,6,7,406,862,1919,1910,2049,1918,2134,434,627,879,878,2144,405,1863,438,815,864,817,1920]); +},2133,[3,270,6,7,406,865,2006,1998,2032,2005,2124,434,630,882,881,2134,405,1868,438,818,867,820,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -286616,7 +283642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e mode: _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT, hidden: false }; -},2144,[3,4,270,6,7,11,13,14,16,582,18,436,665,2145,2164,566,2188,668,857,2102,2189,2191,1909,1900,438,564,2178,1,179,2186,2192,825,2107,2177]); +},2134,[3,4,270,6,7,11,13,14,16,582,18,436,668,2135,2154,566,2177,671,860,2092,2178,2180,2003,2042,438,564,2167,1,179,2175,2181,828,2097,2166]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287552,7 +284578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleGraph.defaultProps = { renderGraphContent: false }; -},2145,[3,224,270,6,7,11,13,14,2146,2147,582,16,18,1863,436,627,856,2148,566,662,663,665,587,664,857,668,2149,2155,2158,2161,438,817,564,864,179,2162]); +},2135,[3,224,270,6,7,11,13,14,2136,2137,582,16,18,1868,436,630,859,2138,566,665,666,668,587,667,860,671,2139,2145,2148,2151,438,820,564,867,179,2152]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287648,7 +284674,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageId: 0, artId: -1 }; -},2146,[3,6,7,11,13,14,16,582,18,438,179,595]); +},2136,[3,6,7,11,13,14,16,582,18,438,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287768,7 +284794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageId: 0, artId: -1 }; -},2147,[3,4,6,7,11,13,14,16,582,18,179,595]); +},2137,[3,4,6,7,11,13,14,16,582,18,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287785,8 +284811,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var RNHTMLtoPDF = _optionalPackageUtils.default.getRNHtmlToPdf(); - var PDF_QUALITY = 3; var PRINT_DPI = exports.PRINT_DPI = 72; @@ -287837,19 +284861,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "htmlToPDF", value: function () { var _htmlToPDF = (0, _asyncToGenerator2.default)(function* (options) { - if (RNHTMLtoPDF) { - var _PdfUtils$getPDFPageP = PdfUtils.getPDFPagePoints(), - width = _PdfUtils$getPDFPageP.width, - height = _PdfUtils$getPDFPageP.height; + var RNHTMLtoPDF = _optionalPackageUtils.default.getRNHtmlToPdf(); - var file = yield RNHTMLtoPDF.convert(Object.assign({ - width: width, - height: height - }, options)); - return file; + if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.isNull(RNHTMLtoPDF)) { + return Promise.reject(); } - return Promise.reject(); + var _PdfUtils$getPDFPageP = PdfUtils.getPDFPagePoints(), + width = _PdfUtils$getPDFPageP.width, + height = _PdfUtils$getPDFPageP.height; + + var file = yield RNHTMLtoPDF.convert(Object.assign({ + width: width, + height: height + }, options)); + return file; }); function htmlToPDF(_x2) { @@ -287891,7 +284917,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2148,[3,270,6,7,18,879,438]); +},2138,[3,270,6,7,18,882,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287910,23 +284936,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); var _reactNativeReanimated = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - var _styles = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _refreshComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _tapView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _gestureTimer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _gestureTimer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _tapView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var _refreshComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _zoomConstants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _zoomConstants = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var _styles = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } @@ -288475,20 +285501,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_setNativePropsToRef", value: function _setNativePropsToRef(ref, props) { - if (ref && ref.current) { - ref.current.setNativeProps(props); - } + var _ref$current; + + ref == null ? undefined : (_ref$current = ref.current) == null ? undefined : _ref$current.setNativeProps(props); } }, { key: "_getViewPagerRef", value: function _getViewPagerRef() { + var _viewPagerRef$current; + var viewPagerRef = this.props.viewPagerRef; - - if (viewPagerRef && viewPagerRef.current) { - return viewPagerRef.current.getGestureHandlerRef(); - } - - return undefined; + return viewPagerRef == null ? undefined : (_viewPagerRef$current = viewPagerRef.current) == null ? undefined : _viewPagerRef$current.getGestureHandlerRef(); } }, { key: "_isZoomed", @@ -288534,13 +285557,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_updatePanSwipeEffect", value: function _updatePanSwipeEffect() { if (this._isActive()) { - if (this.progressRef && this.progressRef.current) { - this.progressRef.current.show(); - } + var _this$progressRef, _this$progressRef$cur; + + (_this$progressRef = this.progressRef) == null ? undefined : (_this$progressRef$cur = _this$progressRef.current) == null ? undefined : _this$progressRef$cur.show(); this._toggleGestureState(this._isScrollEnabled()); - } else if (this.progressRef && this.progressRef.current) { - this.progressRef.current.hide(); + } else { + var _this$progressRef2, _this$progressRef2$cu; + + (_this$progressRef2 = this.progressRef) == null ? undefined : (_this$progressRef2$cu = _this$progressRef2.current) == null ? undefined : _this$progressRef2$cu.hide(); } } }, { @@ -288555,15 +285580,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_toggleScroll", value: function _toggleScroll(enableScroll) { - var viewPagerRef = this.props.viewPagerRef; + var _viewPagerRef$current2; - if (viewPagerRef && viewPagerRef.current) { - viewPagerRef.current.toggleViewPagerState({ - enabled: enableScroll, - scrollEnabled: enableScroll, - waitFor: [this.panRef, this.pinchRef] - }); - } + var viewPagerRef = this.props.viewPagerRef; + viewPagerRef == null ? undefined : (_viewPagerRef$current2 = viewPagerRef.current) == null ? undefined : _viewPagerRef$current2.toggleViewPagerState({ + enabled: enableScroll, + scrollEnabled: enableScroll, + waitFor: [this.panRef, this.pinchRef] + }); } }, { key: "_togglePan", @@ -288597,7 +285621,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e props.minDist = 20; } } else { - props.minDist = enableScroll ? 30 : 5; + if (enableScroll) { + props.minDeltaY = 5; + props.minDeltaX = 30; + } else { + props.minDist = 5; + } } return props; @@ -288870,22 +285899,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minZoom: 1, maxZoom: 5 }; -},2149,[3,33,6,7,11,13,14,16,18,582,671,2150,2151,2152,2102,2153,438,1,2154,179,817,1970,1968]); +},2139,[3,33,6,7,11,13,14,582,16,18,674,2092,2140,2141,2142,2143,438,1,2144,179,820,1928,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _default = exports.default = _reactNative.StyleSheet.create({ - wrapper: { - flex: 1, - overflow: "hidden" + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var GestureTimer = exports.default = function () { + function GestureTimer() { + (0, _classCallCheck2.default)(this, GestureTimer); } - }); -},2150,[18]); + + return (0, _createClass2.default)(GestureTimer, null, [{ + key: "startTimer", + value: function startTimer(timerKey, callback, timer) { + if (!GestureTimer.timers[timerKey]) { + GestureTimer.timers[timerKey] = setTimeout(function () { + callback(); + GestureTimer.timers[timerKey] = undefined; + }, timer); + } + } + }, { + key: "resetTimer", + value: function resetTimer(timerKey) { + if (GestureTimer.timers[timerKey]) { + clearTimeout(GestureTimer.timers[timerKey]); + GestureTimer.timers[timerKey] = undefined; + } + } + }]); + }(); + + GestureTimer.timers = {}; +},2140,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289037,45 +286089,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e twoFingersTapHandlerWaitFor: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]), doubleTapHandlerWaitFor: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]) }; -},2151,[3,6,7,11,13,14,16,582,18,1,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var GestureTimer = exports.default = function () { - function GestureTimer() { - (0, _classCallCheck2.default)(this, GestureTimer); - } - - return (0, _createClass2.default)(GestureTimer, null, [{ - key: "startTimer", - value: function startTimer(timerKey, callback, timer) { - if (!GestureTimer.timers[timerKey]) { - GestureTimer.timers[timerKey] = setTimeout(function () { - callback(); - GestureTimer.timers[timerKey] = undefined; - }, timer); - } - } - }, { - key: "resetTimer", - value: function resetTimer(timerKey) { - if (GestureTimer.timers[timerKey]) { - clearTimeout(GestureTimer.timers[timerKey]); - GestureTimer.timers[timerKey] = undefined; - } - } - }]); - }(); - - GestureTimer.timers = {}; -},2152,[3,6,7]); +},2141,[3,6,7,11,13,14,16,582,18,1,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289123,7 +286137,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ZoomDevice.constants = {}; var _default = exports.default = ZoomDevice; -},2153,[3,6,7,438]); +},2142,[3,6,7,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.StyleSheet.create({ + wrapper: { + flex: 1, + overflow: "hidden" + } + }); +},2143,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289340,7 +286369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var limit = cond(lessThan(multiply(contentSize.width, scale), viewSize.width), panLeftX, add(sub(panLeftX, multiply(contentSize.width, scale)), viewSize.width)); return block([debug("RIGHT: ", limit), call([limit], callback), limit]); } -},2154,[671,3,2153,438,1]); +},2144,[674,3,2142,438,1]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289595,7 +286624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showAll: false, hidden: false }; -},2155,[3,22,4,6,7,11,13,14,16,582,18,2156,856,438,179]); +},2145,[3,22,4,6,7,11,13,14,16,582,18,2146,859,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289983,7 +287012,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2156,[3,4,270,6,7,11,13,14,16,582,18,2157,436,627,857,406,668,564,179,438,588,587]); +},2146,[3,4,270,6,7,11,13,14,16,582,18,2147,436,630,860,406,671,564,179,438,588,587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -290075,7 +287104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onHrError: _propTypes.default.func, onHrLoaded: _propTypes.default.func }); -},2157,[3,6,7,11,13,14,16,582,18,179,595]); +},2147,[3,6,7,11,13,14,16,582,18,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -290159,7 +287188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.onExtraShow = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.NEWSMEMORY_SHOW_EXTRA, function (_ref) { var eventPage = _ref.page; - if (_pageUtils.default.comparePages(page, eventPage)) { + if (eventPage && _pageUtils.default.comparePages(page, eventPage)) { _this2.highlight(); } }); @@ -290171,7 +287200,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var currentUrlType = _this2.state.urlType; - if (_pageUtils.default.comparePages(page, eventPage) && currentUrlType !== _$$_REQUIRE(_dependencyMap[17]).URL_TYPES.UNDERLINE && urlType === _$$_REQUIRE(_dependencyMap[17]).URL_TYPES.UNDERLINE) { + if (eventPage && _pageUtils.default.comparePages(page, eventPage) && currentUrlType !== _$$_REQUIRE(_dependencyMap[17]).URL_TYPES.UNDERLINE && urlType === _$$_REQUIRE(_dependencyMap[17]).URL_TYPES.UNDERLINE) { _this2.setState({ urlType: _$$_REQUIRE(_dependencyMap[17]).URL_TYPES.UNDERLINE }); @@ -290360,7 +287389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = PageExtra; -},2158,[3,6,7,11,13,14,582,16,18,436,2159,856,664,665,668,438,564,864,179]); +},2148,[3,6,7,11,13,14,582,16,18,436,2149,859,667,668,671,438,564,867,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291204,7 +288233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] }, index); } -},2159,[3,33,6,7,16,18,2160,407,2034,862,662,665,669,668,1881,436,1863,406,663,664,667,1941,627,856,2039,438,864,1900,1979,564,817,179]); +},2149,[3,33,6,7,16,18,2150,407,1994,865,665,668,672,671,1870,436,1868,406,666,667,670,1899,630,859,2022,438,867,2042,1937,564,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291214,7 +288243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.RNMail; -},2160,[18]); +},2150,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291228,7 +288257,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2161,[18]); +},2151,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291335,7 +288364,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e errors: [], autoHideTimer: 5000 }; -},2162,[3,6,7,11,13,14,16,582,18,814,179,817,2163]); +},2152,[3,6,7,11,13,14,16,582,18,817,179,820,2153]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291359,7 +288388,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2163,[18,438]); +},2153,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291420,6 +288449,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + var CONTENT_ELEMENT_ID = "content"; + var ArticleText = exports.default = function (_React$Component) { function ArticleText(props) { var _this; @@ -291477,18 +288508,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this2 = this; this.toggleFont = _$$_REQUIRE(_dependencyMap[27]).EventRegister.on(_events.default.TOGGLE_FULLSCREEN_FONT_SIZE, function () { - _this2._updateWebviewFontSize(); - - if (_this2._isColumnizerChanged()) { - _this2._initializeHtml(); - } + _this2._updateWebviewFontSize(_this2._isColumnizerChanged()); }); this.systemFontSizeChanged = _$$_REQUIRE(_dependencyMap[27]).EventRegister.on(_events.default.SYSTEM_FONT_SIZE_CHANGED, function () { - _this2._updateWebviewFontSize(); - - if (_this2._isColumnizerChanged()) { - _this2._initializeHtml(); - } + _this2._updateWebviewFontSize(_this2._isColumnizerChanged()); }); this.configChangeListener = _$$_REQUIRE(_dependencyMap[27]).EventRegister.on(_events.default.NEWSMEMORY_CONFIG_CHANGE, this.checkConfig); this.orientationListener = _$$_REQUIRE(_dependencyMap[27]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function () { @@ -291517,9 +288540,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._initializeHtml(); } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(props) {} }, { key: "shouldComponentUpdate", value: function shouldComponentUpdate(nextProps, nextState) { @@ -291693,36 +288713,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize = _global$getNewsmemory2.fontSize, currentTranslationLanguage = _global$getNewsmemory2.currentTranslationLanguage; - if (this.fontSize !== parseInt(fontSize, 10)) { - this._updateWebviewFontSize(); - } - var updateHtml = this._isActive() && this.currentTranslationLanguage !== currentTranslationLanguage; if (updateHtml) { _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.TRANSLATE_CHANGE_BUTTON_BADGE); } - if (this._isColumnizerChanged() || updateHtml) { + var reinitHtml = this._isColumnizerChanged() || updateHtml; + + if (this.fontSize !== parseInt(fontSize, 10)) { + this._updateWebviewFontSize(reinitHtml); + } else if (reinitHtml) { this._initializeHtml(); } } }, { key: "_updateWebviewFontSize", value: function _updateWebviewFontSize() { + var _this$articleHeaderRe; + + var initHtml = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var _global$getUserSettin = global.getUserSettings(), fontSize = _global$getUserSettin.fontSize; this.fontSize = parseInt(fontSize, 10); var userFontSize = global.getUserSettings().getFontSize(); + (_this$articleHeaderRe = this.articleHeaderRef) == null ? undefined : _this$articleHeaderRe.applyFontScale(userFontSize / 100); - if (this.articleWebView) { - this.articleWebView.injectJavaScript("try{ document.getElementById('content').style.fontSize = \"" + userFontSize + "%\";}catch(e){}"); - this.articleWebView.recheckContentHeight(); - } + if (initHtml) { + this._initializeHtml(); + } else { + var _this$articleWebView; - if (this.articleHeaderRef) { - this.articleHeaderRef.applyFontScale(userFontSize / 100); + (_this$articleWebView = this.articleWebView) == null ? undefined : _this$articleWebView.injectJavaScript((0, _$$_REQUIRE(_dependencyMap[31]).getFontSizeChangeListenerScript)(CONTENT_ELEMENT_ID)); } } }, { @@ -291787,16 +288811,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_startHeightCheck", value: function _startHeightCheck() { - if (this.articleWebView) { - this.articleWebView.startHeightCheck(); - } + var _this$articleWebView2; + + (_this$articleWebView2 = this.articleWebView) == null ? undefined : _this$articleWebView2.startHeightCheck(); } }, { key: "_stopHeightCheck", value: function _stopHeightCheck() { - if (this.articleWebView) { - this.articleWebView.stopHeightCheck(); - } + var _this$articleWebView3; + + (_this$articleWebView3 = this.articleWebView) == null ? undefined : _this$articleWebView3.stopHeightCheck(); } }, { key: "_onHeightChange", @@ -291837,30 +288861,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_getHrsPosition", value: function _getHrsPosition() { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof getHrsPosition === 'function') getHrsPosition();"); - } + var _this$articleWebView4; + + (_this$articleWebView4 = this.articleWebView) == null ? undefined : _this$articleWebView4.injectJavaScript("if (typeof getHrsPosition === 'function') getHrsPosition();"); } }, { key: "_getLoadedAds", value: function _getLoadedAds() { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof getLoadedAds === 'function') getLoadedAds();"); - } + var _this$articleWebView5; + + (_this$articleWebView5 = this.articleWebView) == null ? undefined : _this$articleWebView5.injectJavaScript("if (typeof getLoadedAds === 'function') getLoadedAds();"); } }, { key: "_getPositionId", value: function _getPositionId(x, y) { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof getPositionId === 'function') getPositionId(" + x + "," + y + ");"); - } + var _this$articleWebView6; + + (_this$articleWebView6 = this.articleWebView) == null ? undefined : _this$articleWebView6.injectJavaScript("if (typeof getPositionId === 'function') getPositionId(" + x + "," + y + ");"); } }, { key: "_goToPositionId", value: function _goToPositionId(positionId) { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof goToPositionId === 'function') goToPositionId('" + positionId + "');"); - } + var _this$articleWebView7; + + (_this$articleWebView7 = this.articleWebView) == null ? undefined : _this$articleWebView7.injectJavaScript("if (typeof goToPositionId === 'function') goToPositionId('" + positionId + "');"); } }, { key: "_setNativeAdsCallback", @@ -291876,7 +288900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.LOAD_NATIVE_ADS, { - id: (0, _$$_REQUIRE(_dependencyMap[31]).getArticleId)(article), + id: (0, _$$_REQUIRE(_dependencyMap[32]).getArticleId)(article), nativeAds: nativeAds }); } @@ -291885,13 +288909,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getNativeAds", value: function _getNativeAds() { var article = this.props.article; - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_articleAdContainer.default, { - articleId: (0, _$$_REQUIRE(_dependencyMap[31]).getArticleId)(article) + return (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_articleAdContainer.default, { + articleId: (0, _$$_REQUIRE(_dependencyMap[32]).getArticleId)(article) }); } }, { key: "_onAdLoaded", value: function _onAdLoaded(model) { + var _this$articleWebView8; + var key = model.key, firstLoadTime = model.firstLoadTime; @@ -291899,13 +288925,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._debug("Native ad loaded: " + key + " in " + firstLoadTime / 1000 + "s", "ads"); } - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof showNativeAd === 'function') showNativeAd(\"" + key + "\");"); - } + (_this$articleWebView8 = this.articleWebView) == null ? undefined : _this$articleWebView8.injectJavaScript("if (typeof showNativeAd === 'function') showNativeAd(\"" + key + "\");"); } }, { key: "_onAdFailed", value: function _onAdFailed(model, error) { + var _this$articleWebView9; + var key = model.key, firstLoadTime = model.firstLoadTime; @@ -291913,13 +288939,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._debug("Native ad failed: " + key + " in " + firstLoadTime / 1000 + "s, " + error, "ads"); } - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof hideNativeAd === 'function') hideNativeAd(\"" + key + "\");"); - } + (_this$articleWebView9 = this.articleWebView) == null ? undefined : _this$articleWebView9.injectJavaScript("if (typeof hideNativeAd === 'function') hideNativeAd(\"" + key + "\");"); } }, { key: "_reloadAds", value: function _reloadAds() { + var _this$articleWebView10; + this._log("reload ads"); var _this$props6 = this.props, @@ -291927,13 +288953,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e article = _this$props6.article; _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.LOAD_NATIVE_ADS, { - id: (0, _$$_REQUIRE(_dependencyMap[31]).getArticleId)(article), + id: (0, _$$_REQUIRE(_dependencyMap[32]).getArticleId)(article), nativeAds: [] }); - if (this.articleWebView) { - this.articleWebView.updateHeight(defaultHeight); - } + (_this$articleWebView10 = this.articleWebView) == null ? undefined : _this$articleWebView10.updateHeight(defaultHeight); } }, { key: "_onMessage", @@ -291986,7 +289010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url = content.url; var iconSize = 30; var imageProps = { - type: _$$_REQUIRE(_dependencyMap[33]).TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, + type: _$$_REQUIRE(_dependencyMap[34]).TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, size: iconSize, imageStyle: { width: iconSize, @@ -291995,25 +289019,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: "contain" }; - _$$_REQUIRE(_dependencyMap[34]).MyBottomSheet.show({ + _$$_REQUIRE(_dependencyMap[35]).MyBottomSheet.show({ options: [{ title: global.strings("label_open_browser"), - icon: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[35]).Css, { + icon: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[36]).Css, { classes: ["newsmemory-image-options-menu-icon", "newsmemory-image-options-menu-icon-link"], - children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_imageIconChooserComponent.default, Object.assign({ + children: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_imageIconChooserComponent.default, Object.assign({ name: _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isIOS() ? "apple-safari" : "google-chrome" }, imageProps)) }), onPress: function onPress() { _tecnaviaPlatformUtils.default.openURL(link); }, - textStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-link"]), - containerStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-link"]) + textStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-link"]), + containerStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-link"]) }, { title: global.strings("action_share"), - icon: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[35]).Css, { + icon: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[36]).Css, { classes: ["newsmemory-image-options-menu-icon", "newsmemory-image-options-menu-icon-share"], - children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_imageIconChooserComponent.default, Object.assign({ + children: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_imageIconChooserComponent.default, Object.assign({ name: "share-variant" }, imageProps)) }), @@ -292023,21 +289047,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: link }); }, - textStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-share"]), - containerStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-share"]) + textStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-share"]), + containerStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-share"]) }, { title: global.strings("action_open_gallery"), - icon: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[35]).Css, { + icon: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[36]).Css, { classes: ["newsmemory-image-options-menu-icon", "newsmemory-image-options-menu-icon-gallery"], - children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_imageIconChooserComponent.default, Object.assign({ + children: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_imageIconChooserComponent.default, Object.assign({ name: "image-multiple-outline" }, imageProps)) }), onPress: function onPress() { _this5.openGallery(url); }, - textStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-gallery"]), - containerStyle: _$$_REQUIRE(_dependencyMap[35]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-gallery"]) + textStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-text", "newsmemory-image-options-menu-text-gallery"]), + containerStyle: _$$_REQUIRE(_dependencyMap[36]).Css.getStyleObjByCssClasses(["newsmemory-image-options-menu-item", "newsmemory-image-options-menu-item-gallery"]) }] }); } else if (type === "SAVE_IMAGE") { @@ -292046,7 +289070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e issue = content.issue, filename = content.filename, image = content.image; - (0, _$$_REQUIRE(_dependencyMap[31]).storeArticleImage)(base64, paper, issue, filename, image); + (0, _$$_REQUIRE(_dependencyMap[32]).storeArticleImage)(base64, paper, issue, filename, image); } else if (type === "RETRIEVE_IMAGE") { var _this$state2 = this.state, gallery = _this$state2.gallery, @@ -292056,7 +289080,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _issue = content.issue, _filename = content.filename, _image = content.image; - (0, _$$_REQUIRE(_dependencyMap[31]).retrieveArticleImage)(_paper, _issue, _filename, _image).then(function (base64) { + (0, _$$_REQUIRE(_dependencyMap[32]).retrieveArticleImage)(_paper, _issue, _filename, _image).then(function (base64) { if (_this5.articleWebView) { if (base64) { var base64String = "data:image/jpeg;base64," + base64; @@ -292129,7 +289153,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); if (imageIndex > -1) { - onOpenGallery((0, _$$_REQUIRE(_dependencyMap[36]).newsmemoryArticleGallery)(gallery), imageIndex); + onOpenGallery((0, _$$_REQUIRE(_dependencyMap[37]).newsmemoryArticleGallery)(gallery), imageIndex); } } catch (e) { this._warn(e.message); @@ -292148,7 +289172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e edition = _this$props8.edition, page = _this$props8.page, article = _this$props8.article; - (0, _$$_REQUIRE(_dependencyMap[37]).sendNewsmemoryArticleClickThrough)(edition, page, article, url); + (0, _$$_REQUIRE(_dependencyMap[38]).sendNewsmemoryArticleClickThrough)(edition, page, article, url); return false; } }, { @@ -292185,13 +289209,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enableColumnizer = options.enableColumnizer, isOnline = options.isOnline; newHtml = _$$_REQUIRE(_dependencyMap[26]).StringUtils.serializeHtml(newHtml.replace(/\n|\t/gm, "")); - newHtml = (0, _$$_REQUIRE(_dependencyMap[31]).extractLinks)(newHtml); + newHtml = (0, _$$_REQUIRE(_dependencyMap[32]).extractLinks)(newHtml); newHtml = (0, _$$_REQUIRE(_dependencyMap[29]).applyMergeArtToHTML)(newHtml, mergeArticles, enableColumnizer, calculateMidAds, isOnline, edition, article, newspaper.getSecret()); var imageMatches = newHtml.match(_$$_REQUIRE(_dependencyMap[29]).REGEX_TAGS.IMAGE); var imagesPresent = imageMatches && imageMatches.length > imageLimit; if (!options.enableDesktopLayout) { - newHtml = (0, _$$_REQUIRE(_dependencyMap[31]).addInStoryAdsToHtml)(newHtml, imagesPresent, isOnline); + newHtml = (0, _$$_REQUIRE(_dependencyMap[32]).addInStoryAdsToHtml)(newHtml, imagesPresent, isOnline); } return { @@ -292323,7 +289347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_debug", value: function _debug(message, type) { var index = this.props.index; - (0, _$$_REQUIRE(_dependencyMap[38]).addDebugOperation)("ArticleText " + index, message, type); + (0, _$$_REQUIRE(_dependencyMap[39]).addDebugOperation)("ArticleText " + index, message, type); } }, { key: "render", @@ -292351,7 +289375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderComponent = null; if (headerImage) { - HeaderComponent = (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_articleExpandImageComponent.default, { + HeaderComponent = (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_articleExpandImageComponent.default, { ref: this.onArticleHeaderRef, caption: biggestImage.getCaption(), url: biggestImage.getUrl(), @@ -292380,20 +289404,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._log("render"); - return (0, _$$_REQUIRE(_dependencyMap[32]).jsxs)(_$$_REQUIRE(_dependencyMap[35]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[33]).jsxs)(_$$_REQUIRE(_dependencyMap[36]).Css, { classes: ["newsmemory-article-text"], - children: [HeaderComponent, (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[39]).Error, { + children: [HeaderComponent, (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[40]).Error, { errors: errors, style: _articleText.default.error - }), (0, _$$_REQUIRE(_dependencyMap[32]).jsxs)(_reactNative.View, { + }), (0, _$$_REQUIRE(_dependencyMap[33]).jsxs)(_reactNative.View, { style: _articleText.default.container, - children: [manipulatedHtml && manipulatedHtml.length ? (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[40]).AutoHeightWebView, { + children: [(manipulatedHtml == null ? undefined : manipulatedHtml.length) > 0 ? (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[41]).AutoHeightWebView, { accessible: false, importantForAccessibility: "no", ref: this.onWebViewRef, onLinkClicked: this.onLinkClicked, defaultHeight: defaultHeight, - htmlContentId: "content", + htmlContentId: CONTENT_ELEMENT_ID, source: { html: manipulatedHtml }, @@ -292402,16 +289426,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onLoadEnd: this.onLoadEnd, onHeightChange: this.onHeightChange, progressColor: _$$_REQUIRE(_dependencyMap[26]).colors.md_grey_500, - startInLoadingState: _$$_REQUIRE(_dependencyMap[41]).LoadingStatePosition.bottom, + startInLoadingState: _$$_REQUIRE(_dependencyMap[42]).LoadingStatePosition.bottom, disableStartAutoHeightEvaluation: !this._isActive(), progressHidden: !this._isActive(), - progressType: _$$_REQUIRE(_dependencyMap[41]).ProgressTypes.bar, + progressType: _$$_REQUIRE(_dependencyMap[42]).ProgressTypes.bar, focusableInTouchMode: false, focusable: false - }) : null, !accessibilityEnabled && !carModeEnabled ? this._getNativeAds() : null, accessibilityEnabled && !carModeEnabled && innerText ? (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_reactNative.View, { + }) : null, !accessibilityEnabled && !carModeEnabled ? this._getNativeAds() : null, accessibilityEnabled && !carModeEnabled && innerText ? (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_reactNative.View, { style: _articleText.default.accessibility, accessibilityLabel: innerText, - children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[42]).ItemAccessibilityFocused, { + children: (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_$$_REQUIRE(_dependencyMap[43]).ItemAccessibilityFocused, { touchable: true, enablePause: true, focused: accessibilityFocus, @@ -292419,7 +289443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e accessibilityEnabled: accessibilityEnabled, accessibilityLabel: innerText || "" }) - }) : null, options.truncateArticle ? (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_loginOverlay.default, { + }) : null, options.truncateArticle ? (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(_loginOverlay.default, { style: _articleText.default.truncateParent, title: global.strings("msg_login_overlay_title"), showLogin: !loginStatus.isLoggedIn() @@ -292469,7 +289493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e header: false, enableDesktopLayout: false }; -},2164,[3,270,6,7,11,13,14,582,16,18,567,1863,2165,1864,436,627,2039,664,665,857,668,2166,1941,2167,2170,2172,438,564,864,2173,1979,2178,179,1807,2180,817,2034,1900,815,2162,2185,2040,2186]); +},2154,[3,270,6,7,11,13,14,582,16,18,567,1868,2155,1869,436,630,2022,667,668,860,671,2156,1899,2157,2160,2162,438,564,867,2163,1937,2036,2167,179,1812,2169,820,1994,2042,818,2152,2174,2023,2175]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292723,7 +289747,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2165,[3,270,6,7,566,664,665,857,668,406,1864,1900,438,1726]); +},2155,[3,270,6,7,566,667,668,860,671,406,1869,2042,438,1731]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292896,12 +289920,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var top = ad.top, height = ad.height; var hidden = top + height * 0.25 > scrollYOffset + scrollHeight; + var model = Object.assign({ + index: index + }, ad, adModel); + var key = model.key; return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(InsideBanner, { - model: Object.assign({ - index: index - }, ad, adModel), + model: model, hidden: hidden - }); + }, key); }); } @@ -292914,7 +289940,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ArticleAdContainer; -},2166,[3,33,582,16,18,436,2090,179,564,438]); +},2156,[3,33,582,16,18,436,2080,179,564,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293299,7 +290325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minHeight: 150, fontScale: 1 }; -},2167,[3,270,6,7,11,13,14,582,16,18,814,588,1941,2168,817,179,1752,2169,438]); +},2157,[3,270,6,7,11,13,14,582,16,18,817,588,1899,2158,820,179,1757,2159,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293344,7 +290370,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 40 } }); -},2168,[18,438]); +},2158,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -293356,7 +290382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-down", "type": "png" }); -},2169,[1258]); +},2159,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293594,7 +290620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e button: undefined, login: undefined }; -},2170,[3,6,7,11,13,14,16,582,18,814,2171,436,1,564,878,856,817,179]); +},2160,[3,6,7,11,13,14,16,582,18,817,2161,436,1,564,881,859,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293652,7 +290678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 16 } }); -},2171,[18,438]); +},2161,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293688,7 +290714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: "white" } }); -},2172,[18]); +},2162,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -294364,7 +291390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e positionScript = "\n "; } - var newHtml = "\n \n \n \n \n " + columnizerCss + "\n " + allBlackCss + "\n \n " + libraryScripts + "\n \n \n
\n
\n " + html + "\n
\n
\n \n \n \n \n \n \n " + moveImagesScript + "\n \n \n " + columnizerScript + "\n " + positionScript + "\n \n \n \n "; + var newHtml = "\n \n \n \n \n " + columnizerCss + "\n " + allBlackCss + "\n \n " + libraryScripts + "\n \n \n
\n
\n " + html + "\n
\n
\n \n \n \n \n \n \n " + moveImagesScript + "\n \n \n " + columnizerScript + "\n " + positionScript + "\n \n \n \n "; if (searchText) { newHtml = newHtml.replace(new RegExp("(" + searchText + "(?![^<>]*>))", "gim"), "" + searchText + ""); @@ -295067,7 +292093,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return html; }; -},2173,[3,22,406,2174,627,856,866,665,664,668,666,438,864,2175,2176,2177,2178,2179]); +},2163,[3,22,406,2164,630,859,869,668,667,671,669,438,867,2165,2037,2166,2167,2168]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295077,7 +292103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var columnizer = "\n function setTopAdsPos(){\n $(\"#articleAds_top\").insertBefore(\"#slideArt\");\n $(\"#slideArt\").find(\"#articleAds_top\").remove();\n }\n\n function setTranslateBannerPos(){\n $(\"#image_div_translation\").insertBefore(\"#slideArt\");\n $(\"#slideArt\").find(\"#image_div_translation\").remove();\n }\n\n function setMiddleAdsPos(){\n var ads = $(\"#articleAds_mid\");\n if(ads.length > 0){\n var objMiddle = ads[0].outerHTML;\n ads.remove();\n $(objMiddle).prependTo($(\"#scrollMergeADD\"));\n }\n }\n\n function setPaddingToColumns(element, index) {\n $(\"
\").insertBefore(element);\n $(element)\n .children()\n .appendTo(\".div_padding\" + index);\n $(\".div_padding\" + index).appendTo(element);\n $(\".div_padding\" + index).css(\"padding\", \"3px\");\n }\n\n function updateTopArt(){\n var artAddObjs = $(\"div[id^='ArtADD']\");\n $(artAddObjs).each(function(i){\n var idArtAdd = $(this).attr(\"id\");\n var parentArtADD = $(\"#\"+idArtAdd).parent();\n if(typeof $($(\"#\"+idArtAdd).parent().parent()).attr(\"class\") != \"undefined\" && $($(\"#\"+idArtAdd).parent().parent()).attr(\"class\").indexOf(\"last\") > -1){\n var cloneArtADD = \"
\"+$(\"#\"+idArtAdd).html()+\"
\";\n $(\"#\"+idArtAdd).remove();\n if($(\".first.column.last\").length == 0 && $(\".first.column\").length > 0){\n $(parentArtADD).prepend(cloneArtADD);\n }else if($(\".first.last.column\").length == 1){\n $(parentArtADD).append(cloneArtADD);\n }else{\n $(parentArtADD).prepend('');\n $(parentArtADD).append(cloneArtADD);\n }\n }\n });\n }\n\n var BASE_COLUMN_WIDTH = " + columnizerBaseColumnWidth + ";\n var VERY_SHORT_ARTICLE_LENGTH = 500;\n var SHORT_ARTICLE_LENGTH = 1500;\n\n function fixSingleColumnWidth(element) {\n var textLength = $(element).children().text().length;\n /* if single column on a very short article reduce the width of the column \n to improve the readability */ \n if ($(element+\" .column\").length === 1 && textLength <= VERY_SHORT_ARTICLE_LENGTH) {\n var containerWidth = $(\"#slideArt\").width();\n var virtualCols = Math.round(containerWidth / BASE_COLUMN_WIDTH);\n var colWidth = containerWidth/virtualCols;\n if ($(element+\" .column\").width() != colWidth) {\n $(element+\" .column\").width(colWidth);\n }\n }\n }\n\n function fixImagesAlignment(element) {\n $(\"p.imgContainer img\").each(function() {\n /* check if the image is followed by a paragraph */\n var parentNode = $(this).parent();\n var prevElement = parentNode && parentNode.prev();\n var nextElement = parentNode && parentNode.next();\n if ((!prevElement || !prevElement.hasClass(\"quote\")) && (!nextElement || !nextElement.hasClass(\"paragraph\"))) {\n /* if the image has a width less than 25% of the column align to the left */\n if ($(this).width() < $(element+\" .column\").width()*0.25) {\n $(this).css(\"margin\", 0);\n }\n }\n });\n }\n\n function moveImagesIfSingleColumn(element) {\n if ($(element+\" .column\").length === 1 && typeof moveImages === \"function\") {\n moveImages();\n }\n }\n\n function movePageJumpsColumnizer(index) {\n try {\n /* on single column move page jumps after the hr of the previous article */\n if ($(\".column\").length === $(\".first.last.column\").length) {\n $(\"div[data-pjindex]\").each(function() {\n var pjindex = parseInt($(this).data(\"pjindex\"), 10);\n if (pjindex > 0) {\n var prevHr = $(\"hr[class='hr\"+(pjindex-1)+\"']\");\n if (prevHr) {\n prevHr.after(this);\n }\n }\n });\n } else if (index > 0 && ($(\".div_padding\"+index+\" #artTopLast img\").length > 0 || $(\".div_padding\"+index+\" #artTopLast .pageJump\").length > 0)) {\n /* move the img or the pj div at the top of the last column */\n var pjImgContainer = $(\".div_padding\"+index+\" #artTopLast\");\n pjImgContainer.parent().prepend(pjImgContainer);\n }\n } catch (e) {\n console.log(e);\n }\n }\n \n function setColumns(element, index, pageJump, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop) {\n console.log(\"columnize \" + element);\n var arabic = /[\u0600-\u06FF]/;\n var isArabic = arabic.test($($(\".maintitle\")[0]).text()) || arabic.test($($(\".uptitle\")[0]).text());\n var columnFloat = isArabic ? \"right\" : \"left\";\n console.log(\"is arabic \" + isArabic);\n var columnOptions = {\n lastNeverTallest: true,\n columnFloat: columnFloat,\n doneFunc: function () {\n console.log(\"columnized \" + element);\n setTopAdsPos();\n setTranslateBannerPos();\n setMiddleAdsPos();\n if(moveTopArtOnTop){\n updateTopArt();\n }\n\n fixSingleColumnWidth(element);\n fixImagesAlignment(element);\n moveImagesIfSingleColumn(element);\n\n saveImages();\n \n if(isLast){\n movePageJumpsColumnizer(index);\n \n /*var heads = $('[class^=article_head]');*/\n var heads = $(\"hr\");\n /*if index is related to second piece of article there is just one hr between articles so index is articleIndex -1*/\n scrollToHrIndex = scrollToHrIndex - 1;\n var top = 0;\n if(heads && heads.length >= scrollToHrIndex && scrollToHrIndex >= 0){\n top = $(heads[scrollToHrIndex]).offset().top;\n }\n console.log(\"scroll to \" + top);\n if (window.ReactNativeWebView && top > 0) {\n try{\n var content = $(\"#content\")[0];\n /*is important to set the height because article text scroll to position when set the same height of scrollview\n the height of scrollview comes from autoheight webview*/\n var height = Math.max(content.scrollHeight, content.offsetHeight, content.clientHeight);\n window.ReactNativeWebView.postMessage(JSON.stringify({ scrollTop: top, type: \"SCROLL_TOP\", scrollHeight: height }));\n } catch(e){\n console.log(\"error on post message scroll top\");\n }\n }\n }\n }\n };\n\n var images = $(element + \" img\");\n var countParagraphs = $(element).children().length * 50;\n var textLength = $(element).children().text().length;\n var countImages = images.length * 200;\n var totalLength = textLength + countParagraphs + countImages;\n console.log(\"total length \" + totalLength);\n console.log(\"short length \" + SHORT_ARTICLE_LENGTH);\n console.log(\"count paragraphs \" + countParagraphs);\n console.log(\"text length \" + textLength);\n console.log(\"very short length \" + VERY_SHORT_ARTICLE_LENGTH);\n console.log(\"count images \" + countImages);\n console.log(\"page jump \" + pageJump);\n console.log(\"multiple articles \" + multipleArticles);\n\n if (totalLength > SHORT_ARTICLE_LENGTH || ((pageJump === 1 || multipleArticles) && textLength > VERY_SHORT_ARTICLE_LENGTH)) {\n columnOptions.width = BASE_COLUMN_WIDTH;\n } else {\n columnOptions.columns = 1; \n }\n console.log(\"columnizer options\");\n console.log(columnOptions);\n setPaddingToColumns(element, index);\n $(element).columnize(columnOptions);\n }\n\n function getWidthOfSpans(element) {\n var width = 0;\n if (element) {\n $(element)\n .find(\"span\")\n .each(function () {\n width += $(this).width();\n });\n }\n return width;\n }\n\n function setColumnizerArticle(index, article, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop) {\n console.log(\"===============================================\");\n console.log(\"set columnizer article...: \" + index);\n console.log(\"slide art width: \" + $(\"#slideArt\").width());\n var column_width = " + columnizerBaseColumnWidth + ";\n if( $(\"#slideArt\").width() / 4 > " + columnizerBaseColumnWidth + " ){\n column_width = parseInt($(\"#slideArt\").width() / 4);\n }\n console.log(\"column width: \" + column_width);\n var headArticle = new Array();\n $(article).each(function(){\n if(this.className == \"abody\")return false;\n headArticle.push(this);\n });\n /*var headArticle = $(article).filter(\".abody\").first().prevAll().get().reverse();\n if($(headArticle).filter(\".byline\").length > 0){\n headArticle = $(headArticle).filter(\".byline\").first().prevAll().get().reverse();\n }*/\n var maintitle=$(headArticle).filter(\".maintitle\");\n var parentPage=$(headArticle).filter(\".parentPage\");\n /* PUT MAINTITLE AND UPPER CONTENT OUTSIDE OF ARTICLE TEXT ONLY IF ONE MAINTITLE EXSISTS AND IF MAINTITLE IS LARGER THEN COLUMN WIDTH*/\n var first_element=$(article)[0];\n $(\"
\").insertAfter($(first_element));\n $(article).appendTo(\".article_body\" + index);\n if (maintitle.length <= 1 ) {\n console.log(\"main title exists\");\n $(\"
\").insertBefore(\".article_body\" + index);\n var moveTitleOutColumns = false;\n $(headArticle).each(function(){\n if($(this).attr(\"class\") && $(this).attr(\"class\").indexOf(\"title\") > -1){\n var widthParagraph = getWidthOfSpans(this);\n console.log(\"width: \" + widthParagraph);\n if(widthParagraph > column_width){\n moveTitleOutColumns = true;\n }\n }\n });\n $(headArticle).each(function(){\n if($(this).attr(\"class\") && $(this).attr(\"class\").indexOf(\"title\") > -1){\n if(moveTitleOutColumns){\n $(this).appendTo('.article_head' + index);\n }else{\n /*$(\".article_body\" + index).prepend(this);*/\n }\n }\n });\n $(\".article_body\" + index).css(\"margin-top\",\"10px\");\n /*CREATE COLUMNS FROM ARTICLE TEXT*/\n setColumns(\".article_body\" + index, index, 0, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop);\n }else {\n setColumns(\".article_body\" + index, index, 1, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop);\n }\n if (index > 0 && parentPage) {\n $(parentPage).appendTo(\".article_body\" + (index - 1));\n $(\".article_body\" + index + \" .parentPage\").remove();\n }\n }\n\n function setColumnizerArticleWithPageJump(hrs, scrollToHrIndex, moveTopArtOnTop) {\n var articles = [];\n \n $(hrs).each(function (i) {\n var _this = $(this);\n _this.addClass(\"hr\" + i);\n _this.css(\"margin-top\", \"0.8em\");\n _this.css(\"margin-bottom\", \"0.8em\");\n articles.push(_this.prevUntil(\"hr\").get().reverse());\n });\n articles.push(\n $(hrs[hrs.length - 1])\n .nextUntil(\"hr\")\n .get()\n );\n /*columnize all articles separately*/\n var jArticles = $(articles);\n jArticles.each(function(index,article){\n var isLast = index === jArticles.length - 1;\n setColumnizerArticle(index, article, true, scrollToHrIndex, isLast, moveTopArtOnTop)\n });\n }\n\n function setColumnizer(scrollToHrIndex, mergeArt) {\n if ($(\".column\").length > 0) {\n /*already done*/\n return;\n }\n console.log(\"scroll to hr index: \" + scrollToHrIndex);\n console.log(\"using merge art: \" + mergeArt);\n console.log(\"merge art type: \" + (typeof mergeArt));\n var element = $(\"#slideArt\");\n if (!element) {\n console.log(\"missing slideArt\");\n return;\n }\n var moveTopArtOnTop = mergeArt > 0;\n var hrs = element.find(\"hr\");\n if (hrs && hrs.length && mergeArt !== 1) {\n console.log(\"found hr: \" + hrs.length);\n setColumnizerArticleWithPageJump(hrs, scrollToHrIndex, moveTopArtOnTop);\n } else {\n setColumnizerArticle(0, element.children(), false, scrollToHrIndex, false, moveTopArtOnTop);\n }\n }\n \n $(window).resize(function () {\n fixSingleColumnWidth(\".article_body0\");\n });\n"; var _default = exports.default = columnizer; -},2174,[]); +},2164,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295200,168 +292226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2175,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.truncateScript = exports.showNativeAd = exports.showImageOptions = exports.showAdMarkerText = exports.scrollpageToContinue = exports.saveImages = exports.saveImage = exports.retrievePositionIdAtOffset = exports.retrieveOffsetByPositionId = exports.retrieveInnerText = exports.retrieveImage = exports.retrieveAdPlaceholders = exports.replaceImgSrcWithBase64 = exports.removeWebAdsFromString = exports.openGallery = exports.onLoadFunctions = exports.movePageJumps = exports.moveImages = exports.hideNativeAd = exports.hideAdMarkerText = exports.handleImageError = exports.getJumpId = exports.getHrsPosition = exports.getArticleTruncateFunctions = exports.generateAssetsFontCss = exports.asyncPostMessageFunctions = exports.addPositionId = exports.addLongPressEvent = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var _Paywall = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); - - var truncateScript = exports.truncateScript = "\n function truncateArticle(){\n try{\n const hrs = document.getElementsByTagName('hr');\n if(hrs[0]){\n let found = false;\n const parent = hrs[0].parentElement;\n let i = 0;\n while(i < parent.childNodes.length){\n if(parent.childNodes[i] === hrs[0]){\n found = true;\n } else if(!found) {\n i++;\n }\n if(found){\n try{\n console.log(parent.childNodes[i]);\n parent.removeChild(parent.childNodes[i]);\n } catch(e){\n console.log(e.message);\n }\n }\n }\n }\n } catch(e){\n console.log(e.message);\n }\n }\n truncateArticle();"; - - var retrieveAdPlaceholders = exports.retrieveAdPlaceholders = function retrieveAdPlaceholders() { - var enableInStoryAdMarker = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var adMarkerScript = ""; - - if (enableInStoryAdMarker) { - var _global$getActivePSet = global.getActivePSetup(), - inStoryAdMarkerText = _global$getActivePSet.inStoryAdMarkerText; - - adMarkerScript = "\n var nativeAdDisclaimerId = 'native_ad_' + i + '_disclaimer';\n var nativeAdDisclaimer = document.getElementById(nativeAdDisclaimerId);\n if (nativeAdDisclaimer == undefined) {\n var paragraph = document.createElement(\"p\");\n paragraph.setAttribute('id', nativeAdDisclaimerId);\n paragraph.setAttribute('class', 'advp');\n var text = document.createTextNode('" + inStoryAdMarkerText + "');\n paragraph.appendChild(text);\n placeholder.parentNode.insertBefore(paragraph, placeholder);\n }"; - } - - return "\n function getLoadedAds() {\n var ads = [];\n try {\n var nativeAdPlaceholders = document.getElementsByClassName('native_ad');\n for (var i = 0; i < nativeAdPlaceholders.length; i++) {\n var placeholder = nativeAdPlaceholders[i];\n try {\n var config = {\n key: 'native_ad_' + i,\n unitId: placeholder.getAttribute('unitId'),\n provider: placeholder.getAttribute('provider'),\n os: placeholder.getAttribute('os'),\n left: placeholder.getBoundingClientRect().left,\n top: placeholder.getBoundingClientRect().top,\n width: parseInt(placeholder.getAttribute('width'), 10),\n height: parseInt(placeholder.getAttribute('height'), 10)\n };\n placeholder.setAttribute('id', 'native_ad_' + i);\n if (placeholder.parentElement && placeholder.parentElement.className === 'native_ad_container') {\n placeholder.parentElement.setAttribute('id', 'native_ad_' + i + '_container');\n } else {\n " + adMarkerScript + "\n }\n \n ads.push(config);\n } catch (e) {\n console.log(e);\n }\n }\n } catch (e) {\n console.log(e);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: ads, type: 'GET_NATIVE_ADS_PLACEHOLDER' }));\n }"; - }; - - var hideAdMarkerText = exports.hideAdMarkerText = "\n function hideAdMarkerText() {\n var elements = document.getElementsByClassName(\"advp\");\n for (var i = 0; i < elements.length; i++) {\n elements[i].style.display = \"none\";\n }\n }"; - var showAdMarkerText = exports.showAdMarkerText = "\n function showAdMarkerText() {\n var elements = document.getElementsByClassName(\"advp\");\n for (var i = 0; i < elements.length; i++) {\n elements[i].style.display = \"block\";\n }\n }"; - var showNativeAd = exports.showNativeAd = "\n function showNativeAd(id) {\n var nativeAd = document.getElementById(id);\n if (nativeAd) {\n var adHeight = parseInt(nativeAd.getAttribute('height'), 10);\n nativeAd.style.height = adHeight + 'px';\n var nativeAdContainer = document.getElementById(id + '_container');\n if (nativeAdContainer) {\n nativeAdContainer.style.height = adHeight + 10 + 'px';\n var prevElement = nativeAdContainer.previousElementSibling;\n if (prevElement && prevElement.className === \"advp\") {\n prevElement.style.display = 'block';\n }\n }\n }\n }"; - var hideNativeAd = exports.hideNativeAd = "\n function hideNativeAd(id) {\n var nativeAd = document.getElementById(id);\n if (nativeAd) {\n nativeAd.style.height = '0px';\n var nativeAdContainer = document.getElementById(id + '_container');\n if (nativeAdContainer) {\n nativeAdContainer.style.height = '0px';\n var prevElement = nativeAdContainer.previousElementSibling;\n if (prevElement && prevElement.className === \"advp\") {\n prevElement.style.display = 'none';\n }\n }\n }\n }"; - var retrieveInnerText = exports.retrieveInnerText = "\n function() {\n var text = '';\n try {\n text = document.body.innerText;\n } catch (e) {}\n \n return {\n content: text,\n type: 'INNER_TEXT'\n };\n }"; - var openGallery = exports.openGallery = "\n function openGallery(url) {\n try {\n console.log(\"open gallery:\" + url);\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: url, type: 'OPEN_GALLERY' }));\n } catch (e) {\n console.log(e);\n }\n }"; - var showImageOptions = exports.showImageOptions = "\n function showImageOptions(link, imageUrl) {\n try {\n console.log(\"show image options: \" + link + \", image url \"+imageUrl);\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { link: link, url: imageUrl }, type: 'SHOW_IMAGE_OPTIONS' }));\n } catch (e) {\n console.log(e);\n }\n }"; - var handleImageError = exports.handleImageError = "\n function handleImageError(img) {\n try {\n var hrsrc = img.getAttribute(\"hrsrc\");\n if (hrsrc && img.src !== hrsrc) {\n img.src = hrsrc;\n } else {\n img.style.height = 0;\n }\n } catch (e) {\n console.log(e);\n }\n }"; - var saveImages = exports.saveImages = "\n function saveImages() {\n try {\n $(\"img[data-save]\").each(function() {\n $(this).one(\"load\", function() {\n eval($(this).data(\"save\"));\n });\n });\n $(\"img[data-retrieve]\").each(function() {\n eval($(this).data(\"retrieve\"));\n }).hide();\n } catch (e) {\n console.log(e);\n }\n }"; - var saveImage = exports.saveImage = "\n function saveImage(img, paper, issue, edition, filename, image, filetime) {\n try {\n console.log(\"save image \" + paper + \" - \" + issue + \" - \" + edition + \" - \" + filename + \" - \" + image + \" - \" + filetime);\n var newImage = new Image();\n newImage.crossOrigin = \"anonymous\";\n\n newImage.onload = function () {\n console.log(\"onload image \" + newImage.width + \" - \" + newImage.height);\n var canvas = document.createElement(\"canvas\");\n canvas.width = newImage.width;\n canvas.height = newImage.height;\n var ctx = canvas.getContext(\"2d\");\n ctx.drawImage(newImage, 0, 0);\n var dataURL = canvas.toDataURL(\"image/jpeg\", 1);\n console.log(dataURL);\n var base64 = dataURL.replace(/^data:image\\/jpeg;base64,/, \"\");\n \n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { base64: base64, paper: paper, issue: issue, edition: edition, filename: filename, image: image, filetime: filetime}, type: 'SAVE_IMAGE' }));\n };\n\n newImage.src = img.src;\n\n } catch (e) {\n console.log(e);\n }\n }"; - var retrieveImage = exports.retrieveImage = "\n function retrieveImage(img, paper, issue, edition, filename, image, filetime) {\n try {\n console.log(\"retrieve image \" + paper + \" - \" + issue + \" - \" + edition + \" - \" + filename + \" - \" + image + \" - \" + filetime);\n \n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { imageSrc: img.src, paper: paper, issue: issue, edition: edition, filename: filename, image: image, filetime: filetime}, type: 'RETRIEVE_IMAGE' }));\n } catch (e) {\n console.log(e);\n }\n }"; - var replaceImgSrcWithBase64 = exports.replaceImgSrcWithBase64 = "\nfunction replaceImgSrcWithBase64(src, base64) {\n try { \n var imgTag = $(\"img[src='\"+src+\"']\");\n var newAction = \"javascript:openGallery('\"+base64+\"')\";\n imgTag.parent().attr(\"onclick\", newAction);\n imgTag.attr(\"src\", base64).show();\n } catch (e) {\n console.log(e);\n }\n}"; - - var moveImages = exports.moveImages = function moveImages(height) { - return "\nfunction moveImages() {\n var imgArtObjs = $(\"div[id^='imgArt']\");\n var abodyObjs = $(\".abody\");\n if(imgArtObjs.length >= 1 && abodyObjs.length > 1){\n for(var imgArtObjIdx = 0; imgArtObjIdx < imgArtObjs.length; imgArtObjIdx++){\n var imgArtObj = $(imgArtObjs[imgArtObjIdx]);\n if (imgArtObj.children().length > 0) {\n for(var abobyObjIdx = 0; abobyObjIdx < abodyObjs.length; abobyObjIdx++){\n var abodyElem = abodyObjs[abobyObjIdx];\n var offset = $(abodyElem).offset();\n var contentHeight = " + height + ";\n if(typeof offset != \"undefined\" && offset.top > (contentHeight * (imgArtObjIdx+1))){\n console.debug(\"abody offset: \"+offset.top+\", content height: \"+contentHeight);\n imgArtObj.insertAfter(abodyElem);\n break;\n }\n }\n }\n }\n }\n}"; - }; - - var movePageJumps = exports.movePageJumps = "\nfunction movePageJumps() {\n $(\"div[data-pjindex]\").each(function() {\n var index = parseInt($(this).data(\"pjindex\"), 10);\n if (index > 0) {\n var prevHr = $(\"#ArtADD\"+(index -1)+\" + hr\");\n if (prevHr) {\n prevHr.after(this);\n }\n }\n });\n}"; - var scrollpageToContinue = exports.scrollpageToContinue = "\n function scrollpageToContinue(pageNumber, artid) {\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: {page: pageNumber, xmlId: artid}, type: 'SCROLL_TO_PAGE' }));\n }"; - var getHrsPosition = exports.getHrsPosition = "\n function getHrsPosition(){\n var positions = [];\n var hrsTag = document.getElementsByTagName(\"hr\");\n for(var i = 0; i < hrsTag.length; i++){\n positions.push(hrsTag[i].offsetTop);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: positions, type: 'HRS_POSITION' }));\n }\n"; - var addLongPressEvent = exports.addLongPressEvent = "\n var body = document.body;\n var longPressMs = 500;\n var longPressTimeout = undefined;\n var onStart = function () {\n console.log('touch start');\n if (longPressTimeout) {\n clearTimeout(longPressTimeout);\n longPressTimeout = undefined;\n }\n longPressTimeout = setTimeout(function () {\n console.log('long touch');\n window.ReactNativeWebView.postMessage(JSON.stringify({ type: 'LONG_PRESS' }));\n }, longPressMs);\n };\n var onEnd = function () {\n console.log('touch end');\n if (longPressTimeout) {\n clearTimeout(longPressTimeout);\n longPressTimeout = undefined;\n }\n };\n if (body) {\n body.addEventListener('touchstart', onStart);\n body.addEventListener('mousedown', onStart);\n body.addEventListener('touchend', onEnd);\n body.addEventListener('mouseup', onEnd);\n }"; - var addPositionId = exports.addPositionId = "\n var positionId;\n $(\"#slideArt p\").toArray().forEach((elem, index) => {\n $(elem).attr(\"positionid\", index);\n $(elem).children().toArray().forEach((child, childIndex) => {\n $(child).attr(\"positionid\", index+\".\"+childIndex);\n });\n }\n );\n"; - var retrievePositionIdAtOffset = exports.retrievePositionIdAtOffset = "\n function getPositionId(x, y) {\n try {\n var offsetX = 0;\n var width = $(\"#slideArt\").width();\n var columns = $(\".article_body0 .column\").length;\n if (columns > 0) {\n offsetX = width / (columns * 2);\n } else {\n offsetX = width/2;\n }\n var currentPositionId = document.elementFromPoint(x + offsetX, y).getAttribute(\"positionid\");\n if (currentPositionId !== null) {\n positionId = currentPositionId;\n }\n } catch (e) {\n console.log(e);\n }\n if (positionId) {\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { positionId: positionId }, type: 'GET_POSITION_ID' }));\n }\n };\n"; - var retrieveOffsetByPositionId = exports.retrieveOffsetByPositionId = "\n function goToPositionId(positionId) {\n var top = 0;\n var left = 0;\n try {\n var offset = $(\"[positionId='\"+positionId+\"']\").position();\n top = offset.top;\n left = offset.left;\n } catch (e) {\n console.log(e);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: { offset: { left: left, top: top } }, type: 'GET_POSITION_ID_OFFSET' }));\n };\n"; - var getJumpId = exports.getJumpId = "\n function art_getJumpId(page, issue, filename, xmlId) {\n try {\n if (window.ReactNativeWebView) {\n window.ReactNativeWebView.postMessage(\n JSON.stringify({\n page,\n issue,\n filename,\n xmlId,\n type: 'JUMP'\n })\n );\n }\n } catch (e) {\n console.error(e.message);\n }\n }"; - - var getArticleTruncateFunctions = exports.getArticleTruncateFunctions = function getArticleTruncateFunctions() { - if (_Paywall.default.shouldAppendPaywall()) { - return "\n var ta_truncateArticle = function ta_truncateArticle(threshold) {\n var ta_protectThreshold = ''+threshold;\n var ta_protectParentSelector = '#content';\n if (parseInt(ta_protectThreshold, 10) >= 0 && ta_protectParentSelector && document.querySelector) {\n var parentToProtect = document.querySelector(ta_protectParentSelector);\n if (parentToProtect == null) return;\n var styleTagsToAppend = [];\n var styleTags = parentToProtect.getElementsByTagName('STYLE');\n for (var i=0; i < styleTags.length; i++) {\n var styleTag = styleTags[i].cloneNode(true); \n styleTagsToAppend.push(styleTag); \n }\n \n var nodeToFill = parentToProtect.cloneNode(false);\n \n if (ta_protectThreshold.indexOf('%') > 0) {\n ta_protectThreshold = ta_protectThreshold.substr(0, ta_protectThreshold.length - 1);\n ta_protectThreshold = parseInt(ta_protectThreshold, 10);\n if (ta_protectThreshold > 100 || ta_protectThreshold < 0) {\n ta_protectThreshold = 100;\n }\n var ta_protectArticleLength = ta_articleTextCount(parentToProtect);\n ta_protectThreshold = parseInt((ta_protectThreshold / 100) * ta_protectArticleLength, 10);\n } else {\n ta_protectThreshold = parseInt(ta_protectThreshold, 10);\n }\n\n if (ta_protectThreshold > 0) {\n ta_fillThreshold(parentToProtect, nodeToFill, ta_protectThreshold);\n parentToProtect.innerHTML = nodeToFill.innerHTML;\n } else {\n parentToProtect.innerHTML = '';\n }\n for (var i=0; i < styleTagsToAppend.length; i++) {\n var styleTagToAppend = styleTagsToAppend[i]; \n parentToProtect.appendChild(styleTagToAppend);\n }\n }\n };\n\n var ta_elementThresholdExempt = function ta_elementThresholdExempt(elementNode) {\n var tagsToExclude = 'style';\n if (tagsToExclude.length > 0) {\n var tagsExcludeArray = tagsToExclude.split(',');\n for (var j = 0; j < tagsExcludeArray.length; j++) {\n if (elementNode.tagName && elementNode.tagName.toLowerCase() === tagsExcludeArray[j].trim().toLowerCase()) {\n return true;\n }\n }\n }\n if (typeof elementNode.className === 'string' && elementNode.className.length > 0) {\n var classesToExclude = '';\n if (classesToExclude.length > 0) {\n var excludeArray = classesToExclude.split(',');\n for (var j = 0; j < excludeArray.length; j++) {\n if (\n excludeArray[j].trim() !== '' &&\n elementNode.className.split(/ +/).indexOf(excludeArray[j].trim()) !== -1\n ) {\n return true;\n }\n }\n }\n }\n \n return false;\n };\n \n var ta_fillThreshold = function ta_fillThreshold(originalNode, nodeToFill, threshold, otherNodeToFill) {\n var preserveImages = false;\n if (originalNode.childNodes && originalNode.childNodes.length > 0) {\n for (var i = 0; i < originalNode.childNodes.length; i++) {\n var newNodeToFill = otherNodeToFill || null;\n if (ta_elementThresholdExempt(originalNode.childNodes[i])) { \n continue;\n } \n \n if (\n originalNode.childNodes[i].nodeType == Node.ELEMENT_NODE &&\n originalNode.childNodes[i].childNodes &&\n originalNode.childNodes[i].childNodes.length > 0\n ) {\n newNodeToFill = originalNode.childNodes[i].cloneNode(false);\n (otherNodeToFill || nodeToFill).appendChild(newNodeToFill);\n }\n var finished = ta_fillThreshold(originalNode.childNodes[i], nodeToFill, threshold, newNodeToFill) || 0;\n if (finished) return 1;\n }\n return 0;\n }\n if (originalNode.nodeType == Node.TEXT_NODE || originalNode.nodeType == Node.ELEMENT_NODE) {\n var innerHTML = '';\n if (originalNode.innerHTML) {\n innerHTML = originalNode.innerHTML.trim();\n } else if (originalNode.nodeValue) {\n innerHTML = originalNode.nodeValue.trim();\n } else if (!preserveImages && originalNode.nodeName.toLowerCase() == 'img') {\n return 0;\n }\n \n var allowedEmptyTags = ['IMG', 'HR', 'BR'];\n if (!innerHTML.length && allowedEmptyTags.indexOf(originalNode.nodeName) == -1) return 0; \n \n var nodeToFillLength = nodeToFill.innerText.length;\n if (!otherNodeToFill && originalNode.nodeType == Node.TEXT_NODE) {\n var newPNode = document.createElement('p');\n otherNodeToFill = newPNode;\n nodeToFill.appendChild(newPNode);\n }\n if (nodeToFillLength + innerHTML.length < threshold) {\n (otherNodeToFill || nodeToFill).appendChild(originalNode.cloneNode(true));\n return 0;\n }\n if (nodeToFillLength + innerHTML.length >= threshold) {\n var origIHLength = nodeToFillLength;\n var newChild = (otherNodeToFill || nodeToFill).appendChild(originalNode.cloneNode(true));\n if (innerHTML.indexOf(' ', threshold - origIHLength) !== -1) {\n innerHTML = innerHTML.substring(0, innerHTML.indexOf(' ', threshold - origIHLength));\n }\n if (innerHTML.slice(-3) != '...') {\n innerHTML += '...';\n }\n newChild.innerHTML = innerHTML;\n newChild.nodeValue = innerHTML;\n var protectArticleMessagePNode = document.createElement('p');\n protectArticleMessagePNode.innerHTML = '" + _Paywall.default.getArticlePreviewMessage() + "';\n nodeToFill.appendChild(protectArticleMessagePNode);\n return 1;\n }\n return 0;\n }\n return 0;\n };\n\n var ta_articleTextCount = function ta_articleTextCount(originalNode) {\n var currentLength = 0;\n if (originalNode.childNodes && originalNode.childNodes.length > 0) {\n for (var i = 0; i < originalNode.childNodes.length; i++) {\n if (ta_elementThresholdExempt(originalNode.childNodes[i])) continue;\n var newLength = ta_articleTextCount(originalNode.childNodes[i]) || 0;\n currentLength += newLength;\n }\n } else if (originalNode.nodeType == Node.TEXT_NODE || originalNode.nodeType == Node.ELEMENT_NODE) {\n if (originalNode.innerHTML) {\n currentLength = originalNode.innerHTML.trim().length;\n } else if (originalNode.nodeValue) {\n currentLength = originalNode.nodeValue.trim().length;\n }\n }\n return currentLength; \n };"; - } - - return ""; - }; - - var removeWebAdsFromString = exports.removeWebAdsFromString = function removeWebAdsFromString(html) { - try { - var articleHtml = _$$_REQUIRE(_dependencyMap[3]).StringUtils.parseFromString(html, "text/html"); - - if (!articleHtml) { - return html; - } - - var originalHtml = String(articleHtml); - var nativeAds = articleHtml.getElementsByClassName("native_ad"); - - for (var i = 0; i < nativeAds.length; i++) { - var originalTag = String(nativeAds[i]); - var os = nativeAds[i].getAttribute("os"); - - if (os && os !== _reactNative.Platform.OS) { - originalHtml = originalHtml.replace(originalTag, ""); - continue; - } - - while (nativeAds[i].childNodes.length > 0) { - var child = nativeAds[i].childNodes[0]; - nativeAds[i].removeChild(child); - } - - originalHtml = originalHtml.replace(originalTag, String(nativeAds[i])); - } - - return originalHtml; - } catch (e) { - console.warn(e.message); - } - - return html; - }; - - var getFontFaceStringFromFont = function getFontFaceStringFromFont(font) { - var weight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; - var fontWeb = font.fontWeb, - src = font.src; - var fontFamily = font.fontFamily, - fontWeight = font.fontWeight; - fontFamily = fontFamily || fontWeb; - fontWeight = weight || fontWeight || "normal"; - var fontFace = "\n @font-face {\n font-family: '" + fontFamily + "';\n font-weight: " + fontWeight + ";\n src: " + src + ";\n }\n "; - return fontFace; - }; - - var generateAssetsFontCss = exports.generateAssetsFontCss = function generateAssetsFontCss(fontFamilyRegular, fontFamilyBold, dynamicFonts) { - var fontCSS = ""; - - if (fontFamilyRegular && fontFamilyRegular.src) { - fontCSS += getFontFaceStringFromFont(fontFamilyRegular, "normal"); - - if (fontFamilyBold && fontFamilyBold.src && fontFamilyBold.fontWeb !== fontFamilyRegular.fontWeb) { - fontCSS += getFontFaceStringFromFont(fontFamilyBold, "bold"); - } - } else if (fontFamilyBold && fontFamilyBold.src) { - fontCSS += getFontFaceStringFromFont(fontFamilyBold, "bold"); - } - - if (dynamicFonts) { - dynamicFonts.forEach(function (dynamicFont) { - if (dynamicFont) { - var fontWeb = dynamicFont.fontWeb; - - if (!(fontFamilyRegular && fontFamilyRegular.fontWeb === fontWeb || fontFamilyBold && fontFamilyBold.fontWeb === fontWeb)) { - fontCSS += getFontFaceStringFromFont(dynamicFont); - } - } - }); - } - - return fontCSS; - }; - - var onLoadFunctions = exports.onLoadFunctions = function onLoadFunctions(hasColumnizer, enableTruncate) { - var truncate = ""; - var columnizer = ""; - - if (hasColumnizer) { - columnizer = "\n $('#content').columnize({ width: 400, doneFunc: getLoadedAds });"; - } - - if (_Paywall.default.needToAppendHardPaywall() || _Paywall.default.shouldAppendPaywallPopup() && enableTruncate) { - var articlePreviewLength = _Paywall.default.getArticlePreviewLength(); - - truncate = "ta_truncateArticle('" + articlePreviewLength + "');"; - } - - if (truncate || columnizer) { - return "\n $(function(){" + truncate + columnizer + "});"; - } - - return ""; - }; - - var asyncPostMessageFunctions = exports.asyncPostMessageFunctions = function asyncPostMessageFunctions() { - return "\n var waiting = {};\n var AWAITING_TIMEOUT = 30000;\n\n function parsePayload(payload) {\n if (payload === \"true\") {\n return true;\n }\n if (payload === \"false\") {\n return false;\n }\n let result = parseFloat(payload);\n if (!Number.isNaN(result)) {\n return result;\n }\n try {\n return JSON.parse(payload);\n } catch (e) {\n }\n\n return payload;\n }\n\n /**\n * resolve or reject the promise attacched to this key\n * @param {*} key contained inside postMessage payload\n * @param {string} method reject|resolve\n * @param {string} payload the string, if resolve will be parsed with JSON.parse otherwise is the error message\n */\n function awaitPostMessage(key, method, payload) {\n try {\n if (method === \"resolve\") {\n waiting[key].resolve(parsePayload(payload));\n } else {\n waiting[key].reject(new Error(payload));\n }\n } catch (e) {\n if (waiting[key] && waiting[key].reject) {\n waiting[key].reject(e);\n }\n }\n delete waiting[key];\n };\n\n function generateId() {\n return \"\"+Math.random().toString(36).substr(2, 9);\n }\n\n function emit(data) {\n window.ReactNativeWebView.postMessage(JSON.stringify(data ?? {}));\n }\n\n /**\n * call this method to post a message and awaiting a response from native code\n * each message has a unique key, used to identified the promise and resolve it\n * to resolve the promise from native code you need to inject js awaitPostMessage,\n * see the method below\n * @param {*} data\n * @returns Promise\n */\n async function asyncPostMessage (data) {\n return new Promise((resolve, reject) => {\n try {\n const key = generateId();\n waiting[key] = { resolve, reject };\n emit({ asyncKey: key, ...data });\n setTimeout(() => {\n awaitPostMessage(key, \"reject\", key+\" went in timeout\");\n }, AWAITING_TIMEOUT);\n } catch (e) {\n console.warn(e.message);\n reject(e);\n }\n });\n }"; - }; -},2176,[18,3,2049,438]); +},2165,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295412,7 +292277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e css += NO_ARTICLE_TEXT_SELECTION_CSS(enableArticleTextSelection); return css; }; -},2177,[817,825,438]); +},2166,[820,828,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295685,7 +292550,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref3.apply(this, arguments); }; }(); -},2178,[3,270,858,566,665,1998,438]); +},2167,[3,270,861,566,668,1958,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295694,7 +292559,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var jQueryBase64 = exports.jQueryBase64 = "LyohIGpRdWVyeSB2My41LjEgfCAoYykgSlMgRm91bmRhdGlvbiBhbmQgb3RoZXIgY29udHJpYnV0b3JzIHwganF1ZXJ5Lm9yZy9saWNlbnNlICovCiFmdW5jdGlvbihlLHQpeyJ1c2Ugc3RyaWN0Ijsib2JqZWN0Ij09dHlwZW9mIG1vZHVsZSYmIm9iamVjdCI9PXR5cGVvZiBtb2R1bGUuZXhwb3J0cz9tb2R1bGUuZXhwb3J0cz1lLmRvY3VtZW50P3QoZSwhMCk6ZnVuY3Rpb24oZSl7aWYoIWUuZG9jdW1lbnQpdGhyb3cgbmV3IEVycm9yKCJqUXVlcnkgcmVxdWlyZXMgYSB3aW5kb3cgd2l0aCBhIGRvY3VtZW50Iik7cmV0dXJuIHQoZSl9OnQoZSl9KCJ1bmRlZmluZWQiIT10eXBlb2Ygd2luZG93P3dpbmRvdzp0aGlzLGZ1bmN0aW9uKEMsZSl7InVzZSBzdHJpY3QiO3ZhciB0PVtdLHI9T2JqZWN0LmdldFByb3RvdHlwZU9mLHM9dC5zbGljZSxnPXQuZmxhdD9mdW5jdGlvbihlKXtyZXR1cm4gdC5mbGF0LmNhbGwoZSl9OmZ1bmN0aW9uKGUpe3JldHVybiB0LmNvbmNhdC5hcHBseShbXSxlKX0sdT10LnB1c2gsaT10LmluZGV4T2Ysbj17fSxvPW4udG9TdHJpbmcsdj1uLmhhc093blByb3BlcnR5LGE9di50b1N0cmluZyxsPWEuY2FsbChPYmplY3QpLHk9e30sbT1mdW5jdGlvbihlKXtyZXR1cm4iZnVuY3Rpb24iPT10eXBlb2YgZSYmIm51bWJlciIhPX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TFdKS5maW5kKCI+IiskdGFnMSsnOmxhc3QgbGkgJyskdGFnMSsiOmxhc3QiKTt0aGlzLnByZXZNYXg9MDt0aGlzLm5lc3Q9MTt0aGlzLnNldExpc3QodGhpcy5jb2xzLCRsaXN0LCR0YWcxKTt9CnZhciAkcmVzZXQ9JCh0aGlzLmNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoIj4iKyR0YWcxKyc6bGFzdCcpO3RoaXMucHJldk1heD0kcmVzZXQuY2hpbGRyZW4oKS5sZW5ndGg7fX0KcmV0dXJuIDA7fTt9KShqUXVlcnkpOw=="; -},2179,[]); +},2168,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295709,7 +292574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2180,[2181]); +},2169,[2170]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295837,7 +292702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},2181,[3,6,7,11,13,14,16,434,2182,179,438]); +},2170,[3,6,7,11,13,14,16,434,2171,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296107,7 +292972,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = BottomSheet; -},2182,[3,22,6,7,11,85,13,14,16,582,18,436,2183,814,2184,828,564,1908,179,438,1984]); +},2171,[3,22,6,7,11,85,13,14,16,582,18,436,2172,817,2173,831,564,1944,179,438,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296143,7 +293008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: "100%" } }); -},2183,[18]); +},2172,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296695,7 +293560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } }); -},2184,[3,4,270,22,6,7,11,13,14,16,582,18,438,1908,1,179,2107,2112,1984]); +},2173,[3,4,270,22,6,7,11,13,14,16,582,18,438,1944,1,179,2097,2102,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296710,7 +293575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2185,[2052]); +},2174,[2035]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296894,7 +293759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: _propTypes.default.func, children: _propTypes.default.any }; -},2186,[3,33,4,22,16,582,18,814,2187,2151,436,1965,179,817,438,564]); +},2175,[3,33,4,22,16,582,18,817,2176,2141,436,1923,179,820,438,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297023,7 +293888,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2187,[18,825,438]); +},2176,[18,828,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297049,7 +293914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "space-between" } }); -},2188,[18]); +},2177,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297405,7 +294270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpenGallery: _propTypes.default.func, maxHeight: _propTypes.default.number.isRequired }; -},2189,[3,270,6,7,11,13,14,582,16,18,1941,2190,179,817,1807,1,438,2107,2185,2040]); +},2178,[3,270,6,7,11,13,14,582,16,18,1899,2179,179,820,1812,1,438,2097,2174,2023]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297478,7 +294343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2190,[18,438]); +},2179,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297556,7 +294421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleFling.defaultProps = {}; var _default = exports.default = ArticleFling; -},2191,[3,16,582,18,2153,1,438,179]); +},2180,[3,16,582,18,2142,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297739,7 +294604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e HeaderParent.defaultProps = { header: false }; -},2192,[3,4,270,6,7,11,13,14,16,582,18,2193,814,862,664,2039,179,817,438,2194,1857]); +},2181,[3,4,270,6,7,11,13,14,16,582,18,2182,817,865,667,2022,179,820,438,2183,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297793,7 +294658,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginHorizontal: 15 } }); -},2193,[18,825,438]); +},2182,[18,828,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297947,7 +294812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e logoHeight: _$$_REQUIRE(_dependencyMap[16]).LOGO_HEIGHT, style: undefined }; -},2194,[3,270,6,7,11,13,14,582,16,18,2195,2196,438,179,817,1858,825]); +},2183,[3,270,6,7,11,13,14,582,16,18,2184,2185,438,179,820,1863,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298100,7 +294965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.any }; -},2195,[3,4,6,7,11,13,14,16,582,588,179]); +},2184,[3,4,6,7,11,13,14,16,582,588,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298122,7 +294987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _$$_REQUIRE(_dependencyMap[1]).LOGO_HEIGHT } }); -},2196,[18,825]); +},2185,[18,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298149,17 +295014,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _OptionalPackages$get = _optionalPackageUtils.default.getPrebid(), - PrebidInterstitial = _OptionalPackages$get.PrebidInterstitial; - - var _OptionalPackages$get2 = _optionalPackageUtils.default.getAdMob(), - InterstitialAd = _OptionalPackages$get2.InterstitialAd, - AdEventType = _OptionalPackages$get2.AdEventType, - TestIds = _OptionalPackages$get2.TestIds; - - var _OptionalPackages$get3 = _optionalPackageUtils.default.getDFP(), - Interstitial = _OptionalPackages$get3.Interstitial; - var InterstitialsHelper = exports.default = function () { function InterstitialsHelper() { (0, _classCallCheck2.default)(this, InterstitialsHelper); @@ -298278,12 +295132,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getNativeInterstitialComponent", value: function getNativeInterstitialComponent(notice) { var timerCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var adsConfig = global.getAdsConfig(); - if (global.getAdsConfig().useAdMob(notice.getAdProvider())) { + if (!adsConfig) { + return; + } + + if (adsConfig.useAdMob(notice.getAdProvider())) { InterstitialsHelper.getAdMobInterstitialComponent(notice, timerCallback); - } else if (global.getAdsConfig().useDFP(notice.getAdProvider())) { + } else if (adsConfig.useDFP(notice.getAdProvider())) { InterstitialsHelper.getDFPInterstitialComponent(notice, timerCallback); - } else if (global.getAdsConfig().usePrebid(notice.getAdProvider())) { + } else if (adsConfig.usePrebid(notice.getAdProvider())) { InterstitialsHelper.getPrebidInterstitialComponent(notice, timerCallback); } } @@ -298292,34 +295151,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function getAdMobInterstitialComponent(notice) { var timerCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (_optionalPackageUtils.default.isAdMobAvailable()) { - var adUnitID = global.__DEV__ ? TestIds.INTERSTITIAL : notice.getAdUnitId(); - var interstitial = InterstitialAd.createForAdRequest(adUnitID); - interstitial.load(); - interstitial.onAdEvent(function (type, error) { - if (type === AdEventType.LOADED) { - InterstitialsHelper.handleDelay(notice, Date.now(), function () { - _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.hideStatusBar(); - - try { - interstitial.show(); - } catch (e) {} - - InterstitialsHelper.showingNativeInterstitial = true; - global.getAdsConfig().setNoticeCoolDown(notice.getId(), Date.now()); - notice.incrementIndex(); - }, timerCallback); - } else if (type === AdEventType.ERROR) { - notice.incrementIndex(); - } else if (type === AdEventType.CLOSED) { - _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.showStatusBar(); - - _styleUtils.default.colorStatusBar(); - - notice.incrementIndex(); - } - }); + if (!_optionalPackageUtils.default.isAdMobAvailable()) { + return; } + + var _OptionalPackages$get = _optionalPackageUtils.default.getAdMob(), + InterstitialAd = _OptionalPackages$get.InterstitialAd, + AdEventType = _OptionalPackages$get.AdEventType, + TestIds = _OptionalPackages$get.TestIds; + + var adUnitID = global.__DEV__ ? TestIds.INTERSTITIAL : notice.getAdUnitId(); + var interstitial = InterstitialAd.createForAdRequest(adUnitID); + interstitial.load(); + interstitial.onAdEvent(function (type, error) { + if (type === AdEventType.LOADED) { + InterstitialsHelper.handleDelay(notice, Date.now(), function () { + _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.hideStatusBar(); + + try { + interstitial.show(); + } catch (e) {} + + InterstitialsHelper.showingNativeInterstitial = true; + global.getAdsConfig().setNoticeCoolDown(notice.getId(), Date.now()); + notice.incrementIndex(); + }, timerCallback); + } else if (type === AdEventType.ERROR) { + notice.incrementIndex(); + } else if (type === AdEventType.CLOSED) { + _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.showStatusBar(); + + _styleUtils.default.colorStatusBar(); + + notice.incrementIndex(); + } + }); } }, { key: "getDFPInterstitialComponent", @@ -298327,40 +295193,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _getDFPInterstitialComponent = (0, _asyncToGenerator2.default)(function* (notice) { var timerCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (_optionalPackageUtils.default.isDFPAvailable()) { - try { - var adConfig = { - adUnitId: notice.getAdUnitId(), - testDevice: global.adsTestDevices[0] - }; - var targeting = notice.getTargeting(); + if (!_optionalPackageUtils.default.isDFPAvailable()) { + return; + } - if (!_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(targeting)) { - adConfig.targeting = targeting; + try { + var adConfig = { + adUnitId: notice.getAdUnitId(), + testDevice: global.adsTestDevices[0] + }; + var targeting = notice.getTargeting(); + + if (!_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(targeting)) { + adConfig.targeting = targeting; + } + + var _OptionalPackages$get2 = _optionalPackageUtils.default.getDFP(), + Interstitial = _OptionalPackages$get2.Interstitial; + + yield Interstitial.loadAdFromAdUnitId(adConfig); + InterstitialsHelper.handleDelay(notice, Date.now(), function () { + if (_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isIOS()) { + _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.hideStatusBar(); + + Interstitial.showAd(function () { + _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.showStatusBar(); + + _styleUtils.default.colorStatusBar(); + }); + } else { + Interstitial.showAd(); } - yield Interstitial.loadAdFromAdUnitId(adConfig); - InterstitialsHelper.handleDelay(notice, Date.now(), function () { - if (_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isIOS()) { - _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.hideStatusBar(); - - Interstitial.showAd(function () { - _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.showStatusBar(); - - _styleUtils.default.colorStatusBar(); - }); - } else { - Interstitial.showAd(); - } - - InterstitialsHelper.showingNativeInterstitial = true; - global.getAdsConfig().setNoticeCoolDown(notice.getId(), Date.now()); - notice.incrementIndex(); - }, timerCallback); - } catch (e) { - if (notice) { - notice.incrementIndex(); - } + InterstitialsHelper.showingNativeInterstitial = true; + global.getAdsConfig().setNoticeCoolDown(notice.getId(), Date.now()); + notice.incrementIndex(); + }, timerCallback); + } catch (e) { + if (notice) { + notice.incrementIndex(); } } }); @@ -298381,6 +295252,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return; } + var _OptionalPackages$get3 = _optionalPackageUtils.default.getPrebid(), + PrebidInterstitial = _OptionalPackages$get3.PrebidInterstitial; + if (!InterstitialsHelper.prebidInitialized) { try { InterstitialsHelper.prebidInitialized = (yield PrebidInterstitial.initPrebid({ @@ -298446,7 +295320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e InterstitialsHelper.prebidInitialized = false; InterstitialsHelper.showingNativeInterstitial = false; -},2197,[3,270,6,7,2000,2001,2003,2004,668,879,2198,2199,438]); +},2186,[3,270,6,7,1960,1961,1963,1964,671,882,2187,2188,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298587,7 +295461,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2198,[3,22,6,7,1907,817,438]); +},2187,[3,22,6,7,1943,820,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298770,7 +295644,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.default.Component); InterstitialContainer.popup = {}; -},2199,[3,270,6,7,11,13,14,16,18,2200,434,2201,2001,179]); +},2188,[3,270,6,7,11,13,14,16,18,2189,434,2190,1961,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298789,7 +295663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent } }); -},2200,[18,438]); +},2189,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299027,7 +295901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Interstitial.defaultProps = { innerRef: function innerRef() {} }; -},2201,[3,270,6,7,11,13,14,582,16,18,2000,2001,1915,434,2202,2200,179,1910,2055,2040]); +},2190,[3,270,6,7,11,13,14,582,16,18,1960,1961,2010,434,2191,2189,179,1998,2039,2023]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299132,7 +296006,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showAfter: _propTypes.default.number, onClose: _propTypes.default.func }; -},2202,[3,6,7,11,13,14,16,582,434,2203,438,817,179]); +},2191,[3,6,7,11,13,14,16,582,434,2192,438,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299216,7 +296090,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CloseComponent.defaultProps = { cssClasses: [] }; -},2203,[3,6,7,11,13,14,16,18,582,1807,2204,179,1,817]); +},2192,[3,6,7,11,13,14,16,18,582,1812,2193,179,1,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299254,7 +296128,3703 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2204,[18,438]); +},2193,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.IAP_SYSTEMS = exports.IAP_STATUS = exports.IAP_SECRET = undefined; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); + + var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _IAPApi = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _IAPBase = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var IAP_SYSTEMS = exports.IAP_SYSTEMS = { + GOOGLE: "google", + APPLE: "apple", + AMAZON: "amazon" + }; + var IAP_STATUS = exports.IAP_STATUS = { + FAILED: 0, + SUCCESS: 1, + RESTORED: 2 + }; + var IAP_SECRET = exports.IAP_SECRET = "tecnavia"; + var RESTORE_TRANSACTIONS_MESSAGES = { + SUCCESS: "Purchases restored", + IPN_FAILED: "Call to restore transactions API failed", + NO_PURCHASES_FOUND: "No purchases to restore found", + SYSTEM_ERROR: "In-app purchase system in error", + ENGINE_NOT_SET: "In-app purchase engine not set" + }; + var RESTORE_TRANSACTIONS_CHUNK_LENGTH = 50; + + var _OptionalPackages$get = _optionalPackageUtils.default.getIapModule(), + IAPErrorCode = _OptionalPackages$get.IAPErrorCode, + PurchaseError = _OptionalPackages$get.PurchaseError, + Product = _OptionalPackages$get.Product, + Subscription = _OptionalPackages$get.Subscription; + + var IAPHelper = exports.default = function () { + function IAPHelper() { + (0, _classCallCheck2.default)(this, IAPHelper); + } + + return (0, _createClass2.default)(IAPHelper, null, [{ + key: "getItem", + value: function () { + var _getItem = (0, _asyncToGenerator2.default)(function* (productId, key) { + return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.getItem(IAPHelper.SP.name + "_" + productId, key); + }); + + function getItem(_x, _x2) { + return _getItem.apply(this, arguments); + } + + return getItem; + }() + }, { + key: "setItem", + value: function () { + var _setItem = (0, _asyncToGenerator2.default)(function* (productId, key, value) { + _$$_REQUIRE(_dependencyMap[11]).StorageUtils.setItem(IAPHelper.SP.name + "_" + productId, key, "" + value); + }); + + function setItem(_x3, _x4, _x5) { + return _setItem.apply(this, arguments); + } + + return setItem; + }() + }, { + key: "removeItem", + value: function () { + var _removeItem = (0, _asyncToGenerator2.default)(function* (productId, key) { + return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clear(IAPHelper.SP.name + "_" + productId, key); + }); + + function removeItem(_x6, _x7) { + return _removeItem.apply(this, arguments); + } + + return removeItem; + }() + }, { + key: "updateItem", + value: function () { + var _updateItem = (0, _asyncToGenerator2.default)(function* (productId, key, value) { + if (value) { + IAPHelper.setItem(productId, key, value); + } else { + IAPHelper.removeItem(productId, key); + } + }); + + function updateItem(_x8, _x9, _x10) { + return _updateItem.apply(this, arguments); + } + + return updateItem; + }() + }, { + key: "clearAll", + value: function () { + var _clearAll = (0, _asyncToGenerator2.default)(function* (productId) { + if (productId) { + return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clearAll(IAPHelper.SP.name + "_" + productId); + } + + return _$$_REQUIRE(_dependencyMap[11]).StorageUtils.clearAllByRegExp(IAPHelper.SP.name + "_.*"); + }); + + function clearAll(_x11) { + return _clearAll.apply(this, arguments); + } + + return clearAll; + }() + }, { + key: "storePurchaseModel", + value: function () { + var _storePurchaseModel = (0, _asyncToGenerator2.default)(function* (model) { + var productId = model.productId, + invoiceId = model.invoiceId, + pSetup = model.pSetup, + issue = model.issue, + edition = model.edition, + editionId = model.editionId, + transactionId = model.transactionId, + transactionDate = model.transactionDate, + originalTransactionId = model.originalTransactionId, + originalTransactionDate = model.originalTransactionDate, + recurringSubscriptionPeriod = model.recurringSubscriptionPeriod, + recurringSubscriptionId = model.recurringSubscriptionId, + receipt = model.receipt, + purchaseToken = model.purchaseToken; + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.invoiceId, invoiceId); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.pSetup, pSetup); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.issue, issue); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.edition, edition); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.editionId, editionId); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.transactionId, transactionId); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.transactionDate, transactionDate); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.originalTransactionId, originalTransactionId); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.originalTransactionDate, originalTransactionDate); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.receipt, receipt); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.recurringSubscriptionPeriod, recurringSubscriptionPeriod); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.recurringSubscriptionId, recurringSubscriptionId); + yield IAPHelper.updateItem(productId, IAPHelper.SP.keys.purchaseToken, purchaseToken); + }); + + function storePurchaseModel(_x12) { + return _storePurchaseModel.apply(this, arguments); + } + + return storePurchaseModel; + }() + }, { + key: "getPurchaseModel", + value: function () { + var _getPurchaseModel = (0, _asyncToGenerator2.default)(function* (productId) { + try { + var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaModel)(); + model.setProductId(productId); + model.setInvoiceId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.invoiceId)); + model.setPSetup(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.pSetup)); + model.setIssue(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.issue)); + model.setEdition(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.edition)); + model.setEditionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.editionId)); + model.setTransactionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.transactionId)); + model.setTransactionDate(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.transactionDate)); + model.setOriginalTransactionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.originalTransactionId)); + model.setOriginalTransactionDate(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.originalTransactionDate)); + model.setReceipt(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.receipt)); + model.setRecurringSubscriptionPeriod(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.recurringSubscriptionPeriod)); + model.setRecurringSubscriptionId(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.recurringSubscriptionId)); + model.setPurchaseToken(yield IAPHelper.getItem(productId, IAPHelper.SP.keys.purchaseToken)); + return model; + } catch (e) { + return null; + } + }); + + function getPurchaseModel(_x13) { + return _getPurchaseModel.apply(this, arguments); + } + + return getPurchaseModel; + }() + }, { + key: "initProductsAndSubscriptions", + value: function () { + var _initProductsAndSubscriptions = (0, _asyncToGenerator2.default)(function* () { + if (IAPHelper.engineInit) { + var _global$getActivePSet = global.getActivePSetup(), + payments = _global$getActivePSet.payments; + + if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(payments)) { + var pSetupProductsSKUs = payments.filter(function (payment) { + return !payment.isSubscription(); + }).map(function (payment) { + return payment.getProductId(); + }); + + if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pSetupProductsSKUs)) { + IAPHelper.products = yield IAPHelper.engine.getProducts(pSetupProductsSKUs); + } + + var pSetupSubscriptionsSKUs = payments.filter(function (payment) { + return payment.isSubscription(); + }).map(function (payment) { + return payment.getProductId(); + }); + + if (!_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pSetupSubscriptionsSKUs)) { + IAPHelper.subscriptions = yield IAPHelper.engine.getSubscriptions(pSetupSubscriptionsSKUs); + } + } + } + }); + + function initProductsAndSubscriptions() { + return _initProductsAndSubscriptions.apply(this, arguments); + } + + return initProductsAndSubscriptions; + }() + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + if (!IAPHelper.engineInit && _optionalPackageUtils.default.isIapModuleAvailable()) { + (0, _$$_REQUIRE(_dependencyMap[13]).addDebugOperation)("IAPHelper", " start init"); + + switch (IAPHelper.getSystem()) { + case IAP_SYSTEMS.GOOGLE: + IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[14]).IAPGoogle)({ + callbackToServer: IAPHelper.storeIAPResultToServer, + onPurchaseError: IAPHelper.onPurchaseError + }); + break; + + case IAP_SYSTEMS.APPLE: + IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[15]).IAPApple)({ + callbackToServer: IAPHelper.storeIAPResultToServer, + onPurchaseError: IAPHelper.onPurchaseError + }); + break; + + case IAP_SYSTEMS.AMAZON: + IAPHelper.engine = new (_$$_REQUIRE(_dependencyMap[16]).IAPAmazon)({ + callbackToServer: IAPHelper.storeIAPResultToServer, + onPurchaseError: IAPHelper.onPurchaseError + }); + break; + + default: + IAPHelper.systemInError = true; + } + + IAPHelper.engineInit = false; + + if (IAPHelper.engine) { + IAPHelper.engineInit = yield IAPHelper.engine.init(); + } + + if (IAPHelper.engineInit) { + IAPHelper.onPurchaseUpdateOperationAdded(function () { + if (IAPHelper.pendingPurchases === 0) { + IAPHelper.onPurchaseUpdateOperationsIdle().then(function () { + IAPHelper.pendingPurchases = 0; + IAPHelper.pendingPurchasesCompleted = 0; + setTimeout(IAPHelper.hidePurchaseUpdateCompletedMessage, 2000); + }); + } + + IAPHelper.pendingPurchases += 1; + IAPHelper.showPurchaseUpdateCompletedMessage(); + }); + IAPHelper.onPurchaseUpdateOperationCompleted(function () { + IAPHelper.pendingPurchasesCompleted += 1; + IAPHelper.showPurchaseUpdateCompletedMessage(); + }); + yield IAPHelper.initProductsAndSubscriptions(); + } else { + IAPHelper.systemInError = true; + } + + (0, _$$_REQUIRE(_dependencyMap[13]).addDebugOperation)("IAPHelper", "init completed"); + } else {} + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "onPurchaseError", + value: function () { + var _onPurchaseError = (0, _asyncToGenerator2.default)(function* (error) { + if (error) { + var model; + + if (error.productId) { + model = yield IAPHelper.getPurchaseModel(error.productId); + } + + yield IAPHelper.callToIpn(IAP_STATUS.FAILED, model); + + if (IAPHelper.serverCallback) { + IAPHelper.serverCallback({ + status: IAP_STATUS.FAILED, + model: model, + error: error + }); + } + } + }); + + function onPurchaseError(_x14) { + return _onPurchaseError.apply(this, arguments); + } + + return onPurchaseError; + }() + }, { + key: "requestIAP", + value: function () { + var _requestIAP = (0, _asyncToGenerator2.default)(function* (model) { + if (!_optionalPackageUtils.default.isIapModuleAvailable()) { + return; + } + + IAPHelper.purchasing = true; + var error; + + if (!IAPHelper.systemInError && IAPHelper.engine && model) { + yield IAPHelper.storePurchaseModel(model); + + try { + if (model.type && model.type === _$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaType.SUBSCRIPTION) { + var subscriptions = yield IAPHelper.engine.getSubscriptions([model.productId]); + var offer = IAPHelper.engine.getSubscriptionOffersDetails(subscriptions, model.productId); + var activeSubscriptions = yield IAPHelper.engine.getActiveSubscriptions(model.productId); + activeSubscriptions = IAPHelper.getActiveSubscriptionPerActivePSetup(activeSubscriptions); + yield IAPHelper.showSubscriptionsAlert(activeSubscriptions); + yield IAPHelper.engine.requestSubscription(model.productId, [offer]); + } else { + yield IAPHelper.engine.getProducts([model.productId]); + yield IAPHelper.engine.requestPurchase(model.productId); + } + } catch (e) { + error = { + code: e.code, + message: e.message, + productId: model.productId + }; + } + } else { + error = { + code: IAPErrorCode.E_IAP_NOT_AVAILABLE, + message: "In app purchases not configured", + productId: model.productId + }; + } + + yield IAPHelper.onPurchaseError(error); + IAPHelper.purchasing = false; + }); + + function requestIAP(_x15) { + return _requestIAP.apply(this, arguments); + } + + return requestIAP; + }() + }, { + key: "getActiveSubscriptionPerActivePSetup", + value: function getActiveSubscriptionPerActivePSetup(activeSubscriptions) { + var activePsetup = global.getActivePSetup(); + return activeSubscriptions.filter(function (_ref) { + var productId = _ref.productId; + return activePsetup.getPaymentByProductId(productId) !== undefined; + }); + } + }, { + key: "showSubscriptionsAlert", + value: function () { + var _showSubscriptionsAlert = (0, _asyncToGenerator2.default)(function* (activeSubscriptions) { + var _global$getActivePSet2 = global.getActivePSetup(), + enableMultipleSubscriptionsAlert = _global$getActivePSet2.enableMultipleSubscriptionsAlert; + + if (activeSubscriptions.length === 0 || !enableMultipleSubscriptionsAlert || !_optionalPackageUtils.default.isIapModuleAvailable()) { + return Promise.resolve(); + } + + return new Promise(function (resolve, reject) { + _$$_REQUIRE(_dependencyMap[17]).CustomAlert.alert(global.strings("iap_multiple_subscriptions"), global.strings("iap_multiple_active_subscriptions_message", { + subscriptions: IAPHelper.getActiveSubscriptionsText(activeSubscriptions) + }), [{ + text: global.strings("btn_continue"), + onPress: resolve + }, { + text: global.strings("btn_cancel"), + onPress: function onPress() { + var e = new Error(); + e.message = "there is already an active subscription"; + e.name = IAPErrorCode.E_ACTIVE_SUBSCRIPTION; + reject(e); + } + }], { + cancelable: false + }); + }); + }); + + function showSubscriptionsAlert(_x16) { + return _showSubscriptionsAlert.apply(this, arguments); + } + + return showSubscriptionsAlert; + }() + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { + var message; + var SUCCESS = RESTORE_TRANSACTIONS_MESSAGES.SUCCESS, + IPN_FAILED = RESTORE_TRANSACTIONS_MESSAGES.IPN_FAILED, + NO_PURCHASES_FOUND = RESTORE_TRANSACTIONS_MESSAGES.NO_PURCHASES_FOUND, + SYSTEM_ERROR = RESTORE_TRANSACTIONS_MESSAGES.SYSTEM_ERROR, + ENGINE_NOT_SET = RESTORE_TRANSACTIONS_MESSAGES.ENGINE_NOT_SET; + + if (!IAPHelper.systemInError && IAPHelper.engine && _optionalPackageUtils.default.isIapModuleAvailable()) { + try { + var purchases = yield IAPHelper.engine.restoreTransactions(productId); + + if (purchases && purchases.length > 0) { + var result = yield IAPHelper.callToRestoreTransactions(purchases); + + if (result) { + var activePSetup = global.getActivePSetup(); + var loginStatus = activePSetup.loginStatus; + + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { + for (var i = 0; i < purchases.length; i++) { + if (purchases[i]) { + var _purchases$i = purchases[i], + currentProductId = _purchases$i.productId, + receipt = _purchases$i.receipt; + var payment = activePSetup.getPaymentByProductId(currentProductId); + + if (payment && payment.isSubscription() && receipt) { + loginStatus.setReceipt(receipt); + break; + } + } + } + } else if (purchases[0]) { + var _purchases$ = purchases[0], + _currentProductId = _purchases$.productId, + _receipt = _purchases$.receipt; + + var _payment = activePSetup.getPaymentByProductId(_currentProductId); + + if (_payment && _payment.isSubscription() && _receipt) { + loginStatus.setReceipt(_receipt); + } + } + + return { + success: true, + message: SUCCESS, + purchases: purchases + }; + } + + message = IPN_FAILED; + } else { + message = NO_PURCHASES_FOUND; + } + } catch (e) { + message = e.message; + } + } else { + message = IAPHelper.engine ? SYSTEM_ERROR : ENGINE_NOT_SET; + } + + return { + success: false, + message: message + }; + }); + + function restoreTransactions(_x17) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }, { + key: "autoRestoreSubscription", + value: function () { + var _autoRestoreSubscription = (0, _asyncToGenerator2.default)(function* () { + if (IAPHelper.getSystem() === IAP_SYSTEMS.APPLE || IAPHelper.getSystem() === IAP_SYSTEMS.AMAZON) { + var _yield$IAPHelper$rest = yield IAPHelper.restoreTransactions(), + success = _yield$IAPHelper$rest.success; + + return success; + } + + if (!IAPHelper.engine) { + return false; + } + + var activeSubscriptions = yield IAPHelper.engine.getBoughtSubscriptions(); + activeSubscriptions = IAPHelper.getActiveSubscriptionPerActivePSetup(activeSubscriptions); + + if (!activeSubscriptions || !activeSubscriptions.length) { + return false; + } + + activeSubscriptions.sort(function (a, b) { + return parseInt(b.expiresDate, 10) - parseInt(b.originalPurchaseDate, 10) - (parseInt(a.expiresDate, 10) - parseInt(b.originalPurchaseDate, 10)); + }); + + for (var i = 0; i < activeSubscriptions.length; i++) { + var activeSubscription = activeSubscriptions[i]; + + try { + yield IAPHelper.storeIAPResultToServer({ + productId: activeSubscription.productId, + transactionId: activeSubscription.transactionId, + receipt: activeSubscription.receipt, + originalTransactionId: activeSubscription.originalTransactionId, + originalTransactionDate: activeSubscription.originalTransactionDate + }); + } catch (e) {} + } + + activeSubscriptions = IAPHelper.engine.applyFiltersToSubscriptions(activeSubscriptions); + + if (activeSubscriptions.length > 1) { + IAPHelper.showConcurrentSubscriptions(activeSubscriptions); + } + + return true; + }); + + function autoRestoreSubscription() { + return _autoRestoreSubscription.apply(this, arguments); + } + + return autoRestoreSubscription; + }() + }, { + key: "showConcurrentSubscriptions", + value: function showConcurrentSubscriptions() { + var activeSubscriptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + var _global$getActivePSet3 = global.getActivePSetup(), + enableMultipleSubscriptionsAlert = _global$getActivePSet3.enableMultipleSubscriptionsAlert; + + if (!enableMultipleSubscriptionsAlert) { + return; + } + + _$$_REQUIRE(_dependencyMap[17]).CustomAlert.alert(global.strings("iap_multiple_subscriptions"), global.strings("iap_multiple_subscriptions_message", { + subscriptions: IAPHelper.getActiveSubscriptionsText(activeSubscriptions) + }), [{ + text: global.strings("iap_go_to_subscriptions"), + onPress: function onPress() { + var url = "https://play.google.com/store/account/subscriptions"; + + if (_reactNative.Linking.canOpenURL(url)) { + _reactNative.Linking.openURL(url); + } + } + }, { + text: global.strings("btn_close") + }], { + cancelable: false + }); + } + }, { + key: "getActiveSubscriptionsText", + value: function getActiveSubscriptionsText(activeSubscriptions) { + if (activeSubscriptions && activeSubscriptions.length) { + var paymentsStr = "\n\n"; + var activePsetup = global.getActivePSetup(); + activeSubscriptions.forEach(function (subscription) { + var payment = activePsetup.getPaymentByProductId(subscription.productId); + + if (payment) { + paymentsStr += _$$_REQUIRE(_dependencyMap[11]).StringUtils.BULLET + " " + payment.getDescription() + "\n"; + } + }); + return paymentsStr; + } + + return ""; + } + }, { + key: "storeIAPResultToServer", + value: function () { + var _storeIAPResultToServer = (0, _asyncToGenerator2.default)(function* (purchaseResult) { + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + if (purchaseResult) { + var productId = purchaseResult.productId, + transactionId = purchaseResult.transactionId, + transactionDate = purchaseResult.transactionDate, + originalTransactionId = purchaseResult.originalTransactionId, + originalTransactionDate = purchaseResult.originalTransactionDate, + receipt = purchaseResult.receipt, + purchaseToken = purchaseResult.purchaseToken; + + if (productId) { + var status = IAP_STATUS.FAILED; + var model = yield IAPHelper.getPurchaseModel(productId); + + if (model) { + model.setTransactionId(transactionId); + model.setTransactionDate(transactionDate); + model.setOriginalTransactionId(originalTransactionId); + model.setOriginalTransactionDate(originalTransactionDate); + + if (purchaseToken) { + model.setPurchaseToken(purchaseToken); + } + + if (receipt) { + status = IAP_STATUS.SUCCESS; + model.setReceipt(receipt); + + if (model.isRecurring()) { + var _global$getActivePSet4 = global.getActivePSetup(), + loginStatus = _global$getActivePSet4.loginStatus; + + loginStatus.setReceipt(receipt); + model = yield IAPHelper.callToReceiptManager(model); + } + } + + yield IAPHelper.storePurchaseModel(model); + var result = yield IAPHelper.callToIpn(status, model); + + if (IAPHelper.serverCallback) { + if (result) { + IAPHelper.serverCallback({ + status: status, + model: model + }); + } else { + var error = {}; + error.code = IAPErrorCode.E_REMOTE_ERROR; + error.message = "Call to IPN API failed"; + IAPHelper.serverCallback({ + status: IAP_STATUS.FAILED, + model: model, + error: error + }); + } + } + + return result; + } + } else {} + } else {} + } else {} + + return false; + }); + + function storeIAPResultToServer(_x18) { + return _storeIAPResultToServer.apply(this, arguments); + } + + return storeIAPResultToServer; + }() + }, { + key: "callToReceiptManager", + value: function () { + var _callToReceiptManager = (0, _asyncToGenerator2.default)(function* (model) { + var attempts = 0; + var success = false; + + do { + attempts += 1; + + try { + var response = yield _IAPApi.default.receiptManager(model); + var originalTransactionId = undefined; + + if (response && response.data && response.data.decoded) { + originalTransactionId = response.data.decoded.originalTransactionId; + } + + model.setRecurringSubscriptionId(IAPHelper.computeRecurringSubscriptionId(model, originalTransactionId)); + success = true; + } catch (e) {} + } while (attempts < 2 && !success); + + return model; + }); + + function callToReceiptManager(_x19) { + return _callToReceiptManager.apply(this, arguments); + } + + return callToReceiptManager; + }() + }, { + key: "callToIpn", + value: function () { + var _callToIpn = (0, _asyncToGenerator2.default)(function* (status, model) { + var success = status === IAP_STATUS.SUCCESS; + var ipnAttempts = 0; + var ipnCallSuccess = false; + + do { + ipnAttempts += 1; + + try { + var isSandbox = false; + + if (model) { + isSandbox = IAPHelper.isSandboxReceipt(model.receipt); + } + + var ipnResponse = yield _IAPApi.default.ipn(success, model, isSandbox); + + if (ipnResponse != null && ipnResponse.data) { + ipnCallSuccess = true; + + if (ipnResponse.data.indexOf("ERROR") === -1) { + return true; + } + } + } catch (e) {} + } while (ipnAttempts < 2 && !ipnCallSuccess); + + return false; + }); + + function callToIpn(_x20, _x21) { + return _callToIpn.apply(this, arguments); + } + + return callToIpn; + }() + }, { + key: "callToRestoreTransactions", + value: function () { + var _callToRestoreTransactions = (0, _asyncToGenerator2.default)(function* (restoreTransactions) { + var isSandbox = false; + + if (restoreTransactions.length > 0) { + isSandbox = IAPHelper.isSandboxReceipt(restoreTransactions[0].receipt); + } + + var chunksLength = Math.ceil(restoreTransactions.length / RESTORE_TRANSACTIONS_CHUNK_LENGTH); + var chunks = Array.from({ + length: chunksLength + }, function (v, i) { + return restoreTransactions.slice(i * RESTORE_TRANSACTIONS_CHUNK_LENGTH, i * RESTORE_TRANSACTIONS_CHUNK_LENGTH + RESTORE_TRANSACTIONS_CHUNK_LENGTH); + }); + + for (var i = 0; i < chunks.length; i++) { + var attempts = 0; + var success = false; + + do { + attempts += 1; + + try { + var response = yield _IAPApi.default.restoreTransactions(chunks[i], isSandbox); + + if (response != null && response.data) { + success = true; + + if (response.data.indexOf("ERROR") !== -1) { + return false; + } + } + } catch (e) {} + + if (!success) {} + } while (attempts < 2 && !success); + + if (!success) { + return false; + } + } + + return true; + }); + + function callToRestoreTransactions(_x22) { + return _callToRestoreTransactions.apply(this, arguments); + } + + return callToRestoreTransactions; + }() + }, { + key: "getPurchaseUpdateCompletedMessage", + value: function getPurchaseUpdateCompletedMessage() { + return global.strings("msg_pending_purchases", { + completed: Math.min(IAPHelper.pendingPurchasesCompleted, IAPHelper.pendingPurchases), + total: IAPHelper.pendingPurchases + }); + } + }, { + key: "showPurchaseUpdateCompletedMessage", + value: function showPurchaseUpdateCompletedMessage() {} + }, { + key: "hidePurchaseUpdateCompletedMessage", + value: function hidePurchaseUpdateCompletedMessage() {} + }, { + key: "onPurchaseUpdateOperationAdded", + value: function onPurchaseUpdateOperationAdded(callback) { + IAPHelper.engine.onPurchaseUpdateOperationAdded(callback); + } + }, { + key: "onPurchaseUpdateOperationCompleted", + value: function onPurchaseUpdateOperationCompleted(callback) { + IAPHelper.engine.onPurchaseUpdateOperationCompleted(callback); + } + }, { + key: "onPurchaseUpdateOperationsIdle", + value: function () { + var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { + return IAPHelper.engine.onPurchaseUpdateOperationsIdle(); + }); + + function onPurchaseUpdateOperationsIdle() { + return _onPurchaseUpdateOperationsIdle.apply(this, arguments); + } + + return onPurchaseUpdateOperationsIdle; + }() + }, { + key: "getPurchaseUpdateOperationsInQueue", + value: function getPurchaseUpdateOperationsInQueue() { + return IAPHelper.engine.getPurchaseUpdateOperationsInQueue(); + } + }, { + key: "completePendingPurchases", + value: function () { + var _completePendingPurchases = (0, _asyncToGenerator2.default)(function* () { + if (IAPHelper.engineInit) { + IAPHelper.pendingPurchases = IAPHelper.getPurchaseUpdateOperationsInQueue(); + + if (IAPHelper.pendingPurchases > 0) { + IAPHelper.showPurchaseUpdateCompletedMessage(); + yield IAPHelper.onPurchaseUpdateOperationsIdle(); + IAPHelper.pendingPurchases = 0; + IAPHelper.pendingPurchasesCompleted = 0; + IAPHelper.hidePurchaseUpdateCompletedMessage(); + } + } + }); + + function completePendingPurchases() { + return _completePendingPurchases.apply(this, arguments); + } + + return completePendingPurchases; + }() + }, { + key: "setServerCallback", + value: function () { + var _setServerCallback = (0, _asyncToGenerator2.default)(function* (callback) { + if (callback) { + yield IAPHelper.completePendingPurchases(); + IAPHelper.onPurchaseUpdateOperationAdded(undefined); + IAPHelper.onPurchaseUpdateOperationCompleted(undefined); + IAPHelper.serverCallback = callback; + } + }); + + function setServerCallback(_x23) { + return _setServerCallback.apply(this, arguments); + } + + return setServerCallback; + }() + }, { + key: "resetServerCallback", + value: function resetServerCallback() { + IAPHelper.serverCallback = undefined; + } + }, { + key: "computeRecurringSubscriptionId", + value: function computeRecurringSubscriptionId(model) { + var originalTransactionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var invoiceId = model.invoiceId, + recurringSubscriptionPeriod = model.recurringSubscriptionPeriod, + originalTransactionIdFromModel = model.originalTransactionId; + + if (originalTransactionIdFromModel && !originalTransactionId) { + originalTransactionId = originalTransactionIdFromModel; + } else if (invoiceId && !originalTransactionId) { + var invoiceParts = invoiceId.split("_"); + + if (invoiceParts.length > 2) { + originalTransactionId = invoiceParts[2]; + } + } + + return "P" + originalTransactionId + "_" + recurringSubscriptionPeriod; + } + }, { + key: "getSystem", + value: function getSystem() { + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { + return IAP_SYSTEMS.APPLE; + } + + if (_deviceUtils.default.isKindle()) { + return IAP_SYSTEMS.AMAZON; + } + + return IAP_SYSTEMS.GOOGLE; + } + }, { + key: "validateReceipt", + value: function () { + var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + if (!IAPHelper.systemInError && IAPHelper.engine && receipt) { + return IAPHelper.engine.validateReceipt(receipt); + } + + return false; + }); + + function validateReceipt(_x24) { + return _validateReceipt.apply(this, arguments); + } + + return validateReceipt; + }() + }, { + key: "isSandboxReceipt", + value: function isSandboxReceipt(receipt) { + if (!IAPHelper.systemInError && IAPHelper.engine && receipt) { + return IAPHelper.engine.isSandboxReceipt(receipt); + } + + return false; + } + }, { + key: "registerReceiver", + value: function registerReceiver() { + if (IAPHelper.engine) { + IAPHelper.engine.registerReceiver(); + } + } + }, { + key: "unregisterReceiver", + value: function unregisterReceiver() { + if (IAPHelper.engine) { + IAPHelper.engine.unregisterReceiver(); + } + } + }, { + key: "getProductsAndSubscriptions", + value: function getProductsAndSubscriptions() { + var products = [].concat((0, _toConsumableArray2.default)(IAPHelper.products), (0, _toConsumableArray2.default)(IAPHelper.subscriptions)).map(function (product) { + var newProduct = Object.assign({}, product); + Object.keys(newProduct).forEach(function (key) { + if (key === "name" || key === "title" || key === "description") { + newProduct[key] = encodeURIComponent(newProduct[key]).replace(/'/g, "%27"); + } + }); + return newProduct; + }); + return products; + } + }]); + }(); + + IAPHelper.engine = undefined; + IAPHelper.engineInit = false; + IAPHelper.system = ""; + IAPHelper.systemInError = false; + IAPHelper.serverCallback = undefined; + IAPHelper.purchasing = false; + IAPHelper.products = []; + IAPHelper.subscriptions = []; + IAPHelper.pendingPurchases = 0; + IAPHelper.pendingPurchasesCompleted = 0; + IAPHelper.SP = { + name: "purchase", + keys: { + invoiceId: "invoiceId", + pSetup: "pSetup", + issue: "issue", + edition: "edition", + editionId: "editionId", + transactionId: "transactionId", + transactionDate: "transactionDate", + originalTransactionId: "originalTransactionId", + originalTransactionDate: "originalTransactionDate", + recurringSubscriptionPeriod: "recurringSubscriptionPeriod", + recurringSubscriptionId: "recurringSubscriptionId", + receipt: "receipt", + purchaseToken: "purchaseToken" + } + }; +},2194,[3,22,270,6,7,18,870,434,882,2195,2196,438,2197,818,2198,2208,2209,815]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var endpoints = { + receipt_manager: "receipt_manager.php", + ipn: "ipn.php", + restore_transactions: "restore_transactions.php" + }; + var IPNStatus = { + SUCCESS: "Completed", + FAILED: "Failed" + }; + + var IAPApi = exports.default = function () { + function IAPApi() { + (0, _classCallCheck2.default)(this, IAPApi); + } + + return (0, _createClass2.default)(IAPApi, null, [{ + key: "baseUrl", + value: function baseUrl(endpoint) { + var _global$getActivePSet = global.getActivePSetup(), + baseInAppPurchaseAPIUrl = _global$getActivePSet.baseInAppPurchaseAPIUrl; + + return _$$_REQUIRE(_dependencyMap[6]).StringUtils.appendParams(_$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(baseInAppPurchaseAPIUrl).concat("/" + endpoint), _Api.default.getDefaultParams()); + } + }, { + key: "receiptManager", + value: function () { + var _receiptManager = (0, _asyncToGenerator2.default)(function* (model) { + var _global$getActivePSet2 = global.getActivePSetup(), + loginStatus = _global$getActivePSet2.loginStatus; + + var TAUID = loginStatus.TAUID; + var receipt = model.receipt; + return _Api.default.post(IAPApi.baseUrl(endpoints.receipt_manager), {}, { + action: "write", + tauid: TAUID, + receipt: receipt + }); + }); + + function receiptManager(_x) { + return _receiptManager.apply(this, arguments); + } + + return receiptManager; + }() + }, { + key: "getCustomParam", + value: function getCustomParam() { + var _global$getActivePSet3 = global.getActivePSetup(), + pSetup = _global$getActivePSet3.pSetup, + paper = _global$getActivePSet3.xpaper; + + var type = "ipad"; + + if (_$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isAndroid()) { + type = "play"; + + if (_deviceUtils.default.isKindle()) { + type = "amazon"; + } + } + + return pSetup + "#" + paper + "#" + type + "_payment"; + } + }, { + key: "ipn", + value: function () { + var _ipn = (0, _asyncToGenerator2.default)(function* (success, model, isSandbox) { + var _global$getActivePSet4 = global.getActivePSetup(), + loginStatus = _global$getActivePSet4.loginStatus; + + var TAUID = loginStatus.TAUID; + var invoiceId = model.invoiceId, + originalTransactionId = model.originalTransactionId, + transactionId = model.transactionId, + transactionDate = model.transactionDate, + recurringSubscriptionId = model.recurringSubscriptionId, + edition = model.edition, + editionId = model.editionId, + receipt = model.receipt, + productId = model.productId, + purchaseToken = model.purchaseToken; + var payment_status = success ? IPNStatus.SUCCESS : IPNStatus.FAILED; + var purchase_time; + + if (!_$$_REQUIRE(_dependencyMap[6]).JSUtils.isNull(transactionDate)) { + purchase_time = _$$_REQUIRE(_dependencyMap[6]).DateUtils.unixToString(parseInt(transactionDate, 10) / 1000, "YYYYMMDDHHmmss"); + } + + var otherParams = { + product_id: productId, + payment_status: payment_status, + invoice: invoiceId, + custom: IAPApi.getCustomParam(), + txn_id: transactionId, + original_txn_id: originalTransactionId, + purchase_token: purchaseToken, + purchase_time: purchase_time, + edition: edition, + editionid: editionId, + TAUID: TAUID, + doPost: false, + isSandbox: isSandbox || undefined + }; + + if (model.isRecurring()) { + otherParams = Object.assign({}, otherParams, { + txn_type: "subscr_payment", + subscr_id: recurringSubscriptionId, + receipt: receipt + }); + } + + return _Api.default.post(IAPApi.baseUrl(endpoints.ipn), { + responseType: "text", + timeout: 30000 + }, otherParams); + }); + + function ipn(_x2, _x3, _x4) { + return _ipn.apply(this, arguments); + } + + return ipn; + }() + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (restoredTransactions, isSandbox) { + var transactions = restoredTransactions.map(function (restoredTransaction) { + return { + productID: restoredTransaction.productId, + purchase_date: restoredTransaction.purchaseDate, + expires_date: restoredTransaction.expiresDate, + cancellation_date: restoredTransaction.cancellationDate, + cancel_reason: restoredTransaction.cancelReason, + original_transaction_id: restoredTransaction.originalTransactionId, + receipt: restoredTransaction.receipt, + transaction_id: restoredTransaction.transactionId + }; + }); + return _Api.default.post(IAPApi.baseUrl(endpoints.restore_transactions), { + responseType: "text", + timeout: 180000 + }, { + transactions: JSON.stringify(transactions), + isSandbox: isSandbox || undefined + }); + }); + + function restoreTransactions(_x5, _x6) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }]); + }(); +},2195,[3,270,6,7,407,434,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var IAPBase = exports.default = function () { + function IAPBase() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + (0, _classCallCheck2.default)(this, IAPBase); + this.callbackToServer = undefined; + this.onPurchaseError = undefined; + this.callbackToServer = props.callbackToServer; + this.onPurchaseError = props.onPurchaseError; + } + + return (0, _createClass2.default)(IAPBase, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + return false; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "getProducts", + value: function () { + var _getProducts = (0, _asyncToGenerator2.default)(function* (skus) { + return []; + }); + + function getProducts(_x) { + return _getProducts.apply(this, arguments); + } + + return getProducts; + }() + }, { + key: "getSubscriptions", + value: function () { + var _getSubscriptions = (0, _asyncToGenerator2.default)(function* (skus) { + return []; + }); + + function getSubscriptions(_x2) { + return _getSubscriptions.apply(this, arguments); + } + + return getSubscriptions; + }() + }, { + key: "getSubscriptionOffersDetails", + value: function getSubscriptionOffersDetails(skus) { + return []; + } + }, { + key: "requestPurchase", + value: function () { + var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { + return undefined; + }); + + function requestPurchase(_x3) { + return _requestPurchase.apply(this, arguments); + } + + return requestPurchase; + }() + }, { + key: "requestSubscription", + value: function () { + var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku) { + return undefined; + }); + + function requestSubscription(_x4) { + return _requestSubscription.apply(this, arguments); + } + + return requestSubscription; + }() + }, { + key: "getAvailablePurchases", + value: function () { + var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { + return undefined; + }); + + function getAvailablePurchases() { + return _getAvailablePurchases.apply(this, arguments); + } + + return getAvailablePurchases; + }() + }, { + key: "registerReceiver", + value: function registerReceiver() {} + }, { + key: "unregisterReceiver", + value: function unregisterReceiver() {} + }, { + key: "finishTransaction", + value: function finishTransaction(purchase) {} + }, { + key: "_callServerToStoreIAP", + value: function () { + var _callServerToStoreIAP2 = (0, _asyncToGenerator2.default)(function* (params) { + if (typeof this.callbackToServer === "function") { + try { + return this.callbackToServer(params); + } catch (e) {} + } + + return false; + }); + + function _callServerToStoreIAP(_x5) { + return _callServerToStoreIAP2.apply(this, arguments); + } + + return _callServerToStoreIAP; + }() + }, { + key: "_concludePurchase", + value: function () { + var _concludePurchase2 = (0, _asyncToGenerator2.default)(function* (purchase) { + if (!purchase) { + return false; + } + + var success = false; + + try { + success = yield this._callServerToStoreIAP(purchase); + } catch (e) {} + + return success; + }); + + function _concludePurchase(_x6) { + return _concludePurchase2.apply(this, arguments); + } + + return _concludePurchase; + }() + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { + return []; + }); + + function restoreTransactions(_x7) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }, { + key: "getBoughtSubscriptions", + value: function () { + var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* () { + return []; + }); + + function getBoughtSubscriptions() { + return _getBoughtSubscriptions.apply(this, arguments); + } + + return getBoughtSubscriptions; + }() + }, { + key: "isSandboxReceipt", + value: function isSandboxReceipt(receipt) { + return global.__DEV__; + } + }, { + key: "getPurchaseUpdateOperationsInQueue", + value: function getPurchaseUpdateOperationsInQueue() { + return 0; + } + }, { + key: "onPurchaseUpdateOperationsIdle", + value: function () { + var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { + return Promise.resolve(); + }); + + function onPurchaseUpdateOperationsIdle() { + return _onPurchaseUpdateOperationsIdle.apply(this, arguments); + } + + return onPurchaseUpdateOperationsIdle; + }() + }, { + key: "onPurchaseUpdateOperationAdded", + value: function onPurchaseUpdateOperationAdded(callback) {} + }, { + key: "onPurchaseUpdateOperationCompleted", + value: function onPurchaseUpdateOperationCompleted(callback) {} + }]); + }(); +},2196,[3,270,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPTecnaviaType = exports.IAPTecnaviaModel = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var IAPTecnaviaType = exports.IAPTecnaviaType = { + NON_CONSUMABLE: 0, + CONSUMABLE: 1, + SUBSCRIPTION: 2 + }; + + var IAPTecnaviaModel = exports.IAPTecnaviaModel = function () { + function IAPTecnaviaModel() { + (0, _classCallCheck2.default)(this, IAPTecnaviaModel); + } + + return (0, _createClass2.default)(IAPTecnaviaModel, [{ + key: "setProductId", + value: function setProductId(productId) { + this.productId = productId; + } + }, { + key: "setType", + value: function setType(type) { + this.type = type; + } + }, { + key: "setTitle", + value: function setTitle(title) { + this.title = title; + } + }, { + key: "setDescription", + value: function setDescription(description) { + this.description = description; + } + }, { + key: "setPSetup", + value: function setPSetup(pSetup) { + this.pSetup = pSetup; + } + }, { + key: "setIssue", + value: function setIssue(issue) { + this.issue = issue; + } + }, { + key: "setEdition", + value: function setEdition(edition) { + this.edition = edition; + } + }, { + key: "setEditionId", + value: function setEditionId(editionId) { + this.editionId = editionId; + } + }, { + key: "setInvoiceId", + value: function setInvoiceId(invoiceId) { + this.invoiceId = invoiceId; + } + }, { + key: "setTransactionId", + value: function setTransactionId(transactionId) { + this.transactionId = transactionId; + } + }, { + key: "setTransactionDate", + value: function setTransactionDate(transactionDate) { + this.transactionDate = transactionDate; + } + }, { + key: "setOriginalTransactionId", + value: function setOriginalTransactionId(originalTransactionId) { + this.originalTransactionId = originalTransactionId; + } + }, { + key: "setOriginalTransactionDate", + value: function setOriginalTransactionDate(originalTransactionDate) { + this.originalTransactionDate = originalTransactionDate; + } + }, { + key: "setReceipt", + value: function setReceipt(receipt) { + this.receipt = receipt; + } + }, { + key: "setRecurringSubscriptionPeriod", + value: function setRecurringSubscriptionPeriod(recurringSubscriptionPeriod) { + this.recurringSubscriptionPeriod = recurringSubscriptionPeriod; + } + }, { + key: "setRecurringSubscriptionId", + value: function setRecurringSubscriptionId(recurringSubscriptionId) { + this.recurringSubscriptionId = recurringSubscriptionId; + } + }, { + key: "isRecurring", + value: function isRecurring() { + return !!this.recurringSubscriptionPeriod; + } + }, { + key: "setPurchaseToken", + value: function setPurchaseToken(purchaseToken) { + this.purchaseToken = purchaseToken; + } + }]); + }(); +},2197,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPGoogle = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var RNIap = _optionalPackageUtils.default.getIapModule(); + + var IAPGoogle = exports.IAPGoogle = function (_IAPrnBase) { + function IAPGoogle() { + var _this; + + (0, _classCallCheck2.default)(this, IAPGoogle); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, IAPGoogle, [].concat(args)); + _this.lastGoogleToken = undefined; + _this.lastGoogleTokenRequest = -1; + return _this; + } + + (0, _inherits2.default)(IAPGoogle, _IAPrnBase); + return (0, _createClass2.default)(IAPGoogle, [{ + key: "getGoogleReceiptOldMethod", + value: function () { + var _getGoogleReceiptOldMethod = (0, _asyncToGenerator2.default)(function* (receipt) { + var isSubscription = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + var currentTime = new Date().getTime(); + + if (!this.lastGoogleToken || this.lastGoogleTokenRequest + this.lastGoogleToken.expires_in * 1000 < currentTime) { + this.lastGoogleTokenRequest = currentTime; + this.lastGoogleToken = yield this.getToken(); + } + + if (this.lastGoogleToken) { + return RNIap.validateReceiptAndroid(global.androidAppId, receipt.productId, receipt.purchaseToken, this.lastGoogleToken.access_token, true); + } + + throw new Error("access_token not found"); + } + + return undefined; + }); + + function getGoogleReceiptOldMethod(_x) { + return _getGoogleReceiptOldMethod.apply(this, arguments); + } + + return getGoogleReceiptOldMethod; + }() + }, { + key: "getGoogleReceipt", + value: function () { + var _getGoogleReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + var isSubscription = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + return (yield _NewsmemoryAJAX.default.validateReceipt({ + service: "google", + packageName: global.androidAppId, + productId: receipt.productId, + purchaseToken: receipt.purchaseToken, + isSubscription: isSubscription + })).data; + }); + + function getGoogleReceipt(_x2) { + return _getGoogleReceipt.apply(this, arguments); + } + + return getGoogleReceipt; + }() + }, { + key: "isReceiptActive", + value: function isReceiptActive(receipt) { + if (receipt) { + var expiryTimeMillis = receipt.expiryTimeMillis; + var expireMills = parseInt(expiryTimeMillis, 10); + var currentTime = new Date(); + return currentTime < new Date(expireMills); + } + + return false; + } + }, { + key: "validateReceipt", + value: function () { + var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + if (receipt) { + try { + var parsedReceipt = JSON.parse(receipt); + var subscription = (yield this.getSubscriptions([parsedReceipt.productId])).length; + + if (subscription) { + var googleReceipt = yield this.getGoogleReceipt(parsedReceipt); + return this.isReceiptActive(googleReceipt); + } + } catch (e) {} + } + + return false; + }); + + function validateReceipt(_x3) { + return _validateReceipt.apply(this, arguments); + } + + return validateReceipt; + }() + }, { + key: "getOriginalTransactionId", + value: function getOriginalTransactionId(purchase) { + var transactionId = purchase.transactionId; + return transactionId.replace(/\.\.[0-9]+/, ""); + } + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { + return this.getBoughtSubscriptions(productId); + }); + + function restoreTransactions(_x4) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }, { + key: "getActiveSubscriptions", + value: function () { + var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { + var activeSubscriptions = yield this.getBoughtSubscriptions(); + return this.applyFiltersToSubscriptions(activeSubscriptions); + }); + + function getActiveSubscriptions(_x5) { + return _getActiveSubscriptions.apply(this, arguments); + } + + return getActiveSubscriptions; + }() + }, { + key: "getSubscriptionOffersDetails", + value: function getSubscriptionOffersDetails() { + var subscriptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var sku = arguments.length > 1 ? arguments[1] : undefined; + var selectedOfferIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + + if (!sku) { + throw new Error("Sku must be valid"); + } + + if (!subscriptions.length) { + throw new Error("Subscriptions can't be empty"); + } + + for (var i = 0; i < subscriptions.length; i++) { + var _subscriptions$i = subscriptions[i], + productId = _subscriptions$i.productId, + _subscriptions$i$subs = _subscriptions$i.subscriptionOfferDetails, + subscriptionOfferDetails = _subscriptions$i$subs === undefined ? [] : _subscriptions$i$subs; + + if (productId === sku) { + var offer = subscriptionOfferDetails[selectedOfferIndex]; + + if (offer) { + return { + sku: productId, + offerToken: offer.offerToken + }; + } + + throw new Error("Found subscription for " + sku + " but there aren't any offer available"); + } + } + + throw new Error("Not found subscription for " + sku); + } + }, { + key: "applyFiltersToSubscriptions", + value: function applyFiltersToSubscriptions(activeSubscriptions) { + var _this2 = this; + + return activeSubscriptions.filter(function (subscription) { + return subscription.getCancelReason() === -1; + }).filter(function (subscription) { + return _this2.isReceiptActive({ + expiryTimeMillis: subscription.expiresDate + }); + }); + } + }, { + key: "getBoughtSubscriptions", + value: function () { + var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* (productId) { + var purchases = yield this.getAvailablePurchases(); + + if (productId) { + purchases = purchases.filter(function (purchase) { + return purchase.productId === productId; + }); + } + + var transactions = []; + + if (purchases && purchases.length > 0) { + for (var i = 0; i < purchases.length; i++) { + var purchase = purchases[i]; + var payment = global.getActivePSetup().getPaymentByProductId(purchase.productId); + var parsedReceipt = JSON.parse(purchase.receipt); + var googleReceipt = undefined; + + try { + googleReceipt = yield this.getGoogleReceipt(parsedReceipt, payment.isSubscription()); + } catch (e) {} + + if (googleReceipt) { + var transactionId = googleReceipt.orderId; + var transaction = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaRestoreModel)(); + transaction.setProductId(purchase.productId); + transaction.setTransactionId(transactionId); + + if (transactionId) { + transaction.setOriginalTransactionId(this.getOriginalTransactionId({ + transactionId: transactionId + })); + } + + transaction.setReceipt(purchase.receipt); + transaction.setPurchaseDate(purchase.purchaseDate); + transaction.setExpiresDate(googleReceipt.expiryTimeMillis); + transaction.setOriginalPurchaseDate(googleReceipt.startTimeMillis); + transaction.setCancellationDate(googleReceipt.userCancellationTimeMillis); + transaction.setCancelReason(googleReceipt.cancelReason !== undefined ? googleReceipt.cancelReason : -1); + transactions.push(transaction); + } + } + } + + return transactions; + }); + + function getBoughtSubscriptions(_x6) { + return _getBoughtSubscriptions.apply(this, arguments); + } + + return getBoughtSubscriptions; + }() + }, { + key: "getToken", + value: function () { + var _getToken = (0, _asyncToGenerator2.default)(function* () { + return (yield _Api.default.getGoogleAccessToken()).data; + }); + + function getToken() { + return _getToken.apply(this, arguments); + } + + return getToken; + }() + }]); + }(_IAPrnBase2.default); +},2198,[3,270,6,7,11,13,14,2199,407,870,882,406,2207]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _pQueue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Payment = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _IAPBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var RNIap = _optionalPackageUtils.default.getIapModule(); + + var IAPrnBase = exports.default = function (_IAPBase) { + function IAPrnBase(props) { + var _this; + + (0, _classCallCheck2.default)(this, IAPrnBase); + _this = _callSuper(this, IAPrnBase, [props]); + _this.purchaseUpdateAddedCallback = undefined; + _this.purchaseUpdateCompletedCallback = undefined; + _this.purchaseUpdateSubscription = undefined; + _this.purchaseErrorSubscription = undefined; + _this.currentPurchaseId = undefined; + _this.onPurchaseUpdateListener = _this._onPurchaseUpdateListener.bind(_this); + _this.onPurchaseErrorListener = _this._onPurchaseErrorListener.bind(_this); + return _this; + } + + (0, _inherits2.default)(IAPrnBase, _IAPBase); + return (0, _createClass2.default)(IAPrnBase, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var result = false; + + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + try { + result = yield RNIap.initConnection(); + + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid()) { + try { + yield RNIap.flushFailedPurchasesCachedAsPendingAndroid(); + } catch (e) {} + } + + this.purchaseUpdateQueue = new _pQueue.default({ + concurrency: 1 + }); + this.registerReceiver(); + } catch (e) {} + } + + return result; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "_onPurchaseErrorListener", + value: function _onPurchaseErrorListener(error) { + if (typeof this.onPurchaseError === "function") { + this.onPurchaseError(Object.assign({}, error, { + productId: this.currentPurchaseId + })); + + this._resetPurchaseId(); + } + } + }, { + key: "_onPurchaseUpdateListener", + value: function _onPurchaseUpdateListener(purchase) { + var _this2 = this; + + if (typeof this.purchaseUpdateAddedCallback === "function") { + this.purchaseUpdateAddedCallback(purchase); + } + + this.purchaseUpdateQueue.add((0, _asyncToGenerator2.default)(function* () { + var result = yield _this2._concludePurchase({ + productId: _this2.getProductId(purchase), + transactionId: _this2.getTransactionId(purchase), + transactionDate: _this2.getTransactionDate(purchase), + originalTransactionId: _this2.getOriginalTransactionId(purchase), + originalTransactionDate: _this2.getOriginalTransactionDate(purchase), + receipt: _this2.getReceipt(purchase), + purchaseToken: _this2.getPurchaseToken(purchase) + }); + + if (result) { + _this2.finishTransaction(purchase); + } else {} + + if (typeof _this2.purchaseUpdateCompletedCallback === "function") { + _this2.purchaseUpdateCompletedCallback(purchase); + } + + _this2._resetPurchaseId(); + })); + } + }, { + key: "_resetPurchaseId", + value: function _resetPurchaseId() { + this.currentPurchaseId = undefined; + } + }, { + key: "getProducts", + value: function () { + var _getProducts = (0, _asyncToGenerator2.default)(function* () { + var skus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + try { + var products = yield RNIap.getProducts({ + skus: skus + }); + return products; + } catch (e) {} + } + + return []; + }); + + function getProducts() { + return _getProducts.apply(this, arguments); + } + + return getProducts; + }() + }, { + key: "getSubscriptions", + value: function () { + var _getSubscriptions = (0, _asyncToGenerator2.default)(function* () { + var skus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + + try { + var subscriptions = yield RNIap.getSubscriptions({ + skus: skus + }); + return subscriptions; + } catch (e) {} + + return []; + }); + + function getSubscriptions() { + return _getSubscriptions.apply(this, arguments); + } + + return getSubscriptions; + }() + }, { + key: "requestPurchase", + value: function () { + var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + this.currentPurchaseId = sku; + return RNIap.requestPurchase({ + sku: sku, + skus: [sku], + andDangerouslyFinishTransactionAutomaticallyIOS: false + }); + } + + return Promise.reject(new Error("Iap module not available")); + }); + + function requestPurchase(_x) { + return _requestPurchase.apply(this, arguments); + } + + return requestPurchase; + }() + }, { + key: "requestSubscription", + value: function () { + var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku, offersDetails) { + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + this.currentPurchaseId = sku; + return RNIap.requestSubscription({ + sku: sku, + subscriptionOffers: offersDetails, + andDangerouslyFinishTransactionAutomaticallyIOS: false + }); + } + + return Promise.reject(new Error("Iap module not available")); + }); + + function requestSubscription(_x2, _x3) { + return _requestSubscription.apply(this, arguments); + } + + return requestSubscription; + }() + }, { + key: "finishTransaction", + value: function finishTransaction(purchase) { + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + var payment = global.getActivePSetup().getPaymentByProductId(purchase.productId); + + if (payment) { + RNIap.finishTransaction({ + purchase: purchase, + isConsumable: payment.isConsumable() + }); + } else { + RNIap.finishTransaction({ + purchase: purchase, + isConsumable: true + }); + } + } + } + }, { + key: "getProductId", + value: function getProductId(purchase) { + return purchase.productId; + } + }, { + key: "getReceipt", + value: function getReceipt(purchase) { + return purchase.transactionReceipt; + } + }, { + key: "getTransactionId", + value: function getTransactionId(purchase) { + return purchase.transactionId; + } + }, { + key: "getTransactionDate", + value: function getTransactionDate(purchase) { + return purchase.transactionDate; + } + }, { + key: "getOriginalTransactionId", + value: function getOriginalTransactionId(purchase) { + return purchase.transactionId; + } + }, { + key: "getOriginalTransactionDate", + value: function getOriginalTransactionDate(purchase) { + return purchase.transactionDate; + } + }, { + key: "getPurchaseToken", + value: function getPurchaseToken(purchase) { + return purchase.purchaseToken; + } + }, { + key: "registerReceiver", + value: function registerReceiver() { + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + this.purchaseUpdateSubscription = RNIap.purchaseUpdatedListener(this.onPurchaseUpdateListener); + this.purchaseErrorSubscription = RNIap.purchaseErrorListener(this.onPurchaseErrorListener); + } + } + }, { + key: "applyFiltersToSubscriptions", + value: function applyFiltersToSubscriptions(activeSubscriptions) { + return activeSubscriptions; + } + }, { + key: "getAvailablePurchases", + value: function () { + var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { + var history = []; + + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + var histories = yield RNIap.getPurchaseHistory(); + var orderedHistories = histories.sort(function (a, b) { + return b.transactionDate - a.transactionDate; + }); + history = orderedHistories.map(function (purchase) { + var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPRestoreModel)(); + model.setProductId(purchase.productId); + model.setPurchaseDate(purchase.transactionDate); + model.setTransactionId(purchase.purchaseToken); + model.setReceipt(purchase.transactionReceipt); + model.setOriginalTransactionId(purchase.purchaseToken); + model.setOriginalTransactionDate(purchase.transactionDate); + return model; + }); + } + + return history; + }); + + function getAvailablePurchases() { + return _getAvailablePurchases.apply(this, arguments); + } + + return getAvailablePurchases; + }() + }, { + key: "unregisterReceiver", + value: function unregisterReceiver() { + if (this.purchaseUpdateSubscription) { + this.purchaseUpdateSubscription.remove(); + this.purchaseUpdateSubscription = undefined; + } + + if (this.purchaseErrorSubscription) { + this.purchaseErrorSubscription.remove(); + this.purchaseErrorSubscription = undefined; + } + } + }, { + key: "getPurchaseUpdateOperationsInQueue", + value: function getPurchaseUpdateOperationsInQueue() { + return this.purchaseUpdateQueue.size; + } + }, { + key: "onPurchaseUpdateOperationsIdle", + value: function () { + var _onPurchaseUpdateOperationsIdle = (0, _asyncToGenerator2.default)(function* () { + return this.purchaseUpdateQueue.onIdle(); + }); + + function onPurchaseUpdateOperationsIdle() { + return _onPurchaseUpdateOperationsIdle.apply(this, arguments); + } + + return onPurchaseUpdateOperationsIdle; + }() + }, { + key: "onPurchaseUpdateOperationAdded", + value: function onPurchaseUpdateOperationAdded(callback) { + this.purchaseUpdateAddedCallback = callback; + } + }, { + key: "onPurchaseUpdateOperationCompleted", + value: function onPurchaseUpdateOperationCompleted(callback) { + this.purchaseUpdateCompletedCallback = callback; + } + }]); + }(_IAPBase2.default); +},2199,[3,270,6,7,11,13,14,2200,870,882,2196,438,2206]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var empty = function empty() {}; + + var timeoutError = new (_$$_REQUIRE(_dependencyMap[2]).TimeoutError)(); + + var PQueue = function (_EventEmitter) { + function PQueue(options) { + var _this; + + _$$_REQUIRE(_dependencyMap[3])(this, PQueue); + + var _a, _b, _c, _d; + + _this = _callSuper(this, PQueue); + _this._intervalCount = 0; + _this._intervalEnd = 0; + _this._pendingCount = 0; + _this._resolveEmpty = empty; + _this._resolveIdle = empty; + options = Object.assign({ + carryoverConcurrencyCount: false, + intervalCap: Infinity, + interval: 0, + concurrency: Infinity, + autoStart: true, + queueClass: _$$_REQUIRE(_dependencyMap[4]).default + }, options); + + if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) { + throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `" + ((_b = (_a = options.intervalCap) === null || _a === undefined ? undefined : _a.toString()) !== null && _b !== undefined ? _b : '') + "` (" + typeof options.intervalCap + ")"); + } + + if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) { + throw new TypeError("Expected `interval` to be a finite number >= 0, got `" + ((_d = (_c = options.interval) === null || _c === undefined ? undefined : _c.toString()) !== null && _d !== undefined ? _d : '') + "` (" + typeof options.interval + ")"); + } + + _this._carryoverConcurrencyCount = options.carryoverConcurrencyCount; + _this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0; + _this._intervalCap = options.intervalCap; + _this._interval = options.interval; + _this._queue = new options.queueClass(); + _this._queueClass = options.queueClass; + _this.concurrency = options.concurrency; + _this._timeout = options.timeout; + _this._throwOnTimeout = options.throwOnTimeout === true; + _this._isPaused = options.autoStart === false; + return _this; + } + + _$$_REQUIRE(_dependencyMap[5])(PQueue, _EventEmitter); + + return _$$_REQUIRE(_dependencyMap[6])(PQueue, [{ + key: "_doesIntervalAllowAnother", + get: function get() { + return this._isIntervalIgnored || this._intervalCount < this._intervalCap; + } + }, { + key: "_doesConcurrentAllowAnother", + get: function get() { + return this._pendingCount < this._concurrency; + } + }, { + key: "_next", + value: function _next() { + this._pendingCount--; + + this._tryToStartAnother(); + + this.emit('next'); + } + }, { + key: "_resolvePromises", + value: function _resolvePromises() { + this._resolveEmpty(); + + this._resolveEmpty = empty; + + if (this._pendingCount === 0) { + this._resolveIdle(); + + this._resolveIdle = empty; + this.emit('idle'); + } + } + }, { + key: "_onResumeInterval", + value: function _onResumeInterval() { + this._onInterval(); + + this._initializeIntervalIfNeeded(); + + this._timeoutId = undefined; + } + }, { + key: "_isIntervalPaused", + value: function _isIntervalPaused() { + var _this2 = this; + + var now = Date.now(); + + if (this._intervalId === undefined) { + var delay = this._intervalEnd - now; + + if (delay < 0) { + this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0; + } else { + if (this._timeoutId === undefined) { + this._timeoutId = setTimeout(function () { + _this2._onResumeInterval(); + }, delay); + } + + return true; + } + } + + return false; + } + }, { + key: "_tryToStartAnother", + value: function _tryToStartAnother() { + if (this._queue.size === 0) { + if (this._intervalId) { + clearInterval(this._intervalId); + } + + this._intervalId = undefined; + + this._resolvePromises(); + + return false; + } + + if (!this._isPaused) { + var canInitializeInterval = !this._isIntervalPaused(); + + if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) { + var job = this._queue.dequeue(); + + if (!job) { + return false; + } + + this.emit('active'); + job(); + + if (canInitializeInterval) { + this._initializeIntervalIfNeeded(); + } + + return true; + } + } + + return false; + } + }, { + key: "_initializeIntervalIfNeeded", + value: function _initializeIntervalIfNeeded() { + var _this3 = this; + + if (this._isIntervalIgnored || this._intervalId !== undefined) { + return; + } + + this._intervalId = setInterval(function () { + _this3._onInterval(); + }, this._interval); + this._intervalEnd = Date.now() + this._interval; + } + }, { + key: "_onInterval", + value: function _onInterval() { + if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) { + clearInterval(this._intervalId); + this._intervalId = undefined; + } + + this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0; + + this._processQueue(); + } + }, { + key: "_processQueue", + value: function _processQueue() { + while (this._tryToStartAnother()) {} + } + }, { + key: "concurrency", + get: function get() { + return this._concurrency; + }, + set: function set(newConcurrency) { + if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) { + throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `" + newConcurrency + "` (" + typeof newConcurrency + ")"); + } + + this._concurrency = newConcurrency; + + this._processQueue(); + } + }, { + key: "add", + value: function () { + var _add = _$$_REQUIRE(_dependencyMap[7])(function* (fn) { + var _this4 = this; + + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return new Promise(function (resolve, reject) { + var run = function () { + var _ref = _$$_REQUIRE(_dependencyMap[7])(function* () { + _this4._pendingCount++; + _this4._intervalCount++; + + try { + var operation = _this4._timeout === undefined && options.timeout === undefined ? fn() : _$$_REQUIRE(_dependencyMap[2]).default(Promise.resolve(fn()), options.timeout === undefined ? _this4._timeout : options.timeout, function () { + if (options.throwOnTimeout === undefined ? _this4._throwOnTimeout : options.throwOnTimeout) { + reject(timeoutError); + } + + return undefined; + }); + resolve(yield operation); + } catch (error) { + reject(error); + } + + _this4._next(); + }); + + return function run() { + return _ref.apply(this, arguments); + }; + }(); + + _this4._queue.enqueue(run, options); + + _this4._tryToStartAnother(); + + _this4.emit('add'); + }); + }); + + function add(_x) { + return _add.apply(this, arguments); + } + + return add; + }() + }, { + key: "addAll", + value: function () { + var _addAll = _$$_REQUIRE(_dependencyMap[7])(function* (functions, options) { + var _this5 = this; + + return Promise.all(functions.map(function () { + var _ref2 = _$$_REQUIRE(_dependencyMap[7])(function* (function_) { + return _this5.add(function_, options); + }); + + return function (_x4) { + return _ref2.apply(this, arguments); + }; + }())); + }); + + function addAll(_x2, _x3) { + return _addAll.apply(this, arguments); + } + + return addAll; + }() + }, { + key: "start", + value: function start() { + if (!this._isPaused) { + return this; + } + + this._isPaused = false; + + this._processQueue(); + + return this; + } + }, { + key: "pause", + value: function pause() { + this._isPaused = true; + } + }, { + key: "clear", + value: function clear() { + this._queue = new this._queueClass(); + } + }, { + key: "onEmpty", + value: function () { + var _onEmpty = _$$_REQUIRE(_dependencyMap[7])(function* () { + var _this6 = this; + + if (this._queue.size === 0) { + return; + } + + return new Promise(function (resolve) { + var existingResolve = _this6._resolveEmpty; + + _this6._resolveEmpty = function () { + existingResolve(); + resolve(); + }; + }); + }); + + function onEmpty() { + return _onEmpty.apply(this, arguments); + } + + return onEmpty; + }() + }, { + key: "onIdle", + value: function () { + var _onIdle = _$$_REQUIRE(_dependencyMap[7])(function* () { + var _this7 = this; + + if (this._pendingCount === 0 && this._queue.size === 0) { + return; + } + + return new Promise(function (resolve) { + var existingResolve = _this7._resolveIdle; + + _this7._resolveIdle = function () { + existingResolve(); + resolve(); + }; + }); + }); + + function onIdle() { + return _onIdle.apply(this, arguments); + } + + return onIdle; + }() + }, { + key: "size", + get: function get() { + return this._queue.size; + } + }, { + key: "sizeBy", + value: function sizeBy(options) { + return this._queue.filter(options).length; + } + }, { + key: "pending", + get: function get() { + return this._pendingCount; + } + }, { + key: "isPaused", + get: function get() { + return this._isPaused; + } + }, { + key: "timeout", + get: function get() { + return this._timeout; + }, + set: function set(milliseconds) { + this._timeout = milliseconds; + } + }]); + }(_$$_REQUIRE(_dependencyMap[8])); + + exports.default = PQueue; +},2200,[13,11,2201,6,2203,14,7,270,2205]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var TimeoutError = function (_Error) { + function TimeoutError(message) { + var _this; + + _$$_REQUIRE(_dependencyMap[2])(this, TimeoutError); + + _this = _callSuper(this, TimeoutError, [message]); + _this.name = 'TimeoutError'; + return _this; + } + + _$$_REQUIRE(_dependencyMap[3])(TimeoutError, _Error); + + return _$$_REQUIRE(_dependencyMap[4])(TimeoutError); + }(_$$_REQUIRE(_dependencyMap[5])(Error)); + + var pTimeout = function pTimeout(promise, milliseconds, fallback) { + return new Promise(function (resolve, reject) { + if (typeof milliseconds !== 'number' || milliseconds < 0) { + throw new TypeError('Expected `milliseconds` to be a positive number'); + } + + if (milliseconds === Infinity) { + resolve(promise); + return; + } + + var timer = setTimeout(function () { + if (typeof fallback === 'function') { + try { + resolve(fallback()); + } catch (error) { + reject(error); + } + + return; + } + + var message = typeof fallback === 'string' ? fallback : "Promise timed out after " + milliseconds + " milliseconds"; + var timeoutError = fallback instanceof Error ? fallback : new TimeoutError(message); + + if (typeof promise.cancel === 'function') { + promise.cancel(); + } + + reject(timeoutError); + }, milliseconds); + + _$$_REQUIRE(_dependencyMap[6])(promise.then(resolve, reject), function () { + clearTimeout(timer); + }); + }); + }; + + module.exports = pTimeout; + module.exports.default = pTimeout; + module.exports.TimeoutError = TimeoutError; +},2201,[13,11,6,14,7,61,2202]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + module.exports = function (promise, onFinally) { + onFinally = onFinally || function () {}; + + return promise.then(function (val) { + return new Promise(function (resolve) { + resolve(onFinally()); + }).then(function () { + return val; + }); + }, function (err) { + return new Promise(function (resolve) { + resolve(onFinally()); + }).then(function () { + throw err; + }); + }); + }; +},2202,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var PriorityQueue = function () { + function PriorityQueue() { + _$$_REQUIRE(_dependencyMap[0])(this, PriorityQueue); + + this._queue = []; + } + + return _$$_REQUIRE(_dependencyMap[1])(PriorityQueue, [{ + key: "enqueue", + value: function enqueue(run, options) { + options = Object.assign({ + priority: 0 + }, options); + var element = { + priority: options.priority, + run: run + }; + + if (this.size && this._queue[this.size - 1].priority >= options.priority) { + this._queue.push(element); + + return; + } + + var index = _$$_REQUIRE(_dependencyMap[2]).default(this._queue, element, function (a, b) { + return b.priority - a.priority; + }); + + this._queue.splice(index, 0, element); + } + }, { + key: "dequeue", + value: function dequeue() { + var item = this._queue.shift(); + + return item === null || item === undefined ? undefined : item.run; + } + }, { + key: "filter", + value: function filter(options) { + return this._queue.filter(function (element) { + return element.priority === options.priority; + }).map(function (element) { + return element.run; + }); + } + }, { + key: "size", + get: function get() { + return this._queue.length; + } + }]); + }(); + + exports.default = PriorityQueue; +},2203,[6,7,2204]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + function lowerBound(array, value, comparator) { + var first = 0; + var count = array.length; + + while (count > 0) { + var step = count / 2 | 0; + var it = first + step; + + if (comparator(array[it], value) <= 0) { + first = ++it; + count -= step + 1; + } else { + count = step; + } + } + + return first; + } + + exports.default = lowerBound; +},2204,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + var has = Object.prototype.hasOwnProperty, + prefix = '~'; + + function Events() {} + + if (Object.create) { + Events.prototype = Object.create(null); + if (!new Events().__proto__) prefix = false; + } + + function EE(fn, context, once) { + this.fn = fn; + this.context = context; + this.once = once || false; + } + + function addListener(emitter, event, fn, context, once) { + if (typeof fn !== 'function') { + throw new TypeError('The listener must be a function'); + } + + var listener = new EE(fn, context || emitter, once), + evt = prefix ? prefix + event : event; + if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener]; + return emitter; + } + + function clearEvent(emitter, evt) { + if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; + } + + function EventEmitter() { + this._events = new Events(); + this._eventsCount = 0; + } + + EventEmitter.prototype.eventNames = function eventNames() { + var names = [], + events, + name; + if (this._eventsCount === 0) return names; + + for (name in events = this._events) { + if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); + } + + if (Object.getOwnPropertySymbols) { + return names.concat(Object.getOwnPropertySymbols(events)); + } + + return names; + }; + + EventEmitter.prototype.listeners = function listeners(event) { + var evt = prefix ? prefix + event : event, + handlers = this._events[evt]; + if (!handlers) return []; + if (handlers.fn) return [handlers.fn]; + + for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { + ee[i] = handlers[i].fn; + } + + return ee; + }; + + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var evt = prefix ? prefix + event : event, + listeners = this._events[evt]; + if (!listeners) return 0; + if (listeners.fn) return 1; + return listeners.length; + }; + + EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return false; + var listeners = this._events[evt], + len = arguments.length, + args, + i; + + if (listeners.fn) { + if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); + + switch (len) { + case 1: + return listeners.fn.call(listeners.context), true; + + case 2: + return listeners.fn.call(listeners.context, a1), true; + + case 3: + return listeners.fn.call(listeners.context, a1, a2), true; + + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), true; + + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; + + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; + } + + for (i = 1, args = new Array(len - 1); i < len; i++) { + args[i - 1] = arguments[i]; + } + + listeners.fn.apply(listeners.context, args); + } else { + var length = listeners.length, + j; + + for (i = 0; i < length; i++) { + if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); + + switch (len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + + case 3: + listeners[i].fn.call(listeners[i].context, a1, a2); + break; + + case 4: + listeners[i].fn.call(listeners[i].context, a1, a2, a3); + break; + + default: + if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) { + args[j - 1] = arguments[j]; + } + listeners[i].fn.apply(listeners[i].context, args); + } + } + } + + return true; + }; + + EventEmitter.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, false); + }; + + EventEmitter.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, true); + }; + + EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) return this; + + if (!fn) { + clearEvent(this, evt); + return this; + } + + var listeners = this._events[evt]; + + if (listeners.fn) { + if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { + clearEvent(this, evt); + } + } else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) { + if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { + events.push(listeners[i]); + } + } + + if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); + } + + return this; + }; + + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var evt; + + if (event) { + evt = prefix ? prefix + event : event; + if (this._events[evt]) clearEvent(this, evt); + } else { + this._events = new Events(); + this._eventsCount = 0; + } + + return this; + }; + + EventEmitter.prototype.off = EventEmitter.prototype.removeListener; + EventEmitter.prototype.addListener = EventEmitter.prototype.on; + EventEmitter.prefixed = prefix; + EventEmitter.EventEmitter = EventEmitter; + + if ('undefined' !== typeof module) { + module.exports = EventEmitter; + } +},2205,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPRestoreModel = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var IAPRestoreModel = exports.IAPRestoreModel = function () { + function IAPRestoreModel() { + (0, _classCallCheck2.default)(this, IAPRestoreModel); + } + + return (0, _createClass2.default)(IAPRestoreModel, [{ + key: "setProductId", + value: function setProductId(productId) { + this.productId = productId; + } + }, { + key: "setReceipt", + value: function setReceipt(receipt) { + this.receipt = receipt; + } + }, { + key: "setPurchaseDate", + value: function setPurchaseDate(date) { + this.purchaseDate = date; + } + }, { + key: "setTransactionId", + value: function setTransactionId(transactionId) { + this.transactionId = transactionId; + } + }, { + key: "setOriginalTransactionId", + value: function setOriginalTransactionId(originalTransactionId) { + this.originalTransactionId = originalTransactionId; + } + }, { + key: "setOriginalTransactionDate", + value: function setOriginalTransactionDate(originalTransactionDate) { + this.originalTransactionDate = originalTransactionDate; + } + }, { + key: "setUserId", + value: function setUserId(userId) { + this.userId = userId; + } + }]); + }(); +},2206,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPTecnaviaRestoreModel = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var IAPTecnaviaRestoreModel = exports.IAPTecnaviaRestoreModel = function () { + function IAPTecnaviaRestoreModel() { + (0, _classCallCheck2.default)(this, IAPTecnaviaRestoreModel); + } + + return (0, _createClass2.default)(IAPTecnaviaRestoreModel, [{ + key: "setProductId", + value: function setProductId(productId) { + this.productId = productId; + } + }, { + key: "setTransactionId", + value: function setTransactionId(transactionId) { + this.transactionId = transactionId; + } + }, { + key: "setOriginalTransactionId", + value: function setOriginalTransactionId(originalTransactionId) { + this.originalTransactionId = originalTransactionId; + } + }, { + key: "setOriginalPurchaseDate", + value: function setOriginalPurchaseDate(originalTransactionDate) { + this.originalTransactionDate = originalTransactionDate; + } + }, { + key: "setReceipt", + value: function setReceipt(receipt) { + this.receipt = receipt; + } + }, { + key: "setPurchaseDate", + value: function setPurchaseDate(purchaseDate) { + this.purchaseDate = purchaseDate; + } + }, { + key: "setExpiresDate", + value: function setExpiresDate(expiresDate) { + this.expiresDate = expiresDate; + } + }, { + key: "setCancellationDate", + value: function setCancellationDate(cancellationDate) { + this.cancellationDate = cancellationDate; + } + }, { + key: "setCancelReason", + value: function setCancelReason(cancelReason) { + this.cancelReason = cancelReason; + } + }, { + key: "getCancelReason", + value: function getCancelReason() { + return this.cancelReason; + } + }]); + }(); +},2207,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPApple = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _cryptoJs = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var IOS_RESTORE_TRANSACTIONS_ERRORS = { + NO_SECRET: "No secret provided", + UNABLE_TO_DECODE_RECEIPT: "Unable to decode receipt" + }; + + var RNIap = _optionalPackageUtils.default.getIapModule(); + + var IAPApple = exports.IAPApple = function (_IAPrnBase) { + function IAPApple() { + var _this; + + (0, _classCallCheck2.default)(this, IAPApple); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, IAPApple, [].concat(args)); + _this.isRestoringTransactions = false; + return _this; + } + + (0, _inherits2.default)(IAPApple, _IAPrnBase); + return (0, _createClass2.default)(IAPApple, [{ + key: "_onPurchaseUpdateListener", + value: function _onPurchaseUpdateListener(purchase) { + if (!this.isRestoringTransactions) { + (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "_onPurchaseUpdateListener", this).call(this, purchase); + } + } + }, { + key: "getOriginalTransactionDate", + value: function getOriginalTransactionDate(purchase) { + return purchase.originalTransactionDateIOS; + } + }, { + key: "requestPurchase", + value: function () { + var _requestPurchase = (0, _asyncToGenerator2.default)(function* (sku) { + this.isRestoringTransactions = false; + return (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "requestPurchase", this).call(this, sku); + }); + + function requestPurchase(_x) { + return _requestPurchase.apply(this, arguments); + } + + return requestPurchase; + }() + }, { + key: "requestSubscription", + value: function () { + var _requestSubscription = (0, _asyncToGenerator2.default)(function* (sku, offersDetails) { + this.isRestoringTransactions = false; + return (0, _get2.default)((0, _getPrototypeOf2.default)(IAPApple.prototype), "requestSubscription", this).call(this, sku, offersDetails); + }); + + function requestSubscription(_x2, _x3) { + return _requestSubscription.apply(this, arguments); + } + + return requestSubscription; + }() + }, { + key: "getAvailablePurchases", + value: function () { + var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { + if (!_optionalPackageUtils.default.isIapModuleAvailable()) { + return []; + } + + var histories = yield RNIap.getAvailablePurchases(); + var orderedHistories = histories.sort(function (a, b) { + return b.transactionDate - a.transactionDate; + }); + return orderedHistories.map(function (purchase) { + var model = new (_$$_REQUIRE(_dependencyMap[12]).IAPRestoreModel)(); + model.setProductId(purchase.productId); + model.setPurchaseDate(purchase.transactionDate); + model.setTransactionId(purchase.transactionId); + model.setReceipt(purchase.transactionReceipt); + model.setOriginalTransactionId(purchase.originalTransactionIdentifierIOS); + model.setOriginalTransactionDate(purchase.originalTransactionDateIOS); + return model; + }); + }); + + function getAvailablePurchases() { + return _getAvailablePurchases.apply(this, arguments); + } + + return getAvailablePurchases; + }() + }, { + key: "getSharedSecret", + value: function getSharedSecret() { + var _global$getActivePSet = global.getActivePSetup(), + forcedSharedSecret = _global$getActivePSet.forcedSharedSecret; + + return forcedSharedSecret || global.iosIapSharedSecret; + } + }, { + key: "useDebugServer", + value: function useDebugServer() { + var _global$getActivePSet2 = global.getActivePSetup(), + useIOSSandboxReceiptValidation = _global$getActivePSet2.useIOSSandboxReceiptValidation; + + return useIOSSandboxReceiptValidation || global.isDebug; + } + }, { + key: "validateReceipt", + value: function () { + var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + var _yield$this$decodeRec = yield this.decodeReceipt(receipt), + status = _yield$this$decodeRec.status, + decodedReceipt = _yield$this$decodeRec.decodedReceipt; + + if (status === 0 && decodedReceipt) { + var iapList = decodedReceipt.in_app; + var now = new Date().getTime(); + var validTransactions = iapList.filter(function (purchase) { + return purchase.expires_date_ms && parseInt(purchase.expires_date_ms, 10) >= now; + }); + return validTransactions.length > 0; + } + + return false; + }); + + function validateReceipt(_x4) { + return _validateReceipt.apply(this, arguments); + } + + return validateReceipt; + }() + }, { + key: "decodeReceiptLocal", + value: function () { + var _decodeReceiptLocal = (0, _asyncToGenerator2.default)(function* (receipt) { + var status = -1; + var decodedReceipt; + var errorMessage = ""; + + if (_optionalPackageUtils.default.isIapModuleAvailable()) { + var password = this.getSharedSecret(); + + if (password) { + var receiptBody = { + "receipt-data": receipt, + password: password + }; + + try { + var testServer = this.useDebugServer(); + var result = yield RNIap.validateReceiptIos(receiptBody, testServer); + status = result.status; + decodedReceipt = result.receipt; + } catch (e) { + errorMessage = e.message; + } + } + } + + return { + status: status, + decodedReceipt: decodedReceipt, + errorMessage: errorMessage + }; + }); + + function decodeReceiptLocal(_x5) { + return _decodeReceiptLocal.apply(this, arguments); + } + + return decodeReceiptLocal; + }() + }, { + key: "decodeReceipt", + value: function () { + var _decodeReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + var status = -1; + var decodedReceipt; + var latestReceiptInfo; + var errorMessage = ""; + + try { + var response = yield _NewsmemoryAJAX.default.validateReceipt({ + service: "apple", + receipt: receipt + }); + var data = response.data; + status = data.status; + decodedReceipt = data.receipt; + latestReceiptInfo = data.latest_receipt_info; + errorMessage = data.error; + } catch (e) { + errorMessage = e.message; + } + + return { + status: status, + decodedReceipt: decodedReceipt, + latestReceiptInfo: latestReceiptInfo, + errorMessage: errorMessage + }; + }); + + function decodeReceipt(_x6) { + return _decodeReceipt.apply(this, arguments); + } + + return decodeReceipt; + }() + }, { + key: "getBoughtSubscriptions", + value: function () { + var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* () { + var purchases = yield this.getAvailablePurchases(); + var transactions = []; + + if (purchases.length > 0) { + var receipt = purchases[purchases.length - 1].receipt; + + var _yield$this$decodeRec2 = yield this.decodeReceipt(receipt), + status = _yield$this$decodeRec2.status, + decodedReceipt = _yield$this$decodeRec2.decodedReceipt, + latestReceiptInfo = _yield$this$decodeRec2.latestReceiptInfo, + errorMessage = _yield$this$decodeRec2.errorMessage; + + if (decodedReceipt) { + var iapList = decodedReceipt.in_app; + + if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(latestReceiptInfo)) { + latestReceiptInfo.forEach(function (purchase) { + var found = iapList.findIndex(function (iap) { + return iap.transaction_id === purchase.transaction_id; + }) !== -1; + + if (!found) { + iapList.push(purchase); + } + }); + iapList.sort(function (a, b) { + return a.purchase_date_ms - b.purchase_date_ms; + }); + } + + transactions = iapList.map(function (purchase) { + var transaction = new (_$$_REQUIRE(_dependencyMap[14]).IAPTecnaviaRestoreModel)(); + transaction.setProductId(purchase.product_id); + transaction.setTransactionId(purchase.transaction_id); + transaction.setOriginalTransactionId(purchase.original_transaction_id); + transaction.setOriginalPurchaseDate(purchase.original_purchase_date_ms); + transaction.setReceipt(receipt); + transaction.setPurchaseDate(purchase.purchase_date_ms); + transaction.setExpiresDate(purchase.expires_date_ms); + transaction.setCancellationDate(purchase.cancellation_date_ms); + return transaction; + }); + } else { + throw new Error(IOS_RESTORE_TRANSACTIONS_ERRORS.UNABLE_TO_DECODE_RECEIPT + ", status: " + status + " " + errorMessage); + } + } + + return transactions; + }); + + function getBoughtSubscriptions() { + return _getBoughtSubscriptions.apply(this, arguments); + } + + return getBoughtSubscriptions; + }() + }, { + key: "getActiveSubscriptions", + value: function () { + var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { + var transactions = yield this.getBoughtSubscriptions(); + + if (transactions) { + var now = new Date().getTime(); + return transactions.filter(function (transaction) { + return transaction.productId !== excludeProductId && _$$_REQUIRE(_dependencyMap[13]).JSUtils.isNull(transaction.cancellationDate) && transaction.expiresDate && parseInt(transaction.expiresDate, 10) >= now; + }); + } + + return []; + }); + + function getActiveSubscriptions(_x7) { + return _getActiveSubscriptions.apply(this, arguments); + } + + return getActiveSubscriptions; + }() + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { + this.isRestoringTransactions = true; + var purchases = yield this.getBoughtSubscriptions(); + this.isRestoringTransactions = false; + return purchases; + }); + + function restoreTransactions(_x8) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }, { + key: "isSandboxReceipt", + value: function isSandboxReceipt(receipt) { + if (receipt) { + try { + var decodedReceipt = _cryptoJs.default.enc.Base64.parse(receipt); + + var receiptString = _cryptoJs.default.enc.Latin1.stringify(decodedReceipt); + + return receiptString.indexOf("ProductionSandbox") > -1; + } catch (e) {} + } + + return false; + } + }, { + key: "getOriginalTransactionId", + value: function getOriginalTransactionId(purchase) { + var originalTransactionIdentifierIOS = purchase.originalTransactionIdentifierIOS, + transactionId = purchase.transactionId; + return originalTransactionIdentifierIOS || transactionId; + } + }]); + }(_IAPrnBase2.default); +},2208,[3,270,6,7,11,85,13,14,631,406,882,2199,2206,438,2207]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.IAPAmazon = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _IAPrnBase2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var RNIap = _optionalPackageUtils.default.getIapModule(); + + var IAPAmazon = exports.IAPAmazon = function (_IAPrnBase) { + function IAPAmazon() { + (0, _classCallCheck2.default)(this, IAPAmazon); + return _callSuper(this, IAPAmazon, arguments); + } + + (0, _inherits2.default)(IAPAmazon, _IAPrnBase); + return (0, _createClass2.default)(IAPAmazon, [{ + key: "getAvailablePurchases", + value: function () { + var _getAvailablePurchases = (0, _asyncToGenerator2.default)(function* () { + try { + var items = yield RNIap.getAvailablePurchases(); + var history = items.filter(function (purchase) { + var transactionReceipt = purchase.transactionReceipt; + var receipt = JSON.parse(transactionReceipt); + return receipt.itemType === "SUBSCRIPTION"; + }).map(function (purchase) { + var transactionReceipt = purchase.transactionReceipt; + var receipt = JSON.parse(transactionReceipt); + var model = new (_$$_REQUIRE(_dependencyMap[10]).IAPRestoreModel)(); + model.setProductId(receipt.sku); + model.setReceipt(receipt.receiptId); + model.setPurchaseDate(receipt.purchaseDate); + model.setUserId(purchase.userIdAmazon); + return model; + }); + return history; + } catch (e) {} + + return []; + }); + + function getAvailablePurchases() { + return _getAvailablePurchases.apply(this, arguments); + } + + return getAvailablePurchases; + }() + }, { + key: "getReceipt", + value: function getReceipt(purchase) { + return purchase.transactionReceipt; + } + }, { + key: "getTransactionId", + value: function getTransactionId(purchase) { + var userIdAmazon = purchase.userIdAmazon, + transactionReceipt = purchase.transactionReceipt, + transactionDate = purchase.transactionDate; + + var _JSON$parse = JSON.parse(transactionReceipt), + receiptId = _JSON$parse.receiptId; + + return this.generateTransactionId({ + userId: userIdAmazon, + receiptId: receiptId, + purchaseDate: transactionDate + }); + } + }, { + key: "getOriginalTransactionId", + value: function getOriginalTransactionId(purchase) { + var userIdAmazon = purchase.userIdAmazon, + transactionReceipt = purchase.transactionReceipt; + + var _JSON$parse2 = JSON.parse(transactionReceipt), + receiptId = _JSON$parse2.receiptId; + + return this.generateTransactionId({ + userId: userIdAmazon, + receiptId: receiptId + }); + } + }, { + key: "generateTransactionId", + value: function generateTransactionId(_ref) { + var userId = _ref.userId, + receiptId = _ref.receiptId, + purchaseDate = _ref.purchaseDate; + + if (purchaseDate) { + return _$$_REQUIRE(_dependencyMap[11]).StringUtils.getMd5(userId + "_" + receiptId + "_" + purchaseDate); + } + + return _$$_REQUIRE(_dependencyMap[11]).StringUtils.getMd5(userId + "_" + receiptId); + } + }, { + key: "getAmazonReceipt", + value: function () { + var _getAmazonReceipt = (0, _asyncToGenerator2.default)(function* (userId, receiptId) { + return (yield _NewsmemoryAJAX.default.validateReceipt({ + service: "amazon", + userId: userId, + receiptId: receiptId + })).data; + }); + + function getAmazonReceipt(_x, _x2) { + return _getAmazonReceipt.apply(this, arguments); + } + + return getAmazonReceipt; + }() + }, { + key: "validateReceipt", + value: function () { + var _validateReceipt = (0, _asyncToGenerator2.default)(function* (receipt) { + if (receipt) { + try { + var response = yield this.getAmazonReceipt(receipt.userId, receipt.receiptId); + var cancelDate = response.cancelDate; + + if (!cancelDate) { + return true; + } + } catch (e) {} + } + + return false; + }); + + function validateReceipt(_x3) { + return _validateReceipt.apply(this, arguments); + } + + return validateReceipt; + }() + }, { + key: "restoreTransactions", + value: function () { + var _restoreTransactions = (0, _asyncToGenerator2.default)(function* (productId) { + return this.getBoughtSubscriptions(productId); + }); + + function restoreTransactions(_x4) { + return _restoreTransactions.apply(this, arguments); + } + + return restoreTransactions; + }() + }, { + key: "getActiveSubscriptions", + value: function () { + var _getActiveSubscriptions = (0, _asyncToGenerator2.default)(function* (excludeProductId) { + var activeSubscriptions = yield this.getBoughtSubscriptions(); + return this.applyFiltersToSubscriptions(activeSubscriptions); + }); + + function getActiveSubscriptions(_x5) { + return _getActiveSubscriptions.apply(this, arguments); + } + + return getActiveSubscriptions; + }() + }, { + key: "applyFiltersToSubscriptions", + value: function applyFiltersToSubscriptions(activeSubscriptions) { + return activeSubscriptions.filter(function (subscription) { + return !subscription.expiresDate; + }); + } + }, { + key: "getBoughtSubscriptions", + value: function () { + var _getBoughtSubscriptions = (0, _asyncToGenerator2.default)(function* (productId) { + var transactions = []; + + if (_optionalPackageUtils.default.isAmazonLibraryAvailable()) { + var purchases = yield this.getAvailablePurchases(); + + if (productId) { + purchases = purchases.filter(function (purchase) { + return purchase.productId === productId; + }); + } + + if (purchases && purchases.length > 0) { + for (var i = 0; i < purchases.length; i++) { + var purchase = purchases[i]; + var amazonReceipt = undefined; + + try { + amazonReceipt = yield this.getAmazonReceipt(purchase.userId, purchase.receipt); + } catch (e) {} + + if (amazonReceipt) { + var transaction = new (_$$_REQUIRE(_dependencyMap[12]).IAPTecnaviaRestoreModel)(); + transaction.setProductId(amazonReceipt.productId); + transaction.setTransactionId(this.generateTransactionId({ + userId: purchase.userId, + receiptId: purchase.receipt, + purchaseDate: amazonReceipt.purchaseDate + })); + transaction.setOriginalTransactionId(this.generateTransactionId({ + userId: purchase.userId, + receiptId: purchase.receipt + })); + transaction.setOriginalPurchaseDate(amazonReceipt.purchaseDate); + transaction.setReceipt(purchase.receipt); + transaction.setExpiresDate(amazonReceipt.cancelDate || amazonReceipt.renewalDate); + transaction.setCancellationDate(amazonReceipt.cancelDate); + transactions.push(transaction); + } + } + } + } + + return transactions; + }); + + function getBoughtSubscriptions(_x6) { + return _getBoughtSubscriptions.apply(this, arguments); + } + + return getBoughtSubscriptions; + }() + }]); + }(_IAPrnBase2.default); +},2209,[3,270,6,7,11,13,14,882,2199,406,2206,438,2207]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299403,40 +299973,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2205,[3,16,2206,2462,2650,1881,2651,2653,2654,2655,2656,2657,2208,2216,179,2659]); +},2210,[3,16,2211,2466,2654,1870,2655,2657,2658,2659,2660,2661,2235,2237,179,2663]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _mainNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _LoginManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _mainNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _barsComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _barsComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -299448,11 +300014,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _classCallCheck2.default)(this, NewsmemoryComponent); _this = _callSuper(this, NewsmemoryComponent, [props]); - var screen; - if (!_this._needToForceIOSClassic()) { - screen = _GlobalConfig.default.getNewsmemoryScreenVersion(); - } + var screen = _GlobalConfig.default.getNewsmemoryScreenVersion(); _this._setNewsmemoryStartupParams(); @@ -299474,7 +300037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function UNSAFE_componentWillMount() { var _this2 = this; - this.onConfigForceUpdate = _$$_REQUIRE(_dependencyMap[15]).EventRegister.on(_events.default.CONFIG_FORCE_UPDATE, function (_ref) { + this.onConfigForceUpdate = _$$_REQUIRE(_dependencyMap[13]).EventRegister.on(_events.default.CONFIG_FORCE_UPDATE, function (_ref) { var message = _ref.message; _this2.showHint(message, function () { @@ -299482,34 +300045,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); } - }, { - key: "componentDidMount", - value: function () { - var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { - (0, _get2.default)((0, _getPrototypeOf2.default)(NewsmemoryComponent.prototype), "componentDidMount", this).call(this); - - if (this._needToForceIOSClassic()) { - var screen; - var classicPubs = yield _LoginManager.default.checkClassicFavorites(); - - if (classicPubs && classicPubs.length > 0) { - screen = _$$_REQUIRE(_dependencyMap[16]).NEWSMEMORY_SCREENS_NAME.NATIVE; - } else { - screen = _GlobalConfig.default.getNewsmemoryScreenVersion(); - } - - this.setState({ - screen: screen - }); - } - }); - - function componentDidMount() { - return _componentDidMount.apply(this, arguments); - } - - return componentDidMount; - }() }, { key: "didFocus", value: function didFocus() { @@ -299518,33 +300053,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e statusBarColor = _this$state.statusBarColor, navigationBarColor = _this$state.navigationBarColor; - _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.colorBars(statusBarColor, navigationBarColor); + _$$_REQUIRE(_dependencyMap[14]).PlatformUtils.colorBars(statusBarColor, navigationBarColor); - _$$_REQUIRE(_dependencyMap[15]).EventRegister.emit(_events.default.NEWSMEMORY_DID_FOCUS); + _$$_REQUIRE(_dependencyMap[13]).EventRegister.emit(_events.default.NEWSMEMORY_DID_FOCUS); } }, { key: "componentWillUnmount", value: function componentWillUnmount() { (0, _get2.default)((0, _getPrototypeOf2.default)(NewsmemoryComponent.prototype), "componentWillUnmount", this).call(this); - _$$_REQUIRE(_dependencyMap[15]).EventRegister.rm(this.onConfigForceUpdate); - } - }, { - key: "_needToForceIOSClassic", - value: function _needToForceIOSClassic() { - var _global$getMainPSetup = global.getMainPSetup(), - newsmemoryToUse = _global$getMainPSetup.newsmemoryToUse, - disableRnDemo = _global$getMainPSetup.disableRnDemo; - - var _global$getNewsmemory = global.getNewsmemoryConfig(), - useRnDemo = _global$getNewsmemory.useRnDemo; - - return _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isIOS() && _$$_REQUIRE(_dependencyMap[18]).PaperSetupManager.isGenericAppConfigured() && newsmemoryToUse === _$$_REQUIRE(_dependencyMap[16]).NEWSMEMORY_SCREENS.REACT && (disableRnDemo || useRnDemo === ""); + _$$_REQUIRE(_dependencyMap[13]).EventRegister.rm(this.onConfigForceUpdate); } }, { key: "_setNewsmemoryStartupParams", value: function _setNewsmemoryStartupParams() { - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[19]).getNavigationParams)(this.props), + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[15]).getNavigationParams)(this.props), _getNavigationParams$ = _getNavigationParams.isFromRss, isFromRss = _getNavigationParams$ === undefined ? false : _getNavigationParams$, issue = _getNavigationParams.issue, @@ -299560,45 +300083,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "render", value: function render() { - var params = (0, _$$_REQUIRE(_dependencyMap[19]).getNavigationParams)(this.props); var _this$state2 = this.state, screen = _this$state2.screen, statusBarColor = _this$state2.statusBarColor, navigationBarColor = _this$state2.navigationBarColor; - if (screen) { - var Component; - var edges = ["top", "left", "right", "bottom"]; - var Navigator = (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_mainNavigator.default, { - tab: params.tab || "", - startupNewsmemoryScreen: screen - }); - - if (_$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isIOS() && screen === _$$_REQUIRE(_dependencyMap[16]).NEWSMEMORY_SCREENS_NAME.NATIVE) { - edges = ["top"]; - Component = Navigator; - } else { - Component = (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[21]).TecnaviaSafeAreaView, { - edges: edges, - backgroundColor: statusBarColor, - children: Navigator - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[20]).jsxs)(_react.default.Fragment, { - children: [Component, (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_barsComponent.default, { - edges: edges, - statusBarColor: statusBarColor, - navigationBarColor: navigationBarColor - })] - }); + if (!screen) { + return null; } - return null; + var params = (0, _$$_REQUIRE(_dependencyMap[15]).getNavigationParams)(this.props); + var edges = ["top", "left", "right", "bottom"]; + return (0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_react.default.Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaSafeAreaView, { + edges: edges, + backgroundColor: statusBarColor, + children: (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_mainNavigator.default, { + tab: params.tab || "", + startupNewsmemoryScreen: screen + }) + }), (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_barsComponent.default, { + edges: edges, + statusBarColor: statusBarColor, + navigationBarColor: navigationBarColor + })] + }); } }]); - }(_$$_REQUIRE(_dependencyMap[22]).NavigatorBaseScreen); -},2206,[3,270,6,7,11,85,13,14,16,436,2207,2056,2198,2209,2143,564,864,438,1850,2211,179,2210,2461]); + }(_$$_REQUIRE(_dependencyMap[18]).NavigatorBaseScreen); +},2211,[3,6,7,11,85,13,14,16,2133,436,2187,2212,2236,564,438,2231,179,2214,2465]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299607,19 +300120,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _webScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var CommonHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _landingPageScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _epaperModeSelectionScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _landingPageScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _epaperModeSelectionScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _webScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var CommonHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } @@ -299750,17 +300263,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gesturesEnabled: false }; } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { - name: _$$_REQUIRE(_dependencyMap[9]).NEWSMEMORY_SCREENS_NAME.NATIVE, - options: { - headerShown: false, - gestureEnabled: false - }, - children: function children(navProps) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[16]).NewsmemoryNativeScreen, Object.assign({}, navProps, { - tab: tab - })); - } }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { name: "WebScreen", options: function options(navProps) { @@ -299783,7 +300285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { name: "GalleryScreen", - component: _$$_REQUIRE(_dependencyMap[17]).GalleryScreen, + component: _$$_REQUIRE(_dependencyMap[16]).GalleryScreen, options: { headerShown: false, gestureEnabled: false @@ -299792,7 +300294,4200 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2207,[3,16,2208,2216,1881,2223,2076,2224,2026,864,179,2238,1984,2239,2367,2390,2392,2393]); +},2212,[3,16,2066,1986,1870,2213,2234,2235,2237,867,179,2243,1942,2244,2372,2395,2397]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EpaperModeSelectionScreen = exports.default = function (_NavigationBaseScreen) { + function EpaperModeSelectionScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EpaperModeSelectionScreen); + _this = _callSuper(this, EpaperModeSelectionScreen, [props, {}]); + _this.onMessage = _this._onMessage.bind(_this); + _this.onRef = _this._onRef.bind(_this); + _this.onLoadEnd = _this._onLoadEnd.bind(_this); + _this.onClose = _this._onClose.bind(_this); + return _this; + } + + (0, _inherits2.default)(EpaperModeSelectionScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EpaperModeSelectionScreen, [{ + key: "getTag", + value: function getTag() { + return "ePaper Mode Selection"; + } + }, { + key: "_onMessage", + value: function () { + var _onMessage2 = (0, _asyncToGenerator2.default)(function* (message) { + if (message.type === "GET_RESOURCES") { + var sources = message.content; + var newSources = {}; + + for (var i = 0; i < sources.length; i++) { + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[13]).StringUtils.segmentUrl(sources[i]), + domain = _StringUtils$segmentU.domain; + + var icon = global.getEpaperLayoutConfig().getIconByAction(domain); + + if (icon) { + try { + var base64 = yield (0, _$$_REQUIRE(_dependencyMap[14]).getBase64)({ + type: icon.getLibrary(), + name: icon.getIcon(), + source: icon.getIcon(), + size: 50 + }); + newSources[sources[i]] = base64; + } catch (e) {} + } + } + + if (this.webview) { + this.webview._execJavaScript(_webUtils.default.replaceResourcesInPage(newSources)); + } + } + }); + + function _onMessage(_x) { + return _onMessage2.apply(this, arguments); + } + + return _onMessage; + }() + }, { + key: "_onRef", + value: function _onRef(ref) { + this.webview = ref; + } + }, { + key: "_onLoadEnd", + value: function _onLoadEnd() { + if (this.webview) { + this.webview._execJavaScript(_webUtils.default.getImagesInsidePage()); + } + } + }, { + key: "_onClose", + value: function _onClose() { + var navigation = this.props.navigation; + + if (navigation) { + navigation.goBack(); + } + } + }, { + key: "render", + value: function render() { + var _global$getNewsmemory = global.getNewsmemoryConfig(), + epaperStartMode = _global$getNewsmemory.epaperStartMode; + + var params = Object.assign({}, _Api.default.getDefaultParams(), _NewsmemoryAJAX.default.getDefaultGETParams(), { + action: "epaperMode", + mode: epaperStartMode + }); + + var uri = "" + _NewsmemoryAJAX.default.baseUrl(); + + return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[16]).TecnaviaSafeAreaView, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.black + }, + children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[17]).Css, { + classes: ["epaper-mode-selection"], + children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.white + }, + children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[18]).BaseOptionspage, { + forceFullscreen: true, + ref: this.onRef, + onMessage: this.onMessage, + onTabLoaded: this.onLoadEnd, + onClose: this.onClose, + url: uri, + closeType: _$$_REQUIRE(_dependencyMap[19]).closeTypes.none, + getParams: params + }) + }) + }) + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[20]).NavigationBaseScreen); +},2213,[3,270,6,7,11,13,14,16,18,869,407,406,1868,438,1899,179,2214,820,2215,881,2231]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.TecnaviaSafeAreaProvider = TecnaviaSafeAreaProvider; + exports.TecnaviaSafeAreaView = TecnaviaSafeAreaView; + exports.useTecnaviaSafeAreaFrame = useTecnaviaSafeAreaFrame; + exports.useTecnaviaSafeAreaInsets = useTecnaviaSafeAreaInsets; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["children", "backgroundColor"]; + + function useTecnaviaSafeAreaFrame() { + var contextAreaFrame = (0, _$$_REQUIRE(_dependencyMap[5]).useSafeAreaFrame)(); + + if (global.appNeedsSafeArea()) { + return contextAreaFrame; + } + + return _deviceUtils.default.getSafeArea(); + } + + function useTecnaviaSafeAreaInsets() { + var contextAreaInsets = (0, _$$_REQUIRE(_dependencyMap[5]).useSafeAreaInsets)(); + + if (global.appNeedsSafeArea()) { + return contextAreaInsets; + } + + return _deviceUtils.default.insets; + } + + function TecnaviaSafeAreaProvider(props) { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[5]).SafeAreaProvider, Object.assign({}, props)); + } + + function TecnaviaSafeAreaView(props) { + var children = props.children, + backgroundColor = props.backgroundColor, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + var commonProps = { + style: { + flex: 1, + backgroundColor: backgroundColor + } + }; + + if (global.appNeedsSafeArea()) { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[5]).SafeAreaView, Object.assign({}, commonProps, rest, { + children: children + })); + } + + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, Object.assign({}, commonProps, { + children: children + })); + } +},2214,[3,4,16,18,434,900,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.BaseOptionspage = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[11]); + + var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _LoginManager = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _IAPHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _optionspageUtils = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[17])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + + var _closeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + + var _settingDebug = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + + var _keyboardAvoidingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); + + var _excluded = ["type", "asyncKey"]; + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var BaseOptionspage = exports.BaseOptionspage = function (_Shortcut) { + function BaseOptionspage(props) { + var _this; + + (0, _classCallCheck2.default)(this, BaseOptionspage); + _this = _callSuper(this, BaseOptionspage, [props]); + var _this$props = _this.props, + tab = _this$props.tab, + url = _this$props.url, + getParams = _this$props.getParams, + closeType = _this$props.closeType, + forceFullscreen = _this$props.forceFullscreen; + + var otherParams = _this._appendOthersParams(getParams); + + var uri = tab ? _optionspageUtils.default.getTabUrl(tab, otherParams) : null; + + if (!uri) { + uri = url ? _optionspageUtils.default.getCustomUrl(url, otherParams) : null; + } + + _this.canGoBack = false; + _this.openTab = _this._openTab.bind(_this); + _this.handleLocals = _this._handleLocals.bind(_this); + _this.onLoading = _this._onLoading.bind(_this); + _this.onLoadEnd = _this._onLoadEnd.bind(_this); + _this.onMessage = _this._onMessage.bind(_this); + _this.onError = _this._onError.bind(_this); + _this.cancel = _this._cancel.bind(_this); + _this.reload = _this._reload.bind(_this); + _this.close = _this._close.bind(_this); + _this.retries = 0; + _this.state = { + uri: uri, + closeType: closeType || _optionspageUtils.closeTypes.close, + forceFullscreen: forceFullscreen, + hidden: false + }; + return _this; + } + + (0, _inherits2.default)(BaseOptionspage, _Shortcut); + return (0, _createClass2.default)(BaseOptionspage, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + (0, _get2.default)((0, _getPrototypeOf2.default)(BaseOptionspage.prototype), "componentDidMount", this).call(this); + this.openActionListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.OPEN_OPTIONSPAGE, this.openTab); + this.closeActionListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.CLOSE_OPTIONSPAGE, function () { + _this2.close(true); + }); + this.onStateChangeForeground = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, function () { + var uri = _this2.state.uri; + + if (_$$_REQUIRE(_dependencyMap[23]).NetworkUtils.isOnline() && _this2.webview && uri !== null) { + var currentTab = _optionspageUtils.default.getTabByURL(_this2.currentUrl); + + if (currentTab && currentTab !== _optionspageUtils.tabs.login && currentTab !== _optionspageUtils.tabs.access && currentTab !== _optionspageUtils.tabs.account) { + _this2.reload(); + } + } + }); + this.orientationListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function (_ref) { + var orientation = _ref.orientation; + + _this2.forceUpdate(function () { + var angle = 0; + + if (orientation === _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.LANDSCAPE) { + angle = 90; + } else if (orientation === _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.PORTRAIT_UP_SIDE_DOWN) { + angle = 180; + } + + _this2._execJavaScript("xcj_rotateWindow(" + angle + ");"); + }); + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + (0, _get2.default)((0, _getPrototypeOf2.default)(BaseOptionspage.prototype), "componentWillUnmount", this).call(this); + + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.openActionListener); + + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.closeActionListener); + + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.onStateChangeForeground); + + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.orientationListener); + } + }, { + key: "getTag", + value: function getTag() { + return "Options Page"; + } + }, { + key: "_handleShortcut", + value: function _handleShortcut() { + var _this$state = this.state, + uri = _this$state.uri, + hidden = _this$state.hidden; + + if (uri && !hidden) { + var ANY = _$$_REQUIRE(_dependencyMap[24]).KEY_GROUPS.ANY, + CLOSE = _$$_REQUIRE(_dependencyMap[24]).KEY_GROUPS.CLOSE; + + return [{ + callback: this.close, + keys: CLOSE, + stopPropagation: true + }, { + callback: this.noop, + keys: ANY, + stopPropagation: true + }]; + } + + return []; + } + }, { + key: "_openTab", + value: function _openTab(_ref2) { + var tab = _ref2.tab, + getParams = _ref2.getParams, + url = _ref2.url, + closeType = _ref2.closeType, + forceFullscreen = _ref2.forceFullscreen, + hidden = _ref2.hidden; + + var isOnline = _$$_REQUIRE(_dependencyMap[23]).NetworkUtils.isOnline(); + + if (isOnline) { + try { + var uri = url ? _optionspageUtils.default.getCustomUrl(url, getParams) : _optionspageUtils.default.getTabUrl(tab, this._appendOthersParams(getParams)); + this.setState({ + uri: uri, + closeType: closeType, + forceFullscreen: forceFullscreen, + hidden: hidden + }); + } catch (e) { + _$$_REQUIRE(_dependencyMap[25]).Toast.show(global.strings("system_error")); + } + } else { + _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert("", global.strings("err_offline")); + } + } + }, { + key: "goToRssNavigator", + value: function goToRssNavigator() { + _NavigationService.default.main.reset("RssNavigator"); + } + }, { + key: "goToNewsMemoryNavigator", + value: function goToNewsMemoryNavigator() { + _NavigationService.default.main.reset("NewsmemoryNavigator"); + } + }, { + key: "_goBack", + value: function _goBack() { + this.setState({ + uri: null + }); + } + }, { + key: "_appendOthersParams", + value: function _appendOthersParams() { + var getParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return getParams; + } + }, { + key: "_cancel", + value: function _cancel() { + this.close(true); + } + }, { + key: "_reload", + value: function _reload() { + var _this$webview; + + (_this$webview = this.webview) == null ? undefined : _this$webview.reload(); + } + }, { + key: "_close", + value: function _close(force) { + this.setState({ + uri: null + }); + } + }, { + key: "postMessage", + value: function postMessage(js) { + var _this$webview2; + + (_this$webview2 = this.webview) == null ? undefined : _this$webview2.injectJavaScript("try{ window.ReactNativeWebView.postMessage(JSON.stringify(" + js + ")); }catch(e){console.log(e.message)}"); + } + }, { + key: "_onMessage", + value: function () { + var _onMessage2 = (0, _asyncToGenerator2.default)(function* (data) { + var onMessage = this.props.onMessage; + var type = data.type, + asyncKey = data.asyncKey, + rest = (0, _objectWithoutProperties2.default)(data, _excluded); + + if (type) { + if (type.includes("TAB_TITLE") && rest.title) { + var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); + + if (currentTab) { + (0, _$$_REQUIRE(_dependencyMap[27]).sendNewsmemoryOptionspage)(currentTab, rest.title); + } + } else { + var asyncMethod = "resolve"; + var asyncResult = ""; + + if (type.includes(_optionspageUtils.locals.FACEBOOK_LOGIN)) { + try { + var profile = yield (0, _$$_REQUIRE(_dependencyMap[28]).facebookLogin)(rest); + asyncResult = JSON.stringify(profile); + } catch (e) { + asyncMethod = "reject"; + asyncResult = e.message; + } + } + + if (asyncKey) { + this._execJavaScript("awaitPostMessage('" + asyncKey + "', '" + asyncMethod + "', '" + asyncResult + "');"); + } + } + } + + if (typeof onMessage === "function") { + onMessage(data); + } + }); + + function _onMessage(_x) { + return _onMessage2.apply(this, arguments); + } + + return _onMessage; + }() + }, { + key: "_onError", + value: function _onError(nativeEvent) { + if (this.retries === 0) { + this.retries++; + this.reload(); + } else { + this.retries = 0; + var buttons = []; + buttons.push({ + text: global.strings("btn_cancel"), + onPress: this.cancel + }, { + text: global.strings("retry"), + onPress: this.reload + }); + + _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert("", global.strings("system_error"), buttons, { + cancelable: false + }); + } + } + }, { + key: "_handleLocals", + value: function () { + var _handleLocals2 = (0, _asyncToGenerator2.default)(function* (_ref3) { + var _this3 = this; + + var domain = _ref3.domain, + getParams = _ref3.getParams; + var newsmemoryConfig = global.getNewsmemoryConfig(); + + if (domain.includes(_optionspageUtils.locals.OPEN_RSS)) { + this.goToRssNavigator(); + } else if (domain.includes(_optionspageUtils.locals.OPEN_TAB_HOME)) { + this._resetToHome(); + } else if (domain.includes(_optionspageUtils.locals.CLOSE) || domain.includes(_optionspageUtils.locals.CLOSE_WINDOW)) { + this._close(true); + } else if (domain.includes(_optionspageUtils.locals.GO_BACK)) { + this._goBack(); + } else if (domain.includes(_optionspageUtils.locals.OPEN_BROWSER) || domain.includes(_optionspageUtils.locals.OPEN_BROWSER_ALT)) { + var url = getParams.url, + callback = getParams.callback, + close = getParams.close; + + if (url) { + var extraNavigationParams = {}; + + if (url.indexOf("archiveSearch=1") !== -1) { + extraNavigationParams.screenTitle = global.strings("btn_archive"); + extraNavigationParams.isArchive = true; + } + + _NavigationService.default.main.navigate("WebScreen", Object.assign({ + url: url, + onClose: function onClose() { + _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.colorBars(); + } + }, extraNavigationParams)); + } + + if (callback) { + this._execJavaScript(callback + "();"); + } + + if (close && close === "1") { + this._close(true); + } + } else if (domain.includes(_optionspageUtils.locals.ALERT)) { + var title = getParams.title, + message = getParams.message, + okLabel = getParams.okLabel; + var buttons = []; + buttons.push({ + text: okLabel || global.strings("btn_ok") + }); + + _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert(title, message, buttons, { + cancelable: false + }); + } else if (domain.includes(_optionspageUtils.locals.CONFIRM)) { + var _title = getParams.title, + _message = getParams.message, + _okLabel = getParams.okLabel, + cancelLabel = getParams.cancelLabel, + _callback = getParams.callback; + var _buttons = []; + + _buttons.push({ + text: cancelLabel || global.strings("btn_cancel"), + onPress: function onPress() { + _this3._confirmResult(_callback, false); + } + }, { + text: _okLabel || global.strings("btn_ok"), + onPress: function onPress() { + _this3._confirmResult(_callback, true); + } + }); + + _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert(_title, _message, _buttons, { + cancelable: false + }); + } else if (domain.includes(_optionspageUtils.locals.GET_USED_SPACE)) { + yield global.analyzeUsedSpace(); + + var _global$getUsedSpace = global.getUsedSpace(), + usedSpace = _global$getUsedSpace.usedSpace, + numberOfPapersDirs = _global$getUsedSpace.numberOfPapersDirs, + numberOfIssuesDirs = _global$getUsedSpace.numberOfIssuesDirs, + numberOfPagesDirs = _global$getUsedSpace.numberOfPagesDirs; + + this._execJavaScript("xcj_getIssuesUsedSpaceResult(" + usedSpace + "," + numberOfPapersDirs + "," + numberOfIssuesDirs + "," + numberOfPagesDirs + ");"); + } else if (domain.includes(_optionspageUtils.locals.GET_CONFIG_DUMP)) { + this._execJavaScript("xcj_getConfigDump('" + JSON.stringify(newsmemoryConfig) + "');"); + } else if (domain.includes(_optionspageUtils.locals.GET_KEY)) { + var js = yield (0, _$$_REQUIRE(_dependencyMap[29]).getKey)(getParams); + + this._execJavaScript(js); + } else if (domain.includes(_optionspageUtils.locals.SET_KEY)) { + var _js = (0, _$$_REQUIRE(_dependencyMap[29]).setKey)(getParams); + + this._execJavaScript(_js); + } else if (domain.includes(_optionspageUtils.locals.REMOVE_KEY)) { + var key = getParams.key; + newsmemoryConfig.removeValue(key); + } else if (domain.includes(_optionspageUtils.locals.SET_PREF_EDI)) { + var _key = getParams.key, + value = getParams.value; + newsmemoryConfig.setValue(_key, value); + } else if (domain.includes(_optionspageUtils.locals.RETURN_FROM_LOGIN)) { + (0, _$$_REQUIRE(_dependencyMap[27]).sendNewsmemoryLoginEvent)("start login"); + + if (this.baseRef) { + this.baseRef.showLoading(); + } + + var pSetup = getParams.pSetup, + machine = getParams.machine, + username = getParams.username, + password = getParams.password, + challenge = getParams.challenge, + remember = getParams.remember, + TAUID = getParams.TAUID, + token = getParams.token, + TOKEN = getParams.TOKEN, + extid = getParams.extid; + var tokenToUse = token; + + if (TOKEN) { + tokenToUse = TOKEN; + } + + var result = yield _LoginManager.default.login({ + pSetup: pSetup, + machine: machine, + username: username, + password: password, + challenge: challenge, + remember: remember, + TAUID: TAUID, + token: tokenToUse, + extid: extid + }); + + if (result != null && result.data) { + this._execJavaScript("xcj_loginResults(" + result.TAUID + ",'" + JSON.stringify(result.data) + "');"); + } else { + var params = this.props.getParams; + var jsCode; + + var home = _optionspageUtils.default.getTabUrl(_optionspageUtils.tabs.home, this._appendOthersParams(params)); + + if (username === global.machineId && this.currentUrl && _optionspageUtils.default.isSamePage(this.currentUrl, home)) { + var data = { + protError: 0, + pSetup: pSetup + }; + jsCode = "xcj_loginResults(" + TAUID + ",'" + JSON.stringify(data) + "');"; + } else { + jsCode = "xcj_loginResults(-1,'" + JSON.stringify({ + protError: _LoginManager.PROT_ERROR.NOT_LOGGEDIN + }) + "');"; + } + + this._execJavaScript(jsCode); + } + + if (this.baseRef) { + this.baseRef.hideLoading(); + } + } else if (domain.includes(_optionspageUtils.locals.LOGOUT)) { + yield _LoginManager.default.logout(); + } else if (domain.includes(_optionspageUtils.locals.STORE_USER_INFO)) { + var paperName = getParams.paperName, + _username = getParams.username, + _password = getParams.password, + extra = getParams.extra; + + if (_username) { + newsmemoryConfig.setValue(paperName + "_username", _username); + } + + if (_password) { + newsmemoryConfig.setValue(paperName + "_password", _password); + } + + if (extra) { + newsmemoryConfig.setValue(paperName + "_extra", extra); + } + + this._execJavaScript("xcj_storeUserInfo();"); + } else if (domain.includes(_optionspageUtils.locals.GET_USER_INFO)) { + var _paperName = getParams.paperName; + + var _username2 = yield newsmemoryConfig.getValue(_paperName + "_username"); + + var _password2 = yield newsmemoryConfig.getValue(_paperName + "_password"); + + var _extra = yield newsmemoryConfig.getValue(_paperName + "_extra"); + + if (!_username2) { + var _yield$LoginManager$c = yield _LoginManager.default.checkClassicLoginStatus(_paperName); + + _username2 = _yield$LoginManager$c.username; + _password2 = _yield$LoginManager$c.password; + _extra = _yield$LoginManager$c.extra; + + if (_username2) { + newsmemoryConfig.setValue(_paperName + "_username", _username2); + } + + if (_password2) { + newsmemoryConfig.setValue(_paperName + "_password", _password2); + } + + if (_extra) { + newsmemoryConfig.setValue(_paperName + "_extra", _extra); + } + } + + var usernameValue = _username2 || ""; + var passwordValue = _password2 || ""; + var extraValue = _extra || ""; + + this._execJavaScript("xcj_getUserInfo('" + usernameValue + "', '" + passwordValue + "', '" + extraValue + "');"); + } else if (domain.includes(_optionspageUtils.locals.SHOW_DEBUG_INFO)) { + if (this.debugRef) { + this.debugRef._expand(); + } + } else if (domain.includes(_optionspageUtils.locals.DISPLAY_LOADER)) { + var show = getParams.show; + + if (this.baseRef) { + if (show === "1") { + this.baseRef.showLoading(); + } else { + this.baseRef.hideLoading(); + } + } + } else {} + }); + + function _handleLocals(_x2) { + return _handleLocals2.apply(this, arguments); + } + + return _handleLocals; + }() + }, { + key: "_resetToHome", + value: function _resetToHome() { + this.setState({ + uri: null + }, this._goBack); + } + }, { + key: "_retrieveTabTitle", + value: function _retrieveTabTitle(currentTab) { + if (currentTab) { + this.postMessage("{ type: 'TAB_TITLE', title: $('#myNavbar li.active a').html()}"); + } + } + }, { + key: "_onLoading", + value: function _onLoading(segments) { + var domain = segments.domain; + var closeType = this.state.closeType; + + var isTecnaviaDomain = _$$_REQUIRE(_dependencyMap[23]).StringUtils.isTecnaviaDomain(domain); + + if (!isTecnaviaDomain) { + this.setState({ + closeType: _optionspageUtils.closeTypes.back + }); + } else if (closeType === _optionspageUtils.closeTypes.back) { + this.setState({ + closeType: _optionspageUtils.closeTypes.close + }); + } + } + }, { + key: "_onLoadEnd", + value: function _onLoadEnd(nativeEvent) { + if (!nativeEvent) { + return; + } + + if (typeof nativeEvent.code === "undefined") { + this.retries = 0; + } + + var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); + + this._retrieveTabTitle(currentTab); + + var onTabLoaded = this.props.onTabLoaded; + + if (typeof onTabLoaded === "function") { + onTabLoaded(currentTab); + } + } + }, { + key: "_confirmResult", + value: function _confirmResult(callback, result) { + if (callback) { + var boolString = result ? "true" : "false"; + + this._execJavaScript(callback + "(" + boolString + ");"); + } + } + }, { + key: "_execJavaScript", + value: function _execJavaScript(jsToExec) { + if (this.webview && jsToExec) { + this.webview.injectJavaScript("try { " + jsToExec + " } catch (e) { };"); + } + } + }, { + key: "_onClose", + value: function _onClose() { + var onClose = this.props.onClose; + + if (typeof onClose === "function") { + onClose(); + } + + if (this.prevNewsmemoryConfig && !_$$_REQUIRE(_dependencyMap[23]).JSUtils.equals(this.prevNewsmemoryConfig, global.getNewsmemoryConfig())) { + _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.NEWSMEMORY_CONFIG_CHANGE, { + previousConfig: this.prevNewsmemoryConfig + }); + } + } + }, { + key: "_onOpen", + value: function _onOpen() { + var onOpen = this.props.onOpen; + var hidden = this.state.hidden; + + if (!hidden && typeof onOpen === "function") { + onOpen(); + } + + this.prevNewsmemoryConfig = Object.assign({}, global.getNewsmemoryConfig()); + } + }, { + key: "_getCustomStyle", + value: function _getCustomStyle() { + var style = this.props.style; + return style; + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var backgroundColor = this.props.backgroundColor; + var _this$state2 = this.state, + uri = _this$state2.uri, + closeType = _this$state2.closeType, + forceFullscreen = _this$state2.forceFullscreen, + hidden = _this$state2.hidden; + + _IAPHelper.default.resetServerCallback(); + + if (!uri) { + this._onClose(); + + return null; + } + + this._onOpen(); + + var style = []; + + var customStyle = this._getCustomStyle(); + + var _global$getActivePSet = global.getActivePSetup(), + optionspageConfig = _global$getActivePSet.optionspageConfig, + overrideNewsMemoryUserAgent = _global$getActivePSet.overrideNewsMemoryUserAgent; + + if (hidden) { + style = _$$_REQUIRE(_dependencyMap[30]).styles.hidden; + } else if (!forceFullscreen && optionspageConfig.isModal()) { + style = [_$$_REQUIRE(_dependencyMap[30]).styles.modal, _$$_REQUIRE(_dependencyMap[30]).styles.main, optionspageConfig.getCoordinates(), customStyle]; + } else { + style = [_$$_REQUIRE(_dependencyMap[30]).styles.fullscreen, _$$_REQUIRE(_dependencyMap[30]).styles.main, customStyle]; + } + + var closeButton; + + if (!hidden && closeType !== _optionspageUtils.closeTypes.none) { + if (closeType === _optionspageUtils.closeTypes.back) { + closeButton = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_closeComponent.default, { + source: _$$_REQUIRE(_dependencyMap[32]), + parentStyle: _$$_REQUIRE(_dependencyMap[30]).styles.closeIcon, + cssProps: { + classes: ["newsmemory-icon", "newsmemory-close-icon", "optionspage-icon", "optionspage-back-icon"] + }, + onPress: function onPress() { + _this4._goBack(); + } + }); + } else { + closeButton = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_closeComponent.default, { + parentStyle: _$$_REQUIRE(_dependencyMap[30]).styles.closeIcon, + cssProps: { + classes: ["newsmemory-icon", "newsmemory-close-icon", "optionspage-icon", "optionspage-close-icon"] + }, + onPress: function onPress() { + _this4._close(); + } + }); + } + } + + var userAgent = overrideNewsMemoryUserAgent || _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.getUserAgent(); + + var optionspage = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[33]).Css, { + classes: ["optionspage"], + children: (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_reactNative.View, { + style: style, + children: (0, _$$_REQUIRE(_dependencyMap[31]).jsxs)(_keyboardAvoidingComponent.default, { + children: [(0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[34]).BaseWebView, { + ref: function ref(_ref4) { + _this4.baseRef = _ref4; + }, + innerRef: function innerRef(ref) { + _this4.webview = ref; + }, + source: { + uri: uri + }, + browser: true, + progressColor: _newsmemoryUtils.default.getSpinnerColor(), + onLocal: this.handleLocals, + onLoading: this.onLoading, + onLoadEnd: this.onLoadEnd, + onMessage: this.onMessage, + automaticallyAdjustContentInsets: true, + scalesPageToFit: false, + onNavigationStateChange: function onNavigationStateChange(navState) { + _this4.canGoBack = navState.canGoBack; + _this4.currentUrl = navState.url; + }, + enableKeyboardResize: _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.isAndroid(), + startInLoadingState: hidden ? _$$_REQUIRE(_dependencyMap[35]).LoadingStatePosition.none : _$$_REQUIRE(_dependencyMap[35]).LoadingStatePosition.center, + userAgent: userAgent, + onError: this.onError + }), closeButton, (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_settingDebug.default, { + ref: function ref(_ref5) { + _this4.debugRef = _ref5; + }, + numberOfTapToDebug: 1, + hidden: true + })] + }) + }) + }); + var backgroundStyle = [_$$_REQUIRE(_dependencyMap[30]).styles.background]; + + if (backgroundColor) { + backgroundStyle.push({ + backgroundColor: backgroundColor + }); + } + + return optionspageConfig.isModal() && !forceFullscreen ? (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[33]).Css, { + classes: ["optionspage-modal-container"], + children: (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_reactNative.View, { + style: backgroundStyle, + children: optionspage + }) + }) : optionspage; + } + }]); + }(_$$_REQUIRE(_dependencyMap[36]).Shortcut); + + BaseOptionspage.propTypes = Object.assign({ + url: _propTypes.default.string, + tab: _propTypes.default.string, + getParams: _propTypes.default.object, + onOpen: _propTypes.default.func, + onClose: _propTypes.default.func, + closeType: _propTypes.default.string, + onMessage: _propTypes.default.func, + onTabLoaded: _propTypes.default.func, + backgroundColor: _propTypes.default.string, + forceFullscreen: _propTypes.default.bool, + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]) + }, _$$_REQUIRE(_dependencyMap[36]).Shortcut.propTypes); + BaseOptionspage.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[36]).Shortcut.defaultProps, { + shortcutEnabled: true, + forceFullscreen: false + }); +},2215,[3,4,270,6,7,11,85,13,14,582,16,18,1868,2040,436,2194,630,881,1870,2216,2219,857,564,438,1944,1934,815,2042,2048,2229,2230,179,1733,820,2039,2023,1942]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _simpleButtonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var CloseNewsmemory = exports.default = function (_React$Component) { + function CloseNewsmemory() { + (0, _classCallCheck2.default)(this, CloseNewsmemory); + return _callSuper(this, CloseNewsmemory, arguments); + } + + (0, _inherits2.default)(CloseNewsmemory, _React$Component); + return (0, _createClass2.default)(CloseNewsmemory, [{ + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_simpleButtonComponent.default, Object.assign({}, this.props)); + } + }]); + }(_react.default.Component); + + CloseNewsmemory.propTypes = Object.assign({ + source: _propTypes.default.any, + library: _propTypes.default.string + }, _simpleButtonComponent.default.propTypes); + CloseNewsmemory.defaultProps = { + source: _$$_REQUIRE(_dependencyMap[10]), + library: undefined + }; +},2216,[3,6,7,11,13,14,16,582,2217,179,1763]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _simpleButtonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var SimpleButton = exports.default = function (_React$Component) { + function SimpleButton(props) { + var _this; + + (0, _classCallCheck2.default)(this, SimpleButton); + _this = _callSuper(this, SimpleButton, [props]); + var visible = props.visible; + _this.state = { + visible: visible + }; + _this.onPress = _this._onPress.bind(_this); + return _this; + } + + (0, _inherits2.default)(SimpleButton, _React$Component); + return (0, _createClass2.default)(SimpleButton, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var toVisibleEvent = this.props.toVisibleEvent; + + if (toVisibleEvent) { + this.onToVisibleListener = _$$_REQUIRE(_dependencyMap[11]).EventRegister.on(toVisibleEvent, function (_ref) { + var visible = _ref.visible; + + _this2.setState({ + visible: visible + }); + }); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.rm(this.onToVisibleListener); + } + }, { + key: "show", + value: function show() { + this._updateVisibility(true); + } + }, { + key: "hide", + value: function hide() { + this._updateVisibility(false); + } + }, { + key: "_updateVisibility", + value: function _updateVisibility(newVisibleValue) { + var visible = this.state.visible; + + if (visible !== newVisibleValue) { + this.setState({ + visible: newVisibleValue + }); + } + } + }, { + key: "_onPress", + value: function _onPress() { + var onPress = this.props.onPress; + + if (typeof onPress === "function") { + onPress(); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + parentStyle = _this$props.parentStyle, + ifHiddenRemove = _this$props.ifHiddenRemove, + buttonStyle = _this$props.buttonStyle, + source = _this$props.source, + tintColor = _this$props.tintColor, + library = _this$props.library, + cssProps = _this$props.cssProps, + accessibilityLabel = _this$props.accessibilityLabel; + var visible = this.state.visible; + + if (!visible) { + if (ifHiddenRemove) { + return null; + } + + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { + style: [_simpleButtonComponent.default.parent, parentStyle] + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-header-icon-container"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[14]).TouchableOpacity, { + containerStyle: [_simpleButtonComponent.default.parent, parentStyle], + onPress: this.onPress, + accessibilityLabel: accessibilityLabel, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, Object.assign({}, cssProps, { + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_imageIconChooserComponent.default, { + type: library, + name: source, + iconStyle: [_simpleButtonComponent.default.libraryButton, { + color: tintColor + }], + imageStyle: [_simpleButtonComponent.default.button, { + tintColor: tintColor + }], + style: [buttonStyle], + resizeMode: "contain", + source: source, + tintColor: tintColor + }) + })) + }) + }); + } + }]); + }(_react.default.Component); + + SimpleButton.propTypes = { + parentStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), + buttonStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), + library: _propTypes.default.string, + source: _propTypes.default.any.isRequired, + onPress: _propTypes.default.func.isRequired, + toVisibleEvent: _propTypes.default.string, + visible: _propTypes.default.bool, + ifHiddenRemove: _propTypes.default.bool, + tintColor: _propTypes.default.string, + cssProps: _propTypes.default.object, + accessibilityLabel: _propTypes.default.string + }; + SimpleButton.defaultProps = { + parentStyle: {}, + buttonStyle: {}, + visible: true, + library: undefined, + cssProps: {} + }; +},2217,[3,6,7,11,13,14,16,582,18,2218,1899,564,179,820,1]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.StyleSheet.create({ + parent: { + height: _$$_REQUIRE(_dependencyMap[1]).HEADER_PARENT_BUTTON_SIZE, + width: _$$_REQUIRE(_dependencyMap[1]).HEADER_PARENT_BUTTON_SIZE, + justifyContent: "center", + alignItems: "center" + }, + button: { + height: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE, + width: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE + }, + libraryButton: { + fontSize: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE + }, + badge: { + position: "absolute", + top: 2, + right: 2, + borderWidth: 1, + borderRadius: 10, + width: 20, + height: 20, + backgroundColor: "white", + alignSelf: "center" + } + }); +},2218,[18,828]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _LoginManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + + var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + + var _settingHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[20])); + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var PRESS_DELAY = 150; + + var SettingDebug = exports.default = function (_React$Component) { + function SettingDebug(props) { + var _loginStatus$universa; + + var _this; + + (0, _classCallCheck2.default)(this, SettingDebug); + _this = _callSuper(this, SettingDebug, [props]); + + _this._collapse = function () { + return _this.modalRef.current && _this.modalRef.current.collapse(); + }; + + _this._expand = function () { + return _this.modalRef.current && _this.modalRef.current.expand(); + }; + + _this.modalRef = _react.default.createRef(); + _this.tapAction = _this._tapAction.bind(_this); + _this.crashAction = _this._crashAction.bind(_this); + _this.feedbackAction = _this._feedbackAction.bind(_this); + _this.copyAction = _this._copyAction.bind(_this); + _this.onShare = _this._onShare.bind(_this); + _this.onSending = _this._onSending.bind(_this); + _this.setForceLayoutSubStyle = _this._setForceLayoutSubStyle.bind(_this); + _this.setForceNotificationEmail = _this._setForceNotificationEmail.bind(_this); + _this.debugOverlayAction = _this._debugOverlayAction.bind(_this); + _this.editToken = _this._editToken.bind(_this); + _this.pressCounter = 0; + _this.timeoutId = undefined; + + var _global$getActivePSet = global.getActivePSetup(), + loginStatus = _global$getActivePSet.loginStatus; + + var _global$getUserSettin = global.getUserSettings(), + subLayout = _global$getUserSettin.forceLayoutSubStyle, + notificationEmail = _global$getUserSettin.notificationEmail; + + _this.state = { + subLayout: subLayout, + notificationEmail: notificationEmail, + token: (_loginStatus$universa = loginStatus == null ? undefined : loginStatus.universalLinkToken) != null ? _loginStatus$universa : "" + }; + return _this; + } + + (0, _inherits2.default)(SettingDebug, _React$Component); + return (0, _createClass2.default)(SettingDebug, [{ + key: "UNSAFE_componentWillMount", + value: function () { + var _UNSAFE_componentWillMount = (0, _asyncToGenerator2.default)(function* () { + yield global.analyzeUsedSpace(); + }); + + function UNSAFE_componentWillMount() { + return _UNSAFE_componentWillMount.apply(this, arguments); + } + + return UNSAFE_componentWillMount; + }() + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.timeoutId) { + clearTimeout(this.timeoutId); + } + } + }, { + key: "_tapAction", + value: function _tapAction() { + var _this2 = this; + + this.pressCounter += 1; + var numberOfTapToDebug = this.props.numberOfTapToDebug; + + if (!this.timeoutId) { + this.timeoutId = setTimeout(function () { + if (_this2.pressCounter >= numberOfTapToDebug) { + _this2._expand(); + } + + _this2.pressCounter = 0; + delete _this2.timeoutId; + }, PRESS_DELAY * numberOfTapToDebug); + } + } + }, { + key: "_crashAction", + value: function _crashAction() { + var crashlytics = _optionalPackageUtils.default.getCrashlytics(); + + if (!_$$_REQUIRE(_dependencyMap[21]).JSUtils.isNull(crashlytics)) { + crashlytics().crash(); + } + } + }, { + key: "_copyAction", + value: function _copyAction() { + _$$_REQUIRE(_dependencyMap[22]).LoadingOverlay.show({ + id: "copy" + }); + + _tecnaviaFileUtils.default.zipAndCopyNewspaperBaseDirectory().then(function () { + _$$_REQUIRE(_dependencyMap[22]).LoadingOverlay.hide({ + id: "copy" + }); + }); + } + }, { + key: "_feedbackAction", + value: function _feedbackAction() { + this._collapse(); + + if (_$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isOnline()) { + var feedback = new (_$$_REQUIRE(_dependencyMap[23]).Feedback)(); + + _$$_REQUIRE(_dependencyMap[22]).LoadingOverlay.show({ + id: "feedback" + }); + + feedback.force().then(function () { + _$$_REQUIRE(_dependencyMap[22]).LoadingOverlay.hide({ + id: "feedback" + }); + }); + } else { + _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("err_internet_connection"), [{ + text: global.strings("btn_ok") + }]); + } + } + }, { + key: "_onSending", + value: function () { + var _onSending2 = (0, _asyncToGenerator2.default)(function* () { + this._collapse(); + }); + + function _onSending() { + return _onSending2.apply(this, arguments); + } + + return _onSending; + }() + }, { + key: "_onShare", + value: function () { + var _onShare2 = (0, _asyncToGenerator2.default)(function* () { + var message = _GlobalConfig.default.getDeviceInfoText(); + + message += _GlobalConfig.default.getUsedSpaceText(); + var subject = global.strings("feedback_email_subject", { + who: global.appName + }); + var attachments; + + var _global$getActivePSet2 = global.getActivePSetup(), + enableSessionCollection = _global$getActivePSet2.enableSessionCollection; + + if (_LiveConfig.default.isEpaperSide() && enableSessionCollection) { + var path = yield _$$_REQUIRE(_dependencyMap[25]).NewspaperSessionManager.storeActiveSessionToFile(); + + if (path) { + attachments = [{ + path: path, + type: "json", + name: "session_" + global.machineId + ".json" + }]; + } + } + + _reactNativeMail.default.mail({ + subject: subject, + recipients: [global.strings("support_email")], + body: message, + isHTML: false, + attachments: attachments + }, function () {}); + }); + + function _onShare() { + return _onShare2.apply(this, arguments); + } + + return _onShare; + }() + }, { + key: "_setForceLayoutSubStyle", + value: function _setForceLayoutSubStyle() { + var subLayout = this.state.subLayout; + var onSublayoutChange = this.props.onSublayoutChange; + global.getUserSettings().setForceLayoutSubStyle(subLayout); + + if (typeof onSublayoutChange === "function") { + onSublayoutChange(); + } + } + }, { + key: "_setForceNotificationEmail", + value: function _setForceNotificationEmail() { + var notificationEmail = this.state.notificationEmail; + + if (notificationEmail.length > 0 && _$$_REQUIRE(_dependencyMap[21]).StringUtils.validateNotificationEmail(notificationEmail)) { + this._collapse(); + + global.getUserSettings().setNotificationEmail(notificationEmail); + + _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("msg_valid_notification_email"), [{ + text: global.strings("btn_ok") + }, { + text: global.strings("restart"), + onPress: function onPress() { + _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); + } + }], { + cancelable: false + }); + } else { + var _global$getUserSettin2 = global.getUserSettings(), + currentNotificationEmail = _global$getUserSettin2.notificationEmail; + + if (currentNotificationEmail && _$$_REQUIRE(_dependencyMap[21]).StringUtils.validateNotificationEmail(currentNotificationEmail)) { + this._collapse(); + + _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("msg_reset_notification_email"), [{ + text: global.strings("btn_ok") + }, { + text: global.strings("restart"), + onPress: function onPress() { + var paperSetupManager = global.getPaperSetupManager(); + + if (paperSetupManager) { + paperSetupManager.resetActivePSetup(); + } + + _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); + } + }], { + cancelable: false + }); + } + + global.getUserSettings().resetNotificationEmail(); + } + } + }, { + key: "_debugOverlayAction", + value: function _debugOverlayAction() { + var userSettings = global.getUserSettings(); + userSettings.setEnableDebugOverlay(!userSettings.enableDebugOverlay); + + this._collapse(); + + _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); + } + }, { + key: "_editToken", + value: function _editToken(_ref) { + var nativeEvent = _ref.nativeEvent; + + var _global$getActivePSet3 = global.getActivePSetup(), + loginStatus = _global$getActivePSet3.loginStatus; + + if (!loginStatus) { + return; + } + + var universalLinkToken = loginStatus.universalLinkToken; + var newToken = nativeEvent.text; + + if (universalLinkToken === newToken) { + return; + } + + this._collapse(); + + _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert(global.strings("title_edit_token_confirm"), global.strings("msg_edit_token_confirm", { + token: newToken + }), [{ + text: global.strings("btn_cancel") + }, { + text: global.strings("btn_ok"), + onPress: function onPress() { + loginStatus.updateToken(""); + + _LoginManager.default.clearClassicLoginStatus(); + + loginStatus.updateUniversalLinkToken(newToken); + } + }, { + text: global.strings("restart"), + onPress: function () { + var _onPress = (0, _asyncToGenerator2.default)(function* () { + yield loginStatus.updateToken(""); + yield _LoginManager.default.clearClassicLoginStatus(); + global.updateNewsmemoryStartupParams({ + token: newToken + }); + + _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); + }); + + function onPress() { + return _onPress.apply(this, arguments); + } + + return onPress; + }() + }], { + cancelable: false + }); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props = this.props, + label = _this$props.label, + value = _this$props.value, + hidden = _this$props.hidden; + var _this$state = this.state, + subLayout = _this$state.subLayout, + notificationEmail = _this$state.notificationEmail, + token = _this$state.token; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultBackgroundColor(); + + var foregroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultForegroundColor(); + + var placeholdeTextColor = _$$_REQUIRE(_dependencyMap[21]).colors.grey400; + + var borderColor = _$$_REQUIRE(_dependencyMap[26]).Css.isDarkTheme() ? foregroundColor : _$$_REQUIRE(_dependencyMap[21]).colors.grey; + + var _global$getMainPSetup = global.getMainPSetup(), + feedbackEnabled = _global$getMainPSetup.feedbackEnabled; + + var _global$getUserSettin3 = global.getUserSettings(), + enableDebugOverlay = _global$getUserSettin3.enableDebugOverlay; + + var ModalComponent = (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_modal.default, { + ref: this.modalRef, + backgroundColor: backgroundColor, + foregroundColor: foregroundColor, + needsKeyboardOffsetCheck: true, + children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[28]).styles.headerParent, + children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.View, { + style: { + flex: 1 + }, + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_settingHeader.default, { + label: global.strings("debug"), + onPress: this._collapse + }) + }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_settingHeader.SettingClose, { + onPress: this._collapse + })] + }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + classes: ["settings-header-separator"], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[28]).styles.separator + }) + }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[29]).TecnaviaScrollView, { + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { + style: { + padding: 10 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[28]).styles.hidden, + children: _GlobalConfig.default.getDeviceInfoText() + }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { + style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { + borderColor: borderColor, + color: foregroundColor + }], + placeholder: "NOTIFICATION EMAIL", + placeholderTextColor: placeholdeTextColor, + onChangeText: function onChangeText(newText) { + _this3.setState({ + notificationEmail: newText + }); + }, + onEndEditing: this.setForceNotificationEmail, + value: notificationEmail, + autoCapitalize: "none" + }), global.isDebug || _$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isTecnaviaIP() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { + style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { + borderColor: borderColor, + color: foregroundColor + }], + placeholder: "FORCE LAYOUT SUB STYLE", + placeholderTextColor: placeholdeTextColor, + onChangeText: function onChangeText(newText) { + return _this3.setState({ + subLayout: newText + }); + }, + onSubmitEditing: this.setForceLayoutSubStyle, + value: subLayout + }) : null, global.isDebug || _$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isTecnaviaIP() || global.isTaAddon() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { + style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { + borderColor: borderColor, + color: foregroundColor + }], + placeholder: global.strings("edit_token").toUpperCase(), + placeholderTextColor: placeholdeTextColor, + onChangeText: function onChangeText(newText) { + return _this3.setState({ + token: newText + }); + }, + onEndEditing: this.editToken, + value: token, + autoCapitalize: "none" + }) : null, _$$_REQUIRE(_dependencyMap[21]).Logger.enableLog ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[30]).LogButton, { + style: _$$_REQUIRE(_dependencyMap[28]).styles.log, + onSending: this.onSending + }) : null, (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.onShare, + style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { + borderColor: borderColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: { + color: foregroundColor + }, + children: global.strings("action_share") + }) + }), feedbackEnabled ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.feedbackAction, + style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { + borderColor: borderColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: { + color: foregroundColor + }, + children: global.strings("btn_feedback") + }) + }) : null, global.isDebug || global.enableDebugger || _$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isTecnaviaIP() || global.isTaAddon() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.debugOverlayAction, + style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { + borderColor: borderColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: { + color: foregroundColor + }, + children: enableDebugOverlay ? global.strings("disable_debug_overlay") : global.strings("enable_debug_overlay") + }) + }) : null, (global.isDebug || _$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isTecnaviaIP()) && _optionalPackageUtils.default.isCrashlyticsAvailable() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.crashAction, + style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { + borderColor: borderColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: { + color: foregroundColor + }, + children: global.strings("force_crash") + }) + }) : null, global.isDebug || _$$_REQUIRE(_dependencyMap[21]).NetworkUtils.isTecnaviaIP() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.copyAction, + style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { + borderColor: borderColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { + style: { + color: foregroundColor + }, + children: global.strings("copy_files") + }) + }) : null] + }) + })] + }); + + if (hidden) { + return ModalComponent; + } + + return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + classes: ["setting-line"], + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[28]).styles.row, { + flexDirection: "column" + }], + children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.tapAction, + children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[31]).Text, { + label: label + }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[31]).Value, { + value: value + })] + }) + }), ModalComponent] + }) + }); + } + }]); + }(_react.default.Component); + + SettingDebug.propTypes = { + label: _propTypes.default.string, + value: _propTypes.default.string, + numberOfTapToDebug: _propTypes.default.number.isRequired, + onSublayoutChange: _propTypes.default.func, + hidden: _propTypes.default.bool + }; + SettingDebug.defaultProps = { + hidden: false + }; +},2219,[3,270,6,7,11,13,14,582,16,18,2150,2133,1943,2040,882,566,1870,831,817,2220,2221,438,1937,2223,815,2043,820,179,2222,2097,2225,2226]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Type = undefined; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); + + var _excluded = ["type", "style", "onLayout", "onFocus", "autoFocus"]; + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + var Type = exports.Type = { + bold: "bold", + medium: "medium", + regular: "regular" + }; + + function FontTextInput(props) { + var inputRef = (0, _react.useRef)(null); + + var _useFonts = (0, _$$_REQUIRE(_dependencyMap[6]).useFonts)(), + allowFontScaling = _useFonts.allowFontScaling, + fontRegular = _useFonts.fontRegular, + fontMedium = _useFonts.fontMedium, + fontBold = _useFonts.fontBold; + + var _getFontStyle = function _getFontStyle(type) { + var fontStyle = {}; + + if (type === Type.bold && fontBold) { + fontStyle.fontFamily = fontBold.font; + } else if (type === Type.medium && fontMedium) { + fontStyle.fontFamily = fontMedium.font; + } else if (fontRegular) { + fontStyle.fontFamily = fontRegular.font; + } + + if (!fontStyle.fontFamily) { + fontStyle.fontFamily = "system font"; + fontStyle.fontWeight = type === Type.bold ? "bold" : "normal"; + } + + return fontStyle; + }; + + var type = props.type, + style = props.style, + _onLayout = props.onLayout, + onFocus = props.onFocus, + autoFocus = props.autoFocus, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + var fontStyle = _getFontStyle(type); + + var textStyle = []; + + if (style) { + if (Array.isArray(style)) { + textStyle = (0, _toConsumableArray2.default)(style); + } else { + textStyle.push(style); + } + } + + textStyle.push(fontStyle); + + var _onFocus = (0, _react.useCallback)(function () { + if (inputRef.current && !inputRef.current.isFocused()) { + inputRef.current.focus(); + } + + if (typeof onFocus === "function") { + onFocus(); + } + }, [onFocus]); + + (0, _react.useEffect)(function () { + if (autoFocus && inputRef.current && !inputRef.current.isFocused()) { + setTimeout(function () { + var _inputRef$current; + + (_inputRef$current = inputRef.current) == null ? undefined : _inputRef$current.focus(); + }, 500); + } + }, []); + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TextInput, Object.assign({ + ref: inputRef, + onLayout: function onLayout(e) { + return _onLayout && _onLayout(e, textStyle); + }, + style: textStyle, + onFocus: _onFocus + }, rest, { + allowFontScaling: allowFontScaling, + maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[8]).FontUtils.fontMaxScale + })); + } + + FontTextInput.propTypes = { + type: _propTypes.default.oneOf(Object.values(Type)), + onLayout: _propTypes.default.func, + onFocus: _propTypes.default.func, + style: _propTypes.default.any, + autoFocus: _propTypes.default.bool + }; + FontTextInput.defaultProps = { + type: Type.regular + }; + + var _default = exports.default = FontTextInput; +},2220,[3,22,4,582,16,18,818,179,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.SettingHeaderAccordion = exports.SettingClose = undefined; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); + + function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } + + function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } + + var SettingClose = exports.SettingClose = function SettingClose(props) { + var onPress = props.onPress; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); + + var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TouchableOpacity, { + onPress: onPress, + style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordionParent, { + backgroundColor: backgroundColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { + style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordion, { + color: color + }], + name: "close", + type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS + }) + }); + }; + + SettingClose.propTypes = { + onPress: _propTypes.default.func.isRequired + }; + + var SettingHeaderAccordion = exports.SettingHeaderAccordion = function SettingHeaderAccordion(props) { + var collapsed = props.collapsed, + onPress = props.onPress; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); + + var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TouchableOpacity, { + onPress: onPress, + style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordionParent, { + backgroundColor: backgroundColor + }], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { + style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordion, { + color: color + }], + name: !collapsed ? "chevron-up" : "chevron-down", + type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS + }) + }); + }; + + SettingHeaderAccordion.propTypes = { + collapsed: _propTypes.default.bool, + onPress: _propTypes.default.func.isRequired + }; + + var SettingHeader = function SettingHeader(props) { + var label = props.label, + onPress = props.onPress; + var Parent = typeof onPress === "function" ? _reactNative.TouchableOpacity : _reactNative.View; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); + + var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[6]).Css, { + classes: ["settings-header-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Parent, { + style: [_$$_REQUIRE(_dependencyMap[8]).styles.rowHeader, { + backgroundColor: backgroundColor + }], + onPress: onPress, + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[6]).Css, { + classes: ["settings-header-text"], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { + type: _fontText.Type.bold, + style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerText, { + color: color + }], + children: label.toUpperCase() + }) + }) + }) + }); + }; + + SettingHeader.propTypes = { + label: _propTypes.default.string.isRequired, + onPress: _propTypes.default.func + }; + + var _default = exports.default = SettingHeader; +},2221,[3,16,582,18,817,1812,820,179,2222]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = exports.ROW_HEIGHT = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var ROW_HEIGHT = exports.ROW_HEIGHT = 40; + var TITLE_HEIGHT = 30; + var ROW_PADDING = 10; + + var styles = exports.styles = _reactNative.StyleSheet.create({ + root: { + flex: 1 + }, + separator: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + height: 1 + }, + separatorHeaderTop: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + height: 5 + }, + row: { + minHeight: ROW_HEIGHT, + flexDirection: "row", + padding: ROW_PADDING + }, + rowSlider: { + minHeight: ROW_HEIGHT, + flexDirection: "column", + padding: ROW_PADDING + }, + sliderTextParent: { + flex: 1, + flexDirection: "row", + justifyContent: "space-between" + }, + headerParent: { + flexDirection: "row", + alignItems: "center" + }, + headerAccordionParent: { + height: ROW_HEIGHT, + width: ROW_HEIGHT, + justifyContent: "center", + alignItems: "center", + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + headerAccordion: { + color: _$$_REQUIRE(_dependencyMap[1]).colors.black, + fontSize: 30 + }, + rowHeader: { + minHeight: ROW_HEIGHT, + justifyContent: "center", + padding: ROW_PADDING, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + textParent: { + flex: 1, + flexDirection: "column", + justifyContent: "center", + paddingEnd: ROW_PADDING + }, + headerText: { + fontSize: 20, + color: _$$_REQUIRE(_dependencyMap[1]).colors.black + }, + title: { + minHeight: TITLE_HEIGHT, + fontSize: 16 + }, + value: { + minHeight: ROW_HEIGHT - TITLE_HEIGHT - 20, + fontSize: 12, + textAlign: "left", + color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 + }, + buttonParent: { + justifyContent: "center" + }, + btn: { + width: 110, + height: ROW_HEIGHT - 30, + borderWidth: 2, + justifyContent: "center", + alignItems: "center" + }, + input: { + height: 40, + marginTop: 5, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + borderWidth: 1 + }, + debugButton: { + height: 40, + marginTop: 5, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + borderWidth: 1, + justifyContent: "center", + alignItems: "center" + }, + modal: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + hidden: { + fontSize: 12, + color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 + }, + log: { + height: 40, + marginTop: 5, + justifyContent: "center" + } + }); +},2222,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Feedback = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _FeedbackHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _FeedbackHelper$SP$ke = _FeedbackHelper.default.SP.keys, + active_days_near = _FeedbackHelper$SP$ke.active_days_near, + active_days_total = _FeedbackHelper$SP$ke.active_days_total, + date_session = _FeedbackHelper$SP$ke.date_session, + dialog_timestamp = _FeedbackHelper$SP$ke.dialog_timestamp, + next_dialog_timestamp = _FeedbackHelper$SP$ke.next_dialog_timestamp, + feedback_timestamp = _FeedbackHelper$SP$ke.feedback_timestamp, + user_left_review = _FeedbackHelper$SP$ke.user_left_review, + user_no_show_review_dialog = _FeedbackHelper$SP$ke.user_no_show_review_dialog, + user_no_show_review_timestamp = _FeedbackHelper$SP$ke.user_no_show_review_timestamp, + user_no_show_review_version = _FeedbackHelper$SP$ke.user_no_show_review_version, + user_left_review_app_version = _FeedbackHelper$SP$ke.user_left_review_app_version, + user_likes_app = _FeedbackHelper$SP$ke.user_likes_app, + user_left_feedback = _FeedbackHelper$SP$ke.user_left_feedback, + user_no_show_review_dialog_timestamp = _FeedbackHelper$SP$ke.user_no_show_review_dialog_timestamp; + + var Feedback = exports.Feedback = function () { + function Feedback() { + (0, _classCallCheck2.default)(this, Feedback); + this.enabled = false; + } + + return (0, _createClass2.default)(Feedback, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + this.userLikesApp = yield this.getValue(user_likes_app); + this.userAlreadyLeftReview = (yield this.getValue(user_left_review)) === "1"; + this.userAlreadyLeftFeedback = (yield this.getValue(user_left_feedback)) === "1"; + this.userNoShowReviewDialog = (yield this.getValue(user_no_show_review_dialog)) === "1"; + this.userNoShowReviewVersion = yield this.getValue(user_no_show_review_version); + this.dateSession = yield this.getIntValue(date_session); + this.lastDialogTimestamp = yield this.getValue(dialog_timestamp); + this.nextDialogTimestamp = yield this.getValue(next_dialog_timestamp); + this.lastReviewTimestamp = yield this.getValue(feedback_timestamp); + this.lastDoNotShowTimestamp = yield this.getValue(user_no_show_review_timestamp); + + var _global$getMainPSetup = global.getMainPSetup(), + feedbackEnabled = _global$getMainPSetup.feedbackEnabled, + feedbackConfig = _global$getMainPSetup.feedbackConfig; + + if (feedbackEnabled && feedbackConfig) { + this.enabled = feedbackEnabled; + this.resetDoNotShowAgainAfterUpgrade = this.getAppVersion() !== this.userNoShowReviewVersion; + + if (this.userNoShowReviewDialog && this.resetDoNotShowAgainAfterUpgrade) { + this.userNoShowReviewDialog = false; + this.setValue(user_no_show_review_dialog, "0"); + this.setValue(user_no_show_review_timestamp, ""); + this.setValue(user_no_show_review_version, ""); + } + + var resetTimestamp = feedbackConfig.resetTimestamp; + + if (this.checkTimestampToReset(resetTimestamp)) { + this.dateSession = undefined; + } + + yield global.analyzeUsedSpace(); + } + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "check", + value: function () { + var _check = (0, _asyncToGenerator2.default)(function* () { + yield this.init(); + yield this.checkFeedback(); + }); + + function check() { + return _check.apply(this, arguments); + } + + return check; + }() + }, { + key: "force", + value: function () { + var _force = (0, _asyncToGenerator2.default)(function* () { + yield this.init(); + yield this.requestUserFeedback(); + }); + + function force() { + return _force.apply(this, arguments); + } + + return force; + }() + }, { + key: "getAppVersion", + value: function getAppVersion() { + return "" + global.appVersionCode; + } + }, { + key: "checkTimestampToReset", + value: function checkTimestampToReset(pSetupTimestamp) { + var referenceTimestamp = this.lastDialogTimestamp || this.lastReviewTimestamp; + return pSetupTimestamp && referenceTimestamp && parseInt(referenceTimestamp, 10) < parseInt(pSetupTimestamp, 10); + } + }, { + key: "baseFeedbackCondition", + value: function baseFeedbackCondition() { + if (!this.dateSession) { + return false; + } + + var _global$getMainPSetup2 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup2.feedbackConfig; + + if (!feedbackConfig) { + return false; + } + + var lowerActiveDateRange = feedbackConfig.lowerActiveDateRange; + var timeDif = new Date().getTime() - this.dateSession; + + if (timeDif < lowerActiveDateRange) { + return false; + } + + if (this.userLikesApp === "0") { + return false; + } + + if (this.userAlreadyLeftFeedback) { + return false; + } + + if (this.userAlreadyLeftReview) { + return false; + } + + if (this.userNoShowReviewDialog) { + return false; + } + + if (this.nextDialogTimestamp) { + return _$$_REQUIRE(_dependencyMap[9]).DateUtils.getCurrentDateString() >= this.nextDialogTimestamp; + } + + return true; + } + }, { + key: "initBaseValues", + value: function initBaseValues() { + this.setActiveDaysNear(1); + this.setActiveDaysTotal(1); + this.setValue(dialog_timestamp, ""); + this.setValue(next_dialog_timestamp, ""); + this.setValue(feedback_timestamp, ""); + this.setValue(user_left_review, "0"); + this.setValue(user_no_show_review_dialog, "0"); + this.setValue(user_no_show_review_timestamp, ""); + this.setValue(user_no_show_review_version, ""); + this.setValue(user_left_review_app_version, ""); + this.setValue(user_left_feedback, ""); + this.removeValue(user_likes_app); + } + }, { + key: "checkFeedback", + value: function () { + var _checkFeedback = (0, _asyncToGenerator2.default)(function* () { + if (!this.enabled) { + return; + } + + if (!this.dateSession) { + this.setValue(date_session, new Date().getTime()); + this.initBaseValues(); + return; + } + + if (!this.baseFeedbackCondition()) { + return; + } + + var _global$getMainPSetup3 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup3.feedbackConfig; + + if (!feedbackConfig) { + return; + } + + var activeDaysToShow = feedbackConfig.activeDaysToShow, + totalDaysToShow = feedbackConfig.totalDaysToShow, + totalDaysToShowFirstTime = feedbackConfig.totalDaysToShowFirstTime, + lowerActiveDateRange = feedbackConfig.lowerActiveDateRange, + upperActiveDateRange = feedbackConfig.upperActiveDateRange; + this.setValue(date_session, new Date().getTime()); + var activeDaysNear = 1; + var activeDaysTotal = (yield this.getIntValue(active_days_total)) + 1; + this.setActiveDaysTotal(activeDaysTotal); + var totalDaysToCheck = this.lastDialogTimestamp ? totalDaysToShow : totalDaysToShowFirstTime; + var requestFeedback = activeDaysTotal > totalDaysToCheck; + var timeDif = new Date().getTime() - this.dateSession; + + if (timeDif > lowerActiveDateRange && timeDif < upperActiveDateRange) { + activeDaysNear = (yield this.getIntValue(active_days_near)) + 1; + requestFeedback = requestFeedback || activeDaysNear > activeDaysToShow; + } + + this.setActiveDaysNear(activeDaysNear); + + if (requestFeedback) { + this.requestUserFeedback(); + } + }); + + function checkFeedback() { + return _checkFeedback.apply(this, arguments); + } + + return checkFeedback; + }() + }, { + key: "setActiveDaysNear", + value: function () { + var _setActiveDaysNear = (0, _asyncToGenerator2.default)(function* (newValue) { + return this.setValue(active_days_near, newValue); + }); + + function setActiveDaysNear(_x) { + return _setActiveDaysNear.apply(this, arguments); + } + + return setActiveDaysNear; + }() + }, { + key: "setActiveDaysTotal", + value: function () { + var _setActiveDaysTotal = (0, _asyncToGenerator2.default)(function* (newValue) { + return this.setValue(active_days_total, newValue); + }); + + function setActiveDaysTotal(_x2) { + return _setActiveDaysTotal.apply(this, arguments); + } + + return setActiveDaysTotal; + }() + }, { + key: "getMarketUrl", + value: function () { + var _getMarketUrl = (0, _asyncToGenerator2.default)(function* () { + try { + var result = yield _Api.default.getAppStoreMetadata(); + var response = result.data || {}; + var error = response.error, + reviewRatingUrl = response.reviewRatingUrl; + + if (error === 0 && reviewRatingUrl) { + return reviewRatingUrl; + } + } catch (e) {} + + return ""; + }); + + function getMarketUrl() { + return _getMarketUrl.apply(this, arguments); + } + + return getMarketUrl; + }() + }, { + key: "setCoolDownTimestamp", + value: function setCoolDownTimestamp(dontShowAgain) { + var _global$getMainPSetup4 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup4.feedbackConfig; + + if (!feedbackConfig) { + return; + } + + var coolDownDays = feedbackConfig.coolDownDays, + coolDownDaysDontShowAgain = feedbackConfig.coolDownDaysDontShowAgain; + var feedbackCoolDownDays = dontShowAgain ? coolDownDaysDontShowAgain : coolDownDays; + var nextDate = new Date(); + nextDate.setDate(nextDate.getDate() + feedbackCoolDownDays); + this.setValue(next_dialog_timestamp, _$$_REQUIRE(_dependencyMap[9]).DateUtils.getCurrentDateString(nextDate)); + } + }, { + key: "getYesNoButtons", + value: function getYesNoButtons(onYesPress, onNoPress) { + return [{ + text: global.strings("btn_yes"), + onPress: onYesPress + }, { + text: global.strings("btn_no"), + onPress: onNoPress + }]; + } + }, { + key: "getDontShowAgainButton", + value: function getDontShowAgainButton() { + var _this = this; + + return { + text: global.strings("btn_do_not_show"), + onPress: function onPress() { + _this.setCoolDownTimestamp(true); + + _this.setValue(user_no_show_review_dialog, "1"); + + _this.setValue(user_no_show_review_version, _this.getAppVersion()); + + _this.setValue(user_no_show_review_dialog_timestamp, _$$_REQUIRE(_dependencyMap[9]).DateUtils.getCurrentDateString()); + + _this.sendDontShow(); + } + }; + } + }, { + key: "requestUserFeedback", + value: function () { + var _requestUserFeedback = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + var _global$getMainPSetup5 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup5.feedbackConfig; + + if (!feedbackConfig) { + return; + } + + this.marketUrl = yield this.getMarketUrl(); + + if (!global.isDebug && !this.marketUrl) { + return; + } + + this.setValue(dialog_timestamp, _$$_REQUIRE(_dependencyMap[9]).DateUtils.getCurrentDateString()); + this.setValue(next_dialog_timestamp, ""); + this.setActiveDaysNear(1); + this.setActiveDaysTotal(1); + var buttons = this.getYesNoButtons(function () { + _this2.setValue(user_likes_app, "1"); + + _this2.askForReview(); + }, function () { + _this2.setValue(user_likes_app, "0"); + + _this2.askForWrittenFeedback(); + }); + var showNotSureYetFirstDialog = feedbackConfig.showNotSureYetFirstDialog, + showDontShowAgainFirstDialog = feedbackConfig.showDontShowAgainFirstDialog, + requestFeedbackTitle = feedbackConfig.requestFeedbackTitle; + + if (showNotSureYetFirstDialog) { + buttons.push({ + text: global.strings("btn_not_sure_yet") + }); + } + + if (showDontShowAgainFirstDialog) { + buttons.push(this.getDontShowAgainButton()); + } + + _$$_REQUIRE(_dependencyMap[10]).CustomAlert.alert("", requestFeedbackTitle, buttons, { + cancelable: false + }); + }); + + function requestUserFeedback() { + return _requestUserFeedback.apply(this, arguments); + } + + return requestUserFeedback; + }() + }, { + key: "askForReview", + value: function askForReview() { + var _this3 = this; + + var _global$getMainPSetup6 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup6.feedbackConfig; + + if (!feedbackConfig) { + return; + } + + var showDontShowAgain = feedbackConfig.showDontShowAgain, + requestReviewFeedbackTitle = feedbackConfig.requestReviewFeedbackTitle; + var buttons = this.getYesNoButtons(function () { + _this3.sendEventReview(true); + + _this3.setValue(user_left_review_app_version, _this3.getAppVersion()); + + _this3.setValue(feedback_timestamp, _$$_REQUIRE(_dependencyMap[9]).DateUtils.getCurrentDateString()); + + _this3.setValue(user_left_review, "1"); + + _this3.openAppRating(); + }, function () { + _this3.setCoolDownTimestamp(false); + + _this3.sendEventReview(false); + }); + + if (showDontShowAgain) { + buttons.push(this.getDontShowAgainButton()); + } + + _$$_REQUIRE(_dependencyMap[10]).CustomAlert.alert("", requestReviewFeedbackTitle, buttons, { + cancelable: false + }); + } + }, { + key: "askForWrittenFeedback", + value: function askForWrittenFeedback() { + var _this4 = this; + + var _global$getMainPSetup7 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup7.feedbackConfig; + + if (!feedbackConfig) { + return; + } + + var buttons = this.getYesNoButtons((0, _asyncToGenerator2.default)(function* () { + _this4.setValue(user_left_feedback, "1"); + + _this4.sendFeedback(); + + _this4.sendEventEmail(true); + }), function () { + _this4.sendEventEmail(false); + }); + var askForFeedback = feedbackConfig.askForFeedback; + + _$$_REQUIRE(_dependencyMap[10]).CustomAlert.alert("", askForFeedback, buttons, { + cancelable: false + }); + } + }, { + key: "sendFeedbackEmail", + value: function sendFeedbackEmail() { + var automaticFeedback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + + var _global$getMainPSetup8 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup8.feedbackConfig; + + var email = (feedbackConfig == null ? undefined : feedbackConfig.emailForFeedback) || global.strings("feedback_email_feedback"); + var message = " AUTOMATIC FEEDBACK: " + automaticFeedback + "\n"; + message += _GlobalConfig.default.getDeviceInfoText(); + message += _GlobalConfig.default.getUsedSpaceText(); + var subject = "Feedback for " + global.appName; + + _reactNativeMail.default.mail({ + subject: subject, + recipients: [email], + body: message, + isHTML: false + }, function () {}); + } + }, { + key: "sendFeedback", + value: function sendFeedback() { + var automaticFeedback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + + var _global$getMainPSetup9 = global.getMainPSetup(), + feedbackConfig = _global$getMainPSetup9.feedbackConfig; + + if (feedbackConfig) { + var linkForFeedback = feedbackConfig.linkForFeedback; + + if (linkForFeedback) { + _tecnaviaPlatformUtils.default.openURL(linkForFeedback); + + return; + } + } + + this.sendFeedbackEmail(automaticFeedback); + } + }, { + key: "openAppRating", + value: function openAppRating() { + _tecnaviaPlatformUtils.default.openURL(this.marketUrl); + } + }, { + key: "setValue", + value: function () { + var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { + return _FeedbackHelper.default.setItem(key, "" + value); + }); + + function setValue(_x3, _x4) { + return _setValue.apply(this, arguments); + } + + return setValue; + }() + }, { + key: "getValue", + value: function () { + var _getValue = (0, _asyncToGenerator2.default)(function* (key) { + return _FeedbackHelper.default.getItem(key); + }); + + function getValue(_x5) { + return _getValue.apply(this, arguments); + } + + return getValue; + }() + }, { + key: "removeValue", + value: function removeValue(key) { + return _FeedbackHelper.default.removeItem(key); + } + }, { + key: "getIntValue", + value: function () { + var _getIntValue = (0, _asyncToGenerator2.default)(function* (key) { + return parseInt(yield this.getValue(key), 10); + }); + + function getIntValue(_x6) { + return _getIntValue.apply(this, arguments); + } + + return getIntValue; + }() + }, { + key: "sendEventReview", + value: function sendEventReview(sendReview) { + (0, _$$_REQUIRE(_dependencyMap[11]).trackCustomFirebaseEvent)({ + customEvent: "feedback", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[12]).mapParamsToFirebaseCustomDimensions)(), { + doYouLikeTheApp: "yes", + sendReviewToStore: sendReview ? "yes" : "no" + }) + }); + } + }, { + key: "sendEventEmail", + value: function sendEventEmail(sendEmail) { + (0, _$$_REQUIRE(_dependencyMap[11]).trackCustomFirebaseEvent)({ + customEvent: "feedback", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[12]).mapParamsToFirebaseCustomDimensions)(), { + doYouLikeTheApp: "no", + sendEmailToSupport: sendEmail ? "yes" : "no" + }) + }); + } + }, { + key: "sendDontShow", + value: function sendDontShow() { + (0, _$$_REQUIRE(_dependencyMap[11]).trackCustomFirebaseEvent)({ + customEvent: "feedback", + customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[12]).mapParamsToFirebaseCustomDimensions)(), { + dontShowAgain: "yes" + }) + }); + } + }], [{ + key: "resetCounter", + value: function () { + var _resetCounter = (0, _asyncToGenerator2.default)(function* () { + try { + yield _FeedbackHelper.default.setItem(active_days_near, "1"); + yield _FeedbackHelper.default.setItem(active_days_total, "1"); + } catch (e) {} + }); + + function resetCounter() { + return _resetCounter.apply(this, arguments); + } + + return resetCounter; + }() + }]); + }(); +},2223,[3,270,6,7,2150,407,2133,2224,2022,438,815,1998,2002]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var FeedbackHelper = exports.default = function () { + function FeedbackHelper() { + (0, _classCallCheck2.default)(this, FeedbackHelper); + } + + return (0, _createClass2.default)(FeedbackHelper, null, [{ + key: "getItem", + value: function () { + var _getItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(FeedbackHelper.SP.name, key); + }); + + function getItem(_x) { + return _getItem.apply(this, arguments); + } + + return getItem; + }() + }, { + key: "setItem", + value: function () { + var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(FeedbackHelper.SP.name, key, value); + }); + + function setItem(_x2, _x3) { + return _setItem.apply(this, arguments); + } + + return setItem; + }() + }, { + key: "removeItem", + value: function () { + var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(FeedbackHelper.SP.name, key); + }); + + function removeItem(_x4) { + return _removeItem.apply(this, arguments); + } + + return removeItem; + }() + }]); + }(); + + FeedbackHelper.SP = { + name: "feedback", + keys: { + dialog_timestamp: "dialogTimestamp", + next_dialog_timestamp: "nextDialogTimestamp", + user_likes_app: "userLikesApp", + user_left_review: "userLeftReview", + user_left_feedback: "userLeftFeedback", + user_left_review_app_version: "userLeftReviewAppVersion", + user_no_show_review_version: "userNoShowReviewVersion", + user_no_show_review_dialog: "userNoShowReviewDialog", + user_no_show_review_timestamp: "userNoShowReviewDialogTimestamp", + feedback_timestamp: "feedbackTimestamp", + date_session: "dateSession", + active_days_near: "activeDaysNear", + active_days_total: "activeDaysTotal" + } + }; +},2224,[3,270,6,7,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.LogButton = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var LogButton = exports.LogButton = function (_React$Component) { + function LogButton() { + (0, _classCallCheck2.default)(this, LogButton); + return _callSuper(this, LogButton, arguments); + } + + (0, _inherits2.default)(LogButton, _React$Component); + return (0, _createClass2.default)(LogButton, [{ + key: "render", + value: function render() { + var _this$props = this.props, + onLayout = _this$props.onLayout, + onSending = _this$props.onSending, + style = _this$props.style; + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.TouchableOpacity, { + style: style, + onLayout: onLayout, + onPress: (0, _asyncToGenerator2.default)(function* () { + if (typeof onSending === "function") { + onSending(); + } + + _$$_REQUIRE(_dependencyMap[13]).LoadingOverlay.show({ + id: "log", + text: global.strings("uploading") + }); + + yield _$$_REQUIRE(_dependencyMap[14]).Logger.areLogsStored(); + var result = yield _Api.default.sendLog(); + + _$$_REQUIRE(_dependencyMap[13]).LoadingOverlay.hide({ + id: "log" + }); + + var message = result ? global.strings("msg_sent") : global.strings("msg_failed"); + + _$$_REQUIRE(_dependencyMap[15]).Toast.show(message, { + position: "top" + }); + }), + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { + style: { + backgroundColor: _$$_REQUIRE(_dependencyMap[14]).colors.md_orange_800, + color: _$$_REQUIRE(_dependencyMap[14]).colors.black, + fontSize: 18, + padding: 5 + }, + children: global.strings("btn_disable_log_file") + }) + }); + } + }]); + }(_react.default.Component); + + LogButton.propTypes = { + onLayout: _propTypes.default.func, + onSending: _propTypes.default.func, + style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) + }; +},2225,[3,270,6,7,11,13,14,582,16,18,407,817,179,1937,438,1934]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Value = exports.Text = undefined; + exports.getRadius = getRadius; + exports.getSupportColor = getSupportColor; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _excluded = ["value", "cssProps"], + _excluded2 = ["label", "cssProps"]; + + function getSupportColor() { + var supportColor; + var rssIndexConfig = global.getRssIndex(); + + if (rssIndexConfig) { + supportColor = rssIndexConfig.supportColor; + } + + var baseStyle = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["setting-base-style"]); + + return baseStyle.color || supportColor || _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); + } + + function getRadius() { + var borderRadius; + var rssIndexConfig = global.getRssIndex(); + + if (rssIndexConfig) { + borderRadius = rssIndexConfig.borderRadius; + } + + var baseStyle = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["setting-base-style"]); + + return baseStyle.borderRadius || borderRadius || 0; + } + + var Value = exports.Value = function Value(props) { + var value = props.value, + _props$cssProps = props.cssProps, + cssProps = _props$cssProps === undefined ? {} : _props$cssProps, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + return value ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, Object.assign({ + classes: ["setting-text-value"] + }, cssProps, { + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, Object.assign({ + numberOfLines: 1, + style: _$$_REQUIRE(_dependencyMap[9]).styles.value + }, rest, { + children: value + })) + })) : null; + }; + + Value.propTypes = { + value: _propTypes.default.any, + cssProps: _propTypes.default.object + }; + + var Text = exports.Text = function Text(props) { + var label = props.label, + _props$cssProps2 = props.cssProps, + cssProps = _props$cssProps2 === undefined ? {} : _props$cssProps2, + rest = (0, _objectWithoutProperties2.default)(props, _excluded2); + + var color = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, Object.assign({ + classes: ["setting-text-label"] + }, cssProps, { + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, Object.assign({ + style: [_$$_REQUIRE(_dependencyMap[9]).styles.title, { + color: color + }] + }, rest, { + children: label + })) + })); + }; + + Text.propTypes = { + label: _propTypes.default.string, + cssProps: _propTypes.default.object + }; + + var Setting = function Setting(props) { + var imageProps = props.imageProps, + label = props.label, + value = props.value, + onPress = props.onPress, + buttonText = props.buttonText, + children = props.children; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultBackgroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-line"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[9]).styles.row, { + backgroundColor: backgroundColor + }], + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-icon-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + style: { + alignSelf: "center" + }, + children: imageProps ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-icon"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_imageIconChooserComponent.default, Object.assign({}, imageProps)) + }) : null + }) + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-text-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[9]).styles.textParent, + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Text, { + label: label + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Value, { + value: value + })] + }) + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-button-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[9]).styles.buttonParent, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-button"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Circle.Button, { + onPress: onPress, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["setting-button-text"], + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Circle.Text, { + children: buttonText + }) + }) + }) + }) + }) + }), children] + }) + }); + }; + + Setting.propTypes = { + imageProps: _propTypes.default.object, + label: _propTypes.default.string.isRequired, + value: _propTypes.default.string, + onPress: _propTypes.default.func.isRequired, + buttonText: _propTypes.default.string.isRequired, + children: _propTypes.default.any + }; + Setting.defaultProps = { + value: "" + }; + + var _default = exports.default = Setting; +},2226,[3,4,16,582,18,817,1899,820,179,2227,2228]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = exports.ROW_HEIGHT = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var ROW_HEIGHT = exports.ROW_HEIGHT = 70; + var TITLE_HEIGHT = 30; + var ROW_PADDING = 10; + + var styles = exports.styles = _reactNative.StyleSheet.create({ + root: { + flex: 1 + }, + separator: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + height: 1 + }, + row: { + minHeight: ROW_HEIGHT, + flexDirection: "row", + padding: ROW_PADDING, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + textParent: { + flex: 1, + flexDirection: "column", + justifyContent: "center", + paddingEnd: ROW_PADDING + }, + title: { + fontSize: 18, + color: _$$_REQUIRE(_dependencyMap[1]).colors.black + }, + value: { + minHeight: ROW_HEIGHT - TITLE_HEIGHT - 20, + fontSize: 14, + textAlign: "left", + color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 + }, + buttonParent: { + justifyContent: "center", + width: 110 + }, + chkParent: { + width: 110, + alignItems: "center" + }, + btn: { + width: 110, + height: ROW_HEIGHT - 30, + borderWidth: 0.3, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent200, + justifyContent: "center", + alignItems: "center" + }, + input: { + height: 40, + marginTop: 5, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + borderWidth: 1 + }, + debugButton: { + height: 40, + marginTop: 5, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, + borderWidth: 1, + justifyContent: "center", + alignItems: "center" + }, + hidden: { + fontSize: 12, + color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 + }, + log: { + height: 40, + marginTop: 5, + justifyContent: "center" + } + }); +},2227,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Circle = undefined; + exports.default = TecnaviaButton; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["style", "onPress"], + _excluded2 = ["style"]; + + var styles = _reactNative.StyleSheet.create({ + btn: { + width: "100%", + height: 50, + paddingHorizontal: 10, + borderWidth: 0.3, + borderColor: _$$_REQUIRE(_dependencyMap[5]).colors.transparent200, + borderRadius: 20, + alignItems: "center", + justifyContent: "space-evenly", + flexDirection: "row" + }, + text: { + flex: 1, + textAlign: "center", + color: _$$_REQUIRE(_dependencyMap[5]).colors.black + } + }); + + function TecnaviaButton(props) { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.TouchableOpacity, Object.assign({}, props)); + } + + function Button(props) { + var style = props.style, + onPress = props.onPress, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + var foregroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); + + if (typeof onPress === "function") { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.TouchableOpacity, Object.assign({ + style: [styles.btn, { + borderColor: foregroundColor + }, style], + onPress: onPress + }, rest)); + } + + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, Object.assign({ + style: [styles.btn, { + borderColor: foregroundColor + }, style] + }, rest)); + } + + function Text(props) { + var style = props.style, + rest = (0, _objectWithoutProperties2.default)(props, _excluded2); + + var foregroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_fontText.default, Object.assign({ + style: [styles.text, { + color: foregroundColor + }, style], + numberOfLines: 1, + adjustsFontSizeToFit: true + }, rest)); + } + + var Circle = exports.Circle = { + Button: Button, + Text: Text + }; +},2228,[3,4,16,18,817,438,179,820]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getKey = getKey; + exports.goToRssNavigator = goToRssNavigator; + exports.logout = logout; + exports.openBrowser = openBrowser; + exports.removeKey = removeKey; + exports.returnFromLogin = returnFromLogin; + exports.setKey = setKey; + exports.setPrefEdi = setPrefEdi; + exports.showAlert = showAlert; + exports.showConfirm = showConfirm; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _LoginManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + function returnFromLogin(_x) { + return _returnFromLogin.apply(this, arguments); + } + + function _returnFromLogin() { + _returnFromLogin = (0, _asyncToGenerator2.default)(function* (data) { + (0, _$$_REQUIRE(_dependencyMap[5]).sendNewsmemoryLoginEvent)("start login"); + var pSetup = data.pSetup, + machine = data.machine, + username = data.username, + password = data.password, + challenge = data.challenge, + remember = data.remember, + TAUID = data.TAUID, + token = data.token, + TOKEN = data.TOKEN, + extid = data.extid; + return _LoginManager.default.login({ + pSetup: pSetup, + machine: machine, + username: username, + password: password, + challenge: challenge, + remember: remember, + TAUID: TAUID, + token: TOKEN || token, + extid: extid + }); + }); + return _returnFromLogin.apply(this, arguments); + } + + function logout() { + return _logout.apply(this, arguments); + } + + function _logout() { + _logout = (0, _asyncToGenerator2.default)(function* () { + yield _LoginManager.default.logout(); + + _$$_REQUIRE(_dependencyMap[6]).EventRegister.emit(_events.default.NEWSMEMORY_RELOAD_EDITION); + }); + return _logout.apply(this, arguments); + } + + function openBrowser(data) { + var url = data.url, + callback = data.callback, + close = data.close; + + if (url) { + var extraNavigationParams = {}; + + if (url.indexOf("archiveSearch=1") !== -1) { + extraNavigationParams.screenTitle = global.strings("btn_archive"); + extraNavigationParams.isArchive = true; + } + + _NavigationService.default.main.navigate("WebScreen", Object.assign({ + url: url, + onClose: function onClose() { + _$$_REQUIRE(_dependencyMap[7]).PlatformUtils.colorBars(); + } + }, extraNavigationParams)); + } + } + + function showAlert(data) { + var title = data.title, + message = data.message, + okLabel = data.okLabel; + var buttons = []; + buttons.push({ + text: okLabel || global.strings("btn_ok") + }); + + _$$_REQUIRE(_dependencyMap[8]).CustomAlert.alert(title, message, buttons, { + cancelable: false + }); + } + + function showConfirm(data) { + var _this = this; + + var title = data.title, + message = data.message, + okLabel = data.okLabel, + cancelLabel = data.cancelLabel, + callback = data.callback; + var buttons = []; + buttons.push({ + text: cancelLabel || global.strings("btn_cancel"), + onPress: function onPress() { + _this._confirmResult(callback, false); + } + }, { + text: okLabel || global.strings("btn_ok"), + onPress: function onPress() { + _this._confirmResult(callback, true); + } + }); + + _$$_REQUIRE(_dependencyMap[8]).CustomAlert.alert(title, message, buttons, { + cancelable: false + }); + } + + function goToRssNavigator() { + _NavigationService.default.main.reset("RssNavigator"); + } + + function getKey(_x2) { + return _getKey.apply(this, arguments); + } + + function _getKey() { + _getKey = (0, _asyncToGenerator2.default)(function* (data) { + var key = data.key; + + if (key) { + var loginStatusValue = yield _LoginManager.default.getLoginConfigValue(key); + var value = loginStatusValue || (yield global.getNewsmemoryConfig().getValue(key)); + + if (typeof value === "string") { + value = "'" + value + "'"; + } + + return "xcj_getFromKey(" + value + ",'" + key + "');"; + } + + return ""; + }); + return _getKey.apply(this, arguments); + } + + function setKey(data) { + var key = data.key, + value = data.value, + callback = data.callback; + + _LoginManager.default.setLoginConfigValue(key, value); + + global.getNewsmemoryConfig().setValue(key, value); + + if (callback) { + return callback + "();"; + } + + return ""; + } + + function removeKey(data) { + var key = data.key; + global.getNewsmemoryConfig().removeValue(key); + } + + function setPrefEdi(data) { + var key = data.key, + value = data.value; + global.getNewsmemoryConfig().setValue(key, value); + } +},2229,[3,270,2040,436,1870,2042,564,438,815]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + main: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + fullscreen: { + position: "absolute", + top: 0, + left: 0, + right: 0, + bottom: 0, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.modalBackgroundLight + }, + background: { + position: "absolute", + top: 0, + left: 0, + right: 0, + bottom: 0, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.modalBackgroundLight + }, + hidden: { + width: 0, + height: 0 + }, + modal: { + position: "absolute", + zIndex: 1000 + }, + closeIcon: { + position: "absolute", + top: 13, + right: 13, + width: 24, + height: 24, + alignItems: "center", + justifyContent: "center" + } + }); +},2230,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2231,[2232]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ScreenState = exports.NavigationBaseScreen = undefined; + exports.getNavigationParams = getNavigationParams; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[11]); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _appUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var ScreenState = exports.ScreenState = { + FOCUSED: "focused", + UNFOCUSED: "unfocused", + MOUNTED: "mounted", + UNMOUNTED: "unmounted" + }; + + function getNavigationParams() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _props$route = props.route, + route = _props$route === undefined ? {} : _props$route; + var _route$params = route.params, + params = _route$params === undefined ? {} : _route$params; + return params; + } + + var NavigationBaseScreen = exports.NavigationBaseScreen = function (_React$Component) { + function NavigationBaseScreen(props) { + var _this; + + var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + (0, _classCallCheck2.default)(this, NavigationBaseScreen); + _this = _callSuper(this, NavigationBaseScreen, [props]); + _this.state = state; + _this.postponedAction = undefined; + _this.onHandleBackButton = _this.handleBackButton.bind(_this); + _this.onOrientationListener = _this.orientationListener.bind(_this); + _this.onHandleConnectivityChange = _this.handleConnectivityChange.bind(_this); + _this.onScreenshotListener = _this.screenshootListener.bind(_this); + return _this; + } + + (0, _inherits2.default)(NavigationBaseScreen, _React$Component); + return (0, _createClass2.default)(NavigationBaseScreen, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + this.log("screen mounted"); + var navigation = this.props.navigation; + + if (navigation) { + this._onFocusListener = navigation.addListener("focus", function () { + _this2.didFocus(); + }); + this._onWillBlur = navigation.addListener("blur", function () { + _this2.willBlur(); + }); + } + + this.currentScreenState = ScreenState.MOUNTED; + this.userScreenshotListener = _appUtils.default.addScreenshotListener(this.onScreenshotListener); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var _this$userScreenshotL; + + if (this.hasScreenFocus()) { + this.willBlur(); + } + + this.log("screen unmounted"); + + if (this._onFocusListener) { + this._onFocusListener(); + } + + if (this._onWillBlur) { + this._onWillBlur(); + } + + this.removeRNListener(); + this.currentScreenState = ScreenState.UNMOUNTED; + (_this$userScreenshotL = this.userScreenshotListener) == null ? undefined : _this$userScreenshotL.remove(); + } + }, { + key: "setState", + value: function setState(newState, callback) { + if (this.isScreenMounted()) { + (0, _get2.default)((0, _getPrototypeOf2.default)(NavigationBaseScreen.prototype), "setState", this).call(this, newState, function () { + if (callback) { + callback(); + } + }); + } + } + }, { + key: "forceState", + value: function forceState(newState, callback) { + (0, _get2.default)((0, _getPrototypeOf2.default)(NavigationBaseScreen.prototype), "setState", this).call(this, newState, function () { + if (callback) { + callback(); + } + }); + } + }, { + key: "getTag", + value: function getTag() { + return "NavigationBaseScreen"; + } + }, { + key: "log", + value: function log(msg) { + if (msg) {} + } + }, { + key: "trackScreen", + value: function trackScreen() { + (0, _$$_REQUIRE(_dependencyMap[15]).trackCustomFirebaseScreen)(this.getTag()); + } + }, { + key: "didFocus", + value: function didFocus() { + var _this3 = this; + + this.log("screen focus"); + this.trackScreen(); + + _reactNative.BackHandler.addEventListener("hardwareBackPress", this.onHandleBackButton); + + this.orientationListenerId = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function (_ref) { + var orientation = _ref.orientation; + + _this3.onOrientationListener(orientation); + }); + this.connectivityListener = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, this.onHandleConnectivityChange); + this.postponePromiseListener = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_POSTPONE_ACTION, function (_ref2) { + var resolve = _ref2.resolve; + var enablePostponeAction = _this3.props.enablePostponeAction; + + if (!enablePostponeAction) { + resolve(); + } else { + _this3.postponedAction = resolve; + } + }); + this.currentScreenState = ScreenState.FOCUSED; + } + }, { + key: "willBlur", + value: function willBlur() { + this.log("screen blur"); + this.consumePostponedAction(); + this.removeRNListener(); + this.currentScreenState = ScreenState.UNFOCUSED; + } + }, { + key: "removeRNListener", + value: function removeRNListener() { + _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.postponePromiseListener); + + _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.orientationListenerId); + + _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.connectivityListener); + + _reactNative.BackHandler.removeEventListener("hardwareBackPress", this.onHandleBackButton); + } + }, { + key: "hasScreenFocus", + value: function hasScreenFocus() { + return this.currentScreenState === ScreenState.FOCUSED; + } + }, { + key: "isScreenMounted", + value: function isScreenMounted() { + return this.currentScreenState !== ScreenState.UNMOUNTED; + } + }, { + key: "handleConnectivityChange", + value: function handleConnectivityChange() { + this.log("Unmanaged connectivity change by screen"); + } + }, { + key: "orientationListener", + value: function orientationListener(orientation) { + this.log("Orientation change " + orientation); + } + }, { + key: "screenshootListener", + value: function screenshootListener() { + var _global$getMainPSetup = global.getMainPSetup(), + preventScreenshots = _global$getMainPSetup.preventScreenshots; + + if (preventScreenshots && this.hasScreenFocus()) { + _$$_REQUIRE(_dependencyMap[17]).Toast.show(global.strings("msg_screenshots_disabled"), { + position: "bottom" + }); + } + } + }, { + key: "consumePostponedAction", + value: function consumePostponedAction() { + if (typeof this.postponedAction === "function") { + this.postponedAction(); + this.postponedAction = undefined; + } + } + }, { + key: "handleBackButton", + value: function handleBackButton() { + this.log("Back pressed"); + return true; + } + }, { + key: "closeAlert", + value: function closeAlert() { + if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isAndroid()) { + if (global.isTaAddon()) { + this.closeApp(); + } else { + this.showAlert({ + message: global.strings("msg_exit_application"), + buttons: [{ + text: global.strings("btn_cancel"), + onPress: function onPress() {} + }] + }); + } + } + } + }, { + key: "showAlert", + value: function () { + var _showAlert = (0, _asyncToGenerator2.default)(function* (_ref3) { + var _this4 = this; + + var _ref3$title = _ref3.title, + title = _ref3$title === undefined ? "" : _ref3$title, + message = _ref3.message, + _ref3$buttons = _ref3.buttons, + buttons = _ref3$buttons === undefined ? [] : _ref3$buttons, + _ref3$params = _ref3.params, + params = _ref3$params === undefined ? {} : _ref3$params, + resolve = _ref3.resolve; + + _$$_REQUIRE(_dependencyMap[19]).CustomAlert.alert(title, message, [{ + text: global.strings("btn_ok"), + onPress: function () { + var _onPress = (0, _asyncToGenerator2.default)(function* () { + _this4.closeApp(); + + if (typeof resolve === "function") { + resolve(); + } + }); + + function onPress() { + return _onPress.apply(this, arguments); + } + + return onPress; + }() + }].concat((0, _toConsumableArray2.default)(buttons)), Object.assign({ + cancelable: false + }, params)); + }); + + function showAlert(_x) { + return _showAlert.apply(this, arguments); + } + + return showAlert; + }() + }, { + key: "closeApp", + value: function closeApp() { + _reactNative.BackHandler.exitApp(); + } + }]); + }(_react.default.Component); + + NavigationBaseScreen.propTypes = { + navigation: _propTypes.default.object, + enablePostponeAction: _propTypes.default.bool + }; + NavigationBaseScreen.defaultProps = { + enablePostponeAction: false + }; +},2232,[3,22,270,6,7,11,85,13,14,582,16,18,436,2233,882,1998,564,1934,438,815]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var AppUtils = exports.default = function () { + function AppUtils() { + (0, _classCallCheck2.default)(this, AppUtils); + } + + return (0, _createClass2.default)(AppUtils, null, [{ + key: "checkUpdate", + value: function () { + var _checkUpdate = (0, _asyncToGenerator2.default)(function* () { + var state = yield AppUtils.appUpdateState(); + + if (AppUtils.isAppUpgraded(state)) { + yield _tecnaviaFileUtils.default.clearOldVersionFiles(); + yield _UserSettingsHelper.default.removeItem(_UserSettingsHelper.default.SP.keys.last_epaper_layout_config); + yield _ApplicationManager.default.deleteApplicationFolder(); + yield _$$_REQUIRE(_dependencyMap[9]).Feedback.resetCounter(); + + if (yield AppUtils.isAppPreviousThanVersion(3264)) { + yield _NewsmemoryHelper.default.removeItem(_NewsmemoryHelper.default.SP.keys.article_fullscreen_portrait); + } + } else if (AppUtils.isAppNewInstall(state)) { + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isAndroid()) { + try { + yield _tecnaviaFileUtils.default.unlink(_tecnaviaFileUtils.default.getCacheDirectory()); + } catch (e) {} + } else {} + } + + (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "copy application start"); + yield _ApplicationManager.default.copyApplicationFolder(); + (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "copy application end"); + return state; + }); + + function checkUpdate() { + return _checkUpdate.apply(this, arguments); + } + + return checkUpdate; + }() + }, { + key: "isAppUpdated", + value: function isAppUpdated(state) { + return state === AppUtils.STATE.UPDATED; + } + }, { + key: "isAppUpgraded", + value: function isAppUpgraded(state) { + return state === AppUtils.STATE.UPGRADED; + } + }, { + key: "isAppNewInstall", + value: function isAppNewInstall(state) { + return state === AppUtils.STATE.NEW_INSTALL; + } + }, { + key: "appUpdateState", + value: function () { + var _appUpdateState = (0, _asyncToGenerator2.default)(function* () { + var currentAppVersionCode = global.appVersionCode; + var previousAppVersionCode = yield _UserSettingsHelper.default.getItem(_UserSettingsHelper.default.SP.keys.app_version_code); + + if (currentAppVersionCode) { + if (previousAppVersionCode) { + if (currentAppVersionCode === previousAppVersionCode) { + return AppUtils.STATE.UPDATED; + } + + _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_code, currentAppVersionCode); + + return AppUtils.STATE.UPGRADED; + } + + _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_code, currentAppVersionCode); + + return AppUtils.STATE.NEW_INSTALL; + } + + return AppUtils.STATE.NO_VERSION_SET; + }); + + function appUpdateState() { + return _appUpdateState.apply(this, arguments); + } + + return appUpdateState; + }() + }, { + key: "isAppPreviousThanVersion", + value: function () { + var _isAppPreviousThanVersion = (0, _asyncToGenerator2.default)(function* (version) { + var currentAppVersionName = parseInt(global.appVersionName.replace(/\./g, ""), 10); + var previousAppVersionNameStr = (yield _UserSettingsHelper.default.getItem(_UserSettingsHelper.default.SP.keys.app_version_name)) || ""; + + _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_name, global.appVersionName); + + var previousAppVersionName = parseInt(previousAppVersionNameStr.replace(/\./g, ""), 10); + + if (!previousAppVersionName) { + return version > AppUtils.DEFAULT_VERSION_CHECKER; + } + + return previousAppVersionName < version; + }); + + function isAppPreviousThanVersion(_x) { + return _isAppPreviousThanVersion.apply(this, arguments); + } + + return isAppPreviousThanVersion; + }() + }, { + key: "enableSecureView", + value: function () { + var _enableSecureView = (0, _asyncToGenerator2.default)(function* () { + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS() && !global.__DEV__ && _optionalPackageUtils.default.isScreenshotPreventAvailable()) { + var _OptionalPackages$get = _optionalPackageUtils.default.getScreenshotPrevent(), + RNScreenshotPrevent = _OptionalPackages$get.RNScreenshotPrevent; + + yield RNScreenshotPrevent.enableSecureView(); + } + }); + + function enableSecureView() { + return _enableSecureView.apply(this, arguments); + } + + return enableSecureView; + }() + }, { + key: "disableSecureView", + value: function () { + var _disableSecureView = (0, _asyncToGenerator2.default)(function* () { + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS() && !global.__DEV__ && _optionalPackageUtils.default.isScreenshotPreventAvailable()) { + var _OptionalPackages$get2 = _optionalPackageUtils.default.getScreenshotPrevent(), + RNScreenshotPrevent = _OptionalPackages$get2.RNScreenshotPrevent; + + yield RNScreenshotPrevent.disableSecureView(); + } + }); + + function disableSecureView() { + return _disableSecureView.apply(this, arguments); + } + + return disableSecureView; + }() + }, { + key: "preventScreenshots", + value: function () { + var _preventScreenshots = (0, _asyncToGenerator2.default)(function* (enabled) { + if (_optionalPackageUtils.default.isScreenshotPreventAvailable()) { + var _OptionalPackages$get3 = _optionalPackageUtils.default.getScreenshotPrevent(), + RNScreenshotPrevent = _OptionalPackages$get3.RNScreenshotPrevent; + + yield RNScreenshotPrevent.enabled(enabled); + + if (enabled) { + yield AppUtils.enableSecureView(); + } else { + yield AppUtils.disableSecureView(); + } + + (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "Prevent screenshots setup completed"); + } + }); + + function preventScreenshots(_x2) { + return _preventScreenshots.apply(this, arguments); + } + + return preventScreenshots; + }() + }, { + key: "addScreenshotListener", + value: function addScreenshotListener(callback) { + if (_optionalPackageUtils.default.isScreenshotPreventAvailable()) { + var _OptionalPackages$get4 = _optionalPackageUtils.default.getScreenshotPrevent(), + addListener = _OptionalPackages$get4.addListener; + + return addListener(callback); + } + + return undefined; + } + }]); + }(); + + AppUtils.DEFAULT_VERSION_CHECKER = 3263; + AppUtils.STATE = { + UNKNOWN: -1, + NO_VERSION_SET: 0, + NEW_INSTALL: 1, + UPGRADED: 2, + UPDATED: 3 + }; +},2233,[3,270,6,7,865,1869,2066,882,566,2223,438,818]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var LandingPageScreen = exports.default = function (_NavigationBaseScreen) { + function LandingPageScreen() { + (0, _classCallCheck2.default)(this, LandingPageScreen); + return _callSuper(this, LandingPageScreen, arguments); + } + + (0, _inherits2.default)(LandingPageScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(LandingPageScreen, [{ + key: "getTag", + value: function getTag() { + return "Landing Page"; + } + }, { + key: "_dontShowAgain", + value: function _dontShowAgain(value) { + global.getUserSettings().setValue(_UserSettingsHelper.default.SP.keys.landing_page_dont_show_again, value); + } + }, { + key: "render", + value: function render() { + var _this = this; + + var _this$props = this.props, + navigation = _this$props.navigation, + destinationScreen = _this$props.destinationScreen; + + var _global$getMainPSetup = global.getMainPSetup(), + landingPageURL = _global$getMainPSetup.landingPageURL; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).BaseWebView, { + innerRef: function innerRef(ref) { + _this.webview = ref; + }, + onLocal: function onLocal(_ref) { + var domain = _ref.domain, + getParams = _ref.getParams; + + switch (domain) { + case "xc_doNotShowLandingPageAnymore": + _this._dontShowAgain(getParams.doNotShow === "true" ? "1" : "0"); + + break; + + case "xc_closeLandingPage": + navigation.navigate(destinationScreen); + break; + } + }, + source: { + uri: landingPageURL + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); +},2234,[3,6,7,11,13,14,16,2066,179,2039,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300101,7 +304796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebScreen.defaultProps = { considerSafeArea: true }; -},2208,[3,270,6,7,11,85,13,14,582,16,2209,1907,436,2049,1912,2198,2039,866,854,564,2211,438,1976,179,2055,2040,2210]); +},2235,[3,270,6,7,11,85,13,14,582,16,2236,1943,436,2032,2000,2187,2022,869,857,564,2231,438,1934,179,2039,2023,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300212,1340 +304907,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } -},2209,[3,33,16,18,436,438,564,2210,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.TecnaviaSafeAreaProvider = TecnaviaSafeAreaProvider; - exports.TecnaviaSafeAreaView = TecnaviaSafeAreaView; - exports.useTecnaviaSafeAreaFrame = useTecnaviaSafeAreaFrame; - exports.useTecnaviaSafeAreaInsets = useTecnaviaSafeAreaInsets; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["children", "backgroundColor"]; - - function useTecnaviaSafeAreaFrame() { - var contextAreaFrame = (0, _$$_REQUIRE(_dependencyMap[5]).useSafeAreaFrame)(); - - if (global.appNeedsSafeArea()) { - return contextAreaFrame; - } - - return _deviceUtils.default.getSafeArea(); - } - - function useTecnaviaSafeAreaInsets() { - var contextAreaInsets = (0, _$$_REQUIRE(_dependencyMap[5]).useSafeAreaInsets)(); - - if (global.appNeedsSafeArea()) { - return contextAreaInsets; - } - - return _deviceUtils.default.insets; - } - - function TecnaviaSafeAreaProvider(props) { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[5]).SafeAreaProvider, Object.assign({}, props)); - } - - function TecnaviaSafeAreaView(props) { - var children = props.children, - backgroundColor = props.backgroundColor, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - var commonProps = { - style: { - flex: 1, - backgroundColor: backgroundColor - } - }; - - if (global.appNeedsSafeArea()) { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[5]).SafeAreaView, Object.assign({}, commonProps, rest, { - children: children - })); - } - - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, Object.assign({}, commonProps, { - children: children - })); - } -},2210,[3,4,16,18,434,897,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2211,[2212]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ScreenState = exports.NavigationBaseScreen = undefined; - exports.getNavigationParams = getNavigationParams; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[11]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _appUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var ScreenState = exports.ScreenState = { - FOCUSED: "focused", - UNFOCUSED: "unfocused", - MOUNTED: "mounted", - UNMOUNTED: "unmounted" - }; - - function getNavigationParams() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var _props$route = props.route, - route = _props$route === undefined ? {} : _props$route; - var _route$params = route.params, - params = _route$params === undefined ? {} : _route$params; - return params; - } - - var NavigationBaseScreen = exports.NavigationBaseScreen = function (_React$Component) { - function NavigationBaseScreen(props) { - var _this; - - var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - (0, _classCallCheck2.default)(this, NavigationBaseScreen); - _this = _callSuper(this, NavigationBaseScreen, [props]); - _this.state = state; - _this.postponedAction = undefined; - _this.onHandleBackButton = _this.handleBackButton.bind(_this); - _this.onOrientationListener = _this.orientationListener.bind(_this); - _this.onHandleConnectivityChange = _this.handleConnectivityChange.bind(_this); - _this.onScreenshotListener = _this.screenshootListener.bind(_this); - return _this; - } - - (0, _inherits2.default)(NavigationBaseScreen, _React$Component); - return (0, _createClass2.default)(NavigationBaseScreen, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - this.log("screen mounted"); - var navigation = this.props.navigation; - - if (navigation) { - this._onFocusListener = navigation.addListener("focus", function () { - _this2.didFocus(); - }); - this._onWillBlur = navigation.addListener("blur", function () { - _this2.willBlur(); - }); - } - - this.currentScreenState = ScreenState.MOUNTED; - this.userScreenshotListener = _appUtils.default.addScreenshotListener(this.onScreenshotListener); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.hasScreenFocus()) { - this.willBlur(); - } - - this.log("screen unmounted"); - - if (this._onFocusListener) { - this._onFocusListener(); - } - - if (this._onWillBlur) { - this._onWillBlur(); - } - - this.removeRNListener(); - this.currentScreenState = ScreenState.UNMOUNTED; - - if (this.userScreenshotListener) { - this.userScreenshotListener.remove(); - } - } - }, { - key: "setState", - value: function setState(newState, callback) { - if (this.isScreenMounted()) { - (0, _get2.default)((0, _getPrototypeOf2.default)(NavigationBaseScreen.prototype), "setState", this).call(this, newState, function () { - if (callback) { - callback(); - } - }); - } - } - }, { - key: "forceState", - value: function forceState(newState, callback) { - (0, _get2.default)((0, _getPrototypeOf2.default)(NavigationBaseScreen.prototype), "setState", this).call(this, newState, function () { - if (callback) { - callback(); - } - }); - } - }, { - key: "getTag", - value: function getTag() { - return "NavigationBaseScreen"; - } - }, { - key: "log", - value: function log(msg) { - if (msg) {} - } - }, { - key: "trackScreen", - value: function trackScreen() { - (0, _$$_REQUIRE(_dependencyMap[15]).trackCustomFirebaseScreen)(this.getTag()); - } - }, { - key: "didFocus", - value: function didFocus() { - var _this3 = this; - - this.log("screen focus"); - this.trackScreen(); - - _reactNative.BackHandler.addEventListener("hardwareBackPress", this.onHandleBackButton); - - this.orientationListenerId = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function (_ref) { - var orientation = _ref.orientation; - - _this3.onOrientationListener(orientation); - }); - this.connectivityListener = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, this.onHandleConnectivityChange); - this.postponePromiseListener = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.ON_POSTPONE_ACTION, function (_ref2) { - var resolve = _ref2.resolve; - var enablePostponeAction = _this3.props.enablePostponeAction; - - if (!enablePostponeAction) { - resolve(); - } else { - _this3.postponedAction = resolve; - } - }); - this.currentScreenState = ScreenState.FOCUSED; - } - }, { - key: "willBlur", - value: function willBlur() { - this.log("screen blur"); - this.consumePostponedAction(); - this.removeRNListener(); - this.currentScreenState = ScreenState.UNFOCUSED; - } - }, { - key: "removeRNListener", - value: function removeRNListener() { - _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.postponePromiseListener); - - _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.orientationListenerId); - - _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.connectivityListener); - - _reactNative.BackHandler.removeEventListener("hardwareBackPress", this.onHandleBackButton); - } - }, { - key: "hasScreenFocus", - value: function hasScreenFocus() { - return this.currentScreenState === ScreenState.FOCUSED; - } - }, { - key: "isScreenMounted", - value: function isScreenMounted() { - return this.currentScreenState !== ScreenState.UNMOUNTED; - } - }, { - key: "handleConnectivityChange", - value: function handleConnectivityChange() { - this.log("Unmanaged connectivity change by screen"); - } - }, { - key: "orientationListener", - value: function orientationListener(orientation) { - this.log("Orientation change " + orientation); - } - }, { - key: "screenshootListener", - value: function screenshootListener() { - var _global$getMainPSetup = global.getMainPSetup(), - preventScreenshots = _global$getMainPSetup.preventScreenshots; - - if (preventScreenshots && this.hasScreenFocus()) { - _$$_REQUIRE(_dependencyMap[17]).Toast.show(global.strings("msg_screenshots_disabled"), { - position: "bottom" - }); - } - } - }, { - key: "consumePostponedAction", - value: function consumePostponedAction() { - if (typeof this.postponedAction === "function") { - this.postponedAction(); - this.postponedAction = undefined; - } - } - }, { - key: "handleBackButton", - value: function handleBackButton() { - this.log("Back pressed"); - return true; - } - }, { - key: "closeAlert", - value: function closeAlert() { - if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isAndroid()) { - if (global.isTaAddon()) { - this.closeApp(); - } else { - this.showAlert({ - message: global.strings("msg_exit_application"), - buttons: [{ - text: global.strings("btn_cancel"), - onPress: function onPress() {} - }] - }); - } - } - } - }, { - key: "showAlert", - value: function () { - var _showAlert = (0, _asyncToGenerator2.default)(function* (_ref3) { - var _this4 = this; - - var _ref3$title = _ref3.title, - title = _ref3$title === undefined ? "" : _ref3$title, - message = _ref3.message, - _ref3$buttons = _ref3.buttons, - buttons = _ref3$buttons === undefined ? [] : _ref3$buttons, - _ref3$params = _ref3.params, - params = _ref3$params === undefined ? {} : _ref3$params, - resolve = _ref3.resolve; - - _$$_REQUIRE(_dependencyMap[19]).CustomAlert.alert(title, message, [{ - text: global.strings("btn_ok"), - onPress: function () { - var _onPress = (0, _asyncToGenerator2.default)(function* () { - yield _this4.closeApp(); - - if (typeof resolve === "function") { - resolve(); - } - }); - - function onPress() { - return _onPress.apply(this, arguments); - } - - return onPress; - }() - }].concat((0, _toConsumableArray2.default)(buttons)), Object.assign({ - cancelable: false - }, params)); - }); - - function showAlert(_x) { - return _showAlert.apply(this, arguments); - } - - return showAlert; - }() - }, { - key: "closeApp", - value: function () { - var _closeApp = (0, _asyncToGenerator2.default)(function* () { - var IOSClassicEPaper = _optionalPackageUtils.default.getIOSClassicEPaper(); - - if (IOSClassicEPaper) { - try { - yield IOSClassicEPaper.closeNativeNewsMemory(); - } catch (e) {} - } - - _reactNative.BackHandler.exitApp(); - }); - - function closeApp() { - return _closeApp.apply(this, arguments); - } - - return closeApp; - }() - }]); - }(_react.default.Component); - - NavigationBaseScreen.propTypes = { - navigation: _propTypes.default.object, - enablePostponeAction: _propTypes.default.bool - }; - NavigationBaseScreen.defaultProps = { - enablePostponeAction: false - }; -},2212,[3,22,270,6,7,11,85,13,14,582,16,18,436,2213,879,1910,564,1976,438,812]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _OptionalPackages$get = _optionalPackageUtils.default.getScreenshotPrevent(), - RNScreenshotPrevent = _OptionalPackages$get.RNScreenshotPrevent, - addListener = _OptionalPackages$get.addListener; - - var AppUtils = exports.default = function () { - function AppUtils() { - (0, _classCallCheck2.default)(this, AppUtils); - } - - return (0, _createClass2.default)(AppUtils, null, [{ - key: "checkUpdate", - value: function () { - var _checkUpdate = (0, _asyncToGenerator2.default)(function* () { - var state = yield AppUtils.appUpdateState(); - - if (AppUtils.isAppUpgraded(state)) { - yield _tecnaviaFileUtils.default.clearOldVersionFiles(); - yield _UserSettingsHelper.default.removeItem(_UserSettingsHelper.default.SP.keys.last_epaper_layout_config); - yield _ApplicationManager.default.deleteApplicationFolder(); - yield _$$_REQUIRE(_dependencyMap[9]).Feedback.resetCounter(); - - if (yield AppUtils.isAppPreviousThanVersion(3264)) { - yield _NewsmemoryHelper.default.removeItem(_NewsmemoryHelper.default.SP.keys.article_fullscreen_portrait); - } - } else if (AppUtils.isAppNewInstall(state)) { - if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isAndroid()) { - try { - yield _tecnaviaFileUtils.default.unlink(_tecnaviaFileUtils.default.getCacheDirectory()); - } catch (e) {} - } else {} - } - - (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "copy application start"); - yield _ApplicationManager.default.copyApplicationFolder(); - (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "copy application end"); - return state; - }); - - function checkUpdate() { - return _checkUpdate.apply(this, arguments); - } - - return checkUpdate; - }() - }, { - key: "isAppUpdated", - value: function isAppUpdated(state) { - return state === AppUtils.STATE.UPDATED; - } - }, { - key: "isAppUpgraded", - value: function isAppUpgraded(state) { - return state === AppUtils.STATE.UPGRADED; - } - }, { - key: "isAppNewInstall", - value: function isAppNewInstall(state) { - return state === AppUtils.STATE.NEW_INSTALL; - } - }, { - key: "appUpdateState", - value: function () { - var _appUpdateState = (0, _asyncToGenerator2.default)(function* () { - var currentAppVersionCode = global.appVersionCode; - var previousAppVersionCode = yield _UserSettingsHelper.default.getItem(_UserSettingsHelper.default.SP.keys.app_version_code); - - if (currentAppVersionCode) { - if (previousAppVersionCode) { - if (currentAppVersionCode === previousAppVersionCode) { - return AppUtils.STATE.UPDATED; - } - - _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_code, currentAppVersionCode); - - return AppUtils.STATE.UPGRADED; - } - - _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_code, currentAppVersionCode); - - return AppUtils.STATE.NEW_INSTALL; - } - - return AppUtils.STATE.NO_VERSION_SET; - }); - - function appUpdateState() { - return _appUpdateState.apply(this, arguments); - } - - return appUpdateState; - }() - }, { - key: "isAppPreviousThanVersion", - value: function () { - var _isAppPreviousThanVersion = (0, _asyncToGenerator2.default)(function* (version) { - var currentAppVersionName = parseInt(global.appVersionName.replace(/\./g, ""), 10); - var previousAppVersionNameStr = (yield _UserSettingsHelper.default.getItem(_UserSettingsHelper.default.SP.keys.app_version_name)) || ""; - - _UserSettingsHelper.default.setItem(_UserSettingsHelper.default.SP.keys.app_version_name, global.appVersionName); - - var previousAppVersionName = parseInt(previousAppVersionNameStr.replace(/\./g, ""), 10); - - if (!previousAppVersionName) { - return version > AppUtils.DEFAULT_VERSION_CHECKER; - } - - return previousAppVersionName < version; - }); - - function isAppPreviousThanVersion(_x) { - return _isAppPreviousThanVersion.apply(this, arguments); - } - - return isAppPreviousThanVersion; - }() - }, { - key: "enableSecureView", - value: function () { - var _enableSecureView = (0, _asyncToGenerator2.default)(function* () { - if (_optionalPackageUtils.default.isScreenshotPreventAvailable() && _$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS() && !global.__DEV__) { - yield RNScreenshotPrevent.enableSecureView(); - } - }); - - function enableSecureView() { - return _enableSecureView.apply(this, arguments); - } - - return enableSecureView; - }() - }, { - key: "disableSecureView", - value: function () { - var _disableSecureView = (0, _asyncToGenerator2.default)(function* () { - if (_optionalPackageUtils.default.isScreenshotPreventAvailable() && _$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS() && !global.__DEV__) { - yield RNScreenshotPrevent.disableSecureView(); - } - }); - - function disableSecureView() { - return _disableSecureView.apply(this, arguments); - } - - return disableSecureView; - }() - }, { - key: "preventScreenshots", - value: function () { - var _preventScreenshots = (0, _asyncToGenerator2.default)(function* (enabled) { - if (_optionalPackageUtils.default.isScreenshotPreventAvailable()) { - yield RNScreenshotPrevent.enabled(enabled); - - if (enabled) { - yield AppUtils.enableSecureView(); - } else { - yield AppUtils.disableSecureView(); - } - - (0, _$$_REQUIRE(_dependencyMap[11]).addDebugOperation)("AppUtils", "Prevent screenshots setup completed"); - } - }); - - function preventScreenshots(_x2) { - return _preventScreenshots.apply(this, arguments); - } - - return preventScreenshots; - }() - }, { - key: "addScreenshotListener", - value: function addScreenshotListener(callback) { - if (_optionalPackageUtils.default.isScreenshotPreventAvailable()) { - return addListener(callback); - } - - return undefined; - } - }]); - }(); - - AppUtils.DEFAULT_VERSION_CHECKER = 3263; - AppUtils.STATE = { - UNKNOWN: -1, - NO_VERSION_SET: 0, - NEW_INSTALL: 1, - UPGRADED: 2, - UPDATED: 3 - }; -},2213,[3,270,6,7,862,1864,2076,879,566,2214,438,815]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Feedback = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _FeedbackHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var ANALYTICS_PATH = function ANALYTICS_PATH() { - return "/feedback/" + (0, _$$_REQUIRE(_dependencyMap[9]).gaBreakout)() + "/doYouLikeTheApp"; - }; - - var ANALYTICS_PATH_LEFT_REVIEW = "/sendReviewToStore"; - var ANALYTICS_PATH_SEND_EMAIL = "/sendEmailToSupport"; - var ANALYTICS_PATH_RESPONSE_YES = "/yes"; - var ANALYTICS_PATH_RESPONSE_NO = "/no"; - var ANALYTICS_PATH_RESPONSE_DONT_SHOW_AGAIN = "/dontShowAgain"; - var _FeedbackHelper$SP$ke = _FeedbackHelper.default.SP.keys, - active_days_near = _FeedbackHelper$SP$ke.active_days_near, - active_days_total = _FeedbackHelper$SP$ke.active_days_total, - date_session = _FeedbackHelper$SP$ke.date_session, - dialog_timestamp = _FeedbackHelper$SP$ke.dialog_timestamp, - next_dialog_timestamp = _FeedbackHelper$SP$ke.next_dialog_timestamp, - feedback_timestamp = _FeedbackHelper$SP$ke.feedback_timestamp, - user_left_review = _FeedbackHelper$SP$ke.user_left_review, - user_no_show_review_dialog = _FeedbackHelper$SP$ke.user_no_show_review_dialog, - user_no_show_review_timestamp = _FeedbackHelper$SP$ke.user_no_show_review_timestamp, - user_no_show_review_version = _FeedbackHelper$SP$ke.user_no_show_review_version, - user_left_review_app_version = _FeedbackHelper$SP$ke.user_left_review_app_version, - user_likes_app = _FeedbackHelper$SP$ke.user_likes_app, - user_left_feedback = _FeedbackHelper$SP$ke.user_left_feedback, - user_no_show_review_dialog_timestamp = _FeedbackHelper$SP$ke.user_no_show_review_dialog_timestamp; - - var Feedback = exports.Feedback = function () { - function Feedback() { - (0, _classCallCheck2.default)(this, Feedback); - this.enabled = false; - } - - return (0, _createClass2.default)(Feedback, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - this.userLikesApp = yield this.getValue(user_likes_app); - this.userAlreadyLeftReview = (yield this.getValue(user_left_review)) === "1"; - this.userAlreadyLeftFeedback = (yield this.getValue(user_left_feedback)) === "1"; - this.userNoShowReviewDialog = (yield this.getValue(user_no_show_review_dialog)) === "1"; - this.userNoShowReviewVersion = yield this.getValue(user_no_show_review_version); - this.dateSession = yield this.getIntValue(date_session); - this.lastDialogTimestamp = yield this.getValue(dialog_timestamp); - this.nextDialogTimestamp = yield this.getValue(next_dialog_timestamp); - this.lastReviewTimestamp = yield this.getValue(feedback_timestamp); - this.lastDoNotShowTimestamp = yield this.getValue(user_no_show_review_timestamp); - - var _global$getMainPSetup = global.getMainPSetup(), - feedbackEnabled = _global$getMainPSetup.feedbackEnabled, - feedbackConfig = _global$getMainPSetup.feedbackConfig; - - if (feedbackEnabled && feedbackConfig) { - this.enabled = feedbackEnabled; - this.resetDoNotShowAgainAfterUpgrade = this.getAppVersion() !== this.userNoShowReviewVersion; - - if (this.userNoShowReviewDialog && this.resetDoNotShowAgainAfterUpgrade) { - this.userNoShowReviewDialog = false; - this.setValue(user_no_show_review_dialog, "0"); - this.setValue(user_no_show_review_timestamp, ""); - this.setValue(user_no_show_review_version, ""); - } - - var resetTimestamp = feedbackConfig.resetTimestamp; - - if (this.checkTimestampToReset(resetTimestamp)) { - this.dateSession = undefined; - } - - yield global.analyzeUsedSpace(); - } - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "check", - value: function () { - var _check = (0, _asyncToGenerator2.default)(function* () { - yield this.init(); - yield this.checkFeedback(); - }); - - function check() { - return _check.apply(this, arguments); - } - - return check; - }() - }, { - key: "force", - value: function () { - var _force = (0, _asyncToGenerator2.default)(function* () { - yield this.init(); - yield this.requestUserFeedback(); - }); - - function force() { - return _force.apply(this, arguments); - } - - return force; - }() - }, { - key: "getAppVersion", - value: function getAppVersion() { - return "" + global.appVersionCode; - } - }, { - key: "checkTimestampToReset", - value: function checkTimestampToReset(pSetupTimestamp) { - var referenceTimestamp = this.lastDialogTimestamp || this.lastReviewTimestamp; - return pSetupTimestamp && referenceTimestamp && parseInt(referenceTimestamp, 10) < parseInt(pSetupTimestamp, 10); - } - }, { - key: "baseFeedbackCondition", - value: function baseFeedbackCondition() { - if (!this.dateSession) { - return false; - } - - var _global$getMainPSetup2 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup2.feedbackConfig; - - if (!feedbackConfig) { - return false; - } - - var lowerActiveDateRange = feedbackConfig.lowerActiveDateRange; - var timeDif = new Date().getTime() - this.dateSession; - - if (timeDif < lowerActiveDateRange) { - return false; - } - - if (this.userLikesApp === "0") { - return false; - } - - if (this.userAlreadyLeftFeedback) { - return false; - } - - if (this.userAlreadyLeftReview) { - return false; - } - - if (this.userNoShowReviewDialog) { - return false; - } - - if (this.nextDialogTimestamp) { - return _$$_REQUIRE(_dependencyMap[10]).DateUtils.getCurrentDateString() >= this.nextDialogTimestamp; - } - - return true; - } - }, { - key: "initBaseValues", - value: function initBaseValues() { - this.setActiveDaysNear(1); - this.setActiveDaysTotal(1); - this.setValue(dialog_timestamp, ""); - this.setValue(next_dialog_timestamp, ""); - this.setValue(feedback_timestamp, ""); - this.setValue(user_left_review, "0"); - this.setValue(user_no_show_review_dialog, "0"); - this.setValue(user_no_show_review_timestamp, ""); - this.setValue(user_no_show_review_version, ""); - this.setValue(user_left_review_app_version, ""); - this.setValue(user_left_feedback, ""); - this.removeValue(user_likes_app); - } - }, { - key: "checkFeedback", - value: function () { - var _checkFeedback = (0, _asyncToGenerator2.default)(function* () { - if (!this.enabled) { - return; - } - - if (!this.dateSession) { - this.setValue(date_session, new Date().getTime()); - this.initBaseValues(); - return; - } - - if (!this.baseFeedbackCondition()) { - return; - } - - var _global$getMainPSetup3 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup3.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var activeDaysToShow = feedbackConfig.activeDaysToShow, - totalDaysToShow = feedbackConfig.totalDaysToShow, - totalDaysToShowFirstTime = feedbackConfig.totalDaysToShowFirstTime, - lowerActiveDateRange = feedbackConfig.lowerActiveDateRange, - upperActiveDateRange = feedbackConfig.upperActiveDateRange; - this.setValue(date_session, new Date().getTime()); - var activeDaysNear = 1; - var activeDaysTotal = (yield this.getIntValue(active_days_total)) + 1; - this.setActiveDaysTotal(activeDaysTotal); - var totalDaysToCheck = this.lastDialogTimestamp ? totalDaysToShow : totalDaysToShowFirstTime; - var requestFeedback = activeDaysTotal > totalDaysToCheck; - var timeDif = new Date().getTime() - this.dateSession; - - if (timeDif > lowerActiveDateRange && timeDif < upperActiveDateRange) { - activeDaysNear = (yield this.getIntValue(active_days_near)) + 1; - requestFeedback = requestFeedback || activeDaysNear > activeDaysToShow; - } - - this.setActiveDaysNear(activeDaysNear); - - if (requestFeedback) { - this.requestUserFeedback(); - } - }); - - function checkFeedback() { - return _checkFeedback.apply(this, arguments); - } - - return checkFeedback; - }() - }, { - key: "setActiveDaysNear", - value: function () { - var _setActiveDaysNear = (0, _asyncToGenerator2.default)(function* (newValue) { - return this.setValue(active_days_near, newValue); - }); - - function setActiveDaysNear(_x) { - return _setActiveDaysNear.apply(this, arguments); - } - - return setActiveDaysNear; - }() - }, { - key: "setActiveDaysTotal", - value: function () { - var _setActiveDaysTotal = (0, _asyncToGenerator2.default)(function* (newValue) { - return this.setValue(active_days_total, newValue); - }); - - function setActiveDaysTotal(_x2) { - return _setActiveDaysTotal.apply(this, arguments); - } - - return setActiveDaysTotal; - }() - }, { - key: "getMarketUrl", - value: function () { - var _getMarketUrl = (0, _asyncToGenerator2.default)(function* () { - try { - var result = yield _Api.default.getAppStoreMetadata(); - var response = result.data || {}; - var error = response.error, - reviewRatingUrl = response.reviewRatingUrl; - - if (error === 0 && reviewRatingUrl) { - return reviewRatingUrl; - } - } catch (e) {} - - return ""; - }); - - function getMarketUrl() { - return _getMarketUrl.apply(this, arguments); - } - - return getMarketUrl; - }() - }, { - key: "setCoolDownTimestamp", - value: function setCoolDownTimestamp(dontShowAgain) { - var _global$getMainPSetup4 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup4.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var coolDownDays = feedbackConfig.coolDownDays, - coolDownDaysDontShowAgain = feedbackConfig.coolDownDaysDontShowAgain; - var feedbackCoolDownDays = dontShowAgain ? coolDownDaysDontShowAgain : coolDownDays; - var nextDate = new Date(); - nextDate.setDate(nextDate.getDate() + feedbackCoolDownDays); - this.setValue(next_dialog_timestamp, _$$_REQUIRE(_dependencyMap[10]).DateUtils.getCurrentDateString(nextDate)); - } - }, { - key: "getYesNoButtons", - value: function getYesNoButtons(onYesPress, onNoPress) { - return [{ - text: global.strings("btn_yes"), - onPress: onYesPress - }, { - text: global.strings("btn_no"), - onPress: onNoPress - }]; - } - }, { - key: "getDontShowAgainButton", - value: function getDontShowAgainButton() { - var _this = this; - - return { - text: global.strings("btn_do_not_show"), - onPress: function onPress() { - _this.setCoolDownTimestamp(true); - - _this.setValue(user_no_show_review_dialog, "1"); - - _this.setValue(user_no_show_review_version, _this.getAppVersion()); - - _this.setValue(user_no_show_review_dialog_timestamp, _$$_REQUIRE(_dependencyMap[10]).DateUtils.getCurrentDateString()); - - _this.sendDontShow(); - } - }; - } - }, { - key: "requestUserFeedback", - value: function () { - var _requestUserFeedback = (0, _asyncToGenerator2.default)(function* () { - var _this2 = this; - - var _global$getMainPSetup5 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup5.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - this.marketUrl = yield this.getMarketUrl(); - - if (!global.isDebug && !this.marketUrl) { - return; - } - - this.setValue(dialog_timestamp, _$$_REQUIRE(_dependencyMap[10]).DateUtils.getCurrentDateString()); - this.setValue(next_dialog_timestamp, ""); - this.setActiveDaysNear(1); - this.setActiveDaysTotal(1); - var buttons = this.getYesNoButtons(function () { - _this2.setValue(user_likes_app, "1"); - - _this2.askForReview(); - }, function () { - _this2.setValue(user_likes_app, "0"); - - _this2.askForWrittenFeedback(); - }); - var showNotSureYetFirstDialog = feedbackConfig.showNotSureYetFirstDialog, - showDontShowAgainFirstDialog = feedbackConfig.showDontShowAgainFirstDialog, - requestFeedbackTitle = feedbackConfig.requestFeedbackTitle; - - if (showNotSureYetFirstDialog) { - buttons.push({ - text: global.strings("btn_not_sure_yet") - }); - } - - if (showDontShowAgainFirstDialog) { - buttons.push(this.getDontShowAgainButton()); - } - - _$$_REQUIRE(_dependencyMap[11]).CustomAlert.alert("", requestFeedbackTitle, buttons, { - cancelable: false - }); - }); - - function requestUserFeedback() { - return _requestUserFeedback.apply(this, arguments); - } - - return requestUserFeedback; - }() - }, { - key: "askForReview", - value: function askForReview() { - var _this3 = this; - - var _global$getMainPSetup6 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup6.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var showDontShowAgain = feedbackConfig.showDontShowAgain, - requestReviewFeedbackTitle = feedbackConfig.requestReviewFeedbackTitle; - var buttons = this.getYesNoButtons(function () { - _this3.sendEventReview(true); - - _this3.setValue(user_left_review_app_version, _this3.getAppVersion()); - - _this3.setValue(feedback_timestamp, _$$_REQUIRE(_dependencyMap[10]).DateUtils.getCurrentDateString()); - - _this3.setValue(user_left_review, "1"); - - _this3.openAppRating(); - }, function () { - _this3.setCoolDownTimestamp(false); - - _this3.sendEventReview(false); - }); - - if (showDontShowAgain) { - buttons.push(this.getDontShowAgainButton()); - } - - _$$_REQUIRE(_dependencyMap[11]).CustomAlert.alert("", requestReviewFeedbackTitle, buttons, { - cancelable: false - }); - } - }, { - key: "askForWrittenFeedback", - value: function askForWrittenFeedback() { - var _this4 = this; - - var _global$getMainPSetup7 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup7.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var buttons = this.getYesNoButtons((0, _asyncToGenerator2.default)(function* () { - _this4.setValue(user_left_feedback, "1"); - - _this4.sendFeedback(); - - _this4.sendEventEmail(true); - }), function () { - _this4.sendEventEmail(false); - }); - var askForFeedback = feedbackConfig.askForFeedback; - - _$$_REQUIRE(_dependencyMap[11]).CustomAlert.alert("", askForFeedback, buttons, { - cancelable: false - }); - } - }, { - key: "sendFeedbackEmail", - value: function sendFeedbackEmail() { - var automaticFeedback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - - var _global$getMainPSetup8 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup8.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var email = feedbackConfig.email; - - if (!email) { - return; - } - - var message = " AUTOMATIC FEEDBACK: " + automaticFeedback + "\n"; - message += _GlobalConfig.default.getDeviceInfoText(); - message += _GlobalConfig.default.getUsedSpaceText(); - var subject = "Feedback for " + global.appName; - - _reactNativeMail.default.mail({ - subject: subject, - recipients: [email], - body: message, - isHTML: false - }, function () {}); - } - }, { - key: "sendFeedback", - value: function sendFeedback() { - var automaticFeedback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - - var _global$getMainPSetup9 = global.getMainPSetup(), - feedbackConfig = _global$getMainPSetup9.feedbackConfig; - - if (!feedbackConfig) { - return; - } - - var linkForFeedback = feedbackConfig.linkForFeedback; - - if (linkForFeedback) { - _tecnaviaPlatformUtils.default.openURL(linkForFeedback); - - return; - } - - this.sendFeedbackEmail(automaticFeedback); - } - }, { - key: "openAppRating", - value: function openAppRating() { - _tecnaviaPlatformUtils.default.openURL(this.marketUrl); - } - }, { - key: "setValue", - value: function () { - var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { - return _FeedbackHelper.default.setItem(key, "" + value); - }); - - function setValue(_x3, _x4) { - return _setValue.apply(this, arguments); - } - - return setValue; - }() - }, { - key: "getValue", - value: function () { - var _getValue = (0, _asyncToGenerator2.default)(function* (key) { - return _FeedbackHelper.default.getItem(key); - }); - - function getValue(_x5) { - return _getValue.apply(this, arguments); - } - - return getValue; - }() - }, { - key: "removeValue", - value: function removeValue(key) { - return _FeedbackHelper.default.removeItem(key); - } - }, { - key: "getIntValue", - value: function () { - var _getIntValue = (0, _asyncToGenerator2.default)(function* (key) { - return parseInt(yield this.getValue(key), 10); - }); - - function getIntValue(_x6) { - return _getIntValue.apply(this, arguments); - } - - return getIntValue; - }() - }, { - key: "sendEventReview", - value: function sendEventReview(sendReview) { - (0, _$$_REQUIRE(_dependencyMap[12]).trackFeedback)(ANALYTICS_PATH() + ANALYTICS_PATH_RESPONSE_YES + ANALYTICS_PATH_LEFT_REVIEW + (sendReview ? ANALYTICS_PATH_RESPONSE_YES : ANALYTICS_PATH_RESPONSE_NO)); - (0, _$$_REQUIRE(_dependencyMap[12]).trackCustomFirebaseEvent)({ - customEvent: "feedback", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).mapParamsToFirebaseCustomDimensions)(), { - doYouLikeTheApp: "yes", - sendReviewToStore: sendReview ? "yes" : "no" - }) - }); - } - }, { - key: "sendEventEmail", - value: function sendEventEmail(sendEmail) { - (0, _$$_REQUIRE(_dependencyMap[12]).trackFeedback)(ANALYTICS_PATH() + ANALYTICS_PATH_RESPONSE_NO + ANALYTICS_PATH_SEND_EMAIL + (sendEmail ? ANALYTICS_PATH_RESPONSE_YES : ANALYTICS_PATH_RESPONSE_NO)); - (0, _$$_REQUIRE(_dependencyMap[12]).trackCustomFirebaseEvent)({ - customEvent: "feedback", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).mapParamsToFirebaseCustomDimensions)(), { - doYouLikeTheApp: "no", - sendEmailToSupport: sendEmail ? "yes" : "no" - }) - }); - } - }, { - key: "sendDontShow", - value: function sendDontShow() { - (0, _$$_REQUIRE(_dependencyMap[12]).trackFeedback)(ANALYTICS_PATH() + ANALYTICS_PATH_RESPONSE_DONT_SHOW_AGAIN); - (0, _$$_REQUIRE(_dependencyMap[12]).trackCustomFirebaseEvent)({ - customEvent: "feedback", - customParams: Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).mapParamsToFirebaseCustomDimensions)(), { - dontShowAgain: "yes" - }) - }); - } - }], [{ - key: "resetCounter", - value: function () { - var _resetCounter = (0, _asyncToGenerator2.default)(function* () { - try { - yield _FeedbackHelper.default.setItem(active_days_near, "1"); - yield _FeedbackHelper.default.setItem(active_days_total, "1"); - } catch (e) {} - }); - - function resetCounter() { - return _resetCounter.apply(this, arguments); - } - - return resetCounter; - }() - }]); - }(); -},2214,[3,270,6,7,2160,407,2143,2215,2039,1906,438,812,1910]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var FeedbackHelper = exports.default = function () { - function FeedbackHelper() { - (0, _classCallCheck2.default)(this, FeedbackHelper); - } - - return (0, _createClass2.default)(FeedbackHelper, null, [{ - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(FeedbackHelper.SP.name, key); - }); - - function getItem(_x) { - return _getItem.apply(this, arguments); - } - - return getItem; - }() - }, { - key: "setItem", - value: function () { - var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(FeedbackHelper.SP.name, key, value); - }); - - function setItem(_x2, _x3) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "removeItem", - value: function () { - var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(FeedbackHelper.SP.name, key); - }); - - function removeItem(_x4) { - return _removeItem.apply(this, arguments); - } - - return removeItem; - }() - }]); - }(); - - FeedbackHelper.SP = { - name: "feedback", - keys: { - dialog_timestamp: "dialogTimestamp", - next_dialog_timestamp: "nextDialogTimestamp", - user_likes_app: "userLikesApp", - user_left_review: "userLeftReview", - user_left_feedback: "userLeftFeedback", - user_left_review_app_version: "userLeftReviewAppVersion", - user_no_show_review_version: "userNoShowReviewVersion", - user_no_show_review_dialog: "userNoShowReviewDialog", - user_no_show_review_timestamp: "userNoShowReviewDialogTimestamp", - feedback_timestamp: "feedbackTimestamp", - date_session: "dateSession", - active_days_near: "activeDaysNear", - active_days_total: "activeDaysTotal" - } - }; -},2215,[3,270,6,7,438]); +},2236,[3,33,16,18,436,438,564,2214,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301797,8 +305159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var cssKey = _$$_REQUIRE(_dependencyMap[16]).StringUtils.getKeyFromText(displayName); - var color = _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor(); - + var color = _$$_REQUIRE(_dependencyMap[14]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultForegroundColor() : _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor(); return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { classes: ["rss-button", "rss-custom-action-bar-button"], cssKey: cssKey, @@ -301815,7 +305176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_imageIconChooserComponent.default, { forceRNComponent: true, style: { - width: 30 + height: 25 }, source: { uri: image, @@ -302081,7 +305442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: [actionBar, barComponent] }); } -},2216,[3,4,16,18,1324,2209,2049,434,2198,566,2039,814,1941,2211,817,2210,438,2217,179,2218,1807,2044,1244]); +},2237,[3,4,16,18,1327,2236,2032,434,2187,566,2022,817,1899,2231,820,2214,438,2238,179,2239,1812,2027,1247]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302185,11 +305546,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlign: "right", textTransform: "uppercase", fontSize: 12, - fontWeight: "bold", - color: _$$_REQUIRE(_dependencyMap[1]).colors.white + fontWeight: "bold" } }); -},2217,[18,438]); +},2238,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302437,91 +305797,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buttonStyle: buttonLayoutStyle }, props)); } -},2218,[3,33,16,18,1907,862,2026,1881,2219,1807,588,179,817,2217,2220,438,2221]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Circle = undefined; - exports.default = TecnaviaButton; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["style", "onPress"], - _excluded2 = ["style"]; - - var styles = _reactNative.StyleSheet.create({ - btn: { - width: "100%", - height: 50, - paddingHorizontal: 10, - borderWidth: 0.3, - borderColor: _$$_REQUIRE(_dependencyMap[5]).colors.transparent200, - borderRadius: 20, - alignItems: "center", - justifyContent: "space-evenly", - flexDirection: "row" - }, - text: { - flex: 1, - textAlign: "center", - color: _$$_REQUIRE(_dependencyMap[5]).colors.black - } - }); - - function TecnaviaButton(props) { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.TouchableOpacity, Object.assign({}, props)); - } - - function Button(props) { - var style = props.style, - onPress = props.onPress, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - var foregroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); - - if (typeof onPress === "function") { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.TouchableOpacity, Object.assign({ - style: [styles.btn, { - borderColor: foregroundColor - }, style], - onPress: onPress - }, rest)); - } - - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, Object.assign({ - style: [styles.btn, { - borderColor: foregroundColor - }, style] - }, rest)); - } - - function Text(props) { - var style = props.style, - rest = (0, _objectWithoutProperties2.default)(props, _excluded2); - - var foregroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_fontText.default, Object.assign({ - style: [styles.text, { - color: foregroundColor - }, style], - numberOfLines: 1, - adjustsFontSizeToFit: true - }, rest)); - } - - var Circle = exports.Circle = { - Button: Button, - Text: Text - }; -},2219,[3,4,16,18,814,438,179,817]); +},2239,[3,33,16,18,1943,865,1986,1870,2228,1812,588,179,820,2238,2240,438,2241]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -302533,7 +305809,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "text_banner", "type": "png" }); -},2220,[1258]); +},2240,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302548,7 +305824,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2221,[2222]); +},2241,[2242]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302666,2818 +305942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buttonStyle: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.object]), backgroundColor: _propTypes.default.string }; -},2222,[3,6,7,11,13,14,16,582,436,1807,2219,564,179,817]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _UserSettingsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var LandingPageScreen = exports.default = function (_NavigationBaseScreen) { - function LandingPageScreen() { - (0, _classCallCheck2.default)(this, LandingPageScreen); - return _callSuper(this, LandingPageScreen, arguments); - } - - (0, _inherits2.default)(LandingPageScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(LandingPageScreen, [{ - key: "getTag", - value: function getTag() { - return "Landing Page"; - } - }, { - key: "_dontShowAgain", - value: function _dontShowAgain(value) { - global.getUserSettings().setValue(_UserSettingsHelper.default.SP.keys.landing_page_dont_show_again, value); - } - }, { - key: "render", - value: function render() { - var _this = this; - - var _this$props = this.props, - navigation = _this$props.navigation, - destinationScreen = _this$props.destinationScreen; - - var _global$getMainPSetup = global.getMainPSetup(), - landingPageURL = _global$getMainPSetup.landingPageURL; - - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).BaseWebView, { - innerRef: function innerRef(ref) { - _this.webview = ref; - }, - onLocal: function onLocal(_ref) { - var domain = _ref.domain, - getParams = _ref.getParams; - - switch (domain) { - case "xc_doNotShowLandingPageAnymore": - _this._dontShowAgain(getParams.doNotShow === "true" ? "1" : "0"); - - break; - - case "xc_closeLandingPage": - navigation.navigate(destinationScreen); - break; - } - }, - source: { - uri: landingPageURL - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2223,[3,6,7,11,13,14,16,2076,179,2055,2211]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EpaperModeSelectionScreen = exports.default = function (_NavigationBaseScreen) { - function EpaperModeSelectionScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EpaperModeSelectionScreen); - _this = _callSuper(this, EpaperModeSelectionScreen, [props, {}]); - _this.onMessage = _this._onMessage.bind(_this); - _this.onRef = _this._onRef.bind(_this); - _this.onLoadEnd = _this._onLoadEnd.bind(_this); - _this.onClose = _this._onClose.bind(_this); - return _this; - } - - (0, _inherits2.default)(EpaperModeSelectionScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EpaperModeSelectionScreen, [{ - key: "getTag", - value: function getTag() { - return "ePaper Mode Selection"; - } - }, { - key: "_onMessage", - value: function () { - var _onMessage2 = (0, _asyncToGenerator2.default)(function* (message) { - if (message.type === "GET_RESOURCES") { - var sources = message.content; - var newSources = {}; - - for (var i = 0; i < sources.length; i++) { - var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[13]).StringUtils.segmentUrl(sources[i]), - domain = _StringUtils$segmentU.domain; - - var icon = global.getEpaperLayoutConfig().getIconByAction(domain); - - if (icon) { - try { - var base64 = yield (0, _$$_REQUIRE(_dependencyMap[14]).getBase64)({ - type: icon.getLibrary(), - name: icon.getIcon(), - source: icon.getIcon(), - size: 50 - }); - newSources[sources[i]] = base64; - } catch (e) {} - } - } - - if (this.webview) { - this.webview._execJavaScript(_webUtils.default.replaceResourcesInPage(newSources)); - } - } - }); - - function _onMessage(_x) { - return _onMessage2.apply(this, arguments); - } - - return _onMessage; - }() - }, { - key: "_onRef", - value: function _onRef(ref) { - this.webview = ref; - } - }, { - key: "_onLoadEnd", - value: function _onLoadEnd() { - if (this.webview) { - this.webview._execJavaScript(_webUtils.default.getImagesInsidePage()); - } - } - }, { - key: "_onClose", - value: function _onClose() { - var navigation = this.props.navigation; - - if (navigation) { - navigation.goBack(); - } - } - }, { - key: "render", - value: function render() { - var _global$getNewsmemory = global.getNewsmemoryConfig(), - epaperStartMode = _global$getNewsmemory.epaperStartMode; - - var params = Object.assign({}, _Api.default.getDefaultParams(), _NewsmemoryAJAX.default.getDefaultGETParams(), { - action: "epaperMode", - mode: epaperStartMode - }); - - var uri = "" + _NewsmemoryAJAX.default.baseUrl(); - - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[16]).TecnaviaSafeAreaView, { - style: { - flex: 1, - backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.black - }, - children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[17]).Css, { - classes: ["epaper-mode-selection"], - children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNative.View, { - style: { - flex: 1, - backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.white - }, - children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[18]).BaseOptionspage, { - forceFullscreen: true, - ref: this.onRef, - onMessage: this.onMessage, - onTabLoaded: this.onLoadEnd, - onClose: this.onClose, - url: uri, - closeType: _$$_REQUIRE(_dependencyMap[19]).closeTypes.none, - getParams: params - }) - }) - }) - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[20]).NavigationBaseScreen); -},2224,[3,270,6,7,11,13,14,16,18,866,407,406,1863,438,1941,179,2210,817,2225,878,2211]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.BaseOptionspage = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[11]); - - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _LoginManager = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _IAPHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _optionspageUtils = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[17])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _closeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - - var _settingDebug = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); - - var _keyboardAvoidingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); - - var _excluded = ["type", "asyncKey"]; - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var BaseOptionspage = exports.BaseOptionspage = function (_Shortcut) { - function BaseOptionspage(props) { - var _this; - - (0, _classCallCheck2.default)(this, BaseOptionspage); - _this = _callSuper(this, BaseOptionspage, [props]); - var _this$props = _this.props, - tab = _this$props.tab, - url = _this$props.url, - getParams = _this$props.getParams, - closeType = _this$props.closeType, - forceFullscreen = _this$props.forceFullscreen; - - var otherParams = _this._appendOthersParams(getParams); - - var uri = tab ? _optionspageUtils.default.getTabUrl(tab, otherParams) : null; - - if (!uri) { - uri = url ? _optionspageUtils.default.getCustomUrl(url, otherParams) : null; - } - - _this.canGoBack = false; - _this.openTab = _this._openTab.bind(_this); - _this.handleLocals = _this._handleLocals.bind(_this); - _this.onLoading = _this._onLoading.bind(_this); - _this.onLoadEnd = _this._onLoadEnd.bind(_this); - _this.onMessage = _this._onMessage.bind(_this); - _this.onError = _this._onError.bind(_this); - _this.cancel = _this._cancel.bind(_this); - _this.reload = _this._reload.bind(_this); - _this.close = _this._close.bind(_this); - _this.retries = 0; - _this.state = { - uri: uri, - closeType: closeType || _optionspageUtils.closeTypes.close, - forceFullscreen: forceFullscreen, - hidden: false - }; - return _this; - } - - (0, _inherits2.default)(BaseOptionspage, _Shortcut); - return (0, _createClass2.default)(BaseOptionspage, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseOptionspage.prototype), "componentDidMount", this).call(this); - this.openActionListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.OPEN_OPTIONSPAGE, this.openTab); - this.closeActionListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.CLOSE_OPTIONSPAGE, function () { - _this2.close(true); - }); - this.onStateChangeForeground = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, function () { - var uri = _this2.state.uri; - - if (_$$_REQUIRE(_dependencyMap[23]).NetworkUtils.isOnline() && _this2.webview && uri !== null) { - var currentTab = _optionspageUtils.default.getTabByURL(_this2.currentUrl); - - if (currentTab && currentTab !== _optionspageUtils.tabs.login && currentTab !== _optionspageUtils.tabs.access && currentTab !== _optionspageUtils.tabs.account) { - _this2.reload(); - } - } - }); - this.orientationListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function (_ref) { - var orientation = _ref.orientation; - - _this2.forceUpdate(function () { - var angle = 0; - - if (orientation === _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.LANDSCAPE) { - angle = 90; - } else if (orientation === _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.PORTRAIT_UP_SIDE_DOWN) { - angle = 180; - } - - _this2._execJavaScript("xcj_rotateWindow(" + angle + ");"); - }); - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseOptionspage.prototype), "componentWillUnmount", this).call(this); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.openActionListener); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.closeActionListener); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.onStateChangeForeground); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.orientationListener); - } - }, { - key: "getTag", - value: function getTag() { - return "Options Page"; - } - }, { - key: "_handleShortcut", - value: function _handleShortcut() { - var _this$state = this.state, - uri = _this$state.uri, - hidden = _this$state.hidden; - - if (uri && !hidden) { - var ANY = _$$_REQUIRE(_dependencyMap[24]).KEY_GROUPS.ANY, - CLOSE = _$$_REQUIRE(_dependencyMap[24]).KEY_GROUPS.CLOSE; - - return [{ - callback: this.close, - keys: CLOSE, - stopPropagation: true - }, { - callback: this.noop, - keys: ANY, - stopPropagation: true - }]; - } - - return []; - } - }, { - key: "_openTab", - value: function _openTab(_ref2) { - var tab = _ref2.tab, - getParams = _ref2.getParams, - url = _ref2.url, - closeType = _ref2.closeType, - forceFullscreen = _ref2.forceFullscreen, - hidden = _ref2.hidden; - - var isOnline = _$$_REQUIRE(_dependencyMap[23]).NetworkUtils.isOnline(); - - if (isOnline) { - try { - var uri = url ? _optionspageUtils.default.getCustomUrl(url, getParams) : _optionspageUtils.default.getTabUrl(tab, this._appendOthersParams(getParams)); - this.setState({ - uri: uri, - closeType: closeType, - forceFullscreen: forceFullscreen, - hidden: hidden - }); - } catch (e) { - _$$_REQUIRE(_dependencyMap[25]).Toast.show(global.strings("system_error")); - } - } else { - _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert("", global.strings("err_offline")); - } - } - }, { - key: "goToRssNavigator", - value: function goToRssNavigator() { - _NavigationService.default.main.reset("RssNavigator"); - } - }, { - key: "goToNewsMemoryNavigator", - value: function goToNewsMemoryNavigator() { - _NavigationService.default.main.reset("NewsmemoryNavigator"); - } - }, { - key: "_goBack", - value: function _goBack() { - this.setState({ - uri: null - }); - } - }, { - key: "_appendOthersParams", - value: function _appendOthersParams() { - var getParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return getParams; - } - }, { - key: "_cancel", - value: function _cancel() { - this.close(true); - } - }, { - key: "_reload", - value: function _reload() { - var _this$webview; - - (_this$webview = this.webview) == null ? undefined : _this$webview.reload(); - } - }, { - key: "_close", - value: function _close(force) { - this.setState({ - uri: null - }); - } - }, { - key: "postMessage", - value: function postMessage(js) { - var _this$webview2; - - (_this$webview2 = this.webview) == null ? undefined : _this$webview2.injectJavaScript("try{ window.ReactNativeWebView.postMessage(JSON.stringify(" + js + ")); }catch(e){console.log(e.message)}"); - } - }, { - key: "_onMessage", - value: function () { - var _onMessage2 = (0, _asyncToGenerator2.default)(function* (data) { - var onMessage = this.props.onMessage; - var type = data.type, - asyncKey = data.asyncKey, - rest = (0, _objectWithoutProperties2.default)(data, _excluded); - - if (type.includes("TAB_TITLE") && rest.title) { - var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); - - if (currentTab) { - (0, _$$_REQUIRE(_dependencyMap[27]).sendNewsmemoryOptionspage)(currentTab, rest.title); - } - } else { - var asyncMethod = "resolve"; - var asyncResult = ""; - - if (type.includes(_optionspageUtils.locals.FACEBOOK_LOGIN)) { - try { - var profile = yield (0, _$$_REQUIRE(_dependencyMap[28]).facebookLogin)(rest); - asyncResult = JSON.stringify(profile); - } catch (e) { - asyncMethod = "reject"; - asyncResult = e.message; - } - } - - if (asyncKey) { - this._execJavaScript("awaitPostMessage('" + asyncKey + "', '" + asyncMethod + "', '" + asyncResult + "');"); - } - } - - if (typeof onMessage === "function") { - onMessage(data); - } - }); - - function _onMessage(_x) { - return _onMessage2.apply(this, arguments); - } - - return _onMessage; - }() - }, { - key: "_onError", - value: function _onError(nativeEvent) { - if (this.retries === 0) { - this.retries++; - this.reload(); - } else { - this.retries = 0; - var buttons = []; - buttons.push({ - text: global.strings("btn_cancel"), - onPress: this.cancel - }, { - text: global.strings("retry"), - onPress: this.reload - }); - - _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert("", global.strings("system_error"), buttons, { - cancelable: false - }); - } - } - }, { - key: "_handleLocals", - value: function () { - var _handleLocals2 = (0, _asyncToGenerator2.default)(function* (_ref3) { - var _this3 = this; - - var domain = _ref3.domain, - getParams = _ref3.getParams; - var newsmemoryConfig = global.getNewsmemoryConfig(); - - if (domain.includes(_optionspageUtils.locals.OPEN_RSS)) { - this.goToRssNavigator(); - } else if (domain.includes(_optionspageUtils.locals.OPEN_TAB_HOME)) { - this._resetToHome(); - } else if (domain.includes(_optionspageUtils.locals.CLOSE) || domain.includes(_optionspageUtils.locals.CLOSE_WINDOW)) { - this._close(true); - } else if (domain.includes(_optionspageUtils.locals.GO_BACK)) { - this._goBack(); - } else if (domain.includes(_optionspageUtils.locals.OPEN_BROWSER) || domain.includes(_optionspageUtils.locals.OPEN_BROWSER_ALT)) { - var url = getParams.url, - callback = getParams.callback, - close = getParams.close; - - if (url) { - var extraNavigationParams = {}; - - if (url.indexOf("archiveSearch=1") !== -1) { - extraNavigationParams.screenTitle = global.strings("btn_archive"); - extraNavigationParams.isArchive = true; - } - - _NavigationService.default.main.navigate("WebScreen", Object.assign({ - url: url, - onClose: function onClose() { - _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.colorBars(); - } - }, extraNavigationParams)); - } - - if (callback) { - this._execJavaScript(callback + "();"); - } - - if (close && close === "1") { - this._close(true); - } - } else if (domain.includes(_optionspageUtils.locals.ALERT)) { - var title = getParams.title, - message = getParams.message, - okLabel = getParams.okLabel; - var buttons = []; - buttons.push({ - text: okLabel || global.strings("btn_ok") - }); - - _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert(title, message, buttons, { - cancelable: false - }); - } else if (domain.includes(_optionspageUtils.locals.CONFIRM)) { - var _title = getParams.title, - _message = getParams.message, - _okLabel = getParams.okLabel, - cancelLabel = getParams.cancelLabel, - _callback = getParams.callback; - var _buttons = []; - - _buttons.push({ - text: cancelLabel || global.strings("btn_cancel"), - onPress: function onPress() { - _this3._confirmResult(_callback, false); - } - }, { - text: _okLabel || global.strings("btn_ok"), - onPress: function onPress() { - _this3._confirmResult(_callback, true); - } - }); - - _$$_REQUIRE(_dependencyMap[26]).CustomAlert.alert(_title, _message, _buttons, { - cancelable: false - }); - } else if (domain.includes(_optionspageUtils.locals.GET_USED_SPACE)) { - yield global.analyzeUsedSpace(); - - var _global$getUsedSpace = global.getUsedSpace(), - usedSpace = _global$getUsedSpace.usedSpace, - numberOfPapersDirs = _global$getUsedSpace.numberOfPapersDirs, - numberOfIssuesDirs = _global$getUsedSpace.numberOfIssuesDirs, - numberOfPagesDirs = _global$getUsedSpace.numberOfPagesDirs; - - this._execJavaScript("xcj_getIssuesUsedSpaceResult(" + usedSpace + "," + numberOfPapersDirs + "," + numberOfIssuesDirs + "," + numberOfPagesDirs + ");"); - } else if (domain.includes(_optionspageUtils.locals.GET_CONFIG_DUMP)) { - this._execJavaScript("xcj_getConfigDump('" + JSON.stringify(newsmemoryConfig) + "');"); - } else if (domain.includes(_optionspageUtils.locals.GET_KEY)) { - var js = yield (0, _$$_REQUIRE(_dependencyMap[29]).getKey)(getParams); - - this._execJavaScript(js); - } else if (domain.includes(_optionspageUtils.locals.SET_KEY)) { - var _js = (0, _$$_REQUIRE(_dependencyMap[29]).setKey)(getParams); - - this._execJavaScript(_js); - } else if (domain.includes(_optionspageUtils.locals.REMOVE_KEY)) { - var key = getParams.key; - newsmemoryConfig.removeValue(key); - } else if (domain.includes(_optionspageUtils.locals.SET_PREF_EDI)) { - var _key = getParams.key, - value = getParams.value; - newsmemoryConfig.setValue(_key, value); - } else if (domain.includes(_optionspageUtils.locals.RETURN_FROM_LOGIN)) { - (0, _$$_REQUIRE(_dependencyMap[27]).sendNewsmemoryLoginEvent)("start login"); - - if (this.baseRef) { - this.baseRef.showLoading(); - } - - var pSetup = getParams.pSetup, - machine = getParams.machine, - username = getParams.username, - password = getParams.password, - challenge = getParams.challenge, - remember = getParams.remember, - TAUID = getParams.TAUID, - token = getParams.token, - TOKEN = getParams.TOKEN, - extid = getParams.extid; - var tokenToUse = token; - - if (TOKEN) { - tokenToUse = TOKEN; - } - - var result = yield _LoginManager.default.login({ - pSetup: pSetup, - machine: machine, - username: username, - password: password, - challenge: challenge, - remember: remember, - TAUID: TAUID, - token: tokenToUse, - extid: extid - }); - - if (result != null && result.data) { - this._execJavaScript("xcj_loginResults(" + result.TAUID + ",'" + JSON.stringify(result.data) + "');"); - } else { - var params = this.props.getParams; - var jsCode; - - var home = _optionspageUtils.default.getTabUrl(_optionspageUtils.tabs.home, this._appendOthersParams(params)); - - if (username === global.machineId && this.currentUrl && _optionspageUtils.default.isSamePage(this.currentUrl, home)) { - var data = { - protError: 0, - pSetup: pSetup - }; - jsCode = "xcj_loginResults(" + TAUID + ",'" + JSON.stringify(data) + "');"; - } else { - jsCode = "xcj_loginResults(-1,'" + JSON.stringify({ - protError: _LoginManager.PROT_ERROR.NOT_LOGGEDIN - }) + "');"; - } - - this._execJavaScript(jsCode); - } - - if (this.baseRef) { - this.baseRef.hideLoading(); - } - } else if (domain.includes(_optionspageUtils.locals.LOGOUT)) { - yield _LoginManager.default.logout(); - } else if (domain.includes(_optionspageUtils.locals.STORE_USER_INFO)) { - var paperName = getParams.paperName, - _username = getParams.username, - _password = getParams.password, - extra = getParams.extra; - - if (_username) { - newsmemoryConfig.setValue(paperName + "_username", _username); - } - - if (_password) { - newsmemoryConfig.setValue(paperName + "_password", _password); - } - - if (extra) { - newsmemoryConfig.setValue(paperName + "_extra", extra); - } - - yield _LoginManager.default.storeClassicCustomLoginStatus({ - paperName: paperName, - username: _username, - password: _password, - extra: extra - }); - - this._execJavaScript("xcj_storeUserInfo();"); - } else if (domain.includes(_optionspageUtils.locals.GET_USER_INFO)) { - var _paperName = getParams.paperName; - - var _username2 = yield newsmemoryConfig.getValue(_paperName + "_username"); - - var _password2 = yield newsmemoryConfig.getValue(_paperName + "_password"); - - var _extra = yield newsmemoryConfig.getValue(_paperName + "_extra"); - - if (!_username2) { - var _yield$LoginManager$c = yield _LoginManager.default.checkClassicLoginStatus(_paperName); - - _username2 = _yield$LoginManager$c.username; - _password2 = _yield$LoginManager$c.password; - _extra = _yield$LoginManager$c.extra; - - if (_username2) { - newsmemoryConfig.setValue(_paperName + "_username", _username2); - } - - if (_password2) { - newsmemoryConfig.setValue(_paperName + "_password", _password2); - } - - if (_extra) { - newsmemoryConfig.setValue(_paperName + "_extra", _extra); - } - } - - var usernameValue = _username2 || ""; - var passwordValue = _password2 || ""; - var extraValue = _extra || ""; - - this._execJavaScript("xcj_getUserInfo('" + usernameValue + "', '" + passwordValue + "', '" + extraValue + "');"); - } else if (domain.includes(_optionspageUtils.locals.SHOW_DEBUG_INFO)) { - if (this.debugRef) { - this.debugRef._expand(); - } - } else if (domain.includes(_optionspageUtils.locals.DISPLAY_LOADER)) { - var show = getParams.show; - - if (this.baseRef) { - if (show === "1") { - this.baseRef.showLoading(); - } else { - this.baseRef.hideLoading(); - } - } - } else {} - }); - - function _handleLocals(_x2) { - return _handleLocals2.apply(this, arguments); - } - - return _handleLocals; - }() - }, { - key: "_resetToHome", - value: function _resetToHome() { - this.setState({ - uri: null - }, this._goBack); - } - }, { - key: "_retrieveTabTitle", - value: function _retrieveTabTitle(currentTab) { - if (currentTab) { - this.postMessage("{ type: 'TAB_TITLE', title: $('#myNavbar li.active a').html()}"); - } - } - }, { - key: "_onLoading", - value: function _onLoading(segments) { - var domain = segments.domain; - var closeType = this.state.closeType; - - var isTecnaviaDomain = _$$_REQUIRE(_dependencyMap[23]).StringUtils.isTecnaviaDomain(domain); - - if (!isTecnaviaDomain) { - this.setState({ - closeType: _optionspageUtils.closeTypes.back - }); - } else if (closeType === _optionspageUtils.closeTypes.back) { - this.setState({ - closeType: _optionspageUtils.closeTypes.close - }); - } - } - }, { - key: "_onLoadEnd", - value: function _onLoadEnd(nativeEvent) { - if (!nativeEvent) { - return; - } - - if (typeof nativeEvent.code === "undefined") { - this.retries = 0; - } - - var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); - - this._retrieveTabTitle(currentTab); - - var onTabLoaded = this.props.onTabLoaded; - - if (typeof onTabLoaded === "function") { - onTabLoaded(currentTab); - } - } - }, { - key: "_confirmResult", - value: function _confirmResult(callback, result) { - if (callback) { - var boolString = result ? "true" : "false"; - - this._execJavaScript(callback + "(" + boolString + ");"); - } - } - }, { - key: "_execJavaScript", - value: function _execJavaScript(jsToExec) { - if (this.webview && jsToExec) { - this.webview.injectJavaScript("try { " + jsToExec + " } catch (e) { };"); - } - } - }, { - key: "_onClose", - value: function _onClose() { - var onClose = this.props.onClose; - - if (typeof onClose === "function") { - onClose(); - } - - if (this.prevNewsmemoryConfig && !_$$_REQUIRE(_dependencyMap[23]).JSUtils.equals(this.prevNewsmemoryConfig, global.getNewsmemoryConfig())) { - _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.NEWSMEMORY_CONFIG_CHANGE, { - previousConfig: this.prevNewsmemoryConfig - }); - } - } - }, { - key: "_onOpen", - value: function _onOpen() { - var onOpen = this.props.onOpen; - var hidden = this.state.hidden; - - if (!hidden && typeof onOpen === "function") { - onOpen(); - } - - this.prevNewsmemoryConfig = Object.assign({}, global.getNewsmemoryConfig()); - } - }, { - key: "_getCustomStyle", - value: function _getCustomStyle() { - var style = this.props.style; - return style; - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var backgroundColor = this.props.backgroundColor; - var _this$state2 = this.state, - uri = _this$state2.uri, - closeType = _this$state2.closeType, - forceFullscreen = _this$state2.forceFullscreen, - hidden = _this$state2.hidden; - - _IAPHelper.default.resetServerCallback(); - - if (!uri) { - this._onClose(); - - return null; - } - - this._onOpen(); - - var style = []; - - var customStyle = this._getCustomStyle(); - - var _global$getActivePSet = global.getActivePSetup(), - optionspageConfig = _global$getActivePSet.optionspageConfig, - overrideNewsMemoryUserAgent = _global$getActivePSet.overrideNewsMemoryUserAgent; - - if (hidden) { - style = _$$_REQUIRE(_dependencyMap[30]).styles.hidden; - } else if (!forceFullscreen && optionspageConfig.isModal()) { - style = [_$$_REQUIRE(_dependencyMap[30]).styles.modal, _$$_REQUIRE(_dependencyMap[30]).styles.main, optionspageConfig.getCoordinates(), customStyle]; - } else { - style = [_$$_REQUIRE(_dependencyMap[30]).styles.fullscreen, _$$_REQUIRE(_dependencyMap[30]).styles.main, customStyle]; - } - - var closeButton; - - if (!hidden && closeType !== _optionspageUtils.closeTypes.none) { - if (closeType === _optionspageUtils.closeTypes.back) { - closeButton = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_closeComponent.default, { - source: _$$_REQUIRE(_dependencyMap[32]), - parentStyle: _$$_REQUIRE(_dependencyMap[30]).styles.closeIcon, - cssProps: { - classes: ["newsmemory-icon", "newsmemory-close-icon", "optionspage-icon", "optionspage-back-icon"] - }, - onPress: function onPress() { - _this4._goBack(); - } - }); - } else { - closeButton = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_closeComponent.default, { - parentStyle: _$$_REQUIRE(_dependencyMap[30]).styles.closeIcon, - cssProps: { - classes: ["newsmemory-icon", "newsmemory-close-icon", "optionspage-icon", "optionspage-close-icon"] - }, - onPress: function onPress() { - _this4._close(); - } - }); - } - } - - var userAgent = overrideNewsMemoryUserAgent || _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.getUserAgent(); - - var optionspage = (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[33]).Css, { - classes: ["optionspage"], - children: (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_reactNative.View, { - style: style, - children: (0, _$$_REQUIRE(_dependencyMap[31]).jsxs)(_keyboardAvoidingComponent.default, { - children: [(0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[34]).BaseWebView, { - ref: function ref(_ref4) { - _this4.baseRef = _ref4; - }, - innerRef: function innerRef(ref) { - _this4.webview = ref; - }, - source: { - uri: uri - }, - browser: true, - progressColor: _newsmemoryUtils.default.getSpinnerColor(), - onLocal: this.handleLocals, - onLoading: this.onLoading, - onLoadEnd: this.onLoadEnd, - onMessage: this.onMessage, - automaticallyAdjustContentInsets: true, - scalesPageToFit: false, - onNavigationStateChange: function onNavigationStateChange(navState) { - _this4.canGoBack = navState.canGoBack; - _this4.currentUrl = navState.url; - }, - enableKeyboardResize: _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.isAndroid(), - startInLoadingState: hidden ? _$$_REQUIRE(_dependencyMap[35]).LoadingStatePosition.none : _$$_REQUIRE(_dependencyMap[35]).LoadingStatePosition.center, - userAgent: userAgent, - onError: this.onError - }), closeButton, (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_settingDebug.default, { - ref: function ref(_ref5) { - _this4.debugRef = _ref5; - }, - numberOfTapToDebug: 1, - hidden: true - })] - }) - }) - }); - var backgroundStyle = [_$$_REQUIRE(_dependencyMap[30]).styles.background]; - - if (backgroundColor) { - backgroundStyle.push({ - backgroundColor: backgroundColor - }); - } - - return optionspageConfig.isModal() && !forceFullscreen ? (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_$$_REQUIRE(_dependencyMap[33]).Css, { - classes: ["optionspage-modal-container"], - children: (0, _$$_REQUIRE(_dependencyMap[31]).jsx)(_reactNative.View, { - style: backgroundStyle, - children: optionspage - }) - }) : optionspage; - } - }]); - }(_$$_REQUIRE(_dependencyMap[36]).Shortcut); - - BaseOptionspage.propTypes = Object.assign({ - url: _propTypes.default.string, - tab: _propTypes.default.string, - getParams: _propTypes.default.object, - onOpen: _propTypes.default.func, - onClose: _propTypes.default.func, - closeType: _propTypes.default.string, - onMessage: _propTypes.default.func, - onTabLoaded: _propTypes.default.func, - backgroundColor: _propTypes.default.string, - forceFullscreen: _propTypes.default.bool, - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]) - }, _$$_REQUIRE(_dependencyMap[36]).Shortcut.propTypes); - BaseOptionspage.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[36]).Shortcut.defaultProps, { - shortcutEnabled: true, - forceFullscreen: false - }); -},2225,[3,4,270,6,7,11,85,13,14,582,16,18,1863,2056,436,1865,627,878,1881,2226,2229,854,564,438,1908,1976,812,1900,2058,2236,2237,179,1728,817,2055,2040,1984]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _simpleButtonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var CloseNewsmemory = exports.default = function (_React$Component) { - function CloseNewsmemory() { - (0, _classCallCheck2.default)(this, CloseNewsmemory); - return _callSuper(this, CloseNewsmemory, arguments); - } - - (0, _inherits2.default)(CloseNewsmemory, _React$Component); - return (0, _createClass2.default)(CloseNewsmemory, [{ - key: "render", - value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_simpleButtonComponent.default, Object.assign({}, this.props)); - } - }]); - }(_react.default.Component); - - CloseNewsmemory.propTypes = Object.assign({ - source: _propTypes.default.any, - library: _propTypes.default.string - }, _simpleButtonComponent.default.propTypes); - CloseNewsmemory.defaultProps = { - source: _$$_REQUIRE(_dependencyMap[10]), - library: undefined - }; -},2226,[3,6,7,11,13,14,16,582,2227,179,1758]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _simpleButtonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var SimpleButton = exports.default = function (_React$Component) { - function SimpleButton(props) { - var _this; - - (0, _classCallCheck2.default)(this, SimpleButton); - _this = _callSuper(this, SimpleButton, [props]); - var visible = props.visible; - _this.state = { - visible: visible - }; - _this.onPress = _this._onPress.bind(_this); - return _this; - } - - (0, _inherits2.default)(SimpleButton, _React$Component); - return (0, _createClass2.default)(SimpleButton, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var toVisibleEvent = this.props.toVisibleEvent; - - if (toVisibleEvent) { - this.onToVisibleListener = _$$_REQUIRE(_dependencyMap[11]).EventRegister.on(toVisibleEvent, function (_ref) { - var visible = _ref.visible; - - _this2.setState({ - visible: visible - }); - }); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.rm(this.onToVisibleListener); - } - }, { - key: "show", - value: function show() { - this._updateVisibility(true); - } - }, { - key: "hide", - value: function hide() { - this._updateVisibility(false); - } - }, { - key: "_updateVisibility", - value: function _updateVisibility(newVisibleValue) { - var visible = this.state.visible; - - if (visible !== newVisibleValue) { - this.setState({ - visible: newVisibleValue - }); - } - } - }, { - key: "_onPress", - value: function _onPress() { - var onPress = this.props.onPress; - - if (typeof onPress === "function") { - onPress(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - parentStyle = _this$props.parentStyle, - ifHiddenRemove = _this$props.ifHiddenRemove, - buttonStyle = _this$props.buttonStyle, - source = _this$props.source, - tintColor = _this$props.tintColor, - library = _this$props.library, - cssProps = _this$props.cssProps, - accessibilityLabel = _this$props.accessibilityLabel; - var visible = this.state.visible; - - if (!visible) { - if (ifHiddenRemove) { - return null; - } - - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { - style: [_simpleButtonComponent.default.parent, parentStyle] - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-header-icon-container"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[14]).TouchableOpacity, { - containerStyle: [_simpleButtonComponent.default.parent, parentStyle], - onPress: this.onPress, - accessibilityLabel: accessibilityLabel, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, Object.assign({}, cssProps, { - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_imageIconChooserComponent.default, { - type: library, - name: source, - iconStyle: [_simpleButtonComponent.default.libraryButton, { - color: tintColor - }], - imageStyle: [_simpleButtonComponent.default.button, { - tintColor: tintColor - }], - style: [buttonStyle], - resizeMode: "contain", - source: source, - tintColor: tintColor - }) - })) - }) - }); - } - }]); - }(_react.default.Component); - - SimpleButton.propTypes = { - parentStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), - buttonStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number, _propTypes.default.array]), - library: _propTypes.default.string, - source: _propTypes.default.any.isRequired, - onPress: _propTypes.default.func.isRequired, - toVisibleEvent: _propTypes.default.string, - visible: _propTypes.default.bool, - ifHiddenRemove: _propTypes.default.bool, - tintColor: _propTypes.default.string, - cssProps: _propTypes.default.object, - accessibilityLabel: _propTypes.default.string - }; - SimpleButton.defaultProps = { - parentStyle: {}, - buttonStyle: {}, - visible: true, - library: undefined, - cssProps: {} - }; -},2227,[3,6,7,11,13,14,16,582,18,2228,1941,564,179,817,1]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var _default = exports.default = _reactNative.StyleSheet.create({ - parent: { - height: _$$_REQUIRE(_dependencyMap[1]).HEADER_PARENT_BUTTON_SIZE, - width: _$$_REQUIRE(_dependencyMap[1]).HEADER_PARENT_BUTTON_SIZE, - justifyContent: "center", - alignItems: "center" - }, - button: { - height: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE, - width: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE - }, - libraryButton: { - fontSize: _$$_REQUIRE(_dependencyMap[1]).HEADER_BUTTON_SIZE - }, - badge: { - position: "absolute", - top: 2, - right: 2, - borderWidth: 1, - borderRadius: 10, - width: 20, - height: 20, - backgroundColor: "white", - alignSelf: "center" - } - }); -},2228,[18,825]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _LoginManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - - var _settingHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[20])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var crashlytics = _optionalPackageUtils.default.getCrashlytics(); - - var PRESS_DELAY = 150; - - var SettingDebug = exports.default = function (_React$Component) { - function SettingDebug(props) { - var _loginStatus$universa; - - var _this; - - (0, _classCallCheck2.default)(this, SettingDebug); - _this = _callSuper(this, SettingDebug, [props]); - - _this._collapse = function () { - return _this.modalRef.current && _this.modalRef.current.collapse(); - }; - - _this._expand = function () { - return _this.modalRef.current && _this.modalRef.current.expand(); - }; - - _this.modalRef = _react.default.createRef(); - _this.tapAction = _this._tapAction.bind(_this); - _this.crashAction = _this._crashAction.bind(_this); - _this.feedbackAction = _this._feedbackAction.bind(_this); - _this.copyAction = _this._copyAction.bind(_this); - _this.onShare = _this._onShare.bind(_this); - _this.onSending = _this._onSending.bind(_this); - _this.setForceLayoutSubStyle = _this._setForceLayoutSubStyle.bind(_this); - _this.setForceNotificationEmail = _this._setForceNotificationEmail.bind(_this); - _this.debugOverlayAction = _this._debugOverlayAction.bind(_this); - _this.editToken = _this._editToken.bind(_this); - _this.pressCounter = 0; - _this.timeoutId = undefined; - - var _global$getActivePSet = global.getActivePSetup(), - loginStatus = _global$getActivePSet.loginStatus; - - var _global$getUserSettin = global.getUserSettings(), - subLayout = _global$getUserSettin.forceLayoutSubStyle, - notificationEmail = _global$getUserSettin.notificationEmail; - - _this.state = { - subLayout: subLayout, - notificationEmail: notificationEmail, - token: (_loginStatus$universa = loginStatus == null ? undefined : loginStatus.universalLinkToken) != null ? _loginStatus$universa : "" - }; - return _this; - } - - (0, _inherits2.default)(SettingDebug, _React$Component); - return (0, _createClass2.default)(SettingDebug, [{ - key: "UNSAFE_componentWillMount", - value: function () { - var _UNSAFE_componentWillMount = (0, _asyncToGenerator2.default)(function* () { - yield global.analyzeUsedSpace(); - }); - - function UNSAFE_componentWillMount() { - return _UNSAFE_componentWillMount.apply(this, arguments); - } - - return UNSAFE_componentWillMount; - }() - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.timeoutId) { - clearTimeout(this.timeoutId); - } - } - }, { - key: "_tapAction", - value: function _tapAction() { - var _this2 = this; - - this.pressCounter += 1; - var numberOfTapToDebug = this.props.numberOfTapToDebug; - - if (!this.timeoutId) { - this.timeoutId = setTimeout(function () { - if (_this2.pressCounter >= numberOfTapToDebug) { - _this2._expand(); - } - - _this2.pressCounter = 0; - delete _this2.timeoutId; - }, PRESS_DELAY * numberOfTapToDebug); - } - } - }, { - key: "_crashAction", - value: function _crashAction() { - if (crashlytics) { - crashlytics().crash(); - } - } - }, { - key: "_copyAction", - value: function _copyAction() { - _$$_REQUIRE(_dependencyMap[21]).LoadingOverlay.show({ - id: "copy" - }); - - _tecnaviaFileUtils.default.zipAndCopyNewspaperBaseDirectory().then(function () { - _$$_REQUIRE(_dependencyMap[21]).LoadingOverlay.hide({ - id: "copy" - }); - }); - } - }, { - key: "_feedbackAction", - value: function _feedbackAction() { - this._collapse(); - - if (_$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isOnline()) { - var feedback = new (_$$_REQUIRE(_dependencyMap[23]).Feedback)(); - - _$$_REQUIRE(_dependencyMap[21]).LoadingOverlay.show({ - id: "feedback" - }); - - feedback.force().then(function () { - _$$_REQUIRE(_dependencyMap[21]).LoadingOverlay.hide({ - id: "feedback" - }); - }); - } else { - _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("err_internet_connection"), [{ - text: global.strings("btn_ok") - }]); - } - } - }, { - key: "_onSending", - value: function () { - var _onSending2 = (0, _asyncToGenerator2.default)(function* () { - this._collapse(); - }); - - function _onSending() { - return _onSending2.apply(this, arguments); - } - - return _onSending; - }() - }, { - key: "_onShare", - value: function () { - var _onShare2 = (0, _asyncToGenerator2.default)(function* () { - var message = _GlobalConfig.default.getDeviceInfoText(); - - message += _GlobalConfig.default.getUsedSpaceText(); - var subject = global.strings("feedback_email_subject", { - who: global.appName - }); - var attachments; - - var _global$getActivePSet2 = global.getActivePSetup(), - enableSessionCollection = _global$getActivePSet2.enableSessionCollection; - - if (_LiveConfig.default.isEpaperSide() && enableSessionCollection) { - var path = yield _$$_REQUIRE(_dependencyMap[25]).NewspaperSessionManager.storeActiveSessionToFile(); - - if (path) { - attachments = [{ - path: path, - type: "json", - name: "session_" + global.machineId + ".json" - }]; - } - } - - _reactNativeMail.default.mail({ - subject: subject, - recipients: [global.strings("support_email")], - body: message, - isHTML: false, - attachments: attachments - }, function () {}); - }); - - function _onShare() { - return _onShare2.apply(this, arguments); - } - - return _onShare; - }() - }, { - key: "_setForceLayoutSubStyle", - value: function _setForceLayoutSubStyle() { - var subLayout = this.state.subLayout; - var onSublayoutChange = this.props.onSublayoutChange; - global.getUserSettings().setForceLayoutSubStyle(subLayout); - - if (typeof onSublayoutChange === "function") { - onSublayoutChange(); - } - } - }, { - key: "_setForceNotificationEmail", - value: function _setForceNotificationEmail() { - var notificationEmail = this.state.notificationEmail; - - if (notificationEmail.length > 0 && _$$_REQUIRE(_dependencyMap[22]).StringUtils.validateNotificationEmail(notificationEmail)) { - this._collapse(); - - global.getUserSettings().setNotificationEmail(notificationEmail); - - _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("msg_valid_notification_email"), [{ - text: global.strings("btn_ok") - }, { - text: global.strings("restart"), - onPress: function onPress() { - _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); - } - }], { - cancelable: false - }); - } else { - var _global$getUserSettin2 = global.getUserSettings(), - currentNotificationEmail = _global$getUserSettin2.notificationEmail; - - if (currentNotificationEmail && _$$_REQUIRE(_dependencyMap[22]).StringUtils.validateNotificationEmail(currentNotificationEmail)) { - this._collapse(); - - _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert("", global.strings("msg_reset_notification_email"), [{ - text: global.strings("btn_ok") - }, { - text: global.strings("restart"), - onPress: function onPress() { - var paperSetupManager = global.getPaperSetupManager(); - - if (paperSetupManager) { - paperSetupManager.resetActivePSetup(); - } - - _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); - } - }], { - cancelable: false - }); - } - - global.getUserSettings().resetNotificationEmail(); - } - } - }, { - key: "_debugOverlayAction", - value: function _debugOverlayAction() { - var userSettings = global.getUserSettings(); - userSettings.setEnableDebugOverlay(!userSettings.enableDebugOverlay); - - this._collapse(); - - _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); - } - }, { - key: "_editToken", - value: function _editToken(_ref) { - var nativeEvent = _ref.nativeEvent; - - var _global$getActivePSet3 = global.getActivePSetup(), - loginStatus = _global$getActivePSet3.loginStatus; - - if (!loginStatus) { - return; - } - - var universalLinkToken = loginStatus.universalLinkToken; - var newToken = nativeEvent.text; - - if (universalLinkToken === newToken) { - return; - } - - this._collapse(); - - _$$_REQUIRE(_dependencyMap[24]).CustomAlert.alert(global.strings("title_edit_token_confirm"), global.strings("msg_edit_token_confirm", { - token: newToken - }), [{ - text: global.strings("btn_cancel") - }, { - text: global.strings("btn_ok"), - onPress: function onPress() { - loginStatus.updateToken(""); - - _LoginManager.default.clearClassicLoginStatus(); - - loginStatus.updateUniversalLinkToken(newToken); - } - }, { - text: global.strings("restart"), - onPress: function () { - var _onPress = (0, _asyncToGenerator2.default)(function* () { - yield loginStatus.updateToken(""); - yield _LoginManager.default.clearClassicLoginStatus(); - global.updateNewsmemoryStartupParams({ - token: newToken - }); - - _reactNative.InteractionManager.runAfterInteractions(_NavigationService.default.restart); - }); - - function onPress() { - return _onPress.apply(this, arguments); - } - - return onPress; - }() - }], { - cancelable: false - }); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props = this.props, - label = _this$props.label, - value = _this$props.value, - hidden = _this$props.hidden; - var _this$state = this.state, - subLayout = _this$state.subLayout, - notificationEmail = _this$state.notificationEmail, - token = _this$state.token; - - var backgroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultBackgroundColor(); - - var foregroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultForegroundColor(); - - var placeholdeTextColor = _$$_REQUIRE(_dependencyMap[22]).colors.grey400; - - var borderColor = _$$_REQUIRE(_dependencyMap[26]).Css.isDarkTheme() ? foregroundColor : _$$_REQUIRE(_dependencyMap[22]).colors.grey; - - var _global$getMainPSetup = global.getMainPSetup(), - feedbackEnabled = _global$getMainPSetup.feedbackEnabled; - - var _global$getUserSettin3 = global.getUserSettings(), - enableDebugOverlay = _global$getUserSettin3.enableDebugOverlay; - - var ModalComponent = (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_modal.default, { - ref: this.modalRef, - backgroundColor: backgroundColor, - foregroundColor: foregroundColor, - needsKeyboardOffsetCheck: true, - children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[28]).styles.headerParent, - children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.View, { - style: { - flex: 1 - }, - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_settingHeader.default, { - label: global.strings("debug"), - onPress: this._collapse - }) - }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_settingHeader.SettingClose, { - onPress: this._collapse - })] - }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { - classes: ["settings-header-separator"], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[28]).styles.separator - }) - }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[29]).TecnaviaScrollView, { - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { - style: { - padding: 10 - }, - children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[28]).styles.hidden, - children: _GlobalConfig.default.getDeviceInfoText() - }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { - style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { - borderColor: borderColor, - color: foregroundColor - }], - placeholder: "NOTIFICATION EMAIL", - placeholderTextColor: placeholdeTextColor, - onChangeText: function onChangeText(newText) { - _this3.setState({ - notificationEmail: newText - }); - }, - onEndEditing: this.setForceNotificationEmail, - value: notificationEmail, - autoCapitalize: "none" - }), global.isDebug || _$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isTecnaviaIP() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { - style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { - borderColor: borderColor, - color: foregroundColor - }], - placeholder: "FORCE LAYOUT SUB STYLE", - placeholderTextColor: placeholdeTextColor, - onChangeText: function onChangeText(newText) { - return _this3.setState({ - subLayout: newText - }); - }, - onSubmitEditing: this.setForceLayoutSubStyle, - value: subLayout - }) : null, global.isDebug || _$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isTecnaviaIP() || global.isTaAddon() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontTextInput.default, { - style: [_$$_REQUIRE(_dependencyMap[28]).styles.input, { - borderColor: borderColor, - color: foregroundColor - }], - placeholder: global.strings("edit_token").toUpperCase(), - placeholderTextColor: placeholdeTextColor, - onChangeText: function onChangeText(newText) { - return _this3.setState({ - token: newText - }); - }, - onEndEditing: this.editToken, - value: token, - autoCapitalize: "none" - }) : null, _$$_REQUIRE(_dependencyMap[22]).Logger.enableLog ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[30]).LogButton, { - style: _$$_REQUIRE(_dependencyMap[28]).styles.log, - onSending: this.onSending - }) : null, (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.onShare, - style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { - borderColor: borderColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: { - color: foregroundColor - }, - children: global.strings("action_share") - }) - }), feedbackEnabled ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.feedbackAction, - style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { - borderColor: borderColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: { - color: foregroundColor - }, - children: global.strings("btn_feedback") - }) - }) : null, global.isDebug || global.enableDebugger || _$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isTecnaviaIP() || global.isTaAddon() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.debugOverlayAction, - style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { - borderColor: borderColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: { - color: foregroundColor - }, - children: enableDebugOverlay ? global.strings("disable_debug_overlay") : global.strings("enable_debug_overlay") - }) - }) : null, (global.isDebug || _$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isTecnaviaIP()) && _optionalPackageUtils.default.isCrashlyticsAvailable() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.crashAction, - style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { - borderColor: borderColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: { - color: foregroundColor - }, - children: global.strings("force_crash") - }) - }) : null, global.isDebug || _$$_REQUIRE(_dependencyMap[22]).NetworkUtils.isTecnaviaIP() ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.copyAction, - style: [_$$_REQUIRE(_dependencyMap[28]).styles.debugButton, { - borderColor: borderColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_fontText.default, { - style: { - color: foregroundColor - }, - children: global.strings("copy_files") - }) - }) : null] - }) - })] - }); - - if (hidden) { - return ModalComponent; - } - - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { - classes: ["setting-line"], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[28]).styles.row, { - flexDirection: "column" - }], - children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.tapAction, - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[31]).Text, { - label: label - }), (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[31]).Value, { - value: value - })] - }) - }), ModalComponent] - }) - }); - } - }]); - }(_react.default.Component); - - SettingDebug.propTypes = { - label: _propTypes.default.string, - value: _propTypes.default.string, - numberOfTapToDebug: _propTypes.default.number.isRequired, - onSublayoutChange: _propTypes.default.func, - hidden: _propTypes.default.bool - }; - SettingDebug.defaultProps = { - hidden: false - }; -},2229,[3,270,6,7,11,13,14,582,16,18,2160,2143,1907,2056,879,566,1881,828,814,2230,2231,1979,438,2214,812,1901,817,179,2232,2107,2233,2234]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Type = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - - var _excluded = ["type", "style", "onLayout", "onFocus", "autoFocus"]; - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - var Type = exports.Type = { - bold: "bold", - medium: "medium", - regular: "regular" - }; - - function FontTextInput(props) { - var inputRef = (0, _react.useRef)(null); - - var _useFonts = (0, _$$_REQUIRE(_dependencyMap[6]).useFonts)(), - allowFontScaling = _useFonts.allowFontScaling, - fontRegular = _useFonts.fontRegular, - fontMedium = _useFonts.fontMedium, - fontBold = _useFonts.fontBold; - - var _getFontStyle = function _getFontStyle(type) { - var fontStyle = {}; - - if (type === Type.bold && fontBold) { - fontStyle.fontFamily = fontBold.font; - } else if (type === Type.medium && fontMedium) { - fontStyle.fontFamily = fontMedium.font; - } else if (fontRegular) { - fontStyle.fontFamily = fontRegular.font; - } - - if (!fontStyle.fontFamily) { - fontStyle.fontFamily = "system font"; - fontStyle.fontWeight = type === Type.bold ? "bold" : "normal"; - } - - return fontStyle; - }; - - var type = props.type, - style = props.style, - _onLayout = props.onLayout, - onFocus = props.onFocus, - autoFocus = props.autoFocus, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - var fontStyle = _getFontStyle(type); - - var textStyle = []; - - if (style) { - if (Array.isArray(style)) { - textStyle = (0, _toConsumableArray2.default)(style); - } else { - textStyle.push(style); - } - } - - textStyle.push(fontStyle); - - var _onFocus = (0, _react.useCallback)(function () { - if (inputRef.current && !inputRef.current.isFocused()) { - inputRef.current.focus(); - } - - if (typeof onFocus === "function") { - onFocus(); - } - }, [onFocus]); - - (0, _react.useEffect)(function () { - if (autoFocus && inputRef.current && !inputRef.current.isFocused()) { - setTimeout(function () { - inputRef.current.focus(); - }, 500); - } - }, []); - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TextInput, Object.assign({ - ref: inputRef, - onLayout: function onLayout(e) { - return _onLayout && _onLayout(e, textStyle); - }, - style: textStyle, - onFocus: _onFocus - }, rest, { - allowFontScaling: allowFontScaling, - maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[8]).FontUtils.fontMaxScale - })); - } - - FontTextInput.propTypes = { - type: _propTypes.default.oneOf(Object.values(Type)), - onLayout: _propTypes.default.func, - onFocus: _propTypes.default.func, - style: _propTypes.default.any, - autoFocus: _propTypes.default.bool - }; - FontTextInput.defaultProps = { - type: Type.regular - }; - - var _default = exports.default = FontTextInput; -},2230,[3,22,4,582,16,18,815,179,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.SettingHeaderAccordion = exports.SettingClose = undefined; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - var SettingClose = exports.SettingClose = function SettingClose(props) { - var onPress = props.onPress; - - var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); - - var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TouchableOpacity, { - onPress: onPress, - style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordionParent, { - backgroundColor: backgroundColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordion, { - color: color - }], - name: "close", - type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS - }) - }); - }; - - SettingClose.propTypes = { - onPress: _propTypes.default.func.isRequired - }; - - var SettingHeaderAccordion = exports.SettingHeaderAccordion = function SettingHeaderAccordion(props) { - var collapsed = props.collapsed, - onPress = props.onPress; - - var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); - - var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TouchableOpacity, { - onPress: onPress, - style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordionParent, { - backgroundColor: backgroundColor - }], - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerAccordion, { - color: color - }], - name: !collapsed ? "chevron-up" : "chevron-down", - type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS - }) - }); - }; - - SettingHeaderAccordion.propTypes = { - collapsed: _propTypes.default.bool, - onPress: _propTypes.default.func.isRequired - }; - - var SettingHeader = function SettingHeader(props) { - var label = props.label, - onPress = props.onPress; - var Parent = typeof onPress === "function" ? _reactNative.TouchableOpacity : _reactNative.View; - - var backgroundColor = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultBackgroundColor(); - - var color = _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[6]).Css, { - classes: ["settings-header-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Parent, { - style: [_$$_REQUIRE(_dependencyMap[8]).styles.rowHeader, { - backgroundColor: backgroundColor - }], - onPress: onPress, - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[6]).Css, { - classes: ["settings-header-text"], - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { - type: _fontText.Type.bold, - style: [_$$_REQUIRE(_dependencyMap[8]).styles.headerText, { - color: color - }], - children: label.toUpperCase() - }) - }) - }) - }); - }; - - SettingHeader.propTypes = { - label: _propTypes.default.string.isRequired, - onPress: _propTypes.default.func - }; - - var _default = exports.default = SettingHeader; -},2231,[3,16,582,18,814,1807,817,179,2232]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = exports.ROW_HEIGHT = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var ROW_HEIGHT = exports.ROW_HEIGHT = 40; - var TITLE_HEIGHT = 30; - var ROW_PADDING = 10; - - var styles = exports.styles = _reactNative.StyleSheet.create({ - root: { - flex: 1 - }, - separator: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - height: 1 - }, - separatorHeaderTop: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - height: 5 - }, - row: { - minHeight: ROW_HEIGHT, - flexDirection: "row", - padding: ROW_PADDING - }, - rowSlider: { - minHeight: ROW_HEIGHT, - flexDirection: "column", - padding: ROW_PADDING - }, - sliderTextParent: { - flex: 1, - flexDirection: "row", - justifyContent: "space-between" - }, - headerParent: { - flexDirection: "row", - alignItems: "center" - }, - headerAccordionParent: { - height: ROW_HEIGHT, - width: ROW_HEIGHT, - justifyContent: "center", - alignItems: "center", - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - headerAccordion: { - color: _$$_REQUIRE(_dependencyMap[1]).colors.black, - fontSize: 30 - }, - rowHeader: { - minHeight: ROW_HEIGHT, - justifyContent: "center", - padding: ROW_PADDING, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - textParent: { - flex: 1, - flexDirection: "column", - justifyContent: "center", - paddingEnd: ROW_PADDING - }, - headerText: { - fontSize: 20, - color: _$$_REQUIRE(_dependencyMap[1]).colors.black - }, - title: { - minHeight: TITLE_HEIGHT, - fontSize: 16 - }, - value: { - minHeight: ROW_HEIGHT - TITLE_HEIGHT - 20, - fontSize: 12, - textAlign: "left", - color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 - }, - buttonParent: { - justifyContent: "center" - }, - btn: { - width: 110, - height: ROW_HEIGHT - 30, - borderWidth: 2, - justifyContent: "center", - alignItems: "center" - }, - input: { - height: 40, - marginTop: 5, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - borderWidth: 1 - }, - debugButton: { - height: 40, - marginTop: 5, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - borderWidth: 1, - justifyContent: "center", - alignItems: "center" - }, - modal: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - hidden: { - fontSize: 12, - color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 - }, - log: { - height: 40, - marginTop: 5, - justifyContent: "center" - } - }); -},2232,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.LogButton = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var LogButton = exports.LogButton = function (_React$Component) { - function LogButton() { - (0, _classCallCheck2.default)(this, LogButton); - return _callSuper(this, LogButton, arguments); - } - - (0, _inherits2.default)(LogButton, _React$Component); - return (0, _createClass2.default)(LogButton, [{ - key: "render", - value: function render() { - var _this$props = this.props, - onLayout = _this$props.onLayout, - onSending = _this$props.onSending, - style = _this$props.style; - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.TouchableOpacity, { - style: style, - onLayout: onLayout, - onPress: (0, _asyncToGenerator2.default)(function* () { - if (typeof onSending === "function") { - onSending(); - } - - _$$_REQUIRE(_dependencyMap[13]).LoadingOverlay.show({ - id: "log", - text: global.strings("uploading") - }); - - yield _$$_REQUIRE(_dependencyMap[14]).Logger.areLogsStored(); - var result = yield _Api.default.sendLog(); - - _$$_REQUIRE(_dependencyMap[13]).LoadingOverlay.hide({ - id: "log" - }); - - var message = result ? global.strings("msg_sent") : global.strings("msg_failed"); - - _$$_REQUIRE(_dependencyMap[15]).Toast.show(message, { - position: "top" - }); - }), - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { - style: { - backgroundColor: _$$_REQUIRE(_dependencyMap[14]).colors.md_orange_800, - color: _$$_REQUIRE(_dependencyMap[14]).colors.black, - fontSize: 18, - padding: 5 - }, - children: global.strings("btn_disable_log_file") - }) - }); - } - }]); - }(_react.default.Component); - - LogButton.propTypes = { - onLayout: _propTypes.default.func, - onSending: _propTypes.default.func, - style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) - }; -},2233,[3,270,6,7,11,13,14,582,16,18,407,814,179,1979,438,1976]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Value = exports.Text = undefined; - exports.getRadius = getRadius; - exports.getSupportColor = getSupportColor; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _excluded = ["value", "cssProps"], - _excluded2 = ["label", "cssProps"]; - - function getSupportColor() { - var supportColor; - var rssIndexConfig = global.getRssIndex(); - - if (rssIndexConfig) { - supportColor = rssIndexConfig.supportColor; - } - - var baseStyle = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["setting-base-style"]); - - return baseStyle.color || supportColor || _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); - } - - function getRadius() { - var borderRadius; - var rssIndexConfig = global.getRssIndex(); - - if (rssIndexConfig) { - borderRadius = rssIndexConfig.borderRadius; - } - - var baseStyle = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["setting-base-style"]); - - return baseStyle.borderRadius || borderRadius || 0; - } - - var Value = exports.Value = function Value(props) { - var value = props.value, - _props$cssProps = props.cssProps, - cssProps = _props$cssProps === undefined ? {} : _props$cssProps, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - return value ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, Object.assign({ - classes: ["setting-text-value"] - }, cssProps, { - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, Object.assign({ - numberOfLines: 1, - style: _$$_REQUIRE(_dependencyMap[9]).styles.value - }, rest, { - children: value - })) - })) : null; - }; - - Value.propTypes = { - value: _propTypes.default.any, - cssProps: _propTypes.default.object - }; - - var Text = exports.Text = function Text(props) { - var label = props.label, - _props$cssProps2 = props.cssProps, - cssProps = _props$cssProps2 === undefined ? {} : _props$cssProps2, - rest = (0, _objectWithoutProperties2.default)(props, _excluded2); - - var color = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, Object.assign({ - classes: ["setting-text-label"] - }, cssProps, { - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, Object.assign({ - style: [_$$_REQUIRE(_dependencyMap[9]).styles.title, { - color: color - }] - }, rest, { - children: label - })) - })); - }; - - Text.propTypes = { - label: _propTypes.default.string, - cssProps: _propTypes.default.object - }; - - var Setting = function Setting(props) { - var imageProps = props.imageProps, - label = props.label, - value = props.value, - onPress = props.onPress, - buttonText = props.buttonText, - children = props.children; - - var backgroundColor = _$$_REQUIRE(_dependencyMap[7]).Css.getDefaultBackgroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-line"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[9]).styles.row, { - backgroundColor: backgroundColor - }], - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-icon-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { - style: { - alignSelf: "center" - }, - children: imageProps ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-icon"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_imageIconChooserComponent.default, Object.assign({}, imageProps)) - }) : null - }) - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-text-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[9]).styles.textParent, - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Text, { - label: label - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Value, { - value: value - })] - }) - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-button-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[9]).styles.buttonParent, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-button"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Circle.Button, { - onPress: onPress, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["setting-button-text"], - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Circle.Text, { - children: buttonText - }) - }) - }) - }) - }) - }), children] - }) - }); - }; - - Setting.propTypes = { - imageProps: _propTypes.default.object, - label: _propTypes.default.string.isRequired, - value: _propTypes.default.string, - onPress: _propTypes.default.func.isRequired, - buttonText: _propTypes.default.string.isRequired, - children: _propTypes.default.any - }; - Setting.defaultProps = { - value: "" - }; - - var _default = exports.default = Setting; -},2234,[3,4,16,582,18,814,1941,817,179,2235,2219]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = exports.ROW_HEIGHT = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var ROW_HEIGHT = exports.ROW_HEIGHT = 70; - var TITLE_HEIGHT = 30; - var ROW_PADDING = 10; - - var styles = exports.styles = _reactNative.StyleSheet.create({ - root: { - flex: 1 - }, - separator: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - height: 1 - }, - row: { - minHeight: ROW_HEIGHT, - flexDirection: "row", - padding: ROW_PADDING, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - textParent: { - flex: 1, - flexDirection: "column", - justifyContent: "center", - paddingEnd: ROW_PADDING - }, - title: { - fontSize: 18, - color: _$$_REQUIRE(_dependencyMap[1]).colors.black - }, - value: { - minHeight: ROW_HEIGHT - TITLE_HEIGHT - 20, - fontSize: 14, - textAlign: "left", - color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 - }, - buttonParent: { - justifyContent: "center", - width: 110 - }, - chkParent: { - width: 110, - alignItems: "center" - }, - btn: { - width: 110, - height: ROW_HEIGHT - 30, - borderWidth: 0.3, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent200, - justifyContent: "center", - alignItems: "center" - }, - input: { - height: 40, - marginTop: 5, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - borderWidth: 1 - }, - debugButton: { - height: 40, - marginTop: 5, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.grey, - borderWidth: 1, - justifyContent: "center", - alignItems: "center" - }, - hidden: { - fontSize: 12, - color: _$$_REQUIRE(_dependencyMap[1]).colors.grey400 - }, - log: { - height: 40, - marginTop: 5, - justifyContent: "center" - } - }); -},2235,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getKey = getKey; - exports.goToRssNavigator = goToRssNavigator; - exports.logout = logout; - exports.openBrowser = openBrowser; - exports.removeKey = removeKey; - exports.returnFromLogin = returnFromLogin; - exports.setKey = setKey; - exports.setPrefEdi = setPrefEdi; - exports.showAlert = showAlert; - exports.showConfirm = showConfirm; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _LoginManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - function returnFromLogin(_x) { - return _returnFromLogin.apply(this, arguments); - } - - function _returnFromLogin() { - _returnFromLogin = (0, _asyncToGenerator2.default)(function* (data) { - (0, _$$_REQUIRE(_dependencyMap[5]).sendNewsmemoryLoginEvent)("start login"); - var pSetup = data.pSetup, - machine = data.machine, - username = data.username, - password = data.password, - challenge = data.challenge, - remember = data.remember, - TAUID = data.TAUID, - token = data.token, - TOKEN = data.TOKEN, - extid = data.extid; - return _LoginManager.default.login({ - pSetup: pSetup, - machine: machine, - username: username, - password: password, - challenge: challenge, - remember: remember, - TAUID: TAUID, - token: TOKEN || token, - extid: extid - }); - }); - return _returnFromLogin.apply(this, arguments); - } - - function logout() { - return _logout.apply(this, arguments); - } - - function _logout() { - _logout = (0, _asyncToGenerator2.default)(function* () { - yield _LoginManager.default.logout(); - - _$$_REQUIRE(_dependencyMap[6]).EventRegister.emit(_events.default.NEWSMEMORY_RELOAD_EDITION); - }); - return _logout.apply(this, arguments); - } - - function openBrowser(data) { - var url = data.url, - callback = data.callback, - close = data.close; - - if (url) { - var extraNavigationParams = {}; - - if (url.indexOf("archiveSearch=1") !== -1) { - extraNavigationParams.screenTitle = global.strings("btn_archive"); - extraNavigationParams.isArchive = true; - } - - _NavigationService.default.main.navigate("WebScreen", Object.assign({ - url: url, - onClose: function onClose() { - _$$_REQUIRE(_dependencyMap[7]).PlatformUtils.colorBars(); - } - }, extraNavigationParams)); - } - } - - function showAlert(data) { - var title = data.title, - message = data.message, - okLabel = data.okLabel; - var buttons = []; - buttons.push({ - text: okLabel || global.strings("btn_ok") - }); - - _$$_REQUIRE(_dependencyMap[8]).CustomAlert.alert(title, message, buttons, { - cancelable: false - }); - } - - function showConfirm(data) { - var _this = this; - - var title = data.title, - message = data.message, - okLabel = data.okLabel, - cancelLabel = data.cancelLabel, - callback = data.callback; - var buttons = []; - buttons.push({ - text: cancelLabel || global.strings("btn_cancel"), - onPress: function onPress() { - _this._confirmResult(callback, false); - } - }, { - text: okLabel || global.strings("btn_ok"), - onPress: function onPress() { - _this._confirmResult(callback, true); - } - }); - - _$$_REQUIRE(_dependencyMap[8]).CustomAlert.alert(title, message, buttons, { - cancelable: false - }); - } - - function goToRssNavigator() { - _NavigationService.default.main.reset("RssNavigator"); - } - - function getKey(_x2) { - return _getKey.apply(this, arguments); - } - - function _getKey() { - _getKey = (0, _asyncToGenerator2.default)(function* (data) { - var key = data.key; - - if (key) { - var loginStatusValue = yield _LoginManager.default.getLoginConfigValue(key); - var value = loginStatusValue || (yield global.getNewsmemoryConfig().getValue(key)); - - if (typeof value === "string") { - value = "'" + value + "'"; - } - - return "xcj_getFromKey(" + value + ",'" + key + "');"; - } - - return ""; - }); - return _getKey.apply(this, arguments); - } - - function setKey(data) { - var key = data.key, - value = data.value, - callback = data.callback; - - _LoginManager.default.setLoginConfigValue(key, value); - - global.getNewsmemoryConfig().setValue(key, value); - - if (callback) { - return callback + "();"; - } - - return ""; - } - - function removeKey(data) { - var key = data.key; - global.getNewsmemoryConfig().removeValue(key); - } - - function setPrefEdi(data) { - var key = data.key, - value = data.value; - global.getNewsmemoryConfig().setValue(key, value); - } -},2236,[3,270,2056,436,1881,1900,564,438,812]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - main: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - fullscreen: { - position: "absolute", - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.modalBackgroundLight - }, - background: { - position: "absolute", - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.modalBackgroundLight - }, - hidden: { - width: 0, - height: 0 - }, - modal: { - position: "absolute", - zIndex: 1000 - }, - closeIcon: { - position: "absolute", - top: 13, - right: 13, - width: 24, - height: 24, - alignItems: "center", - justifyContent: "center" - } - }); -},2237,[18,438]); +},2242,[3,6,7,11,13,14,16,582,436,1812,2228,564,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305525,7 +305990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},2238,[3,4,16,179,1087]); +},2243,[3,4,16,179,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305540,7 +306005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2239,[2240]); +},2244,[2245]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -306664,7 +307129,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: _propTypes.default.object, tab: _propTypes.default.string }; -},2240,[3,33,270,6,7,11,85,13,14,582,16,18,407,2143,1907,1863,858,2241,2242,2165,436,2197,1910,2134,627,879,2198,857,1881,2255,2256,2258,2261,2262,2265,2266,564,438,1900,2059,815,2214,878,812,1087,1976,2180,179,817,1968,2267,2363,2211]); +},2245,[3,33,270,6,7,11,85,13,14,582,16,18,407,2133,1943,1868,861,2246,2247,2155,436,2186,1998,2124,630,882,2187,860,1870,2260,2261,2263,2266,2267,2270,2271,564,438,2042,2049,818,2223,881,815,1090,1934,2169,179,820,1926,2272,2368,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -307270,43 +307735,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getFirstIssueAndMainEdition", value: function () { var _getFirstIssueAndMainEdition = (0, _asyncToGenerator2.default)(function* (edition) { - if (this.currentNewspaperManager) { - var issue = yield this.currentNewspaperManager.getLatestIssue(edition); - - if (issue) { - var firstIssue = issue.issue, - mainEdition = issue.mainEdition, - pSetupToUse = issue.pSetup; - - if (firstIssue) { - var _global$getActivePSet7 = global.getActivePSetup(), - pSetup = _global$getActivePSet7.pSetup; - - if (pSetupToUse && pSetupToUse !== pSetup) { - var _yield$global$loadPSe3 = yield global.loadPSetup(pSetupToUse), - pSetupToUseConfig = _yield$global$loadPSe3.config; - - if (pSetupToUseConfig) { - yield this.init(pSetupToUseConfig); - yield Analytics.updateAnalytics(); - } else { - throw new Error("Unable to load the new pSetup " + pSetupToUse); - } - } - - return { - issue: firstIssue, - edition: mainEdition - }; - } - - throw new Error("getIssue did not return a valid issue " + JSON.stringify(issue)); - } else { - throw new Error("getIssue did not return any issue"); - } - } else { + if (!this.currentNewspaperManager) { throw new Error("currentNewspaperManager is undefined"); } + + var issue = yield this.currentNewspaperManager.getLatestIssue(edition); + + if (!issue) { + throw new Error("getIssue did not return any issue"); + } + + var firstIssue = issue.issue, + mainEdition = issue.mainEdition, + pSetupToUse = issue.pSetup; + + if (!firstIssue) { + throw new Error("getIssue did not return a valid issue " + JSON.stringify(issue)); + } + + var _global$getActivePSet7 = global.getActivePSetup(), + pSetup = _global$getActivePSet7.pSetup; + + if (pSetupToUse && pSetupToUse !== pSetup) { + var _yield$global$loadPSe3 = yield global.loadPSetup(pSetupToUse), + pSetupToUseConfig = _yield$global$loadPSe3.config; + + if (pSetupToUseConfig) { + yield this.init(pSetupToUseConfig); + yield Analytics.updateAnalytics(); + } else { + throw new Error("Unable to load the new pSetup " + pSetupToUse); + } + } + + return { + issue: firstIssue, + edition: mainEdition + }; }); function getFirstIssueAndMainEdition(_x7) { @@ -307387,7 +307852,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NewsmemoryManager; -},2241,[3,270,6,7,1863,436,1910,627,878,857,858,2056,2242,2252,438,564,1901,2254,812,586,864]); +},2246,[3,270,6,7,1868,436,1998,630,881,860,861,2040,2247,2257,438,564,2043,2259,815,586,867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -308430,17 +308895,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "getLatestIssue", value: function () { var _getLatestIssue = (0, _asyncToGenerator2.default)(function* (edition) { - if (_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isOnline()) { - try { - var issues = yield _NewsmemoryAJAX.default.getIssues(edition); - - if (Array.isArray(issues) && issues.length > 0) { - return issues[0]; - } - } catch (e) {} + if (!_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isOnline()) { + return undefined; } - return null; + try { + var issues = yield _NewsmemoryAJAX.default.getIssues(edition); + + if (!_$$_REQUIRE(_dependencyMap[34]).JSUtils.isEmpty(issues)) { + return issues[0]; + } + } catch (e) {} + + return undefined; }); function getLatestIssue(_x34) { @@ -310120,7 +310587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2242,[3,4,22,270,6,7,407,1863,436,1865,627,878,856,566,665,587,664,857,668,858,2243,2244,406,2246,2247,2248,2249,2250,2251,2056,2252,2165,564,2253,438,588,2178,586,1901,1900,2254,812,1850]); +},2247,[3,4,22,270,6,7,407,1868,436,2194,630,881,859,566,668,587,667,860,671,861,2248,2250,406,2249,2252,2253,2254,2255,2256,2040,2257,2155,564,2258,438,588,2167,586,2043,2042,2259,815,1855]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -310133,21 +310600,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _NewsmemoryToDTO = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _DownloadManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _DTOToNewsmemory = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _DTOToNewsmemory = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _DownloadManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _NewsmemoryToDTO = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); var NewsmemoryEditionsManager = exports.default = function () { function NewsmemoryEditionsManager(paper) { @@ -310433,7 +310900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return article.getPageId() === dto.getPageId(); }); - if (!articles || articles.length === 0) { + if (_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(articles)) { try { articles = yield _DownloadManager.default.downloadArticles(issue, edition, dto.getFilename(), secret); articles.forEach(function (article) { @@ -310700,335 +311167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2243,[3,270,6,7,859,664,2244,587,665,2245,668,2246]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _Box = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _PageJump = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _TitleBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var NewsmemoryToDTO = exports.default = function () { - function NewsmemoryToDTO() { - (0, _classCallCheck2.default)(this, NewsmemoryToDTO); - } - - return (0, _createClass2.default)(NewsmemoryToDTO, null, [{ - key: "dbIssueToDTO", - value: function dbIssueToDTO(dbNewspaper) { - var newspaper = new _Edition.default(); - newspaper.setIssueId(dbNewspaper.issueId); - newspaper.setIssue(dbNewspaper.issue); - newspaper.setDownloadTime(dbNewspaper.downtime); - newspaper.setUpdated(dbNewspaper.updated === 1); - newspaper.setPaper(dbNewspaper.paper); - newspaper.setModifyTime(_$$_REQUIRE(_dependencyMap[14]).DateUtils.stringToUnix(dbNewspaper.mtime + " +0000", "YYYYMMDD HH:mm:ss Z")); - return newspaper; - } - }, { - key: "dbPageToDTO", - value: function dbPageToDTO(dbPage) { - var page = new _Page.default(); - page.setEdition(dbPage.edition); - page.setExtraMd5(dbPage.extramd5); - page.setExtralinks(NewsmemoryToDTO.dbExtralinksToDTOs(dbPage.extralinks)); - page.setFilename(dbPage.filename); - page.setFrameHeight(parseInt(dbPage.frameH || dbPage.h, 10)); - page.setFrameWidth(parseInt(dbPage.frameW || dbPage.w, 10)); - page.setIssueId(dbPage.issueId); - page.setModifyTime(dbPage.mtime); - page.setPage(dbPage.page); - page.setPageId(dbPage.pageId); - page.setSection(dbPage.section); - page.setShownPage(dbPage.shownpage || dbPage.page); - page.setType(parseInt(dbPage.type, 10)); - page.setImages([]); - page.setVisible(true); - page.setProtected(false); - return page; - } - }, { - key: "dbImageToDTO", - value: function dbImageToDTO(dbImage) { - var image = new _EPaperImage.default(); - image.setBase64(dbImage.base64image); - image.setPageId(dbImage.pageId); - image.setType(dbImage.type); - image.setWidth(dbImage.sizeX); - image.setHeight(dbImage.sizeY); - return image; - } - }, { - key: "dbArticleToDTO", - value: function dbArticleToDTO(dbArticle) { - var article = new _EPaperArticle.default(); - article.setPageId(dbArticle.pageId); - article.setXmlId(parseInt(dbArticle.xmlId, 10)); - article.setType(dbArticle.type); - article.setSubType(dbArticle.subtype); - article.setTitle(NewsmemoryToDTO._unescapeHTML(dbArticle.title)); - article.setHtml(dbArticle.html); - article.setInc(dbArticle.inc); - article.setChildart(dbArticle.childart); - article.setPageJumps(NewsmemoryToDTO.dbPageJumpsToDTO(dbArticle.pj)); - article.setBoxes(NewsmemoryToDTO.dbBoxesToDTO(dbArticle.boxes)); - article.setBoxesInfo(NewsmemoryToDTO.dbBoxesInfoToDTO(dbArticle.boxes)); - article.setTitleBox(NewsmemoryToDTO.dbTitleBoxToDTO(dbArticle.boxes)); - return article; - } - }, { - key: "dbPageJumpsToDTO", - value: function dbPageJumpsToDTO(info) { - if (info) { - try { - var pageJumpsObj = JSON.parse(info); - return Object.keys(pageJumpsObj).map(function (key) { - var pj = pageJumpsObj[key]; - var from = pj.from, - to = pj.to, - type = pj.type, - artid = pj.artid, - articlefrom = pj.articlefrom; - - var articleId = _newsmemoryUtils.default.getArticleId(artid); - - var articleFrom = _newsmemoryUtils.default.getArticleId(articlefrom); - - return new _PageJump.default(key, from, to, type, articleId, articleFrom); - }); - } catch (e) {} - } - - return []; - } - }, { - key: "dbBoxesToDTO", - value: function dbBoxesToDTO(info) { - var boxes = info.split("@")[0]; - - if (boxes) { - try { - return boxes.split(";").map(function (box) { - var splitted = box.split(","); - return new _Box.default(parseInt(splitted[0], 10), parseInt(splitted[2], 10), parseInt(splitted[1], 10), parseInt(splitted[3], 10), parseInt(splitted[4], 10)); - }); - } catch (e) {} - } - - return []; - } - }, { - key: "dbBoxesInfoToDTO", - value: function dbBoxesInfoToDTO(info) { - var infos = info.split("@")[1]; - - if (infos) { - try { - return new _BoxesInfo.default(infos.split(",")); - } catch (e) {} - } - - return null; - } - }, { - key: "dbTitleBoxToDTO", - value: function dbTitleBoxToDTO(info) { - var infos = info.split("@")[2]; - - if (infos) { - try { - var _infos$split = infos.split(","), - _infos$split2 = (0, _slicedToArray2.default)(_infos$split, 5), - type = _infos$split2[0], - left = _infos$split2[1], - top = _infos$split2[2], - width = _infos$split2[3], - height = _infos$split2[4]; - - if (type === "title") { - return new _TitleBox.default(left, top, width, height); - } - } catch (e) {} - } - - return null; - } - }, { - key: "dbExtralinksToDTOs", - value: function dbExtralinksToDTOs(dbExtralinks) { - var extralinks = []; - - if (dbExtralinks) { - var extraArray = dbExtralinks.split(";"); - extraArray.forEach(function (extra) { - var elementArray = extra.split(","); - - if (elementArray.length > 7) { - var type = elementArray[0]; - var left = parseInt(elementArray[1], 10); - var top = parseInt(elementArray[2], 10); - var width = parseInt(elementArray[3], 10); - var height = parseInt(elementArray[4], 10); - var pdfWidth = parseInt(elementArray[5], 10); - var pdfHeight = parseInt(elementArray[6], 10); - var content = elementArray[7]; - var imageURL = elementArray[8]; - extralinks.push(new _ExtraLinks.default(type, content, imageURL, { - left: left, - top: top - }, { - width: width, - height: height - }, { - width: pdfWidth, - height: pdfHeight - })); - } - }); - } else {} - - return extralinks; - } - }, { - key: "_unescapeHTML", - value: function _unescapeHTML(text) { - var decoded = ""; - - if (text) { - try { - decoded = _$$_REQUIRE(_dependencyMap[14]).StringUtils.decodeHTML(text); - decoded = decoded.replace(/]*>|<\/span>/g, ""); - } catch (e) {} - } - - return decoded; - } - }, { - key: "parseIndex", - value: function parseIndex(index) { - var pages = []; - index.forEach(function (rawPage) { - pages.push(NewsmemoryToDTO.dbPageToDTO(rawPage)); - }); - return pages; - } - }]); - }(); -},2244,[3,33,6,7,627,662,663,664,665,587,669,668,666,667,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _Box = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _PageJump = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _TitleBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var DTOToNewsmemory = exports.default = function () { - function DTOToNewsmemory() { - (0, _classCallCheck2.default)(this, DTOToNewsmemory); - } - - return (0, _createClass2.default)(DTOToNewsmemory, null, [{ - key: "issueDTOtoDb", - value: function issueDTOtoDb(edition) { - return [edition.getIssueId(), edition.getIssue(), edition.getDownloadTime(), edition.isUpdated() ? 1 : 0, edition.getPaper(), _$$_REQUIRE(_dependencyMap[12]).DateUtils.unixToString(edition.getModifyTime(), "YYYYMMDD HH:mm:ss")]; - } - }, { - key: "pageDTOtoDb", - value: function pageDTOtoDb(page) { - return [page.getPageId(), page.getIssueId(), page.getPage(), page.getShownPage(), page.getType(), page.getFilename(), page.getEdition(), page.getSection(), page.getFrameHeight(), page.getFrameWidth(), page.getExtraMd5(), DTOToNewsmemory.extralinksDTOtoDb(page.getExtralinks()), page.getModifyTime()]; - } - }, { - key: "imageDTOtoDb", - value: function imageDTOtoDb(image) { - return [image.getBase64(), image.getPageId(), image.getType(), image.getWidth(), image.getHeight()]; - } - }, { - key: "articleDTOtoDb", - value: function articleDTOtoDb(article) { - return [article.getPageId(), article.getXmlId(), article.getType(), article.getSubType(), article.getTitle(), article.getHtml(), article.getInc(), article.getChildart(), DTOToNewsmemory.pageJumpsDTOtoDb(article.getPageJumps()), DTOToNewsmemory.boxesAndInfoDTOtoDb(article.getBoxes(), article.getBoxesInfo(), article.getTitleBox())]; - } - }, { - key: "pageJumpsDTOtoDb", - value: function pageJumpsDTOtoDb(pageJumps) { - if (pageJumps && pageJumps.length > 0) { - return "{" + pageJumps.map(function (pageJump) { - return pageJump.toString(); - }).join(",") + "}"; - } - - return "[]"; - } - }, { - key: "boxesAndInfoDTOtoDb", - value: function boxesAndInfoDTOtoDb(boxes, info, titleBox) { - var strBoxes = boxes ? boxes.map(function (box) { - return box.toString(); - }).join(";") : ""; - var strInfo = info ? info.toString() : ""; - var str = strBoxes + "@" + strInfo; - - if (titleBox) { - str += "@" + titleBox.toString(); - } - - return str; - } - }, { - key: "extralinksDTOtoDb", - value: function extralinksDTOtoDb(extralinks) { - return extralinks.map(function (link) { - return link.toString(); - }).join(";"); - } - }]); - }(); -},2245,[3,6,7,662,663,664,665,587,669,668,666,667,438]); +},2248,[3,270,6,7,667,668,587,671,2249,862,2251,2250,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -311226,18 +311365,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function componentNeedsWatermark(image, page) { var xmlId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - if (image && image.isGraph()) { + if (!image) { + return false; + } + + if (image.isGraph()) { return true; } - if (page && xmlId >= 0 && !_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(page.getArticles())) { - var articleByXmlId = page.getArticles().find(function (article) { - return article.getXmlId() === xmlId; - }); + if (!page || xmlId < 0) { + return false; + } - if (articleByXmlId) { - return articleByXmlId.isText() && image.isHighRes() && image.getName().search("pag_[0-9]+_0.jpg") > -1; - } + var articles = page.getArticles(); + + if (_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(articles)) { + return false; + } + + var articleByXmlId = articles.find(function (article) { + return article.getXmlId() === xmlId; + }); + + if (articleByXmlId) { + return articleByXmlId.isText() && image.isHighRes() && image.getName().search("pag_[0-9]+_0.jpg") > -1; } return false; @@ -311412,107 +311563,115 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _downloadHRImages = (0, _asyncToGenerator2.default)(function* (newspaper, page) { var _this = this; + if (!page) { + return []; + } + var paper = newspaper.getPaper(); var issue = newspaper.getIssue(); var secret = newspaper.getSecret(); var filename = page.getFilename(); var filetime = page.getModifyTime(); - var downloadedImages = []; var path = yield this.downloadResourceWithRetry("hrimages", _NewsmemoryAJAX.default.downloadHRImagesZip, paper, issue, filename, filetime, secret); - if (path) { - try { - var addZipToModel = true; + if (!path) { + return []; + } - var _global$getActivePSet3 = global.getActivePSetup(), - addWatermark = _global$getActivePSet3.addWatermark; + var downloadedImages = []; - var hasEditorials = false; + try { + var addZipToModel = true; - if (page && !_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(page.getArticles())) { - hasEditorials = page.getArticles().find(function (article) { - return article.isText(); - }) !== undefined; + var _global$getActivePSet3 = global.getActivePSetup(), + addWatermark = _global$getActivePSet3.addWatermark; + + var hasEditorials = false; + var articles = page.getArticles(); + + if (!_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(articles)) { + hasEditorials = articles.find(function (article) { + return article.isText(); + }) !== undefined; + } + + if (addWatermark && hasEditorials) { + var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue) + filename + "/"; + yield _tecnaviaFileUtils.default.unzip(path, destinationFolder); + var HR = _EPaperImage.EPaperImageName.HR; + var images = yield _downloadUtils.default.scanPageFolderForImages(destinationFolder, [HR]); + var watermarkPromises = []; + images.forEach(function (_ref3) { + var imagePath = _ref3.path, + name = _ref3.name, + width = _ref3.width, + height = _ref3.height; + var relativePathToImage = imagePath.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), "./"); + var image = new _EPaperImage.default(); + image.setPageId(page.getPageId()); + image.setName(name); + image.setTypeByName(name); + image.setBase64(relativePathToImage); + image.setWidth(width); + image.setHeight(height); + var imageNameParts = name.split("_"); + + if (imageNameParts.length > 1) { + var xmlId = parseInt(imageNameParts[1], 10); + watermarkPromises.push(_this.addWatermark(imagePath, image, page, xmlId)); + } + }); + var watermarkedImages = []; + + if (watermarkPromises.length > 0) { + watermarkedImages = (yield Promise.all(watermarkPromises)).filter(function (filePath) { + return !_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(filePath); + }); } - if (addWatermark && hasEditorials) { - var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue) + filename + "/"; - yield _tecnaviaFileUtils.default.unzip(path, destinationFolder); - var HR = _EPaperImage.EPaperImageName.HR; - var images = yield _downloadUtils.default.scanPageFolderForImages(destinationFolder, [HR]); - var watermarkPromises = []; - images.forEach(function (_ref3) { - var imagePath = _ref3.path, - name = _ref3.name, - width = _ref3.width, - height = _ref3.height; - var relativePathToImage = imagePath.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), "./"); - var image = new _EPaperImage.default(); - image.setPageId(page.getPageId()); - image.setName(name); - image.setTypeByName(name); - image.setBase64(relativePathToImage); - image.setWidth(width); - image.setHeight(height); - var imageNameParts = name.split("_"); - - if (imageNameParts.length > 1) { - var xmlId = parseInt(imageNameParts[1], 10); - watermarkPromises.push(_this.addWatermark(imagePath, image, page, xmlId)); - } + if (watermarkedImages.length > 0) { + watermarkedImages.forEach(function (_ref4) { + var image = _ref4.image; + downloadedImages.push(image); + }); + yield _$$_REQUIRE(_dependencyMap[21]).FileUtils.unlink(path); + var watermarkedImagePaths = watermarkedImages.map(function (_ref5) { + var imagePath = _ref5.path; + return imagePath; + }); + var nonWatermarkedImages = images.map(function (_ref6) { + var imagePath = _ref6.path; + return imagePath; + }).filter(function (imagePath) { + return !watermarkedImagePaths.includes(imagePath); }); - var watermarkedImages = []; - if (watermarkPromises.length > 0) { - watermarkedImages = (yield Promise.all(watermarkPromises)).filter(function (filePath) { - return !_$$_REQUIRE(_dependencyMap[21]).JSUtils.isEmpty(filePath); + if (nonWatermarkedImages.length > 0) { + yield _$$_REQUIRE(_dependencyMap[21]).FileUtils.zipFiles(nonWatermarkedImages, path, { + compression: false }); - } - - if (watermarkedImages.length > 0) { - watermarkedImages.forEach(function (_ref4) { - var image = _ref4.image; - downloadedImages.push(image); - }); - yield _$$_REQUIRE(_dependencyMap[21]).FileUtils.unlink(path); - var watermarkedImagePaths = watermarkedImages.map(function (_ref5) { - var imagePath = _ref5.path; - return imagePath; - }); - var nonWatermarkedImages = images.map(function (_ref6) { - var imagePath = _ref6.path; - return imagePath; - }).filter(function (imagePath) { - return !watermarkedImagePaths.includes(imagePath); - }); - - if (nonWatermarkedImages.length > 0) { - yield _$$_REQUIRE(_dependencyMap[21]).FileUtils.zipFiles(nonWatermarkedImages, path, { - compression: false - }); - nonWatermarkedImages.forEach(function (imagePath) { - _$$_REQUIRE(_dependencyMap[21]).FileUtils.unlink(imagePath); - }); - } else { - addZipToModel = false; - } - } else { - images.forEach(function (imagePath) { + nonWatermarkedImages.forEach(function (imagePath) { _$$_REQUIRE(_dependencyMap[21]).FileUtils.unlink(imagePath); }); + } else { + addZipToModel = false; } + } else { + images.forEach(function (imagePath) { + _$$_REQUIRE(_dependencyMap[21]).FileUtils.unlink(imagePath); + }); } + } - if (addZipToModel) { - var image = new _EPaperImage.default(); - image.setPageId(page.pageId); - image.setType(_EPaperImage.EPaperImageType.HR_ZIP); - var relativePathToZip = path.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), "./"); - image.setBase64(relativePathToZip); - downloadedImages.push(image); - } - } catch (e) {} - } + if (addZipToModel) { + var image = new _EPaperImage.default(); + image.setPageId(page.pageId); + image.setType(_EPaperImage.EPaperImageType.HR_ZIP); + var relativePathToZip = path.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), "./"); + image.setBase64(relativePathToZip); + downloadedImages.push(image); + } + } catch (e) {} return downloadedImages; }); @@ -312437,7 +312596,335 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2246,[3,22,270,6,7,1871,1863,436,434,586,627,2148,566,665,587,857,668,858,2244,406,564,438,2156,588]); +},2249,[3,22,270,6,7,2200,1868,436,434,586,630,2138,566,668,587,860,671,861,2250,406,564,438,2146,588]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _Box = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _PageJump = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _TitleBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var NewsmemoryToDTO = exports.default = function () { + function NewsmemoryToDTO() { + (0, _classCallCheck2.default)(this, NewsmemoryToDTO); + } + + return (0, _createClass2.default)(NewsmemoryToDTO, null, [{ + key: "dbIssueToDTO", + value: function dbIssueToDTO(dbNewspaper) { + var newspaper = new _Edition.default(); + newspaper.setIssueId(dbNewspaper.issueId); + newspaper.setIssue(dbNewspaper.issue); + newspaper.setDownloadTime(dbNewspaper.downtime); + newspaper.setUpdated(dbNewspaper.updated === 1); + newspaper.setPaper(dbNewspaper.paper); + newspaper.setModifyTime(_$$_REQUIRE(_dependencyMap[14]).DateUtils.stringToUnix(dbNewspaper.mtime + " +0000", "YYYYMMDD HH:mm:ss Z")); + return newspaper; + } + }, { + key: "dbPageToDTO", + value: function dbPageToDTO(dbPage) { + var page = new _Page.default(); + page.setEdition(dbPage.edition); + page.setExtraMd5(dbPage.extramd5); + page.setExtralinks(NewsmemoryToDTO.dbExtralinksToDTOs(dbPage.extralinks)); + page.setFilename(dbPage.filename); + page.setFrameHeight(parseInt(dbPage.frameH || dbPage.h, 10)); + page.setFrameWidth(parseInt(dbPage.frameW || dbPage.w, 10)); + page.setIssueId(dbPage.issueId); + page.setModifyTime(dbPage.mtime); + page.setPage(dbPage.page); + page.setPageId(dbPage.pageId); + page.setSection(dbPage.section); + page.setShownPage(dbPage.shownpage || dbPage.page); + page.setType(parseInt(dbPage.type, 10)); + page.setImages([]); + page.setVisible(true); + page.setProtected(false); + return page; + } + }, { + key: "dbImageToDTO", + value: function dbImageToDTO(dbImage) { + var image = new _EPaperImage.default(); + image.setBase64(dbImage.base64image); + image.setPageId(dbImage.pageId); + image.setType(dbImage.type); + image.setWidth(dbImage.sizeX); + image.setHeight(dbImage.sizeY); + return image; + } + }, { + key: "dbArticleToDTO", + value: function dbArticleToDTO(dbArticle) { + var article = new _EPaperArticle.default(); + article.setPageId(dbArticle.pageId); + article.setXmlId(parseInt(dbArticle.xmlId, 10)); + article.setType(dbArticle.type); + article.setSubType(dbArticle.subtype); + article.setTitle(NewsmemoryToDTO._unescapeHTML(dbArticle.title)); + article.setHtml(dbArticle.html); + article.setInc(dbArticle.inc); + article.setChildart(dbArticle.childart); + article.setPageJumps(NewsmemoryToDTO.dbPageJumpsToDTO(dbArticle.pj)); + article.setBoxes(NewsmemoryToDTO.dbBoxesToDTO(dbArticle.boxes)); + article.setBoxesInfo(NewsmemoryToDTO.dbBoxesInfoToDTO(dbArticle.boxes)); + article.setTitleBox(NewsmemoryToDTO.dbTitleBoxToDTO(dbArticle.boxes)); + return article; + } + }, { + key: "dbPageJumpsToDTO", + value: function dbPageJumpsToDTO(info) { + if (info) { + try { + var pageJumpsObj = JSON.parse(info); + return Object.keys(pageJumpsObj).map(function (key) { + var pj = pageJumpsObj[key]; + var from = pj.from, + to = pj.to, + type = pj.type, + artid = pj.artid, + articlefrom = pj.articlefrom; + + var articleId = _newsmemoryUtils.default.getArticleId(artid); + + var articleFrom = _newsmemoryUtils.default.getArticleId(articlefrom); + + return new _PageJump.default(key, from, to, type, articleId, articleFrom); + }); + } catch (e) {} + } + + return []; + } + }, { + key: "dbBoxesToDTO", + value: function dbBoxesToDTO(info) { + var boxes = info.split("@")[0]; + + if (boxes) { + try { + return boxes.split(";").map(function (box) { + var splitted = box.split(","); + return new _Box.default(parseInt(splitted[0], 10), parseInt(splitted[2], 10), parseInt(splitted[1], 10), parseInt(splitted[3], 10), parseInt(splitted[4], 10)); + }); + } catch (e) {} + } + + return []; + } + }, { + key: "dbBoxesInfoToDTO", + value: function dbBoxesInfoToDTO(info) { + var infos = info.split("@")[1]; + + if (infos) { + try { + return new _BoxesInfo.default(infos.split(",")); + } catch (e) {} + } + + return null; + } + }, { + key: "dbTitleBoxToDTO", + value: function dbTitleBoxToDTO(info) { + var infos = info.split("@")[2]; + + if (infos) { + try { + var _infos$split = infos.split(","), + _infos$split2 = (0, _slicedToArray2.default)(_infos$split, 5), + type = _infos$split2[0], + left = _infos$split2[1], + top = _infos$split2[2], + width = _infos$split2[3], + height = _infos$split2[4]; + + if (type === "title") { + return new _TitleBox.default(left, top, width, height); + } + } catch (e) {} + } + + return null; + } + }, { + key: "dbExtralinksToDTOs", + value: function dbExtralinksToDTOs(dbExtralinks) { + var extralinks = []; + + if (dbExtralinks) { + var extraArray = dbExtralinks.split(";"); + extraArray.forEach(function (extra) { + var elementArray = extra.split(","); + + if (elementArray.length > 7) { + var type = elementArray[0]; + var left = parseInt(elementArray[1], 10); + var top = parseInt(elementArray[2], 10); + var width = parseInt(elementArray[3], 10); + var height = parseInt(elementArray[4], 10); + var pdfWidth = parseInt(elementArray[5], 10); + var pdfHeight = parseInt(elementArray[6], 10); + var content = elementArray[7]; + var imageURL = elementArray[8]; + extralinks.push(new _ExtraLinks.default(type, content, imageURL, { + left: left, + top: top + }, { + width: width, + height: height + }, { + width: pdfWidth, + height: pdfHeight + })); + } + }); + } else {} + + return extralinks; + } + }, { + key: "_unescapeHTML", + value: function _unescapeHTML(text) { + var decoded = ""; + + if (text) { + try { + decoded = _$$_REQUIRE(_dependencyMap[14]).StringUtils.decodeHTML(text); + decoded = decoded.replace(/]*>|<\/span>/g, ""); + } catch (e) {} + } + + return decoded; + } + }, { + key: "parseIndex", + value: function parseIndex(index) { + var pages = []; + index.forEach(function (rawPage) { + pages.push(NewsmemoryToDTO.dbPageToDTO(rawPage)); + }); + return pages; + } + }]); + }(); +},2250,[3,33,6,7,630,665,666,667,668,587,672,671,669,670,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _Box = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _BoxesInfo = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _ExtraLinks = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _PageJump = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _TitleBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var DTOToNewsmemory = exports.default = function () { + function DTOToNewsmemory() { + (0, _classCallCheck2.default)(this, DTOToNewsmemory); + } + + return (0, _createClass2.default)(DTOToNewsmemory, null, [{ + key: "issueDTOtoDb", + value: function issueDTOtoDb(edition) { + return [edition.getIssueId(), edition.getIssue(), edition.getDownloadTime(), edition.isUpdated() ? 1 : 0, edition.getPaper(), _$$_REQUIRE(_dependencyMap[12]).DateUtils.unixToString(edition.getModifyTime(), "YYYYMMDD HH:mm:ss")]; + } + }, { + key: "pageDTOtoDb", + value: function pageDTOtoDb(page) { + return [page.getPageId(), page.getIssueId(), page.getPage(), page.getShownPage(), page.getType(), page.getFilename(), page.getEdition(), page.getSection(), page.getFrameHeight(), page.getFrameWidth(), page.getExtraMd5(), DTOToNewsmemory.extralinksDTOtoDb(page.getExtralinks()), page.getModifyTime()]; + } + }, { + key: "imageDTOtoDb", + value: function imageDTOtoDb(image) { + return [image.getBase64(), image.getPageId(), image.getType(), image.getWidth(), image.getHeight()]; + } + }, { + key: "articleDTOtoDb", + value: function articleDTOtoDb(article) { + return [article.getPageId(), article.getXmlId(), article.getType(), article.getSubType(), article.getTitle(), article.getHtml(), article.getInc(), article.getChildart(), DTOToNewsmemory.pageJumpsDTOtoDb(article.getPageJumps()), DTOToNewsmemory.boxesAndInfoDTOtoDb(article.getBoxes(), article.getBoxesInfo(), article.getTitleBox())]; + } + }, { + key: "pageJumpsDTOtoDb", + value: function pageJumpsDTOtoDb(pageJumps) { + if (pageJumps && pageJumps.length > 0) { + return "{" + pageJumps.map(function (pageJump) { + return pageJump.toString(); + }).join(",") + "}"; + } + + return "[]"; + } + }, { + key: "boxesAndInfoDTOtoDb", + value: function boxesAndInfoDTOtoDb(boxes, info, titleBox) { + var strBoxes = boxes ? boxes.map(function (box) { + return box.toString(); + }).join(";") : ""; + var strInfo = info ? info.toString() : ""; + var str = strBoxes + "@" + strInfo; + + if (titleBox) { + str += "@" + titleBox.toString(); + } + + return str; + } + }, { + key: "extralinksDTOtoDb", + value: function extralinksDTOtoDb(extralinks) { + return extralinks.map(function (link) { + return link.toString(); + }).join(";"); + } + }]); + }(); +},2251,[3,6,7,665,666,667,668,587,672,671,669,670,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312494,7 +312981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2247,[3,6,7]); +},2252,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312550,7 +313037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2248,[3,6,7,11,13,14,2247,668]); +},2253,[3,6,7,11,13,14,2252,671]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312588,7 +313075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleHRZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleHRZipDownloadOperation); }(_DownloadOperation2.default); -},2249,[3,7,6,11,13,14,2247,668]); +},2254,[3,7,6,11,13,14,2252,671]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312640,7 +313127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2250,[3,6,7,11,13,14,2247,668,587]); +},2255,[3,6,7,11,13,14,2252,671,587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312678,7 +313165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleZipDownloadOperation); }(_DownloadOperation2.default); -},2251,[3,7,6,11,13,14,2247,668]); +},2256,[3,7,6,11,13,14,2252,671]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313245,7 +313732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function purgeLog(message) {} }]); }(); -},2252,[3,270,6,7,566,858,859,857,2243,668,438]); +},2257,[3,270,6,7,566,861,862,860,2248,671,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313296,12 +313783,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var statupEditionDifferent = lastEdition && lastEdition !== this.lastEdition; var startupIssueDifferent = lastIssue && lastIssue !== this.lastIssue; - if (statupEditionDifferent || startupIssueDifferent) { - yield this.resetLastPageNumber(); - yield this.resetLastArticleId(); + if (statupEditionDifferent) { + yield this.resetLastIssue(); } - if (lastPageNumber && !lastArticleId) { + if (statupEditionDifferent || startupIssueDifferent) { + yield this.resetLastPageNumber(); + } + + if (statupEditionDifferent || startupIssueDifferent || lastPageNumber && !lastArticleId) { yield this.resetLastArticleId(); } @@ -313572,7 +314062,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2253,[3,270,6,7,627,1864]); +},2258,[3,270,6,7,630,1869]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313722,7 +314212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref5.apply(this, arguments); }; }(); -},2254,[3,270,858,2056,2165,436,564,812]); +},2259,[3,270,861,2040,2155,436,564,815]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314042,23 +314532,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getParams = _ref2.getParams; var newsmemoryConfig = global.getNewsmemoryConfig(); - if (domain.includes(_optionspageUtils.locals.SET_RN_DEMO)) { - if (_optionalPackageUtils.default.isIOSClassicEPaperAvailable()) { - yield _NewsmemoryDatabasesManager.default.closeDatabase(); - var newsmemoryManager = this.props.newsmemoryManager; - var currentNewspaperManager = newsmemoryManager.currentNewspaperManager; - - if (currentNewspaperManager) { - yield currentNewspaperManager.closeCurrentEditionDatabase(); - } - - newsmemoryConfig.setRNUseDemo(getParams.useRnDemo); - } else { - _$$_REQUIRE(_dependencyMap[28]).Toast.show(global.strings("err_module_unavailable", { - module: "Classic eEdition" - })); - } - } else if (domain.includes(_optionspageUtils.locals.CLEAR_STORAGE)) { + if (domain.includes(_optionspageUtils.locals.CLEAR_STORAGE)) { try { var reloadLatestEdition = yield (0, _$$_REQUIRE(_dependencyMap[29]).optionspageDeleteProcess)(); @@ -314173,7 +314647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e protectSite = _global$getActivePSet3.protectSite, loginStatus = _global$getActivePSet3.loginStatus; - var _newsmemoryManager = this.props.newsmemoryManager; + var newsmemoryManager = this.props.newsmemoryManager; newsmemoryConfig.setAccessibilityMode(true); if (protectSite === 0 || loginStatus.isLoggedIn()) { @@ -314187,8 +314661,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newsmemoryConfig.setAccessibilityMode(false); - if (_newsmemoryManager) { - _newsmemoryManager.load(); + if (newsmemoryManager) { + newsmemoryManager.load(); } }, backAccessibilityLabel: global.strings("label_exit_accessibility_mode"), @@ -314333,7 +314807,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2255,[3,270,6,7,11,85,13,14,582,16,2143,1863,858,2056,2241,2242,436,1910,1865,2026,879,878,866,857,1881,438,1850,564,1976,2254,1868,2225,1087,179]); +},2260,[3,270,6,7,11,85,13,14,582,16,2133,1868,861,2040,2246,2247,436,1998,2194,1986,882,881,869,860,1870,438,1855,564,1934,2259,2197,2215,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314484,7 +314958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2256,[3,4,6,7,11,13,14,16,18,582,2257,564,179,1968]); +},2261,[3,4,6,7,11,13,14,16,18,582,2262,564,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314515,7 +314989,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e margin: 10 } }); -},2257,[18]); +},2262,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314580,11 +315054,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), - OptionsPage = _OptionalPackages$get.OptionsPage, - Methods = _OptionalPackages$get.Methods, - Models = _OptionalPackages$get.Models; - var LOG_CALLBACKS = { onLog: function onLog(message) { for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { @@ -314635,6 +315104,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRSSActiveP = global.getRSSActivePSetup(), rssIsEnabled = _global$getRSSActiveP.rssIsEnabled; + var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get.Methods, + Models = _OptionalPackages$get.Models; + if (_this.currentRoute && !(_this.currentRoute instanceof Models.RouteEdition) && _this.currentRoute.getRoute() !== initialRoute) { Methods.Navigation.navigateToHome(); } else if (rssIsEnabled) { @@ -314657,6 +315130,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e protocol: uri.getProtocol(), port: uri.getPort() }, uri.getParams()); + + var _OptionalPackages$get2 = _optionalPackageUtils.default.getNativeOptionsPage(), + Models = _OptionalPackages$get2.Models; + var message = new Models.Message(); message.setData(JSON.stringify(data)); @@ -314684,6 +315161,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e jsInjection = _ref2.jsInjection; try { + var _OptionalPackages$get3 = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get3.Methods, + Models = _OptionalPackages$get3.Models; + var asyncResult = ""; var asyncMethod = "resolve"; var data = JSON.parse(message.getData()); @@ -314962,6 +315443,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2.close(true); }); var config = global.getNewsmemoryConfig(); + + var _OptionalPackages$get4 = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get4.Methods; + config.getFavEdi().then(Methods.setFavoriteEdition); } }, { @@ -315061,6 +315546,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor = _global$getRssIndex.supportColor; var favoriteEdition = global.getNewsmemoryConfig().getFavEdiSync(); + + var _OptionalPackages$get5 = _optionalPackageUtils.default.getNativeOptionsPage(), + OptionsPage = _OptionalPackages$get5.OptionsPage; + return (0, _$$_REQUIRE(_dependencyMap[36]).jsxs)(_reactNative.View, { style: { position: "absolute", @@ -315148,7 +315637,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2258,[3,4,270,6,7,11,85,13,14,582,16,18,2143,1863,2056,2241,436,1910,434,2026,879,2039,1881,854,2259,1850,878,2236,2260,2058,868,564,1976,1908,438,1726,179,2107,2185,2040,2218,1984,1087]); +},2263,[3,4,270,6,7,11,85,13,14,582,16,18,2133,1868,2040,2246,436,1998,434,1986,882,2022,1870,857,2264,1855,881,2229,2265,2048,871,564,1934,1944,438,1731,179,2097,2174,2023,2239,1942,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315261,7 +315750,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NativeOptionsPageUtils; -},2259,[3,270,6,7,858,2241,2242,878,857,1850,438]); +},2264,[3,270,6,7,861,2246,2247,881,860,1855,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315432,7 +315921,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _completeTransaction.apply(this, arguments); } -},2260,[3,270,1865,879,878,1868,438]); +},2265,[3,270,2194,882,881,2197,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315489,10 +315978,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), - Methods = _OptionalPackages$get.Methods, - Models = _OptionalPackages$get.Models; - var NativeOptionsPageFallback = function (_Shortcut) { function NativeOptionsPageFallback(props) { var _this; @@ -315520,6 +316005,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRSSActiveP = global.getRSSActivePSetup(), rssIsEnabled = _global$getRSSActiveP.rssIsEnabled; + var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get.Methods, + Models = _OptionalPackages$get.Models; + if (_this.currentRoute && !(_this.currentRoute instanceof Models.RouteEdition) && _this.currentRoute.getRoute() !== initialRoute) { Methods.Navigation.navigateToHome(); } else if (rssIsEnabled) { @@ -315574,6 +316063,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this._onMessage = function () { var _ref2 = (0, _asyncToGenerator2.default)(function* (data) { try { + var _OptionalPackages$get2 = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get2.Methods, + Models = _OptionalPackages$get2.Models; + var type = data.type, asyncKey = data.asyncKey, content = data.content, @@ -315998,7 +316491,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2261,[3,4,270,6,7,11,85,13,14,582,16,18,2143,2241,436,1910,2026,879,2039,1881,2259,1850,878,2236,2056,1726,2260,2058,564,1976,1908,438,179,2055,1984,1087]); +},2266,[3,4,270,6,7,11,85,13,14,582,16,18,2133,2246,436,1998,1986,882,2022,1870,2264,1855,881,2229,2040,1731,2265,2048,564,1934,1944,438,179,2039,1942,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316346,7 +316839,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e OptionPageAccessibility.defaultProps = { shortcutPriority: 0 }; -},2262,[3,270,6,7,11,13,14,582,16,18,2143,406,436,1910,1727,2184,814,2263,564,438,1726,2264,179,2186,2192]); +},2267,[3,270,6,7,11,13,14,582,16,18,2133,406,436,1998,1732,2173,817,2268,564,438,1731,2269,179,2175,2181]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316388,7 +316881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e issue: {}, issueText: {} }); -},2263,[18,438]); +},2268,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316422,7 +316915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.pathEdi = obj.pathEdi; this.editionIndex = obj.editionIndex; }); -},2264,[3,7,6]); +},2269,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316659,7 +317152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpen: function onOpen() {}, onClose: function onClose() {} }; -},2265,[3,270,6,7,11,13,14,582,16,18,889,1863,2242,436,627,866,2226,564,878,438,817,2040,179,2185,2237,2055]); +},2270,[3,270,6,7,11,13,14,582,16,18,892,1868,2247,436,630,869,2216,564,881,438,820,2023,179,2174,2230,2039]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316686,7 +317179,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2266,[18]); +},2271,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317544,26 +318037,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_openCloseCarMode", value: function _openCloseCarMode(open) { - if (global.getMainPSetup().useCarMode) { - this._toggleVoiceManager(open); + var _global$getMainPSetup = global.getMainPSetup(), + useCarMode = _global$getMainPSetup.useCarMode; - if (!open) { - this.layoutFlexManager.setCarModeEnabled(false); - this.layoutFlexManager.reset(); - } else { - this.layoutFlexManager.setCarModeEnabled(true); - this.layoutFlexManager.openCarMode(); - } - - this.setState(this.layoutFlexManager.getStyles()); + if (!useCarMode) { + return; } + + this._toggleVoiceManager(open); + + this.layoutFlexManager.setCarModeEnabled(open); + + if (open) { + this.layoutFlexManager.openCarMode(); + } else { + this.layoutFlexManager.reset(); + } + + this.setState(this.layoutFlexManager.getStyles()); } }, { key: "_openAccessibility", value: function _openAccessibility(open) { var _this5 = this; - if (global.getMainPSetup().useNativeAccessibility) { + var _global$getMainPSetup2 = global.getMainPSetup(), + useNativeAccessibility = _global$getMainPSetup2.useNativeAccessibility; + + if (useNativeAccessibility) { if (!open) { this._toggleVoiceManager(false); @@ -318191,29 +318692,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_onPageChange", value: function _onPageChange(currentPageId, isZoomed) { var currentNewspaperManager = this.props.currentNewspaperManager; + + if (!currentNewspaperManager) { + return; + } + this.currentPageId = currentPageId; + currentNewspaperManager.setCurrentPage(currentPageId); global.getNewsmemoryConfig().setLastOperationTimestamp(); - if (currentNewspaperManager) { - currentNewspaperManager.setCurrentPage(this.currentPageId); + var edition = this._getCurrentEdition(); - var currentPage = this._getCurrentPage(); - - var _global$getActivePSet11 = global.getActivePSetup(), - previewHighlightEnabled = _global$getActivePSet11.previewHighlightEnabled; - - if (previewHighlightEnabled) { - _$$_REQUIRE(_dependencyMap[36]).EventRegister.emit(_events.default.NEWSMEMORY_SHOW_EXTRA, { - page: currentPage - }); - } - - var edition = this._getCurrentEdition(); - - if (edition && currentPage) { - (0, _$$_REQUIRE(_dependencyMap[39]).sendNewsmemoryScroll)(edition, currentPage, isZoomed); - } + if (!edition) { + return; } + + var currentPage = this._getCurrentPage(); + + if (!currentPage) { + return; + } + + var _global$getActivePSet11 = global.getActivePSetup(), + previewHighlightEnabled = _global$getActivePSet11.previewHighlightEnabled; + + if (previewHighlightEnabled) { + _$$_REQUIRE(_dependencyMap[36]).EventRegister.emit(_events.default.NEWSMEMORY_SHOW_EXTRA, { + page: currentPage + }); + } + + (0, _$$_REQUIRE(_dependencyMap[39]).sendNewsmemoryScroll)(edition, currentPage, isZoomed); } }, { key: "_onScaleChange", @@ -318507,17 +319016,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var currentPage = this._getCurrentPage(); if (currentPage) { - var firstArticle = currentPage.getArticles().find(function (article) { - return article.isText(); - }); + var articles = currentPage.getArticles(); - if (!firstArticle) { - firstArticle = currentPage.getArticles().find(function (article) { - return !article.isLayout(); + if (!_$$_REQUIRE(_dependencyMap[34]).JSUtils.isEmpty(articles)) { + var firstArticle = articles.find(function (article) { + return article.isText(); }); - } - this._onArticlePress(firstArticle, undefined, true); + if (!firstArticle) { + firstArticle = articles.find(function (article) { + return !article.isLayout(); + }); + } + + this._onArticlePress(firstArticle, undefined, true); + } } } }, { @@ -319105,7 +319618,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[50]).Shortcut.defaultProps, { shortcutEnabled: true }); -},2267,[3,270,240,6,7,11,85,13,14,582,16,18,405,1863,2242,436,434,627,856,665,587,664,857,668,2268,2270,2304,2271,2311,2345,2265,2351,2358,2359,438,2360,564,1908,1726,1900,2178,878,1850,864,1906,179,817,825,2361,1968,1984]); +},2272,[3,270,240,6,7,11,85,13,14,582,16,18,405,1868,2247,436,434,630,859,668,587,667,860,671,2273,2275,2309,2276,2316,2350,2270,2356,2363,2364,438,2365,564,1944,1731,2042,2167,881,1855,867,2002,179,820,828,2366,1926,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319168,7 +319681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2268,[3,6,7,16,814,2269,812,438,179,2186]); +},2273,[3,6,7,16,817,2274,815,438,179,2175]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319204,7 +319717,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2269,[18,438]); +},2274,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319557,7 +320070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleModeManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[24]).Shortcut.defaultProps, { indexMode: false }); -},2270,[3,4,6,7,11,13,14,16,582,664,857,2192,2271,436,668,856,627,1881,438,564,878,817,179,2298,1984]); +},2275,[3,4,6,7,11,13,14,16,582,667,860,2181,2276,436,671,859,630,1870,438,564,881,820,179,2303,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -320439,7 +320952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndexLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[38]).PureShortcut.defaultProps, { indexLevel: 1 }); -},2271,[3,4,270,6,7,11,13,14,16,582,2272,2276,668,665,1998,2227,434,2226,2286,2288,436,664,2290,2291,2292,1727,1881,627,1912,2294,857,1908,438,1900,1726,564,179,817,1984,1857]); +},2276,[3,4,270,6,7,11,13,14,16,582,2277,2281,671,668,1958,2217,434,2216,2291,2293,436,667,2295,2296,2297,1732,1870,630,2000,2299,860,1944,438,2042,1731,564,179,820,1942,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -320630,7 +321143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndex.propTypes = { title: _propTypes.default.string }; -},2272,[3,22,6,7,11,13,14,16,582,434,856,2273,1726,2274,627,179]); +},2277,[3,22,6,7,11,13,14,16,582,434,859,2278,1731,2279,630,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321047,7 +321560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enableSeparator: true, fullscreen: false }); -},2273,[3,22,6,7,11,13,14,16,18,582,2102,668,2187,2184,179,825,2192,438,2274,817,2107,627,1984]); +},2278,[3,22,6,7,11,13,14,16,18,582,2092,671,2176,2173,179,828,2181,438,2279,820,2097,630,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321329,7 +321842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })) }); }; -},2274,[3,16,582,18,814,2187,668,665,856,627,434,2275,1727,438,179,817,2186]); +},2279,[3,16,582,18,817,2176,671,668,859,630,434,2280,1732,438,179,820,2175]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321350,19 +321863,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _EPaperImage = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12])); - var _EPaperImage = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); var _excluded = ["page", "color", "style", "height"]; @@ -321412,13 +321925,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var error = false; try { - this.imageSize = yield this._getImageSize(); + this.imageSize = this._getImageSize(); } catch (e1) { try { error = !(yield this._onDownload()); if (!error) { - this.imageSize = yield this._getImageSize(); + this.imageSize = this._getImageSize(); } } catch (e2) { error = true; @@ -321439,26 +321952,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }, { key: "_getImageSize", - value: function () { - var _getImageSize2 = (0, _asyncToGenerator2.default)(function* () { - var page = this.props.page; + value: function _getImageSize() { + var page = this.props.page; - if (page.getLowImage()) { - return { - width: page.getLowImage().getWidth(), - height: page.getLowImage().getHeight() - }; - } - - throw new Error("Not works with static images"); - }); - - function _getImageSize() { - return _getImageSize2.apply(this, arguments); + if (!page) { + throw new Error("Page is undefined"); } - return _getImageSize; - }() + var lowImage = page.getLowImage(); + + if (!lowImage) { + throw new Error("Does not work with static images"); + } + + return { + width: lowImage.getWidth(), + height: lowImage.getHeight() + }; + } }, { key: "_onDownload", value: function () { @@ -321548,7 +322059,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, page: _propTypes.default.instanceOf(_Page.default) }; -},2275,[3,4,270,6,7,11,13,14,16,582,18,588,668,587,566,438,179,1968]); +},2280,[3,4,270,6,7,11,13,14,582,16,18,566,587,671,588,438,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321865,7 +322376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemorySecondIndex.defaultProps = Object.assign({}, _indexBaseComponent.default.defaultProps, { secondLevelIndex: 0 }); -},2276,[3,22,6,7,11,85,13,14,16,582,2277,2273,668,627,2274,1726,179]); +},2281,[3,22,6,7,11,85,13,14,16,582,2282,2278,671,630,2279,1731,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322103,7 +322614,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showIndicators: false, skipChildMemo: false }; -},2277,[3,6,7,11,13,14,582,16,18,1699,434,2278,2283,2284,1,438,179]); +},2282,[3,6,7,11,13,14,582,16,18,1704,434,2283,2288,2289,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322258,7 +322769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkNavigationButtons; -},2278,[3,33,4,16,582,18,2279,179,817,2281,2282]); +},2283,[3,33,4,16,582,18,2284,179,820,2286,2287]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322308,7 +322819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkButton; -},2279,[3,16,582,18,2280,179,817]); +},2284,[3,16,582,18,2285,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322347,7 +322858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ButtonIcon; -},2280,[3,16,582,1941,179,817]); +},2285,[3,16,582,1899,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -322359,7 +322870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-left-button", "type": "png" }); -},2281,[1258]); +},2286,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -322371,7 +322882,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-right-button", "type": "png" }); -},2282,[1258]); +},2287,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322430,7 +322941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = ViewPagerChild; -},2283,[3,16,582,18,627,179,1968]); +},2288,[3,16,582,18,630,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322484,7 +322995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Indicators; -},2284,[3,16,582,18,2285,179,438]); +},2289,[3,16,582,18,2290,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322515,7 +323026,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginBottom: 3 } }); -},2285,[18,438]); +},2290,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322588,7 +323099,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SubHeaderComponent.defaultProps = { cssClasses: [] }; -},2286,[3,6,7,11,13,14,16,582,18,2287,179,817]); +},2291,[3,6,7,11,13,14,16,582,18,2292,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322608,7 +323119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "flex-end" } }); -},2287,[18,825]); +},2292,[18,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322751,7 +323262,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _propTypes.default.string.isRequired, onChangeEventName: _propTypes.default.string }; -},2288,[3,6,7,11,13,14,16,18,582,814,2289,564,438,179,817,2186]); +},2293,[3,6,7,11,13,14,16,18,582,817,2294,564,438,179,820,2175]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322785,7 +323296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontStyle: "italic" } }); -},2289,[18,825]); +},2294,[18,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322949,7 +323460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, cssProps: {} }; -},2290,[3,4,6,7,11,13,14,16,582,2227,564,179]); +},2295,[3,4,6,7,11,13,14,16,582,2217,564,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323164,7 +323675,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rightButtons: [], cssButtonClasses: [] }; -},2291,[3,22,6,7,11,13,14,16,582,18,1726,817,438,825,179,1806]); +},2296,[3,22,6,7,11,13,14,16,582,18,1731,820,438,828,179,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323247,7 +323758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_indexBaseComponent.default); -},2292,[3,6,7,11,13,14,16,407,866,2144,2187,2273,817,2177,2179,2293,179,2107,2185]); +},2297,[3,6,7,11,13,14,16,407,869,2134,2176,2278,820,2166,2168,2298,179,2097,2174]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323261,7 +323772,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var getCustomIndexIframeDefinition = exports.getCustomIndexIframeDefinition = function getCustomIndexIframeDefinition() { return "\n "; }; -},2293,[]); +},2298,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323422,7 +323933,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor: global.getRssIndex() }); } -},2294,[3,4,16,1935,434,665,857,2078,2295,438,2173,1943,2033,2178,2020,179,2274,2028,817]); +},2299,[3,4,16,1893,434,668,860,2068,2300,438,2163,1901,1993,2167,1980,179,2279,1988,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323519,7 +324030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabNavigator; -},2295,[3,4,16,18,582,2296,1682,179,438]); +},2300,[3,4,16,18,582,2301,1687,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323755,7 +324266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabBar; -},2296,[3,22,33,16,18,582,2297,438,179]); +},2301,[3,22,33,16,18,582,2302,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323841,7 +324352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabItem; -},2297,[3,16,18,582,1941,814,438,179]); +},2302,[3,16,18,582,1899,817,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -325961,18 +326472,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (mgr.ttsIsSpeaking() && currentArticle && (!currentArticle.isText() || !(0, _$$_REQUIRE(_dependencyMap[53]).stripHTMLTags)(currentArticle.getHtml()).trim())) { var nextTextArticleIndex = index; - var findNextEditorial = function findNextEditorial(item) { + var findNextEdit = function findNextEdit(item) { return item.isText() && (0, _$$_REQUIRE(_dependencyMap[53]).stripHTMLTags)(item.getHtml()).trim(); }; if (index > this.lastOnSwipeIndex) { - var partialIndex = this.items.slice(index).findIndex(findNextEditorial); + var partialIndex = this.items.slice(index).findIndex(findNextEdit); if (partialIndex > -1) { nextTextArticleIndex = partialIndex + index; } } else { - var _partialIndex = this.items.slice(0, index).reverse().findIndex(findNextEditorial); + var _partialIndex = this.items.slice(0, index).reverse().findIndex(findNextEdit); if (_partialIndex > -1) { nextTextArticleIndex = index - 1 - _partialIndex; @@ -326147,7 +326658,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryArticleLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[54]).Shortcut.defaultProps, { header: false }); -},2298,[3,270,6,7,11,85,13,14,582,16,18,1863,406,1864,1965,436,2299,434,627,856,2148,566,1727,664,665,857,668,1967,2277,2144,2300,2226,2301,2288,2286,2302,2227,2291,2290,2303,1726,564,438,1908,1909,1979,1976,2174,179,1900,2181,817,864,2173,1984,1857]); +},2303,[3,270,6,7,11,85,13,14,582,16,18,1868,406,1869,1923,436,2304,434,630,859,2138,566,1732,667,668,860,671,1925,2282,2134,2305,2216,2306,2293,2291,2307,2217,2296,2295,2308,1731,564,438,1944,2003,1937,1934,2164,179,2042,2170,820,867,2163,1942,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326631,7 +327142,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2299,[3,270,6,7,18,2160,567,406,664,665,857,668,1881,566,2039,1976,1909,1906,1900,438,864,586]); +},2304,[3,270,6,7,18,2150,567,406,667,668,860,671,1870,566,2022,1934,2003,2002,2042,438,867,586]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326813,7 +327324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e level: DEFAULT_LEVEL, visible: false }; -},2300,[3,6,7,11,13,14,16,18,582,814,436,564,179,817,825]); +},2305,[3,6,7,11,13,14,16,18,582,817,436,564,179,820,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326885,7 +327396,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FlagIconComponent; -},2301,[3,22,4,16,582,18,1941,2165,814,438,1726,179,817]); +},2306,[3,22,4,16,582,18,1899,2155,817,438,1731,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327058,7 +327569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e badgeIcon: undefined, cssBadgeClasses: [] }; -},2302,[3,6,7,11,85,13,14,16,582,18,2227,2228,1941,564,438,179,817]); +},2307,[3,6,7,11,85,13,14,16,582,18,2217,2218,1899,564,438,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327112,7 +327623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2303,[18,825]); +},2308,[18,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327807,7 +328318,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isItemPresent: _propTypes.default.func, style: _propTypes.default.any }, _$$_REQUIRE(_dependencyMap[33]).Shortcut.propTypes); -},2304,[3,270,22,6,7,11,85,13,14,582,16,18,1863,2242,436,434,2026,1912,1881,1941,2305,564,1908,817,438,1726,179,2181,878,812,2111,2306,2310,1984,1847]); +},2309,[3,270,22,6,7,11,85,13,14,582,16,18,1868,2247,436,434,1986,2000,1870,1899,2310,564,1944,820,438,1731,179,2170,881,815,2101,2311,2315,1942,1852]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328173,7 +328684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e duration: _$$_REQUIRE(_dependencyMap[12]).HIDE_ANIMATION_DURATION, hideAfter: _$$_REQUIRE(_dependencyMap[12]).HIDE_ANIMATION_TIMER }; -},2305,[3,4,6,7,11,13,14,16,582,18,564,179,825]); +},2310,[3,4,6,7,11,13,14,16,582,18,564,179,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328393,7 +328904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NewsMemoryFooterIcon); -},2306,[3,6,7,11,85,13,14,16,436,2307,564,857,812,438,1726,179,1968,2309,2310]); +},2311,[3,6,7,11,85,13,14,16,436,2312,564,860,815,438,1731,179,1926,2314,2315]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328541,7 +329052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssTextClasses: [], cssTextParentClasses: [] }; -},2307,[3,6,7,11,13,14,16,18,154,582,2308,1941,179,2309,817]); +},2312,[3,6,7,11,13,14,16,18,154,582,2313,1899,179,2314,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328664,7 +329175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssParentClasses: [] }; -},2308,[3,270,6,7,11,13,14,16,582,18,814,438,179,817,2309]); +},2313,[3,270,6,7,11,13,14,16,582,18,817,438,179,820,2314]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328698,7 +329209,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 12 } }); -},2309,[18]); +},2314,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328933,7 +329444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, visible: true }); -},2310,[3,270,6,7,11,13,14,16,582,18,814,2307,179,438,817,2309,1984,1806]); +},2315,[3,270,6,7,11,13,14,16,582,18,817,2312,179,438,820,2314,1942,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329620,7 +330131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageNumberTop: true, isSpecialSection: false }); -},2311,[3,270,6,7,11,85,13,14,582,16,18,1863,436,2197,627,856,857,668,2312,2331,564,438,1908,1900,179,1984,1862]); +},2316,[3,270,6,7,11,85,13,14,582,16,18,1868,436,2186,630,859,860,671,2317,2336,564,438,1944,2042,179,1942,1867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331011,7 +331522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e numberOfShowedPages: 1, initialEvent: undefined }); -},2312,[3,270,22,6,7,11,85,13,14,582,16,1863,436,627,856,662,665,857,668,2313,2153,2314,2321,438,564,1908,669,1976,1900,179,1984]); +},2317,[3,270,22,6,7,11,85,13,14,582,16,1868,436,630,859,665,668,860,671,2318,2142,2319,2326,438,564,1944,672,1934,2042,179,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331139,7 +331650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2313,[3,6,7]); +},2318,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331833,7 +332344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e twoFingerTapEnabled: false, cssContainerClasses: [] }; -},2314,[3,22,6,7,11,13,14,582,16,18,671,2152,2315,2151,2316,2320,438,670,179,1,817]); +},2319,[3,22,6,7,11,13,14,582,16,18,674,2140,2320,2141,2321,2325,438,673,179,1,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332078,7 +332589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2315,[3,6,7,2313,438]); +},2320,[3,6,7,2318,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332711,7 +333222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2316,[3,33,6,7,671,2153,1,2317,2318,2319,670]); +},2321,[3,33,6,7,674,2142,1,2322,2323,2324,673]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332813,7 +333324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startStopClock: false })), (0, _$$_REQUIRE(_dependencyMap[4]).runTiming)(clock, value, rest)], cond(pinchEnd, [set(displacementX, focalXRest), set(displacementY, focalYRest), set(finishPinch, 1), debug("PINCH SCALE TO END: ", rest), rest], [debug("PINCH SCALE START: ", value), set(isStartScaleEqualToMinScale, cond(eq(value, minScale), 1, 0)), cond(or(pinchStart, eq(starting, 1)), [set(starting, 0), call([starting], onStart)]), value])))))), set(leftLimit, leftConstraint(scaleToRet, minScale, displacementX)), set(topLimit, topConstraint(scaleToRet, minScale, displacementY)), set(rightLimit, rightConstraint(leftLimit, scaleToRet, width, nPages, pagesVisible)), set(bottomLimit, bottomConstraint(topLimit, scaleToRet, minScale, height, viewHeight)), set(fit, fitValue(scaleToRet, width, viewWidth)), set(horizontalMargin, hMargin(scaleToRet, minScale, width, viewWidth, pagesVisible)), cond(eq(finishPinch, 1), [call([leftLimit, topLimit, rightLimit, bottomLimit], onUpdateLimit), cond(isFitted, call([], onFit), call([], onUnFit)), call([scaleToRet, displacementX, displacementY, zoomToActive], onEnd), set(finishPinch, 0), set(pinchOldState, _$$_REQUIRE(_dependencyMap[3]).State.UNDETERMINED), set(prevPinchScale, 1), set(pinchScale, 1)]), scaleToRet]; } -},2317,[3,671,2153,1,670]); +},2322,[3,674,2142,1,673]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332867,7 +333378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var maxVelocityXCondition = greaterThan(abs(velocityX), abs(maxVelocityX)); return block([cond(notSet, [set(maxVelocityX, 0), set(tempDragX, 0)]), cond(enableDirectionSet, [cond(enableX, set(direction, Direction.EnableX)), cond(enable, set(direction, Direction.Enable)), cond(enableY, set(direction, Direction.EnableY))]), cond(eq(direction, Direction.EnableX), [set(velocityY, 0), set(dragY, 0)]), cond(eq(direction, Direction.EnableY), [cond(and(panActive, maxVelocityXCondition), set(maxVelocityX, velocityX)), cond(swipeCondition, [set(tempDragX, dragX)]), cond(panEnd, set(dragX, tempDragX), set(dragX, 0))]), cond(panEnd, [set(direction, Direction.NotSet)])]); }; -},2318,[671,3,2153]); +},2323,[674,3,2142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333040,7 +333551,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e duration: _zoomConstants.default.constants.ZOOM_TO_DURATION })), set(value, panRest(top, bottom, add(tempPan, tempDragY))), cond(not(clockRunning(zoomClock)), [set(tempDragY, 0), set(zoomToDragY, 0), call([value], onEnd)]), value], cond([diffY, velocityY, panActive], [stopClock(clockMagnetic), cond(not(isScaling), cond(greaterThan(abs(velocityY), 0), set(maxVelocityY, velocityY)), set(maxVelocityY, 0)), cond(and(eq(bottomReachedCalled, 0), (0, _reactNativeReanimated.lessOrEq)(value, bottom), lessThan(drag, -_zoomConstants.default.constants.VERTICAL_THRESHOLD)), [set(bottomReachedCalled, 1), call([], onBottomReached)]), set(velocityY, 0), debug("VELOCITY Y: ", maxVelocityY), panRest(top, bottom, add(value, diffY))], cond(and(panEnd, not(panCancelled)), cond(isMagneting, [set(nextMagneticValue, (0, _$$_REQUIRE(_dependencyMap[5]).runTiming)(clockMagnetic, rest, magneticDestination)), cond(not(clockRunning(clockMagnetic)), [debug("MAGNETIC END Y: ", nextMagneticValue), set(bottomReachedCalled, 0), set(maxVelocityY, 0), call([nextMagneticValue], onEnd)]), nextMagneticValue], [debug("PAN END Y: ", rest), stopClock(zoomClock), call([rest], onEnd), set(bottomReachedCalled, 0), set(maxVelocityY, 0), rest]), [cond(panStart, [debug("PAN START Y: ", value), call([], onStart)]), cond(panCancelled, [debug("PAN CANCELLED Y: ", value), stopClock(clockMagnetic), call([rest], onEnd), set(bottomReachedCalled, 0), set(maxVelocityY, 0)]), rest]))))]; } -},2319,[671,3,2153,438,1,670]); +},2324,[674,3,2142,438,1,673]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333083,7 +333594,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2320,[18,438]); +},2325,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333813,7 +334324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showBorder: false, loginOverlayPosition: _$$_REQUIRE(_dependencyMap[30]).PageViewPosition.CENTER }; -},2321,[3,6,7,11,13,14,582,16,18,1863,436,627,857,668,2322,2170,2323,2324,2158,2325,2326,2327,2330,864,564,438,586,587,179,665,856]); +},2326,[3,6,7,11,13,14,582,16,18,1868,436,630,860,671,2327,2160,2328,2329,2148,2330,2331,2332,2335,867,564,438,586,587,179,668,859]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334074,7 +334585,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e page: _propTypes.default.instanceOf(_Page.default), style: _propTypes.default.any }; -},2322,[3,4,270,6,7,11,13,14,16,18,889,582,668,2197,438,1,579,179]); +},2327,[3,4,270,6,7,11,13,14,16,18,892,582,671,2186,438,1,579,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334279,7 +334790,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minZoom: 1, hidden: false }; -},2323,[3,33,6,7,11,13,14,16,18,582,668,664,814,438,817,179]); +},2328,[3,33,6,7,11,13,14,16,18,582,671,667,817,438,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334372,7 +334883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.PureComponent); -},2324,[3,6,7,11,13,14,16,18,179,817,438]); +},2329,[3,6,7,11,13,14,16,18,179,820,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334650,7 +335161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, fitWidth: _propTypes.default.bool }; -},2325,[3,6,7,11,13,14,16,582,18,957,436,627,662,1863,2159,669,668,564,438,179]); +},2330,[3,6,7,11,13,14,16,582,18,960,436,630,665,1868,2149,672,671,564,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334741,7 +335252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageImage.defaultProps = { show: true }; -},2326,[3,4,6,7,11,13,14,16,582,587,566,588,438,179,1968]); +},2331,[3,4,6,7,11,13,14,16,582,587,566,588,438,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334883,7 +335394,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e left: _propTypes.default.number }) }; -},2327,[3,6,7,11,13,14,16,582,2328,18,668,587,2326,2329,566,857,179,438]); +},2332,[3,6,7,11,13,14,16,582,2333,18,671,587,2331,2334,566,860,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335053,7 +335564,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e blackAndWhite: false, enableThumbnail: false }; -},2328,[3,4,6,7,11,13,14,16,582,18,438,179,595]); +},2333,[3,4,6,7,11,13,14,16,582,18,438,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335302,7 +335813,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageHr.defaultProps = { showAll: true }; -},2329,[3,6,7,11,13,14,16,582,18,668,627,436,857,587,2155,438,564,179]); +},2334,[3,6,7,11,13,14,16,582,18,671,630,436,860,587,2145,438,564,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335330,7 +335841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2330,[18,438]); +},2335,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335741,7 +336252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e animateButtons: false } }; -},2331,[3,4,6,7,11,13,14,582,16,18,436,627,664,1941,2307,2332,2333,2335,2344,438,564,179,1,812,1726,1807,1862]); +},2336,[3,4,6,7,11,13,14,582,16,18,436,630,667,1899,2312,2337,2338,2340,2349,438,564,179,1,815,1731,1812,1867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335809,7 +336320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesBackToPaperButton.propTypes = { onPress: _propTypes.default.func.isRequired }; -},2332,[3,6,7,11,13,14,16,582,18,2333,588,179,2334]); +},2337,[3,6,7,11,13,14,16,582,18,2338,588,179,2339]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335914,7 +336425,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 23 } }); -},2333,[18,438,825]); +},2338,[18,438,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -335926,7 +336437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-to-paper", "type": "png" }); -},2334,[1258]); +},2339,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336229,7 +336740,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesNavigationButtons.defaultProps = { version: 2 }; -},2335,[3,6,7,11,13,14,16,582,18,2333,2151,436,2305,1941,2336,2337,2338,2339,2340,2341,2342,2343,179,817,438,1862]); +},2340,[3,6,7,11,13,14,16,582,18,2338,2141,436,2310,1899,2341,2342,2343,2344,2345,2346,2347,2348,179,820,438,1867]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336241,7 +336752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2336,[1258]); +},2341,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336253,7 +336764,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2337,[1258]); +},2342,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336265,7 +336776,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2338,[1258]); +},2343,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336277,7 +336788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2339,[1258]); +},2344,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336289,7 +336800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2340,[1258]); +},2345,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336301,7 +336812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2341,[1258]); +},2346,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336313,7 +336824,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2342,[1258]); +},2347,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336325,7 +336836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2343,[1258]); +},2348,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336488,7 +336999,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pagesAreaSize: _propTypes.default.object, onPress: _propTypes.default.func }; -},2344,[3,6,7,11,13,14,16,582,18,814,2305,436,179,817,1,2335]); +},2349,[3,6,7,11,13,14,16,582,18,817,2310,436,179,820,1,2340]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336868,7 +337379,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, model: _propTypes.default.instanceOf(_$$_REQUIRE(_dependencyMap[28]).Header).isRequired }, _$$_REQUIRE(_dependencyMap[27]).Shortcut.propTypes); -},2345,[3,6,7,11,13,14,16,582,18,814,2226,2346,665,668,2347,664,856,1907,2184,1908,179,825,1726,817,2349,438,2192,1984,1857]); +},2350,[3,6,7,11,13,14,16,582,18,817,2216,2351,668,671,2352,667,859,1943,2173,1944,179,828,1731,820,2354,438,2181,1942,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336933,7 +337444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR } }); -},2346,[18,825,438]); +},2351,[18,828,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337054,7 +337565,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClassesIcon: [], cssClassesText: [] }; -},2347,[3,6,7,11,13,14,16,582,18,814,2348,1807,179,817,438]); +},2352,[3,6,7,11,13,14,16,582,18,817,2353,1812,179,820,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337076,7 +337587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlign: "center" } }); -},2348,[18]); +},2353,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337321,7 +337832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 0, autoFocus: false }; -},2349,[3,270,6,7,11,13,14,582,16,18,2230,1807,817,438,179,2350]); +},2354,[3,270,6,7,11,13,14,582,16,18,2220,1812,820,438,179,2355]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337357,7 +337868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 30 } }); -},2350,[18]); +},2355,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338057,7 +338568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired }, _$$_REQUIRE(_dependencyMap[30]).Shortcut.propTypes); NewsmemoryThumbnail.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[30]).Shortcut.defaultProps); -},2351,[3,270,6,7,11,85,13,14,582,16,18,2352,436,627,856,566,664,587,857,668,2353,564,864,1908,2354,438,179,2112,2355,817,1984]); +},2356,[3,270,6,7,11,85,13,14,582,16,18,2357,436,630,859,566,667,587,860,671,2358,564,867,1944,2359,438,179,2102,2360,820,1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -338167,7 +338678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; }; -},2352,[]); +},2357,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338332,7 +338843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 5 } }); -},2353,[18,3,668,627,664,438,825]); +},2358,[18,3,671,630,667,438,828]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338412,7 +338923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2354,[3,6,7,668]); +},2359,[3,6,7,671]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338709,7 +339220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); }; -},2355,[3,270,16,18,2353,814,2356,668,856,627,664,857,2299,436,179,817,2192,1979,1900,2357,825,1807,438,2112]); +},2360,[3,270,16,18,2358,817,2361,671,859,630,667,860,2304,436,179,820,2181,1937,2042,2362,828,1812,438,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338823,7 +339334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.object }; -},2356,[3,4,270,6,7,11,13,14,16,582,588,179,1968]); +},2361,[3,4,270,6,7,11,13,14,16,582,588,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339004,7 +339515,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DownloadButton.defaultProps = { disabled: false }; -},2357,[3,4,6,7,11,13,14,16,582,18,1807,564,179,817,1968]); +},2362,[3,4,6,7,11,13,14,16,582,18,1812,564,179,820,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339277,7 +339788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BackgroundPages.defaultProps = { hidden: false }; -},2358,[3,6,7,11,13,14,582,16,18,436,627,664,857,668,2321,2359,564,825,179,438,817,1968]); +},2363,[3,6,7,11,13,14,582,16,18,436,630,667,860,671,2326,2364,564,828,179,438,820,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339308,7 +339819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},2359,[18,438]); +},2364,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339974,7 +340485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); LayoutFlexManager.LAST_ACCESSIBILITY_STATE = false; -},2360,[3,6,7,434,1863,817,438]); +},2365,[3,6,7,434,1868,820,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339989,7 +340500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2361,[2362]); +},2366,[2367]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340120,7 +340631,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2362,[3,6,7,11,13,14,16,582,436,564,179,1968,438]); +},2367,[3,6,7,11,13,14,16,582,436,564,179,1926,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340135,7 +340646,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2363,[2364]); +},2368,[2369]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340374,7 +340885,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showLoading: true, ignoreSafeArea: false }; -},2364,[3,6,7,11,13,14,582,16,18,436,434,588,2365,564,179,2366,1968,438]); +},2369,[3,6,7,11,13,14,582,16,18,436,434,588,2370,564,179,2371,1926,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340400,7 +340911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: "contain" }; }; -},2365,[3,434]); +},2370,[3,434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340416,7 +340927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: "100%" } }); -},2366,[18]); +},2371,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340727,7 +341238,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2367,[3,6,7,11,85,13,14,582,16,18,1863,436,2020,2231,2368,2379,2380,2384,2385,438,564,179,817,2232,2211,2027,2112]); +},2372,[3,6,7,11,85,13,14,582,16,18,1868,436,1980,2221,2373,2384,2385,2389,2390,438,564,179,820,2222,2231,1987,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341010,7 +341521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2368,[3,270,6,7,11,13,14,16,18,2143,2134,2077,1915,879,2039,1881,2369,2370,2372,2376,2377,2378,815,1991,438,817,179,1976]); +},2373,[3,270,6,7,11,13,14,16,18,2133,2124,2067,2010,882,2022,1870,2374,2375,2377,2381,2382,2383,818,1951,438,820,179,1934]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341137,7 +341648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onChange: _propTypes.default.func.isRequired }; -},2369,[3,270,6,7,11,13,14,582,16,2234,812,179]); +},2374,[3,270,6,7,11,13,14,582,16,2226,815,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341278,7 +341789,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: _propTypes.default.bool, onChange: _propTypes.default.func.isRequired }; -},2370,[3,270,6,7,11,13,14,16,582,18,2371,817,179,2235,2234]); +},2375,[3,270,6,7,11,13,14,16,582,18,2376,820,179,2227,2226]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341365,7 +341876,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaCheckBox; -},2371,[3,16,582,18,1807,438,179,817]); +},2376,[3,16,582,18,1812,438,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341519,7 +342030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPicker; -},2372,[3,270,33,4,16,582,18,2234,2373,179]); +},2377,[3,270,33,4,16,582,18,2226,2378,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341730,7 +342241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownList; -},2373,[3,22,33,16,582,18,828,2374,817,179,2112]); +},2378,[3,22,33,16,582,18,831,2379,820,179,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341833,7 +342344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDownOption.defaultProps = {}; var _default = exports.default = DropDownOption; -},2374,[3,582,16,18,2375,179,817]); +},2379,[3,582,16,18,2380,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341965,7 +342476,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Option; -},2375,[3,4,582,16,18,814,1807,1941,438,179]); +},2380,[3,4,582,16,18,817,1812,1899,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342022,7 +342533,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPickerMulti; -},2376,[3,4,16,582,2372,179]); +},2381,[3,4,16,582,2377,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342067,7 +342578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingText; -},2377,[3,16,582,18,817,179,2235,2234]); +},2382,[3,16,582,18,820,179,2227,2226]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342139,7 +342650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2378,[3,6,7,1976]); +},2383,[3,6,7,1934]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342162,21 +342673,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _NewsmemoryDatabasesManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _settingButton = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _settingButton = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -342212,7 +342719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e label: ePaper }) }, this.getCollapsedParams(), { - data: this.isCollapsed() ? [] : [showTabIndexModeCustomization ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingCheckbox.default, { + data: this.isCollapsed() ? [] : [showTabIndexModeCustomization ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingCheckbox.default, { value: newsmemoryConfig.enableTabIndexMode, label: global.strings("settings_tab_index_mode"), onChange: function onChange() { @@ -342222,7 +342729,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return newsmemoryConfig.enableTabIndexMode; } - }) : null, enableAdvancedGesturesMode && _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingCheckbox.default, { + }) : null, enableAdvancedGesturesMode && _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingCheckbox.default, { value: newsmemoryConfig.twoFingersTapToArticle, label: global.strings("settings_two_fingers_tap_to_article"), onChange: function onChange() { @@ -342240,14 +342747,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return newsmemoryConfig.twoFingersTapToArticle; } - }) : null, enableAdvancedGesturesMode && _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet() && newsmemoryConfig.twoFingersTapToArticle ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingCheckbox.default, { + }) : null, enableAdvancedGesturesMode && _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() && newsmemoryConfig.twoFingersTapToArticle ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingCheckbox.default, { value: newsmemoryConfig.singleTapToZoom, label: global.strings("settings_single_tap_to_zoom"), onChange: function onChange() { newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.single_tap_to_zoom, newsmemoryConfig.singleTapToZoom ? "0" : "1"); return newsmemoryConfig.singleTapToZoom; } - }) : null, enableArticleTypesCustomization ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingPicker.default, { + }) : null, enableArticleTypesCustomization ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingPicker.default, { label: global.strings("settings_article_mode"), value: newsmemoryConfig.showTypesArticle, values: [{ @@ -342264,7 +342771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onChange: function onChange(value) { newsmemoryConfig.setShowTypesArticle(value); } - }) : null, showNavigationButtonsLayoutCustomization ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingPicker.default, { + }) : null, showNavigationButtonsLayoutCustomization ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingPicker.default, { label: global.strings("settings_navigation_arrows"), value: newsmemoryConfig.pagesNavigationButtonsLayout, values: [{ @@ -342281,7 +342788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onChange: function onChange(value) { newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.pages_navigation_buttons_layout, value); } - }) : null, showHighlightBehaviorCustomization && _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingCheckbox.default, { + }) : null, showHighlightBehaviorCustomization && _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingCheckbox.default, { value: newsmemoryConfig.backgroundTimerArticleSelected === 0, label: global.strings("settings_article_highlight"), onChange: function onChange() { @@ -342289,45 +342796,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.background_timer_article_selected, "" + newValue); return newValue === 0; } - }) : null, !global.isLayoutDebug && (global.isDebug || _$$_REQUIRE(_dependencyMap[18]).NetworkUtils.isTecnaviaIP() || newsmemoryConfig.titleBoxDebug) && showOpenArticleExtraOnTitleBox !== _$$_REQUIRE(_dependencyMap[19]).ARTICLE_TITLE_BOX_MODE.NEVER ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingCheckbox.default, { + }) : null, !global.isLayoutDebug && (global.isDebug || _$$_REQUIRE(_dependencyMap[16]).NetworkUtils.isTecnaviaIP() || newsmemoryConfig.titleBoxDebug) && showOpenArticleExtraOnTitleBox !== _$$_REQUIRE(_dependencyMap[17]).ARTICLE_TITLE_BOX_MODE.NEVER ? (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingCheckbox.default, { value: newsmemoryConfig.titleBoxDebug, label: global.strings("settings_title_box"), onChange: function onChange() { newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.title_box_debug, newsmemoryConfig.titleBoxDebug ? "0" : "1"); return newsmemoryConfig.titleBoxDebug; } - }) : null, _optionalPackageUtils.default.isIOSClassicEPaperAvailable() ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingButton.default, { - label: global.strings("settings_back_to_classic"), - button: global.strings("open"), - onChange: (0, _asyncToGenerator2.default)(function* () { - yield _NewsmemoryDatabasesManager.default.closeDatabase(); - - _$$_REQUIRE(_dependencyMap[20]).EventRegister.emit(_events.default.NEWSMEMORY_CLOSE_CURRENT_DB); - - newsmemoryConfig.setRNUseDemo("0"); - }) - }) : null, (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingButton.default, { + }) : null, (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingButton.default, { label: global.strings("settings_restore_defaults"), button: global.strings("reset"), onChange: function onChange() { - (0, _$$_REQUIRE(_dependencyMap[21]).askTo)(global.strings("msg_restore_default_settings"), (0, _asyncToGenerator2.default)(function* () { + (0, _$$_REQUIRE(_dependencyMap[18]).askTo)(global.strings("msg_restore_default_settings"), (0, _asyncToGenerator2.default)(function* () { yield newsmemoryConfig.reset(); })); _this.updateUI(); } - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_settingButton.default, { + }), (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_settingButton.default, { label: global.strings("settings_clear_storage"), button: global.strings("clear"), onChange: (0, _asyncToGenerator2.default)(function* () { try { - var reloadLatestEdition = yield (0, _$$_REQUIRE(_dependencyMap[21]).optionspageDeleteProcess)(); + var reloadLatestEdition = yield (0, _$$_REQUIRE(_dependencyMap[18]).optionspageDeleteProcess)(); if (reloadLatestEdition) { - _$$_REQUIRE(_dependencyMap[20]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_LATEST_EDITION); + _$$_REQUIRE(_dependencyMap[19]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_LATEST_EDITION); } else { - _$$_REQUIRE(_dependencyMap[20]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[22]).tabs.home + _$$_REQUIRE(_dependencyMap[19]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[20]).tabs.home }); } @@ -342339,7 +342836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2379,[3,270,6,7,11,13,14,16,1863,858,1864,436,879,2369,2370,2372,2378,179,438,864,564,2254,878]); +},2384,[3,270,6,7,11,13,14,16,1868,1869,436,2374,2375,2377,2383,179,438,867,2259,564,881]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342628,7 +343125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2380,[3,270,22,6,7,11,13,14,16,407,2143,1863,2165,1864,436,1910,2370,2372,2378,179,2381,627,2382,2383,438,564]); +},2385,[3,270,22,6,7,11,13,14,16,407,2133,1868,2155,1869,436,1998,2375,2377,2383,179,2386,630,2387,2388,438,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -342640,7 +343137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_full", "type": "png" }); -},2381,[1258]); +},2386,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -342652,7 +343149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_medium", "type": "png" }); -},2382,[1258]); +},2387,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -342664,7 +343161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_low", "type": "png" }); -},2383,[1258]); +},2388,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342744,7 +343241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2384,[3,6,7,11,13,14,16,434,2369,2229,2378,2214,179]); +},2389,[3,6,7,11,13,14,16,434,2374,2219,2383,2223,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342934,7 +343431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2385,[3,270,6,7,11,13,14,16,1907,2045,566,2369,2386,2378,438,2028,179]); +},2390,[3,270,6,7,11,13,14,16,1943,2028,566,2374,2391,2383,438,1988,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342997,7 +343494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingMyHome; -},2386,[3,16,582,2234,828,179,2387]); +},2391,[3,16,582,2226,831,179,2392]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343012,7 +343509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2387,[2388]); +},2392,[2393]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343789,7 +344286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeConfig.defaultProps = { showAlwaysOnClose: false }; -},2388,[3,22,240,6,7,11,13,14,270,582,16,18,2025,2045,1934,434,2032,2219,2371,814,1807,588,2389,2028,2033,179,817,617,438,2112]); +},2393,[3,22,240,6,7,11,13,14,270,582,16,18,1985,2028,1892,434,1992,2228,2376,817,1812,588,2394,1988,1993,179,820,620,438,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343949,7 +344446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 40 } }); -},2389,[18,2020,438]); +},2394,[18,1980,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343964,7 +344461,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2390,[2391]); +},2395,[2396]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344124,303 +344621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryHTML5Screen.propTypes = { navigation: _propTypes.default.object }; -},2391,[3,6,7,11,85,13,14,16,18,567,582,1907,1881,438,179,2055,1976,2211]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.NewsmemoryNativeScreen = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - - var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _RssIndexConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var Analytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15])); - - var _IAPHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - - function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } - - function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var NewsmemoryNativeScreen = exports.NewsmemoryNativeScreen = function (_NavigationBaseScreen) { - function NewsmemoryNativeScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, NewsmemoryNativeScreen); - _this = _callSuper(this, NewsmemoryNativeScreen, [props]); - _this.currentOrientation = _deviceUtils.default.currentFullOrientation; - return _this; - } - - (0, _inherits2.default)(NewsmemoryNativeScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(NewsmemoryNativeScreen, [{ - key: "UNSAFE_componentWillMount", - value: function UNSAFE_componentWillMount() { - _LiveConfig.default.setEpaperClassicSide(); - - Analytics.initMatomo(); - Analytics.initMatomoTracker(); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - (0, _get2.default)((0, _getPrototypeOf2.default)(NewsmemoryNativeScreen.prototype), "componentDidMount", this).call(this); - - _IAPHelper.default.unregisterReceiver(); - - var _global$getRssIndex = global.getRssIndex(), - paywallEnabled = _global$getRssIndex.paywallEnabled; - - var _global$getFontsConfi = global.getFontsConfig(), - fontBold = _global$getFontsConfi.fontBold, - fontMedium = _global$getFontsConfi.fontMedium, - fontRegular = _global$getFontsConfi.fontRegular; - - var tab = this.props.tab; - var reactTag = this.viewRef ? (0, _reactNative.findNodeHandle)(this.viewRef) : undefined; - - var IOSClassicEPaper = _optionalPackageUtils.default.getIOSClassicEPaper(); - - if (IOSClassicEPaper) { - IOSClassicEPaper.navigateToNewsmemory({ - splashPortrait: _$$_REQUIRE(_dependencyMap[20]).Wallpaper.getDefaultWallpaper(true) || "", - splashLandscape: _$$_REQUIRE(_dependencyMap[20]).Wallpaper.getDefaultWallpaper(false) || "", - machineId: global.machineId || "", - isHTTPS: global.isHTTPS(), - buildPSetup: global.getAppPSetup(), - buildServer: global.getAppServer(), - backToRssAfterLogin: false, - isPaywallEnabled: paywallEnabled || false, - startupNavigator: _LiveConfig.default.getStartUpNavigator() === "NewsmemoryNavigator", - fontBold: fontBold, - fontMedium: fontMedium, - fontRegular: fontRegular, - tab: tab, - startupParams: global.getNewsmemoryStartupParams(), - reactTag: reactTag - }).then(function () { - _this2.setNewsmemoryDemo = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_SET_RN_DEMO, function (params) { - var newsmemoryConfig = global.getNewsmemoryConfig(); - newsmemoryConfig.setRNUseDemo(params.useRnDemo); - }); - _this2.closeListener = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_CLOSE, function () { - _this2.handleBackButton(); - }); - _this2.goToRss = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_GO_TO_RSS, function () { - _this2.goToRssNavigator(); - }); - _this2.analyticsScreen = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_ANALYTICS_SCREEN, function (params) { - try { - var _screenMapping = (0, _$$_REQUIRE(_dependencyMap[21]).screenMapping)(params), - screen = _screenMapping.screen, - event = _screenMapping.event, - customDimensions = _screenMapping.customDimensions, - remp = _screenMapping.remp; - - Analytics.trackCustomFirebaseEvent(event); - Analytics.trackScreen(screen, params, customDimensions); - - if (remp) { - Analytics.trackRempAccount(remp); - } - } catch (e) {} - }); - _this2.analyticsEvent = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_ANALYTICS_EVENT, function (params) { - Analytics.trackEvent((0, _$$_REQUIRE(_dependencyMap[21]).eventMapping)(params)); - }); - _this2.loginListener = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_LOGIN, function () { - var _ref = (0, _asyncToGenerator2.default)(function* (params) { - var pSetup = params.pSetup, - machine = params.machine, - TAUID = params.TAUID, - token = params.token, - username = params.username, - password = params.password, - extid = params.extid, - extraUserInfo = params.extraUserInfo; - - var _global$getActivePSet = global.getActivePSetup(), - currentPSetup = _global$getActivePSet.pSetup; - - if (pSetup && pSetup !== currentPSetup) { - yield global.loadPSetup(pSetup, machine, { - fromCache: false - }); - yield Analytics.updateAnalytics(); - } - - var _global$getActivePSet2 = global.getActivePSetup(), - loginStatus = _global$getActivePSet2.loginStatus; - - if (loginStatus) { - loginStatus.setTAUID(TAUID); - loginStatus.setToken(token); - loginStatus.setUsername(username); - loginStatus.setPassword(password); - loginStatus.setExtId(extid); - loginStatus.setExtraUserInfo(extraUserInfo); - yield Analytics.sendExternalIdToAnalytics(); - } - }); - - return function (_x) { - return _ref.apply(this, arguments); - }; - }()); - _this2.logoutListener = IOSClassicEPaper.addListener(IOSClassicEPaper.NEWSMEMORY_LOGOUT, function () { - var _global$getActivePSet3 = global.getActivePSetup(), - loginStatus = _global$getActivePSet3.loginStatus; - - if (loginStatus) { - loginStatus.clear(); - } - }); - }); - this.onStateChangeForeground = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, function () { - IOSClassicEPaper.goingForeground(); - - if (_$$_REQUIRE(_dependencyMap[23]).NetworkUtils.isOnline()) { - var feedback = new (_$$_REQUIRE(_dependencyMap[24]).Feedback)(); - feedback.check(); - } - }); - this.onStateChangeInactive = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_STATE_CHANGE_GOING_INACTIVE, IOSClassicEPaper.goingInactive); - this.onStateChangeBackground = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_STATE_CHANGE_GOING_BACKGROUND, IOSClassicEPaper.goingBackground); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - (0, _get2.default)((0, _getPrototypeOf2.default)(NewsmemoryNativeScreen.prototype), "componentWillUnmount", this).call(this); - - if (this.closeListener) { - this.closeListener.remove(); - } - - if (this.goToRss) { - this.goToRss.remove(); - } - - if (this.analyticsScreen) { - this.analyticsScreen.remove(); - } - - if (this.analyticsEvent) { - this.analyticsEvent.remove(); - } - - if (this.loginListener) { - this.loginListener.remove(); - } - - if (this.logoutListener) { - this.logoutListener.remove(); - } - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.onStateChangeForeground); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.onStateChangeInactive); - - _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.onStateChangeBackground); - } - }, { - key: "handleBackButton", - value: function handleBackButton() { - (0, _get2.default)((0, _getPrototypeOf2.default)(NewsmemoryNativeScreen.prototype), "handleBackButton", this).call(this); - - if (_LiveConfig.default.getStartUpNavigator() === "NewsmemoryNavigator") { - this.closeApp(); - } else { - this.goToRssNavigator(); - } - - return true; - } - }, { - key: "orientationListener", - value: function orientationListener(orientation) { - var IOSClassicEPaper = _optionalPackageUtils.default.getIOSClassicEPaper(); - - if (IOSClassicEPaper) { - IOSClassicEPaper.rotate(this.currentOrientation, _deviceUtils.default.currentFullOrientation); - this.currentOrientation = _deviceUtils.default.currentFullOrientation; - } - } - }, { - key: "goToRssNavigator", - value: function goToRssNavigator() { - _NavigationService.default.main.reset("RssNavigator"); - } - }, { - key: "getTag", - value: function getTag() { - return "ePaper Classic"; - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - return (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { - ref: function ref(_ref2) { - _this3.viewRef = _ref2; - }, - style: { - flex: 1, - backgroundColor: _$$_REQUIRE(_dependencyMap[23]).colors.black - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[26]).NavigationBaseScreen); - - NewsmemoryNativeScreen.navigationOptions = function (_ref3) { - var navigation = _ref3.navigation; - var params = navigation.state.params; - return params; - }; - - NewsmemoryNativeScreen.propTypes = { - navigation: _propTypes.default.object - }; -},2392,[3,270,6,7,11,85,13,14,582,16,18,1907,1863,2025,436,1910,1865,434,879,1881,2364,1905,564,438,2214,179,2211]); +},2396,[3,6,7,11,85,13,14,16,18,567,582,1943,1870,438,179,2039,1934,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344435,7 +344636,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2393,[2394]); +},2397,[2398]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344851,7 +345052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryScreen.defaultProps = { considerSafeAreaTop: false }; -},2394,[3,270,4,6,7,11,85,13,14,16,18,582,434,2395,2399,2457,1807,2299,566,438,2048,1900,2211,817,179,2403,2459]); +},2398,[3,270,4,6,7,11,85,13,14,16,18,582,434,2399,2403,2461,1812,2304,566,438,2031,2042,2231,820,179,2407,2463]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344993,7 +345194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e visible: true, startIndex: 0 }; -},2395,[3,6,7,11,13,14,16,582,436,2396,564,438,179,2112,2397]); +},2399,[3,6,7,11,13,14,16,582,436,2400,564,438,179,2102,2401]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345110,7 +345311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryThumbnail.defaultProps = { selected: false }; -},2396,[3,6,7,11,13,14,16,582,18,436,2397,588,564,2398,438,179]); +},2400,[3,6,7,11,13,14,16,582,18,436,2401,588,564,2402,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345136,7 +345337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2397,[18,438]); +},2401,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -345148,7 +345349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic_not_available", "type": "png" }); -},2398,[1258]); +},2402,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345294,7 +345495,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryPager.defaultProps = { startIndex: 0 }; -},2399,[3,6,7,11,13,14,16,582,2277,179,2400,2404,2448,2451,2454,2456]); +},2403,[3,6,7,11,13,14,16,582,2282,179,2404,2408,2452,2455,2458,2460]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345309,7 +345510,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2400,[2401]); +},2404,[2405]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345326,11 +345527,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); @@ -345338,9 +345539,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getDailymotionVideoPlayer(), - DailymotionVideoPlayer = _OptionalPackages$get.Player; - var GalleryVideoDailymotion = exports.GalleryVideoDailymotion = function (_React$Component) { function GalleryVideoDailymotion() { (0, _classCallCheck2.default)(this, GalleryVideoDailymotion); @@ -345353,6 +345551,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function render() { var _this = this; + var _OptionalPackages$get = _optionalPackageUtils.default.getDailymotionVideoPlayer(), + DailymotionVideoPlayer = _OptionalPackages$get.Player; + if (DailymotionVideoPlayer) { var _this$props = this.props, item = _this$props.item, @@ -345410,7 +345611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), isPlaylist: _propTypes.default.bool }; -},2401,[3,6,7,11,13,14,16,18,582,879,179,2402]); +},2405,[3,6,7,11,13,14,582,16,18,882,179,2406]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345428,7 +345629,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingTop: _$$_REQUIRE(_dependencyMap[1]).GALLERY_ITEM_HEIGHT } }); -},2402,[18,2403]); +},2406,[18,2407]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345542,7 +345743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2403,[18,438]); +},2407,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345557,7 +345758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2404,[2405]); +},2408,[2409]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345635,7 +345836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2405,[3,6,7,11,13,14,16,2406,18,582,179,2447]); +},2409,[3,6,7,11,13,14,16,2410,18,582,179,2451]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346400,7 +346601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customStyles: {}, showDuration: false }; -},2406,[3,4,6,7,11,13,14,16,582,18,1837,2407,2430,179]); +},2410,[3,4,6,7,11,13,14,16,582,18,1842,2411,2434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346951,7 +347152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fullscreen: true } }); -},2407,[3,270,6,7,11,13,14,16,582,18,154,2408,2409,2410,2411,179,2413]); +},2411,[3,270,6,7,11,13,14,16,582,18,154,2412,2413,2414,2415,179,2417]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346963,7 +347164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TTML: 'application/ttml+xml', VTT: 'text/vtt' }; -},2408,[]); +},2412,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346988,7 +347189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TRANSFER: 'CIPhotoEffectTransfer', SEPIA: 'CISepiaTone' }; -},2409,[]); +},2413,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347001,7 +347202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CLEARKEY: 'clearkey', FAIRPLAY: 'fairplay' }; -},2410,[]); +},2414,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347015,7 +347216,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cover: null, stretch: null }); -},2411,[3,2412]); +},2415,[3,2416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -347039,7 +347240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; module.exports = keyMirror; -},2412,[]); +},2416,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347073,7 +347274,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2413,[2414,2415,2416,2426,2427,2428,2417]); +},2417,[2418,2419,2420,2430,2431,2432,2421]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347100,7 +347301,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ColorPropType = colorPropType.bind(null, false); ColorPropType.isRequired = colorPropType.bind(null, true); module.exports = ColorPropType; -},2414,[145]); +},2418,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347112,7 +347313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2415,[582]); +},2419,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347144,7 +347345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2416,[2417,2418,2425,582]); +},2420,[2421,2422,2429,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347188,7 +347389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2417,[2418,2420,582,2424,2415]); +},2421,[2422,2424,582,2428,2419]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347236,7 +347437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2418,[2419]); +},2422,[2423]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347292,7 +347493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2419,[31]); +},2423,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347325,7 +347526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2420,[2421,2422,2423,582,2414]); +},2424,[2425,2426,2427,582,2418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347385,7 +347586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2421,[582]); +},2425,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347399,7 +347600,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2422,[2414,582]); +},2426,[2418,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347465,14 +347666,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2423,[582]); +},2427,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = { DeprecatedAccessibilityRoles: ['none', 'button', 'togglebutton', 'link', 'search', 'image', 'keyboardkey', 'text', 'adjustable', 'imagebutton', 'header', 'summary', 'alert', 'checkbox', 'combobox', 'menu', 'menubar', 'menuitem', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'spinbutton', 'switch', 'tab', 'tablist', 'timer', 'toolbar'] }; -},2424,[]); +},2428,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347493,7 +347694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2425,[2421,2422,2423,582,2414]); +},2429,[2425,2426,2427,582,2418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347503,7 +347704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2426,[582]); +},2430,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347566,7 +347767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textContentType: _$$_REQUIRE(_dependencyMap[1]).oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password', 'newPassword', 'oneTimeCode']), showSoftInputOnFocus: _$$_REQUIRE(_dependencyMap[1]).bool }); -},2427,[2417,582,2414,2428]); +},2431,[2421,582,2418,2432]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347595,7 +347796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2428,[2418,2429,582,2415,2414]); +},2432,[2422,2433,582,2419,2418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347624,7 +347825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2429,[2420,2414,582]); +},2433,[2424,2418,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347658,7 +347859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2430,[2431,2432,2433,2443,2444,2445,2434]); +},2434,[2435,2436,2437,2447,2448,2449,2438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347685,7 +347886,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ColorPropType = colorPropType.bind(null, false); ColorPropType.isRequired = colorPropType.bind(null, true); module.exports = ColorPropType; -},2431,[145]); +},2435,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347697,7 +347898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2432,[582]); +},2436,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347729,7 +347930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2433,[2434,2435,2442,582]); +},2437,[2438,2439,2446,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347773,7 +347974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2434,[2435,2437,582,2441,2432]); +},2438,[2439,2441,582,2445,2436]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347821,7 +348022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2435,[2436]); +},2439,[2440]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347877,7 +348078,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2436,[31]); +},2440,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347910,7 +348111,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2437,[2438,2439,2440,582,2431]); +},2441,[2442,2443,2444,582,2435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347970,7 +348171,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2438,[582]); +},2442,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347984,7 +348185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2439,[2431,582]); +},2443,[2435,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348050,14 +348251,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2440,[582]); +},2444,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = { DeprecatedAccessibilityRoles: ['none', 'button', 'togglebutton', 'link', 'search', 'image', 'keyboardkey', 'text', 'adjustable', 'imagebutton', 'header', 'summary', 'alert', 'checkbox', 'combobox', 'menu', 'menubar', 'menuitem', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'spinbutton', 'switch', 'tab', 'tablist', 'timer', 'toolbar'] }; -},2441,[]); +},2445,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348078,7 +348279,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2442,[2438,2439,2440,582,2431]); +},2446,[2442,2443,2444,582,2435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348088,7 +348289,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2443,[582]); +},2447,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348151,7 +348352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textContentType: _$$_REQUIRE(_dependencyMap[1]).oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password', 'newPassword', 'oneTimeCode']), showSoftInputOnFocus: _$$_REQUIRE(_dependencyMap[1]).bool }); -},2444,[2434,582,2431,2445]); +},2448,[2438,582,2435,2449]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348180,7 +348381,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2445,[2435,2446,582,2432,2431]); +},2449,[2439,2450,582,2436,2435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348209,7 +348410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2446,[2437,2431,582]); +},2450,[2441,2435,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348225,7 +348426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2447,[18]); +},2451,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348240,7 +348441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2448,[2449]); +},2452,[2453]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348331,7 +348532,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thumbnail: _propTypes.default.string }) }; -},2449,[3,6,7,11,13,14,16,18,582,588,2039,1941,179,817,2450,1807]); +},2453,[3,6,7,11,13,14,16,18,582,588,2022,1899,179,820,2454,1812]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348359,7 +348560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 80 } }); -},2450,[18,438]); +},2454,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348374,7 +348575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2451,[2452]); +},2455,[2456]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348453,7 +348654,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2452,[3,6,7,11,13,14,16,582,18,179,2453,2055,866]); +},2456,[3,6,7,11,13,14,16,582,18,179,2457,2039,869]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348470,7 +348671,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2453,[18,438]); +},2457,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348485,7 +348686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2454,[2455]); +},2458,[2459]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348640,7 +348841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _propTypes.default.number }) }; -},2455,[3,270,6,7,11,13,14,16,18,582,566,434,588,438,179]); +},2459,[3,270,6,7,11,13,14,16,18,582,566,434,588,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348664,7 +348865,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2456,[18,438]); +},2460,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348733,7 +348934,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startIndex: _propTypes.default.number.isRequired, total: _propTypes.default.number.isRequired }; -},2457,[3,6,7,11,13,14,16,582,814,2458,179]); +},2461,[3,6,7,11,13,14,16,582,817,2462,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348752,7 +348953,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlignVertical: "center" } }); -},2458,[18,2403]); +},2462,[18,2407]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348767,7 +348968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2459,[2460]); +},2463,[2464]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348905,7 +349106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxLines: 1, color: _$$_REQUIRE(_dependencyMap[12]).colors.white }; -},2460,[3,6,7,11,13,14,16,582,18,814,1807,179,438]); +},2464,[3,6,7,11,13,14,16,582,18,817,1812,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349033,7 +349234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigatorBaseScreen.propTypes = { navigation: _propTypes.default.object }; -},2461,[3,6,7,11,13,14,16,582,1985]); +},2465,[3,6,7,11,13,14,16,582,1945]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349293,7 +349494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssComponent.INTERVAL_ID = -1; RssComponent.INTERSTITIAL_TIMER = undefined; -},2462,[3,270,6,7,11,85,13,14,16,2463,2197,436,2045,2134,1881,2626,2209,2198,1907,2056,1910,2648,564,438,2214,179,2210,2461]); +},2466,[3,270,6,7,11,85,13,14,16,2467,2186,436,2028,2124,1870,2630,2236,2187,1943,2040,1998,2652,564,438,2223,179,2214,2465]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349511,7 +349712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2463,[3,16,2026,2198,1881,2208,2464,2564,2216,2585,2054,438,179,2238,1984,2617,2393,2620,2367,2622]); +},2467,[3,16,1986,2187,1870,2235,2468,2568,2237,2589,2038,438,179,2243,1942,2621,2397,2624,2372,2626]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349758,7 +349959,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2464,[3,16,18,434,2198,1881,1807,2465,179,817,2211,438,2467,2468,2502,2548,2216,2554,2556,2562]); +},2468,[3,16,18,434,2187,1870,1812,2469,179,820,2231,438,2471,2472,2506,2552,2237,2558,2560,2566]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349896,7 +350097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2465,[3,16,18,2219,814,1807,588,179,817,2466,438]); +},2469,[3,16,18,2228,817,1812,588,179,820,2470,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349975,7 +350176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 14 } }); -},2466,[18]); +},2470,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350090,7 +350291,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return type.value === value; }).text; }; -},2467,[3,407,438]); +},2471,[3,407,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350105,7 +350306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2468,[2469]); +},2472,[2473]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350228,7 +350429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getParam: _propTypes.default.func.isRequired }) }; -},2469,[3,270,6,7,11,85,13,14,582,16,18,2470,179,817,2211]); +},2473,[3,270,6,7,11,85,13,14,582,16,18,2474,179,820,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350787,7 +350988,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EventBaseScreen.SORT_POPULARITY = 0; EventBaseScreen.SORT_DATE = 1; EventBaseScreen.SORT_NAME = 2; -},2470,[3,270,6,7,11,85,13,14,16,18,407,2090,2039,814,1807,588,2211,438,2467,2471,817,179,2485,2487,2489,2492]); +},2474,[3,270,6,7,11,85,13,14,16,18,407,2080,2022,817,1812,588,2231,438,2471,2475,820,179,2489,2491,2493,2496]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350802,7 +351003,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2471,[2472]); +},2475,[2476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350873,7 +351074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return out; } -},2472,[2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484]); +},2476,[2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350885,7 +351086,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "2", "type": "png" }); -},2473,[1258]); +},2477,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350897,7 +351098,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "3", "type": "png" }); -},2474,[1258]); +},2478,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350909,7 +351110,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "4", "type": "png" }); -},2475,[1258]); +},2479,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350921,7 +351122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "5", "type": "png" }); -},2476,[1258]); +},2480,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350933,7 +351134,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "6", "type": "png" }); -},2477,[1258]); +},2481,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350945,7 +351146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "7", "type": "png" }); -},2478,[1258]); +},2482,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350957,7 +351158,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "8", "type": "png" }); -},2479,[1258]); +},2483,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350969,7 +351170,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "10", "type": "png" }); -},2480,[1258]); +},2484,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350981,7 +351182,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "14", "type": "png" }); -},2481,[1258]); +},2485,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -350993,7 +351194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "15", "type": "png" }); -},2482,[1258]); +},2486,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351005,7 +351206,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "76", "type": "png" }); -},2483,[1258]); +},2487,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351017,7 +351218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "390", "type": "png" }); -},2484,[1258]); +},2488,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351300,7 +351501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enhanced: _propTypes.default.bool, portal: _propTypes.default.string.isRequired }; -},2485,[3,270,6,7,11,13,14,16,18,582,1324,2081,2032,814,436,1807,438,179,2486,1940]); +},2489,[3,270,6,7,11,13,14,16,18,582,1327,2071,1992,817,436,1812,438,179,2490,1898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351423,7 +351624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 3 } }); -},2486,[18,2467,438]); +},2490,[18,2471,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351438,132 +351639,73 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2487,[2488]); +},2491,[2492]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.EventCustomCallout = undefined; + exports.EventCustomCallout = EventCustomCallout; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + function dateFormatter(date) { + if (!date) { + return ""; + } - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var out = ""; - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventCustomCallout; - - if (_optionalPackageUtils.default.isMapsAvailable()) { - var _TaCallout; - - var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), - Callout = _OptionalPackages$get.Callout; - - exports.EventCustomCallout = EventCustomCallout = (_TaCallout = function (_Callout) { - function TaCallout() { - var _this; - - (0, _classCallCheck2.default)(this, TaCallout); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, TaCallout, [].concat(args)); - - _this.dateFormatter = function (date) { - if (!date) { - return ""; - } - - var out = ""; - - for (var c = 0; c < date.length; c++) { - if (date[c] === "T" || date[c] === "Z") { - out += " "; - } else { - out += date[c]; - } - } - - return out.substring(0, 10); - }; - - return _this; + for (var c = 0; c < date.length; c++) { + if (date[c] === "T" || date[c] === "Z") { + out += " "; + } else { + out += date[c]; } + } - (0, _inherits2.default)(TaCallout, _Callout); - return (0, _createClass2.default)(TaCallout, [{ - key: "render", - value: function render() { - var _this$props = this.props, - title = _this$props.title, - date = _this$props.date; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - children: [title.length > 50 ? (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title.substring(0, 50) - }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title.substring(50) - })] - }) : (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title - }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_fontText.default, { - children: this.dateFormatter(date) - })] - }); - } - }]); - }(Callout), _TaCallout.propTypes = { - title: _propTypes.default.string, - description: _propTypes.default.string, - image: _propTypes.default.string, - date: _propTypes.default.string - }, _TaCallout); - } else { - exports.EventCustomCallout = EventCustomCallout = function (_React$Component) { - function TaCallout() { - (0, _classCallCheck2.default)(this, TaCallout); - return _callSuper(this, TaCallout, arguments); - } - - (0, _inherits2.default)(TaCallout, _React$Component); - return (0, _createClass2.default)(TaCallout, [{ - key: "render", - value: function render() { - return null; - } - }]); - }(_react.default.Component); + return out.substring(0, 10); } -},2488,[3,6,7,11,13,14,16,18,582,814,879,179]); + + function EventCustomCallout(props) { + var title = props.title, + date = props.date; + return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(_reactNative.View, { + children: [title.length > 50 ? (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title.substring(0, 50).trim() + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title.substring(50).trim() + })] + }) : (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_fontText.default, { + children: dateFormatter(date) + })] + }); + } + + EventCustomCallout.propTypes = { + title: _propTypes.default.string, + description: _propTypes.default.string, + image: _propTypes.default.string, + date: _propTypes.default.string + }; +},2492,[3,582,16,18,817,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351810,7 +351952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getItemById: _propTypes.default.func.isRequired, featuredEvents: _propTypes.default.arrayOf(_propTypes.default.number) }; -},2489,[3,270,6,7,11,13,14,16,582,18,434,407,2490,179,438,2467]); +},2493,[3,270,6,7,11,13,14,16,582,18,434,407,2494,179,438,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351925,7 +352067,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onEventPress: _propTypes.default.func.isRequired }; -},2490,[3,6,7,11,13,14,16,18,1324,582,814,2491,588,179,2021,438]); +},2494,[3,6,7,11,13,14,16,18,1327,582,817,2495,588,179,1981,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351987,7 +352129,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "flex-end" } }); -},2491,[18,438,2467]); +},2495,[18,438,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352002,7 +352144,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2492,[2493]); +},2496,[2497]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352623,7 +352765,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } }; -},2493,[3,270,6,7,11,13,14,582,16,18,407,2347,814,1807,588,2494,438,179,817,2495,2496,1968,2501,2112,2162]); +},2497,[3,270,6,7,11,13,14,582,16,18,407,2352,817,1812,588,2498,438,179,820,2499,2500,1926,2505,2102,2152]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352705,7 +352847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LoadingMore.defaultProps = { visible: false }; -},2494,[3,6,7,11,13,14,16,582,179,1968]); +},2498,[3,6,7,11,13,14,16,582,179,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352732,7 +352874,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 22 } }); -},2495,[18,438]); +},2499,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352747,7 +352889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2496,[2497]); +},2500,[2501]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352882,7 +353024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e offsetY: OFFSET_Y, availableHeight: 0 }; -},2497,[3,4,6,7,11,13,14,582,16,2498,817,179]); +},2501,[3,4,6,7,11,13,14,582,16,2502,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353306,7 +353448,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: "transparent" } }); -},2498,[3,6,7,11,13,14,582,16,18,2499,2500,179,595]); +},2502,[3,6,7,11,13,14,582,16,18,2503,2504,179,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353492,7 +353634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: "#444" } }); -},2499,[3,6,7,11,13,14,582,16,18,2500,179]); +},2503,[3,6,7,11,13,14,582,16,18,2504,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353541,7 +353683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; } -},2500,[18]); +},2504,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353558,9 +353700,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); @@ -353568,11 +353710,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), - MapView = _OptionalPackages$get.MapView, - Marker = _OptionalPackages$get.Marker, - Callout = _OptionalPackages$get.Callout; - var VerticalMap = exports.VerticalMap = function (_React$Component) { function VerticalMap(props) { var _this; @@ -353653,6 +353790,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function render() { var _this4 = this; + if (!_optionalPackageUtils.default.isMapsAvailable()) { + return null; + } + var _this$props3 = this.props, style = _this$props3.style, renderItem = _this$props3.renderItem, @@ -353666,45 +353807,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var data = this.state.data; var markers = this.removeItemWithoutLocation(data); - if (_optionalPackageUtils.default.isMapsAvailable()) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(MapView, { - style: style, - region: this.getCenterRegionOnData(markers), - children: markers.map(function (marker, index) { - if (renderItem) { - return renderItem({ - item: marker, - index: index - }); + var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), + MapView = _OptionalPackages$get.MapView, + Marker = _OptionalPackages$get.Marker, + Callout = _OptionalPackages$get.Callout; + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(MapView, { + style: style, + region: this.getCenterRegionOnData(markers), + children: markers.map(function (marker, index) { + if (renderItem) { + return renderItem({ + item: marker, + index: index + }); + } + + var extraProp = {}; + + if (getMarkerIcon) { + extraProp.image = getMarkerIcon(marker); + } + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Marker, Object.assign({ + title: _this4.getValueByKeyPath(marker, titleKey), + coordinate: { + latitude: _this4.getValueByKeyPath(marker, latitudeKey), + longitude: _this4.getValueByKeyPath(marker, longitudeKey) } - - var extraProp = {}; - - if (getMarkerIcon) { - extraProp.image = getMarkerIcon(marker); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Marker, Object.assign({ - title: _this4.getValueByKeyPath(marker, titleKey), - coordinate: { - latitude: _this4.getValueByKeyPath(marker, latitudeKey), - longitude: _this4.getValueByKeyPath(marker, longitudeKey) - } - }, extraProp, { - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Callout, { - onPress: function onPress() { - if (onItemPress) { - onItemPress(marker); - } - }, - children: renderCallout(marker) - }) - }), _this4.getValueByKeyPath(marker, itemKey)); - }) - }); - } - - return null; + }, extraProp, { + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Callout, { + onPress: function onPress() { + if (onItemPress) { + onItemPress(marker); + } + }, + children: renderCallout(marker) + }) + }), _this4.getValueByKeyPath(marker, itemKey)); + }) + }); } }], [{ key: "getDerivedStateFromProps", @@ -353739,7 +353881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e latitudeKey: "latitude", longitudeKey: "longitude" }; -},2501,[3,6,7,11,13,14,16,582,879,179,438]); +},2505,[3,6,7,11,13,14,582,16,882,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353754,7 +353896,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2502,[2503]); +},2506,[2507]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354269,7 +354411,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pass: "", portal: "" }; -},2503,[3,270,6,7,11,85,13,14,582,16,18,407,438,2467,179,2504,2516,2518,2519,2522,2527,2532,817,1968,2211]); +},2507,[3,270,6,7,11,85,13,14,582,16,18,407,438,2471,179,2508,2520,2522,2523,2526,2531,2536,820,1926,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354284,7 +354426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2504,[2505]); +},2508,[2509]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354411,7 +354553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e advanceFilters: [], buttons: [] }; -},2505,[3,6,7,11,13,14,16,582,18,179,2506,2107,2507,438,2514,2162]); +},2509,[3,6,7,11,13,14,16,582,18,179,2510,2097,2511,438,2518,2152]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354447,7 +354589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() } }); -},2506,[18,2467]); +},2510,[18,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354462,7 +354604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2507,[2508]); +},2511,[2512]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354587,7 +354729,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e headerColor: _$$_REQUIRE(_dependencyMap[13]).colors.black, borderColor: _$$_REQUIRE(_dependencyMap[13]).colors.black }; -},2508,[3,6,7,11,13,14,16,18,582,1807,2509,179,2512,438]); +},2512,[3,6,7,11,13,14,16,18,582,1812,2513,179,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354618,7 +354760,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })); } -},2509,[3,22,33,16,2510,179,438]); +},2513,[3,22,33,16,2514,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354819,7 +354961,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionContainerStyle: {}, renderAsFlatList: false }; -},2510,[3,4,22,6,7,11,13,14,16,18,2511,179]); +},2514,[3,4,22,6,7,11,13,14,16,18,2515,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355103,7 +355245,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, renderChildrenCollapsed: true }; -},2511,[3,6,7,11,13,14,16,18,179]); +},2515,[3,6,7,11,13,14,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355133,7 +355275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexDirection: "column" } }); -},2512,[18,2513]); +},2516,[18,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355147,7 +355289,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BORDER_RADIUS: 5, SEARCH_WIDTH: 200 }; -},2513,[]); +},2517,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355230,7 +355372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[11]).colors.black, textColor: _$$_REQUIRE(_dependencyMap[11]).colors.white }; -},2514,[3,6,7,11,13,14,16,18,582,179,2515,438]); +},2518,[3,6,7,11,13,14,16,18,582,179,2519,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355255,7 +355397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING } }); -},2515,[18,2513,438]); +},2519,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355356,7 +355498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hint: _propTypes.default.string, defaultSearch: _propTypes.default.string }; -},2516,[3,6,7,11,13,14,16,582,18,2230,179,2517,438]); +},2520,[3,6,7,11,13,14,16,582,18,2220,179,2521,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355374,7 +355516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS } }); -},2517,[18,438,2513]); +},2521,[18,438,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355418,7 +355560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2518,[18,438,2513]); +},2522,[18,438,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355433,7 +355575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2519,[2520]); +},2523,[2524]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355968,7 +356110,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e useLocation: _propTypes.default.bool, onDisableSwitch: _propTypes.default.func }; -},2520,[3,6,7,11,13,14,270,4,582,16,18,407,2025,434,2051,828,2230,438,1976,179,2521,2513,2112]); +},2524,[3,6,7,11,13,14,270,4,582,16,18,407,1985,434,2034,831,2220,438,1934,179,2525,2517,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356049,7 +356191,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2521,[18,2513,438]); +},2525,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356064,7 +356206,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2522,[2523]); +},2526,[2527]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356169,7 +356311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxValue: _propTypes.default.number.isRequired, defaultValue: _propTypes.default.number.isRequired }; -},2523,[3,6,7,11,13,14,2524,582,16,18,179,2526,438]); +},2527,[3,6,7,11,13,14,2528,582,16,18,179,2530,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -356256,7 +356398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Slider = SliderWithRef; var _default = exports.default = Slider; -},2524,[3,4,16,18,2525,179]); +},2528,[3,4,16,18,2529,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -356270,7 +356412,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var RNCSliderNativeComponent = (0, _reactNative.requireNativeComponent)('RNCSlider'); var _default = exports.default = RNCSliderNativeComponent; -},2525,[18]); +},2529,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356299,7 +356441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: "50%" } }); -},2526,[18,2513,438]); +},2530,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356314,7 +356456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2527,[2528]); +},2531,[2532]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356538,7 +356680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e selectedCategories: [], selectedLabels: [] }; -},2528,[3,22,33,16,18,582,814,828,179,2529,2531,2530]); +},2532,[3,22,33,16,18,582,817,831,179,2533,2535,2534]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356620,7 +356762,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e labels: _propTypes.default.array.isRequired, onChange: _propTypes.default.func.isRequired }; -},2529,[3,33,16,582,18,814,179,2530,438]); +},2533,[3,33,16,582,18,817,179,2534,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356681,7 +356823,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 15 } }); -},2530,[18,2513,438]); +},2534,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356876,7 +357018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e multiSelect: _propTypes.default.bool, onChange: _propTypes.default.func }; -},2531,[3,33,22,16,18,582,2509,1807,814,179,2530,2112]); +},2535,[3,33,22,16,18,582,2513,1812,817,179,2534,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356891,7 +357033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2532,[2533]); +},2536,[2537]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357127,7 +357269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: String })) }; -},2533,[3,6,7,11,13,14,16,18,582,2534,1807,828,814,438,179,2112,2547]); +},2537,[3,6,7,11,13,14,16,18,582,2538,1812,831,817,438,179,2102,2551]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357281,7 +357423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RangePickerComponent; -},2534,[3,33,16,582,18,2535,1807,438,179]); +},2538,[3,33,16,582,18,2539,1812,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357491,7 +357633,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DatePicker; -},2535,[3,33,16,582,18,814,2536,1807,438,179]); +},2539,[3,33,16,582,18,817,2540,1812,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357550,7 +357692,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Picker; -},2536,[3,2537,582,16,179,817]); +},2540,[3,2541,582,16,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357581,7 +357723,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = _datetimepicker.default; -},2537,[2538,3,2546,2545]); +},2541,[2542,3,2550,2549]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357733,7 +357875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e open: open, dismiss: dismiss }; -},2538,[3,33,270,31,2539,18,2542,2544,2545]); +},2542,[3,33,270,31,2543,18,2546,2548,2549]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357749,7 +357891,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var pickers = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date, _datepicker.default), _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time, _timepicker.default); var _default = exports.default = pickers; -},2539,[3,240,2540,2543,2542]); +},2543,[3,240,2544,2547,2546]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357802,7 +357944,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DatePickerAndroid.dateSetAction = _$$_REQUIRE(_dependencyMap[6]).DATE_SET_ACTION; DatePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; -},2540,[3,270,6,7,18,2541,2542]); +},2544,[3,270,6,7,18,2545,2546]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357840,7 +357982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _invariant.default)(value, 'A date or time must be specified as `value` prop'); (0, _invariant.default)(value instanceof Date, '`value` prop must be an instance of Date object'); } -},2541,[3,31]); +},2545,[3,31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357889,7 +358031,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var TIME_SET_ACTION = exports.TIME_SET_ACTION = 'timeSetAction'; var DISMISS_ACTION = exports.DISMISS_ACTION = 'dismissedAction'; var NEUTRAL_BUTTON_ACTION = exports.NEUTRAL_BUTTON_ACTION = 'neutralButtonAction'; -},2542,[]); +},2546,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357942,7 +358084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TimePickerAndroid.timeSetAction = _$$_REQUIRE(_dependencyMap[6]).TIME_SET_ACTION; TimePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; -},2543,[3,270,6,7,18,2541,2542]); +},2547,[3,270,6,7,18,2545,2546]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358019,7 +358161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e console.warn("positiveButtonLabel, negativeButtonLabel and neutralButtonLabel are deprecated.Use positive / negative / neutralButton prop instead."); } } -},2544,[3,2539,31,18,2542,2541]); +},2548,[3,2543,31,18,2546,2545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358052,7 +358194,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, date]; }; -},2545,[2542]); +},2549,[2546]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358111,7 +358253,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [onChange, valueTimestamp, mode]); return null; } -},2546,[16,2544,2542,2538]); +},2550,[16,2548,2546,2542]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358157,7 +358299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[2]).colors.white } }); -},2547,[18,2513,438]); +},2551,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358172,7 +358314,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2548,[2549]); +},2552,[2553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358262,7 +358404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2549,[3,6,7,11,85,13,14,16,436,179,2550,2467,2553,2211]); +},2553,[3,6,7,11,85,13,14,16,436,179,2554,2471,2557,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358277,7 +358419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2550,[2551]); +},2554,[2555]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358491,7 +358633,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, itemKey: _propTypes.default.string }; -},2551,[3,270,6,7,11,13,14,582,16,18,814,1807,564,179,2552,817,1968,438,2112]); +},2555,[3,270,6,7,11,13,14,582,16,18,817,1812,564,179,2556,820,1926,438,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358530,7 +358672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2552,[18,438]); +},2556,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358545,7 +358687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2553,[2485]); +},2557,[2489]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359016,7 +359158,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2554,[3,270,6,7,11,85,13,14,16,18,407,436,2039,2081,814,2230,1807,588,2211,438,2467,179,817,1968,2555,2107,1940]); +},2558,[3,270,6,7,11,85,13,14,16,18,407,436,2022,2071,817,2220,1812,588,2231,438,2471,179,820,1926,2559,2097,1898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359076,7 +359218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e top: 25 } }); -},2555,[18,2467,438]); +},2559,[18,2471,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359091,7 +359233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2556,[2557]); +},2560,[2561]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359408,7 +359550,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[21]).NavigationBaseScreen); -},2557,[3,270,6,7,11,85,13,14,16,18,407,436,814,1807,588,2467,179,2558,438,817,2561,2211]); +},2561,[3,270,6,7,11,85,13,14,16,18,407,436,817,1812,588,2471,179,2562,438,820,2565,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359423,7 +359565,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2558,[2559]); +},2562,[2563]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359686,7 +359828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onEmptyPress: _propTypes.default.func, onItemPress: _propTypes.default.func }; -},2559,[3,270,6,7,11,13,14,582,16,18,814,1807,564,179,2560,1968,817,438,2112]); +},2563,[3,270,6,7,11,13,14,582,16,18,817,1812,564,179,2564,1926,820,438,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359725,7 +359867,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2560,[18,438]); +},2564,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359755,7 +359897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2561,[18,2467]); +},2565,[18,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359770,7 +359912,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2562,[2563]); +},2566,[2567]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359838,7 +359980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2563,[3,6,7,11,85,13,14,16,18,2211,179,817,2055,2467]); +},2567,[3,6,7,11,85,13,14,16,18,2231,179,820,2039,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359955,7 +360097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2564,[3,16,1881,1807,2465,179,438,2467,2565,2574,2577,2581,817,2216,2211,2583,2584]); +},2568,[3,16,1870,1812,2469,179,438,2471,2569,2578,2581,2585,820,2237,2231,2587,2588]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359970,7 +360112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2565,[2566]); +},2569,[2570]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360138,7 +360280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2566,[3,6,7,11,85,13,14,16,2535,179,2504,2467,438,2567,2570,2573,2516,2519,2211]); +},2570,[3,6,7,11,85,13,14,16,2539,179,2508,2471,438,2571,2574,2577,2520,2523,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360153,7 +360295,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2567,[2568]); +},2571,[2572]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360277,7 +360419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textColor: _propTypes.default.string, active: _propTypes.default.string.isRequired }; -},2568,[3,6,7,11,13,14,16,18,582,179,2569,2513]); +},2572,[3,6,7,11,13,14,16,18,582,179,2573,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360298,7 +360440,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH } }); -},2569,[18,2513]); +},2573,[18,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360313,7 +360455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2570,[2571]); +},2574,[2575]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360439,7 +360581,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hintMin: _propTypes.default.string, hintMax: _propTypes.default.string }; -},2571,[3,6,7,11,13,14,16,582,18,2230,179,2572]); +},2575,[3,6,7,11,13,14,16,582,18,2220,179,2576]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360470,7 +360612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS } }); -},2572,[18,2513,438]); +},2576,[18,2517,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360518,7 +360660,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS } }); -},2573,[18,438,2513]); +},2577,[18,438,2517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360533,7 +360675,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2574,[2575]); +},2578,[2579]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360678,7 +360820,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[15]).NavigationBaseScreen); -},2575,[3,6,7,11,85,13,14,16,18,436,814,2467,179,2558,2576,2211]); +},2579,[3,6,7,11,85,13,14,16,18,436,817,2471,179,2562,2580,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360704,7 +360846,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2576,[18,438]); +},2580,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360719,7 +360861,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2577,[2578]); +},2581,[2582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360793,7 +360935,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2578,[3,6,7,11,85,13,14,16,436,179,2550,2467,2579,2211]); +},2582,[3,6,7,11,85,13,14,16,436,179,2554,2471,2583,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360958,7 +361100,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemPress: _propTypes.default.func, color: _propTypes.default.string.isRequired }; -},2579,[3,6,7,11,13,14,16,582,18,567,814,2081,436,1807,179,2580,2467,1940,438]); +},2583,[3,6,7,11,13,14,16,582,18,567,817,2071,436,1812,179,2584,2471,1898,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361010,7 +361152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2580,[18,438]); +},2584,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361025,7 +361167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2581,[2582]); +},2585,[2586]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361129,7 +361271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2582,[3,6,7,11,85,13,14,16,407,2211,179,2492,2467,2579]); +},2586,[3,6,7,11,85,13,14,16,407,2231,179,2496,2471,2583]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -361141,7 +361283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "monster_logo", "type": "png" }); -},2583,[1258]); +},2587,[1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361201,7 +361343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[8]).NavigationBaseScreen); -},2584,[3,6,7,11,85,13,14,16,2211,179,2055,2467]); +},2588,[3,6,7,11,85,13,14,16,2231,179,2039,2471]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361544,7 +361686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2585,[3,4,16,18,2209,1907,1934,436,434,2198,1881,2108,2295,2028,179,2586,2044,2597,2599,2601,2608,438,817,564,2218,2020,1224,2610]); +},2589,[3,4,16,18,2236,1943,1892,436,434,2187,1870,2098,2300,1988,179,2590,2027,2601,2603,2605,2612,438,820,564,2239,1980,1227,2614]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361559,7 +361701,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2586,[2587]); +},2590,[2591]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362041,7 +362183,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isHome: false, isLive: false }; -},2587,[3,270,6,7,11,85,13,14,582,16,18,1907,2588,2045,436,2134,434,2026,2097,564,1087,438,1946,179,817,2589,2590]); +},2591,[3,270,6,7,11,85,13,14,582,16,18,1943,2592,2028,436,2124,434,1986,2087,564,1090,438,1904,179,820,2593,2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362089,7 +362231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2588,[3,270,6,7,2045]); +},2592,[3,270,6,7,2028]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362138,7 +362280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2589,[18,438]); +},2593,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362153,7 +362295,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2590,[2591]); +},2594,[2595]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362212,9 +362354,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), - NativoSDK = _OptionalPackages$get.NativoSDK; - var RssBaseScreen = exports.RssBaseScreen = function (_NavigationBaseScreen) { function RssBaseScreen(props, state) { var _this; @@ -362246,6 +362385,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (global.isDebug && _optionalPackageUtils.default.isNativoSDKAvailable()) { + var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), + NativoSDK = _OptionalPackages$get.NativoSDK; + NativoSDK.enableDevLogs(); NativoSDK.enableTestAdvertisementsWithType(NativoSDK.AdTypes.NATIVE); } @@ -362786,7 +362928,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var params = navigation.state.params; return params; }; -},2591,[3,270,6,7,11,85,13,14,582,16,18,1907,436,2090,1944,2049,434,2026,879,1881,2347,814,2592,2048,564,2045,812,179,2595,817,438,2596,2028,1968,1976,2211]); +},2595,[3,270,6,7,11,85,13,14,582,16,18,1943,436,2080,1902,2032,434,1986,882,1870,2352,817,2596,2031,564,2028,815,179,2599,820,438,2600,1988,1926,1934,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363041,7 +363183,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2592,[3,6,7,11,13,14,16,18,2102,2593,2103,2020,1946,179,438,817,2078,1087]); +},2596,[3,6,7,11,13,14,16,18,2092,2597,2093,1980,1904,179,438,820,2068,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363146,7 +363288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2593,[3,6,7,11,13,14,16,438,2594,1087,179]); +},2597,[3,6,7,11,13,14,16,438,2598,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363538,7 +363680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2594,[3,6,7,11,13,14,582,16,18,1935,436,814,2014,2031,2080,2020,564,817,438,1939,179,2011,2084,2055,866,1087]); +},2598,[3,6,7,11,13,14,582,16,18,1893,436,817,1974,1991,2070,1980,564,820,438,1897,179,1971,2074,2039,869,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363632,7 +363774,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: adsComponent }); }; -},2595,[3,33,4,16,18,2090,179]); +},2599,[3,33,4,16,18,2080,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363650,7 +363792,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingVertical: 10 } }); -},2596,[18,2020]); +},2600,[18,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364060,7 +364202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeScreen.propTypes = Object.assign({ item: _propTypes.default.object }, _$$_REQUIRE(_dependencyMap[27]).RssBaseScreen.propTypes); -},2597,[3,270,6,7,11,85,13,14,582,16,18,1907,2588,2045,2026,1986,1983,2219,814,1807,179,2598,564,438,2108,2387,2028,2590]); +},2601,[3,270,6,7,11,85,13,14,582,16,18,1943,2592,2028,1986,1946,1941,2228,817,1812,179,2602,564,438,2098,2392,1988,2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364107,7 +364249,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 3 } }); -},2598,[18,2020,438]); +},2602,[18,1980,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364122,7 +364264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2599,[2600]); +},2603,[2604]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364240,7 +364382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).RssBaseScreen); -},2600,[3,270,6,7,11,85,13,14,16,18,436,564,179,2590]); +},2604,[3,270,6,7,11,85,13,14,16,18,436,564,179,2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364255,7 +364397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2601,[2602]); +},2605,[2606]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364434,7 +364576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[17]).RssBaseScreen); -},2602,[3,270,6,7,11,13,14,16,18,2045,434,2603,438,817,179,2607,2028,2590]); +},2606,[3,270,6,7,11,13,14,16,18,2028,434,2607,438,820,179,2611,1988,2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364733,7 +364875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RssSearchAdvanceModal; -},2603,[3,4,270,33,16,582,814,2534,2604,2606,2045,828,438,179,817]); +},2607,[3,4,270,33,16,582,817,2538,2608,2610,2028,831,438,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364794,7 +364936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDown.defaultProps = {}; var _default = exports.default = DropDown; -},2604,[3,4,16,582,2373,2605,179]); +},2608,[3,4,16,582,2378,2609,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364879,7 +365021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownButton; -},2605,[3,16,582,18,1807,438,179,817,2219]); +},2609,[3,16,582,18,1812,438,179,820,2228]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364916,7 +365058,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2606,[18,438]); +},2610,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364931,7 +365073,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2607,[2349]); +},2611,[2354]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364946,7 +365088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2608,[2609]); +},2612,[2613]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364983,7 +365125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},2609,[3,6,7,11,13,14,16]); +},2613,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364998,7 +365140,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2610,[2611]); +},2614,[2615]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365178,7 +365320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemPress: _propTypes.default.func.isRequired, drawerHeader: _propTypes.default.node }; -},2611,[3,33,16,582,18,2612,436,2026,564,179,2210,817,438,1224]); +},2615,[3,33,16,582,18,2616,436,1986,564,179,2214,820,438,1227]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365393,7 +365535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelComponent; -},2612,[3,4,16,18,582,2025,2613,2614,2615,2616,438,2020,817,179]); +},2616,[3,4,16,18,582,1985,2617,2618,2619,2620,438,1980,820,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365455,7 +365597,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelChevronComponent; -},2613,[3,16,582,1807,2219,179,817,438]); +},2617,[3,16,582,1812,2228,179,820,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365531,7 +365673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelIconComponent; -},2614,[3,582,16,18,1941,2020,817,179,438]); +},2618,[3,582,16,18,1899,1980,820,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365626,7 +365768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelTextComponent; -},2615,[3,33,16,582,436,814,1934,564,179,817]); +},2619,[3,33,16,582,436,817,1892,564,179,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365643,7 +365785,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2616,[18]); +},2620,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365658,7 +365800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2617,[2618]); +},2621,[2622]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365814,7 +365956,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TutorialScreen.propTypes = { navigation: _propTypes.default.object }; -},2618,[3,6,7,11,85,13,14,16,18,582,814,2025,2277,588,434,1881,2211,179,2619,1968]); +},2622,[3,6,7,11,85,13,14,16,18,582,817,1985,2282,588,434,1870,2231,179,2623,1926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365856,7 +365998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2619,[18,438]); +},2623,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365871,7 +366013,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2620,[2621]); +},2624,[2625]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366252,7 +366394,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2621,[3,270,6,7,11,85,13,14,16,18,582,434,1907,566,2045,2369,2377,2229,2020,2039,438,2211,1991,179,2235,1976,817,2112]); +},2625,[3,270,6,7,11,85,13,14,16,18,582,434,1943,566,2028,2374,2382,2219,1980,2022,438,2231,1951,179,2227,1934,820,2102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366267,7 +366409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2622,[2623]); +},2626,[2627]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366332,9 +366474,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), - NativoSDK = _OptionalPackages$get.NativoSDK; - var ArticleScreen = exports.ArticleScreen = function (_NavigationBaseScreen) { function ArticleScreen(props) { var _this; @@ -366715,18 +366854,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_placeNativoMOAPAd", value: function _placeNativoMOAPAd(sectionURL, delayed) { - if (_optionalPackageUtils.default.isNativoSDKAvailable()) { - if (global.isDebug && !sectionURL.includes("ntv_tm=tout")) { - sectionURL += "/?ntv_tm=tout"; - } + if (!_optionalPackageUtils.default.isNativoSDKAvailable()) { + return; + } - if (delayed) { - setTimeout(function () { - NativoSDK.placeAdInWebView(sectionURL); - }, 500); - } else { + if (global.isDebug && !sectionURL.includes("ntv_tm=tout")) { + sectionURL += "/?ntv_tm=tout"; + } + + var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), + NativoSDK = _OptionalPackages$get.NativoSDK; + + if (delayed) { + setTimeout(function () { NativoSDK.placeAdInWebView(sectionURL); - } + }, 500); + } else { + NativoSDK.placeAdInWebView(sectionURL); } } }, { @@ -366781,7 +366925,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) }; -},2623,[3,270,6,7,11,85,13,14,582,16,18,436,2090,2197,1944,2049,434,879,1881,1967,854,2277,2624,2630,2639,2647,2211,564,2048,1906,438,2028,179,2595,2108,817]); +},2627,[3,270,6,7,11,85,13,14,582,16,18,436,2080,2186,1902,2032,434,882,1870,1925,857,2282,2628,2634,2643,2651,2231,564,2031,2002,438,1988,179,2599,2098,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366838,7 +366982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var ViafouraWebView = _optionalPackageUtils.default.getViafouraWebView(); + var CONTENT_ELEMENT_ID = "content"; var ArticleContentBase = exports.default = function (_React$PureComponent) { function ArticleContentBase(props) { @@ -367016,11 +367160,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (this.viafouraRef) { if (this.isCurrentPage && this.pageLoaded) { this.viafouraRef.show(); - } else if (this.viafouraRef) { + } else { this.viafouraRef.hide(); } } + if (this.isCurrentPage) { + this._updateWebviewFontSize(); + } + this._handleAutoHeightWebViewsCheck([this.articleWebView, this.topStoryWebView, this.nativoMOAPAutoHeightWebView, this.hardPaywallWebView]); } }, { @@ -367045,11 +367193,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "getNativeID", value: function getNativeID() { - if (this.webView) { - return this.webView.getNativeID(); - } + var _this$webView; - return undefined; + return (_this$webView = this.webView) == null ? undefined : _this$webView.getNativeID(); } }, { key: "_getHtmlSummary", @@ -367088,7 +367234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRSSActiveP = global.getRSSActivePSetup(), enableArticleTextSelection = _global$getRSSActiveP.enableArticleTextSelection; - var css = "\n table { \n font-size: 100%; \n }\n .author { \n font-weight: bold;\n border-bottom: 1px solid #7F7F7F;\n padding-left: 80px;\n padding-bottom: 10px;\n margin-bottom: 10px;\n color: #262626;\n }\n .author, .ar_number{\n text-align: right;\n font-weight: normal;\n margin: 0;\n color: #262626;\n padding-top: 5px\n }\n .real_text {\n margin-right: 10px;\n text-align: justify;\n }\n .native_ad { \n margin-bottom: 10px;\n }\n #content {\n font-size: " + fontSize + "%;\n padding: 20px;\n background-color: " + backgroundColor + ";\n }\n #content p { \n margin:0;\n }\n #content div, #content table, #content p { \n color: " + foregroundColor + ";\n }\n a.moreLink { \n margin: 0px 25px; \n }\n /* do not remove this style, avoid on android the bug in which webview cover other components */\n body { \n margin: 0 !important; \n background-color: transparent !important \n }\n p:not(:empty) {\n margin: 0 0 7px;\n padding-bottom:10px; \n }"; + var css = "\n table { \n font-size: 100%; \n }\n .author { \n font-weight: bold;\n border-bottom: 1px solid #7F7F7F;\n padding-left: 80px;\n padding-bottom: 10px;\n margin-bottom: 10px;\n color: #262626;\n }\n .author, .ar_number{\n text-align: right;\n font-weight: normal;\n margin: 0;\n color: #262626;\n padding-top: 5px\n }\n .real_text {\n margin-right: 10px;\n text-align: justify;\n }\n .native_ad { \n margin-bottom: 10px;\n }\n #content {\n font-size: " + fontSize + "%;\n padding: 20px;\n background-color: " + backgroundColor + ";\n }\n #" + CONTENT_ELEMENT_ID + " p { \n margin:0;\n }\n #" + CONTENT_ELEMENT_ID + " div, #" + CONTENT_ELEMENT_ID + " table, #" + CONTENT_ELEMENT_ID + " p { \n color: " + foregroundColor + ";\n }\n a.moreLink { \n margin: 0px 25px; \n }\n /* do not remove this style, avoid on android the bug in which webview cover other components */\n body { \n margin: 0 !important; \n background-color: transparent !important \n }\n p:not(:empty) {\n margin: 0 0 7px;\n padding-bottom:10px; \n }"; if (!enableArticleTextSelection) { css += "\n #content { -webkit-user-select: none; }"; @@ -367179,20 +367325,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function _updateInnerText(innerText) { this.innerText = innerText; } - }, { - key: "_updateWebviewFontSizeScript", - value: function _updateWebviewFontSizeScript() { - var fontSize = global.getUserSettings().getFontSize(); - return "\n try{ \n document.getElementById('content').style.fontSize = \"" + fontSize + "%\";\n }catch(e){}"; - } }, { key: "_updateWebviewFontSize", value: function _updateWebviewFontSize() { var loadUrlInArticle = this.props.loadUrlInArticle; if (this.articleWebView && !loadUrlInArticle) { - this.articleWebView.injectJavaScript(this._updateWebviewFontSizeScript()); - this.articleWebView.recheckContentHeight(); + this.articleWebView.injectJavaScript((0, _$$_REQUIRE(_dependencyMap[27]).getFontSizeChangeListenerScript)(CONTENT_ELEMENT_ID)); } } }, { @@ -367226,7 +367365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getIcon", value: function _getIcon() { var item = this.props.item; - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_iconGallery.default, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_iconGallery.default, { item: item, position: _iconGallery.PositionType.article }); @@ -367299,7 +367438,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this$props3 = this.props, item = _this$props3.item, insideAdModels = _this$props3.insideAdModels; - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_articleAdContainer.default, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleAdContainer.default, { articleId: item.feedId, adModels: insideAdModels }); @@ -367308,8 +367447,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getPaywallContainer", value: function _getPaywallContainer() { if (_Paywall.default.needToAppendHardPaywall()) { - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_autoheightRssOptionspageComponent.default, { - tab: _$$_REQUIRE(_dependencyMap[28]).tabs.account, + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_autoheightRssOptionspageComponent.default, { + tab: _$$_REQUIRE(_dependencyMap[29]).tabs.account, autoHeightWebViewProps: { ref: this.onHardPaywallWebViewRef, disableStartAutoHeightEvaluation: !this.isCurrentPage @@ -367322,9 +367461,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var source = item.source; if (truncate && _Paywall.default.needToAppendPaywallPopup(source)) { - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[29]).PaywallPopup, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[30]).PaywallPopup, { initialRender: false, - type: _$$_REQUIRE(_dependencyMap[30]).popupTypes.blocking, + type: _$$_REQUIRE(_dependencyMap[31]).popupTypes.blocking, ACI: source, isAutoHeight: true, autoHeightWebViewProps: { @@ -367381,7 +367520,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (e) {} if (parsed.length > 0) { - var articles = (0, _$$_REQUIRE(_dependencyMap[31]).formatArticlesToDTO)(parsed); + var articles = (0, _$$_REQUIRE(_dependencyMap[32]).formatArticlesToDTO)(parsed); var clickedPosition = articles[getParams.position]; navigation.push("ArticleScreen", { items: articles, @@ -367389,7 +367528,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e orientation: orientation }); } else { - _$$_REQUIRE(_dependencyMap[32]).Toast.show(global.strings("error_on_load_more"), { + _$$_REQUIRE(_dependencyMap[33]).Toast.show(global.strings("error_on_load_more"), { position: "top" }); } @@ -367405,7 +367544,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e caller: "live_news" }); } else { - _$$_REQUIRE(_dependencyMap[32]).Toast.show(global.strings("msg_empty_gallery"), { + _$$_REQUIRE(_dependencyMap[33]).Toast.show(global.strings("msg_empty_gallery"), { position: "top" }); } @@ -367579,11 +367718,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var views = resources.map(function (resource, index) { switch (resource.getType()) { case _Resource.ResourceType.VIAFOURA: - return ViafouraWebView ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { + var ViafouraWebView = _optionalPackageUtils.default.getViafouraWebView(); + + return ViafouraWebView ? (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-viafoura"], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(ViafouraWebView, { - autoHeightJs: "(" + _$$_REQUIRE(_dependencyMap[33]).checkContentHeight + ")();", - LoadingComponent: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[34]).ProgressCircle, { + children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(ViafouraWebView, { + autoHeightJs: "(" + _$$_REQUIRE(_dependencyMap[27]).checkContentHeight + ")();", + LoadingComponent: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[34]).ProgressCircle, { showText: true, text: global.strings("msg_loading_comments") }), @@ -367598,9 +367739,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "resource_" + index) : null; case _Resource.ResourceType.TOP_STORY: - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-top-stories"], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { + children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { ref: _this4.onTopStoryRef, onLocal: _this4.onLocal, source: { @@ -367611,9 +367752,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "resource_" + index); case _Resource.ResourceType.NATIVO_MOAP_AD: - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-nativo-moap"], - children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { + children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { ref: _this4.onNativoMOAPContainerRef, innerRef: _this4.onNativoMOAPRef, source: { @@ -367627,7 +367768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } }); - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resources"], children: views }); @@ -367637,9 +367778,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function _getWebViewWithContent(item) { var _this$props$loadUrlIn = this.props.loadUrlInArticle, loadUrlInArticle = _this$props$loadUrlIn === undefined ? false : _this$props$loadUrlIn; - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { keyToShow: item.title, - htmlContentId: "content", + htmlContentId: CONTENT_ELEMENT_ID, ref: this.onRef, innerRef: this.onBaseWebViewRef, onLoad: this.onLoad, @@ -367689,7 +367830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasColumnizer: false, insideAdModels: [] }; -},2624,[3,270,6,7,11,13,14,582,16,2160,2034,436,1944,2049,1918,879,2198,866,1945,2166,2625,2009,564,2176,817,438,2179,179,878,2628,1920,2033,1976,2053,1968,2185]); +},2628,[3,270,6,7,11,13,14,582,16,2150,1994,436,1902,2032,2005,882,2187,869,1903,2156,2629,1969,564,2037,820,438,2168,2036,179,881,2632,2007,1993,1934,1926,2174]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367826,7 +367967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2625,[3,270,6,7,11,85,13,14,582,16,436,1865,627,878,564,179,2185,438,2040,2626,1087]); +},2629,[3,270,6,7,11,85,13,14,582,16,436,2194,630,881,564,179,2174,438,2023,2630,1090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367966,7 +368107,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2626,[3,270,6,7,11,85,13,14,582,16,2056,436,434,2026,878,564,2627,1087,179]); +},2630,[3,270,6,7,11,85,13,14,582,16,2040,436,434,1986,881,564,2631,1090,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368038,7 +368179,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).BaseOptionspage); -},2627,[3,6,7,11,85,13,14,878,438,2225]); +},2631,[3,6,7,11,85,13,14,881,438,2215]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368568,7 +368709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isAutoHeight: false, autoHeightWebViewProps: {} }; -},2628,[3,4,270,6,7,11,13,14,582,16,18,1881,854,436,1910,866,2049,2050,1918,2629,564,1920,878,2058,438,2040,179,2185,2210,2055]); +},2632,[3,4,270,6,7,11,13,14,582,16,18,1870,857,436,1998,869,2032,2033,2005,2633,564,2007,881,2048,438,2023,179,2174,2214,2039]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368595,7 +368736,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent } }); -},2629,[18,438]); +},2633,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368748,7 +368889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e item: _propTypes.default.object, onBylinePress: _propTypes.default.func }; -},2630,[3,6,7,11,13,14,582,16,18,2198,2624,2631,179,2107,817,438,2632,2020,2634]); +},2634,[3,6,7,11,13,14,582,16,18,2187,2628,2635,179,2097,820,438,2636,1980,2638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368770,7 +368911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minHeight: 0 } }); -},2631,[18]); +},2635,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369019,7 +369160,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasSquaredImage: _propTypes.default.bool, rootStyle: _propTypes.default.any }; -},2632,[3,6,7,11,13,14,16,18,582,814,588,2026,2017,817,438,179,2633]); +},2636,[3,6,7,11,13,14,16,18,582,817,588,1986,1977,820,438,179,2637]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369070,7 +369211,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2633,[18]); +},2637,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369085,7 +369226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2634,[2635]); +},2638,[2639]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369463,7 +369604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, loadUrlInArticle: _propTypes.default.bool }; -},2635,[3,270,6,7,11,13,14,582,16,567,436,2049,1941,2636,1942,564,817,179,2638,1807,438]); +},2639,[3,270,6,7,11,13,14,582,16,567,436,2032,1899,2640,1900,564,820,179,2642,1812,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369868,7 +370009,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e btnOutRange: _$$_REQUIRE(_dependencyMap[10]).colors.black, btnOutRangeTxt: _$$_REQUIRE(_dependencyMap[10]).colors.white }; -},2636,[3,6,7,11,13,14,582,16,18,2637,438,179]); +},2640,[3,6,7,11,13,14,582,16,18,2641,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369991,7 +370132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startDegree: 0, endDegree: 720 }; -},2637,[3,6,7,11,13,14,16,18,582,179]); +},2641,[3,6,7,11,13,14,16,18,582,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370006,7 +370147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2638,[1940]); +},2642,[1898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370146,7 +370287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ArticleContent; -},2639,[3,6,7,11,13,14,582,16,18,2624,817,2589,179,2640,438,2642,2644,2634]); +},2643,[3,6,7,11,13,14,582,16,18,2628,820,2593,179,2644,438,2646,2648,2638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370293,7 +370434,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onImagePress: _propTypes.default.func, onImageError: _propTypes.default.func }; -},2640,[3,16,18,582,814,2032,2009,2098,2198,438,179,817,2641,1946]); +},2644,[3,16,18,582,817,1992,1969,2088,2187,438,179,820,2645,1904]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370319,7 +370460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 10 } }); -},2641,[18,438]); +},2645,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370334,7 +370475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2642,[2643]); +},2646,[2647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370435,7 +370576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderParallaxBackground: null, parallaxBackgroundScrollSpeed: 2 }; -},2643,[3,4,16,18,582,179,2107,438]); +},2647,[3,4,16,18,582,179,2097,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370450,7 +370591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2644,[2645]); +},2648,[2649]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370558,7 +370699,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleContentHeadline.defaultProps = { date: "" }; -},2645,[3,582,16,18,2198,814,817,179,2646]); +},2649,[3,582,16,18,2187,817,820,179,2650]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370594,7 +370735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingHorizontal: 4 } }); -},2646,[18]); +},2650,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370617,7 +370758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2647,[18]); +},2651,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370737,7 +370878,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = CustomEmbedWebView; -},2648,[3,33,4,582,16,18,436,434,2203,2179,866,564,179,817,2649,2040,438]); +},2652,[3,33,4,582,16,18,436,434,2192,2168,869,564,179,820,2653,2023,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370835,7 +370976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e source = _this$props.source, onLoadEnd = _this$props.onLoadEnd; - if (!disableStartAutoHeightEvaluation && _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isIOS() && source && source.uri) { + if (!disableStartAutoHeightEvaluation && source && source.uri) { this.startAutoHeightEvaluation(); } @@ -370870,8 +371011,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disableStartAutoHeightEvaluation = _this$props2.disableStartAutoHeightEvaluation, source = _this$props2.source, onLoadStart = _this$props2.onLoadStart; + this.initialHeightEvaluationCompleted = false; - if (!disableStartAutoHeightEvaluation && _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isIOS() && source && !source.uri) { + if (!disableStartAutoHeightEvaluation && source && !source.uri) { this.startAutoHeightEvaluation(); } @@ -370888,7 +371030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._log("start auto height evaluation"); var htmlContentId = this.props.htmlContentId; - var js = "(" + _$$_REQUIRE(_dependencyMap[10]).checkContentHeight + ")(\"" + htmlContentId + "\");"; + var js = (0, _$$_REQUIRE(_dependencyMap[9]).launchContentHeightCheck)(htmlContentId); this.injectJavaScript(js); if (this.heightCheckIntervalId === undefined) { @@ -370932,7 +371074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "recheckContentHeight", value: function recheckContentHeight() { var htmlContentId = this.props.htmlContentId; - this.injectJavaScript("(" + _$$_REQUIRE(_dependencyMap[10]).checkContentHeight + ")(\"" + htmlContentId + "\", true);"); + this.injectJavaScript((0, _$$_REQUIRE(_dependencyMap[9]).launchContentHeightCheck)(htmlContentId, true)); } }, { key: "_updateHeight", @@ -371008,7 +371150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e innerRef = _this$props3.innerRef, rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded); var _h = this.state.webViewHeight; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).BaseWebView, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).BaseWebView, Object.assign({ ref: this.onRef, innerRef: this.onInnerRef, source: source, @@ -371040,13 +371182,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e htmlContentId: _propTypes.default.string, source: _propTypes.default.object, disableStartAutoHeightEvaluation: _propTypes.default.bool - }, _$$_REQUIRE(_dependencyMap[12]).BaseWebView.propTypes); + }, _$$_REQUIRE(_dependencyMap[11]).BaseWebView.propTypes); AutoHeightWebView.defaultProps = { defaultHeight: 0, htmlContentId: "", disableStartAutoHeightEvaluation: false }; -},2649,[3,4,6,7,11,13,14,582,16,438,2053,179,2055]); +},2653,[3,4,6,7,11,13,14,582,16,2036,179,2039]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371063,9 +371205,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _reactNative = _$$_REQUIRE(_dependencyMap[8]); @@ -371075,9 +371217,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), - NativoWebContent = _OptionalPackages$get.NativoWebContent; - var styles = _reactNative.StyleSheet.create({ container: { flex: 1, @@ -371129,6 +371268,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function render() { var _this2 = this; + if (!_optionalPackageUtils.default.isNativoSDKAvailable()) { + return null; + } + var height = this.state.height; var navigation = this.props.navigation; var params = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(this.props); @@ -371142,6 +371285,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e adAuthorImgUrl = params.adAuthorImgUrl, adDate = params.adDate, adShareUrl = params.adShareUrl; + + var _OptionalPackages$get = _optionalPackageUtils.default.getNativoAds(), + NativoWebContent = _OptionalPackages$get.NativoWebContent; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_$$_REQUIRE(_dependencyMap[12]).TecnaviaScrollView, { style: styles.container, children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { @@ -371162,7 +371309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: styles.authorName, children: adAuthorName }) : null] - }) : null, _optionalPackageUtils.default.isNativoSDKAvailable() ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(NativoWebContent, { + }) : null, (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(NativoWebContent, { style: { height: height }, @@ -371181,7 +371328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } - }) : null] + })] }); } }]); @@ -371190,7 +371337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NativoLandingPageScreen.propTypes = { navigation: _propTypes.default.object.isRequired }; -},2650,[3,6,7,11,13,14,16,582,18,879,2211,179,2107]); +},2654,[3,6,7,11,13,14,582,16,18,882,2231,179,2097]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371273,7 +371420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2651,[3,6,7,11,13,14,16,407,2652,2211,438,179]); +},2655,[3,6,7,11,13,14,16,407,2656,2231,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371360,7 +371507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) : null] }); } -},2652,[3,33,16,18,2209,436,434,866,438,564,817,179,2055,2040]); +},2656,[3,33,16,18,2236,436,434,869,438,564,820,179,2039,2023]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371446,7 +371593,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2653,[3,6,7,11,13,14,16,406,407,2652,2211,438,179]); +},2657,[3,6,7,11,13,14,16,406,407,2656,2231,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371684,7 +371831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[25]).NavigationBaseScreen); -},2654,[3,270,6,7,11,85,13,14,16,2143,1907,2045,1723,436,1910,878,1724,1881,2652,438,564,1976,179,1968,2043,2211]); +},2658,[3,270,6,7,11,85,13,14,16,2133,1943,2028,1728,436,1998,881,1729,1870,2656,438,564,1934,179,1926,2026,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371825,7 +371972,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SelectionScreen.propTypes = { navigation: _propTypes.default.object }; -},2655,[3,270,6,7,11,85,13,14,16,582,2652,2211,438,179]); +},2659,[3,270,6,7,11,85,13,14,16,582,2656,2231,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371901,7 +372048,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[12]).NavigationBaseScreen); -},2656,[3,6,7,11,13,14,16,18,814,1807,817,179,2211]); +},2660,[3,6,7,11,13,14,16,18,817,1812,820,179,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372223,7 +372370,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UpdaterScreen.defaultProps = { manualRestartContext: global.__DEV__ }; -},2657,[3,270,6,7,11,85,13,14,582,16,18,407,434,627,1912,566,2219,814,2658,438,579,1985,2211,817,179,1968,2238]); +},2661,[3,270,6,7,11,85,13,14,582,16,18,407,434,630,2000,566,2228,817,2662,438,579,1945,2231,820,179,1926,2243]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372260,7 +372407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2658,[18]); +},2662,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372275,7 +372422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2659,[2660]); +},2663,[2664]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372916,7 +373063,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[35]).NavigationBaseScreen); -},2660,[3,270,6,7,11,85,13,14,16,2661,2143,1907,2252,436,1910,1865,2134,2213,1915,1912,566,1724,1881,815,812,438,579,1850,2214,564,407,864,2363,179,2238,2211]); +},2664,[3,270,6,7,11,85,13,14,16,2665,2133,1943,2257,436,1998,2194,2124,2233,2010,2000,566,1729,1870,818,815,438,579,1855,2223,564,407,867,2368,179,2243,2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372928,7 +373075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.SplashScreen; -},2661,[18]); +},2665,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373113,7 +373260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RootBase.propTypes = { children: _propTypes.default.any }; -},2662,[3,4,582,16,18,434,879,1881,2663,2180,2664,815,2210,438,2199,1976,812,1979,1985,1989,179,817,2665]); +},2666,[3,4,582,16,18,434,882,1870,2667,2169,2668,818,2214,438,2188,1934,815,1937,1945,1949,179,820,2669]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373297,7 +373444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DebugOverlay; -},2663,[3,22,33,582,16,18,438,179,2210,815,2107,2108]); +},2667,[3,22,33,582,16,18,438,179,2214,818,2097,2098]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373446,7 +373593,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpen: _propTypes.default.func, onClose: _propTypes.default.func }; -},2664,[3,6,7,11,13,14,582,16,2049,179,2628]); +},2668,[3,6,7,11,13,14,582,16,2032,179,2632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373531,7 +373678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); }; -},2665,[3,33,4,16,18,179]); +},2669,[3,33,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373546,6 +373693,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2666,[2233]); +},2670,[2225]); __r(55); __r(0); \ No newline at end of file diff --git a/src/main/assets/packages.txt b/src/main/assets/packages.txt index 5f117fe..31b2c84 100644 --- a/src/main/assets/packages.txt +++ b/src/main/assets/packages.txt @@ -3,7 +3,6 @@ com.rtmalone.volumecontrol.RNVolumeControlPackage com.levelasquez.androidopensettings.AndroidOpenSettingsPackage com.chirag.RNMail.RNMail net.no_mad.tts.TextToSpeechPackage -com.idehub.GoogleAnalyticsBridge.GoogleAnalyticsBridgePackage com.lugg.ReactNativeConfig.ReactNativeConfigPackage org.pgsqlite.SQLitePluginPackage com.swmansion.gesturehandler.react.RNGestureHandlerPackage