diff --git a/build.gradle b/build.gradle index 110149a..6e8418c 100644 --- a/build.gradle +++ b/build.gradle @@ -66,13 +66,6 @@ publishing { artifact("$libsDirName/react-native-community_datetimepicker-release.aar") } - tareactnativecommunityimageeditor(MavenPublication) { - groupId 'tecnavia' - artifactId 'react-native-community_image-editor' - version '2.3.0' - artifact("$libsDirName/react-native-community_image-editor-release.aar") - } - tareactnativecommunitynetinfo(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-community_netinfo' @@ -293,7 +286,7 @@ publishing { tatecnaviareactnativebridge(MavenPublication) { groupId 'tecnavia' artifactId 'tecnavia_react-native-bridge' - version '1.3.8' + version '1.3.10' artifact("$libsDirName/tecnavia_react-native-bridge-release.aar") } @@ -455,7 +448,6 @@ dependencies { implementation "tecnavia:react-native-async-storage_async-storage:2.0.0" implementation "tecnavia:react-native-color-matrix-image-filters:6.0.9" implementation "tecnavia:react-native-community_datetimepicker:6.7.5" - implementation "tecnavia:react-native-community_image-editor:2.3.0" implementation "tecnavia:react-native-community_netinfo:11.4.1" implementation "tecnavia:react-native-community_slider:2.0.9" implementation "tecnavia:react-native-config:1.4.11" @@ -487,7 +479,7 @@ dependencies { 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.8" + api "tecnavia:tecnavia_react-native-bridge:1.3.10" 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 426bba6..f1c6601 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ android.useAndroidX=true APP_NAME=Android SDK -APP_VERSION_NAME=3.17.05 -APP_VERSION_CODE=1737383107535 +APP_VERSION_NAME=3.18.03 +APP_VERSION_CODE=1738587271993 ANDROID_APP_ID=com.tecnaviaapplication IS_ADDON=true diff --git a/libs/react-native-community_image-editor-release.aar b/libs/react-native-community_image-editor-release.aar deleted file mode 100644 index 9bec433..0000000 Binary files a/libs/react-native-community_image-editor-release.aar and /dev/null differ diff --git a/libs/tecnavia_react-native-bridge-release.aar b/libs/tecnavia_react-native-bridge-release.aar index 3d786fa..f2b0f5c 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 50c2771..e805be3 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,2184]); +},0,[1,404,2183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47152,26 +47152,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _EpaperLayoutConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _SslConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _ContentManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _SslConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _PublicationsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _ContentManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _PublicationsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _Publication = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _Publication = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); global.__DEV__ = false; if (!global.btoa) { - global.btoa = _$$_REQUIRE(_dependencyMap[9]).encode; + global.btoa = _$$_REQUIRE(_dependencyMap[10]).encode; } if (!global.atob) { - global.atob = _$$_REQUIRE(_dependencyMap[9]).decode; + global.atob = _$$_REQUIRE(_dependencyMap[10]).decode; } global.newsmemoryStartupParams = {}; @@ -47289,8 +47291,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - _$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isHTTPS = global.isHTTPS(); - _$$_REQUIRE(_dependencyMap[10]).Logger.enableLog = global.isDebug; + _$$_REQUIRE(_dependencyMap[11]).NetworkUtils.isHTTPS = global.isHTTPS(); + _$$_REQUIRE(_dependencyMap[11]).Logger.enableLog = global.isDebug; if (global.__DEV__ && !global.isTaAddon()) {} @@ -47339,7 +47341,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getRssFavoritesConfig = function () { if (!global.rssFavoritesConfig) { - global.rssFavoritesConfig = new (_$$_REQUIRE(_dependencyMap[11]).RssFavoritesConfig)(); + global.rssFavoritesConfig = new (_$$_REQUIRE(_dependencyMap[12]).RssFavoritesConfig)(); } return global.rssFavoritesConfig; @@ -47355,7 +47357,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getLocaleConfig = function () { if (!global.localeConfig) { - global.localeConfig = new (_$$_REQUIRE(_dependencyMap[12]).LocaleConfig)(); + global.localeConfig = new (_$$_REQUIRE(_dependencyMap[13]).LocaleConfig)(); } return global.localeConfig; @@ -47388,7 +47390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getAdsConfig = function () { if (!global.adsConfig) { - global.adsConfig = new (_$$_REQUIRE(_dependencyMap[13]).AdsConfig)(); + global.adsConfig = new (_$$_REQUIRE(_dependencyMap[14]).AdsConfig)(); } return global.adsConfig; @@ -47396,7 +47398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getVerticalsConfig = function () { if (!global.verticalsConfig) { - global.verticalsConfig = new (_$$_REQUIRE(_dependencyMap[14]).VerticalsConfig)(); + global.verticalsConfig = new (_$$_REQUIRE(_dependencyMap[15]).VerticalsConfig)(); } return global.verticalsConfig; @@ -47412,7 +47414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getRssIndexManager = function () { if (!global.rssIndexManager) { - global.rssIndexManager = new (_$$_REQUIRE(_dependencyMap[15]).RssIndexManager)(); + global.rssIndexManager = new (_$$_REQUIRE(_dependencyMap[16]).RssIndexManager)(); } return global.rssIndexManager; @@ -47424,7 +47426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getFontsManager = function () { if (!global.fontsManager) { - global.fontsManager = new (_$$_REQUIRE(_dependencyMap[16]).FontsManager)(); + global.fontsManager = new (_$$_REQUIRE(_dependencyMap[17]).FontsManager)(); } return global.fontsManager; @@ -47436,7 +47438,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getUserSettings = function () { if (!global.userConfig) { - global.userConfig = new (_$$_REQUIRE(_dependencyMap[17]).UserConfig)(); + global.userConfig = new (_$$_REQUIRE(_dependencyMap[18]).UserConfig)(); } return global.userConfig; @@ -47449,7 +47451,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e notificationEmail = _global$getUserSettin.notificationEmail; if (notificationEmail) { - var _StringUtils$parseNot = _$$_REQUIRE(_dependencyMap[10]).StringUtils.parseNotificationEmail(notificationEmail); + var _StringUtils$parseNot = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseNotificationEmail(notificationEmail); pSetup = _StringUtils$parseNot.pSetup; var paperSetupManager = global.getPaperSetupManager(); @@ -47485,7 +47487,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e notificationEmail = _global$getUserSettin2.notificationEmail; if (notificationEmail) { - var _StringUtils$parseNot2 = _$$_REQUIRE(_dependencyMap[10]).StringUtils.parseNotificationEmail(notificationEmail); + var _StringUtils$parseNot2 = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseNotificationEmail(notificationEmail); server = _StringUtils$parseNot2.server; } @@ -47504,7 +47506,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global.getPaperSetupManager = function () { if (!global.paperSetupManager) { - global.paperSetupManager = new (_$$_REQUIRE(_dependencyMap[18]).PaperSetupManager)(); + global.paperSetupManager = new (_$$_REQUIRE(_dependencyMap[19]).PaperSetupManager)(); } return global.paperSetupManager; @@ -47621,12 +47623,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; - _$$_REQUIRE(_dependencyMap[10]).Logger.enableLog = false; - _$$_REQUIRE(_dependencyMap[10]).Logger.enableLogCaller = false; - _$$_REQUIRE(_dependencyMap[10]).Logger.initializedLogSession = false; - _$$_REQUIRE(_dependencyMap[10]).Logger.logSessionFileName = ""; + global.initCustomStyles = function () { + return _GlobalConfig.default.initCustomStyles(); + }; + + _$$_REQUIRE(_dependencyMap[11]).Logger.enableLog = false; + _$$_REQUIRE(_dependencyMap[11]).Logger.enableLogCaller = false; + _$$_REQUIRE(_dependencyMap[11]).Logger.initializedLogSession = false; + _$$_REQUIRE(_dependencyMap[11]).Logger.logSessionFileName = ""; global.getLocaleConfig().initLocale(); -},404,[3,270,405,1840,2034,2035,2018,630,2019,443,438,2036,2047,2065,2118,2125,2030,2133,2026]); +},404,[3,270,405,1867,1952,2033,2034,1727,629,1728,443,438,2035,2046,2064,2117,2124,1858,2132,1854]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47834,7 +47840,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hybrid: 2, hybridLite: 3 }; -},405,[3,270,6,7,406,2018,438,1874,2021,2015,2022,2023,2026,2011,2033]); +},405,[3,270,6,7,406,1727,438,1730,1809,1810,1850,1851,1854,1861,1866]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -48987,7 +48993,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},406,[3,4,270,6,7,407,434,586,630,1842,566,1772,671,1969,817,1862,1748,438,588,587,1751]); +},406,[3,4,270,6,7,407,434,586,629,858,566,859,670,860,864,865,866,438,588,587,870]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -86893,7 +86899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "__esModule", { value: true }); - exports.queryCache = exports.prefetch = exports.imageBase64 = exports.getSizeAsync = exports.getSize = exports.getImageSize = exports.getImageBase64String = exports.default = exports.cropImage = undefined; + exports.queryCache = exports.prefetch = exports.imageBase64 = exports.getSizeAsync = exports.getSize = exports.getImageSize = exports.getImageBase64String = exports.default = undefined; var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -86901,23 +86907,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _imageEditor = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + var _reactNative = _$$_REQUIRE(_dependencyMap[6]); - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + var _reactNativeFastImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _reactNativeFastImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _reactNativeImageProgress = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _reactNativeImageProgress = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _reactNativePhotoViewEx = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _reactNativePhotoViewEx = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _filtersComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _filtersComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); var _excluded = ["source", "error", "animated", "onError", "style", "tintColor"], _excluded2 = ["source", "error", "onError"], @@ -86946,10 +86950,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var base64; - var isIOS = _$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isIOS(); + var isIOS = _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isIOS(); if (isIOS || global.__DEV__ || !isLocalResource) { - if (isIOS && _$$_REQUIRE(_dependencyMap[13]).StringUtils.isLocalURL(uri)) { + if (isIOS && _$$_REQUIRE(_dependencyMap[12]).StringUtils.isLocalURL(uri)) { var path = uri.replace("file://", ""); try { @@ -86961,7 +86965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e base64 = yield _tecnaviaFileUtils.default.fetchBase64(uri); } } else { - base64 = yield _$$_REQUIRE(_dependencyMap[14]).OurBridge.getBase64FromRes(uri); + base64 = yield _$$_REQUIRE(_dependencyMap[13]).OurBridge.getBase64FromRes(uri); } return "data:image/jpeg;base64," + base64; @@ -86976,7 +86980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var getImageBase64String = exports.getImageBase64String = function getImageBase64String(base64) { - var dataType = _$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isAndroid() ? "image/png" : "image/jpeg"; + var dataType = _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isAndroid() ? "image/png" : "image/jpeg"; return "data:" + dataType + ";base64," + base64; }; @@ -87063,24 +87067,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }(); - var cropImage = exports.cropImage = function () { - var _ref5 = (0, _asyncToGenerator2.default)(function* (url) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return _imageEditor.default.cropImage(url, params); - }); - - return function cropImage(_x5) { - return _ref5.apply(this, arguments); - }; - }(); - var prefetch = exports.prefetch = function () { - var _ref6 = (0, _asyncToGenerator2.default)(function* (url) { + var _ref5 = (0, _asyncToGenerator2.default)(function* (url) { return _reactNative.Image.prefetch(url); }); - return function prefetch(_x6) { - return _ref6.apply(this, arguments); + return function prefetch(_x5) { + return _ref5.apply(this, arguments); }; }(); @@ -87094,7 +87087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; } - if (!_$$_REQUIRE(_dependencyMap[13]).StringUtils.isDomainValid(source.uri)) { + if (!_$$_REQUIRE(_dependencyMap[12]).StringUtils.isDomainValid(source.uri)) { return false; } } @@ -87108,25 +87101,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var imageStyle; if (style) { - imageStyle = _$$_REQUIRE(_dependencyMap[13]).CssUtils.deleteKeysFromStyle(style, ["fontSize", "filters", "image"]); + imageStyle = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle(style, ["fontSize", "filters", "image"]); - var tintColor = _$$_REQUIRE(_dependencyMap[13]).CssUtils.getTintColorAttributeStyle(style); + var tintColor = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getTintColorAttributeStyle(style); if (tintColor) { props.tintColor = tintColor; } - var filters = _$$_REQUIRE(_dependencyMap[13]).CssUtils.getAttributeFromStyle("filters", style); + var filters = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("filters", style); - if (Array.isArray(filters) && !_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(filters)) { + if (Array.isArray(filters) && !_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(filters)) { props.filters = filters; filterStyle.push(imageStyle); - var backgroundColor = _$$_REQUIRE(_dependencyMap[13]).CssUtils.getAttributeFromStyle("backgroundColor", imageStyle); + var backgroundColor = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("backgroundColor", imageStyle); if (backgroundColor) { if (backgroundColor === "transparent") { - backgroundColor = _$$_REQUIRE(_dependencyMap[13]).colors.transparent; + backgroundColor = _$$_REQUIRE(_dependencyMap[12]).colors.transparent; } filterStyle.push({ @@ -87134,7 +87127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - var imageStyleCondition = _$$_REQUIRE(_dependencyMap[13]).CssUtils.getAttributeFromStyle("image", style); + var imageStyleCondition = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("image", style); if (imageStyleCondition !== "inherit") { imageStyle = { @@ -87164,7 +87157,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } - var offlineCache = _$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isIOS() && !_$$_REQUIRE(_dependencyMap[13]).NetworkUtils.isOnline() && source && source.uri && !_$$_REQUIRE(_dependencyMap[13]).StringUtils.isLocalURL(source.uri) && !error; + var offlineCache = _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isIOS() && !_$$_REQUIRE(_dependencyMap[12]).NetworkUtils.isOnline() && source && source.uri && !_$$_REQUIRE(_dependencyMap[12]).StringUtils.isLocalURL(source.uri) && !error; if (offlineCache) { source.cache = "only-if-cached"; @@ -87182,9 +87175,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e imageStyle.push(style); var ComponentImage = animated ? _reactNative.Animated.Image : _reactNative.Image; - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(ComponentImage, Object.assign({ - onError: function onError(_ref7) { - var nativeEvent = _ref7.nativeEvent; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(ComponentImage, Object.assign({ + onError: function onError(_ref6) { + var nativeEvent = _ref6.nativeEvent; if (typeof _onError === "function") { _onError(); @@ -87209,9 +87202,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e source.cache = "web"; } - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNativeFastImage.default, Object.assign({ - onError: function onError(_ref8) { - var nativeEvent = _ref8.nativeEvent; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNativeFastImage.default, Object.assign({ + onError: function onError(_ref7) { + var nativeEvent = _ref7.nativeEvent; if (typeof _onError2 === "function") { _onError2(); @@ -87222,7 +87215,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var skipUpdate = function skipUpdate(props, nextProps) { - return _$$_REQUIRE(_dependencyMap[13]).JSUtils.equals(props, nextProps); + return _$$_REQUIRE(_dependencyMap[12]).JSUtils.equals(props, nextProps); }; var TecnaviaImage = _react.default.memo(function (props) { @@ -87263,9 +87256,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style = props.style, rest = (0, _objectWithoutProperties2.default)(props, _excluded3); - var isAndroid = _$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isAndroid(); + var isAndroid = _$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isAndroid(); - var isRecentAndroid = isAndroid && !_$$_REQUIRE(_dependencyMap[13]).PlatformUtils.isPreviousMarshmallow(); + var isRecentAndroid = isAndroid && !_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isPreviousMarshmallow(); var isIOS = !isAndroid; var useRNImage = forceRNComponent || rest.animated || isAndroid && !isRecentAndroid || !forceFastComponent && (isIOS || isRecentAndroid && !rnImageError); var useFSImage = !fsImageError; @@ -87283,24 +87276,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Component = null; if (forceProgressComponent || progress) { - Component = (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNativeImageProgress.default, Object.assign({}, rest, styleProps, { + Component = (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNativeImageProgress.default, Object.assign({}, rest, styleProps, { style: imageStyle, source: source })); } else if (forceZoomComponent) { - Component = (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_reactNativePhotoViewEx.default, Object.assign({}, rest, styleProps, { + Component = (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNativePhotoViewEx.default, Object.assign({}, rest, styleProps, { style: imageStyle, source: source })); } else if (useRNImage) { - Component = (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(RNImage, Object.assign({}, rest, styleProps, { + Component = (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(RNImage, Object.assign({}, rest, styleProps, { style: imageStyle, source: source, error: rnImageError, onError: onRNImageError })); } else if (useFSImage) { - Component = (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(FSImage, Object.assign({}, rest, styleProps, { + Component = (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(FSImage, Object.assign({}, rest, styleProps, { style: imageStyle, source: source, error: fsImageError, @@ -87308,7 +87301,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); } - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_filtersComponent.default, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_filtersComponent.default, Object.assign({ style: filterStyle, filters: filters }, rest, styleProps, { @@ -87339,36 +87332,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,596,566,620,438,579,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 _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var RNCImageEditor = _reactNative.NativeModules.RNCImageEditor; - - var ImageEditor = function () { - function ImageEditor() { - (0, _classCallCheck2.default)(this, ImageEditor); - } - - return (0, _createClass2.default)(ImageEditor, null, [{ - key: "cropImage", - value: function cropImage(uri, cropData) { - return RNCImageEditor.cropImage(uri, cropData); - } - }]); - }(); - - var _default = exports.default = ImageEditor; -},589,[3,6,7,18]); +},588,[3,33,4,270,582,16,18,589,591,595,566,619,438,579,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -87499,7 +87463,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); module.exports = FastImage; -},590,[16,18,591,4]); +},589,[16,18,590,4]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _extends() { module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { @@ -87519,7 +87483,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; -},591,[]); +},590,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -87811,12 +87775,12 @@ __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,593,18,179]); +},591,[3,4,6,7,11,13,14,16,592,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { { module.exports = _$$_REQUIRE(_dependencyMap[0])(); } -},593,[594]); +},592,[593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -87871,13 +87835,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; -},594,[595]); +},593,[594]); __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,[]); +},594,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -87887,7 +87851,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; -},596,[3,597]); +},595,[3,596]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -88024,7 +87988,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; var PhotoViewAndroid = (0, _reactNative.requireNativeComponent)('PhotoViewAndroid', PhotoView, cfg); -},597,[3,4,6,7,11,13,14,582,16,18,179,598]); +},596,[3,4,6,7,11,13,14,582,16,18,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88058,7 +88022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},598,[599,601,605,616,617,618,606]); +},597,[598,600,604,615,616,617,605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88085,7 +88049,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; -},599,[600]); +},598,[599]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88754,7 +88718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = normalizeColor; -},600,[]); +},599,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88766,12 +88730,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},601,[602]); +},600,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { { module.exports = _$$_REQUIRE(_dependencyMap[0])(); } -},602,[603]); +},601,[602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88826,13 +88790,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; -},603,[604]); +},602,[603]); __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; -},604,[]); +},603,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88867,7 +88831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: _$$_REQUIRE(_dependencyMap[1]).number }); module.exports = DeprecatedImagePropType; -},605,[606,602,601,614,608,615,599]); +},604,[605,601,600,613,607,614,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88975,7 +88939,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e testID: _$$_REQUIRE(_dependencyMap[0]).string }); module.exports = DeprecatedViewPropTypes; -},606,[602,607,601,608,610]); +},605,[601,606,600,607,609]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -88987,7 +88951,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; -},607,[602]); +},606,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89035,7 +88999,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},608,[609]); +},607,[608]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89091,7 +89055,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},609,[31]); +},608,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89130,7 +89094,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; -},610,[611,612,613,602,599]); +},609,[610,611,612,601,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89214,7 +89178,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e zIndex: _$$_REQUIRE(_dependencyMap[0]).number }; module.exports = DeprecatedLayoutPropTypes; -},611,[602]); +},610,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89228,7 +89192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},612,[599,602]); +},611,[598,601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89260,7 +89224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })])) }; module.exports = DeprecatedTransformPropTypes; -},613,[602]); +},612,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89279,7 +89243,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; -},614,[602]); +},613,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89301,7 +89265,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['center', 'contain', 'cover', 'repeat', 'stretch']) }); module.exports = DeprecatedImageStylePropTypes; -},615,[611,612,613,602,599]); +},614,[610,611,612,601,598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89311,7 +89275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},616,[602]); +},615,[601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89382,7 +89346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: _$$_REQUIRE(_dependencyMap[1]).string }); module.exports = DeprecatedTextInputPropTypes; -},617,[606,602,599,618]); +},616,[605,601,598,617]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89437,7 +89401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textBreakStrategy: _$$_REQUIRE(_dependencyMap[0]).oneOf(['balanced', 'highQuality', 'simple']) }; module.exports = DeprecatedTextPropTypes; -},618,[602,607,601,599,608,619]); +},617,[601,606,600,598,607,618]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -89468,7 +89432,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},619,[610,599,602]); +},618,[609,598,601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89564,7 +89528,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = TecnaviaImageFilters; -},620,[3,22,4,240,16,621,438,179]); +},619,[3,22,4,240,16,620,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89673,7 +89637,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; -},621,[622,3,623,625]); +},620,[621,3,622,624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89703,7 +89667,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); }; -},622,[3,31]); +},621,[3,31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -89913,14 +89877,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return staticFilters.achromatomaly; } }; -},623,[3,33,18,624]); +},622,[3,33,18,623]); __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; } -},624,[]); +},623,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90229,7 +90193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref }, props)); }); -},625,[3,4,16,623,626,179]); +},624,[3,4,16,622,625,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90254,7 +90218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref })); }); -},626,[3,4,16,627,628,179]); +},625,[3,4,16,626,627,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90264,7 +90228,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'); -},627,[3,183]); +},626,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90289,7 +90253,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."); } }; -},628,[18,3,629]); +},627,[18,3,628]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -90305,7 +90269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error(prefix); } -},629,[]); +},628,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -91299,7 +91263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},630,[3,22,4,270,224,33,7,6,631,660,639,665,666,667,668,587,671,434,438,673,815,1709]); +},629,[3,22,4,270,224,33,7,6,630,659,638,664,665,666,667,587,670,434,438,672,814,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91314,7 +91278,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })(this, function (CryptoJS) { return CryptoJS; }); -},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]); +},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,662,663]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91614,7 +91578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS; }); -},632,[]); +},631,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91678,7 +91642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS; }); -},633,[632]); +},632,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91729,7 +91693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.lib.WordArray; }); -},634,[632]); +},633,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91803,7 +91767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.enc.Utf16; }); -},635,[632]); +},634,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -91897,7 +91861,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.enc.Base64; }); -},636,[632]); +},635,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92082,7 +92046,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.MD5; }); -},637,[632]); +},636,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92173,7 +92137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA1; }); -},638,[632]); +},637,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92307,7 +92271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA256; }); -},639,[632]); +},638,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92343,7 +92307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA224; }); -},640,[632,639]); +},639,[631,638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92543,7 +92507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA512; }); -},641,[632,633]); +},640,[631,632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92580,7 +92544,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA384; }); -},642,[632,633,641]); +},641,[631,632,640]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92807,7 +92771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.SHA3; }); -},643,[632,633]); +},642,[631,632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -92985,7 +92949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RIPEMD160; }); -},644,[632]); +},643,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93054,7 +93018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); })(); }); -},645,[632]); +},644,[631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93127,7 +93091,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.PBKDF2; }); -},646,[632,638,645]); +},645,[631,637,644]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93192,7 +93156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.EvpKDF; }); -},647,[632,638,645]); +},646,[631,637,644]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93515,7 +93479,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }(); }); -},648,[632,647]); +},647,[631,646]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93570,7 +93534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CFB; }); -},649,[632,648]); +},648,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93612,7 +93576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CTR; }); -},650,[632,648]); +},649,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93703,7 +93667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.CTRGladman; }); -},651,[632,648]); +},650,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93743,7 +93707,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.OFB; }); -},652,[632,648]); +},651,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93773,7 +93737,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.mode.ECB; }); -},653,[632,648]); +},652,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93803,7 +93767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Ansix923; }); -},654,[632,648]); +},653,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93829,7 +93793,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Iso10126; }); -},655,[632,648]); +},654,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93854,7 +93818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.Iso97971; }); -},656,[632,648]); +},655,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93886,7 +93850,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.ZeroPadding; }); -},657,[632,648]); +},656,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93905,7 +93869,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return CryptoJS.pad.NoPadding; }); -},658,[632,648]); +},657,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -93940,7 +93904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.format.Hex; }); -},659,[632,648]); +},658,[631,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94110,7 +94074,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.AES; }); -},660,[632,636,637,647,648]); +},659,[631,635,636,646,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94780,7 +94744,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.TripleDES; }); -},661,[632,636,637,647,648]); +},660,[631,635,636,646,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94865,7 +94829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RC4; }); -},662,[632,636,637,647,648]); +},661,[631,635,636,646,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -94988,7 +94952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.Rabbit; }); -},663,[632,636,637,647,648]); +},662,[631,635,636,646,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -95106,7 +95070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return CryptoJS.RabbitLegacy; }); -},664,[632,636,637,647,648]); +},663,[631,635,636,646,647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95169,7 +95133,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},665,[3,6,7]); +},664,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95348,7 +95312,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},666,[3,6,7,438]); +},665,[3,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -95723,7 +95687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},667,[3,6,7,668,671,669]); +},666,[3,6,7,667,670,668]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96011,7 +95975,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},668,[3,6,7,665,666,669,670,438]); +},667,[3,6,7,664,665,668,669,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96155,7 +96119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},669,[3,6,7]); +},668,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96212,7 +96176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},670,[3,6,7]); +},669,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96590,7 +96554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},671,[3,6,7,666,668,587,672,438]); +},670,[3,6,7,665,667,587,671,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96724,7 +96688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},672,[3,6,7,438]); +},671,[3,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96865,7 +96829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return pages; } -},673,[674,438]); +},672,[673,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96909,7 +96873,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = Animated; -},674,[675,3,765,747,766]); +},673,[674,3,764,746,765]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -96996,7 +96960,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},675,[676,3,688,742,743,744,745,746,747]); +},674,[675,3,687,741,742,743,744,745,746]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97138,7 +97102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } configureProps(); -},676,[677]); +},675,[676]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97172,7 +97136,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; return _f; }(); @@ -97224,7 +97188,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; return _f; }(); @@ -97276,7 +97240,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; return _f; }(); } @@ -97301,7 +97265,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; return _f; }(); @@ -97369,7 +97333,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; return _f; }(); @@ -97459,7 +97423,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; return _f; }(); @@ -97492,7 +97456,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; return _f; }())(); } @@ -97528,7 +97492,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function jestResetJsReanimatedModule() { _NativeReanimated.default.jestResetModule(); } -},677,[3,678,18,684]); +},676,[3,677,18,683]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97546,7 +97510,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = exportedModule; -},678,[3,679,684,685]); +},677,[3,678,683,684]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97602,7 +97566,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = reanimatedJS; -},679,[3,33,680]); +},678,[3,33,679]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97782,7 +97746,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function unsubscribeFromKeyboardEvents(_) {} }]); }(_$$_REQUIRE(_dependencyMap[11]).NativeReanimated); -},680,[3,22,6,7,11,13,14,681,682,683,684,685]); +},679,[3,22,6,7,11,13,14,680,681,682,683,684]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97930,7 +97894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.mapper = mapper; this.children = children; }); -},681,[3,33,22,6,7]); +},680,[3,33,22,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -97998,7 +97962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); Mapper.MAPPER_ID = 1; -},682,[3,6,7,683]); +},681,[3,6,7,682]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98050,7 +98014,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); MutableValue.MUTABLE_ID = 1; -},683,[3,6,7]); +},682,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98082,7 +98046,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function nativeShouldBeMock() { return isJest() || isChromeDebugger(); } -},684,[18]); +},683,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98195,7 +98159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},685,[3,6,7,18,686]); +},684,[3,6,7,18,685]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98234,7 +98198,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."); } } -},686,[3,33,687]); +},685,[3,33,686]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "@react-native-community/bob": { @@ -98248,7 +98212,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "_args": [ [ "react-native-reanimated@2.17.0", - "/Users/ipaddev/sdk/3.17.05.rc" + "/Users/ipaddev/sdk/3.18.03.rc" ] ], "_from": "react-native-reanimated@2.17.0", @@ -98272,7 +98236,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.17.05.rc", + "_where": "/Users/ipaddev/sdk/3.18.03.rc", "author": { "name": "Krzysztof Magiera", "email": "krzys.magiera@gmail.com" @@ -98432,7 +98396,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "version": "2.17.0" } ; -},687,[]); +},686,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -98619,7 +98583,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.17.05.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; return _f; }())(); } @@ -99031,7 +98995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); }); } -},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]); +},687,[3,6,7,11,13,14,16,18,688,691,692,693,710,711,712,31,683,676,728,729,733,675,734,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99043,7 +99007,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); -},689,[3,690,18]); +},688,[3,689,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99064,7 +99028,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = exportedModule; -},690,[18,3,691,684]); +},689,[18,3,690,683]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99176,7 +99140,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return animateNextTransition; }() }; -},691,[3,270]); +},690,[3,270]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99341,7 +99305,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedEvent(argMapping, config) { return new AnimatedEvent(argMapping, config); } -},692,[3,6,7,11,13,14,18,690,693,694,31,710,709]); +},691,[3,6,7,11,13,14,18,689,692,693,31,709,708]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99612,7 +99576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},693,[3,6,7,690,18]); +},692,[3,6,7,689,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99675,7 +99639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_InternalAnimatedValue.default); -},694,[3,6,7,11,13,14,695,700,18,690,697,706,708]); +},693,[3,6,7,11,13,14,694,699,18,689,696,705,707]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99785,7 +99749,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return output; } -},695,[3,33,31,693,696,703,705]); +},694,[3,33,31,692,695,702,704]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99869,7 +99833,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[11]).createAnimatedCallFunc)(func, args, params); }; } -},696,[3,63,6,7,11,13,14,693,31,697,698,701]); +},695,[3,63,6,7,11,13,14,692,31,696,697,700]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -99879,7 +99843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function val(v) { return v && v.__getValue ? v.__getValue() : v || 0; } -},697,[]); +},696,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100005,7 +99969,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedParam() { return new AnimatedParam(); } -},698,[3,6,7,11,13,14,31,693,699,697]); +},697,[3,6,7,11,13,14,31,692,698,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100147,7 +100111,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_AnimatedNode2.default); -},699,[3,6,7,11,85,13,14,700,693,697]); +},698,[3,6,7,11,85,13,14,699,692,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100276,7 +100240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_AnimatedNode2.default); -},700,[3,6,7,11,85,13,14,693,690,31,697]); +},699,[3,6,7,11,85,13,14,692,689,31,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100374,7 +100338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[10]).adapt)(p); }), params); } -},701,[3,22,6,7,11,13,14,693,31,697,702]); +},700,[3,22,6,7,11,13,14,692,31,696,701]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100459,7 +100423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return adapt(node); })) : nodify(v); } -},702,[3,6,7,11,13,14,31,693,700,697]); +},701,[3,6,7,11,13,14,31,692,699,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100527,7 +100491,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'); -},703,[704]); +},702,[703]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100723,7 +100687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return new AnimatedOperator(name, args.map(_$$_REQUIRE(_dependencyMap[9]).adapt)); }; } -},704,[3,6,7,11,13,14,693,31,697,702]); +},703,[3,6,7,11,13,14,692,31,696,701]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100789,7 +100753,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)); } -},705,[3,6,7,11,13,14,31,693,697,702]); +},704,[3,6,7,11,13,14,31,692,696,701]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100824,7 +100788,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alwaysNode.__attach(); } } -},706,[3,700,705,707,708,709]); +},705,[3,699,704,706,707,708]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100917,7 +100881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedCall(args, func) { return new AnimatedCall(args, func); } -},707,[3,6,7,11,85,13,14,31,689,693,697]); +},706,[3,6,7,11,85,13,14,31,688,692,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -100981,7 +100945,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)); } -},708,[3,6,7,11,13,14,693,31,697,702]); +},707,[3,6,7,11,13,14,692,31,696,701]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101043,7 +101007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function createAnimatedAlways(item) { return new AnimatedAlways(item); } -},709,[3,6,7,11,13,14,693,31,697]); +},708,[3,6,7,11,13,14,692,31,696]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101111,7 +101075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return nodesMap; } -},710,[]); +},709,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101181,7 +101145,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},711,[3,6,7,678]); +},710,[3,6,7,677]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101204,7 +101168,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = setAndForwardRef; -},712,[]); +},711,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (0, _$$_REQUIRE(_dependencyMap[0]).runOnUI)(function () { var _f = function _f() { @@ -101291,10 +101255,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; return _f; }())(); -},713,[677,714,715,716]); +},712,[676,713,714,715]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101319,7 +101283,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; return _f; }(); } else { @@ -101342,7 +101306,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; return _f; }(); } @@ -101358,7 +101322,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = updateProps; -},714,[677,684,679,715]); +},713,[676,683,678,714]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -101382,7 +101346,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; return _f; }(); @@ -101416,7 +101380,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; return _f; }(); @@ -101450,7 +101414,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; return _f; }(); @@ -101469,7 +101433,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; return _f; }(); @@ -101491,7 +101455,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; return _f; }(); @@ -101504,7 +101468,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; return _f; }(); @@ -101526,7 +101490,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; return _f; }(); @@ -101548,7 +101512,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; return _f; }(); @@ -101774,7 +101738,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; return _f; }(); @@ -101786,7 +101750,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; return _f; }(); @@ -101798,7 +101762,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; return _f; }(); @@ -101810,7 +101774,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; return _f; }(); @@ -101822,7 +101786,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; return _f; }(); @@ -101850,7 +101814,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; return _f; }(); @@ -101901,7 +101865,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; return _f; }()); }; @@ -102357,10 +102321,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; return _f; }(); -},716,[717,714,715,718]); +},715,[716,713,714,717]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102409,7 +102373,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; return _f; }(); @@ -102562,7 +102526,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; return _f; }(); @@ -102585,7 +102549,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; return _f; }(); @@ -102605,7 +102569,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; return _f; }(); @@ -102617,7 +102581,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; return _f; }(); @@ -102639,7 +102603,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; return _f; }()); }; @@ -102649,10 +102613,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; return _f; }(); -},717,[3,678,715]); +},716,[3,677,714]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102736,7 +102700,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; return _f; }()); }; @@ -102750,10 +102714,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; return _f; }(); -},718,[717,719]); +},717,[716,718]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -102770,7 +102734,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; return _f; }(); @@ -102784,7 +102748,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; return _f; }(); @@ -102796,7 +102760,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; return _f; }(); @@ -102808,7 +102772,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; return _f; }(); @@ -102824,7 +102788,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; return _f; }(); }; @@ -102832,7 +102796,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; return _f; }(); @@ -102844,7 +102808,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; return _f; }(); @@ -102856,7 +102820,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; return _f; }(); @@ -102868,7 +102832,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; return _f; }(); @@ -102886,7 +102850,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; return _f; }(); }; @@ -102894,7 +102858,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; return _f; }(); @@ -102911,7 +102875,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; return _f; }(); }; @@ -102919,7 +102883,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; return _f; }(); @@ -102948,7 +102912,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; return _f; }(); @@ -102969,7 +102933,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; return _f; }() }; @@ -102980,7 +102944,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; return _f; }(); @@ -102994,7 +102958,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; return _f; }(); @@ -103006,7 +102970,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; return _f; }(); @@ -103022,7 +102986,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; return _f; }(); }; @@ -103030,7 +102994,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; return _f; }(); @@ -103050,7 +103014,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; return _f; }(); }; @@ -103058,7 +103022,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.17.05.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; return _f; }(); @@ -103118,7 +103082,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 2) { + buttonsContainerStyle.flexDirection = "column"; + buttonsContainerStyle.height = buttons.length * (styles.button.height + styles.button.margin * 2); + } + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: [styles.modal, { + backgroundColor: backgroundColor + }], + children: [title ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: [styles.title, { + color: color + }], + type: _fontText.Type.bold, + children: title + }) : null, message ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: [styles.text, { + color: color + }], + children: message + }) : null, buttons.length ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { + style: buttonsContainerStyle, + children: buttons.map(function (_ref, index) { + var _ref$Component = _ref.Component, + Component = _ref$Component === undefined ? null : _ref$Component, + text = _ref.text, + _onPress = _ref.onPress, + _ref$style = _ref.style, + style = _ref$style === undefined ? {} : _ref$style; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { + style: { + flexDirection: "row", + flex: 1 + }, + children: Component ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Component, { + backgroundColor: backgroundColor, + color: color + }) : (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { + style: [styles.button, { + borderColor: color + }, style], + onPress: function onPress() { + _onDismiss(); + + if (typeof _onPress === "function") { + _onPress(); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: [styles.buttonText, { + color: color + }], + type: _fontText.Type.bold, + children: text + }) + }, "ta_alert_button_" + index) + }, "ta_alert_button_container_" + index); + }) + }) : null] + }); + } + + TaAlert.propTypes = { + title: _propTypes.default.string, + message: _propTypes.default.string, + buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ + Component: _propTypes.default.any, + text: _propTypes.default.string, + onPress: _propTypes.default.func, + style: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object, _propTypes.default.number]) + })), + onDismiss: _propTypes.default.func + }; + TaAlert.defaultProps = { + title: "", + message: "", + buttons: [] + }; + + var _default = exports.default = TaAlert; +},815,[3,33,582,16,18,436,816,819,564,179]); +__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 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); + + var _excluded = ["type", "style", "onLayout", "children"]; + var TEXT_TRANSFORMS = ["uppercase", "lowercase", "capitalize", "none"]; + var DISPLAY_VALUES = ["flex", "none"]; + var Type = exports.Type = { + bold: "bold", + medium: "medium", + regular: "regular" + }; + + var applyDefaultStyle = function applyDefaultStyle(textStyle, type) { + var family = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontFamily", textStyle); + + var weight = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontWeight", textStyle); + + var defaultStyle = {}; + + if (!family) { + defaultStyle.fontFamily = "system font"; + } + + if (!weight) { + switch (type) { + case Type.bold: + defaultStyle.fontWeight = "bold"; + break; + + case Type.medium: + defaultStyle.fontWeight = "normal"; + break; + + default: + defaultStyle.fontWeight = "normal"; + } + } + + return defaultStyle; + }; + + var getTransformProps = function getTransformProps(children, style) { + var textTransform = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("textTransform", style, "none", true); + + var newChildren = children; + + if (textTransform === "upperFirst" && typeof children === "string") { + newChildren = newChildren.toLowerCase(); + newChildren = newChildren.charAt(0).toUpperCase() + newChildren.slice(1); + } else if (TEXT_TRANSFORMS.includes(textTransform)) { + style.push({ + textTransform: textTransform + }); + } + + var display = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("display", style, "", true); + + if (display) { + if (!DISPLAY_VALUES.includes(display)) { + display = "flex"; + } + + style.push({ + display: display + }); + } + + return { + children: newChildren, + style: style + }; + }; + + function FontText(props) { + var _useFonts = (0, _$$_REQUIRE(_dependencyMap[7]).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; + } + + return fontStyle; + }; + + var type = props.type, + style = props.style, + _onLayout = props.onLayout, + children = props.children, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + var fontStyle = _getFontStyle(type); + + var textStyle = [fontStyle]; + + if (style) { + if (Array.isArray(style)) { + textStyle.push.apply(textStyle, (0, _toConsumableArray2.default)(style)); + } else { + textStyle.push(style); + } + } + + textStyle.push(applyDefaultStyle(textStyle, type)); + var newProps = getTransformProps(children, textStyle); + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Text, Object.assign({ + onLayout: function onLayout(e) { + if (_onLayout) { + _onLayout(e, textStyle); + } + }, + allowFontScaling: allowFontScaling, + minimumFontScale: _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMinScale, + maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMaxScale + }, rest, newProps)); + } + + FontText.propTypes = { + type: _propTypes.default.oneOf(Object.values(Type)), + onLayout: _propTypes.default.func, + style: _propTypes.default.any, + children: _propTypes.default.any, + supportFontScaling: _propTypes.default.bool, + useDefaultFonts: _propTypes.default.bool + }; + FontText.defaultProps = { + type: Type.regular, + supportFontScaling: true, + useDefaultFonts: false + }; + + var _default = exports.default = FontText; +},816,[3,22,4,582,16,18,438,817,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FontContext = exports.DebugOperation = exports.DebugContext = undefined; + exports.addDebugOperation = addDebugOperation; + exports.resetDebugOperations = resetDebugOperations; + exports.setDebugOperationsEnabled = setDebugOperationsEnabled; + exports.setFonts = setFonts; + exports.useDebugContext = useDebugContext; + exports.useFonts = useFonts; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var FontContext = exports.FontContext = (0, _$$_REQUIRE(_dependencyMap[3]).createReactiveContext)({ + fontBold: undefined, + fontMedium: undefined, + fontRegular: undefined, + allowFontScaling: true + }); + + function useFonts() { + return (0, _$$_REQUIRE(_dependencyMap[3]).useReactiveContext)(FontContext).state; + } + + function setFonts() { + var fonts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + FontContext.set(fonts); + } + + var DebugOperation = exports.DebugOperation = function () { + function DebugOperation(prefix, text, type) { + (0, _classCallCheck2.default)(this, DebugOperation); + this.prefix = prefix; + this.text = text; + this.type = type || "startup"; + this.timestamp = new Date().getTime(); + } + + return (0, _createClass2.default)(DebugOperation, [{ + key: "getTimestamp", + value: function getTimestamp() { + return this.timestamp; + } + }, { + key: "getType", + value: function getType() { + return this.type; + } + }, { + key: "toString", + value: function toString() { + if (!this.text) { + return this.prefix; + } + + return this.prefix + " - " + this.text; + } + }]); + }(); + + var DebugContext = exports.DebugContext = (0, _$$_REQUIRE(_dependencyMap[3]).createReactiveContext)({ + enabled: false, + lastOperation: undefined + }); + + function useDebugContext() { + return (0, _$$_REQUIRE(_dependencyMap[3]).useReactiveContext)(DebugContext).state; + } + + function setDebugOperationsEnabled(enabled) { + global.enableDebugger = enabled; + DebugContext.set({ + enabled: enabled + }); + } + + function addDebugOperation(prefix, text, type) { + if (global.enableDebugger) { + try { + DebugContext.set({ + enabled: true, + lastOperation: new DebugOperation(prefix, text, type) + }); + } catch (e) {} + } + } + + function resetDebugOperations() { + DebugContext.set({ + lastOperation: undefined + }); + } +},817,[3,6,7,818]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + function _interopDefault(ex) { + return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; + } + + var React = _$$_REQUIRE(_dependencyMap[0]); + + var React__default = _interopDefault(React); + + var isEqual = _interopDefault(_$$_REQUIRE(_dependencyMap[1])); + + function _extends() { + _extends = Object.assign ? Object.assign.bind() : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + return _extends.apply(this, arguments); + } + + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + var Utils; + + (function (Utils) { + function equals(a, b) { + return isEqual(a, b); + } + + Utils.equals = equals; + })(Utils || (Utils = {})); + + var _excluded = ["value", "decorator"], + _excluded2 = ["children"]; + + var _decorator; + + function _decorateState(state, decorators) { + var decoratedState; + + if (typeof _decorator === "function") { + decoratedState = _decorator(state, decorators); + } + + return { + decoratedState: decoratedState, + state: state + }; + } + + function createReactiveContext(defaultValue, defaultDecorator) { + var Context = React.createContext(defaultValue); + var _subscribers = {}; + + var _updater; + + var _currentData; + + _decorator = defaultDecorator; + + function _clearSubscribers(ids) { + if (ids === undefined) { + ids = []; + } + + for (var i = 0; i < ids.length; i++) { + delete _subscribers[ids[i]]; + } + } + + function _callSubscribers(state) { + var idsToDelete = []; + var ids = Object.keys(_subscribers); + ids.forEach(function (id) { + var subscriber = _subscribers[id]; + + if (subscriber && typeof subscriber.callback === "function") { + subscriber.callback(_decorateState(state, subscriber.decorators)); + } else { + idsToDelete.push(id); + } + }); + return idsToDelete; + } + + var Provider = function Provider(_ref) { + var propValue = _ref.value, + decoratorProp = _ref.decorator, + rest = _objectWithoutPropertiesLoose(_ref, _excluded); + + var _useState = React.useState(defaultValue), + state = _useState[0], + setState = _useState[1]; + + React.useEffect(function () { + _currentData = state; + + _clearSubscribers(_callSubscribers(state)); + + _updater = function _updater(value) { + if (value === undefined) { + value = state; + } + + var newState; + + if (typeof value === "function") { + newState = value(state); + } else if (typeof value === "object" && !Array.isArray(value)) { + newState = _extends({}, state, value); + } else { + newState = value || state; + } + + if (!Utils.equals(newState, state)) { + setState(newState); + } + }; + }, [state]); + React.useEffect(function () { + _decorator = decoratorProp; + }, [decoratorProp]); + React.useEffect(function () { + _updater(propValue); + }, [propValue]); + return React__default.createElement(Context.Provider, Object.assign({ + value: state + }, rest)); + }; + + function Consumer(props) { + var children = props.children, + decorators = _objectWithoutPropertiesLoose(props, _excluded2); + + var state = React.useContext(Context); + return React__default.createElement(React__default.Fragment, null, children(_decorateState(state, decorators))); + } + + return _extends({ + "default": Context + }, Context, { + Provider: Provider, + Consumer: Consumer, + set: function set(value) { + if (typeof _updater === "function") { + _updater(value); + } + }, + get: function get(decorators) { + return _decorateState(_currentData, decorators); + }, + subscribe: function subscribe(callback, decorators) { + var id = "" + Math.random().toString(36).substr(2, 9); + _subscribers[id] = { + callback: callback, + decorators: decorators + }; + + if (typeof callback === "function") { + callback(_decorateState(_currentData, decorators)); + } + + return function () { + delete _subscribers[id]; + }; + }, + removeAllSubscribers: function removeAllSubscribers() { + return _clearSubscribers(Object.keys(_subscribers)); + } + }); + } + + function useReactiveContext(context, decorators) { + var _state = React.useContext(context["default"]); + + return _decorateState(_state, decorators); + } + + exports.createReactiveContext = createReactiveContext; + exports.useReactiveContext = useReactiveContext; +},818,[16,730]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Css = 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 RnCss = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _deviceUtils = _$$_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; } + + 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 _RnCss$default = RnCss.default, + Consumer = _RnCss$default.Consumer, + Provider = _RnCss$default.Provider; + + var getDeviceInfo = function getDeviceInfo() { + return { + isPortrait: _deviceUtils.default.isPortrait(), + isTablet: _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet(), + isDark: _deviceUtils.default.isDark() + }; + }; + + var CssProvider = function (_React$Component) { + function CssProvider() { + (0, _classCallCheck2.default)(this, CssProvider); + return _callSuper(this, CssProvider, arguments); + } + + (0, _inherits2.default)(CssProvider, _React$Component); + return (0, _createClass2.default)(CssProvider, [{ + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Provider, Object.assign({}, this.props)); + } + }]); + }(_react.default.Component); + + var Css = exports.Css = function (_React$Component2) { + function Css() { + (0, _classCallCheck2.default)(this, Css); + return _callSuper(this, Css, arguments); + } + + (0, _inherits2.default)(Css, _React$Component2); + return (0, _createClass2.default)(Css, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.onSizeChangeId = _$$_REQUIRE(_dependencyMap[13]).EventRegister.addEventListener(_events.default.ON_ORIENTATION_CHANGE, function () { + RnCss.default.set(Object.assign({}, getDeviceInfo())); + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.onSizeChangeId) { + _$$_REQUIRE(_dependencyMap[13]).EventRegister.rm(this.onSizeChangeId); + } + } + }, { + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Consumer, Object.assign({}, this.props)); + } + }], [{ + key: "flatten", + value: function flatten(styles, classes) { + var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return RnCss.CssHelper.flatten(styles, classes, attributes); + } + }, { + key: "getStyleByCssClasses", + value: function getStyleByCssClasses() { + var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return RnCss.CssHelper.getStyle(classes, attributes); + } + }, { + key: "getStyleObjByCssClasses", + value: function getStyleObjByCssClasses() { + var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return RnCss.CssHelper.getStyleObj(classes, attributes); + } + }, { + key: "getActiveTheme", + value: function getActiveTheme() { + return RnCss.CssHelper.getActiveThemeId(); + } + }, { + key: "getThemeInUse", + value: function getThemeInUse() { + return RnCss.CssHelper.getInUseThemeId(); + } + }, { + key: "getThemeClasses", + value: function getThemeClasses() { + var theme = Css.getThemeInUse(); + + if (!theme) { + return []; + } + + var themeClasses = Css.isDarkTheme() ? "isDarkTheme" : "isLightTheme"; + return [theme, themeClasses]; + } + }, { + key: "getThemes", + value: function getThemes() { + return RnCss.CssHelper.getThemes(); + } + }, { + key: "arrayToObject", + value: function arrayToObject(styles) { + return RnCss.CssHelper.arrayToObject(styles); + } + }, { + key: "applyCustomStyles", + value: function applyCustomStyles() { + var otherStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var merged = RnCss.CssHelper.mergeRnStyles((0, _$$_REQUIRE(_dependencyMap[14]).getDefaultStyles)(), otherStyles, (0, _$$_REQUIRE(_dependencyMap[15]).getDebugStyles)()); + var activeTheme = Css.getUserTheme() || RnCss.CssHelper.getDefaultTheme(merged); + RnCss.default.set(Object.assign({ + rnStyles: merged + }, getDeviceInfo(), { + activeTheme: activeTheme + })); + } + }, { + key: "updateCustomStyles", + value: function () { + var _updateCustomStyles = (0, _asyncToGenerator2.default)(function* (newTheme) { + var oldTheme = Css.getUserTheme(); + + if (newTheme !== oldTheme) { + yield global.getNewsmemoryConfig().setTheme(newTheme); + RnCss.default.set({ + activeTheme: newTheme + }); + return true; + } + + return false; + }); + + function updateCustomStyles(_x) { + return _updateCustomStyles.apply(this, arguments); + } + + return updateCustomStyles; + }() + }, { + key: "getUserTheme", + value: function getUserTheme() { + var _global$getNewsmemory = global.getNewsmemoryConfig(), + cssTheme = _global$getNewsmemory.cssTheme; + + return cssTheme; + } + }, { + key: "getDefaultBackgroundColor", + value: function getDefaultBackgroundColor() { + var _RnCss$CssHelper$getA = RnCss.CssHelper.getActiveBaseColors(), + background = _RnCss$CssHelper$getA.background; + + if (background) { + return background; + } + + return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.grey1010 : _$$_REQUIRE(_dependencyMap[11]).colors.white; + } + }, { + key: "getAlternateDefaultBackgroundColor", + value: function getAlternateDefaultBackgroundColor() { + var _RnCss$CssHelper$getA2 = RnCss.CssHelper.getActiveBaseColors(), + alternateBackground = _RnCss$CssHelper$getA2.alternateBackground; + + if (alternateBackground) { + return alternateBackground; + } + + return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.grey1200 : _$$_REQUIRE(_dependencyMap[11]).colors.grey200; + } + }, { + key: "getDefaultForegroundColor", + value: function getDefaultForegroundColor() { + var _RnCss$CssHelper$getA3 = RnCss.CssHelper.getActiveBaseColors(), + foreground = _RnCss$CssHelper$getA3.foreground; + + if (foreground) { + return foreground; + } + + return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.white_transparent_135 : _$$_REQUIRE(_dependencyMap[11]).colors.black; + } + }, { + key: "getDefaultSearchColor", + value: function getDefaultSearchColor() { + var _RnCss$CssHelper$getA4 = RnCss.CssHelper.getActiveBaseColors(), + search = _RnCss$CssHelper$getA4.search; + + if (search) { + return search; + } + + return _$$_REQUIRE(_dependencyMap[16]).SEARCH_COLOR; + } + }, { + key: "isDarkTheme", + value: function isDarkTheme() { + return RnCss.CssHelper.isActiveThemeDark(); + } + }, { + key: "isAutomaticTheme", + value: function isAutomaticTheme() { + return RnCss.CssHelper.isActiveThemeAutomatic(); + } + }, { + key: "resolvePlaceholders", + value: function resolvePlaceholders() { + var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return RnCss.CssHelper.resolvePlaceholders(style, params); + } + }]); + }(_react.default.Component); + + Css.Provider = CssProvider; + Css.use = RnCss.useCss; +},819,[3,270,6,7,11,13,14,820,16,436,434,438,179,564,826,828,827]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.CssHelper = undefined; + Object.defineProperty(exports, "useCss", { + enumerable: true, + get: function get() { + return _context.useCss; + } + }); + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _context = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["classes"], + _excluded2 = ["children"], + _excluded3 = ["style"]; + + 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 _extends() { + _extends = Object.assign ? Object.assign.bind() : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + return _extends.apply(this, arguments); + } + + function Provider(props) { + return _react.default.createElement(_context.default.Provider, _extends({}, props, { + decorator: function decorator(state, decorators) { + var _ref3 = decorators || {}, + classes = _ref3.classes, + attributes = (0, _objectWithoutProperties2.default)(_ref3, _excluded); + + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyleObj(state, classes, attributes); + } + })); + } + + function Consumer(_ref) { + var children = _ref.children, + props = (0, _objectWithoutProperties2.default)(_ref, _excluded2); + return _react.default.createElement(_context.default.Consumer, props, function (_ref2) { + var _ref2$decoratedState = _ref2.decoratedState, + decoratedStyle = _ref2$decoratedState === undefined ? {} : _ref2$decoratedState; + + if (!props.classes || !props.classes.length) { + return children; + } + + if (!Object.keys(decoratedStyle).length) { + return children; + } + + return _react.default.Children.map(children, function (element) { + if (element) { + var _element$props = element.props, + style = _element$props.style, + rest = (0, _objectWithoutProperties2.default)(_element$props, _excluded3); + var newStyle = []; + + if (Array.isArray(style)) { + newStyle = (0, _toConsumableArray2.default)(style); + } else if (style !== undefined) { + newStyle.push(style); + } + + newStyle.push(decoratedStyle); + return _react.default.cloneElement(element, Object.assign({}, rest, { + style: newStyle + })); + } + + return element; + }); + }); + } + + var Css = Object.assign({}, _context.default, { + Provider: Provider, + Consumer: Consumer + }); + var CssHelper = exports.CssHelper = { + arrayToObject: function arrayToObject() { + var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + return _$$_REQUIRE(_dependencyMap[5]).CssManager.arrayToObject(styles); + }, + flatten: function flatten() { + var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return _$$_REQUIRE(_dependencyMap[5]).CssManager.flatten(Css.get().state, styles, classes, attributes); + }, + getStyle: function getStyle() { + var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyle(Css.get().state, classes, attributes); + }, + getStyleObj: function getStyleObj() { + var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyleObj(Css.get().state, classes, attributes); + }, + getInUseThemeId: function getInUseThemeId() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getInUseThemeId(Css.get().state); + }, + getInUseTheme: function getInUseTheme() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getInUseTheme(Css.get().state); + }, + getActiveThemeId: function getActiveThemeId() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getActiveThemeId(Css.get().state); + }, + getThemes: function getThemes() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getThemes(Css.get().state); + }, + isActiveThemeDark: function isActiveThemeDark() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.isActiveThemeDark(Css.get().state); + }, + isActiveThemeAutomatic: function isActiveThemeAutomatic() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.isActiveThemeAutomatic(Css.get().state); + }, + getActiveBaseColors: function getActiveBaseColors() { + return _$$_REQUIRE(_dependencyMap[5]).CssManager.getActiveBaseColors(Css.get().state); + }, + mergeRnStyles: _$$_REQUIRE(_dependencyMap[6]).CssUtils.mergeRnStyles, + resolvePlaceholders: _$$_REQUIRE(_dependencyMap[6]).CssUtils.resolvePlaceholders, + getDefaultTheme: _$$_REQUIRE(_dependencyMap[6]).CssUtils.getDefaultTheme + }; + + var _default = exports.default = Css; +},820,[3,22,4,16,821,822,824]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + exports.useCss = useCss; + var CssContext = (0, _$$_REQUIRE(_dependencyMap[0]).createReactiveContext)({ + rnStyles: {} + }); + + function useCss(decorators) { + return (0, _$$_REQUIRE(_dependencyMap[0]).useReactiveContext)(CssContext, decorators); + } + + var _default = exports.default = CssContext; +},821,[818]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.CssManager = undefined; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _excluded = ["tablet", "phone", "ios", "android", "native", "web", "windows", "landscape", "portrait"]; + var CssManager; + + (function (_CssManager) { + function maxWidthCss() { + var css = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var mw = {}; + var rest = {}; + Object.keys(css).forEach(function (key) { + if (key.match(/mw[0-9]{2,}/)) { + mw[key] = css[key]; + } else { + rest[key] = css[key]; + } + }); + return { + mw: mw, + rest: rest + }; + } + + function traverseAndFlattenMaxWidthCss(state, mw) { + var wSize = state.window; + var mwStyle = {}; + + if (wSize && wSize.width) { + var constraints = []; + var mwKeys = Object.keys(mw); + + for (var i = 0; i < mwKeys.length; i++) { + var key = mwKeys[i]; + var constraint = parseInt(key.replace("mw", ""), 10); + + if (wSize.width < constraint) { + constraints.push("mw" + constraint); + } + } + + constraints.forEach(function (constraint) { + var style = traverseAndFlattenCss(state, mw[constraint]); + mwStyle = Object.assign({}, mwStyle, style); + }); + } + + return mwStyle; + } + + function traverseAndFlattenCss(state, css) { + if (css !== undefined) { + var tablet = css.tablet, + phone = css.phone, + ios = css.ios, + android = css.android, + native = css.native, + web = css.web, + windows = css.windows, + landscape = css.landscape, + portrait = css.portrait, + cssRest = (0, _objectWithoutProperties2.default)(css, _excluded); + + var _maxWidthCss = maxWidthCss(cssRest), + mw = _maxWidthCss.mw, + rest = _maxWidthCss.rest; + + var deviceStyle = {}; + + if (state.isTablet) { + deviceStyle = traverseAndFlattenCss(state, tablet); + } else { + deviceStyle = traverseAndFlattenCss(state, phone); + } + + var maxWidthStyle = {}; + + if ((0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { + maxWidthStyle = traverseAndFlattenMaxWidthCss(state, mw); + } + + var nativeStyle = {}; + + if (!(0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { + nativeStyle = traverseAndFlattenCss(state, native); + } + + var osStyle = {}; + + if ((0, _$$_REQUIRE(_dependencyMap[4]).isIOS)()) { + osStyle = traverseAndFlattenCss(state, ios); + } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isAndroid)()) { + osStyle = traverseAndFlattenCss(state, android); + } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { + osStyle = traverseAndFlattenCss(state, web); + } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isWindows)()) { + osStyle = traverseAndFlattenCss(state, windows); + } + + var orientationStyle = {}; + + if (state.isPortrait) { + orientationStyle = traverseAndFlattenCss(state, portrait); + } else { + orientationStyle = traverseAndFlattenCss(state, landscape); + } + + return Object.assign({}, rest, deviceStyle, maxWidthStyle, nativeStyle, osStyle, orientationStyle); + } + + return {}; + } + + function replaceColorPlaceholders(style, colors) { + var newStyle = _$$_REQUIRE(_dependencyMap[5]).CssUtils.resolvePlaceholders(style, colors); + + return newStyle; + } + + function arrayToObject(styles, ignoreKeys) { + return _$$_REQUIRE(_dependencyMap[6]).Utils.arrayToObject(styles, ignoreKeys); + } + + _CssManager.arrayToObject = arrayToObject; + + function getUserStyles(state) { + var rnStyles = state.rnStyles; + + if (!rnStyles) { + return {}; + } + + var themes = rnStyles.themes; + var themeInUse = getInUseThemeId(state); + + if (typeof themes === "object" && themeInUse !== undefined) { + return themes[themeInUse]; + } + + return undefined; + } + + function getActiveBaseColors() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var rnStyles = state.rnStyles; + + if (!rnStyles) { + return {}; + } + + var colors = []; + var base = rnStyles.base, + baseLight = rnStyles.baseLight, + baseDark = rnStyles.baseDark; + + if (base !== null && base !== undefined && base.colors) { + colors.push(traverseAndFlattenCss(state, base.colors)); + } + + var userStyles = getUserStyles(state); + + if ((userStyles === null || userStyles === undefined ? undefined : userStyles.dark) === 1) { + if (baseDark !== null && baseDark !== undefined && baseDark.colors) { + colors.push(traverseAndFlattenCss(state, baseDark.colors)); + } + } else if (baseLight !== null && baseLight !== undefined && baseLight.colors) { + colors.push(traverseAndFlattenCss(state, baseLight.colors)); + } + + if (userStyles !== null && userStyles !== undefined && userStyles.colors) { + colors.push(traverseAndFlattenCss(state, userStyles.colors)); + } + + return arrayToObject(colors); + } + + _CssManager.getActiveBaseColors = getActiveBaseColors; + + function getStyleByCssName(state, name) { + var rnStyles = state.rnStyles; + + if (!rnStyles || !name) { + return {}; + } + + var styles = []; + var base = rnStyles.base, + baseLight = rnStyles.baseLight, + baseDark = rnStyles.baseDark; + + if (base !== null && base !== undefined && base.styles) { + styles.push(traverseAndFlattenCss(state, base.styles[name])); + } + + var userStyles = getUserStyles(state); + + if ((userStyles === null || userStyles === undefined ? undefined : userStyles.dark) === 1) { + if (baseDark !== null && baseDark !== undefined && baseDark.styles) { + styles.push(traverseAndFlattenCss(state, baseDark.styles[name])); + } + } else if (baseLight !== null && baseLight !== undefined && baseLight.styles) { + styles.push(traverseAndFlattenCss(state, baseLight.styles[name])); + } + + if (userStyles !== null && userStyles !== undefined && userStyles.styles) { + styles.push(traverseAndFlattenCss(state, userStyles.styles[name])); + } + + return replaceColorPlaceholders(arrayToObject(styles), getActiveBaseColors(state)); + } + + function applyCustomClasses(props) { + var classes = props.classes, + toggle = props.toggle, + active = props.active, + cssKey = props.cssKey; + var newClasses = []; + + if (classes && classes.length) { + newClasses.push.apply(newClasses, (0, _toConsumableArray2.default)(classes)); + + if (toggle) { + for (var i = 0; i < classes.length; i++) { + if (active) { + newClasses.push(classes[i] + "-active"); + } else { + newClasses.push(classes[i] + "-inactive"); + } + } + } + + if (cssKey) { + var length = newClasses.length; + + for (var _i = 0; _i < length; _i++) { + newClasses.push(newClasses[_i] + "-" + cssKey); + } + } + } + + return newClasses; + } + + function getStylesByCssClasses(state, classes) { + var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var newClasses = applyCustomClasses(Object.assign({ + classes: classes + }, attributes)); + + if (Array.isArray(newClasses)) { + return newClasses.map(function (css) { + return getStyleByCssName(state, css); + }); + } + + return []; + } + + function flatten() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var classes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + return _reactNative.StyleSheet.flatten([].concat((0, _toConsumableArray2.default)(styles), [getStyle(state, classes, attributes)])); + } + + _CssManager.flatten = flatten; + + function getStyle() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var classes = arguments.length > 1 ? arguments[1] : undefined; + var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var ignoreKeys = attributes.ignoreKeys; + var styles = getStylesByCssClasses(state, classes, attributes); + return arrayToObject(styles, ignoreKeys); + } + + _CssManager.getStyle = getStyle; + + function getStyleObj() { + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var classes = arguments.length > 1 ? arguments[1] : undefined; + var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var ignoreKeys = attributes.ignoreKeys; + var styles = getStylesByCssClasses(context, classes, attributes); + return arrayToObject(styles, ignoreKeys); + } + + _CssManager.getStyleObj = getStyleObj; + + function getThemes() { + var _context$rnStyles; + + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return context !== null && context !== undefined && (_context$rnStyles = context.rnStyles) !== null && _context$rnStyles !== undefined && _context$rnStyles.themes ? Object.keys(context.rnStyles.themes).map(function (key) { + return Object.assign({}, context.rnStyles.themes[key], { + key: key + }); + }) : []; + } + + _CssManager.getThemes = getThemes; + + function isActiveThemeDark() { + var _getInUseTheme; + + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return ((_getInUseTheme = getInUseTheme(context)) === null || _getInUseTheme === undefined ? undefined : _getInUseTheme.dark) === 1; + } + + _CssManager.isActiveThemeDark = isActiveThemeDark; + + function isActiveThemeAutomatic() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + activeTheme = _ref.activeTheme; + + return activeTheme === "automatic"; + } + + _CssManager.isActiveThemeAutomatic = isActiveThemeAutomatic; + + function getInUseTheme() { + var _context$rnStyles2; + + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var id = getInUseThemeId(context); + return (_context$rnStyles2 = context.rnStyles) !== null && _context$rnStyles2 !== undefined && _context$rnStyles2.themes && id ? context.rnStyles.themes[id] : undefined; + } + + _CssManager.getInUseTheme = getInUseTheme; + + function getInUseThemeId() { + var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + _ref2$rnStyles = _ref2.rnStyles, + rnStyles = _ref2$rnStyles === undefined ? {} : _ref2$rnStyles, + isDark = _ref2.isDark, + activeTheme = _ref2.activeTheme; + + var themes = rnStyles.themes; + + if (typeof themes === "object") { + var validThemesKeys = Object.keys(themes).filter(function (key) { + return typeof themes[key] === "object"; + }); + + if (validThemesKeys.length > 0) { + if (!activeTheme) { + activeTheme = validThemesKeys.find(function (key) { + var _themes$key; + + return ((_themes$key = themes[key]) === null || _themes$key === undefined ? undefined : _themes$key.default) === 1; + }); + } + + if (activeTheme === "automatic") { + activeTheme = validThemesKeys.filter(function (key) { + var _themes$key2; + + return key !== "automatic" && ((_themes$key2 = themes[key]) === null || _themes$key2 === undefined ? undefined : _themes$key2.automatic) === 1; + }).find(function (key) { + var _themes$key3; + + var isThemeDark = ((_themes$key3 = themes[key]) === null || _themes$key3 === undefined ? undefined : _themes$key3.dark) === 1; + return isThemeDark === isDark; + }); + } + + if (!activeTheme) { + activeTheme = validThemesKeys[0]; + } + } + } + + return activeTheme; + } + + _CssManager.getInUseThemeId = getInUseThemeId; + + function getActiveThemeId() { + var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + _ref3$rnStyles = _ref3.rnStyles, + rnStyles = _ref3$rnStyles === undefined ? {} : _ref3$rnStyles, + activeTheme = _ref3.activeTheme; + + if (activeTheme) { + return activeTheme; + } + + return _$$_REQUIRE(_dependencyMap[5]).CssUtils.getDefaultTheme(rnStyles); + } + + _CssManager.getActiveThemeId = getActiveThemeId; + })(CssManager || (exports.CssManager = CssManager = {})); +},822,[3,22,4,18,823,824,825]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.dpToPx = dpToPx; + exports.fontScale = fontScale; + exports.isAndroid = isAndroid; + exports.isIOS = isIOS; + exports.isWeb = isWeb; + exports.isWindows = isWindows; + exports.os = os; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + function fontScale() { + return _reactNative.PixelRatio.getFontScale(); + } + + function os() { + return _reactNative.Platform.OS; + } + + function isAndroid() { + return _reactNative.Platform.OS === "android"; + } + + function isWeb() { + return _reactNative.Platform.OS === "web"; + } + + function isIOS() { + return _reactNative.Platform.OS === "ios" || _reactNative.Platform.OS === "macos"; + } + + function isWindows() { + return _reactNative.Platform.OS === "windows"; + } + + function dpToPx(size) { + return _reactNative.PixelRatio.roundToNearestPixel(size) * _reactNative.PixelRatio.get(); + } +},823,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.CssUtils = undefined; + var CssUtils; + + (function (_CssUtils) { + function filterAutomaticThemes() { + var defaultThemes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var customThemes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(customThemes)) { + var automaticCustomThemes = Object.keys(customThemes).filter(function (theme) { + return customThemes[theme].automatic === 1; + }); + + if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticCustomThemes)) { + var automaticLightTheme = automaticCustomThemes.filter(function (theme) { + return customThemes[theme].dark === 0; + }); + var automaticDarkTheme = automaticCustomThemes.filter(function (theme) { + return customThemes[theme].dark === 1; + }); + + if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticLightTheme)) { + Object.keys(defaultThemes).filter(function (theme) { + return defaultThemes[theme].automatic === 1 && defaultThemes[theme].dark === 0; + }).forEach(function (theme) { + return delete defaultThemes[theme]; + }); + } + + if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticDarkTheme)) { + Object.keys(defaultThemes).filter(function (theme) { + return defaultThemes[theme].automatic === 1 && defaultThemes[theme].dark === 1; + }).forEach(function (theme) { + return delete defaultThemes[theme]; + }); + } + } + + var defaultCustomTheme = Object.keys(customThemes).filter(function (theme) { + return customThemes[theme].default === 1; + }); + + if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(defaultCustomTheme)) { + Object.keys(defaultThemes).filter(function (theme) { + return defaultThemes[theme].default === 1; + }).forEach(function (theme) { + return delete defaultThemes[theme]; + }); + } + } + } + + function getDefaultTheme() { + var defaultStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var themes = defaultStyles.themes; + + if (typeof themes === "object") { + return Object.keys(themes).find(function (key) { + var _themes$key; + + return typeof themes[key] === "object" && ((_themes$key = themes[key]) === null || _themes$key === undefined ? undefined : _themes$key.default) === 1; + }); + } + + return undefined; + } + + _CssUtils.getDefaultTheme = getDefaultTheme; + + function mergeRnStyles(defaultStyles) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + return args.reduce(function (result, arg) { + filterAutomaticThemes(defaultStyles.themes, arg.themes); + return _$$_REQUIRE(_dependencyMap[0]).Utils.mergeObjects(result, arg); + }, defaultStyles); + } + + _CssUtils.mergeRnStyles = mergeRnStyles; + + function resolvePlaceholders() { + var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var paramKeys = Object.keys(params); + + if (paramKeys.length === 0) { + return style; + } + + return Object.keys(style).reduce(function (prev, key) { + var rule = style[key]; + + if (typeof rule !== "string" || !rule.match("{.+}")) { + prev[key] = rule; + return prev; + } + + var containsParam = paramKeys.some(function (paramKey) { + return rule.includes("{" + paramKey + "}"); + }); + + if (!containsParam) { + prev[key] = rule; + return prev; + } + + var singleValue = !!rule.match(/^\{[^{]+\}$/); + paramKeys.forEach(function (paramKey) { + rule = rule.replace(new RegExp("{" + paramKey + "}", "gm"), params[paramKey]); + }); + + if (singleValue) { + prev[key] = rule; + return prev; + } + + try { + prev[key] = eval(rule); + } catch (e) {} + + return prev; + }, {}); + } + + _CssUtils.resolvePlaceholders = resolvePlaceholders; + })(CssUtils || (exports.CssUtils = CssUtils = {})); +},824,[825]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Utils = undefined; + var Utils; + + (function (_Utils) { + function mergeObjects() { + var obj1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var obj2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var mergedObj = Object.assign({}, obj1); + Object.keys(obj2).forEach(function (key) { + if (obj2[key] !== undefined) { + if (Array.isArray(obj2[key]) && Array.isArray(obj1[key])) { + mergedObj[key] = obj2[key]; + } else if (typeof obj2[key] === "object" && typeof obj1[key] === "object") { + mergedObj[key] = mergeObjects(obj1[key], obj2[key]); + } else { + mergedObj[key] = obj2[key]; + } + } + }); + return mergedObj; + } + + _Utils.mergeObjects = mergeObjects; + + function isNull(a) { + return a === undefined || a === null; + } + + function isEmpty(a) { + if (!isNull(a)) { + if (typeof a === "string") { + return a.length === 0; + } + + if (Array.isArray(a)) { + return a.length === 0; + } + + if (typeof a === "object") { + return Object.keys(a).length === 0; + } + } + + return true; + } + + _Utils.isEmpty = isEmpty; + + function arrayToObject(array) { + var ignoreKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var obj = {}; + array.forEach(function (item) { + Object.keys(item).forEach(function (key) { + if (!ignoreKeys.includes(key)) { + obj[key] = item[key]; + } + }); + }); + return obj; + } + + _Utils.arrayToObject = arrayToObject; + })(Utils || (exports.Utils = Utils = {})); +},825,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getDefaultStyles = getDefaultStyles; + + function getDefaultStyles() { + return { + base: { + colors: { + foreground: _$$_REQUIRE(_dependencyMap[0]).colors.black, + background: _$$_REQUIRE(_dependencyMap[0]).colors.white, + alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey200, + search: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR + }, + styles: { + "newsmemory-article-container-splitscreen": { + borderColor: _$$_REQUIRE(_dependencyMap[0]).colors.articleContainerBorderColor, + landscape: { + borderLeftWidth: 1 + }, + portrait: { + borderTopWidth: 1 + } + }, + "newsmemory-thumbnail-download-icon-disabled": { + color: _$$_REQUIRE(_dependencyMap[0]).colors.md_grey_400 + }, + "drawer-item-icon-publications": { + tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.black, + width: 32.5, + height: 25 + }, + "newsmemory-article-header-icon-toggleArticleExtra": { + tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.white + }, + "newsmemory-article-mode-header-search": { + backgroundColor: "{search}" + }, + "newsmemory-index-accessibility-text": { + color: _$$_REQUIRE(_dependencyMap[0]).colors.md_blue_600 + } + } + }, + baseDark: { + colors: { + foreground: _$$_REQUIRE(_dependencyMap[0]).colors.white_transparent_135, + background: _$$_REQUIRE(_dependencyMap[0]).colors.grey1010, + alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey1200 + }, + styles: { + spinner: { + color: "{foreground}" + }, + "hint-progress-spinner": { + color: "{alternateBackground}" + }, + "hint-progress-spinner-text": { + color: "{alternateBackground}" + }, + "newsmemory-article-container": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-article-container-splitscreen": { + borderColor: "{foreground}" + }, + "newsmemory-index-item-image": { + borderColor: "{foreground}" + }, + "newsmemory-article-footer-separator": { + backgroundColor: "{foreground}" + }, + "newsmemory-article-header-separator": { + backgroundColor: "{foreground}" + }, + "newsmemory-article-mode-sub-header": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-article-mode-sub-header-info": { + color: "{foreground}" + }, + "newsmemory-article-mode-sub-header-section": { + color: "{foreground}" + }, + "newsmemory-article-refresh-control": { + backgroundColor: "{alternateBackground}", + color: "{foreground}" + }, + "newsmemory-article-text": { + backgroundColor: "{background}" + }, + "newsmemory-article-zoom-level-parent": { + backgroundColor: "{background}" + }, + "newsmemory-article-zoom-level-text": { + color: "{foreground}" + }, + "newsmemory-copyright-footer": { + backgroundColor: "{background}" + }, + "newsmemory-copyright-text": { + color: "{foreground}" + }, + "newsmemory-download-circle": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-download-circle-text": { + textShadowOffset: { + height: 0, + width: 0 + }, + textShadowRadius: 0, + color: "{foreground}" + }, + "newsmemory-footer": { + backgroundColor: "{alternateBackground}", + borderColor: "{foreground}" + }, + "newsmemory-footer-element-active": { + backgroundColor: "{foreground}" + }, + "newsmemory-footer-element-inactive": { + color: "{foreground}", + tintColor: "{foreground}" + }, + "newsmemory-footer-icon": { + color: "{foreground}", + tintColor: "{foreground}" + }, + "newsmemory-footer-icon-active": { + color: "{alternateBackground}", + tintColor: "{alternateBackground}" + }, + "newsmemory-footer-more-icon": { + color: "{foreground}", + tintColor: "{foreground}" + }, + "newsmemory-footer-more-menu": { + color: "{alternateBackground}" + }, + "newsmemory-footer-more-menu-text": { + color: "{foreground}" + }, + "newsmemory-footer-text": { + color: "{foreground}" + }, + "newsmemory-footer-text-active": { + color: "{alternateBackground}" + }, + "newsmemory-index-container": { + backgroundColor: "{background}" + }, + "newsmemory-index-first-level-page": { + color: "{foreground}" + }, + "newsmemory-index-first-level-section": { + color: "{foreground}" + }, + "newsmemory-index-second-level-text": { + color: "{foreground}" + }, + "newsmemory-index-second-level-bullet": { + color: "{foreground}" + }, + "newsmemory-index-second-level-page": { + color: "{foreground}" + }, + "newsmemory-index-second-level-title": { + color: "{foreground}" + }, + "newsmemory-index-text": { + color: "{foreground}" + }, + "newsmemory-navigation-text": { + color: "{foreground}" + }, + "newsmemory-navigation-text-parent": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-pages-container": { + backgroundColor: "{background}" + }, + "newsmemory-screen": { + backgroundColor: "{alternateBackground}", + color: "{foreground}" + }, + "newsmemory-article-mode-header-search": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-search": { + color: "{foreground}" + }, + "newsmemory-search-container": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-search-header-container": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-search-input": { + backgroundColor: "{background}", + borderColor: "{alternateBackground}", + color: "{foreground}" + }, + "newsmemory-search-list": { + backgroundColor: "{background}" + }, + "newsmemory-separator": { + backgroundColor: "{foreground}" + }, + "newsmemory-thumbnail-download-icon": { + color: "{foreground}" + }, + "newsmemory-thumbnails-container": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-thumbnails-page-text": { + backgroundColor: "{alternateBackground}", + color: "{foreground}" + }, + "newsmemory-thumbnails-page-text-selected": { + backgroundColor: _$$_REQUIRE(_dependencyMap[0]).colors.grey400, + color: "{alternateBackground}", + borderWidth: 1, + borderColor: "{alternateBackground}" + }, + "newsmemory-thumbnails-pages": { + borderColor: "{foreground}" + }, + "newsmemory-thumbnails-pages-selected": { + borderColor: "{alternateBackground}" + }, + "newsmemory-thumbnails-section-container": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-thumbnails-section-content": { + backgroundColor: "{background}" + }, + "newsmemory-thumbnails-section-text": { + color: "{foreground}" + }, + "system-newsmemory-navigation-bar": { + backgroundColor: "{alternateBackground}" + }, + "system-newsmemory-status-bar": { + backgroundColor: "{background}" + }, + optionspage: { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-search-close-icon": { + opacity: 0.6 + }, + "newsmemory-article-header-icon": { + opacity: 0.6, + src: "default" + }, + "newsmemory-index-header-icon": { + opacity: 0.6, + src: "default" + }, + "optionspage-specialsections-close-icon": { + opacity: 0.6 + }, + "rss-tab-item": { + backgroundColor: "{background}" + }, + "rss-tab-item-text-inactive": { + color: "{foreground}" + }, + "rss-content-parent": { + backgroundColor: "{alternateBackground}" + }, + "rss-content": { + backgroundColor: "{alternateBackground}" + }, + "rss-footer-element": { + backgroundColor: "{background}" + }, + "tile-title": { + color: "{foreground}" + }, + "tile-grid-image-title": { + color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 + }, + "tile-grid-title-epaper": { + color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 + }, + "tile-card-title-epaper": { + color: "{foreground}" + }, + "tile-summary": { + color: "{foreground}" + }, + "tile-header-text-part": { + color: "{foreground}" + }, + "tile-grid-image-header-text": { + color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 + }, + "tile-halfbox-text": { + color: "{foreground}" + }, + "article-pager": { + backgroundColor: "{alternateBackground}" + }, + "article-container": { + backgroundColor: "{alternateBackground}" + }, + "article-header": { + backgroundColor: "{alternateBackground}" + }, + "article-top-content": { + backgroundColor: "{alternateBackground}" + }, + "article-header-image-date": { + color: "{foreground}" + }, + "article-title": { + color: "{foreground}" + }, + "article-body": { + backgroundColor: "{alternateBackground}", + color: "{foreground}" + }, + "article-body-parent": { + backgroundColor: "{background}" + }, + "rss-drawer": { + backgroundColor: "{background}" + }, + "drawer-item-parent-inactive": { + backgroundColor: "{background}" + }, + "drawer-item-text-inactive": { + color: "{foreground}" + }, + "icon-gallery": { + tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 + }, + "settings-screen": { + backgroundColor: "{alternateBackground}" + }, + "newsmemory-article-caption": { + color: "{foreground}" + }, + "navigation-icon": { + color: "{foreground}" + }, + "rss-button": { + backgroundColor: "{background}" + }, + "rss-button-icon": { + color: "{foreground}" + }, + "epaper-logo-image": { + filters: [{ + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE + }, { + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT + }] + }, + "navigation-header-logo": { + filters: [{ + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE + }, { + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT + }] + }, + "drawer-header-logo": { + filters: [{ + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE + }, { + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT + }] + }, + "drawer-item-icon": { + filters: [{ + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE + }, { + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT + }], + image: "inherit" + } + } + }, + themes: { + default: { + automatic: 1, + dark: 0, + default: 1, + name: global.strings("theme_light"), + styles: {} + }, + darkTheme: { + automatic: 1, + dark: 1, + default: 0, + name: global.strings("theme_dark"), + styles: {} + }, + automatic: { + name: global.strings("theme_auto") + } + } + }; + } +},826,[438,827,619]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.TITLE_SIZE = exports.SUB_HEADER_HEIGHT = exports.SEARCH_TEXT_SIZE = exports.SEARCH_COLOR = exports.PAGE_SIZE = exports.LOGO_PARENT_HEIGHT = exports.LOGO_HEIGHT = exports.LIST_TITLE_SIZE = exports.LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_PADDING = exports.LIST_ITEM_HEIGHT = exports.INFO_SIZE = exports.HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_DURATION = exports.HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PADDING = exports.HEADER_HR_SIZE = exports.HEADER_HEIGHT = exports.HEADER_FONT_SIZE = exports.HEADER_BUTTON_SIZE = exports.HEADER_BG_COLOR = exports.FOOTER_FONT_SIZE = undefined; + var HEADER_HEIGHT = exports.HEADER_HEIGHT = 50; + var HEADER_PADDING = exports.HEADER_PADDING = 10; + var SUB_HEADER_HEIGHT = exports.SUB_HEADER_HEIGHT = 40; + + var HEADER_BG_COLOR = exports.HEADER_BG_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.black; + + var HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_SIZE = 45; + var HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PARENT_BUTTON_PADDING = 7.5; + var HEADER_BUTTON_SIZE = exports.HEADER_BUTTON_SIZE = 30; + var HEADER_HR_SIZE = exports.HEADER_HR_SIZE = 1; + var HEADER_FONT_SIZE = exports.HEADER_FONT_SIZE = 18; + var LOGO_PARENT_HEIGHT = exports.LOGO_PARENT_HEIGHT = 50; + var LOGO_HEIGHT = exports.LOGO_HEIGHT = "100%"; + var LIST_TITLE_SIZE = exports.LIST_TITLE_SIZE = 18; + var LIST_ITEM_HEIGHT = exports.LIST_ITEM_HEIGHT = 50; + var LIST_ITEM_PADDING = exports.LIST_ITEM_PADDING = 6; + var LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_HEIGHT = 0.5; + + var LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_SEPARATOR_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.grey300; + + var TITLE_SIZE = exports.TITLE_SIZE = 22; + var PAGE_SIZE = exports.PAGE_SIZE = 22; + var INFO_SIZE = exports.INFO_SIZE = 16; + var SEARCH_TEXT_SIZE = exports.SEARCH_TEXT_SIZE = 16; + + var SEARCH_COLOR = exports.SEARCH_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.md_red_400; + + var FOOTER_FONT_SIZE = exports.FOOTER_FONT_SIZE = 16; + var HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = 5000; + var HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_TIMER = 3000; + var HIDE_ANIMATION_DURATION = exports.HIDE_ANIMATION_DURATION = 1000; +},827,[438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getDebugStyles = getDebugStyles; + + function getDebugStyles() { + if (global.cssDebug) { + return {}; + } + + return {}; + } +},828,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _excluded = ["visible", "useNativeDriver", "onBackButtonPress", "onBackdropPress", "containerStyle"]; + + 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 styles = _reactNative.StyleSheet.create({ + container: { + position: "absolute", + top: 0, + bottom: 0, + start: 0, + right: 0, + justifyContent: "center", + alignItems: "center", + backgroundColor: _$$_REQUIRE(_dependencyMap[5]).colors.transparent600 + } + }); + + function JsModal(props) { + var visible = props.visible, + useNativeDriver = props.useNativeDriver, + onBackButtonPress = props.onBackButtonPress, + onBackdropPress = props.onBackdropPress, + containerStyle = props.containerStyle, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + if (!visible) { + return null; + } + + var deviceWidth = _reactNative.Dimensions.get("window").width; + + var opacityValue = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current; + var currentOpacityValue = (0, _react.useRef)(0); + var onTouch = (0, _react.useCallback)(function () { + if (typeof onBackdropPress === "function") { + onBackdropPress(); + } + }, []); + var onBackPress = (0, _react.useCallback)(function () { + if (typeof onBackButtonPress === "function") { + onBackButtonPress(); + } + }, []); + + var animate = function animate(destination) { + _reactNative.Animated.timing(opacityValue, { + toValue: destination, + duration: 300, + useNativeDriver: useNativeDriver + }).start(function (_ref) { + var finished = _ref.finished; + + if (finished) { + currentOpacityValue.current = destination; + } + }); + }; + + (0, _react.useEffect)(function () { + animate(currentOpacityValue.current === 0 ? 1 : 0); + + var backHandler = _reactNative.BackHandler.addEventListener("hardwareBackPress", onBackPress); + + return function () { + if (backHandler) { + backHandler.remove(); + } + }; + }, [visible]); + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Animated.View, Object.assign({ + style: [styles.container, { + opacity: opacityValue, + padding: deviceWidth * 0.05 + }, containerStyle], + onTouchEnd: onTouch + }, rest)); + } + + JsModal.propTypes = { + visible: _propTypes.default.bool, + useNativeDriver: _propTypes.default.bool, + onBackButtonPress: _propTypes.default.func, + onBackdropPress: _propTypes.default.func, + containerStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]) + }; + JsModal.defaultProps = { + visible: false, + useNativeDriver: true + }; + + var _default = exports.default = JsModal; +},829,[3,4,582,16,18,438,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.ModalStyle = undefined; + + var _slicedToArray2 = _$$_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 _reactNativeModal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _keyboardAvoidingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _modalFooter = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _excluded = ["visible", "onClose", "onCancel", "onConfirm", "onStateChange", "onHide", "hasFooter", "children", "supportedOrientations", "backgroundColor", "foregroundColor", "containerStyle", "style", "needsKeyboardOffsetCheck", "cancelable"]; + + 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 TIMING = 300; + + var styles = _reactNative.StyleSheet.create({ + modal: { + padding: 10, + justifyContent: "center", + alignItems: "center" + }, + container: { + padding: 10, + borderRadius: 20, + width: "100%", + maxWidth: 600, + backgroundColor: _$$_REQUIRE(_dependencyMap[10]).colors.white, + overflow: "hidden" + } + }); + + var TaModal = (0, _react.forwardRef)(function (props, ref) { + var visible = props.visible, + onClose = props.onClose, + onCancel = props.onCancel, + onConfirm = props.onConfirm, + onStateChange = props.onStateChange, + onHide = props.onHide, + hasFooter = props.hasFooter, + children = props.children, + supportedOrientations = props.supportedOrientations, + _props$backgroundColo = props.backgroundColor, + bgColor = _props$backgroundColo === undefined ? _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultBackgroundColor() : _props$backgroundColo, + foregroundColor = props.foregroundColor, + containerStyle = props.containerStyle, + style = props.style, + needsKeyboardOffsetCheck = props.needsKeyboardOffsetCheck, + cancelable = props.cancelable, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + var _DeviceUtils$getSafeA = _deviceUtils.default.getSafeAreaInsets(), + top = _DeviceUtils$getSafeA.top, + bottom = _DeviceUtils$getSafeA.bottom; + + var _DeviceUtils$getSafeA2 = _deviceUtils.default.getSafeArea(), + height = _DeviceUtils$getSafeA2.height; + + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + expanded = _useState2[0], + setExpanded = _useState2[1]; + + var _useState3 = (0, _react.useState)(top), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + keyboardVerticalOffset = _useState4[0], + setKeyboardVerticalOffset = _useState4[1]; + + var _useState5 = (0, _react.useState)(bgColor), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + backgroundColor = _useState6[0], + setBackgroundColor = _useState6[1]; + + var _expand = function _expand() { + return setExpanded(true); + }; + + var _collapse = function _collapse() { + return setExpanded(false); + }; + + var _consumeCallback = function _consumeCallback(callback) { + var consumed = typeof callback === "function" && callback(); + + if (!consumed) { + _collapse(); + } + }; + + var _onHide = function _onHide() { + return typeof onHide === "function" && onHide(); + }; + + var _onClose = function _onClose() { + return _consumeCallback(onClose); + }; + + var _onCancel = function _onCancel() { + return _consumeCallback(onCancel); + }; + + var _onConfirm = function _onConfirm() { + return _consumeCallback(onConfirm); + }; + + var otherProps = {}; + var keyboardProps = {}; + + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS()) { + if (needsKeyboardOffsetCheck) { + otherProps.onLayout = function (_ref) { + var nativeEvent = _ref.nativeEvent; + + if (nativeEvent.layout.height < height) { + setKeyboardVerticalOffset(keyboardVerticalOffset + (height - nativeEvent.layout.height) / 2); + } + }; + } + + keyboardProps.keyboardVerticalOffset = keyboardVerticalOffset; + } + + if (cancelable) { + otherProps.onBackdropPress = _onClose; + otherProps.onBackButtonPress = _onClose; + } + + (0, _react.useImperativeHandle)(ref, function () { + return { + expand: function expand() { + return _expand(); + }, + collapse: function collapse() { + return _collapse(); + } + }; + }); + (0, _react.useEffect)(function () { + setBackgroundColor(bgColor); + }, [bgColor]); + (0, _react.useEffect)(function () { + if (typeof onStateChange === "function") { + onStateChange(expanded); + } + }, [expanded]); + (0, _react.useEffect)(function () { + setExpanded(visible); + }, [visible]); + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNativeModal.default, Object.assign({ + isVisible: expanded, + animationInTiming: TIMING, + animationOutTiming: TIMING, + backdropTransitionInTiming: TIMING, + backdropTransitionOutTiming: TIMING, + supportedOrientations: supportedOrientations || ["portrait", "portrait-upside-down", "landscape"], + style: [styles.modal, style] + }, otherProps, _reactNative.Platform.select({ + ios: { + onDismiss: _onHide + }, + android: { + onModalHide: _onHide, + useNativeDriver: true, + useNativeDriverForBackdrop: true + } + }), rest, { + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_keyboardAvoidingComponent.default, Object.assign({ + style: [styles.container, { + marginTop: top, + marginBottom: bottom, + maxHeight: height, + backgroundColor: backgroundColor + }, containerStyle] + }, keyboardProps, { + nestedScrollEnabled: true, + children: [children, hasFooter ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_modalFooter.default, { + onCancel: _onCancel, + onConfirm: _onConfirm, + color: _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultForegroundColor(), + confirmColor: foregroundColor || global.getRssIndex().supportColor || _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultForegroundColor() + }) : null] + })) + })); + }); + TaModal.propTypes = { + children: _propTypes.default.any, + visible: _propTypes.default.bool, + hasFooter: _propTypes.default.bool, + onStateChange: _propTypes.default.func, + onHide: _propTypes.default.func, + onClose: _propTypes.default.func, + onCancel: _propTypes.default.func, + onConfirm: _propTypes.default.func, + backgroundColor: _propTypes.default.string, + foregroundColor: _propTypes.default.string, + supportedOrientations: _propTypes.default.arrayOf(_propTypes.default.string), + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), + containerStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), + needsKeyboardOffsetCheck: _propTypes.default.bool, + cancelable: _propTypes.default.bool + }; + TaModal.defaultProps = { + hasFooter: false, + visible: false, + needsKeyboardOffsetCheck: false, + cancelable: true + }; + var ModalStyle = exports.ModalStyle = styles; + + var _default = exports.default = TaModal; +},830,[3,33,4,582,16,18,831,434,856,857,438,819,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "ReactNativeModal", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0]).ReactNativeModal; + } + }); + exports.default = undefined; + + var _default = exports.default = _$$_REQUIRE(_dependencyMap[0]).ReactNativeModal; +},831,[832]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.ReactNativeModal = 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 React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var PropTypes = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + + var animatable = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _excluded = ["animationIn", "animationInTiming", "animationOut", "animationOutTiming", "avoidKeyboard", "coverScreen", "hasBackdrop", "backdropColor", "backdropOpacity", "backdropTransitionInTiming", "backdropTransitionOutTiming", "customBackdrop", "children", "isVisible", "onModalShow", "onBackButtonPress", "useNativeDriver", "propagateSwipe", "style"], + _excluded2 = ["testID"]; + + 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; })(); } + + (0, _$$_REQUIRE(_dependencyMap[12]).initializeAnimations)(); + var defaultProps = { + animationIn: 'slideInUp', + animationInTiming: 300, + animationOut: 'slideOutDown', + animationOutTiming: 300, + avoidKeyboard: false, + coverScreen: true, + hasBackdrop: true, + backdropColor: 'black', + backdropOpacity: 0.7, + backdropTransitionInTiming: 300, + backdropTransitionOutTiming: 300, + customBackdrop: null, + useNativeDriver: false, + deviceHeight: null, + deviceWidth: null, + hideModalContentWhileAnimating: false, + propagateSwipe: false, + isVisible: false, + panResponderThreshold: 4, + swipeThreshold: 100, + onModalShow: function onModalShow() { + return null; + }, + onModalWillShow: function onModalWillShow() { + return null; + }, + onModalHide: function onModalHide() { + return null; + }, + onModalWillHide: function onModalWillHide() { + return null; + }, + onBackdropPress: function onBackdropPress() { + return null; + }, + onBackButtonPress: function onBackButtonPress() { + return null; + }, + scrollTo: null, + scrollOffset: 0, + scrollOffsetMax: 0, + scrollHorizontal: false, + statusBarTranslucent: false, + supportedOrientations: ['portrait', 'landscape'] + }; + + var extractAnimationFromProps = function extractAnimationFromProps(props) { + return { + animationIn: props.animationIn, + animationOut: props.animationOut + }; + }; + + var ReactNativeModal = exports.ReactNativeModal = function (_React$Component) { + function ReactNativeModal(props) { + var _this; + + (0, _classCallCheck2.default)(this, ReactNativeModal); + _this = _callSuper(this, ReactNativeModal, [props]); + _this.state = { + showContent: true, + isVisible: false, + deviceWidth: _reactNative.Dimensions.get('window').width, + deviceHeight: _reactNative.Dimensions.get('window').height, + isSwipeable: !!_this.props.swipeDirection, + pan: null + }; + _this.isTransitioning = false; + _this.inSwipeClosingState = false; + _this.currentSwipingDirection = null; + _this.panResponder = null; + _this.didUpdateDimensionsEmitter = null; + _this.interactionHandle = null; + + _this.getDeviceHeight = function () { + return _this.props.deviceHeight || _this.state.deviceHeight; + }; + + _this.getDeviceWidth = function () { + return _this.props.deviceWidth || _this.state.deviceWidth; + }; + + _this.onBackButtonPress = function () { + if (_this.props.onBackButtonPress && _this.props.isVisible) { + _this.props.onBackButtonPress(); + + return true; + } + + return false; + }; + + _this.shouldPropagateSwipe = function (evt, gestureState) { + return typeof _this.props.propagateSwipe === 'function' ? _this.props.propagateSwipe(evt, gestureState) : _this.props.propagateSwipe; + }; + + _this.buildPanResponder = function () { + var animEvt = null; + _this.panResponder = _reactNative.PanResponder.create({ + onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(evt, gestureState) { + if (!_this.shouldPropagateSwipe(evt, gestureState)) { + var shouldSetPanResponder = Math.abs(gestureState.dx) >= _this.props.panResponderThreshold || Math.abs(gestureState.dy) >= _this.props.panResponderThreshold; + + if (shouldSetPanResponder && _this.props.onSwipeStart) { + _this.props.onSwipeStart(gestureState); + } + + _this.currentSwipingDirection = _this.getSwipingDirection(gestureState); + animEvt = _this.createAnimationEventForSwipe(); + return shouldSetPanResponder; + } + + return false; + }, + onStartShouldSetPanResponder: function onStartShouldSetPanResponder(e, gestureState) { + var hasScrollableView = e._dispatchInstances && e._dispatchInstances.some(function (instance) { + return /scrollview|flatlist/i.test(instance.type); + }); + + if (hasScrollableView && _this.shouldPropagateSwipe(e, gestureState) && _this.props.scrollTo && _this.props.scrollOffset > 0) { + return false; + } + + if (_this.props.onSwipeStart) { + _this.props.onSwipeStart(gestureState); + } + + _this.currentSwipingDirection = null; + return true; + }, + onPanResponderMove: function onPanResponderMove(evt, gestureState) { + if (!_this.currentSwipingDirection) { + if (gestureState.dx === 0 && gestureState.dy === 0) { + return; + } + + _this.currentSwipingDirection = _this.getSwipingDirection(gestureState); + animEvt = _this.createAnimationEventForSwipe(); + } + + if (_this.isSwipeDirectionAllowed(gestureState)) { + var newOpacityFactor = 1 - _this.calcDistancePercentage(gestureState); + + _this.backdropRef && _this.backdropRef.transitionTo({ + opacity: _this.props.backdropOpacity * newOpacityFactor + }); + animEvt(evt, gestureState); + + if (_this.props.onSwipeMove) { + _this.props.onSwipeMove(newOpacityFactor, gestureState); + } + } else { + if (_this.props.scrollTo) { + if (_this.props.scrollHorizontal) { + var offsetX = -gestureState.dx; + + if (offsetX > _this.props.scrollOffsetMax) { + offsetX -= (offsetX - _this.props.scrollOffsetMax) / 2; + } + + _this.props.scrollTo({ + x: offsetX, + animated: false + }); + } else { + var offsetY = -gestureState.dy; + + if (offsetY > _this.props.scrollOffsetMax) { + offsetY -= (offsetY - _this.props.scrollOffsetMax) / 2; + } + + _this.props.scrollTo({ + y: offsetY, + animated: false + }); + } + } + } + }, + onPanResponderRelease: function onPanResponderRelease(evt, gestureState) { + var accDistance = _this.getAccDistancePerDirection(gestureState); + + if (accDistance > _this.props.swipeThreshold && _this.isSwipeDirectionAllowed(gestureState)) { + if (_this.props.onSwipeComplete) { + _this.inSwipeClosingState = true; + + _this.props.onSwipeComplete({ + swipingDirection: _this.getSwipingDirection(gestureState) + }, gestureState); + + return; + } + + if (_this.props.onSwipe) { + _this.inSwipeClosingState = true; + + _this.props.onSwipe(); + + return; + } + } + + if (_this.props.onSwipeCancel) { + _this.props.onSwipeCancel(gestureState); + } + + if (_this.backdropRef) { + _this.backdropRef.transitionTo({ + opacity: _this.props.backdropOpacity + }); + } + + _reactNative.Animated.spring(_this.state.pan, { + toValue: { + x: 0, + y: 0 + }, + bounciness: 0, + useNativeDriver: false + }).start(); + + if (_this.props.scrollTo) { + if (_this.props.scrollOffset > _this.props.scrollOffsetMax) { + _this.props.scrollTo({ + y: _this.props.scrollOffsetMax, + animated: true + }); + } + } + } + }); + }; + + _this.getAccDistancePerDirection = function (gestureState) { + switch (_this.currentSwipingDirection) { + case 'up': + return -gestureState.dy; + + case 'down': + return gestureState.dy; + + case 'right': + return gestureState.dx; + + case 'left': + return -gestureState.dx; + + default: + return 0; + } + }; + + _this.getSwipingDirection = function (gestureState) { + if (Math.abs(gestureState.dx) > Math.abs(gestureState.dy)) { + return gestureState.dx > 0 ? 'right' : 'left'; + } + + return gestureState.dy > 0 ? 'down' : 'up'; + }; + + _this.calcDistancePercentage = function (gestureState) { + switch (_this.currentSwipingDirection) { + case 'down': + return (gestureState.moveY - gestureState.y0) / ((_this.props.deviceHeight || _this.state.deviceHeight) - gestureState.y0); + + case 'up': + return (0, _$$_REQUIRE(_dependencyMap[12]).reversePercentage)(gestureState.moveY / gestureState.y0); + + case 'left': + return (0, _$$_REQUIRE(_dependencyMap[12]).reversePercentage)(gestureState.moveX / gestureState.x0); + + case 'right': + return (gestureState.moveX - gestureState.x0) / ((_this.props.deviceWidth || _this.state.deviceWidth) - gestureState.x0); + + default: + return 0; + } + }; + + _this.createAnimationEventForSwipe = function () { + if (_this.currentSwipingDirection === 'right' || _this.currentSwipingDirection === 'left') { + return _reactNative.Animated.event([null, { + dx: _this.state.pan.x + }], { + useNativeDriver: false + }); + } else { + return _reactNative.Animated.event([null, { + dy: _this.state.pan.y + }], { + useNativeDriver: false + }); + } + }; + + _this.isDirectionIncluded = function (direction) { + return Array.isArray(_this.props.swipeDirection) ? _this.props.swipeDirection.includes(direction) : _this.props.swipeDirection === direction; + }; + + _this.isSwipeDirectionAllowed = function (_ref) { + var dy = _ref.dy, + dx = _ref.dx; + var draggedDown = dy > 0; + var draggedUp = dy < 0; + var draggedLeft = dx < 0; + var draggedRight = dx > 0; + + if (_this.currentSwipingDirection === 'up' && _this.isDirectionIncluded('up') && draggedUp) { + return true; + } else if (_this.currentSwipingDirection === 'down' && _this.isDirectionIncluded('down') && draggedDown) { + return true; + } else if (_this.currentSwipingDirection === 'right' && _this.isDirectionIncluded('right') && draggedRight) { + return true; + } else if (_this.currentSwipingDirection === 'left' && _this.isDirectionIncluded('left') && draggedLeft) { + return true; + } + + return false; + }; + + _this.handleDimensionsUpdate = function () { + if (!_this.props.deviceHeight && !_this.props.deviceWidth) { + var deviceWidth = _reactNative.Dimensions.get('window').width; + + var deviceHeight = _reactNative.Dimensions.get('window').height; + + if (deviceWidth !== _this.state.deviceWidth || deviceHeight !== _this.state.deviceHeight) { + _this.setState({ + deviceWidth: deviceWidth, + deviceHeight: deviceHeight + }); + } + } + }; + + _this.open = function () { + if (_this.isTransitioning) { + return; + } + + _this.isTransitioning = true; + + if (_this.backdropRef) { + _this.backdropRef.transitionTo({ + opacity: _this.props.backdropOpacity + }, _this.props.backdropTransitionInTiming); + } + + if (_this.state.isSwipeable) { + _this.state.pan.setValue({ + x: 0, + y: 0 + }); + } + + if (_this.contentRef) { + _this.props.onModalWillShow && _this.props.onModalWillShow(); + + if (_this.interactionHandle == null) { + _this.interactionHandle = _reactNative.InteractionManager.createInteractionHandle(); + } + + _this.contentRef.animate(_this.animationIn, _this.props.animationInTiming).then(function () { + _this.isTransitioning = false; + + if (_this.interactionHandle) { + _reactNative.InteractionManager.clearInteractionHandle(_this.interactionHandle); + + _this.interactionHandle = null; + } + + if (!_this.props.isVisible) { + _this.close(); + } else { + _this.props.onModalShow(); + } + }); + } + }; + + _this.close = function () { + if (_this.isTransitioning) { + return; + } + + _this.isTransitioning = true; + + if (_this.backdropRef) { + _this.backdropRef.transitionTo({ + opacity: 0 + }, _this.props.backdropTransitionOutTiming); + } + + var animationOut = _this.animationOut; + + if (_this.inSwipeClosingState) { + _this.inSwipeClosingState = false; + + if (_this.currentSwipingDirection === 'up') { + animationOut = 'slideOutUp'; + } else if (_this.currentSwipingDirection === 'down') { + animationOut = 'slideOutDown'; + } else if (_this.currentSwipingDirection === 'right') { + animationOut = 'slideOutRight'; + } else if (_this.currentSwipingDirection === 'left') { + animationOut = 'slideOutLeft'; + } + } + + if (_this.contentRef) { + _this.props.onModalWillHide && _this.props.onModalWillHide(); + + if (_this.interactionHandle == null) { + _this.interactionHandle = _reactNative.InteractionManager.createInteractionHandle(); + } + + _this.contentRef.animate(animationOut, _this.props.animationOutTiming).then(function () { + _this.isTransitioning = false; + + if (_this.interactionHandle) { + _reactNative.InteractionManager.clearInteractionHandle(_this.interactionHandle); + + _this.interactionHandle = null; + } + + if (_this.props.isVisible) { + _this.open(); + } else { + _this.setState({ + showContent: false + }, function () { + _this.setState({ + isVisible: false + }, function () { + _this.props.onModalHide(); + }); + }); + } + }); + } + }; + + _this.makeBackdrop = function () { + if (!_this.props.hasBackdrop) { + return null; + } + + if (_this.props.customBackdrop && !React.isValidElement(_this.props.customBackdrop)) { + console.warn('Invalid customBackdrop element passed to Modal. You must provide a valid React element.'); + } + + var _this$props = _this.props, + customBackdrop = _this$props.customBackdrop, + backdropColor = _this$props.backdropColor, + useNativeDriver = _this$props.useNativeDriver, + useNativeDriverForBackdrop = _this$props.useNativeDriverForBackdrop, + onBackdropPress = _this$props.onBackdropPress; + var hasCustomBackdrop = !!_this.props.customBackdrop; + var backdropComputedStyle = [{ + width: _this.getDeviceWidth(), + height: _this.getDeviceHeight(), + backgroundColor: _this.state.showContent && !hasCustomBackdrop ? backdropColor : 'transparent' + }]; + var backdropWrapper = React.createElement(animatable.View, { + ref: function ref(_ref2) { + return _this.backdropRef = _ref2; + }, + useNativeDriver: useNativeDriverForBackdrop !== undefined ? useNativeDriverForBackdrop : useNativeDriver, + style: [_modal.default.backdrop, backdropComputedStyle] + }, hasCustomBackdrop && customBackdrop); + + if (hasCustomBackdrop) { + return backdropWrapper; + } + + return React.createElement(_reactNative.TouchableWithoutFeedback, { + onPress: onBackdropPress + }, backdropWrapper); + }; + + var _buildAnimations = (0, _$$_REQUIRE(_dependencyMap[12]).buildAnimations)(extractAnimationFromProps(props)), + animationIn = _buildAnimations.animationIn, + animationOut = _buildAnimations.animationOut; + + _this.animationIn = animationIn; + _this.animationOut = animationOut; + + if (_this.state.isSwipeable) { + _this.state = Object.assign({}, _this.state, { + pan: new _reactNative.Animated.ValueXY() + }); + + _this.buildPanResponder(); + } + + if (props.isVisible) { + _this.state = Object.assign({}, _this.state, { + isVisible: true, + showContent: true + }); + } + + return _this; + } + + (0, _inherits2.default)(ReactNativeModal, _React$Component); + return (0, _createClass2.default)(ReactNativeModal, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.onSwipe) { + console.warn('`` is deprecated and will be removed starting from 13.0.0. Use `` instead.'); + } + + this.didUpdateDimensionsEmitter = _reactNative.DeviceEventEmitter.addListener('didUpdateDimensions', this.handleDimensionsUpdate); + + if (this.state.isVisible) { + this.open(); + } + + _reactNative.BackHandler.addEventListener('hardwareBackPress', this.onBackButtonPress); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _reactNative.BackHandler.removeEventListener('hardwareBackPress', this.onBackButtonPress); + + if (this.didUpdateDimensionsEmitter) { + this.didUpdateDimensionsEmitter.remove(); + } + + if (this.interactionHandle) { + _reactNative.InteractionManager.clearInteractionHandle(this.interactionHandle); + + this.interactionHandle = null; + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.animationIn !== prevProps.animationIn || this.props.animationOut !== prevProps.animationOut) { + var _buildAnimations2 = (0, _$$_REQUIRE(_dependencyMap[12]).buildAnimations)(extractAnimationFromProps(this.props)), + animationIn = _buildAnimations2.animationIn, + animationOut = _buildAnimations2.animationOut; + + this.animationIn = animationIn; + this.animationOut = animationOut; + } + + if (this.props.backdropOpacity !== prevProps.backdropOpacity && this.backdropRef) { + this.backdropRef.transitionTo({ + opacity: this.props.backdropOpacity + }, this.props.backdropTransitionInTiming); + } + + if (this.props.isVisible && !prevProps.isVisible) { + this.open(); + } else if (!this.props.isVisible && prevProps.isVisible) { + this.close(); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props2 = this.props, + animationIn = _this$props2.animationIn, + animationInTiming = _this$props2.animationInTiming, + animationOut = _this$props2.animationOut, + animationOutTiming = _this$props2.animationOutTiming, + avoidKeyboard = _this$props2.avoidKeyboard, + coverScreen = _this$props2.coverScreen, + hasBackdrop = _this$props2.hasBackdrop, + backdropColor = _this$props2.backdropColor, + backdropOpacity = _this$props2.backdropOpacity, + backdropTransitionInTiming = _this$props2.backdropTransitionInTiming, + backdropTransitionOutTiming = _this$props2.backdropTransitionOutTiming, + customBackdrop = _this$props2.customBackdrop, + children = _this$props2.children, + isVisible = _this$props2.isVisible, + onModalShow = _this$props2.onModalShow, + onBackButtonPress = _this$props2.onBackButtonPress, + useNativeDriver = _this$props2.useNativeDriver, + propagateSwipe = _this$props2.propagateSwipe, + style = _this$props2.style, + otherProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded); + var testID = otherProps.testID, + containerProps = (0, _objectWithoutProperties2.default)(otherProps, _excluded2); + var computedStyle = [{ + margin: this.getDeviceWidth() * 0.05, + transform: [{ + translateY: 0 + }] + }, _modal.default.content, style]; + var panHandlers = {}; + var panPosition = {}; + + if (this.state.isSwipeable) { + panHandlers = Object.assign({}, this.panResponder.panHandlers); + + if (useNativeDriver) { + panPosition = { + transform: this.state.pan.getTranslateTransform() + }; + } else { + panPosition = this.state.pan.getLayout(); + } + } + + var _children = this.props.hideModalContentWhileAnimating && this.props.useNativeDriver && !this.state.showContent ? React.createElement(animatable.View, null) : children; + + var containerView = React.createElement(animatable.View, Object.assign({}, panHandlers, { + ref: function ref(_ref3) { + return _this2.contentRef = _ref3; + }, + style: [panPosition, computedStyle], + pointerEvents: "box-none", + useNativeDriver: useNativeDriver + }, containerProps), _children); + + if (!coverScreen && this.state.isVisible) { + return React.createElement(_reactNative.View, { + pointerEvents: "box-none", + style: [_modal.default.backdrop, _modal.default.containerBox] + }, this.makeBackdrop(), containerView); + } + + return React.createElement(_reactNative.Modal, Object.assign({ + transparent: true, + animationType: 'none', + visible: this.state.isVisible, + onRequestClose: onBackButtonPress + }, otherProps), this.makeBackdrop(), avoidKeyboard ? React.createElement(_reactNative.KeyboardAvoidingView, { + behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : undefined, + pointerEvents: "box-none", + style: computedStyle.concat([{ + margin: 0 + }]) + }, containerView) : containerView); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, state) { + if (!state.isVisible && nextProps.isVisible) { + return { + isVisible: true, + showContent: true + }; + } + + return null; + } + }]); + }(React.Component); + + ReactNativeModal.propTypes = { + animationIn: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), + animationInTiming: PropTypes.number, + animationOut: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), + animationOutTiming: PropTypes.number, + avoidKeyboard: PropTypes.bool, + coverScreen: PropTypes.bool, + hasBackdrop: PropTypes.bool, + backdropColor: PropTypes.string, + backdropOpacity: PropTypes.number, + backdropTransitionInTiming: PropTypes.number, + backdropTransitionOutTiming: PropTypes.number, + customBackdrop: PropTypes.node, + children: PropTypes.node.isRequired, + deviceHeight: PropTypes.number, + deviceWidth: PropTypes.number, + isVisible: PropTypes.bool.isRequired, + hideModalContentWhileAnimating: PropTypes.bool, + propagateSwipe: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), + onModalShow: PropTypes.func, + onModalWillShow: PropTypes.func, + onModalHide: PropTypes.func, + onModalWillHide: PropTypes.func, + onBackButtonPress: PropTypes.func, + onBackdropPress: PropTypes.func, + panResponderThreshold: PropTypes.number, + onSwipeStart: PropTypes.func, + onSwipeMove: PropTypes.func, + onSwipeComplete: PropTypes.func, + onSwipeCancel: PropTypes.func, + swipeThreshold: PropTypes.number, + swipeDirection: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOf(['up', 'down', 'left', 'right'])), PropTypes.oneOf(['up', 'down', 'left', 'right'])]), + useNativeDriver: PropTypes.bool, + useNativeDriverForBackdrop: PropTypes.bool, + style: PropTypes.any, + scrollTo: PropTypes.func, + scrollOffset: PropTypes.number, + scrollOffsetMax: PropTypes.number, + scrollHorizontal: PropTypes.bool, + supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])) + }; + ReactNativeModal.defaultProps = defaultProps; + + var _default = exports.default = ReactNativeModal; +},832,[3,4,6,7,11,13,14,16,18,582,833,854,855]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createAnimatableComponent = exports.View = exports.Text = exports.Image = undefined; + Object.defineProperty(exports, "createAnimation", { + enumerable: true, + get: function get() { + return _createAnimation.default; + } + }); + Object.defineProperty(exports, "initializeRegistryWithDefinitions", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0]).initializeRegistryWithDefinitions; + } + }); + Object.defineProperty(exports, "registerAnimation", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0]).registerAnimation; + } + }); + + var _reactNative = _$$_REQUIRE(_dependencyMap[1]); + + var _createAnimatableComponent = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[3])); + + var ANIMATION_DEFINITIONS = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _createAnimation = _$$_REQUIRE(_dependencyMap[2])(_$$_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; } + + (0, _$$_REQUIRE(_dependencyMap[0]).initializeRegistryWithDefinitions)(ANIMATION_DEFINITIONS); + var createAnimatableComponent = exports.createAnimatableComponent = _createAnimatableComponent.default; + var View = exports.View = (0, _createAnimatableComponent.default)(_reactNative.View); + var Text = exports.Text = (0, _createAnimatableComponent.default)(_reactNative.Text); + var Image = exports.Image = (0, _createAnimatableComponent.default)(_reactNative.Image); +},833,[834,18,3,837,842,835]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getAnimationByName = getAnimationByName; + exports.getAnimationNames = getAnimationNames; + exports.initializeRegistryWithDefinitions = initializeRegistryWithDefinitions; + exports.registerAnimation = registerAnimation; + + var _createAnimation = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var animationRegistry = {}; + + function registerAnimation(animationName, animation) { + animationRegistry[animationName] = animation; + } + + function getAnimationByName(animationName) { + return animationRegistry[animationName]; + } + + function getAnimationNames() { + return Object.keys(animationRegistry); + } + + function initializeRegistryWithDefinitions(definitions) { + Object.keys(definitions).forEach(function (animationName) { + registerAnimation(animationName, (0, _createAnimation.default)(definitions[animationName])); + }); + } +},834,[3,835]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createAnimation; + + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function compareNumbers(a, b) { + return a - b; + } + + function notNull(value) { + return value !== null; + } + + function parsePosition(value) { + if (value === 'from') { + return 0; + } + + if (value === 'to') { + return 1; + } + + var parsed = parseFloat(value, 10); + + if (Number.isNaN(parsed) || parsed < 0 || parsed > 1) { + return null; + } + + return parsed; + } + + var cache = {}; + + function createAnimation(definition) { + var cacheKey = JSON.stringify(definition); + + if (cache[cacheKey]) { + return cache[cacheKey]; + } + + var positions = Object.keys(definition).map(parsePosition).filter(notNull); + positions.sort(compareNumbers); + + if (positions.length < 2) { + throw new Error('Animation definitions must have at least two values.'); + } + + var compiled = {}; + + if (definition.easing) { + compiled.easing = definition.easing; + } + + if (definition.style) { + compiled.style = definition.style; + } + + var _loop = function _loop() { + var position = positions[i]; + var keyframe = definition[position]; + + if (!keyframe) { + if (position === 0) { + keyframe = definition.from; + } else if (position === 1) { + keyframe = definition.to; + } + } + + if (!keyframe) { + throw new Error('Missing animation keyframe, this should not happen'); + } + + keyframe = (0, _flattenStyle.default)(keyframe); + Object.keys(keyframe).forEach(function (key) { + if (!(key in compiled)) { + compiled[key] = { + inputRange: [], + outputRange: [] + }; + } + + compiled[key].inputRange.push(position); + compiled[key].outputRange.push(keyframe[key]); + }); + }; + + for (var i = 0; i < positions.length; i += 1) { + _loop(); + } + + cache[cacheKey] = compiled; + return compiled; + } +},835,[3,836]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = flattenStyle; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + function flattenStyle(style) { + var flatStyle = Object.assign({}, _reactNative.StyleSheet.flatten(style)); + + if (flatStyle.transform) { + flatStyle.transform.forEach(function (transform) { + var key = Object.keys(transform)[0]; + flatStyle[key] = transform[key]; + }); + delete flatStyle.transform; + } + + return flatStyle; + } +},836,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = createAnimatableComponent; + + 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 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _wrapStyleTransforms = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _getStyleValues = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _createAnimation = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _easing = _$$_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); } + + 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 INTERPOLATION_STYLE_PROPERTIES = ['rotate', 'rotateX', 'rotateY', 'rotateZ', 'skewX', 'skewY', 'transformMatrix', 'backgroundColor', 'borderColor', 'borderTopColor', 'borderRightColor', 'borderBottomColor', 'borderLeftColor', 'shadowColor', 'color', 'textDecorationColor', 'tintColor']; + var ZERO_CLAMPED_STYLE_PROPERTIES = ['width', 'height']; + + function omit(keys, source) { + var filtered = {}; + Object.keys(source).forEach(function (key) { + if (keys.indexOf(key) === -1) { + filtered[key] = source[key]; + } + }); + return filtered; + } + + function deepEquals(a, b) { + return a === b || JSON.stringify(a) === JSON.stringify(b); + } + + function getAnimationTarget(iteration, direction) { + switch (direction) { + case 'reverse': + return 0; + + case 'alternate': + return iteration % 2 ? 0 : 1; + + case 'alternate-reverse': + return iteration % 2 ? 1 : 0; + + case 'normal': + default: + return 1; + } + } + + function getAnimationOrigin(iteration, direction) { + return getAnimationTarget(iteration, direction) ? 0 : 1; + } + + function getCompiledAnimation(animation) { + if (typeof animation === 'string') { + var compiledAnimation = (0, _$$_REQUIRE(_dependencyMap[14]).getAnimationByName)(animation); + + if (!compiledAnimation) { + throw new Error("No animation registred by the name of " + animation); + } + + return compiledAnimation; + } + + return (0, _createAnimation.default)(animation); + } + + function makeInterpolatedStyle(compiledAnimation, animationValue) { + var style = {}; + Object.keys(compiledAnimation).forEach(function (key) { + if (key === 'style') { + Object.assign(style, compiledAnimation.style); + } else if (key !== 'easing') { + style[key] = animationValue.interpolate(compiledAnimation[key]); + } + }); + return (0, _wrapStyleTransforms.default)(style); + } + + function transitionToValue(property, transitionValue, toValue, duration, easing) { + var useNativeDriver = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false; + var delay = arguments.length > 6 ? arguments[6] : undefined; + var onTransitionBegin = arguments.length > 7 ? arguments[7] : undefined; + var onTransitionEnd = arguments.length > 8 ? arguments[8] : undefined; + var animation = duration || easing || delay ? _reactNative.Animated.timing(transitionValue, { + toValue: toValue, + delay: delay, + duration: duration || 1000, + easing: typeof easing === 'function' ? easing : _easing.default[easing || 'ease'], + useNativeDriver: useNativeDriver + }) : _reactNative.Animated.spring(transitionValue, { + toValue: toValue, + useNativeDriver: useNativeDriver + }); + setTimeout(function () { + return onTransitionBegin(property); + }, delay); + animation.start(function () { + return onTransitionEnd(property); + }); + } + + function createAnimatableComponent(WrappedComponent) { + var _AnimatableComponent; + + var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; + + var Animatable = _reactNative.Animated.createAnimatedComponent(WrappedComponent); + + return _AnimatableComponent = function (_Component) { + function AnimatableComponent(props) { + var _this; + + (0, _classCallCheck2.default)(this, AnimatableComponent); + _this = _callSuper(this, AnimatableComponent, [props]); + _this.ref = null; + + _this.handleRef = function (ref) { + _this.ref = ref; + }; + + var animationValue = new _reactNative.Animated.Value(getAnimationOrigin(0, _this.props.direction)); + var animationStyle = {}; + var compiledAnimation = {}; + + if (props.animation) { + compiledAnimation = getCompiledAnimation(props.animation); + animationStyle = makeInterpolatedStyle(compiledAnimation, animationValue); + } + + _this.state = { + animationValue: animationValue, + animationStyle: animationStyle, + compiledAnimation: compiledAnimation, + transitionStyle: {}, + transitionValues: {}, + currentTransitionValues: {} + }; + + if (props.transition) { + _this.state = Object.assign({}, _this.state, _this.initializeTransitionState(props.transition)); + } + + _this.delayTimer = null; + (0, _$$_REQUIRE(_dependencyMap[14]).getAnimationNames)().forEach(function (animationName) { + if (!(animationName in _this)) { + _this[animationName] = _this.animate.bind(_this, animationName); + } + }); + return _this; + } + + (0, _inherits2.default)(AnimatableComponent, _Component); + return (0, _createClass2.default)(AnimatableComponent, [{ + key: "initializeTransitionState", + value: function initializeTransitionState(transitionKeys) { + var transitionValues = {}; + var styleValues = {}; + var currentTransitionValues = (0, _getStyleValues.default)(transitionKeys, this.props.style); + Object.keys(currentTransitionValues).forEach(function (key) { + var value = currentTransitionValues[key]; + + if (INTERPOLATION_STYLE_PROPERTIES.indexOf(key) !== -1 || typeof value !== 'number') { + transitionValues[key] = new _reactNative.Animated.Value(0); + styleValues[key] = value; + } else { + var animationValue = new _reactNative.Animated.Value(value); + transitionValues[key] = animationValue; + styleValues[key] = animationValue; + } + }); + return { + currentTransitionValues: currentTransitionValues, + transitionStyle: styleValues, + transitionValues: transitionValues + }; + } + }, { + key: "getTransitionState", + value: function getTransitionState(keys) { + var _this2 = this; + + var transitionKeys = typeof keys === 'string' ? [keys] : keys; + var _this$state = this.state, + transitionValues = _this$state.transitionValues, + currentTransitionValues = _this$state.currentTransitionValues, + transitionStyle = _this$state.transitionStyle; + var missingKeys = transitionKeys.filter(function (key) { + return !_this2.state.transitionValues[key]; + }); + + if (missingKeys.length) { + var transitionState = this.initializeTransitionState(missingKeys); + transitionValues = Object.assign({}, transitionValues, transitionState.transitionValues); + currentTransitionValues = Object.assign({}, currentTransitionValues, transitionState.currentTransitionValues); + transitionStyle = Object.assign({}, transitionStyle, transitionState.transitionStyle); + } + + return { + transitionValues: transitionValues, + currentTransitionValues: currentTransitionValues, + transitionStyle: transitionStyle + }; + } + }, { + key: "setNativeProps", + value: function setNativeProps(nativeProps) { + if (this.ref) { + this.ref.setNativeProps(nativeProps); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var _this3 = this; + + var _this$props = this.props, + animation = _this$props.animation, + duration = _this$props.duration, + delay = _this$props.delay, + onAnimationBegin = _this$props.onAnimationBegin, + iterationDelay = _this$props.iterationDelay; + + if (animation) { + var startAnimation = function startAnimation() { + onAnimationBegin(); + + _this3.startAnimation(duration, 0, iterationDelay, function (endState) { + return _this3.props.onAnimationEnd(endState); + }); + + _this3.delayTimer = null; + }; + + if (delay) { + this.delayTimer = setTimeout(startAnimation, delay); + } else { + startAnimation(); + } + } + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(props) { + var _this4 = this; + + var animation = props.animation, + delay = props.delay, + duration = props.duration, + easing = props.easing, + iterationDelay = props.iterationDelay, + transition = props.transition, + onAnimationBegin = props.onAnimationBegin; + + if (transition) { + var values = (0, _getStyleValues.default)(transition, props.style); + this.transitionTo(values, duration, easing, delay); + } else if (!deepEquals(animation, this.props.animation)) { + if (animation) { + if (this.delayTimer) { + this.setAnimation(animation); + } else { + onAnimationBegin(); + this.animate(animation, duration, iterationDelay).then(function (endState) { + return _this4.props.onAnimationEnd(endState); + }); + } + } else { + this.stopAnimation(); + } + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.delayTimer) { + clearTimeout(this.delayTimer); + } + } + }, { + key: "setAnimation", + value: function setAnimation(animation, callback) { + var compiledAnimation = getCompiledAnimation(animation); + this.setState(function (state) { + return { + animationStyle: makeInterpolatedStyle(compiledAnimation, state.animationValue), + compiledAnimation: compiledAnimation + }; + }, callback); + } + }, { + key: "animate", + value: function animate(animation, duration, iterationDelay) { + var _this5 = this; + + return new Promise(function (resolve) { + _this5.setAnimation(animation, function () { + _this5.startAnimation(duration, 0, iterationDelay, resolve); + }); + }); + } + }, { + key: "stopAnimation", + value: function stopAnimation() { + this.setState({ + scheduledAnimation: false, + animationStyle: {} + }); + this.state.animationValue.stopAnimation(); + + if (this.delayTimer) { + clearTimeout(this.delayTimer); + this.delayTimer = null; + } + } + }, { + key: "startAnimation", + value: function startAnimation(duration, iteration, iterationDelay, callback) { + var _this6 = this; + + var _this$state2 = this.state, + animationValue = _this$state2.animationValue, + compiledAnimation = _this$state2.compiledAnimation; + var _this$props2 = this.props, + direction = _this$props2.direction, + iterationCount = _this$props2.iterationCount, + useNativeDriver = _this$props2.useNativeDriver; + var easing = this.props.easing || compiledAnimation.easing || 'ease'; + var currentIteration = iteration || 0; + var fromValue = getAnimationOrigin(currentIteration, direction); + var toValue = getAnimationTarget(currentIteration, direction); + animationValue.setValue(fromValue); + + if (typeof easing === 'string') { + easing = _easing.default[easing]; + } + + var reversed = direction === 'reverse' || direction === 'alternate' && !toValue || direction === 'alternate-reverse' && !toValue; + + if (reversed) { + easing = _reactNative.Easing.out(easing); + } + + var config = { + toValue: toValue, + easing: easing, + isInteraction: iterationCount <= 1, + duration: duration || this.props.duration || 1000, + useNativeDriver: useNativeDriver, + delay: iterationDelay || 0 + }; + + _reactNative.Animated.timing(animationValue, config).start(function (endState) { + currentIteration += 1; + + if (endState.finished && _this6.props.animation && (iterationCount === 'infinite' || currentIteration < iterationCount)) { + _this6.startAnimation(duration, currentIteration, iterationDelay, callback); + } else if (callback) { + callback(endState); + } + }); + } + }, { + key: "transition", + value: function transition(fromValues, toValues, duration, easing) { + var _this7 = this; + + var fromValuesFlat = (0, _flattenStyle.default)(fromValues); + var toValuesFlat = (0, _flattenStyle.default)(toValues); + var transitionKeys = Object.keys(toValuesFlat); + + var _this$getTransitionSt = this.getTransitionState(transitionKeys), + transitionValues = _this$getTransitionSt.transitionValues, + currentTransitionValues = _this$getTransitionSt.currentTransitionValues, + transitionStyle = _this$getTransitionSt.transitionStyle; + + transitionKeys.forEach(function (property) { + var fromValue = fromValuesFlat[property]; + var toValue = toValuesFlat[property]; + var transitionValue = transitionValues[property]; + + if (!transitionValue) { + transitionValue = new _reactNative.Animated.Value(0); + } + + var needsInterpolation = INTERPOLATION_STYLE_PROPERTIES.indexOf(property) !== -1 || typeof value !== 'number'; + var needsZeroClamping = ZERO_CLAMPED_STYLE_PROPERTIES.indexOf(property) !== -1; + + if (needsInterpolation) { + transitionValue.setValue(0); + transitionStyle[property] = transitionValue.interpolate({ + inputRange: [0, 1], + outputRange: [fromValue, toValue] + }); + currentTransitionValues[property] = toValue; + toValuesFlat[property] = 1; + } else { + if (needsZeroClamping) { + transitionStyle[property] = transitionValue.interpolate({ + inputRange: [0, 1], + outputRange: [0, 1], + extrapolateLeft: 'clamp' + }); + currentTransitionValues[property] = toValue; + } else { + transitionStyle[property] = transitionValue; + } + + transitionValue.setValue(fromValue); + } + }); + this.setState({ + transitionValues: transitionValues, + transitionStyle: transitionStyle, + currentTransitionValues: currentTransitionValues + }, function () { + _this7.transitionToValues(toValuesFlat, duration || _this7.props.duration, easing, _this7.props.delay); + }); + } + }, { + key: "transitionTo", + value: function transitionTo(toValues, duration, easing, delay) { + var _this8 = this; + + var currentTransitionValues = this.state.currentTransitionValues; + var toValuesFlat = (0, _flattenStyle.default)(toValues); + var transitions = { + from: {}, + to: {} + }; + Object.keys(toValuesFlat).forEach(function (property) { + var toValue = toValuesFlat[property]; + var needsInterpolation = INTERPOLATION_STYLE_PROPERTIES.indexOf(property) !== -1 || typeof value !== 'number'; + var needsZeroClamping = ZERO_CLAMPED_STYLE_PROPERTIES.indexOf(property) !== -1; + var transitionStyle = _this8.state.transitionStyle[property]; + var transitionValue = _this8.state.transitionValues[property]; + + if (!needsInterpolation && !needsZeroClamping && transitionStyle && transitionStyle === transitionValue) { + transitionToValue(property, transitionValue, toValue, duration, easing, _this8.props.useNativeDriver, delay, function (prop) { + return _this8.props.onTransitionBegin(prop); + }, function (prop) { + return _this8.props.onTransitionEnd(prop); + }); + } else { + var currentTransitionValue = currentTransitionValues[property]; + + if (typeof currentTransitionValue === 'undefined' && _this8.props.style) { + var style = (0, _getStyleValues.default)(property, _this8.props.style); + currentTransitionValue = style[property]; + } + + transitions.from[property] = currentTransitionValue; + transitions.to[property] = toValue; + } + }); + + if (Object.keys(transitions.from).length) { + this.transition(transitions.from, transitions.to, duration, easing); + } + } + }, { + key: "transitionToValues", + value: function transitionToValues(toValues, duration, easing, delay) { + var _this9 = this; + + Object.keys(toValues).forEach(function (property) { + var transitionValue = _this9.state.transitionValues[property]; + var toValue = toValues[property]; + transitionToValue(property, transitionValue, toValue, duration, easing, _this9.props.useNativeDriver, delay, function (prop) { + return _this9.props.onTransitionBegin(prop); + }, function (prop) { + return _this9.props.onTransitionEnd(prop); + }); + }); + } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + style = _this$props3.style, + animation = _this$props3.animation, + transition = _this$props3.transition; + + if (animation && transition) { + throw new Error('You cannot combine animation and transition props'); + } + + var restProps = omit(['animation', 'duration', 'direction', 'delay', 'easing', 'iterationCount', 'iterationDelay', 'onAnimationBegin', 'onAnimationEnd', 'onTransitionBegin', 'onTransitionEnd', 'style', 'transition', 'useNativeDriver'], this.props); + return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(Animatable, Object.assign({ + ref: this.handleRef, + style: [style, this.state.animationStyle, (0, _wrapStyleTransforms.default)(this.state.transitionStyle)] + }, restProps)); + } + }]); + }(_react.Component), _AnimatableComponent.displayName = "withAnimatable(" + wrappedComponentName + ")", _AnimatableComponent.propTypes = { + animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]), + duration: _propTypes.default.number, + direction: _propTypes.default.oneOf(['normal', 'reverse', 'alternate', 'alternate-reverse']), + delay: _propTypes.default.number, + easing: _propTypes.default.oneOfType([_propTypes.default.oneOf(Object.keys(_easing.default)), _propTypes.default.func]), + iterationCount: function iterationCount(props, propName) { + var val = props[propName]; + + if (val !== 'infinite' && !(typeof val === 'number' && val >= 1)) { + return new Error('iterationCount must be a positive number or "infinite"'); + } + + return null; + }, + iterationDelay: _propTypes.default.number, + onAnimationBegin: _propTypes.default.func, + onAnimationEnd: _propTypes.default.func, + onTransitionBegin: _propTypes.default.func, + onTransitionEnd: _propTypes.default.func, + style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.object]), + transition: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]), + useNativeDriver: _propTypes.default.bool + }, _AnimatableComponent.defaultProps = { + animation: undefined, + delay: 0, + direction: 'normal', + duration: undefined, + easing: undefined, + iterationCount: 1, + iterationDelay: 0, + onAnimationBegin: function onAnimationBegin() {}, + onAnimationEnd: function onAnimationEnd() {}, + onTransitionBegin: function onTransitionBegin() {}, + onTransitionEnd: function onTransitionEnd() {}, + style: undefined, + transition: undefined, + useNativeDriver: false + }, _AnimatableComponent; + } +},837,[3,6,7,11,13,14,16,582,18,838,839,836,835,841,834,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = wrapStyleTransforms; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var TRANSFORM_STYLE_PROPERTIES = ['perspective', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'skewX', 'skewY', 'translateX', 'translateY']; + + function wrapStyleTransforms(style) { + var wrapped = {}; + Object.keys(style).forEach(function (key) { + if (TRANSFORM_STYLE_PROPERTIES.indexOf(key) !== -1) { + if (!wrapped.transform) { + wrapped.transform = []; + } + + wrapped.transform.push((0, _defineProperty2.default)({}, key, style[key])); + } else { + wrapped[key] = style[key]; + } + }); + return wrapped; + } +},838,[3,240]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getStyleValues; + + var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _getDefaultStyleValue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + function getStyleValues(keys, style) { + var values = {}; + var flatStyle = (0, _flattenStyle.default)(style); + (typeof keys === 'string' ? [keys] : keys).forEach(function (key) { + values[key] = key in flatStyle ? flatStyle[key] : (0, _getDefaultStyleValue.default)(key, flatStyle); + }); + return values; + } +},839,[3,836,840]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = getDefaultStyleValue; + var DIRECTIONAL_FALLBACKS = { + Top: ['Vertical', ''], + Bottom: ['Vertical', ''], + Vertical: [''], + Left: ['Horizontal', ''], + Right: ['Horizontal', ''], + Horizontal: [''] + }; + var DIRECTIONAL_SUFFICES = Object.keys(DIRECTIONAL_FALLBACKS); + + function getDefaultStyleValue(key, flatStyle) { + if (key === 'backgroundColor') { + return 'rgba(0,0,0,0)'; + } + + if (key === 'color' || key.indexOf('Color') !== -1) { + return 'rgba(0,0,0,1)'; + } + + if (key.indexOf('rotate') === 0 || key.indexOf('skew') === 0) { + return '0deg'; + } + + if (key === 'opacity' || key.indexOf('scale') === 0) { + return 1; + } + + if (key === 'fontSize') { + return 14; + } + + if (key.indexOf('margin') === 0 || key.indexOf('padding') === 0) { + for (var suffix, i = 0; i < DIRECTIONAL_SUFFICES.length; i++) { + suffix = DIRECTIONAL_SUFFICES[i]; + + if (key.substr(-suffix.length) === suffix) { + var prefix = key.substr(0, key.length - suffix.length); + var fallbacks = DIRECTIONAL_FALLBACKS[suffix]; + + for (var fallback, j = 0; j < fallbacks.length; j++) { + fallback = prefix + fallbacks[j]; + + if (fallback in flatStyle) { + return flatStyle[fallback]; + } + } + + break; + } + } + } + + return 0; + } +},840,[]); +__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 EASING_FUNCTIONS = { + linear: _reactNative.Easing.linear, + ease: _reactNative.Easing.bezier(0.25, 0.1, 0.25, 1), + 'ease-in': _reactNative.Easing.bezier(0.42, 0, 1, 1), + 'ease-out': _reactNative.Easing.bezier(0, 0, 0.58, 1), + 'ease-in-out': _reactNative.Easing.bezier(0.42, 0, 0.58, 1), + 'ease-in-cubic': _reactNative.Easing.bezier(0.55, 0.055, 0.675, 0.19), + 'ease-out-cubic': _reactNative.Easing.bezier(0.215, 0.61, 0.355, 1.0), + 'ease-in-out-cubic': _reactNative.Easing.bezier(0.645, 0.045, 0.355, 1.0), + 'ease-in-circ': _reactNative.Easing.bezier(0.6, 0.04, 0.98, 0.335), + 'ease-out-circ': _reactNative.Easing.bezier(0.075, 0.82, 0.165, 1.0), + 'ease-in-out-circ': _reactNative.Easing.bezier(0.785, 0.135, 0.15, 0.86), + 'ease-in-expo': _reactNative.Easing.bezier(0.95, 0.05, 0.795, 0.035), + 'ease-out-expo': _reactNative.Easing.bezier(0.19, 1.0, 0.22, 1.0), + 'ease-in-out-expo': _reactNative.Easing.bezier(1.0, 0.0, 0.0, 1.0), + 'ease-in-quad': _reactNative.Easing.bezier(0.55, 0.085, 0.68, 0.53), + 'ease-out-quad': _reactNative.Easing.bezier(0.25, 0.46, 0.45, 0.94), + 'ease-in-out-quad': _reactNative.Easing.bezier(0.455, 0.03, 0.515, 0.955), + 'ease-in-quart': _reactNative.Easing.bezier(0.895, 0.03, 0.685, 0.22), + 'ease-out-quart': _reactNative.Easing.bezier(0.165, 0.84, 0.44, 1.0), + 'ease-in-out-quart': _reactNative.Easing.bezier(0.77, 0.0, 0.175, 1.0), + 'ease-in-quint': _reactNative.Easing.bezier(0.755, 0.05, 0.855, 0.06), + 'ease-out-quint': _reactNative.Easing.bezier(0.23, 1.0, 0.32, 1.0), + 'ease-in-out-quint': _reactNative.Easing.bezier(0.86, 0.0, 0.07, 1.0), + 'ease-in-sine': _reactNative.Easing.bezier(0.47, 0.0, 0.745, 0.715), + 'ease-out-sine': _reactNative.Easing.bezier(0.39, 0.575, 0.565, 1.0), + 'ease-in-out-sine': _reactNative.Easing.bezier(0.445, 0.05, 0.55, 0.95), + 'ease-in-back': _reactNative.Easing.bezier(0.6, -0.28, 0.735, 0.045), + 'ease-out-back': _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1.275), + 'ease-in-out-back': _reactNative.Easing.bezier(0.68, -0.55, 0.265, 1.55) + }; + + var _default = exports.default = EASING_FUNCTIONS; +},841,[18]); +__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]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[1])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[1])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[2])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[2])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[3])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[3])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[4])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[4])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[4])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[5])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[5])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[5])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[6])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[6])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[6])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[7])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[7])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[7])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[8])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[8])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[8])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[9])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[9])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[9])[key]; + } + }); + }); + Object.keys(_$$_REQUIRE(_dependencyMap[10])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[10])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[10])[key]; + } + }); + }); +},842,[843,844,845,846,847,848,849,850,851,852,853]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.wobble = exports.tada = exports.swing = exports.shake = exports.rubberBand = exports.rotate = exports.pulse = exports.jello = exports.flash = exports.bounce = undefined; + var bounce = exports.bounce = { + 0: { + translateY: 0 + }, + 0.2: { + translateY: 0 + }, + 0.4: { + translateY: -30 + }, + 0.43: { + translateY: -30 + }, + 0.53: { + translateY: 0 + }, + 0.7: { + translateY: -15 + }, + 0.8: { + translateY: 0 + }, + 0.9: { + translateY: -4 + }, + 1: { + translateY: 0 + } + }; + var flash = exports.flash = { + 0: { + opacity: 1 + }, + 0.25: { + opacity: 0 + }, + 0.5: { + opacity: 1 + }, + 0.75: { + opacity: 0 + }, + 1: { + opacity: 1 + } + }; + var jello = exports.jello = { + 0: { + skewX: '0deg', + skewY: '0deg' + }, + 0.111: { + skewX: '0deg', + skewY: '0deg' + }, + 0.222: { + skewX: '-12.5deg', + skewY: '-12.5deg' + }, + 0.333: { + skewX: '6.25deg', + skewY: '6.25deg' + }, + 0.444: { + skewX: '-3.125deg', + skewY: '-3.125deg' + }, + 0.555: { + skewX: '1.5625deg', + skewY: '1.5625deg' + }, + 0.666: { + skewX: '-0.78125deg', + skewY: '-0.78125deg' + }, + 0.777: { + skewX: '0.390625deg', + skewY: '0.390625deg' + }, + 0.888: { + skewX: '-0.1953125deg', + skewY: '-0.1953125deg' + }, + 1: { + skewX: '0deg', + skewY: '0deg' + } + }; + var pulse = exports.pulse = { + 0: { + scale: 1 + }, + 0.5: { + scale: 1.05 + }, + 1: { + scale: 1 + } + }; + var rotate = exports.rotate = { + 0: { + rotate: '0deg' + }, + 0.25: { + rotate: '90deg' + }, + 0.5: { + rotate: '180deg' + }, + 0.75: { + rotate: '270deg' + }, + 1: { + rotate: '360deg' + } + }; + var shake = exports.shake = { + 0: { + translateX: 0 + }, + 0.1: { + translateX: -10 + }, + 0.2: { + translateX: 10 + }, + 0.3: { + translateX: -10 + }, + 0.4: { + translateX: 10 + }, + 0.5: { + translateX: -10 + }, + 0.6: { + translateX: 10 + }, + 0.7: { + translateX: -10 + }, + 0.8: { + translateX: 10 + }, + 0.9: { + translateX: -10 + }, + 1: { + translateX: 0 + } + }; + var swing = exports.swing = { + 0: { + rotate: '0deg' + }, + 0.2: { + rotate: '15deg' + }, + 0.4: { + rotate: '-10deg' + }, + 0.6: { + rotate: '5deg' + }, + 0.8: { + rotate: '-5deg' + }, + 1: { + rotate: '0deg' + } + }; + var rubberBand = exports.rubberBand = { + 0: { + scaleX: 1, + scaleY: 1 + }, + 0.3: { + scaleX: 1.25, + scaleY: 0.75 + }, + 0.4: { + scaleX: 0.75, + scaleY: 1.25 + }, + 0.5: { + scaleX: 1.15, + scaleY: 0.85 + }, + 0.65: { + scaleX: 0.95, + scaleY: 1.05 + }, + 0.75: { + scaleX: 1.05, + scaleY: 0.95 + }, + 1: { + scaleX: 1, + scaleY: 1 + } + }; + var tada = exports.tada = { + 0: { + scale: 1, + rotate: '0deg' + }, + 0.1: { + scale: 0.9, + rotate: '-3deg' + }, + 0.2: { + scale: 0.9, + rotate: '-3deg' + }, + 0.3: { + scale: 1.1, + rotate: '-3deg' + }, + 0.4: { + rotate: '3deg' + }, + 0.5: { + rotate: '-3deg' + }, + 0.6: { + rotate: '3deg' + }, + 0.7: { + rotate: '-3deg' + }, + 0.8: { + rotate: '3deg' + }, + 0.9: { + scale: 1.1, + rotate: '3deg' + }, + 1: { + scale: 1, + rotate: '0deg' + } + }; + var wobble = exports.wobble = { + 0: { + translateX: 0, + rotate: '0deg' + }, + 0.15: { + translateX: -25, + rotate: '-5deg' + }, + 0.3: { + translateX: 20, + rotate: '3deg' + }, + 0.45: { + translateX: -15, + rotate: '-3deg' + }, + 0.6: { + translateX: 10, + rotate: '2deg' + }, + 0.75: { + translateX: -5, + rotate: '-1deg' + }, + 1: { + translateX: 0, + rotate: '0deg' + } + }; +},843,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.bounceInUp = exports.bounceInRight = exports.bounceInLeft = exports.bounceInDown = exports.bounceIn = undefined; + var bounceIn = exports.bounceIn = { + 0: { + opacity: 0, + scale: 0.3 + }, + 0.2: { + scale: 1.1 + }, + 0.4: { + scale: 0.9 + }, + 0.6: { + opacity: 1, + scale: 1.03 + }, + 0.8: { + scale: 0.97 + }, + 1: { + opacity: 1, + scale: 1 + } + }; + var bounceInUp = exports.bounceInUp = { + 0: { + opacity: 0, + translateY: 800 + }, + 0.6: { + opacity: 1, + translateY: -25 + }, + 0.75: { + translateY: 10 + }, + 0.9: { + translateY: -5 + }, + 1: { + translateY: 0 + } + }; + var bounceInDown = exports.bounceInDown = { + 0: { + opacity: 0, + translateY: -800 + }, + 0.6: { + opacity: 1, + translateY: 25 + }, + 0.75: { + translateY: -10 + }, + 0.9: { + translateY: 5 + }, + 1: { + translateY: 0 + } + }; + var bounceInRight = exports.bounceInRight = { + 0: { + opacity: 0, + translateX: 600 + }, + 0.6: { + opacity: 1, + translateX: -20 + }, + 0.75: { + translateX: 8 + }, + 0.9: { + translateX: -4 + }, + 1: { + translateX: 0 + } + }; + var bounceInLeft = exports.bounceInLeft = { + 0: { + opacity: 0, + translateX: -600 + }, + 0.6: { + opacity: 1, + translateX: 20 + }, + 0.75: { + translateX: -8 + }, + 0.9: { + translateX: 4 + }, + 1: { + translateX: 0 + } + }; +},844,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.bounceOutUp = exports.bounceOutRight = exports.bounceOutLeft = exports.bounceOutDown = exports.bounceOut = undefined; + var bounceOut = exports.bounceOut = { + 0: { + opacity: 1, + scale: 1 + }, + 0.2: { + scale: 0.9 + }, + 0.5: { + opacity: 1, + scale: 1.11 + }, + 0.55: { + scale: 1.11 + }, + 1: { + opacity: 0, + scale: 0.3 + } + }; + var bounceOutUp = exports.bounceOutUp = { + 0: { + opacity: 1, + translateY: 0 + }, + 0.2: { + opacity: 1, + translateY: -10 + }, + 0.4: { + translateY: 20 + }, + 0.45: { + translateY: 20 + }, + 0.55: { + opacity: 1 + }, + 1: { + opacity: 0, + translateY: -800 + } + }; + var bounceOutDown = exports.bounceOutDown = { + 0: { + opacity: 1, + translateY: 0 + }, + 0.2: { + opacity: 1, + translateY: 10 + }, + 0.4: { + translateY: -20 + }, + 0.45: { + translateY: -20 + }, + 0.55: { + opacity: 1 + }, + 1: { + opacity: 0, + translateY: 800 + } + }; + var bounceOutRight = exports.bounceOutRight = { + 0: { + opacity: 1, + translateX: 0 + }, + 0.2: { + opacity: 1, + translateX: 10 + }, + 0.4: { + translateX: -20 + }, + 0.45: { + translateX: -20 + }, + 0.55: { + opacity: 1 + }, + 1: { + opacity: 0, + translateX: 600 + } + }; + var bounceOutLeft = exports.bounceOutLeft = { + 0: { + opacity: 1, + translateX: 0 + }, + 0.2: { + opacity: 1, + translateX: -10 + }, + 0.4: { + translateX: 20 + }, + 0.45: { + translateX: 20 + }, + 0.55: { + opacity: 1 + }, + 1: { + opacity: 0, + translateX: -600 + } + }; +},845,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.fadeInUpBig = exports.fadeInUp = exports.fadeInRightBig = exports.fadeInRight = exports.fadeInLeftBig = exports.fadeInLeft = exports.fadeInDownBig = exports.fadeInDown = exports.fadeIn = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function makeFadeInTranslation(translationType, fromValue) { + return { + from: (0, _defineProperty2.default)({ + opacity: 0 + }, translationType, fromValue), + to: (0, _defineProperty2.default)({ + opacity: 1 + }, translationType, 0) + }; + } + + var fadeIn = exports.fadeIn = { + from: { + opacity: 0 + }, + to: { + opacity: 1 + } + }; + var fadeInDown = exports.fadeInDown = makeFadeInTranslation('translateY', -100); + var fadeInUp = exports.fadeInUp = makeFadeInTranslation('translateY', 100); + var fadeInLeft = exports.fadeInLeft = makeFadeInTranslation('translateX', -100); + var fadeInRight = exports.fadeInRight = makeFadeInTranslation('translateX', 100); + var fadeInDownBig = exports.fadeInDownBig = makeFadeInTranslation('translateY', -500); + var fadeInUpBig = exports.fadeInUpBig = makeFadeInTranslation('translateY', 500); + var fadeInLeftBig = exports.fadeInLeftBig = makeFadeInTranslation('translateX', -500); + var fadeInRightBig = exports.fadeInRightBig = makeFadeInTranslation('translateX', 500); +},846,[3,240]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.fadeOutUpBig = exports.fadeOutUp = exports.fadeOutRightBig = exports.fadeOutRight = exports.fadeOutLeftBig = exports.fadeOutLeft = exports.fadeOutDownBig = exports.fadeOutDown = exports.fadeOut = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function makeFadeOutTranslation(translationType, toValue) { + return { + from: (0, _defineProperty2.default)({ + opacity: 1 + }, translationType, 0), + to: (0, _defineProperty2.default)({ + opacity: 0 + }, translationType, toValue) + }; + } + + var fadeOut = exports.fadeOut = { + from: { + opacity: 1 + }, + to: { + opacity: 0 + } + }; + var fadeOutDown = exports.fadeOutDown = makeFadeOutTranslation('translateY', 100); + var fadeOutUp = exports.fadeOutUp = makeFadeOutTranslation('translateY', -100); + var fadeOutLeft = exports.fadeOutLeft = makeFadeOutTranslation('translateX', -100); + var fadeOutRight = exports.fadeOutRight = makeFadeOutTranslation('translateX', 100); + var fadeOutDownBig = exports.fadeOutDownBig = makeFadeOutTranslation('translateY', 500); + var fadeOutUpBig = exports.fadeOutUpBig = makeFadeOutTranslation('translateY', -500); + var fadeOutLeftBig = exports.fadeOutLeftBig = makeFadeOutTranslation('translateX', -500); + var fadeOutRightBig = exports.fadeOutRightBig = makeFadeOutTranslation('translateX', 500); +},847,[3,240]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.flipOutY = exports.flipOutX = exports.flipInY = exports.flipInX = undefined; + var flipInX = exports.flipInX = { + easing: 'ease-in', + style: { + backfaceVisibility: 'visible', + perspective: 400 + }, + 0: { + opacity: 0, + rotateX: '90deg' + }, + 0.4: { + rotateX: '-20deg' + }, + 0.6: { + opacity: 1, + rotateX: '10deg' + }, + 0.8: { + rotateX: '-5deg' + }, + 1: { + opacity: 1, + rotateX: '0deg' + } + }; + var flipInY = exports.flipInY = { + easing: 'ease-in', + style: { + backfaceVisibility: 'visible', + perspective: 400 + }, + 0: { + opacity: 0, + rotateY: '90deg' + }, + 0.4: { + rotateY: '-20deg' + }, + 0.6: { + opacity: 1, + rotateY: '10deg' + }, + 0.8: { + rotateY: '-5deg' + }, + 1: { + opacity: 1, + rotateY: '0deg' + } + }; + var flipOutX = exports.flipOutX = { + style: { + backfaceVisibility: 'visible', + perspective: 400 + }, + 0: { + opacity: 1, + rotateX: '0deg' + }, + 0.3: { + opacity: 1, + rotateX: '-20deg' + }, + 1: { + opacity: 0, + rotateX: '90deg' + } + }; + var flipOutY = exports.flipOutY = { + style: { + backfaceVisibility: 'visible', + perspective: 400 + }, + 0: { + opacity: 1, + rotateY: '0deg' + }, + 0.3: { + opacity: 1, + rotateY: '-20deg' + }, + 1: { + opacity: 0, + rotateY: '90deg' + } + }; +},848,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.lightSpeedOut = exports.lightSpeedIn = undefined; + var lightSpeedIn = exports.lightSpeedIn = { + easing: 'ease-out', + 0: { + opacity: 0, + translateX: 200, + skewX: '-30deg' + }, + 0.6: { + opacity: 1, + translateX: 0, + skewX: '20deg' + }, + 0.8: { + skewX: '-5deg' + }, + 1: { + opacity: 1, + translateX: 0, + skewX: '0deg' + } + }; + var lightSpeedOut = exports.lightSpeedOut = { + easing: 'ease-in', + 0: { + opacity: 1, + translateX: 0, + skewX: '0deg' + }, + 1: { + opacity: 0, + translateX: 200, + skewX: '30deg' + } + }; +},849,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.slideInUp = exports.slideInRight = exports.slideInLeft = exports.slideInDown = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function makeSlideInTranslation(translationType, fromValue) { + return { + from: (0, _defineProperty2.default)({}, translationType, fromValue), + to: (0, _defineProperty2.default)({}, translationType, 0) + }; + } + + var slideInDown = exports.slideInDown = makeSlideInTranslation('translateY', -100); + var slideInUp = exports.slideInUp = makeSlideInTranslation('translateY', 100); + var slideInLeft = exports.slideInLeft = makeSlideInTranslation('translateX', -100); + var slideInRight = exports.slideInRight = makeSlideInTranslation('translateX', 100); +},850,[3,240]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.slideOutUp = exports.slideOutRight = exports.slideOutLeft = exports.slideOutDown = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function makeSlideOutTranslation(translationType, fromValue) { + return { + from: (0, _defineProperty2.default)({}, translationType, 0), + to: (0, _defineProperty2.default)({}, translationType, fromValue) + }; + } + + var slideOutDown = exports.slideOutDown = makeSlideOutTranslation('translateY', 100); + var slideOutUp = exports.slideOutUp = makeSlideOutTranslation('translateY', -100); + var slideOutLeft = exports.slideOutLeft = makeSlideOutTranslation('translateX', -100); + var slideOutRight = exports.slideOutRight = makeSlideOutTranslation('translateX', 100); +},851,[3,240]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.zoomInUp = exports.zoomInRight = exports.zoomInLeft = exports.zoomInDown = exports.zoomIn = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + function makeZoomInTranslation(translationType, pivotPoint) { + var modifier = Math.min(1, Math.max(-1, pivotPoint)); + return { + easing: _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1), + 0: (0, _defineProperty2.default)({ + opacity: 0, + scale: 0.1 + }, translationType, modifier * -1000), + 0.6: (0, _defineProperty2.default)({ + opacity: 1, + scale: 0.457 + }, translationType, pivotPoint), + 1: (0, _defineProperty2.default)({ + scale: 1 + }, translationType, 0) + }; + } + + var zoomIn = exports.zoomIn = { + from: { + opacity: 0, + scale: 0.3 + }, + 0.5: { + opacity: 1 + }, + to: { + opacity: 1, + scale: 1 + } + }; + var zoomInDown = exports.zoomInDown = makeZoomInTranslation('translateY', 60); + var zoomInUp = exports.zoomInUp = makeZoomInTranslation('translateY', -60); + var zoomInLeft = exports.zoomInLeft = makeZoomInTranslation('translateX', 10); + var zoomInRight = exports.zoomInRight = makeZoomInTranslation('translateX', -10); +},852,[3,240,18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.zoomOutUp = exports.zoomOutRight = exports.zoomOutLeft = exports.zoomOutDown = exports.zoomOut = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + function makeZoomOutTranslation(translationType, pivotPoint) { + var modifier = Math.min(1, Math.max(-1, pivotPoint)); + return { + easing: _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1), + 0: (0, _defineProperty2.default)({ + opacity: 1, + scale: 1 + }, translationType, 0), + 0.4: (0, _defineProperty2.default)({ + opacity: 1, + scale: 0.457 + }, translationType, pivotPoint), + 1: (0, _defineProperty2.default)({ + opacity: 0, + scale: 0.1 + }, translationType, modifier * -1000) + }; + } + + var zoomOut = exports.zoomOut = { + from: { + opacity: 1, + scale: 1 + }, + 0.5: { + opacity: 1, + scale: 0.3 + }, + to: { + opacity: 0, + scale: 0 + } + }; + var zoomOutDown = exports.zoomOutDown = makeZoomOutTranslation('translateY', 60); + var zoomOutUp = exports.zoomOutUp = makeZoomOutTranslation('translateY', -60); + var zoomOutLeft = exports.zoomOutLeft = makeZoomOutTranslation('translateX', 10); + var zoomOutRight = exports.zoomOutRight = makeZoomOutTranslation('translateX', -10); +},853,[3,240,18]); +__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({ + backdrop: { + position: 'absolute', + top: 0, + bottom: 0, + left: 0, + right: 0, + opacity: 0, + backgroundColor: 'black' + }, + content: { + flex: 1, + justifyContent: 'center' + }, + containerBox: { + zIndex: 2, + opacity: 1, + backgroundColor: 'transparent' + } + }); +},854,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.reversePercentage = exports.makeSlideTranslation = exports.initializeAnimations = exports.buildAnimations = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + var animatable = _interopRequireWildcard(_$$_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 _Dimensions$get = _reactNative.Dimensions.get('window'), + height = _Dimensions$get.height, + width = _Dimensions$get.width; + + var initializeAnimations = exports.initializeAnimations = function initializeAnimations() { + var animationDefinitions = { + slideInDown: makeSlideTranslation('translateY', -height, 0), + slideInUp: makeSlideTranslation('translateY', height, 0), + slideInLeft: makeSlideTranslation('translateX', -width, 0), + slideInRight: makeSlideTranslation('translateX', width, 0), + slideOutDown: makeSlideTranslation('translateY', 0, height), + slideOutUp: makeSlideTranslation('translateY', 0, -height), + slideOutLeft: makeSlideTranslation('translateX', 0, -width), + slideOutRight: makeSlideTranslation('translateX', 0, width) + }; + animatable.initializeRegistryWithDefinitions(animationDefinitions); + }; + + var makeSlideTranslation = exports.makeSlideTranslation = function makeSlideTranslation(translationType, fromValue, toValue) { + return { + from: (0, _defineProperty2.default)({}, translationType, fromValue), + to: (0, _defineProperty2.default)({}, translationType, toValue) + }; + }; + + var buildAnimations = exports.buildAnimations = function buildAnimations(_ref) { + var animationIn = _ref.animationIn, + animationOut = _ref.animationOut; + var updatedAnimationIn; + var updatedAnimationOut; + + if (isObject(animationIn)) { + var animationName = JSON.stringify(animationIn); + makeAnimation(animationName, animationIn); + updatedAnimationIn = animationName; + } else { + updatedAnimationIn = animationIn; + } + + if (isObject(animationOut)) { + var _animationName = JSON.stringify(animationOut); + + makeAnimation(_animationName, animationOut); + updatedAnimationOut = _animationName; + } else { + updatedAnimationOut = animationOut; + } + + return { + animationIn: updatedAnimationIn, + animationOut: updatedAnimationOut + }; + }; + + var reversePercentage = exports.reversePercentage = function reversePercentage(x) { + return -(x - 1); + }; + + var makeAnimation = function makeAnimation(name, obj) { + animatable.registerAnimation(name, animatable.createAnimation(obj)); + }; + + var isObject = function isObject(obj) { + return obj !== null && typeof obj === 'object'; + }; +},855,[3,240,18,833]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _excluded = ["enabled"]; + + 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 useIsFloatingKeyboard = function useIsFloatingKeyboard() { + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isFloating = _useState2[0], + setFloating = _useState2[1]; + + var windowWidth = _reactNative.Dimensions.get("window").width; + + var onKeyboardWillChangeFrame = function onKeyboardWillChangeFrame(event) { + var newIsFloating = event.endCoordinates.width !== windowWidth; + + if (isFloating !== newIsFloating) { + setFloating(newIsFloating); + } + }; + + (0, _react.useEffect)(function () { + var subscription = _reactNative.Keyboard.addListener("keyboardWillChangeFrame", onKeyboardWillChangeFrame); + + return function () { + subscription.remove(); + }; + }, [isFloating]); + return isFloating; + }; + + var TecnaviaKeyboardAvoidingView = function TecnaviaKeyboardAvoidingView(props) { + var enabled = props.enabled, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + var isFloatingKeyboard = useIsFloatingKeyboard(); + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.KeyboardAvoidingView, Object.assign({ + style: { + flex: 1 + }, + behavior: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isIOS() ? "padding" : "height", + enabled: enabled && !isFloatingKeyboard + }, rest)); + }; + + TecnaviaKeyboardAvoidingView.defaultProps = { + enabled: true + }; + + var _default = exports.default = TecnaviaKeyboardAvoidingView; +},856,[3,4,33,16,18,179,438]); +__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 _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var styles = _reactNative.StyleSheet.create({ + footer: { + paddingTop: 10, + flexDirection: "row", + justifyContent: "flex-end" + }, + buttonContainer: { + height: 40, + padding: 10 + } + }); + + function ModalFooter(props) { + var onCancel = props.onCancel, + onConfirm = props.onConfirm, + color = props.color, + confirmColor = props.confirmColor; + return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(_reactNative.View, { + style: styles.footer, + children: [onCancel ? (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.TouchableOpacity, { + style: styles.buttonContainer, + onPress: onCancel, + children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_fontText.default, { + style: { + color: color, + textTransform: "uppercase" + }, + children: global.strings("btn_cancel") + }) + }) : null, onConfirm ? (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.TouchableOpacity, { + style: styles.buttonContainer, + onPress: onConfirm, + children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_fontText.default, { + style: { + color: confirmColor, + textTransform: "uppercase" + }, + children: global.strings("btn_confirm") + }) + }) : null] + }); + } + + ModalFooter.propTypes = { + onCancel: _propTypes.default.func, + onConfirm: _propTypes.default.func, + color: _propTypes.default.string, + confirmColor: _propTypes.default.string + }; + ModalFooter.defaultProps = {}; + + var _default = exports.default = ModalFooter; +},857,[3,16,582,18,816,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.PageViewPosition = 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 _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["start", "end", "left", "right"]; + var PageViewPosition = exports.PageViewPosition = { + LEFT: "left", + RIGHT: "right", + CENTER: "center" + }; + + var PageUtils = exports.default = function () { + function PageUtils() { + (0, _classCallCheck2.default)(this, PageUtils); + } + + return (0, _createClass2.default)(PageUtils, null, [{ + key: "getSectionLetterFromPage", + value: function getSectionLetterFromPage(page) { + var letters = ""; + + if (page) { + for (var i = 0; i < page.length; i++) { + if (page.charAt(i).match(/[a-z]/i)) { + letters += page.charAt(i); + } else { + break; + } + } + } + + return letters; + } + }, { + key: "getPageNumberFromPage", + value: function getPageNumberFromPage(page) { + var number = ""; + + if (page) { + for (var i = 0; i < page.length; i++) { + if (page.charAt(i).match(/[0-9]/i)) { + number += page.charAt(i); + } + } + } + + return parseInt(number, 10); + } + }, { + key: "splitLettersAndNumbersFromPageNumber", + value: function splitLettersAndNumbersFromPageNumber(pageNumber) { + var pageNumberString = ("" + pageNumber).trim(); + var j = 0; + + while (j < pageNumberString.length && isNaN(pageNumberString[j])) { + j += 1; + } + + var letters = pageNumberString.substring(0, j); + var numbers = pageNumberString.substring(j); + return { + letters: letters, + numbers: numbers + }; + } + }, { + key: "removeZerosFromPageNumber", + value: function removeZerosFromPageNumber(pageNumber) { + var _PageUtils$splitLette = PageUtils.splitLettersAndNumbersFromPageNumber(pageNumber), + letters = _PageUtils$splitLette.letters, + numbers = _PageUtils$splitLette.numbers; + + if (letters.startsWith(".")) { + letters = letters.substring(1); + } + + while (numbers.length > 0 && numbers.substring(0, 1) === "0") { + numbers = numbers.substring(1); + } + + return "" + letters + numbers; + } + }, { + key: "getNextPageNumber", + value: function getNextPageNumber(number) { + try { + var letters = ""; + var zeros = ""; + var pageNumber = ""; + + for (var i = 0; i < number.length; i++) { + var char = number.charAt(i); + + if (char.match(/[^0-9]/)) { + letters += char; + } else if (char === "0") { + zeros += char; + } else { + pageNumber += parseInt(number.substring(i), 10) + 1; + break; + } + } + + if (pageNumber.length > number.length && zeros.length > 0) { + zeros = zeros.substring(0, zeros.length - (pageNumber.length - number.length)); + } + + return letters + zeros + pageNumber; + } catch (e) { + return number; + } + } + }, { + key: "getPageByPageNumber", + value: function getPageByPageNumber(pages, pageNumber) { + if (pages.length > 0) { + var page = pages.find(function (item) { + return PageUtils.comparePageNumber(item.getPage(), pageNumber); + }); + return page; + } + + return undefined; + } + }, { + key: "comparePageNumber", + value: function comparePageNumber(pageNumberA, pageNumberB) { + return PageUtils.removeZerosFromPageNumber(pageNumberA) === PageUtils.removeZerosFromPageNumber(pageNumberB); + } + }, { + key: "comparePages", + value: function comparePages(page, anotherPage) { + return page.modifyTime === anotherPage.modifyTime && page.section === anotherPage.section && page.page === anotherPage.page && page.shownPage === anotherPage.shownPage && page.edition === anotherPage.edition && page.extraMd5 === anotherPage.extraMd5 && page.type === anotherPage.type; + } + }, { + key: "getNextPage", + value: function getNextPage(page, pages) { + var nextPageIndex = pages.findIndex(function (item) { + return PageUtils.comparePages(item, page); + }) + 1; + + if (nextPageIndex > 0 && nextPageIndex < pages.length) { + return pages[nextPageIndex]; + } + + return null; + } + }, { + key: "traverseStyleForRTL", + value: function traverseStyleForRTL(style) { + if (!_$$_REQUIRE(_dependencyMap[5]).PlatformUtils.isRTL()) { + return style; + } + + if (Array.isArray(style)) { + return style.map(function (item) { + return PageUtils.traverseStyleForRTL(item); + }); + } + + if (typeof style === "object") { + var start = style.start, + end = style.end, + left = style.left, + right = style.right, + rest = (0, _objectWithoutProperties2.default)(style, _excluded); + + if (start !== undefined) { + rest.end = start; + } + + if (left !== undefined) { + rest.right = left; + } + + if (end !== undefined) { + rest.start = end; + } + + if (right !== undefined) { + rest.left = right; + } + + return rest; + } + + return style; + } + }]); + }(); +},858,[3,4,6,7,670,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.DBStatus = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var DBStatus = exports.DBStatus = { + DB_DOWNLOADED: 0, + LOW_MID_PDF_DOWNLOADED: 1, + PAPER_BACKGROUND_DOWNLOAD_STARTED: 2, + PAPER_BACKGROUND_DOWNLOADED: 3, + HIGH_RES_DOWNLOAD_STARTED: 4, + HIGH_RES_DOWNLOADED: 5, + GALLERY_DOWNLOAD_STARTED: 12, + GALLERY_DOWNLOADED: 13 + }; + + var NewspaperIssue = exports.default = function () { + function NewspaperIssue() { + var dbRow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + (0, _classCallCheck2.default)(this, NewspaperIssue); + this.dbDowntime = dbRow.db_downtime || 0; + this.dbFilename = _tecnaviaFileUtils.default.getNewsmemoryBaseDirectory() + dbRow.db_filename; + + var _global$getActivePSet = global.getActivePSetup(), + pSetup = _global$getActivePSet.pSetup; + + this.dbPSetup = dbRow.db_pSetup || pSetup; + this.dbPaper = dbRow.db_paper; + this.dbIssue = dbRow.db_issue; + this.dbEdition = dbRow.db_edition; + this.dbStatus = dbRow.db_status; + this.dbSecret = dbRow.db_secret; + this.dbNetwork = dbRow.db_network; + this.editionModel = null; + } + + return (0, _createClass2.default)(NewspaperIssue, [{ + key: "getFilename", + value: function getFilename() { + return this.dbFilename; + } + }, { + key: "getIssue", + value: function getIssue() { + return this.dbIssue; + } + }, { + key: "getPSetup", + value: function getPSetup() { + return this.dbPSetup; + } + }, { + key: "getPaper", + value: function getPaper() { + return this.dbPaper; + } + }, { + key: "getEdition", + value: function getEdition() { + return this.dbEdition; + } + }, { + key: "setStatus", + value: function setStatus(status) { + this.dbStatus = status; + } + }, { + key: "getStatus", + value: function getStatus() { + return this.dbStatus; + } + }, { + key: "getDownloadTime", + value: function getDownloadTime() { + return this.dbDowntime; + } + }, { + key: "getSecret", + value: function getSecret() { + return this.dbSecret; + } + }, { + key: "setEditionModel", + value: function setEditionModel(editionModel) { + this.editionModel = editionModel; + } + }, { + key: "getEditionModel", + value: function getEditionModel() { + return this.editionModel; + } + }, { + key: "getPages", + value: function getPages() { + if (this.editionModel) { + return this.editionModel.getPages(); + } + + return []; + } + }, { + key: "updatePage", + value: function updatePage(page) { + this.editionModel.updatePage(page); + } + }, { + key: "isEmpty", + value: function isEmpty() { + if (this.editionModel) { + return this.editionModel.isEmpty(); + } + + return true; + } + }, { + key: "hasOnlyDatabaseDownloaded", + value: function hasOnlyDatabaseDownloaded() { + return this.dbStatus === DBStatus.DB_DOWNLOADED; + } + }, { + key: "hasMainComponentsDownloaded", + value: function hasMainComponentsDownloaded() { + return (this.dbStatus & DBStatus.LOW_MID_PDF_DOWNLOADED) === DBStatus.LOW_MID_PDF_DOWNLOADED; + } + }, { + key: "isHighResolutionDownloadStarted", + value: function isHighResolutionDownloadStarted() { + return this.dbStatus === DBStatus.HIGH_RES_DOWNLOAD_STARTED; + } + }, { + key: "hasHighResolutionDownloaded", + value: function hasHighResolutionDownloaded() { + return (this.dbStatus & DBStatus.HIGH_RES_DOWNLOADED) === DBStatus.HIGH_RES_DOWNLOADED; + } + }, { + key: "setDbNetwork", + value: function setDbNetwork(dbNetwork) { + this.dbNetwork = dbNetwork; + } + }, { + key: "getDbNetwork", + value: function getDbNetwork() { + return this.dbNetwork; + } + }, { + key: "isNewspaperCompleteForMode", + value: function isNewspaperCompleteForMode() { + if (_newsmemoryUtils.default.isModeFull()) { + return this.hasHighResolutionDownloaded(); + } + + return this.hasMainComponentsDownloaded(); + } + }, { + key: "equals", + value: function equals(other) { + return this.dbPSetup === other.dbPSetup && this.dbPaper === other.dbPaper && this.dbIssue === other.dbIssue && this.dbEdition === other.dbEdition; + } + }]); + }(); +},859,[3,6,7,666,670,566,629]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -118101,619 +123774,1886 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var Analytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + var _NewsmemoryDatabasesManager; - var _Paywall = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var MAIN_DB_NAME = "database.db"; - var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _PushHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _optionspageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _EpaperLayoutConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - 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 GlobalConfig = exports.default = function () { - function GlobalConfig() { - (0, _classCallCheck2.default)(this, GlobalConfig); + var NewsmemoryDatabasesManager = exports.default = function () { + function NewsmemoryDatabasesManager() { + (0, _classCallCheck2.default)(this, NewsmemoryDatabasesManager); } - return (0, _createClass2.default)(GlobalConfig, null, [{ - key: "initMachineId", - value: function () { - var _initMachineId = (0, _asyncToGenerator2.default)(function* () { - if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isIOS()) { - if (!global.machineId) { - var machineId = yield _PaywallHelper.default.getMachineIdFromUserDefaults(); - - if (!machineId) { - machineId = yield global.getUserSettings().getMachineId(); - } - - if (machineId) { - machineId = machineId.split(",")[0]; - } else { - try { - machineId = yield _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getRandomUUID(); - } catch (error) {} - } - - global.machineId = machineId.replace(/-/g, "").toUpperCase(); - } - } else { - var uniqueId = _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getDeviceUniqueId(); - - global.machineId = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getMd5(uniqueId).toUpperCase(); - } - - yield global.getUserSettings().setMachineId(global.machineId); - }); - - function initMachineId() { - return _initMachineId.apply(this, arguments); - } - - return initMachineId; - }() + return (0, _createClass2.default)(NewsmemoryDatabasesManager, null, [{ + key: "getNewspaperDirectory", + value: function getNewspaperDirectory() { + return _tecnaviaFileUtils.default.getNewspaperBaseDirectory(); + } }, { - key: "initMainPSetup", - value: function () { - var _initMainPSetup = (0, _asyncToGenerator2.default)(function* () { - var firstInstall = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var _global$getNewsmemory = global.getNewsmemoryStartupParams(), - startupPSetup = _global$getNewsmemory.pSetup, - startupMachine = _global$getNewsmemory.machine, - preview = _global$getNewsmemory.preview, - oneTimeToken = _global$getNewsmemory.onetimetoken; - - var extraParams = { - fromCache: !isAppUpgraded - }; - - if (firstInstall) { - extraParams.firstInstall = 1; - } - - if ((!startupPSetup || !startupMachine) && (preview || oneTimeToken)) { - extraParams.preview = preview; - extraParams.oneTimeToken = oneTimeToken; - } - - return global.getPaperSetupManager().init(undefined, undefined, extraParams); - }); - - function initMainPSetup() { - return _initMainPSetup.apply(this, arguments); - } - - return initMainPSetup; - }() + key: "getDatabaseFilePath", + value: function getDatabaseFilePath() { + return _tecnaviaFileUtils.default.getNewsmemoryBaseDirectory() + MAIN_DB_NAME; + } }, { - key: "initRssIndex", - value: function () { - var _initRssIndex = (0, _asyncToGenerator2.default)(function* () { - var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRSSActivePSetup(); - var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var pSetup = pSetupConfig.pSetup, - paper = pSetupConfig.paper; - var rssIndexInitResult = yield global.getRssIndexManager().init({ - pSetup: pSetup, - paper: paper, - fromCache: !isAppUpgraded - }); - return rssIndexInitResult; - }); - - function initRssIndex() { - return _initRssIndex.apply(this, arguments); - } - - return initRssIndex; - }() + key: "getNewspaperIssueDirectory", + value: function getNewspaperIssueDirectory(paper, issue) { + return NewsmemoryDatabasesManager.getNewspaperDirectory() + paper + "/" + issue + "/"; + } }, { - key: "initCustomFonts", + key: "deleteNewspaperIssueDirectory", value: function () { - var _initCustomFonts = (0, _asyncToGenerator2.default)(function* () { - var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); - var fontsManager = global.getFontsManager(); - var result = yield fontsManager.init(pSetupConfig); - - if (!result) {} - }); - - function initCustomFonts() { - return _initCustomFonts.apply(this, arguments); - } - - return initCustomFonts; - }() - }, { - key: "initEpaperLayoutConfig", - value: function () { - var _initEpaperLayoutConfig = (0, _asyncToGenerator2.default)(function* () { - var fromPublicationsPage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "epaper layout config start"); - var userSettings = global.getUserSettings(); - var epaperLayoutConfig = global.getEpaperLayoutConfig(); - var localeConfig = global.getLocaleConfig(); - var startedAsTablet = userSettings.startedAsTablet, - lastEpaperLayoutConfig = userSettings.lastEpaperLayoutConfig; - - var checkIfDeviceIsChanged = startedAsTablet !== _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet(); - - var config = global.getActivePSetup(); - - if (!(config instanceof _$$_REQUIRE(_dependencyMap[20]).PaperSetupConfig)) { - config = global.getMainPSetup(); - } - - var _config = config, - isLite = _config.isLite, - hybridVersion = _config.hybridVersion, - pSetup = _config.pSetup, - pSetupFileTime = _config.pSetupFileTime, - language = _config.language; - - var _global$getRSSActiveP = global.getRSSActivePSetup(), - rssIsEnabled = _global$getRSSActiveP.rssIsEnabled; - - var newConfig = ""; + var _deleteNewspaperIssueDirectory = (0, _asyncToGenerator2.default)(function* (paper, issue) { + var dirToDelete = NewsmemoryDatabasesManager.getNewspaperIssueDirectory(paper, issue); try { - var lastHybridVersion = yield _ApplicationManager.default.getHybridVersion(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "get hybrid version completed"); - var hybridUpdated = hybridVersion !== lastHybridVersion; - var type = _EpaperLayoutConfig.default.Type.normal; + yield _tecnaviaFileUtils.default.unlink(dirToDelete); + } catch (e) {} + }); - if (isLite && rssIsEnabled) { - type = _EpaperLayoutConfig.default.Type.hybridLite; - } else if (isLite) { - type = _EpaperLayoutConfig.default.Type.lite; - } else if (rssIsEnabled) { - type = _EpaperLayoutConfig.default.Type.hybrid; + function deleteNewspaperIssueDirectory(_x, _x2) { + return _deleteNewspaperIssueDirectory.apply(this, arguments); + } + + return deleteNewspaperIssueDirectory; + }() + }, { + key: "makeNewspaperDirectory", + value: function () { + var _makeNewspaperDirectory = (0, _asyncToGenerator2.default)(function* () { + var newspaperDirectory = NewsmemoryDatabasesManager.getNewspaperDirectory(); + + if (!(yield _tecnaviaFileUtils.default.exists(newspaperDirectory))) { + yield _tecnaviaFileUtils.default.mkdir(newspaperDirectory); + } + }); + + function makeNewspaperDirectory() { + return _makeNewspaperDirectory.apply(this, arguments); + } + + return makeNewspaperDirectory; + }() + }, { + key: "deleteNewspaperDirectory", + value: function () { + var _deleteNewspaperDirectory = (0, _asyncToGenerator2.default)(function* () { + try { + yield _tecnaviaFileUtils.default.unlink(NewsmemoryDatabasesManager.getNewspaperDirectory()); + } catch (e) {} + }); + + function deleteNewspaperDirectory() { + return _deleteNewspaperDirectory.apply(this, arguments); + } + + return deleteNewspaperDirectory; + }() + }, { + key: "databaseExists", + value: function () { + var _databaseExists = (0, _asyncToGenerator2.default)(function* () { + if (NewsmemoryDatabasesManager.database) { + return NewsmemoryDatabasesManager.database.exists(); + } + + return false; + }); + + function databaseExists() { + return _databaseExists.apply(this, arguments); + } + + return databaseExists; + }() + }, { + key: "closeDatabase", + value: function () { + var _closeDatabase = (0, _asyncToGenerator2.default)(function* () { + if (NewsmemoryDatabasesManager.database) { + return NewsmemoryDatabasesManager.database.close(); + } + + return false; + }); + + function closeDatabase() { + return _closeDatabase.apply(this, arguments); + } + + return closeDatabase; + }() + }, { + key: "deleteDatabase", + value: function () { + var _deleteDatabase = (0, _asyncToGenerator2.default)(function* () { + if (NewsmemoryDatabasesManager.database) { + return NewsmemoryDatabasesManager.database.delete(); + } + + return false; + }); + + function deleteDatabase() { + return _deleteDatabase.apply(this, arguments); + } + + return deleteDatabase; + }() + }, { + key: "openTransaction", + value: function () { + var _openTransaction = (0, _asyncToGenerator2.default)(function* (query, params) { + return NewsmemoryDatabasesManager.database.transaction(query, params); + }); + + function openTransaction(_x3, _x4) { + return _openTransaction.apply(this, arguments); + } + + return openTransaction; + }() + }, { + key: "checkIfColumnExists", + value: function () { + var _checkIfColumnExists = (0, _asyncToGenerator2.default)(function* (table, column) { + return NewsmemoryDatabasesManager.database.columnExists(table, column); + }); + + function checkIfColumnExists(_x5, _x6) { + return _checkIfColumnExists.apply(this, arguments); + } + + return checkIfColumnExists; + }() + }, { + key: "createDatabasesTable", + value: function () { + var _createDatabasesTable = (0, _asyncToGenerator2.default)(function* () { + try { + var query = "CREATE TABLE IF NOT EXISTS databases (db_filename VARCHAR(255), db_paper VARCHAR(50), db_issue VARCHAR(20), db_edition VARCHAR(50), db_downtime DATETIME, db_status INTEGER DEFAULT 0, db_network VARCHAR(1), UNIQUE (db_paper,db_issue,db_edition) ON CONFLICT REPLACE );"; + yield NewsmemoryDatabasesManager.openTransaction(query); + var dbStatusExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_status"); + + if (!dbStatusExists) { + query = "ALTER TABLE databases ADD COLUMN db_status INTEGER DEFAULT 0;"; + yield NewsmemoryDatabasesManager.openTransaction(query); } - newConfig = type + "_" + pSetup + "_" + pSetupFileTime + "_" + language; - var changedConfig = newConfig !== lastEpaperLayoutConfig; + var dbNetworkExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_network"); - if (hybridUpdated || lastEpaperLayoutConfig && changedConfig) { - try { - yield _NewsmemoryAJAX.default.getApplication(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "get application completed"); - } catch (e) {} + if (!dbNetworkExists) { + var _global$getNewsmemory = global.getNewsmemoryConfig(), + network = _global$getNewsmemory.network; - if (hybridUpdated) { - yield _ApplicationManager.default.updateHybridVersion(hybridVersion); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "update hybrid version completed"); - } + query = "ALTER TABLE databases ADD COLUMN db_network VARCHAR(1) DEFAULT '" + network + "'"; + yield NewsmemoryDatabasesManager.openTransaction(query); } - var fromRemote = changedConfig || hybridUpdated || checkIfDeviceIsChanged; - yield epaperLayoutConfig.init(pSetup, type, fromRemote, fromPublicationsPage); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init epaper layout config completed"); - } catch (e) {} + var dbPSetupExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_pSetup"); - userSettings.setLastEpaperLayoutConfig(newConfig); - userSettings.setStartedAsTablet(_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet()); + if (!dbPSetupExists) { + var _global$getActivePSet = global.getActivePSetup(), + pSetup = _global$getActivePSet.pSetup; - try { - yield _articleComponent.default.initArticleTextCss(); - } catch (e) {} - - if (language !== localeConfig.getLanguage()) { - yield localeConfig.init(config); - } - - GlobalConfig.initCustomStyles(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "epaper layout config end"); - }); - - function initEpaperLayoutConfig() { - return _initEpaperLayoutConfig.apply(this, arguments); - } - - return initEpaperLayoutConfig; - }() - }, { - key: "initContext", - value: function initContext() { - (0, _$$_REQUIRE(_dependencyMap[19]).setFonts)({ - fontBold: global.getFontsConfig().fontBold, - fontMedium: global.getFontsConfig().fontMedium, - fontRegular: global.getFontsConfig().fontRegular, - allowFontScaling: global.getUserSettings().allowFontScaling - }); - } - }, { - key: "initNewsmemoryConfig", - value: function () { - var _initNewsmemoryConfig = (0, _asyncToGenerator2.default)(function* () { - var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getMainPSetup(); - var defaultConnectivityTimestamp = pSetupConfig.defaultConnectivityTimestamp; - - try { - yield global.getNewsmemoryConfig().init(); - global.getNewsmemoryConfig().checkNetworkTimestamp(defaultConnectivityTimestamp); - } catch (e) {} - }); - - function initNewsmemoryConfig() { - return _initNewsmemoryConfig.apply(this, arguments); - } - - return initNewsmemoryConfig; - }() - }, { - key: "initRssConfig", - value: function () { - var _initRssConfig = (0, _asyncToGenerator2.default)(function* () { - var _global$getRSSActiveP2 = global.getRSSActivePSetup(), - rssIsEnabled = _global$getRSSActiveP2.rssIsEnabled; - - if (rssIsEnabled) { - try { - yield global.getRssFavoritesConfig().init(); - } catch (e) {} - - try { - if (global.getRssIndex().drawerContainsVerticals()) { - yield global.getVerticalsConfig().init(); - } - } catch (e) {} - - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init rss config completed"); - } - - try { - var _global$getRssIndex = global.getRssIndex(), - paywallEnabled = _global$getRssIndex.paywallEnabled; - - if (paywallEnabled) { - yield _PaywallLoginStatus.default.initUserStatus(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init paywall completed"); + query = "ALTER TABLE databases ADD COLUMN db_pSetup VARCHAR(255) DEFAULT '" + pSetup + "'"; + yield NewsmemoryDatabasesManager.openTransaction(query); } - } catch (e) {} - }); - function initRssConfig() { - return _initRssConfig.apply(this, arguments); - } + var dbSecretExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_secret"); - return initRssConfig; - }() - }, { - key: "initAds", - value: function () { - var _initAds = (0, _asyncToGenerator2.default)(function* () { - try { - yield global.getAdsConfig().init(); - } catch (e) {} - }); - - function initAds() { - return _initAds.apply(this, arguments); - } - - return initAds; - }() - }, { - key: "initSSLCertificates", - value: function () { - var _initSSLCertificates = (0, _asyncToGenerator2.default)(function* () { - try { - yield global.getSslConfig().init(global.getMainPSetup()); - } catch (e) {} - }); - - function initSSLCertificates() { - return _initSSLCertificates.apply(this, arguments); - } - - return initSSLCertificates; - }() - }, { - key: "initCustomStyles", - value: function initCustomStyles() { - var _global$getActivePSet = global.getActivePSetup(), - disableRnStyles = _global$getActivePSet.disableRnStyles, - rnStyles = _global$getActivePSet.rnStyles; - - _$$_REQUIRE(_dependencyMap[21]).Css.applyCustomStyles(!disableRnStyles ? rnStyles : undefined); - } - }, { - key: "updateCustomStyles", - value: function updateCustomStyles(activeTheme) { - return _$$_REQUIRE(_dependencyMap[21]).Css.updateCustomStyles(activeTheme); - } - }, { - key: "initLocale", - value: function () { - var _initLocale = (0, _asyncToGenerator2.default)(function* () { - var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); - - try { - yield global.getLocaleConfig().init(pSetupConfig); - } catch (e) {} - }); - - function initLocale() { - return _initLocale.apply(this, arguments); - } - - return initLocale; - }() - }, { - key: "initUserConfig", - value: function () { - var _initUserConfig = (0, _asyncToGenerator2.default)(function* () { - try { - var userSettings = global.getUserSettings(); - yield userSettings.init(); - var enableDebugOverlay = userSettings.enableDebugOverlay; - (0, _$$_REQUIRE(_dependencyMap[19]).setDebugOperationsEnabled)(enableDebugOverlay); - } catch (e) {} - }); - - function initUserConfig() { - return _initUserConfig.apply(this, arguments); - } - - return initUserConfig; - }() - }, { - key: "initConfigurations", - value: function () { - var _initConfigurations = (0, _asyncToGenerator2.default)(function* () { - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init configurations"); - yield GlobalConfig.initUserConfig(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init user config completed"); - var mainPSetupConfig = global.getMainPSetup(); - var activePSetupConfig = global.getActivePSetup(); - yield GlobalConfig.initCustomFonts(mainPSetupConfig); - - if (activePSetupConfig.paper !== mainPSetupConfig.paper) { - yield GlobalConfig.initCustomFonts(activePSetupConfig); - } - - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init custom fonts completed"); - yield GlobalConfig.initSSLCertificates(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init SSL certs completed"); - yield GlobalConfig.initNewsmemoryConfig(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init newsmemory config completed"); - yield GlobalConfig.initAds(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init ads completed"); - yield GlobalConfig.initRssConfig(); - GlobalConfig.initContext(); - GlobalConfig.initCustomStyles(); - yield Analytics.initAnalytics(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init analytics completed"); - }); - - function initConfigurations() { - return _initConfigurations.apply(this, arguments); - } - - return initConfigurations; - }() - }, { - key: "getNewsmemoryScreenVersion", - value: function getNewsmemoryScreenVersion() { - var _global$getMainPSetup = global.getMainPSetup(), - newsmemoryToUse = _global$getMainPSetup.newsmemoryToUse; - - switch (newsmemoryToUse) { - case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.REACT: - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; - - case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.HTML5: - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.HTML5; - - default: - return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; - } - } - }, { - key: "getNetworkLabel", - value: function getNetworkLabel(network) { - if (_newsmemoryUtils.default.isModeLow(network)) { - return "Roaming"; - } - - if (_newsmemoryUtils.default.isModeMid(network)) { - return "3G"; - } - - if (_newsmemoryUtils.default.isModeFull(network)) { - return "WiFi"; - } - - return network; - } - }, { - key: "getDeviceInfoText", - value: function getDeviceInfoText() { - var _global$getMainPSetup2 = global.getMainPSetup(), - pSetup = _global$getMainPSetup2.pSetup, - layoutSubStyle = _global$getMainPSetup2.layoutSubStyle, - showNativeOptionsPage = _global$getMainPSetup2.showNativeOptionsPage, - showNativeOptionsPageFallbackUrl = _global$getMainPSetup2.showNativeOptionsPageFallbackUrl; - - var machine = global.getAppServer(); - - var mainOptionspageVersion = _optionspageUtils.default.optionPageVersion(); - - var activePSetupConfig = global.getActivePSetup(); - var activePSetup = activePSetupConfig.pSetup, - activeLayoutSubStyle = activePSetupConfig.layoutSubStyle, - activeMachine = activePSetupConfig.machine, - activeShowNativeOptionsPageFallbackUrl = activePSetupConfig.showNativeOptionsPageFallbackUrl; - var activePSetupInfo = ""; - - if (activePSetup !== pSetup) { - var activeOptionspageVersion = _optionspageUtils.default.optionPageVersion(activePSetupConfig); - - activePSetupInfo = " ACTIVE PSETUP: " + activePSetup + "\n ACTIVE SUB LAYOUT: " + activeLayoutSubStyle + "\n"; - activePSetupInfo += activeMachine !== machine ? " ACTIVE DOMAIN: " + activeMachine + "\n" : ""; - activePSetupInfo += (mainOptionspageVersion !== activeOptionspageVersion ? " ACTIVE OPTIONS PAGE: " + activeOptionspageVersion + "\n" : "") + "\n"; - - if (showNativeOptionsPageFallbackUrl) { - var fallbackVersion = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getLastPathSegment(_$$_REQUIRE(_dependencyMap[18]).StringUtils.removeLastSlash(activeShowNativeOptionsPageFallbackUrl)); - - activePSetupInfo += " ACTIVE NATIVE OPTIONS PAGE FALLBACK: " + fallbackVersion + "\n"; - } - } - - var paywallInfo = ""; - - var _global$getRssIndex2 = global.getRssIndex(), - paywallEnabled = _global$getRssIndex2.paywallEnabled; - - if (paywallEnabled) { - var version = _Paywall.default.config.version; - - if (version && _$$_REQUIRE(_dependencyMap[22]).baseVer !== version) { - paywallInfo = " PAYWALL BASE VERSION: " + _$$_REQUIRE(_dependencyMap[22]).baseVer + "\n"; - paywallInfo += " PAYWALL ACTUAL VERSION: " + version + "\n"; - } else { - paywallInfo += " PAYWALL VERSION: " + _$$_REQUIRE(_dependencyMap[22]).baseVer + "\n"; - } - - paywallInfo += "\n"; - } - - var connectionInfo = ""; - - var deviceConnInfo = _$$_REQUIRE(_dependencyMap[18]).NetworkUtils.connectionInfo; - - if (deviceConnInfo) { - var type = deviceConnInfo.type, - effectiveType = deviceConnInfo.effectiveType; - - if (type) { - connectionInfo = " CONNECTION TYPE: " + type + "\n"; - - if (effectiveType && effectiveType !== "unknown") { - connectionInfo += " CONNECTION BAND: " + effectiveType + "\n"; + if (!dbSecretExists) { + query = "ALTER TABLE databases ADD COLUMN db_secret VARCHAR(255) DEFAULT ''"; + yield NewsmemoryDatabasesManager.openTransaction(query); } + } catch (e) { + throw e; } + }); + + function createDatabasesTable() { + return _createDatabasesTable.apply(this, arguments); } - var epaperModeInfo = "\n"; - var newsmemoryConfig = global.getNewsmemoryConfig(); - var twoFingersTapToArticle = newsmemoryConfig.twoFingersTapToArticle, - readModeEnabled = newsmemoryConfig.readModeEnabled, - columnView = newsmemoryConfig.columnView, - graphSize = newsmemoryConfig.graphSize, - fontSize = newsmemoryConfig.fontSize, - network = newsmemoryConfig.network, - lastDbNetwork = newsmemoryConfig.lastDbNetwork, - lastDbDownloadSpeed = newsmemoryConfig.lastDbDownloadSpeed; - var epaperDownloadMode = GlobalConfig.getNetworkLabel(network); - epaperModeInfo += " EPAPER DOWNLOAD MODE: " + epaperDownloadMode + "\n"; - - if (!_$$_REQUIRE(_dependencyMap[18]).JSUtils.isNull(lastDbNetwork) && lastDbNetwork !== network) { - epaperModeInfo += " EPAPER LAST DB DOWNLOAD MODE: " + GlobalConfig.getNetworkLabel(lastDbNetwork) + "\n"; - } - - if (!_$$_REQUIRE(_dependencyMap[18]).JSUtils.isNull(lastDbDownloadSpeed)) { - epaperModeInfo += " EPAPER LAST DB DOWNLOAD SPEED: " + _$$_REQUIRE(_dependencyMap[18]).JSUtils.truncateFloat(lastDbDownloadSpeed) + " Kbps\n"; - } - - if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet()) { - var epaperMode = _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.BROWSE; - - if (twoFingersTapToArticle) { - epaperMode = readModeEnabled ? _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.READ : _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.SWIPE; - } - - epaperModeInfo += " ACTIVE EPAPER MODE: " + epaperMode + "\n"; - var columnViewInfo = columnView > 0 ? "enabled" : "disabled"; - epaperModeInfo += " COLUMN MODE: " + columnViewInfo + "\n"; - } - - var navigationArrowsInfo = "fixed"; - - if (newsmemoryConfig.pagesNavigationButtonsAnimated()) { - navigationArrowsInfo = "animated"; - } else if (newsmemoryConfig.pagesNavigationButtonsHidden()) { - navigationArrowsInfo = "hidden"; - } - - epaperModeInfo += " NAVIGATION ARROWS: " + navigationArrowsInfo + "\n"; - var articleModeInfo = "only text"; - - if (newsmemoryConfig.isArticleModeShowTextAndGraph()) { - articleModeInfo = "text and graph"; - } else if (newsmemoryConfig.isArticleModeShowAll()) { - articleModeInfo = "all"; - } - - epaperModeInfo += " ARTICLE MODE: " + articleModeInfo + "\n"; - epaperModeInfo += " FONT SIZE: " + fontSize + "%\n"; - epaperModeInfo += " GRAPH SIZE: " + graphSize + "%\n"; - var nativeOptInfo = ""; - - if (showNativeOptionsPageFallbackUrl) { - var _fallbackVersion = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getLastPathSegment(_$$_REQUIRE(_dependencyMap[18]).StringUtils.removeLastSlash(showNativeOptionsPageFallbackUrl)); - - nativeOptInfo = " NATIVE OPTIONS PAGE FALLBACK: " + _fallbackVersion + "\n"; - } else if (showNativeOptionsPage) { - var optVer = "n/d"; - - var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), - Methods = _OptionalPackages$get.Methods; - - if (Methods && typeof Methods.getVersion === "function") { - optVer = Methods.getVersion(); - } - - nativeOptInfo = " NATIVE OPTIONS PAGE: " + optVer + "\n"; - } - - var _PushHelper$getRegist = _PushHelper.default.getRegistrationInfo(), - token = _PushHelper$getRegist.token, - userId = _PushHelper$getRegist.userId, - serverMessage = _PushHelper$getRegist.serverMessage, - service = _PushHelper$getRegist.service; - - return " PSETUP: " + pSetup + "\n" + (" SUB LAYOUT: " + layoutSubStyle + "\n") + (" DOMAIN: " + machine + "\n") + (" OPTIONS PAGE: " + mainOptionspageVersion + "\n\n") + ("" + nativeOptInfo) + ("" + activePSetupInfo) + ("" + paywallInfo) + (" APP VERSION: " + _deviceUtils.default.getTextVersionName() + "\n") + (" APP CODE: " + _deviceUtils.default.getAppCode() + "\n") + (" BUNDLE VERSION: " + _deviceUtils.default.getBundleVersion() + "\n") + (" IS USING HERMES: " + (_deviceUtils.default.isUsingHermes() ? "YES" : "NO") + "\n") + (" IS ADDON: " + (global.isTaAddon() ? "YES" : "NO") + "\n") + (" RESOLUTION: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getResolution() + "\n") + (" SAFE AREA INSETS: " + JSON.stringify(_deviceUtils.default.getSafeAreaInsets()) + "\n") + (" SAFE AREA: " + JSON.stringify(_deviceUtils.default.getSafeArea()) + "\n") + (" SDK: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemSDK() + "\n") + (" OS VERSION: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemVersion() + "\n") + (" OS: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemName() + "\n") + (" BRAND: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getBrand() + "\n") + (" MODEL: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.model() + "\n") + (" MODEL ID: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getDeviceId() + "\n\n") + (" MACHINEID: " + global.machineId + "\n") + ("" + connectionInfo) + (" IP ADDRESS: " + _$$_REQUIRE(_dependencyMap[18]).NetworkUtils.getIP() + "\n\n") + (" PUSH SERVICE: " + service + "\n") + (" PUSH TOKEN: " + token + "\n") + (" PUSH USER ID: " + userId + "\n") + (" PUSH SERVER MESSAGE: " + serverMessage + "\n") + ("" + epaperModeInfo); - } + return createDatabasesTable; + }() }, { - key: "getUsedSpaceText", - value: function getUsedSpaceText() { - var _global$getUsedSpace = global.getUsedSpace(), - usedSpace = _global$getUsedSpace.usedSpace, - numberOfPapersDirs = _global$getUsedSpace.numberOfPapersDirs, - numberOfIssuesDirs = _global$getUsedSpace.numberOfIssuesDirs, - numberOfPagesDirs = _global$getUsedSpace.numberOfPagesDirs; + key: "resetDatabase", + value: function () { + var _resetDatabase = (0, _asyncToGenerator2.default)(function* () { + yield NewsmemoryDatabasesManager.closeDatabase(); + yield NewsmemoryDatabasesManager.deleteDatabase(); + yield NewsmemoryDatabasesManager.createDatabasesTable(); + }); - return "\n USED SPACE: " + _$$_REQUIRE(_dependencyMap[18]).StringUtils.sizeToString(usedSpace) + "\n" + (" PAPERS: " + numberOfPapersDirs + "\n") + (" ISSUES: " + numberOfIssuesDirs + "\n") + (" PAGES: " + numberOfPagesDirs + "\n"); - } + function resetDatabase() { + return _resetDatabase.apply(this, arguments); + } + + return resetDatabase; + }() + }, { + key: "updateStatus", + value: function () { + var _updateStatus = (0, _asyncToGenerator2.default)(function* (paper, issue, edition, status) { + var pSetup = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.getActivePSetup().pSetup; + var query = "UPDATE databases SET db_status = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?"; + + try { + yield NewsmemoryDatabasesManager.openTransaction(query, [status, paper, issue, edition, pSetup]); + return true; + } catch (e) { + throw e; + } + }); + + function updateStatus(_x7, _x8, _x9, _x10) { + return _updateStatus.apply(this, arguments); + } + + return updateStatus; + }() + }, { + key: "updateNetwork", + value: function () { + var _updateNetwork = (0, _asyncToGenerator2.default)(function* (paper, issue, edition, network) { + var pSetup = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.getActivePSetup().pSetup; + var query = "UPDATE databases SET db_network = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?"; + + try { + yield NewsmemoryDatabasesManager.openTransaction(query, [network, paper, issue, edition, pSetup]); + return true; + } catch (e) { + throw e; + } + }); + + function updateNetwork(_x11, _x12, _x13, _x14) { + return _updateNetwork.apply(this, arguments); + } + + return updateNetwork; + }() + }, { + key: "getIssueStatus", + value: function () { + var _getIssueStatus = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { + var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; + var query = "SELECT db_status FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; + + try { + var response = yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); + + if (response && response[0]) { + return response[0]; + } + + throw new Error("missing issue on database"); + } catch (e) { + throw e; + } + }); + + function getIssueStatus(_x15, _x16, _x17) { + return _getIssueStatus.apply(this, arguments); + } + + return getIssueStatus; + }() + }, { + key: "insertIssue", + value: function () { + var _insertIssue = (0, _asyncToGenerator2.default)(function* (filename, paper, issue, edition) { + var secret = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ""; + var pSetup = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : global.getActivePSetup().pSetup; + var network = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : global.getNewsmemoryConfig().network; + var query = "INSERT INTO databases (db_filename, db_paper, db_issue, db_edition, db_downtime, db_pSetup, db_secret, db_network) VALUES (?, ?, ?, ?, ?, ?, ?, ?);"; + var downloadTime = parseInt(new Date().getTime() / 1000, 10); + + try { + var shortFilename = filename.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), ""); + yield NewsmemoryDatabasesManager.openTransaction(query, [shortFilename, paper, issue, edition, downloadTime, pSetup, secret, network]); + return true; + } catch (e) { + throw e; + } + }); + + function insertIssue(_x18, _x19, _x20, _x21) { + return _insertIssue.apply(this, arguments); + } + + return insertIssue; + }() + }, { + key: "getAllIssues", + value: function () { + var _getAllIssues = (0, _asyncToGenerator2.default)(function* () { + var query = "SELECT * FROM databases ORDER BY db_issue DESC;"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query); + var issues = result.map(function (issue) { + return new _NewspaperIssue.default(issue); + }); + return issues; + } catch (e) { + throw e; + } + }); + + function getAllIssues() { + return _getAllIssues.apply(this, arguments); + } + + return getAllIssues; + }() + }, { + key: "getIssuesByDates", + value: function () { + var _getIssuesByDates = (0, _asyncToGenerator2.default)(function* () { + var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var query = "SELECT * FROM databases WHERE db_issue IN ( " + Array(dates.length).fill("?").join(",") + ");"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query, dates); + var issues = result.map(function (issue) { + return new _NewspaperIssue.default(issue); + }); + return issues; + } catch (e) { + throw e; + } + }); + + function getIssuesByDates() { + return _getIssuesByDates.apply(this, arguments); + } + + return getIssuesByDates; + }() + }, { + key: "getAllIssuesExcept", + value: function () { + var _getAllIssuesExcept = (0, _asyncToGenerator2.default)(function* () { + var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var query = "SELECT * FROM databases WHERE db_issue NOT IN ( " + Array(dates.length).fill("?").join(",") + ") ORDER BY db_downtime DESC;"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query, dates); + var issues = result.map(function (issue) { + return new _NewspaperIssue.default(issue); + }); + return issues; + } catch (e) { + throw e; + } + }); + + function getAllIssuesExcept() { + return _getAllIssuesExcept.apply(this, arguments); + } + + return getAllIssuesExcept; + }() + }, { + key: "getIssue", + value: function () { + var _getIssue = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { + var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; + var query = "SELECT * FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); + + if (result && result.length) { + return new _NewspaperIssue.default(result[0]); + } + + throw new Error("Issue not found"); + } catch (e) { + throw e; + } + }); + + function getIssue(_x22, _x23, _x24) { + return _getIssue.apply(this, arguments); + } + + return getIssue; + }() + }, { + key: "deleteIssue", + value: function () { + var _deleteIssue = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { + var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; + var query = "DELETE FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; + + try { + yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); + return true; + } catch (e) { + throw e; + } + }); + + function deleteIssue(_x25, _x26, _x27) { + return _deleteIssue.apply(this, arguments); + } + + return deleteIssue; + }() + }, { + key: "deleteIssueByFilename", + value: function () { + var _deleteIssueByFilename = (0, _asyncToGenerator2.default)(function* (filename) { + var query = "DELETE FROM databases WHERE db_filename = ?;"; + + try { + yield NewsmemoryDatabasesManager.openTransaction(query, [filename]); + return true; + } catch (e) { + throw e; + } + }); + + function deleteIssueByFilename(_x28) { + return _deleteIssueByFilename.apply(this, arguments); + } + + return deleteIssueByFilename; + }() + }, { + key: "getIssuesByEdition", + value: function () { + var _getIssuesByEdition = (0, _asyncToGenerator2.default)(function* (edition) { + var query = "SELECT * FROM databases WHERE db_edition = ?;"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query, [edition]); + var issues = result.map(function (issue) { + return new _NewspaperIssue.default(issue); + }); + return issues; + } catch (e) { + throw e; + } + }); + + function getIssuesByEdition(_x29) { + return _getIssuesByEdition.apply(this, arguments); + } + + return getIssuesByEdition; + }() + }, { + key: "getIssuesByPaper", + value: function () { + var _getIssuesByPaper = (0, _asyncToGenerator2.default)(function* (paper) { + var query = "SELECT * FROM databases WHERE db_paper = ?;"; + + try { + var result = yield NewsmemoryDatabasesManager.openTransaction(query, [paper]); + var issues = result.map(function (issue) { + return new _NewspaperIssue.default(issue); + }); + return issues; + } catch (e) { + throw e; + } + }); + + function getIssuesByPaper(_x30) { + return _getIssuesByPaper.apply(this, arguments); + } + + return getIssuesByPaper; + }() }]); }(); -},816,[3,270,6,7,406,817,818,819,1724,1703,1727,434,630,824,1726,1771,405,1840,438,1713,1748,1709,1704]); + + _NewsmemoryDatabasesManager = NewsmemoryDatabasesManager; + NewsmemoryDatabasesManager.database = new _Database.default(_NewsmemoryDatabasesManager.getDatabaseFilePath()); +},860,[3,270,6,7,861,566,859]); +__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 _promiseQueue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNativeSqliteStorage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var Database = exports.default = function () { + function Database(path, migrations) { + (0, _classCallCheck2.default)(this, Database); + this.path = path; + this.queue = new _promiseQueue.default(1, Infinity); + this.migrations = migrations || []; + } + + return (0, _createClass2.default)(Database, [{ + key: "getPath", + value: function getPath() { + return this.path; + } + }, { + key: "delete", + value: function () { + var _delete2 = (0, _asyncToGenerator2.default)(function* () { + var _this = this; + + var result; + + try { + if (yield this.exists()) { + yield new Promise(function (resolve, reject) { + _reactNativeSqliteStorage.default.deleteDatabase(_this.path, resolve, reject); + }); + } + + result = true; + } catch (e) { + result = false; + } + + return result; + }); + + function _delete() { + return _delete2.apply(this, arguments); + } + + return _delete; + }() + }, { + key: "exists", + value: function () { + var _exists = (0, _asyncToGenerator2.default)(function* () { + var result; + + try { + result = yield _tecnaviaFileUtils.default.exists(this.path); + } catch (e) { + result = false; + } + + return result; + }); + + function exists() { + return _exists.apply(this, arguments); + } + + return exists; + }() + }, { + key: "open", + value: function () { + var _open = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + var result = false; + + try { + this.db = yield new Promise(function (resolve, reject) { + _reactNativeSqliteStorage.default.openDatabase({ + name: _this2.path + }, resolve, reject); + }); + result = !!this.db; + } catch (e) {} + + return result; + }); + + function open() { + return _open.apply(this, arguments); + } + + return open; + }() + }, { + key: "close", + value: function () { + var _close = (0, _asyncToGenerator2.default)(function* () { + var _this3 = this; + + var result = true; + + try { + yield new Promise(function (resolve, reject) { + _this3.db.close(resolve, reject); + }); + } catch (e) { + result = false; + } + + return result; + }); + + function close() { + return _close.apply(this, arguments); + } + + return close; + }() + }, { + key: "migrateDB", + value: function () { + var _migrateDB = (0, _asyncToGenerator2.default)(function* () { + var dbVersion = 0; + + try { + yield this.executeSqlNoTx("CREATE TABLE IF NOT EXISTS db_info ( key VARCHAR(255) NOT NULL, value VARCHAR(255) NOT NULL, PRIMARY KEY (key, value));"); + var rows = yield this.executeSqlNoTx("SELECT value FROM db_info WHERE key LIKE 'version'"); + + if (rows.length > 0) { + dbVersion = rows.item(0).value || 0; + } + } catch (e) { + dbVersion = 0; + } + + try { + for (var i = 0; i < this.migrations.length; i++) { + var _this$migrations$i = this.migrations[i], + version = _this$migrations$i.version, + queries = _this$migrations$i.queries; + + if (dbVersion < version) { + for (var q = 0; q < queries.length; q++) { + yield this.executeSqlNoTx(queries[q]); + } + + yield this.executeSqlNoTx("REPLACE INTO db_info ('key', 'value') VALUES ('version', " + version + ");"); + } + } + } catch (e) { + throw e; + } + }); + + function migrateDB() { + return _migrateDB.apply(this, arguments); + } + + return migrateDB; + }() + }, { + key: "openTransaction", + value: function () { + var _openTransaction = (0, _asyncToGenerator2.default)(function* () { + var _this4 = this; + + return new Promise(function (resolve, reject) { + _this4.db.transaction(function (tx) { + resolve(tx); + }, function (e) { + reject(e); + }); + }); + }); + + function openTransaction() { + return _openTransaction.apply(this, arguments); + } + + return openTransaction; + }() + }, { + key: "executeSqlNoTx", + value: function () { + var _executeSqlNoTx = (0, _asyncToGenerator2.default)(function* (query, params) { + var _this5 = this; + + return this.queue.add(function () { + return new Promise(function () { + var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { + if (yield _this5.open()) { + _this5.db.executeSql(query, params, function (resultSet) { + resolve(resultSet.rows); + }, function (e) { + reject(e); + }); + } else { + resolve([]); + } + }); + + return function (_x3, _x4) { + return _ref.apply(this, arguments); + }; + }()); + }); + }); + + function executeSqlNoTx(_x, _x2) { + return _executeSqlNoTx.apply(this, arguments); + } + + return executeSqlNoTx; + }() + }, { + key: "executeSql", + value: function () { + var _executeSql = (0, _asyncToGenerator2.default)(function* (tx, query, params) { + return new Promise(function (resolve, reject) { + tx.executeSql(query, params, function (transaction, sqlResult) { + var array = []; + + for (var i = 0; i < sqlResult.rows.length; i++) { + array.push(sqlResult.rows.item(i)); + } + + resolve(array); + }, function (e) { + reject(e); + }); + }); + }); + + function executeSql(_x5, _x6, _x7) { + return _executeSql.apply(this, arguments); + } + + return executeSql; + }() + }, { + key: "transaction", + value: function () { + var _transaction = (0, _asyncToGenerator2.default)(function* (query) { + var _this6 = this; + + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return this.queue.add(function () { + return new Promise(function () { + var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve) { + if (yield _this6.open()) { + try { + var tx = yield _this6.openTransaction(); + var result = yield _this6.executeSql(tx, query, params); + resolve(result); + } catch (e) { + resolve([]); + } + } else { + resolve([]); + } + }); + + return function (_x9) { + return _ref2.apply(this, arguments); + }; + }()); + }); + }); + + function transaction(_x8) { + return _transaction.apply(this, arguments); + } + + return transaction; + }() + }, { + key: "tableExists", + value: function () { + var _tableExists = (0, _asyncToGenerator2.default)(function* (table) { + var result = false; + + try { + var query = "SELECT name FROM sqlite_master WHERE type='table' AND name='" + table + "';"; + var rows = yield this.transaction(query, []); + + if (rows.length > 0) { + result = true; + } + } catch (e) {} + + return result; + }); + + function tableExists(_x10) { + return _tableExists.apply(this, arguments); + } + + return tableExists; + }() + }, { + key: "columnExists", + value: function () { + var _columnExists = (0, _asyncToGenerator2.default)(function* (table, column) { + var result = false; + + try { + var query = "PRAGMA table_info(" + table + ");"; + var columns = yield this.transaction(query, []); + + for (var i = 0; i < columns.length; i++) { + if (columns[i].name === column) { + result = true; + } + } + } catch (e) {} + + return result; + }); + + function columnExists(_x11, _x12) { + return _columnExists.apply(this, arguments); + } + + return columnExists; + }() + }, { + key: "deleteFrom", + value: function () { + var _deleteFrom = (0, _asyncToGenerator2.default)(function* (table, whereClause) { + return this.transaction("DELETE FROM " + table + " " + (whereClause ? "WHERE " + whereClause : "") + ";"); + }); + + function deleteFrom(_x13, _x14) { + return _deleteFrom.apply(this, arguments); + } + + return deleteFrom; + }() + }, { + key: "replaceInto", + value: function () { + var _replaceInto = (0, _asyncToGenerator2.default)(function* (table, cols, items) { + var _this7 = this; + + var numberOfParamsInAQuery = Math.floor(Database.MAX_INSERT_PARAMS / cols.length); + var chunksLength = Math.ceil(items.length / numberOfParamsInAQuery); + var chunks = Array.from({ + length: chunksLength + }, function (v, i) { + return items.slice(i * numberOfParamsInAQuery, i * numberOfParamsInAQuery + numberOfParamsInAQuery); + }); + var startTime = new Date().getTime(); + var promises = chunks.map(function () { + var _ref3 = (0, _asyncToGenerator2.default)(function* (chunk) { + var query = "REPLACE INTO " + table + " ( " + cols.join(",") + " ) VALUES "; + query += chunk.reduce(function (result, item, index, array) { + return result.concat("(").concat(Array(cols.length).fill("?").join(",")).concat(index < array.length - 1 ? ")," : ");"); + }, ""); + var params = chunk.reduce(function (result, item) { + return result.concat(item); + }, []); + return _this7.transaction(query, params); + }); + + return function (_x18) { + return _ref3.apply(this, arguments); + }; + }()); + + try { + var response = yield Promise.all(promises); + return response; + } catch (e) { + throw e; + } + }); + + function replaceInto(_x15, _x16, _x17) { + return _replaceInto.apply(this, arguments); + } + + return replaceInto; + }() + }, { + key: "destroy", + value: function () { + var _destroy = (0, _asyncToGenerator2.default)(function* () { + return this.close(); + }); + + function destroy() { + return _destroy.apply(this, arguments); + } + + return destroy; + }() + }]); + }(); + + Database.MAX_INSERT_PARAMS = 500; + Database.TAG = "DATABASE"; +},861,[3,270,6,7,541,862,566]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var config = [[false, "SQLitePlugin", "transaction", false, true, true], [false, "SQLitePlugin", "readTransaction", false, true, true], [false, "SQLitePlugin", "close", false, false, true], [false, "SQLitePlugin", "executeSql", true, false, true], [false, "SQLitePlugin", "sqlBatch", false, false, true], [false, "SQLitePlugin", "attach", true, false, true], [false, "SQLitePlugin", "detach", false, false, true], [false, "SQLitePluginTransaction", "executeSql", true, false, false], [false, "SQLiteFactory", "deleteDatabase", false, false, true], [true, "SQLiteFactory", "openDatabase", false, false, true], [false, "SQLiteFactory", "echoTest", false, false, true]]; + var originalFns = {}; + config.forEach(function (entry) { + var _entry = _$$_REQUIRE(_dependencyMap[0])(entry, 3), + returnValueExpected = _entry[0], + prototype = _entry[1], + fn = _entry[2]; + + var originalFn = _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn]; + + originalFns[prototype + "." + fn] = originalFn; + }); + + function enablePromiseRuntime(enable) { + if (enable) { + createPromiseRuntime(); + } else { + createCallbackRuntime(); + } + } + + function createCallbackRuntime() { + config.forEach(function (entry) { + var _entry2 = _$$_REQUIRE(_dependencyMap[0])(entry, 6), + returnValueExpected = _entry2[0], + prototype = _entry2[1], + fn = _entry2[2], + argsNeedPadding = _entry2[3], + reverseCallbacks = _entry2[4], + rejectOnError = _entry2[5]; + + _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn] = originalFns[prototype + "." + fn]; + }); + } + + function createPromiseRuntime() { + config.forEach(function (entry) { + var _entry3 = _$$_REQUIRE(_dependencyMap[0])(entry, 6), + returnValueExpected = _entry3[0], + prototype = _entry3[1], + fn = _entry3[2], + argsNeedPadding = _entry3[3], + reverseCallbacks = _entry3[4], + rejectOnError = _entry3[5]; + + var originalFn = _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn]; + + _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn] = function () { + var _this = this; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + if (argsNeedPadding && args.length == 1) { + args.push([]); + } + + var promise = new Promise(function (resolve, reject) { + var success = function success() { + if (!returnValueExpected) { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + return resolve(args); + } + }; + + var error = function error(err) { + if (rejectOnError) { + reject(err); + } + + return false; + }; + + var retValue = originalFn.call.apply(originalFn, [_this].concat(args, [reverseCallbacks ? error : success, reverseCallbacks ? success : error])); + + if (returnValueExpected) { + return resolve(retValue); + } + }); + return promise; + }; + }); + } + + _$$_REQUIRE(_dependencyMap[1]).SQLiteFactory.prototype.enablePromise = enablePromiseRuntime; + module.exports = new (_$$_REQUIRE(_dependencyMap[1]).SQLiteFactory)(); +},862,[33,863]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + var NativeModules = _$$_REQUIRE(_dependencyMap[0]).NativeModules; + + var DB_STATE_INIT, DB_STATE_OPEN, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, argsArray, dblocations, newSQLError, root, txLocks; + var plugin = {}; + READ_ONLY_REGEX = /^(\s|;)*(?:alter|create|delete|drop|insert|reindex|replace|update)/i; + DB_STATE_INIT = "INIT"; + DB_STATE_OPEN = "OPEN"; + txLocks = {}; + + newSQLError = function newSQLError(error, code) { + var sqlError; + sqlError = error; + + if (!code) { + code = 0; + } + + if (!sqlError) { + sqlError = new Error("a plugin had an error but provided no response"); + sqlError.code = code; + } + + if (typeof sqlError === "string") { + sqlError = new Error(error); + sqlError.code = code; + } + + if (!sqlError.code && sqlError.message) { + sqlError.code = code; + } + + if (!sqlError.code && !sqlError.message) { + sqlError = new Error("an unknown error was returned: " + JSON.stringify(sqlError)); + sqlError.code = code; + } + + return sqlError; + }; + + var nextTick = setImmediate || function (fun) { + setTimeout(fun, 0); + }; + + if (global.window) { + nextTick = window.setImmediate || function (fun) { + window.setTimeout(fun, 0); + }; + } + + argsArray = function argsArray(fun) { + return function () { + var args, i, len; + len = arguments.length; + + if (len) { + args = []; + i = -1; + + while (++i < len) { + args[i] = arguments[i]; + } + + return fun.call(this, args); + } else { + return fun.call(this, []); + } + }; + }; + + plugin.exec = function (method, options, success, error) { + if (plugin.sqlitePlugin.DEBUG) {} + + NativeModules["SQLite"][method](options, success, error); + }; + + SQLitePlugin = function SQLitePlugin(openargs, openSuccess, openError) { + var dbname; + + if (!(openargs && openargs['name'])) { + throw newSQLError("Cannot create a SQLitePlugin db instance without a db name"); + } + + dbname = openargs.name; + + if (typeof dbname !== 'string') { + throw newSQLError('sqlite plugin database name must be a string'); + } + + this.openargs = openargs; + this.dbname = dbname; + this.openSuccess = openSuccess; + this.openError = openError; + this.openSuccess || (this.openSuccess = function () {}); + this.openError || (this.openError = function (e) {}); + this.open(this.openSuccess, this.openError); + }; + + SQLitePlugin.prototype.databaseFeatures = { + isSQLitePluginDatabase: true + }; + SQLitePlugin.prototype.openDBs = {}; + + SQLitePlugin.prototype.addTransaction = function (t) { + if (!txLocks[this.dbname]) { + txLocks[this.dbname] = { + queue: [], + inProgress: false + }; + } + + txLocks[this.dbname].queue.push(t); + + if (this.dbname in this.openDBs && this.openDBs[this.dbname] !== DB_STATE_INIT) { + this.startNextTransaction(); + } else { + if (this.dbname in this.openDBs) {} else {} + } + }; + + SQLitePlugin.prototype.transaction = function (fn, error, success) { + if (!this.openDBs[this.dbname]) { + error(newSQLError('database not open')); + return; + } + + this.addTransaction(new SQLitePluginTransaction(this, fn, error, success, true, false)); + }; + + SQLitePlugin.prototype.readTransaction = function (fn, error, success) { + if (!this.openDBs[this.dbname]) { + error(newSQLError('database not open')); + return; + } + + this.addTransaction(new SQLitePluginTransaction(this, fn, error, success, false, true)); + }; + + SQLitePlugin.prototype.startNextTransaction = function () { + var self; + self = this; + nextTick(function (_this) { + return function () { + var txLock; + + if (!(_this.dbname in _this.openDBs) || _this.openDBs[_this.dbname] !== DB_STATE_OPEN) { + return; + } + + txLock = txLocks[self.dbname]; + + if (!txLock) {} else if (txLock.queue.length > 0 && !txLock.inProgress) { + txLock.inProgress = true; + txLock.queue.shift().start(); + } + }; + }(this)); + }; + + SQLitePlugin.prototype.abortAllPendingTransactions = function () { + var j, len1, ref, tx, txLock; + txLock = txLocks[this.dbname]; + + if (!!txLock && txLock.queue.length > 0) { + ref = txLock.queue; + + for (j = 0, len1 = ref.length; j < len1; j++) { + tx = ref[j]; + tx.abortFromQ(newSQLError('Invalid database handle')); + } + + txLock.queue = []; + txLock.inProgress = false; + } + }; + + SQLitePlugin.prototype.sqlBatch = function (sqlStatements, success, error) { + var batchList, j, len1, myfn, st; + + if (!sqlStatements || sqlStatements.constructor !== Array) { + throw newSQLError('sqlBatch expects an array'); + } + + batchList = []; + + for (j = 0, len1 = sqlStatements.length; j < len1; j++) { + st = sqlStatements[j]; + + if (st.constructor === Array) { + if (st.length === 0) { + throw newSQLError('sqlBatch array element of zero (0) length'); + } + + batchList.push({ + sql: st[0], + params: st.length === 0 ? [] : st[1] + }); + } else { + batchList.push({ + sql: st, + params: [] + }); + } + } + + myfn = function myfn(tx) { + var elem, k, len2, results; + results = []; + + for (k = 0, len2 = batchList.length; k < len2; k++) { + elem = batchList[k]; + results.push(tx.addStatement(elem.sql, elem.params, null, null)); + } + + return results; + }; + + var mysuccess = function mysuccess() { + if (!!success) { + return success(); + } + }; + + var myerror = function myerror(e) { + if (!!error) { + return error(e); + } else {} + }; + + this.addTransaction(new SQLitePluginTransaction(this, myfn, myerror, mysuccess, true, false)); + }; + + SQLitePlugin.prototype.open = function (success, error) { + var openerrorcb, opensuccesscb; + + if (this.dbname in this.openDBs && this.openDBs[this.dbname] === DB_STATE_OPEN) { + nextTick(function (_this) { + return function () { + success(_this); + }; + }(this)); + } else { + opensuccesscb = function (_this) { + return function () { + var txLock; + + if (!_this.openDBs[_this.dbname]) {} + + if (_this.dbname in _this.openDBs) { + _this.openDBs[_this.dbname] = DB_STATE_OPEN; + } + + if (!!success) { + success(_this); + } + + txLock = txLocks[_this.dbname]; + + if (!!txLock && txLock.queue.length > 0 && !txLock.inProgress) { + _this.startNextTransaction(); + } + }; + }(this); + + openerrorcb = function (_this) { + return function () { + if (!!error) { + error(newSQLError('Could not open database')); + } + + delete _this.openDBs[_this.dbname]; + + _this.abortAllPendingTransactions(); + }; + }(this); + + this.openDBs[this.dbname] = DB_STATE_INIT; + plugin.exec("open", this.openargs, opensuccesscb, openerrorcb); + } + }; + + SQLitePlugin.prototype.close = function (success, error) { + if (this.dbname in this.openDBs) { + if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { + error(newSQLError('database cannot be closed while a transaction is in progress')); + return; + } + + delete this.openDBs[this.dbname]; + + if (txLocks[this.dbname]) {} else {} + + var mysuccess = function mysuccess(t, r) { + if (!!success) { + return success(r); + } + }; + + var myerror = function myerror(t, e) { + if (!!error) { + return error(e); + } else {} + }; + + plugin.exec("close", { + path: this.dbname + }, mysuccess, myerror); + } else { + var err = 'cannot close: database is not open'; + + if (error) { + nextTick(function () { + return error(err); + }); + } + } + }; + + SQLitePlugin.prototype.attach = function (dbNameToAttach, dbAlias, success, error) { + if (this.dbname in this.openDBs) { + if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { + error(newSQLError('database cannot be attached while a transaction is in progress')); + return; + } + + var mysuccess = function mysuccess(t, r) { + if (!!success) { + return success(r); + } + }; + + var myerror = function myerror(e) { + if (!!error) { + return error(e); + } else {} + }; + + plugin.exec("attach", { + path: this.dbname, + dbName: dbNameToAttach, + dbAlias: dbAlias + }, mysuccess, myerror); + } else { + var err = 'cannot attach: database is not open'; + + if (error) { + nextTick(function () { + return error(err); + }); + } + } + }; + + SQLitePlugin.prototype.detach = function (dbAlias, success, error) { + if (this.dbname in this.openDBs) { + if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { + error(newSQLError('database cannot be attached while a transaction is in progress')); + return; + } + + var mysuccess = function mysuccess(t, r) { + if (!!success) { + return success(r); + } + }; + + var myerror = function myerror(e) { + if (!!error) { + return error(e); + } else {} + }; + + this.executeSql('DETACH DATABASE ' + dbAlias, [], mysuccess, myerror); + } else { + var err = 'cannot attach: database is not open'; + + if (error) { + nextTick(function () { + return error(err); + }); + } + } + }; + + SQLitePlugin.prototype.executeSql = function (statement, params, success, error) { + var myerror, myfn, mysuccess; + + mysuccess = function mysuccess(t, r) { + if (!!success) { + return success(r); + } + }; + + myerror = function myerror(t, e) { + if (!!error) { + return error(e); + } else {} + }; + + myfn = function myfn(tx) { + tx.addStatement(statement, params, mysuccess, myerror); + }; + + this.addTransaction(new SQLitePluginTransaction(this, myfn, null, null, false, false)); + }; + + SQLitePluginTransaction = function SQLitePluginTransaction(db, fn, error, success, txlock, readOnly) { + if (typeof fn !== "function") { + var err = newSQLError("transaction expected a function"); + + if (!!error) { + return error(err); + } else { + throw err; + } + } + + this.db = db; + this.fn = fn; + this.error = error; + this.success = success; + this.txlock = txlock; + this.readOnly = readOnly; + this.executes = []; + + if (txlock) { + this.addStatement("BEGIN", [], null, function (tx, err) { + throw newSQLError("unable to begin transaction: " + err.message, err.code); + }); + } else { + this.addStatement("SELECT 1", [], null, null); + } + }; + + SQLitePluginTransaction.prototype.start = function () { + var err; + + try { + this.fn(this); + this.run(); + } catch (_error) { + err = _error; + txLocks[this.db.dbname].inProgress = false; + this.db.startNextTransaction(); + + if (this.error) { + this.error(newSQLError(err)); + } + } + }; + + SQLitePluginTransaction.prototype.executeSql = function (sql, values, success, error) { + var that = this; + + if (that.finalized) { + throw { + message: "InvalidStateError: DOM Exception 11: This transaction is already finalized. Transactions are committed after its success or failure handlers are called. If you are using a Promise to handle callbacks, be aware that implementations following the A+ standard adhere to run-to-completion semantics and so Promise resolution occurs on a subsequent tick and therefore after the transaction commits.", + code: 11 + }; + } + + if (that.readOnly && READ_ONLY_REGEX.test(sql)) { + that.handleStatementFailure(error, { + message: 'invalid sql for a read-only transaction' + }); + return; + } + + var mysuccess = function mysuccess(t, r) { + if (!!success) { + return success(t, r); + } + }; + + var myerror = function myerror(t, e) { + if (!!error) { + return error(e); + } else {} + }; + + that.addStatement(sql, values, mysuccess, myerror); + }; + + SQLitePluginTransaction.prototype.addStatement = function (sql, values, success, error) { + var j, len1, params, sqlStatement, t, v; + sqlStatement = typeof sql === 'string' ? sql : sql.toString(); + params = []; + + if (!!values && values.constructor === Array) { + for (j = 0, len1 = values.length; j < len1; j++) { + v = values[j]; + t = typeof v; + + if (v === null || v === undefined || t === 'number' || t === 'string') { + params.push(v); + } else if (t === 'boolean') { + params.push(~~v); + } else if (t !== 'function') { + params.push(v.toString()); + console.warn('addStatement - parameter of type <' + t + '> converted to string using toString()'); + } else { + var errorMsg = 'Unsupported parameter type <' + t + '> found in addStatement()'; + console.error(errorMsg); + error(newSQLError(errorMsg)); + return; + } + } + } + + this.executes.push({ + success: success, + error: error, + sql: sqlStatement, + params: params + }); + }; + + SQLitePluginTransaction.prototype.handleStatementSuccess = function (handler, response) { + var payload, rows; + + if (!handler) { + return; + } + + rows = response.rows || []; + payload = { + rows: { + item: function item(i) { + return rows[i]; + }, + raw: function raw() { + return rows.slice(); + }, + length: rows.length + }, + rowsAffected: response.rowsAffected || 0, + insertId: response.insertId || undefined + }; + handler(this, payload); + }; + + SQLitePluginTransaction.prototype.handleStatementFailure = function (handler, response) { + if (!handler) { + throw newSQLError("a statement with no error handler failed: " + response.message, response.code); + } + + if (handler(this, response) !== false) { + throw newSQLError("a statement error callback did not return false: " + response.message, response.code); + } + }; + + SQLitePluginTransaction.prototype.run = function () { + var batchExecutes, handlerFor, i, callbacks, request, tropts, tx, txFailure, waiting; + txFailure = null; + tropts = []; + batchExecutes = this.executes; + waiting = batchExecutes.length; + this.executes = []; + tx = this; + + handlerFor = function handlerFor(index, didSucceed) { + return function (response) { + if (!txFailure) { + try { + if (didSucceed) { + tx.handleStatementSuccess(batchExecutes[index].success, response); + } else { + tx.handleStatementFailure(batchExecutes[index].error, newSQLError(response)); + } + } catch (err) { + var errorMsg = JSON.stringify(err); + if (errorMsg === "{}") errorMsg = err.toString(); + } + + if (!didSucceed) { + txFailure = newSQLError(response); + } + } + + if (--waiting === 0) { + if (txFailure) { + tx.executes = []; + tx.abort(txFailure); + } else if (tx.executes.length > 0) { + tx.run(); + } else { + tx.finish(); + } + } + }; + }; + + i = 0; + callbacks = []; + + while (i < batchExecutes.length) { + request = batchExecutes[i]; + callbacks.push({ + success: handlerFor(i, true), + error: handlerFor(i, false) + }); + tropts.push({ + qid: 1111, + sql: request.sql, + params: request.params + }); + i++; + } + + var mysuccess = function mysuccess(result) { + var j, last, q, r, res, type; + + if (result.length == 0) { + return; + } + + last = result.length - 1; + + for (j = 0; j <= last; ++j) { + r = result[j]; + type = r.type; + res = r.result; + q = callbacks[j]; + + if (q) { + if (q[type]) { + q[type](res); + } + } + } + }; + + var myerror = function myerror(error) {}; + + plugin.exec("backgroundExecuteSqlBatch", { + dbargs: { + dbname: this.db.dbname + }, + executes: tropts + }, mysuccess, myerror); + }; + + SQLitePluginTransaction.prototype.abort = function (txFailure) { + var failed, succeeded, tx; + + if (this.finalized) { + return; + } + + tx = this; + + succeeded = function succeeded(tx) { + txLocks[tx.db.dbname].inProgress = false; + tx.db.startNextTransaction(); + + if (tx.error) { + tx.error(txFailure); + } + }; + + failed = function failed(tx, err) { + txLocks[tx.db.dbname].inProgress = false; + tx.db.startNextTransaction(); + + if (tx.error) { + tx.error(newSQLError("error while trying to roll back: " + err.message, err.code)); + } + }; + + this.finalized = true; + + if (this.txlock) { + this.addStatement("ROLLBACK", [], succeeded, failed); + this.run(); + } else { + succeeded(tx); + } + }; + + SQLitePluginTransaction.prototype.finish = function () { + var failed, succeeded, tx; + + if (this.finalized) { + return; + } + + tx = this; + + succeeded = function succeeded(tx) { + txLocks[tx.db.dbname].inProgress = false; + tx.db.startNextTransaction(); + + if (tx.success) { + tx.success(); + } + }; + + failed = function failed(tx, err) { + txLocks[tx.db.dbname].inProgress = false; + tx.db.startNextTransaction(); + + if (tx.error) { + tx.error(newSQLError("error while trying to commit: " + err.message, err.code)); + } + }; + + this.finalized = true; + + if (this.txlock) { + this.addStatement("COMMIT", [], succeeded, failed); + this.run(); + } else { + succeeded(tx); + } + }; + + SQLitePluginTransaction.prototype.abortFromQ = function (sqlerror) { + if (this.error) { + this.error(sqlerror); + } + }; + + dblocations = { + 'default': 'nosync', + 'Documents': 'docs', + 'Library': 'libs' + }; + + SQLiteFactory = function SQLiteFactory() {}; + + SQLiteFactory.prototype.DEBUG = function (debug) { + plugin.sqlitePlugin.DEBUG = debug; + }; + + SQLiteFactory.prototype.sqliteFeatures = function () { + return { + isSQLitePlugin: true + }; + }; + + SQLiteFactory.prototype.openDatabase = argsArray(function (args) { + var errorcb, first, okcb, openargs, readOnly; + + if (args.length < 1) { + return null; + } + + first = args[0]; + openargs = null; + + okcb = errorcb = function errorcb() {}; + + if (first.constructor === String) { + openargs = { + name: first, + dblocation: dblocations['default'] + }; + + if (args.length >= 5) { + okcb = args[4]; + + if (args.length > 5) { + errorcb = args[5]; + } + } + } else { + openargs = first; + readOnly = !!openargs.readOnly; + + if (!readOnly && (!openargs.location || openargs.location.constructor !== String || !dblocations.hasOwnProperty(openargs.location))) { + openargs.dblocation = dblocations['default']; + } else { + openargs.dblocation = dblocations[openargs.location]; + } + + if (!!openargs.createFromLocation) { + if (openargs.createFromLocation === 1) { + openargs.assetFilename = "1"; + } else if (typeof openargs.createFromLocation == 'string') { + openargs.assetFilename = openargs.createFromLocation; + } + } + + if (!!openargs.androidDatabaseImplementation && openargs.androidDatabaseImplementation === 2) { + openargs.androidOldDatabaseImplementation = 1; + } + + if (!!openargs.androidLockWorkaround && openargs.androidLockWorkaround === 1) { + openargs.androidBugWorkaround = 1; + } + + if (args.length >= 2) { + okcb = args[1]; + + if (args.length > 2) { + errorcb = args[2]; + } + } + } + + return new SQLitePlugin(openargs, okcb, errorcb); + }); + + SQLiteFactory.prototype.echoTest = function (success, error) { + var inputTestValue = 'test-string'; + + var mysuccess = function mysuccess(testValue) { + if (testValue === inputTestValue) { + return success(); + } else { + return error("Mismatch: got: " + testValue + " , expected: " + inputTestValue); + } + }; + + var myerror = function myerror(e) { + return error(e); + }; + + plugin.exec("echoStringValue", { + value: inputTestValue + }, mysuccess, myerror); + }; + + SQLiteFactory.prototype.deleteDatabase = function (first, success, error) { + var args = {}; + + if (first.constructor === String) { + args.path = first; + args.dblocation = dblocations['default']; + } else { + if (!(first && first['name'])) { + throw new Error("Please specify db name via name property"); + } + + args.path = first.name; + + if (!first.location || first.location.constructor !== String || !dblocations.hasOwnProperty(first.location)) { + args.dblocation = dblocations['default']; + } else { + args.dblocation = dblocations[first.location]; + } + } + + var mysuccess = function mysuccess(r) { + delete SQLitePlugin.prototype.openDBs[args.path]; + + if (!!success) { + return success(r); + } + }; + + var myerror = function myerror(e) { + if (!!error) { + return error(e); + } else {} + }; + + plugin.exec("delete", args, mysuccess, myerror); + }; + + plugin.sqlitePlugin = { + SQLiteFactory: SQLiteFactory, + SQLitePluginTransaction: SQLitePluginTransaction, + SQLitePlugin: SQLitePlugin + }; + module.exports = plugin.sqlitePlugin; +},863,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -118930,7 +125870,1074 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},817,[3,270,6,7,566,438]); +},864,[3,270,6,7,566,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Route = exports.Action = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _toConsumableArray2 = _$$_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 _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _excluded = ["appName", "bundleId", "uniqueId", "version"]; + + 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 Route = exports.Route = function () { + function Route(name) { + var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date().getTime(); + (0, _classCallCheck2.default)(this, Route); + this.time = time; + this.name = name; + } + + return (0, _createClass2.default)(Route, [{ + key: "getName", + value: function getName() { + return this.name; + } + }, { + key: "getTime", + value: function getTime() { + return this.time; + } + }, { + key: "toString", + value: function toString() { + return "{\"time\": " + this.time + ", \"name\": \"" + this.name + "\" }"; + } + }, { + key: "equals", + value: function equals(route) { + return this.name === route.getName(); + } + }]); + }(); + + var Action = exports.Action = function (_Route) { + function Action(name, params) { + var _this; + + var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date().getTime(); + (0, _classCallCheck2.default)(this, Action); + _this = _callSuper(this, Action, [name, time]); + _this.params = params; + return _this; + } + + (0, _inherits2.default)(Action, _Route); + return (0, _createClass2.default)(Action, [{ + key: "getParams", + value: function getParams() { + return this.params || {}; + } + }, { + key: "toString", + value: function toString() { + return "{\"time\": " + this.time + ", \"name\": \"" + this.name + "\", \"params\": " + JSON.stringify(this.params) + " }"; + } + }, { + key: "equals", + value: function equals(action) { + return this.name === action.getName() && _$$_REQUIRE(_dependencyMap[9]).JSUtils.equals(this.params, action.getParams()); + } + }]); + }(Route); + + var Session = exports.default = function () { + function Session() { + var actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var routes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date().getTime(); + var orientation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _deviceUtils.default.getCurrentOrientation(); + (0, _classCallCheck2.default)(this, Session); + this.startTime = time; + this.startOrientation = orientation.toLowerCase(); + this.actions = actions; + this.navigation = routes; + } + + return (0, _createClass2.default)(Session, [{ + key: "filterRoute", + value: function filterRoute(newRoute, routesList) { + var lastRoute = routesList[routesList.length - 1]; + + if (!lastRoute || !lastRoute.equals(newRoute)) { + var sameRoutes = routesList.filter(function (route) { + return newRoute.getTime() - route.getTime() < 1000 && route.equals(newRoute); + }); + return sameRoutes.length > 0; + } + + return true; + } + }, { + key: "addAction", + value: function addAction(name, params) { + var newAction = new Action(name, params); + + if (!this.filterRoute(newAction, this.actions)) { + this.actions.push(newAction); + } + } + }, { + key: "addRoute", + value: function addRoute(route) { + var newRoute = new Route(route); + + if (!this.filterRoute(newRoute, this.navigation)) { + this.navigation.push(newRoute); + } + } + }, { + key: "getActions", + value: function getActions() { + return this.actions || []; + } + }, { + key: "getNavigation", + value: function getNavigation() { + return this.navigation || []; + } + }, { + key: "getDuration", + value: function getDuration() { + var lastAction = this.actions[this.actions.length - 1]; + + if (lastAction) { + return lastAction.getTime() - this.startTime; + } + + return 0; + } + }, { + key: "getActionsCounters", + value: function getActionsCounters() { + return this.actions.reduce(function (current, action) { + var name = action.getName(); + current[name] = current[name] ? current[name] + 1 : 1; + return current; + }, {}); + } + }, { + key: "getRoutesCounters", + value: function getRoutesCounters() { + var _this2 = this; + + return this.navigation.reduce(function (current, route, index) { + var prevRoute = _this2.navigation[index - 1]; + var nextRoute = _this2.navigation[index + 1]; + var endTime = new Date().getTime(); + + if (nextRoute) { + endTime = nextRoute.getTime(); + } + + var name = route.getName(); + var times = 1; + var duration = endTime - route.getTime(); + + if (current[name]) { + var _current$name = current[name], + prevTimes = _current$name.times, + prevDuration = _current$name.duration; + + if (!prevRoute || prevRoute && name !== prevRoute.getName()) { + times = prevTimes + 1; + } + + duration += prevDuration; + } + + current[name] = { + times: times, + duration: duration + }; + return current; + }, {}); + } + }, { + key: "getOrientationInfo", + value: function getOrientationInfo() { + var rotationActions = [new Action("rotate_" + this.startOrientation, {}, this.startTime)]; + rotationActions.push.apply(rotationActions, (0, _toConsumableArray2.default)(this.actions.filter(function (action) { + return action.getName().startsWith("rotate_"); + }))); + + if (rotationActions && rotationActions.length > 0) { + var orientationDurations = rotationActions.reduce(function (current, action, index) { + var nextAction = rotationActions[index + 1]; + var endTime = new Date().getTime(); + + if (nextAction) { + endTime = nextAction.getTime(); + } + + var orientation = action.getName().replace("rotate_", ""); + var duration = endTime - action.getTime(); + + if (current[orientation]) { + duration += current[orientation]; + } + + current[orientation] = duration; + return current; + }, {}); + var totalTime = Object.keys(orientationDurations).reduce(function (current, orientation) { + return current + orientationDurations[orientation]; + }, 0); + return Object.keys(orientationDurations).reduce(function (current, orientation) { + current[orientation] = totalTime ? orientationDurations[orientation] / totalTime * 100 : 0; + return current; + }, {}); + } + + return {}; + } + }, { + key: "getFullReport", + value: function getFullReport() { + var _PlatformUtils$info = _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.info, + appName = _PlatformUtils$info.appName, + bundleId = _PlatformUtils$info.bundleId, + uniqueId = _PlatformUtils$info.uniqueId, + storeVersion = _PlatformUtils$info.version, + deviceInfo = (0, _objectWithoutProperties2.default)(_PlatformUtils$info, _excluded); + + var version = _deviceUtils.default.getAppVersion(); + + var appInfo = { + pSetup: global.getAppPSetup(), + machine: global.getAppServer(), + appName: appName, + bundleId: bundleId, + version: version + }; + + if (version !== storeVersion) { + appInfo.storeVersion = storeVersion; + } + + return { + startTime: this.startTime, + startOrientation: this.startOrientation, + duration: this.getDuration(), + actions: this.actions, + routes: this.navigation, + orientation: this.getOrientationInfo(), + deviceInfo: deviceInfo, + appInfo: appInfo + }; + } + }, { + key: "getReport", + value: function getReport() { + return Object.assign({}, this.getFullReport(), { + actions: this.getActionsCounters(), + routes: this.getRoutesCounters() + }); + } + }, { + key: "toString", + value: function toString() { + return "{\"startTime\": " + this.startTime + ", \"startOrientation\": \"" + this.startOrientation + "\",\n \"actions\": " + JSON.stringify(this.actions.map(function (action) { + return action.toString(); + })) + ", \"navigation\": " + JSON.stringify(this.navigation.map(function (route) { + return route.toString(); + })) + "}"; + } + }]); + }(); +},865,[3,4,22,11,13,14,6,7,434,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.URL_TYPES = exports.SHOW_TYPES_ARTICLE = exports.RSS_ENABLED = exports.PaperSetupConfig = exports.PAGES_NAVIGATION_BUTTONS_LAYOUT = exports.NEWSMEMORY_START_MODE = exports.NEWSMEMORY_SCREENS_NAME = exports.NEWSMEMORY_SCREENS = exports.NEWSMEMORY_ENABLED = exports.MERGE_ARTICLES_TYPES = exports.MAX_SHARE_CHECK_TYPES = exports.LATEST_AVAILABLE_EDITION_FORMAT = exports.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = exports.ENCRYPT_FILENAME_TYPE = exports.DEFAULT = exports.BOTH_ENABLED = exports.ARTICLE_TITLE_BOX_MODE = 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 _PaperSetupHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _Payment = _$$_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 DEFAULT = exports.DEFAULT = "0"; + var RSS_ENABLED = exports.RSS_ENABLED = "1"; + var NEWSMEMORY_ENABLED = exports.NEWSMEMORY_ENABLED = "2"; + var BOTH_ENABLED = exports.BOTH_ENABLED = "3"; + var NEWSMEMORY_SCREENS = exports.NEWSMEMORY_SCREENS = { + REACT: 0, + HTML5: 2 + }; + var NEWSMEMORY_SCREENS_NAME = exports.NEWSMEMORY_SCREENS_NAME = { + REACT: "NewsmemoryScreen", + HTML5: "NewsmemoryHTML5Screen" + }; + var URL_TYPES = exports.URL_TYPES = { + NONE: "none", + UNDERLINE: "underline", + SQUARED: "squared", + ROUNDED: "rounded" + }; + var MERGE_ARTICLES_TYPES = exports.MERGE_ARTICLES_TYPES = { + NORMAL: 0, + MERGED: 1, + ONLY_FIRST: 2, + PAGE_REFS: 3 + }; + var NEWSMEMORY_START_MODE = exports.NEWSMEMORY_START_MODE = { + READ: "read", + SWIPE: "swipe", + BROWSE: "browse" + }; + var SHOW_TYPES_ARTICLE = exports.SHOW_TYPES_ARTICLE = { + ONLY_TEXT: "0", + TEXT_AND_GRAPH: "1", + ALL: "2" + }; + var PAGES_NAVIGATION_BUTTONS_LAYOUT = exports.PAGES_NAVIGATION_BUTTONS_LAYOUT = { + HIDDEN: "0", + FIXED: "1", + ANIMATED: "2" + }; + var LATEST_AVAILABLE_EDITION_FORMAT = exports.LATEST_AVAILABLE_EDITION_FORMAT = { + PLAIN_MESSAGE: "0", + ONLY_EDITION: "1", + ISSUE_AND_EDITION: "2" + }; + var ENCRYPT_FILENAME_TYPE = exports.ENCRYPT_FILENAME_TYPE = { + NONE: 0, + MAIN: 1, + XPAPER: 2 + }; + var MAX_SHARE_CHECK_TYPES = exports.MAX_SHARE_CHECK_TYPES = { + LOCAL: 1, + REMOTE: 2 + }; + var ARTICLE_TITLE_BOX_MODE = exports.ARTICLE_TITLE_BOX_MODE = { + NEVER: "0", + EDITORIAL_ONLY: "1", + ALL: "2" + }; + var FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = exports.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = "device=$deviceType&issue=$issue&edition=$edition&page=$page&article_id=$articleId&action=$action&epaper_access=$ePaperAccess&app_mode=$appSide&title=$title&site_id=$siteId&remote_site_id=$remoteSiteId"; + var defaultCustomCSSFilename = "csscustom"; + var KEYS_REQUIRE_RESTART = ["pSetup", "paper", "layoutStyle", "layoutSubStyle", "newsmemoryToUse", "rssIsEnabled", "newsMemoryIsEnabled", "migrate", "comScoreId", "comScorePublisherSecret", "comScoreAppName", "rempAccountURL", "adobeAnalyticsEnabled", "adobeAnalyticsConfig", "matherAnalyticsEnabled", "matomoEnabled", "matomoConfig", "matomoTrackerEnabled", "matomoTrackerConfig", "facebookAnalyticsEnabled", "attConfig", "iubendaEnabled", "iubendaConfig", "bundleUpdateAvailable", "resetAppBundle", "isGenericApp", "rnStyles", "fixButtonsBarToBottom", "externalXPapers", "pushTags", "useAsymmetricCardList", "preventScreenshots", "showNativeOptionsPageFallbackUrl", "lockPanIfNotZoomedByDegrees", "showOpenArticleExtraOnTitleBox", "osanoEnabled", "osanoConfig"]; + var KEYS_LAYOUT_UPDATE = ["checksum"]; + var KEYS_NO_UPDATE = ["json", "pSetupFileTime", "checksum", "lastIssue", "lastEdition", "demoIssue", "external"]; + var keys = _PaperSetupHelper.default.SP.keys; + + var PaperSetupConfig = exports.PaperSetupConfig = function (_PaperSetupBaseConfig) { + function PaperSetupConfig() { + var _this; + + (0, _classCallCheck2.default)(this, PaperSetupConfig); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, PaperSetupConfig, [].concat(args)); + _this.external = false; + return _this; + } + + (0, _inherits2.default)(PaperSetupConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(PaperSetupConfig, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var _yield$this$getValue; + + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(PaperSetupConfig.prototype), "init", this).call(this, json); + this.layoutStyle = yield this.getValue(keys.layout_style); + + if (!this.layoutStyle) { + return false; + } + + if (this.pSetup === global.getAppPSetup()) { + var forcedSubLayout = yield global.getUserSettings().getForceLayoutSubStyle(); + this.layoutSubStyle = forcedSubLayout || (yield this.getValue(keys.layout_sub_style)); + } else { + this.layoutSubStyle = yield this.getValue(keys.layout_sub_style); + } + + var userIP = (yield this.getValue(keys.user_ip)) || "n/a"; + + _$$_REQUIRE(_dependencyMap[11]).NetworkUtils.setIP(userIP); + + this.isAllowedIP = (yield this.getValue(keys.is_allowed_ip)) === "1"; + this.machine = yield this.getValue(keys.machine); + this.premiumIconURL = this.machine.concat("/eeLayout/").concat(this.layoutStyle).concat("/").concat(this.layoutSubStyle).concat("/images/webapp/tecnavia_premium_article.png"); + this.paper = yield this.getValue(keys.paper); + this.xpaper = yield this.getValue(keys.xpaper); + this.appModeSelectionPageEnabled = (yield this.getValue(keys.app_mode_selection_page_enabled)) === "1"; + this.appModeSelectionPageURL = yield this.getValue(keys.app_mode_selection_page_url); + this.appModeSelectionPageVersion = Number.parseInt(yield this.getValue(keys.app_mode_selection_page_version), 10) || 0; + this.poweredBy = yield this.getValue(keys.powered_by); + this.poweredByURL = yield this.getValue(keys.powered_by_url); + this.copyright = yield this.getValue(keys.copyright); + this.copyrightURL = yield this.getValue(keys.copyright_url); + this.addDisclaimer = yield this.getValue(keys.add_disclaimer); + this.paperName = yield this.getValue(keys.paper_name); + this.language = yield this.getValue(keys.language); + this.siteDomain = yield this.getValue(keys.site_domain); + this.isLite = (yield this.getValue(keys.is_lite)) === "1"; + this.specials = (yield this.getValue(keys.init_x_paper_not_in_view)) || ""; + this.externalXPapers = (yield this.getValue(keys.external_xpapers)) || ""; + this.xPapers = (yield this.getValue(keys.xpapers)) || ""; + this.specialBeforeIndex = yield this.getValue(keys.special_before_index); + this.specialBeforeIndexTablet = yield this.getValue(keys.special_before_index_tablet); + this.specialBeforeIndexPhone = yield this.getValue(keys.special_before_index_phone); + this.udb = yield this.getValue(keys.udb); + this.loginStatus = new (_$$_REQUIRE(_dependencyMap[12]).LoginStatus)(); + + if (!(yield this.loginStatus.init(this.udb))) {} + + this.loginStatus.setOneTimeToken(yield this.getValue(keys.preview_token)); + var refreshesTAUIDString = (yield this.getValue(keys.refreshes_tauid)) || ""; + this.refreshesTAUIDTimestamp = _$$_REQUIRE(_dependencyMap[11]).DateUtils.getUnixTimestampFromDateTimeString(refreshesTAUIDString); + var customUserAgentIsEnabled = (yield this.getValue(keys.change_user_agent_for_oauth)) === "1"; + var customUserAgent = ""; + + if (customUserAgentIsEnabled) { + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid()) { + customUserAgent = (yield this.getValue(keys.custom_user_agent_for_oauth)) || ""; + } else { + var userAgentSuffix = (yield this.getValue(keys.custom_string_to_append_to_user_agent_for_oauth)) || "Safari/{APPLE_WEBKIT_VERSION}"; + + if (userAgentSuffix) { + userAgentSuffix = userAgentSuffix.replace("{APPLE_WEBKIT_VERSION}", _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.getAppleWebKitVersion()); + customUserAgent = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.getUserAgent() + " " + userAgentSuffix; + } + } + } + + this.overrideNewsMemoryUserAgent = customUserAgent; + this.newsmemoryToUse = parseInt((yield this.getValue(keys.newsmemory_to_use)) || NEWSMEMORY_SCREENS.NATIVE, 10); + this.newsmemoryToUseTimestamp = (yield this.getValue(keys.newsmemory_to_use_timestamp)) || ""; + this.galleryDownloadEnabled = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() && (yield this.getValue(keys.gallery_download_enabled)) === "1"; + this.galleryThumbnailEnabled = (yield this.getValue(keys.gallery_thumbnail_disabled)) !== "1"; + this.openHttpLinkOnExternalBrowser = ((yield this.getValue(keys.open_http_link_on_external_browser)) || "1") !== "0"; + this.pSetupFileTime = parseInt((yield this.getValue(keys.file_time)) || -1, 10); + this.rssIndexFileTime = parseInt((yield this.getValue(keys.rss_index_file_time)) || -1, 10); + this.customLanguagePackFileTime = parseInt((yield this.getValue(keys.custom_language_pack_file_time)) || -1, 10); + this.customFontsString = (_yield$this$getValue = yield this.getValue(keys.custom_fonts)) != null ? _yield$this$getValue : ""; + this.customFontsFileTime = parseInt((yield this.getValue(keys.custom_fonts_file_time)) || -1, 10); + this.loadEditionsUrl = yield this.getValue(keys.load_editions_url); + var optionsPageMode = parseInt(yield this.getValue(keys.option_page_mode), 10); + var optionsPageBaseURL = yield this.getValue(keys.option_page_url); + var optionsPageCoordinates = (yield this.getValue(keys.option_page_coordinates)) || ""; + var optionsPageModal = (yield this.getValue(keys.option_page_modal)) === "1"; + this.optionspageConfig = new (_$$_REQUIRE(_dependencyMap[13]).OptionspageConfig)({ + mode: optionsPageMode, + baseURL: optionsPageBaseURL, + coordinatesString: optionsPageCoordinates, + modal: optionsPageModal + }); + this.optionsPageTabPath = (yield this.getValue(keys.options_page_tab_path)) || ""; + var modeEnabled = yield this.getValue(keys.mode_enabled); + this.rssIsEnabled = yield this.checkIfRssIsEnabled(); + this.newsMemoryIsEnabled = modeEnabled === DEFAULT || modeEnabled === NEWSMEMORY_ENABLED || modeEnabled === BOTH_ENABLED; + this.startupMode = yield this.getValue(keys.startup_mode); + this.startupModeTimestamp = (yield this.getValue(keys.startup_mode_timestamp)) || ""; + var baseRssUpdateURL = yield this.getValue(keys.base_rss_update_url); + baseRssUpdateURL = _$$_REQUIRE(_dependencyMap[11]).NetworkUtils.addDefaultProtocol(baseRssUpdateURL); + baseRssUpdateURL = _webUtils.default.replaceUrlPlaceHolder(baseRssUpdateURL); + this.baseRssUpdateURL = baseRssUpdateURL; + this.feedbackEnabled = (yield this.getValue(keys.feedback.enable)) === "1"; + + if (this.feedbackEnabled) { + this.feedbackConfig = new (_$$_REQUIRE(_dependencyMap[14]).FeedbackConfig)(this.pSetup, this.originalMachine); + yield this.feedbackConfig.init(json); + } + + this.disableFirebaseAnalytics = ((yield this.getValue(keys.disable_firebase_analytics)) || "0") === "1"; + this.firebaseAnalyticsCustomDimensions = (yield this.getValue(keys.firebase_analytics_custom_dimensions)) || FIREBASE_DEFAULT_CUSTOM_DIMENSIONS; + this.otherFirebaseProjects = []; + var otherFirebaseProjectsRaw = yield this.getValue(keys.other_firebase_projects); + + if (otherFirebaseProjectsRaw) { + try { + this.otherFirebaseProjects = JSON.parse(otherFirebaseProjectsRaw); + } catch (e) {} + } + + this.firebaseAnalyticsSendExternalId = ((yield this.getValue(keys.firebase_analytics_send_external_id)) || "0") === "1"; + this.rempAccountURL = yield this.getValue(keys.remp_account); + this.comScoreAppName = yield this.getValue(keys.comscore.app_name); + this.comScoreId = yield this.getValue(keys.comscore.id); + this.comScorePublisherSecret = yield this.getValue(keys.comscore.publisher_secret); + this.comScoreBaseURL = yield this.getValue(keys.comscore.base_url); + this.matherAnalyticsEnabled = ((yield this.getValue(keys.mather_analytics.enabled)) || "0") === "1"; + this.matherAnalyticsCustomerId = (yield this.getValue(keys.mather_analytics.customer_id)) || ""; + this.matherAnalyticsSiteId = (yield this.getValue(keys.mather_analytics.site_id)) || ""; + this.matherAnalyticsSendEmail = ((yield this.getValue(keys.mather_analytics.send_email)) || "0") === "1"; + this.adobeAnalyticsEnabled = ((yield this.getValue(keys.adobe_analytics.enabled)) || "0") === "1"; + + if (this.adobeAnalyticsEnabled) { + this.adobeAnalyticsConfig = new (_$$_REQUIRE(_dependencyMap[15]).AdobeAnalyticsConfig)(this.pSetup, this.originalMachine); + yield this.adobeAnalyticsConfig.init(json); + } + + this.matomoEnabled = ((yield this.getValue(keys.matomo.enabled)) || "0") === "1"; + + if (this.matomoEnabled) { + this.matomoConfig = new (_$$_REQUIRE(_dependencyMap[16]).MatomoConfig)(this.pSetup, this.originalMachine); + yield this.matomoConfig.init(json); + } + + this.matomoTrackerEnabled = ((yield this.getValue(keys.matomo_tracker.enabled)) || "0") === "1"; + + if (this.matomoTrackerEnabled) { + this.matomoTrackerConfig = new (_$$_REQUIRE(_dependencyMap[17]).MatomoTrackerConfig)(this.pSetup, this.originalMachine); + yield this.matomoTrackerConfig.init(json); + } + + var facebookAnalyticsEnabled = (yield this.getValue(keys.facebook_enabled)) || ""; + this.facebookAnalyticsEnabled = facebookAnalyticsEnabled && facebookAnalyticsEnabled !== "0"; + this.blueConicEnabled = ((yield this.getValue(keys.blueconic.enabled)) || "0") === "1"; + + if (this.blueConicEnabled) { + this.blueConicConfig = new (_$$_REQUIRE(_dependencyMap[18]).BlueConicConfig)(this.pSetup, this.originalMachine); + yield this.blueConicConfig.init(json); + } + + this.chartbeatConfig = new (_$$_REQUIRE(_dependencyMap[19]).ChartbeatConfig)(this.pSetup, this.originalMachine); + yield this.chartbeatConfig.init(json); + this.defaultConnectivity = yield this.getValue(keys.default_connectivity); + this.defaultConnectivityTimestamp = (yield this.getValue(keys.default_connectivity_timestamp)) || ""; + this.urlType = (yield this.getValue(keys.url_type)) || URL_TYPES.UNDERLINE; + this.showLinksHighlight = ((yield this.getValue(keys.showLinksHighlight)) || "1") === "1"; + this.relabel = { + fitPageButton: yield this.getValue(keys.relabel_fit_page_button), + downloadButton: yield this.getValue(keys.relabel_offline_button), + helpButton: yield this.getValue(keys.relabel_help_button), + settingsButton: yield this.getValue(keys.relabel_setting_button), + editionsButton: yield this.getValue(keys.relabel_option_button), + specialSectionButton: yield this.getValue(keys.relabel_special_sections_button), + searchButton: yield this.getValue(keys.relabel_search_button), + indexButton: yield this.getValue(keys.relabel_ebook_button), + gBookButton: yield this.getValue(keys.relabel_gbook_button), + thumbnailButton: yield this.getValue(keys.relabel_phodir_button), + feedButton: yield this.getValue(keys.relabel_feed_button) + }; + this.defaultMaxIssues = parseInt(yield this.getValue(keys.default_max_issues), 10) || 30; + this.dateFormat = yield this.getValue(keys.date_format); + this.showWeekAfterDate = (yield this.getValue(keys.show_week)) === "1"; + this.downloadMultiZips = (yield this.getValue(keys.download_multi_zips)) === "1"; + this.showTypesArticle = (yield this.getValue(keys.show_types_article)) || SHOW_TYPES_ARTICLE.TEXT_AND_GRAPH; + this.enableArticleExtra = ((yield this.getValue(keys.enable_article_extra)) || "0") === "1"; + this.maxZipsToDownloadEachRequest = parseInt(yield this.getValue(keys.max_zips_to_download_per_request), 10) || 10; + this.cssFilesToAdd = defaultCustomCSSFilename; + var otherCSSFiles = yield this.getValue(keys.css_files_to_add); + + if (otherCSSFiles) { + this.cssFilesToAdd += "," + otherCSSFiles; + } + + this.emailContent = yield this.getValue(keys.email_content); + this.emailSubject = yield this.getValue(keys.email_subject); + this.twitterText = yield this.getValue(keys.twitter_text); + this.updateDBPercentage = parseInt(yield this.getValue(keys.update_db_percentage), 10) || 50; + this.enableAdvancedGesturesMode = ((yield this.getValue(keys.enable_advanced_gestures_mode)) || "1") === "1"; + + if (this.enableAdvancedGesturesMode) { + this.twoFingersTapToArticle = ((yield this.getValue(keys.two_fingers_tap_to_article)) || "0") === "1"; + + if (this.twoFingersTapToArticle) { + this.singleTapToZoom = ((yield this.getValue(keys.single_tap_to_zoom)) || "1") === "1"; + } else { + this.singleTapToZoom = false; + } + } else { + this.twoFingersTapToArticle = true; + this.singleTapToZoom = true; + } + + this.lockHorizontalPanIfNotZoomed = ((yield this.getValue(keys.lock_horizontal_pan_if_not_zoomed)) || "0") === "1"; + this.lockPanIfNotZoomedByDegrees = yield this._getLockPanIfNotZoomedByDegrees(); + this.machineForHR = (yield this.getValue(keys.machine_for_hr)) || this.machine; + this.translationAvailable = (yield this.getValue(keys.translation_available)) === "1"; + this.translationServer = (yield this.getValue(keys.translation_server)) || ""; + this.useNativeAccessibility = ((yield this.getValue(keys.use_native_accessibility)) || "0") === "1" || global.isDebug; + this.useCarMode = ((yield this.getValue(keys.use_car_mode)) || "0") === "1" || global.isDebug; + this.showNativeOptionsPageFallbackUrl = yield this.getValue(keys.show_native_options_page_fallback_url); + this.showNativeOptionsPage = ((yield this.getValue(keys.show_native_options_page)) || "0") === "1"; + this.showNativeSettingsScreen = ((yield this.getValue(keys.show_native_settings_screen)) || "0") === "1" || global.isDebug; + this.showTranslationCustomization = ((yield this.getValue(keys.enable_translation_customization)) || "1") === "1"; + this.showThemesCustomization = ((yield this.getValue(keys.show_themes_customization)) || "1") === "1"; + this.enableZoomLevelCustomization = ((yield this.getValue(keys.enable_zoom_level_customization)) || "1") === "1"; + this.enableArticleTypesCustomization = ((yield this.getValue(keys.enable_article_types_customization)) || "1") === "1"; + this.showArticleColumnViewCustomization = ((yield this.getValue(keys.show_article_column_view_customization)) || "1") === "1"; + this.showNavigationButtonsLayoutCustomization = ((yield this.getValue(keys.show_navigation_buttons_layout_customization)) || "1") === "1"; + this.showXPaperNavigationCloseButton = ((yield this.getValue(keys.show_xpaper_navigation_close_button)) || "0") === "1"; + this.showHighlightBehaviorCustomization = ((yield this.getValue(keys.show_highlight_behavior_customization)) || "1") === "1"; + this.showOpenArticleExtraOnTitleBox = (yield this.getValue(keys.show_open_article_extra_on_title_box)) || ARTICLE_TITLE_BOX_MODE.NEVER; + this.changeFavoriteEdition = ((yield this.getValue(keys.change_favorite_edition)) || "0") === "1"; + this.favoriteEdition = (yield this.getValue(keys.favorite_edition)) || ""; + this.enableConnectivityOptions = ((yield this.getValue(keys.enable_connectivity_options)) || "1") === "1"; + this.enableFontSizeCustomization = ((yield this.getValue(keys.enable_font_size_customization)) || "1") === "1"; + this.enableGraphSizeCustomization = ((yield this.getValue(keys.enable_graph_size_customization)) || "1") === "1"; + this.fitGraphicArticle = parseInt((yield this.getValue(keys.fit_graphic_article)) || "1", 10); + this.subPath = yield this.getValue(keys.sub_path); + this.extraLinkColor = (yield this.getValue(keys.extra_link_color)) || "255,0,0,0.25"; + var bgDurationTemp = parseInt(yield this.getValue(keys.background_duration_article_selected), 10); + this.backgroundDurationArticleSelected = _$$_REQUIRE(_dependencyMap[11]).JSUtils.isNumber(bgDurationTemp) ? bgDurationTemp : _$$_REQUIRE(_dependencyMap[20]).HIDE_ANIMATION_DURATION; + var bgTimerTemp = parseInt(yield this.getValue(keys.background_timer_article_selected), 10); + this.backgroundTimerArticleSelected = _$$_REQUIRE(_dependencyMap[11]).JSUtils.isNumber(bgTimerTemp) ? bgTimerTemp : _$$_REQUIRE(_dependencyMap[20]).HIDE_ANIMATION_TIMER; + this.backgroundColorArticleSelected = (yield this.getValue(keys.background_color_article.selected)) || "255,0,0,0.25"; + this.backgroundColorArticleToSelect = (yield this.getValue(keys.background_color_article.to_select)) || this.backgroundColorArticleSelected; + this.previewHighlightEnabled = ((yield this.getValue(keys.preview_highlight_enabled)) || "0") === "1"; + this.previewHighlightDurationSeconds = parseInt((yield this.getValue(keys.preview_highlight_duration_seconds)) || "2", 10); + this.zoomingFactor = parseInt(yield this.getValue(keys.zooming_factor), 10); + this.zoomingFactor = this.zoomingFactor <= 0 ? 100 : this.zoomingFactor; + this.maxZoom = parseInt((yield this.getValue(keys.max_zoom)) || "5", 10); + this.pdfThumbnailRatio = parseFloat((yield this.getValue(keys.pdf_thumbnail_ratio)) || "0.5"); + this.einkCompleteHrFactor = parseFloat((yield this.getValue(keys.eink_complete_hr_factor)) || "2.2"); + this.hrFactor = parseInt((yield this.getValue(keys.hr_factor)) || "1", 10); + this.pdfFactor = parseFloat((yield this.getValue(keys.pdf_factor)) || "1.2"); + this.pdfFactorLandscape = parseFloat((yield this.getValue(keys.pdf_factor_landscape)) || "1"); + this.forcePdfInRoamingMode = ((yield this.getValue(keys.force_pdf_in_roaming_mode)) || "0") === "1"; + this.lowPagesToRender = parseInt((yield this.getValue(keys.low_pages_to_render)) || "1", 10); + this.midPagesToRender = parseInt((yield this.getValue(keys.mid_pages_to_render)) || "1", 10); + this.loadMidResOnScroll = ((yield this.getValue(keys.load_mid_res_on_scroll)) || "1") === "1"; + this.enableArticleTextSelection = (yield this.getValue(keys.enable_article_text_selection)) === "1"; + this.showEditionThumbs = (yield this.getValue(keys.show_edition_thumbs)) === "1"; + this.scrollTiles = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet() ? yield this.getValue(keys.scroll_tiles) : yield this.getValue(keys.scroll_tiles_phone); + this.scrollTiles = parseInt(this.scrollTiles, 10); + this.onLoginErrorGoTo = (yield this.getValue(keys.on_login_error_go_to)) || _$$_REQUIRE(_dependencyMap[21]).tabs.home; + this.onValidationErrorGoTo = (yield this.getValue(keys.on_validation_error_go_to)) || _$$_REQUIRE(_dependencyMap[21]).tabs.login; + this.timeLimitCheckEdition = (parseInt(yield this.getValue(keys.time_limit_check_edition), 10) || 10) * 60 * 1000; + this.latestEditionAvailableMessageFormat = parseInt(yield this.getValue(keys.latest_edition_available_message_format), 10) || LATEST_AVAILABLE_EDITION_FORMAT.ISSUE_AND_EDITION; + this.timeLimitCheckLogin = (parseInt(yield this.getValue(keys.time_limit_check_login), 10) || 7200) * 1000; + this.timeLimitForgetLogin = (parseInt(yield this.getValue(keys.time_limit_forget_login), 10) || 120) * 60 * 1000; + this.lastPSetup = (yield this.getValue(keys.last_pSetup)) || this.pSetup; + this.lastIssue = yield this.getValue(keys.last_issue); + this.lastEdition = yield this.getValue(keys.last_edition); + this.demoIssue = yield this.getValue(keys.demo_issue); + this.articleModeDefaultFullscreenPortrait = (yield this.getValue(keys.force_article_mode_fullscreen_portrait)) || "0"; + this.articleModeDefaultFullscreenLandscape = (yield this.getValue(keys.force_article_mode_fullscreen_landscape)) || "0"; + this.enableTextToSpeech = parseInt((yield this.getValue(keys.enable_text_to_speech)) || "1", 10) === 1; + this.enableTextToSpeechPlayer = parseInt((yield this.getValue(keys.enable_text_to_speech_player)) || "0", 10) === 1; + this.textToSpeechRate = parseFloat(yield this.getValue(keys.text_to_speech_rate)) || 0; + this.textToSpeechChunkLength = parseInt(yield this.getValue(keys.text_to_speech_chunk_length), 10) || 1000; + this.lowSpeedLimit = parseInt(yield this.getValue(keys.low_speed_limit), 10) || 250; + this.disableLowSpeedLimit = parseInt((yield this.getValue(keys.disable_low_speed_limit)) || "0", 10) === 1; + this.baseInAppPurchaseAPIUrl = yield this.getValue(keys.base_iap_api_url); + this.allAndroidSkus = yield this.getValue(keys.all_skus); + this.isNNB = parseInt(yield this.getValue(keys.is_nnb), 10) === 1; + this.enableVmodeAndFitOrientation = parseInt((yield this.getValue(keys.enable_vmode_and_fit_orientation)) || "1", 10) === 1; + this.fitPageType = parseInt((yield this.getValue(keys.fit_page_type)) || (this.enableVmodeAndFitOrientation ? "7" : "6"), 10); + this.startInIndexMode = (yield this.getValue(keys.start_in_index_mode)) || "0"; + this.epaperStartMode = (yield this.getValue(keys.epaper_start_mode)) || NEWSMEMORY_START_MODE.READ; + this.disableEPaperModeSelectionPage = ((yield this.getValue(keys.disable_epaper_mode_selection_page)) || "0") === "1"; + this.cdnEnabled = ((yield this.getValue(keys.cdn_enabled)) || "1") === "1"; + this.cdnServer = yield this.getValue(keys.cdn_server); + this.cdnVersion = parseInt((yield this.getValue(keys.cdn_version)) || "0", 10); + this.landingPageURL = yield this.getValue(keys.landing_page_url); + this.landingPageVersion = parseInt(yield this.getValue(keys.landing_page_version), 10) || 0; + this.showLandingPageOnce = (yield this.getValue(keys.show_landing_page_once)) === "1"; + this.forcedSharedSecret = yield this.getValue(keys.forced_shared_secret); + this.useIOSSandboxReceiptValidation = (yield this.getValue(keys.use_ios_sandbox_receipt_validation)) === "1"; + this.encryptFilenames = parseInt((yield this.getValue(keys.use_cc)) || ENCRYPT_FILENAME_TYPE.NONE, 10); + this.migrate = ((yield this.getValue(keys.migrate)) || "0") === "1"; + this.hybridVersion = (yield this.getValue(keys.hybrid_version)) || "0"; + this.enableAppendFirstPages = parseInt((yield this.getValue(keys.append_first_pages)) || "1", 10) === 1; + this.pngQualityFactor = parseFloat((yield this.getValue(keys.png_quality_factor)) || "1.8"); + this.generatePNGBasedOnScreenDimensions = ((yield this.getValue(keys.generate_png_based_on_screen_dimensions)) || "1") === "1"; + this.considerPixelRatioInPNGGeneration = ((yield this.getValue(keys.consider_pixel_ratio_in_png_generation)) || "1") === "1"; + this.pngWidthLimit = parseInt((yield this.getValue(keys.png_width_limit)) || "1080", 10); + this.enablePrint = ((yield this.getValue(keys.print_enabled)) || "1") === "1"; + this.printToLetter = ((yield this.getValue(keys.print_to_letter)) || "1") === "1"; + this.printMargin = parseInt((yield this.getValue(keys.print_margin)) || "10", 10); + this.isGenericApp = ((yield this.getValue(keys.generic_app_enabled)) || "0") === "1"; + this.publicationsPageURL = (yield this.getValue(keys.store_url)) || ""; + this.iapActive = ((yield this.getValue(keys.iap_active)) || "0") === "1"; + var pSetupPaymentsString = (yield this.getValue(keys.payments)) || "[]"; + var pSetupPaymentsArray = JSON.parse(pSetupPaymentsString); + this.payments = pSetupPaymentsArray.map(function (pSetupPayment) { + return new _Payment.default(pSetupPayment); + }); + this.enableMultipleSubscriptionsAlert = ((yield this.getValue(keys.enable_multiple_subscriptions_alert)) || "1") === "1"; + this.protectSite = parseInt((yield this.getValue(keys.protect_site)) || "0", 10); + + if (this.protectSite > 0) { + this.validateSite = parseInt((yield this.getValue(keys.validate_site)) || "0", 10); + } else { + this.validateSite = 0; + } + + this.pagesNavigationButtonsLayout = (yield this.getValue(keys.pages_navigation_buttons_layout)) || PAGES_NAVIGATION_BUTTONS_LAYOUT.FIXED; + this.animateLayoutFooter = ((yield this.getValue(keys.animate_layout_footer)) || "0") === "1"; + this.fixButtonsBarToBottom = ((yield this.getValue(keys.fix_buttons_bar_to_bottom)) || "0") === "1" && _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet(); + this.dfpReloadTime = parseInt((yield this.getValue(keys.dfp_reload_time)) || "20000", 10); + this.twoFingersTapHintEnabled = ((yield this.getValue(keys.two_fingers_tap_hint_enabled)) || "1") === "1"; + this.twoFingersTapMaxHints = parseInt((yield this.getValue(keys.two_fingers_tap_max_hints)) || "5", 10); + this.enableShare = ((yield this.getValue(keys.enable_share)) || "1") === "1"; + this.maxShares = parseInt((yield this.getValue(keys.max_shares)) || "0", 10); + this.maxSharesCheckType = parseInt((yield this.getValue(keys.max_shares_check_type)) || "1", 10); + this.messageMaxShare = (yield this.getValue(keys.message_max_share)) || ""; + this.downloadSinglePdf = ((yield this.getValue(keys.download_single_pdf)) || "0") === "1"; + this.mergeArticles = parseInt((yield this.getValue(keys.merge_articles)) || MERGE_ARTICLES_TYPES.NORMAL, 10); + this.columnView = parseInt((yield this.getValue(keys.column_view)) || "1", 10); + this.enablePhoneArticleLayoutOnTabletInLandscape = ((yield this.getValue(keys.enable_phone_article_layout_on_tablet_in_landscape)) || "0") === "1"; + this.enableDesktopArticleLayoutOnIPadProInLandscape = ((yield this.getValue(keys.enable_desktop_article_layout_on_ipad_pro_in_landscape)) || "0") === "1"; + this.showArtComplete = ((yield this.getValue(keys.show_art_complete)) || "0") === "1"; + this.calculateMidAds = ((yield this.getValue(keys.calculate_mid_ads)) || "0") === "1"; + this.keepArticlePositionOnRotation = ((yield this.getValue(keys.keep_article_position_on_rotation)) || "0") === "1"; + this.enableArticleImageReposition = ((yield this.getValue(keys.enable_article_image_reposition)) || "0") === "1"; + this.enableArticleBylineHRs = ((yield this.getValue(keys.enable_article_byline_hrs)) || "1") === "1"; + this.ads = (yield this.getValue(keys.ads)) || ""; + this.enableInStoryAdMarker = ((yield this.getValue(keys.enable_instory_ad_marker)) || "0") === "1"; + this.inStoryAdMarkerText = (yield this.getValue(keys.instory_ad_marker_text)) || global.strings("str_advertisement"); + this.disableRnStyles = ((yield this.getValue(keys.disable_rn_styles)) || "0") === "1"; + this.rnStyles = {}; + var rnStyleRaw = yield this.getValue(keys.rn_styles); + + if (rnStyleRaw) { + try { + this.rnStyles = JSON.parse(rnStyleRaw); + } catch (e) {} + } else {} + + this.rnStylesFileTime = parseInt((yield this.getValue(keys.rn_styles_file_time)) || -1, 10); + this.sslCertificateFileTime = parseInt((yield this.getValue(keys.ssl_certificate_file_time)) || -1, 10); + this.deviceDpi = parseInt((yield this.getValue(keys.device_dpi)) || 0, 10); + this.tocStyle = (yield this.getValue(keys.toc_style)) || "list"; + this.tocStylePreview = (yield this.getValue(keys.toc_style_preview)) || "all_art"; + this.enableTabIndexMode = ((yield this.getValue(keys.enable_tab_index_mode)) || "0") === "1"; + this.showTabIndexModeCustomization = ((yield this.getValue(keys.show_tab_index_mode_customization)) || (this.enableTabIndexMode ? "1" : "0")) === "1"; + this.bundleUpdateAvailable = ((yield this.getValue(keys.bundle_update_available)) || "0") === "1"; + this.resetAppBundle = ((yield this.getValue(keys.reset_app_bundle)) || "0") === "1"; + this.seeNewspaperPreview = parseInt((yield this.getValue(keys.see_newspaper_preview)) || "0", 10); + this.pageSeeNewspaperPreview = parseInt(yield this.getValue(keys.page_see_newspaper_preview), 10) || 2; + this.hoursToSendPushRegistration = parseInt(yield this.getValue(keys.hours_to_send_push_registration), 10) || 6; + this.webviewIOSNativePlayer = ((yield this.getValue(keys.webview_ios_native_player)) || "0") === "1"; + this.webviewAndroidAllowFullscreen = ((yield this.getValue(keys.webview_android_allow_fullscreen)) || "1") === "1"; + this.webviewAllowAutoplay = ((yield this.getValue(keys.webview_allow_autoplay)) || "0") === "1"; + this.webviewCustomHTTPHeaders = {}; + var customHTTPHeadersRaw = yield this.getValue(keys.webview_custom_http_headers); + + if (customHTTPHeadersRaw) { + this.webviewCustomHTTPHeaders = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseQuerystring(customHTTPHeadersRaw); + } + + this.attConfig = new (_$$_REQUIRE(_dependencyMap[22]).ATTConfig)(this.pSetup, this.originalMachine); + yield this.attConfig.init(json); + this.iubendaEnabled = ((yield this.getValue(keys.iubenda.enabled)) || "0") === "1"; + + if (this.iubendaEnabled) { + this.iubendaConfig = new (_$$_REQUIRE(_dependencyMap[23]).IubendaConfig)(this.pSetup, this.originalMachine); + yield this.iubendaConfig.init(json); + } + + this.osanoEnabled = ((yield this.getValue(keys.osano.enabled)) || "0") === "1"; + + if (this.osanoEnabled) { + this.osanoConfig = new (_$$_REQUIRE(_dependencyMap[24]).OsanoConfig)(this.pSetup, this.originalMachine); + yield this.osanoConfig.init(json); + } + + this.showExtrasInArticleGraphicMode = ((yield this.getValue(keys.show_extras_in_article_graphic_mode)) || "0") === "1"; + this.showExtrasToLoggedUsersOnly = ((yield this.getValue(keys.show_extras_to_logged_users_only)) || "0") === "1"; + this.morseTAUID = ((yield this.getValue(keys.morse_tauid)) || "0") === "1"; + this.addWatermark = ((yield this.getValue(keys.add_watermark)) || "0") === "1"; + this.watermarkText = (yield this.getValue(keys.watermark_text)) || "$extId"; + this.disableScreenIdleTimerDelay = ((yield this.getValue(keys.disable_screen_idle_timer_delay)) || "0") === "1"; + var rawStartupParams = (yield this.getValue(keys.startup_params)) || "{}"; + + try { + this.startupParams = JSON.parse(rawStartupParams); + } catch (e) { + this.startupParams = {}; + } + + this.enableSessionCollection = ((yield this.getValue(keys.enable_session_collection)) || "0") === "1"; + this.enableSessionAutoUpload = ((yield this.getValue(keys.enable_session_auto_upload)) || "0") === "1"; + this.sessionUploadBaseURL = (yield this.getValue(keys.session_upload_base_url)) || ""; + this.disableReaderAppModal = true; + this.readerAppLearnMoreLink = ""; + + if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { + this.disableReaderAppModal = ((yield this.getValue(keys.disable_reader_app_modal)) || "0") === "1"; + this.readerAppLearnMoreLink = (yield this.getValue(keys.reader_app_learn_more_link)) || "https://apps.apple.com/story/id1614232807"; + } + + this.checksum = (yield this.getValue(keys.checksum)) || ""; + this.pushTags = (yield this.getValue(keys.push_tags)) || ""; + this.useAsymmetricCardList = ((yield this.getValue(keys.use_asymmetric_card_list)) || "1") === "1"; + this.preventScreenshots = ((yield this.getValue(keys.prevent_screenshots)) || "0") === "1"; + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "setLastIssue", + value: function setLastIssue(lastIssue) { + this.lastIssue = lastIssue; + this.setValue(keys.last_issue, lastIssue); + } + }, { + key: "setLastEdition", + value: function setLastEdition(lastEdition) { + this.lastEdition = lastEdition; + this.setValue(keys.last_edition, lastEdition); + } + }, { + key: "setLastPSetup", + value: function setLastPSetup(lastPSetup) { + this.lastPSetup = lastPSetup; + this.setValue(keys.last_pSetup, lastPSetup); + } + }, { + key: "setDemoIssue", + value: function setDemoIssue(demoIssue) { + this.demoIssue = demoIssue; + this.setValue(keys.demo_issue, demoIssue); + } + }, { + key: "setRssIndexFileTime", + value: function setRssIndexFileTime() { + var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + this.rssIndexFileTime = filetime; + this.setValue(keys.rss_index_file_time, "" + filetime); + } + }, { + key: "setCustomLanguagePackFileTime", + value: function setCustomLanguagePackFileTime() { + var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + this.customLanguagePackFileTime = filetime; + this.setValue(keys.custom_language_pack_file_time, "" + filetime); + } + }, { + key: "setCustomFontsFileTime", + value: function setCustomFontsFileTime() { + var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + this.customFontsFileTime = filetime; + this.setValue(keys.custom_fonts_file_time, "" + filetime); + } + }, { + key: "setRNStyles", + value: function setRNStyles() { + var rnStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.rnStyles = rnStyles; + this.setValue(keys.rn_styles, JSON.stringify(rnStyles)); + } + }, { + key: "setRNStylesFileTime", + value: function setRNStylesFileTime() { + var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + this.rnStylesFileTime = filetime; + this.setValue(keys.rn_styles_file_time, "" + filetime); + } + }, { + key: "setSSLCertificateFileTime", + value: function setSSLCertificateFileTime() { + var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + this.sslCertificateFileTime = filetime; + this.setValue(keys.ssl_certificate_file_time, "" + filetime); + } + }, { + key: "setModeEnabled", + value: function setModeEnabled(modeEnabled) { + var runtime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + this.rssIsEnabled = modeEnabled === RSS_ENABLED || modeEnabled === BOTH_ENABLED; + this.newsMemoryIsEnabled = modeEnabled === DEFAULT || modeEnabled === NEWSMEMORY_ENABLED || modeEnabled === BOTH_ENABLED; + + if (!runtime) { + this.setValue(keys.mode_enabled, modeEnabled); + } + } + }, { + key: "checkIfRssIsEnabled", + value: function () { + var _checkIfRssIsEnabled = (0, _asyncToGenerator2.default)(function* () { + var modeEnabled = yield this.getValue(keys.mode_enabled); + return modeEnabled === RSS_ENABLED || modeEnabled === BOTH_ENABLED; + }); + + function checkIfRssIsEnabled() { + return _checkIfRssIsEnabled.apply(this, arguments); + } + + return checkIfRssIsEnabled; + }() + }, { + key: "getPaymentByProductId", + value: function getPaymentByProductId(productId) { + if (this.payments) { + return this.payments.find(function (payment) { + return payment.checkProductId(productId); + }); + } + + return undefined; + } + }, { + key: "setExternal", + value: function setExternal(external) { + this.external = external; + } + }, { + key: "setAllowedIP", + value: function setAllowedIP(isAllowedIP) { + this.isAllowedIP = isAllowedIP; + this.setValue(keys.is_allowed_ip, isAllowedIP ? "1" : "0"); + } + }, { + key: "setCDNEnabled", + value: function setCDNEnabled(cdnEnabled) { + this.cdnEnabled = cdnEnabled; + this.setValue(keys.cdn_enabled, cdnEnabled ? "1" : "0"); + } + }, { + key: "setCDNServer", + value: function setCDNServer(cdnServer) { + this.cdnServer = cdnServer; + this.setValue(keys.cdn_server, cdnServer); + } + }, { + key: "setCDNVersion", + value: function setCDNVersion(cdnVersion) { + this.cdnVersion = parseInt(cdnVersion, 10); + this.setValue(keys.cdn_version, cdnVersion); + } + }, { + key: "setBundleUpdateAvailable", + value: function setBundleUpdateAvailable(bundleUpdateAvailable) { + this.bundleUpdateAvailable = bundleUpdateAvailable; + this.setValue(keys.bundle_update_available, bundleUpdateAvailable ? "1" : "0"); + } + }, { + key: "setMigrate", + value: function setMigrate(migrate) { + this.migrate = migrate; + this.setValue(keys.migrate, migrate ? "1" : "0"); + } + }, { + key: "setNativeOptionspageFallbackVersion", + value: function setNativeOptionspageFallbackVersion(nativeOptionspageFallbackVersionUrl) { + this.showNativeOptionsPageFallbackUrl = nativeOptionspageFallbackVersionUrl; + this.setValue(keys.show_native_options_page_fallback_url, nativeOptionspageFallbackVersionUrl); + } + }, { + key: "_getDifferences", + value: function _getDifferences(newConfig) { + var _this2 = this; + + var diffKeys = []; + + if (newConfig) { + try { + diffKeys = Object.keys(this).filter(function (key) { + if (typeof _this2[key] === "function") { + return false; + } + + if (typeof _this2[key] === "object") { + var options = {}; + + if (_this2[key] instanceof _$$_REQUIRE(_dependencyMap[25]).PaperSetupBaseConfig) { + options.skipKeys = ["json"]; + } + + return !_$$_REQUIRE(_dependencyMap[11]).JSUtils.areEqualDeep(_this2[key], newConfig[key], options); + } + + return _this2[key] !== newConfig[key]; + }); + + if (diffKeys.length > 0) {} + } catch (e) {} + } + + return diffKeys; + } + }, { + key: "_checkIfNeedToRestart", + value: function _checkIfNeedToRestart(diffKeys) { + var needRestart = diffKeys.find(function (key) { + return KEYS_REQUIRE_RESTART.includes(key); + }) !== undefined; + return needRestart; + } + }, { + key: "_checkIfNeedToUpdate", + value: function _checkIfNeedToUpdate(diffKeys) { + var needUpdate = diffKeys.find(function (key) { + return !KEYS_NO_UPDATE.includes(key); + }) !== undefined; + return needUpdate; + } + }, { + key: "_checkIfNeedLayoutUpdate", + value: function _checkIfNeedLayoutUpdate(diffKeys) { + var needUpdate = diffKeys.find(function (key) { + return KEYS_LAYOUT_UPDATE.includes(key); + }) !== undefined; + return needUpdate; + } + }, { + key: "_getLockPanIfNotZoomedByDegrees", + value: function () { + var _getLockPanIfNotZoomedByDegrees2 = (0, _asyncToGenerator2.default)(function* () { + try { + return JSON.parse(yield this.getValue(keys.lock_pan_if_not_zoomed_by_degrees)); + } catch (e) {} + + return [0, 90]; + }); + + function _getLockPanIfNotZoomedByDegrees() { + return _getLockPanIfNotZoomedByDegrees2.apply(this, arguments); + } + + return _getLockPanIfNotZoomedByDegrees; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[25]).PaperSetupBaseConfig); +},866,[3,270,6,7,11,85,13,14,867,868,869,438,870,872,873,875,876,877,878,879,827,880,1724,1725,1726,874]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -118943,77 +126950,1540 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var PaywallHelper = exports.default = function () { - function PaywallHelper() { - (0, _classCallCheck2.default)(this, PaywallHelper); + var PaperSetupHelper = exports.default = function () { + function PaperSetupHelper() { + (0, _classCallCheck2.default)(this, PaperSetupHelper); } - return (0, _createClass2.default)(PaywallHelper, null, [{ - key: "getOldName", - value: function getOldName() { - return _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isIOS() ? null : PaywallHelper.androidSharedPreferences.name; - } - }, { - key: "getMachineIdFromUserDefaults", + return (0, _createClass2.default)(PaperSetupHelper, null, [{ + key: "setItem", 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); + var _setItem = (0, _asyncToGenerator2.default)(function* (pSetup, key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(pSetup, key, value); }); - function getMachineIdFromUserDefaults() { - return _getMachineIdFromUserDefaults.apply(this, arguments); + function setItem(_x, _x2, _x3) { + return _setItem.apply(this, arguments); } - return getMachineIdFromUserDefaults; + return setItem; }() - }, { - 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* (pSetup, key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(pSetup, key); + }); + + function getItem(_x4, _x5) { + return _getItem.apply(this, arguments); + } + + return getItem; + }() + }]); + }(); + + PaperSetupHelper.SP = { + keys: { + app_mode_selection_page_enabled: "enableAppModeSelectionPage", + app_mode_selection_page_url: "appModeSelectionPageUrl", + app_mode_selection_page_version: "appModeSelectionPageVersion", + base_rss_update_url: "baseRssUpdateUrl", + change_user_agent_for_oauth: "changeUserAgentForOAuth", + custom_string_to_append_to_user_agent_for_oauth: "customStringToAppendToUserAgentForOAuth", + custom_user_agent_for_oauth: "customUserAgentForOAuth", + adobe_analytics: { + enabled: "enableAdobeAnalytics", + props_list: "adobeAnalyticsPropsList", + actions: { + edition_load: "adobeAnalyticsEditionLoadActionName", + double_tap_to_zoom: "adobeAnalyticsDoubleTapActionName", + pinch_to_zoom: "adobeAnalyticsPinchOutActionName", + tts: "adobeAnalyticsTextToSpeechActionName", + skip_to_end: "adobeAnalyticsSkipToEndActionName", + toggle_to_print: "adobeAnalyticsToggleToPrintActionName", + toggle_to_digital: "adobeAnalyticsToggleToDigitalActionName", + share: "adobeAnalyticsShareActionName", + scroll_zoom: "adobeAnalyticsScrollZoomActionName", + link_click: "adobeAnalyticsLinkClickActionName" + }, + states: { + scrolled: "adobeAnalyticsScrolledStateName", + read: "adobeAnalyticsReadStateName", + zoomed: "adobeAnalyticsZoomedStateName", + index: "adobeAnalyticsIndexStateName", + optionspage: "adobeAnalyticsOptionspageStateName" + }, + send_only_edition_load: "adobeAnalyticsSendOnlyEditionLoad", + user_types: { + unknown: "adobeAnalyticsUserTypeUnknown", + subscriber: "adobeAnalyticsUserTypeSubscriber" + }, + media: { + print: "adobeAnalyticsPrintMedium", + digital: "adobeAnalyticsDigitalMedium", + zoomed_suffix: "adobeAnalyticsZoomedMediumSuffix" + }, + first_page_section_prefix: "adobeAnalyticsFirstPageSectionPrefix", + content_types: { + first_page: "adobeAnalyticsFirstPageContentType", + page: "adobeAnalyticsPageContentType", + index: "adobeAnalyticsIndexContentType", + article: "adobeAnalyticsArticleContentType", + optionspage: "adobeAnalyticsOptionspageContentType" + }, + edition_type: "adobeAnalyticsEditionType", + device_type: "adobeAnalyticsDeviceType" + }, + blueconic: { + enabled: "blueConicEnabled", + user_profile_properties: "blueConicUserProfileProperties", + view_profile_properties: "blueConicViewProfileProperties" + }, + chartbeat: { + account_id: "chartbeatAccountId", + domain: "chartbeatDomain", + rss_enabled: "chartbeatRssEnabled", + epaper_enabled: "chartbeatEpaperEnabled", + section_rss_properties: "chartbeatSectionRssProperties", + section_epaper_properties: "chartbeatSectionEpaperProperties", + author_rss_properties: "chartbeatAuthorRssProperties", + author_epaper_properties: "chartbeatAuthorEpaperProperties", + rss_title_keys: "chartbeatRssTitleKeys", + epaper_title_keys: "chartbeatEpaperTitleKeys", + rss_screen_key: "chartbeatRssScreenKey", + epaper_screen_key: "chartbeatEpaperScreenKey", + rss_custom_data: "chartbeatRssCustomData", + epaper_custom_data: "chartbeatEpaperCustomData" + }, + comscore: { + app_name: "comScoreAppName", + base_url: "comScoreBaseUrl", + id: "comScoreID", + publisher_secret: "comScorePublisherSecret" + }, + copyright: "copyright", + add_disclaimer: "addDisclaimer", + copyright_url: "copyrighturl", + custom_language_pack_file_time: "customLanguagePackFileTimestamp", + custom_fonts: "customFonts", + custom_fonts_file_time: "customFontsFileTimestamp", + default_connectivity: "defaultConnectivity", + default_connectivity_timestamp: "defaultConnectivityTimeStamp", + default_max_issues: "DEFAULT_MAX_ISSUES", + feedback: { + active_days_to_show: "feedbackActiveDaysToShow", + ask: "feedbackAskForFeedback", + email: "feedbackEmailForFeedback", + link: "feedbackLink", + reset_timestamp: "feedbackResetTimestamp", + enable: "feedbackEnable", + lower_active_date_range: "feedbackLowerActiveDateRange", + request_title: "feedbackRequestFeedbackTitle", + request_review_title: "feedbackRequestReviewFeedbackTitle", + show_dont_show_again: "feedbackShowDontShowAgain", + show_dont_show_again_first_dialog: "feedbackShowDontShowAgainOnFirstDialog", + show_not_sure_yet_first_dialog: "feedbackShowNotSureYetOnFirstDialog", + total_days_to_show: "feedbackTotalDaysToShow", + total_days_to_show_first_time: "feedbackTotalDaysToShowFirstTime", + upper_active_date_range: "feedbackUpperActiveDateRange", + cool_down_days: "feedbackCoolDownDays", + cool_down_days_dont_show_again: "feedbackCoolDownDaysDontShowAgain" + }, + file_time: "pSetupTime", + disable_firebase_analytics: "disableFirebaseAnalytics", + other_firebase_projects: "otherFirebaseProjects", + gallery_download_enabled: "galleryDownloadEnabled", + gallery_thumbnail_disabled: "galleryThumbnailDisabled", + open_http_link_on_external_browser: "openHttpLinkOnExternalBrowser", + url_type: "urltype", + showLinksHighlight: "useAutoGeneratedLinks", + is_lite: "newsmemoryLite", + language: "language", + layout_style: "layoutStyle", + layout_sub_style: "layoutSubStyle", + mather_analytics: { + enabled: "matherAnalyticsEnable", + customer_id: "matherCustomerId", + site_id: "matherSiteId", + send_email: "matherSendEmail" + }, + matomo: { + enabled: "matomoEnable", + site_id: "matomoSiteId", + rss_site_id: "matomoRssSiteId", + base_url: "matomoBaseURL", + visit_custom_dimensions: "matomoVisitCustomDimensions", + custom_dimensions: "matomoCustomDimensions", + dispatch_interval: "matomoDispatchInterval" + }, + matomo_tracker: { + enabled: "matomoTrackerEnable", + site_id: "matomoTrackerSiteId", + rss_site_id: "matomoTrackerRssSiteId", + base_url: "matomoTrackerBaseURL", + action_base_url: "matomoTrackerActionBaseURL", + edition_remapping: "matomoTrackerEditionRemapping", + titles: { + scrolled: "matomoTrackerScrolledTitle", + read: "matomoTrackerReadTitle", + rss_drawer: "matomoTrackerRssDrawerTitle", + rss_read: "matomoTrackerRssReadTitle" + }, + custom_urls: { + scrolled: "matomoTrackerScrolledURL", + read: "matomoTrackerReadURL", + rss_drawer: "matomoTrackerRssDrawerURL", + rss_read: "matomoTrackerRssReadURL" + }, + custom_dimensions: { + scrolled: "matomoTrackerScrolledCustomDimensions", + read: "matomoTrackerReadCustomDimensions", + rss_drawer: "matomoTrackerRssDrawerCustomDimensions", + rss_read: "matomoTrackerRssReadCustomDimensions" + } + }, + mode_enabled: "rssIsEnable", + option_page_coordinates: "optionpageCoordinates", + option_page_modal: "loginInModalMode", + option_page_mode: "optionPage", + option_page_url: "optionPageUrl", + options_page_tab_path: "optionsPageTabPath", + load_editions_url: "loadEditionsUrl", + paper_name: "paperName", + powered_by: "poweredBy", + powered_by_url: "poweredByurl", + relabel_ebook_button: "ebook_button", + relabel_feed_button: "feed_button", + relabel_fit_page_button: "fitPageImg_button", + relabel_gbook_button: "gbook_button", + relabel_help_button: "help_button", + relabel_offline_button: "OfflineActionLabel", + relabel_option_button: "option_button", + relabel_phodir_button: "phodir_button", + relabel_search_button: "search_button", + relabel_setting_button: "setting_button", + relabel_special_sections_button: "specialSections_button", + remp_account: "rempAccount", + rss_index_file_time: "rssConfigFileTimestamp", + site_domain: "siteDomain", + special_before_index_tablet: "specialBeforeIndexTablet", + special_before_index_phone: "specialBeforeIndexPhone", + special_before_index: "specialBeforeIndex", + startup_mode: "disableRssAtStartup", + startup_mode_timestamp: "disableRssAtStartupTimestamp", + udb: "udbDatabase", + newsmemory_to_use: "newsmemoryToUse", + newsmemory_to_use_timestamp: "newsmemoryToUseTimeStamp", + paper: "paper", + xpaper: "xpaper", + date_format: "DATE_FORMAT", + show_week: "SHOW_WEEK", + init_x_paper_not_in_view: "initpageXpaperNotView", + external_xpapers: "externalXPapers", + xpapers: "xPapers", + download_multi_zips: "downloadMultiZips", + translation_available: "translationAvailable", + translation_server: "translationServer", + use_native_accessibility: "useNativeAccessibility", + use_car_mode: "useCarMode", + show_native_options_page_fallback_url: "showNativeOptionsPageFallbackUrl", + show_native_options_page: "showNativeOptionsPage", + show_native_settings_screen: "showNativeSettingsScreen", + enable_translation_customization: "enableTranslationCustomization", + show_themes_customization: "showThemesCustomization", + enable_zoom_level_customization: "enableZoomLevelCustomization", + enable_article_types_customization: "enableArticleTypesCustomization", + show_article_column_view_customization: "showArticleColumnViewCustomization", + show_navigation_buttons_layout_customization: "showNavigationButtonsLayoutCustomization", + show_xpaper_navigation_close_button: "showXPaperNavigationCloseButton", + show_highlight_behavior_customization: "showHighlightBehaviorCustomization", + show_open_article_extra_on_title_box: "showOpenArticleExtraOnTitleBox", + show_tab_index_mode_customization: "showTabIndexModeCustomization", + change_favorite_edition: "changeFavoriteEdition", + favorite_edition: "favoriteEdition", + enable_connectivity_options: "enableConnectivityOptions", + enable_font_size_customization: "enableFontSizeCustomization", + enable_graph_size_customization: "enableGraphSizeCustomization", + show_types_article: "showTypesArticle", + enable_article_extra: "enableArticleExtra", + max_zips_to_download_per_request: "maxZipsToDownloadEachRequest", + css_files_to_add: "cssFilesToAdd", + email_content: "emailContent", + email_subject: "emailSubject", + facebook_enabled: "ipadFacebook", + twitter_text: "twitterText", + update_db_percentage: "updateDBPerc", + enable_advanced_gestures_mode: "enableAdvancedGesturesMode", + single_tap_to_zoom: "singleTapToZoom", + two_fingers_tap_to_article: "twoFingersTapToArticle", + lock_horizontal_pan_if_not_zoomed: "lockHorizontalPanIfNotZoomed", + lock_pan_if_not_zoomed_by_degrees: "lockPanIfNotZoomedByDegrees", + machine_for_hr: "machineForHR", + fit_graphic_article: "fitGraphicArticle", + machine: "machine", + sub_path: "subPath", + extra_link_color: "extraLinkColor", + background_duration_article_selected: "backgroundDurationArticleSelected", + background_timer_article_selected: "backgroundTimerArticleSelected", + background_color_article: { + selected: "backgroundColorArticleSelected", + to_select: "backgroundColorArticleToSelect" + }, + preview_highlight_enabled: "highlightClickableUrlEnabled", + preview_highlight_duration_seconds: "showHighlightingBoxesForSeconds", + zooming_factor: "zoomingFactor", + max_zoom: "maxZoom", + firebase_analytics_custom_dimensions: "firebaseAnalyticsCustomDimensions", + firebase_analytics_send_external_id: "firebaseAnalyticsSendExternalId", + enable_article_text_selection: "enableArticleTextSelection", + enable_article_byline_hrs: "enableArticleBylineHrs", + on_login_error_go_to: "onLoginErrorGoTo", + on_validation_error_go_to: "onValidationErrorGoTo", + time_limit_check_edition: "timeLimitForRestart", + time_limit_check_login: "timeLimitToCheckLoginOnRestart", + time_limit_forget_login: "timeLimitNotRememberLoginOnRestart", + last_pSetup: "lastPSetup", + last_issue: "lastIssue", + last_edition: "lastEdition", + latest_edition_available_message_format: "latestEditionAvailableMessageFormat", + demo_issue: "demoIssue", + show_edition_thumbs: "showEditionThumbs", + scroll_tiles_phone: "scrollTilesPhone", + scroll_tiles: "scrollTiles", + force_article_mode_fullscreen_portrait: "forceArticleModeFullscreenPortrait", + force_article_mode_fullscreen_landscape: "forceArticleModeFullscreenLandscape", + enable_text_to_speech: "enableTextToSpeech", + enable_text_to_speech_player: "enableTextToSpeechPlayer", + text_to_speech_rate: "textToSpeechRate", + text_to_speech_chunk_length: "textToSpeechChunkLength", + low_speed_limit: "lowSpeedLimit", + disable_low_speed_limit: "disableLowSpeedLimit", + base_iap_api_url: "baseInAppPurchaseAPIUrl", + all_skus: "allSkus", + is_nnb: "isNNB", + enable_vmode_and_fit_orientation: "enableVmodeAndFitOrientation", + fit_page_type: "xc_fitPage", + start_in_index_mode: "startInIndexMode", + epaper_start_mode: "epaperStartMode", + disable_epaper_mode_selection_page: "disableEPaperModeSelectionPage", + cdn_enabled: "cdnEnabled", + cdn_server: "cdnServer", + cdn_version: "cdnVersion", + pdf_thumbnail_ratio: "pdfThumbnailRatio", + eink_complete_hr_factor: "einkCompleteHrFactor", + hr_factor: "hrFactor", + pdf_factor: "pdfFactor", + pdf_factor_landscape: "pdfFactorLandscape", + force_pdf_in_roaming_mode: "forcePdfInRoamingMode", + low_pages_to_render: "lowPagesToRender", + mid_pages_to_render: "midPagesToRender", + load_mid_res_on_scroll: "loadMidResOnScroll", + show_landing_page_once: "showLandingPageOnce", + landing_page_version: "landingPageVersion", + landing_page_url: "landingPageURL", + forced_shared_secret: "sharedSecret", + use_ios_sandbox_receipt_validation: "useIOSSandboxReceiptValidation", + use_cc: "useCC", + migrate: "migrate", + hybrid_version: "hybridVersion", + append_first_pages: "appendFirstPages", + png_quality_factor: "pngQualityFactor", + generate_png_based_on_screen_dimensions: "generatePNGBasedOnScreenDimensions", + consider_pixel_ratio_in_png_generation: "considerPixelRatioInPNGGeneration", + png_width_limit: "pngWidthLimit", + print_enabled: "ipadPrint", + print_to_letter: "printToLetter", + print_margin: "printMargin", + generic_app_enabled: "storeIsEnable", + store_url: "customStoreUrl", + iap_active: "iapActive", + payments: "payments", + enable_multiple_subscriptions_alert: "enableMultipleSubscriptionsAlert", + protect_site: "protectSite", + validate_site: "validateSite", + two_fingers_tap_hint_enabled: "twoFingersTapHintEnabled", + two_fingers_tap_max_hints: "twoFingersTapMaxHints", + download_single_pdf: "downloadSinglePdf", + enable_share: "enableShare", + max_shares: "maxShares", + max_shares_check_type: "maxSharesCheckType", + message_max_share: "messageMaxShare", + merge_articles: "mergeArt", + column_view: "columnView", + show_art_complete: "showArtComplete", + calculate_mid_ads: "calculateMidAds", + pages_navigation_buttons_layout: "pagesNavigationButtonsLayout", + animate_layout_footer: "animateLayoutFooter", + fix_buttons_bar_to_bottom: "fixButtonsBarToBottom", + dfp_reload_time: "dfpReloadTime", + ads: "ads", + enable_instory_ad_marker: "enableInStoryAdMarker", + instory_ad_marker_text: "inStoryAdMarkerText", + rn_styles: "rnStyles", + disable_rn_styles: "disableRnStyles", + rn_styles_file_time: "rnStylesFileTimestamp", + ssl_certificate_file_time: "sslCertificateTimestamp", + device_dpi: "deviceDpi", + toc_style: "tocStyle", + toc_style_preview: "tocStylePreview", + enable_tab_index_mode: "enableTabIndexMode", + bundle_update_available: "bundleUpdateAvailable", + reset_app_bundle: "resetAppBundle", + see_newspaper_preview: "seeNewspaperPreview", + page_see_newspaper_preview: "pageSeeNewspaperPreview", + hours_to_send_push_registration: "hoursToSendPushRegistration", + preview_token: "previewToken", + webview_allow_autoplay: "webviewAllowAutoplay", + webview_android_allow_fullscreen: "webviewAndroidAllowFullscreen", + webview_ios_native_player: "webviewIOSNativePlayer", + webview_custom_http_headers: "webviewCustomHTTPHeaders", + app_tracking_transparency: { + force_message: "forceAppTrackingTransparencyMessage", + disable_message: "disableAppTrackingTransparencyMessage", + show_pre_message: "showPreAppTrackingTransparencyMessage", + force_pre_message_on_app_update: "forcePreAppTrackingTransparencyMessageOnAppUpdate" + }, + iubenda: { + enabled: "iubendaEnabled", + site_id: "iubendaSiteId", + cookie_policy_id: "iubendaCookiePolicyId", + lang: "iubendaLang", + reset_consent_date: "iubendaResetConsentDate", + force_consent_popup: "iubendaForceConsentPopup", + ads_require_consent: "adsRequireConsent", + google_ads_present: "googleAdsPresent", + ref_privacy_laws: "referencePrivacyLaws" + }, + osano: { + enabled: "osanoEnabled", + customer_id: "osanoCustomerId", + config_id: "osanoConfigurationId", + site_domain: "osanoSiteDomain", + reset_consent_date: "osanoResetConsentDate" + }, + show_extras_in_article_graphic_mode: "showExtrasInArticleGraphicMode", + show_extras_to_logged_users_only: "showExtrasToLoggedUsersOnly", + morse_tauid: "morseTAUID", + add_watermark: "addWatermarkArticlePag", + watermark_text: "watermarkText", + disable_screen_idle_timer_delay: "disableScreenIdleTimerDelay", + keep_article_position_on_rotation: "keepArticlePositionOnRotation", + enable_article_image_reposition: "enableArticleImageReposition", + refreshes_tauid: "refreshesTAUID", + startup_params: "startupParams", + enable_session_collection: "enableSessionCollection", + enable_session_auto_upload: "enableSessionAutoUpload", + session_upload_base_url: "sessionUploadBaseURL", + checksum: "checksum", + user_ip: "userIP", + is_allowed_ip: "isAllowedIP", + push_tags: "pushTags", + disable_reader_app_modal: "disableReaderAppModal", + reader_app_learn_more_link: "readerAppLearnMoreLink", + use_asymmetric_card_list: "useAsymmetricCardList", + prevent_screenshots: "preventScreenshots", + enable_phone_article_layout_on_tablet_in_landscape: "enablePhoneArticleLayoutOnTabletInLandscape", + enable_desktop_article_layout_on_ipad_pro_in_landscape: "enableDesktopArticleLayoutOnIPadProInLandscape" + } + }; +},867,[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.WEBVIEW_BASE_URL = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var UNIVERSAL_LINKS_SUPPORTED_PATHS = ["load", "start", "ul"]; + var WEBVIEW_BASE_URL = exports.WEBVIEW_BASE_URL = "http://localhost/"; + + var WebUtils = exports.default = function () { + function WebUtils() { + (0, _classCallCheck2.default)(this, WebUtils); + } + + return (0, _createClass2.default)(WebUtils, null, [{ + key: "isExternalUrl", + value: function isExternalUrl(url) { + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url), + protocol = _StringUtils$segmentU.protocol, + getParams = _StringUtils$segmentU.getParams, + anchorParams = _StringUtils$segmentU.anchorParams; + + if (protocol && protocol.startsWith("xhttp")) { + return true; + } + + if (getParams && (_$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(getParams, "xhttp") || _$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(getParams, "xhttps"))) { + return true; + } + + if (anchorParams && (_$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(anchorParams, "xhttp") || _$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(anchorParams, "xhttps"))) { + return true; + } + + return false; + } + }, { + key: "parseUniversalLink", + value: function parseUniversalLink(url) { + if (!url) { + return undefined; + } + + if (url.indexOf("?") === -1) { + for (var i = 0; i < UNIVERSAL_LINKS_SUPPORTED_PATHS.length; i++) { + if (url.indexOf("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/") !== -1) { + url = url.replace("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/", "/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/?"); + break; + } + } + } + + var info = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url); + + var domain = info.domain, + getParams = info.getParams; + var path = info.path; + + if (!path) { + path = domain; + } + + path = path.replace(/\//g, ""); + + if (!UNIVERSAL_LINKS_SUPPORTED_PATHS.includes(path)) { + return undefined; + } + + var params = getParams || {}; + params.schemaURL = url; + params.schemaPath = path; + + if (params.machine) { + if (_$$_REQUIRE(_dependencyMap[4]).StringUtils.isTecnaviaHTTPDomain(params.machine)) { + var oldMachine = params.machine; + params.machine = _$$_REQUIRE(_dependencyMap[4]).StringUtils.convertNewsmemoryDomainToHTTPS(oldMachine); + params.schemaURL = url.replace("machine=" + oldMachine, "machine=" + params.machine); + params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(oldMachine), "machine=" + params.machine); + } else { + params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(params.machine), "machine=" + params.machine); + } + } + + return params; + } + }, { + key: "replacePlaceHolder", + value: function replacePlaceHolder(html, width, height) { + var result = html; + + if (result) { + if (result.includes("##width##")) { + result = result.replace(/##width##/g, width); + } + + if (result.includes("##height##")) { + result = result.replace(/##height##/g, height); + } + } + + return result; + } + }, { + key: "addViewportScaleStyles", + value: function addViewportScaleStyles(html, left, top, zoom, bgColor) { + var scaleStyleString = "\n body {\n position: absolute;\n margin: auto;\n display: table;\n left: " + left + "px;\n top: " + top + "px;\n transform: scale(" + zoom + ");\n background: " + bgColor + ";\n }"; + return WebUtils.addViewportStyles(html, scaleStyleString); + } + }, { + key: "prependToHead", + value: function prependToHead(html, replacement) { + var result; + + if (html.indexOf("") !== -1) { + result = html.replace("", "" + replacement); + } else { + result = html.replace("", "" + replacement + ""); + } + + return result; + } + }, { + key: "appendToHead", + value: function appendToHead(html, replacement) { + var result; + + if (html.indexOf("") !== -1) { + result = html.replace("", replacement + ""); + } else { + result = html.replace("", "" + replacement + ""); + } + + return result; + } + }, { + key: "addViewportStyles", + value: function addViewportStyles(html) { + var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var result = html; + + if (result) { + var replacement = "\n "; + + if (style) { + replacement += "\n "; + } + + replacement += "\n "; + result = WebUtils.appendToHead(html, replacement); + } + + return result; + } + }, { + key: "getZoom", + value: function getZoom(width, height, webviewWidth, webviewHeight) { + var adWidth = width > 0 ? width : 1; + var adHeight = height > 0 ? height : 1; + var scaleX = webviewWidth / adWidth; + var scaleY = webviewHeight / adHeight; + var scale = scaleX > scaleY ? scaleY : scaleX; + return Math.round(scale * 10) / 10; + } + }, { + key: "getJSToZoomContent", + value: function getJSToZoomContent(left, top, zoom) { + var js = "\n document.body.style.position = 'absolute';\n document.body.style.left = '" + left + "px';\n document.body.style.top = '" + top + "px';\n document.body.style.transform = 'scale(" + zoom + ")'"; + return js; + } + }, { + key: "getJSToCenterContent", + value: function getJSToCenterContent(bgColor) { + var js = "\n document.body.style.margin = 'auto';\n document.body.style.display = 'table';\n document.body.style.background = '" + bgColor + "';"; + return js; + } + }, { + key: "setupHtmlForWebView", + value: function setupHtmlForWebView(html) { + var result = html; + + if (result) { + result = this.addTags(result, "body"); + result = this.addTags(result, "html"); + } + + return result; + } + }, { + key: "addTags", + value: function addTags(html, tag) { + var result = html; + + if (!result.includes("<" + tag)) { + result = "<" + tag + ">".concat(result) + " "; + } + + if (!result.includes("")) { + result = result.concat(""); + } + + return result; + } + }, { + key: "addViewport", + value: function addViewport() { + var js = "\n var meta = document.createElement('meta');\n meta.name = 'viewport';\n meta.content = 'width=device-width, initial-scale=1';\n document.getElementsByTagName('head')[0].appendChild(meta);"; + return js; + } + }, { + key: "replaceHttpWithHttps", + value: function replaceHttpWithHttps(html) { + if (!html) { + return ""; + } + + var regExp = /http:\/\/([a-zA-Z0-9.]+)\.newsmemory\.com/; + var matcher; + + do { + matcher = regExp.exec(html); + + if (matcher) { + var originalUrl = matcher[0]; + var subDomainHttp = matcher[1]; + var subDomainHttps = subDomainHttp.replace(/\./g, "-"); + var urlHttps = originalUrl.replace("http", "https").replace(subDomainHttp, subDomainHttps); + html = html.replace(originalUrl, urlHttps); + } + } while (matcher !== null); + + return html; + } + }, { + key: "getRonDinoViewPort", + value: function getRonDinoViewPort(width) { + return "\n var myCustomViewport = 'width=" + width + ", initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\n var viewportElement = document.querySelector('meta[name=viewport]');\n if (viewportElement) {\n viewportElement.content = myCustomViewport;\n } else {\n viewportElement = document.createElement('meta');\n viewportElement.name = 'viewport';\n viewportElement.content = myCustomViewport;\n document.getElementsByTagName('head')[0].appendChild(viewportElement);\n };"; + } + }, { + key: "getImagesInsidePage", + value: function getImagesInsidePage() { + return "\n (function getImagesInsidePage() {\n const images = document.getElementsByTagName('img');\n const sources = [];\n for(let i=0; i < images.length; i++){\n sources.push(images[i].src);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: sources, type: 'GET_RESOURCES' }));\n })();"; + } + }, { + key: "replaceResourcesInPage", + value: function replaceResourcesInPage(newSources) { + return "\n (function getImagesInsidePage(newSources) {\n const parsed = JSON.parse(newSources);\n const images = document.getElementsByTagName('img');\n for(let i=0; i < images.length; i++){\n if(parsed[images[i].src]){\n images[i].src = parsed[images[i].src];\n }\n }\n })('" + JSON.stringify(newSources) + "')"; + } + }, { + key: "addSafeAreaToWebView", + value: function addSafeAreaToWebView() { + var _DeviceUtils$getSafeA = _deviceUtils.default.getSafeAreaInsets(), + top = _DeviceUtils$getSafeA.top, + bottom = _DeviceUtils$getSafeA.bottom; + + return "(function() { \n document.body.style.marginTop='" + top + "px'; \n document.body.style.marginBottom='" + bottom + "px'; \n })();"; + } + }, { + key: "replaceUrlPlaceHolder", + value: function replaceUrlPlaceHolder(url) { + var PLACEHOLDER_SUBSCRIPTION_TYPE = "##PAYWALL_SUBSCRIPTION_TYPE#"; + var PLACEHOLDER_MACHINE_ID = "##MACHINEID#"; + var PLACEHOLDER_WORDPRESS_TOKEN = "##WORDPRESS_TOKEN#"; + var subscription = ""; + + if (!url.includes("?")) { + url += "?"; + } + + if (url.includes(PLACEHOLDER_SUBSCRIPTION_TYPE)) { + url = url.replace(PLACEHOLDER_SUBSCRIPTION_TYPE, subscription); + } else { + url = url + "&subType=" + subscription; + } + + if (url.includes(PLACEHOLDER_MACHINE_ID)) { + url = url.replace(PLACEHOLDER_MACHINE_ID, global.machineId); + } else { + url = url + "&MACHINEID=" + global.machineId; + } + + if (url.includes(PLACEHOLDER_WORDPRESS_TOKEN)) { + url = url.replace(PLACEHOLDER_WORDPRESS_TOKEN, WebUtils.secretTokenForWordpress()); + } + + return url; + } + }, { + key: "secretTokenForWordpress", + value: function secretTokenForWordpress() { + var unixTimestamp = new Date().getTime(); + return _$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5(_$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5("TecnaviaSecret") + global.machineId) + "_" + _$$_REQUIRE(_dependencyMap[4]).StringUtils.getHexOfAsciiOfLong(unixTimestamp / 1000); + } + }, { + key: "getTargetBlankPatch", + value: function getTargetBlankPatch() { + return "\n Array.from(document.querySelectorAll('a[target=\"_blank\"]')).forEach(link => link.removeAttribute('target'));"; + } + }, { + key: "getThemeClassesScript", + value: function getThemeClassesScript() { + var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { + return ""; + } + + var args = themeClasses.reduce(function (prev, current) { + return prev ? prev + ", '" + current + "'" : "'" + current + "'"; + }, ""); + return "document.body.classList.add(" + args + ");"; + } + }, { + key: "getThemeClassesAttribute", + value: function getThemeClassesAttribute() { + var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { + return ""; + } + + return " class='" + themeClasses.join(" ") + "'"; + } + }]); + }(); +},868,[3,6,7,434,438,819]); +__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 Payment = exports.default = function () { + function Payment() { + var pSetupLine = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + (0, _classCallCheck2.default)(this, Payment); + var splitted = pSetupLine.split(","); + this.type = splitted[0]; + this.price = splitted[1]; + this.startDate = splitted[2]; + this.periodTime = splitted[3]; + this.periodValue = splitted[4]; + this.recurringPattern = splitted[5]; + this.description = splitted[6]; + this.productId = splitted[7]; + } + + return (0, _createClass2.default)(Payment, [{ + key: "getType", + value: function getType() { + return this.type; + } + }, { + key: "getPrice", + value: function getPrice() { + return this.price; + } + }, { + key: "getPriceNumber", + value: function getPriceNumber() { + return parseFloat(this.price) || -1; + } + }, { + key: "getStartDate", + value: function getStartDate() { + return this.startDate; + } + }, { + key: "getPeriodTime", + value: function getPeriodTime() { + return this.periodTime; + } + }, { + key: "isWeekly", + value: function isWeekly() { + return this.periodTime === "W"; + } + }, { + key: "isMonthly", + value: function isMonthly() { + return this.periodTime === "M"; + } + }, { + key: "isYearly", + value: function isYearly() { + return this.periodTime === "Y"; + } + }, { + key: "getPeriodValue", + value: function getPeriodValue() { + try { + return parseInt(this.periodValue, 10) || -1; + } catch (e) { + return -1; + } + } + }, { + key: "getRecurringPattern", + value: function getRecurringPattern() { + return this.recurringPattern; + } + }, { + key: "getDescription", + value: function getDescription() { + return this.description; + } + }, { + key: "getProductId", + value: function getProductId() { + return this.productId; + } + }, { + key: "isNotConsumable", + value: function isNotConsumable() { + return this.getType() === "NC"; + } + }, { + key: "isConsumable", + value: function isConsumable() { + return this.getType() === "A"; + } + }, { + key: "isNonRenewingSubscription", + value: function isNonRenewingSubscription() { + return this.getType() === "P"; + } + }, { + key: "isRecurringSubscription", + value: function isRecurringSubscription() { + return this.getType() === "R"; + } + }, { + key: "isSubscription", + value: function isSubscription() { + return this.isNonRenewingSubscription() || this.isRecurringSubscription(); + } + }, { + key: "checkProductId", + value: function checkProductId(productId) { + if (productId === this.productId) { + return true; + } + + if (this.isNotConsumable() && productId.startsWith(this.productId)) { + return true; + } + + return false; + } + }]); + }(); +},869,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.LoginStatus = 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 _LoginHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var LoginStatus = exports.LoginStatus = function () { + function LoginStatus() { + (0, _classCallCheck2.default)(this, LoginStatus); + } + + return (0, _createClass2.default)(LoginStatus, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (udb) { + this.udb = udb; + var keys = Object.values(_LoginHelper.default.SP.keys); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + this[key] = yield this.getValue(key); + } + + return true; + }); + + function init(_x) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "setValue", + value: function () { + var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { + this[key] = value; + return _LoginHelper.default.setItem(this.udb + "_" + key, value); + }); + + function setValue(_x2, _x3) { + return _setValue.apply(this, arguments); + } + + return setValue; + }() + }, { + key: "getValue", + value: function () { + var _getValue = (0, _asyncToGenerator2.default)(function* (key) { + var value = this[key]; + + if (_$$_REQUIRE(_dependencyMap[5]).JSUtils.isNull(value)) { + value = yield _LoginHelper.default.getItem(this.udb + "_" + key); + + if (key === _LoginHelper.default.SP.keys.has_access) { + try { + value = JSON.parse(value); + } catch (e) {} + } else if (key === _LoginHelper.default.SP.keys.allowed_ip_user) { + value = value === "1"; + } + } + + return value; + }); + + function getValue(_x4) { + return _getValue.apply(this, arguments); + } + + return getValue; + }() + }, { + key: "updateValue", + value: function () { + var _updateValue = (0, _asyncToGenerator2.default)(function* (key, value) { + if (value) { + return this.setValue(key, value); + } + + return this.removeValue(key); + }); + + function updateValue(_x5, _x6) { + return _updateValue.apply(this, arguments); + } + + return updateValue; + }() + }, { + key: "removeValue", + value: function () { + var _removeValue = (0, _asyncToGenerator2.default)(function* (key) { + this[key] = undefined; + return _LoginHelper.default.removeItem(this.udb + "_" + key); + }); + + function removeValue(_x7) { + return _removeValue.apply(this, arguments); + } + + return removeValue; + }() + }, { + key: "isAnonymousUser", + value: function isAnonymousUser() { + return this.username && global.machineId && this.username === global.machineId; + } + }, { + key: "isLoggedIn", + value: function isLoggedIn() { + return LoginStatus.isValidTAUID(this.TAUID) && !this.isAnonymousUser(); + } + }, { + key: "isLoggedInAsAnonymous", + value: function isLoggedInAsAnonymous() { + return LoginStatus.isValidTAUID(this.TAUID) && this.isAnonymousUser(); + } + }, { + key: "isAdFree", + value: function isAdFree() { + return this.adFree === "1"; + } + }, { + key: "userHasAccess", + value: function userHasAccess(issue, edition) { + if (this.hasAccess && this.hasAccess[edition]) { + return this.hasAccess[edition][issue] === "1"; + } + + return false; + } + }, { + key: "setHasAccess", + value: function setHasAccess(issue, edition, hasAccess) { + var hasAccessValue = hasAccess ? "1" : "0"; + + if (!this.hasAccess) { + this.hasAccess = {}; + } + + if (!this.hasAccess[edition]) { + this.hasAccess[edition] = {}; + } + + this.hasAccess[edition][issue] = hasAccessValue; + + _LoginHelper.default.setItem(this.udb + "_" + _LoginHelper.default.SP.keys.has_access, JSON.stringify(this.hasAccess)); + } + }, { + key: "setLastModified", + value: function setLastModified() { + this.setValue(_LoginHelper.default.SP.keys.last_login_time, new Date().getTime().toString()); + } + }, { + key: "getLastModified", + value: function () { + var _getLastModified = (0, _asyncToGenerator2.default)(function* () { + return this.getValue(_LoginHelper.default.SP.keys.last_login_time); + }); + + function getLastModified() { + return _getLastModified.apply(this, arguments); + } + + return getLastModified; + }() + }, { + key: "setReceipt", + value: function setReceipt(receipt) { + this.setValue(_LoginHelper.default.SP.keys.receipt, receipt); + this.setValue(_LoginHelper.default.SP.keys.receipt_date, new Date().getTime().toString()); + } + }, { + key: "setTAUID", + value: function () { + var _setTAUID = (0, _asyncToGenerator2.default)(function* (TAUID) { + if (TAUID) { + return this.setValue(_LoginHelper.default.SP.keys.TAUID, TAUID); + } + + return Promise.resolve(); + }); + + function setTAUID(_x8) { + return _setTAUID.apply(this, arguments); + } + + return setTAUID; + }() + }, { + key: "setToken", + value: function () { + var _setToken = (0, _asyncToGenerator2.default)(function* (token) { + if (token) { + return this.setValue(_LoginHelper.default.SP.keys.TOKEN, token); + } + + return Promise.resolve(); + }); + + function setToken(_x9) { + return _setToken.apply(this, arguments); + } + + return setToken; + }() + }, { + key: "setUniversalLinkToken", + value: function () { + var _setUniversalLinkToken = (0, _asyncToGenerator2.default)(function* (token) { + if (token) { + return this.setValue(_LoginHelper.default.SP.keys.universal_link_token, token); + } + + return Promise.resolve(); + }); + + function setUniversalLinkToken(_x10) { + return _setUniversalLinkToken.apply(this, arguments); + } + + return setUniversalLinkToken; + }() + }, { + key: "setOneTimeToken", + value: function () { + var _setOneTimeToken = (0, _asyncToGenerator2.default)(function* (oneTimeToken) { + if (oneTimeToken) { + return this.setValue(_LoginHelper.default.SP.keys.one_time_token, oneTimeToken); + } + + return Promise.resolve(); + }); + + function setOneTimeToken(_x11) { + return _setOneTimeToken.apply(this, arguments); + } + + return setOneTimeToken; + }() + }, { + key: "setUsername", + value: function () { + var _setUsername = (0, _asyncToGenerator2.default)(function* (username) { + if (username) { + return this.setValue(_LoginHelper.default.SP.keys.username, username); + } + + return Promise.resolve(); + }); + + function setUsername(_x12) { + return _setUsername.apply(this, arguments); + } + + return setUsername; + }() + }, { + key: "setPassword", + value: function () { + var _setPassword = (0, _asyncToGenerator2.default)(function* (password) { + if (password) { + return this.setValue(_LoginHelper.default.SP.keys.password, password); + } + + return Promise.resolve(); + }); + + function setPassword(_x13) { + return _setPassword.apply(this, arguments); + } + + return setPassword; + }() + }, { + key: "setChallenge", + value: function () { + var _setChallenge = (0, _asyncToGenerator2.default)(function* (challenge) { + if (challenge) { + return this.setValue(_LoginHelper.default.SP.keys.challenge, challenge); + } + + return Promise.resolve(); + }); + + function setChallenge(_x14) { + return _setChallenge.apply(this, arguments); + } + + return setChallenge; + }() + }, { + key: "setExtId", + value: function () { + var _setExtId = (0, _asyncToGenerator2.default)(function* (extid) { + if (extid) { + return this.setValue(_LoginHelper.default.SP.keys.extid, extid); + } + + return Promise.resolve(); + }); + + function setExtId(_x15) { + return _setExtId.apply(this, arguments); + } + + return setExtId; + }() + }, { + key: "setExtraUserInfo", + value: function () { + var _setExtraUserInfo = (0, _asyncToGenerator2.default)(function* (extraUserInfo) { + if (extraUserInfo) { + var extraUserInfoString = extraUserInfo ? JSON.stringify(extraUserInfo) : ""; + return this.setValue(_LoginHelper.default.SP.keys.extra_user_info, extraUserInfoString); + } + + return Promise.resolve(); + }); + + function setExtraUserInfo(_x16) { + return _setExtraUserInfo.apply(this, arguments); + } + + return setExtraUserInfo; + }() + }, { + key: "setAdFree", + value: function () { + var _setAdFree = (0, _asyncToGenerator2.default)(function* (adFree) { + var adFreeValue = adFree !== undefined ? "" + adFree : undefined; + + if (adFreeValue) { + return this.setValue(_LoginHelper.default.SP.keys.ad_free, adFreeValue); + } + + return Promise.resolve(); + }); + + function setAdFree(_x17) { + return _setAdFree.apply(this, arguments); + } + + return setAdFree; + }() + }, { + key: "updateTAUID", + value: function () { + var _updateTAUID = (0, _asyncToGenerator2.default)(function* (TAUID) { + return this.updateValue(_LoginHelper.default.SP.keys.TAUID, TAUID); + }); + + function updateTAUID(_x18) { + return _updateTAUID.apply(this, arguments); + } + + return updateTAUID; + }() + }, { + key: "updateToken", + value: function () { + var _updateToken = (0, _asyncToGenerator2.default)(function* (token) { + return this.updateValue(_LoginHelper.default.SP.keys.TOKEN, token); + }); + + function updateToken(_x19) { + return _updateToken.apply(this, arguments); + } + + return updateToken; + }() + }, { + key: "updateUniversalLinkToken", + value: function () { + var _updateUniversalLinkToken = (0, _asyncToGenerator2.default)(function* (token) { + return this.updateValue(_LoginHelper.default.SP.keys.universal_link_token, token); + }); + + function updateUniversalLinkToken(_x20) { + return _updateUniversalLinkToken.apply(this, arguments); + } + + return updateUniversalLinkToken; + }() + }, { + key: "updateOneTimeToken", + value: function () { + var _updateOneTimeToken = (0, _asyncToGenerator2.default)(function* (oneTimeToken) { + return this.updateValue(_LoginHelper.default.SP.keys.one_time_token, oneTimeToken); + }); + + function updateOneTimeToken(_x21) { + return _updateOneTimeToken.apply(this, arguments); + } + + return updateOneTimeToken; + }() + }, { + key: "updateUsername", + value: function () { + var _updateUsername = (0, _asyncToGenerator2.default)(function* (username) { + return this.updateValue(_LoginHelper.default.SP.keys.username, username); + }); + + function updateUsername(_x22) { + return _updateUsername.apply(this, arguments); + } + + return updateUsername; + }() + }, { + key: "updatePassword", + value: function () { + var _updatePassword = (0, _asyncToGenerator2.default)(function* (password) { + return this.updateValue(_LoginHelper.default.SP.keys.password, password); + }); + + function updatePassword(_x23) { + return _updatePassword.apply(this, arguments); + } + + return updatePassword; + }() + }, { + key: "updateChallenge", + value: function () { + var _updateChallenge = (0, _asyncToGenerator2.default)(function* (challenge) { + return this.updateValue(_LoginHelper.default.SP.keys.challenge, challenge); + }); + + function updateChallenge(_x24) { + return _updateChallenge.apply(this, arguments); + } + + return updateChallenge; + }() + }, { + key: "updateExtId", + value: function () { + var _updateExtId = (0, _asyncToGenerator2.default)(function* (extid) { + return this.updateValue(_LoginHelper.default.SP.keys.extid, extid); + }); + + function updateExtId(_x25) { + return _updateExtId.apply(this, arguments); + } + + return updateExtId; + }() + }, { + key: "updateExtraUserInfo", + value: function () { + var _updateExtraUserInfo = (0, _asyncToGenerator2.default)(function* (extraUserInfo) { + var extraUserInfoString = extraUserInfo ? JSON.stringify(extraUserInfo) : ""; + return this.updateValue(_LoginHelper.default.SP.keys.extra_user_info, extraUserInfoString); + }); + + function updateExtraUserInfo(_x26) { + return _updateExtraUserInfo.apply(this, arguments); + } + + return updateExtraUserInfo; + }() + }, { + key: "updateAdFree", + value: function () { + var _updateAdFree = (0, _asyncToGenerator2.default)(function* (adFree) { + var adFreeValue = adFree !== undefined ? "" + adFree : undefined; + return this.updateValue(_LoginHelper.default.SP.keys.ad_free, adFreeValue); + }); + + function updateAdFree(_x27) { + return _updateAdFree.apply(this, arguments); + } + + return updateAdFree; + }() + }, { + key: "resetOneTimeToken", + value: function () { + var _resetOneTimeToken = (0, _asyncToGenerator2.default)(function* () { + return this.removeValue(_LoginHelper.default.SP.keys.one_time_token); + }); + + function resetOneTimeToken() { + return _resetOneTimeToken.apply(this, arguments); + } + + return resetOneTimeToken; + }() + }, { + key: "resetLastModified", + value: function () { + var _resetLastModified = (0, _asyncToGenerator2.default)(function* () { + return this.removeValue(_LoginHelper.default.SP.keys.last_login_time); + }); + + function resetLastModified() { + return _resetLastModified.apply(this, arguments); + } + + return resetLastModified; + }() + }, { + key: "setIAPSecret", + value: function () { + var _setIAPSecret = (0, _asyncToGenerator2.default)(function* (secret) { + if (secret) { + return this.setValue(_LoginHelper.default.SP.keys.iap_secret, secret); + } + + return this.removeValue(_LoginHelper.default.SP.keys.iap_secret); + }); + + function setIAPSecret(_x28) { + return _setIAPSecret.apply(this, arguments); + } + + return setIAPSecret; + }() + }, { + key: "getIAPSecret", + value: function getIAPSecret() { + return this.iapSecret; + } + }, { + key: "setIsAllowedIPUser", + value: function () { + var _setIsAllowedIPUser = (0, _asyncToGenerator2.default)(function* (value) { + this.allowedIPUser = value; + return _LoginHelper.default.setItem(this.udb + "_" + _LoginHelper.default.SP.keys.allowed_ip_user, value ? "1" : "0"); + }); + + function setIsAllowedIPUser(_x29) { + return _setIsAllowedIPUser.apply(this, arguments); + } + + return setIsAllowedIPUser; + }() + }, { + key: "isAllowedIPUser", + value: function isAllowedIPUser() { + return this.allowedIPUser; + } + }, { + key: "getReceiptToken", + value: function getReceiptToken() { + if (this.iapSecret) { + var unixTimestamp = new Date().getTime(); + var hexTimestamp = Math.trunc(unixTimestamp / 1000).toString(16); + var hexTauid = parseInt(this.TAUID || -1, 10).toString(16); + return _$$_REQUIRE(_dependencyMap[5]).StringUtils.getMd5(this.iapSecret + hexTimestamp + hexTauid) + "_" + hexTimestamp + "_" + hexTauid; + } + + return undefined; + } + }, { + key: "getExtraUserInfo", + value: function () { + var _getExtraUserInfo = (0, _asyncToGenerator2.default)(function* () { + var rawExtraUserInfo = yield this.getValue(_LoginHelper.default.SP.keys.extra_user_info); + + try { + var extraUserInfo = JSON.parse(rawExtraUserInfo); + return extraUserInfo; + } catch (e) {} + + return {}; + }); + + function getExtraUserInfo() { + return _getExtraUserInfo.apply(this, arguments); + } + + return getExtraUserInfo; + }() + }, { + key: "clear", + value: function () { + var _clear = (0, _asyncToGenerator2.default)(function* () { + var keys = Object.values(_LoginHelper.default.SP.keys); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + yield this.removeValue(key); + } + }); + + function clear() { + return _clear.apply(this, arguments); + } + + return clear; + }() + }], [{ + key: "isValidTAUID", + value: function isValidTAUID(TAUID) { + return TAUID && parseInt(TAUID, 10) > -1; + } + }]); + }(); +},870,[3,270,6,7,871,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 LoginHelper = exports.default = function () { + function LoginHelper() { + (0, _classCallCheck2.default)(this, LoginHelper); + } + + return (0, _createClass2.default)(LoginHelper, null, [{ key: "getItem", value: function () { var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItemFromDefaultPreferences(PaywallHelper.SP.name, key); + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(LoginHelper.SP.name, key); }); function getItem(_x) { @@ -119026,7 +128496,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "setItem", value: function () { var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItemInDefaultPreferences(PaywallHelper.SP.name, key, value); + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(LoginHelper.SP.name, key, value); }); function setItem(_x2, _x3) { @@ -119036,1344 +128506,279 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return setItem; }() }, { - key: "clearItem", + key: "removeItem", value: function () { - var _clearItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearItemFromDefaultPreferences(PaywallHelper.SP.name, key); + var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(LoginHelper.SP.name, key); }); - function clearItem(_x4) { - return _clearItem.apply(this, arguments); + function removeItem(_x4) { + return _removeItem.apply(this, arguments); } - return clearItem; + return removeItem; }() }, { - key: "getAccessedProductsList", + key: "updateItem", 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 []; + var _updateItem = (0, _asyncToGenerator2.default)(function* (key, value) { + if (value) { + return LoginHelper.setItem(key, value); } + + return LoginHelper.removeItem(key); }); - function getAccessedProductsList() { - return _getAccessedProductsList.apply(this, arguments); + function updateItem(_x5, _x6) { + return _updateItem.apply(this, arguments); } - return getAccessedProductsList; + return updateItem; }() }, { - key: "setAccessedProductsList", + key: "clearAll", value: function () { - var _setAccessedProductsList = (0, _asyncToGenerator2.default)(function* (value) { - return PaywallHelper.setItem(PaywallHelper.SP.keys.alreadyAccessedProducts, JSON.stringify(value)); + var _clearAll = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAll(LoginHelper.SP.name); }); - function setAccessedProductsList(_x5) { - return _setAccessedProductsList.apply(this, arguments); + function clearAll() { + return _clearAll.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; + return clearAll; }() }]); }(); - PaywallHelper.SP = { - name: "paywall", + LoginHelper.SP = { + name: "login", keys: { - welcomePopupAlreadyShown: "welcomePopupAlreadyShown", - alreadyAccessedProducts: "alreadyAccessedProducts", - offlineAccessedProducts: "offlineAccessedProducts", - firstProductsLeftPopupAlreadyShown: "firstProductsLeftPopupAlreadyShown", - userStatus: "userStatus", - config: "config", - lastProductsLeft: "lastProductsLeft", - logout: "logoutInRSS" + TAUID: "TAUID", + TOKEN: "TOKEN", + universal_link_token: "universalLinkToken", + one_time_token: "oneTimeToken", + iap_secret: "iapSecret", + has_access: "hasAccess", + receipt: "receipt", + receipt_date: "receipt_date", + challenge: "challenge", + username: "username", + password: "password", + extid: "extid", + extra_user_info: "extraUserInfo", + last_login_time: "last_login_time", + ad_free: "adFree", + allowed_ip_user: "allowedIPUser" } }; - 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" - } - }; -},818,[3,270,6,7,438]); +},871,[3,270,6,7,438]); __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(); - } -},819,[3,270,820,822,1713,1700,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.APP_SIDE = undefined; + exports.OptionspageConfig = 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 _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _KeyEvent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var OptionspageConfig = exports.OptionspageConfig = function () { + function OptionspageConfig(_ref) { + var mode = _ref.mode, + baseURL = _ref.baseURL, + coordinatesString = _ref.coordinatesString, + modal = _ref.modal; + (0, _classCallCheck2.default)(this, OptionspageConfig); + this.mode = mode; + this.baseURL = baseURL; + this.modal = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() && modal; + this.coordinatesString = coordinatesString; + } - var APP_SIDE = exports.APP_SIDE = { - ePaper: "ePaper", - ePaperHTML5: "ePaperHTML5", - rss: "rss" - }; + return (0, _createClass2.default)(OptionspageConfig, [{ + key: "isDisabled", + value: function isDisabled() { + return this.mode === 0; + } + }, { + key: "alwaysOpenAtStartup", + value: function alwaysOpenAtStartup() { + return this.mode === 1; + } + }, { + key: "getBaseURL", + value: function getBaseURL() { + return this.baseURL; + } + }, { + key: "computeCoordinates", + value: function computeCoordinates() { + var rawCoordinates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + var orientation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _deviceUtils.default.currentOrientation; + var top; + var left; + var width; + var height; + var screenWidth; + var screenHeight; + var screenIsPortrait; - var LiveConfigSingleton = function () { - function LiveConfigSingleton() { - var _this = this; + var safeArea = _deviceUtils.default.getSafeArea(); - (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]); + if (safeArea) { + screenWidth = safeArea.width; + screenHeight = safeArea.height; + screenIsPortrait = _deviceUtils.default.isPortrait(_deviceUtils.default.currentOrientation); } 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; + var _DeviceUtils$getScree = _deviceUtils.default.getScreenDimensions(orientation); - if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(_this, key)) { - _this._resolvePromise(resolve, _this[key]); + screenWidth = _DeviceUtils$getScree.width; + screenHeight = _DeviceUtils$getScree.height; + screenIsPortrait = _DeviceUtils$getScree.isPortrait; + } + + var widthToUse = screenWidth; + var heightToUse = screenHeight; + + var isPortrait = _deviceUtils.default.isPortrait(orientation); + + if (isPortrait !== screenIsPortrait) { + widthToUse = screenHeight; + heightToUse = screenWidth; + } + + if (this.modal) { + height = isPortrait ? widthToUse : heightToUse; + width = isPortrait ? widthToUse : heightToUse; + left = isPortrait ? 0 : Math.abs(widthToUse - heightToUse) / 2; + top = isPortrait ? Math.abs(widthToUse - heightToUse) / 2 : 0; } else { - _this._rejectPromise(reject, key); + height = heightToUse; + width = widthToUse; + left = 0; + top = 0; } - }); - } - return (0, _createClass2.default)(LiveConfigSingleton, [{ - key: "set", - value: function set(key, value) { - if (_$$_REQUIRE(_dependencyMap[6]).JSUtils.hasProperty(this, key)) { - this[key] = value; + var coordSplit = rawCoordinates.split("&"); + + if (coordSplit.length === 8) { + var h = coordSplit[0]; + var hv = coordSplit[1]; + var w = coordSplit[2]; + var wv = coordSplit[3]; + var x = coordSplit[4]; + var xv = coordSplit[5]; + var y = coordSplit[6]; + var yv = coordSplit[7]; + + if (isPortrait) { + height = this.parseSize(hv, heightToUse); + width = this.parseSize(wv, widthToUse); + top = this.parseXY(yv, height, heightToUse); + left = this.parseXY(xv, width, widthToUse); + } else { + height = this.parseSize(h, heightToUse); + width = this.parseSize(w, widthToUse); + top = this.parseXY(y, height, heightToUse); + left = this.parseXY(x, width, widthToUse); + } } + + if (width > screenWidth) { + left = 0; + width = screenWidth; + } else if (left + width > screenWidth) { + left = Math.max(0, (screenWidth - width) / 2); + } + + if (height > screenHeight) { + top = 0; + height = screenHeight; + } else if (top + height > screenHeight) { + top = Math.max(0, (screenHeight - height) / 2); + } + + var coordinates = { + left: left, + top: top, + width: width, + height: height + }; + return coordinates; } }, { - key: "get", - value: function get(key) { - return this[key]; + key: "parseSize", + value: function parseSize(value, dimReference) { + var result; + var percIndex = value.indexOf("%"); + + if (percIndex > 0) { + result = parseInt(value.substring(0, percIndex), 10) / 100 * dimReference; + } else { + var pxIndex = value.indexOf("px"); + + if (pxIndex > 0) { + value = value.substring(0, pxIndex); + } + + result = parseInt(value, 10); + } + + return result; } }, { - key: "_resolvePromise", - value: function _resolvePromise(resolve, result) { - if (typeof resolve === "function") { - resolve(result); + key: "parseXY", + value: function parseXY(value, sizeReference, dimReference) { + var result; + var pxIndex = value.indexOf("px"); + + if (pxIndex > 0) { + value = value.substring(0, pxIndex); + result = parseInt(value, 10); + } else { + if (value === "-1") { + return dimReference - sizeReference; + } + + if (value === "0") { + return (dimReference - sizeReference) / 2; + } + + if (value === "1") { + return 0; + } + + result = parseInt(value, 10); + + if (result < 0) { + result = dimReference - sizeReference + result; + } } + + return result; } }, { - key: "_rejectPromise", - value: function _rejectPromise(reject, key) { - if (typeof reject === "function") { - reject(new Error(key + " not found")); - } + key: "getCoordinates", + value: function getCoordinates() { + var orientation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _deviceUtils.default.currentOrientation; + return this.computeCoordinates(this.coordinatesString, orientation); + } + }, { + key: "isModal", + value: function isModal() { + return this.modal; } }]); }(); - - 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("_"); - } - }]); - }(); -},820,[3,6,7,436,821,564,438]); +},872,[3,6,7,434,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] || ""; - } - }]); - }(); -},821,[3,6,7,18]); -__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(); -},822,[3,270,7,6,823,1699,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; + exports.FeedbackConfig = undefined; var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -120381,160 +128786,1075 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var WILL_OPEN_URL_TIMEOUT = 2000; - var TOKEN_EXPIRED_TIMEOUT = 2000; + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var SDKUtils = exports.default = function () { - function SDKUtils() { - (0, _classCallCheck2.default)(this, SDKUtils); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _PaperSetupHelper = _$$_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 FeedbackConfig = exports.FeedbackConfig = function (_PaperSetupBaseConfig) { + function FeedbackConfig() { + (0, _classCallCheck2.default)(this, FeedbackConfig); + return _callSuper(this, FeedbackConfig, arguments); } - return (0, _createClass2.default)(SDKUtils, null, [{ - key: "close", + (0, _inherits2.default)(FeedbackConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(FeedbackConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.feedback; + } + }, { + key: "init", value: function () { - var _close = (0, _asyncToGenerator2.default)(function* () { - if (!global.isTaAddon()) { - return Promise.resolve(); + var _init = (0, _asyncToGenerator2.default)(function* () { + var _this$resetTimestamp; + + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(FeedbackConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + show_dont_show_again_first_dialog = _this$getStorageKeys.show_dont_show_again_first_dialog, + show_dont_show_again = _this$getStorageKeys.show_dont_show_again, + show_not_sure_yet_first_dialog = _this$getStorageKeys.show_not_sure_yet_first_dialog, + lower_active_date_range = _this$getStorageKeys.lower_active_date_range, + upper_active_date_range = _this$getStorageKeys.upper_active_date_range, + active_days_to_show = _this$getStorageKeys.active_days_to_show, + total_days_to_show = _this$getStorageKeys.total_days_to_show, + total_days_to_show_first_time = _this$getStorageKeys.total_days_to_show_first_time, + request_title = _this$getStorageKeys.request_title, + request_review_title = _this$getStorageKeys.request_review_title, + ask = _this$getStorageKeys.ask, + email = _this$getStorageKeys.email, + link = _this$getStorageKeys.link, + reset_timestamp = _this$getStorageKeys.reset_timestamp, + cool_down_days = _this$getStorageKeys.cool_down_days, + cool_down_days_dont_show_again = _this$getStorageKeys.cool_down_days_dont_show_again; + + this.showDontShowAgainFirstDialog = ((yield this.getValue(show_dont_show_again_first_dialog)) || "0") === "1"; + this.showDontShowAgain = ((yield this.getValue(show_dont_show_again)) || "1") === "1"; + this.showNotSureYetFirstDialog = ((yield this.getValue(show_not_sure_yet_first_dialog)) || "1") === "1"; + this.lowerActiveDateRange = (parseInt(yield this.getValue(lower_active_date_range), 10) || "1") * _$$_REQUIRE(_dependencyMap[9]).DateUtils.DAY_IN_MILLS; + this.upperActiveDateRange = (parseInt(yield this.getValue(upper_active_date_range), 10) || "3") * _$$_REQUIRE(_dependencyMap[9]).DateUtils.DAY_IN_MILLS; + this.activeDaysToShow = parseInt((yield this.getValue(active_days_to_show)) || "6", 10); + this.totalDaysToShow = parseInt((yield this.getValue(total_days_to_show)) || "15", 10); + this.totalDaysToShowFirstTime = parseInt((yield this.getValue(total_days_to_show_first_time)) || this.totalDaysToShow, 10); + this.coolDownDays = parseInt((yield this.getValue(cool_down_days)) || "60", 10); + this.coolDownDaysDontShowAgain = parseInt((yield this.getValue(cool_down_days_dont_show_again)) || "90", 10); + this.requestFeedbackTitle = (yield this.getValue(request_title)) || global.strings("feedback_title_request_feedback"); + this.requestReviewFeedbackTitle = (yield this.getValue(request_review_title)) || global.strings("feedback_title_request_review_feedback"); + this.askForFeedback = (yield this.getValue(ask)) || global.strings("feedback_msg_ask_for_feedback"); + this.emailForFeedback = (yield this.getValue(email)) || global.strings("feedback_email_feedback"); + this.linkForFeedback = (yield this.getValue(link)) || ""; + this.resetTimestamp = yield this.getValue(reset_timestamp); + + if (((_this$resetTimestamp = this.resetTimestamp) == null ? undefined : _this$resetTimestamp.length) < 14) { + this.resetTimestamp = this.resetTimestamp.padEnd(14, "0"); } - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - return IOSNewsmemorySDK.close(); - } - - return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onClose(); + return true; }); - function close() { - return _close.apply(this, arguments); + function init() { + return _init.apply(this, arguments); } - return close; + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); +},873,[3,270,6,7,11,85,13,14,867,438,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PaperSetupBaseConfig = 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 _PaperSetupHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var PaperSetupBaseConfig = exports.PaperSetupBaseConfig = function () { + function PaperSetupBaseConfig(pSetup, machine) { + (0, _classCallCheck2.default)(this, PaperSetupBaseConfig); + this.pSetup = pSetup; + this.originalMachine = machine; + this.storageKey = pSetup + "-" + machine; + } + + return (0, _createClass2.default)(PaperSetupBaseConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return {}; + } + }, { + key: "getJSONKeys", + value: function getJSONKeys() { + var storage = _$$_REQUIRE(_dependencyMap[5]).JSUtils.flattenObject(this.getStorageKeys()); + + return Object.values(storage); + } + }, { + key: "filterJSON", + value: function filterJSON(json) { + var jsonKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + + if (jsonKeys && jsonKeys.length > 0) { + return Object.keys(json).reduce(function (prev, current) { + if (jsonKeys.includes(current)) { + prev[current] = json[current]; + } + + return prev; + }, {}); + } + + return json; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.json = this.filterJSON(json, this.getJSONKeys()); + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; }() }, { - key: "willOpenURL", + key: "setValue", 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]); + var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { + this.json[key] = value; + return _PaperSetupHelper.default.setItem(this.storageKey, key, value); }); - function willOpenURL(_x) { - return _willOpenURL.apply(this, arguments); + function setValue(_x, _x2) { + return _setValue.apply(this, arguments); } - return willOpenURL; + return setValue; }() }, { - key: "onTrackAction", + key: "getValue", value: function () { - var _onTrackAction = (0, _asyncToGenerator2.default)(function* (data) { - if (!global.isTaAddon()) { - return Promise.resolve(); + var _getValue = (0, _asyncToGenerator2.default)(function* (key) { + if (_$$_REQUIRE(_dependencyMap[5]).JSUtils.hasProperty(this.json, key)) { + var value = this.json[key]; + + if (value === null || value === undefined) { + value = yield _PaperSetupHelper.default.getItem(this.storageKey, key); + } + + return value; } - var IOSNewsmemorySDK = _optionalPackageUtils.default.getIOSNewsmemorySDK(); - - if (IOSNewsmemorySDK) { - return IOSNewsmemorySDK.onTrackAction(data); - } - - return _$$_REQUIRE(_dependencyMap[5]).OurBridge.onTrackAction(data); + return ""; }); - function onTrackAction(_x2) { - return _onTrackAction.apply(this, arguments); + function getValue(_x3) { + return _getValue.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; + return getValue; }() }]); }(); -},823,[3,270,6,7,824,579]); +},874,[3,270,6,7,867,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.AdobeAnalyticsConfig = 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 _PaperSetupHelper = _$$_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 AdobeAnalyticsConfig = exports.AdobeAnalyticsConfig = function (_PaperSetupBaseConfig) { + function AdobeAnalyticsConfig() { + (0, _classCallCheck2.default)(this, AdobeAnalyticsConfig); + return _callSuper(this, AdobeAnalyticsConfig, arguments); + } + + (0, _inherits2.default)(AdobeAnalyticsConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(AdobeAnalyticsConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.adobe_analytics; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(AdobeAnalyticsConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + props_list = _this$getStorageKeys.props_list, + send_only_edition_load = _this$getStorageKeys.send_only_edition_load, + first_page_section_prefix = _this$getStorageKeys.first_page_section_prefix, + edition_type = _this$getStorageKeys.edition_type, + device_type = _this$getStorageKeys.device_type, + user_types = _this$getStorageKeys.user_types, + actions = _this$getStorageKeys.actions, + states = _this$getStorageKeys.states, + media = _this$getStorageKeys.media, + content_types = _this$getStorageKeys.content_types; + + this.propsList = (yield this.getValue(props_list)) || ""; + this.sendOnlyEditionLoad = ((yield this.getValue(send_only_edition_load)) || "0") === "1"; + this.userTypeUnknown = (yield this.getValue(user_types.unknown)) || ""; + this.userTypeSubscriber = (yield this.getValue(user_types.subscriber)) || ""; + this.editionLoadActionName = (yield this.getValue(actions.edition_load)) || ""; + this.scrollZoomActionName = (yield this.getValue(actions.scroll_zoom)) || ""; + this.doubleTapActionName = (yield this.getValue(actions.double_tap_to_zoom)) || ""; + this.pinchOutActionName = (yield this.getValue(actions.pinch_to_zoom)) || ""; + this.textToSpeechActionName = (yield this.getValue(actions.tts)) || ""; + this.skipToEndActionName = (yield this.getValue(actions.skip_to_end)) || ""; + this.toggleToPrintActionName = (yield this.getValue(actions.toggle_to_print)) || ""; + this.toggleToDigitalActionName = (yield this.getValue(actions.toggle_to_digital)) || ""; + this.shareActionName = (yield this.getValue(actions.share)) || ""; + this.linkClickActionName = (yield this.getValue(actions.link_click)) || ""; + this.scrolledStateName = (yield this.getValue(states.scrolled)) || ""; + this.readStateName = (yield this.getValue(states.read)) || ""; + this.zoomedStateName = (yield this.getValue(states.zoomed)) || ""; + this.indexStateName = (yield this.getValue(states.index)) || ""; + this.optionspageStateName = (yield this.getValue(states.optionspage)) || ""; + this.printMedium = (yield this.getValue(media.print)) || "print"; + this.digitalMedium = (yield this.getValue(media.digital)) || "digital"; + this.zoomedMediumSuffix = (yield this.getValue(media.zoomed_suffix)) || " zoom"; + this.firstPageSectionPrefix = (yield this.getValue(first_page_section_prefix)) || ""; + this.pageContentType = (yield this.getValue(content_types.page)) || ""; + this.firstPageContentType = (yield this.getValue(content_types.first_page)) || this.pageContentType; + this.indexContentType = (yield this.getValue(content_types.index)) || ""; + this.articleContentType = (yield this.getValue(content_types.article)) || ""; + this.optionspageContentType = (yield this.getValue(content_types.optionspage)) || ""; + this.editionType = (yield this.getValue(edition_type)) || "Newspaper"; + this.deviceType = (yield this.getValue(device_type)) || (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isTablet() ? "Tablet" : "Mobile Phone"); + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); +},875,[3,270,6,7,11,85,13,14,867,438,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MatomoConfig = 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 _PaperSetupHelper = _$$_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 DEFAULT_CUSTOM_DIMENSIONS = "dimension1=$deviceType&dimension2=$issue&dimension3=$edition&dimension4=$page&dimension5=$articleId&dimension6=$action&dimension7=$ePaperAccess&dimension8=$title"; + + var MatomoConfig = exports.MatomoConfig = function (_PaperSetupBaseConfig) { + function MatomoConfig() { + (0, _classCallCheck2.default)(this, MatomoConfig); + return _callSuper(this, MatomoConfig, arguments); + } + + (0, _inherits2.default)(MatomoConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(MatomoConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.matomo; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(MatomoConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + site_id = _this$getStorageKeys.site_id, + rss_site_id = _this$getStorageKeys.rss_site_id, + base_url = _this$getStorageKeys.base_url, + visit_custom_dimensions = _this$getStorageKeys.visit_custom_dimensions, + custom_dimensions = _this$getStorageKeys.custom_dimensions, + dispatch_interval = _this$getStorageKeys.dispatch_interval; + + this.ePaperSiteId = (yield this.getValue(site_id)) || ""; + 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)) || DEFAULT_CUSTOM_DIMENSIONS; + this.dispatchInterval = parseFloat((yield this.getValue(dispatch_interval)) || "30.0"); + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); +},876,[3,270,6,7,11,85,13,14,867,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MatomoTrackerConfig = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _PaperSetupHelper = _$$_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 MatomoTrackerString = (0, _createClass2.default)(function MatomoTrackerString() { + (0, _classCallCheck2.default)(this, MatomoTrackerString); + }); + + var MatomoTrackerConfig = exports.MatomoTrackerConfig = function (_PaperSetupBaseConfig) { + function MatomoTrackerConfig() { + (0, _classCallCheck2.default)(this, MatomoTrackerConfig); + return _callSuper(this, MatomoTrackerConfig, arguments); + } + + (0, _inherits2.default)(MatomoTrackerConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(MatomoTrackerConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.matomo_tracker; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(MatomoTrackerConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + site_id = _this$getStorageKeys.site_id, + rss_site_id = _this$getStorageKeys.rss_site_id, + base_url = _this$getStorageKeys.base_url, + action_base_url = _this$getStorageKeys.action_base_url, + edition_remapping = _this$getStorageKeys.edition_remapping, + titles = _this$getStorageKeys.titles, + custom_urls = _this$getStorageKeys.custom_urls, + custom_dimensions = _this$getStorageKeys.custom_dimensions; + + this.ePaperSiteId = (yield this.getValue(site_id)) || ""; + this.rssSiteId = (yield this.getValue(rss_site_id)) || ""; + this.baseURL = (yield this.getValue(base_url)) || ""; + this.actionBaseURL = (yield this.getValue(action_base_url)) || ""; + this.editionRemapping = _$$_REQUIRE(_dependencyMap[9]).StringUtils.parseQuerystring((yield this.getValue(edition_remapping)) || ""); + this.titles = { + scrolled: (yield this.getValue(titles.scrolled)) || "", + read: (yield this.getValue(titles.read)) || "", + rss_drawer: (yield this.getValue(titles.rss_drawer)) || "", + rss_read: (yield this.getValue(titles.rss_read)) || "" + }; + this.customURLs = { + scrolled: (yield this.getValue(custom_urls.scrolled)) || "", + read: (yield this.getValue(custom_urls.read)) || "", + rss_drawer: (yield this.getValue(custom_urls.rss_drawer)) || "", + rss_read: (yield this.getValue(custom_urls.rss_read)) || "" + }; + this.customDimensions = { + scrolled: (yield this.getValue(custom_dimensions.scrolled)) || "", + read: (yield this.getValue(custom_dimensions.read)) || "", + rss_drawer: (yield this.getValue(custom_dimensions.rss_drawer)) || "", + rss_read: (yield this.getValue(custom_dimensions.rss_read)) || "" + }; + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); +},877,[3,270,11,85,13,14,7,6,867,438,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.BlueConicConfig = 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 _PaperSetupHelper = _$$_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 BlueConicConfig = exports.BlueConicConfig = function (_PaperSetupBaseConfig) { + function BlueConicConfig() { + (0, _classCallCheck2.default)(this, BlueConicConfig); + return _callSuper(this, BlueConicConfig, arguments); + } + + (0, _inherits2.default)(BlueConicConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(BlueConicConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.blueconic; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(BlueConicConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + user_profile_properties = _this$getStorageKeys.user_profile_properties, + view_profile_properties = _this$getStorageKeys.view_profile_properties; + + this.userProfileProperties = (yield this.getValue(user_profile_properties)) || ""; + this.viewProfileProperties = (yield this.getValue(view_profile_properties)) || ""; + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); +},878,[3,270,6,7,11,85,13,14,867,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ChartbeatConfig = 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 _PaperSetupHelper = _$$_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 ChartbeatConfig = exports.ChartbeatConfig = function (_PaperSetupBaseConfig) { + function ChartbeatConfig() { + var _this; + + (0, _classCallCheck2.default)(this, ChartbeatConfig); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, ChartbeatConfig, [].concat(args)); + + _this._split = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (key) { + var _yield$_this$getValue; + + return ((_yield$_this$getValue = yield _this.getValue(key)) == null ? undefined : _yield$_this$getValue.split(",").filter(function (i) { + return i; + })) || []; + }); + + return function (_x) { + return _ref.apply(this, arguments); + }; + }(); + + return _this; + } + + (0, _inherits2.default)(ChartbeatConfig, _PaperSetupBaseConfig); + return (0, _createClass2.default)(ChartbeatConfig, [{ + key: "getStorageKeys", + value: function getStorageKeys() { + return _PaperSetupHelper.default.SP.keys.chartbeat; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + yield (0, _get2.default)((0, _getPrototypeOf2.default)(ChartbeatConfig.prototype), "init", this).call(this, json); + + var _this$getStorageKeys = this.getStorageKeys(), + account_id = _this$getStorageKeys.account_id, + domain = _this$getStorageKeys.domain, + rss_enabled = _this$getStorageKeys.rss_enabled, + epaper_enabled = _this$getStorageKeys.epaper_enabled, + author_rss_properties = _this$getStorageKeys.author_rss_properties, + author_epaper_properties = _this$getStorageKeys.author_epaper_properties, + section_rss_properties = _this$getStorageKeys.section_rss_properties, + section_epaper_properties = _this$getStorageKeys.section_epaper_properties, + rss_title_keys = _this$getStorageKeys.rss_title_keys, + epaper_title_keys = _this$getStorageKeys.epaper_title_keys, + rss_screen_key = _this$getStorageKeys.rss_screen_key, + epaper_screen_key = _this$getStorageKeys.epaper_screen_key, + rss_custom_data = _this$getStorageKeys.rss_custom_data, + epaper_custom_data = _this$getStorageKeys.epaper_custom_data; + + this.accountId = (yield this.getValue(account_id)) || ""; + this.domain = (yield this.getValue(domain)) || ""; + this.rssEnabled = (yield this.getValue(rss_enabled)) === "1" || false; + this.epaperEnabled = (yield this.getValue(epaper_enabled)) === "1" || false; + this.sectionRssProperties = yield this._split(section_rss_properties); + this.sectionEpaperProperties = yield this._split(section_epaper_properties); + this.authorRssProperties = yield this._split(author_rss_properties); + this.authorEpaperProperties = yield this._split(author_epaper_properties); + this.rssTitleKeys = yield this._split(rss_title_keys); + this.epaperTitleKeys = yield this._split(epaper_title_keys); + this.rssScreenKey = yield this.getValue(rss_screen_key); + this.epaperScreenKey = yield this.getValue(epaper_screen_key); + this.rssCustomData = yield this.getValue(rss_custom_data); + this.epaperCustomData = yield this.getValue(epaper_custom_data); + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); +},879,[3,270,6,7,11,85,13,14,867,874]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.tabs = exports.locals = exports.default = exports.closeTypes = exports.IAPErrorMessages = 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 _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _excluded = ["extraParams", "edition"]; + var tabs = exports.tabs = { + access: "access", + accessibility: "accessibility", + account: "account", + archive: "archive", + carousel: "carousel", + contact: "contact", + eenotify: "eenotify", + help: "help", + home: "home", + impressum: "impressum", + login: "login", + market: "market", + purchases: "purchases", + puzzle: "puzzle", + registration: "registration", + rss: "rss", + settings: "connection", + specialsections: "specialsection", + subscribe: "subscribe", + uberabos: "uberabos", + updates: "updates", + validation: "validation", + version: "version", + generic: "generic" + }; + var locals = exports.locals = { + INITPAGE_SET_NEWSPAPER_AND_READ: "xc_initPage_setNewspaperAndRead", + INITPAGE_SET_EXTERNAL_NEWSPAPER: "xc_initPage_setExternalNewspaper", + LOAD_LATEST_PUBLICATION: "xc_loadLatestPublication", + GET_SAVED_ISSUES: "getSavedIssues", + DELETE_ISSUE: "deleteIssue", + RETURN_FROM_LOGIN: "returnFromLogin", + LOGOUT: "xc_initPage_logout", + STORE_USER_INFO: "storeUserInfo", + GET_USER_INFO: "getUserInfo", + BUY: "xc_buy", + RESUME_TRANSACTIONS: "resumeTransactions", + FINISH_TRANSACTION: "finishTransaction", + REQUEST_PRICE_BY_ID: "xc_requestPriceByID", + RESTORE_COMPLETED_TRANSACTIONS: "restoreCompletedTransactions", + SAVE_RECEIPT: "saveReceiptForRecurringPayment", + GET_KEY: "getFromKey", + SET_KEY: "setFromKey", + REMOVE_KEY: "removeKey", + SET_PREF_EDI: "setPrefEdi", + CLEAR_STORAGE: "clearStorage", + GET_CONFIG_DUMP: "getConfigDump", + OPEN_BROWSER: "xc_openBrowser", + OPEN_BROWSER_ALT: "openInAppBrowser", + CLOSE: "closeOptionPage", + GO_BACK: "backButtonClicked", + ALERT: "alert", + CONFIRM: "confirm", + OPEN_RSS: "xc_openRSSReader", + GET_USED_SPACE: "getIssuesUsedSpace", + CLOSE_WINDOW: "closeWindow", + GET_PUBLICATIONS_STORED: "getPublicationStored", + SET_PUBLICATION: "setPublication", + DELETE_PUBLICATION: "deletePublication", + OPEN_TAB_HOME: "openTabHome", + OPEN_TAB_LOGIN: "openTabLogin", + EXEC_JS: "xc_execJavascriptInMainApplication", + SHOW_DEBUG_INFO: "showDebugInfo", + OPEN_ACCESSIBILITY_MODE: "xc_openAccessibilityMode", + OPEN_ARCHIVE: "xc_openArchive", + RESTORE_DEFAULT_SETTINGS: "restoreDefaults", + CLOSE_ARTICLE: "art_closeTextArticle", + OPEN_OPTIONSPAGE: "openOptionPage", + SCROLL_TO_PAGE: "xc_scrollToPage", + DISPLAY_LOADER: "displayLoader", + OPEN_NATIVE_SETTINGS_SCREEN: "openNativeSettingsScreen", + FACEBOOK_LOGIN: "facebookLogin" + }; + var IAPErrorMessages = exports.IAPErrorMessages = { + iap_not_available: "IAP Not Available", + unknown: "Unknown Error", + cancelled: "Payment Cancelled", + user_error: "User Error", + item_unavailable: "Item Unavailable", + remote_error: "Remote Error", + network_error: "Network Error", + service_error: "Service Error", + receipt_failed: "Receipt Failed", + receipt_finished_failed: "Receipt Finished Failed", + not_prepared: "Not Prepared", + not_ended: "Not Ended", + already_owned: "Already Owned", + developer_error: "Developer Error", + billing_response_json_parse_error: "Error Parsing Billing Response JSON", + already_active_subscription: "Already have an active subscription" + }; + var closeTypes = exports.closeTypes = { + close: "close", + back: "back", + none: "none" + }; + + var OptionspageUtils = exports.default = function () { + function OptionspageUtils() { + (0, _classCallCheck2.default)(this, OptionspageUtils); + } + + return (0, _createClass2.default)(OptionspageUtils, null, [{ + key: "getBaseURL", + value: function getBaseURL() { + var _global$getActivePSet = global.getActivePSetup(), + optionspageConfig = _global$getActivePSet.optionspageConfig; + + return _$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(optionspageConfig.baseURL); + } + }, { + key: "getTabUrl", + value: function getTabUrl(tab) { + var otherGetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var baseURL = this.getBaseURL(); + + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(baseURL), + protocol = _StringUtils$segmentU.protocol, + domain = _StringUtils$segmentU.domain, + path = _StringUtils$segmentU.path, + baseGetParams = _StringUtils$segmentU.getParams; + + var params = Object.assign({ + tab: tab + }, this.getDefaultParams(), baseGetParams, otherGetParams); + + var queryString = _$$_REQUIRE(_dependencyMap[6]).StringUtils.getQuerystring(params); + + return protocol + "://" + domain + "/" + path + "?" + queryString; + } + }, { + key: "getCustomUrl", + value: function getCustomUrl(baseURL) { + var otherGetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var _StringUtils$segmentU2 = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(baseURL), + protocol = _StringUtils$segmentU2.protocol, + domain = _StringUtils$segmentU2.domain, + path = _StringUtils$segmentU2.path, + baseGetParams = _StringUtils$segmentU2.getParams; + + var params = Object.assign(this.getDefaultParams(), baseGetParams, otherGetParams); + + var queryString = _$$_REQUIRE(_dependencyMap[6]).StringUtils.getQuerystring(params); + + return protocol + "://" + domain + "/" + path + "?" + queryString; + } + }, { + key: "getDefaultParams", + value: function getDefaultParams() { + var _global$getNewsmemory = global.getNewsmemoryConfig(), + network = _global$getNewsmemory.network, + limit = _global$getNewsmemory.limit, + connectivity = _global$getNewsmemory.connectivity; + + var _global$getActivePSet2 = global.getActivePSetup(), + pSetup = _global$getActivePSet2.pSetup, + loginStatus = _global$getActivePSet2.loginStatus; + + var TAUID = loginStatus.TAUID; + var defaultParams = { + pSetup: pSetup, + MACHINEID: global.machineId, + useDB: 1, + ver: _deviceUtils.default.getAppVersion(), + isDebug: global.isDebug, + network: network, + isPhone: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isTablet() ? 0 : 1, + isKindle: _deviceUtils.default.isKindle() ? 1 : undefined, + limit: limit, + connectivity: connectivity, + accessibilityMode: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isSystemAccessibilityEnabled() ? "1" : "0" + }; + defaultParams[_$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isAndroid() ? "isAndroid" : "isXcode"] = 1; + + if (TAUID) { + defaultParams.TAUID = TAUID; + } + + return defaultParams; + } + }, { + key: "getHomeTabUrl", + value: function getHomeTabUrl() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return this.getTabUrl(tabs.home, params); + } + }, { + key: "getLoginTabUrl", + value: function getLoginTabUrl() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return this.getTabUrl(tabs.account, params); + } + }, { + key: "getHelpTabUrl", + value: function getHelpTabUrl() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return this.getTabUrl(tabs.help, params); + } + }, { + key: "getSettingsTabUrl", + value: function getSettingsTabUrl() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return this.getTabUrl(tabs.settings, params); + } + }, { + key: "isSamePage", + value: function isSamePage(urlA, urlB) { + var ignoreParams = ["r", "edition"]; + + var newUrlA = _$$_REQUIRE(_dependencyMap[6]).StringUtils.removeParams(urlA, ignoreParams); + + var newUrlB = _$$_REQUIRE(_dependencyMap[6]).StringUtils.removeParams(urlB, ignoreParams); + + return newUrlA === newUrlB; + } + }, { + key: "optionPageVersion", + value: function optionPageVersion() { + var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getMainPSetup(); + var optionspageConfig = config.optionspageConfig; + + if (optionspageConfig && optionspageConfig.baseURL) { + var regExp = /(?:opt|optionspage)\.[a-zA-Z0-9]+\.[a-zA-Z0-9.]+/; + var result = regExp.exec(optionspageConfig.baseURL); + + if (result) { + return result[0]; + } + } + + return "n/a"; + } + }, { + key: "getIAPErrorMessage", + value: function getIAPErrorMessage(error) { + var _OptionalPackages$get = _optionalPackageUtils.default.getIapModule(), + IAPErrorCode = _OptionalPackages$get.IAPErrorCode; + + var message = IAPErrorMessages.unknown; + + if (error && IAPErrorCode) { + switch (error.code) { + case IAPErrorCode.E_IAP_NOT_AVAILABLE: + message = IAPErrorMessages.iap_not_available; + break; + + case IAPErrorCode.E_USER_CANCELLED: + message = IAPErrorMessages.cancelled; + break; + + case IAPErrorCode.E_USER_ERROR: + message = IAPErrorMessages.user_error; + break; + + case IAPErrorCode.E_ITEM_UNAVAILABLE: + message = IAPErrorMessages.item_unavailable; + break; + + case IAPErrorCode.E_REMOTE_ERROR: + message = IAPErrorMessages.remote_error; + break; + + case IAPErrorCode.E_NETWORK_ERROR: + message = IAPErrorMessages.network_error; + break; + + case IAPErrorCode.E_SERVICE_ERROR: + message = IAPErrorMessages.service_error; + break; + + case IAPErrorCode.E_RECEIPT_FAILED: + message = IAPErrorMessages.receipt_failed; + break; + + case IAPErrorCode.E_RECEIPT_FINISHED_FAILED: + message = IAPErrorMessages.receipt_finished_failed; + break; + + case IAPErrorCode.E_NOT_PREPARED: + message = IAPErrorMessages.not_prepared; + break; + + case IAPErrorCode.E_NOT_ENDED: + message = IAPErrorMessages.not_ended; + break; + + case IAPErrorCode.E_ALREADY_OWNED: + message = IAPErrorMessages.already_owned; + break; + + case IAPErrorCode.E_DEVELOPER_ERROR: + message = IAPErrorMessages.developer_error; + break; + + case IAPErrorCode.E_BILLING_RESPONSE_JSON_PARSE_ERROR: + message = IAPErrorMessages.billing_response_json_parse_error; + break; + + case IAPErrorCode.E_ACTIVE_SUBSCRIPTION: + message = IAPErrorMessages.already_active_subscription; + break; + } + + if (error.message && error.code !== IAPErrorCode.E_USER_CANCELLED) { + message = error.message; + } + } + + return message; + } + }, { + key: "getTabByURL", + value: function getTabByURL(url) { + var _StringUtils$segmentU3 = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(url), + path = _StringUtils$segmentU3.path, + getParams = _StringUtils$segmentU3.getParams; + + var scriptName = _$$_REQUIRE(_dependencyMap[6]).StringUtils.fileNameFromPath(path); + + var tab = getParams.tab; + + switch (scriptName) { + case "initpage.php": + tab = tabs.home; + break; + + case "ipad_login.php": + tab = tabs.login; + break; + + case "ipad_access.php": + tab = tabs.access; + break; + + case "ipad_subscribe.php": + tab = tabs.subscribe; + break; + + case "ipad_registration.php": + tab = tabs.registration; + break; + + case "ipad_help.php": + tab = tabs.help; + break; + + case "ipad_uberabos.php": + tab = tabs.uberabos; + break; + + case "ipad_contact.php": + tab = tabs.contact; + break; + + case "ipad_impressum.php": + tab = tabs.impressum; + break; + + case "ipad_notify.php": + tab = tabs.eenotify; + break; + + case "ipad_archive.php": + tab = tabs.archive; + break; + + case "ipad_ss.php": + tab = tabs.specialsections; + break; + + case "ipad_puzzle.php": + tab = tabs.puzzle; + break; + + case "ipad_purchases.php": + tab = tabs.purchases; + break; + + case "ipad_updates.php": + tab = tabs.updates; + break; + + case "ipad_market.php": + tab = tabs.market; + break; + + case "ipad_version.php": + tab = tabs.version; + break; + + case "ipad_connection.php": + tab = tabs.settings; + break; + } + + return tab; + } + }, { + key: "getOptionspageGetParams", + value: function getOptionspageGetParams() { + var errorParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var getParams = {}; + + try { + var extraParams = errorParams.extraParams, + editionEncoded = errorParams.edition, + rest = (0, _objectWithoutProperties2.default)(errorParams, _excluded); + getParams = Object.assign({}, rest, _$$_REQUIRE(_dependencyMap[6]).StringUtils.parseQuerystring(extraParams)); + + if (editionEncoded) { + getParams.edition = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(editionEncoded); + } + } catch (e) {} + + return getParams; + } + }]); + }(); +},880,[3,4,6,7,434,881,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120547,7 +129867,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _OptionalPackages$mod16; + var _OptionalPackages$mod15; var DEPENDENCIES = { AdMob: "@tecnavia/react-native-admob", @@ -120687,7 +130007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "getOneSignal", value: function getOneSignal() { - return OptionalPackages.isOneSignalAvailable() ? OptionalPackages.modules[DEPENDENCIES.OneSignal].default : null; + return OptionalPackages.isOneSignalAvailable() ? OptionalPackages.modules[DEPENDENCIES.OneSignal].OneSignal : null; } }, { key: "getRNHtmlToPdf", @@ -120908,12 +130228,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } - var _OptionalPackages$mod12 = OptionalPackages.modules[DEPENDENCIES.DailyMotionPlayer], - Player = _OptionalPackages$mod12.default, - setConsentString = _OptionalPackages$mod12.setConsentString; + var Player = OptionalPackages.modules[DEPENDENCIES.DailyMotionPlayer].default; return { - Player: Player, - setConsentString: setConsentString + Player: Player }; } }, { @@ -120923,9 +130240,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } - var _OptionalPackages$mod13 = OptionalPackages.modules[DEPENDENCIES.IubendaCMP], - Iubenda = _OptionalPackages$mod13.default, - Container = _OptionalPackages$mod13.Container; + var _OptionalPackages$mod12 = OptionalPackages.modules[DEPENDENCIES.IubendaCMP], + Iubenda = _OptionalPackages$mod12.default, + Container = _OptionalPackages$mod12.Container; return { Iubenda: Iubenda, Container: Container @@ -120938,9 +130255,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } - var _OptionalPackages$mod14 = OptionalPackages.modules[DEPENDENCIES.Osano], - Container = _OptionalPackages$mod14.default, - Osano = _OptionalPackages$mod14.Osano; + var _OptionalPackages$mod13 = OptionalPackages.modules[DEPENDENCIES.Osano], + Container = _OptionalPackages$mod13.default, + Osano = _OptionalPackages$mod13.Osano; return { Osano: Osano, Container: Container @@ -120953,9 +130270,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } - var _OptionalPackages$mod15 = OptionalPackages.modules[DEPENDENCIES.ScreenshotPrevent], - RNScreenshotPrevent = _OptionalPackages$mod15.default, - addListener = _OptionalPackages$mod15.addListener; + var _OptionalPackages$mod14 = OptionalPackages.modules[DEPENDENCIES.ScreenshotPrevent], + RNScreenshotPrevent = _OptionalPackages$mod14.default, + addListener = _OptionalPackages$mod14.addListener; return { RNScreenshotPrevent: RNScreenshotPrevent, addListener: addListener @@ -121172,49 +130489,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@blueconic/blueconic-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-admob'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-chartbeat'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-cloud-messaging'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-push-notification'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@react-native-community/push-notification-ios'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-dailymotion-sdk'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.rc/src/lib/utils/noop.js"); }(); break; @@ -121225,21 +130542,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-external-link-account'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-firebase-analytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-firebase-crashlytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.rc/src/lib/utils/noop.js"); }(); break; @@ -121254,14 +130571,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case DEPENDENCIES.Osano: module = function () { - throw new Error("Cannot find module '@tecnavia/react-native-osano-web'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-osano-web'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-screenshot-prevent'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.rc/src/lib/utils/noop.js"); }(); break; @@ -121272,112 +130589,112 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case DEPENDENCIES.MatomoTracker: module = function () { - throw new Error("Cannot find module 'matomo-tracker-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'matomo-tracker-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-adbmobile'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-baronweather'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-comscore'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-fbsdk-next'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-html-to-pdf'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-iap'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-maps'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-mather-analytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-matomo'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-nativo-ads'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-onesignal'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-prebid'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-tracking-transparency'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-viafoura'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.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.05.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-voice'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.rc/src/lib/utils/noop.js"); }(); break; @@ -121393,8 +130710,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }]); }(); - 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)); -},824,[3,240,6,7,438,825,828,848,849,855]); + OptionalPackages.modules = (_OptionalPackages$mod15 = {}, (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$mod15, 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$mod15, 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$mod15, 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$mod15, DEPENDENCIES.ViafouraWebView, undefined), DEPENDENCIES.Voice, undefined), DEPENDENCIES.WebAnalytics, undefined)); +},881,[3,240,6,7,438,882,885,905,906,912]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _RNDFPBanner = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -121404,7 +130721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Banner: _RNDFPBanner.default, Interstitial: _RNDFPInterstitial.default }; -},825,[3,826,827]); +},882,[3,883,884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121549,7 +130866,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e targeting: _propTypes.default.object }; var RNBanner = (0, _reactNative.requireNativeComponent)("RNDFPBanner", DFPBanner); -},826,[3,224,6,7,11,13,14,16,582,18,179]); +},883,[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 @@ -121559,7 +130876,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.RNDFPInterstitial; -},827,[18]); +},884,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121577,7 +130894,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; -},828,[3,829,841]); +},885,[3,886,898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121888,7 +131205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onConsentChange: undefined, onDismiss: undefined }; -},829,[3,4,270,7,6,16,830,438,832,179,833]); +},886,[3,4,270,7,6,16,887,438,889,179,890]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122126,7 +131443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},830,[3,270,6,7,831,438]); +},887,[3,270,6,7,888,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122200,7 +131517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e uspData: "uspData" } }; -},831,[3,270,6,7,438]); +},888,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122231,7 +131548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onShowConsentUI(value); } }; -},832,[3,33,16]); +},889,[3,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122489,7 +131806,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOptOut: _propTypes.default.func, onClose: _propTypes.default.func }; -},833,[3,22,4,6,7,11,13,14,16,582,18,438,179,834]); +},890,[3,22,4,6,7,11,13,14,16,582,18,438,179,891]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122505,7 +131822,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; -},834,[3,835]); +},891,[3,892]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122771,7 +132088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = WebView; -},835,[16,18,3,37,31,836,837,838,839,179]); +},892,[16,18,3,37,31,893,894,895,896,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122787,7 +132104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNCWebView'); -},836,[3,183,133]); +},893,[3,183,133]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122797,7 +132114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNCWebView'); -},837,[18]); +},894,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122839,7 +132156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = styles; -},838,[18]); +},895,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123048,7 +132365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e lastErrorEvent: lastErrorEvent }; }; -},839,[3,840,16,18,838,179]); +},896,[3,897,16,18,895,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -123061,7 +132378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(matchOperatorsRegex, '\\$&'); }; -},840,[]); +},897,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123098,7 +132415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = IubendaContainer; -},841,[3,16,582,829,832,842,179]); +},898,[3,16,582,886,889,899,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123143,7 +132460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},842,[843,845,846,847]); +},899,[900,902,903,904]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123276,7 +132593,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var SafeAreaConsumer = exports.SafeAreaConsumer = SafeAreaInsetsContext.Consumer; var SafeAreaContext = exports.SafeAreaContext = SafeAreaInsetsContext; -},843,[3,33,16,18,844,179]); +},900,[3,33,16,18,901,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123286,7 +132603,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = (0, _reactNative.requireNativeComponent)('RNCSafeAreaProvider'); -},844,[18]); +},901,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123296,7 +132613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var SafeAreaView = exports.SafeAreaView = (0, _reactNative.requireNativeComponent)('RNCSafeAreaView'); -},845,[18]); +},902,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123309,12 +132626,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; -},846,[18]); +},903,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); -},847,[]); +},904,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123442,7 +132759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},848,[3,270,6,7,18]); +},905,[3,270,6,7,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123459,7 +132776,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = analytics; -},849,[850]); +},906,[907]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123621,14 +132938,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},850,[3,270,6,7,18,851,852,853]); +},907,[3,270,6,7,18,908,909,910]); __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"; -},851,[]); +},908,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123689,7 +133006,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } -},852,[853,854]); +},909,[910,911]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123794,14 +133111,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function noop() {} -},853,[]); +},910,[]); __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"]; -},854,[]); +},911,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123972,13 +133289,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Root; exports.default = _default; -},855,[3,591,4,856,16,582,18,877,1697,1698,896,888,1268,1028,1017]); +},912,[3,590,4,913,16,582,18,934,1722,1723,953,945,1318,1078,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { _$$_REQUIRE(_dependencyMap[0]); -},856,[857]); +},913,[914]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (0, _$$_REQUIRE(_dependencyMap[0]).setupURLPolyfill)(); -},857,[858]); +},914,[915]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -124022,7 +133339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[2]).URLSearchParams; }); } -},858,[859,860,875,876,70]); +},915,[916,917,932,933,70]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -124039,7 +133356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},859,[18]); +},916,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -124070,7 +133387,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; -},860,[18,861]); +},917,[18,918]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -124092,13 +133409,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; -},861,[862,866,871]); +},918,[919,923,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; exports.URL = _$$_REQUIRE(_dependencyMap[0]); exports.URLSearchParams = _$$_REQUIRE(_dependencyMap[1]); -},862,[863,872]); +},919,[920,929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -124511,7 +133828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},863,[864,865,6,874,7,240]); +},920,[921,922,6,931,7,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -124631,7 +133948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e namedSetExisting: namedSetExisting, namedDelete: namedDelete }; -},864,[]); +},921,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -124884,7 +134201,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},865,[6,866,872,7,871]); +},922,[6,923,929,7,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -126218,7 +135535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e encodingOverride: options.encodingOverride }); }; -},866,[867,868,869,871]); +},923,[924,925,926,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -126497,7 +135814,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 'toUnicode': toUnicode }; module.exports = punycode; -},867,[22]); +},924,[22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -126523,7 +135840,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isASCIIAlphanumeric: isASCIIAlphanumeric, isASCIIHex: isASCIIHex }; -},868,[]); +},925,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /*! * The buffer module from node.js, for the browser. @@ -128198,7 +137515,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return table; }(); -},869,[94,870]); +},926,[94,927]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m; @@ -128288,7 +137605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buffer[offset + i - d] |= s * 128; }; -},870,[]); +},927,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -128439,7 +137756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, serializeUrlencoded: serializeUrlencoded }; -},871,[869,868,33]); +},928,[926,925,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -128963,7 +138280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},872,[864,240,33,873,6,874,7]); +},929,[921,240,33,930,6,931,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -129132,7 +138449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(Symbol.iterator); -},873,[6,871,7]); +},930,[6,928,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -129488,7 +138805,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DOMTimeStamp = exports["unsigned long long"]; exports.Function = convertCallbackFunction; exports.VoidFunction = convertCallbackFunction; -},874,[]); +},931,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129499,13 +138816,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[0]).URLSearchParams; } }); -},875,[861]); +},932,[918]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "_args": [ [ "react-native-url-polyfill@1.3.0", - "/Users/ipaddev/sdk/3.17.05.rc" + "/Users/ipaddev/sdk/3.18.03.rc" ] ], "_from": "react-native-url-polyfill@1.3.0", @@ -129529,7 +138846,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.17.05.rc", + "_where": "/Users/ipaddev/sdk/3.18.03.rc", "author": { "name": "Nicolas Charpentier", "email": "nicolas.charpentier079@gmail.com" @@ -129608,7 +138925,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "version": "1.3.0" } ; -},876,[]); +},933,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130201,7 +139518,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Container; exports.default = _default; -},877,[3,22,33,4,878,591,16,18,582,880,884,894,895,1029,1160,1162,1163,1030,1035,1031,1148,1164,883,896,1012,1685,1686,1037,1028,1294,1687]); +},934,[3,22,33,4,935,590,16,18,582,937,941,951,952,1079,1210,1212,1213,1080,1085,1081,1198,1214,940,953,1069,1710,1711,1087,1078,1344,1712]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var runtime = _$$_REQUIRE(_dependencyMap[0])(); @@ -130216,7 +139533,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Function("r", "regeneratorRuntime = r")(runtime); } } -},878,[879]); +},935,[936]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _regeneratorRuntime() { "use strict"; @@ -130570,7 +139887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; -},879,[10]); +},936,[10]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130947,7 +140264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = API; exports.default = _default; -},880,[3,878,591,6,7,881,882,408,883,884,885,886,887]); +},937,[3,935,590,6,7,938,939,408,940,941,942,943,944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _classPrivateFieldBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { @@ -130958,7 +140275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; -},881,[]); +},938,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var id = 0; @@ -130967,7 +140284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; -},882,[]); +},939,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131296,7 +140613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Issue; -},883,[3,6,7,881,882]); +},940,[3,6,7,938,939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131407,7 +140724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: {} }); -},884,[3,6,7,881,882]); +},941,[3,6,7,938,939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131449,7 +140766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function dpToPx(size) { return _reactNative.PixelRatio.roundToNearestPixel(size) * _reactNative.PixelRatio.get(); } -},885,[18]); +},942,[18]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = [ { @@ -131472,7 +140789,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex } ] ; -},886,[]); +},943,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131534,7 +140851,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var uri = segmentURL(referenceURL); return domain === uri.getDomain(); } -},887,[3,472,888,884,890]); +},944,[3,472,945,941,947]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131657,7 +140974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = URI; -},888,[3,6,7,881,882,889]); +},945,[3,6,7,938,939,946]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132011,7 +141328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = JSUtils; -},889,[3,33,22,6,7,878,18,884]); +},946,[3,33,22,6,7,935,18,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -132199,7 +141516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } exports.decode = decode; -},890,[891,892,893]); +},947,[948,949,950]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -136589,7 +145906,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},891,[]); +},948,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -136608,7 +145925,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; exports.highSurrogateFrom = 55296; exports.highSurrogateTo = 56319; -},892,[]); +},949,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -136645,7 +145962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 158: 382, 159: 376 }; -},893,[]); +},950,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -136858,7 +146175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Network.IP = "n/a"; var _default = Network; exports.default = _default; -},894,[3,878,6,7,556]); +},951,[3,935,6,7,556]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -136994,7 +146311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Errors; exports.default = _default; -},895,[3,22,33,16,582,18,896,897,884,1028,1017,887]); +},952,[3,22,33,16,582,18,953,954,941,1078,1074,944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137018,7 +146335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Events.ON_ACTION_CLICK = "on_action_click"; var _default = Events; exports.default = _default; -},896,[3,7,6]); +},953,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137184,7 +146501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Error; exports.default = _default; -},897,[16,3,582,18,898,1013,1025,1026,1012,1027,1017]); +},954,[16,3,582,18,955,1070,1075,1076,1069,1077,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137325,7 +146642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.TaAnimatedImageIcon = TaAnimatedImageIcon; var _default = TaImageIcon; exports.default = _default; -},898,[3,6,7,14,11,13,591,4,16,18,582,899,900,901,885]); +},955,[3,6,7,14,11,13,590,4,16,18,582,956,957,958,942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137370,7 +146687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = FSImage; exports.default = _default; -},899,[3,591,4,16,590]); +},956,[3,590,4,16,589]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137558,7 +146875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = CssStyle; exports.default = _default; -},900,[3,6,7]); +},957,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137663,7 +146980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function TaPath(props) { return _react.default.createElement(_reactNativeSvg.Path, props); } -},901,[3,591,4,16,18,902,1011]); +},958,[3,590,4,16,18,959,1068]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137693,7 +147010,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; } -},902,[903]); +},959,[960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138046,7 +147363,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; } -},903,[904,905,933,1009,3,941,1010,935]); +},960,[961,962,990,1066,3,998,1067,992]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138096,7 +147413,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function loadLocalRawResource() { showErrorCSS('loadLocalRawResource', 'function'); } -},904,[]); +},961,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138317,7 +147634,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])); -},905,[3,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932]); +},962,[3,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,988,989]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138327,7 +147644,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)('RNSVGCircle'); -},906,[3,183]); +},963,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138337,7 +147654,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)('RNSVGClipPath'); -},907,[3,183]); +},964,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138347,7 +147664,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)('RNSVGDefs'); -},908,[3,183]); +},965,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138357,7 +147674,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)('RNSVGEllipse'); -},909,[3,183]); +},966,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138367,7 +147684,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'); -},910,[3,183]); +},967,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138377,7 +147694,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'); -},911,[3,183]); +},968,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138389,7 +147706,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGImage', { interfaceOnly: true }); -},912,[3,183]); +},969,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138399,7 +147716,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)('RNSVGLinearGradient'); -},913,[3,183]); +},970,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138409,7 +147726,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)('RNSVGLine'); -},914,[3,183]); +},971,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138419,7 +147736,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)('RNSVGMarker'); -},915,[3,183]); +},972,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138429,7 +147746,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'); -},916,[3,183]); +},973,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138439,7 +147756,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'); -},917,[3,183]); +},974,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138449,7 +147766,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'); -},918,[3,183]); +},975,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138459,7 +147776,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'); -},919,[3,183]); +},976,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138469,7 +147786,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'); -},920,[3,183]); +},977,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138481,7 +147798,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgViewAndroid', { excludedPlatforms: ['iOS'] }); -},921,[3,183]); +},978,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138493,7 +147810,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgView', { excludedPlatforms: ['android'] }); -},922,[3,183]); +},979,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138503,7 +147820,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)('RNSVGSymbol'); -},923,[3,183]); +},980,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138513,7 +147830,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)('RNSVGText'); -},924,[3,183]); +},981,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138523,7 +147840,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)('RNSVGTextPath'); -},925,[3,183]); +},982,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138533,7 +147850,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'); -},926,[3,183]); +},983,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138543,7 +147860,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'); -},927,[3,183]); +},984,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138553,7 +147870,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'); -},928,[3,183]); +},985,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138563,7 +147880,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'); -},929,[3,183]); +},986,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138573,7 +147890,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'); -},930,[3,183]); +},987,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138583,7 +147900,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'); -},931,[3,183]); +},988,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138593,7 +147910,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)('RNSVGFeOffset'); -},932,[3,183]); +},989,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139237,7 +148554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } -},933,[934,3,270,6,7,11,13,14,33,16,179,1009]); +},990,[991,3,270,6,7,11,13,14,33,16,179,1066]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139291,7 +148608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e tspan: _$$_REQUIRE(_dependencyMap[0]).TSpan, use: _$$_REQUIRE(_dependencyMap[0]).Use }; -},934,[935]); +},991,[992]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139691,7 +149008,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; -},935,[936,3,940,956,957,958,959,960,962,964,965,968,969,971,972,973,975,976,977,978,979,981,982,983,984,985,986,987,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008]); +},992,[993,3,997,1013,1014,1015,1016,1017,1019,1021,1022,1025,1026,1028,1029,1030,1032,1033,1034,1035,1036,1038,1039,1040,1041,1042,1043,1044,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139832,7 +149149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(FeComponentTransferFunction); FeFuncA.displayName = 'FeFuncA'; -},936,[3,6,7,11,13,14,937,938]); +},993,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139891,7 +149208,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},937,[3,7,6,11,13,14,16]); +},994,[3,7,6,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139927,7 +149244,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)); }; -},938,[3,939]); +},995,[3,996]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DEV = false; var warnings = new Set(); @@ -139935,7 +149252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function warnOnce(condition) {} module.exports = warnOnce; -},939,[]); +},996,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140002,7 +149319,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cy: 0, r: 0 }; -},940,[3,6,7,11,13,14,16,941,906,946,179]); +},997,[3,6,7,11,13,14,16,998,963,1003,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140393,7 +149710,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Shape.prototype.ownerSVGElement = ownerSVGElement; -},941,[3,11,13,14,6,7,16,942,943,18,945]); +},998,[3,11,13,14,6,7,16,999,1000,18,1002]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140528,7 +149845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e target.state = touchableGetInitialState(); }; -},942,[18]); +},999,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140594,7 +149911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e console.warn("\"" + String(color) + "\" is not a valid color or brush"); return null; } -},943,[18,944]); +},1000,[18,1001]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140635,7 +149952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isPercentageRgb = RGB_RGBA_PATTERN.test(rgbColorWithoutSpaces); return isPercentageRgb ? parsePercentageRGBColor(rgbColorWithoutSpaces) : color; }; -},944,[]); +},1001,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140645,7 +149962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNSVGRenderableModule'); -},945,[18]); +},1002,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140808,7 +150125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: null }), instance); } -},946,[3,22,947,949,951,955,948,938]); +},1003,[3,22,1004,1006,1008,1012,1005,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140852,7 +150169,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.fillRule = fillRule && fillRules[fillRule] === 0 ? 0 : 1; } } -},947,[3,943,948,18]); +},1004,[3,1000,1005,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140863,7 +150180,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); } -},948,[]); +},1005,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140951,7 +150268,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.vectorEffect = vectorEffect && vectorEffects[vectorEffect] || 0; } } -},949,[3,943,948,950]); +},1006,[3,1000,1005,1007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140971,7 +150288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return []; } } -},950,[]); +},1007,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -141156,7 +150473,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return props.transform; } -},951,[952,953,954]); +},1008,[1009,1010,1011]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -141266,7 +150583,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasInitialState = false; } } -},952,[]); +},1009,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -142991,7 +152308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SyntaxError: peg$SyntaxError, parse: peg$parse }; -},953,[]); +},1010,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -144358,7 +153675,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SyntaxError: peg$SyntaxError, parse: peg$parse }; -},954,[22]); +},1011,[22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144412,7 +153729,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e o.responsible = true; } } -},955,[18]); +},1012,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144464,7 +153781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); ClipPath.displayName = 'ClipPath'; -},956,[3,6,7,11,13,14,16,941,907,179,946]); +},1013,[3,6,7,11,13,14,16,998,964,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144513,7 +153830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Defs.displayName = 'Defs'; -},957,[3,6,7,11,13,14,16,908,179]); +},1014,[3,6,7,11,13,14,16,965,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144583,7 +153900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rx: 0, ry: 0 }; -},958,[3,6,7,11,13,14,16,941,909,946,179]); +},1015,[3,6,7,11,13,14,16,998,966,1003,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144656,7 +153973,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},959,[3,6,7,11,13,14,16,960,910,179,946]); +},1016,[3,6,7,11,13,14,16,1017,967,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144753,7 +154070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }; -},960,[3,6,7,11,13,14,16,946,951,941,911,961,179]); +},1017,[3,6,7,11,13,14,16,1003,1008,998,968,1018,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144888,7 +154205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotate: (0, _extractLengthList.default)(rotate) }; } -},961,[16,3,950,938,179]); +},1018,[16,3,1007,995,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -144977,7 +154294,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 0, preserveAspectRatio: 'xMidYMid meet' }; -},962,[3,6,7,11,13,14,16,18,941,912,963,179,946]); +},1019,[3,6,7,11,13,14,16,18,998,969,1020,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145023,7 +154340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e meetOrSlice: meetOrSliceTypes[meetOrSlice] || 0 }; } -},963,[]); +},1020,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145093,7 +154410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x2: 0, y2: 0 }; -},964,[3,6,7,11,13,14,16,941,914,946,179]); +},1021,[3,6,7,11,13,14,16,998,971,1003,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145165,7 +154482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x2: '100%', y2: '0%' }; -},965,[3,6,7,11,13,14,16,966,941,913,179]); +},1022,[3,6,7,11,13,14,16,1023,998,970,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145270,7 +154587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gradientTransform: (0, _extractTransform.default)(gradientTransform || transform || props) }; } -},966,[16,18,3,948,951,967]); +},1023,[16,18,3,1005,1008,1024]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145282,7 +154599,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = units; -},967,[]); +},1024,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145370,7 +154687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e markerHeight: 3, markerUnits: 'strokeWidth' }; -},968,[3,6,7,11,13,14,16,963,941,915,179]); +},1025,[3,6,7,11,13,14,16,1020,998,972,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145451,7 +154768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},969,[3,6,7,11,13,14,16,967,941,916,970,179,946]); +},1026,[3,6,7,11,13,14,16,1024,998,973,1027,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145461,7 +154778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e luminance: 0, alpha: 1 }; -},970,[]); +},1027,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145519,7 +154836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Path.displayName = 'Path'; -},971,[3,6,7,11,13,14,16,941,917,946,179]); +},1028,[3,6,7,11,13,14,16,998,974,1003,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145614,7 +154931,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: '100%', height: '100%' }; -},972,[3,6,7,11,13,14,16,951,963,967,941,918,179]); +},1029,[3,6,7,11,13,14,16,1008,1020,1024,998,975,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145690,7 +155007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Polygon.defaultProps = { points: '' }; -},973,[3,6,7,11,13,14,16,971,941,974,179]); +},1030,[3,6,7,11,13,14,16,1028,998,1031,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145701,7 +155018,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(' '); } -},974,[]); +},1031,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145777,7 +155094,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Polyline.defaultProps = { points: '' }; -},975,[3,6,7,11,13,14,16,971,941,974,179]); +},1032,[3,6,7,11,13,14,16,1028,998,1031,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145855,7 +155172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cy: '50%', r: '50%' }; -},976,[3,6,7,11,13,14,16,966,941,919,179]); +},1033,[3,6,7,11,13,14,16,1023,998,976,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145929,7 +155246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 0, height: 0 }; -},977,[3,6,7,11,13,14,16,941,920,179,946]); +},1034,[3,6,7,11,13,14,16,998,977,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145985,7 +155302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Stop.displayName = 'Stop'; -},978,[3,6,7,11,13,14,16]); +},1035,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146225,7 +155542,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Svg.defaultProps = { preserveAspectRatio: 'xMidYMid meet' }; -},979,[3,22,4,6,7,11,13,14,16,18,955,963,941,960,921,922,948,980,951,179]); +},1036,[3,22,4,6,7,11,13,14,16,18,1012,1020,998,1017,978,979,1005,1037,1008,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146235,7 +155552,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNSVGSvgViewModule'); -},980,[18]); +},1037,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146298,7 +155615,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Symbol.displayName = 'Symbol'; -},981,[3,6,7,11,13,14,16,963,941,923,179]); +},1038,[3,6,7,11,13,14,16,1020,998,980,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146380,7 +155697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TSpan.displayName = 'TSpan'; (0, _extractText.setTSpan)(TSpan); -},982,[3,6,7,11,13,14,16,946,951,961,941,926,938,179]); +},1039,[3,6,7,11,13,14,16,1003,1008,1018,998,983,995,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146463,7 +155780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); Text.displayName = 'Text'; -},983,[3,6,7,11,13,14,16,961,946,951,941,982,924,938,179]); +},1040,[3,6,7,11,13,14,16,1018,1003,1008,998,1039,981,995,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146577,7 +155894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Shape2.default); TextPath.displayName = 'TextPath'; -},984,[3,4,6,7,11,13,14,16,951,961,941,982,925,938,946,179]); +},1041,[3,4,6,7,11,13,14,16,1008,1018,998,1039,982,995,1003,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146661,7 +155978,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 0, height: 0 }; -},985,[3,6,7,11,13,14,16,941,927,938,179,946]); +},1042,[3,6,7,11,13,14,16,998,984,995,179,1003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146705,7 +156022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeBlend = FeBlend; FeBlend.displayName = 'FeBlend'; FeBlend.defaultProps = Object.assign({}, _FeBlend.defaultPrimitiveProps); -},986,[3,6,7,11,13,14,937,938]); +},1043,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146765,7 +156082,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e type: 'matrix', values: '' }); -},987,[3,6,7,11,13,14,16,929,937,179,988]); +},1044,[3,6,7,11,13,14,16,986,994,179,1045]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146868,7 +156185,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nodes: nodes }; }; -},988,[3,16]); +},1045,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146912,7 +156229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeComponentTransfer = FeComponentTransfer; FeComponentTransfer.displayName = 'FeComponentTransfer'; FeComponentTransfer.defaultProps = Object.assign({}, _FeComponentTransfer.defaultPrimitiveProps); -},989,[3,6,7,11,13,14,937,938]); +},1046,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146956,7 +156273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeComposite = FeComposite; FeComposite.displayName = 'FeComposite'; FeComposite.defaultProps = Object.assign({}, _FeComposite.defaultPrimitiveProps); -},990,[3,6,7,11,13,14,937,938]); +},1047,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147000,7 +156317,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeConvolveMatrix = FeConvolveMatrix; FeConvolveMatrix.displayName = 'FeConvolveMatrix'; FeConvolveMatrix.defaultProps = Object.assign({}, _FeConvolveMatrix.defaultPrimitiveProps); -},991,[3,6,7,11,13,14,937,938]); +},1048,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147044,7 +156361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDiffuseLighting = FeDiffuseLighting; FeDiffuseLighting.displayName = 'FeDiffuseLighting'; FeDiffuseLighting.defaultProps = Object.assign({}, _FeDiffuseLighting.defaultPrimitiveProps); -},992,[3,6,7,11,13,14,937,938]); +},1049,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147088,7 +156405,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDisplacementMap = FeDisplacementMap; FeDisplacementMap.displayName = 'FeDisplacementMap'; FeDisplacementMap.defaultProps = Object.assign({}, _FeDisplacementMap.defaultPrimitiveProps); -},993,[3,6,7,11,13,14,937,938]); +},1050,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147129,7 +156446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FeDistantLight.displayName = 'FeDistantLight'; FeDistantLight.defaultProps = {}; -},994,[3,6,7,11,13,14,16,938]); +},1051,[3,6,7,11,13,14,16,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147173,7 +156490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeDropShadow = FeDropShadow; FeDropShadow.displayName = 'FeDropShadow'; FeDropShadow.defaultProps = Object.assign({}, _FeDropShadow.defaultPrimitiveProps); -},995,[3,6,7,11,13,14,937,938]); +},1052,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147217,7 +156534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeFlood = FeFlood; FeFlood.displayName = 'FeFlood'; FeFlood.defaultProps = Object.assign({}, _FeFlood.defaultPrimitiveProps); -},996,[3,6,7,11,13,14,937,938]); +},1053,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147277,7 +156594,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e stdDeviation: 0, edgeMode: 'none' }); -},997,[3,6,7,11,13,14,16,930,937,179,988]); +},1054,[3,6,7,11,13,14,16,987,994,179,1045]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147321,7 +156638,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeImage = FeImage; FeImage.displayName = 'FeImage'; FeImage.defaultProps = Object.assign({}, _FeImage.defaultPrimitiveProps); -},998,[3,6,7,11,13,14,937,938]); +},1055,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147378,7 +156695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeMerge = FeMerge; FeMerge.displayName = 'FeMerge'; FeMerge.defaultProps = Object.assign({}, _FeMerge.defaultPrimitiveProps); -},999,[3,6,7,11,13,14,16,931,937,179,988]); +},1056,[3,6,7,11,13,14,16,988,994,179,1045]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147434,7 +156751,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_FilterPrimitive2.default); FeMergeNode.displayName = 'FeMergeNode'; -},1000,[3,6,7,11,13,14,937]); +},1057,[3,6,7,11,13,14,994]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147478,7 +156795,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeMorphology = FeMorphology; FeMorphology.displayName = 'FeMorphology'; FeMorphology.defaultProps = Object.assign({}, _FeMorphology.defaultPrimitiveProps); -},1001,[3,6,7,11,13,14,937,938]); +},1058,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147538,7 +156855,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e dx: 0, dy: 0 }); -},1002,[3,6,7,11,13,14,16,932,937,179,988]); +},1059,[3,6,7,11,13,14,16,989,994,179,1045]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147579,7 +156896,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FePointLight.displayName = 'FePointLight'; FePointLight.defaultProps = {}; -},1003,[3,6,7,11,13,14,16,938]); +},1060,[3,6,7,11,13,14,16,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147623,7 +156940,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeSpecularLighting = FeSpecularLighting; FeSpecularLighting.displayName = 'FeSpecularLighting'; FeSpecularLighting.defaultProps = Object.assign({}, _FeSpecularLighting.defaultPrimitiveProps); -},1004,[3,6,7,11,13,14,937,938]); +},1061,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147664,7 +156981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FeSpotLight.displayName = 'FeSpotLight'; FeSpotLight.defaultProps = {}; -},1005,[3,6,7,11,13,14,16,938]); +},1062,[3,6,7,11,13,14,16,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147708,7 +157025,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeTile = FeTile; FeTile.displayName = 'FeTile'; FeTile.defaultProps = Object.assign({}, _FeTile.defaultPrimitiveProps); -},1006,[3,6,7,11,13,14,937,938]); +},1063,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147752,7 +157069,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _FeTurbulence = FeTurbulence; FeTurbulence.displayName = 'FeTurbulence'; FeTurbulence.defaultProps = Object.assign({}, _FeTurbulence.defaultPrimitiveProps); -},1007,[3,6,7,11,13,14,937,938]); +},1064,[3,6,7,11,13,14,994,995]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147832,7 +157149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filterUnits: 'objectBoundingBox', primitiveUnits: 'userSpaceOnUse' }; -},1008,[3,6,7,11,13,14,16,928,941,179]); +},1065,[3,6,7,11,13,14,16,985,998,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147886,8 +157203,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _fetchUriData.apply(this, arguments); } -},1009,[3,270,18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1010,[]); +},1066,[3,270,18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1067,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -147901,7 +157218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.icCommonProps = icCommonProps; -},1011,[1012]); +},1068,[1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148352,7 +157669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ColorUtils; -},1012,[3,6,7]); +},1069,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148426,7 +157743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = ErrorIcon; exports.default = _default; -},1013,[3,16,582,18,898,1014,1015,1016,1017,1012]); +},1070,[3,16,582,18,955,1071,1072,1073,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148446,7 +157763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcInfo; exports.default = _default; -},1014,[3,16,901]); +},1071,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148466,7 +157783,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcWarning; exports.default = _default; -},1015,[3,16,901]); +},1072,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148486,7 +157803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcError; exports.default = _default; -},1016,[3,16,901]); +},1073,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -148573,1020 +157890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.CssHelper = CssHelper; -},1017,[3,16,1018]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.CssHelper = undefined; - Object.defineProperty(exports, "useCss", { - enumerable: true, - get: function get() { - return _context.useCss; - } - }); - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _context = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["classes"], - _excluded2 = ["children"], - _excluded3 = ["style"]; - - 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 _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - return _extends.apply(this, arguments); - } - - function Provider(props) { - return _react.default.createElement(_context.default.Provider, _extends({}, props, { - decorator: function decorator(state, decorators) { - var _ref3 = decorators || {}, - classes = _ref3.classes, - attributes = (0, _objectWithoutProperties2.default)(_ref3, _excluded); - - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyleObj(state, classes, attributes); - } - })); - } - - function Consumer(_ref) { - var children = _ref.children, - props = (0, _objectWithoutProperties2.default)(_ref, _excluded2); - return _react.default.createElement(_context.default.Consumer, props, function (_ref2) { - var _ref2$decoratedState = _ref2.decoratedState, - decoratedStyle = _ref2$decoratedState === undefined ? {} : _ref2$decoratedState; - - if (!props.classes || !props.classes.length) { - return children; - } - - if (!Object.keys(decoratedStyle).length) { - return children; - } - - return _react.default.Children.map(children, function (element) { - if (element) { - var _element$props = element.props, - style = _element$props.style, - rest = (0, _objectWithoutProperties2.default)(_element$props, _excluded3); - var newStyle = []; - - if (Array.isArray(style)) { - newStyle = (0, _toConsumableArray2.default)(style); - } else if (style !== undefined) { - newStyle.push(style); - } - - newStyle.push(decoratedStyle); - return _react.default.cloneElement(element, Object.assign({}, rest, { - style: newStyle - })); - } - - return element; - }); - }); - } - - var Css = Object.assign({}, _context.default, { - Provider: Provider, - Consumer: Consumer - }); - var CssHelper = exports.CssHelper = { - arrayToObject: function arrayToObject() { - var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - return _$$_REQUIRE(_dependencyMap[5]).CssManager.arrayToObject(styles); - }, - flatten: function flatten() { - var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _$$_REQUIRE(_dependencyMap[5]).CssManager.flatten(Css.get().state, styles, classes, attributes); - }, - getStyle: function getStyle() { - var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyle(Css.get().state, classes, attributes); - }, - getStyleObj: function getStyleObj() { - var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getStyleObj(Css.get().state, classes, attributes); - }, - getInUseThemeId: function getInUseThemeId() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getInUseThemeId(Css.get().state); - }, - getInUseTheme: function getInUseTheme() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getInUseTheme(Css.get().state); - }, - getActiveThemeId: function getActiveThemeId() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getActiveThemeId(Css.get().state); - }, - getThemes: function getThemes() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getThemes(Css.get().state); - }, - isActiveThemeDark: function isActiveThemeDark() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.isActiveThemeDark(Css.get().state); - }, - isActiveThemeAutomatic: function isActiveThemeAutomatic() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.isActiveThemeAutomatic(Css.get().state); - }, - getActiveBaseColors: function getActiveBaseColors() { - return _$$_REQUIRE(_dependencyMap[5]).CssManager.getActiveBaseColors(Css.get().state); - }, - mergeRnStyles: _$$_REQUIRE(_dependencyMap[6]).CssUtils.mergeRnStyles, - resolvePlaceholders: _$$_REQUIRE(_dependencyMap[6]).CssUtils.resolvePlaceholders, - getDefaultTheme: _$$_REQUIRE(_dependencyMap[6]).CssUtils.getDefaultTheme - }; - - var _default = exports.default = Css; -},1018,[3,22,4,16,1019,1021,1023]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - exports.useCss = useCss; - var CssContext = (0, _$$_REQUIRE(_dependencyMap[0]).createReactiveContext)({ - rnStyles: {} - }); - - function useCss(decorators) { - return (0, _$$_REQUIRE(_dependencyMap[0]).useReactiveContext)(CssContext, decorators); - } - - var _default = exports.default = CssContext; -},1019,[1020]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - function _interopDefault(ex) { - return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; - } - - var React = _$$_REQUIRE(_dependencyMap[0]); - - var React__default = _interopDefault(React); - - var isEqual = _interopDefault(_$$_REQUIRE(_dependencyMap[1])); - - function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - return _extends.apply(this, arguments); - } - - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; - } - - var Utils; - - (function (Utils) { - function equals(a, b) { - return isEqual(a, b); - } - - Utils.equals = equals; - })(Utils || (Utils = {})); - - var _excluded = ["value", "decorator"], - _excluded2 = ["children"]; - - var _decorator; - - function _decorateState(state, decorators) { - var decoratedState; - - if (typeof _decorator === "function") { - decoratedState = _decorator(state, decorators); - } - - return { - decoratedState: decoratedState, - state: state - }; - } - - function createReactiveContext(defaultValue, defaultDecorator) { - var Context = React.createContext(defaultValue); - var _subscribers = {}; - - var _updater; - - var _currentData; - - _decorator = defaultDecorator; - - function _clearSubscribers(ids) { - if (ids === undefined) { - ids = []; - } - - for (var i = 0; i < ids.length; i++) { - delete _subscribers[ids[i]]; - } - } - - function _callSubscribers(state) { - var idsToDelete = []; - var ids = Object.keys(_subscribers); - ids.forEach(function (id) { - var subscriber = _subscribers[id]; - - if (subscriber && typeof subscriber.callback === "function") { - subscriber.callback(_decorateState(state, subscriber.decorators)); - } else { - idsToDelete.push(id); - } - }); - return idsToDelete; - } - - var Provider = function Provider(_ref) { - var propValue = _ref.value, - decoratorProp = _ref.decorator, - rest = _objectWithoutPropertiesLoose(_ref, _excluded); - - var _useState = React.useState(defaultValue), - state = _useState[0], - setState = _useState[1]; - - React.useEffect(function () { - _currentData = state; - - _clearSubscribers(_callSubscribers(state)); - - _updater = function _updater(value) { - if (value === undefined) { - value = state; - } - - var newState; - - if (typeof value === "function") { - newState = value(state); - } else if (typeof value === "object" && !Array.isArray(value)) { - newState = _extends({}, state, value); - } else { - newState = value || state; - } - - if (!Utils.equals(newState, state)) { - setState(newState); - } - }; - }, [state]); - React.useEffect(function () { - _decorator = decoratorProp; - }, [decoratorProp]); - React.useEffect(function () { - _updater(propValue); - }, [propValue]); - return React__default.createElement(Context.Provider, Object.assign({ - value: state - }, rest)); - }; - - function Consumer(props) { - var children = props.children, - decorators = _objectWithoutPropertiesLoose(props, _excluded2); - - var state = React.useContext(Context); - return React__default.createElement(React__default.Fragment, null, children(_decorateState(state, decorators))); - } - - return _extends({ - "default": Context - }, Context, { - Provider: Provider, - Consumer: Consumer, - set: function set(value) { - if (typeof _updater === "function") { - _updater(value); - } - }, - get: function get(decorators) { - return _decorateState(_currentData, decorators); - }, - subscribe: function subscribe(callback, decorators) { - var id = "" + Math.random().toString(36).substr(2, 9); - _subscribers[id] = { - callback: callback, - decorators: decorators - }; - - if (typeof callback === "function") { - callback(_decorateState(_currentData, decorators)); - } - - return function () { - delete _subscribers[id]; - }; - }, - removeAllSubscribers: function removeAllSubscribers() { - return _clearSubscribers(Object.keys(_subscribers)); - } - }); - } - - function useReactiveContext(context, decorators) { - var _state = React.useContext(context["default"]); - - return _decorateState(_state, decorators); - } - - exports.createReactiveContext = createReactiveContext; - exports.useReactiveContext = useReactiveContext; -},1020,[16,731]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.CssManager = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _excluded = ["tablet", "phone", "ios", "android", "native", "web", "windows", "landscape", "portrait"]; - var CssManager; - - (function (_CssManager) { - function maxWidthCss() { - var css = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var mw = {}; - var rest = {}; - Object.keys(css).forEach(function (key) { - if (key.match(/mw[0-9]{2,}/)) { - mw[key] = css[key]; - } else { - rest[key] = css[key]; - } - }); - return { - mw: mw, - rest: rest - }; - } - - function traverseAndFlattenMaxWidthCss(state, mw) { - var wSize = state.window; - var mwStyle = {}; - - if (wSize && wSize.width) { - var constraints = []; - var mwKeys = Object.keys(mw); - - for (var i = 0; i < mwKeys.length; i++) { - var key = mwKeys[i]; - var constraint = parseInt(key.replace("mw", ""), 10); - - if (wSize.width < constraint) { - constraints.push("mw" + constraint); - } - } - - constraints.forEach(function (constraint) { - var style = traverseAndFlattenCss(state, mw[constraint]); - mwStyle = Object.assign({}, mwStyle, style); - }); - } - - return mwStyle; - } - - function traverseAndFlattenCss(state, css) { - if (css !== undefined) { - var tablet = css.tablet, - phone = css.phone, - ios = css.ios, - android = css.android, - native = css.native, - web = css.web, - windows = css.windows, - landscape = css.landscape, - portrait = css.portrait, - cssRest = (0, _objectWithoutProperties2.default)(css, _excluded); - - var _maxWidthCss = maxWidthCss(cssRest), - mw = _maxWidthCss.mw, - rest = _maxWidthCss.rest; - - var deviceStyle = {}; - - if (state.isTablet) { - deviceStyle = traverseAndFlattenCss(state, tablet); - } else { - deviceStyle = traverseAndFlattenCss(state, phone); - } - - var maxWidthStyle = {}; - - if ((0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { - maxWidthStyle = traverseAndFlattenMaxWidthCss(state, mw); - } - - var nativeStyle = {}; - - if (!(0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { - nativeStyle = traverseAndFlattenCss(state, native); - } - - var osStyle = {}; - - if ((0, _$$_REQUIRE(_dependencyMap[4]).isIOS)()) { - osStyle = traverseAndFlattenCss(state, ios); - } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isAndroid)()) { - osStyle = traverseAndFlattenCss(state, android); - } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isWeb)()) { - osStyle = traverseAndFlattenCss(state, web); - } else if ((0, _$$_REQUIRE(_dependencyMap[4]).isWindows)()) { - osStyle = traverseAndFlattenCss(state, windows); - } - - var orientationStyle = {}; - - if (state.isPortrait) { - orientationStyle = traverseAndFlattenCss(state, portrait); - } else { - orientationStyle = traverseAndFlattenCss(state, landscape); - } - - return Object.assign({}, rest, deviceStyle, maxWidthStyle, nativeStyle, osStyle, orientationStyle); - } - - return {}; - } - - function replaceColorPlaceholders(style, colors) { - var newStyle = _$$_REQUIRE(_dependencyMap[5]).CssUtils.resolvePlaceholders(style, colors); - - return newStyle; - } - - function arrayToObject(styles, ignoreKeys) { - return _$$_REQUIRE(_dependencyMap[6]).Utils.arrayToObject(styles, ignoreKeys); - } - - _CssManager.arrayToObject = arrayToObject; - - function getUserStyles(state) { - var rnStyles = state.rnStyles; - - if (!rnStyles) { - return {}; - } - - var themes = rnStyles.themes; - var themeInUse = getInUseThemeId(state); - - if (typeof themes === "object" && themeInUse !== undefined) { - return themes[themeInUse]; - } - - return undefined; - } - - function getActiveBaseColors() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var rnStyles = state.rnStyles; - - if (!rnStyles) { - return {}; - } - - var colors = []; - var base = rnStyles.base, - baseLight = rnStyles.baseLight, - baseDark = rnStyles.baseDark; - - if (base !== null && base !== undefined && base.colors) { - colors.push(traverseAndFlattenCss(state, base.colors)); - } - - var userStyles = getUserStyles(state); - - if ((userStyles === null || userStyles === undefined ? undefined : userStyles.dark) === 1) { - if (baseDark !== null && baseDark !== undefined && baseDark.colors) { - colors.push(traverseAndFlattenCss(state, baseDark.colors)); - } - } else if (baseLight !== null && baseLight !== undefined && baseLight.colors) { - colors.push(traverseAndFlattenCss(state, baseLight.colors)); - } - - if (userStyles !== null && userStyles !== undefined && userStyles.colors) { - colors.push(traverseAndFlattenCss(state, userStyles.colors)); - } - - return arrayToObject(colors); - } - - _CssManager.getActiveBaseColors = getActiveBaseColors; - - function getStyleByCssName(state, name) { - var rnStyles = state.rnStyles; - - if (!rnStyles || !name) { - return {}; - } - - var styles = []; - var base = rnStyles.base, - baseLight = rnStyles.baseLight, - baseDark = rnStyles.baseDark; - - if (base !== null && base !== undefined && base.styles) { - styles.push(traverseAndFlattenCss(state, base.styles[name])); - } - - var userStyles = getUserStyles(state); - - if ((userStyles === null || userStyles === undefined ? undefined : userStyles.dark) === 1) { - if (baseDark !== null && baseDark !== undefined && baseDark.styles) { - styles.push(traverseAndFlattenCss(state, baseDark.styles[name])); - } - } else if (baseLight !== null && baseLight !== undefined && baseLight.styles) { - styles.push(traverseAndFlattenCss(state, baseLight.styles[name])); - } - - if (userStyles !== null && userStyles !== undefined && userStyles.styles) { - styles.push(traverseAndFlattenCss(state, userStyles.styles[name])); - } - - return replaceColorPlaceholders(arrayToObject(styles), getActiveBaseColors(state)); - } - - function applyCustomClasses(props) { - var classes = props.classes, - toggle = props.toggle, - active = props.active, - cssKey = props.cssKey; - var newClasses = []; - - if (classes && classes.length) { - newClasses.push.apply(newClasses, (0, _toConsumableArray2.default)(classes)); - - if (toggle) { - for (var i = 0; i < classes.length; i++) { - if (active) { - newClasses.push(classes[i] + "-active"); - } else { - newClasses.push(classes[i] + "-inactive"); - } - } - } - - if (cssKey) { - var length = newClasses.length; - - for (var _i = 0; _i < length; _i++) { - newClasses.push(newClasses[_i] + "-" + cssKey); - } - } - } - - return newClasses; - } - - function getStylesByCssClasses(state, classes) { - var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var newClasses = applyCustomClasses(Object.assign({ - classes: classes - }, attributes)); - - if (Array.isArray(newClasses)) { - return newClasses.map(function (css) { - return getStyleByCssName(state, css); - }); - } - - return []; - } - - function flatten() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var classes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - return _reactNative.StyleSheet.flatten([].concat((0, _toConsumableArray2.default)(styles), [getStyle(state, classes, attributes)])); - } - - _CssManager.flatten = flatten; - - function getStyle() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var classes = arguments.length > 1 ? arguments[1] : undefined; - var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var ignoreKeys = attributes.ignoreKeys; - var styles = getStylesByCssClasses(state, classes, attributes); - return arrayToObject(styles, ignoreKeys); - } - - _CssManager.getStyle = getStyle; - - function getStyleObj() { - var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var classes = arguments.length > 1 ? arguments[1] : undefined; - var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var ignoreKeys = attributes.ignoreKeys; - var styles = getStylesByCssClasses(context, classes, attributes); - return arrayToObject(styles, ignoreKeys); - } - - _CssManager.getStyleObj = getStyleObj; - - function getThemes() { - var _context$rnStyles; - - var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return context !== null && context !== undefined && (_context$rnStyles = context.rnStyles) !== null && _context$rnStyles !== undefined && _context$rnStyles.themes ? Object.keys(context.rnStyles.themes).map(function (key) { - return Object.assign({}, context.rnStyles.themes[key], { - key: key - }); - }) : []; - } - - _CssManager.getThemes = getThemes; - - function isActiveThemeDark() { - var _getInUseTheme; - - var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return ((_getInUseTheme = getInUseTheme(context)) === null || _getInUseTheme === undefined ? undefined : _getInUseTheme.dark) === 1; - } - - _CssManager.isActiveThemeDark = isActiveThemeDark; - - function isActiveThemeAutomatic() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - activeTheme = _ref.activeTheme; - - return activeTheme === "automatic"; - } - - _CssManager.isActiveThemeAutomatic = isActiveThemeAutomatic; - - function getInUseTheme() { - var _context$rnStyles2; - - var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var id = getInUseThemeId(context); - return (_context$rnStyles2 = context.rnStyles) !== null && _context$rnStyles2 !== undefined && _context$rnStyles2.themes && id ? context.rnStyles.themes[id] : undefined; - } - - _CssManager.getInUseTheme = getInUseTheme; - - function getInUseThemeId() { - var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref2$rnStyles = _ref2.rnStyles, - rnStyles = _ref2$rnStyles === undefined ? {} : _ref2$rnStyles, - isDark = _ref2.isDark, - activeTheme = _ref2.activeTheme; - - var themes = rnStyles.themes; - - if (typeof themes === "object") { - var validThemesKeys = Object.keys(themes).filter(function (key) { - return typeof themes[key] === "object"; - }); - - if (validThemesKeys.length > 0) { - if (!activeTheme) { - activeTheme = validThemesKeys.find(function (key) { - var _themes$key; - - return ((_themes$key = themes[key]) === null || _themes$key === undefined ? undefined : _themes$key.default) === 1; - }); - } - - if (activeTheme === "automatic") { - activeTheme = validThemesKeys.filter(function (key) { - var _themes$key2; - - return key !== "automatic" && ((_themes$key2 = themes[key]) === null || _themes$key2 === undefined ? undefined : _themes$key2.automatic) === 1; - }).find(function (key) { - var _themes$key3; - - var isThemeDark = ((_themes$key3 = themes[key]) === null || _themes$key3 === undefined ? undefined : _themes$key3.dark) === 1; - return isThemeDark === isDark; - }); - } - - if (!activeTheme) { - activeTheme = validThemesKeys[0]; - } - } - } - - return activeTheme; - } - - _CssManager.getInUseThemeId = getInUseThemeId; - - function getActiveThemeId() { - var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref3$rnStyles = _ref3.rnStyles, - rnStyles = _ref3$rnStyles === undefined ? {} : _ref3$rnStyles, - activeTheme = _ref3.activeTheme; - - if (activeTheme) { - return activeTheme; - } - - return _$$_REQUIRE(_dependencyMap[5]).CssUtils.getDefaultTheme(rnStyles); - } - - _CssManager.getActiveThemeId = getActiveThemeId; - })(CssManager || (exports.CssManager = CssManager = {})); -},1021,[3,22,4,18,1022,1023,1024]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.dpToPx = dpToPx; - exports.fontScale = fontScale; - exports.isAndroid = isAndroid; - exports.isIOS = isIOS; - exports.isWeb = isWeb; - exports.isWindows = isWindows; - exports.os = os; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - function fontScale() { - return _reactNative.PixelRatio.getFontScale(); - } - - function os() { - return _reactNative.Platform.OS; - } - - function isAndroid() { - return _reactNative.Platform.OS === "android"; - } - - function isWeb() { - return _reactNative.Platform.OS === "web"; - } - - function isIOS() { - return _reactNative.Platform.OS === "ios" || _reactNative.Platform.OS === "macos"; - } - - function isWindows() { - return _reactNative.Platform.OS === "windows"; - } - - function dpToPx(size) { - return _reactNative.PixelRatio.roundToNearestPixel(size) * _reactNative.PixelRatio.get(); - } -},1022,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.CssUtils = undefined; - var CssUtils; - - (function (_CssUtils) { - function filterAutomaticThemes() { - var defaultThemes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var customThemes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(customThemes)) { - var automaticCustomThemes = Object.keys(customThemes).filter(function (theme) { - return customThemes[theme].automatic === 1; - }); - - if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticCustomThemes)) { - var automaticLightTheme = automaticCustomThemes.filter(function (theme) { - return customThemes[theme].dark === 0; - }); - var automaticDarkTheme = automaticCustomThemes.filter(function (theme) { - return customThemes[theme].dark === 1; - }); - - if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticLightTheme)) { - Object.keys(defaultThemes).filter(function (theme) { - return defaultThemes[theme].automatic === 1 && defaultThemes[theme].dark === 0; - }).forEach(function (theme) { - return delete defaultThemes[theme]; - }); - } - - if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(automaticDarkTheme)) { - Object.keys(defaultThemes).filter(function (theme) { - return defaultThemes[theme].automatic === 1 && defaultThemes[theme].dark === 1; - }).forEach(function (theme) { - return delete defaultThemes[theme]; - }); - } - } - - var defaultCustomTheme = Object.keys(customThemes).filter(function (theme) { - return customThemes[theme].default === 1; - }); - - if (!_$$_REQUIRE(_dependencyMap[0]).Utils.isEmpty(defaultCustomTheme)) { - Object.keys(defaultThemes).filter(function (theme) { - return defaultThemes[theme].default === 1; - }).forEach(function (theme) { - return delete defaultThemes[theme]; - }); - } - } - } - - function getDefaultTheme() { - var defaultStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var themes = defaultStyles.themes; - - if (typeof themes === "object") { - return Object.keys(themes).find(function (key) { - var _themes$key; - - return typeof themes[key] === "object" && ((_themes$key = themes[key]) === null || _themes$key === undefined ? undefined : _themes$key.default) === 1; - }); - } - - return undefined; - } - - _CssUtils.getDefaultTheme = getDefaultTheme; - - function mergeRnStyles(defaultStyles) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return args.reduce(function (result, arg) { - filterAutomaticThemes(defaultStyles.themes, arg.themes); - return _$$_REQUIRE(_dependencyMap[0]).Utils.mergeObjects(result, arg); - }, defaultStyles); - } - - _CssUtils.mergeRnStyles = mergeRnStyles; - - function resolvePlaceholders() { - var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var paramKeys = Object.keys(params); - - if (paramKeys.length === 0) { - return style; - } - - return Object.keys(style).reduce(function (prev, key) { - var rule = style[key]; - - if (typeof rule !== "string" || !rule.match("{.+}")) { - prev[key] = rule; - return prev; - } - - var containsParam = paramKeys.some(function (paramKey) { - return rule.includes("{" + paramKey + "}"); - }); - - if (!containsParam) { - prev[key] = rule; - return prev; - } - - var singleValue = !!rule.match(/^\{[^{]+\}$/); - paramKeys.forEach(function (paramKey) { - rule = rule.replace(new RegExp("{" + paramKey + "}", "gm"), params[paramKey]); - }); - - if (singleValue) { - prev[key] = rule; - return prev; - } - - try { - prev[key] = eval(rule); - } catch (e) {} - - return prev; - }, {}); - } - - _CssUtils.resolvePlaceholders = resolvePlaceholders; - })(CssUtils || (exports.CssUtils = CssUtils = {})); -},1023,[1024]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Utils = undefined; - var Utils; - - (function (_Utils) { - function mergeObjects() { - var obj1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var obj2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var mergedObj = Object.assign({}, obj1); - Object.keys(obj2).forEach(function (key) { - if (obj2[key] !== undefined) { - if (Array.isArray(obj2[key]) && Array.isArray(obj1[key])) { - mergedObj[key] = obj2[key]; - } else if (typeof obj2[key] === "object" && typeof obj1[key] === "object") { - mergedObj[key] = mergeObjects(obj1[key], obj2[key]); - } else { - mergedObj[key] = obj2[key]; - } - } - }); - return mergedObj; - } - - _Utils.mergeObjects = mergeObjects; - - function isNull(a) { - return a === undefined || a === null; - } - - function isEmpty(a) { - if (!isNull(a)) { - if (typeof a === "string") { - return a.length === 0; - } - - if (Array.isArray(a)) { - return a.length === 0; - } - - if (typeof a === "object") { - return Object.keys(a).length === 0; - } - } - - return true; - } - - _Utils.isEmpty = isEmpty; - - function arrayToObject(array) { - var ignoreKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var obj = {}; - array.forEach(function (item) { - Object.keys(item).forEach(function (key) { - if (!ignoreKeys.includes(key)) { - obj[key] = item[key]; - } - }); - }); - return obj; - } - - _Utils.arrayToObject = arrayToObject; - })(Utils || (exports.Utils = Utils = {})); -},1024,[]); +},1074,[3,16,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149606,7 +157910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TaText.propTypes = (0, _extends2.default)({}, _reactNative.TextProps); var _default = TaText; exports.default = _default; -},1025,[3,591,16,18]); +},1075,[3,590,16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149623,7 +157927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCloseCircleOutline; exports.default = _default; -},1026,[3,16,901]); +},1076,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149790,7 +158094,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.commonStyles = commonStyles; -},1027,[3,591,18,1012]); +},1077,[3,590,18,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -149928,7 +158232,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e refs: {} } }); -},1028,[3,6,7,881,882,884]); +},1078,[3,6,7,938,939,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150309,7 +158613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RoutesHelper; exports.default = _default; -},1029,[3,22,591,6,7,1030,1151,1153,1154,1156,1157,1158,1159,894,1160,887,1037]); +},1079,[3,22,590,6,7,1080,1201,1203,1204,1206,1207,1208,1209,951,1210,944,1087]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150637,7 +158941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: {} }); -},1030,[3,591,6,7,881,882,18,1012,1031,1035,1148,889,1017,1150,887,1027]); +},1080,[3,590,6,7,938,939,18,1069,1081,1085,1198,946,1074,1200,944,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150846,7 +159150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = LocaleConfig; exports.default = _default; -},1031,[3,878,591,6,7,881,882,1032,894,1033,884,1035,880,1130]); +},1081,[3,935,590,6,7,938,939,1082,951,1083,941,1085,937,1180]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150962,7 +159266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = DateUtils; -},1032,[3,6,7,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531]); +},1082,[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 @@ -151142,7 +159446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filetime: "filetime" } }; -},1033,[3,878,6,7,1034]); +},1083,[3,935,6,7,1084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151474,7 +159778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: new _promiseQueue.default(1, Infinity) }); -},1034,[3,878,6,7,881,882,535,541,884]); +},1084,[3,935,6,7,938,939,535,541,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151993,7 +160297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, null, this, null, Promise); } -},1035,[3,878,591,6,7,881,882,1036,889,884,1034,880,1037]); +},1085,[3,935,590,6,7,938,939,1086,946,941,1084,937,1087]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152079,7 +160383,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = PaperSetupHelper; exports.default = _default; -},1036,[3,878,6,7,1034]); +},1086,[3,935,6,7,1084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152205,7 +160509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function navigateToValidation() { navigate(TABS.VALIDATION); } -},1037,[3,1038]); +},1087,[3,1088]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152301,7 +160605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationConfig.state = undefined; var _default = NavigationConfig; exports.default = _default; -},1038,[3,6,7,1039]); +},1088,[3,6,7,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152431,7 +160735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1039,[3,1040,1113,1123,1125,1114,1115,1126,1127,1128,1041,1043,1129,1044]); +},1089,[3,1090,1163,1173,1175,1164,1165,1176,1177,1178,1091,1093,1179,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152478,7 +160782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }))); } -},1040,[3,4,16,18,1041]); +},1090,[3,4,16,18,1091]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152569,7 +160873,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: onPress }; } -},1041,[16,18,3,1042,1043,1044]); +},1091,[16,18,3,1092,1093,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152588,7 +160892,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LinkingContext.displayName = 'LinkingContext'; var _default = exports.default = LinkingContext; -},1042,[16]); +},1092,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152637,7 +160941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [linking, navigation]); return linkTo; } -},1043,[16,3,1042,1044]); +},1093,[16,3,1092,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152857,7 +161161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1044,[3,1045,1061,1071,1074,1049,1075,1076,1078,1086,1051,1052,1088,1053,1089,1090,1092,1091,1093,1110,1111,1112,1085,1062]); +},1094,[3,1095,1111,1121,1124,1099,1125,1126,1128,1136,1101,1102,1138,1103,1139,1140,1142,1141,1143,1160,1161,1162,1135,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153207,7 +161511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = BaseNavigationContainer; -},1045,[3,33,4,16,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,179,1070]); +},1095,[3,33,4,16,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,179,1120]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153238,7 +161542,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return duplicates; } -},1046,[]); +},1096,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153298,7 +161602,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function checkSerializable(o) { return _checkSerializableWithoutCircularReference(o, new Set(), []); } -},1047,[3,22]); +},1097,[3,22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153345,7 +161649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children }); } -},1048,[16,179]); +},1098,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153366,7 +161670,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; } -},1049,[]); +},1099,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153389,7 +161693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = NavigationBuilderContext; -},1050,[16]); +},1100,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153405,7 +161709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContainerRefContext = React.createContext(undefined); var _default = exports.default = NavigationContainerRefContext; -},1051,[16]); +},1101,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153421,7 +161725,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContext = React.createContext(undefined); var _default = exports.default = NavigationContext; -},1052,[16]); +},1102,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153437,7 +161741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationRouteContext = React.createContext(undefined); var _default = exports.default = NavigationRouteContext; -},1053,[16]); +},1103,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153476,7 +161780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); -},1054,[16]); +},1104,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153492,7 +161796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var UnhandledActionContext = React.createContext(undefined); var _default = exports.default = UnhandledActionContext; -},1055,[16]); +},1105,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153524,7 +161828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e addListener: addListener }; } -},1056,[16]); +},1106,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153640,7 +161944,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [create, emit]); } -},1057,[3,22,16]); +},1107,[3,22,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153671,7 +161975,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e addKeyedListener: addKeyedListener }; } -},1058,[16]); +},1108,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153766,7 +162070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getCurrentOptions: getCurrentOptions }; } -},1059,[16,3,1050,1054]); +},1109,[16,3,1100,1104]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153842,7 +162146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e React.useDebugValue(state); return [state, getState, setState, scheduleUpdate, flushUpdates]; } -},1060,[3,33,16]); +},1110,[3,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -153938,7 +162242,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, {})); return ref; } -},1061,[3,33,22,1062]); +},1111,[3,33,22,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154024,7 +162328,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; } -},1062,[1063,3,1064,1066,1068,1067,1069]); +},1112,[1113,3,1114,1116,1118,1117,1119]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154078,7 +162382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } -},1063,[]); +},1113,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154145,7 +162449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = BaseRouter; -},1064,[1065]); +},1114,[1115]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154179,7 +162483,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return id; }; -},1065,[]); +},1115,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154361,7 +162665,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e actionCreators: DrawerActions }); } -},1066,[3,22,4,1067,1065]); +},1116,[3,22,4,1117,1115]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154641,7 +162945,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return router; } -},1067,[3,1064,1065]); +},1117,[3,1114,1115]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -154975,8 +163279,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return router; } -},1068,[3,22,1064,1065]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1069,[]); +},1118,[3,22,1114,1115]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1119,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155008,7 +163312,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e scheduleUpdate(callback); React.useEffect(flushUpdates); } -},1070,[16]); +},1120,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155032,7 +163336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; } -},1071,[3,1072,1073]); +},1121,[3,1122,1123]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155042,7 +163346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function Group(_) { return null; } -},1072,[]); +},1122,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155052,7 +163356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function Screen(_) { return null; } -},1073,[]); +},1123,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155068,7 +163372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var CurrentRenderContext = React.createContext(undefined); var _default = exports.default = CurrentRenderContext; -},1074,[16]); +},1124,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155171,7 +163475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); }; -},1075,[3,33]); +},1125,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155186,7 +163490,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; } -},1076,[1077]); +},1126,[1127]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155234,7 +163538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, new Map()); return Array.from(cache.current.values()); } -},1077,[3,4,16]); +},1127,[3,4,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -155461,7 +163765,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [name, result]; })); }; -},1078,[3,22,33,1079,1084,1085]); +},1128,[3,22,33,1129,1134,1135]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -155937,7 +164241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return exports.pick(input, exclusionFilter, options); }; -},1079,[22,1080,1081,1082,33,240,1083]); +},1129,[22,1130,1131,1132,33,240,1133]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -155946,7 +164250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return "%" + x.charCodeAt(0).toString(16).toUpperCase(); }); }; -},1080,[]); +},1130,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -156028,7 +164332,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return customDecodeURIComponent(encodedURI); } }; -},1081,[]); +},1131,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -156049,7 +164353,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return [string.slice(0, separatorIndex), string.slice(separatorIndex + separator.length)]; }; -},1082,[]); +},1132,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -156069,7 +164373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return ret; }; -},1083,[]); +},1133,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156092,7 +164396,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); } -},1084,[3,33]); +},1134,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156135,7 +164439,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},1085,[3,33]); +},1135,[3,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156568,7 +164872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Object.keys(params).length ? params : undefined; }; -},1086,[3,240,22,1087,1079,1049,1085]); +},1136,[3,240,22,1137,1129,1099,1135]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -156579,7 +164883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d'); }; -},1087,[]); +},1137,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156595,7 +164899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationHelpersContext = React.createContext(undefined); var _default = exports.default = NavigationHelpersContext; -},1088,[16]); +},1138,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156609,7 +164913,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); }); -},1089,[3,7,6]); +},1139,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156679,7 +164983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [effect, navigation]); } -},1090,[16,3,1091]); +},1140,[16,3,1141]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156706,7 +165010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return navigation != null ? navigation : root; } -},1091,[16,3,1051,1052]); +},1141,[16,3,1101,1102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -156754,7 +165058,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e React.useDebugValue(valueToReturn); return valueToReturn; } -},1092,[3,33,16,1091]); +},1142,[3,33,16,1141]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157177,7 +165481,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationContent: NavigationContent }; } -},1093,[3,33,240,4,22,16,1072,1094,1095,1088,1053,1054,1073,1056,1096,1097,1098,1057,1102,1103,1058,1104,1105,1107,1108,1109,1070,1089,1062]); +},1143,[3,33,240,4,22,16,1122,1144,1145,1138,1103,1104,1123,1106,1146,1147,1148,1107,1152,1153,1108,1154,1155,1157,1158,1159,1120,1139,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157197,7 +165501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return it === b[index]; }); } -},1094,[]); +},1144,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157220,7 +165524,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return a[key] === b[key]; }); } -},1095,[]); +},1145,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157249,7 +165553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[1]).jsx)(Component, Object.assign({}, props, rest)); }).current; } -},1096,[16,179]); +},1146,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157274,7 +165578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e current.options = descriptors[state.routes[state.index].key].options; } } -},1097,[16,3,1074]); +},1147,[16,3,1124]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157414,7 +165718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return acc; }, {}); } -},1098,[3,4,22,33,16,1050,1052,1053,1099,1101,1077,179]); +},1148,[3,4,22,33,16,1100,1102,1103,1149,1151,1127,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157517,7 +165821,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},1099,[16,3,1048,1054,1100,1059,179]); +},1149,[16,3,1098,1104,1150,1109,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157554,7 +165858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; }); -},1100,[16]); +},1150,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157659,7 +165963,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, {}); return cache.current; } -},1101,[3,240,4,16,1050,1062]); +},1151,[3,240,4,16,1100,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157711,7 +166015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return addListener == null ? undefined : addListener('focus', listener); }, [addListener, listener]); } -},1102,[16,3,1050]); +},1152,[16,3,1100]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157779,7 +166083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }, [currentFocusedKey, emitter, navigation]); } -},1103,[16,3,1052]); +},1153,[16,3,1102]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157844,7 +166148,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }, [emitter.emit, getState, onAction, onUnhandledAction, parentNavigationHelpers, router]); } -},1104,[16,3,1052,1055,1089,1062]); +},1154,[16,3,1102,1105,1139,1112]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -157946,7 +166250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [addListenerParent, onAction]); return onAction; } -},1105,[16,3,1050,1106]); +},1155,[16,3,1100,1156]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158030,7 +166334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [addKeyedListener, beforeRemoveListeners, emitter, getState, routeKey]); } -},1106,[3,240,16,1050,1053]); +},1156,[3,240,16,1100,1103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158086,7 +166390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return addKeyedListener == null ? undefined : addKeyedListener('getState', key, getRehydratedState); }, [addKeyedListener, getRehydratedState, key]); } -},1107,[16,3,1094,1050,1053]); +},1157,[16,3,1144,1100,1103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158123,7 +166427,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, [getState, onRouteFocusParent, router, setState, sourceRouteKey]); } -},1108,[16,3,1050]); +},1158,[16,3,1100]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158161,7 +166465,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [container, key]); return key; } -},1109,[3,33,16,1065,1048]); +},1159,[3,33,16,1115,1098]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158185,7 +166489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return navigation.current; } -},1110,[16,3,1061]); +},1160,[16,3,1111]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158223,7 +166527,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [navigation]); return selector(navigation.getState()); } -},1111,[3,33,16,1091]); +},1161,[3,33,16,1141]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158247,7 +166551,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return route; } -},1112,[16,3,1053]); +},1162,[16,3,1103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158370,7 +166674,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NavigationContainer = React.forwardRef(NavigationContainerInner); var _default = exports.default = NavigationContainer; -},1113,[3,33,4,16,1042,1114,1115,1117,1118,1119,1122,1044,179]); +},1163,[3,33,4,16,1092,1164,1165,1167,1168,1169,1172,1094,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158389,7 +166693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DefaultTheme; -},1114,[]); +},1164,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158412,7 +166716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children }); } -},1115,[16,3,1116,179]); +},1165,[16,3,1166,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158431,7 +166735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ThemeContext.displayName = 'ThemeContext'; var _default = exports.default = ThemeContext; -},1116,[16,3,1114]); +},1166,[16,3,1164]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158468,7 +166772,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, [ref]); } -},1117,[16,18]); +},1167,[16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158476,7 +166780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = useDocumentTitle; function useDocumentTitle() {} -},1118,[]); +},1168,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158645,7 +166949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getInitialState: getInitialState }; } -},1119,[16,18,3,1120,1044]); +},1169,[16,18,3,1170,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158672,7 +166976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; } -},1120,[3,1121]); +},1170,[3,1171]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -158683,7 +166987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d'); }; -},1121,[]); +},1171,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158749,7 +167053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [promise, resolved]); return state; } -},1122,[3,270,33,16]); +},1172,[3,270,33,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158796,7 +167100,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); }); -},1123,[16,3,1124,179,1044]); +},1173,[16,3,1174,179,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158812,7 +167116,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ServerContext = React.createContext(undefined); var _default = exports.default = ServerContext; -},1124,[16]); +},1174,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158831,7 +167135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DarkTheme; -},1125,[]); +},1175,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158850,8 +167154,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var theme = React.useContext(_ThemeContext.default); return theme; } -},1126,[16,3,1116]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1127,[]); +},1176,[16,3,1166]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1177,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158910,7 +167214,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [linking, navigation]); return buildLink; } -},1128,[16,3,1042,1044]); +},1178,[16,3,1092,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -158985,7 +167289,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return unsubscribe; }, [navigation, ref, route.key]); } -},1129,[16,1044]); +},1179,[16,1094]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -159074,7 +167378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function i18nTxt(name, params) { return _i18nJs.default.t(name, params); } -},1130,[3,591,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147]); +},1180,[3,590,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { ; @@ -159891,7 +168195,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e I18n.p = I18n.pluralize.bind(I18n); return I18n; }); -},1131,[]); +},1181,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -159916,7 +168220,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Downloaded" } ; -},1132,[]); +},1182,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -159941,7 +168245,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Scaricati" } ; -},1133,[]); +},1183,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "أقسام خاصة", @@ -159966,7 +168270,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "تم التنزيل" } ; -},1134,[]); +},1184,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Særlige sektioner", @@ -159991,7 +168295,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Downloadet" } ; -},1135,[]); +},1185,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Prospekte", @@ -160016,7 +168320,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Heruntergeladen" } ; -},1136,[]); +},1186,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Section Spéciale", @@ -160041,7 +168345,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Téléchargé" } ; -},1137,[]); +},1187,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Speciale secties", @@ -160066,7 +168370,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "gedownload" } ; -},1138,[]); +},1188,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -160091,7 +168395,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "descargado" } ; -},1139,[]); +},1189,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Secțiuni speciale", @@ -160116,7 +168420,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Descărcat" } ; -},1140,[]); +},1190,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Särskilda avsnitt", @@ -160141,7 +168445,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Nedladdat" } ; -},1141,[]); +},1191,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -160166,7 +168470,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "baixado" } ; -},1142,[]); +},1192,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -160191,7 +168495,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "baixado" } ; -},1143,[]); +},1193,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Speciale secties", @@ -160216,7 +168520,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "gedownload" } ; -},1144,[]); +},1194,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Spesielle seksjoner", @@ -160240,7 +168544,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" } ; -},1145,[]); +},1195,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_special_sections": "Spesielle seksjoner", @@ -160265,7 +168569,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Lastet ned" } ; -},1146,[]); +},1196,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "str_tabs": "", @@ -160290,7 +168594,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "str_downloaded_editions": "Preneseno" } ; -},1147,[]); +},1197,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160530,7 +168834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = UserConfig; exports.default = _default; -},1148,[3,878,6,7,881,882,16,884,1149]); +},1198,[3,935,6,7,938,939,16,941,1199]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160597,7 +168901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = UserHelper; exports.default = _default; -},1149,[3,878,6,7,1034]); +},1199,[3,935,6,7,1084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160609,7 +168913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function init() { _log.default.log("Do nothing on native code"); } -},1150,[3,884]); +},1200,[3,941]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160766,7 +169070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_publication.default); exports.default = Edition; -},1151,[3,6,7,12,14,11,13,881,882,1152]); +},1201,[3,6,7,12,14,11,13,938,939,1202]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -160976,7 +169280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Publication; -},1152,[3,6,7,881,882,883]); +},1202,[3,6,7,938,939,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161139,7 +169443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Route; -},1153,[3,6,7,881,882]); +},1203,[3,6,7,938,939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161245,7 +169549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeLabeled.default); exports.default = RouteAction; -},1154,[3,591,6,7,12,85,14,11,13,881,882,1155]); +},1204,[3,590,6,7,12,85,14,11,13,938,939,1205]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161356,7 +169660,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_route.default); exports.default = RouteLabeled; -},1155,[3,591,6,7,12,85,14,11,13,881,882,1153]); +},1205,[3,590,6,7,12,85,14,11,13,938,939,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161486,7 +169790,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_route.default); exports.default = RouteEdition; -},1156,[3,591,6,7,12,85,14,11,13,881,882,1151,1153]); +},1206,[3,590,6,7,12,85,14,11,13,938,939,1201,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161609,7 +169913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeEdition.default); exports.default = RouteEditionsDate; -},1157,[3,591,6,7,12,85,14,11,13,881,882,1156]); +},1207,[3,590,6,7,12,85,14,11,13,938,939,1206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161733,7 +170037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteTabs; exports.default = _default; -},1158,[3,591,6,7,12,85,14,11,13,881,882,1153]); +},1208,[3,590,6,7,12,85,14,11,13,938,939,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -161856,7 +170160,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_routeLabeled.default); exports.default = RouteUrl; -},1159,[3,591,6,7,12,85,14,11,13,881,882,1155]); +},1209,[3,590,6,7,12,85,14,11,13,938,939,1205]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162406,7 +170710,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionsHelper; exports.default = _default; -},1160,[3,478,22,6,7,881,882,1030,1151,883,1152,1161,1032,887]); +},1210,[3,478,22,6,7,938,939,1080,1201,940,1202,1211,1082,944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162470,7 +170774,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_publication.default); exports.default = Special; -},1161,[3,7,6,14,11,13,1152]); +},1211,[3,7,6,14,11,13,1202]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162535,7 +170839,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteSeparator; exports.default = _default; -},1162,[3,7,6,14,11,13,1153]); +},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 @@ -162632,7 +170936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = RouteHeader; exports.default = _default; -},1163,[3,6,7,12,14,11,13,881,882,1153]); +},1213,[3,6,7,12,14,11,13,938,939,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -162756,7 +171060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Content; exports.default = _default; -},1164,[3,591,22,33,4,16,18,582,1153,1165,1030,1151,1017,1148]); +},1214,[3,590,22,33,4,16,18,582,1203,1215,1080,1201,1074,1198]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163009,7 +171313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerNavigator; exports.default = _default; -},1165,[3,33,22,591,16,18,582,1153,1166,1038,1258,1159,1266,1152,1158,1271,1274,1176,1039,1027,1037]); +},1215,[3,33,22,590,16,18,582,1203,1216,1088,1308,1209,1316,1202,1208,1321,1324,1226,1089,1077,1087]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163174,7 +171478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerContent; exports.default = _default; -},1166,[16,3,582,18,1153,1167,884,1162,1174,1156,1159,1163,1175,1158,896,1154,1028,1017,1176]); +},1216,[16,3,582,18,1203,1217,941,1212,1224,1206,1209,1213,1225,1208,953,1204,1078,1074,1226]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163334,7 +171638,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DrawerItemWithState.propTypes = (0, _extends2.default)({}, DrawerItem.propTypes); var _default = DrawerItemWithState; exports.default = _default; -},1167,[3,591,33,16,582,1153,1168,1172,1173,1038,1039]); +},1217,[3,590,33,16,582,1203,1218,1222,1223,1088,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163601,7 +171905,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CollapseLine; exports.default = _default; -},1168,[3,22,33,16,582,18,1169,1030,1012,1017,1027]); +},1218,[3,22,33,16,582,18,1219,1080,1069,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163665,7 +171969,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CollapseAccordion; exports.default = _default; -},1169,[3,16,582,18,898,1170,1171,1017]); +},1219,[3,16,582,18,955,1220,1221,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163682,7 +171986,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcChevronDown; exports.default = _default; -},1170,[3,16,901]); +},1220,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163699,7 +172003,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcChevronUp; exports.default = _default; -},1171,[3,16,901]); +},1221,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163828,7 +172132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerItemLeft; exports.default = _default; -},1172,[3,16,582,18,1012,898,1025,1153,1030,1017]); +},1222,[3,16,582,18,1069,955,1075,1203,1080,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163845,7 +172149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},1173,[3,1153]); +},1223,[3,1203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163885,7 +172189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerSeparator; exports.default = _default; -},1174,[3,16,582,18,1162,1012,1017]); +},1224,[3,16,582,18,1212,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -163939,7 +172243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = DrawerHeader; exports.default = _default; -},1175,[3,16,582,18,1163,1025,1012,1017]); +},1225,[3,16,582,18,1213,1075,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164040,7 +172344,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])); -},1176,[3,1177,1183,1184,1186,1185,1220,1179,1224,1226,1182,1256,1257]); +},1226,[3,1227,1233,1234,1236,1235,1270,1229,1274,1276,1232,1306,1307]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164132,7 +172436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[5]).createNavigatorFactory)(DrawerNavigator); -},1177,[3,4,16,1178,1179,1039,179]); +},1227,[3,4,16,1228,1229,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DEV = false; var warnings = new Set(); @@ -164140,7 +172444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function warnOnce(condition) {} module.exports = warnOnce; -},1178,[]); +},1228,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164426,7 +172730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1179,[3,4,22,33,16,18,674,1180,1181,1182,1183,1220,1222,179,1225,1228,842,1039,1230,1196]); +},1229,[3,4,22,33,16,18,673,1230,1231,1232,1233,1270,1272,179,1275,1278,899,1089,1280,1246]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164440,7 +172744,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); -},1180,[16]); +},1230,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164456,7 +172760,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var DrawerStatusContext = React.createContext(undefined); var _default = exports.default = DrawerStatusContext; -},1181,[16]); +},1231,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164475,7 +172779,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'; } -},1182,[]); +},1232,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164514,7 +172818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, rest)) })); } -},1183,[3,4,16,1184,1185,179]); +},1233,[3,4,16,1234,1235,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164562,7 +172866,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1184,[3,4,16,18,1180,842,179]); +},1234,[3,4,16,18,1230,899,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164632,7 +172936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, route.key); }); } -},1185,[16,3,1186,1039,179]); +},1235,[16,3,1236,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -164786,7 +173090,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e display: 'flex' } }); -},1186,[3,4,1187,16,18,179,1039,1196]); +},1236,[3,4,1237,16,18,179,1089,1246]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -165208,7 +173512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = Color; -},1187,[1188,1192]); +},1237,[1238,1242]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var convert = {}; var models = Object.keys(_$$_REQUIRE(_dependencyMap[0])); @@ -165280,7 +173584,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); module.exports = convert; -},1188,[1189,1191]); +},1238,[1239,1241]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reverseKeywords = {}; @@ -166159,7 +174463,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; -},1189,[1190]); +},1239,[1240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -166313,7 +174617,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "yellow": [255, 255, 0], "yellowgreen": [154, 205, 50] }; -},1190,[]); +},1240,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function buildGraph() { var graph = {}; @@ -166394,7 +174698,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return conversion; }; -},1191,[1189]); +},1241,[1239]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var hasOwnProperty = Object.hasOwnProperty; var reverseNames = {}; @@ -166619,7 +174923,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; } -},1192,[1193,1194]); +},1242,[1243,1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -166773,7 +175077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "yellow": [255, 255, 0], "yellowgreen": [154, 205, 50] }; -},1193,[]); +},1243,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -166801,7 +175105,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return fn(swizzle(arguments)); }; }; -},1194,[1195]); +},1244,[1245]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = function isArrayish(obj) { if (!obj || typeof obj === 'string') { @@ -166810,7 +175114,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'); }; -},1195,[]); +},1245,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -166976,7 +175280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); var Assets = exports.Assets = [_$$_REQUIRE(_dependencyMap[18]), _$$_REQUIRE(_dependencyMap[19])]; -},1196,[3,1197,1198,1199,1200,1205,1212,1201,1213,1202,1204,1214,1215,1208,1216,1217,1218,1219,1209,1211]); +},1246,[3,1247,1248,1249,1250,1255,1262,1251,1263,1252,1254,1264,1265,1258,1266,1267,1268,1269,1259,1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167009,7 +175313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, style] })); } -},1197,[3,4,16,18,1039,179]); +},1247,[3,4,16,18,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167048,7 +175352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return headerHeight + statusBarHeight; } -},1198,[18]); +},1248,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167058,7 +175362,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; } -},1199,[]); +},1249,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167301,7 +175605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexBasis: 0 } }); -},1200,[3,4,16,18,1198,1201,1202,1204,842,179]); +},1250,[3,4,16,18,1248,1251,1252,1254,899,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167356,7 +175660,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1201,[3,4,16,18,1039,179]); +},1251,[3,4,16,18,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167368,7 +175672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderShownContext = (0, _getNamedContext.default)('HeaderShownContext', false); var _default = exports.default = HeaderShownContext; -},1202,[3,1203]); +},1252,[3,1253]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167398,7 +175702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e global[contexts].set(name, context); return context; } -},1203,[16]); +},1253,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167453,7 +175757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }) }); -},1204,[3,4,16,18,1039,179]); +},1254,[3,4,16,18,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167675,7 +175979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] } }); -},1205,[3,33,16,18,1206,1208,1039,179,1209,1211]); +},1255,[3,33,16,18,1256,1258,1089,179,1259,1261]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167688,7 +175992,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _MaskedViewNative = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); -},1206,[3,1207]); +},1256,[3,1257]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167711,7 +176015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { RNCMaskedView = function () { - throw new Error("Cannot find module '@react-native-masked-view/masked-view'\nRequire stack:\n- /Users/ipaddev/sdk/3.17.05.rc/node_modules/@react-navigation/elements/src/noop.js"); + throw new Error("Cannot find module '@react-native-masked-view/masked-view'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/elements/src/noop.js"); }().default; } catch (e) {} @@ -167729,7 +176033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return children; } -},1207,[3,4,16,18,179]); +},1257,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167808,7 +176112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, style] }, rest)); } -},1208,[3,33,4,16,18,1039,179]); +},1258,[3,33,4,16,18,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -167820,12 +176124,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "back-icon", "type": "png" }); -},1209,[1210]); +},1259,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = _$$_REQUIRE(_dependencyMap[0]); -},1210,[156]); +},1260,[156]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -167837,7 +176141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "back-icon-mask", "type": "png" }); -},1211,[1210]); +},1261,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167849,7 +176153,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderBackContext = (0, _getNamedContext.default)('HeaderBackContext', undefined); var _default = exports.default = HeaderBackContext; -},1212,[3,1203]); +},1262,[3,1253]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167861,7 +176165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var HeaderHeightContext = (0, _getNamedContext.default)('HeaderHeightContext', undefined); var _default = exports.default = HeaderHeightContext; -},1213,[3,1203]); +},1263,[3,1253]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167885,7 +176189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return height; } -},1214,[16,3,1213]); +},1264,[16,3,1263]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167918,7 +176222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1215,[16,18,179]); +},1265,[16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -167983,7 +176287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e top: FAR_FAR_AWAY } }); -},1216,[3,4,16,18,179]); +},1266,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168047,7 +176351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1217,[16,18,842,179]); +},1267,[16,18,899,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168143,8 +176447,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e right: 0 } }); -},1218,[3,33,16,18,1197,1198,1213,1202,842,179,1039]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1219,[]); +},1268,[3,33,16,18,1247,1248,1263,1252,899,179,1089]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},1269,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168207,7 +176511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginHorizontal: 11 } }); -},1220,[3,4,16,18,1039,179,1196,1221]); +},1270,[3,4,16,18,1089,179,1246,1271]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -168219,7 +176523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "toggle-drawer-icon", "type": "png" }); -},1221,[1210]); +},1271,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168234,7 +176538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1222,[1223]); +},1272,[1273]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168280,7 +176584,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_$$_REQUIRE(_dependencyMap[0]).PanGestureHandler, Object.assign({}, props)) }); } -},1223,[1,16,3,1224,179]); +},1273,[1,16,3,1274,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168294,7 +176598,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); -},1224,[16]); +},1274,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168725,7 +177029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1225,[3,33,6,7,11,13,14,16,18,674,1226,1227,1222,179]); +},1275,[3,33,6,7,11,13,14,16,18,673,1276,1277,1272,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168739,7 +177043,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); -},1226,[16]); +},1276,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168805,7 +177109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = Overlay; -},1227,[3,4,16,18,674,179]); +},1277,[3,4,16,18,673,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -168837,7 +177141,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (33:15)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (33:15)"; return _f; }(); @@ -168895,7 +177199,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (81:4)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (81:4)"; return _f; }(), [drawerPosition, drawerWidth]); var hideStatusBar = React.useCallback(function (hide) { @@ -168981,7 +177285,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (169:8)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (169:8)"; return _f; }()); }; @@ -168998,7 +177302,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (151:4)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (151:4)"; return _f; }(), [getDrawerTranslationX, onClose, onOpen, touchStartX, touchX, translationX]); React.useEffect(function () { @@ -169022,7 +177326,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (187:13)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (187:13)"; return _f; }(), onActive: function () { @@ -169039,7 +177343,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (194:14)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (194:14)"; return _f; }(), onEnd: function () { @@ -169060,7 +177364,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:11)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:11)"; return _f; }(), onFinish: function () { @@ -169074,7 +177378,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (215:14)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (215:14)"; return _f; }() }); @@ -169102,7 +177406,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (220:37)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (220:37)"; return _f; }()); var drawerAnimatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(function () { @@ -169129,7 +177433,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (265:47)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (265:47)"; _f.__optimalization = 3; return _f; }()); @@ -169150,7 +177454,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (291:48)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (291:48)"; _f.__optimalization = 3; return _f; }()); @@ -169167,7 +177471,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (311:35)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (311:35)"; return _f; }()); return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_DrawerProgressContext.default.Provider, { @@ -169230,7 +177534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })) }); -},1228,[16,18,674,3,1226,1229,1,179]); +},1278,[16,18,673,3,1276,1279,1,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169271,7 +177575,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (19:41)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (19:41)"; _f.__optimalization = 3; return _f; }()); @@ -169291,7 +177595,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.17.05.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (28:41)"; + _f.__location = "/Users/ipaddev/sdk/3.18.03.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, { @@ -169322,7 +177626,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = Overlay; -},1229,[3,4,16,18,674,179]); +},1279,[3,4,16,18,673,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169385,7 +177689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},1230,[3,4,16,18,1231,179,1196]); +},1280,[3,4,16,18,1281,179,1246]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169631,7 +177935,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; } -},1231,[1232,1233,1236,1237,1238,1239,1245,3,1248,1250,1252,1254,1255]); +},1281,[1282,1283,1286,1287,1288,1289,1295,3,1298,1300,1302,1304,1305]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169645,7 +177949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: props.children }); }); -},1232,[3,16,179]); +},1282,[3,16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169712,7 +178016,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: 'center' } }); -},1233,[3,16,18,1234,1235,179]); +},1283,[3,16,18,1284,1285,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169722,7 +178026,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', {}); -},1234,[3,183]); +},1284,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169732,7 +178036,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', {}); -},1235,[3,183]); +},1285,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169782,7 +178086,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function freezeEnabled() { return ENABLE_FREEZE; } -},1236,[18]); +},1286,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169801,12 +178105,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var isNewBackTitleImplementation = exports.isNewBackTitleImplementation = true; -},1237,[18]); +},1287,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); -},1238,[]); +},1288,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169969,7 +178273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Screen; -},1239,[3,4,16,18,1240,1241,1243,1244,1236,179]); +},1289,[3,4,16,18,1290,1291,1293,1294,1286,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -169983,7 +178287,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); -},1240,[16]); +},1290,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170019,7 +178323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = DelayedFreeze; -},1241,[3,33,16,179,1242]); +},1291,[3,33,16,179,1292]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170062,7 +178366,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},1242,[16,179]); +},1292,[16,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170074,7 +178378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSScreen', { interfaceOnly: true }); -},1243,[3,183]); +},1293,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170086,7 +178390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = (0, _codegenNativeComponent.default)('RNSModalScreen', { interfaceOnly: true }); -},1244,[3,183]); +},1294,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170126,7 +178430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = ScreenContainer; -},1245,[3,4,18,16,1246,1247,1236,179]); +},1295,[3,4,18,16,1296,1297,1286,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170136,7 +178440,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', {}); -},1246,[3,183]); +},1296,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170146,7 +178450,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', {}); -},1247,[3,183]); +},1297,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170199,7 +178503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = ScreenStack; -},1248,[3,4,16,1241,1249,1231,179]); +},1298,[3,4,16,1291,1299,1281,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170209,7 +178513,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', {}); -},1249,[3,183]); +},1299,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170294,7 +178598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = _react.default.forwardRef(SearchBar); -},1250,[3,16,18,1251,1231,179]); +},1300,[3,16,18,1301,1281,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170310,7 +178614,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNSSearchBar', {}); -},1251,[3,183,133]); +},1301,[3,183,133]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170342,7 +178646,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = FullWindowOverlay; -},1252,[3,16,18,1253,179]); +},1302,[3,16,18,1303,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170352,7 +178656,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', {}); -},1253,[3,183]); +},1303,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170362,7 +178666,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.TurboModuleRegistry.get('RNSModule'); -},1254,[18]); +},1304,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170386,7 +178690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return progress; } -},1255,[16,3,1240]); +},1305,[16,3,1290]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170410,7 +178714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return progress; } -},1256,[16,3,1226]); +},1306,[16,3,1276]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170434,7 +178738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return drawerStatus; } -},1257,[16,3,1181]); +},1307,[16,3,1231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170521,7 +178825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = MainHeader; exports.default = _default; -},1258,[3,16,582,18,1259,1262,1263,1265,1027,1012,1017]); +},1308,[3,16,582,18,1309,1312,1313,1315,1077,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170581,7 +178885,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HamburgerButton; exports.default = _default; -},1259,[3,16,582,18,1038,1260,898,1261,1017,1012]); +},1309,[3,16,582,18,1088,1310,955,1311,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170606,7 +178910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = _default; -},1260,[18]); +},1310,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170623,7 +178927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcMenu; exports.default = _default; -},1261,[3,16,901]); +},1311,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170707,7 +179011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Logo; exports.default = _default; -},1262,[3,16,582,18,898,1030,1027,1017,1012]); +},1312,[3,16,582,18,955,1080,1077,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170814,7 +179118,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CloseButton; exports.default = _default; -},1263,[16,3,582,18,1260,898,1264,896,1017,1028,1012]); +},1313,[16,3,582,18,1310,955,1314,953,1074,1078,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170831,7 +179135,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcClose; exports.default = _default; -},1264,[3,16,901]); +},1314,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170865,7 +179169,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = PlaceHolderButton; exports.default = _default; -},1265,[3,16,582,18,1260,1017,1012]); +},1315,[3,16,582,18,1310,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -170940,7 +179244,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = UrlPage; exports.default = _default; -},1266,[3,16,582,18,1267,894,1025,1030,1270,1039]); +},1316,[3,16,582,18,1317,951,1075,1080,1320,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171142,7 +179446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TaWebView; exports.default = _default; -},1267,[3,591,16,582,834,18,884,896,1268,1030,887,1028,885,1269]); +},1317,[3,590,16,582,891,18,941,953,1318,1080,944,1078,942,1319]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171186,7 +179490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Message; -},1268,[3,6,7,881,882]); +},1318,[3,6,7,938,939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171196,7 +179500,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'));"; } -},1269,[]); +},1319,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171213,7 +179517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcWebOff; exports.default = _default; -},1270,[3,16,901]); +},1320,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171340,7 +179644,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TabNavigator; exports.default = _default; -},1271,[3,591,16,582,1157,1156,1272,1030,1274,1306,1159,1266,1660,1153,1661,1037]); +},1321,[3,590,16,582,1207,1206,1322,1080,1324,1356,1209,1316,1685,1203,1686,1087]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171415,7 +179719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionsNested.defaultProps = {}; var _default = EditionsNested; exports.default = _default; -},1272,[3,22,16,582,1151,1273,1295,1030,883]); +},1322,[3,22,16,582,1201,1323,1345,1080,940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171573,7 +179877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = IssueList; exports.default = _default; -},1273,[3,591,4,16,582,883,1274,1286,1290,1291,1292,1027,1293,1294]); +},1323,[3,590,4,16,582,940,1324,1336,1340,1341,1342,1077,1343,1344]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171642,7 +179946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = IssueItem; exports.default = _default; -},1274,[3,591,4,16,582,883,1275,1027]); +},1324,[3,590,4,16,582,940,1325,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171744,7 +180048,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = BaseItemWithImage; exports.default = _default; -},1275,[3,591,4,16,582,18,1276,883,1281,1282,1017,1012,1027]); +},1325,[3,590,4,16,582,18,1326,940,1331,1332,1074,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171762,7 +180066,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; -},1276,[18,3,1277,1279,1280]); +},1326,[18,3,1327,1329,1330]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171872,7 +180176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1277,[3,4,6,7,11,13,14,16,18,1278,179]); +},1327,[3,4,6,7,11,13,14,16,18,1328,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -171882,7 +180186,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = (0, _reactNative.requireNativeComponent)('BVLinearGradient'); -},1278,[18]); +},1328,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172015,7 +180319,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1279,[3,4,6,7,11,13,14,16,18,1278,179]); +},1329,[3,4,6,7,11,13,14,16,18,1328,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172132,7 +180436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e y: 1.0 } }; -},1280,[3,4,6,7,11,13,14,16,18,1278,179]); +},1330,[3,4,6,7,11,13,14,16,18,1328,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172207,7 +180511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e IssueImage.defaultProps = {}; var _default = IssueImage; exports.default = _default; -},1281,[3,591,16,582,18,883,898,1017,1027,880]); +},1331,[3,590,16,582,18,940,955,1074,1077,937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172329,7 +180633,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = BaseItem; exports.default = _default; -},1282,[3,591,16,582,18,883,1283,1017,1027]); +},1332,[3,590,16,582,18,940,1333,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172580,7 +180884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Badge; exports.default = _default; -},1283,[3,33,591,16,582,18,1025,1284,1027,1012,1017]); +},1333,[3,33,590,16,582,18,1075,1334,1077,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172622,7 +180926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DownloadedCheck.defaultProps = {}; var _default = DownloadedCheck; exports.default = _default; -},1284,[3,591,4,16,582,1285,1017]); +},1334,[3,590,4,16,582,1335,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172639,7 +180943,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCheckCircle; exports.default = _default; -},1285,[3,16,901]); +},1335,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172734,7 +181038,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = List; exports.default = _default; -},1286,[3,22,591,4,16,18,582,1287,1289,1017,1027]); +},1336,[3,22,590,4,16,18,582,1337,1339,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172810,7 +181114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HorizontalList; exports.default = _default; -},1287,[3,4,591,16,582,18,1288,1017,1027]); +},1337,[3,4,590,16,582,18,1338,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -172889,7 +181193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = HeaderList; exports.default = _default; -},1288,[3,16,582,18,1025,898,1027,1012,1017]); +},1338,[3,16,582,18,1075,955,1077,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173085,7 +181389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = VerticalList; exports.default = _default; -},1289,[3,33,4,591,16,582,18,1017,1027]); +},1339,[3,33,4,590,16,582,18,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173139,7 +181443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IssueCardItem; exports.default = _default; -},1290,[3,591,4,16,18,1274,1283,1012,1027]); +},1340,[3,590,4,16,18,1324,1333,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173169,7 +181473,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e IssueFlatItem.propTypes = _issueItem.default.propTypes; var _default = IssueFlatItem; exports.default = _default; -},1291,[3,591,4,16,1274,1027]); +},1341,[3,590,4,16,1324,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173363,7 +181667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = LayoutList; exports.default = _default; -},1292,[3,591,22,33,4,16,18,582,1287,1289,900,1017,1027,1293]); +},1342,[3,590,22,33,4,16,18,582,1337,1339,957,1074,1077,1343]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173409,7 +181713,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return size; } -},1293,[18]); +},1343,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173421,7 +181725,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var AspectRatioContext = _react.default.createContext(1); exports.AspectRatioContext = AspectRatioContext; -},1294,[3,16]); +},1344,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173739,7 +182043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionList; exports.default = _default; -},1295,[3,878,22,33,4,591,16,582,1292,1151,1160,1274,883,1296,1290,1030,1300,1301,1303,1293,1027,880,1294]); +},1345,[3,935,22,33,4,590,16,582,1342,1201,1210,1324,940,1346,1340,1080,1350,1351,1353,1343,1077,937,1344]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173782,7 +182086,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionBackItem.defaultProps = {}; var _default = EditionBackItem; exports.default = _default; -},1296,[3,591,16,18,1297,1298,1012,1027]); +},1346,[3,590,16,18,1347,1348,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173799,7 +182103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcBackCircle; exports.default = _default; -},1297,[3,16,901]); +},1347,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173886,7 +182190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionCardItemWithIcons; exports.default = _default; -},1298,[3,591,4,16,582,18,1299,1012,1017,1027]); +},1348,[3,590,4,16,582,18,1349,1069,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -173944,7 +182248,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; -},1299,[3,591,4,16,18,582,1300,1283,1012,1027]); +},1349,[3,590,4,16,18,582,1350,1333,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174061,7 +182365,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionItem; exports.default = _default; -},1300,[3,591,4,16,582,1151,1282,1160,1275,1027]); +},1350,[3,590,4,16,582,1201,1332,1210,1325,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174137,7 +182441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionFolderItem.defaultProps = (0, _extends2.default)({}, _editionCardItemWithIcons.default.defaultProps, { enableFavorite: true }); -},1301,[3,591,22,4,16,582,18,1302,1298,1012,1303]); +},1351,[3,590,22,4,16,582,18,1352,1348,1069,1353]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174154,7 +182458,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcNewspaperMultiple; exports.default = _default; -},1302,[3,16,901]); +},1352,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174201,7 +182505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EditionFavoriteItem.defaultProps = (0, _extends2.default)({}, _editionCardItemWithIcons.default.defaultProps, { selected: false }); -},1303,[3,591,22,4,16,582,18,1298,1304,1305]); +},1353,[3,590,22,4,16,582,18,1348,1354,1355]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174218,7 +182522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcHeartMinus; exports.default = _default; -},1304,[3,16,901]); +},1354,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174235,7 +182539,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcHeartPlusOutline; exports.default = _default; -},1305,[3,16,901]); +},1355,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174349,7 +182653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = EditionDayContainer; exports.default = _default; -},1306,[3,591,33,16,582,1307,1157,1323,1160,1294]); +},1356,[3,590,33,16,582,1357,1207,1373,1210,1344]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174714,7 +183018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayPage; exports.default = _default; -},1307,[3,591,478,33,22,16,582,18,1151,883,1308,1320,1321,1322,1274,1160,1317,1030,1319,1283,1027,1017,1012]); +},1357,[3,590,478,33,22,16,582,18,1201,940,1358,1370,1371,1372,1324,1210,1367,1080,1369,1333,1077,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174916,7 +183220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueList.default.propTypes); var _default = EditionsSecondary; exports.default = _default; -},1308,[3,591,22,33,16,582,18,1273,1151,1160,1309,1311,1030,883,1317,1319,1310,1027,1012]); +},1358,[3,590,22,33,16,582,18,1323,1201,1210,1359,1361,1080,940,1367,1369,1360,1077,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -174986,7 +183290,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryEmpty; exports.default = _default; -},1309,[3,16,582,18,898,1310,1012,1027,1017]); +},1359,[3,16,582,18,955,1360,1069,1077,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175003,7 +183307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcPlus; exports.default = _default; -},1310,[3,16,901]); +},1360,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175244,7 +183548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryModal; exports.default = _default; -},1311,[3,33,22,16,582,18,1030,1151,1312,1160,1295,1314,1012,1017,1027,1315,1148]); +},1361,[3,33,22,16,582,18,1080,1201,1362,1210,1345,1364,1069,1074,1077,1365,1198]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175381,7 +183685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsSecondaryModalHeader; exports.default = _default; -},1312,[3,16,582,18,1025,898,1264,1313,1030,1027,1012,1017]); +},1362,[3,16,582,18,1075,955,1314,1363,1080,1077,1069,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175398,7 +183702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcContentSaveOutline; exports.default = _default; -},1313,[3,16,901]); +},1363,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175479,7 +183783,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionsTags; exports.default = _default; -},1314,[3,16,582,18,1264,1025,1030,1151,1012,1027]); +},1364,[3,16,582,18,1314,1075,1080,1201,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175860,7 +184164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textColor: _$$_REQUIRE(_dependencyMap[14]).colors.black, autoFocus: false }; -},1315,[3,878,6,7,12,14,11,13,16,582,18,900,1316,1017,1012]); +},1365,[3,935,6,7,12,14,11,13,16,582,18,957,1366,1074,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -175877,7 +184181,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCloseCircle; exports.default = _default; -},1316,[3,16,901]); +},1366,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176048,7 +184352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueList.default.propTypes); var _default = IssuesGrid; exports.default = _default; -},1317,[3,591,22,33,16,582,18,1273,883,1290,1318,1027]); +},1367,[3,590,22,33,16,582,18,1323,940,1340,1368,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176213,7 +184517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Grid; exports.default = _default; -},1318,[3,33,16,18,582]); +},1368,[3,33,16,18,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176302,7 +184606,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayHeader; exports.default = _default; -},1319,[3,591,4,16,582,18,1025,1030]); +},1369,[3,590,4,16,582,18,1075,1080]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176356,7 +184660,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _issueItem.default.propTypes); var _default = IssueShadowItem; exports.default = _default; -},1320,[3,591,4,16,582,18,1274,1284,1027]); +},1370,[3,590,4,16,582,18,1324,1334,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176434,7 +184738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = _default; -},1321,[3,591,18,1012,1027]); +},1371,[3,590,18,1069,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176478,7 +184782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDayBg; exports.default = _default; -},1322,[3,16,582,18,1030,1012]); +},1372,[3,16,582,18,1080,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176667,7 +184971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = EditionDaySelector; exports.default = _default; -},1323,[3,33,16,582,18,1030,883,1160,1324,1325,1032,1319,1659,1037]); +},1373,[3,33,16,582,18,1080,940,1210,1374,1375,1082,1369,1684,1087]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176684,7 +184988,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcCalendarMonth; exports.default = _default; -},1324,[3,16,901]); +},1374,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -176749,2727 +185053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TaCalendarModal; exports.default = _default; -},1325,[3,4,591,16,582,18,1326,1351,1354,1017]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "ReactNativeModal", { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0]).ReactNativeModal; - } - }); - exports.default = undefined; - - var _default = exports.default = _$$_REQUIRE(_dependencyMap[0]).ReactNativeModal; -},1326,[1327]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.ReactNativeModal = 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 React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var PropTypes = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var animatable = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _excluded = ["animationIn", "animationInTiming", "animationOut", "animationOutTiming", "avoidKeyboard", "coverScreen", "hasBackdrop", "backdropColor", "backdropOpacity", "backdropTransitionInTiming", "backdropTransitionOutTiming", "customBackdrop", "children", "isVisible", "onModalShow", "onBackButtonPress", "useNativeDriver", "propagateSwipe", "style"], - _excluded2 = ["testID"]; - - 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; })(); } - - (0, _$$_REQUIRE(_dependencyMap[12]).initializeAnimations)(); - var defaultProps = { - animationIn: 'slideInUp', - animationInTiming: 300, - animationOut: 'slideOutDown', - animationOutTiming: 300, - avoidKeyboard: false, - coverScreen: true, - hasBackdrop: true, - backdropColor: 'black', - backdropOpacity: 0.7, - backdropTransitionInTiming: 300, - backdropTransitionOutTiming: 300, - customBackdrop: null, - useNativeDriver: false, - deviceHeight: null, - deviceWidth: null, - hideModalContentWhileAnimating: false, - propagateSwipe: false, - isVisible: false, - panResponderThreshold: 4, - swipeThreshold: 100, - onModalShow: function onModalShow() { - return null; - }, - onModalWillShow: function onModalWillShow() { - return null; - }, - onModalHide: function onModalHide() { - return null; - }, - onModalWillHide: function onModalWillHide() { - return null; - }, - onBackdropPress: function onBackdropPress() { - return null; - }, - onBackButtonPress: function onBackButtonPress() { - return null; - }, - scrollTo: null, - scrollOffset: 0, - scrollOffsetMax: 0, - scrollHorizontal: false, - statusBarTranslucent: false, - supportedOrientations: ['portrait', 'landscape'] - }; - - var extractAnimationFromProps = function extractAnimationFromProps(props) { - return { - animationIn: props.animationIn, - animationOut: props.animationOut - }; - }; - - var ReactNativeModal = exports.ReactNativeModal = function (_React$Component) { - function ReactNativeModal(props) { - var _this; - - (0, _classCallCheck2.default)(this, ReactNativeModal); - _this = _callSuper(this, ReactNativeModal, [props]); - _this.state = { - showContent: true, - isVisible: false, - deviceWidth: _reactNative.Dimensions.get('window').width, - deviceHeight: _reactNative.Dimensions.get('window').height, - isSwipeable: !!_this.props.swipeDirection, - pan: null - }; - _this.isTransitioning = false; - _this.inSwipeClosingState = false; - _this.currentSwipingDirection = null; - _this.panResponder = null; - _this.didUpdateDimensionsEmitter = null; - _this.interactionHandle = null; - - _this.getDeviceHeight = function () { - return _this.props.deviceHeight || _this.state.deviceHeight; - }; - - _this.getDeviceWidth = function () { - return _this.props.deviceWidth || _this.state.deviceWidth; - }; - - _this.onBackButtonPress = function () { - if (_this.props.onBackButtonPress && _this.props.isVisible) { - _this.props.onBackButtonPress(); - - return true; - } - - return false; - }; - - _this.shouldPropagateSwipe = function (evt, gestureState) { - return typeof _this.props.propagateSwipe === 'function' ? _this.props.propagateSwipe(evt, gestureState) : _this.props.propagateSwipe; - }; - - _this.buildPanResponder = function () { - var animEvt = null; - _this.panResponder = _reactNative.PanResponder.create({ - onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(evt, gestureState) { - if (!_this.shouldPropagateSwipe(evt, gestureState)) { - var shouldSetPanResponder = Math.abs(gestureState.dx) >= _this.props.panResponderThreshold || Math.abs(gestureState.dy) >= _this.props.panResponderThreshold; - - if (shouldSetPanResponder && _this.props.onSwipeStart) { - _this.props.onSwipeStart(gestureState); - } - - _this.currentSwipingDirection = _this.getSwipingDirection(gestureState); - animEvt = _this.createAnimationEventForSwipe(); - return shouldSetPanResponder; - } - - return false; - }, - onStartShouldSetPanResponder: function onStartShouldSetPanResponder(e, gestureState) { - var hasScrollableView = e._dispatchInstances && e._dispatchInstances.some(function (instance) { - return /scrollview|flatlist/i.test(instance.type); - }); - - if (hasScrollableView && _this.shouldPropagateSwipe(e, gestureState) && _this.props.scrollTo && _this.props.scrollOffset > 0) { - return false; - } - - if (_this.props.onSwipeStart) { - _this.props.onSwipeStart(gestureState); - } - - _this.currentSwipingDirection = null; - return true; - }, - onPanResponderMove: function onPanResponderMove(evt, gestureState) { - if (!_this.currentSwipingDirection) { - if (gestureState.dx === 0 && gestureState.dy === 0) { - return; - } - - _this.currentSwipingDirection = _this.getSwipingDirection(gestureState); - animEvt = _this.createAnimationEventForSwipe(); - } - - if (_this.isSwipeDirectionAllowed(gestureState)) { - var newOpacityFactor = 1 - _this.calcDistancePercentage(gestureState); - - _this.backdropRef && _this.backdropRef.transitionTo({ - opacity: _this.props.backdropOpacity * newOpacityFactor - }); - animEvt(evt, gestureState); - - if (_this.props.onSwipeMove) { - _this.props.onSwipeMove(newOpacityFactor, gestureState); - } - } else { - if (_this.props.scrollTo) { - if (_this.props.scrollHorizontal) { - var offsetX = -gestureState.dx; - - if (offsetX > _this.props.scrollOffsetMax) { - offsetX -= (offsetX - _this.props.scrollOffsetMax) / 2; - } - - _this.props.scrollTo({ - x: offsetX, - animated: false - }); - } else { - var offsetY = -gestureState.dy; - - if (offsetY > _this.props.scrollOffsetMax) { - offsetY -= (offsetY - _this.props.scrollOffsetMax) / 2; - } - - _this.props.scrollTo({ - y: offsetY, - animated: false - }); - } - } - } - }, - onPanResponderRelease: function onPanResponderRelease(evt, gestureState) { - var accDistance = _this.getAccDistancePerDirection(gestureState); - - if (accDistance > _this.props.swipeThreshold && _this.isSwipeDirectionAllowed(gestureState)) { - if (_this.props.onSwipeComplete) { - _this.inSwipeClosingState = true; - - _this.props.onSwipeComplete({ - swipingDirection: _this.getSwipingDirection(gestureState) - }, gestureState); - - return; - } - - if (_this.props.onSwipe) { - _this.inSwipeClosingState = true; - - _this.props.onSwipe(); - - return; - } - } - - if (_this.props.onSwipeCancel) { - _this.props.onSwipeCancel(gestureState); - } - - if (_this.backdropRef) { - _this.backdropRef.transitionTo({ - opacity: _this.props.backdropOpacity - }); - } - - _reactNative.Animated.spring(_this.state.pan, { - toValue: { - x: 0, - y: 0 - }, - bounciness: 0, - useNativeDriver: false - }).start(); - - if (_this.props.scrollTo) { - if (_this.props.scrollOffset > _this.props.scrollOffsetMax) { - _this.props.scrollTo({ - y: _this.props.scrollOffsetMax, - animated: true - }); - } - } - } - }); - }; - - _this.getAccDistancePerDirection = function (gestureState) { - switch (_this.currentSwipingDirection) { - case 'up': - return -gestureState.dy; - - case 'down': - return gestureState.dy; - - case 'right': - return gestureState.dx; - - case 'left': - return -gestureState.dx; - - default: - return 0; - } - }; - - _this.getSwipingDirection = function (gestureState) { - if (Math.abs(gestureState.dx) > Math.abs(gestureState.dy)) { - return gestureState.dx > 0 ? 'right' : 'left'; - } - - return gestureState.dy > 0 ? 'down' : 'up'; - }; - - _this.calcDistancePercentage = function (gestureState) { - switch (_this.currentSwipingDirection) { - case 'down': - return (gestureState.moveY - gestureState.y0) / ((_this.props.deviceHeight || _this.state.deviceHeight) - gestureState.y0); - - case 'up': - return (0, _$$_REQUIRE(_dependencyMap[12]).reversePercentage)(gestureState.moveY / gestureState.y0); - - case 'left': - return (0, _$$_REQUIRE(_dependencyMap[12]).reversePercentage)(gestureState.moveX / gestureState.x0); - - case 'right': - return (gestureState.moveX - gestureState.x0) / ((_this.props.deviceWidth || _this.state.deviceWidth) - gestureState.x0); - - default: - return 0; - } - }; - - _this.createAnimationEventForSwipe = function () { - if (_this.currentSwipingDirection === 'right' || _this.currentSwipingDirection === 'left') { - return _reactNative.Animated.event([null, { - dx: _this.state.pan.x - }], { - useNativeDriver: false - }); - } else { - return _reactNative.Animated.event([null, { - dy: _this.state.pan.y - }], { - useNativeDriver: false - }); - } - }; - - _this.isDirectionIncluded = function (direction) { - return Array.isArray(_this.props.swipeDirection) ? _this.props.swipeDirection.includes(direction) : _this.props.swipeDirection === direction; - }; - - _this.isSwipeDirectionAllowed = function (_ref) { - var dy = _ref.dy, - dx = _ref.dx; - var draggedDown = dy > 0; - var draggedUp = dy < 0; - var draggedLeft = dx < 0; - var draggedRight = dx > 0; - - if (_this.currentSwipingDirection === 'up' && _this.isDirectionIncluded('up') && draggedUp) { - return true; - } else if (_this.currentSwipingDirection === 'down' && _this.isDirectionIncluded('down') && draggedDown) { - return true; - } else if (_this.currentSwipingDirection === 'right' && _this.isDirectionIncluded('right') && draggedRight) { - return true; - } else if (_this.currentSwipingDirection === 'left' && _this.isDirectionIncluded('left') && draggedLeft) { - return true; - } - - return false; - }; - - _this.handleDimensionsUpdate = function () { - if (!_this.props.deviceHeight && !_this.props.deviceWidth) { - var deviceWidth = _reactNative.Dimensions.get('window').width; - - var deviceHeight = _reactNative.Dimensions.get('window').height; - - if (deviceWidth !== _this.state.deviceWidth || deviceHeight !== _this.state.deviceHeight) { - _this.setState({ - deviceWidth: deviceWidth, - deviceHeight: deviceHeight - }); - } - } - }; - - _this.open = function () { - if (_this.isTransitioning) { - return; - } - - _this.isTransitioning = true; - - if (_this.backdropRef) { - _this.backdropRef.transitionTo({ - opacity: _this.props.backdropOpacity - }, _this.props.backdropTransitionInTiming); - } - - if (_this.state.isSwipeable) { - _this.state.pan.setValue({ - x: 0, - y: 0 - }); - } - - if (_this.contentRef) { - _this.props.onModalWillShow && _this.props.onModalWillShow(); - - if (_this.interactionHandle == null) { - _this.interactionHandle = _reactNative.InteractionManager.createInteractionHandle(); - } - - _this.contentRef.animate(_this.animationIn, _this.props.animationInTiming).then(function () { - _this.isTransitioning = false; - - if (_this.interactionHandle) { - _reactNative.InteractionManager.clearInteractionHandle(_this.interactionHandle); - - _this.interactionHandle = null; - } - - if (!_this.props.isVisible) { - _this.close(); - } else { - _this.props.onModalShow(); - } - }); - } - }; - - _this.close = function () { - if (_this.isTransitioning) { - return; - } - - _this.isTransitioning = true; - - if (_this.backdropRef) { - _this.backdropRef.transitionTo({ - opacity: 0 - }, _this.props.backdropTransitionOutTiming); - } - - var animationOut = _this.animationOut; - - if (_this.inSwipeClosingState) { - _this.inSwipeClosingState = false; - - if (_this.currentSwipingDirection === 'up') { - animationOut = 'slideOutUp'; - } else if (_this.currentSwipingDirection === 'down') { - animationOut = 'slideOutDown'; - } else if (_this.currentSwipingDirection === 'right') { - animationOut = 'slideOutRight'; - } else if (_this.currentSwipingDirection === 'left') { - animationOut = 'slideOutLeft'; - } - } - - if (_this.contentRef) { - _this.props.onModalWillHide && _this.props.onModalWillHide(); - - if (_this.interactionHandle == null) { - _this.interactionHandle = _reactNative.InteractionManager.createInteractionHandle(); - } - - _this.contentRef.animate(animationOut, _this.props.animationOutTiming).then(function () { - _this.isTransitioning = false; - - if (_this.interactionHandle) { - _reactNative.InteractionManager.clearInteractionHandle(_this.interactionHandle); - - _this.interactionHandle = null; - } - - if (_this.props.isVisible) { - _this.open(); - } else { - _this.setState({ - showContent: false - }, function () { - _this.setState({ - isVisible: false - }, function () { - _this.props.onModalHide(); - }); - }); - } - }); - } - }; - - _this.makeBackdrop = function () { - if (!_this.props.hasBackdrop) { - return null; - } - - if (_this.props.customBackdrop && !React.isValidElement(_this.props.customBackdrop)) { - console.warn('Invalid customBackdrop element passed to Modal. You must provide a valid React element.'); - } - - var _this$props = _this.props, - customBackdrop = _this$props.customBackdrop, - backdropColor = _this$props.backdropColor, - useNativeDriver = _this$props.useNativeDriver, - useNativeDriverForBackdrop = _this$props.useNativeDriverForBackdrop, - onBackdropPress = _this$props.onBackdropPress; - var hasCustomBackdrop = !!_this.props.customBackdrop; - var backdropComputedStyle = [{ - width: _this.getDeviceWidth(), - height: _this.getDeviceHeight(), - backgroundColor: _this.state.showContent && !hasCustomBackdrop ? backdropColor : 'transparent' - }]; - var backdropWrapper = React.createElement(animatable.View, { - ref: function ref(_ref2) { - return _this.backdropRef = _ref2; - }, - useNativeDriver: useNativeDriverForBackdrop !== undefined ? useNativeDriverForBackdrop : useNativeDriver, - style: [_modal.default.backdrop, backdropComputedStyle] - }, hasCustomBackdrop && customBackdrop); - - if (hasCustomBackdrop) { - return backdropWrapper; - } - - return React.createElement(_reactNative.TouchableWithoutFeedback, { - onPress: onBackdropPress - }, backdropWrapper); - }; - - var _buildAnimations = (0, _$$_REQUIRE(_dependencyMap[12]).buildAnimations)(extractAnimationFromProps(props)), - animationIn = _buildAnimations.animationIn, - animationOut = _buildAnimations.animationOut; - - _this.animationIn = animationIn; - _this.animationOut = animationOut; - - if (_this.state.isSwipeable) { - _this.state = Object.assign({}, _this.state, { - pan: new _reactNative.Animated.ValueXY() - }); - - _this.buildPanResponder(); - } - - if (props.isVisible) { - _this.state = Object.assign({}, _this.state, { - isVisible: true, - showContent: true - }); - } - - return _this; - } - - (0, _inherits2.default)(ReactNativeModal, _React$Component); - return (0, _createClass2.default)(ReactNativeModal, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.onSwipe) { - console.warn('`` is deprecated and will be removed starting from 13.0.0. Use `` instead.'); - } - - this.didUpdateDimensionsEmitter = _reactNative.DeviceEventEmitter.addListener('didUpdateDimensions', this.handleDimensionsUpdate); - - if (this.state.isVisible) { - this.open(); - } - - _reactNative.BackHandler.addEventListener('hardwareBackPress', this.onBackButtonPress); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _reactNative.BackHandler.removeEventListener('hardwareBackPress', this.onBackButtonPress); - - if (this.didUpdateDimensionsEmitter) { - this.didUpdateDimensionsEmitter.remove(); - } - - if (this.interactionHandle) { - _reactNative.InteractionManager.clearInteractionHandle(this.interactionHandle); - - this.interactionHandle = null; - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.animationIn !== prevProps.animationIn || this.props.animationOut !== prevProps.animationOut) { - var _buildAnimations2 = (0, _$$_REQUIRE(_dependencyMap[12]).buildAnimations)(extractAnimationFromProps(this.props)), - animationIn = _buildAnimations2.animationIn, - animationOut = _buildAnimations2.animationOut; - - this.animationIn = animationIn; - this.animationOut = animationOut; - } - - if (this.props.backdropOpacity !== prevProps.backdropOpacity && this.backdropRef) { - this.backdropRef.transitionTo({ - opacity: this.props.backdropOpacity - }, this.props.backdropTransitionInTiming); - } - - if (this.props.isVisible && !prevProps.isVisible) { - this.open(); - } else if (!this.props.isVisible && prevProps.isVisible) { - this.close(); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - animationIn = _this$props2.animationIn, - animationInTiming = _this$props2.animationInTiming, - animationOut = _this$props2.animationOut, - animationOutTiming = _this$props2.animationOutTiming, - avoidKeyboard = _this$props2.avoidKeyboard, - coverScreen = _this$props2.coverScreen, - hasBackdrop = _this$props2.hasBackdrop, - backdropColor = _this$props2.backdropColor, - backdropOpacity = _this$props2.backdropOpacity, - backdropTransitionInTiming = _this$props2.backdropTransitionInTiming, - backdropTransitionOutTiming = _this$props2.backdropTransitionOutTiming, - customBackdrop = _this$props2.customBackdrop, - children = _this$props2.children, - isVisible = _this$props2.isVisible, - onModalShow = _this$props2.onModalShow, - onBackButtonPress = _this$props2.onBackButtonPress, - useNativeDriver = _this$props2.useNativeDriver, - propagateSwipe = _this$props2.propagateSwipe, - style = _this$props2.style, - otherProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded); - var testID = otherProps.testID, - containerProps = (0, _objectWithoutProperties2.default)(otherProps, _excluded2); - var computedStyle = [{ - margin: this.getDeviceWidth() * 0.05, - transform: [{ - translateY: 0 - }] - }, _modal.default.content, style]; - var panHandlers = {}; - var panPosition = {}; - - if (this.state.isSwipeable) { - panHandlers = Object.assign({}, this.panResponder.panHandlers); - - if (useNativeDriver) { - panPosition = { - transform: this.state.pan.getTranslateTransform() - }; - } else { - panPosition = this.state.pan.getLayout(); - } - } - - var _children = this.props.hideModalContentWhileAnimating && this.props.useNativeDriver && !this.state.showContent ? React.createElement(animatable.View, null) : children; - - var containerView = React.createElement(animatable.View, Object.assign({}, panHandlers, { - ref: function ref(_ref3) { - return _this2.contentRef = _ref3; - }, - style: [panPosition, computedStyle], - pointerEvents: "box-none", - useNativeDriver: useNativeDriver - }, containerProps), _children); - - if (!coverScreen && this.state.isVisible) { - return React.createElement(_reactNative.View, { - pointerEvents: "box-none", - style: [_modal.default.backdrop, _modal.default.containerBox] - }, this.makeBackdrop(), containerView); - } - - return React.createElement(_reactNative.Modal, Object.assign({ - transparent: true, - animationType: 'none', - visible: this.state.isVisible, - onRequestClose: onBackButtonPress - }, otherProps), this.makeBackdrop(), avoidKeyboard ? React.createElement(_reactNative.KeyboardAvoidingView, { - behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : undefined, - pointerEvents: "box-none", - style: computedStyle.concat([{ - margin: 0 - }]) - }, containerView) : containerView); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, state) { - if (!state.isVisible && nextProps.isVisible) { - return { - isVisible: true, - showContent: true - }; - } - - return null; - } - }]); - }(React.Component); - - ReactNativeModal.propTypes = { - animationIn: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), - animationInTiming: PropTypes.number, - animationOut: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), - animationOutTiming: PropTypes.number, - avoidKeyboard: PropTypes.bool, - coverScreen: PropTypes.bool, - hasBackdrop: PropTypes.bool, - backdropColor: PropTypes.string, - backdropOpacity: PropTypes.number, - backdropTransitionInTiming: PropTypes.number, - backdropTransitionOutTiming: PropTypes.number, - customBackdrop: PropTypes.node, - children: PropTypes.node.isRequired, - deviceHeight: PropTypes.number, - deviceWidth: PropTypes.number, - isVisible: PropTypes.bool.isRequired, - hideModalContentWhileAnimating: PropTypes.bool, - propagateSwipe: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), - onModalShow: PropTypes.func, - onModalWillShow: PropTypes.func, - onModalHide: PropTypes.func, - onModalWillHide: PropTypes.func, - onBackButtonPress: PropTypes.func, - onBackdropPress: PropTypes.func, - panResponderThreshold: PropTypes.number, - onSwipeStart: PropTypes.func, - onSwipeMove: PropTypes.func, - onSwipeComplete: PropTypes.func, - onSwipeCancel: PropTypes.func, - swipeThreshold: PropTypes.number, - swipeDirection: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOf(['up', 'down', 'left', 'right'])), PropTypes.oneOf(['up', 'down', 'left', 'right'])]), - useNativeDriver: PropTypes.bool, - useNativeDriverForBackdrop: PropTypes.bool, - style: PropTypes.any, - scrollTo: PropTypes.func, - scrollOffset: PropTypes.number, - scrollOffsetMax: PropTypes.number, - scrollHorizontal: PropTypes.bool, - supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])) - }; - ReactNativeModal.defaultProps = defaultProps; - - var _default = exports.default = ReactNativeModal; -},1327,[3,4,6,7,11,13,14,16,18,582,1328,1349,1350]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.createAnimatableComponent = exports.View = exports.Text = exports.Image = undefined; - Object.defineProperty(exports, "createAnimation", { - enumerable: true, - get: function get() { - return _createAnimation.default; - } - }); - Object.defineProperty(exports, "initializeRegistryWithDefinitions", { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0]).initializeRegistryWithDefinitions; - } - }); - Object.defineProperty(exports, "registerAnimation", { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0]).registerAnimation; - } - }); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1]); - - var _createAnimatableComponent = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[3])); - - var ANIMATION_DEFINITIONS = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _createAnimation = _$$_REQUIRE(_dependencyMap[2])(_$$_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; } - - (0, _$$_REQUIRE(_dependencyMap[0]).initializeRegistryWithDefinitions)(ANIMATION_DEFINITIONS); - var createAnimatableComponent = exports.createAnimatableComponent = _createAnimatableComponent.default; - var View = exports.View = (0, _createAnimatableComponent.default)(_reactNative.View); - var Text = exports.Text = (0, _createAnimatableComponent.default)(_reactNative.Text); - var Image = exports.Image = (0, _createAnimatableComponent.default)(_reactNative.Image); -},1328,[1329,18,3,1332,1337,1330]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getAnimationByName = getAnimationByName; - exports.getAnimationNames = getAnimationNames; - exports.initializeRegistryWithDefinitions = initializeRegistryWithDefinitions; - exports.registerAnimation = registerAnimation; - - var _createAnimation = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var animationRegistry = {}; - - function registerAnimation(animationName, animation) { - animationRegistry[animationName] = animation; - } - - function getAnimationByName(animationName) { - return animationRegistry[animationName]; - } - - function getAnimationNames() { - return Object.keys(animationRegistry); - } - - function initializeRegistryWithDefinitions(definitions) { - Object.keys(definitions).forEach(function (animationName) { - registerAnimation(animationName, (0, _createAnimation.default)(definitions[animationName])); - }); - } -},1329,[3,1330]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createAnimation; - - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function compareNumbers(a, b) { - return a - b; - } - - function notNull(value) { - return value !== null; - } - - function parsePosition(value) { - if (value === 'from') { - return 0; - } - - if (value === 'to') { - return 1; - } - - var parsed = parseFloat(value, 10); - - if (Number.isNaN(parsed) || parsed < 0 || parsed > 1) { - return null; - } - - return parsed; - } - - var cache = {}; - - function createAnimation(definition) { - var cacheKey = JSON.stringify(definition); - - if (cache[cacheKey]) { - return cache[cacheKey]; - } - - var positions = Object.keys(definition).map(parsePosition).filter(notNull); - positions.sort(compareNumbers); - - if (positions.length < 2) { - throw new Error('Animation definitions must have at least two values.'); - } - - var compiled = {}; - - if (definition.easing) { - compiled.easing = definition.easing; - } - - if (definition.style) { - compiled.style = definition.style; - } - - var _loop = function _loop() { - var position = positions[i]; - var keyframe = definition[position]; - - if (!keyframe) { - if (position === 0) { - keyframe = definition.from; - } else if (position === 1) { - keyframe = definition.to; - } - } - - if (!keyframe) { - throw new Error('Missing animation keyframe, this should not happen'); - } - - keyframe = (0, _flattenStyle.default)(keyframe); - Object.keys(keyframe).forEach(function (key) { - if (!(key in compiled)) { - compiled[key] = { - inputRange: [], - outputRange: [] - }; - } - - compiled[key].inputRange.push(position); - compiled[key].outputRange.push(keyframe[key]); - }); - }; - - for (var i = 0; i < positions.length; i += 1) { - _loop(); - } - - cache[cacheKey] = compiled; - return compiled; - } -},1330,[3,1331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = flattenStyle; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - function flattenStyle(style) { - var flatStyle = Object.assign({}, _reactNative.StyleSheet.flatten(style)); - - if (flatStyle.transform) { - flatStyle.transform.forEach(function (transform) { - var key = Object.keys(transform)[0]; - flatStyle[key] = transform[key]; - }); - delete flatStyle.transform; - } - - return flatStyle; - } -},1331,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createAnimatableComponent; - - 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 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _wrapStyleTransforms = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _getStyleValues = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _createAnimation = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _easing = _$$_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); } - - 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 INTERPOLATION_STYLE_PROPERTIES = ['rotate', 'rotateX', 'rotateY', 'rotateZ', 'skewX', 'skewY', 'transformMatrix', 'backgroundColor', 'borderColor', 'borderTopColor', 'borderRightColor', 'borderBottomColor', 'borderLeftColor', 'shadowColor', 'color', 'textDecorationColor', 'tintColor']; - var ZERO_CLAMPED_STYLE_PROPERTIES = ['width', 'height']; - - function omit(keys, source) { - var filtered = {}; - Object.keys(source).forEach(function (key) { - if (keys.indexOf(key) === -1) { - filtered[key] = source[key]; - } - }); - return filtered; - } - - function deepEquals(a, b) { - return a === b || JSON.stringify(a) === JSON.stringify(b); - } - - function getAnimationTarget(iteration, direction) { - switch (direction) { - case 'reverse': - return 0; - - case 'alternate': - return iteration % 2 ? 0 : 1; - - case 'alternate-reverse': - return iteration % 2 ? 1 : 0; - - case 'normal': - default: - return 1; - } - } - - function getAnimationOrigin(iteration, direction) { - return getAnimationTarget(iteration, direction) ? 0 : 1; - } - - function getCompiledAnimation(animation) { - if (typeof animation === 'string') { - var compiledAnimation = (0, _$$_REQUIRE(_dependencyMap[14]).getAnimationByName)(animation); - - if (!compiledAnimation) { - throw new Error("No animation registred by the name of " + animation); - } - - return compiledAnimation; - } - - return (0, _createAnimation.default)(animation); - } - - function makeInterpolatedStyle(compiledAnimation, animationValue) { - var style = {}; - Object.keys(compiledAnimation).forEach(function (key) { - if (key === 'style') { - Object.assign(style, compiledAnimation.style); - } else if (key !== 'easing') { - style[key] = animationValue.interpolate(compiledAnimation[key]); - } - }); - return (0, _wrapStyleTransforms.default)(style); - } - - function transitionToValue(property, transitionValue, toValue, duration, easing) { - var useNativeDriver = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false; - var delay = arguments.length > 6 ? arguments[6] : undefined; - var onTransitionBegin = arguments.length > 7 ? arguments[7] : undefined; - var onTransitionEnd = arguments.length > 8 ? arguments[8] : undefined; - var animation = duration || easing || delay ? _reactNative.Animated.timing(transitionValue, { - toValue: toValue, - delay: delay, - duration: duration || 1000, - easing: typeof easing === 'function' ? easing : _easing.default[easing || 'ease'], - useNativeDriver: useNativeDriver - }) : _reactNative.Animated.spring(transitionValue, { - toValue: toValue, - useNativeDriver: useNativeDriver - }); - setTimeout(function () { - return onTransitionBegin(property); - }, delay); - animation.start(function () { - return onTransitionEnd(property); - }); - } - - function createAnimatableComponent(WrappedComponent) { - var _AnimatableComponent; - - var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; - - var Animatable = _reactNative.Animated.createAnimatedComponent(WrappedComponent); - - return _AnimatableComponent = function (_Component) { - function AnimatableComponent(props) { - var _this; - - (0, _classCallCheck2.default)(this, AnimatableComponent); - _this = _callSuper(this, AnimatableComponent, [props]); - _this.ref = null; - - _this.handleRef = function (ref) { - _this.ref = ref; - }; - - var animationValue = new _reactNative.Animated.Value(getAnimationOrigin(0, _this.props.direction)); - var animationStyle = {}; - var compiledAnimation = {}; - - if (props.animation) { - compiledAnimation = getCompiledAnimation(props.animation); - animationStyle = makeInterpolatedStyle(compiledAnimation, animationValue); - } - - _this.state = { - animationValue: animationValue, - animationStyle: animationStyle, - compiledAnimation: compiledAnimation, - transitionStyle: {}, - transitionValues: {}, - currentTransitionValues: {} - }; - - if (props.transition) { - _this.state = Object.assign({}, _this.state, _this.initializeTransitionState(props.transition)); - } - - _this.delayTimer = null; - (0, _$$_REQUIRE(_dependencyMap[14]).getAnimationNames)().forEach(function (animationName) { - if (!(animationName in _this)) { - _this[animationName] = _this.animate.bind(_this, animationName); - } - }); - return _this; - } - - (0, _inherits2.default)(AnimatableComponent, _Component); - return (0, _createClass2.default)(AnimatableComponent, [{ - key: "initializeTransitionState", - value: function initializeTransitionState(transitionKeys) { - var transitionValues = {}; - var styleValues = {}; - var currentTransitionValues = (0, _getStyleValues.default)(transitionKeys, this.props.style); - Object.keys(currentTransitionValues).forEach(function (key) { - var value = currentTransitionValues[key]; - - if (INTERPOLATION_STYLE_PROPERTIES.indexOf(key) !== -1 || typeof value !== 'number') { - transitionValues[key] = new _reactNative.Animated.Value(0); - styleValues[key] = value; - } else { - var animationValue = new _reactNative.Animated.Value(value); - transitionValues[key] = animationValue; - styleValues[key] = animationValue; - } - }); - return { - currentTransitionValues: currentTransitionValues, - transitionStyle: styleValues, - transitionValues: transitionValues - }; - } - }, { - key: "getTransitionState", - value: function getTransitionState(keys) { - var _this2 = this; - - var transitionKeys = typeof keys === 'string' ? [keys] : keys; - var _this$state = this.state, - transitionValues = _this$state.transitionValues, - currentTransitionValues = _this$state.currentTransitionValues, - transitionStyle = _this$state.transitionStyle; - var missingKeys = transitionKeys.filter(function (key) { - return !_this2.state.transitionValues[key]; - }); - - if (missingKeys.length) { - var transitionState = this.initializeTransitionState(missingKeys); - transitionValues = Object.assign({}, transitionValues, transitionState.transitionValues); - currentTransitionValues = Object.assign({}, currentTransitionValues, transitionState.currentTransitionValues); - transitionStyle = Object.assign({}, transitionStyle, transitionState.transitionStyle); - } - - return { - transitionValues: transitionValues, - currentTransitionValues: currentTransitionValues, - transitionStyle: transitionStyle - }; - } - }, { - key: "setNativeProps", - value: function setNativeProps(nativeProps) { - if (this.ref) { - this.ref.setNativeProps(nativeProps); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this3 = this; - - var _this$props = this.props, - animation = _this$props.animation, - duration = _this$props.duration, - delay = _this$props.delay, - onAnimationBegin = _this$props.onAnimationBegin, - iterationDelay = _this$props.iterationDelay; - - if (animation) { - var startAnimation = function startAnimation() { - onAnimationBegin(); - - _this3.startAnimation(duration, 0, iterationDelay, function (endState) { - return _this3.props.onAnimationEnd(endState); - }); - - _this3.delayTimer = null; - }; - - if (delay) { - this.delayTimer = setTimeout(startAnimation, delay); - } else { - startAnimation(); - } - } - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(props) { - var _this4 = this; - - var animation = props.animation, - delay = props.delay, - duration = props.duration, - easing = props.easing, - iterationDelay = props.iterationDelay, - transition = props.transition, - onAnimationBegin = props.onAnimationBegin; - - if (transition) { - var values = (0, _getStyleValues.default)(transition, props.style); - this.transitionTo(values, duration, easing, delay); - } else if (!deepEquals(animation, this.props.animation)) { - if (animation) { - if (this.delayTimer) { - this.setAnimation(animation); - } else { - onAnimationBegin(); - this.animate(animation, duration, iterationDelay).then(function (endState) { - return _this4.props.onAnimationEnd(endState); - }); - } - } else { - this.stopAnimation(); - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.delayTimer) { - clearTimeout(this.delayTimer); - } - } - }, { - key: "setAnimation", - value: function setAnimation(animation, callback) { - var compiledAnimation = getCompiledAnimation(animation); - this.setState(function (state) { - return { - animationStyle: makeInterpolatedStyle(compiledAnimation, state.animationValue), - compiledAnimation: compiledAnimation - }; - }, callback); - } - }, { - key: "animate", - value: function animate(animation, duration, iterationDelay) { - var _this5 = this; - - return new Promise(function (resolve) { - _this5.setAnimation(animation, function () { - _this5.startAnimation(duration, 0, iterationDelay, resolve); - }); - }); - } - }, { - key: "stopAnimation", - value: function stopAnimation() { - this.setState({ - scheduledAnimation: false, - animationStyle: {} - }); - this.state.animationValue.stopAnimation(); - - if (this.delayTimer) { - clearTimeout(this.delayTimer); - this.delayTimer = null; - } - } - }, { - key: "startAnimation", - value: function startAnimation(duration, iteration, iterationDelay, callback) { - var _this6 = this; - - var _this$state2 = this.state, - animationValue = _this$state2.animationValue, - compiledAnimation = _this$state2.compiledAnimation; - var _this$props2 = this.props, - direction = _this$props2.direction, - iterationCount = _this$props2.iterationCount, - useNativeDriver = _this$props2.useNativeDriver; - var easing = this.props.easing || compiledAnimation.easing || 'ease'; - var currentIteration = iteration || 0; - var fromValue = getAnimationOrigin(currentIteration, direction); - var toValue = getAnimationTarget(currentIteration, direction); - animationValue.setValue(fromValue); - - if (typeof easing === 'string') { - easing = _easing.default[easing]; - } - - var reversed = direction === 'reverse' || direction === 'alternate' && !toValue || direction === 'alternate-reverse' && !toValue; - - if (reversed) { - easing = _reactNative.Easing.out(easing); - } - - var config = { - toValue: toValue, - easing: easing, - isInteraction: iterationCount <= 1, - duration: duration || this.props.duration || 1000, - useNativeDriver: useNativeDriver, - delay: iterationDelay || 0 - }; - - _reactNative.Animated.timing(animationValue, config).start(function (endState) { - currentIteration += 1; - - if (endState.finished && _this6.props.animation && (iterationCount === 'infinite' || currentIteration < iterationCount)) { - _this6.startAnimation(duration, currentIteration, iterationDelay, callback); - } else if (callback) { - callback(endState); - } - }); - } - }, { - key: "transition", - value: function transition(fromValues, toValues, duration, easing) { - var _this7 = this; - - var fromValuesFlat = (0, _flattenStyle.default)(fromValues); - var toValuesFlat = (0, _flattenStyle.default)(toValues); - var transitionKeys = Object.keys(toValuesFlat); - - var _this$getTransitionSt = this.getTransitionState(transitionKeys), - transitionValues = _this$getTransitionSt.transitionValues, - currentTransitionValues = _this$getTransitionSt.currentTransitionValues, - transitionStyle = _this$getTransitionSt.transitionStyle; - - transitionKeys.forEach(function (property) { - var fromValue = fromValuesFlat[property]; - var toValue = toValuesFlat[property]; - var transitionValue = transitionValues[property]; - - if (!transitionValue) { - transitionValue = new _reactNative.Animated.Value(0); - } - - var needsInterpolation = INTERPOLATION_STYLE_PROPERTIES.indexOf(property) !== -1 || typeof value !== 'number'; - var needsZeroClamping = ZERO_CLAMPED_STYLE_PROPERTIES.indexOf(property) !== -1; - - if (needsInterpolation) { - transitionValue.setValue(0); - transitionStyle[property] = transitionValue.interpolate({ - inputRange: [0, 1], - outputRange: [fromValue, toValue] - }); - currentTransitionValues[property] = toValue; - toValuesFlat[property] = 1; - } else { - if (needsZeroClamping) { - transitionStyle[property] = transitionValue.interpolate({ - inputRange: [0, 1], - outputRange: [0, 1], - extrapolateLeft: 'clamp' - }); - currentTransitionValues[property] = toValue; - } else { - transitionStyle[property] = transitionValue; - } - - transitionValue.setValue(fromValue); - } - }); - this.setState({ - transitionValues: transitionValues, - transitionStyle: transitionStyle, - currentTransitionValues: currentTransitionValues - }, function () { - _this7.transitionToValues(toValuesFlat, duration || _this7.props.duration, easing, _this7.props.delay); - }); - } - }, { - key: "transitionTo", - value: function transitionTo(toValues, duration, easing, delay) { - var _this8 = this; - - var currentTransitionValues = this.state.currentTransitionValues; - var toValuesFlat = (0, _flattenStyle.default)(toValues); - var transitions = { - from: {}, - to: {} - }; - Object.keys(toValuesFlat).forEach(function (property) { - var toValue = toValuesFlat[property]; - var needsInterpolation = INTERPOLATION_STYLE_PROPERTIES.indexOf(property) !== -1 || typeof value !== 'number'; - var needsZeroClamping = ZERO_CLAMPED_STYLE_PROPERTIES.indexOf(property) !== -1; - var transitionStyle = _this8.state.transitionStyle[property]; - var transitionValue = _this8.state.transitionValues[property]; - - if (!needsInterpolation && !needsZeroClamping && transitionStyle && transitionStyle === transitionValue) { - transitionToValue(property, transitionValue, toValue, duration, easing, _this8.props.useNativeDriver, delay, function (prop) { - return _this8.props.onTransitionBegin(prop); - }, function (prop) { - return _this8.props.onTransitionEnd(prop); - }); - } else { - var currentTransitionValue = currentTransitionValues[property]; - - if (typeof currentTransitionValue === 'undefined' && _this8.props.style) { - var style = (0, _getStyleValues.default)(property, _this8.props.style); - currentTransitionValue = style[property]; - } - - transitions.from[property] = currentTransitionValue; - transitions.to[property] = toValue; - } - }); - - if (Object.keys(transitions.from).length) { - this.transition(transitions.from, transitions.to, duration, easing); - } - } - }, { - key: "transitionToValues", - value: function transitionToValues(toValues, duration, easing, delay) { - var _this9 = this; - - Object.keys(toValues).forEach(function (property) { - var transitionValue = _this9.state.transitionValues[property]; - var toValue = toValues[property]; - transitionToValue(property, transitionValue, toValue, duration, easing, _this9.props.useNativeDriver, delay, function (prop) { - return _this9.props.onTransitionBegin(prop); - }, function (prop) { - return _this9.props.onTransitionEnd(prop); - }); - }); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - style = _this$props3.style, - animation = _this$props3.animation, - transition = _this$props3.transition; - - if (animation && transition) { - throw new Error('You cannot combine animation and transition props'); - } - - var restProps = omit(['animation', 'duration', 'direction', 'delay', 'easing', 'iterationCount', 'iterationDelay', 'onAnimationBegin', 'onAnimationEnd', 'onTransitionBegin', 'onTransitionEnd', 'style', 'transition', 'useNativeDriver'], this.props); - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(Animatable, Object.assign({ - ref: this.handleRef, - style: [style, this.state.animationStyle, (0, _wrapStyleTransforms.default)(this.state.transitionStyle)] - }, restProps)); - } - }]); - }(_react.Component), _AnimatableComponent.displayName = "withAnimatable(" + wrappedComponentName + ")", _AnimatableComponent.propTypes = { - animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]), - duration: _propTypes.default.number, - direction: _propTypes.default.oneOf(['normal', 'reverse', 'alternate', 'alternate-reverse']), - delay: _propTypes.default.number, - easing: _propTypes.default.oneOfType([_propTypes.default.oneOf(Object.keys(_easing.default)), _propTypes.default.func]), - iterationCount: function iterationCount(props, propName) { - var val = props[propName]; - - if (val !== 'infinite' && !(typeof val === 'number' && val >= 1)) { - return new Error('iterationCount must be a positive number or "infinite"'); - } - - return null; - }, - iterationDelay: _propTypes.default.number, - onAnimationBegin: _propTypes.default.func, - onAnimationEnd: _propTypes.default.func, - onTransitionBegin: _propTypes.default.func, - onTransitionEnd: _propTypes.default.func, - style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.object]), - transition: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]), - useNativeDriver: _propTypes.default.bool - }, _AnimatableComponent.defaultProps = { - animation: undefined, - delay: 0, - direction: 'normal', - duration: undefined, - easing: undefined, - iterationCount: 1, - iterationDelay: 0, - onAnimationBegin: function onAnimationBegin() {}, - onAnimationEnd: function onAnimationEnd() {}, - onTransitionBegin: function onTransitionBegin() {}, - onTransitionEnd: function onTransitionEnd() {}, - style: undefined, - transition: undefined, - useNativeDriver: false - }, _AnimatableComponent; - } -},1332,[3,6,7,11,13,14,16,582,18,1333,1334,1331,1330,1336,1329,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = wrapStyleTransforms; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var TRANSFORM_STYLE_PROPERTIES = ['perspective', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'skewX', 'skewY', 'translateX', 'translateY']; - - function wrapStyleTransforms(style) { - var wrapped = {}; - Object.keys(style).forEach(function (key) { - if (TRANSFORM_STYLE_PROPERTIES.indexOf(key) !== -1) { - if (!wrapped.transform) { - wrapped.transform = []; - } - - wrapped.transform.push((0, _defineProperty2.default)({}, key, style[key])); - } else { - wrapped[key] = style[key]; - } - }); - return wrapped; - } -},1333,[3,240]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getStyleValues; - - var _flattenStyle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _getDefaultStyleValue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - function getStyleValues(keys, style) { - var values = {}; - var flatStyle = (0, _flattenStyle.default)(style); - (typeof keys === 'string' ? [keys] : keys).forEach(function (key) { - values[key] = key in flatStyle ? flatStyle[key] : (0, _getDefaultStyleValue.default)(key, flatStyle); - }); - return values; - } -},1334,[3,1331,1335]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getDefaultStyleValue; - var DIRECTIONAL_FALLBACKS = { - Top: ['Vertical', ''], - Bottom: ['Vertical', ''], - Vertical: [''], - Left: ['Horizontal', ''], - Right: ['Horizontal', ''], - Horizontal: [''] - }; - var DIRECTIONAL_SUFFICES = Object.keys(DIRECTIONAL_FALLBACKS); - - function getDefaultStyleValue(key, flatStyle) { - if (key === 'backgroundColor') { - return 'rgba(0,0,0,0)'; - } - - if (key === 'color' || key.indexOf('Color') !== -1) { - return 'rgba(0,0,0,1)'; - } - - if (key.indexOf('rotate') === 0 || key.indexOf('skew') === 0) { - return '0deg'; - } - - if (key === 'opacity' || key.indexOf('scale') === 0) { - return 1; - } - - if (key === 'fontSize') { - return 14; - } - - if (key.indexOf('margin') === 0 || key.indexOf('padding') === 0) { - for (var suffix, i = 0; i < DIRECTIONAL_SUFFICES.length; i++) { - suffix = DIRECTIONAL_SUFFICES[i]; - - if (key.substr(-suffix.length) === suffix) { - var prefix = key.substr(0, key.length - suffix.length); - var fallbacks = DIRECTIONAL_FALLBACKS[suffix]; - - for (var fallback, j = 0; j < fallbacks.length; j++) { - fallback = prefix + fallbacks[j]; - - if (fallback in flatStyle) { - return flatStyle[fallback]; - } - } - - break; - } - } - } - - return 0; - } -},1335,[]); -__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 EASING_FUNCTIONS = { - linear: _reactNative.Easing.linear, - ease: _reactNative.Easing.bezier(0.25, 0.1, 0.25, 1), - 'ease-in': _reactNative.Easing.bezier(0.42, 0, 1, 1), - 'ease-out': _reactNative.Easing.bezier(0, 0, 0.58, 1), - 'ease-in-out': _reactNative.Easing.bezier(0.42, 0, 0.58, 1), - 'ease-in-cubic': _reactNative.Easing.bezier(0.55, 0.055, 0.675, 0.19), - 'ease-out-cubic': _reactNative.Easing.bezier(0.215, 0.61, 0.355, 1.0), - 'ease-in-out-cubic': _reactNative.Easing.bezier(0.645, 0.045, 0.355, 1.0), - 'ease-in-circ': _reactNative.Easing.bezier(0.6, 0.04, 0.98, 0.335), - 'ease-out-circ': _reactNative.Easing.bezier(0.075, 0.82, 0.165, 1.0), - 'ease-in-out-circ': _reactNative.Easing.bezier(0.785, 0.135, 0.15, 0.86), - 'ease-in-expo': _reactNative.Easing.bezier(0.95, 0.05, 0.795, 0.035), - 'ease-out-expo': _reactNative.Easing.bezier(0.19, 1.0, 0.22, 1.0), - 'ease-in-out-expo': _reactNative.Easing.bezier(1.0, 0.0, 0.0, 1.0), - 'ease-in-quad': _reactNative.Easing.bezier(0.55, 0.085, 0.68, 0.53), - 'ease-out-quad': _reactNative.Easing.bezier(0.25, 0.46, 0.45, 0.94), - 'ease-in-out-quad': _reactNative.Easing.bezier(0.455, 0.03, 0.515, 0.955), - 'ease-in-quart': _reactNative.Easing.bezier(0.895, 0.03, 0.685, 0.22), - 'ease-out-quart': _reactNative.Easing.bezier(0.165, 0.84, 0.44, 1.0), - 'ease-in-out-quart': _reactNative.Easing.bezier(0.77, 0.0, 0.175, 1.0), - 'ease-in-quint': _reactNative.Easing.bezier(0.755, 0.05, 0.855, 0.06), - 'ease-out-quint': _reactNative.Easing.bezier(0.23, 1.0, 0.32, 1.0), - 'ease-in-out-quint': _reactNative.Easing.bezier(0.86, 0.0, 0.07, 1.0), - 'ease-in-sine': _reactNative.Easing.bezier(0.47, 0.0, 0.745, 0.715), - 'ease-out-sine': _reactNative.Easing.bezier(0.39, 0.575, 0.565, 1.0), - 'ease-in-out-sine': _reactNative.Easing.bezier(0.445, 0.05, 0.55, 0.95), - 'ease-in-back': _reactNative.Easing.bezier(0.6, -0.28, 0.735, 0.045), - 'ease-out-back': _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1.275), - 'ease-in-out-back': _reactNative.Easing.bezier(0.68, -0.55, 0.265, 1.55) - }; - - var _default = exports.default = EASING_FUNCTIONS; -},1336,[18]); -__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]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[1])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[1])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[1])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[2])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[2])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[2])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[3])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[3])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[3])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[4])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[4])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[4])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[5])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[5])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[5])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[6])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[6])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[6])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[7])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[7])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[7])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[8])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[8])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[8])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[9])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[9])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[9])[key]; - } - }); - }); - Object.keys(_$$_REQUIRE(_dependencyMap[10])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[10])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[10])[key]; - } - }); - }); -},1337,[1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.wobble = exports.tada = exports.swing = exports.shake = exports.rubberBand = exports.rotate = exports.pulse = exports.jello = exports.flash = exports.bounce = undefined; - var bounce = exports.bounce = { - 0: { - translateY: 0 - }, - 0.2: { - translateY: 0 - }, - 0.4: { - translateY: -30 - }, - 0.43: { - translateY: -30 - }, - 0.53: { - translateY: 0 - }, - 0.7: { - translateY: -15 - }, - 0.8: { - translateY: 0 - }, - 0.9: { - translateY: -4 - }, - 1: { - translateY: 0 - } - }; - var flash = exports.flash = { - 0: { - opacity: 1 - }, - 0.25: { - opacity: 0 - }, - 0.5: { - opacity: 1 - }, - 0.75: { - opacity: 0 - }, - 1: { - opacity: 1 - } - }; - var jello = exports.jello = { - 0: { - skewX: '0deg', - skewY: '0deg' - }, - 0.111: { - skewX: '0deg', - skewY: '0deg' - }, - 0.222: { - skewX: '-12.5deg', - skewY: '-12.5deg' - }, - 0.333: { - skewX: '6.25deg', - skewY: '6.25deg' - }, - 0.444: { - skewX: '-3.125deg', - skewY: '-3.125deg' - }, - 0.555: { - skewX: '1.5625deg', - skewY: '1.5625deg' - }, - 0.666: { - skewX: '-0.78125deg', - skewY: '-0.78125deg' - }, - 0.777: { - skewX: '0.390625deg', - skewY: '0.390625deg' - }, - 0.888: { - skewX: '-0.1953125deg', - skewY: '-0.1953125deg' - }, - 1: { - skewX: '0deg', - skewY: '0deg' - } - }; - var pulse = exports.pulse = { - 0: { - scale: 1 - }, - 0.5: { - scale: 1.05 - }, - 1: { - scale: 1 - } - }; - var rotate = exports.rotate = { - 0: { - rotate: '0deg' - }, - 0.25: { - rotate: '90deg' - }, - 0.5: { - rotate: '180deg' - }, - 0.75: { - rotate: '270deg' - }, - 1: { - rotate: '360deg' - } - }; - var shake = exports.shake = { - 0: { - translateX: 0 - }, - 0.1: { - translateX: -10 - }, - 0.2: { - translateX: 10 - }, - 0.3: { - translateX: -10 - }, - 0.4: { - translateX: 10 - }, - 0.5: { - translateX: -10 - }, - 0.6: { - translateX: 10 - }, - 0.7: { - translateX: -10 - }, - 0.8: { - translateX: 10 - }, - 0.9: { - translateX: -10 - }, - 1: { - translateX: 0 - } - }; - var swing = exports.swing = { - 0: { - rotate: '0deg' - }, - 0.2: { - rotate: '15deg' - }, - 0.4: { - rotate: '-10deg' - }, - 0.6: { - rotate: '5deg' - }, - 0.8: { - rotate: '-5deg' - }, - 1: { - rotate: '0deg' - } - }; - var rubberBand = exports.rubberBand = { - 0: { - scaleX: 1, - scaleY: 1 - }, - 0.3: { - scaleX: 1.25, - scaleY: 0.75 - }, - 0.4: { - scaleX: 0.75, - scaleY: 1.25 - }, - 0.5: { - scaleX: 1.15, - scaleY: 0.85 - }, - 0.65: { - scaleX: 0.95, - scaleY: 1.05 - }, - 0.75: { - scaleX: 1.05, - scaleY: 0.95 - }, - 1: { - scaleX: 1, - scaleY: 1 - } - }; - var tada = exports.tada = { - 0: { - scale: 1, - rotate: '0deg' - }, - 0.1: { - scale: 0.9, - rotate: '-3deg' - }, - 0.2: { - scale: 0.9, - rotate: '-3deg' - }, - 0.3: { - scale: 1.1, - rotate: '-3deg' - }, - 0.4: { - rotate: '3deg' - }, - 0.5: { - rotate: '-3deg' - }, - 0.6: { - rotate: '3deg' - }, - 0.7: { - rotate: '-3deg' - }, - 0.8: { - rotate: '3deg' - }, - 0.9: { - scale: 1.1, - rotate: '3deg' - }, - 1: { - scale: 1, - rotate: '0deg' - } - }; - var wobble = exports.wobble = { - 0: { - translateX: 0, - rotate: '0deg' - }, - 0.15: { - translateX: -25, - rotate: '-5deg' - }, - 0.3: { - translateX: 20, - rotate: '3deg' - }, - 0.45: { - translateX: -15, - rotate: '-3deg' - }, - 0.6: { - translateX: 10, - rotate: '2deg' - }, - 0.75: { - translateX: -5, - rotate: '-1deg' - }, - 1: { - translateX: 0, - rotate: '0deg' - } - }; -},1338,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.bounceInUp = exports.bounceInRight = exports.bounceInLeft = exports.bounceInDown = exports.bounceIn = undefined; - var bounceIn = exports.bounceIn = { - 0: { - opacity: 0, - scale: 0.3 - }, - 0.2: { - scale: 1.1 - }, - 0.4: { - scale: 0.9 - }, - 0.6: { - opacity: 1, - scale: 1.03 - }, - 0.8: { - scale: 0.97 - }, - 1: { - opacity: 1, - scale: 1 - } - }; - var bounceInUp = exports.bounceInUp = { - 0: { - opacity: 0, - translateY: 800 - }, - 0.6: { - opacity: 1, - translateY: -25 - }, - 0.75: { - translateY: 10 - }, - 0.9: { - translateY: -5 - }, - 1: { - translateY: 0 - } - }; - var bounceInDown = exports.bounceInDown = { - 0: { - opacity: 0, - translateY: -800 - }, - 0.6: { - opacity: 1, - translateY: 25 - }, - 0.75: { - translateY: -10 - }, - 0.9: { - translateY: 5 - }, - 1: { - translateY: 0 - } - }; - var bounceInRight = exports.bounceInRight = { - 0: { - opacity: 0, - translateX: 600 - }, - 0.6: { - opacity: 1, - translateX: -20 - }, - 0.75: { - translateX: 8 - }, - 0.9: { - translateX: -4 - }, - 1: { - translateX: 0 - } - }; - var bounceInLeft = exports.bounceInLeft = { - 0: { - opacity: 0, - translateX: -600 - }, - 0.6: { - opacity: 1, - translateX: 20 - }, - 0.75: { - translateX: -8 - }, - 0.9: { - translateX: 4 - }, - 1: { - translateX: 0 - } - }; -},1339,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.bounceOutUp = exports.bounceOutRight = exports.bounceOutLeft = exports.bounceOutDown = exports.bounceOut = undefined; - var bounceOut = exports.bounceOut = { - 0: { - opacity: 1, - scale: 1 - }, - 0.2: { - scale: 0.9 - }, - 0.5: { - opacity: 1, - scale: 1.11 - }, - 0.55: { - scale: 1.11 - }, - 1: { - opacity: 0, - scale: 0.3 - } - }; - var bounceOutUp = exports.bounceOutUp = { - 0: { - opacity: 1, - translateY: 0 - }, - 0.2: { - opacity: 1, - translateY: -10 - }, - 0.4: { - translateY: 20 - }, - 0.45: { - translateY: 20 - }, - 0.55: { - opacity: 1 - }, - 1: { - opacity: 0, - translateY: -800 - } - }; - var bounceOutDown = exports.bounceOutDown = { - 0: { - opacity: 1, - translateY: 0 - }, - 0.2: { - opacity: 1, - translateY: 10 - }, - 0.4: { - translateY: -20 - }, - 0.45: { - translateY: -20 - }, - 0.55: { - opacity: 1 - }, - 1: { - opacity: 0, - translateY: 800 - } - }; - var bounceOutRight = exports.bounceOutRight = { - 0: { - opacity: 1, - translateX: 0 - }, - 0.2: { - opacity: 1, - translateX: 10 - }, - 0.4: { - translateX: -20 - }, - 0.45: { - translateX: -20 - }, - 0.55: { - opacity: 1 - }, - 1: { - opacity: 0, - translateX: 600 - } - }; - var bounceOutLeft = exports.bounceOutLeft = { - 0: { - opacity: 1, - translateX: 0 - }, - 0.2: { - opacity: 1, - translateX: -10 - }, - 0.4: { - translateX: 20 - }, - 0.45: { - translateX: 20 - }, - 0.55: { - opacity: 1 - }, - 1: { - opacity: 0, - translateX: -600 - } - }; -},1340,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.fadeInUpBig = exports.fadeInUp = exports.fadeInRightBig = exports.fadeInRight = exports.fadeInLeftBig = exports.fadeInLeft = exports.fadeInDownBig = exports.fadeInDown = exports.fadeIn = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function makeFadeInTranslation(translationType, fromValue) { - return { - from: (0, _defineProperty2.default)({ - opacity: 0 - }, translationType, fromValue), - to: (0, _defineProperty2.default)({ - opacity: 1 - }, translationType, 0) - }; - } - - var fadeIn = exports.fadeIn = { - from: { - opacity: 0 - }, - to: { - opacity: 1 - } - }; - var fadeInDown = exports.fadeInDown = makeFadeInTranslation('translateY', -100); - var fadeInUp = exports.fadeInUp = makeFadeInTranslation('translateY', 100); - var fadeInLeft = exports.fadeInLeft = makeFadeInTranslation('translateX', -100); - var fadeInRight = exports.fadeInRight = makeFadeInTranslation('translateX', 100); - var fadeInDownBig = exports.fadeInDownBig = makeFadeInTranslation('translateY', -500); - var fadeInUpBig = exports.fadeInUpBig = makeFadeInTranslation('translateY', 500); - var fadeInLeftBig = exports.fadeInLeftBig = makeFadeInTranslation('translateX', -500); - var fadeInRightBig = exports.fadeInRightBig = makeFadeInTranslation('translateX', 500); -},1341,[3,240]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.fadeOutUpBig = exports.fadeOutUp = exports.fadeOutRightBig = exports.fadeOutRight = exports.fadeOutLeftBig = exports.fadeOutLeft = exports.fadeOutDownBig = exports.fadeOutDown = exports.fadeOut = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function makeFadeOutTranslation(translationType, toValue) { - return { - from: (0, _defineProperty2.default)({ - opacity: 1 - }, translationType, 0), - to: (0, _defineProperty2.default)({ - opacity: 0 - }, translationType, toValue) - }; - } - - var fadeOut = exports.fadeOut = { - from: { - opacity: 1 - }, - to: { - opacity: 0 - } - }; - var fadeOutDown = exports.fadeOutDown = makeFadeOutTranslation('translateY', 100); - var fadeOutUp = exports.fadeOutUp = makeFadeOutTranslation('translateY', -100); - var fadeOutLeft = exports.fadeOutLeft = makeFadeOutTranslation('translateX', -100); - var fadeOutRight = exports.fadeOutRight = makeFadeOutTranslation('translateX', 100); - var fadeOutDownBig = exports.fadeOutDownBig = makeFadeOutTranslation('translateY', 500); - var fadeOutUpBig = exports.fadeOutUpBig = makeFadeOutTranslation('translateY', -500); - var fadeOutLeftBig = exports.fadeOutLeftBig = makeFadeOutTranslation('translateX', -500); - var fadeOutRightBig = exports.fadeOutRightBig = makeFadeOutTranslation('translateX', 500); -},1342,[3,240]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.flipOutY = exports.flipOutX = exports.flipInY = exports.flipInX = undefined; - var flipInX = exports.flipInX = { - easing: 'ease-in', - style: { - backfaceVisibility: 'visible', - perspective: 400 - }, - 0: { - opacity: 0, - rotateX: '90deg' - }, - 0.4: { - rotateX: '-20deg' - }, - 0.6: { - opacity: 1, - rotateX: '10deg' - }, - 0.8: { - rotateX: '-5deg' - }, - 1: { - opacity: 1, - rotateX: '0deg' - } - }; - var flipInY = exports.flipInY = { - easing: 'ease-in', - style: { - backfaceVisibility: 'visible', - perspective: 400 - }, - 0: { - opacity: 0, - rotateY: '90deg' - }, - 0.4: { - rotateY: '-20deg' - }, - 0.6: { - opacity: 1, - rotateY: '10deg' - }, - 0.8: { - rotateY: '-5deg' - }, - 1: { - opacity: 1, - rotateY: '0deg' - } - }; - var flipOutX = exports.flipOutX = { - style: { - backfaceVisibility: 'visible', - perspective: 400 - }, - 0: { - opacity: 1, - rotateX: '0deg' - }, - 0.3: { - opacity: 1, - rotateX: '-20deg' - }, - 1: { - opacity: 0, - rotateX: '90deg' - } - }; - var flipOutY = exports.flipOutY = { - style: { - backfaceVisibility: 'visible', - perspective: 400 - }, - 0: { - opacity: 1, - rotateY: '0deg' - }, - 0.3: { - opacity: 1, - rotateY: '-20deg' - }, - 1: { - opacity: 0, - rotateY: '90deg' - } - }; -},1343,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.lightSpeedOut = exports.lightSpeedIn = undefined; - var lightSpeedIn = exports.lightSpeedIn = { - easing: 'ease-out', - 0: { - opacity: 0, - translateX: 200, - skewX: '-30deg' - }, - 0.6: { - opacity: 1, - translateX: 0, - skewX: '20deg' - }, - 0.8: { - skewX: '-5deg' - }, - 1: { - opacity: 1, - translateX: 0, - skewX: '0deg' - } - }; - var lightSpeedOut = exports.lightSpeedOut = { - easing: 'ease-in', - 0: { - opacity: 1, - translateX: 0, - skewX: '0deg' - }, - 1: { - opacity: 0, - translateX: 200, - skewX: '30deg' - } - }; -},1344,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.slideInUp = exports.slideInRight = exports.slideInLeft = exports.slideInDown = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function makeSlideInTranslation(translationType, fromValue) { - return { - from: (0, _defineProperty2.default)({}, translationType, fromValue), - to: (0, _defineProperty2.default)({}, translationType, 0) - }; - } - - var slideInDown = exports.slideInDown = makeSlideInTranslation('translateY', -100); - var slideInUp = exports.slideInUp = makeSlideInTranslation('translateY', 100); - var slideInLeft = exports.slideInLeft = makeSlideInTranslation('translateX', -100); - var slideInRight = exports.slideInRight = makeSlideInTranslation('translateX', 100); -},1345,[3,240]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.slideOutUp = exports.slideOutRight = exports.slideOutLeft = exports.slideOutDown = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function makeSlideOutTranslation(translationType, fromValue) { - return { - from: (0, _defineProperty2.default)({}, translationType, 0), - to: (0, _defineProperty2.default)({}, translationType, fromValue) - }; - } - - var slideOutDown = exports.slideOutDown = makeSlideOutTranslation('translateY', 100); - var slideOutUp = exports.slideOutUp = makeSlideOutTranslation('translateY', -100); - var slideOutLeft = exports.slideOutLeft = makeSlideOutTranslation('translateX', -100); - var slideOutRight = exports.slideOutRight = makeSlideOutTranslation('translateX', 100); -},1346,[3,240]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.zoomInUp = exports.zoomInRight = exports.zoomInLeft = exports.zoomInDown = exports.zoomIn = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - function makeZoomInTranslation(translationType, pivotPoint) { - var modifier = Math.min(1, Math.max(-1, pivotPoint)); - return { - easing: _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1), - 0: (0, _defineProperty2.default)({ - opacity: 0, - scale: 0.1 - }, translationType, modifier * -1000), - 0.6: (0, _defineProperty2.default)({ - opacity: 1, - scale: 0.457 - }, translationType, pivotPoint), - 1: (0, _defineProperty2.default)({ - scale: 1 - }, translationType, 0) - }; - } - - var zoomIn = exports.zoomIn = { - from: { - opacity: 0, - scale: 0.3 - }, - 0.5: { - opacity: 1 - }, - to: { - opacity: 1, - scale: 1 - } - }; - var zoomInDown = exports.zoomInDown = makeZoomInTranslation('translateY', 60); - var zoomInUp = exports.zoomInUp = makeZoomInTranslation('translateY', -60); - var zoomInLeft = exports.zoomInLeft = makeZoomInTranslation('translateX', 10); - var zoomInRight = exports.zoomInRight = makeZoomInTranslation('translateX', -10); -},1347,[3,240,18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.zoomOutUp = exports.zoomOutRight = exports.zoomOutLeft = exports.zoomOutDown = exports.zoomOut = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - function makeZoomOutTranslation(translationType, pivotPoint) { - var modifier = Math.min(1, Math.max(-1, pivotPoint)); - return { - easing: _reactNative.Easing.bezier(0.175, 0.885, 0.32, 1), - 0: (0, _defineProperty2.default)({ - opacity: 1, - scale: 1 - }, translationType, 0), - 0.4: (0, _defineProperty2.default)({ - opacity: 1, - scale: 0.457 - }, translationType, pivotPoint), - 1: (0, _defineProperty2.default)({ - opacity: 0, - scale: 0.1 - }, translationType, modifier * -1000) - }; - } - - var zoomOut = exports.zoomOut = { - from: { - opacity: 1, - scale: 1 - }, - 0.5: { - opacity: 1, - scale: 0.3 - }, - to: { - opacity: 0, - scale: 0 - } - }; - var zoomOutDown = exports.zoomOutDown = makeZoomOutTranslation('translateY', 60); - var zoomOutUp = exports.zoomOutUp = makeZoomOutTranslation('translateY', -60); - var zoomOutLeft = exports.zoomOutLeft = makeZoomOutTranslation('translateX', 10); - var zoomOutRight = exports.zoomOutRight = makeZoomOutTranslation('translateX', -10); -},1348,[3,240,18]); -__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({ - backdrop: { - position: 'absolute', - top: 0, - bottom: 0, - left: 0, - right: 0, - opacity: 0, - backgroundColor: 'black' - }, - content: { - flex: 1, - justifyContent: 'center' - }, - containerBox: { - zIndex: 2, - opacity: 1, - backgroundColor: 'transparent' - } - }); -},1349,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.reversePercentage = exports.makeSlideTranslation = exports.initializeAnimations = exports.buildAnimations = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - var animatable = _interopRequireWildcard(_$$_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 _Dimensions$get = _reactNative.Dimensions.get('window'), - height = _Dimensions$get.height, - width = _Dimensions$get.width; - - var initializeAnimations = exports.initializeAnimations = function initializeAnimations() { - var animationDefinitions = { - slideInDown: makeSlideTranslation('translateY', -height, 0), - slideInUp: makeSlideTranslation('translateY', height, 0), - slideInLeft: makeSlideTranslation('translateX', -width, 0), - slideInRight: makeSlideTranslation('translateX', width, 0), - slideOutDown: makeSlideTranslation('translateY', 0, height), - slideOutUp: makeSlideTranslation('translateY', 0, -height), - slideOutLeft: makeSlideTranslation('translateX', 0, -width), - slideOutRight: makeSlideTranslation('translateX', 0, width) - }; - animatable.initializeRegistryWithDefinitions(animationDefinitions); - }; - - var makeSlideTranslation = exports.makeSlideTranslation = function makeSlideTranslation(translationType, fromValue, toValue) { - return { - from: (0, _defineProperty2.default)({}, translationType, fromValue), - to: (0, _defineProperty2.default)({}, translationType, toValue) - }; - }; - - var buildAnimations = exports.buildAnimations = function buildAnimations(_ref) { - var animationIn = _ref.animationIn, - animationOut = _ref.animationOut; - var updatedAnimationIn; - var updatedAnimationOut; - - if (isObject(animationIn)) { - var animationName = JSON.stringify(animationIn); - makeAnimation(animationName, animationIn); - updatedAnimationIn = animationName; - } else { - updatedAnimationIn = animationIn; - } - - if (isObject(animationOut)) { - var _animationName = JSON.stringify(animationOut); - - makeAnimation(_animationName, animationOut); - updatedAnimationOut = _animationName; - } else { - updatedAnimationOut = animationOut; - } - - return { - animationIn: updatedAnimationIn, - animationOut: updatedAnimationOut - }; - }; - - var reversePercentage = exports.reversePercentage = function reversePercentage(x) { - return -(x - 1); - }; - - var makeAnimation = function makeAnimation(name, obj) { - animatable.registerAnimation(name, animatable.createAnimation(obj)); - }; - - var isObject = function isObject(obj) { - return obj !== null && typeof obj === 'object'; - }; -},1350,[3,240,18,1328]); +},1375,[3,4,590,16,582,18,831,1376,1379,1074]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179672,7 +185256,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; -},1351,[3,591,4,33,16,18,1030,1032,1352,1353,1354,1355,1027]); +},1376,[3,590,4,33,16,18,1080,1082,1377,1378,1379,1380,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179689,7 +185273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcArrowLeft; exports.default = _default; -},1352,[3,16,901]); +},1377,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179706,7 +185290,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcArrowRight; exports.default = _default; -},1353,[3,16,901]); +},1378,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179740,7 +185324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = CalendarCommons; exports.default = _default; -},1354,[3,582]); +},1379,[3,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -179865,7 +185449,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])); -},1355,[3,1356,1563,1567,1605,1614,1623,1624,1621,1630,1634,1635,1655,1556,1357,1658]); +},1380,[3,1381,1588,1592,1630,1639,1648,1649,1646,1655,1659,1660,1680,1581,1382,1683]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -180152,7 +185736,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customHeader: _propTypes.default.any, allowSelectionOutOfRange: _propTypes.default.bool }); -},1356,[3,33,582,1357,1358,16,18,1387,1388,1389,1391,1412,1542,1409,1561,1408,179,1550,1562]); +},1381,[3,33,582,1382,1383,16,18,1412,1413,1414,1416,1437,1567,1434,1586,1433,179,1575,1587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /** * @preserve XDate v@VERSION @@ -180837,7 +186421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return XDate; }(Date, Math, Array); -},1357,[]); +},1382,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]', setTag = '[object Set]'; @@ -180873,14 +186457,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isEmpty; -},1358,[1359,1362,1363,1365,1369,1371,1383,1384]); +},1383,[1384,1387,1388,1390,1394,1396,1408,1409]); __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; -},1359,[1360,1361]); +},1384,[1385,1386]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; @@ -180889,7 +186473,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isLength; -},1360,[]); +},1385,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', @@ -180907,11 +186491,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isFunction; -},1361,[490,484]); +},1386,[490,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var isArray = Array.isArray; module.exports = isArray; -},1362,[]); +},1387,[]); __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; @@ -180922,20 +186506,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isBuffer = nativeIsBuffer || _$$_REQUIRE(_dependencyMap[1]); module.exports = isBuffer; -},1363,[486,1364]); +},1388,[486,1389]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stubFalse() { return false; } module.exports = stubFalse; -},1364,[]); +},1389,[]); __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; -},1365,[1366,1367,1368]); +},1390,[1391,1392,1393]); __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; @@ -180956,7 +186540,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = nodeUtil; -},1366,[487]); +},1391,[487]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseUnary(func) { return function (value) { @@ -180965,7 +186549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseUnary; -},1367,[]); +},1392,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var argsTag = '[object Arguments]', arrayTag = '[object Array]', @@ -181000,7 +186584,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsTypedArray; -},1368,[483,1360,484]); +},1393,[483,1385,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -181011,7 +186595,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; -},1369,[1370,483]); +},1394,[1395,483]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var argsTag = '[object Arguments]'; @@ -181020,7 +186604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsArguments; -},1370,[483,484]); +},1395,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]', objectTag = '[object Object]', @@ -181067,7 +186651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getTag; -},1371,[1372,1373,1379,1380,1381,1382,484]); +},1396,[1397,1398,1404,1405,1406,1407,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var funcProto = Function.prototype; var funcToString = funcProto.toString; @@ -181087,12 +186671,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toSource; -},1372,[]); +},1397,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var DataView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'DataView'); module.exports = DataView; -},1373,[1374,486]); +},1398,[1399,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getNative(object, key) { var value = _$$_REQUIRE(_dependencyMap[0])(object, key); @@ -181101,14 +186685,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getNative; -},1374,[1375,1376]); +},1399,[1400,1401]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; -},1375,[]); +},1400,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; @@ -181128,7 +186712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsNative; -},1376,[490,1377,1361,1372]); +},1401,[490,1402,1386,1397]); __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 || ''); @@ -181140,30 +186724,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isMasked; -},1377,[1378]); +},1402,[1403]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0])['__core-js_shared__']; -},1378,[486]); +},1403,[486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Map = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Map'); module.exports = Map; -},1379,[1374,486]); +},1404,[1399,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Promise = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Promise'); module.exports = Promise; -},1380,[1374,486]); +},1405,[1399,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var Set = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'Set'); module.exports = Set; -},1381,[1374,486]); +},1406,[1399,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var WeakMap = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]), 'WeakMap'); module.exports = WeakMap; -},1382,[1374,486]); +},1407,[1399,486]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; @@ -181174,7 +186758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isPrototype; -},1383,[]); +},1408,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -181196,12 +186780,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseKeys; -},1384,[1383,1385]); +},1409,[1408,1410]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeKeys = _$$_REQUIRE(_dependencyMap[0])(Object.keys, Object); module.exports = nativeKeys; -},1385,[1386]); +},1410,[1411]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function overArg(func, transform) { return function (arg) { @@ -181210,7 +186794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = overArg; -},1386,[]); +},1411,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -181383,7 +186967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); var _default = exports.default = GestureRecognizer; -},1387,[3,6,7,11,13,14,16,18,179]); +},1412,[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 @@ -181412,7 +186996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isTablet: isTablet, isAndroidRTL: isAndroidRTL }; -},1388,[18]); +},1413,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181453,7 +187037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar.main'] || {})); } -},1389,[18,1390]); +},1414,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181509,7 +187093,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; -},1390,[]); +},1415,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -181756,7 +187340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e webAriaLevel: 1, arrowsHitSlop: 20 }; -},1391,[3,1392,1357,16,18,1407,1408,179,1410,1411]); +},1416,[3,1417,1382,16,18,1432,1433,179,1435,1436]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -181773,14 +187357,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = includes; -},1392,[1359,1393,1400,1402,1403]); +},1417,[1384,1418,1425,1427,1428]); __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; -},1393,[1394,1396]); +},1418,[1419,1421]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseValues(object, props) { return _$$_REQUIRE(_dependencyMap[0])(props, function (key) { @@ -181789,7 +187373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseValues; -},1394,[1395]); +},1419,[1420]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayMap(array, iteratee) { var index = -1, @@ -181804,14 +187388,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayMap; -},1395,[]); +},1420,[]); __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; -},1396,[1359,1397,1384]); +},1421,[1384,1422,1409]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -181835,7 +187419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayLikeKeys; -},1397,[1362,1369,1363,1365,1398,1399]); +},1422,[1387,1394,1388,1390,1423,1424]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseTimes(n, iteratee) { var index = -1, @@ -181849,7 +187433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseTimes; -},1398,[]); +},1423,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; @@ -181861,7 +187445,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isIndex; -},1399,[]); +},1424,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function toInteger(value) { var result = _$$_REQUIRE(_dependencyMap[0])(value), @@ -181871,7 +187455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toInteger; -},1400,[1401]); +},1425,[1426]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e+308; @@ -181892,7 +187476,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toFinite; -},1401,[481]); +},1426,[481]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var stringTag = '[object String]'; @@ -181901,14 +187485,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isString; -},1402,[1362,483,484]); +},1427,[1387,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; -},1403,[1404,1405,1406]); +},1428,[1429,1430,1431]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, @@ -181924,7 +187508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = strictIndexOf; -},1404,[]); +},1429,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, @@ -181940,14 +187524,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFindIndex; -},1405,[]); +},1430,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIsNaN(value) { return value !== value; } module.exports = baseIsNaN; -},1406,[]); +},1431,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182031,7 +187615,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar.header'] || {})); } -},1407,[18,1390,3,1388]); +},1432,[18,1415,3,1413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182285,7 +187869,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getLocale() { return _$$_REQUIRE(_dependencyMap[0]).locales[_$$_REQUIRE(_dependencyMap[0]).defaultLocale]; } -},1408,[1357,1409]); +},1433,[1382,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182346,7 +187930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 'Invalid Date'; } -},1409,[1357]); +},1434,[1382]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -182358,7 +187942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "previous", "type": "png" }); -},1410,[1210]); +},1435,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -182370,7 +187954,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "next", "type": "png" }); -},1411,[1210]); +},1436,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -182469,7 +188053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = Day; Day.displayName = 'Day'; -},1412,[3,1413,1507,1520,1357,16,1542,1554,1408,1556,1409,179]); +},1437,[3,1438,1532,1545,1382,16,1567,1579,1433,1581,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, @@ -182505,19 +188089,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = omit; -},1413,[1414,1395,1427,1457,1460,1470,1499,1501]); +},1438,[1439,1420,1452,1482,1485,1495,1524,1526]); __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; -},1414,[1415,1421,1423]); +},1439,[1440,1446,1448]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var setToString = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); module.exports = setToString; -},1415,[1416,1417]); +},1440,[1441,1442]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HOT_COUNT = 800, HOT_SPAN = 16; @@ -182544,7 +188128,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = shortOut; -},1416,[]); +},1441,[]); __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', { @@ -182555,7 +188139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; module.exports = baseSetToString; -},1417,[1418,1419,1420]); +},1442,[1443,1444,1445]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var defineProperty = function () { try { @@ -182567,14 +188151,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = defineProperty; -},1418,[1374]); +},1443,[1399]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function identity(value) { return value; } module.exports = identity; -},1419,[]); +},1444,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function constant(value) { return function () { @@ -182583,7 +188167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = constant; -},1420,[]); +},1445,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -182612,7 +188196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = overRest; -},1421,[1422]); +},1446,[1447]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function apply(func, thisArg, args) { switch (args.length) { @@ -182633,7 +188217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = apply; -},1422,[]); +},1447,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function flatten(array) { var length = array == null ? 0 : array.length; @@ -182641,7 +188225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = flatten; -},1423,[1424]); +},1448,[1449]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, @@ -182667,7 +188251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFlatten; -},1424,[1425,1426]); +},1449,[1450,1451]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var spreadableSymbol = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0]).isConcatSpreadable : undefined; @@ -182676,7 +188260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isFlattenable; -},1425,[485,1362,1369]); +},1450,[485,1387,1394]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayPush(array, values) { var index = -1, @@ -182691,7 +188275,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayPush; -},1426,[]); +},1451,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function castPath(value, object) { if (_$$_REQUIRE(_dependencyMap[0])(value)) { @@ -182702,7 +188286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = castPath; -},1427,[1362,1428,1429,1455]); +},1452,[1387,1453,1454,1480]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; @@ -182722,7 +188306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isKey; -},1428,[1362,482]); +},1453,[1387,482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; @@ -182741,7 +188325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = stringToPath; -},1429,[1430]); +},1454,[1455]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_MEMOIZE_SIZE = 500; @@ -182759,7 +188343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = memoizeCapped; -},1430,[1431]); +},1455,[1456]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; @@ -182788,7 +188372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e memoize.Cache = _$$_REQUIRE(_dependencyMap[0]); module.exports = memoize; -},1431,[1432]); +},1456,[1457]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function MapCache(entries) { var index = -1, @@ -182807,7 +188391,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; -},1432,[1433,1449,1452,1453,1454]); +},1457,[1458,1474,1477,1478,1479]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheClear() { this.size = 0; @@ -182819,7 +188403,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheClear; -},1433,[1434,1379,1441]); +},1458,[1459,1404,1466]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function Hash(entries) { var index = -1, @@ -182838,7 +188422,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; -},1434,[1435,1437,1438,1439,1440]); +},1459,[1460,1462,1463,1464,1465]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hashClear() { this.__data__ = _$$_REQUIRE(_dependencyMap[0]) ? _$$_REQUIRE(_dependencyMap[0])(null) : {}; @@ -182846,12 +188430,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashClear; -},1435,[1436]); +},1460,[1461]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeCreate = _$$_REQUIRE(_dependencyMap[0])(Object, 'create'); module.exports = nativeCreate; -},1436,[1374]); +},1461,[1399]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; @@ -182860,7 +188444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashDelete; -},1437,[]); +},1462,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; var objectProto = Object.prototype; @@ -182878,7 +188462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashGet; -},1438,[1436]); +},1463,[1461]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -182889,7 +188473,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashHas; -},1439,[1436]); +},1464,[1461]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -182901,7 +188485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hashSet; -},1440,[1436]); +},1465,[1461]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function ListCache(entries) { var index = -1, @@ -182920,7 +188504,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; -},1441,[1442,1443,1446,1447,1448]); +},1466,[1467,1468,1471,1472,1473]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheClear() { this.__data__ = []; @@ -182928,7 +188512,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheClear; -},1442,[]); +},1467,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var arrayProto = Array.prototype; var splice = arrayProto.splice; @@ -182954,7 +188538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheDelete; -},1443,[1444]); +},1468,[1469]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function assocIndexOf(array, key) { var length = array.length; @@ -182969,14 +188553,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = assocIndexOf; -},1444,[1445]); +},1469,[1470]); __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; -},1445,[]); +},1470,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheGet(key) { var data = this.__data__, @@ -182986,14 +188570,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheGet; -},1446,[1444]); +},1471,[1469]); __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; -},1447,[1444]); +},1472,[1469]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function listCacheSet(key, value) { var data = this.__data__, @@ -183010,7 +188594,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = listCacheSet; -},1448,[1444]); +},1473,[1469]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheDelete(key) { var result = _$$_REQUIRE(_dependencyMap[0])(this, key)['delete'](key); @@ -183020,7 +188604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheDelete; -},1449,[1450]); +},1474,[1475]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getMapData(map, key) { var data = map.__data__; @@ -183028,7 +188612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getMapData; -},1450,[1451]); +},1475,[1476]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isKeyable(value) { var type = typeof value; @@ -183036,21 +188620,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isKeyable; -},1451,[]); +},1476,[]); __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; -},1452,[1450]); +},1477,[1475]); __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; -},1453,[1450]); +},1478,[1475]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapCacheSet(key, value) { var data = _$$_REQUIRE(_dependencyMap[0])(this, key), @@ -183062,14 +188646,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapCacheSet; -},1454,[1450]); +},1479,[1475]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function toString(value) { return value == null ? '' : _$$_REQUIRE(_dependencyMap[0])(value); } module.exports = toString; -},1455,[1456]); +},1480,[1481]); __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, @@ -183093,7 +188677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseToString; -},1456,[485,1362,1395,482]); +},1481,[485,1387,1420,482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copyObject(source, props, object, customizer) { var isNew = !object; @@ -183120,7 +188704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = copyObject; -},1457,[1458,1459]); +},1482,[1483,1484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseAssignValue(object, key, value) { if (key == '__proto__' && _$$_REQUIRE(_dependencyMap[0])) { @@ -183136,7 +188720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseAssignValue; -},1458,[1418]); +},1483,[1443]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -183150,14 +188734,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = assignValue; -},1459,[1445,1458]); +},1484,[1470,1483]); __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; -},1460,[1461,1462,1465]); +},1485,[1486,1487,1490]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); @@ -183165,14 +188749,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseGetAllKeys; -},1461,[1362,1426]); +},1486,[1387,1451]); __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; -},1462,[1359,1397,1463]); +},1487,[1384,1422,1488]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -183195,7 +188779,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseKeysIn; -},1463,[490,1464,1383]); +},1488,[490,1489,1408]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function nativeKeysIn(object) { var result = []; @@ -183210,7 +188794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = nativeKeysIn; -},1464,[]); +},1489,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeGetSymbols = Object.getOwnPropertySymbols; var getSymbolsIn = !nativeGetSymbols ? _$$_REQUIRE(_dependencyMap[0]) : function (object) { @@ -183225,14 +188809,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }; module.exports = getSymbolsIn; -},1465,[1466,1426,1467,1469]); +},1490,[1491,1451,1492,1494]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stubArray() { return []; } module.exports = stubArray; -},1466,[]); +},1491,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var propertyIsEnumerable = objectProto.propertyIsEnumerable; @@ -183248,7 +188832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }; module.exports = getSymbols; -},1467,[1466,1468]); +},1492,[1491,1493]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayFilter(array, predicate) { var index = -1, @@ -183268,12 +188852,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayFilter; -},1468,[]); +},1493,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var getPrototype = _$$_REQUIRE(_dependencyMap[0])(Object.getPrototypeOf, Object); module.exports = getPrototype; -},1469,[1386]); +},1494,[1411]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, @@ -183392,7 +188976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseClone; -},1470,[490,1362,1471,1472,1371,1363,1473,1474,1476,1477,1478,1479,1480,1487,1493,1495,1460,1497,1462,1396,1498,1459]); +},1495,[490,1387,1496,1497,1396,1388,1498,1499,1501,1502,1503,1504,1505,1512,1518,1520,1485,1522,1487,1421,1523,1484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -183410,7 +188994,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = initCloneArray; -},1471,[]); +},1496,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copyArray(source, array) { var index = -1, @@ -183425,7 +189009,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = copyArray; -},1472,[]); +},1497,[]); __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; @@ -183445,14 +189029,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneBuffer; -},1473,[486]); +},1498,[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; -},1474,[1383,1475,1469]); +},1499,[1408,1500,1494]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectCreate = Object.create; @@ -183476,35 +189060,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); module.exports = baseCreate; -},1475,[490]); +},1500,[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; -},1476,[1457,1465]); +},1501,[1482,1490]); __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; -},1477,[1457,1462]); +},1502,[1482,1487]); __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; -},1478,[1457,1467]); +},1503,[1482,1492]); __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; -},1479,[1457,1396]); +},1504,[1482,1421]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var boolTag = '[object Boolean]', dateTag = '[object Date]', @@ -183570,7 +189154,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = initCloneByTag; -},1480,[1481,1483,1484,1485,1486]); +},1505,[1506,1508,1509,1510,1511]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); @@ -183579,10 +189163,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneArrayBuffer; -},1481,[1482]); +},1506,[1507]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).Uint8Array; -},1482,[486]); +},1507,[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; @@ -183590,7 +189174,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneDataView; -},1483,[1481]); +},1508,[1506]); __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; @@ -183598,7 +189182,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneTypedArray; -},1484,[1481]); +},1509,[1506]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reFlags = /\w*$/; @@ -183609,7 +189193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneRegExp; -},1485,[]); +},1510,[]); __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; @@ -183619,7 +189203,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = cloneSymbol; -},1486,[485]); +},1511,[485]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function Stack(entries) { var data = this.__data__ = new (_$$_REQUIRE(_dependencyMap[0]))(entries); @@ -183632,7 +189216,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; -},1487,[1441,1488,1489,1490,1491,1492]); +},1512,[1466,1513,1514,1515,1516,1517]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackClear() { this.__data__ = new (_$$_REQUIRE(_dependencyMap[0]))(); @@ -183640,7 +189224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackClear; -},1488,[1441]); +},1513,[1466]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackDelete(key) { var data = this.__data__, @@ -183650,21 +189234,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackDelete; -},1489,[]); +},1514,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; -},1490,[]); +},1515,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; -},1491,[]); +},1516,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var LARGE_ARRAY_SIZE = 200; @@ -183689,13 +189273,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = stackSet; -},1492,[1441,1379,1432]); +},1517,[1466,1404,1457]); __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; -},1493,[1366,1367,1494]); +},1518,[1391,1392,1519]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var setTag = '[object Set]'; @@ -183704,13 +189288,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsSet; -},1494,[483,1371]); +},1519,[483,1396]); __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; -},1495,[1366,1367,1496]); +},1520,[1391,1392,1521]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var mapTag = '[object Map]'; @@ -183719,14 +189303,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsMap; -},1496,[483,1371]); +},1521,[483,1396]); __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; -},1497,[1461,1396,1467]); +},1522,[1486,1421,1492]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayEach(array, iteratee) { var index = -1, @@ -183742,14 +189326,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayEach; -},1498,[]); +},1523,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function customOmitClone(value) { return _$$_REQUIRE(_dependencyMap[0])(value) ? undefined : value; } module.exports = customOmitClone; -},1499,[1500]); +},1524,[1525]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectTag = '[object Object]'; var funcProto = Function.prototype, @@ -183774,7 +189358,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isPlainObject; -},1500,[483,484,1469]); +},1525,[483,484,1494]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseUnset(object, path) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -183783,14 +189367,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseUnset; -},1501,[1427,1502,1504,1506]); +},1526,[1452,1527,1529,1531]); __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; -},1502,[1503,1505]); +},1527,[1528,1530]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseGet(object, path) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -183805,7 +189389,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseGet; -},1503,[1427,1504]); +},1528,[1452,1529]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0; @@ -183819,7 +189403,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = toKey; -},1504,[482]); +},1529,[482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSlice(array, start, end) { var index = -1, @@ -183847,7 +189431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSlice; -},1505,[]); +},1530,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function last(array) { var length = array == null ? 0 : array.length; @@ -183855,14 +189439,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = last; -},1506,[]); +},1531,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isEqual(value, other) { return _$$_REQUIRE(_dependencyMap[0])(value, other); } module.exports = isEqual; -},1507,[1508]); +},1532,[1533]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { @@ -183877,7 +189461,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsEqual; -},1508,[483,1509]); +},1533,[483,1534]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1; var argsTag = '[object Arguments]', @@ -183933,7 +189517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsEqualDeep; -},1509,[1362,1371,1363,1487,1365,1510,1516,1519]); +},1534,[1387,1396,1388,1512,1390,1535,1541,1544]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -183998,7 +189582,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalArrays; -},1510,[1511,1514,1515]); +},1535,[1536,1539,1540]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function SetCache(values) { var index = -1, @@ -184013,7 +189597,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; -},1511,[1432,1512,1513]); +},1536,[1457,1537,1538]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -184024,14 +189608,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = setCacheAdd; -},1512,[]); +},1537,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function setCacheHas(value) { return this.__data__.has(value); } module.exports = setCacheHas; -},1513,[]); +},1538,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arraySome(array, predicate) { var index = -1, @@ -184047,14 +189631,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arraySome; -},1514,[]); +},1539,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function cacheHas(cache, key) { return cache.has(key); } module.exports = cacheHas; -},1515,[]); +},1540,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -184137,7 +189721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalByTag; -},1516,[485,1482,1445,1517,1518,1510]); +},1541,[485,1507,1470,1542,1543,1535]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function mapToArray(map) { var index = -1, @@ -184149,7 +189733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = mapToArray; -},1517,[]); +},1542,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function setToArray(set) { var index = -1, @@ -184161,7 +189745,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = setToArray; -},1518,[]); +},1543,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1; var objectProto = Object.prototype; @@ -184232,7 +189816,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = equalObjects; -},1519,[1497]); +},1544,[1522]); __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]); @@ -184245,7 +189829,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = some; -},1520,[1362,1514,1521,1527,1528]); +},1545,[1387,1539,1546,1552,1553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSome(collection, predicate) { var result; @@ -184259,12 +189843,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSome; -},1521,[1522]); +},1546,[1547]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var baseEach = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); module.exports = baseEach; -},1522,[1523,1524]); +},1547,[1548,1549]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createBaseEach(eachFunc, fromRight) { return function (collection, iteratee) { @@ -184291,19 +189875,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createBaseEach; -},1523,[1359]); +},1548,[1384]); __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; -},1524,[1525,1396]); +},1549,[1550,1421]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var baseFor = _$$_REQUIRE(_dependencyMap[0])(); module.exports = baseFor; -},1525,[1526]); +},1550,[1551]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createBaseFor(fromRight) { return function (object, iteratee, keysFunc) { @@ -184325,7 +189909,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createBaseFor; -},1526,[]); +},1551,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isIterateeCall(value, index, object) { if (!_$$_REQUIRE(_dependencyMap[0])(object)) { @@ -184342,7 +189926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isIterateeCall; -},1527,[490,1359,1399,1445]); +},1552,[490,1384,1424,1470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseIteratee(value) { if (typeof value == 'function') { @@ -184361,7 +189945,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIteratee; -},1528,[1419,1362,1529,1536,1539]); +},1553,[1444,1387,1554,1561,1564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -184379,14 +189963,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMatchesProperty; -},1529,[1428,1530,1531,1504,1532,1533,1508]); +},1554,[1453,1555,1556,1529,1557,1558,1533]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isStrictComparable(value) { return value === value && !_$$_REQUIRE(_dependencyMap[0])(value); } module.exports = isStrictComparable; -},1530,[490]); +},1555,[490]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function matchesStrictComparable(key, srcValue) { return function (object) { @@ -184399,7 +189983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = matchesStrictComparable; -},1531,[]); +},1556,[]); __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); @@ -184407,14 +189991,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = get; -},1532,[1503]); +},1557,[1528]); __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; -},1533,[1534,1535]); +},1558,[1559,1560]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function hasPath(object, path, hasFunc) { path = _$$_REQUIRE(_dependencyMap[0])(path, object); @@ -184441,14 +190025,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = hasPath; -},1534,[1427,1504,1360,1399,1362,1369]); +},1559,[1452,1529,1385,1424,1387,1394]); __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; -},1535,[]); +},1560,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseMatches(source) { var matchData = _$$_REQUIRE(_dependencyMap[0])(source); @@ -184463,7 +190047,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMatches; -},1536,[1537,1531,1538]); +},1561,[1562,1556,1563]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function getMatchData(object) { var result = _$$_REQUIRE(_dependencyMap[0])(object), @@ -184479,7 +190063,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = getMatchData; -},1537,[1396,1530]); +},1562,[1421,1555]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; @@ -184530,14 +190114,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsMatch; -},1538,[1487,1508]); +},1563,[1512,1533]); __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; -},1539,[1428,1540,1504,1541]); +},1564,[1453,1565,1529,1566]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseProperty(key) { return function (object) { @@ -184546,7 +190130,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseProperty; -},1540,[]); +},1565,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function basePropertyDeep(path) { return function (object) { @@ -184555,7 +190139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = basePropertyDeep; -},1541,[1503]); +},1566,[1528]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184741,7 +190325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = BasicDay; BasicDay.displayName = 'BasicDay'; -},1542,[16,18,3,1543,1544,1409,179]); +},1567,[16,18,3,1568,1569,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184824,7 +190408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.day.basic'] || {})); } -},1543,[18,1390,3,1388]); +},1568,[18,1415,3,1413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -184942,7 +190526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Marking.displayName = 'Marking'; Marking.markings = Markings; -},1544,[3,1545,16,18,1547,1548,179,1550]); +},1569,[3,1570,16,18,1572,1573,179,1575]); __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]); @@ -184950,7 +190534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = filter; -},1545,[1362,1468,1546,1528]); +},1570,[1387,1493,1571,1553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseFilter(collection, predicate) { var result = []; @@ -184965,7 +190549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseFilter; -},1546,[1522]); +},1571,[1547]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185007,7 +190591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.marking'] || {})); } -},1547,[18,1389]); +},1572,[18,1414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185067,7 +190651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Dot; -},1548,[16,18,3,1549,179]); +},1573,[16,18,3,1574,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185112,7 +190696,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.dot'] || {})); } -},1549,[18,1390]); +},1574,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185372,7 +190956,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; return reservationProps; } -},1550,[3,4,1507,1532,1413,1551,1392]); +},1575,[3,4,1532,1557,1438,1576,1417]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function pickBy(object, predicate) { if (object == null) { @@ -185390,7 +190974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = pickBy; -},1551,[1395,1460,1528,1552]); +},1576,[1420,1485,1553,1577]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function basePickBy(object, paths, predicate) { var index = -1, @@ -185410,7 +190994,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = basePickBy; -},1552,[1503,1553,1427]); +},1577,[1528,1578,1452]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseSet(object, path, value, customizer) { if (!_$$_REQUIRE(_dependencyMap[0])(object)) { @@ -185449,7 +191033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseSet; -},1553,[490,1427,1504,1399,1459]); +},1578,[490,1452,1529,1424,1484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185693,7 +191277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onLongPress: _propTypes.default.func, date: _propTypes.default.string }; -},1554,[3,582,16,18,1555,1548,1409,179]); +},1579,[3,582,16,18,1580,1573,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185771,7 +191355,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.day.period'] || {})); } -},1555,[18,1390]); +},1580,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185812,20 +191396,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getCalendarDateString: getCalendarDateString, getDefaultLocale: getDefaultLocale }; -},1556,[3,1557,1558,1402,1560,1357,1409,1408]); +},1581,[3,1582,1583,1427,1585,1382,1434,1433]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function isUndefined(value) { return value === undefined; } module.exports = isUndefined; -},1557,[]); +},1582,[]); __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; -},1558,[1366,1367,1559]); +},1583,[1391,1392,1584]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var dateTag = '[object Date]'; @@ -185834,7 +191418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseIsDate; -},1559,[483,484]); +},1584,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var numberTag = '[object Number]'; @@ -185843,7 +191427,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isNumber; -},1560,[483,484]); +},1585,[483,484]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185890,7 +191474,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return targetRef; }; -},1561,[16]); +},1586,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -185920,7 +191504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return state; } -},1562,[1409,1408]); +},1587,[1434,1433]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186293,7 +191877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onEndReached: _propTypes.default.func, nestedScrollEnabled: _propTypes.default.bool }); -},1563,[3,33,1564,582,1357,16,18,1388,1565,1356,1566,1391,1507,1550,1409,1561,1408,179]); +},1588,[3,33,1589,582,1382,16,18,1413,1590,1381,1591,1416,1532,1575,1434,1586,1433,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max; @@ -186314,7 +191898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = findIndex; -},1564,[1400,1405,1528]); +},1589,[1425,1430,1553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186363,7 +191947,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.calendar-list.main'] || {})); } -},1565,[18,1390]); +},1590,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186462,7 +192046,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = CalendarListItem; CalendarListItem.displayName = 'CalendarListItem'; -},1566,[16,18,3,1565,1356,1550,1409,179]); +},1591,[16,18,3,1590,1381,1575,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186696,7 +192280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return array; } -},1567,[3,22,33,1357,16,18,1388,1356,1391,1568,1565,1550,1409,179]); +},1592,[3,22,33,1382,16,18,1413,1381,1416,1593,1590,1575,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -186875,7 +192459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _react.forwardRef)(InfiniteList); -},1568,[3,1569,480,1571,16,1388,1572,1561,179]); +},1593,[3,1594,480,1596,16,1413,1597,1586,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function inRange(number, start, end) { start = _$$_REQUIRE(_dependencyMap[0])(start); @@ -186892,7 +192476,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = inRange; -},1569,[1401,481,1570]); +},1594,[1426,481,1595]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeMax = Math.max, nativeMin = Math.min; @@ -186902,12 +192486,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseInRange; -},1570,[]); +},1595,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function noop() {} module.exports = noop; -},1571,[]); +},1596,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -186980,7 +192564,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[11]).ComponentCompat; } }); -},1572,[1573,1574,1578,1581,1583,1602,1585,1603,1579,1582,1604,1598]); +},1597,[1598,1599,1603,1606,1608,1627,1610,1628,1604,1607,1629,1623]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -186995,7 +192579,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ContextProvider; -},1573,[]); +},1598,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187121,7 +192705,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(BaseDataProvider); exports.default = DataProvider; -},1574,[1575]); +},1599,[1600]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187130,7 +192714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.ObjectUtil = _$$_REQUIRE(_dependencyMap[0]).ObjectUtil; exports.Default = _$$_REQUIRE(_dependencyMap[1]).Default; -},1575,[1576,1577]); +},1600,[1601,1602]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187170,7 +192754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.ObjectUtil = ObjectUtil; -},1576,[]); +},1601,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187189,7 +192773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.Default = Default; -},1577,[1576]); +},1602,[1601]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187287,7 +192871,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(BaseLayoutProvider); exports.LayoutProvider = LayoutProvider; -},1578,[1579]); +},1603,[1604]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187566,7 +193150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(LayoutManager); exports.WrapGridLayoutManager = WrapGridLayoutManager; -},1579,[1580]); +},1604,[1605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187614,7 +193198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(Error); exports.default = CustomError; -},1580,[]); +},1605,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187696,7 +193280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[1]).LayoutProvider); exports.GridLayoutProvider = GridLayoutProvider; -},1581,[1582,1578]); +},1606,[1607,1603]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -187798,7 +193382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).WrapGridLayoutManager); exports.GridLayoutManager = GridLayoutManager; -},1582,[1579]); +},1607,[1604]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -188626,7 +194210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemLayout: _$$_REQUIRE(_dependencyMap[13]).func, windowCorrectionConfig: _$$_REQUIRE(_dependencyMap[13]).object }; -},1583,[16,18,1584,1585,1580,1586,1587,1592,1593,1594,1575,1596,1598,1599,1578,1574,1573]); +},1608,[16,18,1609,1610,1605,1611,1612,1617,1618,1619,1600,1621,1623,1624,1603,1599,1598]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; var NAN = 0 / 0; @@ -188802,7 +194386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = debounce; -},1584,[]); +},1609,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -188833,7 +194417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.BaseItemAnimator = BaseItemAnimator; -},1585,[]); +},1610,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -188883,7 +194467,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; exports.default = RecyclerListViewExceptions; -},1586,[]); +},1611,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189313,7 +194897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = VirtualRenderer; -},1587,[1588,1575,1589,1590,1580,1586]); +},1612,[1613,1600,1614,1615,1605,1611]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189332,7 +194916,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = TSCast; -},1588,[]); +},1613,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189417,7 +195001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = RecycleItemPool; -},1589,[]); +},1614,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189784,7 +195368,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = ViewabilityTracker; -},1590,[1591]); +},1615,[1616]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189950,7 +195534,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = BinarySearch; -},1591,[1580]); +},1616,[1605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189962,7 +195546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CONTEXT_PROVIDER_OFFSET_KEY_SUFFIX: "_offset", CONTEXT_PROVIDER_LAYOUT_KEY_SUFFIX: "_layouts" }; -},1592,[]); +},1617,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -189976,7 +195560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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." }; -},1593,[]); +},1618,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190139,7 +195723,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[3]).default); exports.default = ScrollComponent; -},1594,[16,18,1588,1595]); +},1619,[16,18,1613,1620]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190194,7 +195778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); exports.default = BaseScrollComponent; -},1595,[16]); +},1620,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190358,7 +195942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[2]).default); exports.default = ViewRenderer; -},1596,[16,18,1597]); +},1621,[16,18,1622]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190443,7 +196027,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).ComponentCompat); exports.default = BaseViewRenderer; -},1597,[1598]); +},1622,[1623]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190524,12 +196108,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); exports.ComponentCompat = ComponentCompat; -},1598,[16]); +},1623,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { { module.exports = _$$_REQUIRE(_dependencyMap[0])(); } -},1599,[1600]); +},1624,[1625]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -190584,13 +196168,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactPropTypes.PropTypes = ReactPropTypes; return ReactPropTypes; }; -},1600,[1601]); +},1625,[1626]); __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; -},1601,[]); +},1626,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190637,7 +196221,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(React.Component); exports.default = BaseScrollView; -},1602,[16]); +},1627,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190689,7 +196273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.AutoScroll = AutoScroll; -},1603,[]); +},1628,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -190831,7 +196415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[0]).default); exports.default = ProgressiveListView; -},1604,[1583]); +},1629,[1608]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191386,7 +196970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hideKnob: _propTypes.default.bool, showClosingKnob: _propTypes.default.bool }); -},1605,[3,224,240,6,7,11,13,14,1361,582,1357,241,16,18,1606,1608,1563,1609,1409,1408,179,1613,1550,1556,1612]); +},1630,[3,224,240,6,7,11,13,14,1386,582,1382,241,16,18,1631,1633,1588,1634,1434,1433,179,1638,1575,1581,1637]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191458,7 +197042,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.agenda.main'] || {})); } -},1606,[18,1390,3,1607]); +},1631,[18,1415,3,1632]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191489,7 +197073,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } -},1607,[]); +},1632,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191516,7 +197100,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = WeekDaysNames; -},1608,[3,16,18,1408,179]); +},1633,[3,16,18,1433,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191846,7 +197430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ReservationList; -},1609,[3,6,7,11,13,14,1361,582,1357,16,18,1610,1611,1408,1550,179,1409]); +},1634,[3,6,7,11,13,14,1386,582,1382,16,18,1635,1636,1433,1575,179,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -191899,7 +197483,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, theme['stylesheet.agenda.list'] || {})); } -},1610,[18,1390]); +},1635,[18,1415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -192050,7 +197634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Reservation; -},1611,[3,6,7,11,13,14,1361,582,16,18,1610,1408,1556,179,1612]); +},1636,[3,6,7,11,13,14,1386,582,16,18,1635,1433,1581,179,1637]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var PREFIX = 'native.calendar'; module.exports = { @@ -192066,7 +197650,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" }; -},1612,[]); +},1637,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -192119,7 +197703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1613,[3,6,7]); +},1638,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -192766,17 +198350,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e closeOnDayPress: true }; ExpandableCalendar.positions = Positions; -},1614,[3,270,33,4,1615,1361,1560,1617,1357,16,18,1618,1608,1356,1563,1619,1620,1621,1388,1410,1411,1408,1409,1622,179]); +},1639,[3,270,33,4,1640,1386,1585,1642,1382,16,18,1643,1633,1381,1588,1644,1645,1646,1413,1435,1436,1433,1434,1647,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]); -},1615,[1616]); +},1640,[1641]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function head(array) { return array && array.length ? array[0] : undefined; } module.exports = head; -},1616,[]); +},1641,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var FUNC_ERROR_TEXT = 'Expected a function'; @@ -192801,7 +198385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = throttle; -},1617,[490,480]); +},1642,[490,480]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -192995,7 +198579,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) || {})); } -},1618,[18,1390,3,1388]); +},1643,[18,1415,3,1413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193122,7 +198706,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = Week; Week.displayName = 'Week'; -},1619,[3,4,1357,16,18,1507,1618,1412,1408,1550,1409,179,1562]); +},1644,[3,4,1382,16,18,1532,1643,1437,1433,1575,1434,179,1587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193434,7 +199018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WeekCalendar.displayName = 'WeekCalendar'; var _default = exports.default = WeekCalendar; -},1620,[3,22,240,33,4,1357,16,18,1618,1608,1619,1388,1621,1550,1561,1622,1408,1409,179]); +},1645,[3,22,240,33,4,1382,16,18,1643,1633,1644,1413,1646,1575,1586,1647,1433,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193446,7 +199030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var CalendarContext = _react.default.createContext({}); var _default = exports.default = CalendarContext; -},1621,[3,16]); +},1646,[3,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193464,7 +199048,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UpdateSources["WEEK_SCROLL"] = "weekScroll"; UpdateSources["PROP_UPDATE"] = "propUpdate"; })(UpdateSources || (exports.UpdateSources = UpdateSources = {})); -},1622,[]); +},1647,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193639,7 +199223,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return array; } -},1623,[3,578,4,33,16,18,1357,1568,1619,1608,1621,1618,1388,1622,1408,1550,179,1409]); +},1648,[3,578,4,33,16,18,1382,1593,1644,1633,1646,1643,1413,1647,1433,1575,179,1434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -193913,7 +199497,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 }; -},1624,[3,582,1532,1625,1361,1557,480,1357,16,18,1388,1618,1621,1627,179,1561,1622,1409,1408,1628,1556,1629]); +},1649,[3,582,1557,1650,1386,1582,480,1382,16,18,1413,1643,1646,1652,179,1586,1647,1434,1433,1653,1581,1654]); __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]); @@ -193921,7 +199505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = map; -},1625,[1362,1395,1626,1528]); +},1650,[1387,1420,1651,1553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseMap(collection, iteratee) { var index = -1, @@ -193935,7 +199519,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseMap; -},1626,[1359,1522]); +},1651,[1384,1547]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194261,7 +199845,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 }; -},1627,[3,22,33,4,582,1557,480,1568,1357,16,1618,1621,1388,1561,1622,1409,1408,1628,1556,1578,179,1629]); +},1652,[3,22,33,4,582,1582,480,1593,1382,16,1643,1646,1413,1586,1647,1434,1433,1653,1581,1603,179,1654]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194278,7 +199862,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return moment; }; -},1628,[516]); +},1653,[516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194303,7 +199887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: props.title }); }, areTextPropsEqual); -},1629,[3,1507,16,18,179]); +},1654,[3,1532,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194421,7 +200005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = exports.default = CalendarProvider; CalendarProvider.displayName = 'CalendarProvider'; -},1630,[3,33,1357,16,18,1618,1621,1631,1622,1561,1408,1409,179]); +},1655,[3,33,1382,16,18,1643,1646,1656,1647,1586,1433,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194581,7 +200165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _react.forwardRef)(TodayButton); -},1631,[3,33,1357,16,18,1618,1621,1408,1556,1622,1632,1633,1409,179]); +},1656,[3,33,1382,16,18,1643,1646,1433,1581,1647,1657,1658,1434,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -194593,7 +200177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "up", "type": "png" }); -},1632,[1210]); +},1657,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -194605,7 +200189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "down", "type": "png" }); -},1633,[1210]); +},1658,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194679,7 +200263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = asCalendarConsumer; -},1634,[3,6,7,11,13,14,16,398,1621,179]); +},1659,[3,6,7,11,13,14,16,398,1646,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -194884,14 +200468,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = _react.default.memo(Timeline); -},1635,[3,1636,1625,1639,1641,16,18,1388,1645,1646,1652,1653,1654,1556,1650,1651,179,1408]); +},1660,[3,1661,1650,1664,1666,16,18,1413,1670,1671,1677,1678,1679,1581,1675,1676,179,1433]); __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; -},1636,[1637,1419,1638]); +},1661,[1662,1444,1663]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseExtremum(array, iteratee, comparator) { var index = -1, @@ -194911,14 +200495,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseExtremum; -},1637,[482]); +},1662,[482]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function baseLt(value, other) { return value < other; } module.exports = baseLt; -},1638,[]); +},1663,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var MAX_SAFE_INTEGER = 9007199254740991; var MAX_ARRAY_LENGTH = 4294967295; @@ -194946,14 +200530,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = times; -},1639,[1400,1640,1398]); +},1664,[1425,1665,1423]); __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; -},1640,[1419]); +},1665,[1444]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; @@ -194967,7 +200551,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = groupBy; -},1641,[1642,1458]); +},1666,[1667,1483]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createAggregator(setter, initializer) { return function (collection, iteratee) { @@ -194978,7 +200562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createAggregator; -},1642,[1362,1643,1644,1528]); +},1667,[1387,1668,1669,1553]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, @@ -194993,7 +200577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = arrayAggregator; -},1643,[]); +},1668,[]); __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) { @@ -195004,7 +200588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseAggregator; -},1644,[1522]); +},1669,[1547]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195132,7 +200716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); } -},1645,[18,1390,3,1388]); +},1670,[18,1415,3,1413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195284,12 +200868,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = _react.default.memo(TimelineHours); -},1646,[3,1647,1639,16,18,1388,1650,1651,179]); +},1671,[3,1672,1664,16,18,1413,1675,1676,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var range = _$$_REQUIRE(_dependencyMap[0])(); module.exports = range; -},1647,[1648]); +},1672,[1673]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function createRange(fromRight) { return function (start, end, step) { @@ -195312,7 +200896,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = createRange; -},1648,[1527,1401,1649]); +},1673,[1552,1426,1674]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var nativeCeil = Math.ceil, nativeMax = Math.max; @@ -195331,7 +200915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = baseRange; -},1649,[]); +},1674,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195497,7 +201081,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }).filter(Boolean); } -},1650,[3,1569,1357,1388]); +},1675,[3,1594,1382,1413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195544,7 +201128,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var m = minutes != null ? minutes : now.getMinutes(); return (h + m / 60) * hourBlockHeight; } -},1651,[3,1357,1388,1408]); +},1676,[3,1382,1413,1433]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195611,7 +201195,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EventBlock; -},1652,[3,1357,16,18,179]); +},1677,[3,1382,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195650,7 +201234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NowIndicator; -},1653,[16,18,1651,1650,179]); +},1678,[16,18,1676,1675,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195693,7 +201277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; }; -},1654,[16]); +},1679,[16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195865,7 +201449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TimelineList; -},1655,[3,33,1617,1423,1656,16,1568,1621,1635,1657,1388,1622,1408,179]); +},1680,[3,33,1642,1448,1681,16,1593,1646,1660,1682,1413,1647,1433,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function dropRight(array, n, guard) { var length = array == null ? 0 : array.length; @@ -195880,7 +201464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = dropRight; -},1656,[1400,1505]); +},1681,[1425,1530]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -195972,7 +201556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = UseTimelinePages; -},1657,[3,33,16,1569,1639,480,1388,1408]); +},1682,[3,33,16,1594,1664,480,1413,1433]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196073,7 +201657,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cumulativeDuration = _ref3.cumulativeDuration, phase = _ref3.phase; }; -},1658,[3,33,6,7,11,13,14,16,179]); +},1683,[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 @@ -196093,7 +201677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = IcSearch; exports.default = _default; -},1659,[3,16,901]); +},1684,[3,16,958]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196356,7 +201940,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = TabBar; exports.default = _default; -},1660,[3,22,33,16,18,582,1017,1027]); +},1685,[3,22,33,16,18,582,1074,1077]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196385,7 +201969,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])); -},1661,[3,1662,1664,1663]); +},1686,[3,1687,1689,1688]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196495,7 +202079,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[6]).createNavigatorFactory)(MaterialTopTabNavigator); -},1662,[3,33,4,16,1178,1663,1039,179]); +},1687,[3,33,4,16,1228,1688,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196580,7 +202164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, sceneContainerStyle] })); } -},1663,[3,4,16,1664,179,1039,1669]); +},1688,[3,4,16,1689,179,1089,1694]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -196747,7 +202331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1664,[3,4,1665,16,18,1039,179,1669]); +},1689,[3,4,1690,16,18,1089,179,1694]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var skippedModels = ['keyword', 'gray', 'hex']; var hashedModelKeys = {}; @@ -197199,7 +202783,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = Color; -},1665,[1666,22,1192,33]); +},1690,[1691,22,1242,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var convert = {}; var models = Object.keys(_$$_REQUIRE(_dependencyMap[0])); @@ -197283,7 +202867,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); module.exports = convert; -},1666,[1667,1668]); +},1691,[1692,1693]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var reverseKeywords = {}; @@ -198132,7 +203716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; -},1667,[1193,33]); +},1692,[1243,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function buildGraph() { var graph = {}; @@ -198213,7 +203797,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return conversion; }; -},1668,[1667]); +},1693,[1692]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198258,7 +203842,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])); -},1669,[3,1670,1674,1673,1671,1684]); +},1694,[3,1695,1699,1698,1696,1709]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198656,7 +204240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},1670,[3,6,7,11,13,14,16,18,1671,1673,179]); +},1695,[3,6,7,11,13,14,16,18,1696,1698,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198919,7 +204503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},1671,[3,6,7,11,13,14,16,18,1672,179]); +},1696,[3,6,7,11,13,14,16,18,1697,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -198962,7 +204546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, rest)); } -},1672,[3,4,16,18,179]); +},1697,[3,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199122,7 +204706,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 2 } }); -},1673,[3,22,6,7,11,13,14,16,18,179]); +},1698,[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 @@ -199263,7 +204847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1674,[3,33,16,18,1670,1675,1676,179]); +},1699,[3,33,16,18,1695,1700,1701,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199412,7 +204996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: 'hidden' } }); -},1675,[3,6,7,11,13,14,16,18,179]); +},1700,[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 @@ -199425,7 +205009,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _PagerViewAdapter = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); -},1676,[3,1677]); +},1701,[3,1702]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199566,7 +205150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1677,[3,4,16,18,1678,1683,179]); +},1702,[3,4,16,18,1703,1708,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199574,7 +205158,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = undefined; var _default = exports.default = _$$_REQUIRE(_dependencyMap[0]).PagerView; -},1678,[1679]); +},1703,[1704]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199740,7 +205324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ref: ref })); }); -},1679,[3,4,6,7,11,13,14,16,18,1680,1681,179,1682]); +},1704,[3,4,6,7,11,13,14,16,18,1705,1706,179,1707]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199756,7 +205340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('RNCViewPager'); -},1680,[3,133,183]); +},1705,[3,133,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199772,7 +205356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = (0, _codegenNativeComponent.default)('LEGACY_RNCViewPager'); -},1681,[3,133,183]); +},1706,[3,133,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199815,7 +205399,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); }; -},1682,[16,18,179]); +},1707,[16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199839,7 +205423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return lazyRef.current; } -},1683,[16,18]); +},1708,[16,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -199901,7 +205485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, route.key); }; } -},1684,[3,4,6,7,11,13,14,16,179]); +},1709,[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 @@ -199909,7 +205493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.VERSION = undefined; var VERSION = "1.5.0"; exports.VERSION = VERSION; -},1685,[]); +},1710,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200003,7 +205587,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, null, null, [[1, 10]], Promise); } -},1686,[3,878,18,1030,884,880]); +},1711,[3,935,18,1080,941,937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200094,7 +205678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: null }, rest)); } -},1687,[3,4,591,16,1688,1030,1012]); +},1712,[3,4,590,16,1713,1080,1069]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200131,7 +205715,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])); -},1688,[3,1689,1690,1693,1694]); +},1713,[3,1714,1715,1718,1719]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200345,7 +205929,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, animationType: 'spring' }; -},1689,[3,4,6,7,11,13,14,16,582,18,179]); +},1714,[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 @@ -200567,7 +206151,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _withAnimation.default)(ProgressCircle); -},1690,[3,4,6,7,11,13,14,16,582,18,1691,1692,902,179]); +},1715,[3,4,6,7,11,13,14,16,582,18,1716,1717,959,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200682,7 +206266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeWidth: 0, direction: 'clockwise' }; -},1691,[3,4,6,7,11,13,14,16,582,179,902]); +},1716,[3,4,6,7,11,13,14,16,582,179,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -200837,7 +206421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e progress: 0 }, _AnimatedComponent; } -},1692,[3,6,7,11,13,14,16,582,18,179]); +},1717,[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 @@ -201052,7 +206636,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeCap: 'round', useNativeDriver: false }; -},1693,[3,4,6,7,11,13,14,16,582,18,1691,179,902]); +},1718,[3,4,6,7,11,13,14,16,582,18,1716,179,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201191,7 +206775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = (0, _withAnimation.default)(ProgressPie, 0.2); -},1694,[3,4,6,7,11,13,14,16,582,18,1695,1696,1692,902,179]); +},1719,[3,4,6,7,11,13,14,16,582,18,1720,1721,1717,959,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201272,7 +206856,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e strokeWidth: 0, direction: 'clockwise' }; -},1695,[3,4,6,7,11,13,14,16,582,179,902]); +},1720,[3,4,6,7,11,13,14,16,582,179,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201357,7 +206941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e left: 0 } }; -},1696,[3,4,6,7,11,13,14,16,582,179,902]); +},1721,[3,4,6,7,11,13,14,16,582,179,959]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201436,7 +207020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function jsInjectionOnActiveWebViews(payload) { _$$_REQUIRE(_dependencyMap[4]).EventRegister.emit(_events.default.JS_INJECTION, payload); } -},1697,[877,3,896,1037,1028]); +},1722,[934,3,953,1087,1078]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -201529,12190 +207113,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])); -},1698,[3,1151,883,1268,1152,1153,1156,1157,1159,1154,1161,888]); -__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); -},1699,[3,270,6,7,11,13,14,824,1700,438,1702]); -__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 {}; - } -},1700,[820,3,434,630,438,1701]); -__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" - }; -},1701,[]); -__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); -},1702,[3,6,7,11,13,14,1703,434,438,1705]); -__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 = {}; -},1703,[3,270,6,7,818,1704]); -__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"; -},1704,[]); -__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); -},1705,[3,6,7,11,85,13,14,438,1706]); -__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__; - } - }]); - }(); -},1706,[3,6,7,1707]); -__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; -},1707,[3,270,6,7,18,406,824,1708,438,1713,1700]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.WEBVIEW_BASE_URL = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var UNIVERSAL_LINKS_SUPPORTED_PATHS = ["load", "start", "ul"]; - var WEBVIEW_BASE_URL = exports.WEBVIEW_BASE_URL = "http://localhost/"; - - var WebUtils = exports.default = function () { - function WebUtils() { - (0, _classCallCheck2.default)(this, WebUtils); - } - - return (0, _createClass2.default)(WebUtils, null, [{ - key: "isExternalUrl", - value: function isExternalUrl(url) { - var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url), - protocol = _StringUtils$segmentU.protocol, - getParams = _StringUtils$segmentU.getParams, - anchorParams = _StringUtils$segmentU.anchorParams; - - if (protocol && protocol.startsWith("xhttp")) { - return true; - } - - if (getParams && (_$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(getParams, "xhttp") || _$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(getParams, "xhttps"))) { - return true; - } - - if (anchorParams && (_$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(anchorParams, "xhttp") || _$$_REQUIRE(_dependencyMap[4]).JSUtils.hasProperty(anchorParams, "xhttps"))) { - return true; - } - - return false; - } - }, { - key: "parseUniversalLink", - value: function parseUniversalLink(url) { - if (!url) { - return undefined; - } - - if (url.indexOf("?") === -1) { - for (var i = 0; i < UNIVERSAL_LINKS_SUPPORTED_PATHS.length; i++) { - if (url.indexOf("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/") !== -1) { - url = url.replace("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/", "/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/?"); - break; - } - } - } - - var info = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url); - - var domain = info.domain, - getParams = info.getParams; - var path = info.path; - - if (!path) { - path = domain; - } - - path = path.replace(/\//g, ""); - - if (!UNIVERSAL_LINKS_SUPPORTED_PATHS.includes(path)) { - return undefined; - } - - var params = getParams || {}; - params.schemaURL = url; - params.schemaPath = path; - - if (params.machine) { - if (_$$_REQUIRE(_dependencyMap[4]).StringUtils.isTecnaviaHTTPDomain(params.machine)) { - var oldMachine = params.machine; - params.machine = _$$_REQUIRE(_dependencyMap[4]).StringUtils.convertNewsmemoryDomainToHTTPS(oldMachine); - params.schemaURL = url.replace("machine=" + oldMachine, "machine=" + params.machine); - params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(oldMachine), "machine=" + params.machine); - } else { - params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(params.machine), "machine=" + params.machine); - } - } - - return params; - } - }, { - key: "replacePlaceHolder", - value: function replacePlaceHolder(html, width, height) { - var result = html; - - if (result) { - if (result.includes("##width##")) { - result = result.replace(/##width##/g, width); - } - - if (result.includes("##height##")) { - result = result.replace(/##height##/g, height); - } - } - - return result; - } - }, { - key: "addViewportScaleStyles", - value: function addViewportScaleStyles(html, left, top, zoom, bgColor) { - var scaleStyleString = "\n body {\n position: absolute;\n margin: auto;\n display: table;\n left: " + left + "px;\n top: " + top + "px;\n transform: scale(" + zoom + ");\n background: " + bgColor + ";\n }"; - return WebUtils.addViewportStyles(html, scaleStyleString); - } - }, { - key: "prependToHead", - value: function prependToHead(html, replacement) { - var result; - - if (html.indexOf("") !== -1) { - result = html.replace("", "" + replacement); - } else { - result = html.replace("", "" + replacement + ""); - } - - return result; - } - }, { - key: "appendToHead", - value: function appendToHead(html, replacement) { - var result; - - if (html.indexOf("") !== -1) { - result = html.replace("", replacement + ""); - } else { - result = html.replace("", "" + replacement + ""); - } - - return result; - } - }, { - key: "addViewportStyles", - value: function addViewportStyles(html) { - var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; - var result = html; - - if (result) { - var replacement = "\n "; - - if (style) { - replacement += "\n "; - } - - replacement += "\n "; - result = WebUtils.appendToHead(html, replacement); - } - - return result; - } - }, { - key: "getZoom", - value: function getZoom(width, height, webviewWidth, webviewHeight) { - var adWidth = width > 0 ? width : 1; - var adHeight = height > 0 ? height : 1; - var scaleX = webviewWidth / adWidth; - var scaleY = webviewHeight / adHeight; - var scale = scaleX > scaleY ? scaleY : scaleX; - return Math.round(scale * 10) / 10; - } - }, { - key: "getJSToZoomContent", - value: function getJSToZoomContent(left, top, zoom) { - var js = "\n document.body.style.position = 'absolute';\n document.body.style.left = '" + left + "px';\n document.body.style.top = '" + top + "px';\n document.body.style.transform = 'scale(" + zoom + ")'"; - return js; - } - }, { - key: "getJSToCenterContent", - value: function getJSToCenterContent(bgColor) { - var js = "\n document.body.style.margin = 'auto';\n document.body.style.display = 'table';\n document.body.style.background = '" + bgColor + "';"; - return js; - } - }, { - key: "setupHtmlForWebView", - value: function setupHtmlForWebView(html) { - var result = html; - - if (result) { - result = this.addTags(result, "body"); - result = this.addTags(result, "html"); - } - - return result; - } - }, { - key: "addTags", - value: function addTags(html, tag) { - var result = html; - - if (!result.includes("<" + tag)) { - result = "<" + tag + ">".concat(result) + " "; - } - - if (!result.includes("")) { - result = result.concat(""); - } - - return result; - } - }, { - key: "addViewport", - value: function addViewport() { - var js = "\n var meta = document.createElement('meta');\n meta.name = 'viewport';\n meta.content = 'width=device-width, initial-scale=1';\n document.getElementsByTagName('head')[0].appendChild(meta);"; - return js; - } - }, { - key: "replaceHttpWithHttps", - value: function replaceHttpWithHttps(html) { - if (!html) { - return ""; - } - - var regExp = /http:\/\/([a-zA-Z0-9.]+)\.newsmemory\.com/; - var matcher; - - do { - matcher = regExp.exec(html); - - if (matcher) { - var originalUrl = matcher[0]; - var subDomainHttp = matcher[1]; - var subDomainHttps = subDomainHttp.replace(/\./g, "-"); - var urlHttps = originalUrl.replace("http", "https").replace(subDomainHttp, subDomainHttps); - html = html.replace(originalUrl, urlHttps); - } - } while (matcher !== null); - - return html; - } - }, { - key: "getRonDinoViewPort", - value: function getRonDinoViewPort(width) { - return "\n var myCustomViewport = 'width=" + width + ", initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\n var viewportElement = document.querySelector('meta[name=viewport]');\n if (viewportElement) {\n viewportElement.content = myCustomViewport;\n } else {\n viewportElement = document.createElement('meta');\n viewportElement.name = 'viewport';\n viewportElement.content = myCustomViewport;\n document.getElementsByTagName('head')[0].appendChild(viewportElement);\n };"; - } - }, { - key: "getImagesInsidePage", - value: function getImagesInsidePage() { - return "\n (function getImagesInsidePage() {\n const images = document.getElementsByTagName('img');\n const sources = [];\n for(let i=0; i < images.length; i++){\n sources.push(images[i].src);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: sources, type: 'GET_RESOURCES' }));\n })();"; - } - }, { - key: "replaceResourcesInPage", - value: function replaceResourcesInPage(newSources) { - return "\n (function getImagesInsidePage(newSources) {\n const parsed = JSON.parse(newSources);\n const images = document.getElementsByTagName('img');\n for(let i=0; i < images.length; i++){\n if(parsed[images[i].src]){\n images[i].src = parsed[images[i].src];\n }\n }\n })('" + JSON.stringify(newSources) + "')"; - } - }, { - key: "addSafeAreaToWebView", - value: function addSafeAreaToWebView() { - var _DeviceUtils$getSafeA = _deviceUtils.default.getSafeAreaInsets(), - top = _DeviceUtils$getSafeA.top, - bottom = _DeviceUtils$getSafeA.bottom; - - return "(function() { \n document.body.style.marginTop='" + top + "px'; \n document.body.style.marginBottom='" + bottom + "px'; \n })();"; - } - }, { - key: "replaceUrlPlaceHolder", - value: function replaceUrlPlaceHolder(url) { - var PLACEHOLDER_SUBSCRIPTION_TYPE = "##PAYWALL_SUBSCRIPTION_TYPE#"; - var PLACEHOLDER_MACHINE_ID = "##MACHINEID#"; - var PLACEHOLDER_WORDPRESS_TOKEN = "##WORDPRESS_TOKEN#"; - var subscription = ""; - - if (!url.includes("?")) { - url += "?"; - } - - if (url.includes(PLACEHOLDER_SUBSCRIPTION_TYPE)) { - url = url.replace(PLACEHOLDER_SUBSCRIPTION_TYPE, subscription); - } else { - url = url + "&subType=" + subscription; - } - - if (url.includes(PLACEHOLDER_MACHINE_ID)) { - url = url.replace(PLACEHOLDER_MACHINE_ID, global.machineId); - } else { - url = url + "&MACHINEID=" + global.machineId; - } - - if (url.includes(PLACEHOLDER_WORDPRESS_TOKEN)) { - url = url.replace(PLACEHOLDER_WORDPRESS_TOKEN, WebUtils.secretTokenForWordpress()); - } - - return url; - } - }, { - key: "secretTokenForWordpress", - value: function secretTokenForWordpress() { - var unixTimestamp = new Date().getTime(); - return _$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5(_$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5("TecnaviaSecret") + global.machineId) + "_" + _$$_REQUIRE(_dependencyMap[4]).StringUtils.getHexOfAsciiOfLong(unixTimestamp / 1000); - } - }, { - key: "getTargetBlankPatch", - value: function getTargetBlankPatch() { - return "\n Array.from(document.querySelectorAll('a[target=\"_blank\"]')).forEach(link => link.removeAttribute('target'));"; - } - }, { - key: "getThemeClassesScript", - value: function getThemeClassesScript() { - var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); - - if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { - return ""; - } - - var args = themeClasses.reduce(function (prev, current) { - return prev ? prev + ", '" + current + "'" : "'" + current + "'"; - }, ""); - return "document.body.classList.add(" + args + ");"; - } - }, { - key: "getThemeClassesAttribute", - value: function getThemeClassesAttribute() { - var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); - - if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { - return ""; - } - - return " class='" + themeClasses.join(" ") + "'"; - } - }]); - }(); -},1708,[3,6,7,434,438,1709]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Css = 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 RnCss = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _deviceUtils = _$$_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; } - - 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 _RnCss$default = RnCss.default, - Consumer = _RnCss$default.Consumer, - Provider = _RnCss$default.Provider; - - var getDeviceInfo = function getDeviceInfo() { - return { - isPortrait: _deviceUtils.default.isPortrait(), - isTablet: _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet(), - isDark: _deviceUtils.default.isDark() - }; - }; - - var CssProvider = function (_React$Component) { - function CssProvider() { - (0, _classCallCheck2.default)(this, CssProvider); - return _callSuper(this, CssProvider, arguments); - } - - (0, _inherits2.default)(CssProvider, _React$Component); - return (0, _createClass2.default)(CssProvider, [{ - key: "render", - value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Provider, Object.assign({}, this.props)); - } - }]); - }(_react.default.Component); - - var Css = exports.Css = function (_React$Component2) { - function Css() { - (0, _classCallCheck2.default)(this, Css); - return _callSuper(this, Css, arguments); - } - - (0, _inherits2.default)(Css, _React$Component2); - return (0, _createClass2.default)(Css, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.onSizeChangeId = _$$_REQUIRE(_dependencyMap[13]).EventRegister.addEventListener(_events.default.ON_ORIENTATION_CHANGE, function () { - RnCss.default.set(Object.assign({}, getDeviceInfo())); - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.onSizeChangeId) { - _$$_REQUIRE(_dependencyMap[13]).EventRegister.rm(this.onSizeChangeId); - } - } - }, { - key: "render", - value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Consumer, Object.assign({}, this.props)); - } - }], [{ - key: "flatten", - value: function flatten(styles, classes) { - var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return RnCss.CssHelper.flatten(styles, classes, attributes); - } - }, { - key: "getStyleByCssClasses", - value: function getStyleByCssClasses() { - var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return RnCss.CssHelper.getStyle(classes, attributes); - } - }, { - key: "getStyleObjByCssClasses", - value: function getStyleObjByCssClasses() { - var classes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return RnCss.CssHelper.getStyleObj(classes, attributes); - } - }, { - key: "getActiveTheme", - value: function getActiveTheme() { - return RnCss.CssHelper.getActiveThemeId(); - } - }, { - key: "getThemeInUse", - value: function getThemeInUse() { - return RnCss.CssHelper.getInUseThemeId(); - } - }, { - key: "getThemeClasses", - value: function getThemeClasses() { - var theme = Css.getThemeInUse(); - - if (!theme) { - return []; - } - - var themeClasses = Css.isDarkTheme() ? "isDarkTheme" : "isLightTheme"; - return [theme, themeClasses]; - } - }, { - key: "getThemes", - value: function getThemes() { - return RnCss.CssHelper.getThemes(); - } - }, { - key: "arrayToObject", - value: function arrayToObject(styles) { - return RnCss.CssHelper.arrayToObject(styles); - } - }, { - key: "applyCustomStyles", - value: function applyCustomStyles() { - var otherStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var merged = RnCss.CssHelper.mergeRnStyles((0, _$$_REQUIRE(_dependencyMap[14]).getDefaultStyles)(), otherStyles, (0, _$$_REQUIRE(_dependencyMap[15]).getDebugStyles)()); - var activeTheme = Css.getUserTheme() || RnCss.CssHelper.getDefaultTheme(merged); - RnCss.default.set(Object.assign({ - rnStyles: merged - }, getDeviceInfo(), { - activeTheme: activeTheme - })); - } - }, { - key: "updateCustomStyles", - value: function () { - var _updateCustomStyles = (0, _asyncToGenerator2.default)(function* (newTheme) { - var oldTheme = Css.getUserTheme(); - - if (newTheme !== oldTheme) { - yield global.getNewsmemoryConfig().setTheme(newTheme); - RnCss.default.set({ - activeTheme: newTheme - }); - return true; - } - - return false; - }); - - function updateCustomStyles(_x) { - return _updateCustomStyles.apply(this, arguments); - } - - return updateCustomStyles; - }() - }, { - key: "getUserTheme", - value: function getUserTheme() { - var _global$getNewsmemory = global.getNewsmemoryConfig(), - cssTheme = _global$getNewsmemory.cssTheme; - - return cssTheme; - } - }, { - key: "getDefaultBackgroundColor", - value: function getDefaultBackgroundColor() { - var _RnCss$CssHelper$getA = RnCss.CssHelper.getActiveBaseColors(), - background = _RnCss$CssHelper$getA.background; - - if (background) { - return background; - } - - return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.grey1010 : _$$_REQUIRE(_dependencyMap[11]).colors.white; - } - }, { - key: "getAlternateDefaultBackgroundColor", - value: function getAlternateDefaultBackgroundColor() { - var _RnCss$CssHelper$getA2 = RnCss.CssHelper.getActiveBaseColors(), - alternateBackground = _RnCss$CssHelper$getA2.alternateBackground; - - if (alternateBackground) { - return alternateBackground; - } - - return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.grey1200 : _$$_REQUIRE(_dependencyMap[11]).colors.grey200; - } - }, { - key: "getDefaultForegroundColor", - value: function getDefaultForegroundColor() { - var _RnCss$CssHelper$getA3 = RnCss.CssHelper.getActiveBaseColors(), - foreground = _RnCss$CssHelper$getA3.foreground; - - if (foreground) { - return foreground; - } - - return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.white_transparent_135 : _$$_REQUIRE(_dependencyMap[11]).colors.black; - } - }, { - key: "getDefaultSearchColor", - value: function getDefaultSearchColor() { - var _RnCss$CssHelper$getA4 = RnCss.CssHelper.getActiveBaseColors(), - search = _RnCss$CssHelper$getA4.search; - - if (search) { - return search; - } - - return _$$_REQUIRE(_dependencyMap[16]).SEARCH_COLOR; - } - }, { - key: "isDarkTheme", - value: function isDarkTheme() { - return RnCss.CssHelper.isActiveThemeDark(); - } - }, { - key: "isAutomaticTheme", - value: function isAutomaticTheme() { - return RnCss.CssHelper.isActiveThemeAutomatic(); - } - }, { - key: "resolvePlaceholders", - value: function resolvePlaceholders() { - var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return RnCss.CssHelper.resolvePlaceholders(style, params); - } - }]); - }(_react.default.Component); - - Css.Provider = CssProvider; - Css.use = RnCss.useCss; -},1709,[3,270,6,7,11,13,14,1018,16,436,434,438,179,564,1710,1712,1711]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getDefaultStyles = getDefaultStyles; - - function getDefaultStyles() { - return { - base: { - colors: { - foreground: _$$_REQUIRE(_dependencyMap[0]).colors.black, - background: _$$_REQUIRE(_dependencyMap[0]).colors.white, - alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey200, - search: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR - }, - styles: { - "newsmemory-article-container-splitscreen": { - borderColor: _$$_REQUIRE(_dependencyMap[0]).colors.articleContainerBorderColor, - landscape: { - borderLeftWidth: 1 - }, - portrait: { - borderTopWidth: 1 - } - }, - "newsmemory-thumbnail-download-icon-disabled": { - color: _$$_REQUIRE(_dependencyMap[0]).colors.md_grey_400 - }, - "drawer-item-icon-publications": { - tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.black, - width: 32.5, - height: 25 - }, - "newsmemory-article-header-icon-toggleArticleExtra": { - tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.white - }, - "newsmemory-article-mode-header-search": { - backgroundColor: "{search}" - }, - "newsmemory-index-accessibility-text": { - color: _$$_REQUIRE(_dependencyMap[0]).colors.md_blue_600 - } - } - }, - baseDark: { - colors: { - foreground: _$$_REQUIRE(_dependencyMap[0]).colors.white_transparent_135, - background: _$$_REQUIRE(_dependencyMap[0]).colors.grey1010, - alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey1200 - }, - styles: { - spinner: { - color: "{foreground}" - }, - "hint-progress-spinner": { - color: "{alternateBackground}" - }, - "hint-progress-spinner-text": { - color: "{alternateBackground}" - }, - "newsmemory-article-container": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-article-container-splitscreen": { - borderColor: "{foreground}" - }, - "newsmemory-index-item-image": { - borderColor: "{foreground}" - }, - "newsmemory-article-footer-separator": { - backgroundColor: "{foreground}" - }, - "newsmemory-article-header-separator": { - backgroundColor: "{foreground}" - }, - "newsmemory-article-mode-sub-header": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-article-mode-sub-header-info": { - color: "{foreground}" - }, - "newsmemory-article-mode-sub-header-section": { - color: "{foreground}" - }, - "newsmemory-article-refresh-control": { - backgroundColor: "{alternateBackground}", - color: "{foreground}" - }, - "newsmemory-article-text": { - backgroundColor: "{background}" - }, - "newsmemory-article-zoom-level-parent": { - backgroundColor: "{background}" - }, - "newsmemory-article-zoom-level-text": { - color: "{foreground}" - }, - "newsmemory-copyright-footer": { - backgroundColor: "{background}" - }, - "newsmemory-copyright-text": { - color: "{foreground}" - }, - "newsmemory-download-circle": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-download-circle-text": { - textShadowOffset: { - height: 0, - width: 0 - }, - textShadowRadius: 0, - color: "{foreground}" - }, - "newsmemory-footer": { - backgroundColor: "{alternateBackground}", - borderColor: "{foreground}" - }, - "newsmemory-footer-element-active": { - backgroundColor: "{foreground}" - }, - "newsmemory-footer-element-inactive": { - color: "{foreground}", - tintColor: "{foreground}" - }, - "newsmemory-footer-icon": { - color: "{foreground}", - tintColor: "{foreground}" - }, - "newsmemory-footer-icon-active": { - color: "{alternateBackground}", - tintColor: "{alternateBackground}" - }, - "newsmemory-footer-more-icon": { - color: "{foreground}", - tintColor: "{foreground}" - }, - "newsmemory-footer-more-menu": { - color: "{alternateBackground}" - }, - "newsmemory-footer-more-menu-text": { - color: "{foreground}" - }, - "newsmemory-footer-text": { - color: "{foreground}" - }, - "newsmemory-footer-text-active": { - color: "{alternateBackground}" - }, - "newsmemory-index-container": { - backgroundColor: "{background}" - }, - "newsmemory-index-first-level-page": { - color: "{foreground}" - }, - "newsmemory-index-first-level-section": { - color: "{foreground}" - }, - "newsmemory-index-second-level-text": { - color: "{foreground}" - }, - "newsmemory-index-second-level-bullet": { - color: "{foreground}" - }, - "newsmemory-index-second-level-page": { - color: "{foreground}" - }, - "newsmemory-index-second-level-title": { - color: "{foreground}" - }, - "newsmemory-index-text": { - color: "{foreground}" - }, - "newsmemory-navigation-text": { - color: "{foreground}" - }, - "newsmemory-navigation-text-parent": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-pages-container": { - backgroundColor: "{background}" - }, - "newsmemory-screen": { - backgroundColor: "{alternateBackground}", - color: "{foreground}" - }, - "newsmemory-article-mode-header-search": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-search": { - color: "{foreground}" - }, - "newsmemory-search-container": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-search-header-container": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-search-input": { - backgroundColor: "{background}", - borderColor: "{alternateBackground}", - color: "{foreground}" - }, - "newsmemory-search-list": { - backgroundColor: "{background}" - }, - "newsmemory-separator": { - backgroundColor: "{foreground}" - }, - "newsmemory-thumbnail-download-icon": { - color: "{foreground}" - }, - "newsmemory-thumbnails-container": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-thumbnails-page-text": { - backgroundColor: "{alternateBackground}", - color: "{foreground}" - }, - "newsmemory-thumbnails-page-text-selected": { - backgroundColor: _$$_REQUIRE(_dependencyMap[0]).colors.grey400, - color: "{alternateBackground}", - borderWidth: 1, - borderColor: "{alternateBackground}" - }, - "newsmemory-thumbnails-pages": { - borderColor: "{foreground}" - }, - "newsmemory-thumbnails-pages-selected": { - borderColor: "{alternateBackground}" - }, - "newsmemory-thumbnails-section-container": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-thumbnails-section-content": { - backgroundColor: "{background}" - }, - "newsmemory-thumbnails-section-text": { - color: "{foreground}" - }, - "system-newsmemory-navigation-bar": { - backgroundColor: "{alternateBackground}" - }, - "system-newsmemory-status-bar": { - backgroundColor: "{background}" - }, - optionspage: { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-search-close-icon": { - opacity: 0.6 - }, - "newsmemory-article-header-icon": { - opacity: 0.6, - src: "default" - }, - "newsmemory-index-header-icon": { - opacity: 0.6, - src: "default" - }, - "optionspage-specialsections-close-icon": { - opacity: 0.6 - }, - "rss-tab-item": { - backgroundColor: "{background}" - }, - "rss-tab-item-text-inactive": { - color: "{foreground}" - }, - "rss-content-parent": { - backgroundColor: "{alternateBackground}" - }, - "rss-content": { - backgroundColor: "{alternateBackground}" - }, - "rss-footer-element": { - backgroundColor: "{background}" - }, - "tile-title": { - color: "{foreground}" - }, - "tile-grid-image-title": { - color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 - }, - "tile-grid-title-epaper": { - color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 - }, - "tile-card-title-epaper": { - color: "{foreground}" - }, - "tile-summary": { - color: "{foreground}" - }, - "tile-header-text-part": { - color: "{foreground}" - }, - "tile-grid-image-header-text": { - color: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 - }, - "tile-halfbox-text": { - color: "{foreground}" - }, - "article-pager": { - backgroundColor: "{alternateBackground}" - }, - "article-container": { - backgroundColor: "{alternateBackground}" - }, - "article-header": { - backgroundColor: "{alternateBackground}" - }, - "article-top-content": { - backgroundColor: "{alternateBackground}" - }, - "article-header-image-date": { - color: "{foreground}" - }, - "article-title": { - color: "{foreground}" - }, - "article-body": { - backgroundColor: "{alternateBackground}", - color: "{foreground}" - }, - "article-body-parent": { - backgroundColor: "{background}" - }, - "rss-drawer": { - backgroundColor: "{background}" - }, - "drawer-item-parent-inactive": { - backgroundColor: "{background}" - }, - "drawer-item-text-inactive": { - color: "{foreground}" - }, - "icon-gallery": { - tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.grey300 - }, - "settings-screen": { - backgroundColor: "{alternateBackground}" - }, - "newsmemory-article-caption": { - color: "{foreground}" - }, - "navigation-icon": { - color: "{foreground}" - }, - "rss-button": { - backgroundColor: "{background}" - }, - "rss-button-icon": { - color: "{foreground}" - }, - "epaper-logo-image": { - filters: [{ - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE - }, { - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT - }] - }, - "navigation-header-logo": { - filters: [{ - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE - }, { - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT - }] - }, - "drawer-header-logo": { - filters: [{ - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE - }, { - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT - }] - }, - "drawer-item-icon": { - filters: [{ - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE - }, { - filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT - }], - image: "inherit" - } - } - }, - themes: { - default: { - automatic: 1, - dark: 0, - default: 1, - name: global.strings("theme_light"), - styles: {} - }, - darkTheme: { - automatic: 1, - dark: 1, - default: 0, - name: global.strings("theme_dark"), - styles: {} - }, - automatic: { - name: global.strings("theme_auto") - } - } - }; - } -},1710,[438,1711,620]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.TITLE_SIZE = exports.SUB_HEADER_HEIGHT = exports.SEARCH_TEXT_SIZE = exports.SEARCH_COLOR = exports.PAGE_SIZE = exports.LOGO_PARENT_HEIGHT = exports.LOGO_HEIGHT = exports.LIST_TITLE_SIZE = exports.LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_PADDING = exports.LIST_ITEM_HEIGHT = exports.INFO_SIZE = exports.HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_DURATION = exports.HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PADDING = exports.HEADER_HR_SIZE = exports.HEADER_HEIGHT = exports.HEADER_FONT_SIZE = exports.HEADER_BUTTON_SIZE = exports.HEADER_BG_COLOR = exports.FOOTER_FONT_SIZE = undefined; - var HEADER_HEIGHT = exports.HEADER_HEIGHT = 50; - var HEADER_PADDING = exports.HEADER_PADDING = 10; - var SUB_HEADER_HEIGHT = exports.SUB_HEADER_HEIGHT = 40; - - var HEADER_BG_COLOR = exports.HEADER_BG_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.black; - - var HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_SIZE = 45; - var HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PARENT_BUTTON_PADDING = 7.5; - var HEADER_BUTTON_SIZE = exports.HEADER_BUTTON_SIZE = 30; - var HEADER_HR_SIZE = exports.HEADER_HR_SIZE = 1; - var HEADER_FONT_SIZE = exports.HEADER_FONT_SIZE = 18; - var LOGO_PARENT_HEIGHT = exports.LOGO_PARENT_HEIGHT = 50; - var LOGO_HEIGHT = exports.LOGO_HEIGHT = "100%"; - var LIST_TITLE_SIZE = exports.LIST_TITLE_SIZE = 18; - var LIST_ITEM_HEIGHT = exports.LIST_ITEM_HEIGHT = 50; - var LIST_ITEM_PADDING = exports.LIST_ITEM_PADDING = 6; - var LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_HEIGHT = 0.5; - - var LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_SEPARATOR_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.grey300; - - var TITLE_SIZE = exports.TITLE_SIZE = 22; - var PAGE_SIZE = exports.PAGE_SIZE = 22; - var INFO_SIZE = exports.INFO_SIZE = 16; - var SEARCH_TEXT_SIZE = exports.SEARCH_TEXT_SIZE = 16; - - var SEARCH_COLOR = exports.SEARCH_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.md_red_400; - - var FOOTER_FONT_SIZE = exports.FOOTER_FONT_SIZE = 16; - var HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = 5000; - var HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_TIMER = 3000; - var HIDE_ANIMATION_DURATION = exports.HIDE_ANIMATION_DURATION = 1000; -},1711,[438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getDebugStyles = getDebugStyles; - - function getDebugStyles() { - if (global.cssDebug) { - return {}; - } - - return {}; - } -},1712,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FontContext = exports.DebugOperation = exports.DebugContext = undefined; - exports.addDebugOperation = addDebugOperation; - exports.resetDebugOperations = resetDebugOperations; - exports.setDebugOperationsEnabled = setDebugOperationsEnabled; - exports.setFonts = setFonts; - exports.useDebugContext = useDebugContext; - exports.useFonts = useFonts; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var FontContext = exports.FontContext = (0, _$$_REQUIRE(_dependencyMap[3]).createReactiveContext)({ - fontBold: undefined, - fontMedium: undefined, - fontRegular: undefined, - allowFontScaling: true - }); - - function useFonts() { - return (0, _$$_REQUIRE(_dependencyMap[3]).useReactiveContext)(FontContext).state; - } - - function setFonts() { - var fonts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - FontContext.set(fonts); - } - - var DebugOperation = exports.DebugOperation = function () { - function DebugOperation(prefix, text, type) { - (0, _classCallCheck2.default)(this, DebugOperation); - this.prefix = prefix; - this.text = text; - this.type = type || "startup"; - this.timestamp = new Date().getTime(); - } - - return (0, _createClass2.default)(DebugOperation, [{ - key: "getTimestamp", - value: function getTimestamp() { - return this.timestamp; - } - }, { - key: "getType", - value: function getType() { - return this.type; - } - }, { - key: "toString", - value: function toString() { - if (!this.text) { - return this.prefix; - } - - return this.prefix + " - " + this.text; - } - }]); - }(); - - var DebugContext = exports.DebugContext = (0, _$$_REQUIRE(_dependencyMap[3]).createReactiveContext)({ - enabled: false, - lastOperation: undefined - }); - - function useDebugContext() { - return (0, _$$_REQUIRE(_dependencyMap[3]).useReactiveContext)(DebugContext).state; - } - - function setDebugOperationsEnabled(enabled) { - global.enableDebugger = enabled; - DebugContext.set({ - enabled: enabled - }); - } - - function addDebugOperation(prefix, text, type) { - if (global.enableDebugger) { - try { - DebugContext.set({ - enabled: true, - lastOperation: new DebugOperation(prefix, text, type) - }); - } catch (e) {} - } - } - - function resetDebugOperations() { - DebugContext.set({ - lastOperation: undefined - }); - } -},1713,[3,6,7,1020]); -__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); -},1714,[3,4,270,22,6,7,11,13,14,824,1700,438,1702]); -__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); -},1715,[3,270,6,7,11,13,14,407,1700,1706]); -__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); -},1716,[3,6,7,11,13,14,824,1700,1701,1705]); -__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); -},1717,[3,270,6,7,11,13,14,820,824,1700,1705]); -__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); -},1718,[3,6,7,11,13,14,820,824,1700,438,1705]); -__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); -},1719,[3,270,6,7,11,85,13,14,436,824,1700,438,1701,1705]); -__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); -},1720,[3,4,6,7,11,85,13,14,824,1700,438,1705]); -__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); -},1721,[3,270,6,7,11,13,14,824,1700,1705]); -__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); -},1722,[3,4,6,7,11,13,14,820,436,824,1700,564,438,1705]); -__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); -},1723,[3,4,6,7,11,13,14,824,1700,1701,438,1705]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = 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 _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _PaywallAJAX = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _excluded = ["user"]; - - 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 Paywall = exports.default = function () { - function Paywall() { - (0, _classCallCheck2.default)(this, Paywall); - } - - return (0, _createClass2.default)(Paywall, null, [{ - key: "setContainerInstance", - value: function setContainerInstance(instance) { - Paywall.containerInstance = instance; - } - }, { - key: "initConfig", - value: function () { - var _initConfig = (0, _asyncToGenerator2.default)(function* () { - var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; - - _PaywallHelper.default.setStorageName("paywall_" + appId); - - var config = yield _PaywallHelper.default.getConfig(); - - if (config) { - Paywall.config = config; - } - }); - - function initConfig() { - return _initConfig.apply(this, arguments); - } - - return initConfig; - }() - }, { - key: "setConfig", - value: function setConfig(config) { - Paywall.config = config; - - _PaywallHelper.default.setConfig(config); - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; - var strictMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - if (!appId) { - return false; - } - - Paywall.appId = appId; - yield Paywall.initConfig(); - yield _PaywallLoginStatus.default.initUserStatus(); - - _PaywallAJAX.default.init(appId); - - Paywall.strictMode = strictMode; - Paywall.registerToConnectivityChangeEvent(); - Paywall.firstProductsLeftPopupShown = yield Paywall.isFirstProductsLeftPopupAlreadyShown(); - - if (_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { - var result = yield Paywall.downloadConfiguration(); - - if (Paywall.initialize) { - Paywall.checkOfflineAccessedProducts(); - - if (_PaywallLoginStatus.default.isUserLoggedIn()) { - if (_PaywallLoginStatus.default.isLoginInvalid()) { - Paywall.logout(); - } else { - Paywall.validateUser(); - } - } else { - Paywall.updateAccountLabel(false); - - if (!Paywall.autoLogin()) { - var show_welcome_popup = Paywall.config.show_welcome_popup; - - if (show_welcome_popup == 1) { - if (!Paywall.isWelcomePopupAlreadyShown()) { - Paywall.welcome(); - } - } - } - } - } - - return result; - } - - if (Paywall.config) { - var sessionString = Paywall.config.sessionString; - - if (sessionString) { - Paywall.initialize = true; - Paywall.updateAccountLabel(_PaywallLoginStatus.default.isUserLoggedIn()); - } - } - - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "checkOfflineAccessedProducts", - value: function () { - var _checkOfflineAccessedProducts = (0, _asyncToGenerator2.default)(function* () { - Paywall.offlineAccessedProductsList = yield _PaywallHelper.default.getOfflineProductsList(); - - if (Paywall.offlineAccessedProductsList && Paywall.offlineAccessedProductsList.length > 0) { - Paywall.offlineAccessedProductsList.forEach(function (ACI) { - Paywall.validate(ACI, false); - }); - Paywall.offlineAccessedProductsList = []; - - _PaywallHelper.default.setOfflineProductsList([]); - } - }); - - function checkOfflineAccessedProducts() { - return _checkOfflineAccessedProducts.apply(this, arguments); - } - - return checkOfflineAccessedProducts; - }() - }, { - key: "registerToConnectivityChangeEvent", - value: function registerToConnectivityChangeEvent() { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.rm(Paywall.onConnectivityChange); - - Paywall.onConnectivityChange = _$$_REQUIRE(_dependencyMap[10]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, function (_ref) { - var online = _ref.online; - - if (online) { - Paywall.checkOfflineAccessedProducts(); - } - }); - } - }, { - key: "downloadConfiguration", - value: function () { - var _downloadConfiguration = (0, _asyncToGenerator2.default)(function* () { - Paywall.initialize = false; - Paywall.forceAutoLogin = true; - Paywall.accessedProductsList = yield Paywall.getAccessedProductsList(); - - try { - var outcome = yield _PaywallAJAX.default.downloadConfiguration(); - Paywall.setConfig(outcome); - var _Paywall$config = Paywall.config, - sessionString = _Paywall$config.sessionString, - disable_paywall = _Paywall$config.disable_paywall, - user_info = _Paywall$config.user_info; - - if (disable_paywall == 1) { - return true; - } - - if (sessionString) { - _PaywallAJAX.default.setSessionString(sessionString); - - Paywall.initialize = true; - return true; - } - } catch (e) {} - - return false; - }); - - function downloadConfiguration() { - return _downloadConfiguration.apply(this, arguments); - } - - return downloadConfiguration; - }() - }, { - key: "getProductType", - value: function getProductType(ACI) { - var _productType; - - var _Paywall$config2 = Paywall.config, - default_product_type = _Paywall$config2.default_product_type, - products_rules = _Paywall$config2.products_rules; - - if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isEmpty(products_rules == null ? undefined : products_rules.rules)) { - return default_product_type; - } - - var productType; - - var _loop = function _loop() { - var rule = products_rules.rules[r]; - var ruleSplit = rule.split(":"); - var condition = ruleSplit[0].trim(); - var currentProductType = ruleSplit[1].trim(); - var categoriesOR = []; - var conditionORSplit = condition.split(" OR "); - conditionORSplit.forEach(function (conditionOR) { - var conditionANDSplit = conditionOR.split(" AND "); - - if (conditionANDSplit.length > 1) { - categoriesOR.push(conditionANDSplit); - } else { - categoriesOR.push(conditionOR); - } - }); - - for (var i = 0; i < categoriesOR.length; i++) { - var categoryOR = categoriesOR[i]; - - if (Array.isArray(categoryOR)) { - var respectCondition = true; - - for (var j = 0; j < categoryOR.length; j++) { - var categoryAND = categoryOR[j]; - - if (!Paywall.checkRuleCondition(ACI, categoryAND)) { - respectCondition = false; - break; - } - } - - if (respectCondition) { - productType = currentProductType; - break; - } - } else if (Paywall.checkRuleCondition(ACI, categoryOR)) { - productType = currentProductType; - break; - } - } - }; - - for (var r = 0; r < products_rules.rules.length; r++) { - _loop(); - } - - return (_productType = productType) != null ? _productType : default_product_type; - } - }, { - key: "checkRuleCondition", - value: function checkRuleCondition(ACI, condition) { - var notCondition = condition.indexOf("NOT ") !== -1; - - if (notCondition) { - condition = condition.replace("NOT ", "").trim(); - } - - try { - var matches = ACI.match(new RegExp(condition)) !== null; - return notCondition !== matches; - } catch (e) { - return false; - } - } - }, { - key: "isFreeProduct", - value: function isFreeProduct(productType) { - return productType === Paywall.config.free_product_type; - } - }, { - key: "validate", - value: function () { - var _validate = (0, _asyncToGenerator2.default)(function* (ACI) { - var showPopups = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (!Paywall.initialize) { - var _global$getRssIndex = global.getRssIndex(), - attachPaywallToArticle = _global$getRssIndex.attachPaywallToArticle; - - if (Paywall.shouldShowHardPaywall() && !attachPaywallToArticle) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, - forceFullscreen: true - }); - } else {} - - return true; - } - - if (Paywall.isAlreadyAccessed(ACI)) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { - ACI: ACI, - validated: true - }); - - return true; - } - - var productType = Paywall.getProductType(ACI); - - if (!productType || Paywall.isFreeProduct(productType)) { - return true; - } - - 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[12]).serverStatusCodes.SESSION_EXPIRED) { - var sessionResult = yield Paywall.handleSessionExpired(); - - if (sessionResult) { - if (Paywall.strictMode) { - var validationResult = yield Paywall.validate(ACI, showPopups); - return validationResult; - } - - Paywall.validate(ACI, showPopups); - } - } - } - - return true; - } - - var productsLeft = yield Paywall.getLastProductsLeft(); - - if (productsLeft && (productsLeft === _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS || productsLeft >= 0)) { - if (productsLeft !== _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS) { - Paywall.setLastProductsLeft(parseInt(productsLeft, 10) - 1); - } - - Paywall.offlineAccessedProductsList.push(ACI); - - _PaywallHelper.default.setOfflineProductsList(Paywall.offlineAccessedProductsList); - - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { - ACI: ACI, - validated: true - }); - } else { - Paywall.showOfflineDialog(true); - - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_GO_BACK_HOME); - } - - return true; - }); - - function validate(_x) { - return _validate.apply(this, arguments); - } - - return validate; - }() - }, { - key: "handleValidationSuccess", - value: function handleValidationSuccess(ACI, outcome) { - var showPopups = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var hasAccess = true; - var productsLeft = outcome.productsLeft, - productType = outcome.productType; - var _Paywall$config3 = Paywall.config, - show_first_products_left_popup = _Paywall$config3.show_first_products_left_popup, - show_latest_products_left_popup = _Paywall$config3.show_latest_products_left_popup, - show_period_products_left_popup = _Paywall$config3.show_period_products_left_popup, - show_custom_products_left_popup = _Paywall$config3.show_custom_products_left_popup, - show_paywall = _Paywall$config3.show_paywall; - Paywall.setLastProductsLeft(productsLeft); - - 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) { - min_threshold = Paywall.config[productType].min_threshold; - } - - var period = parseInt(show_period_products_left_popup || 0, 10); - var custom = !!show_custom_products_left_popup && show_custom_products_left_popup.split(",").reduce(function (prev, current) { - return prev || parseInt(current, 10) === productsLeft; - }, false); - - if (showPopups && (show_first_products_left_popup == 1 && !Paywall.firstProductsLeftPopupShown || show_latest_products_left_popup == 1 && productsLeft < min_threshold || period > 0 && productsLeft % period === 0 || custom)) { - var _Paywall$containerIns; - - if (!Paywall.firstProductsLeftPopupShown) { - Paywall.setFirstProductsLeftPopupAlreadyShown(); - } - - (_Paywall$containerIns = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns.showPopup({ - type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.productsLeft, - productsLeft: productsLeft, - ACI: ACI - }); - } - } else { - if (showPopups && show_paywall == 1) { - if (Paywall.needToAppendPaywallPopup(ACI)) { - _$$_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[12]).popupTypes.blocking, - ACI: ACI, - forceAutoLogin: Paywall.forceAutoLogin - }); - } - - Paywall.forceAutoLogin = false; - } - - hasAccess = false; - } - - if (hasAccess) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { - ACI: ACI, - validated: true - }); - - Paywall.addToAccessedProductsList(ACI); - } - - return hasAccess; - } - }, { - key: "handleSessionExpired", - value: function () { - var _handleSessionExpired = (0, _asyncToGenerator2.default)(function* () { - var result = yield Paywall.downloadConfiguration(); - - if (!result) {} - - return result; - }); - - function handleSessionExpired() { - return _handleSessionExpired.apply(this, arguments); - } - - return handleSessionExpired; - }() - }, { - key: "validateUser", - value: function () { - var _validateUser = (0, _asyncToGenerator2.default)(function* () { - if (!Paywall.initialize) { - return; - } - - try { - var outcome = yield _PaywallAJAX.default.validateUser(); - Paywall.handleUserValidationSuccess(outcome); - } catch (e) { - if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[12]).serverStatusCodes.SESSION_EXPIRED) { - var sessionResult = yield Paywall.handleSessionExpired(); - - if (sessionResult) { - Paywall.validateUser(); - } - } - } - }); - - function validateUser() { - return _validateUser.apply(this, arguments); - } - - return validateUser; - }() - }, { - key: "handleUserValidationSuccess", - value: function handleUserValidationSuccess(outcome) { - var username = outcome.user, - isLogged = outcome.isLogged; - - if (!isLogged) { - if (!Paywall.autoLogin()) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); - - Paywall.handleLogoutSuccess(); - } - } else { - var _PaywallLoginStatus$g = _PaywallLoginStatus.default.getCredentials(), - user = _PaywallLoginStatus$g.user, - rest = (0, _objectWithoutProperties2.default)(_PaywallLoginStatus$g, _excluded); - - if (!user && username) { - _PaywallLoginStatus.default.remember(Object.assign({ - user: username - }, rest)); - } - - Paywall.updateAccountLabel(true); - } - } - }, { - key: "handleLoginSuccess", - value: function handleLoginSuccess(outcome, ACI, removePopupsAfterValidation) { - _PaywallLoginStatus.default.updateUserStatus(outcome); - - Paywall.updateAccountLabel(); - - var validationCallback = function validationCallback() {}; - - if (removePopupsAfterValidation) { - validationCallback = function validationCallback(hasAccess) { - if (hasAccess) { - Paywall.remove(); - } - }; - } else { - Paywall.remove(); - } - - if (ACI) { - Paywall.validate(ACI).then(validationCallback); - } - - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { - hideAds: _PaywallLoginStatus.default.isAdFree() - }); - } - }, { - key: "logout", - value: function () { - var _logout = (0, _asyncToGenerator2.default)(function* (ACI, manual) { - var result = false; - - if (Paywall.initialize) { - try { - var outcome = yield _PaywallAJAX.default.logout(); - - if (manual) { - _$$_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[12]).serverStatusCodes.SESSION_EXPIRED) { - var sessionResult = yield Paywall.handleSessionExpired(); - - if (sessionResult) { - result = yield Paywall.logout(ACI, manual); - } - } else {} - } - } else {} - - return result; - }); - - function logout(_x2, _x3) { - return _logout.apply(this, arguments); - } - - return logout; - }() - }, { - key: "handleLogoutSuccess", - value: function handleLogoutSuccess(outcome, ACI, manual) { - _PaywallLoginStatus.default.resetUserStatus(); - - Paywall.updateAccountLabel(); - - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { - hideAds: false - }); - - if (outcome) { - Paywall.remove(); - - if (ACI) { - Paywall.validate(ACI); - } else if (manual) { - Paywall.account(); - } - } - } - }, { - key: "replaceExtIdInUrl", - value: function replaceExtIdInUrl(url) { - if (url && typeof url === "string") { - var _PaywallLoginStatus$g2; - - return url.replace("##extid##", (_PaywallLoginStatus$g2 = _PaywallLoginStatus.default.getExtid()) != null ? _PaywallLoginStatus$g2 : ""); - } - - return url; - } - }, { - key: "updateAccountLabel", - value: function updateAccountLabel() { - var loggedIn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _PaywallLoginStatus.default.isUserLoggedIn(); - - if (Paywall.initialize) { - var messages = Paywall.config.messages; - - if (messages) { - var userLoggedInText = messages.userLoggedInText, - userNotLoggedText = messages.userNotLoggedText; - var caption = loggedIn ? userLoggedInText : userNotLoggedText; - - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_USER_STATUS_UPDATE, { - loggedIn: loggedIn, - caption: caption - }); - } - } - } - }, { - key: "autoLogin", - value: function autoLogin() { - var _Paywall$containerIns3; - - if (!Paywall.initialize) { - return false; - } - - var credentials = _PaywallLoginStatus.default.getCredentials(); - - if (!credentials) { - return false; - } - - var user = credentials.user, - pwdEncrypt = credentials.pwdEncrypt, - token = credentials.token; - - if (!token && (!user || !pwdEncrypt)) { - return false; - } - - if (token) {} else {} - - (_Paywall$containerIns3 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns3.showPopup({ - type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.login, - isInvisible: true, - forceAutoLogin: true - }); - return true; - } - }, { - key: "isAlreadyAccessed", - value: function isAlreadyAccessed(ACI) { - return Paywall.accessedProductsList.findIndex(function (product) { - return product.ACI === ACI; - }) !== -1; - } - }, { - key: "getAccessedProductsList", - value: function () { - var _getAccessedProductsList = (0, _asyncToGenerator2.default)(function* () { - var productsList = yield _PaywallHelper.default.getAccessedProductsList(); - - if (productsList) { - var filteredProductsList = productsList.filter(function (product) { - return product.addTime + _$$_REQUIRE(_dependencyMap[12]).accessedProductsDuration >= Date.now(); - }); - - if (filteredProductsList.length < productsList.length) { - _PaywallHelper.default.setAccessedProductsList(filteredProductsList); - - return filteredProductsList; - } - - return productsList; - } - - return []; - }); - - function getAccessedProductsList() { - return _getAccessedProductsList.apply(this, arguments); - } - - return getAccessedProductsList; - }() - }, { - key: "addToAccessedProductsList", - value: function addToAccessedProductsList(ACI) { - var newEntry = { - ACI: ACI, - addTime: Date.now() - }; - Paywall.accessedProductsList.push(newEntry); - - _PaywallHelper.default.setAccessedProductsList(Paywall.accessedProductsList); - } - }, { - key: "isWelcomePopupAlreadyShown", - value: function () { - var _isWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - return _PaywallHelper.default.isWelcomePopupAlreadyShown(); - }); - - function isWelcomePopupAlreadyShown() { - return _isWelcomePopupAlreadyShown.apply(this, arguments); - } - - return isWelcomePopupAlreadyShown; - }() - }, { - key: "setWelcomePopupAlreadyShown", - value: function setWelcomePopupAlreadyShown() { - _PaywallHelper.default.setWelcomePopupAlreadyShown(); - } - }, { - key: "isFirstProductsLeftPopupAlreadyShown", - value: function () { - var _isFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { - return _PaywallHelper.default.isFirstProductsLeftPopupAlreadyShown(); - }); - - function isFirstProductsLeftPopupAlreadyShown() { - return _isFirstProductsLeftPopupAlreadyShown.apply(this, arguments); - } - - return isFirstProductsLeftPopupAlreadyShown; - }() - }, { - key: "setFirstProductsLeftPopupAlreadyShown", - value: function setFirstProductsLeftPopupAlreadyShown() { - Paywall.firstProductsLeftPopupShown = true; - - _PaywallHelper.default.setFirstProductsLeftPopupAlreadyShown(); - } - }, { - key: "setLastProductsLeft", - value: function setLastProductsLeft(productsLeft) { - _PaywallHelper.default.setLastProductsLeft(productsLeft); - } - }, { - key: "getLastProductsLeft", - value: function () { - var _getLastProductsLeft = (0, _asyncToGenerator2.default)(function* () { - return _PaywallHelper.default.getLastProductsLeft(); - }); - - function getLastProductsLeft() { - return _getLastProductsLeft.apply(this, arguments); - } - - return getLastProductsLeft; - }() - }, { - key: "account", - value: function account() { - if (!_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { - Paywall.showOfflineDialog(); - return; - } - - if (Paywall.initialize) { - var _Paywall$containerIns4; - - 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 - }); - } else { - var _global$getRssIndex2 = global.getRssIndex(), - mustLoginToViewArticle = _global$getRssIndex2.mustLoginToViewArticle; - - if (mustLoginToViewArticle) { - _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { - tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, - forceFullscreen: true - }); - } else {} - } - } - }, { - key: "welcome", - value: function welcome() { - var _Paywall$containerIns5; - - (_Paywall$containerIns5 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns5.showPopup({ - type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.welcome - }); - Paywall.setWelcomePopupAlreadyShown(); - } - }, { - key: "hidePopup", - value: function hidePopup() { - var _Paywall$containerIns6; - - (_Paywall$containerIns6 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns6.hidePopup(); - } - }, { - key: "unhidePopup", - value: function unhidePopup() { - var _Paywall$containerIns7; - - (_Paywall$containerIns7 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns7.unhidePopup(); - } - }, { - key: "remove", - value: function remove() { - var _Paywall$containerIns8; - - (_Paywall$containerIns8 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns8.removePopup(); - } - }, { - key: "showOfflineDialog", - value: function showOfflineDialog() { - var validate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var buttons = [{ - text: global.strings("btn_ok") - }]; - var message = validate ? global.strings("paywall_offline_warning") : global.strings("err_offline"); - - _$$_REQUIRE(_dependencyMap[13]).CustomAlert.alert("", message, buttons, { - cancelable: false - }); - } - }, { - key: "shouldShowHardPaywall", - value: function shouldShowHardPaywall() { - var _global$getRssIndex3 = global.getRssIndex(), - mustLoginToViewArticle = _global$getRssIndex3.mustLoginToViewArticle; - - if (mustLoginToViewArticle) { - var _global$getRSSActiveP = global.getRSSActivePSetup(), - loginStatus = _global$getRSSActiveP.loginStatus; - - if (loginStatus && !loginStatus.isLoggedIn()) { - return true; - } - } - - return false; - } - }, { - key: "needToAppendHardPaywall", - value: function needToAppendHardPaywall() { - var _global$getRssIndex4 = global.getRssIndex(), - attachPaywallToArticle = _global$getRssIndex4.attachPaywallToArticle; - - return Paywall.shouldShowHardPaywall() && attachPaywallToArticle; - } - }, { - key: "shouldAppendPaywallPopup", - value: function shouldAppendPaywallPopup() { - var style = Paywall.config.style; - - if (style) { - var attachPaywallToArticle = style.attachPaywallToArticle; - return attachPaywallToArticle === "1"; - } - - return false; - } - }, { - key: "shouldShowPaywall", - value: function shouldShowPaywall(ACI) { - return Paywall.shouldShowHardPaywall() || Paywall.needToAppendPaywallPopup(ACI); - } - }, { - key: "shouldAppendPaywall", - value: function shouldAppendPaywall() { - return Paywall.needToAppendHardPaywall() || Paywall.shouldAppendPaywallPopup(); - } - }, { - key: "needToAppendPaywallPopup", - value: function needToAppendPaywallPopup(ACI) { - var productType = Paywall.getProductType(ACI); - return Paywall.shouldAppendPaywallPopup() && productType && !Paywall.isFreeProduct(productType) && !Paywall.isAlreadyAccessed(ACI); - } - }, { - key: "needToAppendPaywall", - value: function needToAppendPaywall(ACI) { - return Paywall.needToAppendHardPaywall() || Paywall.needToAppendPaywallPopup(ACI); - } - }, { - key: "getArticlePreviewLength", - value: function getArticlePreviewLength() { - if (Paywall.needToAppendHardPaywall()) { - var _global$getRssIndex5 = global.getRssIndex(), - articlePreviewLength = _global$getRssIndex5.articlePreviewLength; - - return articlePreviewLength; - } - - if (Paywall.shouldAppendPaywallPopup()) { - var style = Paywall.config.style; - - if (style) { - var protectThreshold = style.protectThreshold; - return parseInt(protectThreshold, 10); - } - } - - return 0; - } - }, { - key: "getArticlePreviewMessage", - value: function getArticlePreviewMessage() { - if (Paywall.shouldAppendPaywallPopup()) { - var style = Paywall.config.style; - - if (style) { - var protectArticleMessage = style.protectArticleMessage; - return protectArticleMessage; - } - } - - return ""; - } - }, { - key: "getDecryptionKey", - value: function () { - var _getDecryptionKey = (0, _asyncToGenerator2.default)(function* (seed) { - try { - var result = yield _PaywallAJAX.default.getDecryptionKey(seed); - - if (result) { - var status = result.status, - key = result.key; - - if (status === "OK") { - return key; - } - } - } catch (e) {} - - return ""; - }); - - function getDecryptionKey(_x4) { - return _getDecryptionKey.apply(this, arguments); - } - - return getDecryptionKey; - }() - }]); - }(); - - Paywall.initialize = false; - Paywall.strictMode = false; - Paywall.config = {}; - Paywall.accessedProductsList = []; - Paywall.offlineAccessedProductsList = []; - Paywall.firstProductsLeftPopupShown = false; - Paywall.forceAutoLogin = true; -},1724,[3,4,270,6,7,818,436,1725,1703,438,564,1726,1704,815]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.PaywallError = 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 _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _axios = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _PaywallLoginStatus = _$$_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 PaywallError = exports.PaywallError = function (_Error) { - function PaywallError(code, message) { - var _this; - - (0, _classCallCheck2.default)(this, PaywallError); - _this = _callSuper(this, PaywallError); - _this.code = code; - _this.message = message; - return _this; - } - - (0, _inherits2.default)(PaywallError, _Error); - return (0, _createClass2.default)(PaywallError, [{ - key: "getCode", - value: function getCode() { - return this.code; - } - }, { - key: "getMessage", - value: function getMessage() { - return this.message; - } - }]); - }((0, _wrapNativeSuper2.default)(Error)); - - var PaywallAJAX = exports.default = function () { - function PaywallAJAX() { - (0, _classCallCheck2.default)(this, PaywallAJAX); - } - - return (0, _createClass2.default)(PaywallAJAX, null, [{ - key: "init", - value: function init(appId) { - PaywallAJAX.appId = appId; - } - }, { - key: "setSessionString", - value: function setSessionString(sessionString) { - PaywallAJAX.sessionString = sessionString; - } - }, { - key: "handleError", - value: function handleError(error) { - var message = error.message; - } - }, { - key: "simpleGet", - value: function () { - var _simpleGet = (0, _asyncToGenerator2.default)(function* (url) { - var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10000; - var message = "TIMEOUT"; - var retries = 0; - - do { - try { - var _yield$Axios$get = yield _axios.default.get(url, { - timeout: timeout - }), - status = _yield$Axios$get.status, - data = _yield$Axios$get.data; - - if (status === 200) { - if (data) { - return data; - } - } else { - message = "unexpected HTTP status code " + status + " for url " + url; - } - } catch (e) { - message = "failed to load " + url + ": " + e.message; - } - - retries++; - } while (retries < 3); - - PaywallAJAX.handleError({ - message: message - }); - return undefined; - }); - - function simpleGet(_x) { - return _simpleGet.apply(this, arguments); - } - - return simpleGet; - }() - }, { - key: "handleRequest", - value: function () { - var _handleRequest = (0, _asyncToGenerator2.default)(function* (url) { - var outcome; - var status = 0; - var message = "TIMEOUT"; - var retries = 0; - - do { - try { - var _yield$Axios$get2 = yield _axios.default.get(url, { - timeout: 30000 - }), - HTTPStatusCode = _yield$Axios$get2.status, - data = _yield$Axios$get2.data; - - if (HTTPStatusCode === 200 || HTTPStatusCode === 301 || HTTPStatusCode === 304) { - if (data) { - var error = data.error; - status = error.status; - message = error.message; - status = parseInt(status, 10); - - if (status === _$$_REQUIRE(_dependencyMap[11]).serverStatusCodes.SUCCESS) { - outcome = data.outcome; - } - } - } else { - status = HTTPStatusCode; - message = "unexpected HTTP status code " + HTTPStatusCode + " for url " + url; - } - } catch (e) { - message = "failed to load " + url + ": " + e.message; - } - - retries++; - } while (!outcome && retries < 3); - - if (outcome) { - return outcome; - } - - PaywallAJAX.handleError({ - message: message - }); - throw new PaywallError(status, message); - }); - - function handleRequest(_x2) { - return _handleRequest.apply(this, arguments); - } - - return handleRequest; - }() - }, { - key: "getBaseURL", - value: function getBaseURL() { - var baseURL; - - var _global$getUserSettin = global.getUserSettings(), - notificationEmail = _global$getUserSettin.notificationEmail; - - if (notificationEmail) { - var _StringUtils$parseNot = _$$_REQUIRE(_dependencyMap[12]).StringUtils.parseNotificationEmail(notificationEmail); - - baseURL = _StringUtils$parseNot.server; - } else if (PaywallAJAX.appId) { - var isHTTPS = global.isHTTPS(); - var appId = isHTTPS ? PaywallAJAX.appId.replace(_$$_REQUIRE(_dependencyMap[13]).HTTP_DOMAIN_SEPARATOR, _$$_REQUIRE(_dependencyMap[13]).HTTPS_DOMAIN_SEPARATOR) : PaywallAJAX.appId; - var separator = isHTTPS ? _$$_REQUIRE(_dependencyMap[13]).HTTPS_DOMAIN_SEPARATOR : _$$_REQUIRE(_dependencyMap[13]).HTTP_DOMAIN_SEPARATOR; - baseURL = appId + separator + _$$_REQUIRE(_dependencyMap[11]).serverBaseDomain; - } else { - baseURL = global.getAppServer(); - } - - return _$$_REQUIRE(_dependencyMap[12]).NetworkUtils.addDefaultProtocol(baseURL); - } - }, { - key: "getDefaultParams", - value: function getDefaultParams() { - var app = "A"; - - if (_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isAndroid()) { - app = _deviceUtils.default.isKindle() ? "K" : "G"; - } - - return { - app: app, - appPSetup: global.getAppPSetup(), - appVersion: _deviceUtils.default.getAppVersion(), - baseVer: _$$_REQUIRE(_dependencyMap[11]).baseVer - }; - } - }, { - key: "isServiceProtected", - value: function isServiceProtected(service) { - return _$$_REQUIRE(_dependencyMap[11]).protectedServices.includes(service); - } - }, { - key: "getBaseMeterURL", - value: function getBaseMeterURL() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var meterParams = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getQuerystring(Object.assign({}, PaywallAJAX.getDefaultParams(), params)); - - return PaywallAJAX.getBaseURL() + "?meter&" + meterParams; - } - }, { - key: "getServiceURL", - value: function getServiceURL(service) { - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var _global = global, - machineId = _global.machineId; - machineId = machineId.split(",")[0]; - - var TAUID = _PaywallLoginStatus.default.getTAUID(); - - if (TAUID) { - machineId += "," + TAUID; - } - - params.ta_MACHINE_ID = machineId; - - if (PaywallAJAX.isServiceProtected(service)) { - var queryString = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getQuerystring(params); - - params.mac = PaywallAJAX.computeMac(queryString); - } - - return PaywallAJAX.getBaseMeterURL(Object.assign({ - service: service - }, params)); - } - }, { - key: "getConfigURL", - value: function getConfigURL() { - return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.config); - } - }, { - key: "getPopupURL", - value: function getPopupURL(popup) { - var extraParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var params = Object.assign({ - popup: popup - }, extraParams); - - if (_PaywallLoginStatus.default.isUserLoggedIn()) { - var credentials = _PaywallLoginStatus.default.getCredentials(); - - if (credentials != null && credentials.user) { - params.user = credentials.user; - } - - if (credentials != null && credentials.soPass) { - params.soPass = credentials.soPass; - } - } - - return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.popups, params); - } - }, { - key: "getValidationURL", - value: function getValidationURL(ACI, productType) { - var params = { - ACI: ACI, - productType: productType, - locallyLoggedIn: _PaywallLoginStatus.default.isUserLoggedIn() ? "1" : "0" - }; - return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.validate, params); - } - }, { - key: "getUserValidationURL", - value: function getUserValidationURL() { - var params = {}; - - var credentials = _PaywallLoginStatus.default.getCredentials(); - - if (credentials != null && credentials.user) { - params.user = credentials.user; - } - - return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.user_validate, params); - } - }, { - key: "getLogoutURL", - value: function getLogoutURL(ACI) { - var params = { - ACI: ACI - }; - - var credentials = _PaywallLoginStatus.default.getCredentials(); - - if (credentials != null && credentials.user) { - params.user = credentials.user; - } - - return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.logout, params); - } - }, { - key: "computeMac", - value: function computeMac(queryString) { - return _$$_REQUIRE(_dependencyMap[12]).StringUtils.getMd5(_$$_REQUIRE(_dependencyMap[12]).StringUtils.getMd5(queryString) + PaywallAJAX.sessionString); - } - }, { - key: "getDecryptionKeyURL", - value: function getDecryptionKeyURL() { - var seed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - return PaywallAJAX.getBaseMeterURL({ - getkey: seed - }); - } - }, { - key: "downloadConfiguration", - value: function () { - var _downloadConfiguration = (0, _asyncToGenerator2.default)(function* () { - var getConfigURL = PaywallAJAX.getConfigURL(); - return PaywallAJAX.handleRequest(getConfigURL); - }); - - function downloadConfiguration() { - return _downloadConfiguration.apply(this, arguments); - } - - return downloadConfiguration; - }() - }, { - key: "validate", - value: function () { - var _validate = (0, _asyncToGenerator2.default)(function* (ACI, productType) { - var getValidationURL = PaywallAJAX.getValidationURL(ACI, productType); - return PaywallAJAX.handleRequest(getValidationURL); - }); - - function validate(_x3, _x4) { - return _validate.apply(this, arguments); - } - - return validate; - }() - }, { - key: "validateUser", - value: function () { - var _validateUser = (0, _asyncToGenerator2.default)(function* () { - var getUserValidationURL = PaywallAJAX.getUserValidationURL(); - return PaywallAJAX.handleRequest(getUserValidationURL); - }); - - function validateUser() { - return _validateUser.apply(this, arguments); - } - - return validateUser; - }() - }, { - key: "logout", - value: function () { - var _logout = (0, _asyncToGenerator2.default)(function* (ACI, manual) { - var getLogoutURL = PaywallAJAX.getLogoutURL(); - return PaywallAJAX.handleRequest(getLogoutURL); - }); - - function logout(_x5, _x6) { - return _logout.apply(this, arguments); - } - - return logout; - }() - }, { - key: "getDecryptionKey", - value: function () { - var _getDecryptionKey = (0, _asyncToGenerator2.default)(function* (seed) { - var getDecryptionKeyURL = PaywallAJAX.getDecryptionKeyURL(seed); - return PaywallAJAX.simpleGet(getDecryptionKeyURL); - }); - - function getDecryptionKey(_x7) { - return _getDecryptionKey.apply(this, arguments); - } - - return getDecryptionKey; - }() - }]); - }(); -},1725,[3,270,6,7,11,13,14,61,408,434,1703,1704,438,555]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.tabs = exports.locals = exports.default = exports.closeTypes = exports.IAPErrorMessages = 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 _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _excluded = ["extraParams", "edition"]; - var tabs = exports.tabs = { - access: "access", - accessibility: "accessibility", - account: "account", - archive: "archive", - carousel: "carousel", - contact: "contact", - eenotify: "eenotify", - help: "help", - home: "home", - impressum: "impressum", - login: "login", - market: "market", - purchases: "purchases", - puzzle: "puzzle", - registration: "registration", - rss: "rss", - settings: "connection", - specialsections: "specialsection", - subscribe: "subscribe", - uberabos: "uberabos", - updates: "updates", - validation: "validation", - version: "version", - generic: "generic" - }; - var locals = exports.locals = { - INITPAGE_SET_NEWSPAPER_AND_READ: "xc_initPage_setNewspaperAndRead", - INITPAGE_SET_EXTERNAL_NEWSPAPER: "xc_initPage_setExternalNewspaper", - LOAD_LATEST_PUBLICATION: "xc_loadLatestPublication", - GET_SAVED_ISSUES: "getSavedIssues", - DELETE_ISSUE: "deleteIssue", - RETURN_FROM_LOGIN: "returnFromLogin", - LOGOUT: "xc_initPage_logout", - STORE_USER_INFO: "storeUserInfo", - GET_USER_INFO: "getUserInfo", - BUY: "xc_buy", - RESUME_TRANSACTIONS: "resumeTransactions", - FINISH_TRANSACTION: "finishTransaction", - REQUEST_PRICE_BY_ID: "xc_requestPriceByID", - RESTORE_COMPLETED_TRANSACTIONS: "restoreCompletedTransactions", - SAVE_RECEIPT: "saveReceiptForRecurringPayment", - GET_KEY: "getFromKey", - SET_KEY: "setFromKey", - REMOVE_KEY: "removeKey", - SET_PREF_EDI: "setPrefEdi", - CLEAR_STORAGE: "clearStorage", - GET_CONFIG_DUMP: "getConfigDump", - OPEN_BROWSER: "xc_openBrowser", - OPEN_BROWSER_ALT: "openInAppBrowser", - CLOSE: "closeOptionPage", - GO_BACK: "backButtonClicked", - ALERT: "alert", - CONFIRM: "confirm", - OPEN_RSS: "xc_openRSSReader", - GET_USED_SPACE: "getIssuesUsedSpace", - CLOSE_WINDOW: "closeWindow", - GET_PUBLICATIONS_STORED: "getPublicationStored", - SET_PUBLICATION: "setPublication", - DELETE_PUBLICATION: "deletePublication", - OPEN_TAB_HOME: "openTabHome", - OPEN_TAB_LOGIN: "openTabLogin", - EXEC_JS: "xc_execJavascriptInMainApplication", - SHOW_DEBUG_INFO: "showDebugInfo", - OPEN_ACCESSIBILITY_MODE: "xc_openAccessibilityMode", - OPEN_ARCHIVE: "xc_openArchive", - RESTORE_DEFAULT_SETTINGS: "restoreDefaults", - CLOSE_ARTICLE: "art_closeTextArticle", - OPEN_OPTIONSPAGE: "openOptionPage", - SCROLL_TO_PAGE: "xc_scrollToPage", - DISPLAY_LOADER: "displayLoader", - OPEN_NATIVE_SETTINGS_SCREEN: "openNativeSettingsScreen", - FACEBOOK_LOGIN: "facebookLogin" - }; - var IAPErrorMessages = exports.IAPErrorMessages = { - iap_not_available: "IAP Not Available", - unknown: "Unknown Error", - cancelled: "Payment Cancelled", - user_error: "User Error", - item_unavailable: "Item Unavailable", - remote_error: "Remote Error", - network_error: "Network Error", - service_error: "Service Error", - receipt_failed: "Receipt Failed", - receipt_finished_failed: "Receipt Finished Failed", - not_prepared: "Not Prepared", - not_ended: "Not Ended", - already_owned: "Already Owned", - developer_error: "Developer Error", - billing_response_json_parse_error: "Error Parsing Billing Response JSON", - already_active_subscription: "Already have an active subscription" - }; - var closeTypes = exports.closeTypes = { - close: "close", - back: "back", - none: "none" - }; - - var OptionspageUtils = exports.default = function () { - function OptionspageUtils() { - (0, _classCallCheck2.default)(this, OptionspageUtils); - } - - return (0, _createClass2.default)(OptionspageUtils, null, [{ - key: "getBaseURL", - value: function getBaseURL() { - var _global$getActivePSet = global.getActivePSetup(), - optionspageConfig = _global$getActivePSet.optionspageConfig; - - return _$$_REQUIRE(_dependencyMap[6]).NetworkUtils.addDefaultProtocol(optionspageConfig.baseURL); - } - }, { - key: "getTabUrl", - value: function getTabUrl(tab) { - var otherGetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var baseURL = this.getBaseURL(); - - var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(baseURL), - protocol = _StringUtils$segmentU.protocol, - domain = _StringUtils$segmentU.domain, - path = _StringUtils$segmentU.path, - baseGetParams = _StringUtils$segmentU.getParams; - - var params = Object.assign({ - tab: tab - }, this.getDefaultParams(), baseGetParams, otherGetParams); - - var queryString = _$$_REQUIRE(_dependencyMap[6]).StringUtils.getQuerystring(params); - - return protocol + "://" + domain + "/" + path + "?" + queryString; - } - }, { - key: "getCustomUrl", - value: function getCustomUrl(baseURL) { - var otherGetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var _StringUtils$segmentU2 = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(baseURL), - protocol = _StringUtils$segmentU2.protocol, - domain = _StringUtils$segmentU2.domain, - path = _StringUtils$segmentU2.path, - baseGetParams = _StringUtils$segmentU2.getParams; - - var params = Object.assign(this.getDefaultParams(), baseGetParams, otherGetParams); - - var queryString = _$$_REQUIRE(_dependencyMap[6]).StringUtils.getQuerystring(params); - - return protocol + "://" + domain + "/" + path + "?" + queryString; - } - }, { - key: "getDefaultParams", - value: function getDefaultParams() { - var _global$getNewsmemory = global.getNewsmemoryConfig(), - network = _global$getNewsmemory.network, - limit = _global$getNewsmemory.limit, - connectivity = _global$getNewsmemory.connectivity; - - var _global$getActivePSet2 = global.getActivePSetup(), - pSetup = _global$getActivePSet2.pSetup, - loginStatus = _global$getActivePSet2.loginStatus; - - var TAUID = loginStatus.TAUID; - var defaultParams = { - pSetup: pSetup, - MACHINEID: global.machineId, - useDB: 1, - ver: _deviceUtils.default.getAppVersion(), - isDebug: global.isDebug, - network: network, - isPhone: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isTablet() ? 0 : 1, - isKindle: _deviceUtils.default.isKindle() ? 1 : undefined, - limit: limit, - connectivity: connectivity, - accessibilityMode: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isSystemAccessibilityEnabled() ? "1" : "0" - }; - defaultParams[_$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isAndroid() ? "isAndroid" : "isXcode"] = 1; - - if (TAUID) { - defaultParams.TAUID = TAUID; - } - - return defaultParams; - } - }, { - key: "getHomeTabUrl", - value: function getHomeTabUrl() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return this.getTabUrl(tabs.home, params); - } - }, { - key: "getLoginTabUrl", - value: function getLoginTabUrl() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return this.getTabUrl(tabs.account, params); - } - }, { - key: "getHelpTabUrl", - value: function getHelpTabUrl() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return this.getTabUrl(tabs.help, params); - } - }, { - key: "getSettingsTabUrl", - value: function getSettingsTabUrl() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return this.getTabUrl(tabs.settings, params); - } - }, { - key: "isSamePage", - value: function isSamePage(urlA, urlB) { - var ignoreParams = ["r", "edition"]; - - var newUrlA = _$$_REQUIRE(_dependencyMap[6]).StringUtils.removeParams(urlA, ignoreParams); - - var newUrlB = _$$_REQUIRE(_dependencyMap[6]).StringUtils.removeParams(urlB, ignoreParams); - - return newUrlA === newUrlB; - } - }, { - key: "optionPageVersion", - value: function optionPageVersion() { - var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getMainPSetup(); - var optionspageConfig = config.optionspageConfig; - - if (optionspageConfig && optionspageConfig.baseURL) { - var regExp = /(?:opt|optionspage)\.[a-zA-Z0-9]+\.[a-zA-Z0-9.]+/; - var result = regExp.exec(optionspageConfig.baseURL); - - if (result) { - return result[0]; - } - } - - return "n/a"; - } - }, { - key: "getIAPErrorMessage", - value: function getIAPErrorMessage(error) { - var _OptionalPackages$get = _optionalPackageUtils.default.getIapModule(), - IAPErrorCode = _OptionalPackages$get.IAPErrorCode; - - var message = IAPErrorMessages.unknown; - - if (error && IAPErrorCode) { - switch (error.code) { - case IAPErrorCode.E_IAP_NOT_AVAILABLE: - message = IAPErrorMessages.iap_not_available; - break; - - case IAPErrorCode.E_USER_CANCELLED: - message = IAPErrorMessages.cancelled; - break; - - case IAPErrorCode.E_USER_ERROR: - message = IAPErrorMessages.user_error; - break; - - case IAPErrorCode.E_ITEM_UNAVAILABLE: - message = IAPErrorMessages.item_unavailable; - break; - - case IAPErrorCode.E_REMOTE_ERROR: - message = IAPErrorMessages.remote_error; - break; - - case IAPErrorCode.E_NETWORK_ERROR: - message = IAPErrorMessages.network_error; - break; - - case IAPErrorCode.E_SERVICE_ERROR: - message = IAPErrorMessages.service_error; - break; - - case IAPErrorCode.E_RECEIPT_FAILED: - message = IAPErrorMessages.receipt_failed; - break; - - case IAPErrorCode.E_RECEIPT_FINISHED_FAILED: - message = IAPErrorMessages.receipt_finished_failed; - break; - - case IAPErrorCode.E_NOT_PREPARED: - message = IAPErrorMessages.not_prepared; - break; - - case IAPErrorCode.E_NOT_ENDED: - message = IAPErrorMessages.not_ended; - break; - - case IAPErrorCode.E_ALREADY_OWNED: - message = IAPErrorMessages.already_owned; - break; - - case IAPErrorCode.E_DEVELOPER_ERROR: - message = IAPErrorMessages.developer_error; - break; - - case IAPErrorCode.E_BILLING_RESPONSE_JSON_PARSE_ERROR: - message = IAPErrorMessages.billing_response_json_parse_error; - break; - - case IAPErrorCode.E_ACTIVE_SUBSCRIPTION: - message = IAPErrorMessages.already_active_subscription; - break; - } - - if (error.message && error.code !== IAPErrorCode.E_USER_CANCELLED) { - message = error.message; - } - } - - return message; - } - }, { - key: "getTabByURL", - value: function getTabByURL(url) { - var _StringUtils$segmentU3 = _$$_REQUIRE(_dependencyMap[6]).StringUtils.segmentUrl(url), - path = _StringUtils$segmentU3.path, - getParams = _StringUtils$segmentU3.getParams; - - var scriptName = _$$_REQUIRE(_dependencyMap[6]).StringUtils.fileNameFromPath(path); - - var tab = getParams.tab; - - switch (scriptName) { - case "initpage.php": - tab = tabs.home; - break; - - case "ipad_login.php": - tab = tabs.login; - break; - - case "ipad_access.php": - tab = tabs.access; - break; - - case "ipad_subscribe.php": - tab = tabs.subscribe; - break; - - case "ipad_registration.php": - tab = tabs.registration; - break; - - case "ipad_help.php": - tab = tabs.help; - break; - - case "ipad_uberabos.php": - tab = tabs.uberabos; - break; - - case "ipad_contact.php": - tab = tabs.contact; - break; - - case "ipad_impressum.php": - tab = tabs.impressum; - break; - - case "ipad_notify.php": - tab = tabs.eenotify; - break; - - case "ipad_archive.php": - tab = tabs.archive; - break; - - case "ipad_ss.php": - tab = tabs.specialsections; - break; - - case "ipad_puzzle.php": - tab = tabs.puzzle; - break; - - case "ipad_purchases.php": - tab = tabs.purchases; - break; - - case "ipad_updates.php": - tab = tabs.updates; - break; - - case "ipad_market.php": - tab = tabs.market; - break; - - case "ipad_version.php": - tab = tabs.version; - break; - - case "ipad_connection.php": - tab = tabs.settings; - break; - } - - return tab; - } - }, { - key: "getOptionspageGetParams", - value: function getOptionspageGetParams() { - var errorParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var getParams = {}; - - try { - var extraParams = errorParams.extraParams, - editionEncoded = errorParams.edition, - rest = (0, _objectWithoutProperties2.default)(errorParams, _excluded); - getParams = Object.assign({}, rest, _$$_REQUIRE(_dependencyMap[6]).StringUtils.parseQuerystring(extraParams)); - - if (editionEncoded) { - getParams.edition = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(editionEncoded); - } - } catch (e) {} - - return getParams; - } - }]); - }(); -},1726,[3,4,6,7,434,824,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 _BasePush = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _OneSignalPush = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var PushHelper = exports.default = function () { - function PushHelper() { - (0, _classCallCheck2.default)(this, PushHelper); - } - - return (0, _createClass2.default)(PushHelper, null, [{ - key: "onBackgroundMessage", - value: function () { - var _onBackgroundMessage = (0, _asyncToGenerator2.default)(function* (message) { - try { - if (!global.initialized) { - global.initBaseValues(yield _$$_REQUIRE(_dependencyMap[6]).OurBridge.initializeGlobals()); - } - - yield PushHelper.init(); - yield PushHelper.instance.onBackgroundMessage(message); - } catch (e) { - console.error("background push notification error: " + e.message); - } - - return Promise.resolve(); - }); - - function onBackgroundMessage(_x) { - return _onBackgroundMessage.apply(this, arguments); - } - - return onBackgroundMessage; - }() - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - if (PushHelper.instance) { - return; - } - - switch (global.pushService) { - case _$$_REQUIRE(_dependencyMap[7]).MasPush.NAME: - PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[7]).MasPush)(); - yield PushHelper.instance.init(global.masAppId); - break; - - case _OneSignalPush.default.NAME: - PushHelper.instance = new _OneSignalPush.default(); - yield PushHelper.instance.init(global.oneSignalAppId); - break; - - case _$$_REQUIRE(_dependencyMap[8]).AmazonPush.NAME: - PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[8]).AmazonPush)(); - yield PushHelper.instance.init(); - break; - - case _$$_REQUIRE(_dependencyMap[9]).HuaweiPush.NAME: - PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[9]).HuaweiPush)(); - yield PushHelper.instance.init(global.hcmAppId); - break; - - default: - PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[10]).FirebasePush)(); - yield PushHelper.instance.init(); - break; - } - - PushHelper.clearOldStoredNotifications(); - PushHelper.registerListener(); - PushHelper.resetBadge(); - yield PushHelper.createAndroidChannels(); - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "checkIfAppIsOpenedByNotification", - value: function () { - var _checkIfAppIsOpenedByNotification = (0, _asyncToGenerator2.default)(function* (callback) { - if (!PushHelper.instance) { - return false; - } - - try { - yield PushHelper.instance.checkIfAppIsOpenedByNotification(callback); - return true; - } catch (e) {} - - return false; - }); - - function checkIfAppIsOpenedByNotification(_x2) { - return _checkIfAppIsOpenedByNotification.apply(this, arguments); - } - - return checkIfAppIsOpenedByNotification; - }() - }, { - key: "registerListener", - value: function registerListener() { - var _PushHelper$instance; - - (_PushHelper$instance = PushHelper.instance) == null ? undefined : _PushHelper$instance.registerListener(); - } - }, { - key: "unregisterListener", - value: function unregisterListener() { - var _PushHelper$instance2; - - (_PushHelper$instance2 = PushHelper.instance) == null ? undefined : _PushHelper$instance2.unregisterListener(); - } - }, { - key: "resetBadge", - value: function resetBadge() { - var _PushHelper$instance3; - - (_PushHelper$instance3 = PushHelper.instance) == null ? undefined : _PushHelper$instance3.resetBadge(); - } - }, { - key: "createAndroidChannels", - value: function () { - var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { - if (PushHelper.instance) { - return PushHelper.instance.createAndroidChannels(); - } - - return false; - }); - - function createAndroidChannels() { - return _createAndroidChannels.apply(this, arguments); - } - - return createAndroidChannels; - }() - }, { - key: "isTherePush", - value: function isTherePush() { - if (PushHelper.instance) { - return PushHelper.instance.isTherePush(); - } - - return false; - } - }, { - key: "pushNeedFeedUpdate", - value: function pushNeedFeedUpdate() { - if (PushHelper.instance) { - return PushHelper.instance.pushNeedFeedUpdate(); - } - - return false; - } - }, { - key: "getPush", - value: function getPush() { - if (PushHelper.instance) { - return PushHelper.instance.getPush(); - } - - return {}; - } - }, { - key: "clearPush", - value: function clearPush() { - var _PushHelper$instance4; - - (_PushHelper$instance4 = PushHelper.instance) == null ? undefined : _PushHelper$instance4.clearPush(); - } - }, { - key: "getRegistrationInfo", - value: function getRegistrationInfo() { - if (PushHelper.instance) { - return PushHelper.instance.getRegistrationInfo(); - } - - return {}; - } - }, { - key: "checkIfSendRegistration", - value: function () { - var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { - if (PushHelper.instance) { - return PushHelper.instance.checkIfSendRegistration(); - } - - return Promise.resolve(); - }); - - function checkIfSendRegistration() { - return _checkIfSendRegistration.apply(this, arguments); - } - - return checkIfSendRegistration; - }() - }, { - key: "clearOldStoredNotifications", - value: function clearOldStoredNotifications() { - if (PushHelper.instance) { - return PushHelper.instance.clearOldStoredNotifications(); - } - - return Promise.resolve(); - } - }, { - key: "updateTags", - value: function updateTags() { - var _PushHelper$instance5; - - (_PushHelper$instance5 = PushHelper.instance) == null ? undefined : _PushHelper$instance5.updateTags(); - } - }, { - key: "registerDevice", - value: function () { - var _registerDevice = (0, _asyncToGenerator2.default)(function* () { - if (PushHelper.instance) { - return PushHelper.instance.init(); - } - - return Promise.resolve(); - }); - - function registerDevice() { - return _registerDevice.apply(this, arguments); - } - - return registerDevice; - }() - }, { - key: "deleteRegistration", - value: function () { - var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { - if (PushHelper.instance) { - PushHelper.instance.deleteRegistration(); - return PushHelper.instance.deleteToken(); - } - - return Promise.resolve(true); - }); - - function deleteRegistration() { - return _deleteRegistration.apply(this, arguments); - } - - return deleteRegistration; - }() - }]); - }(); - - PushHelper.instance = undefined; -},1727,[3,270,6,7,1728,1764,579,1766,1769,1770,1767]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isNotAvailable = exports.default = exports.NOT_AVAILABLE = 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 _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var NOT_AVAILABLE = exports.NOT_AVAILABLE = "n/a"; - - var isNotAvailable = exports.isNotAvailable = function isNotAvailable(str) { - return str === NOT_AVAILABLE; - }; - - var BasePush = exports.default = function () { - function BasePush(name) { - (0, _classCallCheck2.default)(this, BasePush); - this.userId = ""; - this.token = NOT_AVAILABLE; - 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; - } - }, { - key: "unregisterListener", - value: function unregisterListener() { - this.isRegistered = false; - } - }, { - key: "resetTags", - value: function resetTags() { - this.tags = {}; - this.printLog("tags empty"); - } - }, { - key: "setTag", - value: function setTag(key, value) { - this.tags[key] = value; - this.printLog("tags -> " + key + ": " + value); - } - }, { - key: "checkIfAppIsOpenedByNotification", - value: function checkIfAppIsOpenedByNotification() { - return false; - } - }, { - key: "isTherePush", - value: function isTherePush() { - return this.pushToConsume !== undefined; - } - }, { - key: "clearPush", - value: function clearPush() { - this.pushToConsume = undefined; - } - }, { - key: "pushNeedFeedUpdate", - value: function pushNeedFeedUpdate() { - return this.pushToConsume && (this.pushToConsume.action === "openArticle" || this.pushToConsume.action === "openArticleBySource"); - } - }, { - key: "getPush", - value: function getPush() { - return this.pushToConsume; - } - }, { - key: "storePushToConsume", - value: function storePushToConsume(action, value) { - this.pushToConsume = { - action: action, - value: value - }; - } - }, { - key: "onBackgroundMessage", - value: function () { - var _onBackgroundMessage = (0, _asyncToGenerator2.default)(function* (notification) { - this.printLog("on background message: " + JSON.stringify(notification)); - return this.displayNotification(notification); - }); - - function onBackgroundMessage(_x) { - return _onBackgroundMessage.apply(this, arguments); - } - - return onBackgroundMessage; - }() - }, { - key: "displayNotification", - value: function displayNotification(notification) { - this.printLog("display notification unused: " + JSON.stringify(notification)); - } - }, { - 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; - - var rssIsEnabled = false; - var pSetupConfig = global.getRSSActivePSetup(); - - if (!(pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig)) { - pSetupConfig = global.getMainPSetup(); - } - - if (pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig) { - rssIsEnabled = yield pSetupConfig.checkIfRssIsEnabled(); - } - - this.storePushToConsume(action, value); - var mainNavigator = ""; - - switch (action) { - case "openArticle": - case "openArticleBySource": - case "openCategory": - case "openRss": - mainNavigator = "RssNavigator"; - break; - - case "openUrl": - mainNavigator = rssIsEnabled ? "RssNavigator" : "NewsmemoryNavigator"; - break; - - case "openEpaperCoordinates": - mainNavigator = "NewsmemoryNavigator"; - break; - - case "openEpaper": - mainNavigator = "NewsmemoryNavigator"; - break; - } - - if (((_mainNavigator = mainNavigator) == null ? undefined : _mainNavigator.length) > 0) { - if (typeof onOpen === "function") { - onOpen(mainNavigator); - } - - _NavigationService.default.main.reset(mainNavigator); - } - }); - - function openNotification(_x2, _x3, _x4) { - return _openNotification.apply(this, arguments); - } - - return openNotification; - }() - }, { - key: "parsePushData", - value: function parsePushData() { - var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var type = data.type, - feedId = data.feedId, - category = data.category, - url = data.url, - edition = data.edition, - issue = data.issue, - page = data.page, - article = data.article, - source = data.source; - var action = "openEpaper"; - var value = ""; - - if (type === "breakingnews") { - action = "openRss"; - } else if ((feedId == null ? undefined : feedId.length) > 0) { - action = "openArticle"; - value = feedId; - } else if ((source == null ? undefined : source.length) > 0) { - action = "openArticleBySource"; - value = source; - } else if ((category == null ? undefined : category.length) > 0) { - action = "openCategory"; - value = category; - } else if ((url == null ? undefined : url.length) > 0) { - action = "openUrl"; - value = url; - } else if (edition || issue || page || article) { - action = "openEpaperCoordinates"; - value = { - edition: edition, - issue: issue, - page: page, - article: article - }; - } - - return { - action: action, - value: value - }; - } - }, { - key: "printLog", - value: function printLog(message) {} - }, { - key: "getRegistrationInfo", - value: function getRegistrationInfo() { - return { - token: this.token, - userId: this.userId, - serverMessage: this.serverMessage, - service: this.service - }; - } - }, { - key: "init", - value: function init() { - this.printLog(this.service + " doesn't need init"); - } - }, { - key: "initTags", - value: function initTags() { - this.tags = {}; - } - }, { - key: "updateTags", - value: function updateTags() { - this.printLog(this.service + " doesn't need updateTags"); - } - }, { - key: "resetBadge", - value: function resetBadge() { - this.printLog(this.service + " doesn't need resetBadge"); - } - }, { - key: "createAndroidChannels", - value: function () { - var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " doesn't need createAndroidChannels"); - return Promise.resolve(); - }); - - function createAndroidChannels() { - return _createAndroidChannels.apply(this, arguments); - } - - return createAndroidChannels; - }() - }, { - key: "checkIfSendRegistration", - value: function () { - var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " doesn't need checkIfSendRegistration"); - return Promise.resolve(); - }); - - function checkIfSendRegistration() { - return _checkIfSendRegistration.apply(this, arguments); - } - - return checkIfSendRegistration; - }() - }, { - key: "getToken", - value: function () { - var _getToken = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " doesn't need getToken"); - return Promise.resolve(); - }); - - function getToken() { - return _getToken.apply(this, arguments); - } - - return getToken; - }() - }, { - key: "deleteToken", - value: function () { - var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " doesn't need deleteToken"); - return Promise.resolve(); - }); - - function deleteToken() { - return _deleteToken.apply(this, arguments); - } - - return deleteToken; - }() - }, { - key: "sendRegistration", - value: function () { - var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token, service) { - this.printLog(this.service + " doesn't need sendRegistration"); - return true; - }); - - function sendRegistration(_x5, _x6) { - return _sendRegistration.apply(this, arguments); - } - - return sendRegistration; - }() - }, { - key: "deleteRegistration", - value: function () { - var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { - this.printLog(this.service + " doesn't need deleteRegistration"); - return true; - }); - - function deleteRegistration() { - return _deleteRegistration.apply(this, arguments); - } - - return deleteRegistration; - }() - }, { - key: "clearOldStoredNotifications", - value: function () { - var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - return Promise.resolve(); - }); - - function clearOldStoredNotifications() { - return _clearOldStoredNotifications.apply(this, arguments); - } - - return clearOldStoredNotifications; - }() - }]); - }(); -},1728,[3,270,6,7,1729,438,1748]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function closeDrawer(navigation) { - if (navigation) { - navigation.dispatch(_$$_REQUIRE(_dependencyMap[2]).DrawerActions.closeDrawer()); - } - } - - function openDrawer(navigation) { - if (navigation) { - navigation.dispatch(_$$_REQUIRE(_dependencyMap[2]).DrawerActions.openDrawer()); - } - } - - function navigate(navigation, routeName) { - var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - if (!navigation) { - return; - } - - if (global.unauthorized) { - routeName = "UnauthorizedScreen"; - } - - var navigateAction = _$$_REQUIRE(_dependencyMap[2]).CommonActions.navigate({ - name: routeName, - params: params - }); - - navigation.dispatch(navigateAction); - } - - function reset(navigation, route) { - var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - if (!navigation) { - return; - } - - if (global.unauthorized) { - route = "UnauthorizedScreen"; - } - - var resetAction = _$$_REQUIRE(_dependencyMap[2]).CommonActions.reset({ - index: 0, - routes: [{ - name: route, - params: params - }] - }); - - navigation.dispatch(resetAction); - } - - var _navigator; - - var _onRestart; - - function setMainNavigatorRef(navigatorRef) { - _navigator = navigatorRef; - } - - function navigateInMainNavigator(routeName, params) { - var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - navigate(_navigator, routeName, params); - } - - function resetInMainNavigator(routeName, params) { - var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - reset(_navigator, routeName, params); - } - - function goToMainNavigator(mainNavigator, params) { - var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - reset(_navigator, mainNavigator, params); - } - - function setOnRestart(onRestart) { - _onRestart = onRestart; - } - - function restart() { - if (typeof _onRestart === "function") { - _onRestart(); - } - - resetInMainNavigator("SplashScreen"); - } - - var _default = exports.default = { - main: { - navigate: navigateInMainNavigator, - setRef: setMainNavigatorRef, - reset: goToMainNavigator - }, - default: { - navigate: navigate, - reset: reset - }, - drawer: { - close: closeDrawer, - open: openDrawer - }, - onRestart: setOnRestart, - restart: restart, - navigator: { - createStack: _$$_REQUIRE(_dependencyMap[3]).createNativeStackNavigator, - createDrawer: _$$_REQUIRE(_dependencyMap[4]).createDrawerNavigator, - createBottomTab: _$$_REQUIRE(_dependencyMap[5]).createBottomTabNavigator, - createTopTab: _$$_REQUIRE(_dependencyMap[6]).createMaterialTopTabNavigator - }, - getStackScreenOptions: function getStackScreenOptions() { - return { - orientation: _deviceUtils.default.orientationIsLocked ? _deviceUtils.default.lockedOrientation.toLowerCase() : "all", - animation: _$$_REQUIRE(_dependencyMap[7]).PlatformUtils.isIOS() ? "default" : "none" - }; - } - }; -},1729,[3,434,1039,1730,1176,1736,1661,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "NativeStackView", { - enumerable: true, - get: function get() { - return _NativeStackView.default; - } - }); - Object.defineProperty(exports, "createNativeStackNavigator", { - enumerable: true, - get: function get() { - return _createNativeStackNavigator.default; - } - }); - - var _createNativeStackNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _NativeStackView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); -},1730,[3,1731,1732]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _NativeStackView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _excluded = ["initialRouteName", "children", "screenListeners", "screenOptions"]; - - 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 NativeStackNavigator(_ref) { - var initialRouteName = _ref.initialRouteName, - children = _ref.children, - screenListeners = _ref.screenListeners, - screenOptions = _ref.screenOptions, - rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); - - var _useNavigationBuilder = (0, _$$_REQUIRE(_dependencyMap[4]).useNavigationBuilder)(_$$_REQUIRE(_dependencyMap[4]).StackRouter, { - initialRouteName: initialRouteName, - children: children, - screenListeners: screenListeners, - screenOptions: screenOptions - }), - state = _useNavigationBuilder.state, - descriptors = _useNavigationBuilder.descriptors, - navigation = _useNavigationBuilder.navigation, - NavigationContent = _useNavigationBuilder.NavigationContent; - - React.useEffect(function () { - return navigation == null ? undefined : navigation.addListener == null ? undefined : navigation.addListener('tabPress', function (e) { - var isFocused = navigation.isFocused(); - requestAnimationFrame(function () { - if (state.index > 0 && isFocused && !e.defaultPrevented) { - navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[4]).StackActions.popToTop(), { - target: state.key - })); - } - }); - }); - }, [navigation, state.index, state.key]); - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(NavigationContent, { - children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_NativeStackView.default, Object.assign({}, rest, { - state: state, - navigation: navigation, - descriptors: descriptors - })) - }); - } - - var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[4]).createNavigatorFactory)(NativeStackNavigator); -},1731,[3,4,16,1732,1039,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = NativeStackView; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _warnOnce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _DebugContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _HeaderConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - 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 isAndroid = _reactNative.Platform.OS === 'android'; - - var MaybeNestedStack = function MaybeNestedStack(_ref) { - var options = _ref.options, - route = _ref.route, - presentation = _ref.presentation, - headerHeight = _ref.headerHeight, - children = _ref.children; - - var _useTheme = (0, _$$_REQUIRE(_dependencyMap[7]).useTheme)(), - colors = _useTheme.colors; - - var header = options.header, - _options$headerShown = options.headerShown, - headerShown = _options$headerShown === undefined ? true : _options$headerShown, - contentStyle = options.contentStyle; - var isHeaderInModal = isAndroid ? false : presentation !== 'card' && headerShown === true && header === undefined; - var headerShownPreviousRef = React.useRef(headerShown); - React.useEffect(function () { - (0, _warnOnce.default)(!isAndroid && presentation !== 'card' && headerShownPreviousRef.current !== headerShown, "Dynamically changing 'headerShown' in modals will result in remounting the screen and losing all local state. See options for the screen '" + route.name + "'."); - headerShownPreviousRef.current = headerShown; - }, [headerShown, presentation, route.name]); - var content = (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_DebugContainer.default, { - style: [styles.container, presentation !== 'transparentModal' && presentation !== 'containedTransparentModal' && { - backgroundColor: colors.background - }, contentStyle], - stackPresentation: presentation === 'card' ? 'push' : presentation, - children: children - }); - - if (isHeaderInModal) { - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ScreenStack, { - style: styles.container, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[9]).Screen, { - enabled: true, - style: _reactNative.StyleSheet.absoluteFill, - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_HeaderConfig.default, Object.assign({}, options, { - route: route, - headerHeight: headerHeight, - canGoBack: true - })), content] - }) - }); - } - - return content; - }; - - var SceneView = function SceneView(_ref2) { - var descriptor = _ref2.descriptor, - previousDescriptor = _ref2.previousDescriptor, - index = _ref2.index, - onWillDisappear = _ref2.onWillDisappear, - onAppear = _ref2.onAppear, - onDisappear = _ref2.onDisappear, - onDismissed = _ref2.onDismissed; - var route = descriptor.route, - navigation = descriptor.navigation, - options = descriptor.options, - render = descriptor.render; - var animation = options.animation, - _options$animationTyp = options.animationTypeForReplace, - animationTypeForReplace = _options$animationTyp === undefined ? 'push' : _options$animationTyp, - customAnimationOnGesture = options.customAnimationOnGesture, - fullScreenGestureEnabled = options.fullScreenGestureEnabled, - gestureEnabled = options.gestureEnabled, - header = options.header, - headerShown = options.headerShown, - orientation = options.orientation, - statusBarAnimation = options.statusBarAnimation, - statusBarHidden = options.statusBarHidden, - statusBarStyle = options.statusBarStyle; - var _options$presentation = options.presentation, - presentation = _options$presentation === undefined ? 'card' : _options$presentation; - - if (index === 0) { - presentation = 'card'; - } - - var isHeaderInPush = isAndroid ? headerShown : presentation === 'card' && headerShown !== false; - var insets = (0, _$$_REQUIRE(_dependencyMap[10]).useSafeAreaInsets)(); - var frame = (0, _$$_REQUIRE(_dependencyMap[10]).useSafeAreaFrame)(); - var isModal = presentation === 'modal' || presentation === 'formSheet'; - var isIPhone = _reactNative.Platform.OS === 'ios' && !(_reactNative.Platform.isPad && _reactNative.Platform.isTVOS); - var isLandscape = frame.width > frame.height; - var topInset = isModal || isIPhone && isLandscape ? 0 : insets.top; - var isParentHeaderShown = React.useContext(_$$_REQUIRE(_dependencyMap[11]).HeaderShownContext); - var parentHeaderHeight = React.useContext(_$$_REQUIRE(_dependencyMap[11]).HeaderHeightContext); - var defaultHeaderHeight = (0, _$$_REQUIRE(_dependencyMap[11]).getDefaultHeaderHeight)(frame, isModal, topInset); - - var _React$useState = React.useState(defaultHeaderHeight), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - customHeaderHeight = _React$useState2[0], - setCustomHeaderHeight = _React$useState2[1]; - - var headerHeight = header ? customHeaderHeight : defaultHeaderHeight; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Screen, { - enabled: true, - style: _reactNative.StyleSheet.absoluteFill, - customAnimationOnSwipe: customAnimationOnGesture, - fullScreenSwipeEnabled: fullScreenGestureEnabled, - gestureEnabled: isAndroid ? false : gestureEnabled, - replaceAnimation: animationTypeForReplace, - stackPresentation: presentation === 'card' ? 'push' : presentation, - stackAnimation: animation, - screenOrientation: orientation, - statusBarAnimation: statusBarAnimation, - statusBarHidden: statusBarHidden, - statusBarStyle: statusBarStyle, - onWillDisappear: onWillDisappear, - onAppear: onAppear, - onDisappear: onDisappear, - onDismissed: onDismissed, - isNativeStack: true, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).NavigationContext.Provider, { - value: navigation, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).NavigationRouteContext.Provider, { - value: route, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).HeaderShownContext.Provider, { - value: isParentHeaderShown || isHeaderInPush !== false, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[11]).HeaderHeightContext.Provider, { - value: isHeaderInPush !== false ? headerHeight : parentHeaderHeight != null ? parentHeaderHeight : 0, - children: [header !== undefined && headerShown !== false ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { - onLayout: function onLayout(e) { - setCustomHeaderHeight(e.nativeEvent.layout.height); - }, - children: header({ - back: previousDescriptor ? { - title: (0, _$$_REQUIRE(_dependencyMap[11]).getHeaderTitle)(previousDescriptor.options, previousDescriptor.route.name) - } : undefined, - options: options, - route: route, - navigation: navigation - }) - }) : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_HeaderConfig.default, Object.assign({}, options, { - route: route, - headerShown: isHeaderInPush, - headerHeight: headerHeight, - canGoBack: index !== 0 - })), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(MaybeNestedStack, { - options: options, - route: route, - presentation: presentation, - headerHeight: headerHeight, - children: render() - })] - }) - }) - }) - }) - }, route.key); - }; - - function NativeStackViewInner(_ref3) { - var _state$routes$find; - - var state = _ref3.state, - navigation = _ref3.navigation, - descriptors = _ref3.descriptors; - - var _React$useState3 = React.useState(null), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), - nextDismissedKey = _React$useState4[0], - setNextDismissedKey = _React$useState4[1]; - - var dismissedRouteName = nextDismissedKey ? (_state$routes$find = state.routes.find(function (route) { - return route.key === nextDismissedKey; - })) == null ? undefined : _state$routes$find.name : null; - React.useEffect(function () { - if (dismissedRouteName) { - var message = "The screen '" + dismissedRouteName + "' was removed natively but didn't get removed from JS state. " + "This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\n" + "Consider using 'gestureEnabled: false' to prevent back gesture and use a custom back button with 'headerLeft' option to override the native behavior."; - console.error(message); - } - }, [dismissedRouteName]); - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ScreenStack, { - style: styles.container, - children: state.routes.map(function (route, index) { - var _state$routes; - - var descriptor = descriptors[route.key]; - var previousKey = (_state$routes = state.routes[index - 1]) == null ? undefined : _state$routes.key; - var previousDescriptor = previousKey ? descriptors[previousKey] : undefined; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(SceneView, { - index: index, - descriptor: descriptor, - previousDescriptor: previousDescriptor, - onWillDisappear: function onWillDisappear() { - navigation.emit({ - type: 'transitionStart', - data: { - closing: true - }, - target: route.key - }); - }, - onAppear: function onAppear() { - navigation.emit({ - type: 'transitionEnd', - data: { - closing: false - }, - target: route.key - }); - }, - onDisappear: function onDisappear() { - navigation.emit({ - type: 'transitionEnd', - data: { - closing: true - }, - target: route.key - }); - }, - onDismissed: function onDismissed(event) { - navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[7]).StackActions.pop(event.nativeEvent.dismissCount), { - source: route.key, - target: state.key - })); - setNextDismissedKey(route.key); - } - }, route.key); - }) - }); - } - - function NativeStackView(props) { - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).SafeAreaProviderCompat, { - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(NativeStackViewInner, Object.assign({}, props)) - }); - } - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - } - }); -},1732,[3,33,16,18,1178,1733,1734,1039,179,1231,842,1196]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _AppContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["stackPresentation"]; - - 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 Container = _reactNative.View; - - var _default = exports.default = Container; -},1733,[3,4,16,18,336]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = HeaderConfig; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_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; } - - function HeaderConfig(_ref) { - var _ref2, _headerTitleStyleFlat, _headerStyleFlattened; - - var headerHeight = _ref.headerHeight, - headerBackImageSource = _ref.headerBackImageSource, - headerBackButtonMenuEnabled = _ref.headerBackButtonMenuEnabled, - headerBackTitle = _ref.headerBackTitle, - headerBackTitleStyle = _ref.headerBackTitleStyle, - _ref$headerBackTitleV = _ref.headerBackTitleVisible, - headerBackTitleVisible = _ref$headerBackTitleV === undefined ? true : _ref$headerBackTitleV, - headerBackVisible = _ref.headerBackVisible, - headerShadowVisible = _ref.headerShadowVisible, - headerLargeStyle = _ref.headerLargeStyle, - headerLargeTitle = _ref.headerLargeTitle, - headerLargeTitleShadowVisible = _ref.headerLargeTitleShadowVisible, - headerLargeTitleStyle = _ref.headerLargeTitleStyle, - headerBackground = _ref.headerBackground, - headerLeft = _ref.headerLeft, - headerRight = _ref.headerRight, - headerShown = _ref.headerShown, - headerStyle = _ref.headerStyle, - headerBlurEffect = _ref.headerBlurEffect, - headerTintColor = _ref.headerTintColor, - headerTitle = _ref.headerTitle, - headerTitleAlign = _ref.headerTitleAlign, - headerTitleStyle = _ref.headerTitleStyle, - headerTransparent = _ref.headerTransparent, - headerSearchBarOptions = _ref.headerSearchBarOptions, - route = _ref.route, - title = _ref.title, - canGoBack = _ref.canGoBack, - orientation = _ref.orientation; - var insets = (0, _$$_REQUIRE(_dependencyMap[4]).useSafeAreaInsets)(); - - var _useTheme = (0, _$$_REQUIRE(_dependencyMap[5]).useTheme)(), - colors = _useTheme.colors; - - var tintColor = headerTintColor != null ? headerTintColor : _reactNative.Platform.OS === 'ios' ? colors.primary : colors.text; - var headerBackTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerBackTitleStyle) || {}; - var headerLargeTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeTitleStyle) || {}; - var headerTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerTitleStyle) || {}; - var headerStyleFlattened = _reactNative.StyleSheet.flatten(headerStyle) || {}; - var headerLargeStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeStyle) || {}; - - var _processFonts = (0, _$$_REQUIRE(_dependencyMap[6]).processFonts)([headerBackTitleStyleFlattened.fontFamily, headerLargeTitleStyleFlattened.fontFamily, headerTitleStyleFlattened.fontFamily]), - _processFonts2 = (0, _slicedToArray2.default)(_processFonts, 3), - backTitleFontFamily = _processFonts2[0], - largeTitleFontFamily = _processFonts2[1], - titleFontFamily = _processFonts2[2]; - - var titleText = title !== undefined ? title : route.name; - var titleColor = (_ref2 = (_headerTitleStyleFlat = headerTitleStyleFlattened.color) != null ? _headerTitleStyleFlat : headerTintColor) != null ? _ref2 : colors.text; - var titleFontSize = headerTitleStyleFlattened.fontSize; - var titleFontWeight = headerTitleStyleFlattened.fontWeight; - var headerTitleStyleSupported = { - color: titleColor - }; - - if (headerTitleStyleFlattened.fontFamily != null) { - headerTitleStyleSupported.fontFamily = headerTitleStyleFlattened.fontFamily; - } - - if (titleFontSize != null) { - headerTitleStyleSupported.fontSize = titleFontSize; - } - - if (titleFontWeight != null) { - headerTitleStyleSupported.fontWeight = titleFontWeight; - } - - var headerLeftElement = headerLeft == null ? undefined : headerLeft({ - tintColor: tintColor, - canGoBack: canGoBack, - label: headerBackTitle - }); - var headerRightElement = headerRight == null ? undefined : headerRight({ - tintColor: tintColor, - canGoBack: canGoBack - }); - var headerTitleElement = typeof headerTitle === 'function' ? headerTitle({ - tintColor: tintColor, - children: titleText - }) : null; - var supportsHeaderSearchBar = typeof _$$_REQUIRE(_dependencyMap[7]).isSearchBarAvailableForCurrentPlatform === 'boolean' ? _$$_REQUIRE(_dependencyMap[7]).isSearchBarAvailableForCurrentPlatform : _reactNative.Platform.OS === 'ios' && _$$_REQUIRE(_dependencyMap[7]).SearchBar != null; - var hasHeaderSearchBar = supportsHeaderSearchBar && headerSearchBarOptions != null; - - if (headerSearchBarOptions != null && !supportsHeaderSearchBar) { - throw new Error("The current version of 'react-native-screens' doesn't support SearchBar in the header. Please update to the latest version to use this option."); - } - - var backButtonInCustomView = headerBackVisible ? headerLeftElement != null : _reactNative.Platform.OS === 'android' && headerTitleElement != null; - var translucent = headerBackground != null || headerTransparent || (hasHeaderSearchBar || headerLargeTitle) && _reactNative.Platform.OS === 'ios' && headerTransparent !== false; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { - children: [headerBackground != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { - style: [styles.background, headerTransparent ? styles.translucent : null, { - height: headerHeight - }], - children: headerBackground() - }) : null, (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderConfig, { - backButtonInCustomView: backButtonInCustomView, - backgroundColor: (_headerStyleFlattened = headerStyleFlattened.backgroundColor) != null ? _headerStyleFlattened : headerBackground != null || headerTransparent ? 'transparent' : colors.card, - backTitle: headerBackTitleVisible ? headerBackTitle : ' ', - backTitleFontFamily: backTitleFontFamily, - backTitleFontSize: headerBackTitleStyleFlattened.fontSize, - blurEffect: headerBlurEffect, - color: tintColor, - direction: _reactNative.I18nManager.isRTL ? 'rtl' : 'ltr', - disableBackButtonMenu: headerBackButtonMenuEnabled === false, - hidden: headerShown === false, - hideBackButton: headerBackVisible === false, - hideShadow: headerShadowVisible === false || headerBackground != null || headerTransparent, - largeTitle: headerLargeTitle, - largeTitleBackgroundColor: headerLargeStyleFlattened.backgroundColor, - largeTitleColor: headerLargeTitleStyleFlattened.color, - largeTitleFontFamily: largeTitleFontFamily, - largeTitleFontSize: headerLargeTitleStyleFlattened.fontSize, - largeTitleFontWeight: headerLargeTitleStyleFlattened.fontWeight, - largeTitleHideShadow: headerLargeTitleShadowVisible === false, - title: typeof headerTitle === 'string' ? headerTitle : titleText, - titleColor: titleColor, - titleFontFamily: titleFontFamily, - titleFontSize: titleFontSize, - titleFontWeight: titleFontWeight, - topInsetEnabled: insets.top !== 0, - translucent: translucent === true, - screenOrientation: orientation, - children: [_reactNative.Platform.OS === 'ios' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { - children: [headerLeftElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderLeftView, { - children: headerLeftElement - }) : null, headerTitleElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderCenterView, { - children: headerTitleElement - }) : null] - }) : (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { - children: [headerLeftElement != null || typeof headerTitle === 'function' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderLeftView, { - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { - style: styles.row, - children: [headerLeftElement, headerTitleAlign !== 'center' ? typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).HeaderTitle, { - tintColor: tintColor, - style: headerTitleStyleSupported, - children: titleText - }) : null] - }) - }) : null, headerTitleAlign === 'center' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderCenterView, { - children: typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).HeaderTitle, { - tintColor: tintColor, - style: headerTitleStyleSupported, - children: titleText - }) - }) : null] - }), headerBackImageSource !== undefined ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderBackButtonImage, { - source: headerBackImageSource - }) : null, headerRightElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderRightView, { - children: headerRightElement - }) : null, hasHeaderSearchBar ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderSearchBarView, { - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).SearchBar, Object.assign({}, headerSearchBarOptions)) - }) : null] - })] - }); - } - - var styles = _reactNative.StyleSheet.create({ - row: { - flexDirection: 'row', - alignItems: 'center' - }, - translucent: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - zIndex: 1 - }, - background: { - overflow: 'hidden' - } - }); -},1734,[3,33,16,18,842,1039,1735,1231,179,1196]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.processFonts = processFonts; - - var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function processFonts(fontFamilies) { - var _ReactNativeStyleAttr; - - var fontFamilyProcessor = (_ReactNativeStyleAttr = _ReactNativeStyleAttributes.default.fontFamily) == null ? undefined : _ReactNativeStyleAttr.process; - - if (typeof fontFamilyProcessor === 'function') { - return fontFamilies.map(fontFamilyProcessor); - } - - return fontFamilies; - } -},1735,[3,142]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "BottomTabBar", { - enumerable: true, - get: function get() { - return _BottomTabBar.default; - } - }); - Object.defineProperty(exports, "BottomTabBarHeightContext", { - enumerable: true, - get: function get() { - return _BottomTabBarHeightContext.default; - } - }); - Object.defineProperty(exports, "BottomTabView", { - enumerable: true, - get: function get() { - return _BottomTabView.default; - } - }); - Object.defineProperty(exports, "createBottomTabNavigator", { - enumerable: true, - get: function get() { - return _createBottomTabNavigator.default; - } - }); - Object.defineProperty(exports, "useBottomTabBarHeight", { - enumerable: true, - get: function get() { - return _useBottomTabBarHeight.default; - } - }); - - var _createBottomTabNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _BottomTabBar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _BottomTabView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _useBottomTabBarHeight = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); -},1736,[3,1737,1741,1738,1740,1747]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _warnOnce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _BottomTabView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["initialRouteName", "backBehavior", "children", "screenListeners", "screenOptions", "sceneContainerStyle"], - _excluded2 = ["lazy", "tabBarOptions"]; - - 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 BottomTabNavigator(_ref) { - var initialRouteName = _ref.initialRouteName, - backBehavior = _ref.backBehavior, - children = _ref.children, - screenListeners = _ref.screenListeners, - screenOptions = _ref.screenOptions, - sceneContainerStyle = _ref.sceneContainerStyle, - restWithDeprecated = (0, _objectWithoutProperties2.default)(_ref, _excluded); - var lazy = restWithDeprecated.lazy, - tabBarOptions = restWithDeprecated.tabBarOptions, - rest = (0, _objectWithoutProperties2.default)(restWithDeprecated, _excluded2); - var defaultScreenOptions = {}; - - if (tabBarOptions) { - var _tabBarOptions$labelP; - - Object.assign(defaultScreenOptions, { - tabBarHideOnKeyboard: tabBarOptions.keyboardHidesTabBar, - tabBarActiveTintColor: tabBarOptions.activeTintColor, - tabBarInactiveTintColor: tabBarOptions.inactiveTintColor, - tabBarActiveBackgroundColor: tabBarOptions.activeBackgroundColor, - tabBarInactiveBackgroundColor: tabBarOptions.inactiveBackgroundColor, - tabBarAllowFontScaling: tabBarOptions.allowFontScaling, - tabBarShowLabel: tabBarOptions.showLabel, - tabBarLabelStyle: tabBarOptions.labelStyle, - tabBarIconStyle: tabBarOptions.iconStyle, - tabBarItemStyle: tabBarOptions.tabStyle, - tabBarLabelPosition: (_tabBarOptions$labelP = tabBarOptions.labelPosition) != null ? _tabBarOptions$labelP : tabBarOptions.adaptive === false ? 'below-icon' : undefined, - tabBarStyle: [{ - display: tabBarOptions.tabBarVisible ? 'none' : 'flex' - }, defaultScreenOptions.tabBarStyle] - }); - Object.keys(defaultScreenOptions).forEach(function (key) { - if (defaultScreenOptions[key] === undefined) { - delete defaultScreenOptions[key]; - } - }); - (0, _warnOnce.default)(tabBarOptions, "Bottom Tab Navigator: 'tabBarOptions' is deprecated. Migrate the options to 'screenOptions' instead.\n\nPlace the following in 'screenOptions' in your code to keep current behavior:\n\n" + JSON.stringify(defaultScreenOptions, null, 2) + "\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator#options for more details."); - } - - if (typeof lazy === 'boolean') { - defaultScreenOptions.lazy = lazy; - (0, _warnOnce.default)(true, "Bottom Tab Navigator: 'lazy' in props is deprecated. Move it to 'screenOptions' instead.\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator/#lazy for more details."); - } - - var _useNavigationBuilder = (0, _$$_REQUIRE(_dependencyMap[5]).useNavigationBuilder)(_$$_REQUIRE(_dependencyMap[5]).TabRouter, { - initialRouteName: initialRouteName, - backBehavior: backBehavior, - children: children, - screenListeners: screenListeners, - screenOptions: screenOptions, - defaultScreenOptions: defaultScreenOptions - }), - state = _useNavigationBuilder.state, - descriptors = _useNavigationBuilder.descriptors, - navigation = _useNavigationBuilder.navigation, - NavigationContent = _useNavigationBuilder.NavigationContent; - - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(NavigationContent, { - children: (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_BottomTabView.default, Object.assign({}, rest, { - state: state, - navigation: navigation, - descriptors: descriptors, - sceneContainerStyle: sceneContainerStyle - })) - }); - } - - var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[5]).createNavigatorFactory)(BottomTabNavigator); -},1737,[3,4,16,1178,1738,1039,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = BottomTabView; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _BottomTabBarHeightCallbackContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _BottomTabBar = _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 BottomTabView(props) { - var _props$tabBar = props.tabBar, - tabBar = _props$tabBar === undefined ? function (props) { - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBar.default, Object.assign({}, props)); - } : _props$tabBar, - state = props.state, - navigation = props.navigation, - descriptors = props.descriptors, - safeAreaInsets = props.safeAreaInsets, - _props$detachInactive = props.detachInactiveScreens, - detachInactiveScreens = _props$detachInactive === undefined ? _reactNative.Platform.OS === 'web' || _reactNative.Platform.OS === 'android' || _reactNative.Platform.OS === 'ios' : _props$detachInactive, - sceneContainerStyle = props.sceneContainerStyle; - var focusedRouteKey = state.routes[state.index].key; - - var _React$useState = React.useState([focusedRouteKey]), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - loaded = _React$useState2[0], - setLoaded = _React$useState2[1]; - - if (!loaded.includes(focusedRouteKey)) { - setLoaded([].concat((0, _toConsumableArray2.default)(loaded), [focusedRouteKey])); - } - - var dimensions = _$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat.initialMetrics.frame; - - var _React$useState3 = React.useState(function () { - return (0, _BottomTabBar.getTabBarHeight)({ - state: state, - descriptors: descriptors, - dimensions: dimensions, - layout: { - width: dimensions.width, - height: 0 - }, - insets: Object.assign({}, _$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat.initialMetrics.insets, props.safeAreaInsets), - style: descriptors[state.routes[state.index].key].options.tabBarStyle - }); - }), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), - tabBarHeight = _React$useState4[0], - setTabBarHeight = _React$useState4[1]; - - var renderTabBar = function renderTabBar() { - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).SafeAreaInsetsContext.Consumer, { - children: function children(insets) { - var _ref, _safeAreaInsets$top, _ref2, _safeAreaInsets$right, _ref3, _safeAreaInsets$botto, _ref4, _safeAreaInsets$left; - - return tabBar({ - state: state, - descriptors: descriptors, - navigation: navigation, - insets: { - top: (_ref = (_safeAreaInsets$top = safeAreaInsets == null ? undefined : safeAreaInsets.top) != null ? _safeAreaInsets$top : insets == null ? undefined : insets.top) != null ? _ref : 0, - right: (_ref2 = (_safeAreaInsets$right = safeAreaInsets == null ? undefined : safeAreaInsets.right) != null ? _safeAreaInsets$right : insets == null ? undefined : insets.right) != null ? _ref2 : 0, - bottom: (_ref3 = (_safeAreaInsets$botto = safeAreaInsets == null ? undefined : safeAreaInsets.bottom) != null ? _safeAreaInsets$botto : insets == null ? undefined : insets.bottom) != null ? _ref3 : 0, - left: (_ref4 = (_safeAreaInsets$left = safeAreaInsets == null ? undefined : safeAreaInsets.left) != null ? _safeAreaInsets$left : insets == null ? undefined : insets.left) != null ? _ref4 : 0 - } - }); - } - }); - }; - - var routes = state.routes; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat, { - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MaybeScreenContainer, { - enabled: detachInactiveScreens, - hasTwoStates: true, - style: styles.container, - children: routes.map(function (route, index) { - var descriptor = descriptors[route.key]; - var _descriptor$options = descriptor.options, - _descriptor$options$l = _descriptor$options.lazy, - lazy = _descriptor$options$l === undefined ? true : _descriptor$options$l, - unmountOnBlur = _descriptor$options.unmountOnBlur; - var isFocused = state.index === index; - - if (unmountOnBlur && !isFocused) { - return null; - } - - if (lazy && !loaded.includes(route.key) && !isFocused) { - return null; - } - - var _descriptor$options$h = descriptor.options.header, - header = _descriptor$options$h === undefined ? function (_ref5) { - var layout = _ref5.layout, - options = _ref5.options; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Header, Object.assign({}, options, { - layout: layout, - title: (0, _$$_REQUIRE(_dependencyMap[9]).getHeaderTitle)(options, route.name) - })); - } : _descriptor$options$h; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MaybeScreen, { - style: [_reactNative.StyleSheet.absoluteFill, { - zIndex: isFocused ? 0 : -1 - }], - visible: isFocused, - enabled: detachInactiveScreens, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBarHeightContext.default.Provider, { - value: tabBarHeight, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Screen, { - focused: isFocused, - route: descriptor.route, - navigation: descriptor.navigation, - headerShown: descriptor.options.headerShown, - headerTransparent: descriptor.options.headerTransparent, - headerStatusBarHeight: descriptor.options.headerStatusBarHeight, - header: header({ - layout: dimensions, - route: descriptor.route, - navigation: descriptor.navigation, - options: descriptor.options - }), - style: sceneContainerStyle, - children: descriptor.render() - }) - }) - }, route.key); - }) - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBarHeightCallbackContext.default.Provider, { - value: setTabBarHeight, - children: renderTabBar() - })] - }); - } - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - } - }); -},1738,[3,22,33,16,18,1739,1740,1741,179,1196,842,1746]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - - 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 _default = exports.default = React.createContext(undefined); -},1739,[16]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - - 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 _default = exports.default = React.createContext(undefined); -},1740,[16]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = BottomTabBar; - exports.getTabBarHeight = undefined; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _BottomTabBarHeightCallbackContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _useIsKeyboardShown = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _BottomTabItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _excluded = ["state", "descriptors", "dimensions", "insets", "style"]; - var DEFAULT_TABBAR_HEIGHT = 49; - var COMPACT_TABBAR_HEIGHT = 32; - var DEFAULT_MAX_TAB_ITEM_WIDTH = 125; - var useNativeDriver = _reactNative.Platform.OS !== 'web'; - - var shouldUseHorizontalLabels = function shouldUseHorizontalLabels(_ref) { - var state = _ref.state, - descriptors = _ref.descriptors, - layout = _ref.layout, - dimensions = _ref.dimensions; - var tabBarLabelPosition = descriptors[state.routes[state.index].key].options.tabBarLabelPosition; - - if (tabBarLabelPosition) { - switch (tabBarLabelPosition) { - case 'beside-icon': - return true; - - case 'below-icon': - return false; - } - } - - if (layout.width >= 768) { - var maxTabWidth = state.routes.reduce(function (acc, route) { - var tabBarItemStyle = descriptors[route.key].options.tabBarItemStyle; - - var flattenedStyle = _reactNative.StyleSheet.flatten(tabBarItemStyle); - - if (flattenedStyle) { - if (typeof flattenedStyle.width === 'number') { - return acc + flattenedStyle.width; - } else if (typeof flattenedStyle.maxWidth === 'number') { - return acc + flattenedStyle.maxWidth; - } - } - - return acc + DEFAULT_MAX_TAB_ITEM_WIDTH; - }, 0); - return maxTabWidth <= layout.width; - } else { - return dimensions.width > dimensions.height; - } - }; - - var getPaddingBottom = function getPaddingBottom(insets) { - return Math.max(insets.bottom - _reactNative.Platform.select({ - ios: 4, - default: 0 - }), 0); - }; - - var getTabBarHeight = exports.getTabBarHeight = function getTabBarHeight(_ref2) { - var _StyleSheet$flatten; - - var state = _ref2.state, - descriptors = _ref2.descriptors, - dimensions = _ref2.dimensions, - insets = _ref2.insets, - style = _ref2.style, - rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded); - var customHeight = (_StyleSheet$flatten = _reactNative.StyleSheet.flatten(style)) == null ? undefined : _StyleSheet$flatten.height; - - if (typeof customHeight === 'number') { - return customHeight; - } - - var isLandscape = dimensions.width > dimensions.height; - var horizontalLabels = shouldUseHorizontalLabels(Object.assign({ - state: state, - descriptors: descriptors, - dimensions: dimensions - }, rest)); - var paddingBottom = getPaddingBottom(insets); - - if (_reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && isLandscape && horizontalLabels) { - return COMPACT_TABBAR_HEIGHT + paddingBottom; - } - - return DEFAULT_TABBAR_HEIGHT + paddingBottom; - }; - - function BottomTabBar(_ref3) { - var state = _ref3.state, - navigation = _ref3.navigation, - descriptors = _ref3.descriptors, - insets = _ref3.insets, - style = _ref3.style; - - var _useTheme = (0, _$$_REQUIRE(_dependencyMap[8]).useTheme)(), - colors = _useTheme.colors; - - var buildLink = (0, _$$_REQUIRE(_dependencyMap[8]).useLinkBuilder)(); - var focusedRoute = state.routes[state.index]; - var focusedDescriptor = descriptors[focusedRoute.key]; - var focusedOptions = focusedDescriptor.options; - var tabBarShowLabel = focusedOptions.tabBarShowLabel, - _focusedOptions$tabBa = focusedOptions.tabBarHideOnKeyboard, - tabBarHideOnKeyboard = _focusedOptions$tabBa === undefined ? false : _focusedOptions$tabBa, - tabBarVisibilityAnimationConfig = focusedOptions.tabBarVisibilityAnimationConfig, - tabBarStyle = focusedOptions.tabBarStyle, - tabBarBackground = focusedOptions.tabBarBackground, - tabBarActiveTintColor = focusedOptions.tabBarActiveTintColor, - tabBarInactiveTintColor = focusedOptions.tabBarInactiveTintColor, - tabBarActiveBackgroundColor = focusedOptions.tabBarActiveBackgroundColor, - tabBarInactiveBackgroundColor = focusedOptions.tabBarInactiveBackgroundColor; - var dimensions = (0, _$$_REQUIRE(_dependencyMap[9]).useSafeAreaFrame)(); - var isKeyboardShown = (0, _useIsKeyboardShown.default)(); - - var onHeightChange = _react.default.useContext(_BottomTabBarHeightCallbackContext.default); - - var shouldShowTabBar = !(tabBarHideOnKeyboard && isKeyboardShown); - - var visibilityAnimationConfigRef = _react.default.useRef(tabBarVisibilityAnimationConfig); - - _react.default.useEffect(function () { - visibilityAnimationConfigRef.current = tabBarVisibilityAnimationConfig; - }); - - var _React$useState = _react.default.useState(!shouldShowTabBar), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - isTabBarHidden = _React$useState2[0], - setIsTabBarHidden = _React$useState2[1]; - - var _React$useState3 = _react.default.useState(function () { - return new _reactNative.Animated.Value(shouldShowTabBar ? 1 : 0); - }), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 1), - visible = _React$useState4[0]; - - _react.default.useEffect(function () { - var visibilityAnimationConfig = visibilityAnimationConfigRef.current; - - if (shouldShowTabBar) { - var _visibilityAnimationC, _visibilityAnimationC2; - - var animation = (visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC = visibilityAnimationConfig.show) == null ? undefined : _visibilityAnimationC.animation) === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing; - animation(visible, Object.assign({ - toValue: 1, - useNativeDriver: useNativeDriver, - duration: 250 - }, visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC2 = visibilityAnimationConfig.show) == null ? undefined : _visibilityAnimationC2.config)).start(function (_ref4) { - var finished = _ref4.finished; - - if (finished) { - setIsTabBarHidden(false); - } - }); - } else { - var _visibilityAnimationC3, _visibilityAnimationC4; - - setIsTabBarHidden(true); - - var _animation = (visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC3 = visibilityAnimationConfig.hide) == null ? undefined : _visibilityAnimationC3.animation) === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing; - - _animation(visible, Object.assign({ - toValue: 0, - useNativeDriver: useNativeDriver, - duration: 200 - }, visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC4 = visibilityAnimationConfig.hide) == null ? undefined : _visibilityAnimationC4.config)).start(); - } - - return function () { - return visible.stopAnimation(); - }; - }, [visible, shouldShowTabBar]); - - var _React$useState5 = _react.default.useState({ - height: 0, - width: dimensions.width - }), - _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), - layout = _React$useState6[0], - setLayout = _React$useState6[1]; - - var handleLayout = function handleLayout(e) { - var _e$nativeEvent$layout = e.nativeEvent.layout, - height = _e$nativeEvent$layout.height, - width = _e$nativeEvent$layout.width; - onHeightChange == null ? undefined : onHeightChange(height); - setLayout(function (layout) { - if (height === layout.height && width === layout.width) { - return layout; - } else { - return { - height: height, - width: width - }; - } - }); - }; - - var routes = state.routes; - var paddingBottom = getPaddingBottom(insets); - var tabBarHeight = getTabBarHeight({ - state: state, - descriptors: descriptors, - insets: insets, - dimensions: dimensions, - layout: layout, - style: [tabBarStyle, style] - }); - var hasHorizontalLabels = shouldUseHorizontalLabels({ - state: state, - descriptors: descriptors, - dimensions: dimensions, - layout: layout - }); - var tabBarBackgroundElement = tabBarBackground == null ? undefined : tabBarBackground(); - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.Animated.View, { - style: [styles.tabBar, { - backgroundColor: tabBarBackgroundElement != null ? 'transparent' : colors.card, - borderTopColor: colors.border - }, { - transform: [{ - translateY: visible.interpolate({ - inputRange: [0, 1], - outputRange: [layout.height + paddingBottom + _reactNative.StyleSheet.hairlineWidth, 0] - }) - }], - position: isTabBarHidden ? 'absolute' : null - }, { - height: tabBarHeight, - paddingBottom: paddingBottom, - paddingHorizontal: Math.max(insets.left, insets.right) - }, tabBarStyle], - pointerEvents: isTabBarHidden ? 'none' : 'auto', - onLayout: handleLayout, - children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - pointerEvents: "none", - style: _reactNative.StyleSheet.absoluteFill, - children: tabBarBackgroundElement - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - accessibilityRole: "tablist", - style: styles.content, - children: routes.map(function (route, index) { - var _options$tabBarIcon; - - var focused = index === state.index; - var options = descriptors[route.key].options; - - var onPress = function onPress() { - var event = navigation.emit({ - type: 'tabPress', - target: route.key, - canPreventDefault: true - }); - - if (!focused && !event.defaultPrevented) { - navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[8]).CommonActions.navigate({ - name: route.name, - merge: true - }), { - target: state.key - })); - } - }; - - var onLongPress = function onLongPress() { - navigation.emit({ - type: 'tabLongPress', - target: route.key - }); - }; - - var label = options.tabBarLabel !== undefined ? options.tabBarLabel : options.title !== undefined ? options.title : route.name; - var accessibilityLabel = options.tabBarAccessibilityLabel !== undefined ? options.tabBarAccessibilityLabel : typeof label === 'string' && _reactNative.Platform.OS === 'ios' ? label + ", tab, " + (index + 1) + " of " + routes.length : undefined; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[8]).NavigationContext.Provider, { - value: descriptors[route.key].navigation, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[8]).NavigationRouteContext.Provider, { - value: route, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_BottomTabItem.default, { - route: route, - focused: focused, - horizontal: hasHorizontalLabels, - onPress: onPress, - onLongPress: onLongPress, - accessibilityLabel: accessibilityLabel, - to: buildLink(route.name, route.params), - testID: options.tabBarTestID, - allowFontScaling: options.tabBarAllowFontScaling, - activeTintColor: tabBarActiveTintColor, - inactiveTintColor: tabBarInactiveTintColor, - activeBackgroundColor: tabBarActiveBackgroundColor, - inactiveBackgroundColor: tabBarInactiveBackgroundColor, - button: options.tabBarButton, - icon: (_options$tabBarIcon = options.tabBarIcon) != null ? _options$tabBarIcon : function (_ref5) { - var color = _ref5.color, - size = _ref5.size; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MissingIcon, { - color: color, - size: size - }); - }, - badge: options.tabBarBadge, - badgeStyle: options.tabBarBadgeStyle, - label: label, - showLabel: tabBarShowLabel, - labelStyle: options.tabBarLabelStyle, - iconStyle: options.tabBarIconStyle, - style: options.tabBarItemStyle - }) - }) - }, route.key); - }) - })] - }); - } - - var styles = _reactNative.StyleSheet.create({ - tabBar: { - left: 0, - right: 0, - bottom: 0, - borderTopWidth: _reactNative.StyleSheet.hairlineWidth, - elevation: 8 - }, - content: { - flex: 1, - flexDirection: 'row' - } - }); -},1741,[3,33,4,16,18,1739,1742,1743,1039,842,179,1196]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useIsKeyboardShown; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_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; } - - function useIsKeyboardShown() { - var _React$useState = React.useState(false), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - isKeyboardShown = _React$useState2[0], - setIsKeyboardShown = _React$useState2[1]; - - React.useEffect(function () { - var handleKeyboardShow = function handleKeyboardShow() { - return setIsKeyboardShown(true); - }; - - var handleKeyboardHide = function handleKeyboardHide() { - return setIsKeyboardShown(false); - }; - - var subscriptions; - - if (_reactNative.Platform.OS === 'ios') { - subscriptions = [_reactNative.Keyboard.addListener('keyboardWillShow', handleKeyboardShow), _reactNative.Keyboard.addListener('keyboardWillHide', handleKeyboardHide)]; - } else { - subscriptions = [_reactNative.Keyboard.addListener('keyboardDidShow', handleKeyboardShow), _reactNative.Keyboard.addListener('keyboardDidHide', handleKeyboardHide)]; - } - - return function () { - subscriptions.forEach(function (s) { - return s.remove(); - }); - }; - }, []); - return isKeyboardShown; - } -},1742,[3,33,16,18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = BottomTabBarItem; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _color = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _TabBarIcon = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _excluded = ["children", "style", "onPress", "to", "accessibilityRole"]; - - function BottomTabBarItem(_ref) { - var focused = _ref.focused, - route = _ref.route, - label = _ref.label, - icon = _ref.icon, - badge = _ref.badge, - badgeStyle = _ref.badgeStyle, - to = _ref.to, - _ref$button = _ref.button, - button = _ref$button === undefined ? function (_ref2) { - var children = _ref2.children, - style = _ref2.style, - _onPress = _ref2.onPress, - to = _ref2.to, - accessibilityRole = _ref2.accessibilityRole, - rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded); - - if (_reactNative.Platform.OS === 'web' && to) { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Link, Object.assign({}, rest, { - to: to, - style: [styles.button, style], - onPress: function onPress(e) { - if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && (e.button == null || e.button === 0)) { - e.preventDefault(); - _onPress == null ? undefined : _onPress(e); - } - }, - children: children - })); - } else { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Pressable, Object.assign({}, rest, { - accessibilityRole: accessibilityRole, - onPress: _onPress, - style: style, - children: children - })); - } - } : _ref$button, - accessibilityLabel = _ref.accessibilityLabel, - testID = _ref.testID, - onPress = _ref.onPress, - onLongPress = _ref.onLongPress, - horizontal = _ref.horizontal, - customActiveTintColor = _ref.activeTintColor, - customInactiveTintColor = _ref.inactiveTintColor, - _ref$activeBackground = _ref.activeBackgroundColor, - activeBackgroundColor = _ref$activeBackground === undefined ? 'transparent' : _ref$activeBackground, - _ref$inactiveBackgrou = _ref.inactiveBackgroundColor, - inactiveBackgroundColor = _ref$inactiveBackgrou === undefined ? 'transparent' : _ref$inactiveBackgrou, - _ref$showLabel = _ref.showLabel, - showLabel = _ref$showLabel === undefined ? true : _ref$showLabel, - allowFontScaling = _ref.allowFontScaling, - labelStyle = _ref.labelStyle, - iconStyle = _ref.iconStyle, - style = _ref.style; - - var _useTheme = (0, _$$_REQUIRE(_dependencyMap[7]).useTheme)(), - colors = _useTheme.colors; - - var activeTintColor = customActiveTintColor === undefined ? colors.primary : customActiveTintColor; - var inactiveTintColor = customInactiveTintColor === undefined ? (0, _color.default)(colors.text).mix((0, _color.default)(colors.card), 0.5).hex() : customInactiveTintColor; - - var renderLabel = function renderLabel(_ref3) { - var focused = _ref3.focused; - - if (showLabel === false) { - return null; - } - - var color = focused ? activeTintColor : inactiveTintColor; - - if (typeof label === 'string') { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Text, { - numberOfLines: 1, - style: [styles.label, { - color: color - }, horizontal ? styles.labelBeside : styles.labelBeneath, labelStyle], - allowFontScaling: allowFontScaling, - children: label - }); - } - - return label({ - focused: focused, - color: color, - position: horizontal ? 'beside-icon' : 'below-icon' - }); - }; - - var renderIcon = function renderIcon(_ref4) { - var focused = _ref4.focused; - - if (icon === undefined) { - return null; - } - - var activeOpacity = focused ? 1 : 0; - var inactiveOpacity = focused ? 0 : 1; - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_TabBarIcon.default, { - route: route, - horizontal: horizontal, - badge: badge, - badgeStyle: badgeStyle, - activeOpacity: activeOpacity, - inactiveOpacity: inactiveOpacity, - activeTintColor: activeTintColor, - inactiveTintColor: inactiveTintColor, - renderIcon: icon, - style: iconStyle - }); - }; - - var scene = { - route: route, - focused: focused - }; - var backgroundColor = focused ? activeBackgroundColor : inactiveBackgroundColor; - return button({ - to: to, - onPress: onPress, - onLongPress: onLongPress, - testID: testID, - accessibilityLabel: accessibilityLabel, - accessibilityRole: _reactNative.Platform.select({ - ios: 'button', - default: 'tab' - }), - accessibilityState: { - selected: focused - }, - accessibilityStates: focused ? ['selected'] : [], - style: [styles.tab, { - backgroundColor: backgroundColor - }, horizontal ? styles.tabLandscape : styles.tabPortrait, style], - children: (0, _$$_REQUIRE(_dependencyMap[6]).jsxs)(_react.default.Fragment, { - children: [renderIcon(scene), renderLabel(scene)] - }) - }); - } - - var styles = _reactNative.StyleSheet.create({ - tab: { - flex: 1, - alignItems: 'center' - }, - tabPortrait: { - justifyContent: 'flex-end', - flexDirection: 'column' - }, - tabLandscape: { - justifyContent: 'center', - flexDirection: 'row' - }, - label: { - textAlign: 'center', - backgroundColor: 'transparent' - }, - labelBeneath: { - fontSize: 10 - }, - labelBeside: { - fontSize: 13, - marginLeft: 20, - marginTop: 3 - }, - button: { - display: 'flex' - } - }); -},1743,[3,4,1187,16,18,1744,179,1039]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = TabBarIcon; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - var _Badge = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - function TabBarIcon(_ref) { - var _ = _ref.route, - horizontal = _ref.horizontal, - badge = _ref.badge, - badgeStyle = _ref.badgeStyle, - activeOpacity = _ref.activeOpacity, - inactiveOpacity = _ref.inactiveOpacity, - activeTintColor = _ref.activeTintColor, - inactiveTintColor = _ref.inactiveTintColor, - renderIcon = _ref.renderIcon, - style = _ref.style; - var size = 25; - return (0, _$$_REQUIRE(_dependencyMap[4]).jsxs)(_reactNative.View, { - style: [horizontal ? styles.iconHorizontal : styles.iconVertical, style], - children: [(0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.View, { - style: [styles.icon, { - opacity: activeOpacity - }], - children: renderIcon({ - focused: true, - size: size, - color: activeTintColor - }) - }), (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.View, { - style: [styles.icon, { - opacity: inactiveOpacity - }], - children: renderIcon({ - focused: false, - size: size, - color: inactiveTintColor - }) - }), (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_Badge.default, { - visible: badge != null, - style: [styles.badge, horizontal ? styles.badgeHorizontal : styles.badgeVertical, badgeStyle], - size: 18.75, - children: badge - })] - }); - } - - var styles = _reactNative.StyleSheet.create({ - icon: { - position: 'absolute', - alignSelf: 'center', - alignItems: 'center', - justifyContent: 'center', - height: '100%', - width: '100%', - minWidth: 25 - }, - iconVertical: { - flex: 1 - }, - iconHorizontal: { - height: '100%', - marginTop: 3 - }, - badge: { - position: 'absolute', - left: 3 - }, - badgeVertical: { - top: 3 - }, - badgeHorizontal: { - top: 7 - } - }); -},1744,[3,16,18,1745,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = Badge; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _color = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - - var _excluded = ["children", "style", "visible", "size"], - _excluded2 = ["backgroundColor"]; - - 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 Badge(_ref) { - var children = _ref.children, - style = _ref.style, - _ref$visible = _ref.visible, - visible = _ref$visible === undefined ? true : _ref$visible, - _ref$size = _ref.size, - size = _ref$size === undefined ? 18 : _ref$size, - rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); - - var _React$useState = React.useState(function () { - return new _reactNative.Animated.Value(visible ? 1 : 0); - }), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), - opacity = _React$useState2[0]; - - var _React$useState3 = React.useState(visible), - _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), - rendered = _React$useState4[0], - setRendered = _React$useState4[1]; - - var theme = (0, _$$_REQUIRE(_dependencyMap[6]).useTheme)(); - React.useEffect(function () { - if (!rendered) { - return; - } - - _reactNative.Animated.timing(opacity, { - toValue: visible ? 1 : 0, - duration: 150, - useNativeDriver: true - }).start(function (_ref2) { - var finished = _ref2.finished; - - if (finished && !visible) { - setRendered(false); - } - }); - - return function () { - return opacity.stopAnimation(); - }; - }, [opacity, rendered, visible]); - - if (!rendered) { - if (visible) { - setRendered(true); - } else { - return null; - } - } - - var _ref3 = _reactNative.StyleSheet.flatten(style) || {}, - _ref3$backgroundColor = _ref3.backgroundColor, - backgroundColor = _ref3$backgroundColor === undefined ? theme.colors.notification : _ref3$backgroundColor, - restStyle = (0, _objectWithoutProperties2.default)(_ref3, _excluded2); - - var textColor = (0, _color.default)(backgroundColor).isLight() ? 'black' : 'white'; - var borderRadius = size / 2; - var fontSize = Math.floor(size * 3 / 4); - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.Animated.Text, Object.assign({ - numberOfLines: 1, - style: [{ - transform: [{ - scale: opacity.interpolate({ - inputRange: [0, 1], - outputRange: [0.5, 1] - }) - }], - color: textColor, - lineHeight: size - 1, - height: size, - minWidth: size, - opacity: opacity, - backgroundColor: backgroundColor, - fontSize: fontSize, - borderRadius: borderRadius - }, styles.container, restStyle] - }, rest, { - children: children - })); - } - - var styles = _reactNative.StyleSheet.create({ - container: { - alignSelf: 'flex-end', - textAlign: 'center', - paddingHorizontal: 4, - overflow: 'hidden' - } - }); -},1745,[3,33,4,1187,16,18,1039,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MaybeScreen = MaybeScreen; - exports.MaybeScreenContainer = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _excluded = ["enabled"], - _excluded2 = ["visible", "children"]; - - 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 Screens; - - try { - Screens = _$$_REQUIRE(_dependencyMap[4]); - } catch (e) {} - - var MaybeScreenContainer = exports.MaybeScreenContainer = function MaybeScreenContainer(_ref) { - var _Screens; - - var enabled = _ref.enabled, - rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); - - if ((_Screens = Screens) != null && _Screens.screensEnabled != null && _Screens.screensEnabled()) { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Screens.ScreenContainer, Object.assign({ - enabled: enabled - }, rest)); - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, Object.assign({}, rest)); - }; - - function MaybeScreen(_ref2) { - var _Screens2; - - var visible = _ref2.visible, - children = _ref2.children, - rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2); - - if ((_Screens2 = Screens) != null && _Screens2.screensEnabled != null && _Screens2.screensEnabled()) { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Screens.Screen, Object.assign({ - activityState: visible ? 2 : 0 - }, rest, { - children: children - })); - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[6]).ResourceSavingView, Object.assign({ - visible: visible - }, rest, { - children: children - })); - } -},1746,[3,4,16,18,1231,179,1196]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = useFloatingBottomTabBarHeight; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - - var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); - - 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 useFloatingBottomTabBarHeight() { - var height = React.useContext(_BottomTabBarHeightContext.default); - - if (height === undefined) { - throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?"); - } - - return height; - } -},1747,[16,3,1740]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.URL_TYPES = exports.SHOW_TYPES_ARTICLE = exports.RSS_ENABLED = exports.PaperSetupConfig = exports.PAGES_NAVIGATION_BUTTONS_LAYOUT = exports.NEWSMEMORY_START_MODE = exports.NEWSMEMORY_SCREENS_NAME = exports.NEWSMEMORY_SCREENS = exports.NEWSMEMORY_ENABLED = exports.MERGE_ARTICLES_TYPES = exports.MAX_SHARE_CHECK_TYPES = exports.LATEST_AVAILABLE_EDITION_FORMAT = exports.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = exports.ENCRYPT_FILENAME_TYPE = exports.DEFAULT = exports.BOTH_ENABLED = exports.ARTICLE_TITLE_BOX_MODE = 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 _PaperSetupHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Payment = _$$_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 DEFAULT = exports.DEFAULT = "0"; - var RSS_ENABLED = exports.RSS_ENABLED = "1"; - var NEWSMEMORY_ENABLED = exports.NEWSMEMORY_ENABLED = "2"; - var BOTH_ENABLED = exports.BOTH_ENABLED = "3"; - var NEWSMEMORY_SCREENS = exports.NEWSMEMORY_SCREENS = { - REACT: 0, - HTML5: 2 - }; - var NEWSMEMORY_SCREENS_NAME = exports.NEWSMEMORY_SCREENS_NAME = { - REACT: "NewsmemoryScreen", - HTML5: "NewsmemoryHTML5Screen" - }; - var URL_TYPES = exports.URL_TYPES = { - NONE: "none", - UNDERLINE: "underline", - SQUARED: "squared", - ROUNDED: "rounded" - }; - var MERGE_ARTICLES_TYPES = exports.MERGE_ARTICLES_TYPES = { - NORMAL: 0, - MERGED: 1, - ONLY_FIRST: 2, - PAGE_REFS: 3 - }; - var NEWSMEMORY_START_MODE = exports.NEWSMEMORY_START_MODE = { - READ: "read", - SWIPE: "swipe", - BROWSE: "browse" - }; - var SHOW_TYPES_ARTICLE = exports.SHOW_TYPES_ARTICLE = { - ONLY_TEXT: "0", - TEXT_AND_GRAPH: "1", - ALL: "2" - }; - var PAGES_NAVIGATION_BUTTONS_LAYOUT = exports.PAGES_NAVIGATION_BUTTONS_LAYOUT = { - HIDDEN: "0", - FIXED: "1", - ANIMATED: "2" - }; - var LATEST_AVAILABLE_EDITION_FORMAT = exports.LATEST_AVAILABLE_EDITION_FORMAT = { - PLAIN_MESSAGE: "0", - ONLY_EDITION: "1", - ISSUE_AND_EDITION: "2" - }; - var ENCRYPT_FILENAME_TYPE = exports.ENCRYPT_FILENAME_TYPE = { - NONE: 0, - MAIN: 1, - XPAPER: 2 - }; - var MAX_SHARE_CHECK_TYPES = exports.MAX_SHARE_CHECK_TYPES = { - LOCAL: 1, - REMOTE: 2 - }; - var ARTICLE_TITLE_BOX_MODE = exports.ARTICLE_TITLE_BOX_MODE = { - NEVER: "0", - EDITORIAL_ONLY: "1", - ALL: "2" - }; - var FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = exports.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS = "device=$deviceType&issue=$issue&edition=$edition&page=$page&article_id=$articleId&action=$action&epaper_access=$ePaperAccess&app_mode=$appSide&title=$title&site_id=$siteId&remote_site_id=$remoteSiteId"; - var defaultCustomCSSFilename = "csscustom"; - var KEYS_REQUIRE_RESTART = ["pSetup", "paper", "layoutStyle", "layoutSubStyle", "newsmemoryToUse", "rssIsEnabled", "newsMemoryIsEnabled", "migrate", "comScoreId", "comScorePublisherSecret", "comScoreAppName", "rempAccountURL", "adobeAnalyticsEnabled", "adobeAnalyticsConfig", "matherAnalyticsEnabled", "matomoEnabled", "matomoConfig", "matomoTrackerEnabled", "matomoTrackerConfig", "facebookAnalyticsEnabled", "attConfig", "iubendaEnabled", "iubendaConfig", "bundleUpdateAvailable", "resetAppBundle", "isGenericApp", "rnStyles", "fixButtonsBarToBottom", "externalXPapers", "pushTags", "useAsymmetricCardList", "preventScreenshots", "showNativeOptionsPageFallbackUrl", "lockPanIfNotZoomedByDegrees", "showOpenArticleExtraOnTitleBox", "osanoEnabled", "osanoConfig"]; - var KEYS_LAYOUT_UPDATE = ["checksum"]; - var KEYS_NO_UPDATE = ["json", "pSetupFileTime", "checksum", "lastIssue", "lastEdition", "demoIssue", "external"]; - var keys = _PaperSetupHelper.default.SP.keys; - - var PaperSetupConfig = exports.PaperSetupConfig = function (_PaperSetupBaseConfig) { - function PaperSetupConfig() { - var _this; - - (0, _classCallCheck2.default)(this, PaperSetupConfig); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, PaperSetupConfig, [].concat(args)); - _this.external = false; - return _this; - } - - (0, _inherits2.default)(PaperSetupConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(PaperSetupConfig, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var _yield$this$getValue; - - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(PaperSetupConfig.prototype), "init", this).call(this, json); - this.layoutStyle = yield this.getValue(keys.layout_style); - - if (!this.layoutStyle) { - return false; - } - - if (this.pSetup === global.getAppPSetup()) { - var forcedSubLayout = yield global.getUserSettings().getForceLayoutSubStyle(); - this.layoutSubStyle = forcedSubLayout || (yield this.getValue(keys.layout_sub_style)); - } else { - this.layoutSubStyle = yield this.getValue(keys.layout_sub_style); - } - - var userIP = (yield this.getValue(keys.user_ip)) || "n/a"; - - _$$_REQUIRE(_dependencyMap[11]).NetworkUtils.setIP(userIP); - - this.isAllowedIP = (yield this.getValue(keys.is_allowed_ip)) === "1"; - this.machine = yield this.getValue(keys.machine); - this.premiumIconURL = this.machine.concat("/eeLayout/").concat(this.layoutStyle).concat("/").concat(this.layoutSubStyle).concat("/images/webapp/tecnavia_premium_article.png"); - this.paper = yield this.getValue(keys.paper); - this.xpaper = yield this.getValue(keys.xpaper); - this.appModeSelectionPageEnabled = (yield this.getValue(keys.app_mode_selection_page_enabled)) === "1"; - this.appModeSelectionPageURL = yield this.getValue(keys.app_mode_selection_page_url); - this.appModeSelectionPageVersion = Number.parseInt(yield this.getValue(keys.app_mode_selection_page_version), 10) || 0; - this.poweredBy = yield this.getValue(keys.powered_by); - this.poweredByURL = yield this.getValue(keys.powered_by_url); - this.copyright = yield this.getValue(keys.copyright); - this.copyrightURL = yield this.getValue(keys.copyright_url); - this.addDisclaimer = yield this.getValue(keys.add_disclaimer); - this.paperName = yield this.getValue(keys.paper_name); - this.language = yield this.getValue(keys.language); - this.siteDomain = yield this.getValue(keys.site_domain); - this.isLite = (yield this.getValue(keys.is_lite)) === "1"; - this.specials = (yield this.getValue(keys.init_x_paper_not_in_view)) || ""; - this.externalXPapers = (yield this.getValue(keys.external_xpapers)) || ""; - this.xPapers = (yield this.getValue(keys.xpapers)) || ""; - this.specialBeforeIndex = yield this.getValue(keys.special_before_index); - this.specialBeforeIndexTablet = yield this.getValue(keys.special_before_index_tablet); - this.specialBeforeIndexPhone = yield this.getValue(keys.special_before_index_phone); - this.udb = yield this.getValue(keys.udb); - this.loginStatus = new (_$$_REQUIRE(_dependencyMap[12]).LoginStatus)(); - - if (!(yield this.loginStatus.init(this.udb))) {} - - this.loginStatus.setOneTimeToken(yield this.getValue(keys.preview_token)); - var refreshesTAUIDString = (yield this.getValue(keys.refreshes_tauid)) || ""; - this.refreshesTAUIDTimestamp = _$$_REQUIRE(_dependencyMap[11]).DateUtils.getUnixTimestampFromDateTimeString(refreshesTAUIDString); - var customUserAgentIsEnabled = (yield this.getValue(keys.change_user_agent_for_oauth)) === "1"; - var customUserAgent = ""; - - if (customUserAgentIsEnabled) { - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid()) { - customUserAgent = (yield this.getValue(keys.custom_user_agent_for_oauth)) || ""; - } else { - var userAgentSuffix = (yield this.getValue(keys.custom_string_to_append_to_user_agent_for_oauth)) || "Safari/{APPLE_WEBKIT_VERSION}"; - - if (userAgentSuffix) { - userAgentSuffix = userAgentSuffix.replace("{APPLE_WEBKIT_VERSION}", _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.getAppleWebKitVersion()); - customUserAgent = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.getUserAgent() + " " + userAgentSuffix; - } - } - } - - this.overrideNewsMemoryUserAgent = customUserAgent; - this.newsmemoryToUse = parseInt((yield this.getValue(keys.newsmemory_to_use)) || NEWSMEMORY_SCREENS.NATIVE, 10); - this.newsmemoryToUseTimestamp = (yield this.getValue(keys.newsmemory_to_use_timestamp)) || ""; - this.galleryDownloadEnabled = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() && (yield this.getValue(keys.gallery_download_enabled)) === "1"; - this.galleryThumbnailEnabled = (yield this.getValue(keys.gallery_thumbnail_disabled)) !== "1"; - this.openHttpLinkOnExternalBrowser = ((yield this.getValue(keys.open_http_link_on_external_browser)) || "1") !== "0"; - this.pSetupFileTime = parseInt((yield this.getValue(keys.file_time)) || -1, 10); - this.rssIndexFileTime = parseInt((yield this.getValue(keys.rss_index_file_time)) || -1, 10); - this.customLanguagePackFileTime = parseInt((yield this.getValue(keys.custom_language_pack_file_time)) || -1, 10); - this.customFontsString = (_yield$this$getValue = yield this.getValue(keys.custom_fonts)) != null ? _yield$this$getValue : ""; - this.customFontsFileTime = parseInt((yield this.getValue(keys.custom_fonts_file_time)) || -1, 10); - this.loadEditionsUrl = yield this.getValue(keys.load_editions_url); - var optionsPageMode = parseInt(yield this.getValue(keys.option_page_mode), 10); - var optionsPageBaseURL = yield this.getValue(keys.option_page_url); - var optionsPageCoordinates = (yield this.getValue(keys.option_page_coordinates)) || ""; - var optionsPageModal = (yield this.getValue(keys.option_page_modal)) === "1"; - this.optionspageConfig = new (_$$_REQUIRE(_dependencyMap[13]).OptionspageConfig)({ - mode: optionsPageMode, - baseURL: optionsPageBaseURL, - coordinatesString: optionsPageCoordinates, - modal: optionsPageModal - }); - this.optionsPageTabPath = (yield this.getValue(keys.options_page_tab_path)) || ""; - var modeEnabled = yield this.getValue(keys.mode_enabled); - this.rssIsEnabled = yield this.checkIfRssIsEnabled(); - this.newsMemoryIsEnabled = modeEnabled === DEFAULT || modeEnabled === NEWSMEMORY_ENABLED || modeEnabled === BOTH_ENABLED; - this.startupMode = yield this.getValue(keys.startup_mode); - this.startupModeTimestamp = (yield this.getValue(keys.startup_mode_timestamp)) || ""; - var baseRssUpdateURL = yield this.getValue(keys.base_rss_update_url); - baseRssUpdateURL = _$$_REQUIRE(_dependencyMap[11]).NetworkUtils.addDefaultProtocol(baseRssUpdateURL); - baseRssUpdateURL = _webUtils.default.replaceUrlPlaceHolder(baseRssUpdateURL); - this.baseRssUpdateURL = baseRssUpdateURL; - this.feedbackEnabled = (yield this.getValue(keys.feedback.enable)) === "1"; - - if (this.feedbackEnabled) { - this.feedbackConfig = new (_$$_REQUIRE(_dependencyMap[14]).FeedbackConfig)(this.pSetup, this.originalMachine); - yield this.feedbackConfig.init(json); - } - - this.disableFirebaseAnalytics = ((yield this.getValue(keys.disable_firebase_analytics)) || "0") === "1"; - this.firebaseAnalyticsCustomDimensions = (yield this.getValue(keys.firebase_analytics_custom_dimensions)) || FIREBASE_DEFAULT_CUSTOM_DIMENSIONS; - this.otherFirebaseProjects = []; - var otherFirebaseProjectsRaw = yield this.getValue(keys.other_firebase_projects); - - if (otherFirebaseProjectsRaw) { - try { - this.otherFirebaseProjects = JSON.parse(otherFirebaseProjectsRaw); - } catch (e) {} - } - - this.firebaseAnalyticsSendExternalId = ((yield this.getValue(keys.firebase_analytics_send_external_id)) || "0") === "1"; - this.rempAccountURL = yield this.getValue(keys.remp_account); - this.comScoreAppName = yield this.getValue(keys.comscore.app_name); - this.comScoreId = yield this.getValue(keys.comscore.id); - this.comScorePublisherSecret = yield this.getValue(keys.comscore.publisher_secret); - this.comScoreBaseURL = yield this.getValue(keys.comscore.base_url); - this.matherAnalyticsEnabled = ((yield this.getValue(keys.mather_analytics.enabled)) || "0") === "1"; - this.matherAnalyticsCustomerId = (yield this.getValue(keys.mather_analytics.customer_id)) || ""; - this.matherAnalyticsSiteId = (yield this.getValue(keys.mather_analytics.site_id)) || ""; - this.matherAnalyticsSendEmail = ((yield this.getValue(keys.mather_analytics.send_email)) || "0") === "1"; - this.adobeAnalyticsEnabled = ((yield this.getValue(keys.adobe_analytics.enabled)) || "0") === "1"; - - if (this.adobeAnalyticsEnabled) { - this.adobeAnalyticsConfig = new (_$$_REQUIRE(_dependencyMap[15]).AdobeAnalyticsConfig)(this.pSetup, this.originalMachine); - yield this.adobeAnalyticsConfig.init(json); - } - - this.matomoEnabled = ((yield this.getValue(keys.matomo.enabled)) || "0") === "1"; - - if (this.matomoEnabled) { - this.matomoConfig = new (_$$_REQUIRE(_dependencyMap[16]).MatomoConfig)(this.pSetup, this.originalMachine); - yield this.matomoConfig.init(json); - } - - this.matomoTrackerEnabled = ((yield this.getValue(keys.matomo_tracker.enabled)) || "0") === "1"; - - if (this.matomoTrackerEnabled) { - this.matomoTrackerConfig = new (_$$_REQUIRE(_dependencyMap[17]).MatomoTrackerConfig)(this.pSetup, this.originalMachine); - yield this.matomoTrackerConfig.init(json); - } - - var facebookAnalyticsEnabled = (yield this.getValue(keys.facebook_enabled)) || ""; - this.facebookAnalyticsEnabled = facebookAnalyticsEnabled && facebookAnalyticsEnabled !== "0"; - this.blueConicEnabled = ((yield this.getValue(keys.blueconic.enabled)) || "0") === "1"; - - if (this.blueConicEnabled) { - this.blueConicConfig = new (_$$_REQUIRE(_dependencyMap[18]).BlueConicConfig)(this.pSetup, this.originalMachine); - yield this.blueConicConfig.init(json); - } - - this.chartbeatConfig = new (_$$_REQUIRE(_dependencyMap[19]).ChartbeatConfig)(this.pSetup, this.originalMachine); - yield this.chartbeatConfig.init(json); - this.defaultConnectivity = yield this.getValue(keys.default_connectivity); - this.defaultConnectivityTimestamp = (yield this.getValue(keys.default_connectivity_timestamp)) || ""; - this.urlType = (yield this.getValue(keys.url_type)) || URL_TYPES.UNDERLINE; - this.showLinksHighlight = ((yield this.getValue(keys.showLinksHighlight)) || "1") === "1"; - this.relabel = { - fitPageButton: yield this.getValue(keys.relabel_fit_page_button), - downloadButton: yield this.getValue(keys.relabel_offline_button), - helpButton: yield this.getValue(keys.relabel_help_button), - settingsButton: yield this.getValue(keys.relabel_setting_button), - editionsButton: yield this.getValue(keys.relabel_option_button), - specialSectionButton: yield this.getValue(keys.relabel_special_sections_button), - searchButton: yield this.getValue(keys.relabel_search_button), - indexButton: yield this.getValue(keys.relabel_ebook_button), - gBookButton: yield this.getValue(keys.relabel_gbook_button), - thumbnailButton: yield this.getValue(keys.relabel_phodir_button), - feedButton: yield this.getValue(keys.relabel_feed_button) - }; - this.defaultMaxIssues = parseInt(yield this.getValue(keys.default_max_issues), 10) || 30; - this.dateFormat = yield this.getValue(keys.date_format); - this.showWeekAfterDate = (yield this.getValue(keys.show_week)) === "1"; - this.downloadMultiZips = (yield this.getValue(keys.download_multi_zips)) === "1"; - this.showTypesArticle = (yield this.getValue(keys.show_types_article)) || SHOW_TYPES_ARTICLE.TEXT_AND_GRAPH; - this.enableArticleExtra = ((yield this.getValue(keys.enable_article_extra)) || "0") === "1"; - this.maxZipsToDownloadEachRequest = parseInt(yield this.getValue(keys.max_zips_to_download_per_request), 10) || 10; - this.cssFilesToAdd = defaultCustomCSSFilename; - var otherCSSFiles = yield this.getValue(keys.css_files_to_add); - - if (otherCSSFiles) { - this.cssFilesToAdd += "," + otherCSSFiles; - } - - this.emailContent = yield this.getValue(keys.email_content); - this.emailSubject = yield this.getValue(keys.email_subject); - this.twitterText = yield this.getValue(keys.twitter_text); - this.updateDBPercentage = parseInt(yield this.getValue(keys.update_db_percentage), 10) || 50; - this.enableAdvancedGesturesMode = ((yield this.getValue(keys.enable_advanced_gestures_mode)) || "1") === "1"; - - if (this.enableAdvancedGesturesMode) { - this.twoFingersTapToArticle = ((yield this.getValue(keys.two_fingers_tap_to_article)) || "0") === "1"; - - if (this.twoFingersTapToArticle) { - this.singleTapToZoom = ((yield this.getValue(keys.single_tap_to_zoom)) || "1") === "1"; - } else { - this.singleTapToZoom = false; - } - } else { - this.twoFingersTapToArticle = true; - this.singleTapToZoom = true; - } - - this.lockHorizontalPanIfNotZoomed = ((yield this.getValue(keys.lock_horizontal_pan_if_not_zoomed)) || "0") === "1"; - this.lockPanIfNotZoomedByDegrees = yield this._getLockPanIfNotZoomedByDegrees(); - this.machineForHR = (yield this.getValue(keys.machine_for_hr)) || this.machine; - this.translationAvailable = (yield this.getValue(keys.translation_available)) === "1"; - this.translationServer = (yield this.getValue(keys.translation_server)) || ""; - this.useNativeAccessibility = ((yield this.getValue(keys.use_native_accessibility)) || "0") === "1" || global.isDebug; - this.useCarMode = ((yield this.getValue(keys.use_car_mode)) || "0") === "1" || global.isDebug; - this.showNativeOptionsPageFallbackUrl = yield this.getValue(keys.show_native_options_page_fallback_url); - this.showNativeOptionsPage = ((yield this.getValue(keys.show_native_options_page)) || "0") === "1"; - this.showNativeSettingsScreen = ((yield this.getValue(keys.show_native_settings_screen)) || "0") === "1" || global.isDebug; - this.showTranslationCustomization = ((yield this.getValue(keys.enable_translation_customization)) || "1") === "1"; - this.showThemesCustomization = ((yield this.getValue(keys.show_themes_customization)) || "1") === "1"; - this.enableZoomLevelCustomization = ((yield this.getValue(keys.enable_zoom_level_customization)) || "1") === "1"; - this.enableArticleTypesCustomization = ((yield this.getValue(keys.enable_article_types_customization)) || "1") === "1"; - this.showArticleColumnViewCustomization = ((yield this.getValue(keys.show_article_column_view_customization)) || "1") === "1"; - this.showNavigationButtonsLayoutCustomization = ((yield this.getValue(keys.show_navigation_buttons_layout_customization)) || "1") === "1"; - this.showXPaperNavigationCloseButton = ((yield this.getValue(keys.show_xpaper_navigation_close_button)) || "0") === "1"; - this.showHighlightBehaviorCustomization = ((yield this.getValue(keys.show_highlight_behavior_customization)) || "1") === "1"; - this.showOpenArticleExtraOnTitleBox = (yield this.getValue(keys.show_open_article_extra_on_title_box)) || ARTICLE_TITLE_BOX_MODE.NEVER; - this.changeFavoriteEdition = ((yield this.getValue(keys.change_favorite_edition)) || "0") === "1"; - this.favoriteEdition = (yield this.getValue(keys.favorite_edition)) || ""; - this.enableConnectivityOptions = ((yield this.getValue(keys.enable_connectivity_options)) || "1") === "1"; - this.enableFontSizeCustomization = ((yield this.getValue(keys.enable_font_size_customization)) || "1") === "1"; - this.enableGraphSizeCustomization = ((yield this.getValue(keys.enable_graph_size_customization)) || "1") === "1"; - this.fitGraphicArticle = parseInt((yield this.getValue(keys.fit_graphic_article)) || "1", 10); - this.subPath = yield this.getValue(keys.sub_path); - this.extraLinkColor = (yield this.getValue(keys.extra_link_color)) || "255,0,0,0.25"; - var bgDurationTemp = parseInt(yield this.getValue(keys.background_duration_article_selected), 10); - this.backgroundDurationArticleSelected = _$$_REQUIRE(_dependencyMap[11]).JSUtils.isNumber(bgDurationTemp) ? bgDurationTemp : _$$_REQUIRE(_dependencyMap[20]).HIDE_ANIMATION_DURATION; - var bgTimerTemp = parseInt(yield this.getValue(keys.background_timer_article_selected), 10); - this.backgroundTimerArticleSelected = _$$_REQUIRE(_dependencyMap[11]).JSUtils.isNumber(bgTimerTemp) ? bgTimerTemp : _$$_REQUIRE(_dependencyMap[20]).HIDE_ANIMATION_TIMER; - this.backgroundColorArticleSelected = (yield this.getValue(keys.background_color_article.selected)) || "255,0,0,0.25"; - this.backgroundColorArticleToSelect = (yield this.getValue(keys.background_color_article.to_select)) || this.backgroundColorArticleSelected; - this.previewHighlightEnabled = ((yield this.getValue(keys.preview_highlight_enabled)) || "0") === "1"; - this.previewHighlightDurationSeconds = parseInt((yield this.getValue(keys.preview_highlight_duration_seconds)) || "2", 10); - this.zoomingFactor = parseInt(yield this.getValue(keys.zooming_factor), 10); - this.zoomingFactor = this.zoomingFactor <= 0 ? 100 : this.zoomingFactor; - this.maxZoom = parseInt((yield this.getValue(keys.max_zoom)) || "5", 10); - this.pdfThumbnailRatio = parseFloat((yield this.getValue(keys.pdf_thumbnail_ratio)) || "0.5"); - this.einkCompleteHrFactor = parseFloat((yield this.getValue(keys.eink_complete_hr_factor)) || "2.2"); - this.hrFactor = parseInt((yield this.getValue(keys.hr_factor)) || "1", 10); - this.pdfFactor = parseFloat((yield this.getValue(keys.pdf_factor)) || "1.2"); - this.pdfFactorLandscape = parseFloat((yield this.getValue(keys.pdf_factor_landscape)) || "1"); - this.forcePdfInRoamingMode = ((yield this.getValue(keys.force_pdf_in_roaming_mode)) || "0") === "1"; - this.lowPagesToRender = parseInt((yield this.getValue(keys.low_pages_to_render)) || "1", 10); - this.midPagesToRender = parseInt((yield this.getValue(keys.mid_pages_to_render)) || "1", 10); - this.loadMidResOnScroll = ((yield this.getValue(keys.load_mid_res_on_scroll)) || "1") === "1"; - this.enableArticleTextSelection = (yield this.getValue(keys.enable_article_text_selection)) === "1"; - this.showEditionThumbs = (yield this.getValue(keys.show_edition_thumbs)) === "1"; - this.scrollTiles = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet() ? yield this.getValue(keys.scroll_tiles) : yield this.getValue(keys.scroll_tiles_phone); - this.scrollTiles = parseInt(this.scrollTiles, 10); - this.onLoginErrorGoTo = (yield this.getValue(keys.on_login_error_go_to)) || _$$_REQUIRE(_dependencyMap[21]).tabs.home; - this.onValidationErrorGoTo = (yield this.getValue(keys.on_validation_error_go_to)) || _$$_REQUIRE(_dependencyMap[21]).tabs.login; - this.timeLimitCheckEdition = (parseInt(yield this.getValue(keys.time_limit_check_edition), 10) || 10) * 60 * 1000; - this.latestEditionAvailableMessageFormat = parseInt(yield this.getValue(keys.latest_edition_available_message_format), 10) || LATEST_AVAILABLE_EDITION_FORMAT.ISSUE_AND_EDITION; - this.timeLimitCheckLogin = (parseInt(yield this.getValue(keys.time_limit_check_login), 10) || 7200) * 1000; - this.timeLimitForgetLogin = (parseInt(yield this.getValue(keys.time_limit_forget_login), 10) || 120) * 60 * 1000; - this.lastPSetup = (yield this.getValue(keys.last_pSetup)) || this.pSetup; - this.lastIssue = yield this.getValue(keys.last_issue); - this.lastEdition = yield this.getValue(keys.last_edition); - this.demoIssue = yield this.getValue(keys.demo_issue); - this.articleModeDefaultFullscreenPortrait = (yield this.getValue(keys.force_article_mode_fullscreen_portrait)) || "0"; - this.articleModeDefaultFullscreenLandscape = (yield this.getValue(keys.force_article_mode_fullscreen_landscape)) || "0"; - this.enableTextToSpeech = parseInt((yield this.getValue(keys.enable_text_to_speech)) || "1", 10) === 1; - this.enableTextToSpeechPlayer = parseInt((yield this.getValue(keys.enable_text_to_speech_player)) || "0", 10) === 1; - this.textToSpeechRate = parseFloat(yield this.getValue(keys.text_to_speech_rate)) || 0; - this.textToSpeechChunkLength = parseInt(yield this.getValue(keys.text_to_speech_chunk_length), 10) || 1000; - this.lowSpeedLimit = parseInt(yield this.getValue(keys.low_speed_limit), 10) || 250; - this.disableLowSpeedLimit = parseInt((yield this.getValue(keys.disable_low_speed_limit)) || "0", 10) === 1; - this.baseInAppPurchaseAPIUrl = yield this.getValue(keys.base_iap_api_url); - this.allAndroidSkus = yield this.getValue(keys.all_skus); - this.isNNB = parseInt(yield this.getValue(keys.is_nnb), 10) === 1; - this.enableVmodeAndFitOrientation = parseInt((yield this.getValue(keys.enable_vmode_and_fit_orientation)) || "1", 10) === 1; - this.fitPageType = parseInt((yield this.getValue(keys.fit_page_type)) || (this.enableVmodeAndFitOrientation ? "7" : "6"), 10); - this.startInIndexMode = (yield this.getValue(keys.start_in_index_mode)) || "0"; - this.epaperStartMode = (yield this.getValue(keys.epaper_start_mode)) || NEWSMEMORY_START_MODE.READ; - this.disableEPaperModeSelectionPage = ((yield this.getValue(keys.disable_epaper_mode_selection_page)) || "0") === "1"; - this.cdnEnabled = ((yield this.getValue(keys.cdn_enabled)) || "1") === "1"; - this.cdnServer = yield this.getValue(keys.cdn_server); - this.cdnVersion = parseInt((yield this.getValue(keys.cdn_version)) || "0", 10); - this.landingPageURL = yield this.getValue(keys.landing_page_url); - this.landingPageVersion = parseInt(yield this.getValue(keys.landing_page_version), 10) || 0; - this.showLandingPageOnce = (yield this.getValue(keys.show_landing_page_once)) === "1"; - this.forcedSharedSecret = yield this.getValue(keys.forced_shared_secret); - this.useIOSSandboxReceiptValidation = (yield this.getValue(keys.use_ios_sandbox_receipt_validation)) === "1"; - this.encryptFilenames = parseInt((yield this.getValue(keys.use_cc)) || ENCRYPT_FILENAME_TYPE.NONE, 10); - this.migrate = ((yield this.getValue(keys.migrate)) || "0") === "1"; - this.hybridVersion = (yield this.getValue(keys.hybrid_version)) || "0"; - this.enableAppendFirstPages = parseInt((yield this.getValue(keys.append_first_pages)) || "1", 10) === 1; - this.pngQualityFactor = parseFloat((yield this.getValue(keys.png_quality_factor)) || "1.8"); - this.generatePNGBasedOnScreenDimensions = ((yield this.getValue(keys.generate_png_based_on_screen_dimensions)) || "1") === "1"; - this.considerPixelRatioInPNGGeneration = ((yield this.getValue(keys.consider_pixel_ratio_in_png_generation)) || "1") === "1"; - this.pngWidthLimit = parseInt((yield this.getValue(keys.png_width_limit)) || "1080", 10); - this.enablePrint = ((yield this.getValue(keys.print_enabled)) || "1") === "1"; - this.printToLetter = ((yield this.getValue(keys.print_to_letter)) || "1") === "1"; - this.printMargin = parseInt((yield this.getValue(keys.print_margin)) || "10", 10); - this.isGenericApp = ((yield this.getValue(keys.generic_app_enabled)) || "0") === "1"; - this.publicationsPageURL = (yield this.getValue(keys.store_url)) || ""; - this.iapActive = ((yield this.getValue(keys.iap_active)) || "0") === "1"; - var pSetupPaymentsString = (yield this.getValue(keys.payments)) || "[]"; - var pSetupPaymentsArray = JSON.parse(pSetupPaymentsString); - this.payments = pSetupPaymentsArray.map(function (pSetupPayment) { - return new _Payment.default(pSetupPayment); - }); - this.enableMultipleSubscriptionsAlert = ((yield this.getValue(keys.enable_multiple_subscriptions_alert)) || "1") === "1"; - this.protectSite = parseInt((yield this.getValue(keys.protect_site)) || "0", 10); - - if (this.protectSite > 0) { - this.validateSite = parseInt((yield this.getValue(keys.validate_site)) || "0", 10); - } else { - this.validateSite = 0; - } - - this.pagesNavigationButtonsLayout = (yield this.getValue(keys.pages_navigation_buttons_layout)) || PAGES_NAVIGATION_BUTTONS_LAYOUT.FIXED; - this.animateLayoutFooter = ((yield this.getValue(keys.animate_layout_footer)) || "0") === "1"; - this.fixButtonsBarToBottom = ((yield this.getValue(keys.fix_buttons_bar_to_bottom)) || "0") === "1" && _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet(); - this.dfpReloadTime = parseInt((yield this.getValue(keys.dfp_reload_time)) || "20000", 10); - this.twoFingersTapHintEnabled = ((yield this.getValue(keys.two_fingers_tap_hint_enabled)) || "1") === "1"; - this.twoFingersTapMaxHints = parseInt((yield this.getValue(keys.two_fingers_tap_max_hints)) || "5", 10); - this.enableShare = ((yield this.getValue(keys.enable_share)) || "1") === "1"; - this.maxShares = parseInt((yield this.getValue(keys.max_shares)) || "0", 10); - this.maxSharesCheckType = parseInt((yield this.getValue(keys.max_shares_check_type)) || "1", 10); - this.messageMaxShare = (yield this.getValue(keys.message_max_share)) || ""; - this.downloadSinglePdf = ((yield this.getValue(keys.download_single_pdf)) || "0") === "1"; - this.mergeArticles = parseInt((yield this.getValue(keys.merge_articles)) || MERGE_ARTICLES_TYPES.NORMAL, 10); - this.columnView = parseInt((yield this.getValue(keys.column_view)) || "1", 10); - this.enablePhoneArticleLayoutOnTabletInLandscape = ((yield this.getValue(keys.enable_phone_article_layout_on_tablet_in_landscape)) || "0") === "1"; - this.enableDesktopArticleLayoutOnIPadProInLandscape = ((yield this.getValue(keys.enable_desktop_article_layout_on_ipad_pro_in_landscape)) || "0") === "1"; - this.showArtComplete = ((yield this.getValue(keys.show_art_complete)) || "0") === "1"; - this.calculateMidAds = ((yield this.getValue(keys.calculate_mid_ads)) || "0") === "1"; - this.keepArticlePositionOnRotation = ((yield this.getValue(keys.keep_article_position_on_rotation)) || "0") === "1"; - this.enableArticleImageReposition = ((yield this.getValue(keys.enable_article_image_reposition)) || "0") === "1"; - this.enableArticleBylineHRs = ((yield this.getValue(keys.enable_article_byline_hrs)) || "1") === "1"; - this.ads = (yield this.getValue(keys.ads)) || ""; - this.enableInStoryAdMarker = ((yield this.getValue(keys.enable_instory_ad_marker)) || "0") === "1"; - this.inStoryAdMarkerText = (yield this.getValue(keys.instory_ad_marker_text)) || global.strings("str_advertisement"); - this.disableRnStyles = ((yield this.getValue(keys.disable_rn_styles)) || "0") === "1"; - this.rnStyles = {}; - var rnStyleRaw = yield this.getValue(keys.rn_styles); - - if (rnStyleRaw) { - try { - this.rnStyles = JSON.parse(rnStyleRaw); - } catch (e) {} - } else {} - - this.rnStylesFileTime = parseInt((yield this.getValue(keys.rn_styles_file_time)) || -1, 10); - this.sslCertificateFileTime = parseInt((yield this.getValue(keys.ssl_certificate_file_time)) || -1, 10); - this.deviceDpi = parseInt((yield this.getValue(keys.device_dpi)) || 0, 10); - this.tocStyle = (yield this.getValue(keys.toc_style)) || "list"; - this.tocStylePreview = (yield this.getValue(keys.toc_style_preview)) || "all_art"; - this.enableTabIndexMode = ((yield this.getValue(keys.enable_tab_index_mode)) || "0") === "1"; - this.showTabIndexModeCustomization = ((yield this.getValue(keys.show_tab_index_mode_customization)) || (this.enableTabIndexMode ? "1" : "0")) === "1"; - this.bundleUpdateAvailable = ((yield this.getValue(keys.bundle_update_available)) || "0") === "1"; - this.resetAppBundle = ((yield this.getValue(keys.reset_app_bundle)) || "0") === "1"; - this.seeNewspaperPreview = parseInt((yield this.getValue(keys.see_newspaper_preview)) || "0", 10); - this.pageSeeNewspaperPreview = parseInt(yield this.getValue(keys.page_see_newspaper_preview), 10) || 2; - this.hoursToSendPushRegistration = parseInt(yield this.getValue(keys.hours_to_send_push_registration), 10) || 6; - this.webviewIOSNativePlayer = ((yield this.getValue(keys.webview_ios_native_player)) || "0") === "1"; - this.webviewAndroidAllowFullscreen = ((yield this.getValue(keys.webview_android_allow_fullscreen)) || "1") === "1"; - this.webviewAllowAutoplay = ((yield this.getValue(keys.webview_allow_autoplay)) || "0") === "1"; - this.webviewCustomHTTPHeaders = {}; - var customHTTPHeadersRaw = yield this.getValue(keys.webview_custom_http_headers); - - if (customHTTPHeadersRaw) { - this.webviewCustomHTTPHeaders = _$$_REQUIRE(_dependencyMap[11]).StringUtils.parseQuerystring(customHTTPHeadersRaw); - } - - this.attConfig = new (_$$_REQUIRE(_dependencyMap[22]).ATTConfig)(this.pSetup, this.originalMachine); - yield this.attConfig.init(json); - this.iubendaEnabled = ((yield this.getValue(keys.iubenda.enabled)) || "0") === "1"; - - if (this.iubendaEnabled) { - this.iubendaConfig = new (_$$_REQUIRE(_dependencyMap[23]).IubendaConfig)(this.pSetup, this.originalMachine); - yield this.iubendaConfig.init(json); - } - - this.osanoEnabled = ((yield this.getValue(keys.osano.enabled)) || "0") === "1"; - - if (this.osanoEnabled) { - this.osanoConfig = new (_$$_REQUIRE(_dependencyMap[24]).OsanoConfig)(this.pSetup, this.originalMachine); - yield this.osanoConfig.init(json); - } - - this.showExtrasInArticleGraphicMode = ((yield this.getValue(keys.show_extras_in_article_graphic_mode)) || "0") === "1"; - this.showExtrasToLoggedUsersOnly = ((yield this.getValue(keys.show_extras_to_logged_users_only)) || "0") === "1"; - this.morseTAUID = ((yield this.getValue(keys.morse_tauid)) || "0") === "1"; - this.addWatermark = ((yield this.getValue(keys.add_watermark)) || "0") === "1"; - this.watermarkText = (yield this.getValue(keys.watermark_text)) || "$extId"; - this.disableScreenIdleTimerDelay = ((yield this.getValue(keys.disable_screen_idle_timer_delay)) || "0") === "1"; - var rawStartupParams = (yield this.getValue(keys.startup_params)) || "{}"; - - try { - this.startupParams = JSON.parse(rawStartupParams); - } catch (e) { - this.startupParams = {}; - } - - this.enableSessionCollection = ((yield this.getValue(keys.enable_session_collection)) || "0") === "1"; - this.enableSessionAutoUpload = ((yield this.getValue(keys.enable_session_auto_upload)) || "0") === "1"; - this.sessionUploadBaseURL = (yield this.getValue(keys.session_upload_base_url)) || ""; - this.disableReaderAppModal = true; - this.readerAppLearnMoreLink = ""; - - if (_$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isIOS()) { - this.disableReaderAppModal = ((yield this.getValue(keys.disable_reader_app_modal)) || "0") === "1"; - this.readerAppLearnMoreLink = (yield this.getValue(keys.reader_app_learn_more_link)) || "https://apps.apple.com/story/id1614232807"; - } - - this.checksum = (yield this.getValue(keys.checksum)) || ""; - this.pushTags = (yield this.getValue(keys.push_tags)) || ""; - this.useAsymmetricCardList = ((yield this.getValue(keys.use_asymmetric_card_list)) || "1") === "1"; - this.preventScreenshots = ((yield this.getValue(keys.prevent_screenshots)) || "0") === "1"; - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "setLastIssue", - value: function setLastIssue(lastIssue) { - this.lastIssue = lastIssue; - this.setValue(keys.last_issue, lastIssue); - } - }, { - key: "setLastEdition", - value: function setLastEdition(lastEdition) { - this.lastEdition = lastEdition; - this.setValue(keys.last_edition, lastEdition); - } - }, { - key: "setLastPSetup", - value: function setLastPSetup(lastPSetup) { - this.lastPSetup = lastPSetup; - this.setValue(keys.last_pSetup, lastPSetup); - } - }, { - key: "setDemoIssue", - value: function setDemoIssue(demoIssue) { - this.demoIssue = demoIssue; - this.setValue(keys.demo_issue, demoIssue); - } - }, { - key: "setRssIndexFileTime", - value: function setRssIndexFileTime() { - var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - this.rssIndexFileTime = filetime; - this.setValue(keys.rss_index_file_time, "" + filetime); - } - }, { - key: "setCustomLanguagePackFileTime", - value: function setCustomLanguagePackFileTime() { - var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - this.customLanguagePackFileTime = filetime; - this.setValue(keys.custom_language_pack_file_time, "" + filetime); - } - }, { - key: "setCustomFontsFileTime", - value: function setCustomFontsFileTime() { - var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - this.customFontsFileTime = filetime; - this.setValue(keys.custom_fonts_file_time, "" + filetime); - } - }, { - key: "setRNStyles", - value: function setRNStyles() { - var rnStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - this.rnStyles = rnStyles; - this.setValue(keys.rn_styles, JSON.stringify(rnStyles)); - } - }, { - key: "setRNStylesFileTime", - value: function setRNStylesFileTime() { - var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - this.rnStylesFileTime = filetime; - this.setValue(keys.rn_styles_file_time, "" + filetime); - } - }, { - key: "setSSLCertificateFileTime", - value: function setSSLCertificateFileTime() { - var filetime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - this.sslCertificateFileTime = filetime; - this.setValue(keys.ssl_certificate_file_time, "" + filetime); - } - }, { - key: "setModeEnabled", - value: function setModeEnabled(modeEnabled) { - var runtime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - this.rssIsEnabled = modeEnabled === RSS_ENABLED || modeEnabled === BOTH_ENABLED; - this.newsMemoryIsEnabled = modeEnabled === DEFAULT || modeEnabled === NEWSMEMORY_ENABLED || modeEnabled === BOTH_ENABLED; - - if (!runtime) { - this.setValue(keys.mode_enabled, modeEnabled); - } - } - }, { - key: "checkIfRssIsEnabled", - value: function () { - var _checkIfRssIsEnabled = (0, _asyncToGenerator2.default)(function* () { - var modeEnabled = yield this.getValue(keys.mode_enabled); - return modeEnabled === RSS_ENABLED || modeEnabled === BOTH_ENABLED; - }); - - function checkIfRssIsEnabled() { - return _checkIfRssIsEnabled.apply(this, arguments); - } - - return checkIfRssIsEnabled; - }() - }, { - key: "getPaymentByProductId", - value: function getPaymentByProductId(productId) { - if (this.payments) { - return this.payments.find(function (payment) { - return payment.checkProductId(productId); - }); - } - - return undefined; - } - }, { - key: "setExternal", - value: function setExternal(external) { - this.external = external; - } - }, { - key: "setAllowedIP", - value: function setAllowedIP(isAllowedIP) { - this.isAllowedIP = isAllowedIP; - this.setValue(keys.is_allowed_ip, isAllowedIP ? "1" : "0"); - } - }, { - key: "setCDNEnabled", - value: function setCDNEnabled(cdnEnabled) { - this.cdnEnabled = cdnEnabled; - this.setValue(keys.cdn_enabled, cdnEnabled ? "1" : "0"); - } - }, { - key: "setCDNServer", - value: function setCDNServer(cdnServer) { - this.cdnServer = cdnServer; - this.setValue(keys.cdn_server, cdnServer); - } - }, { - key: "setCDNVersion", - value: function setCDNVersion(cdnVersion) { - this.cdnVersion = parseInt(cdnVersion, 10); - this.setValue(keys.cdn_version, cdnVersion); - } - }, { - key: "setBundleUpdateAvailable", - value: function setBundleUpdateAvailable(bundleUpdateAvailable) { - this.bundleUpdateAvailable = bundleUpdateAvailable; - this.setValue(keys.bundle_update_available, bundleUpdateAvailable ? "1" : "0"); - } - }, { - key: "setMigrate", - value: function setMigrate(migrate) { - this.migrate = migrate; - this.setValue(keys.migrate, migrate ? "1" : "0"); - } - }, { - key: "setNativeOptionspageFallbackVersion", - value: function setNativeOptionspageFallbackVersion(nativeOptionspageFallbackVersionUrl) { - this.showNativeOptionsPageFallbackUrl = nativeOptionspageFallbackVersionUrl; - this.setValue(keys.show_native_options_page_fallback_url, nativeOptionspageFallbackVersionUrl); - } - }, { - key: "_getDifferences", - value: function _getDifferences(newConfig) { - var _this2 = this; - - var diffKeys = []; - - if (newConfig) { - try { - diffKeys = Object.keys(this).filter(function (key) { - if (typeof _this2[key] === "function") { - return false; - } - - if (typeof _this2[key] === "object") { - var options = {}; - - if (_this2[key] instanceof _$$_REQUIRE(_dependencyMap[25]).PaperSetupBaseConfig) { - options.skipKeys = ["json"]; - } - - return !_$$_REQUIRE(_dependencyMap[11]).JSUtils.areEqualDeep(_this2[key], newConfig[key], options); - } - - return _this2[key] !== newConfig[key]; - }); - - if (diffKeys.length > 0) {} - } catch (e) {} - } - - return diffKeys; - } - }, { - key: "_checkIfNeedToRestart", - value: function _checkIfNeedToRestart(diffKeys) { - var needRestart = diffKeys.find(function (key) { - return KEYS_REQUIRE_RESTART.includes(key); - }) !== undefined; - return needRestart; - } - }, { - key: "_checkIfNeedToUpdate", - value: function _checkIfNeedToUpdate(diffKeys) { - var needUpdate = diffKeys.find(function (key) { - return !KEYS_NO_UPDATE.includes(key); - }) !== undefined; - return needUpdate; - } - }, { - key: "_checkIfNeedLayoutUpdate", - value: function _checkIfNeedLayoutUpdate(diffKeys) { - var needUpdate = diffKeys.find(function (key) { - return KEYS_LAYOUT_UPDATE.includes(key); - }) !== undefined; - return needUpdate; - } - }, { - key: "_getLockPanIfNotZoomedByDegrees", - value: function () { - var _getLockPanIfNotZoomedByDegrees2 = (0, _asyncToGenerator2.default)(function* () { - try { - return JSON.parse(yield this.getValue(keys.lock_pan_if_not_zoomed_by_degrees)); - } catch (e) {} - - return [0, 90]; - }); - - function _getLockPanIfNotZoomedByDegrees() { - return _getLockPanIfNotZoomedByDegrees2.apply(this, arguments); - } - - return _getLockPanIfNotZoomedByDegrees; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[25]).PaperSetupBaseConfig); -},1748,[3,270,6,7,11,85,13,14,1749,1708,1750,438,1751,1753,1754,1756,1757,1758,1759,1760,1711,1726,1761,1762,1763,1755]); -__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 PaperSetupHelper = exports.default = function () { - function PaperSetupHelper() { - (0, _classCallCheck2.default)(this, PaperSetupHelper); - } - - return (0, _createClass2.default)(PaperSetupHelper, null, [{ - key: "setItem", - value: function () { - var _setItem = (0, _asyncToGenerator2.default)(function* (pSetup, key, value) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(pSetup, key, value); - }); - - function setItem(_x, _x2, _x3) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (pSetup, key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(pSetup, key); - }); - - function getItem(_x4, _x5) { - return _getItem.apply(this, arguments); - } - - return getItem; - }() - }]); - }(); - - PaperSetupHelper.SP = { - keys: { - app_mode_selection_page_enabled: "enableAppModeSelectionPage", - app_mode_selection_page_url: "appModeSelectionPageUrl", - app_mode_selection_page_version: "appModeSelectionPageVersion", - base_rss_update_url: "baseRssUpdateUrl", - change_user_agent_for_oauth: "changeUserAgentForOAuth", - custom_string_to_append_to_user_agent_for_oauth: "customStringToAppendToUserAgentForOAuth", - custom_user_agent_for_oauth: "customUserAgentForOAuth", - adobe_analytics: { - enabled: "enableAdobeAnalytics", - props_list: "adobeAnalyticsPropsList", - actions: { - edition_load: "adobeAnalyticsEditionLoadActionName", - double_tap_to_zoom: "adobeAnalyticsDoubleTapActionName", - pinch_to_zoom: "adobeAnalyticsPinchOutActionName", - tts: "adobeAnalyticsTextToSpeechActionName", - skip_to_end: "adobeAnalyticsSkipToEndActionName", - toggle_to_print: "adobeAnalyticsToggleToPrintActionName", - toggle_to_digital: "adobeAnalyticsToggleToDigitalActionName", - share: "adobeAnalyticsShareActionName", - scroll_zoom: "adobeAnalyticsScrollZoomActionName", - link_click: "adobeAnalyticsLinkClickActionName" - }, - states: { - scrolled: "adobeAnalyticsScrolledStateName", - read: "adobeAnalyticsReadStateName", - zoomed: "adobeAnalyticsZoomedStateName", - index: "adobeAnalyticsIndexStateName", - optionspage: "adobeAnalyticsOptionspageStateName" - }, - send_only_edition_load: "adobeAnalyticsSendOnlyEditionLoad", - user_types: { - unknown: "adobeAnalyticsUserTypeUnknown", - subscriber: "adobeAnalyticsUserTypeSubscriber" - }, - media: { - print: "adobeAnalyticsPrintMedium", - digital: "adobeAnalyticsDigitalMedium", - zoomed_suffix: "adobeAnalyticsZoomedMediumSuffix" - }, - first_page_section_prefix: "adobeAnalyticsFirstPageSectionPrefix", - content_types: { - first_page: "adobeAnalyticsFirstPageContentType", - page: "adobeAnalyticsPageContentType", - index: "adobeAnalyticsIndexContentType", - article: "adobeAnalyticsArticleContentType", - optionspage: "adobeAnalyticsOptionspageContentType" - }, - edition_type: "adobeAnalyticsEditionType", - device_type: "adobeAnalyticsDeviceType" - }, - blueconic: { - enabled: "blueConicEnabled", - user_profile_properties: "blueConicUserProfileProperties", - view_profile_properties: "blueConicViewProfileProperties" - }, - chartbeat: { - account_id: "chartbeatAccountId", - domain: "chartbeatDomain", - rss_enabled: "chartbeatRssEnabled", - epaper_enabled: "chartbeatEpaperEnabled", - section_rss_properties: "chartbeatSectionRssProperties", - section_epaper_properties: "chartbeatSectionEpaperProperties", - author_rss_properties: "chartbeatAuthorRssProperties", - author_epaper_properties: "chartbeatAuthorEpaperProperties", - rss_title_keys: "chartbeatRssTitleKeys", - epaper_title_keys: "chartbeatEpaperTitleKeys", - rss_screen_key: "chartbeatRssScreenKey", - epaper_screen_key: "chartbeatEpaperScreenKey", - rss_custom_data: "chartbeatRssCustomData", - epaper_custom_data: "chartbeatEpaperCustomData" - }, - comscore: { - app_name: "comScoreAppName", - base_url: "comScoreBaseUrl", - id: "comScoreID", - publisher_secret: "comScorePublisherSecret" - }, - copyright: "copyright", - add_disclaimer: "addDisclaimer", - copyright_url: "copyrighturl", - custom_language_pack_file_time: "customLanguagePackFileTimestamp", - custom_fonts: "customFonts", - custom_fonts_file_time: "customFontsFileTimestamp", - default_connectivity: "defaultConnectivity", - default_connectivity_timestamp: "defaultConnectivityTimeStamp", - default_max_issues: "DEFAULT_MAX_ISSUES", - feedback: { - active_days_to_show: "feedbackActiveDaysToShow", - ask: "feedbackAskForFeedback", - email: "feedbackEmailForFeedback", - link: "feedbackLink", - reset_timestamp: "feedbackResetTimestamp", - enable: "feedbackEnable", - lower_active_date_range: "feedbackLowerActiveDateRange", - request_title: "feedbackRequestFeedbackTitle", - request_review_title: "feedbackRequestReviewFeedbackTitle", - show_dont_show_again: "feedbackShowDontShowAgain", - show_dont_show_again_first_dialog: "feedbackShowDontShowAgainOnFirstDialog", - show_not_sure_yet_first_dialog: "feedbackShowNotSureYetOnFirstDialog", - total_days_to_show: "feedbackTotalDaysToShow", - total_days_to_show_first_time: "feedbackTotalDaysToShowFirstTime", - upper_active_date_range: "feedbackUpperActiveDateRange", - cool_down_days: "feedbackCoolDownDays", - cool_down_days_dont_show_again: "feedbackCoolDownDaysDontShowAgain" - }, - file_time: "pSetupTime", - disable_firebase_analytics: "disableFirebaseAnalytics", - other_firebase_projects: "otherFirebaseProjects", - gallery_download_enabled: "galleryDownloadEnabled", - gallery_thumbnail_disabled: "galleryThumbnailDisabled", - open_http_link_on_external_browser: "openHttpLinkOnExternalBrowser", - url_type: "urltype", - showLinksHighlight: "useAutoGeneratedLinks", - is_lite: "newsmemoryLite", - language: "language", - layout_style: "layoutStyle", - layout_sub_style: "layoutSubStyle", - mather_analytics: { - enabled: "matherAnalyticsEnable", - customer_id: "matherCustomerId", - site_id: "matherSiteId", - send_email: "matherSendEmail" - }, - matomo: { - enabled: "matomoEnable", - site_id: "matomoSiteId", - rss_site_id: "matomoRssSiteId", - base_url: "matomoBaseURL", - visit_custom_dimensions: "matomoVisitCustomDimensions", - custom_dimensions: "matomoCustomDimensions", - dispatch_interval: "matomoDispatchInterval" - }, - matomo_tracker: { - enabled: "matomoTrackerEnable", - site_id: "matomoTrackerSiteId", - rss_site_id: "matomoTrackerRssSiteId", - base_url: "matomoTrackerBaseURL", - action_base_url: "matomoTrackerActionBaseURL", - edition_remapping: "matomoTrackerEditionRemapping", - titles: { - scrolled: "matomoTrackerScrolledTitle", - read: "matomoTrackerReadTitle", - rss_drawer: "matomoTrackerRssDrawerTitle", - rss_read: "matomoTrackerRssReadTitle" - }, - custom_urls: { - scrolled: "matomoTrackerScrolledURL", - read: "matomoTrackerReadURL", - rss_drawer: "matomoTrackerRssDrawerURL", - rss_read: "matomoTrackerRssReadURL" - }, - custom_dimensions: { - scrolled: "matomoTrackerScrolledCustomDimensions", - read: "matomoTrackerReadCustomDimensions", - rss_drawer: "matomoTrackerRssDrawerCustomDimensions", - rss_read: "matomoTrackerRssReadCustomDimensions" - } - }, - mode_enabled: "rssIsEnable", - option_page_coordinates: "optionpageCoordinates", - option_page_modal: "loginInModalMode", - option_page_mode: "optionPage", - option_page_url: "optionPageUrl", - options_page_tab_path: "optionsPageTabPath", - load_editions_url: "loadEditionsUrl", - paper_name: "paperName", - powered_by: "poweredBy", - powered_by_url: "poweredByurl", - relabel_ebook_button: "ebook_button", - relabel_feed_button: "feed_button", - relabel_fit_page_button: "fitPageImg_button", - relabel_gbook_button: "gbook_button", - relabel_help_button: "help_button", - relabel_offline_button: "OfflineActionLabel", - relabel_option_button: "option_button", - relabel_phodir_button: "phodir_button", - relabel_search_button: "search_button", - relabel_setting_button: "setting_button", - relabel_special_sections_button: "specialSections_button", - remp_account: "rempAccount", - rss_index_file_time: "rssConfigFileTimestamp", - site_domain: "siteDomain", - special_before_index_tablet: "specialBeforeIndexTablet", - special_before_index_phone: "specialBeforeIndexPhone", - special_before_index: "specialBeforeIndex", - startup_mode: "disableRssAtStartup", - startup_mode_timestamp: "disableRssAtStartupTimestamp", - udb: "udbDatabase", - newsmemory_to_use: "newsmemoryToUse", - newsmemory_to_use_timestamp: "newsmemoryToUseTimeStamp", - paper: "paper", - xpaper: "xpaper", - date_format: "DATE_FORMAT", - show_week: "SHOW_WEEK", - init_x_paper_not_in_view: "initpageXpaperNotView", - external_xpapers: "externalXPapers", - xpapers: "xPapers", - download_multi_zips: "downloadMultiZips", - translation_available: "translationAvailable", - translation_server: "translationServer", - use_native_accessibility: "useNativeAccessibility", - use_car_mode: "useCarMode", - show_native_options_page_fallback_url: "showNativeOptionsPageFallbackUrl", - show_native_options_page: "showNativeOptionsPage", - show_native_settings_screen: "showNativeSettingsScreen", - enable_translation_customization: "enableTranslationCustomization", - show_themes_customization: "showThemesCustomization", - enable_zoom_level_customization: "enableZoomLevelCustomization", - enable_article_types_customization: "enableArticleTypesCustomization", - show_article_column_view_customization: "showArticleColumnViewCustomization", - show_navigation_buttons_layout_customization: "showNavigationButtonsLayoutCustomization", - show_xpaper_navigation_close_button: "showXPaperNavigationCloseButton", - show_highlight_behavior_customization: "showHighlightBehaviorCustomization", - show_open_article_extra_on_title_box: "showOpenArticleExtraOnTitleBox", - show_tab_index_mode_customization: "showTabIndexModeCustomization", - change_favorite_edition: "changeFavoriteEdition", - favorite_edition: "favoriteEdition", - enable_connectivity_options: "enableConnectivityOptions", - enable_font_size_customization: "enableFontSizeCustomization", - enable_graph_size_customization: "enableGraphSizeCustomization", - show_types_article: "showTypesArticle", - enable_article_extra: "enableArticleExtra", - max_zips_to_download_per_request: "maxZipsToDownloadEachRequest", - css_files_to_add: "cssFilesToAdd", - email_content: "emailContent", - email_subject: "emailSubject", - facebook_enabled: "ipadFacebook", - twitter_text: "twitterText", - update_db_percentage: "updateDBPerc", - enable_advanced_gestures_mode: "enableAdvancedGesturesMode", - single_tap_to_zoom: "singleTapToZoom", - two_fingers_tap_to_article: "twoFingersTapToArticle", - lock_horizontal_pan_if_not_zoomed: "lockHorizontalPanIfNotZoomed", - lock_pan_if_not_zoomed_by_degrees: "lockPanIfNotZoomedByDegrees", - machine_for_hr: "machineForHR", - fit_graphic_article: "fitGraphicArticle", - machine: "machine", - sub_path: "subPath", - extra_link_color: "extraLinkColor", - background_duration_article_selected: "backgroundDurationArticleSelected", - background_timer_article_selected: "backgroundTimerArticleSelected", - background_color_article: { - selected: "backgroundColorArticleSelected", - to_select: "backgroundColorArticleToSelect" - }, - preview_highlight_enabled: "highlightClickableUrlEnabled", - preview_highlight_duration_seconds: "showHighlightingBoxesForSeconds", - zooming_factor: "zoomingFactor", - max_zoom: "maxZoom", - firebase_analytics_custom_dimensions: "firebaseAnalyticsCustomDimensions", - firebase_analytics_send_external_id: "firebaseAnalyticsSendExternalId", - enable_article_text_selection: "enableArticleTextSelection", - enable_article_byline_hrs: "enableArticleBylineHrs", - on_login_error_go_to: "onLoginErrorGoTo", - on_validation_error_go_to: "onValidationErrorGoTo", - time_limit_check_edition: "timeLimitForRestart", - time_limit_check_login: "timeLimitToCheckLoginOnRestart", - time_limit_forget_login: "timeLimitNotRememberLoginOnRestart", - last_pSetup: "lastPSetup", - last_issue: "lastIssue", - last_edition: "lastEdition", - latest_edition_available_message_format: "latestEditionAvailableMessageFormat", - demo_issue: "demoIssue", - show_edition_thumbs: "showEditionThumbs", - scroll_tiles_phone: "scrollTilesPhone", - scroll_tiles: "scrollTiles", - force_article_mode_fullscreen_portrait: "forceArticleModeFullscreenPortrait", - force_article_mode_fullscreen_landscape: "forceArticleModeFullscreenLandscape", - enable_text_to_speech: "enableTextToSpeech", - enable_text_to_speech_player: "enableTextToSpeechPlayer", - text_to_speech_rate: "textToSpeechRate", - text_to_speech_chunk_length: "textToSpeechChunkLength", - low_speed_limit: "lowSpeedLimit", - disable_low_speed_limit: "disableLowSpeedLimit", - base_iap_api_url: "baseInAppPurchaseAPIUrl", - all_skus: "allSkus", - is_nnb: "isNNB", - enable_vmode_and_fit_orientation: "enableVmodeAndFitOrientation", - fit_page_type: "xc_fitPage", - start_in_index_mode: "startInIndexMode", - epaper_start_mode: "epaperStartMode", - disable_epaper_mode_selection_page: "disableEPaperModeSelectionPage", - cdn_enabled: "cdnEnabled", - cdn_server: "cdnServer", - cdn_version: "cdnVersion", - pdf_thumbnail_ratio: "pdfThumbnailRatio", - eink_complete_hr_factor: "einkCompleteHrFactor", - hr_factor: "hrFactor", - pdf_factor: "pdfFactor", - pdf_factor_landscape: "pdfFactorLandscape", - force_pdf_in_roaming_mode: "forcePdfInRoamingMode", - low_pages_to_render: "lowPagesToRender", - mid_pages_to_render: "midPagesToRender", - load_mid_res_on_scroll: "loadMidResOnScroll", - show_landing_page_once: "showLandingPageOnce", - landing_page_version: "landingPageVersion", - landing_page_url: "landingPageURL", - forced_shared_secret: "sharedSecret", - use_ios_sandbox_receipt_validation: "useIOSSandboxReceiptValidation", - use_cc: "useCC", - migrate: "migrate", - hybrid_version: "hybridVersion", - append_first_pages: "appendFirstPages", - png_quality_factor: "pngQualityFactor", - generate_png_based_on_screen_dimensions: "generatePNGBasedOnScreenDimensions", - consider_pixel_ratio_in_png_generation: "considerPixelRatioInPNGGeneration", - png_width_limit: "pngWidthLimit", - print_enabled: "ipadPrint", - print_to_letter: "printToLetter", - print_margin: "printMargin", - generic_app_enabled: "storeIsEnable", - store_url: "customStoreUrl", - iap_active: "iapActive", - payments: "payments", - enable_multiple_subscriptions_alert: "enableMultipleSubscriptionsAlert", - protect_site: "protectSite", - validate_site: "validateSite", - two_fingers_tap_hint_enabled: "twoFingersTapHintEnabled", - two_fingers_tap_max_hints: "twoFingersTapMaxHints", - download_single_pdf: "downloadSinglePdf", - enable_share: "enableShare", - max_shares: "maxShares", - max_shares_check_type: "maxSharesCheckType", - message_max_share: "messageMaxShare", - merge_articles: "mergeArt", - column_view: "columnView", - show_art_complete: "showArtComplete", - calculate_mid_ads: "calculateMidAds", - pages_navigation_buttons_layout: "pagesNavigationButtonsLayout", - animate_layout_footer: "animateLayoutFooter", - fix_buttons_bar_to_bottom: "fixButtonsBarToBottom", - dfp_reload_time: "dfpReloadTime", - ads: "ads", - enable_instory_ad_marker: "enableInStoryAdMarker", - instory_ad_marker_text: "inStoryAdMarkerText", - rn_styles: "rnStyles", - disable_rn_styles: "disableRnStyles", - rn_styles_file_time: "rnStylesFileTimestamp", - ssl_certificate_file_time: "sslCertificateTimestamp", - device_dpi: "deviceDpi", - toc_style: "tocStyle", - toc_style_preview: "tocStylePreview", - enable_tab_index_mode: "enableTabIndexMode", - bundle_update_available: "bundleUpdateAvailable", - reset_app_bundle: "resetAppBundle", - see_newspaper_preview: "seeNewspaperPreview", - page_see_newspaper_preview: "pageSeeNewspaperPreview", - hours_to_send_push_registration: "hoursToSendPushRegistration", - preview_token: "previewToken", - webview_allow_autoplay: "webviewAllowAutoplay", - webview_android_allow_fullscreen: "webviewAndroidAllowFullscreen", - webview_ios_native_player: "webviewIOSNativePlayer", - webview_custom_http_headers: "webviewCustomHTTPHeaders", - app_tracking_transparency: { - force_message: "forceAppTrackingTransparencyMessage", - disable_message: "disableAppTrackingTransparencyMessage", - show_pre_message: "showPreAppTrackingTransparencyMessage", - force_pre_message_on_app_update: "forcePreAppTrackingTransparencyMessageOnAppUpdate" - }, - iubenda: { - enabled: "iubendaEnabled", - site_id: "iubendaSiteId", - cookie_policy_id: "iubendaCookiePolicyId", - lang: "iubendaLang", - reset_consent_date: "iubendaResetConsentDate", - force_consent_popup: "iubendaForceConsentPopup", - ads_require_consent: "adsRequireConsent", - google_ads_present: "googleAdsPresent", - ref_privacy_laws: "referencePrivacyLaws" - }, - osano: { - enabled: "osanoEnabled", - customer_id: "osanoCustomerId", - config_id: "osanoConfigurationId", - site_domain: "osanoSiteDomain", - reset_consent_date: "osanoResetConsentDate" - }, - show_extras_in_article_graphic_mode: "showExtrasInArticleGraphicMode", - show_extras_to_logged_users_only: "showExtrasToLoggedUsersOnly", - morse_tauid: "morseTAUID", - add_watermark: "addWatermarkArticlePag", - watermark_text: "watermarkText", - disable_screen_idle_timer_delay: "disableScreenIdleTimerDelay", - keep_article_position_on_rotation: "keepArticlePositionOnRotation", - enable_article_image_reposition: "enableArticleImageReposition", - refreshes_tauid: "refreshesTAUID", - startup_params: "startupParams", - enable_session_collection: "enableSessionCollection", - enable_session_auto_upload: "enableSessionAutoUpload", - session_upload_base_url: "sessionUploadBaseURL", - checksum: "checksum", - user_ip: "userIP", - is_allowed_ip: "isAllowedIP", - push_tags: "pushTags", - disable_reader_app_modal: "disableReaderAppModal", - reader_app_learn_more_link: "readerAppLearnMoreLink", - use_asymmetric_card_list: "useAsymmetricCardList", - prevent_screenshots: "preventScreenshots", - enable_phone_article_layout_on_tablet_in_landscape: "enablePhoneArticleLayoutOnTabletInLandscape", - enable_desktop_article_layout_on_ipad_pro_in_landscape: "enableDesktopArticleLayoutOnIPadProInLandscape" - } - }; -},1749,[3,270,6,7,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 Payment = exports.default = function () { - function Payment() { - var pSetupLine = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - (0, _classCallCheck2.default)(this, Payment); - var splitted = pSetupLine.split(","); - this.type = splitted[0]; - this.price = splitted[1]; - this.startDate = splitted[2]; - this.periodTime = splitted[3]; - this.periodValue = splitted[4]; - this.recurringPattern = splitted[5]; - this.description = splitted[6]; - this.productId = splitted[7]; - } - - return (0, _createClass2.default)(Payment, [{ - key: "getType", - value: function getType() { - return this.type; - } - }, { - key: "getPrice", - value: function getPrice() { - return this.price; - } - }, { - key: "getPriceNumber", - value: function getPriceNumber() { - return parseFloat(this.price) || -1; - } - }, { - key: "getStartDate", - value: function getStartDate() { - return this.startDate; - } - }, { - key: "getPeriodTime", - value: function getPeriodTime() { - return this.periodTime; - } - }, { - key: "isWeekly", - value: function isWeekly() { - return this.periodTime === "W"; - } - }, { - key: "isMonthly", - value: function isMonthly() { - return this.periodTime === "M"; - } - }, { - key: "isYearly", - value: function isYearly() { - return this.periodTime === "Y"; - } - }, { - key: "getPeriodValue", - value: function getPeriodValue() { - try { - return parseInt(this.periodValue, 10) || -1; - } catch (e) { - return -1; - } - } - }, { - key: "getRecurringPattern", - value: function getRecurringPattern() { - return this.recurringPattern; - } - }, { - key: "getDescription", - value: function getDescription() { - return this.description; - } - }, { - key: "getProductId", - value: function getProductId() { - return this.productId; - } - }, { - key: "isNotConsumable", - value: function isNotConsumable() { - return this.getType() === "NC"; - } - }, { - key: "isConsumable", - value: function isConsumable() { - return this.getType() === "A"; - } - }, { - key: "isNonRenewingSubscription", - value: function isNonRenewingSubscription() { - return this.getType() === "P"; - } - }, { - key: "isRecurringSubscription", - value: function isRecurringSubscription() { - return this.getType() === "R"; - } - }, { - key: "isSubscription", - value: function isSubscription() { - return this.isNonRenewingSubscription() || this.isRecurringSubscription(); - } - }, { - key: "checkProductId", - value: function checkProductId(productId) { - if (productId === this.productId) { - return true; - } - - if (this.isNotConsumable() && productId.startsWith(this.productId)) { - return true; - } - - return false; - } - }]); - }(); -},1750,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.LoginStatus = 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 _LoginHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var LoginStatus = exports.LoginStatus = function () { - function LoginStatus() { - (0, _classCallCheck2.default)(this, LoginStatus); - } - - return (0, _createClass2.default)(LoginStatus, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (udb) { - this.udb = udb; - var keys = Object.values(_LoginHelper.default.SP.keys); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - this[key] = yield this.getValue(key); - } - - return true; - }); - - function init(_x) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "setValue", - value: function () { - var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { - this[key] = value; - return _LoginHelper.default.setItem(this.udb + "_" + key, value); - }); - - function setValue(_x2, _x3) { - return _setValue.apply(this, arguments); - } - - return setValue; - }() - }, { - key: "getValue", - value: function () { - var _getValue = (0, _asyncToGenerator2.default)(function* (key) { - var value = this[key]; - - if (_$$_REQUIRE(_dependencyMap[5]).JSUtils.isNull(value)) { - value = yield _LoginHelper.default.getItem(this.udb + "_" + key); - - if (key === _LoginHelper.default.SP.keys.has_access) { - try { - value = JSON.parse(value); - } catch (e) {} - } else if (key === _LoginHelper.default.SP.keys.allowed_ip_user) { - value = value === "1"; - } - } - - return value; - }); - - function getValue(_x4) { - return _getValue.apply(this, arguments); - } - - return getValue; - }() - }, { - key: "updateValue", - value: function () { - var _updateValue = (0, _asyncToGenerator2.default)(function* (key, value) { - if (value) { - return this.setValue(key, value); - } - - return this.removeValue(key); - }); - - function updateValue(_x5, _x6) { - return _updateValue.apply(this, arguments); - } - - return updateValue; - }() - }, { - key: "removeValue", - value: function () { - var _removeValue = (0, _asyncToGenerator2.default)(function* (key) { - this[key] = undefined; - return _LoginHelper.default.removeItem(this.udb + "_" + key); - }); - - function removeValue(_x7) { - return _removeValue.apply(this, arguments); - } - - return removeValue; - }() - }, { - key: "isAnonymousUser", - value: function isAnonymousUser() { - return this.username && global.machineId && this.username === global.machineId; - } - }, { - key: "isLoggedIn", - value: function isLoggedIn() { - return LoginStatus.isValidTAUID(this.TAUID) && !this.isAnonymousUser(); - } - }, { - key: "isLoggedInAsAnonymous", - value: function isLoggedInAsAnonymous() { - return LoginStatus.isValidTAUID(this.TAUID) && this.isAnonymousUser(); - } - }, { - key: "isAdFree", - value: function isAdFree() { - return this.adFree === "1"; - } - }, { - key: "userHasAccess", - value: function userHasAccess(issue, edition) { - if (this.hasAccess && this.hasAccess[edition]) { - return this.hasAccess[edition][issue] === "1"; - } - - return false; - } - }, { - key: "setHasAccess", - value: function setHasAccess(issue, edition, hasAccess) { - var hasAccessValue = hasAccess ? "1" : "0"; - - if (!this.hasAccess) { - this.hasAccess = {}; - } - - if (!this.hasAccess[edition]) { - this.hasAccess[edition] = {}; - } - - this.hasAccess[edition][issue] = hasAccessValue; - - _LoginHelper.default.setItem(this.udb + "_" + _LoginHelper.default.SP.keys.has_access, JSON.stringify(this.hasAccess)); - } - }, { - key: "setLastModified", - value: function setLastModified() { - this.setValue(_LoginHelper.default.SP.keys.last_login_time, new Date().getTime().toString()); - } - }, { - key: "getLastModified", - value: function () { - var _getLastModified = (0, _asyncToGenerator2.default)(function* () { - return this.getValue(_LoginHelper.default.SP.keys.last_login_time); - }); - - function getLastModified() { - return _getLastModified.apply(this, arguments); - } - - return getLastModified; - }() - }, { - key: "setReceipt", - value: function setReceipt(receipt) { - this.setValue(_LoginHelper.default.SP.keys.receipt, receipt); - this.setValue(_LoginHelper.default.SP.keys.receipt_date, new Date().getTime().toString()); - } - }, { - key: "setTAUID", - value: function () { - var _setTAUID = (0, _asyncToGenerator2.default)(function* (TAUID) { - if (TAUID) { - return this.setValue(_LoginHelper.default.SP.keys.TAUID, TAUID); - } - - return Promise.resolve(); - }); - - function setTAUID(_x8) { - return _setTAUID.apply(this, arguments); - } - - return setTAUID; - }() - }, { - key: "setToken", - value: function () { - var _setToken = (0, _asyncToGenerator2.default)(function* (token) { - if (token) { - return this.setValue(_LoginHelper.default.SP.keys.TOKEN, token); - } - - return Promise.resolve(); - }); - - function setToken(_x9) { - return _setToken.apply(this, arguments); - } - - return setToken; - }() - }, { - key: "setUniversalLinkToken", - value: function () { - var _setUniversalLinkToken = (0, _asyncToGenerator2.default)(function* (token) { - if (token) { - return this.setValue(_LoginHelper.default.SP.keys.universal_link_token, token); - } - - return Promise.resolve(); - }); - - function setUniversalLinkToken(_x10) { - return _setUniversalLinkToken.apply(this, arguments); - } - - return setUniversalLinkToken; - }() - }, { - key: "setOneTimeToken", - value: function () { - var _setOneTimeToken = (0, _asyncToGenerator2.default)(function* (oneTimeToken) { - if (oneTimeToken) { - return this.setValue(_LoginHelper.default.SP.keys.one_time_token, oneTimeToken); - } - - return Promise.resolve(); - }); - - function setOneTimeToken(_x11) { - return _setOneTimeToken.apply(this, arguments); - } - - return setOneTimeToken; - }() - }, { - key: "setUsername", - value: function () { - var _setUsername = (0, _asyncToGenerator2.default)(function* (username) { - if (username) { - return this.setValue(_LoginHelper.default.SP.keys.username, username); - } - - return Promise.resolve(); - }); - - function setUsername(_x12) { - return _setUsername.apply(this, arguments); - } - - return setUsername; - }() - }, { - key: "setPassword", - value: function () { - var _setPassword = (0, _asyncToGenerator2.default)(function* (password) { - if (password) { - return this.setValue(_LoginHelper.default.SP.keys.password, password); - } - - return Promise.resolve(); - }); - - function setPassword(_x13) { - return _setPassword.apply(this, arguments); - } - - return setPassword; - }() - }, { - key: "setChallenge", - value: function () { - var _setChallenge = (0, _asyncToGenerator2.default)(function* (challenge) { - if (challenge) { - return this.setValue(_LoginHelper.default.SP.keys.challenge, challenge); - } - - return Promise.resolve(); - }); - - function setChallenge(_x14) { - return _setChallenge.apply(this, arguments); - } - - return setChallenge; - }() - }, { - key: "setExtId", - value: function () { - var _setExtId = (0, _asyncToGenerator2.default)(function* (extid) { - if (extid) { - return this.setValue(_LoginHelper.default.SP.keys.extid, extid); - } - - return Promise.resolve(); - }); - - function setExtId(_x15) { - return _setExtId.apply(this, arguments); - } - - return setExtId; - }() - }, { - key: "setExtraUserInfo", - value: function () { - var _setExtraUserInfo = (0, _asyncToGenerator2.default)(function* (extraUserInfo) { - if (extraUserInfo) { - var extraUserInfoString = extraUserInfo ? JSON.stringify(extraUserInfo) : ""; - return this.setValue(_LoginHelper.default.SP.keys.extra_user_info, extraUserInfoString); - } - - return Promise.resolve(); - }); - - function setExtraUserInfo(_x16) { - return _setExtraUserInfo.apply(this, arguments); - } - - return setExtraUserInfo; - }() - }, { - key: "setAdFree", - value: function () { - var _setAdFree = (0, _asyncToGenerator2.default)(function* (adFree) { - var adFreeValue = adFree !== undefined ? "" + adFree : undefined; - - if (adFreeValue) { - return this.setValue(_LoginHelper.default.SP.keys.ad_free, adFreeValue); - } - - return Promise.resolve(); - }); - - function setAdFree(_x17) { - return _setAdFree.apply(this, arguments); - } - - return setAdFree; - }() - }, { - key: "updateTAUID", - value: function () { - var _updateTAUID = (0, _asyncToGenerator2.default)(function* (TAUID) { - return this.updateValue(_LoginHelper.default.SP.keys.TAUID, TAUID); - }); - - function updateTAUID(_x18) { - return _updateTAUID.apply(this, arguments); - } - - return updateTAUID; - }() - }, { - key: "updateToken", - value: function () { - var _updateToken = (0, _asyncToGenerator2.default)(function* (token) { - return this.updateValue(_LoginHelper.default.SP.keys.TOKEN, token); - }); - - function updateToken(_x19) { - return _updateToken.apply(this, arguments); - } - - return updateToken; - }() - }, { - key: "updateUniversalLinkToken", - value: function () { - var _updateUniversalLinkToken = (0, _asyncToGenerator2.default)(function* (token) { - return this.updateValue(_LoginHelper.default.SP.keys.universal_link_token, token); - }); - - function updateUniversalLinkToken(_x20) { - return _updateUniversalLinkToken.apply(this, arguments); - } - - return updateUniversalLinkToken; - }() - }, { - key: "updateOneTimeToken", - value: function () { - var _updateOneTimeToken = (0, _asyncToGenerator2.default)(function* (oneTimeToken) { - return this.updateValue(_LoginHelper.default.SP.keys.one_time_token, oneTimeToken); - }); - - function updateOneTimeToken(_x21) { - return _updateOneTimeToken.apply(this, arguments); - } - - return updateOneTimeToken; - }() - }, { - key: "updateUsername", - value: function () { - var _updateUsername = (0, _asyncToGenerator2.default)(function* (username) { - return this.updateValue(_LoginHelper.default.SP.keys.username, username); - }); - - function updateUsername(_x22) { - return _updateUsername.apply(this, arguments); - } - - return updateUsername; - }() - }, { - key: "updatePassword", - value: function () { - var _updatePassword = (0, _asyncToGenerator2.default)(function* (password) { - return this.updateValue(_LoginHelper.default.SP.keys.password, password); - }); - - function updatePassword(_x23) { - return _updatePassword.apply(this, arguments); - } - - return updatePassword; - }() - }, { - key: "updateChallenge", - value: function () { - var _updateChallenge = (0, _asyncToGenerator2.default)(function* (challenge) { - return this.updateValue(_LoginHelper.default.SP.keys.challenge, challenge); - }); - - function updateChallenge(_x24) { - return _updateChallenge.apply(this, arguments); - } - - return updateChallenge; - }() - }, { - key: "updateExtId", - value: function () { - var _updateExtId = (0, _asyncToGenerator2.default)(function* (extid) { - return this.updateValue(_LoginHelper.default.SP.keys.extid, extid); - }); - - function updateExtId(_x25) { - return _updateExtId.apply(this, arguments); - } - - return updateExtId; - }() - }, { - key: "updateExtraUserInfo", - value: function () { - var _updateExtraUserInfo = (0, _asyncToGenerator2.default)(function* (extraUserInfo) { - var extraUserInfoString = extraUserInfo ? JSON.stringify(extraUserInfo) : ""; - return this.updateValue(_LoginHelper.default.SP.keys.extra_user_info, extraUserInfoString); - }); - - function updateExtraUserInfo(_x26) { - return _updateExtraUserInfo.apply(this, arguments); - } - - return updateExtraUserInfo; - }() - }, { - key: "updateAdFree", - value: function () { - var _updateAdFree = (0, _asyncToGenerator2.default)(function* (adFree) { - var adFreeValue = adFree !== undefined ? "" + adFree : undefined; - return this.updateValue(_LoginHelper.default.SP.keys.ad_free, adFreeValue); - }); - - function updateAdFree(_x27) { - return _updateAdFree.apply(this, arguments); - } - - return updateAdFree; - }() - }, { - key: "resetOneTimeToken", - value: function () { - var _resetOneTimeToken = (0, _asyncToGenerator2.default)(function* () { - return this.removeValue(_LoginHelper.default.SP.keys.one_time_token); - }); - - function resetOneTimeToken() { - return _resetOneTimeToken.apply(this, arguments); - } - - return resetOneTimeToken; - }() - }, { - key: "resetLastModified", - value: function () { - var _resetLastModified = (0, _asyncToGenerator2.default)(function* () { - return this.removeValue(_LoginHelper.default.SP.keys.last_login_time); - }); - - function resetLastModified() { - return _resetLastModified.apply(this, arguments); - } - - return resetLastModified; - }() - }, { - key: "setIAPSecret", - value: function () { - var _setIAPSecret = (0, _asyncToGenerator2.default)(function* (secret) { - if (secret) { - return this.setValue(_LoginHelper.default.SP.keys.iap_secret, secret); - } - - return this.removeValue(_LoginHelper.default.SP.keys.iap_secret); - }); - - function setIAPSecret(_x28) { - return _setIAPSecret.apply(this, arguments); - } - - return setIAPSecret; - }() - }, { - key: "getIAPSecret", - value: function getIAPSecret() { - return this.iapSecret; - } - }, { - key: "setIsAllowedIPUser", - value: function () { - var _setIsAllowedIPUser = (0, _asyncToGenerator2.default)(function* (value) { - this.allowedIPUser = value; - return _LoginHelper.default.setItem(this.udb + "_" + _LoginHelper.default.SP.keys.allowed_ip_user, value ? "1" : "0"); - }); - - function setIsAllowedIPUser(_x29) { - return _setIsAllowedIPUser.apply(this, arguments); - } - - return setIsAllowedIPUser; - }() - }, { - key: "isAllowedIPUser", - value: function isAllowedIPUser() { - return this.allowedIPUser; - } - }, { - key: "getReceiptToken", - value: function getReceiptToken() { - if (this.iapSecret) { - var unixTimestamp = new Date().getTime(); - var hexTimestamp = Math.trunc(unixTimestamp / 1000).toString(16); - var hexTauid = parseInt(this.TAUID || -1, 10).toString(16); - return _$$_REQUIRE(_dependencyMap[5]).StringUtils.getMd5(this.iapSecret + hexTimestamp + hexTauid) + "_" + hexTimestamp + "_" + hexTauid; - } - - return undefined; - } - }, { - key: "getExtraUserInfo", - value: function () { - var _getExtraUserInfo = (0, _asyncToGenerator2.default)(function* () { - var rawExtraUserInfo = yield this.getValue(_LoginHelper.default.SP.keys.extra_user_info); - - try { - var extraUserInfo = JSON.parse(rawExtraUserInfo); - return extraUserInfo; - } catch (e) {} - - return {}; - }); - - function getExtraUserInfo() { - return _getExtraUserInfo.apply(this, arguments); - } - - return getExtraUserInfo; - }() - }, { - key: "clear", - value: function () { - var _clear = (0, _asyncToGenerator2.default)(function* () { - var keys = Object.values(_LoginHelper.default.SP.keys); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - yield this.removeValue(key); - } - }); - - function clear() { - return _clear.apply(this, arguments); - } - - return clear; - }() - }], [{ - key: "isValidTAUID", - value: function isValidTAUID(TAUID) { - return TAUID && parseInt(TAUID, 10) > -1; - } - }]); - }(); -},1751,[3,270,6,7,1752,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 LoginHelper = exports.default = function () { - function LoginHelper() { - (0, _classCallCheck2.default)(this, LoginHelper); - } - - return (0, _createClass2.default)(LoginHelper, null, [{ - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(LoginHelper.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(LoginHelper.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(LoginHelper.SP.name, key); - }); - - function removeItem(_x4) { - return _removeItem.apply(this, arguments); - } - - return removeItem; - }() - }, { - key: "updateItem", - value: function () { - var _updateItem = (0, _asyncToGenerator2.default)(function* (key, value) { - if (value) { - return LoginHelper.setItem(key, value); - } - - return LoginHelper.removeItem(key); - }); - - function updateItem(_x5, _x6) { - return _updateItem.apply(this, arguments); - } - - return updateItem; - }() - }, { - key: "clearAll", - value: function () { - var _clearAll = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAll(LoginHelper.SP.name); - }); - - function clearAll() { - return _clearAll.apply(this, arguments); - } - - return clearAll; - }() - }]); - }(); - - LoginHelper.SP = { - name: "login", - keys: { - TAUID: "TAUID", - TOKEN: "TOKEN", - universal_link_token: "universalLinkToken", - one_time_token: "oneTimeToken", - iap_secret: "iapSecret", - has_access: "hasAccess", - receipt: "receipt", - receipt_date: "receipt_date", - challenge: "challenge", - username: "username", - password: "password", - extid: "extid", - extra_user_info: "extraUserInfo", - last_login_time: "last_login_time", - ad_free: "adFree", - allowed_ip_user: "allowedIPUser" - } - }; -},1752,[3,270,6,7,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.OptionspageConfig = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var OptionspageConfig = exports.OptionspageConfig = function () { - function OptionspageConfig(_ref) { - var mode = _ref.mode, - baseURL = _ref.baseURL, - coordinatesString = _ref.coordinatesString, - modal = _ref.modal; - (0, _classCallCheck2.default)(this, OptionspageConfig); - this.mode = mode; - this.baseURL = baseURL; - this.modal = _$$_REQUIRE(_dependencyMap[4]).PlatformUtils.isTablet() && modal; - this.coordinatesString = coordinatesString; - } - - return (0, _createClass2.default)(OptionspageConfig, [{ - key: "isDisabled", - value: function isDisabled() { - return this.mode === 0; - } - }, { - key: "alwaysOpenAtStartup", - value: function alwaysOpenAtStartup() { - return this.mode === 1; - } - }, { - key: "getBaseURL", - value: function getBaseURL() { - return this.baseURL; - } - }, { - key: "computeCoordinates", - value: function computeCoordinates() { - var rawCoordinates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - var orientation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _deviceUtils.default.currentOrientation; - var top; - var left; - var width; - var height; - var screenWidth; - var screenHeight; - var screenIsPortrait; - - var safeArea = _deviceUtils.default.getSafeArea(); - - if (safeArea) { - screenWidth = safeArea.width; - screenHeight = safeArea.height; - screenIsPortrait = _deviceUtils.default.isPortrait(_deviceUtils.default.currentOrientation); - } else { - var _DeviceUtils$getScree = _deviceUtils.default.getScreenDimensions(orientation); - - screenWidth = _DeviceUtils$getScree.width; - screenHeight = _DeviceUtils$getScree.height; - screenIsPortrait = _DeviceUtils$getScree.isPortrait; - } - - var widthToUse = screenWidth; - var heightToUse = screenHeight; - - var isPortrait = _deviceUtils.default.isPortrait(orientation); - - if (isPortrait !== screenIsPortrait) { - widthToUse = screenHeight; - heightToUse = screenWidth; - } - - if (this.modal) { - height = isPortrait ? widthToUse : heightToUse; - width = isPortrait ? widthToUse : heightToUse; - left = isPortrait ? 0 : Math.abs(widthToUse - heightToUse) / 2; - top = isPortrait ? Math.abs(widthToUse - heightToUse) / 2 : 0; - } else { - height = heightToUse; - width = widthToUse; - left = 0; - top = 0; - } - - var coordSplit = rawCoordinates.split("&"); - - if (coordSplit.length === 8) { - var h = coordSplit[0]; - var hv = coordSplit[1]; - var w = coordSplit[2]; - var wv = coordSplit[3]; - var x = coordSplit[4]; - var xv = coordSplit[5]; - var y = coordSplit[6]; - var yv = coordSplit[7]; - - if (isPortrait) { - height = this.parseSize(hv, heightToUse); - width = this.parseSize(wv, widthToUse); - top = this.parseXY(yv, height, heightToUse); - left = this.parseXY(xv, width, widthToUse); - } else { - height = this.parseSize(h, heightToUse); - width = this.parseSize(w, widthToUse); - top = this.parseXY(y, height, heightToUse); - left = this.parseXY(x, width, widthToUse); - } - } - - if (width > screenWidth) { - left = 0; - width = screenWidth; - } else if (left + width > screenWidth) { - left = Math.max(0, (screenWidth - width) / 2); - } - - if (height > screenHeight) { - top = 0; - height = screenHeight; - } else if (top + height > screenHeight) { - top = Math.max(0, (screenHeight - height) / 2); - } - - var coordinates = { - left: left, - top: top, - width: width, - height: height - }; - return coordinates; - } - }, { - key: "parseSize", - value: function parseSize(value, dimReference) { - var result; - var percIndex = value.indexOf("%"); - - if (percIndex > 0) { - result = parseInt(value.substring(0, percIndex), 10) / 100 * dimReference; - } else { - var pxIndex = value.indexOf("px"); - - if (pxIndex > 0) { - value = value.substring(0, pxIndex); - } - - result = parseInt(value, 10); - } - - return result; - } - }, { - key: "parseXY", - value: function parseXY(value, sizeReference, dimReference) { - var result; - var pxIndex = value.indexOf("px"); - - if (pxIndex > 0) { - value = value.substring(0, pxIndex); - result = parseInt(value, 10); - } else { - if (value === "-1") { - return dimReference - sizeReference; - } - - if (value === "0") { - return (dimReference - sizeReference) / 2; - } - - if (value === "1") { - return 0; - } - - result = parseInt(value, 10); - - if (result < 0) { - result = dimReference - sizeReference + result; - } - } - - return result; - } - }, { - key: "getCoordinates", - value: function getCoordinates() { - var orientation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _deviceUtils.default.currentOrientation; - return this.computeCoordinates(this.coordinatesString, orientation); - } - }, { - key: "isModal", - value: function isModal() { - return this.modal; - } - }]); - }(); -},1753,[3,6,7,434,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FeedbackConfig = 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 _PaperSetupHelper = _$$_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 FeedbackConfig = exports.FeedbackConfig = function (_PaperSetupBaseConfig) { - function FeedbackConfig() { - (0, _classCallCheck2.default)(this, FeedbackConfig); - return _callSuper(this, FeedbackConfig, arguments); - } - - (0, _inherits2.default)(FeedbackConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(FeedbackConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.feedback; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var _this$resetTimestamp; - - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(FeedbackConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - show_dont_show_again_first_dialog = _this$getStorageKeys.show_dont_show_again_first_dialog, - show_dont_show_again = _this$getStorageKeys.show_dont_show_again, - show_not_sure_yet_first_dialog = _this$getStorageKeys.show_not_sure_yet_first_dialog, - lower_active_date_range = _this$getStorageKeys.lower_active_date_range, - upper_active_date_range = _this$getStorageKeys.upper_active_date_range, - active_days_to_show = _this$getStorageKeys.active_days_to_show, - total_days_to_show = _this$getStorageKeys.total_days_to_show, - total_days_to_show_first_time = _this$getStorageKeys.total_days_to_show_first_time, - request_title = _this$getStorageKeys.request_title, - request_review_title = _this$getStorageKeys.request_review_title, - ask = _this$getStorageKeys.ask, - email = _this$getStorageKeys.email, - link = _this$getStorageKeys.link, - reset_timestamp = _this$getStorageKeys.reset_timestamp, - cool_down_days = _this$getStorageKeys.cool_down_days, - cool_down_days_dont_show_again = _this$getStorageKeys.cool_down_days_dont_show_again; - - this.showDontShowAgainFirstDialog = ((yield this.getValue(show_dont_show_again_first_dialog)) || "0") === "1"; - this.showDontShowAgain = ((yield this.getValue(show_dont_show_again)) || "1") === "1"; - this.showNotSureYetFirstDialog = ((yield this.getValue(show_not_sure_yet_first_dialog)) || "1") === "1"; - this.lowerActiveDateRange = (parseInt(yield this.getValue(lower_active_date_range), 10) || "1") * _$$_REQUIRE(_dependencyMap[9]).DateUtils.DAY_IN_MILLS; - this.upperActiveDateRange = (parseInt(yield this.getValue(upper_active_date_range), 10) || "3") * _$$_REQUIRE(_dependencyMap[9]).DateUtils.DAY_IN_MILLS; - this.activeDaysToShow = parseInt((yield this.getValue(active_days_to_show)) || "6", 10); - this.totalDaysToShow = parseInt((yield this.getValue(total_days_to_show)) || "15", 10); - this.totalDaysToShowFirstTime = parseInt((yield this.getValue(total_days_to_show_first_time)) || this.totalDaysToShow, 10); - this.coolDownDays = parseInt((yield this.getValue(cool_down_days)) || "60", 10); - this.coolDownDaysDontShowAgain = parseInt((yield this.getValue(cool_down_days_dont_show_again)) || "90", 10); - this.requestFeedbackTitle = (yield this.getValue(request_title)) || global.strings("feedback_title_request_feedback"); - this.requestReviewFeedbackTitle = (yield this.getValue(request_review_title)) || global.strings("feedback_title_request_review_feedback"); - this.askForFeedback = (yield this.getValue(ask)) || global.strings("feedback_msg_ask_for_feedback"); - this.emailForFeedback = (yield this.getValue(email)) || global.strings("feedback_email_feedback"); - this.linkForFeedback = (yield this.getValue(link)) || ""; - this.resetTimestamp = yield this.getValue(reset_timestamp); - - if (((_this$resetTimestamp = this.resetTimestamp) == null ? undefined : _this$resetTimestamp.length) < 14) { - this.resetTimestamp = this.resetTimestamp.padEnd(14, "0"); - } - - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1754,[3,270,6,7,11,85,13,14,1749,438,1755]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PaperSetupBaseConfig = 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 _PaperSetupHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var PaperSetupBaseConfig = exports.PaperSetupBaseConfig = function () { - function PaperSetupBaseConfig(pSetup, machine) { - (0, _classCallCheck2.default)(this, PaperSetupBaseConfig); - this.pSetup = pSetup; - this.originalMachine = machine; - this.storageKey = pSetup + "-" + machine; - } - - return (0, _createClass2.default)(PaperSetupBaseConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return {}; - } - }, { - key: "getJSONKeys", - value: function getJSONKeys() { - var storage = _$$_REQUIRE(_dependencyMap[5]).JSUtils.flattenObject(this.getStorageKeys()); - - return Object.values(storage); - } - }, { - key: "filterJSON", - value: function filterJSON(json) { - var jsonKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - - if (jsonKeys && jsonKeys.length > 0) { - return Object.keys(json).reduce(function (prev, current) { - if (jsonKeys.includes(current)) { - prev[current] = json[current]; - } - - return prev; - }, {}); - } - - return json; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - this.json = this.filterJSON(json, this.getJSONKeys()); - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "setValue", - value: function () { - var _setValue = (0, _asyncToGenerator2.default)(function* (key, value) { - this.json[key] = value; - return _PaperSetupHelper.default.setItem(this.storageKey, key, value); - }); - - function setValue(_x, _x2) { - return _setValue.apply(this, arguments); - } - - return setValue; - }() - }, { - key: "getValue", - value: function () { - var _getValue = (0, _asyncToGenerator2.default)(function* (key) { - if (_$$_REQUIRE(_dependencyMap[5]).JSUtils.hasProperty(this.json, key)) { - var value = this.json[key]; - - if (value === null || value === undefined) { - value = yield _PaperSetupHelper.default.getItem(this.storageKey, key); - } - - return value; - } - - return ""; - }); - - function getValue(_x3) { - return _getValue.apply(this, arguments); - } - - return getValue; - }() - }]); - }(); -},1755,[3,270,6,7,1749,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.AdobeAnalyticsConfig = 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 _PaperSetupHelper = _$$_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 AdobeAnalyticsConfig = exports.AdobeAnalyticsConfig = function (_PaperSetupBaseConfig) { - function AdobeAnalyticsConfig() { - (0, _classCallCheck2.default)(this, AdobeAnalyticsConfig); - return _callSuper(this, AdobeAnalyticsConfig, arguments); - } - - (0, _inherits2.default)(AdobeAnalyticsConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(AdobeAnalyticsConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.adobe_analytics; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(AdobeAnalyticsConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - props_list = _this$getStorageKeys.props_list, - send_only_edition_load = _this$getStorageKeys.send_only_edition_load, - first_page_section_prefix = _this$getStorageKeys.first_page_section_prefix, - edition_type = _this$getStorageKeys.edition_type, - device_type = _this$getStorageKeys.device_type, - user_types = _this$getStorageKeys.user_types, - actions = _this$getStorageKeys.actions, - states = _this$getStorageKeys.states, - media = _this$getStorageKeys.media, - content_types = _this$getStorageKeys.content_types; - - this.propsList = (yield this.getValue(props_list)) || ""; - this.sendOnlyEditionLoad = ((yield this.getValue(send_only_edition_load)) || "0") === "1"; - this.userTypeUnknown = (yield this.getValue(user_types.unknown)) || ""; - this.userTypeSubscriber = (yield this.getValue(user_types.subscriber)) || ""; - this.editionLoadActionName = (yield this.getValue(actions.edition_load)) || ""; - this.scrollZoomActionName = (yield this.getValue(actions.scroll_zoom)) || ""; - this.doubleTapActionName = (yield this.getValue(actions.double_tap_to_zoom)) || ""; - this.pinchOutActionName = (yield this.getValue(actions.pinch_to_zoom)) || ""; - this.textToSpeechActionName = (yield this.getValue(actions.tts)) || ""; - this.skipToEndActionName = (yield this.getValue(actions.skip_to_end)) || ""; - this.toggleToPrintActionName = (yield this.getValue(actions.toggle_to_print)) || ""; - this.toggleToDigitalActionName = (yield this.getValue(actions.toggle_to_digital)) || ""; - this.shareActionName = (yield this.getValue(actions.share)) || ""; - this.linkClickActionName = (yield this.getValue(actions.link_click)) || ""; - this.scrolledStateName = (yield this.getValue(states.scrolled)) || ""; - this.readStateName = (yield this.getValue(states.read)) || ""; - this.zoomedStateName = (yield this.getValue(states.zoomed)) || ""; - this.indexStateName = (yield this.getValue(states.index)) || ""; - this.optionspageStateName = (yield this.getValue(states.optionspage)) || ""; - this.printMedium = (yield this.getValue(media.print)) || "print"; - this.digitalMedium = (yield this.getValue(media.digital)) || "digital"; - this.zoomedMediumSuffix = (yield this.getValue(media.zoomed_suffix)) || " zoom"; - this.firstPageSectionPrefix = (yield this.getValue(first_page_section_prefix)) || ""; - this.pageContentType = (yield this.getValue(content_types.page)) || ""; - this.firstPageContentType = (yield this.getValue(content_types.first_page)) || this.pageContentType; - this.indexContentType = (yield this.getValue(content_types.index)) || ""; - this.articleContentType = (yield this.getValue(content_types.article)) || ""; - this.optionspageContentType = (yield this.getValue(content_types.optionspage)) || ""; - this.editionType = (yield this.getValue(edition_type)) || "Newspaper"; - this.deviceType = (yield this.getValue(device_type)) || (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isTablet() ? "Tablet" : "Mobile Phone"); - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1756,[3,270,6,7,11,85,13,14,1749,438,1755]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MatomoConfig = 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 _PaperSetupHelper = _$$_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 DEFAULT_CUSTOM_DIMENSIONS = "dimension1=$deviceType&dimension2=$issue&dimension3=$edition&dimension4=$page&dimension5=$articleId&dimension6=$action&dimension7=$ePaperAccess&dimension8=$title"; - - var MatomoConfig = exports.MatomoConfig = function (_PaperSetupBaseConfig) { - function MatomoConfig() { - (0, _classCallCheck2.default)(this, MatomoConfig); - return _callSuper(this, MatomoConfig, arguments); - } - - (0, _inherits2.default)(MatomoConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(MatomoConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.matomo; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(MatomoConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - site_id = _this$getStorageKeys.site_id, - rss_site_id = _this$getStorageKeys.rss_site_id, - base_url = _this$getStorageKeys.base_url, - visit_custom_dimensions = _this$getStorageKeys.visit_custom_dimensions, - custom_dimensions = _this$getStorageKeys.custom_dimensions, - dispatch_interval = _this$getStorageKeys.dispatch_interval; - - this.ePaperSiteId = (yield this.getValue(site_id)) || ""; - 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)) || DEFAULT_CUSTOM_DIMENSIONS; - this.dispatchInterval = parseFloat((yield this.getValue(dispatch_interval)) || "30.0"); - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},1757,[3,270,6,7,11,85,13,14,1749,1755]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MatomoTrackerConfig = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _PaperSetupHelper = _$$_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 MatomoTrackerString = (0, _createClass2.default)(function MatomoTrackerString() { - (0, _classCallCheck2.default)(this, MatomoTrackerString); - }); - - var MatomoTrackerConfig = exports.MatomoTrackerConfig = function (_PaperSetupBaseConfig) { - function MatomoTrackerConfig() { - (0, _classCallCheck2.default)(this, MatomoTrackerConfig); - return _callSuper(this, MatomoTrackerConfig, arguments); - } - - (0, _inherits2.default)(MatomoTrackerConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(MatomoTrackerConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.matomo_tracker; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(MatomoTrackerConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - site_id = _this$getStorageKeys.site_id, - rss_site_id = _this$getStorageKeys.rss_site_id, - base_url = _this$getStorageKeys.base_url, - action_base_url = _this$getStorageKeys.action_base_url, - edition_remapping = _this$getStorageKeys.edition_remapping, - titles = _this$getStorageKeys.titles, - custom_urls = _this$getStorageKeys.custom_urls, - custom_dimensions = _this$getStorageKeys.custom_dimensions; - - this.ePaperSiteId = (yield this.getValue(site_id)) || ""; - this.rssSiteId = (yield this.getValue(rss_site_id)) || ""; - this.baseURL = (yield this.getValue(base_url)) || ""; - this.actionBaseURL = (yield this.getValue(action_base_url)) || ""; - this.editionRemapping = _$$_REQUIRE(_dependencyMap[9]).StringUtils.parseQuerystring((yield this.getValue(edition_remapping)) || ""); - this.titles = { - scrolled: (yield this.getValue(titles.scrolled)) || "", - read: (yield this.getValue(titles.read)) || "", - rss_drawer: (yield this.getValue(titles.rss_drawer)) || "", - rss_read: (yield this.getValue(titles.rss_read)) || "" - }; - this.customURLs = { - scrolled: (yield this.getValue(custom_urls.scrolled)) || "", - read: (yield this.getValue(custom_urls.read)) || "", - rss_drawer: (yield this.getValue(custom_urls.rss_drawer)) || "", - rss_read: (yield this.getValue(custom_urls.rss_read)) || "" - }; - this.customDimensions = { - scrolled: (yield this.getValue(custom_dimensions.scrolled)) || "", - read: (yield this.getValue(custom_dimensions.read)) || "", - rss_drawer: (yield this.getValue(custom_dimensions.rss_drawer)) || "", - rss_read: (yield this.getValue(custom_dimensions.rss_read)) || "" - }; - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1758,[3,270,11,85,13,14,7,6,1749,438,1755]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.BlueConicConfig = 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 _PaperSetupHelper = _$$_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 BlueConicConfig = exports.BlueConicConfig = function (_PaperSetupBaseConfig) { - function BlueConicConfig() { - (0, _classCallCheck2.default)(this, BlueConicConfig); - return _callSuper(this, BlueConicConfig, arguments); - } - - (0, _inherits2.default)(BlueConicConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(BlueConicConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.blueconic; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(BlueConicConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - user_profile_properties = _this$getStorageKeys.user_profile_properties, - view_profile_properties = _this$getStorageKeys.view_profile_properties; - - this.userProfileProperties = (yield this.getValue(user_profile_properties)) || ""; - this.viewProfileProperties = (yield this.getValue(view_profile_properties)) || ""; - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},1759,[3,270,6,7,11,85,13,14,1749,1755]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ChartbeatConfig = 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 _PaperSetupHelper = _$$_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 ChartbeatConfig = exports.ChartbeatConfig = function (_PaperSetupBaseConfig) { - function ChartbeatConfig() { - var _this; - - (0, _classCallCheck2.default)(this, ChartbeatConfig); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, ChartbeatConfig, [].concat(args)); - - _this._split = function () { - var _ref = (0, _asyncToGenerator2.default)(function* (key) { - var _yield$_this$getValue; - - return ((_yield$_this$getValue = yield _this.getValue(key)) == null ? undefined : _yield$_this$getValue.split(",").filter(function (i) { - return i; - })) || []; - }); - - return function (_x) { - return _ref.apply(this, arguments); - }; - }(); - - return _this; - } - - (0, _inherits2.default)(ChartbeatConfig, _PaperSetupBaseConfig); - return (0, _createClass2.default)(ChartbeatConfig, [{ - key: "getStorageKeys", - value: function getStorageKeys() { - return _PaperSetupHelper.default.SP.keys.chartbeat; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - yield (0, _get2.default)((0, _getPrototypeOf2.default)(ChartbeatConfig.prototype), "init", this).call(this, json); - - var _this$getStorageKeys = this.getStorageKeys(), - account_id = _this$getStorageKeys.account_id, - domain = _this$getStorageKeys.domain, - rss_enabled = _this$getStorageKeys.rss_enabled, - epaper_enabled = _this$getStorageKeys.epaper_enabled, - author_rss_properties = _this$getStorageKeys.author_rss_properties, - author_epaper_properties = _this$getStorageKeys.author_epaper_properties, - section_rss_properties = _this$getStorageKeys.section_rss_properties, - section_epaper_properties = _this$getStorageKeys.section_epaper_properties, - rss_title_keys = _this$getStorageKeys.rss_title_keys, - epaper_title_keys = _this$getStorageKeys.epaper_title_keys, - rss_screen_key = _this$getStorageKeys.rss_screen_key, - epaper_screen_key = _this$getStorageKeys.epaper_screen_key, - rss_custom_data = _this$getStorageKeys.rss_custom_data, - epaper_custom_data = _this$getStorageKeys.epaper_custom_data; - - this.accountId = (yield this.getValue(account_id)) || ""; - this.domain = (yield this.getValue(domain)) || ""; - this.rssEnabled = (yield this.getValue(rss_enabled)) === "1" || false; - this.epaperEnabled = (yield this.getValue(epaper_enabled)) === "1" || false; - this.sectionRssProperties = yield this._split(section_rss_properties); - this.sectionEpaperProperties = yield this._split(section_epaper_properties); - this.authorRssProperties = yield this._split(author_rss_properties); - this.authorEpaperProperties = yield this._split(author_epaper_properties); - this.rssTitleKeys = yield this._split(rss_title_keys); - this.epaperTitleKeys = yield this._split(epaper_title_keys); - this.rssScreenKey = yield this.getValue(rss_screen_key); - this.epaperScreenKey = yield this.getValue(epaper_screen_key); - this.rssCustomData = yield this.getValue(rss_custom_data); - this.epaperCustomData = yield this.getValue(epaper_custom_data); - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},1760,[3,270,6,7,11,85,13,14,1749,1755]); +},1723,[3,1201,940,1318,1202,1203,1206,1207,1209,1204,1211,945]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -213787,7 +207188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1761,[3,270,6,7,11,85,13,14,1749,438,1755]); +},1724,[3,270,6,7,11,85,13,14,867,438,874]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -213925,7 +207326,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},1762,[3,270,6,7,11,85,13,14,1749,824,1755]); +},1725,[3,270,6,7,11,85,13,14,867,881,874]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -214034,2903 +207435,296 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},1763,[3,270,6,7,11,85,13,14,1749,1755]); +},1726,[3,270,6,7,11,85,13,14,867,874]); __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 _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _Publication = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _PublicationsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _excluded = ["currentPublication"]; - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _BasePush2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _PushTags = _$$_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 OneSignalPush = exports.default = function (_BasePush) { - function OneSignalPush() { - var _this; - - (0, _classCallCheck2.default)(this, OneSignalPush); - _this = _callSuper(this, OneSignalPush, [OneSignalPush.NAME]); - _this.notificationToOpenDuringStartup = undefined; - _this.initialized = false; - _this.module = _optionalPackageUtils.default.getOneSignal(); - _this.onOpened = _this._onOpened.bind(_this); - return _this; + var PublicationsManager = exports.default = function () { + function PublicationsManager() { + (0, _classCallCheck2.default)(this, PublicationsManager); + this.publications = []; } - (0, _inherits2.default)(OneSignalPush, _BasePush); - return (0, _createClass2.default)(OneSignalPush, [{ - key: "init", + return (0, _createClass2.default)(PublicationsManager, [{ + key: "load", value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (appId) { - if (!this.isModuleAvailable()) { - this.printLog("OneSignal module not available"); - return; - } + var _load = (0, _asyncToGenerator2.default)(function* () { + var allItems = yield _PublicationsHelper.default.getAllItems(); - 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) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "initTags", - value: function initTags() { - var _this2 = this; - - var _global$getUserSettin = global.getUserSettings(), - userDefinedPushTags = _global$getUserSettin.userDefinedPushTags; - - var tags = _PushTags.default.parseTags(userDefinedPushTags); - - tags.forEach(function (_ref) { - var value = _ref.value; - var splitted = value.split(":"); - - if (splitted.length === 2) { - _this2.setTag(splitted[0], splitted[1]); - } else { - _this2.setTag(splitted[0], "1"); - } - }); - } - }, { - key: "updateTags", - value: function updateTags() { - this.resetTags(); - this.initTags(); - } - }, { - key: "resetTags", - value: function resetTags() { - 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); - } - }, { - key: "setTag", - value: function setTag(key, value) { - (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "setTag", this).call(this, 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", - value: function () { - var _onOpened2 = (0, _asyncToGenerator2.default)(function* (_ref2) { - var notification = _ref2.notification; - this.printLog("One signal -> on opened notification: " + JSON.stringify(notification)); - this.printLog("One signal -> app initialized: " + this.initialized); - - if (this.initialized) { - this.manageOpenedNotification(notification); - } else { - this.notificationToOpenDuringStartup = notification; - } - }); - - function _onOpened(_x2) { - return _onOpened2.apply(this, arguments); - } - - return _onOpened; - }() - }, { - key: "registerListener", - value: function registerListener() { - 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.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", - value: function checkIfAppIsOpenedByNotification(onOpen) { - this.printLog("One signal -> checkIfAppIsOpenedByNotification"); - this.initialized = true; - this.manageOpenedNotification(this.notificationToOpenDuringStartup, onOpen); - - if (!this.notificationToOpenDuringStartup) { - throw new Error("app not opened by notification"); - } - - this.notificationToOpenDuringStartup = undefined; - return true; - } - }, { - key: "manageOpenedNotification", - value: function manageOpenedNotification(notification, onOpen) { - if (notification) { - this.printLog("notificationId -> " + notification.notificationId); - var additionalData = notification.additionalData, - notificationID = notification.notificationID; - this.openNotification(notificationID, additionalData); - } - } - }, { - key: "deleteRegistration", - value: function deleteRegistration() { - if (!this.isModuleAvailable()) { - this.printLog("OneSignal module not available"); - return; - } - - this.module.disablePush(true); - } - }]); - }(_BasePush2.default); - - OneSignalPush.NAME = "onesignal"; -},1764,[3,270,6,7,11,85,13,14,824,1728,1765,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 PushTags = exports.default = function () { - function PushTags() { - (0, _classCallCheck2.default)(this, PushTags); - } - - return (0, _createClass2.default)(PushTags, null, [{ - key: "mergeTags", - value: function mergeTags(userTags, defaultTags, userDatasetTags) { - var aUserTags = PushTags.parseTags(userTags); - - if (defaultTags !== userDatasetTags) { - var aUserDatasetTags = PushTags.parseTags(userDatasetTags); - var aDefaultTags = PushTags.parseTags(defaultTags); - var i = 0; - - while (i < aUserTags.length) { - var tag = aDefaultTags.find(function (item) { - return item.label === aUserTags[i].label; + if (allItems) { + var currentPublication = allItems.currentPublication, + rawPublications = (0, _objectWithoutProperties2.default)(allItems, _excluded); + this.publications = Object.values(rawPublications).map(function (rawPublication) { + return PublicationsManager.parsePublication(rawPublication); }); + this.currentPublication = this.getPublication(currentPublication); + } + }); - if (!tag) { - aUserTags.splice(i, 1); - } else { - aUserTags[i].value = tag.value; - i += 1; + function load() { + return _load.apply(this, arguments); + } + + return load; + }() + }, { + key: "getPublications", + value: function getPublications() { + return this.publications; + } + }, { + key: "getPublication", + value: function getPublication(pSetup) { + return this.publications.find(function (publication) { + return publication.getPSetup() === pSetup; + }); + } + }, { + key: "getXPaperPublication", + value: function getXPaperPublication(pSetup) { + return this.publications.find(function (publication) { + return publication.getPSetup().startsWith(pSetup + "-xp-"); + }); + } + }, { + key: "getCurrentPublication", + value: function getCurrentPublication() { + return this.currentPublication; + } + }, { + key: "addPublication", + value: function () { + var _addPublication = (0, _asyncToGenerator2.default)(function* (params) { + var publication; + + if (params && params.pSetup) { + publication = this.getPublication(params.pSetup); + + if (!publication && params.machine) { + publication = new _Publication.default(params); + this.publications.push(publication); + yield this.storePublication(publication); } } - for (i = 0; i < aDefaultTags.length; i++) { - var _tag = aUserDatasetTags.find(function (item) { - return item.label === aDefaultTags[i].label; - }); + return publication; + }); - if (!_tag) { - aUserTags.push(aDefaultTags[i]); - } - } + function addPublication(_x) { + return _addPublication.apply(this, arguments); } - return PushTags.formatTags(aUserTags); - } + return addPublication; + }() }, { - key: "formatTags", - value: function formatTags() { - var tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - return tags.map(function (_ref) { - var label = _ref.label, - value = _ref.value; - return value + "=" + label; - }).join("&"); - } - }, { - key: "parseTags", - value: function parseTags() { - var tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - return tags.split("&").map(function (tag) { - var splitted = tag.split("="); + key: "deletePublication", + value: function () { + var _deletePublication = (0, _asyncToGenerator2.default)(function* (_ref) { + var pSetup = _ref.pSetup; - if (splitted.length === 2) { - return { - value: splitted[0], - label: splitted[1] - }; + if (pSetup) { + try { + var index = this.publications.findIndex(function (publication) { + return publication.getPSetup() === pSetup; + }); + + if (index >= 0) { + this.publications.splice(index, 1); + } + + yield _PublicationsHelper.default.removeItem(pSetup); + + if (this.currentPublication && this.currentPublication.getPSetup() === pSetup) { + this.currentPublication = undefined; + yield _PublicationsHelper.default.removeItem(_PublicationsHelper.default.SP.keys.current); + } + + return true; + } catch (e) {} } - return undefined; - }).filter(function (item) { - return item !== undefined; + return false; + }); + + function deletePublication(_x2) { + return _deletePublication.apply(this, arguments); + } + + return deletePublication; + }() + }, { + key: "storePublication", + value: function () { + var _storePublication = (0, _asyncToGenerator2.default)(function* (publication) { + return _PublicationsHelper.default.setItem(publication.getPSetup(), publication.toString()); + }); + + function storePublication(_x3) { + return _storePublication.apply(this, arguments); + } + + return storePublication; + }() + }, { + key: "setCurrentPublication", + value: function () { + var _setCurrentPublication = (0, _asyncToGenerator2.default)(function* (params) { + if (params && params.pSetup) { + var pSetup = params.pSetup, + machine = params.machine; + var publication = this.getPublication(pSetup); + + if (!publication && machine) { + if (pSetup.indexOf("-xp-") !== -1) { + var pSetupArray = pSetup.split("-xp-"); + + if (pSetupArray.length > 1) { + publication = this.getPublication(pSetupArray[0]); + } + } else { + publication = this.getXPaperPublication(pSetup); + } + + if (publication) { + yield this.deletePublication({ + pSetup: publication.getPSetup() + }); + } + + publication = yield this.addPublication(params); + } else if (publication && (params.external || publication.isExternal())) { + publication.external = true; + yield this.storePublication(publication); + } + + this.currentPublication = publication; + return _PublicationsHelper.default.setItem(_PublicationsHelper.default.SP.keys.current, pSetup); + } + + return false; + }); + + function setCurrentPublication(_x4) { + return _setCurrentPublication.apply(this, arguments); + } + + return setCurrentPublication; + }() + }], [{ + key: "parsePublication", + value: function parsePublication(rawPublication) { + var parts = rawPublication.split(","); + return new _Publication.default({ + pSetup: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[0]), + machine: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[1]), + name: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[2]), + st: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[3]), + icon: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[4]), + paper: parts[5] ? _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[5]) : "", + xpaper: parts[6] ? _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[6]) : "", + external: parts[7] === "true" }); } }]); }(); -},1765,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MasPush = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _excluded = ["body", "click_action", "title"]; - - 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 MasPush = exports.MasPush = function (_FirebasePush) { - function MasPush() { - var _this; - - (0, _classCallCheck2.default)(this, MasPush); - _this = _callSuper(this, MasPush, [MasPush.NAME]); - _this.masAppId = ""; - return _this; - } - - (0, _inherits2.default)(MasPush, _FirebasePush); - return (0, _createClass2.default)(MasPush, [{ - key: "parsePushEvent", - value: function parsePushEvent(event) { - var _event$data = event.data, - data = _event$data === undefined ? {} : _event$data, - messageId = event.messageId, - _event$notification = event.notification, - notification = _event$notification === undefined ? {} : _event$notification; - var android = notification.android; - var body = data.body, - _data$click_action = data.click_action, - click_action = _data$click_action === undefined ? "" : _data$click_action, - title = data.title, - rest = (0, _objectWithoutProperties2.default)(data, _excluded); - var sound = android ? android.sound : undefined; - var newData = Object.assign({}, rest); - - if (!click_action.startsWith("" + global.server)) { - newData.source = click_action; - } - - return { - title: notification.title || title, - body: notification.body || body, - sound: sound, - data: newData, - messageId: messageId - }; - } - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (appId) { - this.masAppId = appId; - return (0, _get2.default)((0, _getPrototypeOf2.default)(MasPush.prototype), "init", this).call(this); - }); - - function init(_x) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "sendRegistration", - value: function () { - var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token) { - yield (0, _get2.default)((0, _getPrototypeOf2.default)(MasPush.prototype), "sendRegistration", this).call(this, token, _$$_REQUIRE(_dependencyMap[10]).FirebasePush.NAME); - - try { - var success = false; - var iid = token; - - if (this.masAppId && iid) { - for (var i = 0; i < 3 && !success; i++) { - var origin = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() ? "androidapp" : "iosapp"; - var visitorId = ""; - var response = yield _Api.default.post("https://mas.protecmedia.com/WebPushNotification/instance/" + iid + "/" + origin + "/" + this.masAppId + "/" + visitorId, {}, {}, true); - var _response$data = response.data, - token_id = _response$data.token_id, - error = _response$data.error; - - if (error) { - var status = error.status, - source = error.source, - detail = error.detail; - this.serverMessage = detail ? "detail" : _$$_REQUIRE(_dependencyMap[12]).NOT_AVAILABLE; - } else { - this.lastSendRegistrationTime = new Date().getTime(); - this.serverMessage = token_id ? "id " + token_id : _$$_REQUIRE(_dependencyMap[12]).NOT_AVAILABLE; - success = true; - } - } - } else { - var log = "missing required information, appId: " + this.masAppId + ", token: " + iid; - this.serverMessage = "" + log; - } - } catch (e) { - this.serverMessage = "" + e.message; - } - }); - - function sendRegistration(_x2) { - return _sendRegistration.apply(this, arguments); - } - - return sendRegistration; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[10]).FirebasePush); - - MasPush.NAME = "mas"; -},1766,[3,270,4,6,7,11,85,13,14,407,1767,438,1728]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FirebasePush = 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 FirebasePush = exports.FirebasePush = function (_BaseCustomModulePush) { - function FirebasePush() { - var _this; - - 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; - - 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* () { - var userPermission = yield this.checkPermission(); - - if (!userPermission) { - userPermission = yield this.retrievePermission(); - - if (!userPermission) { - return false; - } - } - - try { - this.token = yield this.getToken(); - } catch (e) { - this.printLog(e); - } - - this.hasPermission = true; - - 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() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "registerListener", - value: function registerListener() { - var _this2 = this; - - if (!this.isModuleAvailable() || !this.hasPermission) { - return; - } - - (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "registerListener", this).call(this); - this.onNotificationOpened = this.module.onNotificationOpenedApp(function (notificationOpen) { - _this2.manageOpenedNotification(notificationOpen, function (navigator) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { - key: "startupNavigator", - value: navigator - }); - }); - }); - this.onTokenRefreshListener = this.module.onTokenRefresh(function (fcmToken) { - if (fcmToken) { - _this2.token = fcmToken; - - _this2.sendRegistration(fcmToken); - - _this2.printLog("New token -> " + _this2.token); - } - }); - this.onMessage = this.module.onMessage(function (event) { - _this2.printLog("onMessage: " + JSON.stringify(event)); - - _this2.displayNotification(event); - }); - - 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) { - _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[10]).StringUtils.getRandomIdentifier(), - data: data, - notification: { - title: title, - body: message - } - }; - - _this2.manageOpenedNotification(event, function (navigator) { - _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { - key: "startupNavigator", - value: navigator - }); - }); - - _this2.resetBadge(); - } - - 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.isModuleAvailable()) { - return undefined; - } - - return this.module.getInitialNotification(); - }); - - function getInitialNotification() { - return _getInitialNotification.apply(this, arguments); - } - - return getInitialNotification; - }() - }, { - key: "parsePushEvent", - value: function parsePushEvent(event) { - var data = event.data, - messageId = event.messageId, - _event$notification = event.notification, - notification = _event$notification === undefined ? {} : _event$notification; - var title = notification.title, - body = notification.body, - android = notification.android; - var sound = android ? android.sound : undefined; - return { - title: title, - body: body, - sound: sound, - data: data, - messageId: messageId - }; - } - }, { - key: "getToken", - value: function () { - var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return ""; - } - - return this.module.getToken(); - }); - - function getToken() { - return _getToken.apply(this, arguments); - } - - return getToken; - }() - }, { - key: "deleteToken", - value: function () { - var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return Promise.resolve(); - } - - return this.module.deleteToken(); - }); - - function deleteToken() { - return _deleteToken.apply(this, arguments); - } - - return deleteToken; - }() - }, { - key: "checkPermission", - value: function () { - var _checkPermission = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return false; - } - - var result = false; - - try { - result = (yield this.module.hasPermission()) === 1; - } catch (error) {} - - return result; - }); - - function checkPermission() { - return _checkPermission.apply(this, arguments); - } - - return checkPermission; - }() - }, { - key: "retrievePermission", - value: function () { - var _retrievePermission = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return false; - } - - try { - yield this.module.requestPermission(); - return true; - } catch (error) {} - - return false; - }); - - function retrievePermission() { - return _retrievePermission.apply(this, arguments); - } - - return retrievePermission; - }() - }, { - key: "clearOldStoredNotifications", - value: function () { - var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return false; - } - - return this.module.clearOldStoredNotifications(); - }); - - function clearOldStoredNotifications() { - return _clearOldStoredNotifications.apply(this, arguments); - } - - 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"; -},1767,[3,270,6,7,11,85,13,14,436,824,438,564,1768]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.BaseCustomModulePush = 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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _BasePush2 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var _PushTags = _$$_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; } - - 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 BaseCustomModulePush = exports.BaseCustomModulePush = function (_BasePush) { - function BaseCustomModulePush(name) { - var _this; - - (0, _classCallCheck2.default)(this, BaseCustomModulePush); - _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: "hasTags", - value: function hasTags() { - var _global$getMainPSetup = global.getMainPSetup(), - pushTags = _global$getMainPSetup.pushTags; - - return !_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pushTags); - } - }, { - key: "initTags", - value: function initTags() { - var _this2 = this; - - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "initTags", this).call(this); - - var _global$getUserSettin = global.getUserSettings(), - userDefinedPushTags = _global$getUserSettin.userDefinedPushTags; - - var tags = _PushTags.default.parseTags(userDefinedPushTags); - - tags.forEach(function (_ref) { - var value = _ref.value, - label = _ref.label; - - _this2.setTag(value, label); - }); - } - }, { - key: "updateTags", - value: function updateTags() { - this.initTags(); - this.sendRegistration(); - } - }, { - key: "createAndroidChannels", - value: function () { - var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { - try { - yield this.createAndroidChannel(this.channelId, "Breaking News", "daily push notification"); - } catch (e) { - this.printLog("failed to create channel"); - } - - try { - yield this.createAndroidChannel(this.channelSilentId, "Silent Breaking News", "daily push notification silent", 2); - } catch (e) { - this.printLog("failed to create silent channel"); - } - }); - - function createAndroidChannels() { - return _createAndroidChannels.apply(this, arguments); - } - - return createAndroidChannels; - }() - }, { - key: "createAndroidChannel", - value: function () { - 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, - name: name, - description: description, - importance: importance - }); - } catch (e) { - this.printLog(e.message); - } - }); - - function createAndroidChannel(_x, _x2, _x3) { - return _createAndroidChannel.apply(this, arguments); - } - - return createAndroidChannel; - }() - }, { - key: "parsePushEvent", - value: function parsePushEvent() { - return {}; - } - }, { - key: "getNotificationId", - value: function getNotificationId(event) { - var messageId = event.messageId, - message_id = event.message_id; - return messageId || message_id; - } - }, { - key: "displayNotification", - value: function () { - var _displayNotification = (0, _asyncToGenerator2.default)(function* (event) { - var _this$parsePushEvent = this.parsePushEvent(event), - title = _this$parsePushEvent.title, - body = _this$parsePushEvent.body, - sound = _this$parsePushEvent.sound, - messageId = _this$parsePushEvent.messageId, - 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 { - 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) { - return _displayNotification.apply(this, arguments); - } - - return displayNotification; - }() - }, { - key: "removeNotificationById", - value: function () { - var _removeNotificationById = (0, _asyncToGenerator2.default)(function* (notificationId) { - 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) { - return _removeNotificationById.apply(this, arguments); - } - - return removeNotificationById; - }() - }, { - key: "getInitialNotification", - value: function () { - var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - return Promise.resolve({}); - }); - - function getInitialNotification() { - return _getInitialNotification.apply(this, arguments); - } - - return getInitialNotification; - }() - }, { - key: "checkIfAppIsOpenedByNotification", - value: function () { - var _checkIfAppIsOpenedByNotification = (0, _asyncToGenerator2.default)(function* (onOpen) { - var notificationOpen = yield this.getInitialNotification(); - - if (!notificationOpen) { - throw new Error("app is not opened by notification"); - } - - yield this.manageOpenedNotification(notificationOpen, onOpen); - }); - - function checkIfAppIsOpenedByNotification(_x6) { - return _checkIfAppIsOpenedByNotification.apply(this, arguments); - } - - return checkIfAppIsOpenedByNotification; - }() - }, { - key: "manageOpenedNotification", - value: function () { - var _manageOpenedNotification = (0, _asyncToGenerator2.default)(function* (event, onOpen) { - if (!event) { - this.printLog("no event to open"); - return; - } - - var notificationId = this.getNotificationId(event); - this.removeNotificationById(notificationId); - - 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); - } - }); - - function manageOpenedNotification(_x7, _x8) { - return _manageOpenedNotification.apply(this, arguments); - } - - return manageOpenedNotification; - }() - }, { - key: "clearPush", - value: function clearPush() { - (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "clearPush", this).call(this); - this.removeNotificationById(); - } - }, { - key: "checkIfSendRegistration", - value: function () { - var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { - try { - if (this.lastSendRegistrationTime && this.token) { - var timeFromLastSend = new Date().getTime() - this.lastSendRegistrationTime; - - var _global$getMainPSetup2 = global.getMainPSetup(), - hoursToSendPushRegistration = _global$getMainPSetup2.hoursToSendPushRegistration; - - if (timeFromLastSend > _$$_REQUIRE(_dependencyMap[11]).DateUtils.HOUR_IN_MILLS * hoursToSendPushRegistration) { - yield this.sendRegistration(this.token); - } - } - } catch (e) { - this.printLog(e.message); - } - }); - - function checkIfSendRegistration() { - return _checkIfSendRegistration.apply(this, arguments); - } - - return checkIfSendRegistration; - }() - }, { - key: "deleteRegistration", - value: function () { - var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { - var result = false; - - try { - var response = yield _Api.default.deleteDeviceToPushServer({ - machineId: global.machineId, - token: this.token, - service: this.service - }); - var data = response.data; - this.token = _BasePush2.NOT_AVAILABLE; - result = typeof data === "object" ? data.success : false; - } catch (e) {} - - return result; - }); - - function deleteRegistration() { - return _deleteRegistration.apply(this, arguments); - } - - return deleteRegistration; - }() - }, { - key: "sendRegistration", - value: function () { - var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token, service) { - if ((0, _BasePush2.isNotAvailable)(token)) { - return false; - } - - var success = false; - - for (var i = 0; i < 3 && !success; i++) { - try { - var others = {}; - - if (this.hasTags()) { - others.segments = Object.keys(this.tags).join(","); - } - - var response = yield _Api.default.registerDeviceToPushServer(Object.assign({ - machineId: global.machineId, - token: token || this.token, - service: service || this.service - }, others)); - var data = response.data; - this.serverMessage = data ? data.message : _BasePush2.NOT_AVAILABLE; - this.lastSendRegistrationTime = new Date().getTime(); - success = true; - } catch (e) {} - } - - return success; - }); - - function sendRegistration(_x9, _x10) { - return _sendRegistration.apply(this, arguments); - } - - return sendRegistration; - }() - }]); - }(_BasePush2.default); -},1768,[3,270,6,7,11,85,13,14,407,1728,1765,438,579]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.AmazonPush = 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 _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _excluded = ["title", "body", "sound", "data", "adm_message_md5"]; - - 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 AmazonPush = exports.AmazonPush = function (_BaseCustomModulePush) { - function AmazonPush() { - var _this; - - (0, _classCallCheck2.default)(this, AmazonPush); - _this = _callSuper(this, AmazonPush, [AmazonPush.NAME]); - - var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), - AmazonDeviceMessaging = _OptionalPackages$get.AmazonDeviceMessaging; - - _this.module = AmazonDeviceMessaging; - return _this; - } - - (0, _inherits2.default)(AmazonPush, _BaseCustomModulePush); - return (0, _createClass2.default)(AmazonPush, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - 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() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "registerListener", - value: function registerListener() { - var _this2 = this; - - (0, _get2.default)((0, _getPrototypeOf2.default)(AmazonPush.prototype), "registerListener", this).call(this); - - 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 - }); - }); - }); - this.module.addOnTokenRefreshedListener(function (token) { - _this2.token = token; - - _this2.sendRegistration(token); - - _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.isModuleAvailable()) { - return; - } - - this.module.removeNotificationOpenedListener(); - this.module.removeMessageListener(); - this.module.removeTokenRefreshedListener(); - } - }, { - key: "getInitialNotification", - value: function () { - var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return undefined; - } - - return this.module.getInitialNotification(); - }); - - function getInitialNotification() { - return _getInitialNotification.apply(this, arguments); - } - - return getInitialNotification; - }() - }, { - key: "parsePushEvent", - value: function parsePushEvent(event) { - var title = event.title, - body = event.body, - sound = event.sound, - data = event.data, - adm_message_md5 = event.adm_message_md5, - rest = (0, _objectWithoutProperties2.default)(event, _excluded); - return { - title: title, - body: body, - sound: sound, - data: Object.assign({}, data, rest), - messageId: adm_message_md5 - }; - } - }, { - key: "getToken", - value: function () { - var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return ""; - } - - return this.module.getToken(); - }); - - function getToken() { - return _getToken.apply(this, arguments); - } - - return getToken; - }() - }, { - key: "deleteToken", - value: function () { - var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return Promise.resolve(); - } - - return this.module.deleteToken(); - }); - - function deleteToken() { - return _deleteToken.apply(this, arguments); - } - - return deleteToken; - }() - }, { - key: "register", - value: function () { - var _register = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return; - } - - try { - yield this.module.register(); - } catch (e) { - this.printLog(e.message); - } - }); - - function register() { - return _register.apply(this, arguments); - } - - return register; - }() - }, { - key: "clearOldStoredNotifications", - value: function () { - var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return false; - } - - return this.module.clearOldStoredNotifications(); - }); - - function clearOldStoredNotifications() { - return _clearOldStoredNotifications.apply(this, arguments); - } - - return clearOldStoredNotifications; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); - - AmazonPush.NAME = "adm"; -},1769,[3,4,270,6,7,11,85,13,14,436,824,564,1768]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.HuaweiPush = 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 _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _excluded = ["body", "title", "android", "sound"]; - - 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 HuaweiPush = exports.HuaweiPush = function (_BaseCustomModulePush) { - function HuaweiPush() { - var _this; - - (0, _classCallCheck2.default)(this, HuaweiPush); - _this = _callSuper(this, HuaweiPush, [HuaweiPush.NAME]); - _this.module = null; - - var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), - HcmDeviceMessaging = _OptionalPackages$get.HcmDeviceMessaging; - - _this.module = HcmDeviceMessaging; - return _this; - } - - (0, _inherits2.default)(HuaweiPush, _BaseCustomModulePush); - return (0, _createClass2.default)(HuaweiPush, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (appId) { - this.appId = appId; - - if (!this.isModuleAvailable()) { - 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) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "registerListener", - value: function registerListener() { - var _this2 = this; - - (0, _get2.default)((0, _getPrototypeOf2.default)(HuaweiPush.prototype), "registerListener", this).call(this); - - 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 - }); - }); - }); - this.module.addOnTokenRefreshedListener(function (token) { - _this2.token = token; - - _this2.sendRegistration(token); - - _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.isModuleAvailable()) { - return; - } - - this.module.removeNotificationOpenedListener(); - this.module.removeMessageListener(); - this.module.removeTokenRefreshedListener(); - } - }, { - key: "getInitialNotification", - value: function () { - var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return undefined; - } - - return this.module.getInitialNotification(); - }); - - function getInitialNotification() { - return _getInitialNotification.apply(this, arguments); - } - - return getInitialNotification; - }() - }, { - key: "parsePushEvent", - value: function parsePushEvent(event) { - var _event$data = event.data, - data = _event$data === undefined ? {} : _event$data, - messageId = event.messageId; - var body = data.body, - title = data.title, - _data$android = data.android, - android = _data$android === undefined ? {} : _data$android, - sound = data.sound, - rest = (0, _objectWithoutProperties2.default)(data, _excluded); - return { - title: title, - body: body, - sound: android ? android.sound : sound, - data: rest, - messageId: messageId - }; - } - }, { - key: "getToken", - value: function () { - var _getToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return ""; - } - - return this.module.getToken(this.appId); - }); - - function getToken() { - return _getToken.apply(this, arguments); - } - - return getToken; - }() - }, { - key: "deleteToken", - value: function () { - var _deleteToken = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return Promise.resolve(); - } - - return this.module.deleteToken(this.appId); - }); - - function deleteToken() { - return _deleteToken.apply(this, arguments); - } - - return deleteToken; - }() - }, { - key: "clearOldStoredNotifications", - value: function () { - var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { - if (!this.isModuleAvailable()) { - return false; - } - - return this.module.clearOldStoredNotifications(); - }); - - function clearOldStoredNotifications() { - return _clearOldStoredNotifications.apply(this, arguments); - } - - return clearOldStoredNotifications; - }() - }]); - }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); - - HuaweiPush.NAME = "hcm"; -},1770,[3,4,270,6,7,11,85,13,14,436,824,564,1768]); +},1727,[3,4,270,6,7,1728,1729,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = 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 _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _refreshComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - var _articleExtraComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _articleFlingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - - var _articleGraph = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); - - var _articleText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); - - var _excluded = ["FooterComponent", "onModeChange", "onLongPress", "navigation", "accessibilityItems", "onAccessibilityItemPress"]; - - 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 styles = _reactNative.StyleSheet.create({ - graphicParent: { - overflow: "hidden", - flexDirection: "column", - flex: 1, - width: "100%" - } - }); - - var NewsmemoryArticle = exports.default = function (_React$Component) { - function NewsmemoryArticle(props) { - var _this; - - (0, _classCallCheck2.default)(this, NewsmemoryArticle); - _this = _callSuper(this, NewsmemoryArticle, [props]); - _this._scrollContentHeight = 0; - _this._scrollHeight = 0; - _this._articleExtraHeight = 0; - _this._articleExtraScrollPosition = 0; - _this._scrollPosition = 0; - _this._accessibilityHeight = 0; - _this._fingerItemIndex = -1; - _this.onScroll = _this._onScroll.bind(_this); - _this.onPanEvent = _this._onPanEvent.bind(_this); - _this.onRef = _this._onRef.bind(_this); - _this.onGraphRef = _this._onGraphRef.bind(_this); - _this.onArticleExtraRef = _this._onArticleExtraRef.bind(_this); - _this.onArticleRef = _this._onArticleRef.bind(_this); - _this.onScrollLayout = _this._onScrollLayout.bind(_this); - _this.onScrollContentLayout = _this._onScrollContentLayout.bind(_this); - _this.onLoadEnd = _this._onLoadEnd.bind(_this); - _this.onScrollTop = _this._onScrollTop.bind(_this); - _this.scrollTo = _this._scrollTo.bind(_this); - _this.isActive = _this._isActive.bind(_this); - _this.onRefresh = _this._onRefresh.bind(_this); - _this.onPositionId = _this._onPositionId.bind(_this); - _this.onPositionIdOffset = _this._onPositionIdOffset.bind(_this); - _this.onHrsPosition = _this._onHrsPosition.bind(_this); - _this.onExtraOpenGallery = _this._onExtraOpenGallery.bind(_this); - _this.onExtraPress = _this._onExtraPress.bind(_this); - _this.onExtraLayout = _this._onExtraLayout.bind(_this); - _this.onExpandedImageLayout = _this._onExpandedImageLayout.bind(_this); - _this.onAccessibilityLayout = _this._onAccessibilityLayout.bind(_this); - _this.onArticleExtraLoaded = _this._onArticleExtraLoaded.bind(_this); - _this.scrollUp = _this._scrollUp.bind(_this); - _this.scrollDown = _this._scrollDown.bind(_this); - _this.state = { - mode: props.mode, - refreshing: false, - hidden: props.hidden, - focusedItem: undefined, - lastFocusedIndex: -1 - }; - return _this; - } - - (0, _inherits2.default)(NewsmemoryArticle, _React$Component); - return (0, _createClass2.default)(NewsmemoryArticle, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - var onUnmount = this.props.onUnmount; - - if (typeof onUnmount === "function") { - onUnmount(); - } - } - }, { - key: "getText", - value: function getText() { - if (this.textArticle) { - return this.textArticle.getText() || ""; - } - - return ""; - } - }, { - key: "getMode", - value: function getMode() { - var mode = this.state.mode; - return mode; - } - }, { - key: "isTextMode", - value: function isTextMode() { - var mode = this.state.mode; - return mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT; - } - }, { - key: "toggleMode", - value: function toggleMode() { - var _this$props = this.props, - edition = _this$props.edition, - page = _this$props.page, - article = _this$props.article; - var mode = this.isTextMode() ? _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC : _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT; - (0, _$$_REQUIRE(_dependencyMap[23]).sendNewsmemoryToogleArticleModeEvent)(mode, edition, page, article); - this.setState({ - mode: mode - }); - } - }, { - key: "show", - value: function show() { - var _this$state = this.state, - hidden = _this$state.hidden, - mode = _this$state.mode; - - if (this.graphArticle && mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC) { - this.graphArticle.show(); - } else if (hidden) { - this.setState({ - hidden: false - }); - } - } - }, { - key: "hide", - value: function hide() { - var _this$state2 = this.state, - hidden = _this$state2.hidden, - mode = _this$state2.mode; - - if (this.graphArticle && mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC) { - this.graphArticle.hide(); - } else if (!hidden) { - this.setState({ - hidden: true - }); - } - } - }, { - key: "isTranslated", - value: function isTranslated(language) { - if (this.textArticle && this.isTextMode()) { - return this.textArticle.isTranslated(language); - } - - return false; - } - }, { - key: "translate", - value: function () { - var _translate = (0, _asyncToGenerator2.default)(function* (language) { - if (this.textArticle && this.isTextMode()) { - return this.textArticle.initializeHtml(language); - } - - return false; - }); - - function translate(_x) { - return _translate.apply(this, arguments); - } - - return translate; - }() - }, { - key: "getPrintHtml", - value: function () { - var _getPrintHtml = (0, _asyncToGenerator2.default)(function* () { - var html; - var filename; - - try { - var _this$props2 = this.props, - article = _this$props2.article, - page = _this$props2.page, - newspaper = _this$props2.newspaper; - filename = newspaper.getEdition() + " " + newspaper.getIssue() + " " + page.getPage() + " " + article.getXmlId(); - filename = filename.replace(/ /g, "_"); - - if (this.isTextMode()) { - html = this.textArticle.getContentToPrint(); - filename = filename + "_t"; - } else { - if (_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isIOS()) { - yield this.graphArticle.isPrintGraphReady(); - } - - html = yield this.graphArticle.getHtmlToPrint(); - } - } catch (e) {} - - return { - html: html, - filename: filename - }; - }); - - function getPrintHtml() { - return _getPrintHtml.apply(this, arguments); - } - - return getPrintHtml; - }() - }, { - key: "print", - value: function () { - var _print = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet = global.getActivePSetup(), - printToLetter = _global$getActivePSet.printToLetter; - - var _yield$this$getPrintH = yield this.getPrintHtml(), - html = _yield$this$getPrintH.html, - filename = _yield$this$getPrintH.filename; - - var jobName = yield _tecnaviaFileUtils.default.printHTML(html, filename, printToLetter); - - if (jobName) { - return jobName; - } - - throw new Error("Print cancelled"); - }); - - function print() { - return _print.apply(this, arguments); - } - - return print; - }() - }, { - key: "checkArticleExtra", - value: function checkArticleExtra() { - if (this.graphArticle && !this.isTextMode()) { - this.graphArticle.checkArticleExtra(); - } - } - }, { - key: "toggleArticleExtra", - value: function toggleArticleExtra() { - if (this.graphArticle && !this.isTextMode()) { - this.graphArticle.toggleArticleExtra(); - } - } - }, { - key: "startHeightCheck", - value: function startHeightCheck() { - if (this.textArticle && this.isTextMode()) { - this.textArticle.startHeightCheck(); - } - } - }, { - key: "stopHeightCheck", - value: function stopHeightCheck() { - if (this.textArticle && this.isTextMode()) { - this.textArticle.stopHeightCheck(); - } - } - }, { - key: "scrollToHrAfter", - value: function scrollToHrAfter() { - var _this2 = this; - - if (this._positions) { - var position = this._positions.find(function (pos) { - return Math.ceil(pos + _this2._getExpandedImageHeight()) > Math.ceil(_this2._scrollPosition); - }); - - if (position > 0) { - this._onScrollTop(position + this._getExpandedImageHeight()); - - return; - } - } - - this._scrollToEnd(); - } - }, { - key: "scrollToHrBefore", - value: function scrollToHrBefore() { - if (this._positions) { - for (var i = this._positions.length - 1; i >= 0; i--) { - if (Math.floor(this._positions[i] + this._getExpandedImageHeight()) < Math.floor(this._scrollPosition)) { - this._onScrollTop(this._positions[i] + this._getExpandedImageHeight()); - - return; - } - } - } - - this._onScrollTop(); - } - }, { - key: "_scrollUp", - value: function _scrollUp() { - if (this.isTextMode()) { - this._scrollTo(-this._scrollHeight / 3); - } - } - }, { - key: "_scrollDown", - value: function _scrollDown() { - if (this.isTextMode()) { - this._scrollTo(this._scrollHeight / 3); - } - } - }, { - key: "_getCss", - value: function _getCss() { - return { - defaultCss: NewsmemoryArticle.defaultCss, - customCss: NewsmemoryArticle.customCss - }; - } - }, { - key: "_onScrollLayout", - value: function _onScrollLayout(_ref) { - var nativeEvent = _ref.nativeEvent; - var article = this.props.article; - var height = nativeEvent.layout.height; - this._scrollHeight = height; - - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.ARTICLE_SCROLL_LAYOUT, { - id: (0, _$$_REQUIRE(_dependencyMap[26]).getArticleId)(article), - scrollHeight: height - }); - } - }, { - key: "_onScrollContentLayout", - value: function _onScrollContentLayout(width, height) { - this._scrollContentHeight = height; - } - }, { - key: "_onScroll", - value: function _onScroll(_ref2) { - var nativeEvent = _ref2.nativeEvent; - - var _global$getActivePSet2 = global.getActivePSetup(), - keepArticlePositionOnRotation = _global$getActivePSet2.keepArticlePositionOnRotation; - - var article = this.props.article; - var contentOffset = nativeEvent.contentOffset; - var xOffset = contentOffset.x, - yOffset = contentOffset.y; - - if (this.textArticle instanceof _articleText.default && keepArticlePositionOnRotation) { - this.textArticle.getPositionId(xOffset, yOffset); - } - - if (this.articleExtraRef) { - if ((yOffset <= 0 || this._scrollPosition > yOffset) && yOffset - this._getExpandedImageHeight() < this._articleExtraScrollPosition - this._scrollHeight + this._articleExtraHeight) { - this.articleExtraRef.show(); - } else { - this.articleExtraRef.hide(); - } - } - - this._scrollPosition = yOffset; - - _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.ARTICLE_SCROLL, { - id: (0, _$$_REQUIRE(_dependencyMap[26]).getArticleId)(article), - scrollYOffset: yOffset - }); - } - }, { - key: "_onPanEvent", - value: function _onPanEvent(_ref3) { - var nativeEvent = _ref3.nativeEvent; - - if (nativeEvent.state === _$$_REQUIRE(_dependencyMap[27]).State.ACTIVE) { - var accessibilityItems = this.props.accessibilityItems; - var y = nativeEvent.y; - var fingerY = y + this._scrollPosition; - var itemHeight = this._accessibilityHeight / accessibilityItems.length; - var progressiveHeight = 0; - var fingerItemIndex = -1; - - for (var i = 0; i < accessibilityItems.length; i++) { - if (fingerY >= progressiveHeight && fingerY <= progressiveHeight + itemHeight) { - fingerItemIndex = i; - break; - } - - progressiveHeight += itemHeight; - } - - if (this._fingerItemIndex !== fingerItemIndex) { - this._fingerItemIndex = fingerItemIndex; - - if (fingerY > this._accessibilityHeight) { - var focusedItem = this.state.focusedItem; - this.accessibilityFocus(); - - if (focusedItem !== undefined) { - this.setState({ - focusedItem: undefined, - lastFocusedIndex: fingerItemIndex - }); - } - } else { - this.accessibilityUnfocus(); - var _focusedItem = accessibilityItems[fingerItemIndex]; - this.setState({ - focusedItem: _focusedItem, - lastFocusedIndex: fingerItemIndex - }); - } - } - } - } - }, { - key: "accessibilityFocus", - value: function accessibilityFocus() { - var _this$textArticle; - - (_this$textArticle = this.textArticle) == null ? undefined : _this$textArticle.setAccessibilityFocus(true); - } - }, { - key: "accessibilityUnfocus", - value: function accessibilityUnfocus() { - var _this$textArticle2; - - (_this$textArticle2 = this.textArticle) == null ? undefined : _this$textArticle2.setAccessibilityFocus(false); - } - }, { - key: "_onRefresh", - value: function _onRefresh() { - var _this3 = this; - - var onSwipeDown = this.props.onSwipeDown; - - if (typeof onSwipeDown === "function") { - this.setState({ - refreshing: true - }, function () { - onSwipeDown(); - - _this3.setState({ - refreshing: false - }); - }); - } - } - }, { - key: "_onLoadEnd", - value: function _onLoadEnd() { - var _this4 = this; - - var _this$props3 = this.props, - index = _this$props3.index, - onLoadEnd = _this$props3.onLoadEnd, - getNewspaperStatus = _this$props3.getNewspaperStatus; - - if (onLoadEnd) { - onLoadEnd(index); - } - - var _global$getActivePSet3 = global.getActivePSetup(), - keepArticlePositionOnRotation = _global$getActivePSet3.keepArticlePositionOnRotation; - - if (this.isActive() && this.isTextMode() && keepArticlePositionOnRotation && this.textArticle instanceof _articleText.default) { - var _getNewspaperStatus = getNewspaperStatus(), - lastArticlePositionId = _getNewspaperStatus.lastArticlePositionId; - - if (lastArticlePositionId > 0) { - setTimeout(function () { - _this4.textArticle.goToPositionId(lastArticlePositionId); - }, 500); - } - } - } - }, { - key: "_scrollToEnd", - value: function _scrollToEnd() { - var _this5 = this; - - if (this.scrollTextArticle) { - setTimeout(function () { - var _this5$scrollTextArti; - - (_this5$scrollTextArti = _this5.scrollTextArticle) == null ? undefined : _this5$scrollTextArti.scrollToEnd({ - animated: true - }); - }, 1); - } - } - }, { - key: "_onScrollTop", - value: function _onScrollTop() { - var _this6 = this; - - var top = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - - if (this.scrollTextArticle) { - setTimeout(function () { - var _this6$scrollTextArti; - - (_this6$scrollTextArti = _this6.scrollTextArticle) == null ? undefined : _this6$scrollTextArti.scrollTo({ - y: Math.max(0, top), - x: 0, - animated: true - }); - }, 1); - } - } - }, { - key: "_getIndexOfFocusedItems", - value: function _getIndexOfFocusedItems() { - var accessibilityItems = this.props.accessibilityItems; - var focusedItem = this.state.focusedItem; - - if (!focusedItem) { - return -1; - } - - var i = 0; - - for (; i < accessibilityItems.length; i++) { - if (_$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(accessibilityItems[i], focusedItem)) { - break; - } - } - - return i; - } - }, { - key: "selectAccessibilityItem", - value: function selectAccessibilityItem() { - var onAccessibilityItemPress = this.props.onAccessibilityItemPress; - var focusedItem = this.state.focusedItem; - - if (focusedItem && typeof onAccessibilityItemPress === "function") { - onAccessibilityItemPress(focusedItem); - } - } - }, { - key: "_scrollTo", - value: function _scrollTo(top) { - var _this7 = this; - - var accessibilityItems = this.props.accessibilityItems; - var lastFocusedIndex = this.state.lastFocusedIndex; - var accessibilityItemsVisible = this._accessibilityHeight > 0 && this._scrollPosition === 0; - var accessibilityFromBottom = top < 0 && lastFocusedIndex > -1 && accessibilityItemsVisible; - var accessibilityFromTop = top > 0 && lastFocusedIndex < accessibilityItems.length && accessibilityItemsVisible; - var articleAccessibilityFocus = false; - - if (accessibilityFromTop) { - lastFocusedIndex += 1; - this.setState({ - focusedItem: accessibilityItems[lastFocusedIndex], - lastFocusedIndex: lastFocusedIndex - }); - } else if (accessibilityFromBottom) { - lastFocusedIndex -= 1; - this.setState({ - focusedItem: accessibilityItems[lastFocusedIndex], - lastFocusedIndex: lastFocusedIndex - }); - } else { - var offsetY = this._scrollPosition + top; - - if (this.scrollTextArticle) { - setTimeout(function () { - if (_this7.scrollTextArticle) { - _this7.scrollTextArticle.scrollTo({ - y: Math.max(0, offsetY), - x: 0, - animated: true - }); - } - }, 1); - } - - articleAccessibilityFocus = true; - } - - if (articleAccessibilityFocus) { - this.accessibilityFocus(); - } else { - this.accessibilityUnfocus(); - } - } - }, { - key: "_onHrsPosition", - value: function _onHrsPosition(positions) { - this._positions = positions; - } - }, { - key: "_onExpandedImageLayout", - value: function _onExpandedImageLayout(_ref4) { - var nativeEvent = _ref4.nativeEvent; - this._expandedImageHeight = nativeEvent.layout.height; - } - }, { - key: "_onAccessibilityLayout", - value: function _onAccessibilityLayout(_ref5) { - var nativeEvent = _ref5.nativeEvent; - this._accessibilityHeight = nativeEvent.layout.height; - } - }, { - key: "_onPositionId", - value: function _onPositionId(positionId) { - if (this.isActive()) { - var getNewspaperStatus = this.props.getNewspaperStatus; - var newspaperStatus = getNewspaperStatus(); - - if (newspaperStatus) { - newspaperStatus.setLastArticlePositionId(positionId); - } - } - } - }, { - key: "_onPositionIdOffset", - value: function _onPositionIdOffset(_ref6) { - var top = _ref6.top; - - if (this.isActive()) { - this.onScrollTop(top); - } - } - }, { - key: "_onArticleExtraLoaded", - value: function _onArticleExtraLoaded(html) { - var scrollPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - - if (this.articleExtraRef) { - this._articleExtraScrollPosition = scrollPosition; - this.articleExtraRef.setContent(html); - } - } - }, { - key: "_getExpandedImageHeight", - value: function _getExpandedImageHeight() { - return this._expandedImageHeight || 0; - } - }, { - key: "_onExtraPress", - value: function _onExtraPress() { - this._scrollTo(this._articleExtraScrollPosition + this._getExpandedImageHeight() - this._scrollPosition); - } - }, { - key: "_onExtraLayout", - value: function _onExtraLayout(_ref7) { - var nativeEvent = _ref7.nativeEvent; - this._articleExtraHeight = nativeEvent.layout.height; - } - }, { - key: "_onExtraOpenGallery", - value: function _onExtraOpenGallery(content) { - if (this.textArticle) { - this.textArticle.openGallery(content); - } - } - }, { - key: "_onArticleExtraRef", - value: function _onArticleExtraRef(ref) { - this.articleExtraRef = ref; - } - }, { - key: "_onArticleRef", - value: function _onArticleRef(ref) { - this.textArticle = ref; - } - }, { - key: "_onRef", - value: function _onRef(ref) { - this.scrollTextArticle = ref; - } - }, { - key: "_onGraphRef", - value: function _onGraphRef(ref) { - this.graphArticle = ref; - } - }, { - key: "_isActive", - value: function _isActive() { - var _this$props4 = this.props, - isActive = _this$props4.isActive, - index = _this$props4.index; - return typeof isActive !== "function" || isActive(index); - } - }, { - key: "_renderAccessibility", - value: function _renderAccessibility() { - var _this$props5 = this.props, - onAccessibilityItemPress = _this$props5.onAccessibilityItemPress, - accessibilityEnabled = _this$props5.accessibilityEnabled, - accessibilityItems = _this$props5.accessibilityItems; - var focusedItem = this.state.focusedItem; - return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.View, { - onLayout: this.onAccessibilityLayout, - children: accessibilityItems.map(function (accessibilityItem, index) { - return (0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[29]).ItemAccessibilityFocused, { - touchable: true, - focused: _$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(focusedItem, accessibilityItem), - accessibilityEnabled: accessibilityEnabled, - accessibilityLabel: accessibilityItem.getText(), - onPress: function onPress() { - if (typeof onAccessibilityItemPress === "function") { - onAccessibilityItemPress(accessibilityItem); - } - }, - children: [(0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[29]).ItemListAccessibility, { - text: accessibilityItem.getText(), - classes: ["newsmemory-article-accessibility-text"], - focused: _$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(focusedItem, accessibilityItem), - style: { - padding: 8 - } - }), (0, _$$_REQUIRE(_dependencyMap[30]).hr)({ - backgroundColor: _$$_REQUIRE(_dependencyMap[31]).LIST_ITEM_SEPARATOR_COLOR, - height: _$$_REQUIRE(_dependencyMap[31]).LIST_ITEM_SEPARATOR_HEIGHT - })] - }, "accessibility_" + index); - }) - }); - } - }, { - key: "render", - value: function render() { - var _this$props6 = this.props, - FooterComponent = _this$props6.FooterComponent, - onModeChange = _this$props6.onModeChange, - onLongPress = _this$props6.onLongPress, - navigation = _this$props6.navigation, - accessibilityItems = _this$props6.accessibilityItems, - onAccessibilityItemPress = _this$props6.onAccessibilityItemPress, - rest = (0, _objectWithoutProperties2.default)(_this$props6, _excluded); - var _this$state3 = this.state, - refreshing = _this$state3.refreshing, - hidden = _this$state3.hidden; - - if (typeof onModeChange === "function") { - onModeChange(this.isTextMode(), rest.index); - } - - if (this.isTextMode()) { - if (hidden) { - return null; - } - - var _global$getActivePSet4 = global.getActivePSetup(), - enableArticleExtra = _global$getActivePSet4.enableArticleExtra; - - var simulateAccessibility = rest.accessibilityEnabled && !_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isSystemAccessibilityEnabled(); - var ScrollComponent = (0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[28]).Fragment, { - children: [(0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[32]).TecnaviaScrollView, { - ref: this.onRef, - style: _articleComponent.default.scrollViewText, - contentContainerStyle: _articleComponent.default.scrollViewTextContainer, - onLayout: this.onScrollLayout, - onContentSizeChange: this.onScrollContentLayout, - onScroll: this.onScroll, - scrollEventThrottle: 16, - minPointers: simulateAccessibility || _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isEInk() ? 2 : 1, - scrollEnabled: !_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isEInk(), - refreshControl: !rest.accessibilityEnabled ? (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_refreshComponent.default, { - refreshing: refreshing, - onRefresh: this.onRefresh, - cssClasses: ["newsmemory-article-refresh-control"] - }) : null, - children: [this._renderAccessibility(), (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleText.default, Object.assign({ - ref: this.onArticleRef, - css: this._getCss() - }, rest, { - onScrollTop: this.onScrollTop, - onLongPress: onLongPress, - onLoadEnd: this.onLoadEnd, - onPositionId: this.onPositionId, - onPositionIdOffset: this.onPositionIdOffset, - onHrsPosition: this.onHrsPosition, - onExpandedImageLayout: this.onExpandedImageLayout, - onArticleExtraLoaded: this.onArticleExtraLoaded - })), FooterComponent || null] - }), enableArticleExtra ? (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleExtraComponent.default, { - ref: this.onArticleExtraRef, - onLayout: this.onExtraLayout, - onPress: this.onExtraPress, - maxHeight: rest.defaultHeight, - onOpenGallery: this.onExtraOpenGallery - }) : null] - }); - - if (simulateAccessibility) { - return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[27]).PanGestureHandler, { - maxPointers: 1, - onGestureEvent: this.onPanEvent, - children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.Animated.View, { - collapsable: false, - style: { - flex: 1 - }, - children: ScrollComponent - }) - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleFlingComponent.default, { - onSwipeUp: this.scrollUp, - onSwipeDown: this.scrollDown, - onSwipeLeft: rest.goPrev, - onSwipeRight: rest.goNext, - children: ScrollComponent - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.View, { - style: styles.graphicParent, - children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleGraph.default, Object.assign({ - ref: this.onGraphRef, - navigation: navigation, - FooterComponent: FooterComponent, - renderGraphContent: !hidden && this.isActive() - }, rest, { - onLongPress: onLongPress, - css: this._getCss() - })) - }); - } - }], [{ - key: "fixFontFamilyRules", - value: function fixFontFamilyRules(css) { - var newCSS = css; - var regExp = new RegExp(/font-family:[^;]+;/, "gm"); - var matches = css.match(regExp); - - if (matches) { - for (var i = 0; i < matches.length; i++) { - if (matches[i].indexOf("!important;") === -1) { - var modified = matches[i].replace(";", " !important;"); - newCSS = newCSS.replace(matches[i], modified); - } - } - - var fontFaceRegExp = new RegExp(/@font-face ?\{[^}]+\}/, "gm"); - var fontFaceMatches = newCSS.match(fontFaceRegExp); - - if (fontFaceMatches) { - for (var _i = 0; _i < fontFaceMatches.length; _i++) { - var _modified = fontFaceMatches[_i].replace(" !important;", ";"); - - newCSS = newCSS.replace(fontFaceMatches[_i], _modified); - } - } - } - - return newCSS; - } - }, { - key: "initArticleTextCss", - value: function () { - var _initArticleTextCss = (0, _asyncToGenerator2.default)(function* () { - var _global$getActivePSet5 = global.getActivePSetup(), - cssFilesToAdd = _global$getActivePSet5.cssFilesToAdd, - enableArticleTextSelection = _global$getActivePSet5.enableArticleTextSelection; - - var _global$getFontsConfi = global.getFontsConfig(), - fontRegular = _global$getFontsConfi.fontRegular, - fontBold = _global$getFontsConfi.fontBold; - - var customCss = yield (0, _$$_REQUIRE(_dependencyMap[26]).readCustomCss)(cssFilesToAdd); - NewsmemoryArticle.customCss = NewsmemoryArticle.fixFontFamilyRules(customCss); - NewsmemoryArticle.defaultCss = (0, _$$_REQUIRE(_dependencyMap[33]).DEFAULT_CSS)(fontRegular.fontWeb, fontBold.fontWeb, enableArticleTextSelection); - }); - - function initArticleTextCss() { - return _initArticleTextCss.apply(this, arguments); - } - - return initArticleTextCss; - }() - }, { - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props, state) { - if (state.hidden && typeof props.isActive === "function" && props.isActive(props.index)) { - return Object.assign({}, state, { - hidden: false - }); - } - - return state; - } - }]); - }(_react.default.Component); - - NewsmemoryArticle.customCss = undefined; - NewsmemoryArticle.defaultCss = undefined; - NewsmemoryArticle.propTypes = Object.assign({ - navigation: _propTypes.default.shape({ - navigate: _propTypes.default.func - }).isRequired, - article: _propTypes.default.instanceOf(_EPaperArticle.default).isRequired, - mode: _propTypes.default.oneOf([_$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT, _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC]), - accessibilityItems: _propTypes.default.array, - onAccessibilityItemPress: _propTypes.default.func, - onModeChange: _propTypes.default.func, - FooterComponent: _propTypes.default.node, - onSwipeDown: _propTypes.default.func, - onUnmount: _propTypes.default.func, - formattedIssue: _propTypes.default.string, - hidden: _propTypes.default.bool, - onLongPress: _propTypes.default.func, - getNewspaperStatus: _propTypes.default.func - }, _articleText.default.propTypes, _articleGraph.default.propTypes); - NewsmemoryArticle.defaultProps = { - mode: _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT, - hidden: false - }; -},1771,[3,4,270,6,7,11,13,14,582,16,18,436,566,668,1772,671,1773,1774,1775,1835,1837,1872,1701,1859,438,564,1968,1,179,1985,2004,1711,1816,1967]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.DBStatus = undefined; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var DBStatus = exports.DBStatus = { - DB_DOWNLOADED: 0, - LOW_MID_PDF_DOWNLOADED: 1, - PAPER_BACKGROUND_DOWNLOAD_STARTED: 2, - PAPER_BACKGROUND_DOWNLOADED: 3, - HIGH_RES_DOWNLOAD_STARTED: 4, - HIGH_RES_DOWNLOADED: 5, - GALLERY_DOWNLOAD_STARTED: 12, - GALLERY_DOWNLOADED: 13 - }; - - var NewspaperIssue = exports.default = function () { - function NewspaperIssue() { - var dbRow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - (0, _classCallCheck2.default)(this, NewspaperIssue); - this.dbDowntime = dbRow.db_downtime || 0; - this.dbFilename = _tecnaviaFileUtils.default.getNewsmemoryBaseDirectory() + dbRow.db_filename; - - var _global$getActivePSet = global.getActivePSetup(), - pSetup = _global$getActivePSet.pSetup; - - this.dbPSetup = dbRow.db_pSetup || pSetup; - this.dbPaper = dbRow.db_paper; - this.dbIssue = dbRow.db_issue; - this.dbEdition = dbRow.db_edition; - this.dbStatus = dbRow.db_status; - this.dbSecret = dbRow.db_secret; - this.dbNetwork = dbRow.db_network; - this.editionModel = null; + var Publication = exports.default = function () { + function Publication(params) { + (0, _classCallCheck2.default)(this, Publication); + var pSetup = params.pSetup, + machine = params.machine, + name = params.name, + country = params.st, + iconURL = params.icon, + psetup = params.psetup, + paper = params.paper, + xpaper = params.xpaper, + external = params.external; + this.psetup = pSetup || psetup; + this.machine = machine; + this.name = name || ""; + this.country = country || ""; + this.iconURL = iconURL || ""; + this.paper = paper || ""; + this.xpaper = xpaper || ""; + this.external = external || false; } - return (0, _createClass2.default)(NewspaperIssue, [{ - key: "getFilename", - value: function getFilename() { - return this.dbFilename; - } - }, { - key: "getIssue", - value: function getIssue() { - return this.dbIssue; - } - }, { + return (0, _createClass2.default)(Publication, [{ key: "getPSetup", value: function getPSetup() { - return this.dbPSetup; + return this.psetup; + } + }, { + key: "getMachine", + value: function getMachine() { + return this.machine; + } + }, { + key: "getName", + value: function getName() { + return this.name; + } + }, { + key: "getCountry", + value: function getCountry() { + return this.country; + } + }, { + key: "getIconURL", + value: function getIconURL() { + return this.iconURL; } }, { key: "getPaper", value: function getPaper() { - return this.dbPaper; + return this.paper; } }, { - key: "getEdition", - value: function getEdition() { - return this.dbEdition; + key: "getXPaper", + value: function getXPaper() { + return this.xpaper; } }, { - key: "setStatus", - value: function setStatus(status) { - this.dbStatus = status; + key: "isExternal", + value: function isExternal() { + return this.external; } }, { - key: "getStatus", - value: function getStatus() { - return this.dbStatus; - } - }, { - key: "getDownloadTime", - value: function getDownloadTime() { - return this.dbDowntime; - } - }, { - key: "getSecret", - value: function getSecret() { - return this.dbSecret; - } - }, { - key: "setEditionModel", - value: function setEditionModel(editionModel) { - this.editionModel = editionModel; - } - }, { - key: "getEditionModel", - value: function getEditionModel() { - return this.editionModel; - } - }, { - key: "getPages", - value: function getPages() { - if (this.editionModel) { - return this.editionModel.getPages(); - } - - return []; - } - }, { - key: "updatePage", - value: function updatePage(page) { - this.editionModel.updatePage(page); - } - }, { - key: "isEmpty", - value: function isEmpty() { - if (this.editionModel) { - return this.editionModel.isEmpty(); - } - - return true; - } - }, { - key: "hasOnlyDatabaseDownloaded", - value: function hasOnlyDatabaseDownloaded() { - return this.dbStatus === DBStatus.DB_DOWNLOADED; - } - }, { - key: "hasMainComponentsDownloaded", - value: function hasMainComponentsDownloaded() { - return (this.dbStatus & DBStatus.LOW_MID_PDF_DOWNLOADED) === DBStatus.LOW_MID_PDF_DOWNLOADED; - } - }, { - key: "isHighResolutionDownloadStarted", - value: function isHighResolutionDownloadStarted() { - return this.dbStatus === DBStatus.HIGH_RES_DOWNLOAD_STARTED; - } - }, { - key: "hasHighResolutionDownloaded", - value: function hasHighResolutionDownloaded() { - return (this.dbStatus & DBStatus.HIGH_RES_DOWNLOADED) === DBStatus.HIGH_RES_DOWNLOADED; - } - }, { - key: "setDbNetwork", - value: function setDbNetwork(dbNetwork) { - this.dbNetwork = dbNetwork; - } - }, { - key: "getDbNetwork", - value: function getDbNetwork() { - return this.dbNetwork; - } - }, { - key: "isNewspaperCompleteForMode", - value: function isNewspaperCompleteForMode() { - if (_newsmemoryUtils.default.isModeFull()) { - return this.hasHighResolutionDownloaded(); - } - - return this.hasMainComponentsDownloaded(); - } - }, { - key: "equals", - value: function equals(other) { - return this.dbPSetup === other.dbPSetup && this.dbPaper === other.dbPaper && this.dbIssue === other.dbIssue && this.dbEdition === other.dbEdition; + key: "toString", + value: function toString() { + return encodeURIComponent(this.psetup) + "," + encodeURIComponent(this.machine) + "," + encodeURIComponent(this.name) + "," + encodeURIComponent(this.country) + "," + encodeURIComponent(this.iconURL) + "," + encodeURIComponent(this.paper) + "," + encodeURIComponent(this.xpaper) + "," + this.external; } }]); }(); -},1772,[3,6,7,667,671,566,630]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_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 _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _excluded = ["style", "cssClasses", "progressBackgroundColor", "colors"]; - - 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 Refresh = exports.default = function (_React$Component) { - function Refresh() { - (0, _classCallCheck2.default)(this, Refresh); - return _callSuper(this, Refresh, arguments); - } - - (0, _inherits2.default)(Refresh, _React$Component); - return (0, _createClass2.default)(Refresh, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - cssClasses = _this$props.cssClasses, - progressBackgroundColor = _this$props.progressBackgroundColor, - colors = _this$props.colors, - rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - - var css = _$$_REQUIRE(_dependencyMap[10]).Css.getStyleObjByCssClasses(cssClasses); - - var newStyle = []; - - if (Array.isArray(style)) { - newStyle.push.apply(newStyle, (0, _toConsumableArray2.default)(style)); - } else { - newStyle.push(style); - } - - newStyle.push(css); - - var color = _$$_REQUIRE(_dependencyMap[11]).CssUtils.getAttributeFromStyle("color", newStyle, colors[0], true); - - var backgroundColor = _$$_REQUIRE(_dependencyMap[11]).CssUtils.getAttributeFromStyle("backgroundColor", newStyle, progressBackgroundColor, true); - - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.RefreshControl, Object.assign({ - colors: [color], - tintColor: color, - progressBackgroundColor: backgroundColor, - style: style - }, rest)); - } - }]); - }(_react.default.Component); - - Refresh.defaultProps = { - progressBackgroundColor: "#ffffff", - colors: ["#000000"] - }; -},1773,[3,22,4,6,7,11,13,14,16,18,1709,438,179]); -__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({ - progressContainer: { - height: 6 - }, - progressStyle: { - position: "absolute", - bottom: 0, - width: "100%" - }, - scrollViewText: { - flexGrow: 1 - }, - scrollViewTextContainer: { - flexGrow: 1, - justifyContent: "space-between" - } - }); -},1774,[18]); +},1728,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -216943,356 +207737,2028 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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 _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _articleExtraComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - 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 DEFAULT_HEIGHT = 100; - var FLING_VELOCITY_UP = -100; - var FLING_VELOCITY_DOWN = 800; - var TOP_SPACE = 100; - - function Tab(props) { - var onPress = props.onPress, - expanded = props.expanded; - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-extra-tab-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.TouchableOpacity, { - onPress: onPress, - style: _articleExtraComponent.default.tabParent, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-extra-tab"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_imageIconChooserComponent.default, { - type: _$$_REQUIRE(_dependencyMap[14]).TecnaviaIconType.MATERIAL_ICONS, - name: expanded ? "keyboard-arrow-down" : "keyboard-arrow-up", - style: _articleExtraComponent.default.tabIcon - }) - }) - }) - }); - } - - var ArticleExtra = exports.default = function (_React$Component) { - function ArticleExtra(props) { - var _this; - - (0, _classCallCheck2.default)(this, ArticleExtra); - _this = _callSuper(this, ArticleExtra, [props]); - _this._scrollRef = _react.default.createRef(); - _this._panRef = _react.default.createRef(); - _this._webviewHeight = 0; - _this._animation = undefined; - _this._currentHeight = undefined; - _this._enableSwipeDown = true; - _this.state = { - content: "", - expanded: false - }; - _this.onLayout = _this._onLayout.bind(_this); - _this.onScroll = _this._onScroll.bind(_this); - _this.onPress = _this._onPress.bind(_this); - _this.onMessage = _this._onMessage.bind(_this); - _this.onTabPress = _this._onTabPress.bind(_this); - _this.onPanHandler = _this._onPanHandler.bind(_this); - _this.onWebViewHeightChange = _this._onWebViewHeightChange.bind(_this); - _this._height = _$$_REQUIRE(_dependencyMap[13]).Css.getStyleObjByCssClasses(["newsmemory-article-extra-container"]).height || DEFAULT_HEIGHT; - _this._currentHeight = _this._height; - _this._gradientStyle = _$$_REQUIRE(_dependencyMap[13]).Css.getStyleObjByCssClasses(["newsmemory-article-extra-gradient"]); - _this._gradientColor = _this._gradientStyle.color || "#ffffff"; - _this._gradientColors = _this._gradientStyle.colors; - _this._animatedHeight = new _reactNative.Animated.Value(_this._height); - return _this; + var PublicationsHelper = exports.default = function () { + function PublicationsHelper() { + (0, _classCallCheck2.default)(this, PublicationsHelper); } - (0, _inherits2.default)(ArticleExtra, _React$Component); - return (0, _createClass2.default)(ArticleExtra, [{ - key: "setContent", - value: function setContent(html) { - this.setState({ - content: html - }); - } - }, { - key: "hide", - value: function hide() { - this._toggleVisibility(false); - } - }, { - key: "show", - value: function show() { - this._toggleVisibility(true); - } - }, { - key: "_onMessage", - value: function _onMessage(data) { - var type = data.type, - content = data.content; - var onOpenGallery = this.props.onOpenGallery; - var expanded = this.state.expanded; - - if (type === "OPEN_GALLERY" && typeof onOpenGallery === "function" && expanded) { - onOpenGallery(content); - } - } - }, { - key: "_onPress", - value: function _onPress() { - var onPress = this.props.onPress; - - if (typeof onPress === "function") { - onPress(); - } - } - }, { - key: "_onLayout", - value: function _onLayout(e) { - var onLayout = this.props.onLayout; - - if (typeof onLayout === "function") { - onLayout(e); - } - } - }, { - key: "_onScroll", - value: function _onScroll(_ref) { - var nativeEvent = _ref.nativeEvent; - var contentOffset = nativeEvent.contentOffset; - this._enableSwipeDown = contentOffset.y < 5; - } - }, { - key: "_onPanHandler", - value: function _onPanHandler(event) { - var _event$nativeEvent = event.nativeEvent, - state = _event$nativeEvent.state, - velocityY = _event$nativeEvent.velocityY; - - if (state === _$$_REQUIRE(_dependencyMap[15]).State.ACTIVE) { - if (velocityY < FLING_VELOCITY_UP) { - this._expandCollapseAnimation(true); - } else if (velocityY > FLING_VELOCITY_DOWN && this._enableSwipeDown) { - this._expandCollapseAnimation(false); - } - } - } - }, { - key: "_onWebViewHeightChange", - value: function _onWebViewHeightChange(height) { - this._webviewHeight = height; - } - }, { - key: "_maxHeight", - value: function _maxHeight() { - var maxHeight = this.props.maxHeight; - return Math.min(this._webviewHeight + _articleExtraComponent.TAB_LINE_HEIGHT, maxHeight - TOP_SPACE); - } - }, { - key: "_onTabPress", - value: function _onTabPress() { - var expand = this._currentHeight <= this._height; - - this._updateViewsStates(expand ? this._maxHeight() : this._height, expand); - } - }, { - key: "_expandCollapseAnimation", - value: function _expandCollapseAnimation(expand) { - this._updateViewsStates(expand ? this._maxHeight() : this._height, expand); - } - }, { - key: "_toggleVisibility", - value: function _toggleVisibility(state) { - this._updateViewsStates(state ? this._height : 0, false); - } - }, { - key: "_updateViewsStates", + return (0, _createClass2.default)(PublicationsHelper, null, [{ + key: "getAllItems", value: function () { - var _updateViewsStates2 = (0, _asyncToGenerator2.default)(function* (height, expand) { - if (this._currentHeight !== height) { - if (!expand) { - this._toggleScrollState(expand); - } - - yield this._animate(height); - - this._toggleMinDist(expand); - - if (expand) { - this._toggleScrollState(expand); - - this._triggerWebViewRender(); - } - - this.setState({ - expanded: expand - }); - } + var _getAllItems = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(PublicationsHelper.SP.name); }); - function _updateViewsStates(_x, _x2) { - return _updateViewsStates2.apply(this, arguments); + function getAllItems() { + return _getAllItems.apply(this, arguments); } - return _updateViewsStates; + return getAllItems; }() }, { - key: "_triggerWebViewRender", - value: function _triggerWebViewRender() { - if (_$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isIOS() && this._scrollRef && this._scrollRef.current) { - this._scrollRef.current.scrollTo({ - y: 1 - }); - } - } - }, { - key: "_toggleScrollState", - value: function _toggleScrollState(enableScroll) { - if (this._scrollRef && this._scrollRef.current) { - this._scrollRef.current.setNativeProps({ - scrollEnabled: enableScroll - }); - } - } - }, { - key: "_toggleMinDist", - value: function _toggleMinDist(enableScroll) { - if (this._panRef && this._panRef.current) { - var minDist = enableScroll ? 30 : 0; - - this._panRef.current.setNativeProps({ - minDist: minDist - }); - } - } - }, { - key: "_animate", + key: "getItem", value: function () { - var _animate2 = (0, _asyncToGenerator2.default)(function* (destinationValue) { - var _this2 = this; - - this._currentHeight = destinationValue; - - if (this._animation) { - this._animation.stop(); - - this._animation = undefined; - } - - this._animation = _reactNative.Animated.timing(this._animatedHeight, { - toValue: destinationValue, - duration: 300, - useNativeDriver: false - }); - return new Promise(function (resolve) { - _this2._animation.start(function (_ref2) { - var finished = _ref2.finished; - - if (finished) { - _this2._animation = undefined; - resolve(); - } - }); - }); + var _getItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(PublicationsHelper.SP.name, key); }); - function _animate(_x3) { - return _animate2.apply(this, arguments); + function getItem(_x) { + return _getItem.apply(this, arguments); } - return _animate; + return getItem; }() }, { - key: "render", - value: function render() { - var _this$state = this.state, - content = _this$state.content, - expanded = _this$state.expanded; + key: "setItem", + value: function () { + var _setItem = (0, _asyncToGenerator2.default)(function* (key, value) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(PublicationsHelper.SP.name, key, value); + }); - if (content) { - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-extra-container"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.Animated.View, { - style: [_articleExtraComponent.default.container, { - height: this._animatedHeight - }], - onLayout: this.onLayout, - children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-extra-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { - style: _articleExtraComponent.default.parent, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[15]).PanGestureHandler, { - ref: this._panRef, - onHandlerStateChange: this.onPanHandler, - simultaneousHandlers: this._scrollRef, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { - style: _articleExtraComponent.default.view, - collapsable: false, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { - classes: ["newsmemory-article-extra-webview"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaGestureHandlerScrollview, { - ref: this._scrollRef, - simultaneousHandlers: this._panRef, - style: _articleExtraComponent.default.view, - scrollEnabled: false, - onScroll: this.onScroll, - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[18]).AutoHeightWebView, { - startInLoadingState: _$$_REQUIRE(_dependencyMap[19]).LoadingStatePosition.none, - source: { - html: content - }, - htmlContentId: "content", - onHeightChange: this.onWebViewHeightChange, - onMessage: this.onMessage - }) - }) - }) - }) - }) - }) - }), (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Tab, { - onPress: this.onTabPress, - expanded: expanded - })] - }) - }); + function setItem(_x2, _x3) { + return _setItem.apply(this, arguments); } - return null; - } + return setItem; + }() + }, { + key: "removeItem", + value: function () { + var _removeItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clear(PublicationsHelper.SP.name, key); + }); + + function removeItem(_x4) { + return _removeItem.apply(this, arguments); + } + + return removeItem; + }() }]); - }(_react.default.Component); + }(); - ArticleExtra.propsTypes = { - onPress: _propTypes.default.func, - onLayout: _propTypes.default.func, - onOpenGallery: _propTypes.default.func, - maxHeight: _propTypes.default.number.isRequired + PublicationsHelper.SP = { + name: "publications", + keys: { + current: "currentPublication" + } }; -},1775,[3,270,6,7,11,13,14,582,16,18,1776,1815,179,1709,1777,1,438,1816,1817,1828]); +},1729,[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.AnimatedImageIconChooser = undefined; - exports.getBase64 = getBase64; + exports.getAccessibilityItemsIndexSecondLevel = exports.getAccessibilityItemsIndexFirstLevel = exports.getAccessibilityItemsArticle = exports.ACTIONS_TYPE = exports.ACTIONS = undefined; + + var _AccessibilityListItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var ACTIONS_TYPE = exports.ACTIONS_TYPE = { + layout: "layout", + link: "link", + toggle: "toggle" + }; + var ACTIONS = exports.ACTIONS = { + goBack: { + key: "goBack", + icon: _$$_REQUIRE(_dependencyMap[2]), + defaultLabelKey: "btn_go_back" + }, + goBackArticle: { + key: "goBack", + icon: _$$_REQUIRE(_dependencyMap[2]), + defaultLabelKey: "btn_go_back_article" + }, + goBackSection: { + key: "goBack", + icon: _$$_REQUIRE(_dependencyMap[2]), + defaultLabelKey: "btn_go_back_section" + }, + goNext: { + key: "goNext", + icon: _$$_REQUIRE(_dependencyMap[3]), + defaultLabelKey: "btn_go_next" + }, + goNextArticle: { + key: "goNext", + icon: _$$_REQUIRE(_dependencyMap[3]), + defaultLabelKey: "btn_go_next_article" + }, + goNextSection: { + key: "goNext", + icon: _$$_REQUIRE(_dependencyMap[3]), + defaultLabelKey: "btn_go_next_section" + }, + goUp: { + key: "goUp", + icon: _$$_REQUIRE(_dependencyMap[4]), + defaultLabelKey: "btn_go_up" + }, + goUpChooseIssue: { + key: "goUp", + icon: _$$_REQUIRE(_dependencyMap[4]), + defaultLabelKey: "btn_go_up_choose_issue" + }, + goUpGeneralIndex: { + key: "goUp", + icon: _$$_REQUIRE(_dependencyMap[4]), + defaultLabelKey: "btn_go_up_general_index" + }, + goUpSection: { + key: "goUp", + icon: _$$_REQUIRE(_dependencyMap[4]), + defaultLabelKey: "btn_go_up_section" + }, + openStore: { + type: ACTIONS_TYPE.link, + key: "openStore", + icon: _$$_REQUIRE(_dependencyMap[5]), + defaultLabelKey: "btn_store" + }, + openLink: { + type: ACTIONS_TYPE.link, + key: "openLink", + icon: _$$_REQUIRE(_dependencyMap[6]), + defaultLabelKey: "btn_link" + }, + openAktuell: { + type: ACTIONS_TYPE.link, + key: "openAktuell", + icon: _$$_REQUIRE(_dependencyMap[6]), + defaultLabelKey: "btn_link" + }, + openMore: { + type: ACTIONS_TYPE.link, + key: "openMore", + icon: _$$_REQUIRE(_dependencyMap[7]), + defaultLabelKey: "btn_more" + }, + openLiveNews: { + type: ACTIONS_TYPE.link, + key: "openLiveNews", + icon: _$$_REQUIRE(_dependencyMap[8]), + pSetupRelabel: "feedButton", + defaultLabelKey: "btn_feed" + }, + openThumbnail: { + type: ACTIONS_TYPE.layout, + key: "openThumbnail", + icon: _$$_REQUIRE(_dependencyMap[9]), + pSetupRelabel: "thumbnailButton", + defaultLabelKey: "btn_thumbnail" + }, + openBrowse: { + type: ACTIONS_TYPE.layout, + key: "openBrowse", + icon: _$$_REQUIRE(_dependencyMap[10]), + pSetupRelabel: "gBookButton", + defaultLabelKey: "btn_g_book" + }, + openRead: { + type: ACTIONS_TYPE.layout, + key: "openRead", + icon: _$$_REQUIRE(_dependencyMap[11]), + pSetupRelabel: "readButton", + defaultLabelKey: "btn_read" + }, + openSwipe: { + type: ACTIONS_TYPE.layout, + key: "openSwipe", + icon: _$$_REQUIRE(_dependencyMap[10]), + pSetupRelabel: "swipeButton", + defaultLabelKey: "btn_swipe" + }, + openIndex: { + type: ACTIONS_TYPE.layout, + key: "openIndex", + icon: _$$_REQUIRE(_dependencyMap[12]), + pSetupRelabel: "indexButton", + defaultLabelKey: "btn_index" + }, + openArticle: { + type: ACTIONS_TYPE.layout, + key: "openArticle", + icon: _$$_REQUIRE(_dependencyMap[12]) + }, + openAccessibility: { + type: ACTIONS_TYPE.layout, + key: "openAccessibility", + icon: _$$_REQUIRE(_dependencyMap[13]), + pSetupRelabel: "accessibilityButton", + defaultLabelKey: "btn_accessibility" + }, + openSearch: { + type: ACTIONS_TYPE.layout, + key: "openSearch", + icon: _$$_REQUIRE(_dependencyMap[14]), + pSetupRelabel: "searchButton", + defaultLabelKey: "btn_search" + }, + openSpecialSections: { + type: ACTIONS_TYPE.link, + key: "openSpecialSections", + icon: _$$_REQUIRE(_dependencyMap[15]), + pSetupRelabel: "specialSectionButton", + defaultLabelKey: "btn_special_section" + }, + openOptionPageEditions: { + type: ACTIONS_TYPE.link, + key: "openOptionPageEditions", + icon: _$$_REQUIRE(_dependencyMap[16]), + pSetupRelabel: "editionsButton", + defaultLabelKey: "btn_editions" + }, + openOptionPageContact: { + type: ACTIONS_TYPE.link, + key: "openOptionPageContact", + icon: _$$_REQUIRE(_dependencyMap[17]), + defaultLabelKey: "btn_contact" + }, + openOptionPageLogin: { + type: ACTIONS_TYPE.link, + key: "openOptionPageLogin", + icon: _$$_REQUIRE(_dependencyMap[18]), + defaultLabelKey: "btn_account" + }, + openOptionPageSettings: { + type: ACTIONS_TYPE.link, + key: "openOptionPageSettings", + icon: _$$_REQUIRE(_dependencyMap[19]), + pSetupRelabel: "settingsButton", + defaultLabelKey: "btn_settings" + }, + openOptionPageHelp: { + type: ACTIONS_TYPE.link, + key: "openOptionPageHelp", + icon: _$$_REQUIRE(_dependencyMap[20]), + pSetupRelabel: "helpButton", + defaultLabelKey: "btn_help" + }, + openOptionPagePublications: { + type: ACTIONS_TYPE.link, + key: "openOptionPagePublications", + icon: _$$_REQUIRE(_dependencyMap[5]), + pSetupRelabel: "storeButton", + defaultLabelKey: "btn_publications" + }, + openOptionPageAccessibility: { + type: ACTIONS_TYPE.link, + key: "openOptionPageAccessibility", + icon: _$$_REQUIRE(_dependencyMap[13]), + pSetupRelabel: "accessibilityButton", + defaultLabelKey: "btn_accessibility" + }, + openOptionPageArchive: { + type: ACTIONS_TYPE.link, + key: "openOptionPageArchive", + icon: _$$_REQUIRE(_dependencyMap[21]), + pSetupRelabel: "archiveButton", + defaultLabelKey: "btn_archive" + }, + openCarMode: { + type: ACTIONS_TYPE.layout, + key: "openCarMode", + icon: _$$_REQUIRE(_dependencyMap[22]), + pSetupRelabel: "carModeButton", + defaultLabelKey: "btn_car_mode" + }, + openBack: { + type: ACTIONS_TYPE.layout, + key: "openBack", + icon: _$$_REQUIRE(_dependencyMap[2]), + pSetupRelabel: "backButton", + defaultLabelKey: "btn_go_back" + }, + downloadEdition: { + type: ACTIONS_TYPE.toggle, + key: "downloadEdition", + icon: _$$_REQUIRE(_dependencyMap[23]), + pSetupRelabel: "downloadButton", + defaultLabelKey: "btn_download" + }, + fitPageToggle: { + type: ACTIONS_TYPE.toggle, + key: "fitPageToggle", + icon: _$$_REQUIRE(_dependencyMap[24]), + activeIcon: _$$_REQUIRE(_dependencyMap[25]), + pSetupRelabel: "fitPageButton", + defaultLabelKey: "btn_fit_page" + }, + openIndexAlt: { + type: ACTIONS_TYPE.link, + key: "openIndexAlt", + icon: _$$_REQUIRE(_dependencyMap[26]) + }, + previousArticle: { + type: ACTIONS_TYPE.link, + key: "previousArticle", + icon: _$$_REQUIRE(_dependencyMap[27]) + }, + nextArticle: { + type: ACTIONS_TYPE.link, + key: "nextArticle", + icon: _$$_REQUIRE(_dependencyMap[28]) + }, + shareAlt: { + type: ACTIONS_TYPE.link, + key: "shareAlt", + icon: _$$_REQUIRE(_dependencyMap[29]) + }, + closeCarMode: { + key: "closeCarMode", + icon: _$$_REQUIRE(_dependencyMap[30]), + defaultLabelKey: "btn_close_car_mode" + }, + closeAccessibility: { + key: "closeAccessibility", + icon: _$$_REQUIRE(_dependencyMap[31]), + defaultLabelKey: "btn_close_accessibility" + }, + closeEditions: { + key: "closeAccessibility", + icon: _$$_REQUIRE(_dependencyMap[32]), + defaultLabelKey: "btn_close_editions" + }, + closeArticle: { + key: "closeArticle", + icon: _$$_REQUIRE(_dependencyMap[32]) + }, + search: { + key: "search", + icon: _$$_REQUIRE(_dependencyMap[33]) + }, + clearSearch: { + key: "clearSearch", + icon: _$$_REQUIRE(_dependencyMap[34]) + }, + share: { + key: "share", + icon: _$$_REQUIRE(_dependencyMap[35]) + }, + shareFacebook: { + key: "shareFacebook", + icon: _$$_REQUIRE(_dependencyMap[36]) + }, + shareTwitter: { + key: "shareTwitter", + icon: _$$_REQUIRE(_dependencyMap[37]) + }, + shareReddit: { + key: "shareReddit", + icon: _$$_REQUIRE(_dependencyMap[38]) + }, + shareEmail: { + key: "shareEmail", + icon: _$$_REQUIRE(_dependencyMap[39]) + }, + toggleFullScreen: { + key: "toggleFullScreen", + icon: _$$_REQUIRE(_dependencyMap[40]), + activeIcon: _$$_REQUIRE(_dependencyMap[41]) + }, + toggleTextToSpeech: { + key: "toggleTextToSpeech", + icon: _$$_REQUIRE(_dependencyMap[42]), + activeIcon: _$$_REQUIRE(_dependencyMap[43]), + defaultLabelKey: "btn_tts" + }, + toggleGraphic: { + key: "toggleGraphic", + icon: _$$_REQUIRE(_dependencyMap[44]), + activeIcon: _$$_REQUIRE(_dependencyMap[45]) + }, + toggleFont: { + key: "toggleFont", + icon: _$$_REQUIRE(_dependencyMap[46]) + }, + fontDecrease: { + key: "fontDecrease", + icon: _$$_REQUIRE(_dependencyMap[47]) + }, + fontIncrease: { + key: "fontIncrease", + icon: _$$_REQUIRE(_dependencyMap[46]) + }, + toggleGraphZoom: { + key: "toggleGraphZoom", + icon: _$$_REQUIRE(_dependencyMap[48]) + }, + graphDecrease: { + key: "graphDecrease", + icon: _$$_REQUIRE(_dependencyMap[49]) + }, + graphIncrease: { + key: "graphIncrease", + icon: _$$_REQUIRE(_dependencyMap[48]) + }, + graphZoomUnfit: { + key: "graphZoomUnfit", + icon: _$$_REQUIRE(_dependencyMap[50]) + }, + print: { + key: "print", + icon: _$$_REQUIRE(_dependencyMap[51]) + }, + showWith: { + key: "showWith" + }, + translate: { + key: "translate", + icon: _$$_REQUIRE(_dependencyMap[52]), + arIcon: _$$_REQUIRE(_dependencyMap[53]), + cnIcon: _$$_REQUIRE(_dependencyMap[54]), + bsIcon: _$$_REQUIRE(_dependencyMap[55]), + daIcon: _$$_REQUIRE(_dependencyMap[56]), + deIcon: _$$_REQUIRE(_dependencyMap[57]), + elIcon: _$$_REQUIRE(_dependencyMap[58]), + enIcon: _$$_REQUIRE(_dependencyMap[59]), + esIcon: _$$_REQUIRE(_dependencyMap[60]), + frIcon: _$$_REQUIRE(_dependencyMap[61]), + hrIcon: _$$_REQUIRE(_dependencyMap[62]), + itIcon: _$$_REQUIRE(_dependencyMap[63]), + jaIcon: _$$_REQUIRE(_dependencyMap[64]), + koIcon: _$$_REQUIRE(_dependencyMap[65]), + msIcon: _$$_REQUIRE(_dependencyMap[66]), + noIcon: _$$_REQUIRE(_dependencyMap[67]), + nlIcon: _$$_REQUIRE(_dependencyMap[68]), + ptIcon: _$$_REQUIRE(_dependencyMap[69]), + ruIcon: _$$_REQUIRE(_dependencyMap[70]), + slIcon: _$$_REQUIRE(_dependencyMap[71]), + sqIcon: _$$_REQUIRE(_dependencyMap[72]), + srIcon: _$$_REQUIRE(_dependencyMap[73]), + svIcon: _$$_REQUIRE(_dependencyMap[74]), + usIcon: _$$_REQUIRE(_dependencyMap[75]), + noneIcon: "none" + }, + warning: { + key: "warning", + icon: _$$_REQUIRE(_dependencyMap[76]) + }, + toggleArticleExtra: { + key: "toggleArticleExtra", + icon: _$$_REQUIRE(_dependencyMap[77]), + activeIcon: _$$_REQUIRE(_dependencyMap[78]) + } + }; + + var getAccessibilityItemsIndexFirstLevel = exports.getAccessibilityItemsIndexFirstLevel = function getAccessibilityItemsIndexFirstLevel() { + var addRss = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var items = []; + + if (!_$$_REQUIRE(_dependencyMap[79]).PlatformUtils.isSystemAccessibilityEnabled()) { + items.push(new _AccessibilityListItem.default(ACTIONS.closeAccessibility)); + } + + if (addRss) { + items.push(new _AccessibilityListItem.default(ACTIONS.openLiveNews)); + } + + items.push(new _AccessibilityListItem.default(ACTIONS.goUpChooseIssue)); + return items; + }; + + var getAccessibilityItemsIndexSecondLevel = exports.getAccessibilityItemsIndexSecondLevel = function getAccessibilityItemsIndexSecondLevel(index, length) { + var sectionsName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + var items = []; + items.push(new _AccessibilityListItem.default(ACTIONS.goUpGeneralIndex)); + + if (length > 1) { + if (index > 0) { + items.push(new _AccessibilityListItem.default(ACTIONS.goBackSection, { + section: sectionsName[index - 1] + })); + } + + if (index < length - 1) { + items.push(new _AccessibilityListItem.default(ACTIONS.goNextSection, { + section: sectionsName[index + 1] + })); + } + } + + return items; + }; + + var getAccessibilityItemsArticle = exports.getAccessibilityItemsArticle = function getAccessibilityItemsArticle(index, length) { + var section = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; + var items = []; + items.push(new _AccessibilityListItem.default(ACTIONS.goUpSection, { + section: section + })); + + if (length > 1) { + var articleIndex = index + 1; + + if (index > 0) { + items.push(new _AccessibilityListItem.default(ACTIONS.goBackArticle, { + index: articleIndex - 1 + })); + } + + if (index < length - 1) { + items.push(new _AccessibilityListItem.default(ACTIONS.goNextArticle, { + index: articleIndex + 1 + })); + } + } + + return items; + }; +},1730,[3,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,1805,1806,1807,1808,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 AccessibilityListItem = exports.default = function () { + function AccessibilityListItem() { + var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + (0, _classCallCheck2.default)(this, AccessibilityListItem); + this.key = action.key; + this.text = global.strings(action.defaultLabelKey, params); + } + + return (0, _createClass2.default)(AccessibilityListItem, [{ + key: "getKey", + value: function getKey() { + return this.key; + } + }, { + key: "getText", + value: function getText() { + return this.text; + } + }]); + }(); +},1731,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "45c8580e1792fcb822cf7dda10017ccf", + "name": "ic-circle-back", + "type": "png" + }); +},1732,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "613863d0df368e626999ad9f4158e87f", + "name": "ic-circle-next", + "type": "png" + }); +},1733,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "6978b0be11e512eda129ef180bb63c88", + "name": "ic-circle-up", + "type": "png" + }); +},1734,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "f9b30b50eae30abdd4c6909a78efb652", + "name": "ic-store", + "type": "png" + }); +},1735,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "e4168ddb673c3e55284ff279c28cc4db", + "name": "ic-language", + "type": "png" + }); +},1736,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "034bfe8a3f4123c6f8b4b8da12530d78", + "name": "ic-more", + "type": "png" + }); +},1737,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "29caf3d3e097907a14f487485874419d", + "name": "ic-rss", + "type": "png" + }); +},1738,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "aeae99506fadbc9056401970e0f237ba", + "name": "ic-thumbnail", + "type": "png" + }); +},1739,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "8cad01104cc5eae200588591d3cae11d", + "name": "ic-browse", + "type": "png" + }); +},1740,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "acf90d30dd27987ed2620ef33d15a6e5", + "name": "ic-read", + "type": "png" + }); +},1741,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "7643029cd05f6a836321b3981632b035", + "name": "ic-index", + "type": "png" + }); +},1742,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 502, + "height": 512, + "scales": [1], + "hash": "1e83b03c9895293c9ff55f4073dcc7ff", + "name": "ic-accessibility", + "type": "png" + }); +},1743,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "bced865f6219398b7191d2daa3468779", + "name": "ic-search", + "type": "png" + }); +},1744,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "681d0a13bf8456b5476ead4d9263cffe", + "name": "ic-supplements", + "type": "png" + }); +},1745,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "ab055d81bbc8c4018146610f46725762", + "name": "ic-calendar", + "type": "png" + }); +},1746,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "02d26871539edb78786b3e6da157ea44", + "name": "ic-contact", + "type": "png" + }); +},1747,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "ac631eb39a10015e40c478e24e036846", + "name": "ic-login", + "type": "png" + }); +},1748,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "9dc95ce92cd1c6f49a3a3f226fc6f7eb", + "name": "ic-settings", + "type": "png" + }); +},1749,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "e0481a118606dead3a295fef981d7edc", + "name": "ic-help", + "type": "png" + }); +},1750,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 34, + "height": 30, + "scales": [1], + "hash": "2a96f9c30f6e03150a95ddd31081cd6f", + "name": "ic-archive", + "type": "png" + }); +},1751,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 512, + "height": 512, + "scales": [1], + "hash": "848b0b22c1b52300f93704a7742a4013", + "name": "ic-car-mode", + "type": "png" + }); +},1752,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "14b736755a49a5950221b3e9096dd851", + "name": "ic-download", + "type": "png" + }); +},1753,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "16efbb191e582c375ffe1769776fa961", + "name": "ic-fit", + "type": "png" + }); +},1754,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "a8f8040cf758c03728c1ebbd16b07bb9", + "name": "ic-unfit", + "type": "png" + }); +},1755,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "47f5b6375873018bc17335a0c076ec8c", + "name": "ic-up", + "type": "png" + }); +},1756,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "2e5760e962fac769536c2c6c65ee9395", + "name": "ic-prev", + "type": "png" + }); +},1757,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "6bf86efa5c3303d8cdf086b8ed847e33", + "name": "ic-next", + "type": "png" + }); +},1758,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "47966434c6e29673f6fc5d3535cae4cb", + "name": "ic-share", + "type": "png" + }); +},1759,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "4e71926e0879cfb848b561bd7b5b4213", + "name": "ic-circle-car-mode", + "type": "png" + }); +},1760,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "88fad4ca39a216c47441048e9d5e62df", + "name": "ic-circle-accessibility", + "type": "png" + }); +},1761,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "bf9fb2944d5f0bd3874ee6bd1a9eceb3", + "name": "ic-circle-close", + "type": "png" + }); +},1762,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "5e45a9c50db3d62397ad8551cf95e3a9", + "name": "ic-circle-search", + "type": "png" + }); +},1763,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "15e2b1fe93a891795c780a58815f9c82", + "name": "ic-circle-clear-search", + "type": "png" + }); +},1764,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "6ba5a41885a677cd43e072b06055463d", + "name": "ic-circle-share", + "type": "png" + }); +},1765,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "8ce2f5e609fe1fb5e24943a8860dc6f7", + "name": "ic-share-facebook", + "type": "png" + }); +},1766,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "e78c910aa27719184422141df8d41d61", + "name": "ic-share-twitter", + "type": "png" + }); +},1767,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "fad59489972a85f52ebafd4dfbd49b49", + "name": "ic-share-reddit", + "type": "png" + }); +},1768,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "76f3b241bb2759700b4ea1cc33ab3ca8", + "name": "ic-share-email", + "type": "png" + }); +},1769,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "db503f8d7a4f0d48e1c64f117cb81458", + "name": "ic-circle-expand", + "type": "png" + }); +},1770,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "f2a8eb6e4f68a7669d4b9c6a756f078b", + "name": "ic-circle-collapse", + "type": "png" + }); +},1771,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "a1acc1f8030e4476c081efb2bb5ea04c", + "name": "ic-circle-tts-on", + "type": "png" + }); +},1772,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "1a6baa693214e6694432380827bb4065", + "name": "ic-circle-tts-off", + "type": "png" + }); +},1773,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "add8a361710899a68d8ab63d1a09fffb", + "name": "ic-circle-toggle-graphic", + "type": "png" + }); +},1774,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "306ed6f673ae6592625c635761f1d3f6", + "name": "ic-circle-toggle-text", + "type": "png" + }); +},1775,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "01b7cd24c6e74f8481d564ca1f5afd05", + "name": "ic-circle-font-increase", + "type": "png" + }); +},1776,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "581aca734d03b65f68a70b60eaefc7c7", + "name": "ic-circle-font-decrease", + "type": "png" + }); +},1777,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "5e5863653a1d1427c5143285b3f82259", + "name": "ic-circle-graph-increase", + "type": "png" + }); +},1778,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "80f60866aae6b2df4bb622316e44cd2c", + "name": "ic-circle-graph-decrease", + "type": "png" + }); +},1779,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "45c1055f3a678eb6a967dd850707314c", + "name": "ic-circle-zoom-fit-out", + "type": "png" + }); +},1780,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "9b2380c5c569ec06999a8643f295853d", + "name": "ic-circle-print", + "type": "png" + }); +},1781,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "7b48fb4c836276960783eda6bf78c0f3", + "name": "ic-circle-translate", + "type": "png" + }); +},1782,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "d5d0830e9a062de4ccdf2f1393852cab", + "name": "ar", + "type": "png" + }); +},1783,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "1253e52865d2aa74c5b21a5e57bc1e66", + "name": "cn", + "type": "png" + }); +},1784,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "b92186dfe15c358f93dc14c629854187", + "name": "bs", + "type": "png" + }); +},1785,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "7c3229b3383ad9f95813dbdadff3ac0d", + "name": "da", + "type": "png" + }); +},1786,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "ada9a0ecd8ea2500afb9ec99296673a5", + "name": "de", + "type": "png" + }); +},1787,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "f93c7d09e4b862378133a326cea5c908", + "name": "el", + "type": "png" + }); +},1788,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "0faaa9e600183cc49e653b809e6f806e", + "name": "en", + "type": "png" + }); +},1789,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "61954655d226abf50a2a71ad61651588", + "name": "es", + "type": "png" + }); +},1790,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "3113565b0bca4098b5677ca9395a10f6", + "name": "fr", + "type": "png" + }); +},1791,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "ea6b5a67335b99aa29d5a0b4ae6dbcb4", + "name": "hr", + "type": "png" + }); +},1792,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "f9f1de0d53ccd181caa26ecc0130ba54", + "name": "it", + "type": "png" + }); +},1793,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "db5efce5019a6f53a6769984d759b52a", + "name": "ja", + "type": "png" + }); +},1794,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "8db6a19b2f2b31aef1e74d4f73bc69ac", + "name": "ko", + "type": "png" + }); +},1795,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "8426ee7c20c8b5aba746377cd1fa863a", + "name": "ms", + "type": "png" + }); +},1796,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "4865405f3786a8c63a913b4d8a3af170", + "name": "no", + "type": "png" + }); +},1797,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "6bd61a4a0d90eb99aa87104c22165cae", + "name": "nl", + "type": "png" + }); +},1798,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "5595f3682257331a45359bb6c76fe680", + "name": "pt", + "type": "png" + }); +},1799,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "ce61769dbcf9ef7c9bbff78a93a26c88", + "name": "ru", + "type": "png" + }); +},1800,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "c9968af1620d6c269b4d542a0396f139", + "name": "sl", + "type": "png" + }); +},1801,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "460a4767e02ba17a08280763e56c3836", + "name": "sq", + "type": "png" + }); +},1802,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "4964db473e6c02c2e53d7afefdf2972c", + "name": "sr", + "type": "png" + }); +},1803,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "eb24ee9da62bbafc134a3932a6bbb6b3", + "name": "sv", + "type": "png" + }); +},1804,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 32, + "height": 32, + "scales": [1], + "hash": "2ecd1f589181ca5b19b88932049c540b", + "name": "us", + "type": "png" + }); +},1805,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 96, + "scales": [1], + "hash": "8365dae40f9b069c1b8cdac98fb53569", + "name": "ic-warning", + "type": "png" + }); +},1806,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "42b514a8bdd098a614d2a7507a94cf1c", + "name": "ic-circle-eye-off", + "type": "png" + }); +},1807,[1260]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", + "width": 128, + "height": 128, + "scales": [1], + "hash": "b4d434e56b55aea85c3192022f46b285", + "name": "ic-circle-eye", + "type": "png" + }); +},1808,[1260]); +__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { + module.exports = { + "main": { + "enableHighlighting": "true", + "backgroundColor": "#000000", + "textColor": "#FFFFFF", + "buttonHighlightColor": "#4DB9E3", + "defaultButtonHighlightColor": "#FFFFFF", + "buttons": [ + { + "text": "Read", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openRead" + }, + { + "text": "Swipe", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openSwipe" + }, + { + "text": "Browse", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openBrowse" + }, + { + "text": "Thumbs", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openThumbnail" + }, + { + "text": "Index", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openIndex" + }, + { + "text": "Editions", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openOptionPageEditions" + }, + { + "text": "News", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openLiveNews" + }, + { + "text": "", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "downloadEdition" + }, + { + "text": "Specials", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openSpecialSections" + }, + { + "text": "More", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openMore" + }, + { + "text": "Fit", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "fitPageToggle" + } + ], + "more": [ + { + "id": "1", + "text": "Search", + "forceText": "0", + "iconUrlOff": "", + "iconLibrary": "", + "function": "openSearch" + }, + { + "id": "2", + "text": "Publications", + "forceText": "0", + "function": "openOptionPagePublications" + }, + { + "id": "3", + "text": "Login", + "iconUrlOff": "", + "iconLibrary": "", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "4", + "text": "Help", + "iconUrlOff": "", + "iconLibrary": "", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "5", + "text": "Contact", + "iconUrlOff": "", + "iconLibrary": "", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "6", + "text": "Settings", + "iconUrlOff": "", + "iconLibrary": "", + "forceText": "0", + "function": "openOptionPageSettings" + } + ] + }, + "navigation": { + "backgroundColor": "transparent", + "textColor": "#000000", + "back": { + "buttons": [ + { + "text": "BackPage", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "backPage" + }, + { + "text": "BackSection", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "backSection" + } + ] + }, + "forward": { + "buttons": [ + { + "text": "ForwardPage", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "forwardPage" + }, + { + "text": "ForwardSection", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "forwardSection" + } + ] + } + }, + "index": { + "firstLevel": { + "header": { + "url": "", + "function": "openIndex", + "padding": "0,0,0,0", + "alignment": "left" + }, + "hr": { + "top": { + "color": "#000000", + "height": "1" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "color": "#000000", + "buttons": [] + }, + "right": { + "buttons": [ + { + "text": "GoUp", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "goUp" + }, + { + "text": "FullScreenToggle", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleFullScreen" + }, + { + "text": "Close", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "closeArticle" + } + ] + } + }, + "secondLevel": { + "header": { + "url": "", + "function": "openIndex", + "padding": "0,0,0,0", + "alignment": "left" + }, + "hr": { + "top": { + "color": "#000000", + "height": "1" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "color": "#000000", + "buttons": [] + }, + "right": { + "buttons": [ + { + "text": "GoBack", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "goBack" + }, + { + "text": "GoUp", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "goUp" + }, + { + "text": "GoNext", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "goNext" + }, + { + "text": "FullScreenToggle", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleFullScreen" + }, + { + "text": "Close", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "closeArticle" + } + ] + } + } + }, + "article": { + "header": { + "url": "", + "function": "openIndex", + "padding": "0,0,0,0", + "alignment": "left" + }, + "hr": { + "top": { + "color": "#000000", + "height": "1" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "color": "#000000", + "hoverText": "Example hover text", + "size": "20", + "padding": "20,0,0,0", + "alignment": "left", + "buttons": [ + { + "text": "Print", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "print" + }, + { + "text": "Share", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "share" + } + ] + }, + "right": { + "buttons": [ + { + "text": "Search", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "search" + }, + { + "text": "Clear search", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "clearSearch" + }, + { + "text": "FontDecrease", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "fontDecrease" + }, + { + "text": "FontIncrease", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "fontIncrease" + }, + { + "text": "ToggleArticleExtra", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleArticleExtra" + }, + { + "text": "GraphDecrease", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphDecrease" + }, + { + "text": "GraphIncrease", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphIncrease" + }, + { + "text": "GraphZoomUnfit", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphZoomUnfit" + }, + { + "text": "TextToSpeech", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleTextToSpeech" + }, + { + "text": "FullScreenToggle", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleFullScreen" + }, + { + "text": "Graphic", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleGraphic" + }, + { + "text": "Close", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "closeArticle" + } + ] + }, + "footer": { + "buttons": null, + "more": [ + { + "id": "1", + "text": "Search", + "forceText": "0", + "function": "openSearch" + }, + { + "id": "2", + "text": "Login", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "3", + "text": "Help", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "4", + "text": "Contact", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "5", + "text": "Settings", + "forceText": "0", + "function": "openOptionPageSettings" + } + ] + } + } +} +; +},1809,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Icon = undefined; var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -217304,148 +209770,141 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - var _imageComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - var _excluded = ["style", "imageStyle", "iconStyle", "type", "name", "source", "size", "tintColor"], - _excluded2 = ["Component", "getBase64Function"], - _excluded3 = ["Component", "getBase64Function"]; - - 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; })(); } - function mapPropsOnComponent(props) { - var style = props.style, - imageStyle = props.imageStyle, - iconStyle = props.iconStyle, - type = props.type, - name = props.name, - source = props.source, - size = props.size, - tintColor = props.tintColor, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); + var Icon = exports.Icon = function (_BaseModel) { + function Icon(json, key) { + var _this; - var library = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("library", style, type); + (0, _classCallCheck2.default)(this, Icon); + _this = _callSuper(this, Icon, [json]); + _this.key = key; + _this.forceText = _this.getValueByKey("forceText", "0") === "1"; - var srcFromStyle = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("src", style); + var splitted = _this.getValueByKey("function", "").split(":"); - var src = _$$_REQUIRE(_dependencyMap[12]).JSUtils.isNull(srcFromStyle) || srcFromStyle === "inherit" ? name : srcFromStyle; - var newProps = Object.assign({ - Component: null - }, rest); - - var mergedIconStyle = _reactNative.StyleSheet.flatten([iconStyle, style]); - - if (Object.values(_iconComponent.TecnaviaIconType).includes(library) && src && src.length) { - newProps.Component = _iconComponent.default; - newProps.getBase64Function = _iconComponent.iconBase64; - newProps.style = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle(mergedIconStyle, ["tintColor", "src"]); - newProps.size = size; - newProps.name = src; - newProps.type = library; - } else { - var newSource = source; - - if (typeof srcFromStyle === "string" && srcFromStyle.indexOf("base64") !== -1) { - newSource = { - uri: srcFromStyle - }; - } - - var mergedImageStyle = _reactNative.StyleSheet.flatten([imageStyle, style]); - - var width = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("width", mergedImageStyle); - - var height = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("height", mergedImageStyle); - - var fontSize = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("fontSize", mergedIconStyle); - - var newStyle = {}; - - if (width === undefined && height === undefined) { - if (fontSize !== undefined) { - newStyle.width = fontSize; - newStyle.height = fontSize; - } - } else if (width === undefined) { - newStyle.width = height; - } else if (height === undefined) { - newStyle.height = width; - } - - newProps.Component = _imageComponent.default; - newProps.getBase64Function = _imageComponent.imageBase64; - newProps.style = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle([mergedImageStyle, newStyle], ["color", "src", "fontSize"]); - newProps.source = newSource; - newProps.tintColor = tintColor; + _this.action = splitted[0]; + _this.actionValue = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(splitted[1]); + _this.id = parseInt(_this.getValueByKey("id", "-1"), 10); + _this.library = _this.getValueByKey("iconLibrary", ""); + _this.icon = _this.setIcon(_this.getValueByKey("iconUrlOff")); + _this.activeIcon = _this.setIcon(_this.getValueByKey("iconUrlOn"), true); + _this.text = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeHTML(_this.getValueByKey("text", "")); + _this.loggedInText = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeHTML(_this.getValueByKey("loggedInText", "")); + _this.innerTextSupported = _this.getValueByKey("innerTextSupported", _this.customIcon ? "0" : "1") === "1"; + return _this; } - return newProps; - } + (0, _inherits2.default)(Icon, _BaseModel); + return (0, _createClass2.default)(Icon, [{ + key: "setIcon", + value: function setIcon(jsonValue) { + var activeIcon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - function getBase64(props) { - var _mapPropsOnComponent = mapPropsOnComponent(props), - Component = _mapPropsOnComponent.Component, - getBase64Function = _mapPropsOnComponent.getBase64Function, - rest = (0, _objectWithoutProperties2.default)(_mapPropsOnComponent, _excluded2); + var css = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["newsmemory-" + this.key + "-icon", "newsmemory-" + this.key + "-icon-" + this.action]); - if (getBase64Function) { - return getBase64Function(rest); - } + if (css) { + if (css.src === "default") { + jsonValue = ""; + this.library = ""; + } else { + this.library = css.library || this.library; - return undefined; - } - - var ImageIconChooser = function (_React$Component) { - function ImageIconChooser() { - (0, _classCallCheck2.default)(this, ImageIconChooser); - return _callSuper(this, ImageIconChooser, arguments); - } - - (0, _inherits2.default)(ImageIconChooser, _React$Component); - return (0, _createClass2.default)(ImageIconChooser, [{ - key: "render", - value: function render() { - var _mapPropsOnComponent2 = mapPropsOnComponent(this.props), - Component = _mapPropsOnComponent2.Component, - getBase64Function = _mapPropsOnComponent2.getBase64Function, - rest = (0, _objectWithoutProperties2.default)(_mapPropsOnComponent2, _excluded3); - - if (Component) { - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(Component, Object.assign({}, rest)); + if (css.src !== "inherit") { + jsonValue = css.src && css.src.length ? css.src : jsonValue; + } + } } - return Component; + if (this.isLibraryIcon()) { + this.customIcon = true; + return jsonValue || ""; + } + + if (jsonValue && jsonValue.length) { + this.customIcon = true; + return { + uri: _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(jsonValue) + }; + } + + var iconDefaultObj = _$$_REQUIRE(_dependencyMap[8]).ACTIONS[this.action]; + + if (iconDefaultObj) { + if (activeIcon && iconDefaultObj.activeIcon) { + return iconDefaultObj.activeIcon; + } + + return iconDefaultObj.icon; + } + + return undefined; + } + }, { + key: "getText", + value: function getText() { + return this.text; + } + }, { + key: "getLoggedInText", + value: function getLoggedInText() { + return this.loggedInText; + } + }, { + key: "getActiveIcon", + value: function getActiveIcon() { + return this.activeIcon; + } + }, { + key: "getIcon", + value: function getIcon() { + return this.icon; + } + }, { + key: "getAction", + value: function getAction() { + return this.action; + } + }, { + key: "getActionValue", + value: function getActionValue() { + return this.actionValue; + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "isForceText", + value: function isForceText() { + return this.forceText; + } + }, { + key: "isCustomIcon", + value: function isCustomIcon() { + return this.customIcon; + } + }, { + key: "getLibrary", + value: function getLibrary() { + return this.library; + } + }, { + key: "isLibraryIcon", + value: function isLibraryIcon() { + return this.library && Object.values(_$$_REQUIRE(_dependencyMap[9]).TecnaviaIconType).includes(this.library); + } + }, { + key: "supportInnerText", + value: function supportInnerText() { + return this.innerTextSupported; } }]); - }(_react.default.Component); - - ImageIconChooser.propTypes = Object.assign({ - style: _propTypes.default.any, - imageStyle: _propTypes.default.any, - iconStyle: _propTypes.default.any, - size: _propTypes.default.number, - tintColor: _propTypes.default.string - }, _iconComponent.default.propTypes, _imageComponent.default.propTypes); - - var AnimatedImageIconChooser = exports.AnimatedImageIconChooser = _reactNative.Animated.createAnimatedComponent(ImageIconChooser); - - var _default = exports.default = ImageIconChooser; -},1776,[3,6,7,11,13,14,4,16,18,582,1777,588,438,179]); + }(_$$_REQUIRE(_dependencyMap[10]).BaseModel); +},1810,[3,6,7,11,13,14,438,819,1730,1811,1849]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -217647,7 +210106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaIcon; -},1777,[3,6,7,11,13,14,270,4,16,582,1778,1788,1790,1792,1794,1796,1801,1803,1805,1807,1809,1811,1813,566,438,179]); +},1811,[3,6,7,11,13,14,270,4,16,582,1812,1822,1824,1826,1828,1830,1835,1837,1839,1841,1843,1845,1847,566,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -217665,7 +210124,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; -},1778,[3,1779,1787]); +},1812,[3,1813,1821]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -217913,7 +210372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Icon.getFontFamily = getFontFamily; return Icon; } -},1779,[3,22,270,4,6,7,11,13,14,16,582,1780,1782,1783,1781,179]); +},1813,[3,22,270,4,6,7,11,13,14,16,582,1814,1816,1817,1815,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -217931,7 +210390,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.'); } } -},1780,[1781]); +},1814,[1815]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -217949,7 +210408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1781,[18]); +},1815,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -218002,7 +210461,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e get: get }; } -},1782,[]); +},1816,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -218117,7 +210576,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e size: 20 }, _IconButton; } -},1783,[3,4,6,7,11,13,14,1784,1785,1786,16,582,1781,179]); +},1817,[3,4,6,7,11,13,14,1818,1819,1820,16,582,1815,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var stringTag = '[object String]'; var objectProto = Object.prototype; @@ -218133,7 +210592,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = isString; -},1784,[]); +},1818,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var LARGE_ARRAY_SIZE = 200; var HASH_UNDEFINED = '__lodash_hash_undefined__'; @@ -218805,7 +211264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = omit; -},1785,[]); +},1819,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991; @@ -218991,7 +211450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); }); module.exports = pick; -},1786,[]); +},1820,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "stepforward": 58880, @@ -219293,7 +211752,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "slack": 59141, "slack-square": 59142 }; -},1787,[]); +},1821,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -219311,7 +211770,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; -},1788,[3,1779,1789]); +},1822,[3,1813,1823]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "500px": 61696, @@ -219726,7 +212185,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "youtube": 62105, "youtube-with-circle": 62106 }; -},1789,[]); +},1823,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -219744,7 +212203,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; -},1790,[3,1779,1791]); +},1824,[3,1813,1825]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "archive": 61696, @@ -219818,7 +212277,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "unlock": 61764, "user": 61765 }; -},1791,[]); +},1825,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -219836,7 +212295,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; -},1792,[3,1779,1793]); +},1826,[3,1813,1827]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "activity": 61696, @@ -220126,7 +212585,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-in": 61980, "zoom-out": 61981 }; -},1793,[]); +},1827,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -220144,7 +212603,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; -},1794,[3,1779,1795]); +},1828,[3,1813,1829]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "glass": 61440, @@ -220934,7 +213393,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "wpexplorer": 62174, "meetup": 62176 }; -},1795,[]); +},1829,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -220959,7 +213418,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; -},1796,[1797,3,1799,1800]); +},1830,[1831,3,1833,1834]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -221039,7 +213498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return Icon; } -},1797,[3,1798,1781]); +},1831,[3,1832,1815]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -221203,7 +213662,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Icon.hasIcon = hasIcon; return Icon; } -},1798,[3,6,7,11,13,14,240,16,582,1779,179]); +},1832,[3,6,7,11,13,14,240,16,582,1813,179]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "500px": 62062, @@ -222645,7 +215104,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "youtube-square": 62513, "zhihu": 63039 }; -},1799,[]); +},1833,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "brands": [ @@ -224247,7 +216706,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ] } ; -},1800,[]); +},1834,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -224265,7 +216724,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; -},1801,[3,1779,1802]); +},1835,[3,1813,1836]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "acrobat-reader": 60095, @@ -224886,7 +217345,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "rectangle": 59917, "shield": 59914 }; -},1802,[]); +},1836,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -224904,7 +217363,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; -},1803,[3,1779,1804]); +},1837,[3,1813,1838]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "address-book": 61696, @@ -225191,7 +217650,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-in": 61977, "zoom-out": 61978 }; -},1804,[]); +},1838,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -225209,7 +217668,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; -},1805,[3,1779,1806]); +},1839,[3,1813,1840]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "add": 61696, @@ -228895,7 +221354,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "md-woman-sharp": 62922 } ; -},1806,[]); +},1840,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -228913,7 +221372,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; -},1807,[3,1779,1808]); +},1841,[3,1813,1842]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "360": 58743, @@ -230479,7 +222938,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zoom-out": 59648, "zoom-out-map": 58731 }; -},1808,[]); +},1842,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -230497,7 +222956,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; -},1809,[3,1779,1810]); +},1843,[3,1813,1844]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "ab-testing": 983497, @@ -235847,7 +228306,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "zodiac-virgo": 985736, "blank": 63116 }; -},1810,[]); +},1844,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -235865,7 +228324,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; -},1811,[3,1779,1812]); +},1845,[3,1813,1846]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "alert": 61696, @@ -236053,7 +228512,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "x": 61878, "zap": 61879 }; -},1812,[]); +},1846,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236071,7 +228530,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; -},1813,[3,1779,1814]); +},1847,[3,1813,1848]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "acrobat": 61696, @@ -236175,7 +228634,15337 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "yelp": 61794, "youtube": 61795 }; -},1814,[]); +},1848,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.BaseModel = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var BaseModel = exports.BaseModel = function () { + function BaseModel(json) { + (0, _classCallCheck2.default)(this, BaseModel); + this.json = json; + } + + return (0, _createClass2.default)(BaseModel, [{ + key: "getValueByKey", + value: function getValueByKey(key, fallback) { + return this.json && this.json[key] ? this.json[key] : fallback; + } + }, { + key: "getArrayByKey", + value: function getArrayByKey(key) { + return this.json && this.json[key] && Array.isArray(this.json[key]) ? this.json[key] : []; + } + }]); + }(); +},1849,[3,6,7]); +__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { + module.exports = { + "main": { + "enableHighlighting": "true", + "backgroundColor": "#000000", + "textColor": "#FFFFFF", + "buttonHighlightColor": "#4DB9E3", + "defaultButtonHighlightColor": "#FFFFFF", + "buttons": [ + { + "text": "Index", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openIndex" + }, + { + "text": "Thumbnail", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openThumbnail" + }, + { + "text": "Browse", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openBrowse" + }, + { + "text": "News", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "forceText": "0", + "function": "openLiveNews" + }, + { + "text": "Fit", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "fitPageToggle" + }, + { + "text": "Option", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openMore" + } + ], + "more": [ + { + "id": "1", + "text": "Search", + "forceText": "0", + "function": "openSearch" + }, + { + "id": "2", + "text": "Editions", + "forceText": "0", + "function": "openOptionPageEditions" + }, + { + "id": "3", + "text": "Specials", + "forceText": "0", + "function": "openSpecialSections" + }, + { + "id": "4", + "text": "Publications", + "forceText": "0", + "function": "openOptionPagePublications" + }, + { + "id": "5", + "text": "Login", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "6", + "text": "Help", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "7", + "text": "Contact", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "8", + "text": "Settings", + "forceText": "0", + "function": "openOptionPageSettings" + } + ] + }, + "navigation": { + "backgroundColor": "transparent", + "textColor": "#00000", + "back": { + "buttons": [ + { + "text": "BackPage", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "backPage" + }, + { + "text": "BackSection", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "backSection" + } + ] + }, + "forward": { + "buttons": [ + { + "text": "ForwardPage", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "forwardPage" + }, + { + "text": "ForwardSection", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "forwardSection" + } + ] + } + }, + "index": { + "firstLevel": { + "header": {}, + "hr": { + "top": { + "color": "#000000", + "height": "1" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "buttons": [] + }, + "right": { + "buttons": [] + },"footer": { + "enableHighlighting": "true", + "backgroundColor": "#000000", + "textColor": "#FFFFFF", + "buttonHighlightColor": "#4DB9E3", + "defaultButtonHighlightColor": "#FFFFFF", + "buttons": [ + { + "text": "Browse", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openBrowse" + }, + { + "text": "Previous Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "previousArticle" + }, + { + "text": "Index", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openIndexAlt" + }, + { + "text": "Next Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "nextArticle" + }, + { + "text": "Option", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openMore" + } + ], + "more": [ + { + "id": "1", + "text": "Editions", + "forceText": "0", + "function": "openOptionPageEditions" + }, + { + "id": "2", + "text": "Specials", + "forceText": "0", + "function": "openSpecialSections" + }, + { + "id": "3", + "text": "Login", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "4", + "text": "Help", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "5", + "text": "Contact", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "6", + "text": "Settings", + "forceText": "0", + "function": "openOptionPageSettings" + }, + { + "id": "7", + "text": "Search", + "forceText": "0", + "function": "openSearch" + } + ] + } + }, + "secondLevel": { + "header": {}, + "hr": { + "top": { + "color": "#000000", + "height": "1" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "buttons": [] + }, + "right": { + "buttons": [] + },"footer": { + "enableHighlighting": "true", + "backgroundColor": "#000000", + "textColor": "#FFFFFF", + "buttonHighlightColor": "#4DB9E3", + "defaultButtonHighlightColor": "#FFFFFF", + "buttons": [ + { + "text": "Browse", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openBrowse" + }, + { + "text": "Previous Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "previousArticle" + }, + { + "text": "Index", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openIndexAlt" + }, + { + "text": "Next Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "nextArticle" + }, + { + "text": "Option", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openMore" + } + ], + "more": [ + { + "id": "1", + "text": "Editions", + "forceText": "0", + "function": "openOptionPageEditions" + }, + { + "id": "2", + "text": "Specials", + "forceText": "0", + "function": "openSpecialSections" + }, + { + "id": "3", + "text": "Login", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "4", + "text": "Help", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "5", + "text": "Contact", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "6", + "text": "Settings", + "forceText": "0", + "function": "openOptionPageSettings" + }, + { + "id": "7", + "text": "Search", + "forceText": "0", + "function": "openSearch" + } + ] + } + } + }, + "article": { + "header": { + "url": "", + "function": "openIndex", + "padding": "0,0,0,0", + "alignment": "left" + }, + "hr": { + "top": { + "color": "", + "height": "" + }, + "bottom": { + "color": "", + "height": "" + } + }, + "left": { + "color": "#000000", + "hoverText": "Example hover text", + "size": "20", + "padding": "20,0,0,0", + "alignment": "left", + "buttons": [ + { + "text": "Print", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "print" + }, + { + "text": "Share", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "share" + } + ] + }, + "right": { + "buttons": [ + { + "text": "Search", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "search" + }, + { + "text": "Clear search", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "clearSearch" + }, + { + "text": "FontDecrease", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "fontDecrease" + }, + { + "text": "FontIncrease", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "fontIncrease" + }, + { + "text": "ToggleArticleExtra", + "iconUrlOn": "", + "iconUrlOff": "", + "iconLibrary": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleArticleExtra" + }, + { + "text": "GraphDecrease", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphDecrease" + }, + { + "text": "GraphIncrease", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphIncrease" + }, + { + "text": "GraphZoomUnfit", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "graphZoomUnfit" + }, + { + "text": "TextToSpeech", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleTextToSpeech" + }, + { + "text": "Graphic", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "toggleGraphic" + }, + { + "text": "Close", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "35", + "padding": "0,0,0,0", + "function": "closeArticle" + } + ] + }, + "footer": { + "enableHighlighting": "true", + "backgroundColor": "#000000", + "textColor": "#FFFFFF", + "buttonHighlightColor": "#4DB9E3", + "defaultButtonHighlightColor": "#FFFFFF", + "buttons": [ + { + "text": "Browse", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openBrowse" + }, + { + "text": "Previous Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "previousArticle" + }, + { + "text": "Index", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openIndexAlt" + }, + { + "text": "Next Article", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "nextArticle" + }, + { + "text": "Option", + "iconUrlOn": "", + "iconUrlOff": "", + "height": "45", + "padding": "0,0,0,0", + "function": "openMore" + } + ], + "more": [ + { + "id": "1", + "text": "Editions", + "forceText": "0", + "function": "openOptionPageEditions" + }, + { + "id": "2", + "text": "Specials", + "forceText": "0", + "function": "openSpecialSections" + }, + { + "id": "3", + "text": "Login", + "forceText": "0", + "function": "openOptionPageLogin" + }, + { + "id": "4", + "text": "Help", + "forceText": "0", + "function": "openOptionPageHelp" + }, + { + "id": "5", + "text": "Contact", + "forceText": "0", + "function": "openOptionPageContact" + }, + { + "id": "6", + "text": "Settings", + "forceText": "0", + "function": "openOptionPageSettings" + }, + { + "id": "7", + "text": "Search", + "forceText": "0", + "function": "openSearch" + } + ] + } + } +} +; +},1850,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Footer = 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])); + + 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 Footer = exports.Footer = function (_BaseModel) { + function Footer(json) { + var _this; + + (0, _classCallCheck2.default)(this, Footer); + _this = _callSuper(this, Footer, [json]); + + _this.setEnableHighlighting(); + + _this.setBackgroundColor(); + + _this.setTextColor(); + + _this.setButtonHighlightColor(); + + _this.setDefaultButtonHighlightColor(); + + _this.setButtons(); + + _this.setMore(); + + return _this; + } + + (0, _inherits2.default)(Footer, _BaseModel); + return (0, _createClass2.default)(Footer, [{ + key: "setEnableHighlighting", + value: function setEnableHighlighting() { + this.enableHighlighting = this.getValueByKey("enableHighlighting", false); + } + }, { + key: "setBackgroundColor", + value: function setBackgroundColor() { + this.backgroundColor = this.getValueByKey("backgroundColor", _$$_REQUIRE(_dependencyMap[6]).colors.black); + } + }, { + key: "setTextColor", + value: function setTextColor() { + this.textColor = this.getValueByKey("textColor", _$$_REQUIRE(_dependencyMap[6]).colors.white); + } + }, { + key: "setButtonHighlightColor", + value: function setButtonHighlightColor() { + this.buttonHighlightColor = this.getValueByKey("buttonHighlightColor", _$$_REQUIRE(_dependencyMap[6]).colors.md_light_blue_300); + } + }, { + key: "setDefaultButtonHighlightColor", + value: function setDefaultButtonHighlightColor() { + this.defaultButtonHighlightColor = this.getValueByKey("defaultButtonHighlightColor", _$$_REQUIRE(_dependencyMap[6]).colors.white); + } + }, { + key: "setButtons", + value: function setButtons() { + this.buttons = this.getArrayByKey("buttons").map(function (button) { + return new (_$$_REQUIRE(_dependencyMap[7]).FooterIcon)(button); + }); + } + }, { + key: "setMore", + value: function setMore() { + this.more = this.getArrayByKey("more").map(function (button) { + return new (_$$_REQUIRE(_dependencyMap[8]).MoreIcon)(button); + }); + } + }, { + key: "getButtonByAction", + value: function getButtonByAction(action) { + var button = this.buttons.find(function (icon) { + return icon.getAction() === action; + }); + + if (!button) { + button = this.more.find(function (icon) { + return icon.getAction() === action; + }); + } + + return button; + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); +},1851,[3,6,7,11,13,14,438,1852,1853,1849]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FooterIcon = 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])); + + 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 FooterIcon = exports.FooterIcon = function (_Icon) { + function FooterIcon(json) { + (0, _classCallCheck2.default)(this, FooterIcon); + return _callSuper(this, FooterIcon, [json, "footer"]); + } + + (0, _inherits2.default)(FooterIcon, _Icon); + return (0, _createClass2.default)(FooterIcon); + }(_$$_REQUIRE(_dependencyMap[6]).Icon); +},1852,[3,7,6,11,13,14,1810]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MoreIcon = 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])); + + 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 MoreIcon = exports.MoreIcon = function (_Icon) { + function MoreIcon(json) { + (0, _classCallCheck2.default)(this, MoreIcon); + return _callSuper(this, MoreIcon, [json, "footer-more"]); + } + + (0, _inherits2.default)(MoreIcon, _Icon); + return (0, _createClass2.default)(MoreIcon); + }(_$$_REQUIRE(_dependencyMap[6]).Icon); +},1853,[3,7,6,11,13,14,1810]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.PaperSetupManager = 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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _PublicationsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _PaperSetupService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _excluded = ["oneTimeToken", "fromCache"]; + + var PaperSetupManager = exports.PaperSetupManager = function () { + function PaperSetupManager() { + (0, _classCallCheck2.default)(this, PaperSetupManager); + this.pSetups = []; + this.activePSetup = PaperSetupManager.getMainPSetup(); + } + + return (0, _createClass2.default)(PaperSetupManager, [{ + key: "preloadCustomFonts", + value: function () { + var _preloadCustomFonts = (0, _asyncToGenerator2.default)(function* (config) { + var paper = config.paper, + customFontsString = config.customFontsString, + customFontsFileTime = config.customFontsFileTime; + + if (customFontsString) { + yield _$$_REQUIRE(_dependencyMap[8]).FontsManager.preloadFonts(paper, customFontsString, customFontsFileTime); + } else {} + }); + + function preloadCustomFonts(_x) { + return _preloadCustomFonts.apply(this, arguments); + } + + return preloadCustomFonts; + }() + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (pSetup) { + var machine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : PaperSetupManager.getMachine(); + var extraParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var success = false; + var overwriteActivePSetup = true; + var preview = extraParams.preview, + oneTimeToken = extraParams.oneTimeToken, + firstInstall = extraParams.firstInstall, + fromCache = extraParams.fromCache; + + if (!pSetup) { + pSetup = PaperSetupManager.getMainPSetup(); + overwriteActivePSetup = !this.activePSetup; + } + + var config = this.pSetups[pSetup]; + + if (!config) { + config = new (_$$_REQUIRE(_dependencyMap[9]).PaperSetupConfig)(pSetup, machine); + } + + var _yield$PaperSetupMana = yield PaperSetupManager.download({ + pSetup: pSetup, + machine: machine, + preview: preview, + oneTimeToken: oneTimeToken, + firstInstall: firstInstall, + fromCache: fromCache + }), + pSetupConfigJSON = _yield$PaperSetupMana.json, + fromServer = _yield$PaperSetupMana.fromServer; + + success = yield config.init(pSetupConfigJSON); + + if (success) { + yield this.preloadCustomFonts(config); + + if (oneTimeToken) { + var _config = config, + loginStatus = _config.loginStatus; + loginStatus.setOneTimeToken(oneTimeToken); + } + + this.pSetups[pSetup] = config; + + if (overwriteActivePSetup) { + this.setActivePSetup(pSetup); + } + } + + return { + success: success, + fromServer: fromServer + }; + }); + + function init(_x2) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "initConfigOnly", + value: function () { + var _initConfigOnly = (0, _asyncToGenerator2.default)(function* () { + var pSetup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PaperSetupManager.getMainPSetup(); + var machine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : PaperSetupManager.getMachine(); + var config = new (_$$_REQUIRE(_dependencyMap[9]).PaperSetupConfig)(pSetup, machine); + + var _yield$PaperSetupMana2 = yield PaperSetupManager.download({ + pSetup: pSetup, + machine: machine + }), + json = _yield$PaperSetupMana2.json; + + var success = yield config.init(json); + + if (success) { + yield this.preloadCustomFonts(config); + } + + return { + success: success, + config: config + }; + }); + + function initConfigOnly() { + return _initConfigOnly.apply(this, arguments); + } + + return initConfigOnly; + }() + }, { + key: "setCurrentPublication", + value: function setCurrentPublication(_ref) { + var pSetup = _ref.pSetup, + machine = _ref.machine, + paperName = _ref.paperName, + external = _ref.external; + var activeConfig = this.getActivePSetupConfig(); + var publicationsManager = global.getPublicationsManager(); + publicationsManager.setCurrentPublication({ + pSetup: pSetup, + machine: machine, + name: paperName || activeConfig.paperName, + paper: activeConfig.paper, + xpaper: activeConfig.xpaper, + external: external + }); + } + }, { + key: "load", + value: function () { + var _load = (0, _asyncToGenerator2.default)(function* (pSetup, machine) { + var extraParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var external = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var success = true; + var fromServer = false; + var pSetupToUse = pSetup; + var machineToUse = machine; + + var _this$getMainPSetupCo = this.getMainPSetupConfig(), + mainPSetup = _this$getMainPSetupCo.pSetup, + isGenericApp = _this$getMainPSetupCo.isGenericApp; + + var publicationBaseParams = { + pSetup: pSetup, + machine: machine, + paperName: extraParams.paperName, + external: external && pSetup !== mainPSetup + }; + + if (pSetup && pSetup !== this.activePSetup) { + if (!machineToUse && isGenericApp) { + var _this$getActivePSetup = this.getActivePSetupConfig(); + + machineToUse = _this$getActivePSetup.machine; + } + + if (!external && !global.isTaAddon() && (!isGenericApp || PaperSetupManager.isPSetupASpecialOfActivePSetup(pSetup) || PaperSetupManager.isPSetupXPaperOfActivePSetup(pSetup))) { + var xpSetup = pSetup; + + if (pSetup.indexOf("-xp-") !== -1) { + var _pSetupArray = pSetup.split("-xp-"); + + if (_pSetupArray.length > 1) { + xpSetup = _pSetupArray[1]; + } + } + + var pSetupArray = this.activePSetup.split("-xp-"); + + if (pSetupArray.length > 1) { + if (pSetupArray[0] !== xpSetup) { + pSetupToUse = pSetupArray[0] + "-xp-" + xpSetup; + } + } else { + pSetupToUse = this.activePSetup + "-xp-" + xpSetup; + } + } + + var _yield$this$init = yield this.init(pSetupToUse, machineToUse, extraParams); + + success = _yield$this$init.success; + fromServer = _yield$this$init.fromServer; + + if (success) { + this.setCurrentPublication(publicationBaseParams); + var activeConfig = this.getActivePSetupConfig(); + activeConfig.setExternal(publicationBaseParams.external); + } + } else { + var publicationsManager = global.getPublicationsManager(); + + if (!publicationsManager.getCurrentPublication()) { + this.setCurrentPublication(publicationBaseParams); + } + + var preview = extraParams.preview, + oneTimeToken = extraParams.oneTimeToken; + + if (preview || oneTimeToken) { + var _yield$this$init2 = yield this.init(pSetupToUse, machineToUse, extraParams); + + success = _yield$this$init2.success; + fromServer = _yield$this$init2.fromServer; + } + } + + return { + config: success ? this.getActivePSetupConfig() : null, + fromServer: fromServer + }; + }); + + function load(_x3, _x4) { + return _load.apply(this, arguments); + } + + return load; + }() + }, { + key: "reload", + value: function () { + var _reload = (0, _asyncToGenerator2.default)(function* (extraParams) { + var _this$getActivePSetup2 = this.getActivePSetupConfig(), + pSetup = _this$getActivePSetup2.pSetup, + machine = _this$getActivePSetup2.machine; + + var result = yield this.init(pSetup, machine, extraParams); + return result; + }); + + function reload(_x5) { + return _reload.apply(this, arguments); + } + + return reload; + }() + }, { + key: "setActivePSetup", + value: function setActivePSetup(pSetup) { + this.activePSetup = pSetup; + } + }, { + key: "resetActivePSetup", + value: function resetActivePSetup() { + this.activePSetup = PaperSetupManager.getMainPSetup(); + } + }, { + key: "getActivePSetup", + value: function getActivePSetup() { + return this.activePSetup; + } + }, { + key: "setPSetupConfig", + value: function setPSetupConfig(pSetup, pSetupConfig) { + this.pSetups[pSetup] = pSetupConfig; + } + }, { + key: "getPSetupConfig", + value: function getPSetupConfig(pSetup) { + if (pSetup) { + if (this.pSetups[pSetup]) { + return this.pSetups[pSetup]; + } + } else {} + + return {}; + } + }, { + key: "getMainPSetupConfig", + value: function getMainPSetupConfig() { + return this.getPSetupConfig(PaperSetupManager.getMainPSetup()); + } + }, { + key: "getActivePSetupConfig", + value: function getActivePSetupConfig() { + return this.getPSetupConfig(this.getActivePSetup()); + } + }, { + key: "getRSSActivePSetupConfig", + value: function getRSSActivePSetupConfig() { + var activePSetupConfig = this.getActivePSetupConfig(); + var activeRssIsEnabled = activePSetupConfig.rssIsEnabled, + activePSetup = activePSetupConfig.pSetup; + + if (activeRssIsEnabled) { + var pSetupArray = activePSetup.split("-xp-"); + + if (pSetupArray.length > 1) { + var mainActivePSetup = this.getPSetupConfig(pSetupArray[0]); + + if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(mainActivePSetup)) { + return mainActivePSetup; + } + } else { + return activePSetupConfig; + } + } + + return this.getMainPSetupConfig(); + } + }], [{ + key: "getMainPSetup", + value: function getMainPSetup() { + return global.getAppPSetup(); + } + }, { + key: "getMachine", + value: function getMachine() { + return global.getAppServer(); + } + }, { + key: "isGenericAppConfigured", + value: function isGenericAppConfigured() { + var _global$getMainPSetup = global.getMainPSetup(), + isGenericApp = _global$getMainPSetup.isGenericApp, + publicationsPageURL = _global$getMainPSetup.publicationsPageURL; + + return isGenericApp && !!publicationsPageURL; + } + }, { + key: "isPSetupASpecialOfActivePSetup", + value: function isPSetupASpecialOfActivePSetup(pSetup) { + var _global$getActivePSet = global.getActivePSetup(), + specials = _global$getActivePSet.specials; + + return pSetup && specials ? specials.split(",").includes(pSetup) : false; + } + }, { + key: "isPSetupXPaperOfActivePSetup", + value: function isPSetupXPaperOfActivePSetup(pSetup) { + var _global$getActivePSet2 = global.getActivePSetup(), + xPapers = _global$getActivePSet2.xPapers; + + return pSetup && xPapers ? xPapers.split(",").includes(pSetup) : false; + } + }, { + key: "download", + value: function () { + var _download = (0, _asyncToGenerator2.default)(function* () { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { + pSetup: PaperSetupManager.getMainPSetup(), + machine: PaperSetupManager.getMachine(), + fromCache: false + }; + var fromServer = false; + var oneTimeToken = params.oneTimeToken, + fromCache = params.fromCache, + otherParams = (0, _objectWithoutProperties2.default)(params, _excluded); + var pSetup = otherParams.pSetup, + machine = otherParams.machine, + preview = otherParams.preview; + var deepLinkParamsPresent = preview || oneTimeToken; + + var storageKey = pSetup + "-" + _Api.default.getServer(machine); + + var json = yield _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiGet(storageKey); + + if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json) && machine.startsWith("http")) { + json = yield _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiGet(pSetup + "-" + _$$_REQUIRE(_dependencyMap[10]).StringUtils.removeProtocolFromURL(machine)); + } + + if (_$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isOnline() && (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json) || !_$$_REQUIRE(_dependencyMap[10]).JSUtils.hasProperty(json, "layoutStyle") || !fromCache || deepLinkParamsPresent)) { + if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json)) { + var newsmemoryConfig = global.getNewsmemoryConfig(); + var _json = json, + udb = _json.udb; + otherParams.prefEdi = yield newsmemoryConfig.getPrefEdi(udb); + otherParams.favEdi = yield newsmemoryConfig.getFavEdi(); + } + + if (global.apiKey) { + otherParams.apiKey = global.apiKey; + } + + var newJson = yield _PaperSetupService.default.getJson(otherParams); + + if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(newJson)) { + json = newJson; + + _$$_REQUIRE(_dependencyMap[10]).StorageUtils.clearAll(storageKey).then(function () { + return _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiSet(storageKey, newJson); + }); + + fromServer = true; + } + } + + return { + json: json || {}, + fromServer: fromServer + }; + }); + + function download() { + return _download.apply(this, arguments); + } + + return download; + }() + }]); + }(); +},1854,[3,4,270,6,7,407,1727,1855,1858,866,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 api = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var parser = _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 PaperSetupService = exports.default = function () { + function PaperSetupService() { + (0, _classCallCheck2.default)(this, PaperSetupService); + } + + return (0, _createClass2.default)(PaperSetupService, null, [{ + key: "getJson", + value: function () { + var _getJson = (0, _asyncToGenerator2.default)(function* (params) { + var data = yield api.getDataFromApiResponse(params); + return parser.parse(data); + }); + + function getJson(_x) { + return _getJson.apply(this, arguments); + } + + return getJson; + }() + }]); + }(); +},1855,[3,270,6,7,1856,1857]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getDataFromApiResponse = getDataFromApiResponse; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _Api = _interopRequireWildcard(_$$_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; } + + function getDataFromApiResponse(_x) { + return _getDataFromApiResponse.apply(this, arguments); + } + + function _getDataFromApiResponse() { + _getDataFromApiResponse = (0, _asyncToGenerator2.default)(function* (params) { + var result = ""; + + try { + result = yield _Api.default.requestWithRetry({ + request: _Api.default.pSetup, + onRetry: function onRetry(retries, maxRetries) { + _$$_REQUIRE(_dependencyMap[4]).EventRegister.emit(_events.default.PAPER_SETUP_API_RETRY, { + retryText: global.strings("msg_download_retry", { + retry: retries + 1, + maxRetries: maxRetries + }) + }); + } + }, params); + } catch (e) { + if (e.response && e.response.status === _Api.HTTP_CODES.UNAUTHORIZED) { + throw e; + } + } + + return result; + }); + return _getDataFromApiResponse.apply(this, arguments); + } +},1856,[3,270,436,407,564]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.parse = parse; + + function parse() { + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + var splitData = data.split("&"); + var json = {}; + + for (var i = 0; i < splitData.length; i++) { + try { + var splitSetting = splitData[i].split("="); + var key = splitSetting[0]; + + if (key) { + json[key] = _$$_REQUIRE(_dependencyMap[0]).StringUtils.decodeURIComponent(splitSetting[1]); + } + } catch (e) {} + } + + return json; + } +},1857,[438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FontsManager = 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 _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _FontsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var FontsManager = exports.FontsManager = function () { + function FontsManager() { + (0, _classCallCheck2.default)(this, FontsManager); + this.configs = []; + } + + return (0, _createClass2.default)(FontsManager, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); + var pSetup = pSetupConfig.pSetup, + machine = pSetupConfig.machine, + cdnServer = pSetupConfig.cdnServer, + paper = pSetupConfig.paper, + customFontsFileTime = pSetupConfig.customFontsFileTime; + + if (!this.configs[paper]) { + this.configs[paper] = new (_$$_REQUIRE(_dependencyMap[7]).FontsConfig)(); + } + + _FontsHelper.default.setStorageName(paper); + + var lastCustomFontsFileTime = yield _FontsHelper.default.getFiletime(); + var fontsJSON = {}; + + try { + fontsJSON = yield _FontsHelper.default.dump(); + } catch (e) {} + + if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.isOnline() && customFontsFileTime > -1 && customFontsFileTime > lastCustomFontsFileTime) { + fontsJSON = yield FontsManager.download({ + pSetup: pSetup, + machine: machine, + cdnServer: cdnServer, + mtime: customFontsFileTime + }); + } else if (customFontsFileTime === -1) { + fontsJSON = {}; + yield _FontsHelper.default.clearAll(); + } + + _FontsHelper.default.setFiletime(customFontsFileTime); + + yield _ApplicationManager.default.makeFontsDirectory(); + var mainFontsJSON = this.getMainFontsJSON(pSetupConfig); + + if (!_$$_REQUIRE(_dependencyMap[8]).JSUtils.isEmpty(mainFontsJSON)) { + fontsJSON = _$$_REQUIRE(_dependencyMap[8]).FontUtils.mergeFontsJSONs(mainFontsJSON, fontsJSON); + } + + return this.configs[paper].init(fontsJSON); + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "getMainFontsJSON", + value: function getMainFontsJSON() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(), + activePaper = _ref.paper; + + var _global$getMainPSetup = global.getMainPSetup(), + paper = _global$getMainPSetup.paper; + + var fontsConfig = this.getConfig(paper); + + if (activePaper !== paper && fontsConfig) { + return fontsConfig.getJSON(); + } + + return {}; + } + }, { + key: "getConfig", + value: function getConfig() { + var paper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup().paper; + return this.configs[paper] || new (_$$_REQUIRE(_dependencyMap[7]).FontsConfig)(); + } + }], [{ + key: "download", + value: function () { + var _download = (0, _asyncToGenerator2.default)(function* (params) { + var response = yield _NewsmemoryAJAX.default.customFonts(params); + var json = {}; + + if (response && response.data && response.data.fonts) { + json = response.data; + var keys = Object.keys(json); + + if (keys.length > 0) { + keys.forEach(function (key) { + if (Array.isArray(json[key])) { + json[key] = JSON.stringify(json[key]); + } + }); + + _$$_REQUIRE(_dependencyMap[8]).StorageUtils.clearAll(_FontsHelper.default.SP.name).then(function () { + return _$$_REQUIRE(_dependencyMap[8]).StorageUtils.multiSet(_FontsHelper.default.SP.name, json); + }); + } + } + + return json; + }); + + function download(_x) { + return _download.apply(this, arguments); + } + + return download; + }() + }, { + key: "preloadFonts", + value: function () { + var _preloadFonts = (0, _asyncToGenerator2.default)(function* (paper, rawJSON, fileTime) { + var json = {}; + + try { + json = JSON.parse(rawJSON); + var keys = Object.keys(json); + + if (keys.length > 0) { + _FontsHelper.default.setStorageName(paper); + + keys.forEach(function (key) { + if (Array.isArray(json[key])) { + json[key] = JSON.stringify(json[key]); + } + }); + yield _$$_REQUIRE(_dependencyMap[8]).StorageUtils.clearAll(_FontsHelper.default.SP.name); + yield _$$_REQUIRE(_dependencyMap[8]).StorageUtils.multiSet(_FontsHelper.default.SP.name, json); + yield _FontsHelper.default.setFiletime(fileTime); + } + } catch (e) {} + }); + + function preloadFonts(_x2, _x3, _x4) { + return _preloadFonts.apply(this, arguments); + } + + return preloadFonts; + }() + }]); + }(); +},1858,[3,270,6,7,406,864,1859,1860,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 FONTS_BASE_STORAGE_NAME = "fonts"; + + var FontsHelper = exports.default = function () { + function FontsHelper() { + (0, _classCallCheck2.default)(this, FontsHelper); + } + + return (0, _createClass2.default)(FontsHelper, null, [{ + key: "setStorageName", + value: function setStorageName(prefix) { + var storageName = FONTS_BASE_STORAGE_NAME; + + if (prefix) { + storageName = prefix + "_" + storageName; + } + + FontsHelper.SP.name = storageName; + } + }, { + key: "getItem", + value: function () { + var _getItem = (0, _asyncToGenerator2.default)(function* (key) { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(FontsHelper.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) { + yield _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(FontsHelper.SP.name, key, value); + }); + + function setItem(_x2, _x3) { + return _setItem.apply(this, arguments); + } + + return setItem; + }() + }, { + key: "getFiletime", + value: function () { + var _getFiletime = (0, _asyncToGenerator2.default)(function* () { + var filetime = parseInt((yield FontsHelper.getItem(FontsHelper.SP.keys.filetime)) || -1, 10); + return filetime; + }); + + function getFiletime() { + return _getFiletime.apply(this, arguments); + } + + return getFiletime; + }() + }, { + key: "setFiletime", + value: function () { + var _setFiletime = (0, _asyncToGenerator2.default)(function* (filetime) { + return FontsHelper.setItem(FontsHelper.SP.keys.filetime, "" + filetime); + }); + + function setFiletime(_x4) { + return _setFiletime.apply(this, arguments); + } + + return setFiletime; + }() + }, { + key: "clearAll", + value: function () { + var _clearAll = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAll(FontsHelper.SP.name); + }); + + function clearAll() { + return _clearAll.apply(this, arguments); + } + + return clearAll; + }() + }, { + key: "dump", + value: function () { + var _dump = (0, _asyncToGenerator2.default)(function* () { + return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(FontsHelper.SP.name); + }); + + function dump() { + return _dump.apply(this, arguments); + } + + return dump; + }() + }]); + }(); + + FontsHelper.SP = { + name: FONTS_BASE_STORAGE_NAME, + keys: { + fonts: "fonts", + font_regular: "regular", + font_medium: "medium", + font_bold: "bold", + filetime: "filetime" + } + }; +},1859,[3,270,6,7,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FontsConfig = 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 _FontsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var FontsConfig = exports.FontsConfig = function () { + function FontsConfig() { + (0, _classCallCheck2.default)(this, FontsConfig); + } + + return (0, _createClass2.default)(FontsConfig, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.json = json; + var keys = _FontsHelper.default.SP.keys; + this.fonts = yield this.getValue(keys.fonts); + this.dynamicFonts = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.getDynamicFonts(this.fonts, _tecnaviaFileUtils.default.getFontsDirectory()); + this.mappedDynamicFonts = []; + + for (var i = 0; i < this.dynamicFonts.length; i++) { + var dynamicFont = this.dynamicFonts[i]; + + if (dynamicFont) { + var mappedDynamicFont = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.dynamicFontMappingForApp(dynamicFont); + this.mappedDynamicFonts.push(mappedDynamicFont); + } + } + + this.defaultFontRegular = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp(); + this.defaultFontMedium = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp("", "medium"); + this.defaultFontBold = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp("", "bold"); + + var _global$getRssIndex = global.getRssIndex(), + fontBold = _global$getRssIndex.fontBold, + fontMedium = _global$getRssIndex.fontMedium, + fontRegular = _global$getRssIndex.fontRegular; + + var fontRegularName = yield this.getValue(keys.font_regular); + + if (fontRegularName) { + this.fontRegular = yield this.getFontMapping(fontRegularName); + } else if (fontRegular) { + this.fontRegular = yield this.getFontMapping(fontRegular); + } else { + this.fontRegular = this.defaultFontRegular; + } + + var fontMediumName = yield this.getValue(keys.font_medium); + + if (fontMediumName) { + this.fontMedium = yield this.getFontMapping(fontMediumName, "medium"); + } else if (fontMedium) { + this.fontMedium = yield this.getFontMapping(fontMedium, "medium"); + } else { + this.fontMedium = this.defaultFontMedium; + } + + var fontBoldName = yield this.getValue(keys.font_bold); + + if (fontBoldName) { + this.fontBold = yield this.getFontMapping(fontBoldName, "bold"); + } else if (fontBold) { + this.fontBold = yield this.getFontMapping(fontBold, "bold"); + } else { + this.fontBold = this.defaultFontBold; + } + + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "getJSON", + value: function getJSON() { + return this.json || {}; + } + }, { + key: "getValue", + value: function () { + var _getValue = (0, _asyncToGenerator2.default)(function* (key) { + var value = this.json[key]; + + if (value === null || value === undefined) { + value = yield _FontsHelper.default.getItem(key); + } + + var keys = _FontsHelper.default.SP.keys; + + if (key === keys.fonts) { + try { + value = JSON.parse(value); + } catch (e) { + value = []; + } + } + + return value; + }); + + function getValue(_x) { + return _getValue.apply(this, arguments); + } + + return getValue; + }() + }, { + key: "getFontMapping", + value: function () { + var _getFontMapping = (0, _asyncToGenerator2.default)(function* (fontName, type) { + var fontMapping; + var dynamicFont = this.dynamicFonts.find(function (font) { + return font && font.name === fontName; + }); + + if (dynamicFont) { + fontMapping = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.dynamicFontMappingForApp(dynamicFont, type); + } else { + fontMapping = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp(fontName, type); + } + + return fontMapping; + }); + + function getFontMapping(_x2, _x3) { + return _getFontMapping.apply(this, arguments); + } + + return getFontMapping; + }() + }]); + }(); +},1860,[3,270,6,7,1859,566,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Header = 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])); + + 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 Header = exports.Header = function (_BaseModel) { + function Header(json) { + var _this; + + (0, _classCallCheck2.default)(this, Header); + _this = _callSuper(this, Header, [json]); + _this.header = new (_$$_REQUIRE(_dependencyMap[6]).Logo)(json.header); + _this.hrTop = new (_$$_REQUIRE(_dependencyMap[7]).Hr)(json.hr.top); + _this.hrBottom = new (_$$_REQUIRE(_dependencyMap[7]).Hr)(json.hr.bottom); + _this.left = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.left); + _this.right = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.right); + _this.carMode = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.carMode); + return _this; + } + + (0, _inherits2.default)(Header, _BaseModel); + return (0, _createClass2.default)(Header, [{ + key: "getHrBottom", + value: function getHrBottom() { + return this.hrBottom || {}; + } + }, { + key: "getHrTop", + value: function getHrTop() { + return this.hrTop || {}; + } + }, { + key: "getLogo", + value: function getLogo() { + return this.header; + } + }, { + key: "getLeft", + value: function getLeft() { + return this.left; + } + }, { + key: "getRight", + value: function getRight() { + return this.right; + } + }, { + key: "getCarMode", + value: function getCarMode() { + return this.carMode; + } + }, { + key: "getButtonByAction", + value: function getButtonByAction(action) { + var button; + + if (this.getLeft()) { + button = this.getLeft().buttons.find(function (icon) { + return icon.getAction() === action; + }); + } + + if (!button && this.getRight()) { + button = this.getRight().buttons.find(function (icon) { + return icon.getAction() === action; + }); + } + + return button; + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); +},1861,[3,6,7,11,13,14,1862,1863,1864,1849]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Logo = 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])); + + 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 Logo = exports.Logo = function (_BaseModel) { + function Logo(obj) { + var _this; + + (0, _classCallCheck2.default)(this, Logo); + _this = _callSuper(this, Logo, [obj]); + _this.url = _this.getValueByKey("url"); + _this.action = _this.getValueByKey("function", "openIndex"); + _this.padding = _this.getValueByKey("padding", "").split(",").map(function (item) { + return parseInt(item, 10); + }); + _this.alignment = _this.getValueByKey("alignment", "left"); + return _this; + } + + (0, _inherits2.default)(Logo, _BaseModel); + return (0, _createClass2.default)(Logo, [{ + key: "getUrl", + value: function getUrl() { + return this.url; + } + }, { + key: "setUrl", + value: function setUrl(url) { + this.url = url; + } + }, { + key: "getAction", + value: function getAction() { + return this.action; + } + }, { + key: "getPadding", + value: function getPadding() { + return this.padding; + } + }, { + key: "getAlignment", + value: function getAlignment() { + return this.alignment; + } + }]); + }(_$$_REQUIRE(_dependencyMap[6]).BaseModel); +},1862,[3,6,7,11,13,14,1849]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Hr = 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])); + + 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 Hr = exports.Hr = function (_BaseModel) { + function Hr(obj) { + var _this; + + (0, _classCallCheck2.default)(this, Hr); + _this = _callSuper(this, Hr, [obj]); + + _this.setColor(); + + _this.setHeight(); + + return _this; + } + + (0, _inherits2.default)(Hr, _BaseModel); + return (0, _createClass2.default)(Hr, [{ + key: "setHeight", + value: function setHeight() { + this.height = parseInt(this.getValueByKey("height", "1"), 10); + } + }, { + key: "setColor", + value: function setColor() { + this.color = this.getValueByKey("color", _$$_REQUIRE(_dependencyMap[6]).colors.black); + } + }, { + key: "getHeight", + value: function getHeight() { + return this.height; + } + }, { + key: "getColor", + value: function getColor() { + return this.color.length ? this.color : _$$_REQUIRE(_dependencyMap[6]).colors.black; + } + }]); + }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); +},1863,[3,6,7,11,13,14,438,1849]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Section = 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])); + + 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 Section = exports.Section = function (_BaseModel) { + function Section(section) { + var _this; + + (0, _classCallCheck2.default)(this, Section); + _this = _callSuper(this, Section, [section]); + + _this.setButtons(); + + _this.setColor(); + + _this.setHoverText(); + + _this.setSize(); + + return _this; + } + + (0, _inherits2.default)(Section, _BaseModel); + return (0, _createClass2.default)(Section, [{ + key: "getButtons", + value: function getButtons() { + return this.buttons; + } + }, { + key: "getReverseButtons", + value: function getReverseButtons() { + var newButtons = []; + this.buttons.forEach(function (button) { + newButtons.splice(0, 0, button); + }); + return newButtons; + } + }, { + key: "getColor", + value: function getColor() { + return this.color; + } + }, { + key: "getHoverText", + value: function getHoverText() { + return this.hoverText; + } + }, { + key: "getTextSize", + value: function getTextSize() { + return this.textSize; + } + }, { + key: "setHoverText", + value: function setHoverText() { + this.hoverText = this.getValueByKey("hoverText", ""); + } + }, { + key: "setSize", + value: function setSize() { + this.textSize = parseInt(this.getValueByKey("size", "20"), 10); + } + }, { + key: "setColor", + value: function setColor() { + this.color = this.getValueByKey("color", _$$_REQUIRE(_dependencyMap[6]).colors.black); + } + }, { + key: "setButtons", + value: function setButtons() { + this.buttons = this.getArrayByKey("buttons").map(function (button) { + return new (_$$_REQUIRE(_dependencyMap[7]).ArticleIcon)(button); + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[8]).BaseModel); +},1864,[3,6,7,11,13,14,438,1865,1849]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ArticleIcon = 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])); + + 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 ArticleIcon = exports.ArticleIcon = function (_Icon) { + function ArticleIcon(json) { + (0, _classCallCheck2.default)(this, ArticleIcon); + return _callSuper(this, ArticleIcon, [json, "article-header"]); + } + + (0, _inherits2.default)(ArticleIcon, _Icon); + return (0, _createClass2.default)(ArticleIcon); + }(_$$_REQUIRE(_dependencyMap[6]).Icon); +},1865,[3,7,6,11,13,14,1810]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Navigation = 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])); + + 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 Navigation = exports.Navigation = function (_BaseModel) { + function Navigation(json) { + var _this; + + (0, _classCallCheck2.default)(this, Navigation); + _this = _callSuper(this, Navigation, [json]); + _this.back = new (_$$_REQUIRE(_dependencyMap[6]).Section)(json.back); + _this.forward = new (_$$_REQUIRE(_dependencyMap[6]).Section)(json.forward); + return _this; + } + + (0, _inherits2.default)(Navigation, _BaseModel); + return (0, _createClass2.default)(Navigation, [{ + key: "getBack", + value: function getBack() { + return this.back; + } + }, { + key: "getForward", + value: function getForward() { + return this.forward; + } + }, { + key: "getButtonByAction", + value: function getButtonByAction(action) { + var button; + + if (this.getBack()) { + button = this.getBack().buttons.find(function (icon) { + return icon.getAction() === action; + }); + } + + if (!button && this.getForward()) { + button = this.getForward().buttons.find(function (icon) { + return icon.getAction() === action; + }); + } + + return button; + } + }]); + }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); +},1866,[3,6,7,11,13,14,1864,1849]); +__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 _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var Analytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _Paywall = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _PushHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _optionspageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _EpaperLayoutConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + 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 GlobalConfig = exports.default = function () { + function GlobalConfig() { + (0, _classCallCheck2.default)(this, GlobalConfig); + } + + return (0, _createClass2.default)(GlobalConfig, null, [{ + key: "initMachineId", + value: function () { + var _initMachineId = (0, _asyncToGenerator2.default)(function* () { + if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isIOS()) { + if (!global.machineId) { + var machineId = yield _PaywallHelper.default.getMachineIdFromUserDefaults(); + + if (!machineId) { + machineId = yield global.getUserSettings().getMachineId(); + } + + if (machineId) { + machineId = machineId.split(",")[0]; + } else { + try { + machineId = yield _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getRandomUUID(); + } catch (error) {} + } + + global.machineId = machineId.replace(/-/g, "").toUpperCase(); + } + } else { + var uniqueId = _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getDeviceUniqueId(); + + global.machineId = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getMd5(uniqueId).toUpperCase(); + } + + yield global.getUserSettings().setMachineId(global.machineId); + }); + + function initMachineId() { + return _initMachineId.apply(this, arguments); + } + + return initMachineId; + }() + }, { + key: "initMainPSetup", + value: function () { + var _initMainPSetup = (0, _asyncToGenerator2.default)(function* () { + var firstInstall = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var _global$getNewsmemory = global.getNewsmemoryStartupParams(), + startupPSetup = _global$getNewsmemory.pSetup, + startupMachine = _global$getNewsmemory.machine, + preview = _global$getNewsmemory.preview, + oneTimeToken = _global$getNewsmemory.onetimetoken; + + var extraParams = { + fromCache: !isAppUpgraded + }; + + if (firstInstall) { + extraParams.firstInstall = 1; + } + + if ((!startupPSetup || !startupMachine) && (preview || oneTimeToken)) { + extraParams.preview = preview; + extraParams.oneTimeToken = oneTimeToken; + } + + return global.getPaperSetupManager().init(undefined, undefined, extraParams); + }); + + function initMainPSetup() { + return _initMainPSetup.apply(this, arguments); + } + + return initMainPSetup; + }() + }, { + key: "initRssIndex", + value: function () { + var _initRssIndex = (0, _asyncToGenerator2.default)(function* () { + var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRSSActivePSetup(); + var isAppUpgraded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var pSetup = pSetupConfig.pSetup, + paper = pSetupConfig.paper; + var rssIndexInitResult = yield global.getRssIndexManager().init({ + pSetup: pSetup, + paper: paper, + fromCache: !isAppUpgraded + }); + return rssIndexInitResult; + }); + + function initRssIndex() { + return _initRssIndex.apply(this, arguments); + } + + return initRssIndex; + }() + }, { + key: "initCustomFonts", + value: function () { + var _initCustomFonts = (0, _asyncToGenerator2.default)(function* () { + var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); + var fontsManager = global.getFontsManager(); + var result = yield fontsManager.init(pSetupConfig); + + if (!result) {} + }); + + function initCustomFonts() { + return _initCustomFonts.apply(this, arguments); + } + + return initCustomFonts; + }() + }, { + key: "initEpaperLayoutConfig", + value: function () { + var _initEpaperLayoutConfig = (0, _asyncToGenerator2.default)(function* () { + var fromPublicationsPage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "epaper layout config start"); + var userSettings = global.getUserSettings(); + var epaperLayoutConfig = global.getEpaperLayoutConfig(); + var localeConfig = global.getLocaleConfig(); + var startedAsTablet = userSettings.startedAsTablet, + lastEpaperLayoutConfig = userSettings.lastEpaperLayoutConfig; + + var checkIfDeviceIsChanged = startedAsTablet !== _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet(); + + var config = global.getActivePSetup(); + + if (!(config instanceof _$$_REQUIRE(_dependencyMap[20]).PaperSetupConfig)) { + config = global.getMainPSetup(); + } + + var _config = config, + isLite = _config.isLite, + hybridVersion = _config.hybridVersion, + pSetup = _config.pSetup, + pSetupFileTime = _config.pSetupFileTime, + language = _config.language; + + var _global$getRSSActiveP = global.getRSSActivePSetup(), + rssIsEnabled = _global$getRSSActiveP.rssIsEnabled; + + var newConfig = ""; + + try { + var lastHybridVersion = yield _ApplicationManager.default.getHybridVersion(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "get hybrid version completed"); + var hybridUpdated = hybridVersion !== lastHybridVersion; + var type = _EpaperLayoutConfig.default.Type.normal; + + if (isLite && rssIsEnabled) { + type = _EpaperLayoutConfig.default.Type.hybridLite; + } else if (isLite) { + type = _EpaperLayoutConfig.default.Type.lite; + } else if (rssIsEnabled) { + type = _EpaperLayoutConfig.default.Type.hybrid; + } + + newConfig = type + "_" + pSetup + "_" + pSetupFileTime + "_" + language; + var changedConfig = newConfig !== lastEpaperLayoutConfig; + + if (hybridUpdated || lastEpaperLayoutConfig && changedConfig) { + try { + yield _NewsmemoryAJAX.default.getApplication(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "get application completed"); + } catch (e) {} + + if (hybridUpdated) { + yield _ApplicationManager.default.updateHybridVersion(hybridVersion); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "update hybrid version completed"); + } + } + + var fromRemote = changedConfig || hybridUpdated || checkIfDeviceIsChanged; + yield epaperLayoutConfig.init(pSetup, type, fromRemote, fromPublicationsPage); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init epaper layout config completed"); + } catch (e) {} + + userSettings.setLastEpaperLayoutConfig(newConfig); + userSettings.setStartedAsTablet(_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet()); + + try { + yield _articleComponent.default.initArticleTextCss(); + } catch (e) {} + + if (language !== localeConfig.getLanguage()) { + yield localeConfig.init(config); + } + + GlobalConfig.initCustomStyles(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "epaper layout config end"); + }); + + function initEpaperLayoutConfig() { + return _initEpaperLayoutConfig.apply(this, arguments); + } + + return initEpaperLayoutConfig; + }() + }, { + key: "initContext", + value: function initContext() { + (0, _$$_REQUIRE(_dependencyMap[19]).setFonts)({ + fontBold: global.getFontsConfig().fontBold, + fontMedium: global.getFontsConfig().fontMedium, + fontRegular: global.getFontsConfig().fontRegular, + allowFontScaling: global.getUserSettings().allowFontScaling + }); + } + }, { + key: "initNewsmemoryConfig", + value: function () { + var _initNewsmemoryConfig = (0, _asyncToGenerator2.default)(function* () { + var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getMainPSetup(); + var defaultConnectivityTimestamp = pSetupConfig.defaultConnectivityTimestamp; + + try { + yield global.getNewsmemoryConfig().init(); + global.getNewsmemoryConfig().checkNetworkTimestamp(defaultConnectivityTimestamp); + } catch (e) {} + }); + + function initNewsmemoryConfig() { + return _initNewsmemoryConfig.apply(this, arguments); + } + + return initNewsmemoryConfig; + }() + }, { + key: "initRssConfig", + value: function () { + var _initRssConfig = (0, _asyncToGenerator2.default)(function* () { + var _global$getRSSActiveP2 = global.getRSSActivePSetup(), + rssIsEnabled = _global$getRSSActiveP2.rssIsEnabled; + + if (rssIsEnabled) { + try { + yield global.getRssFavoritesConfig().init(); + } catch (e) {} + + try { + if (global.getRssIndex().drawerContainsVerticals()) { + yield global.getVerticalsConfig().init(); + } + } catch (e) {} + + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init rss config completed"); + } + + try { + var _global$getRssIndex = global.getRssIndex(), + paywallEnabled = _global$getRssIndex.paywallEnabled; + + if (paywallEnabled) { + yield _PaywallLoginStatus.default.initUserStatus(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init paywall completed"); + } + } catch (e) {} + }); + + function initRssConfig() { + return _initRssConfig.apply(this, arguments); + } + + return initRssConfig; + }() + }, { + key: "initAds", + value: function () { + var _initAds = (0, _asyncToGenerator2.default)(function* () { + try { + yield global.getAdsConfig().init(); + } catch (e) {} + }); + + function initAds() { + return _initAds.apply(this, arguments); + } + + return initAds; + }() + }, { + key: "initSSLCertificates", + value: function () { + var _initSSLCertificates = (0, _asyncToGenerator2.default)(function* () { + try { + yield global.getSslConfig().init(global.getMainPSetup()); + } catch (e) {} + }); + + function initSSLCertificates() { + return _initSSLCertificates.apply(this, arguments); + } + + return initSSLCertificates; + }() + }, { + key: "initCustomStyles", + value: function initCustomStyles() { + var _global$getActivePSet = global.getActivePSetup(), + disableRnStyles = _global$getActivePSet.disableRnStyles, + rnStyles = _global$getActivePSet.rnStyles; + + _$$_REQUIRE(_dependencyMap[21]).Css.applyCustomStyles(!disableRnStyles ? rnStyles : undefined); + } + }, { + key: "updateCustomStyles", + value: function updateCustomStyles(activeTheme) { + return _$$_REQUIRE(_dependencyMap[21]).Css.updateCustomStyles(activeTheme); + } + }, { + key: "initLocale", + value: function () { + var _initLocale = (0, _asyncToGenerator2.default)(function* () { + var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); + + try { + yield global.getLocaleConfig().init(pSetupConfig); + } catch (e) {} + }); + + function initLocale() { + return _initLocale.apply(this, arguments); + } + + return initLocale; + }() + }, { + key: "initUserConfig", + value: function () { + var _initUserConfig = (0, _asyncToGenerator2.default)(function* () { + try { + var userSettings = global.getUserSettings(); + yield userSettings.init(); + var enableDebugOverlay = userSettings.enableDebugOverlay; + (0, _$$_REQUIRE(_dependencyMap[19]).setDebugOperationsEnabled)(enableDebugOverlay); + } catch (e) {} + }); + + function initUserConfig() { + return _initUserConfig.apply(this, arguments); + } + + return initUserConfig; + }() + }, { + key: "initConfigurations", + value: function () { + var _initConfigurations = (0, _asyncToGenerator2.default)(function* () { + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init configurations"); + yield GlobalConfig.initUserConfig(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init user config completed"); + var mainPSetupConfig = global.getMainPSetup(); + var activePSetupConfig = global.getActivePSetup(); + yield GlobalConfig.initCustomFonts(mainPSetupConfig); + + if (activePSetupConfig.paper !== mainPSetupConfig.paper) { + yield GlobalConfig.initCustomFonts(activePSetupConfig); + } + + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init custom fonts completed"); + yield GlobalConfig.initSSLCertificates(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init SSL certs completed"); + yield GlobalConfig.initNewsmemoryConfig(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init newsmemory config completed"); + yield GlobalConfig.initAds(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init ads completed"); + yield GlobalConfig.initRssConfig(); + GlobalConfig.initContext(); + GlobalConfig.initCustomStyles(); + yield Analytics.initAnalytics(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init analytics completed"); + }); + + function initConfigurations() { + return _initConfigurations.apply(this, arguments); + } + + return initConfigurations; + }() + }, { + key: "getNewsmemoryScreenVersion", + value: function getNewsmemoryScreenVersion() { + var _global$getMainPSetup = global.getMainPSetup(), + newsmemoryToUse = _global$getMainPSetup.newsmemoryToUse; + + switch (newsmemoryToUse) { + case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.REACT: + return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; + + case _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS.HTML5: + return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.HTML5; + + default: + return _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_SCREENS_NAME.REACT; + } + } + }, { + key: "getNetworkLabel", + value: function getNetworkLabel(network) { + if (_newsmemoryUtils.default.isModeLow(network)) { + return "Roaming"; + } + + if (_newsmemoryUtils.default.isModeMid(network)) { + return "3G"; + } + + if (_newsmemoryUtils.default.isModeFull(network)) { + return "WiFi"; + } + + return network; + } + }, { + key: "getDeviceInfoText", + value: function getDeviceInfoText() { + var _global$getMainPSetup2 = global.getMainPSetup(), + pSetup = _global$getMainPSetup2.pSetup, + layoutSubStyle = _global$getMainPSetup2.layoutSubStyle, + showNativeOptionsPage = _global$getMainPSetup2.showNativeOptionsPage, + showNativeOptionsPageFallbackUrl = _global$getMainPSetup2.showNativeOptionsPageFallbackUrl; + + var machine = global.getAppServer(); + + var mainOptionspageVersion = _optionspageUtils.default.optionPageVersion(); + + var activePSetupConfig = global.getActivePSetup(); + var activePSetup = activePSetupConfig.pSetup, + activeLayoutSubStyle = activePSetupConfig.layoutSubStyle, + activeMachine = activePSetupConfig.machine, + activeShowNativeOptionsPageFallbackUrl = activePSetupConfig.showNativeOptionsPageFallbackUrl; + var activePSetupInfo = ""; + + if (activePSetup !== pSetup) { + var activeOptionspageVersion = _optionspageUtils.default.optionPageVersion(activePSetupConfig); + + activePSetupInfo = " ACTIVE PSETUP: " + activePSetup + "\n ACTIVE SUB LAYOUT: " + activeLayoutSubStyle + "\n"; + activePSetupInfo += activeMachine !== machine ? " ACTIVE DOMAIN: " + activeMachine + "\n" : ""; + activePSetupInfo += (mainOptionspageVersion !== activeOptionspageVersion ? " ACTIVE OPTIONS PAGE: " + activeOptionspageVersion + "\n" : "") + "\n"; + + if (showNativeOptionsPageFallbackUrl) { + var fallbackVersion = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getLastPathSegment(_$$_REQUIRE(_dependencyMap[18]).StringUtils.removeLastSlash(activeShowNativeOptionsPageFallbackUrl)); + + activePSetupInfo += " ACTIVE NATIVE OPTIONS PAGE FALLBACK: " + fallbackVersion + "\n"; + } + } + + var paywallInfo = ""; + + var _global$getRssIndex2 = global.getRssIndex(), + paywallEnabled = _global$getRssIndex2.paywallEnabled; + + if (paywallEnabled) { + var version = _Paywall.default.config.version; + + if (version && _$$_REQUIRE(_dependencyMap[22]).baseVer !== version) { + paywallInfo = " PAYWALL BASE VERSION: " + _$$_REQUIRE(_dependencyMap[22]).baseVer + "\n"; + paywallInfo += " PAYWALL ACTUAL VERSION: " + version + "\n"; + } else { + paywallInfo += " PAYWALL VERSION: " + _$$_REQUIRE(_dependencyMap[22]).baseVer + "\n"; + } + + paywallInfo += "\n"; + } + + var connectionInfo = ""; + + var deviceConnInfo = _$$_REQUIRE(_dependencyMap[18]).NetworkUtils.connectionInfo; + + if (deviceConnInfo) { + var type = deviceConnInfo.type, + effectiveType = deviceConnInfo.effectiveType; + + if (type) { + connectionInfo = " CONNECTION TYPE: " + type + "\n"; + + if (effectiveType && effectiveType !== "unknown") { + connectionInfo += " CONNECTION BAND: " + effectiveType + "\n"; + } + } + } + + var epaperModeInfo = "\n"; + var newsmemoryConfig = global.getNewsmemoryConfig(); + var twoFingersTapToArticle = newsmemoryConfig.twoFingersTapToArticle, + readModeEnabled = newsmemoryConfig.readModeEnabled, + columnView = newsmemoryConfig.columnView, + graphSize = newsmemoryConfig.graphSize, + fontSize = newsmemoryConfig.fontSize, + network = newsmemoryConfig.network, + lastDbNetwork = newsmemoryConfig.lastDbNetwork, + lastDbDownloadSpeed = newsmemoryConfig.lastDbDownloadSpeed; + var epaperDownloadMode = GlobalConfig.getNetworkLabel(network); + epaperModeInfo += " EPAPER DOWNLOAD MODE: " + epaperDownloadMode + "\n"; + + if (!_$$_REQUIRE(_dependencyMap[18]).JSUtils.isNull(lastDbNetwork) && lastDbNetwork !== network) { + epaperModeInfo += " EPAPER LAST DB DOWNLOAD MODE: " + GlobalConfig.getNetworkLabel(lastDbNetwork) + "\n"; + } + + if (!_$$_REQUIRE(_dependencyMap[18]).JSUtils.isNull(lastDbDownloadSpeed)) { + epaperModeInfo += " EPAPER LAST DB DOWNLOAD SPEED: " + _$$_REQUIRE(_dependencyMap[18]).JSUtils.truncateFloat(lastDbDownloadSpeed) + " Kbps\n"; + } + + if (_$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet()) { + var epaperMode = _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.BROWSE; + + if (twoFingersTapToArticle) { + epaperMode = readModeEnabled ? _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.READ : _$$_REQUIRE(_dependencyMap[20]).NEWSMEMORY_START_MODE.SWIPE; + } + + epaperModeInfo += " ACTIVE EPAPER MODE: " + epaperMode + "\n"; + var columnViewInfo = columnView > 0 ? "enabled" : "disabled"; + epaperModeInfo += " COLUMN MODE: " + columnViewInfo + "\n"; + } + + var navigationArrowsInfo = "fixed"; + + if (newsmemoryConfig.pagesNavigationButtonsAnimated()) { + navigationArrowsInfo = "animated"; + } else if (newsmemoryConfig.pagesNavigationButtonsHidden()) { + navigationArrowsInfo = "hidden"; + } + + epaperModeInfo += " NAVIGATION ARROWS: " + navigationArrowsInfo + "\n"; + var articleModeInfo = "only text"; + + if (newsmemoryConfig.isArticleModeShowTextAndGraph()) { + articleModeInfo = "text and graph"; + } else if (newsmemoryConfig.isArticleModeShowAll()) { + articleModeInfo = "all"; + } + + epaperModeInfo += " ARTICLE MODE: " + articleModeInfo + "\n"; + epaperModeInfo += " FONT SIZE: " + fontSize + "%\n"; + epaperModeInfo += " GRAPH SIZE: " + graphSize + "%\n"; + var nativeOptInfo = ""; + + if (showNativeOptionsPageFallbackUrl) { + var _fallbackVersion = _$$_REQUIRE(_dependencyMap[18]).StringUtils.getLastPathSegment(_$$_REQUIRE(_dependencyMap[18]).StringUtils.removeLastSlash(showNativeOptionsPageFallbackUrl)); + + nativeOptInfo = " NATIVE OPTIONS PAGE FALLBACK: " + _fallbackVersion + "\n"; + } else if (showNativeOptionsPage) { + var optVer = "n/d"; + + var _OptionalPackages$get = _optionalPackageUtils.default.getNativeOptionsPage(), + Methods = _OptionalPackages$get.Methods; + + if (Methods && typeof Methods.getVersion === "function") { + optVer = Methods.getVersion(); + } + + nativeOptInfo = " NATIVE OPTIONS PAGE: " + optVer + "\n"; + } + + var _PushHelper$getRegist = _PushHelper.default.getRegistrationInfo(), + token = _PushHelper$getRegist.token, + userId = _PushHelper$getRegist.userId, + serverMessage = _PushHelper$getRegist.serverMessage, + service = _PushHelper$getRegist.service; + + return " PSETUP: " + pSetup + "\n" + (" SUB LAYOUT: " + layoutSubStyle + "\n") + (" DOMAIN: " + machine + "\n") + (" OPTIONS PAGE: " + mainOptionspageVersion + "\n\n") + ("" + nativeOptInfo) + ("" + activePSetupInfo) + ("" + paywallInfo) + (" APP VERSION: " + _deviceUtils.default.getTextVersionName() + "\n") + (" APP CODE: " + _deviceUtils.default.getAppCode() + "\n") + (" BUNDLE VERSION: " + _deviceUtils.default.getBundleVersion() + "\n") + (" IS USING HERMES: " + (_deviceUtils.default.isUsingHermes() ? "YES" : "NO") + "\n") + (" IS ADDON: " + (global.isTaAddon() ? "YES" : "NO") + "\n") + (" RESOLUTION: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getResolution() + "\n") + (" SAFE AREA INSETS: " + JSON.stringify(_deviceUtils.default.getSafeAreaInsets()) + "\n") + (" SAFE AREA: " + JSON.stringify(_deviceUtils.default.getSafeArea()) + "\n") + (" SDK: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemSDK() + "\n") + (" OS VERSION: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemVersion() + "\n") + (" OS: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getSystemName() + "\n") + (" BRAND: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getBrand() + "\n") + (" MODEL: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.model() + "\n") + (" MODEL ID: " + _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.getDeviceId() + "\n\n") + (" MACHINEID: " + global.machineId + "\n") + ("" + connectionInfo) + (" IP ADDRESS: " + _$$_REQUIRE(_dependencyMap[18]).NetworkUtils.getIP() + "\n\n") + (" PUSH SERVICE: " + service + "\n") + (" PUSH TOKEN: " + token + "\n") + (" PUSH USER ID: " + userId + "\n") + (" PUSH SERVER MESSAGE: " + serverMessage + "\n") + ("" + epaperModeInfo); + } + }, { + key: "getUsedSpaceText", + value: function getUsedSpaceText() { + var _global$getUsedSpace = global.getUsedSpace(), + usedSpace = _global$getUsedSpace.usedSpace, + numberOfPapersDirs = _global$getUsedSpace.numberOfPapersDirs, + numberOfIssuesDirs = _global$getUsedSpace.numberOfIssuesDirs, + numberOfPagesDirs = _global$getUsedSpace.numberOfPagesDirs; + + return "\n USED SPACE: " + _$$_REQUIRE(_dependencyMap[18]).StringUtils.sizeToString(usedSpace) + "\n" + (" PAPERS: " + numberOfPapersDirs + "\n") + (" ISSUES: " + numberOfIssuesDirs + "\n") + (" PAGES: " + numberOfPagesDirs + "\n"); + } + }]); + }(); +},1867,[3,270,6,7,406,864,1868,1869,1893,1878,1895,434,629,881,880,1923,405,1952,438,817,866,819,1879]); +__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" + } + }; +},1868,[3,270,6,7,438]); +__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(); + } +},1869,[3,270,1870,1872,817,1875,438]); +__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("_"); + } + }]); + }(); +},1870,[3,6,7,436,1871,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] || ""; + } + }]); + }(); +},1871,[3,6,7,18]); +__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(); +},1872,[3,270,7,6,1873,1874,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892]); +__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; + }() + }]); + }(); +},1873,[3,270,6,7,881,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); +},1874,[3,270,6,7,11,13,14,881,1875,438,1877]); +__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 {}; + } +},1875,[1870,3,434,629,438,1876]); +__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" + }; +},1876,[]); +__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); +},1877,[3,6,7,11,13,14,1878,434,438,1880]); +__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 = {}; +},1878,[3,270,6,7,1868,1879]); +__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"; +},1879,[]); +__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); +},1880,[3,6,7,11,85,13,14,438,1881]); +__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__; + } + }]); + }(); +},1881,[3,6,7,1882]); +__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 (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 + } || {}; + } + } + }, { + 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; +},1882,[3,270,6,7,18,406,881,868,438,817,1875]); +__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); +},1883,[3,4,270,22,6,7,11,13,14,881,1875,438,1877]); +__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); +},1884,[3,270,6,7,11,13,14,407,1875,1881]); +__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); +},1885,[3,6,7,11,13,14,881,1875,1876,1880]); +__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); +},1886,[3,270,6,7,11,13,14,1870,881,1875,1880]); +__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); +},1887,[3,6,7,11,13,14,1870,881,1875,438,1880]); +__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); +},1888,[3,270,6,7,11,85,13,14,436,881,1875,438,1876,1880]); +__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); +},1889,[3,4,6,7,11,85,13,14,881,1875,438,1880]); +__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); +},1890,[3,270,6,7,11,13,14,881,1875,1880]); +__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); +},1891,[3,4,6,7,11,13,14,1870,436,881,1875,564,438,1880]); +__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); +},1892,[3,4,6,7,11,13,14,881,1875,1876,438,1880]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = 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 _PaywallHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _PaywallAJAX = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _PaywallLoginStatus = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _excluded = ["user"]; + + 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 Paywall = exports.default = function () { + function Paywall() { + (0, _classCallCheck2.default)(this, Paywall); + } + + return (0, _createClass2.default)(Paywall, null, [{ + key: "setContainerInstance", + value: function setContainerInstance(instance) { + Paywall.containerInstance = instance; + } + }, { + key: "initConfig", + value: function () { + var _initConfig = (0, _asyncToGenerator2.default)(function* () { + var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; + + _PaywallHelper.default.setStorageName("paywall_" + appId); + + var config = yield _PaywallHelper.default.getConfig(); + + if (config) { + Paywall.config = config; + } + }); + + function initConfig() { + return _initConfig.apply(this, arguments); + } + + return initConfig; + }() + }, { + key: "setConfig", + value: function setConfig(config) { + Paywall.config = config; + + _PaywallHelper.default.setConfig(config); + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + var appId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getRssIndex().paywallAppId; + var strictMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + if (!appId) { + return false; + } + + Paywall.appId = appId; + yield Paywall.initConfig(); + yield _PaywallLoginStatus.default.initUserStatus(); + + _PaywallAJAX.default.init(appId); + + Paywall.strictMode = strictMode; + Paywall.registerToConnectivityChangeEvent(); + Paywall.firstProductsLeftPopupShown = yield Paywall.isFirstProductsLeftPopupAlreadyShown(); + + if (_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { + var result = yield Paywall.downloadConfiguration(); + + if (Paywall.initialize) { + Paywall.checkOfflineAccessedProducts(); + + if (_PaywallLoginStatus.default.isUserLoggedIn()) { + if (_PaywallLoginStatus.default.isLoginInvalid()) { + Paywall.logout(); + } else { + Paywall.validateUser(); + } + } else { + Paywall.updateAccountLabel(false); + + if (!Paywall.autoLogin()) { + var show_welcome_popup = Paywall.config.show_welcome_popup; + + if (show_welcome_popup == 1) { + if (!Paywall.isWelcomePopupAlreadyShown()) { + Paywall.welcome(); + } + } + } + } + } + + return result; + } + + if (Paywall.config) { + var sessionString = Paywall.config.sessionString; + + if (sessionString) { + Paywall.initialize = true; + Paywall.updateAccountLabel(_PaywallLoginStatus.default.isUserLoggedIn()); + } + } + + return true; + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "checkOfflineAccessedProducts", + value: function () { + var _checkOfflineAccessedProducts = (0, _asyncToGenerator2.default)(function* () { + Paywall.offlineAccessedProductsList = yield _PaywallHelper.default.getOfflineProductsList(); + + if (Paywall.offlineAccessedProductsList && Paywall.offlineAccessedProductsList.length > 0) { + Paywall.offlineAccessedProductsList.forEach(function (ACI) { + Paywall.validate(ACI, false); + }); + Paywall.offlineAccessedProductsList = []; + + _PaywallHelper.default.setOfflineProductsList([]); + } + }); + + function checkOfflineAccessedProducts() { + return _checkOfflineAccessedProducts.apply(this, arguments); + } + + return checkOfflineAccessedProducts; + }() + }, { + key: "registerToConnectivityChangeEvent", + value: function registerToConnectivityChangeEvent() { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.rm(Paywall.onConnectivityChange); + + Paywall.onConnectivityChange = _$$_REQUIRE(_dependencyMap[10]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, function (_ref) { + var online = _ref.online; + + if (online) { + Paywall.checkOfflineAccessedProducts(); + } + }); + } + }, { + key: "downloadConfiguration", + value: function () { + var _downloadConfiguration = (0, _asyncToGenerator2.default)(function* () { + Paywall.initialize = false; + Paywall.forceAutoLogin = true; + Paywall.accessedProductsList = yield Paywall.getAccessedProductsList(); + + try { + var outcome = yield _PaywallAJAX.default.downloadConfiguration(); + Paywall.setConfig(outcome); + var _Paywall$config = Paywall.config, + sessionString = _Paywall$config.sessionString, + disable_paywall = _Paywall$config.disable_paywall, + user_info = _Paywall$config.user_info; + + if (disable_paywall == 1) { + return true; + } + + if (sessionString) { + _PaywallAJAX.default.setSessionString(sessionString); + + Paywall.initialize = true; + return true; + } + } catch (e) {} + + return false; + }); + + function downloadConfiguration() { + return _downloadConfiguration.apply(this, arguments); + } + + return downloadConfiguration; + }() + }, { + key: "getProductType", + value: function getProductType(ACI) { + var _productType; + + var _Paywall$config2 = Paywall.config, + default_product_type = _Paywall$config2.default_product_type, + products_rules = _Paywall$config2.products_rules; + + if (_$$_REQUIRE(_dependencyMap[9]).JSUtils.isEmpty(products_rules == null ? undefined : products_rules.rules)) { + return default_product_type; + } + + var productType; + + var _loop = function _loop() { + var rule = products_rules.rules[r]; + var ruleSplit = rule.split(":"); + var condition = ruleSplit[0].trim(); + var currentProductType = ruleSplit[1].trim(); + var categoriesOR = []; + var conditionORSplit = condition.split(" OR "); + conditionORSplit.forEach(function (conditionOR) { + var conditionANDSplit = conditionOR.split(" AND "); + + if (conditionANDSplit.length > 1) { + categoriesOR.push(conditionANDSplit); + } else { + categoriesOR.push(conditionOR); + } + }); + + for (var i = 0; i < categoriesOR.length; i++) { + var categoryOR = categoriesOR[i]; + + if (Array.isArray(categoryOR)) { + var respectCondition = true; + + for (var j = 0; j < categoryOR.length; j++) { + var categoryAND = categoryOR[j]; + + if (!Paywall.checkRuleCondition(ACI, categoryAND)) { + respectCondition = false; + break; + } + } + + if (respectCondition) { + productType = currentProductType; + break; + } + } else if (Paywall.checkRuleCondition(ACI, categoryOR)) { + productType = currentProductType; + break; + } + } + }; + + for (var r = 0; r < products_rules.rules.length; r++) { + _loop(); + } + + return (_productType = productType) != null ? _productType : default_product_type; + } + }, { + key: "checkRuleCondition", + value: function checkRuleCondition(ACI, condition) { + var notCondition = condition.indexOf("NOT ") !== -1; + + if (notCondition) { + condition = condition.replace("NOT ", "").trim(); + } + + try { + var matches = ACI.match(new RegExp(condition)) !== null; + return notCondition !== matches; + } catch (e) { + return false; + } + } + }, { + key: "isFreeProduct", + value: function isFreeProduct(productType) { + return productType === Paywall.config.free_product_type; + } + }, { + key: "validate", + value: function () { + var _validate = (0, _asyncToGenerator2.default)(function* (ACI) { + var showPopups = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + + if (!Paywall.initialize) { + var _global$getRssIndex = global.getRssIndex(), + attachPaywallToArticle = _global$getRssIndex.attachPaywallToArticle; + + if (Paywall.shouldShowHardPaywall() && !attachPaywallToArticle) { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, + forceFullscreen: true + }); + } else {} + + return true; + } + + if (Paywall.isAlreadyAccessed(ACI)) { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + ACI: ACI, + validated: true + }); + + return true; + } + + var productType = Paywall.getProductType(ACI); + + if (!productType || Paywall.isFreeProduct(productType)) { + return true; + } + + 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[12]).serverStatusCodes.SESSION_EXPIRED) { + var sessionResult = yield Paywall.handleSessionExpired(); + + if (sessionResult) { + if (Paywall.strictMode) { + var validationResult = yield Paywall.validate(ACI, showPopups); + return validationResult; + } + + Paywall.validate(ACI, showPopups); + } + } + } + + return true; + } + + var productsLeft = yield Paywall.getLastProductsLeft(); + + if (productsLeft && (productsLeft === _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS || productsLeft >= 0)) { + if (productsLeft !== _$$_REQUIRE(_dependencyMap[12]).UNLIMITED_ACCESS) { + Paywall.setLastProductsLeft(parseInt(productsLeft, 10) - 1); + } + + Paywall.offlineAccessedProductsList.push(ACI); + + _PaywallHelper.default.setOfflineProductsList(Paywall.offlineAccessedProductsList); + + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + ACI: ACI, + validated: true + }); + } else { + Paywall.showOfflineDialog(true); + + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_GO_BACK_HOME); + } + + return true; + }); + + function validate(_x) { + return _validate.apply(this, arguments); + } + + return validate; + }() + }, { + key: "handleValidationSuccess", + value: function handleValidationSuccess(ACI, outcome) { + var showPopups = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var hasAccess = true; + var productsLeft = outcome.productsLeft, + productType = outcome.productType; + var _Paywall$config3 = Paywall.config, + show_first_products_left_popup = _Paywall$config3.show_first_products_left_popup, + show_latest_products_left_popup = _Paywall$config3.show_latest_products_left_popup, + show_period_products_left_popup = _Paywall$config3.show_period_products_left_popup, + show_custom_products_left_popup = _Paywall$config3.show_custom_products_left_popup, + show_paywall = _Paywall$config3.show_paywall; + Paywall.setLastProductsLeft(productsLeft); + + 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) { + min_threshold = Paywall.config[productType].min_threshold; + } + + var period = parseInt(show_period_products_left_popup || 0, 10); + var custom = !!show_custom_products_left_popup && show_custom_products_left_popup.split(",").reduce(function (prev, current) { + return prev || parseInt(current, 10) === productsLeft; + }, false); + + if (showPopups && (show_first_products_left_popup == 1 && !Paywall.firstProductsLeftPopupShown || show_latest_products_left_popup == 1 && productsLeft < min_threshold || period > 0 && productsLeft % period === 0 || custom)) { + var _Paywall$containerIns; + + if (!Paywall.firstProductsLeftPopupShown) { + Paywall.setFirstProductsLeftPopupAlreadyShown(); + } + + (_Paywall$containerIns = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns.showPopup({ + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.productsLeft, + productsLeft: productsLeft, + ACI: ACI + }); + } + } else { + if (showPopups && show_paywall == 1) { + if (Paywall.needToAppendPaywallPopup(ACI)) { + _$$_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[12]).popupTypes.blocking, + ACI: ACI, + forceAutoLogin: Paywall.forceAutoLogin + }); + } + + Paywall.forceAutoLogin = false; + } + + hasAccess = false; + } + + if (hasAccess) { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_VALIDATE, { + ACI: ACI, + validated: true + }); + + Paywall.addToAccessedProductsList(ACI); + } + + return hasAccess; + } + }, { + key: "handleSessionExpired", + value: function () { + var _handleSessionExpired = (0, _asyncToGenerator2.default)(function* () { + var result = yield Paywall.downloadConfiguration(); + + if (!result) {} + + return result; + }); + + function handleSessionExpired() { + return _handleSessionExpired.apply(this, arguments); + } + + return handleSessionExpired; + }() + }, { + key: "validateUser", + value: function () { + var _validateUser = (0, _asyncToGenerator2.default)(function* () { + if (!Paywall.initialize) { + return; + } + + try { + var outcome = yield _PaywallAJAX.default.validateUser(); + Paywall.handleUserValidationSuccess(outcome); + } catch (e) { + if (e instanceof _PaywallAJAX.PaywallError && e.getCode() === _$$_REQUIRE(_dependencyMap[12]).serverStatusCodes.SESSION_EXPIRED) { + var sessionResult = yield Paywall.handleSessionExpired(); + + if (sessionResult) { + Paywall.validateUser(); + } + } + } + }); + + function validateUser() { + return _validateUser.apply(this, arguments); + } + + return validateUser; + }() + }, { + key: "handleUserValidationSuccess", + value: function handleUserValidationSuccess(outcome) { + var username = outcome.user, + isLogged = outcome.isLogged; + + if (!isLogged) { + if (!Paywall.autoLogin()) { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_LOGOUT); + + Paywall.handleLogoutSuccess(); + } + } else { + var _PaywallLoginStatus$g = _PaywallLoginStatus.default.getCredentials(), + user = _PaywallLoginStatus$g.user, + rest = (0, _objectWithoutProperties2.default)(_PaywallLoginStatus$g, _excluded); + + if (!user && username) { + _PaywallLoginStatus.default.remember(Object.assign({ + user: username + }, rest)); + } + + Paywall.updateAccountLabel(true); + } + } + }, { + key: "handleLoginSuccess", + value: function handleLoginSuccess(outcome, ACI, removePopupsAfterValidation) { + _PaywallLoginStatus.default.updateUserStatus(outcome); + + Paywall.updateAccountLabel(); + + var validationCallback = function validationCallback() {}; + + if (removePopupsAfterValidation) { + validationCallback = function validationCallback(hasAccess) { + if (hasAccess) { + Paywall.remove(); + } + }; + } else { + Paywall.remove(); + } + + if (ACI) { + Paywall.validate(ACI).then(validationCallback); + } + + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { + hideAds: _PaywallLoginStatus.default.isAdFree() + }); + } + }, { + key: "logout", + value: function () { + var _logout = (0, _asyncToGenerator2.default)(function* (ACI, manual) { + var result = false; + + if (Paywall.initialize) { + try { + var outcome = yield _PaywallAJAX.default.logout(); + + if (manual) { + _$$_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[12]).serverStatusCodes.SESSION_EXPIRED) { + var sessionResult = yield Paywall.handleSessionExpired(); + + if (sessionResult) { + result = yield Paywall.logout(ACI, manual); + } + } else {} + } + } else {} + + return result; + }); + + function logout(_x2, _x3) { + return _logout.apply(this, arguments); + } + + return logout; + }() + }, { + key: "handleLogoutSuccess", + value: function handleLogoutSuccess(outcome, ACI, manual) { + _PaywallLoginStatus.default.resetUserStatus(); + + Paywall.updateAccountLabel(); + + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.CHANGE_ADS_VISIBILITY, { + hideAds: false + }); + + if (outcome) { + Paywall.remove(); + + if (ACI) { + Paywall.validate(ACI); + } else if (manual) { + Paywall.account(); + } + } + } + }, { + key: "replaceExtIdInUrl", + value: function replaceExtIdInUrl(url) { + if (url && typeof url === "string") { + var _PaywallLoginStatus$g2; + + return url.replace("##extid##", (_PaywallLoginStatus$g2 = _PaywallLoginStatus.default.getExtid()) != null ? _PaywallLoginStatus$g2 : ""); + } + + return url; + } + }, { + key: "updateAccountLabel", + value: function updateAccountLabel() { + var loggedIn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _PaywallLoginStatus.default.isUserLoggedIn(); + + if (Paywall.initialize) { + var messages = Paywall.config.messages; + + if (messages) { + var userLoggedInText = messages.userLoggedInText, + userNotLoggedText = messages.userNotLoggedText; + var caption = loggedIn ? userLoggedInText : userNotLoggedText; + + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.PAYWALL_USER_STATUS_UPDATE, { + loggedIn: loggedIn, + caption: caption + }); + } + } + } + }, { + key: "autoLogin", + value: function autoLogin() { + var _Paywall$containerIns3; + + if (!Paywall.initialize) { + return false; + } + + var credentials = _PaywallLoginStatus.default.getCredentials(); + + if (!credentials) { + return false; + } + + var user = credentials.user, + pwdEncrypt = credentials.pwdEncrypt, + token = credentials.token; + + if (!token && (!user || !pwdEncrypt)) { + return false; + } + + if (token) {} else {} + + (_Paywall$containerIns3 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns3.showPopup({ + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.login, + isInvisible: true, + forceAutoLogin: true + }); + return true; + } + }, { + key: "isAlreadyAccessed", + value: function isAlreadyAccessed(ACI) { + return Paywall.accessedProductsList.findIndex(function (product) { + return product.ACI === ACI; + }) !== -1; + } + }, { + key: "getAccessedProductsList", + value: function () { + var _getAccessedProductsList = (0, _asyncToGenerator2.default)(function* () { + var productsList = yield _PaywallHelper.default.getAccessedProductsList(); + + if (productsList) { + var filteredProductsList = productsList.filter(function (product) { + return product.addTime + _$$_REQUIRE(_dependencyMap[12]).accessedProductsDuration >= Date.now(); + }); + + if (filteredProductsList.length < productsList.length) { + _PaywallHelper.default.setAccessedProductsList(filteredProductsList); + + return filteredProductsList; + } + + return productsList; + } + + return []; + }); + + function getAccessedProductsList() { + return _getAccessedProductsList.apply(this, arguments); + } + + return getAccessedProductsList; + }() + }, { + key: "addToAccessedProductsList", + value: function addToAccessedProductsList(ACI) { + var newEntry = { + ACI: ACI, + addTime: Date.now() + }; + Paywall.accessedProductsList.push(newEntry); + + _PaywallHelper.default.setAccessedProductsList(Paywall.accessedProductsList); + } + }, { + key: "isWelcomePopupAlreadyShown", + value: function () { + var _isWelcomePopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + return _PaywallHelper.default.isWelcomePopupAlreadyShown(); + }); + + function isWelcomePopupAlreadyShown() { + return _isWelcomePopupAlreadyShown.apply(this, arguments); + } + + return isWelcomePopupAlreadyShown; + }() + }, { + key: "setWelcomePopupAlreadyShown", + value: function setWelcomePopupAlreadyShown() { + _PaywallHelper.default.setWelcomePopupAlreadyShown(); + } + }, { + key: "isFirstProductsLeftPopupAlreadyShown", + value: function () { + var _isFirstProductsLeftPopupAlreadyShown = (0, _asyncToGenerator2.default)(function* () { + return _PaywallHelper.default.isFirstProductsLeftPopupAlreadyShown(); + }); + + function isFirstProductsLeftPopupAlreadyShown() { + return _isFirstProductsLeftPopupAlreadyShown.apply(this, arguments); + } + + return isFirstProductsLeftPopupAlreadyShown; + }() + }, { + key: "setFirstProductsLeftPopupAlreadyShown", + value: function setFirstProductsLeftPopupAlreadyShown() { + Paywall.firstProductsLeftPopupShown = true; + + _PaywallHelper.default.setFirstProductsLeftPopupAlreadyShown(); + } + }, { + key: "setLastProductsLeft", + value: function setLastProductsLeft(productsLeft) { + _PaywallHelper.default.setLastProductsLeft(productsLeft); + } + }, { + key: "getLastProductsLeft", + value: function () { + var _getLastProductsLeft = (0, _asyncToGenerator2.default)(function* () { + return _PaywallHelper.default.getLastProductsLeft(); + }); + + function getLastProductsLeft() { + return _getLastProductsLeft.apply(this, arguments); + } + + return getLastProductsLeft; + }() + }, { + key: "account", + value: function account() { + if (!_$$_REQUIRE(_dependencyMap[9]).NetworkUtils.isOnline()) { + Paywall.showOfflineDialog(); + return; + } + + if (Paywall.initialize) { + var _Paywall$containerIns4; + + 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 + }); + } else { + var _global$getRssIndex2 = global.getRssIndex(), + mustLoginToViewArticle = _global$getRssIndex2.mustLoginToViewArticle; + + if (mustLoginToViewArticle) { + _$$_REQUIRE(_dependencyMap[10]).EventRegister.emit(_events.default.OPEN_OPTIONSPAGE, { + tab: _$$_REQUIRE(_dependencyMap[11]).tabs.account, + forceFullscreen: true + }); + } else {} + } + } + }, { + key: "welcome", + value: function welcome() { + var _Paywall$containerIns5; + + (_Paywall$containerIns5 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns5.showPopup({ + type: _$$_REQUIRE(_dependencyMap[12]).popupTypes.welcome + }); + Paywall.setWelcomePopupAlreadyShown(); + } + }, { + key: "hidePopup", + value: function hidePopup() { + var _Paywall$containerIns6; + + (_Paywall$containerIns6 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns6.hidePopup(); + } + }, { + key: "unhidePopup", + value: function unhidePopup() { + var _Paywall$containerIns7; + + (_Paywall$containerIns7 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns7.unhidePopup(); + } + }, { + key: "remove", + value: function remove() { + var _Paywall$containerIns8; + + (_Paywall$containerIns8 = Paywall.containerInstance) == null ? undefined : _Paywall$containerIns8.removePopup(); + } + }, { + key: "showOfflineDialog", + value: function showOfflineDialog() { + var validate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var buttons = [{ + text: global.strings("btn_ok") + }]; + var message = validate ? global.strings("paywall_offline_warning") : global.strings("err_offline"); + + _$$_REQUIRE(_dependencyMap[13]).CustomAlert.alert("", message, buttons, { + cancelable: false + }); + } + }, { + key: "shouldShowHardPaywall", + value: function shouldShowHardPaywall() { + var _global$getRssIndex3 = global.getRssIndex(), + mustLoginToViewArticle = _global$getRssIndex3.mustLoginToViewArticle; + + if (mustLoginToViewArticle) { + var _global$getRSSActiveP = global.getRSSActivePSetup(), + loginStatus = _global$getRSSActiveP.loginStatus; + + if (loginStatus && !loginStatus.isLoggedIn()) { + return true; + } + } + + return false; + } + }, { + key: "needToAppendHardPaywall", + value: function needToAppendHardPaywall() { + var _global$getRssIndex4 = global.getRssIndex(), + attachPaywallToArticle = _global$getRssIndex4.attachPaywallToArticle; + + return Paywall.shouldShowHardPaywall() && attachPaywallToArticle; + } + }, { + key: "shouldAppendPaywallPopup", + value: function shouldAppendPaywallPopup() { + var style = Paywall.config.style; + + if (style) { + var attachPaywallToArticle = style.attachPaywallToArticle; + return attachPaywallToArticle === "1"; + } + + return false; + } + }, { + key: "shouldShowPaywall", + value: function shouldShowPaywall(ACI) { + return Paywall.shouldShowHardPaywall() || Paywall.needToAppendPaywallPopup(ACI); + } + }, { + key: "shouldAppendPaywall", + value: function shouldAppendPaywall() { + return Paywall.needToAppendHardPaywall() || Paywall.shouldAppendPaywallPopup(); + } + }, { + key: "needToAppendPaywallPopup", + value: function needToAppendPaywallPopup(ACI) { + var productType = Paywall.getProductType(ACI); + return Paywall.shouldAppendPaywallPopup() && productType && !Paywall.isFreeProduct(productType) && !Paywall.isAlreadyAccessed(ACI); + } + }, { + key: "needToAppendPaywall", + value: function needToAppendPaywall(ACI) { + return Paywall.needToAppendHardPaywall() || Paywall.needToAppendPaywallPopup(ACI); + } + }, { + key: "getArticlePreviewLength", + value: function getArticlePreviewLength() { + if (Paywall.needToAppendHardPaywall()) { + var _global$getRssIndex5 = global.getRssIndex(), + articlePreviewLength = _global$getRssIndex5.articlePreviewLength; + + return articlePreviewLength; + } + + if (Paywall.shouldAppendPaywallPopup()) { + var style = Paywall.config.style; + + if (style) { + var protectThreshold = style.protectThreshold; + return parseInt(protectThreshold, 10); + } + } + + return 0; + } + }, { + key: "getArticlePreviewMessage", + value: function getArticlePreviewMessage() { + if (Paywall.shouldAppendPaywallPopup()) { + var style = Paywall.config.style; + + if (style) { + var protectArticleMessage = style.protectArticleMessage; + return protectArticleMessage; + } + } + + return ""; + } + }, { + key: "getDecryptionKey", + value: function () { + var _getDecryptionKey = (0, _asyncToGenerator2.default)(function* (seed) { + try { + var result = yield _PaywallAJAX.default.getDecryptionKey(seed); + + if (result) { + var status = result.status, + key = result.key; + + if (status === "OK") { + return key; + } + } + } catch (e) {} + + return ""; + }); + + function getDecryptionKey(_x4) { + return _getDecryptionKey.apply(this, arguments); + } + + return getDecryptionKey; + }() + }]); + }(); + + Paywall.initialize = false; + Paywall.strictMode = false; + Paywall.config = {}; + Paywall.accessedProductsList = []; + Paywall.offlineAccessedProductsList = []; + Paywall.firstProductsLeftPopupShown = false; + Paywall.forceAutoLogin = true; +},1893,[3,4,270,6,7,1868,436,1894,1878,438,564,880,1879,814]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.PaywallError = 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 _wrapNativeSuper2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _axios = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _PaywallLoginStatus = _$$_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 PaywallError = exports.PaywallError = function (_Error) { + function PaywallError(code, message) { + var _this; + + (0, _classCallCheck2.default)(this, PaywallError); + _this = _callSuper(this, PaywallError); + _this.code = code; + _this.message = message; + return _this; + } + + (0, _inherits2.default)(PaywallError, _Error); + return (0, _createClass2.default)(PaywallError, [{ + key: "getCode", + value: function getCode() { + return this.code; + } + }, { + key: "getMessage", + value: function getMessage() { + return this.message; + } + }]); + }((0, _wrapNativeSuper2.default)(Error)); + + var PaywallAJAX = exports.default = function () { + function PaywallAJAX() { + (0, _classCallCheck2.default)(this, PaywallAJAX); + } + + return (0, _createClass2.default)(PaywallAJAX, null, [{ + key: "init", + value: function init(appId) { + PaywallAJAX.appId = appId; + } + }, { + key: "setSessionString", + value: function setSessionString(sessionString) { + PaywallAJAX.sessionString = sessionString; + } + }, { + key: "handleError", + value: function handleError(error) { + var message = error.message; + } + }, { + key: "simpleGet", + value: function () { + var _simpleGet = (0, _asyncToGenerator2.default)(function* (url) { + var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10000; + var message = "TIMEOUT"; + var retries = 0; + + do { + try { + var _yield$Axios$get = yield _axios.default.get(url, { + timeout: timeout + }), + status = _yield$Axios$get.status, + data = _yield$Axios$get.data; + + if (status === 200) { + if (data) { + return data; + } + } else { + message = "unexpected HTTP status code " + status + " for url " + url; + } + } catch (e) { + message = "failed to load " + url + ": " + e.message; + } + + retries++; + } while (retries < 3); + + PaywallAJAX.handleError({ + message: message + }); + return undefined; + }); + + function simpleGet(_x) { + return _simpleGet.apply(this, arguments); + } + + return simpleGet; + }() + }, { + key: "handleRequest", + value: function () { + var _handleRequest = (0, _asyncToGenerator2.default)(function* (url) { + var outcome; + var status = 0; + var message = "TIMEOUT"; + var retries = 0; + + do { + try { + var _yield$Axios$get2 = yield _axios.default.get(url, { + timeout: 30000 + }), + HTTPStatusCode = _yield$Axios$get2.status, + data = _yield$Axios$get2.data; + + if (HTTPStatusCode === 200 || HTTPStatusCode === 301 || HTTPStatusCode === 304) { + if (data) { + var error = data.error; + status = error.status; + message = error.message; + status = parseInt(status, 10); + + if (status === _$$_REQUIRE(_dependencyMap[11]).serverStatusCodes.SUCCESS) { + outcome = data.outcome; + } + } + } else { + status = HTTPStatusCode; + message = "unexpected HTTP status code " + HTTPStatusCode + " for url " + url; + } + } catch (e) { + message = "failed to load " + url + ": " + e.message; + } + + retries++; + } while (!outcome && retries < 3); + + if (outcome) { + return outcome; + } + + PaywallAJAX.handleError({ + message: message + }); + throw new PaywallError(status, message); + }); + + function handleRequest(_x2) { + return _handleRequest.apply(this, arguments); + } + + return handleRequest; + }() + }, { + key: "getBaseURL", + value: function getBaseURL() { + var baseURL; + + var _global$getUserSettin = global.getUserSettings(), + notificationEmail = _global$getUserSettin.notificationEmail; + + if (notificationEmail) { + var _StringUtils$parseNot = _$$_REQUIRE(_dependencyMap[12]).StringUtils.parseNotificationEmail(notificationEmail); + + baseURL = _StringUtils$parseNot.server; + } else if (PaywallAJAX.appId) { + var isHTTPS = global.isHTTPS(); + var appId = isHTTPS ? PaywallAJAX.appId.replace(_$$_REQUIRE(_dependencyMap[13]).HTTP_DOMAIN_SEPARATOR, _$$_REQUIRE(_dependencyMap[13]).HTTPS_DOMAIN_SEPARATOR) : PaywallAJAX.appId; + var separator = isHTTPS ? _$$_REQUIRE(_dependencyMap[13]).HTTPS_DOMAIN_SEPARATOR : _$$_REQUIRE(_dependencyMap[13]).HTTP_DOMAIN_SEPARATOR; + baseURL = appId + separator + _$$_REQUIRE(_dependencyMap[11]).serverBaseDomain; + } else { + baseURL = global.getAppServer(); + } + + return _$$_REQUIRE(_dependencyMap[12]).NetworkUtils.addDefaultProtocol(baseURL); + } + }, { + key: "getDefaultParams", + value: function getDefaultParams() { + var app = "A"; + + if (_$$_REQUIRE(_dependencyMap[12]).PlatformUtils.isAndroid()) { + app = _deviceUtils.default.isKindle() ? "K" : "G"; + } + + return { + app: app, + appPSetup: global.getAppPSetup(), + appVersion: _deviceUtils.default.getAppVersion(), + baseVer: _$$_REQUIRE(_dependencyMap[11]).baseVer + }; + } + }, { + key: "isServiceProtected", + value: function isServiceProtected(service) { + return _$$_REQUIRE(_dependencyMap[11]).protectedServices.includes(service); + } + }, { + key: "getBaseMeterURL", + value: function getBaseMeterURL() { + var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var meterParams = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getQuerystring(Object.assign({}, PaywallAJAX.getDefaultParams(), params)); + + return PaywallAJAX.getBaseURL() + "?meter&" + meterParams; + } + }, { + key: "getServiceURL", + value: function getServiceURL(service) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var _global = global, + machineId = _global.machineId; + machineId = machineId.split(",")[0]; + + var TAUID = _PaywallLoginStatus.default.getTAUID(); + + if (TAUID) { + machineId += "," + TAUID; + } + + params.ta_MACHINE_ID = machineId; + + if (PaywallAJAX.isServiceProtected(service)) { + var queryString = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getQuerystring(params); + + params.mac = PaywallAJAX.computeMac(queryString); + } + + return PaywallAJAX.getBaseMeterURL(Object.assign({ + service: service + }, params)); + } + }, { + key: "getConfigURL", + value: function getConfigURL() { + return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.config); + } + }, { + key: "getPopupURL", + value: function getPopupURL(popup) { + var extraParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var params = Object.assign({ + popup: popup + }, extraParams); + + if (_PaywallLoginStatus.default.isUserLoggedIn()) { + var credentials = _PaywallLoginStatus.default.getCredentials(); + + if (credentials != null && credentials.user) { + params.user = credentials.user; + } + + if (credentials != null && credentials.soPass) { + params.soPass = credentials.soPass; + } + } + + return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.popups, params); + } + }, { + key: "getValidationURL", + value: function getValidationURL(ACI, productType) { + var params = { + ACI: ACI, + productType: productType, + locallyLoggedIn: _PaywallLoginStatus.default.isUserLoggedIn() ? "1" : "0" + }; + return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.validate, params); + } + }, { + key: "getUserValidationURL", + value: function getUserValidationURL() { + var params = {}; + + var credentials = _PaywallLoginStatus.default.getCredentials(); + + if (credentials != null && credentials.user) { + params.user = credentials.user; + } + + return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.user_validate, params); + } + }, { + key: "getLogoutURL", + value: function getLogoutURL(ACI) { + var params = { + ACI: ACI + }; + + var credentials = _PaywallLoginStatus.default.getCredentials(); + + if (credentials != null && credentials.user) { + params.user = credentials.user; + } + + return PaywallAJAX.getServiceURL(_$$_REQUIRE(_dependencyMap[11]).services.logout, params); + } + }, { + key: "computeMac", + value: function computeMac(queryString) { + return _$$_REQUIRE(_dependencyMap[12]).StringUtils.getMd5(_$$_REQUIRE(_dependencyMap[12]).StringUtils.getMd5(queryString) + PaywallAJAX.sessionString); + } + }, { + key: "getDecryptionKeyURL", + value: function getDecryptionKeyURL() { + var seed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + return PaywallAJAX.getBaseMeterURL({ + getkey: seed + }); + } + }, { + key: "downloadConfiguration", + value: function () { + var _downloadConfiguration = (0, _asyncToGenerator2.default)(function* () { + var getConfigURL = PaywallAJAX.getConfigURL(); + return PaywallAJAX.handleRequest(getConfigURL); + }); + + function downloadConfiguration() { + return _downloadConfiguration.apply(this, arguments); + } + + return downloadConfiguration; + }() + }, { + key: "validate", + value: function () { + var _validate = (0, _asyncToGenerator2.default)(function* (ACI, productType) { + var getValidationURL = PaywallAJAX.getValidationURL(ACI, productType); + return PaywallAJAX.handleRequest(getValidationURL); + }); + + function validate(_x3, _x4) { + return _validate.apply(this, arguments); + } + + return validate; + }() + }, { + key: "validateUser", + value: function () { + var _validateUser = (0, _asyncToGenerator2.default)(function* () { + var getUserValidationURL = PaywallAJAX.getUserValidationURL(); + return PaywallAJAX.handleRequest(getUserValidationURL); + }); + + function validateUser() { + return _validateUser.apply(this, arguments); + } + + return validateUser; + }() + }, { + key: "logout", + value: function () { + var _logout = (0, _asyncToGenerator2.default)(function* (ACI, manual) { + var getLogoutURL = PaywallAJAX.getLogoutURL(); + return PaywallAJAX.handleRequest(getLogoutURL); + }); + + function logout(_x5, _x6) { + return _logout.apply(this, arguments); + } + + return logout; + }() + }, { + key: "getDecryptionKey", + value: function () { + var _getDecryptionKey = (0, _asyncToGenerator2.default)(function* (seed) { + var getDecryptionKeyURL = PaywallAJAX.getDecryptionKeyURL(seed); + return PaywallAJAX.simpleGet(getDecryptionKeyURL); + }); + + function getDecryptionKey(_x7) { + return _getDecryptionKey.apply(this, arguments); + } + + return getDecryptionKey; + }() + }]); + }(); +},1894,[3,270,6,7,11,13,14,61,408,434,1878,1879,438,555]); +__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 _BasePush = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _OneSignalPush = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var PushHelper = exports.default = function () { + function PushHelper() { + (0, _classCallCheck2.default)(this, PushHelper); + } + + return (0, _createClass2.default)(PushHelper, null, [{ + key: "onBackgroundMessage", + value: function () { + var _onBackgroundMessage = (0, _asyncToGenerator2.default)(function* (message) { + try { + if (!global.initialized) { + global.initBaseValues(yield _$$_REQUIRE(_dependencyMap[6]).OurBridge.initializeGlobals()); + } + + yield PushHelper.init(); + yield PushHelper.instance.onBackgroundMessage(message); + } catch (e) { + console.error("background push notification error: " + e.message); + } + + return Promise.resolve(); + }); + + function onBackgroundMessage(_x) { + return _onBackgroundMessage.apply(this, arguments); + } + + return onBackgroundMessage; + }() + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + if (PushHelper.instance) { + return; + } + + switch (global.pushService) { + case _$$_REQUIRE(_dependencyMap[7]).MasPush.NAME: + PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[7]).MasPush)(); + yield PushHelper.instance.init(global.masAppId); + break; + + case _OneSignalPush.default.NAME: + PushHelper.instance = new _OneSignalPush.default(); + yield PushHelper.instance.init(global.oneSignalAppId); + break; + + case _$$_REQUIRE(_dependencyMap[8]).AmazonPush.NAME: + PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[8]).AmazonPush)(); + yield PushHelper.instance.init(); + break; + + case _$$_REQUIRE(_dependencyMap[9]).HuaweiPush.NAME: + PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[9]).HuaweiPush)(); + yield PushHelper.instance.init(global.hcmAppId); + break; + + default: + PushHelper.instance = new (_$$_REQUIRE(_dependencyMap[10]).FirebasePush)(); + yield PushHelper.instance.init(); + break; + } + + PushHelper.clearOldStoredNotifications(); + PushHelper.registerListener(); + PushHelper.resetBadge(); + yield PushHelper.createAndroidChannels(); + }); + + function init() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "checkIfAppIsOpenedByNotification", + value: function () { + var _checkIfAppIsOpenedByNotification = (0, _asyncToGenerator2.default)(function* (callback) { + if (!PushHelper.instance) { + return false; + } + + try { + yield PushHelper.instance.checkIfAppIsOpenedByNotification(callback); + return true; + } catch (e) {} + + return false; + }); + + function checkIfAppIsOpenedByNotification(_x2) { + return _checkIfAppIsOpenedByNotification.apply(this, arguments); + } + + return checkIfAppIsOpenedByNotification; + }() + }, { + key: "registerListener", + value: function registerListener() { + var _PushHelper$instance; + + (_PushHelper$instance = PushHelper.instance) == null ? undefined : _PushHelper$instance.registerListener(); + } + }, { + key: "unregisterListener", + value: function unregisterListener() { + var _PushHelper$instance2; + + (_PushHelper$instance2 = PushHelper.instance) == null ? undefined : _PushHelper$instance2.unregisterListener(); + } + }, { + key: "resetBadge", + value: function resetBadge() { + var _PushHelper$instance3; + + (_PushHelper$instance3 = PushHelper.instance) == null ? undefined : _PushHelper$instance3.resetBadge(); + } + }, { + key: "createAndroidChannels", + value: function () { + var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { + if (PushHelper.instance) { + return PushHelper.instance.createAndroidChannels(); + } + + return false; + }); + + function createAndroidChannels() { + return _createAndroidChannels.apply(this, arguments); + } + + return createAndroidChannels; + }() + }, { + key: "isTherePush", + value: function isTherePush() { + if (PushHelper.instance) { + return PushHelper.instance.isTherePush(); + } + + return false; + } + }, { + key: "pushNeedFeedUpdate", + value: function pushNeedFeedUpdate() { + if (PushHelper.instance) { + return PushHelper.instance.pushNeedFeedUpdate(); + } + + return false; + } + }, { + key: "getPush", + value: function getPush() { + if (PushHelper.instance) { + return PushHelper.instance.getPush(); + } + + return {}; + } + }, { + key: "clearPush", + value: function clearPush() { + var _PushHelper$instance4; + + (_PushHelper$instance4 = PushHelper.instance) == null ? undefined : _PushHelper$instance4.clearPush(); + } + }, { + key: "getRegistrationInfo", + value: function getRegistrationInfo() { + if (PushHelper.instance) { + return PushHelper.instance.getRegistrationInfo(); + } + + return {}; + } + }, { + key: "checkIfSendRegistration", + value: function () { + var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { + if (PushHelper.instance) { + return PushHelper.instance.checkIfSendRegistration(); + } + + return Promise.resolve(); + }); + + function checkIfSendRegistration() { + return _checkIfSendRegistration.apply(this, arguments); + } + + return checkIfSendRegistration; + }() + }, { + key: "clearOldStoredNotifications", + value: function clearOldStoredNotifications() { + if (PushHelper.instance) { + return PushHelper.instance.clearOldStoredNotifications(); + } + + return Promise.resolve(); + } + }, { + key: "updateTags", + value: function updateTags() { + var _PushHelper$instance5; + + (_PushHelper$instance5 = PushHelper.instance) == null ? undefined : _PushHelper$instance5.updateTags(); + } + }, { + key: "registerDevice", + value: function () { + var _registerDevice = (0, _asyncToGenerator2.default)(function* () { + if (PushHelper.instance) { + return PushHelper.instance.init(); + } + + return Promise.resolve(); + }); + + function registerDevice() { + return _registerDevice.apply(this, arguments); + } + + return registerDevice; + }() + }, { + key: "deleteRegistration", + value: function () { + var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { + if (PushHelper.instance) { + PushHelper.instance.deleteRegistration(); + return PushHelper.instance.deleteToken(); + } + + return Promise.resolve(true); + }); + + function deleteRegistration() { + return _deleteRegistration.apply(this, arguments); + } + + return deleteRegistration; + }() + }]); + }(); + + PushHelper.instance = undefined; +},1895,[3,270,6,7,1896,1916,579,1918,1921,1922,1919]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isNotAvailable = exports.default = exports.NOT_AVAILABLE = 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 _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var NOT_AVAILABLE = exports.NOT_AVAILABLE = "n/a"; + + var isNotAvailable = exports.isNotAvailable = function isNotAvailable(str) { + return str === NOT_AVAILABLE; + }; + + var BasePush = exports.default = function () { + function BasePush(name) { + (0, _classCallCheck2.default)(this, BasePush); + this.userId = ""; + this.token = NOT_AVAILABLE; + 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; + } + }, { + key: "unregisterListener", + value: function unregisterListener() { + this.isRegistered = false; + } + }, { + key: "resetTags", + value: function resetTags() { + this.tags = {}; + this.printLog("tags empty"); + } + }, { + key: "setTag", + value: function setTag(key, value) { + this.tags[key] = value; + this.printLog("tags -> " + key + ": " + value); + } + }, { + key: "checkIfAppIsOpenedByNotification", + value: function checkIfAppIsOpenedByNotification() { + return false; + } + }, { + key: "isTherePush", + value: function isTherePush() { + return this.pushToConsume !== undefined; + } + }, { + key: "clearPush", + value: function clearPush() { + this.pushToConsume = undefined; + } + }, { + key: "pushNeedFeedUpdate", + value: function pushNeedFeedUpdate() { + return this.pushToConsume && (this.pushToConsume.action === "openArticle" || this.pushToConsume.action === "openArticleBySource"); + } + }, { + key: "getPush", + value: function getPush() { + return this.pushToConsume; + } + }, { + key: "storePushToConsume", + value: function storePushToConsume(action, value) { + this.pushToConsume = { + action: action, + value: value + }; + } + }, { + key: "onBackgroundMessage", + value: function () { + var _onBackgroundMessage = (0, _asyncToGenerator2.default)(function* (notification) { + this.printLog("on background message: " + JSON.stringify(notification)); + return this.displayNotification(notification); + }); + + function onBackgroundMessage(_x) { + return _onBackgroundMessage.apply(this, arguments); + } + + return onBackgroundMessage; + }() + }, { + key: "displayNotification", + value: function displayNotification(notification) { + this.printLog("display notification unused: " + JSON.stringify(notification)); + } + }, { + 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; + + var rssIsEnabled = false; + var pSetupConfig = global.getRSSActivePSetup(); + + if (!(pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig)) { + pSetupConfig = global.getMainPSetup(); + } + + if (pSetupConfig instanceof _$$_REQUIRE(_dependencyMap[6]).PaperSetupConfig) { + rssIsEnabled = yield pSetupConfig.checkIfRssIsEnabled(); + } + + this.storePushToConsume(action, value); + var mainNavigator = ""; + + switch (action) { + case "openArticle": + case "openArticleBySource": + case "openCategory": + case "openRss": + mainNavigator = "RssNavigator"; + break; + + case "openUrl": + mainNavigator = rssIsEnabled ? "RssNavigator" : "NewsmemoryNavigator"; + break; + + case "openEpaperCoordinates": + mainNavigator = "NewsmemoryNavigator"; + break; + + case "openEpaper": + mainNavigator = "NewsmemoryNavigator"; + break; + } + + if (((_mainNavigator = mainNavigator) == null ? undefined : _mainNavigator.length) > 0) { + if (typeof onOpen === "function") { + onOpen(mainNavigator); + } + + _NavigationService.default.main.reset(mainNavigator); + } + }); + + function openNotification(_x2, _x3, _x4) { + return _openNotification.apply(this, arguments); + } + + return openNotification; + }() + }, { + key: "parsePushData", + value: function parsePushData() { + var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var type = data.type, + feedId = data.feedId, + category = data.category, + url = data.url, + edition = data.edition, + issue = data.issue, + page = data.page, + article = data.article, + source = data.source; + var action = "openEpaper"; + var value = ""; + + if (type === "breakingnews") { + action = "openRss"; + } else if ((feedId == null ? undefined : feedId.length) > 0) { + action = "openArticle"; + value = feedId; + } else if ((source == null ? undefined : source.length) > 0) { + action = "openArticleBySource"; + value = source; + } else if ((category == null ? undefined : category.length) > 0) { + action = "openCategory"; + value = category; + } else if ((url == null ? undefined : url.length) > 0) { + action = "openUrl"; + value = url; + } else if (edition || issue || page || article) { + action = "openEpaperCoordinates"; + value = { + edition: edition, + issue: issue, + page: page, + article: article + }; + } + + return { + action: action, + value: value + }; + } + }, { + key: "printLog", + value: function printLog(message) {} + }, { + key: "getRegistrationInfo", + value: function getRegistrationInfo() { + return { + token: this.token, + userId: this.userId, + serverMessage: this.serverMessage, + service: this.service + }; + } + }, { + key: "init", + value: function init() { + this.printLog(this.service + " doesn't need init"); + } + }, { + key: "initTags", + value: function initTags() { + this.tags = {}; + } + }, { + key: "updateTags", + value: function updateTags() { + this.printLog(this.service + " doesn't need updateTags"); + } + }, { + key: "resetBadge", + value: function resetBadge() { + this.printLog(this.service + " doesn't need resetBadge"); + } + }, { + key: "createAndroidChannels", + value: function () { + var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { + this.printLog(this.service + " doesn't need createAndroidChannels"); + return Promise.resolve(); + }); + + function createAndroidChannels() { + return _createAndroidChannels.apply(this, arguments); + } + + return createAndroidChannels; + }() + }, { + key: "checkIfSendRegistration", + value: function () { + var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { + this.printLog(this.service + " doesn't need checkIfSendRegistration"); + return Promise.resolve(); + }); + + function checkIfSendRegistration() { + return _checkIfSendRegistration.apply(this, arguments); + } + + return checkIfSendRegistration; + }() + }, { + key: "getToken", + value: function () { + var _getToken = (0, _asyncToGenerator2.default)(function* () { + this.printLog(this.service + " doesn't need getToken"); + return Promise.resolve(); + }); + + function getToken() { + return _getToken.apply(this, arguments); + } + + return getToken; + }() + }, { + key: "deleteToken", + value: function () { + var _deleteToken = (0, _asyncToGenerator2.default)(function* () { + this.printLog(this.service + " doesn't need deleteToken"); + return Promise.resolve(); + }); + + function deleteToken() { + return _deleteToken.apply(this, arguments); + } + + return deleteToken; + }() + }, { + key: "sendRegistration", + value: function () { + var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token, service) { + this.printLog(this.service + " doesn't need sendRegistration"); + return true; + }); + + function sendRegistration(_x5, _x6) { + return _sendRegistration.apply(this, arguments); + } + + return sendRegistration; + }() + }, { + key: "deleteRegistration", + value: function () { + var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { + this.printLog(this.service + " doesn't need deleteRegistration"); + return true; + }); + + function deleteRegistration() { + return _deleteRegistration.apply(this, arguments); + } + + return deleteRegistration; + }() + }, { + key: "clearOldStoredNotifications", + value: function () { + var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { + return Promise.resolve(); + }); + + function clearOldStoredNotifications() { + return _clearOldStoredNotifications.apply(this, arguments); + } + + return clearOldStoredNotifications; + }() + }]); + }(); +},1896,[3,270,6,7,1897,438,866]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function closeDrawer(navigation) { + if (navigation) { + navigation.dispatch(_$$_REQUIRE(_dependencyMap[2]).DrawerActions.closeDrawer()); + } + } + + function openDrawer(navigation) { + if (navigation) { + navigation.dispatch(_$$_REQUIRE(_dependencyMap[2]).DrawerActions.openDrawer()); + } + } + + function navigate(navigation, routeName) { + var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + if (!navigation) { + return; + } + + if (global.unauthorized) { + routeName = "UnauthorizedScreen"; + } + + var navigateAction = _$$_REQUIRE(_dependencyMap[2]).CommonActions.navigate({ + name: routeName, + params: params + }); + + navigation.dispatch(navigateAction); + } + + function reset(navigation, route) { + var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + if (!navigation) { + return; + } + + if (global.unauthorized) { + route = "UnauthorizedScreen"; + } + + var resetAction = _$$_REQUIRE(_dependencyMap[2]).CommonActions.reset({ + index: 0, + routes: [{ + name: route, + params: params + }] + }); + + navigation.dispatch(resetAction); + } + + var _navigator; + + var _onRestart; + + function setMainNavigatorRef(navigatorRef) { + _navigator = navigatorRef; + } + + function navigateInMainNavigator(routeName, params) { + var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + navigate(_navigator, routeName, params); + } + + function resetInMainNavigator(routeName, params) { + var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + reset(_navigator, routeName, params); + } + + function goToMainNavigator(mainNavigator, params) { + var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + reset(_navigator, mainNavigator, params); + } + + function setOnRestart(onRestart) { + _onRestart = onRestart; + } + + function restart() { + if (typeof _onRestart === "function") { + _onRestart(); + } + + resetInMainNavigator("SplashScreen"); + } + + var _default = exports.default = { + main: { + navigate: navigateInMainNavigator, + setRef: setMainNavigatorRef, + reset: goToMainNavigator + }, + default: { + navigate: navigate, + reset: reset + }, + drawer: { + close: closeDrawer, + open: openDrawer + }, + onRestart: setOnRestart, + restart: restart, + navigator: { + createStack: _$$_REQUIRE(_dependencyMap[3]).createNativeStackNavigator, + createDrawer: _$$_REQUIRE(_dependencyMap[4]).createDrawerNavigator, + createBottomTab: _$$_REQUIRE(_dependencyMap[5]).createBottomTabNavigator, + createTopTab: _$$_REQUIRE(_dependencyMap[6]).createMaterialTopTabNavigator + }, + getStackScreenOptions: function getStackScreenOptions() { + return { + orientation: _deviceUtils.default.orientationIsLocked ? _deviceUtils.default.lockedOrientation.toLowerCase() : "all", + animation: _$$_REQUIRE(_dependencyMap[7]).PlatformUtils.isIOS() ? "default" : "none" + }; + } + }; +},1897,[3,434,1089,1898,1226,1904,1686,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "NativeStackView", { + enumerable: true, + get: function get() { + return _NativeStackView.default; + } + }); + Object.defineProperty(exports, "createNativeStackNavigator", { + enumerable: true, + get: function get() { + return _createNativeStackNavigator.default; + } + }); + + var _createNativeStackNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _NativeStackView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); +},1898,[3,1899,1900]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _NativeStackView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _excluded = ["initialRouteName", "children", "screenListeners", "screenOptions"]; + + 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 NativeStackNavigator(_ref) { + var initialRouteName = _ref.initialRouteName, + children = _ref.children, + screenListeners = _ref.screenListeners, + screenOptions = _ref.screenOptions, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + + var _useNavigationBuilder = (0, _$$_REQUIRE(_dependencyMap[4]).useNavigationBuilder)(_$$_REQUIRE(_dependencyMap[4]).StackRouter, { + initialRouteName: initialRouteName, + children: children, + screenListeners: screenListeners, + screenOptions: screenOptions + }), + state = _useNavigationBuilder.state, + descriptors = _useNavigationBuilder.descriptors, + navigation = _useNavigationBuilder.navigation, + NavigationContent = _useNavigationBuilder.NavigationContent; + + React.useEffect(function () { + return navigation == null ? undefined : navigation.addListener == null ? undefined : navigation.addListener('tabPress', function (e) { + var isFocused = navigation.isFocused(); + requestAnimationFrame(function () { + if (state.index > 0 && isFocused && !e.defaultPrevented) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[4]).StackActions.popToTop(), { + target: state.key + })); + } + }); + }); + }, [navigation, state.index, state.key]); + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(NavigationContent, { + children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_NativeStackView.default, Object.assign({}, rest, { + state: state, + navigation: navigation, + descriptors: descriptors + })) + }); + } + + var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[4]).createNavigatorFactory)(NativeStackNavigator); +},1899,[3,4,16,1900,1089,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = NativeStackView; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _warnOnce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _DebugContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _HeaderConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + 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 isAndroid = _reactNative.Platform.OS === 'android'; + + var MaybeNestedStack = function MaybeNestedStack(_ref) { + var options = _ref.options, + route = _ref.route, + presentation = _ref.presentation, + headerHeight = _ref.headerHeight, + children = _ref.children; + + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[7]).useTheme)(), + colors = _useTheme.colors; + + var header = options.header, + _options$headerShown = options.headerShown, + headerShown = _options$headerShown === undefined ? true : _options$headerShown, + contentStyle = options.contentStyle; + var isHeaderInModal = isAndroid ? false : presentation !== 'card' && headerShown === true && header === undefined; + var headerShownPreviousRef = React.useRef(headerShown); + React.useEffect(function () { + (0, _warnOnce.default)(!isAndroid && presentation !== 'card' && headerShownPreviousRef.current !== headerShown, "Dynamically changing 'headerShown' in modals will result in remounting the screen and losing all local state. See options for the screen '" + route.name + "'."); + headerShownPreviousRef.current = headerShown; + }, [headerShown, presentation, route.name]); + var content = (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_DebugContainer.default, { + style: [styles.container, presentation !== 'transparentModal' && presentation !== 'containedTransparentModal' && { + backgroundColor: colors.background + }, contentStyle], + stackPresentation: presentation === 'card' ? 'push' : presentation, + children: children + }); + + if (isHeaderInModal) { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ScreenStack, { + style: styles.container, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[9]).Screen, { + enabled: true, + style: _reactNative.StyleSheet.absoluteFill, + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_HeaderConfig.default, Object.assign({}, options, { + route: route, + headerHeight: headerHeight, + canGoBack: true + })), content] + }) + }); + } + + return content; + }; + + var SceneView = function SceneView(_ref2) { + var descriptor = _ref2.descriptor, + previousDescriptor = _ref2.previousDescriptor, + index = _ref2.index, + onWillDisappear = _ref2.onWillDisappear, + onAppear = _ref2.onAppear, + onDisappear = _ref2.onDisappear, + onDismissed = _ref2.onDismissed; + var route = descriptor.route, + navigation = descriptor.navigation, + options = descriptor.options, + render = descriptor.render; + var animation = options.animation, + _options$animationTyp = options.animationTypeForReplace, + animationTypeForReplace = _options$animationTyp === undefined ? 'push' : _options$animationTyp, + customAnimationOnGesture = options.customAnimationOnGesture, + fullScreenGestureEnabled = options.fullScreenGestureEnabled, + gestureEnabled = options.gestureEnabled, + header = options.header, + headerShown = options.headerShown, + orientation = options.orientation, + statusBarAnimation = options.statusBarAnimation, + statusBarHidden = options.statusBarHidden, + statusBarStyle = options.statusBarStyle; + var _options$presentation = options.presentation, + presentation = _options$presentation === undefined ? 'card' : _options$presentation; + + if (index === 0) { + presentation = 'card'; + } + + var isHeaderInPush = isAndroid ? headerShown : presentation === 'card' && headerShown !== false; + var insets = (0, _$$_REQUIRE(_dependencyMap[10]).useSafeAreaInsets)(); + var frame = (0, _$$_REQUIRE(_dependencyMap[10]).useSafeAreaFrame)(); + var isModal = presentation === 'modal' || presentation === 'formSheet'; + var isIPhone = _reactNative.Platform.OS === 'ios' && !(_reactNative.Platform.isPad && _reactNative.Platform.isTVOS); + var isLandscape = frame.width > frame.height; + var topInset = isModal || isIPhone && isLandscape ? 0 : insets.top; + var isParentHeaderShown = React.useContext(_$$_REQUIRE(_dependencyMap[11]).HeaderShownContext); + var parentHeaderHeight = React.useContext(_$$_REQUIRE(_dependencyMap[11]).HeaderHeightContext); + var defaultHeaderHeight = (0, _$$_REQUIRE(_dependencyMap[11]).getDefaultHeaderHeight)(frame, isModal, topInset); + + var _React$useState = React.useState(defaultHeaderHeight), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + customHeaderHeight = _React$useState2[0], + setCustomHeaderHeight = _React$useState2[1]; + + var headerHeight = header ? customHeaderHeight : defaultHeaderHeight; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Screen, { + enabled: true, + style: _reactNative.StyleSheet.absoluteFill, + customAnimationOnSwipe: customAnimationOnGesture, + fullScreenSwipeEnabled: fullScreenGestureEnabled, + gestureEnabled: isAndroid ? false : gestureEnabled, + replaceAnimation: animationTypeForReplace, + stackPresentation: presentation === 'card' ? 'push' : presentation, + stackAnimation: animation, + screenOrientation: orientation, + statusBarAnimation: statusBarAnimation, + statusBarHidden: statusBarHidden, + statusBarStyle: statusBarStyle, + onWillDisappear: onWillDisappear, + onAppear: onAppear, + onDisappear: onDisappear, + onDismissed: onDismissed, + isNativeStack: true, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).NavigationContext.Provider, { + value: navigation, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).NavigationRouteContext.Provider, { + value: route, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).HeaderShownContext.Provider, { + value: isParentHeaderShown || isHeaderInPush !== false, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[11]).HeaderHeightContext.Provider, { + value: isHeaderInPush !== false ? headerHeight : parentHeaderHeight != null ? parentHeaderHeight : 0, + children: [header !== undefined && headerShown !== false ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + onLayout: function onLayout(e) { + setCustomHeaderHeight(e.nativeEvent.layout.height); + }, + children: header({ + back: previousDescriptor ? { + title: (0, _$$_REQUIRE(_dependencyMap[11]).getHeaderTitle)(previousDescriptor.options, previousDescriptor.route.name) + } : undefined, + options: options, + route: route, + navigation: navigation + }) + }) : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_HeaderConfig.default, Object.assign({}, options, { + route: route, + headerShown: isHeaderInPush, + headerHeight: headerHeight, + canGoBack: index !== 0 + })), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(MaybeNestedStack, { + options: options, + route: route, + presentation: presentation, + headerHeight: headerHeight, + children: render() + })] + }) + }) + }) + }) + }, route.key); + }; + + function NativeStackViewInner(_ref3) { + var _state$routes$find; + + var state = _ref3.state, + navigation = _ref3.navigation, + descriptors = _ref3.descriptors; + + var _React$useState3 = React.useState(null), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + nextDismissedKey = _React$useState4[0], + setNextDismissedKey = _React$useState4[1]; + + var dismissedRouteName = nextDismissedKey ? (_state$routes$find = state.routes.find(function (route) { + return route.key === nextDismissedKey; + })) == null ? undefined : _state$routes$find.name : null; + React.useEffect(function () { + if (dismissedRouteName) { + var message = "The screen '" + dismissedRouteName + "' was removed natively but didn't get removed from JS state. " + "This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\n" + "Consider using 'gestureEnabled: false' to prevent back gesture and use a custom back button with 'headerLeft' option to override the native behavior."; + console.error(message); + } + }, [dismissedRouteName]); + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ScreenStack, { + style: styles.container, + children: state.routes.map(function (route, index) { + var _state$routes; + + var descriptor = descriptors[route.key]; + var previousKey = (_state$routes = state.routes[index - 1]) == null ? undefined : _state$routes.key; + var previousDescriptor = previousKey ? descriptors[previousKey] : undefined; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(SceneView, { + index: index, + descriptor: descriptor, + previousDescriptor: previousDescriptor, + onWillDisappear: function onWillDisappear() { + navigation.emit({ + type: 'transitionStart', + data: { + closing: true + }, + target: route.key + }); + }, + onAppear: function onAppear() { + navigation.emit({ + type: 'transitionEnd', + data: { + closing: false + }, + target: route.key + }); + }, + onDisappear: function onDisappear() { + navigation.emit({ + type: 'transitionEnd', + data: { + closing: true + }, + target: route.key + }); + }, + onDismissed: function onDismissed(event) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[7]).StackActions.pop(event.nativeEvent.dismissCount), { + source: route.key, + target: state.key + })); + setNextDismissedKey(route.key); + } + }, route.key); + }) + }); + } + + function NativeStackView(props) { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).SafeAreaProviderCompat, { + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(NativeStackViewInner, Object.assign({}, props)) + }); + } + + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1 + } + }); +},1900,[3,33,16,18,1228,1901,1902,1089,179,1281,899,1246]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _AppContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["stackPresentation"]; + + 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 Container = _reactNative.View; + + var _default = exports.default = Container; +},1901,[3,4,16,18,336]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = HeaderConfig; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_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; } + + function HeaderConfig(_ref) { + var _ref2, _headerTitleStyleFlat, _headerStyleFlattened; + + var headerHeight = _ref.headerHeight, + headerBackImageSource = _ref.headerBackImageSource, + headerBackButtonMenuEnabled = _ref.headerBackButtonMenuEnabled, + headerBackTitle = _ref.headerBackTitle, + headerBackTitleStyle = _ref.headerBackTitleStyle, + _ref$headerBackTitleV = _ref.headerBackTitleVisible, + headerBackTitleVisible = _ref$headerBackTitleV === undefined ? true : _ref$headerBackTitleV, + headerBackVisible = _ref.headerBackVisible, + headerShadowVisible = _ref.headerShadowVisible, + headerLargeStyle = _ref.headerLargeStyle, + headerLargeTitle = _ref.headerLargeTitle, + headerLargeTitleShadowVisible = _ref.headerLargeTitleShadowVisible, + headerLargeTitleStyle = _ref.headerLargeTitleStyle, + headerBackground = _ref.headerBackground, + headerLeft = _ref.headerLeft, + headerRight = _ref.headerRight, + headerShown = _ref.headerShown, + headerStyle = _ref.headerStyle, + headerBlurEffect = _ref.headerBlurEffect, + headerTintColor = _ref.headerTintColor, + headerTitle = _ref.headerTitle, + headerTitleAlign = _ref.headerTitleAlign, + headerTitleStyle = _ref.headerTitleStyle, + headerTransparent = _ref.headerTransparent, + headerSearchBarOptions = _ref.headerSearchBarOptions, + route = _ref.route, + title = _ref.title, + canGoBack = _ref.canGoBack, + orientation = _ref.orientation; + var insets = (0, _$$_REQUIRE(_dependencyMap[4]).useSafeAreaInsets)(); + + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[5]).useTheme)(), + colors = _useTheme.colors; + + var tintColor = headerTintColor != null ? headerTintColor : _reactNative.Platform.OS === 'ios' ? colors.primary : colors.text; + var headerBackTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerBackTitleStyle) || {}; + var headerLargeTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeTitleStyle) || {}; + var headerTitleStyleFlattened = _reactNative.StyleSheet.flatten(headerTitleStyle) || {}; + var headerStyleFlattened = _reactNative.StyleSheet.flatten(headerStyle) || {}; + var headerLargeStyleFlattened = _reactNative.StyleSheet.flatten(headerLargeStyle) || {}; + + var _processFonts = (0, _$$_REQUIRE(_dependencyMap[6]).processFonts)([headerBackTitleStyleFlattened.fontFamily, headerLargeTitleStyleFlattened.fontFamily, headerTitleStyleFlattened.fontFamily]), + _processFonts2 = (0, _slicedToArray2.default)(_processFonts, 3), + backTitleFontFamily = _processFonts2[0], + largeTitleFontFamily = _processFonts2[1], + titleFontFamily = _processFonts2[2]; + + var titleText = title !== undefined ? title : route.name; + var titleColor = (_ref2 = (_headerTitleStyleFlat = headerTitleStyleFlattened.color) != null ? _headerTitleStyleFlat : headerTintColor) != null ? _ref2 : colors.text; + var titleFontSize = headerTitleStyleFlattened.fontSize; + var titleFontWeight = headerTitleStyleFlattened.fontWeight; + var headerTitleStyleSupported = { + color: titleColor + }; + + if (headerTitleStyleFlattened.fontFamily != null) { + headerTitleStyleSupported.fontFamily = headerTitleStyleFlattened.fontFamily; + } + + if (titleFontSize != null) { + headerTitleStyleSupported.fontSize = titleFontSize; + } + + if (titleFontWeight != null) { + headerTitleStyleSupported.fontWeight = titleFontWeight; + } + + var headerLeftElement = headerLeft == null ? undefined : headerLeft({ + tintColor: tintColor, + canGoBack: canGoBack, + label: headerBackTitle + }); + var headerRightElement = headerRight == null ? undefined : headerRight({ + tintColor: tintColor, + canGoBack: canGoBack + }); + var headerTitleElement = typeof headerTitle === 'function' ? headerTitle({ + tintColor: tintColor, + children: titleText + }) : null; + var supportsHeaderSearchBar = typeof _$$_REQUIRE(_dependencyMap[7]).isSearchBarAvailableForCurrentPlatform === 'boolean' ? _$$_REQUIRE(_dependencyMap[7]).isSearchBarAvailableForCurrentPlatform : _reactNative.Platform.OS === 'ios' && _$$_REQUIRE(_dependencyMap[7]).SearchBar != null; + var hasHeaderSearchBar = supportsHeaderSearchBar && headerSearchBarOptions != null; + + if (headerSearchBarOptions != null && !supportsHeaderSearchBar) { + throw new Error("The current version of 'react-native-screens' doesn't support SearchBar in the header. Please update to the latest version to use this option."); + } + + var backButtonInCustomView = headerBackVisible ? headerLeftElement != null : _reactNative.Platform.OS === 'android' && headerTitleElement != null; + var translucent = headerBackground != null || headerTransparent || (hasHeaderSearchBar || headerLargeTitle) && _reactNative.Platform.OS === 'ios' && headerTransparent !== false; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { + children: [headerBackground != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + style: [styles.background, headerTransparent ? styles.translucent : null, { + height: headerHeight + }], + children: headerBackground() + }) : null, (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderConfig, { + backButtonInCustomView: backButtonInCustomView, + backgroundColor: (_headerStyleFlattened = headerStyleFlattened.backgroundColor) != null ? _headerStyleFlattened : headerBackground != null || headerTransparent ? 'transparent' : colors.card, + backTitle: headerBackTitleVisible ? headerBackTitle : ' ', + backTitleFontFamily: backTitleFontFamily, + backTitleFontSize: headerBackTitleStyleFlattened.fontSize, + blurEffect: headerBlurEffect, + color: tintColor, + direction: _reactNative.I18nManager.isRTL ? 'rtl' : 'ltr', + disableBackButtonMenu: headerBackButtonMenuEnabled === false, + hidden: headerShown === false, + hideBackButton: headerBackVisible === false, + hideShadow: headerShadowVisible === false || headerBackground != null || headerTransparent, + largeTitle: headerLargeTitle, + largeTitleBackgroundColor: headerLargeStyleFlattened.backgroundColor, + largeTitleColor: headerLargeTitleStyleFlattened.color, + largeTitleFontFamily: largeTitleFontFamily, + largeTitleFontSize: headerLargeTitleStyleFlattened.fontSize, + largeTitleFontWeight: headerLargeTitleStyleFlattened.fontWeight, + largeTitleHideShadow: headerLargeTitleShadowVisible === false, + title: typeof headerTitle === 'string' ? headerTitle : titleText, + titleColor: titleColor, + titleFontFamily: titleFontFamily, + titleFontSize: titleFontSize, + titleFontWeight: titleFontWeight, + topInsetEnabled: insets.top !== 0, + translucent: translucent === true, + screenOrientation: orientation, + children: [_reactNative.Platform.OS === 'ios' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { + children: [headerLeftElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderLeftView, { + children: headerLeftElement + }) : null, headerTitleElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderCenterView, { + children: headerTitleElement + }) : null] + }) : (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[8]).Fragment, { + children: [headerLeftElement != null || typeof headerTitle === 'function' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderLeftView, { + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + style: styles.row, + children: [headerLeftElement, headerTitleAlign !== 'center' ? typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).HeaderTitle, { + tintColor: tintColor, + style: headerTitleStyleSupported, + children: titleText + }) : null] + }) + }) : null, headerTitleAlign === 'center' ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderCenterView, { + children: typeof headerTitle === 'function' ? headerTitleElement : (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).HeaderTitle, { + tintColor: tintColor, + style: headerTitleStyleSupported, + children: titleText + }) + }) : null] + }), headerBackImageSource !== undefined ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderBackButtonImage, { + source: headerBackImageSource + }) : null, headerRightElement != null ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderRightView, { + children: headerRightElement + }) : null, hasHeaderSearchBar ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).ScreenStackHeaderSearchBarView, { + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[7]).SearchBar, Object.assign({}, headerSearchBarOptions)) + }) : null] + })] + }); + } + + var styles = _reactNative.StyleSheet.create({ + row: { + flexDirection: 'row', + alignItems: 'center' + }, + translucent: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + zIndex: 1 + }, + background: { + overflow: 'hidden' + } + }); +},1902,[3,33,16,18,899,1089,1903,1281,179,1246]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.processFonts = processFonts; + + var _ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function processFonts(fontFamilies) { + var _ReactNativeStyleAttr; + + var fontFamilyProcessor = (_ReactNativeStyleAttr = _ReactNativeStyleAttributes.default.fontFamily) == null ? undefined : _ReactNativeStyleAttr.process; + + if (typeof fontFamilyProcessor === 'function') { + return fontFamilies.map(fontFamilyProcessor); + } + + return fontFamilies; + } +},1903,[3,142]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "BottomTabBar", { + enumerable: true, + get: function get() { + return _BottomTabBar.default; + } + }); + Object.defineProperty(exports, "BottomTabBarHeightContext", { + enumerable: true, + get: function get() { + return _BottomTabBarHeightContext.default; + } + }); + Object.defineProperty(exports, "BottomTabView", { + enumerable: true, + get: function get() { + return _BottomTabView.default; + } + }); + Object.defineProperty(exports, "createBottomTabNavigator", { + enumerable: true, + get: function get() { + return _createBottomTabNavigator.default; + } + }); + Object.defineProperty(exports, "useBottomTabBarHeight", { + enumerable: true, + get: function get() { + return _useBottomTabBarHeight.default; + } + }); + + var _createBottomTabNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _BottomTabBar = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _BottomTabView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _useBottomTabBarHeight = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); +},1904,[3,1905,1909,1906,1908,1915]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _warnOnce = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _BottomTabView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["initialRouteName", "backBehavior", "children", "screenListeners", "screenOptions", "sceneContainerStyle"], + _excluded2 = ["lazy", "tabBarOptions"]; + + 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 BottomTabNavigator(_ref) { + var initialRouteName = _ref.initialRouteName, + backBehavior = _ref.backBehavior, + children = _ref.children, + screenListeners = _ref.screenListeners, + screenOptions = _ref.screenOptions, + sceneContainerStyle = _ref.sceneContainerStyle, + restWithDeprecated = (0, _objectWithoutProperties2.default)(_ref, _excluded); + var lazy = restWithDeprecated.lazy, + tabBarOptions = restWithDeprecated.tabBarOptions, + rest = (0, _objectWithoutProperties2.default)(restWithDeprecated, _excluded2); + var defaultScreenOptions = {}; + + if (tabBarOptions) { + var _tabBarOptions$labelP; + + Object.assign(defaultScreenOptions, { + tabBarHideOnKeyboard: tabBarOptions.keyboardHidesTabBar, + tabBarActiveTintColor: tabBarOptions.activeTintColor, + tabBarInactiveTintColor: tabBarOptions.inactiveTintColor, + tabBarActiveBackgroundColor: tabBarOptions.activeBackgroundColor, + tabBarInactiveBackgroundColor: tabBarOptions.inactiveBackgroundColor, + tabBarAllowFontScaling: tabBarOptions.allowFontScaling, + tabBarShowLabel: tabBarOptions.showLabel, + tabBarLabelStyle: tabBarOptions.labelStyle, + tabBarIconStyle: tabBarOptions.iconStyle, + tabBarItemStyle: tabBarOptions.tabStyle, + tabBarLabelPosition: (_tabBarOptions$labelP = tabBarOptions.labelPosition) != null ? _tabBarOptions$labelP : tabBarOptions.adaptive === false ? 'below-icon' : undefined, + tabBarStyle: [{ + display: tabBarOptions.tabBarVisible ? 'none' : 'flex' + }, defaultScreenOptions.tabBarStyle] + }); + Object.keys(defaultScreenOptions).forEach(function (key) { + if (defaultScreenOptions[key] === undefined) { + delete defaultScreenOptions[key]; + } + }); + (0, _warnOnce.default)(tabBarOptions, "Bottom Tab Navigator: 'tabBarOptions' is deprecated. Migrate the options to 'screenOptions' instead.\n\nPlace the following in 'screenOptions' in your code to keep current behavior:\n\n" + JSON.stringify(defaultScreenOptions, null, 2) + "\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator#options for more details."); + } + + if (typeof lazy === 'boolean') { + defaultScreenOptions.lazy = lazy; + (0, _warnOnce.default)(true, "Bottom Tab Navigator: 'lazy' in props is deprecated. Move it to 'screenOptions' instead.\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator/#lazy for more details."); + } + + var _useNavigationBuilder = (0, _$$_REQUIRE(_dependencyMap[5]).useNavigationBuilder)(_$$_REQUIRE(_dependencyMap[5]).TabRouter, { + initialRouteName: initialRouteName, + backBehavior: backBehavior, + children: children, + screenListeners: screenListeners, + screenOptions: screenOptions, + defaultScreenOptions: defaultScreenOptions + }), + state = _useNavigationBuilder.state, + descriptors = _useNavigationBuilder.descriptors, + navigation = _useNavigationBuilder.navigation, + NavigationContent = _useNavigationBuilder.NavigationContent; + + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(NavigationContent, { + children: (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_BottomTabView.default, Object.assign({}, rest, { + state: state, + navigation: navigation, + descriptors: descriptors, + sceneContainerStyle: sceneContainerStyle + })) + }); + } + + var _default = exports.default = (0, _$$_REQUIRE(_dependencyMap[5]).createNavigatorFactory)(BottomTabNavigator); +},1905,[3,4,16,1228,1906,1089,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = BottomTabView; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _BottomTabBarHeightCallbackContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _BottomTabBar = _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 BottomTabView(props) { + var _props$tabBar = props.tabBar, + tabBar = _props$tabBar === undefined ? function (props) { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBar.default, Object.assign({}, props)); + } : _props$tabBar, + state = props.state, + navigation = props.navigation, + descriptors = props.descriptors, + safeAreaInsets = props.safeAreaInsets, + _props$detachInactive = props.detachInactiveScreens, + detachInactiveScreens = _props$detachInactive === undefined ? _reactNative.Platform.OS === 'web' || _reactNative.Platform.OS === 'android' || _reactNative.Platform.OS === 'ios' : _props$detachInactive, + sceneContainerStyle = props.sceneContainerStyle; + var focusedRouteKey = state.routes[state.index].key; + + var _React$useState = React.useState([focusedRouteKey]), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + loaded = _React$useState2[0], + setLoaded = _React$useState2[1]; + + if (!loaded.includes(focusedRouteKey)) { + setLoaded([].concat((0, _toConsumableArray2.default)(loaded), [focusedRouteKey])); + } + + var dimensions = _$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat.initialMetrics.frame; + + var _React$useState3 = React.useState(function () { + return (0, _BottomTabBar.getTabBarHeight)({ + state: state, + descriptors: descriptors, + dimensions: dimensions, + layout: { + width: dimensions.width, + height: 0 + }, + insets: Object.assign({}, _$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat.initialMetrics.insets, props.safeAreaInsets), + style: descriptors[state.routes[state.index].key].options.tabBarStyle + }); + }), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + tabBarHeight = _React$useState4[0], + setTabBarHeight = _React$useState4[1]; + + var renderTabBar = function renderTabBar() { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).SafeAreaInsetsContext.Consumer, { + children: function children(insets) { + var _ref, _safeAreaInsets$top, _ref2, _safeAreaInsets$right, _ref3, _safeAreaInsets$botto, _ref4, _safeAreaInsets$left; + + return tabBar({ + state: state, + descriptors: descriptors, + navigation: navigation, + insets: { + top: (_ref = (_safeAreaInsets$top = safeAreaInsets == null ? undefined : safeAreaInsets.top) != null ? _safeAreaInsets$top : insets == null ? undefined : insets.top) != null ? _ref : 0, + right: (_ref2 = (_safeAreaInsets$right = safeAreaInsets == null ? undefined : safeAreaInsets.right) != null ? _safeAreaInsets$right : insets == null ? undefined : insets.right) != null ? _ref2 : 0, + bottom: (_ref3 = (_safeAreaInsets$botto = safeAreaInsets == null ? undefined : safeAreaInsets.bottom) != null ? _safeAreaInsets$botto : insets == null ? undefined : insets.bottom) != null ? _ref3 : 0, + left: (_ref4 = (_safeAreaInsets$left = safeAreaInsets == null ? undefined : safeAreaInsets.left) != null ? _safeAreaInsets$left : insets == null ? undefined : insets.left) != null ? _ref4 : 0 + } + }); + } + }); + }; + + var routes = state.routes; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_$$_REQUIRE(_dependencyMap[9]).SafeAreaProviderCompat, { + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MaybeScreenContainer, { + enabled: detachInactiveScreens, + hasTwoStates: true, + style: styles.container, + children: routes.map(function (route, index) { + var descriptor = descriptors[route.key]; + var _descriptor$options = descriptor.options, + _descriptor$options$l = _descriptor$options.lazy, + lazy = _descriptor$options$l === undefined ? true : _descriptor$options$l, + unmountOnBlur = _descriptor$options.unmountOnBlur; + var isFocused = state.index === index; + + if (unmountOnBlur && !isFocused) { + return null; + } + + if (lazy && !loaded.includes(route.key) && !isFocused) { + return null; + } + + var _descriptor$options$h = descriptor.options.header, + header = _descriptor$options$h === undefined ? function (_ref5) { + var layout = _ref5.layout, + options = _ref5.options; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Header, Object.assign({}, options, { + layout: layout, + title: (0, _$$_REQUIRE(_dependencyMap[9]).getHeaderTitle)(options, route.name) + })); + } : _descriptor$options$h; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MaybeScreen, { + style: [_reactNative.StyleSheet.absoluteFill, { + zIndex: isFocused ? 0 : -1 + }], + visible: isFocused, + enabled: detachInactiveScreens, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBarHeightContext.default.Provider, { + value: tabBarHeight, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Screen, { + focused: isFocused, + route: descriptor.route, + navigation: descriptor.navigation, + headerShown: descriptor.options.headerShown, + headerTransparent: descriptor.options.headerTransparent, + headerStatusBarHeight: descriptor.options.headerStatusBarHeight, + header: header({ + layout: dimensions, + route: descriptor.route, + navigation: descriptor.navigation, + options: descriptor.options + }), + style: sceneContainerStyle, + children: descriptor.render() + }) + }) + }, route.key); + }) + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_BottomTabBarHeightCallbackContext.default.Provider, { + value: setTabBarHeight, + children: renderTabBar() + })] + }); + } + + var styles = _reactNative.StyleSheet.create({ + container: { + flex: 1, + overflow: 'hidden' + } + }); +},1906,[3,22,33,16,18,1907,1908,1909,179,1246,899,1914]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); + + 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 _default = exports.default = React.createContext(undefined); +},1907,[16]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); + + 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 _default = exports.default = React.createContext(undefined); +},1908,[16]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = BottomTabBar; + exports.getTabBarHeight = undefined; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _BottomTabBarHeightCallbackContext = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _useIsKeyboardShown = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _BottomTabItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _excluded = ["state", "descriptors", "dimensions", "insets", "style"]; + var DEFAULT_TABBAR_HEIGHT = 49; + var COMPACT_TABBAR_HEIGHT = 32; + var DEFAULT_MAX_TAB_ITEM_WIDTH = 125; + var useNativeDriver = _reactNative.Platform.OS !== 'web'; + + var shouldUseHorizontalLabels = function shouldUseHorizontalLabels(_ref) { + var state = _ref.state, + descriptors = _ref.descriptors, + layout = _ref.layout, + dimensions = _ref.dimensions; + var tabBarLabelPosition = descriptors[state.routes[state.index].key].options.tabBarLabelPosition; + + if (tabBarLabelPosition) { + switch (tabBarLabelPosition) { + case 'beside-icon': + return true; + + case 'below-icon': + return false; + } + } + + if (layout.width >= 768) { + var maxTabWidth = state.routes.reduce(function (acc, route) { + var tabBarItemStyle = descriptors[route.key].options.tabBarItemStyle; + + var flattenedStyle = _reactNative.StyleSheet.flatten(tabBarItemStyle); + + if (flattenedStyle) { + if (typeof flattenedStyle.width === 'number') { + return acc + flattenedStyle.width; + } else if (typeof flattenedStyle.maxWidth === 'number') { + return acc + flattenedStyle.maxWidth; + } + } + + return acc + DEFAULT_MAX_TAB_ITEM_WIDTH; + }, 0); + return maxTabWidth <= layout.width; + } else { + return dimensions.width > dimensions.height; + } + }; + + var getPaddingBottom = function getPaddingBottom(insets) { + return Math.max(insets.bottom - _reactNative.Platform.select({ + ios: 4, + default: 0 + }), 0); + }; + + var getTabBarHeight = exports.getTabBarHeight = function getTabBarHeight(_ref2) { + var _StyleSheet$flatten; + + var state = _ref2.state, + descriptors = _ref2.descriptors, + dimensions = _ref2.dimensions, + insets = _ref2.insets, + style = _ref2.style, + rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded); + var customHeight = (_StyleSheet$flatten = _reactNative.StyleSheet.flatten(style)) == null ? undefined : _StyleSheet$flatten.height; + + if (typeof customHeight === 'number') { + return customHeight; + } + + var isLandscape = dimensions.width > dimensions.height; + var horizontalLabels = shouldUseHorizontalLabels(Object.assign({ + state: state, + descriptors: descriptors, + dimensions: dimensions + }, rest)); + var paddingBottom = getPaddingBottom(insets); + + if (_reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && isLandscape && horizontalLabels) { + return COMPACT_TABBAR_HEIGHT + paddingBottom; + } + + return DEFAULT_TABBAR_HEIGHT + paddingBottom; + }; + + function BottomTabBar(_ref3) { + var state = _ref3.state, + navigation = _ref3.navigation, + descriptors = _ref3.descriptors, + insets = _ref3.insets, + style = _ref3.style; + + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[8]).useTheme)(), + colors = _useTheme.colors; + + var buildLink = (0, _$$_REQUIRE(_dependencyMap[8]).useLinkBuilder)(); + var focusedRoute = state.routes[state.index]; + var focusedDescriptor = descriptors[focusedRoute.key]; + var focusedOptions = focusedDescriptor.options; + var tabBarShowLabel = focusedOptions.tabBarShowLabel, + _focusedOptions$tabBa = focusedOptions.tabBarHideOnKeyboard, + tabBarHideOnKeyboard = _focusedOptions$tabBa === undefined ? false : _focusedOptions$tabBa, + tabBarVisibilityAnimationConfig = focusedOptions.tabBarVisibilityAnimationConfig, + tabBarStyle = focusedOptions.tabBarStyle, + tabBarBackground = focusedOptions.tabBarBackground, + tabBarActiveTintColor = focusedOptions.tabBarActiveTintColor, + tabBarInactiveTintColor = focusedOptions.tabBarInactiveTintColor, + tabBarActiveBackgroundColor = focusedOptions.tabBarActiveBackgroundColor, + tabBarInactiveBackgroundColor = focusedOptions.tabBarInactiveBackgroundColor; + var dimensions = (0, _$$_REQUIRE(_dependencyMap[9]).useSafeAreaFrame)(); + var isKeyboardShown = (0, _useIsKeyboardShown.default)(); + + var onHeightChange = _react.default.useContext(_BottomTabBarHeightCallbackContext.default); + + var shouldShowTabBar = !(tabBarHideOnKeyboard && isKeyboardShown); + + var visibilityAnimationConfigRef = _react.default.useRef(tabBarVisibilityAnimationConfig); + + _react.default.useEffect(function () { + visibilityAnimationConfigRef.current = tabBarVisibilityAnimationConfig; + }); + + var _React$useState = _react.default.useState(!shouldShowTabBar), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + isTabBarHidden = _React$useState2[0], + setIsTabBarHidden = _React$useState2[1]; + + var _React$useState3 = _react.default.useState(function () { + return new _reactNative.Animated.Value(shouldShowTabBar ? 1 : 0); + }), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 1), + visible = _React$useState4[0]; + + _react.default.useEffect(function () { + var visibilityAnimationConfig = visibilityAnimationConfigRef.current; + + if (shouldShowTabBar) { + var _visibilityAnimationC, _visibilityAnimationC2; + + var animation = (visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC = visibilityAnimationConfig.show) == null ? undefined : _visibilityAnimationC.animation) === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing; + animation(visible, Object.assign({ + toValue: 1, + useNativeDriver: useNativeDriver, + duration: 250 + }, visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC2 = visibilityAnimationConfig.show) == null ? undefined : _visibilityAnimationC2.config)).start(function (_ref4) { + var finished = _ref4.finished; + + if (finished) { + setIsTabBarHidden(false); + } + }); + } else { + var _visibilityAnimationC3, _visibilityAnimationC4; + + setIsTabBarHidden(true); + + var _animation = (visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC3 = visibilityAnimationConfig.hide) == null ? undefined : _visibilityAnimationC3.animation) === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing; + + _animation(visible, Object.assign({ + toValue: 0, + useNativeDriver: useNativeDriver, + duration: 200 + }, visibilityAnimationConfig == null ? undefined : (_visibilityAnimationC4 = visibilityAnimationConfig.hide) == null ? undefined : _visibilityAnimationC4.config)).start(); + } + + return function () { + return visible.stopAnimation(); + }; + }, [visible, shouldShowTabBar]); + + var _React$useState5 = _react.default.useState({ + height: 0, + width: dimensions.width + }), + _React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2), + layout = _React$useState6[0], + setLayout = _React$useState6[1]; + + var handleLayout = function handleLayout(e) { + var _e$nativeEvent$layout = e.nativeEvent.layout, + height = _e$nativeEvent$layout.height, + width = _e$nativeEvent$layout.width; + onHeightChange == null ? undefined : onHeightChange(height); + setLayout(function (layout) { + if (height === layout.height && width === layout.width) { + return layout; + } else { + return { + height: height, + width: width + }; + } + }); + }; + + var routes = state.routes; + var paddingBottom = getPaddingBottom(insets); + var tabBarHeight = getTabBarHeight({ + state: state, + descriptors: descriptors, + insets: insets, + dimensions: dimensions, + layout: layout, + style: [tabBarStyle, style] + }); + var hasHorizontalLabels = shouldUseHorizontalLabels({ + state: state, + descriptors: descriptors, + dimensions: dimensions, + layout: layout + }); + var tabBarBackgroundElement = tabBarBackground == null ? undefined : tabBarBackground(); + return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.Animated.View, { + style: [styles.tabBar, { + backgroundColor: tabBarBackgroundElement != null ? 'transparent' : colors.card, + borderTopColor: colors.border + }, { + transform: [{ + translateY: visible.interpolate({ + inputRange: [0, 1], + outputRange: [layout.height + paddingBottom + _reactNative.StyleSheet.hairlineWidth, 0] + }) + }], + position: isTabBarHidden ? 'absolute' : null + }, { + height: tabBarHeight, + paddingBottom: paddingBottom, + paddingHorizontal: Math.max(insets.left, insets.right) + }, tabBarStyle], + pointerEvents: isTabBarHidden ? 'none' : 'auto', + onLayout: handleLayout, + children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + pointerEvents: "none", + style: _reactNative.StyleSheet.absoluteFill, + children: tabBarBackgroundElement + }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + accessibilityRole: "tablist", + style: styles.content, + children: routes.map(function (route, index) { + var _options$tabBarIcon; + + var focused = index === state.index; + var options = descriptors[route.key].options; + + var onPress = function onPress() { + var event = navigation.emit({ + type: 'tabPress', + target: route.key, + canPreventDefault: true + }); + + if (!focused && !event.defaultPrevented) { + navigation.dispatch(Object.assign({}, _$$_REQUIRE(_dependencyMap[8]).CommonActions.navigate({ + name: route.name, + merge: true + }), { + target: state.key + })); + } + }; + + var onLongPress = function onLongPress() { + navigation.emit({ + type: 'tabLongPress', + target: route.key + }); + }; + + var label = options.tabBarLabel !== undefined ? options.tabBarLabel : options.title !== undefined ? options.title : route.name; + var accessibilityLabel = options.tabBarAccessibilityLabel !== undefined ? options.tabBarAccessibilityLabel : typeof label === 'string' && _reactNative.Platform.OS === 'ios' ? label + ", tab, " + (index + 1) + " of " + routes.length : undefined; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[8]).NavigationContext.Provider, { + value: descriptors[route.key].navigation, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[8]).NavigationRouteContext.Provider, { + value: route, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_BottomTabItem.default, { + route: route, + focused: focused, + horizontal: hasHorizontalLabels, + onPress: onPress, + onLongPress: onLongPress, + accessibilityLabel: accessibilityLabel, + to: buildLink(route.name, route.params), + testID: options.tabBarTestID, + allowFontScaling: options.tabBarAllowFontScaling, + activeTintColor: tabBarActiveTintColor, + inactiveTintColor: tabBarInactiveTintColor, + activeBackgroundColor: tabBarActiveBackgroundColor, + inactiveBackgroundColor: tabBarInactiveBackgroundColor, + button: options.tabBarButton, + icon: (_options$tabBarIcon = options.tabBarIcon) != null ? _options$tabBarIcon : function (_ref5) { + var color = _ref5.color, + size = _ref5.size; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).MissingIcon, { + color: color, + size: size + }); + }, + badge: options.tabBarBadge, + badgeStyle: options.tabBarBadgeStyle, + label: label, + showLabel: tabBarShowLabel, + labelStyle: options.tabBarLabelStyle, + iconStyle: options.tabBarIconStyle, + style: options.tabBarItemStyle + }) + }) + }, route.key); + }) + })] + }); + } + + var styles = _reactNative.StyleSheet.create({ + tabBar: { + left: 0, + right: 0, + bottom: 0, + borderTopWidth: _reactNative.StyleSheet.hairlineWidth, + elevation: 8 + }, + content: { + flex: 1, + flexDirection: 'row' + } + }); +},1909,[3,33,4,16,18,1907,1910,1911,1089,899,179,1246]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useIsKeyboardShown; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_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; } + + function useIsKeyboardShown() { + var _React$useState = React.useState(false), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + isKeyboardShown = _React$useState2[0], + setIsKeyboardShown = _React$useState2[1]; + + React.useEffect(function () { + var handleKeyboardShow = function handleKeyboardShow() { + return setIsKeyboardShown(true); + }; + + var handleKeyboardHide = function handleKeyboardHide() { + return setIsKeyboardShown(false); + }; + + var subscriptions; + + if (_reactNative.Platform.OS === 'ios') { + subscriptions = [_reactNative.Keyboard.addListener('keyboardWillShow', handleKeyboardShow), _reactNative.Keyboard.addListener('keyboardWillHide', handleKeyboardHide)]; + } else { + subscriptions = [_reactNative.Keyboard.addListener('keyboardDidShow', handleKeyboardShow), _reactNative.Keyboard.addListener('keyboardDidHide', handleKeyboardHide)]; + } + + return function () { + subscriptions.forEach(function (s) { + return s.remove(); + }); + }; + }, []); + return isKeyboardShown; + } +},1910,[3,33,16,18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = BottomTabBarItem; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _color = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _TabBarIcon = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _excluded = ["children", "style", "onPress", "to", "accessibilityRole"]; + + function BottomTabBarItem(_ref) { + var focused = _ref.focused, + route = _ref.route, + label = _ref.label, + icon = _ref.icon, + badge = _ref.badge, + badgeStyle = _ref.badgeStyle, + to = _ref.to, + _ref$button = _ref.button, + button = _ref$button === undefined ? function (_ref2) { + var children = _ref2.children, + style = _ref2.style, + _onPress = _ref2.onPress, + to = _ref2.to, + accessibilityRole = _ref2.accessibilityRole, + rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded); + + if (_reactNative.Platform.OS === 'web' && to) { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_$$_REQUIRE(_dependencyMap[7]).Link, Object.assign({}, rest, { + to: to, + style: [styles.button, style], + onPress: function onPress(e) { + if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && (e.button == null || e.button === 0)) { + e.preventDefault(); + _onPress == null ? undefined : _onPress(e); + } + }, + children: children + })); + } else { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Pressable, Object.assign({}, rest, { + accessibilityRole: accessibilityRole, + onPress: _onPress, + style: style, + children: children + })); + } + } : _ref$button, + accessibilityLabel = _ref.accessibilityLabel, + testID = _ref.testID, + onPress = _ref.onPress, + onLongPress = _ref.onLongPress, + horizontal = _ref.horizontal, + customActiveTintColor = _ref.activeTintColor, + customInactiveTintColor = _ref.inactiveTintColor, + _ref$activeBackground = _ref.activeBackgroundColor, + activeBackgroundColor = _ref$activeBackground === undefined ? 'transparent' : _ref$activeBackground, + _ref$inactiveBackgrou = _ref.inactiveBackgroundColor, + inactiveBackgroundColor = _ref$inactiveBackgrou === undefined ? 'transparent' : _ref$inactiveBackgrou, + _ref$showLabel = _ref.showLabel, + showLabel = _ref$showLabel === undefined ? true : _ref$showLabel, + allowFontScaling = _ref.allowFontScaling, + labelStyle = _ref.labelStyle, + iconStyle = _ref.iconStyle, + style = _ref.style; + + var _useTheme = (0, _$$_REQUIRE(_dependencyMap[7]).useTheme)(), + colors = _useTheme.colors; + + var activeTintColor = customActiveTintColor === undefined ? colors.primary : customActiveTintColor; + var inactiveTintColor = customInactiveTintColor === undefined ? (0, _color.default)(colors.text).mix((0, _color.default)(colors.card), 0.5).hex() : customInactiveTintColor; + + var renderLabel = function renderLabel(_ref3) { + var focused = _ref3.focused; + + if (showLabel === false) { + return null; + } + + var color = focused ? activeTintColor : inactiveTintColor; + + if (typeof label === 'string') { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Text, { + numberOfLines: 1, + style: [styles.label, { + color: color + }, horizontal ? styles.labelBeside : styles.labelBeneath, labelStyle], + allowFontScaling: allowFontScaling, + children: label + }); + } + + return label({ + focused: focused, + color: color, + position: horizontal ? 'beside-icon' : 'below-icon' + }); + }; + + var renderIcon = function renderIcon(_ref4) { + var focused = _ref4.focused; + + if (icon === undefined) { + return null; + } + + var activeOpacity = focused ? 1 : 0; + var inactiveOpacity = focused ? 0 : 1; + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_TabBarIcon.default, { + route: route, + horizontal: horizontal, + badge: badge, + badgeStyle: badgeStyle, + activeOpacity: activeOpacity, + inactiveOpacity: inactiveOpacity, + activeTintColor: activeTintColor, + inactiveTintColor: inactiveTintColor, + renderIcon: icon, + style: iconStyle + }); + }; + + var scene = { + route: route, + focused: focused + }; + var backgroundColor = focused ? activeBackgroundColor : inactiveBackgroundColor; + return button({ + to: to, + onPress: onPress, + onLongPress: onLongPress, + testID: testID, + accessibilityLabel: accessibilityLabel, + accessibilityRole: _reactNative.Platform.select({ + ios: 'button', + default: 'tab' + }), + accessibilityState: { + selected: focused + }, + accessibilityStates: focused ? ['selected'] : [], + style: [styles.tab, { + backgroundColor: backgroundColor + }, horizontal ? styles.tabLandscape : styles.tabPortrait, style], + children: (0, _$$_REQUIRE(_dependencyMap[6]).jsxs)(_react.default.Fragment, { + children: [renderIcon(scene), renderLabel(scene)] + }) + }); + } + + var styles = _reactNative.StyleSheet.create({ + tab: { + flex: 1, + alignItems: 'center' + }, + tabPortrait: { + justifyContent: 'flex-end', + flexDirection: 'column' + }, + tabLandscape: { + justifyContent: 'center', + flexDirection: 'row' + }, + label: { + textAlign: 'center', + backgroundColor: 'transparent' + }, + labelBeneath: { + fontSize: 10 + }, + labelBeside: { + fontSize: 13, + marginLeft: 20, + marginTop: 3 + }, + button: { + display: 'flex' + } + }); +},1911,[3,4,1237,16,18,1912,179,1089]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = TabBarIcon; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + var _Badge = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + function TabBarIcon(_ref) { + var _ = _ref.route, + horizontal = _ref.horizontal, + badge = _ref.badge, + badgeStyle = _ref.badgeStyle, + activeOpacity = _ref.activeOpacity, + inactiveOpacity = _ref.inactiveOpacity, + activeTintColor = _ref.activeTintColor, + inactiveTintColor = _ref.inactiveTintColor, + renderIcon = _ref.renderIcon, + style = _ref.style; + var size = 25; + return (0, _$$_REQUIRE(_dependencyMap[4]).jsxs)(_reactNative.View, { + style: [horizontal ? styles.iconHorizontal : styles.iconVertical, style], + children: [(0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.View, { + style: [styles.icon, { + opacity: activeOpacity + }], + children: renderIcon({ + focused: true, + size: size, + color: activeTintColor + }) + }), (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_reactNative.View, { + style: [styles.icon, { + opacity: inactiveOpacity + }], + children: renderIcon({ + focused: false, + size: size, + color: inactiveTintColor + }) + }), (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_Badge.default, { + visible: badge != null, + style: [styles.badge, horizontal ? styles.badgeHorizontal : styles.badgeVertical, badgeStyle], + size: 18.75, + children: badge + })] + }); + } + + var styles = _reactNative.StyleSheet.create({ + icon: { + position: 'absolute', + alignSelf: 'center', + alignItems: 'center', + justifyContent: 'center', + height: '100%', + width: '100%', + minWidth: 25 + }, + iconVertical: { + flex: 1 + }, + iconHorizontal: { + height: '100%', + marginTop: 3 + }, + badge: { + position: 'absolute', + left: 3 + }, + badgeVertical: { + top: 3 + }, + badgeHorizontal: { + top: 7 + } + }); +},1912,[3,16,18,1913,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Badge; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _color = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); + + var _excluded = ["children", "style", "visible", "size"], + _excluded2 = ["backgroundColor"]; + + 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 Badge(_ref) { + var children = _ref.children, + style = _ref.style, + _ref$visible = _ref.visible, + visible = _ref$visible === undefined ? true : _ref$visible, + _ref$size = _ref.size, + size = _ref$size === undefined ? 18 : _ref$size, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + + var _React$useState = React.useState(function () { + return new _reactNative.Animated.Value(visible ? 1 : 0); + }), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 1), + opacity = _React$useState2[0]; + + var _React$useState3 = React.useState(visible), + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), + rendered = _React$useState4[0], + setRendered = _React$useState4[1]; + + var theme = (0, _$$_REQUIRE(_dependencyMap[6]).useTheme)(); + React.useEffect(function () { + if (!rendered) { + return; + } + + _reactNative.Animated.timing(opacity, { + toValue: visible ? 1 : 0, + duration: 150, + useNativeDriver: true + }).start(function (_ref2) { + var finished = _ref2.finished; + + if (finished && !visible) { + setRendered(false); + } + }); + + return function () { + return opacity.stopAnimation(); + }; + }, [opacity, rendered, visible]); + + if (!rendered) { + if (visible) { + setRendered(true); + } else { + return null; + } + } + + var _ref3 = _reactNative.StyleSheet.flatten(style) || {}, + _ref3$backgroundColor = _ref3.backgroundColor, + backgroundColor = _ref3$backgroundColor === undefined ? theme.colors.notification : _ref3$backgroundColor, + restStyle = (0, _objectWithoutProperties2.default)(_ref3, _excluded2); + + var textColor = (0, _color.default)(backgroundColor).isLight() ? 'black' : 'white'; + var borderRadius = size / 2; + var fontSize = Math.floor(size * 3 / 4); + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.Animated.Text, Object.assign({ + numberOfLines: 1, + style: [{ + transform: [{ + scale: opacity.interpolate({ + inputRange: [0, 1], + outputRange: [0.5, 1] + }) + }], + color: textColor, + lineHeight: size - 1, + height: size, + minWidth: size, + opacity: opacity, + backgroundColor: backgroundColor, + fontSize: fontSize, + borderRadius: borderRadius + }, styles.container, restStyle] + }, rest, { + children: children + })); + } + + var styles = _reactNative.StyleSheet.create({ + container: { + alignSelf: 'flex-end', + textAlign: 'center', + paddingHorizontal: 4, + overflow: 'hidden' + } + }); +},1913,[3,33,4,1237,16,18,1089,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MaybeScreen = MaybeScreen; + exports.MaybeScreenContainer = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _excluded = ["enabled"], + _excluded2 = ["visible", "children"]; + + 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 Screens; + + try { + Screens = _$$_REQUIRE(_dependencyMap[4]); + } catch (e) {} + + var MaybeScreenContainer = exports.MaybeScreenContainer = function MaybeScreenContainer(_ref) { + var _Screens; + + var enabled = _ref.enabled, + rest = (0, _objectWithoutProperties2.default)(_ref, _excluded); + + if ((_Screens = Screens) != null && _Screens.screensEnabled != null && _Screens.screensEnabled()) { + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Screens.ScreenContainer, Object.assign({ + enabled: enabled + }, rest)); + } + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, Object.assign({}, rest)); + }; + + function MaybeScreen(_ref2) { + var _Screens2; + + var visible = _ref2.visible, + children = _ref2.children, + rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2); + + if ((_Screens2 = Screens) != null && _Screens2.screensEnabled != null && _Screens2.screensEnabled()) { + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Screens.Screen, Object.assign({ + activityState: visible ? 2 : 0 + }, rest, { + children: children + })); + } + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[6]).ResourceSavingView, Object.assign({ + visible: visible + }, rest, { + children: children + })); + } +},1914,[3,4,16,18,1281,179,1246]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = useFloatingBottomTabBarHeight; + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); + + var _BottomTabBarHeightContext = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + + 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 useFloatingBottomTabBarHeight() { + var height = React.useContext(_BottomTabBarHeightContext.default); + + if (height === undefined) { + throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?"); + } + + return height; + } +},1915,[16,3,1908]); +__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 _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 _BasePush2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _PushTags = _$$_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 OneSignalPush = exports.default = function (_BasePush) { + function OneSignalPush() { + var _this; + + (0, _classCallCheck2.default)(this, OneSignalPush); + _this = _callSuper(this, OneSignalPush, [OneSignalPush.NAME]); + _this.notificationToOpenDuringStartup = undefined; + _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: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (appId) { + 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.initialize(appId); + this.module.Debug.setLogLevel(6); + this.module.Debug.setAlertLevel(0); + this.module.setConsentRequired(false); + + try { + this.token = yield this.module.User.pushSubscription.getTokenAsync(); + this.userId = yield this.module.User.pushSubscription.getIdAsync(); + this.printLog("One Signal token: " + this.token); + this.printLog("One Signal subscription id: " + this.userId); + } catch (e) { + this.printLog(e.message); + } + }); + + function init(_x) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "initTags", + value: function initTags() { + var _this2 = this; + + var _global$getUserSettin = global.getUserSettings(), + userDefinedPushTags = _global$getUserSettin.userDefinedPushTags; + + var tags = _PushTags.default.parseTags(userDefinedPushTags); + + tags.forEach(function (_ref) { + var value = _ref.value; + var splitted = value.split(":"); + + if (splitted.length === 2) { + _this2.setTag(splitted[0], splitted[1]); + } else { + _this2.setTag(splitted[0], "1"); + } + }); + } + }, { + key: "updateTags", + value: function updateTags() { + this.resetTags(); + this.initTags(); + } + }, { + key: "resetTags", + value: function resetTags() { + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + this.module.User.removeTags(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); + } + }, { + key: "setTag", + value: function setTag(key, value) { + (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "setTag", this).call(this, 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.User.addTag(key, value); + } + }, { + key: "_onOpened", + value: function () { + var _onOpened2 = (0, _asyncToGenerator2.default)(function* (_ref2) { + var notification = _ref2.notification; + this.printLog("One signal -> on opened notification: " + JSON.stringify(notification)); + this.printLog("One signal -> app initialized: " + this.initialized); + + if (this.initialized) { + this.manageOpenedNotification(notification); + } else { + this.notificationToOpenDuringStartup = notification; + } + }); + + function _onOpened(_x2) { + return _onOpened2.apply(this, arguments); + } + + return _onOpened; + }() + }, { + key: "registerListener", + value: function registerListener() { + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "registerListener", this).call(this); + this.module.Notifications.addEventListener("click", this.onOpened); + } + }, { + key: "unregisterListener", + value: function unregisterListener() { + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + (0, _get2.default)((0, _getPrototypeOf2.default)(OneSignalPush.prototype), "unregisterListener", this).call(this); + this.module.Notifications.removeEventListener("click", this.onOpened); + this.initialized = false; + } + }, { + key: "checkIfAppIsOpenedByNotification", + value: function checkIfAppIsOpenedByNotification(onOpen) { + this.printLog("One signal -> checkIfAppIsOpenedByNotification"); + this.initialized = true; + this.manageOpenedNotification(this.notificationToOpenDuringStartup, onOpen); + + if (!this.notificationToOpenDuringStartup) { + throw new Error("app not opened by notification"); + } + + this.notificationToOpenDuringStartup = undefined; + return true; + } + }, { + key: "manageOpenedNotification", + value: function manageOpenedNotification(notification, onOpen) { + if (notification) { + this.printLog("notificationId -> " + notification.notificationId); + var additionalData = notification.additionalData, + notificationID = notification.notificationID; + this.openNotification(notificationID, additionalData); + } + } + }, { + key: "deleteRegistration", + value: function deleteRegistration() { + if (!this.isModuleAvailable()) { + this.printLog("OneSignal module not available"); + return; + } + + this.module.User.pushSubscription.optOut(); + } + }]); + }(_BasePush2.default); + + OneSignalPush.NAME = "onesignal"; +},1916,[3,270,6,7,11,85,13,14,881,1896,1917,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 PushTags = exports.default = function () { + function PushTags() { + (0, _classCallCheck2.default)(this, PushTags); + } + + return (0, _createClass2.default)(PushTags, null, [{ + key: "mergeTags", + value: function mergeTags(userTags, defaultTags, userDatasetTags) { + var aUserTags = PushTags.parseTags(userTags); + + if (defaultTags !== userDatasetTags) { + var aUserDatasetTags = PushTags.parseTags(userDatasetTags); + var aDefaultTags = PushTags.parseTags(defaultTags); + var i = 0; + + while (i < aUserTags.length) { + var tag = aDefaultTags.find(function (item) { + return item.label === aUserTags[i].label; + }); + + if (!tag) { + aUserTags.splice(i, 1); + } else { + aUserTags[i].value = tag.value; + i += 1; + } + } + + for (i = 0; i < aDefaultTags.length; i++) { + var _tag = aUserDatasetTags.find(function (item) { + return item.label === aDefaultTags[i].label; + }); + + if (!_tag) { + aUserTags.push(aDefaultTags[i]); + } + } + } + + return PushTags.formatTags(aUserTags); + } + }, { + key: "formatTags", + value: function formatTags() { + var tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + return tags.map(function (_ref) { + var label = _ref.label, + value = _ref.value; + return value + "=" + label; + }).join("&"); + } + }, { + key: "parseTags", + value: function parseTags() { + var tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + return tags.split("&").map(function (tag) { + var splitted = tag.split("="); + + if (splitted.length === 2) { + return { + value: splitted[0], + label: splitted[1] + }; + } + + return undefined; + }).filter(function (item) { + return item !== undefined; + }); + } + }]); + }(); +},1917,[3,6,7]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.MasPush = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _excluded = ["body", "click_action", "title"]; + + 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 MasPush = exports.MasPush = function (_FirebasePush) { + function MasPush() { + var _this; + + (0, _classCallCheck2.default)(this, MasPush); + _this = _callSuper(this, MasPush, [MasPush.NAME]); + _this.masAppId = ""; + return _this; + } + + (0, _inherits2.default)(MasPush, _FirebasePush); + return (0, _createClass2.default)(MasPush, [{ + key: "parsePushEvent", + value: function parsePushEvent(event) { + var _event$data = event.data, + data = _event$data === undefined ? {} : _event$data, + messageId = event.messageId, + _event$notification = event.notification, + notification = _event$notification === undefined ? {} : _event$notification; + var android = notification.android; + var body = data.body, + _data$click_action = data.click_action, + click_action = _data$click_action === undefined ? "" : _data$click_action, + title = data.title, + rest = (0, _objectWithoutProperties2.default)(data, _excluded); + var sound = android ? android.sound : undefined; + var newData = Object.assign({}, rest); + + if (!click_action.startsWith("" + global.server)) { + newData.source = click_action; + } + + return { + title: notification.title || title, + body: notification.body || body, + sound: sound, + data: newData, + messageId: messageId + }; + } + }, { + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (appId) { + this.masAppId = appId; + return (0, _get2.default)((0, _getPrototypeOf2.default)(MasPush.prototype), "init", this).call(this); + }); + + function init(_x) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "sendRegistration", + value: function () { + var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token) { + yield (0, _get2.default)((0, _getPrototypeOf2.default)(MasPush.prototype), "sendRegistration", this).call(this, token, _$$_REQUIRE(_dependencyMap[10]).FirebasePush.NAME); + + try { + var success = false; + var iid = token; + + if (this.masAppId && iid) { + for (var i = 0; i < 3 && !success; i++) { + var origin = _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isAndroid() ? "androidapp" : "iosapp"; + var visitorId = ""; + var response = yield _Api.default.post("https://mas.protecmedia.com/WebPushNotification/instance/" + iid + "/" + origin + "/" + this.masAppId + "/" + visitorId, {}, {}, true); + var _response$data = response.data, + token_id = _response$data.token_id, + error = _response$data.error; + + if (error) { + var status = error.status, + source = error.source, + detail = error.detail; + this.serverMessage = detail ? "detail" : _$$_REQUIRE(_dependencyMap[12]).NOT_AVAILABLE; + } else { + this.lastSendRegistrationTime = new Date().getTime(); + this.serverMessage = token_id ? "id " + token_id : _$$_REQUIRE(_dependencyMap[12]).NOT_AVAILABLE; + success = true; + } + } + } else { + var log = "missing required information, appId: " + this.masAppId + ", token: " + iid; + this.serverMessage = "" + log; + } + } catch (e) { + this.serverMessage = "" + e.message; + } + }); + + function sendRegistration(_x2) { + return _sendRegistration.apply(this, arguments); + } + + return sendRegistration; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[10]).FirebasePush); + + MasPush.NAME = "mas"; +},1918,[3,270,4,6,7,11,85,13,14,407,1919,438,1896]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FirebasePush = 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 FirebasePush = exports.FirebasePush = function (_BaseCustomModulePush) { + function FirebasePush() { + var _this; + + 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; + + 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* () { + var userPermission = yield this.checkPermission(); + + if (!userPermission) { + userPermission = yield this.retrievePermission(); + + if (!userPermission) { + return false; + } + } + + try { + this.token = yield this.getToken(); + } catch (e) { + this.printLog(e); + } + + this.hasPermission = true; + + 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() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "registerListener", + value: function registerListener() { + var _this2 = this; + + if (!this.isModuleAvailable() || !this.hasPermission) { + return; + } + + (0, _get2.default)((0, _getPrototypeOf2.default)(FirebasePush.prototype), "registerListener", this).call(this); + this.onNotificationOpened = this.module.onNotificationOpenedApp(function (notificationOpen) { + _this2.manageOpenedNotification(notificationOpen, function (navigator) { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + key: "startupNavigator", + value: navigator + }); + }); + }); + this.onTokenRefreshListener = this.module.onTokenRefresh(function (fcmToken) { + if (fcmToken) { + _this2.token = fcmToken; + + _this2.sendRegistration(fcmToken); + + _this2.printLog("New token -> " + _this2.token); + } + }); + this.onMessage = this.module.onMessage(function (event) { + _this2.printLog("onMessage: " + JSON.stringify(event)); + + _this2.displayNotification(event); + }); + + 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) { + _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[10]).StringUtils.getRandomIdentifier(), + data: data, + notification: { + title: title, + body: message + } + }; + + _this2.manageOpenedNotification(event, function (navigator) { + _$$_REQUIRE(_dependencyMap[11]).EventRegister.emit(_events.default.LIVE_CONFIG_SET_VALUE, { + key: "startupNavigator", + value: navigator + }); + }); + + _this2.resetBadge(); + } + + 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.isModuleAvailable()) { + return undefined; + } + + return this.module.getInitialNotification(); + }); + + function getInitialNotification() { + return _getInitialNotification.apply(this, arguments); + } + + return getInitialNotification; + }() + }, { + key: "parsePushEvent", + value: function parsePushEvent(event) { + var data = event.data, + messageId = event.messageId, + _event$notification = event.notification, + notification = _event$notification === undefined ? {} : _event$notification; + var title = notification.title, + body = notification.body, + android = notification.android; + var sound = android ? android.sound : undefined; + return { + title: title, + body: body, + sound: sound, + data: data, + messageId: messageId + }; + } + }, { + key: "getToken", + value: function () { + var _getToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return ""; + } + + return this.module.getToken(); + }); + + function getToken() { + return _getToken.apply(this, arguments); + } + + return getToken; + }() + }, { + key: "deleteToken", + value: function () { + var _deleteToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return Promise.resolve(); + } + + return this.module.deleteToken(); + }); + + function deleteToken() { + return _deleteToken.apply(this, arguments); + } + + return deleteToken; + }() + }, { + key: "checkPermission", + value: function () { + var _checkPermission = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + + var result = false; + + try { + result = (yield this.module.hasPermission()) === 1; + } catch (error) {} + + return result; + }); + + function checkPermission() { + return _checkPermission.apply(this, arguments); + } + + return checkPermission; + }() + }, { + key: "retrievePermission", + value: function () { + var _retrievePermission = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + + try { + yield this.module.requestPermission(); + return true; + } catch (error) {} + + return false; + }); + + function retrievePermission() { + return _retrievePermission.apply(this, arguments); + } + + return retrievePermission; + }() + }, { + key: "clearOldStoredNotifications", + value: function () { + var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + + return this.module.clearOldStoredNotifications(); + }); + + function clearOldStoredNotifications() { + return _clearOldStoredNotifications.apply(this, arguments); + } + + 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"; +},1919,[3,270,6,7,11,85,13,14,436,881,438,564,1920]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.BaseCustomModulePush = 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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _BasePush2 = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + + var _PushTags = _$$_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; } + + 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 BaseCustomModulePush = exports.BaseCustomModulePush = function (_BasePush) { + function BaseCustomModulePush(name) { + var _this; + + (0, _classCallCheck2.default)(this, BaseCustomModulePush); + _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: "hasTags", + value: function hasTags() { + var _global$getMainPSetup = global.getMainPSetup(), + pushTags = _global$getMainPSetup.pushTags; + + return !_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pushTags); + } + }, { + key: "initTags", + value: function initTags() { + var _this2 = this; + + (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "initTags", this).call(this); + + var _global$getUserSettin = global.getUserSettings(), + userDefinedPushTags = _global$getUserSettin.userDefinedPushTags; + + var tags = _PushTags.default.parseTags(userDefinedPushTags); + + tags.forEach(function (_ref) { + var value = _ref.value, + label = _ref.label; + + _this2.setTag(value, label); + }); + } + }, { + key: "updateTags", + value: function updateTags() { + this.initTags(); + this.sendRegistration(); + } + }, { + key: "createAndroidChannels", + value: function () { + var _createAndroidChannels = (0, _asyncToGenerator2.default)(function* () { + try { + yield this.createAndroidChannel(this.channelId, "Breaking News", "daily push notification"); + } catch (e) { + this.printLog("failed to create channel"); + } + + try { + yield this.createAndroidChannel(this.channelSilentId, "Silent Breaking News", "daily push notification silent", 2); + } catch (e) { + this.printLog("failed to create silent channel"); + } + }); + + function createAndroidChannels() { + return _createAndroidChannels.apply(this, arguments); + } + + return createAndroidChannels; + }() + }, { + key: "createAndroidChannel", + value: function () { + 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, + name: name, + description: description, + importance: importance + }); + } catch (e) { + this.printLog(e.message); + } + }); + + function createAndroidChannel(_x, _x2, _x3) { + return _createAndroidChannel.apply(this, arguments); + } + + return createAndroidChannel; + }() + }, { + key: "parsePushEvent", + value: function parsePushEvent() { + return {}; + } + }, { + key: "getNotificationId", + value: function getNotificationId(event) { + var messageId = event.messageId, + message_id = event.message_id; + return messageId || message_id; + } + }, { + key: "displayNotification", + value: function () { + var _displayNotification = (0, _asyncToGenerator2.default)(function* (event) { + var _this$parsePushEvent = this.parsePushEvent(event), + title = _this$parsePushEvent.title, + body = _this$parsePushEvent.body, + sound = _this$parsePushEvent.sound, + messageId = _this$parsePushEvent.messageId, + 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 { + 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) { + return _displayNotification.apply(this, arguments); + } + + return displayNotification; + }() + }, { + key: "removeNotificationById", + value: function () { + var _removeNotificationById = (0, _asyncToGenerator2.default)(function* (notificationId) { + 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) { + return _removeNotificationById.apply(this, arguments); + } + + return removeNotificationById; + }() + }, { + key: "getInitialNotification", + value: function () { + var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { + return Promise.resolve({}); + }); + + function getInitialNotification() { + return _getInitialNotification.apply(this, arguments); + } + + return getInitialNotification; + }() + }, { + key: "checkIfAppIsOpenedByNotification", + value: function () { + var _checkIfAppIsOpenedByNotification = (0, _asyncToGenerator2.default)(function* (onOpen) { + var notificationOpen = yield this.getInitialNotification(); + + if (!notificationOpen) { + throw new Error("app is not opened by notification"); + } + + yield this.manageOpenedNotification(notificationOpen, onOpen); + }); + + function checkIfAppIsOpenedByNotification(_x6) { + return _checkIfAppIsOpenedByNotification.apply(this, arguments); + } + + return checkIfAppIsOpenedByNotification; + }() + }, { + key: "manageOpenedNotification", + value: function () { + var _manageOpenedNotification = (0, _asyncToGenerator2.default)(function* (event, onOpen) { + if (!event) { + this.printLog("no event to open"); + return; + } + + var notificationId = this.getNotificationId(event); + this.removeNotificationById(notificationId); + + 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); + } + }); + + function manageOpenedNotification(_x7, _x8) { + return _manageOpenedNotification.apply(this, arguments); + } + + return manageOpenedNotification; + }() + }, { + key: "clearPush", + value: function clearPush() { + (0, _get2.default)((0, _getPrototypeOf2.default)(BaseCustomModulePush.prototype), "clearPush", this).call(this); + this.removeNotificationById(); + } + }, { + key: "checkIfSendRegistration", + value: function () { + var _checkIfSendRegistration = (0, _asyncToGenerator2.default)(function* () { + try { + if (this.lastSendRegistrationTime && this.token) { + var timeFromLastSend = new Date().getTime() - this.lastSendRegistrationTime; + + var _global$getMainPSetup2 = global.getMainPSetup(), + hoursToSendPushRegistration = _global$getMainPSetup2.hoursToSendPushRegistration; + + if (timeFromLastSend > _$$_REQUIRE(_dependencyMap[11]).DateUtils.HOUR_IN_MILLS * hoursToSendPushRegistration) { + yield this.sendRegistration(this.token); + } + } + } catch (e) { + this.printLog(e.message); + } + }); + + function checkIfSendRegistration() { + return _checkIfSendRegistration.apply(this, arguments); + } + + return checkIfSendRegistration; + }() + }, { + key: "deleteRegistration", + value: function () { + var _deleteRegistration = (0, _asyncToGenerator2.default)(function* () { + var result = false; + + try { + var response = yield _Api.default.deleteDeviceToPushServer({ + machineId: global.machineId, + token: this.token, + service: this.service + }); + var data = response.data; + this.token = _BasePush2.NOT_AVAILABLE; + result = typeof data === "object" ? data.success : false; + } catch (e) {} + + return result; + }); + + function deleteRegistration() { + return _deleteRegistration.apply(this, arguments); + } + + return deleteRegistration; + }() + }, { + key: "sendRegistration", + value: function () { + var _sendRegistration = (0, _asyncToGenerator2.default)(function* (token, service) { + if ((0, _BasePush2.isNotAvailable)(token)) { + return false; + } + + var success = false; + + for (var i = 0; i < 3 && !success; i++) { + try { + var others = {}; + + if (this.hasTags()) { + others.segments = Object.keys(this.tags).join(","); + } + + var response = yield _Api.default.registerDeviceToPushServer(Object.assign({ + machineId: global.machineId, + token: token || this.token, + service: service || this.service + }, others)); + var data = response.data; + this.serverMessage = data ? data.message : _BasePush2.NOT_AVAILABLE; + this.lastSendRegistrationTime = new Date().getTime(); + success = true; + } catch (e) {} + } + + return success; + }); + + function sendRegistration(_x9, _x10) { + return _sendRegistration.apply(this, arguments); + } + + return sendRegistration; + }() + }]); + }(_BasePush2.default); +},1920,[3,270,6,7,11,85,13,14,407,1896,1917,438,579]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.AmazonPush = 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 _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _excluded = ["title", "body", "sound", "data", "adm_message_md5"]; + + 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 AmazonPush = exports.AmazonPush = function (_BaseCustomModulePush) { + function AmazonPush() { + var _this; + + (0, _classCallCheck2.default)(this, AmazonPush); + _this = _callSuper(this, AmazonPush, [AmazonPush.NAME]); + + var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), + AmazonDeviceMessaging = _OptionalPackages$get.AmazonDeviceMessaging; + + _this.module = AmazonDeviceMessaging; + return _this; + } + + (0, _inherits2.default)(AmazonPush, _BaseCustomModulePush); + return (0, _createClass2.default)(AmazonPush, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + 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() { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "registerListener", + value: function registerListener() { + var _this2 = this; + + (0, _get2.default)((0, _getPrototypeOf2.default)(AmazonPush.prototype), "registerListener", this).call(this); + + 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 + }); + }); + }); + this.module.addOnTokenRefreshedListener(function (token) { + _this2.token = token; + + _this2.sendRegistration(token); + + _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.isModuleAvailable()) { + return; + } + + this.module.removeNotificationOpenedListener(); + this.module.removeMessageListener(); + this.module.removeTokenRefreshedListener(); + } + }, { + key: "getInitialNotification", + value: function () { + var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return undefined; + } + + return this.module.getInitialNotification(); + }); + + function getInitialNotification() { + return _getInitialNotification.apply(this, arguments); + } + + return getInitialNotification; + }() + }, { + key: "parsePushEvent", + value: function parsePushEvent(event) { + var title = event.title, + body = event.body, + sound = event.sound, + data = event.data, + adm_message_md5 = event.adm_message_md5, + rest = (0, _objectWithoutProperties2.default)(event, _excluded); + return { + title: title, + body: body, + sound: sound, + data: Object.assign({}, data, rest), + messageId: adm_message_md5 + }; + } + }, { + key: "getToken", + value: function () { + var _getToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return ""; + } + + return this.module.getToken(); + }); + + function getToken() { + return _getToken.apply(this, arguments); + } + + return getToken; + }() + }, { + key: "deleteToken", + value: function () { + var _deleteToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return Promise.resolve(); + } + + return this.module.deleteToken(); + }); + + function deleteToken() { + return _deleteToken.apply(this, arguments); + } + + return deleteToken; + }() + }, { + key: "register", + value: function () { + var _register = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return; + } + + try { + yield this.module.register(); + } catch (e) { + this.printLog(e.message); + } + }); + + function register() { + return _register.apply(this, arguments); + } + + return register; + }() + }, { + key: "clearOldStoredNotifications", + value: function () { + var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + + return this.module.clearOldStoredNotifications(); + }); + + function clearOldStoredNotifications() { + return _clearOldStoredNotifications.apply(this, arguments); + } + + return clearOldStoredNotifications; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); + + AmazonPush.NAME = "adm"; +},1921,[3,4,270,6,7,11,85,13,14,436,881,564,1920]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.HuaweiPush = 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 _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _excluded = ["body", "title", "android", "sound"]; + + 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 HuaweiPush = exports.HuaweiPush = function (_BaseCustomModulePush) { + function HuaweiPush() { + var _this; + + (0, _classCallCheck2.default)(this, HuaweiPush); + _this = _callSuper(this, HuaweiPush, [HuaweiPush.NAME]); + _this.module = null; + + var _OptionalPackages$get = _optionalPackageUtils.default.getPushLibraries(), + HcmDeviceMessaging = _OptionalPackages$get.HcmDeviceMessaging; + + _this.module = HcmDeviceMessaging; + return _this; + } + + (0, _inherits2.default)(HuaweiPush, _BaseCustomModulePush); + return (0, _createClass2.default)(HuaweiPush, [{ + key: "init", + value: function () { + var _init = (0, _asyncToGenerator2.default)(function* (appId) { + this.appId = appId; + + if (!this.isModuleAvailable()) { + 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) { + return _init.apply(this, arguments); + } + + return init; + }() + }, { + key: "registerListener", + value: function registerListener() { + var _this2 = this; + + (0, _get2.default)((0, _getPrototypeOf2.default)(HuaweiPush.prototype), "registerListener", this).call(this); + + 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 + }); + }); + }); + this.module.addOnTokenRefreshedListener(function (token) { + _this2.token = token; + + _this2.sendRegistration(token); + + _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.isModuleAvailable()) { + return; + } + + this.module.removeNotificationOpenedListener(); + this.module.removeMessageListener(); + this.module.removeTokenRefreshedListener(); + } + }, { + key: "getInitialNotification", + value: function () { + var _getInitialNotification = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return undefined; + } + + return this.module.getInitialNotification(); + }); + + function getInitialNotification() { + return _getInitialNotification.apply(this, arguments); + } + + return getInitialNotification; + }() + }, { + key: "parsePushEvent", + value: function parsePushEvent(event) { + var _event$data = event.data, + data = _event$data === undefined ? {} : _event$data, + messageId = event.messageId; + var body = data.body, + title = data.title, + _data$android = data.android, + android = _data$android === undefined ? {} : _data$android, + sound = data.sound, + rest = (0, _objectWithoutProperties2.default)(data, _excluded); + return { + title: title, + body: body, + sound: android ? android.sound : sound, + data: rest, + messageId: messageId + }; + } + }, { + key: "getToken", + value: function () { + var _getToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return ""; + } + + return this.module.getToken(this.appId); + }); + + function getToken() { + return _getToken.apply(this, arguments); + } + + return getToken; + }() + }, { + key: "deleteToken", + value: function () { + var _deleteToken = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return Promise.resolve(); + } + + return this.module.deleteToken(this.appId); + }); + + function deleteToken() { + return _deleteToken.apply(this, arguments); + } + + return deleteToken; + }() + }, { + key: "clearOldStoredNotifications", + value: function () { + var _clearOldStoredNotifications = (0, _asyncToGenerator2.default)(function* () { + if (!this.isModuleAvailable()) { + return false; + } + + return this.module.clearOldStoredNotifications(); + }); + + function clearOldStoredNotifications() { + return _clearOldStoredNotifications.apply(this, arguments); + } + + return clearOldStoredNotifications; + }() + }]); + }(_$$_REQUIRE(_dependencyMap[12]).BaseCustomModulePush); + + HuaweiPush.NAME = "hcm"; +},1922,[3,4,270,6,7,11,85,13,14,436,881,564,1920]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = 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 _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[10]); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _refreshComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + var _articleExtraComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + + var _articleFlingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + + var _articleGraph = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + + var _articleText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); + + var _excluded = ["FooterComponent", "onModeChange", "onLongPress", "navigation", "accessibilityItems", "onAccessibilityItemPress"]; + + 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 styles = _reactNative.StyleSheet.create({ + graphicParent: { + overflow: "hidden", + flexDirection: "column", + flex: 1, + width: "100%" + } + }); + + var NewsmemoryArticle = exports.default = function (_React$Component) { + function NewsmemoryArticle(props) { + var _this; + + (0, _classCallCheck2.default)(this, NewsmemoryArticle); + _this = _callSuper(this, NewsmemoryArticle, [props]); + _this._scrollContentHeight = 0; + _this._scrollHeight = 0; + _this._articleExtraHeight = 0; + _this._articleExtraScrollPosition = 0; + _this._scrollPosition = 0; + _this._accessibilityHeight = 0; + _this._fingerItemIndex = -1; + _this.onScroll = _this._onScroll.bind(_this); + _this.onPanEvent = _this._onPanEvent.bind(_this); + _this.onRef = _this._onRef.bind(_this); + _this.onGraphRef = _this._onGraphRef.bind(_this); + _this.onArticleExtraRef = _this._onArticleExtraRef.bind(_this); + _this.onArticleRef = _this._onArticleRef.bind(_this); + _this.onScrollLayout = _this._onScrollLayout.bind(_this); + _this.onScrollContentLayout = _this._onScrollContentLayout.bind(_this); + _this.onLoadEnd = _this._onLoadEnd.bind(_this); + _this.onScrollTop = _this._onScrollTop.bind(_this); + _this.scrollTo = _this._scrollTo.bind(_this); + _this.isActive = _this._isActive.bind(_this); + _this.onRefresh = _this._onRefresh.bind(_this); + _this.onPositionId = _this._onPositionId.bind(_this); + _this.onPositionIdOffset = _this._onPositionIdOffset.bind(_this); + _this.onHrsPosition = _this._onHrsPosition.bind(_this); + _this.onExtraOpenGallery = _this._onExtraOpenGallery.bind(_this); + _this.onExtraPress = _this._onExtraPress.bind(_this); + _this.onExtraLayout = _this._onExtraLayout.bind(_this); + _this.onExpandedImageLayout = _this._onExpandedImageLayout.bind(_this); + _this.onAccessibilityLayout = _this._onAccessibilityLayout.bind(_this); + _this.onArticleExtraLoaded = _this._onArticleExtraLoaded.bind(_this); + _this.scrollUp = _this._scrollUp.bind(_this); + _this.scrollDown = _this._scrollDown.bind(_this); + _this.state = { + mode: props.mode, + refreshing: false, + hidden: props.hidden, + focusedItem: undefined, + lastFocusedIndex: -1 + }; + return _this; + } + + (0, _inherits2.default)(NewsmemoryArticle, _React$Component); + return (0, _createClass2.default)(NewsmemoryArticle, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + var onUnmount = this.props.onUnmount; + + if (typeof onUnmount === "function") { + onUnmount(); + } + } + }, { + key: "getText", + value: function getText() { + if (this.textArticle) { + return this.textArticle.getText() || ""; + } + + return ""; + } + }, { + key: "getMode", + value: function getMode() { + var mode = this.state.mode; + return mode; + } + }, { + key: "isTextMode", + value: function isTextMode() { + var mode = this.state.mode; + return mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT; + } + }, { + key: "toggleMode", + value: function toggleMode() { + var _this$props = this.props, + edition = _this$props.edition, + page = _this$props.page, + article = _this$props.article; + var mode = this.isTextMode() ? _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC : _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT; + (0, _$$_REQUIRE(_dependencyMap[23]).sendNewsmemoryToogleArticleModeEvent)(mode, edition, page, article); + this.setState({ + mode: mode + }); + } + }, { + key: "show", + value: function show() { + var _this$state = this.state, + hidden = _this$state.hidden, + mode = _this$state.mode; + + if (this.graphArticle && mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC) { + this.graphArticle.show(); + } else if (hidden) { + this.setState({ + hidden: false + }); + } + } + }, { + key: "hide", + value: function hide() { + var _this$state2 = this.state, + hidden = _this$state2.hidden, + mode = _this$state2.mode; + + if (this.graphArticle && mode === _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC) { + this.graphArticle.hide(); + } else if (!hidden) { + this.setState({ + hidden: true + }); + } + } + }, { + key: "isTranslated", + value: function isTranslated(language) { + if (this.textArticle && this.isTextMode()) { + return this.textArticle.isTranslated(language); + } + + return false; + } + }, { + key: "translate", + value: function () { + var _translate = (0, _asyncToGenerator2.default)(function* (language) { + if (this.textArticle && this.isTextMode()) { + return this.textArticle.initializeHtml(language); + } + + return false; + }); + + function translate(_x) { + return _translate.apply(this, arguments); + } + + return translate; + }() + }, { + key: "getPrintHtml", + value: function () { + var _getPrintHtml = (0, _asyncToGenerator2.default)(function* () { + var html; + var filename; + + try { + var _this$props2 = this.props, + article = _this$props2.article, + page = _this$props2.page, + newspaper = _this$props2.newspaper; + filename = newspaper.getEdition() + " " + newspaper.getIssue() + " " + page.getPage() + " " + article.getXmlId(); + filename = filename.replace(/ /g, "_"); + + if (this.isTextMode()) { + html = this.textArticle.getContentToPrint(); + filename = filename + "_t"; + } else { + if (_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isIOS()) { + yield this.graphArticle.isPrintGraphReady(); + } + + html = yield this.graphArticle.getHtmlToPrint(); + } + } catch (e) {} + + return { + html: html, + filename: filename + }; + }); + + function getPrintHtml() { + return _getPrintHtml.apply(this, arguments); + } + + return getPrintHtml; + }() + }, { + key: "print", + value: function () { + var _print = (0, _asyncToGenerator2.default)(function* () { + var _global$getActivePSet = global.getActivePSetup(), + printToLetter = _global$getActivePSet.printToLetter; + + var _yield$this$getPrintH = yield this.getPrintHtml(), + html = _yield$this$getPrintH.html, + filename = _yield$this$getPrintH.filename; + + var jobName = yield _tecnaviaFileUtils.default.printHTML(html, filename, printToLetter); + + if (jobName) { + return jobName; + } + + throw new Error("Print cancelled"); + }); + + function print() { + return _print.apply(this, arguments); + } + + return print; + }() + }, { + key: "checkArticleExtra", + value: function checkArticleExtra() { + if (this.graphArticle && !this.isTextMode()) { + this.graphArticle.checkArticleExtra(); + } + } + }, { + key: "toggleArticleExtra", + value: function toggleArticleExtra() { + if (this.graphArticle && !this.isTextMode()) { + this.graphArticle.toggleArticleExtra(); + } + } + }, { + key: "startHeightCheck", + value: function startHeightCheck() { + if (this.textArticle && this.isTextMode()) { + this.textArticle.startHeightCheck(); + } + } + }, { + key: "stopHeightCheck", + value: function stopHeightCheck() { + if (this.textArticle && this.isTextMode()) { + this.textArticle.stopHeightCheck(); + } + } + }, { + key: "scrollToHrAfter", + value: function scrollToHrAfter() { + var _this2 = this; + + if (this._positions) { + var position = this._positions.find(function (pos) { + return Math.ceil(pos + _this2._getExpandedImageHeight()) > Math.ceil(_this2._scrollPosition); + }); + + if (position > 0) { + this._onScrollTop(position + this._getExpandedImageHeight()); + + return; + } + } + + this._scrollToEnd(); + } + }, { + key: "scrollToHrBefore", + value: function scrollToHrBefore() { + if (this._positions) { + for (var i = this._positions.length - 1; i >= 0; i--) { + if (Math.floor(this._positions[i] + this._getExpandedImageHeight()) < Math.floor(this._scrollPosition)) { + this._onScrollTop(this._positions[i] + this._getExpandedImageHeight()); + + return; + } + } + } + + this._onScrollTop(); + } + }, { + key: "_scrollUp", + value: function _scrollUp() { + if (this.isTextMode()) { + this._scrollTo(-this._scrollHeight / 3); + } + } + }, { + key: "_scrollDown", + value: function _scrollDown() { + if (this.isTextMode()) { + this._scrollTo(this._scrollHeight / 3); + } + } + }, { + key: "_getCss", + value: function _getCss() { + return { + defaultCss: NewsmemoryArticle.defaultCss, + customCss: NewsmemoryArticle.customCss + }; + } + }, { + key: "_onScrollLayout", + value: function _onScrollLayout(_ref) { + var nativeEvent = _ref.nativeEvent; + var article = this.props.article; + var height = nativeEvent.layout.height; + this._scrollHeight = height; + + _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.ARTICLE_SCROLL_LAYOUT, { + id: (0, _$$_REQUIRE(_dependencyMap[26]).getArticleId)(article), + scrollHeight: height + }); + } + }, { + key: "_onScrollContentLayout", + value: function _onScrollContentLayout(width, height) { + this._scrollContentHeight = height; + } + }, { + key: "_onScroll", + value: function _onScroll(_ref2) { + var nativeEvent = _ref2.nativeEvent; + + var _global$getActivePSet2 = global.getActivePSetup(), + keepArticlePositionOnRotation = _global$getActivePSet2.keepArticlePositionOnRotation; + + var article = this.props.article; + var contentOffset = nativeEvent.contentOffset; + var xOffset = contentOffset.x, + yOffset = contentOffset.y; + + if (this.textArticle instanceof _articleText.default && keepArticlePositionOnRotation) { + this.textArticle.getPositionId(xOffset, yOffset); + } + + if (this.articleExtraRef) { + if ((yOffset <= 0 || this._scrollPosition > yOffset) && yOffset - this._getExpandedImageHeight() < this._articleExtraScrollPosition - this._scrollHeight + this._articleExtraHeight) { + this.articleExtraRef.show(); + } else { + this.articleExtraRef.hide(); + } + } + + this._scrollPosition = yOffset; + + _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.ARTICLE_SCROLL, { + id: (0, _$$_REQUIRE(_dependencyMap[26]).getArticleId)(article), + scrollYOffset: yOffset + }); + } + }, { + key: "_onPanEvent", + value: function _onPanEvent(_ref3) { + var nativeEvent = _ref3.nativeEvent; + + if (nativeEvent.state === _$$_REQUIRE(_dependencyMap[27]).State.ACTIVE) { + var accessibilityItems = this.props.accessibilityItems; + var y = nativeEvent.y; + var fingerY = y + this._scrollPosition; + var itemHeight = this._accessibilityHeight / accessibilityItems.length; + var progressiveHeight = 0; + var fingerItemIndex = -1; + + for (var i = 0; i < accessibilityItems.length; i++) { + if (fingerY >= progressiveHeight && fingerY <= progressiveHeight + itemHeight) { + fingerItemIndex = i; + break; + } + + progressiveHeight += itemHeight; + } + + if (this._fingerItemIndex !== fingerItemIndex) { + this._fingerItemIndex = fingerItemIndex; + + if (fingerY > this._accessibilityHeight) { + var focusedItem = this.state.focusedItem; + this.accessibilityFocus(); + + if (focusedItem !== undefined) { + this.setState({ + focusedItem: undefined, + lastFocusedIndex: fingerItemIndex + }); + } + } else { + this.accessibilityUnfocus(); + var _focusedItem = accessibilityItems[fingerItemIndex]; + this.setState({ + focusedItem: _focusedItem, + lastFocusedIndex: fingerItemIndex + }); + } + } + } + } + }, { + key: "accessibilityFocus", + value: function accessibilityFocus() { + var _this$textArticle; + + (_this$textArticle = this.textArticle) == null ? undefined : _this$textArticle.setAccessibilityFocus(true); + } + }, { + key: "accessibilityUnfocus", + value: function accessibilityUnfocus() { + var _this$textArticle2; + + (_this$textArticle2 = this.textArticle) == null ? undefined : _this$textArticle2.setAccessibilityFocus(false); + } + }, { + key: "_onRefresh", + value: function _onRefresh() { + var _this3 = this; + + var onSwipeDown = this.props.onSwipeDown; + + if (typeof onSwipeDown === "function") { + this.setState({ + refreshing: true + }, function () { + onSwipeDown(); + + _this3.setState({ + refreshing: false + }); + }); + } + } + }, { + key: "_onLoadEnd", + value: function _onLoadEnd() { + var _this4 = this; + + var _this$props3 = this.props, + index = _this$props3.index, + onLoadEnd = _this$props3.onLoadEnd, + getNewspaperStatus = _this$props3.getNewspaperStatus; + + if (onLoadEnd) { + onLoadEnd(index); + } + + var _global$getActivePSet3 = global.getActivePSetup(), + keepArticlePositionOnRotation = _global$getActivePSet3.keepArticlePositionOnRotation; + + if (this.isActive() && this.isTextMode() && keepArticlePositionOnRotation && this.textArticle instanceof _articleText.default) { + var _getNewspaperStatus = getNewspaperStatus(), + lastArticlePositionId = _getNewspaperStatus.lastArticlePositionId; + + if (lastArticlePositionId > 0) { + setTimeout(function () { + _this4.textArticle.goToPositionId(lastArticlePositionId); + }, 500); + } + } + } + }, { + key: "_scrollToEnd", + value: function _scrollToEnd() { + var _this5 = this; + + if (this.scrollTextArticle) { + setTimeout(function () { + var _this5$scrollTextArti; + + (_this5$scrollTextArti = _this5.scrollTextArticle) == null ? undefined : _this5$scrollTextArti.scrollToEnd({ + animated: true + }); + }, 1); + } + } + }, { + key: "_onScrollTop", + value: function _onScrollTop() { + var _this6 = this; + + var top = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + + if (this.scrollTextArticle) { + setTimeout(function () { + var _this6$scrollTextArti; + + (_this6$scrollTextArti = _this6.scrollTextArticle) == null ? undefined : _this6$scrollTextArti.scrollTo({ + y: Math.max(0, top), + x: 0, + animated: true + }); + }, 1); + } + } + }, { + key: "_getIndexOfFocusedItems", + value: function _getIndexOfFocusedItems() { + var accessibilityItems = this.props.accessibilityItems; + var focusedItem = this.state.focusedItem; + + if (!focusedItem) { + return -1; + } + + var i = 0; + + for (; i < accessibilityItems.length; i++) { + if (_$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(accessibilityItems[i], focusedItem)) { + break; + } + } + + return i; + } + }, { + key: "selectAccessibilityItem", + value: function selectAccessibilityItem() { + var onAccessibilityItemPress = this.props.onAccessibilityItemPress; + var focusedItem = this.state.focusedItem; + + if (focusedItem && typeof onAccessibilityItemPress === "function") { + onAccessibilityItemPress(focusedItem); + } + } + }, { + key: "_scrollTo", + value: function _scrollTo(top) { + var _this7 = this; + + var accessibilityItems = this.props.accessibilityItems; + var lastFocusedIndex = this.state.lastFocusedIndex; + var accessibilityItemsVisible = this._accessibilityHeight > 0 && this._scrollPosition === 0; + var accessibilityFromBottom = top < 0 && lastFocusedIndex > -1 && accessibilityItemsVisible; + var accessibilityFromTop = top > 0 && lastFocusedIndex < accessibilityItems.length && accessibilityItemsVisible; + var articleAccessibilityFocus = false; + + if (accessibilityFromTop) { + lastFocusedIndex += 1; + this.setState({ + focusedItem: accessibilityItems[lastFocusedIndex], + lastFocusedIndex: lastFocusedIndex + }); + } else if (accessibilityFromBottom) { + lastFocusedIndex -= 1; + this.setState({ + focusedItem: accessibilityItems[lastFocusedIndex], + lastFocusedIndex: lastFocusedIndex + }); + } else { + var offsetY = this._scrollPosition + top; + + if (this.scrollTextArticle) { + setTimeout(function () { + if (_this7.scrollTextArticle) { + _this7.scrollTextArticle.scrollTo({ + y: Math.max(0, offsetY), + x: 0, + animated: true + }); + } + }, 1); + } + + articleAccessibilityFocus = true; + } + + if (articleAccessibilityFocus) { + this.accessibilityFocus(); + } else { + this.accessibilityUnfocus(); + } + } + }, { + key: "_onHrsPosition", + value: function _onHrsPosition(positions) { + this._positions = positions; + } + }, { + key: "_onExpandedImageLayout", + value: function _onExpandedImageLayout(_ref4) { + var nativeEvent = _ref4.nativeEvent; + this._expandedImageHeight = nativeEvent.layout.height; + } + }, { + key: "_onAccessibilityLayout", + value: function _onAccessibilityLayout(_ref5) { + var nativeEvent = _ref5.nativeEvent; + this._accessibilityHeight = nativeEvent.layout.height; + } + }, { + key: "_onPositionId", + value: function _onPositionId(positionId) { + if (this.isActive()) { + var getNewspaperStatus = this.props.getNewspaperStatus; + var newspaperStatus = getNewspaperStatus(); + + if (newspaperStatus) { + newspaperStatus.setLastArticlePositionId(positionId); + } + } + } + }, { + key: "_onPositionIdOffset", + value: function _onPositionIdOffset(_ref6) { + var top = _ref6.top; + + if (this.isActive()) { + this.onScrollTop(top); + } + } + }, { + key: "_onArticleExtraLoaded", + value: function _onArticleExtraLoaded(html) { + var scrollPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + + if (this.articleExtraRef) { + this._articleExtraScrollPosition = scrollPosition; + this.articleExtraRef.setContent(html); + } + } + }, { + key: "_getExpandedImageHeight", + value: function _getExpandedImageHeight() { + return this._expandedImageHeight || 0; + } + }, { + key: "_onExtraPress", + value: function _onExtraPress() { + this._scrollTo(this._articleExtraScrollPosition + this._getExpandedImageHeight() - this._scrollPosition); + } + }, { + key: "_onExtraLayout", + value: function _onExtraLayout(_ref7) { + var nativeEvent = _ref7.nativeEvent; + this._articleExtraHeight = nativeEvent.layout.height; + } + }, { + key: "_onExtraOpenGallery", + value: function _onExtraOpenGallery(content) { + if (this.textArticle) { + this.textArticle.openGallery(content); + } + } + }, { + key: "_onArticleExtraRef", + value: function _onArticleExtraRef(ref) { + this.articleExtraRef = ref; + } + }, { + key: "_onArticleRef", + value: function _onArticleRef(ref) { + this.textArticle = ref; + } + }, { + key: "_onRef", + value: function _onRef(ref) { + this.scrollTextArticle = ref; + } + }, { + key: "_onGraphRef", + value: function _onGraphRef(ref) { + this.graphArticle = ref; + } + }, { + key: "_isActive", + value: function _isActive() { + var _this$props4 = this.props, + isActive = _this$props4.isActive, + index = _this$props4.index; + return typeof isActive !== "function" || isActive(index); + } + }, { + key: "_renderAccessibility", + value: function _renderAccessibility() { + var _this$props5 = this.props, + onAccessibilityItemPress = _this$props5.onAccessibilityItemPress, + accessibilityEnabled = _this$props5.accessibilityEnabled, + accessibilityItems = _this$props5.accessibilityItems; + var focusedItem = this.state.focusedItem; + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.View, { + onLayout: this.onAccessibilityLayout, + children: accessibilityItems.map(function (accessibilityItem, index) { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[29]).ItemAccessibilityFocused, { + touchable: true, + focused: _$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(focusedItem, accessibilityItem), + accessibilityEnabled: accessibilityEnabled, + accessibilityLabel: accessibilityItem.getText(), + onPress: function onPress() { + if (typeof onAccessibilityItemPress === "function") { + onAccessibilityItemPress(accessibilityItem); + } + }, + children: [(0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[29]).ItemListAccessibility, { + text: accessibilityItem.getText(), + classes: ["newsmemory-article-accessibility-text"], + focused: _$$_REQUIRE(_dependencyMap[24]).JSUtils.areEqualShallow(focusedItem, accessibilityItem), + style: { + padding: 8 + } + }), (0, _$$_REQUIRE(_dependencyMap[30]).hr)({ + backgroundColor: _$$_REQUIRE(_dependencyMap[31]).LIST_ITEM_SEPARATOR_COLOR, + height: _$$_REQUIRE(_dependencyMap[31]).LIST_ITEM_SEPARATOR_HEIGHT + })] + }, "accessibility_" + index); + }) + }); + } + }, { + key: "render", + value: function render() { + var _this$props6 = this.props, + FooterComponent = _this$props6.FooterComponent, + onModeChange = _this$props6.onModeChange, + onLongPress = _this$props6.onLongPress, + navigation = _this$props6.navigation, + accessibilityItems = _this$props6.accessibilityItems, + onAccessibilityItemPress = _this$props6.onAccessibilityItemPress, + rest = (0, _objectWithoutProperties2.default)(_this$props6, _excluded); + var _this$state3 = this.state, + refreshing = _this$state3.refreshing, + hidden = _this$state3.hidden; + + if (typeof onModeChange === "function") { + onModeChange(this.isTextMode(), rest.index); + } + + if (this.isTextMode()) { + if (hidden) { + return null; + } + + var _global$getActivePSet4 = global.getActivePSetup(), + enableArticleExtra = _global$getActivePSet4.enableArticleExtra; + + var simulateAccessibility = rest.accessibilityEnabled && !_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isSystemAccessibilityEnabled(); + var ScrollComponent = (0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[28]).Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[28]).jsxs)(_$$_REQUIRE(_dependencyMap[32]).TecnaviaScrollView, { + ref: this.onRef, + style: _articleComponent.default.scrollViewText, + contentContainerStyle: _articleComponent.default.scrollViewTextContainer, + onLayout: this.onScrollLayout, + onContentSizeChange: this.onScrollContentLayout, + onScroll: this.onScroll, + scrollEventThrottle: 16, + minPointers: simulateAccessibility || _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isEInk() ? 2 : 1, + scrollEnabled: !_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isEInk(), + refreshControl: !rest.accessibilityEnabled ? (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_refreshComponent.default, { + refreshing: refreshing, + onRefresh: this.onRefresh, + cssClasses: ["newsmemory-article-refresh-control"] + }) : null, + children: [this._renderAccessibility(), (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleText.default, Object.assign({ + ref: this.onArticleRef, + css: this._getCss() + }, rest, { + onScrollTop: this.onScrollTop, + onLongPress: onLongPress, + onLoadEnd: this.onLoadEnd, + onPositionId: this.onPositionId, + onPositionIdOffset: this.onPositionIdOffset, + onHrsPosition: this.onHrsPosition, + onExpandedImageLayout: this.onExpandedImageLayout, + onArticleExtraLoaded: this.onArticleExtraLoaded + })), FooterComponent || null] + }), enableArticleExtra ? (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleExtraComponent.default, { + ref: this.onArticleExtraRef, + onLayout: this.onExtraLayout, + onPress: this.onExtraPress, + maxHeight: rest.defaultHeight, + onOpenGallery: this.onExtraOpenGallery + }) : null] + }); + + if (simulateAccessibility) { + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_$$_REQUIRE(_dependencyMap[27]).PanGestureHandler, { + maxPointers: 1, + onGestureEvent: this.onPanEvent, + children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.Animated.View, { + collapsable: false, + style: { + flex: 1 + }, + children: ScrollComponent + }) + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleFlingComponent.default, { + onSwipeUp: this.scrollUp, + onSwipeDown: this.scrollDown, + onSwipeLeft: rest.goPrev, + onSwipeRight: rest.goNext, + children: ScrollComponent + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_reactNative.View, { + style: styles.graphicParent, + children: (0, _$$_REQUIRE(_dependencyMap[28]).jsx)(_articleGraph.default, Object.assign({ + ref: this.onGraphRef, + navigation: navigation, + FooterComponent: FooterComponent, + renderGraphContent: !hidden && this.isActive() + }, rest, { + onLongPress: onLongPress, + css: this._getCss() + })) + }); + } + }], [{ + key: "fixFontFamilyRules", + value: function fixFontFamilyRules(css) { + var newCSS = css; + var regExp = new RegExp(/font-family:[^;]+;/, "gm"); + var matches = css.match(regExp); + + if (matches) { + for (var i = 0; i < matches.length; i++) { + if (matches[i].indexOf("!important;") === -1) { + var modified = matches[i].replace(";", " !important;"); + newCSS = newCSS.replace(matches[i], modified); + } + } + + var fontFaceRegExp = new RegExp(/@font-face ?\{[^}]+\}/, "gm"); + var fontFaceMatches = newCSS.match(fontFaceRegExp); + + if (fontFaceMatches) { + for (var _i = 0; _i < fontFaceMatches.length; _i++) { + var _modified = fontFaceMatches[_i].replace(" !important;", ";"); + + newCSS = newCSS.replace(fontFaceMatches[_i], _modified); + } + } + } + + return newCSS; + } + }, { + key: "initArticleTextCss", + value: function () { + var _initArticleTextCss = (0, _asyncToGenerator2.default)(function* () { + var _global$getActivePSet5 = global.getActivePSetup(), + cssFilesToAdd = _global$getActivePSet5.cssFilesToAdd, + enableArticleTextSelection = _global$getActivePSet5.enableArticleTextSelection; + + var _global$getFontsConfi = global.getFontsConfig(), + fontRegular = _global$getFontsConfi.fontRegular, + fontBold = _global$getFontsConfi.fontBold; + + var customCss = yield (0, _$$_REQUIRE(_dependencyMap[26]).readCustomCss)(cssFilesToAdd); + NewsmemoryArticle.customCss = NewsmemoryArticle.fixFontFamilyRules(customCss); + NewsmemoryArticle.defaultCss = (0, _$$_REQUIRE(_dependencyMap[33]).DEFAULT_CSS)(fontRegular.fontWeb, fontBold.fontWeb, enableArticleTextSelection); + }); + + function initArticleTextCss() { + return _initArticleTextCss.apply(this, arguments); + } + + return initArticleTextCss; + }() + }, { + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, state) { + if (state.hidden && typeof props.isActive === "function" && props.isActive(props.index)) { + return Object.assign({}, state, { + hidden: false + }); + } + + return state; + } + }]); + }(_react.default.Component); + + NewsmemoryArticle.customCss = undefined; + NewsmemoryArticle.defaultCss = undefined; + NewsmemoryArticle.propTypes = Object.assign({ + navigation: _propTypes.default.shape({ + navigate: _propTypes.default.func + }).isRequired, + article: _propTypes.default.instanceOf(_EPaperArticle.default).isRequired, + mode: _propTypes.default.oneOf([_$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT, _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.GRAPHIC]), + accessibilityItems: _propTypes.default.array, + onAccessibilityItemPress: _propTypes.default.func, + onModeChange: _propTypes.default.func, + FooterComponent: _propTypes.default.node, + onSwipeDown: _propTypes.default.func, + onUnmount: _propTypes.default.func, + formattedIssue: _propTypes.default.string, + hidden: _propTypes.default.bool, + onLongPress: _propTypes.default.func, + getNewspaperStatus: _propTypes.default.func + }, _articleText.default.propTypes, _articleGraph.default.propTypes); + NewsmemoryArticle.defaultProps = { + mode: _$$_REQUIRE(_dependencyMap[22]).NewsmemoryArticleModes.TEXT, + hidden: false + }; +},1923,[3,4,270,6,7,11,13,14,582,16,18,436,566,667,859,670,1924,1925,1926,1947,1949,1982,1876,1970,438,564,1999,1,179,2009,2028,827,1929,1998]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _objectWithoutProperties2 = _$$_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 _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _excluded = ["style", "cssClasses", "progressBackgroundColor", "colors"]; + + 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 Refresh = exports.default = function (_React$Component) { + function Refresh() { + (0, _classCallCheck2.default)(this, Refresh); + return _callSuper(this, Refresh, arguments); + } + + (0, _inherits2.default)(Refresh, _React$Component); + return (0, _createClass2.default)(Refresh, [{ + key: "render", + value: function render() { + var _this$props = this.props, + style = _this$props.style, + cssClasses = _this$props.cssClasses, + progressBackgroundColor = _this$props.progressBackgroundColor, + colors = _this$props.colors, + rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + + var css = _$$_REQUIRE(_dependencyMap[10]).Css.getStyleObjByCssClasses(cssClasses); + + var newStyle = []; + + if (Array.isArray(style)) { + newStyle.push.apply(newStyle, (0, _toConsumableArray2.default)(style)); + } else { + newStyle.push(style); + } + + newStyle.push(css); + + var color = _$$_REQUIRE(_dependencyMap[11]).CssUtils.getAttributeFromStyle("color", newStyle, colors[0], true); + + var backgroundColor = _$$_REQUIRE(_dependencyMap[11]).CssUtils.getAttributeFromStyle("backgroundColor", newStyle, progressBackgroundColor, true); + + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.RefreshControl, Object.assign({ + colors: [color], + tintColor: color, + progressBackgroundColor: backgroundColor, + style: style + }, rest)); + } + }]); + }(_react.default.Component); + + Refresh.defaultProps = { + progressBackgroundColor: "#ffffff", + colors: ["#000000"] + }; +},1924,[3,22,4,6,7,11,13,14,16,18,819,438,179]); +__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({ + progressContainer: { + height: 6 + }, + progressStyle: { + position: "absolute", + bottom: 0, + width: "100%" + }, + scrollViewText: { + flexGrow: 1 + }, + scrollViewTextContainer: { + flexGrow: 1, + justifyContent: "space-between" + } + }); +},1925,[18]); +__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 _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _articleExtraComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + + 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 DEFAULT_HEIGHT = 100; + var FLING_VELOCITY_UP = -100; + var FLING_VELOCITY_DOWN = 800; + var TOP_SPACE = 100; + + function Tab(props) { + var onPress = props.onPress, + expanded = props.expanded; + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-extra-tab-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.TouchableOpacity, { + onPress: onPress, + style: _articleExtraComponent.default.tabParent, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-extra-tab"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_imageIconChooserComponent.default, { + type: _$$_REQUIRE(_dependencyMap[14]).TecnaviaIconType.MATERIAL_ICONS, + name: expanded ? "keyboard-arrow-down" : "keyboard-arrow-up", + style: _articleExtraComponent.default.tabIcon + }) + }) + }) + }); + } + + var ArticleExtra = exports.default = function (_React$Component) { + function ArticleExtra(props) { + var _this; + + (0, _classCallCheck2.default)(this, ArticleExtra); + _this = _callSuper(this, ArticleExtra, [props]); + _this._scrollRef = _react.default.createRef(); + _this._panRef = _react.default.createRef(); + _this._webviewHeight = 0; + _this._animation = undefined; + _this._currentHeight = undefined; + _this._enableSwipeDown = true; + _this.state = { + content: "", + expanded: false + }; + _this.onLayout = _this._onLayout.bind(_this); + _this.onScroll = _this._onScroll.bind(_this); + _this.onPress = _this._onPress.bind(_this); + _this.onMessage = _this._onMessage.bind(_this); + _this.onTabPress = _this._onTabPress.bind(_this); + _this.onPanHandler = _this._onPanHandler.bind(_this); + _this.onWebViewHeightChange = _this._onWebViewHeightChange.bind(_this); + _this._height = _$$_REQUIRE(_dependencyMap[13]).Css.getStyleObjByCssClasses(["newsmemory-article-extra-container"]).height || DEFAULT_HEIGHT; + _this._currentHeight = _this._height; + _this._gradientStyle = _$$_REQUIRE(_dependencyMap[13]).Css.getStyleObjByCssClasses(["newsmemory-article-extra-gradient"]); + _this._gradientColor = _this._gradientStyle.color || "#ffffff"; + _this._gradientColors = _this._gradientStyle.colors; + _this._animatedHeight = new _reactNative.Animated.Value(_this._height); + return _this; + } + + (0, _inherits2.default)(ArticleExtra, _React$Component); + return (0, _createClass2.default)(ArticleExtra, [{ + key: "setContent", + value: function setContent(html) { + this.setState({ + content: html + }); + } + }, { + key: "hide", + value: function hide() { + this._toggleVisibility(false); + } + }, { + key: "show", + value: function show() { + this._toggleVisibility(true); + } + }, { + key: "_onMessage", + value: function _onMessage(data) { + var type = data.type, + content = data.content; + var onOpenGallery = this.props.onOpenGallery; + var expanded = this.state.expanded; + + if (type === "OPEN_GALLERY" && typeof onOpenGallery === "function" && expanded) { + onOpenGallery(content); + } + } + }, { + key: "_onPress", + value: function _onPress() { + var onPress = this.props.onPress; + + if (typeof onPress === "function") { + onPress(); + } + } + }, { + key: "_onLayout", + value: function _onLayout(e) { + var onLayout = this.props.onLayout; + + if (typeof onLayout === "function") { + onLayout(e); + } + } + }, { + key: "_onScroll", + value: function _onScroll(_ref) { + var nativeEvent = _ref.nativeEvent; + var contentOffset = nativeEvent.contentOffset; + this._enableSwipeDown = contentOffset.y < 5; + } + }, { + key: "_onPanHandler", + value: function _onPanHandler(event) { + var _event$nativeEvent = event.nativeEvent, + state = _event$nativeEvent.state, + velocityY = _event$nativeEvent.velocityY; + + if (state === _$$_REQUIRE(_dependencyMap[15]).State.ACTIVE) { + if (velocityY < FLING_VELOCITY_UP) { + this._expandCollapseAnimation(true); + } else if (velocityY > FLING_VELOCITY_DOWN && this._enableSwipeDown) { + this._expandCollapseAnimation(false); + } + } + } + }, { + key: "_onWebViewHeightChange", + value: function _onWebViewHeightChange(height) { + this._webviewHeight = height; + } + }, { + key: "_maxHeight", + value: function _maxHeight() { + var maxHeight = this.props.maxHeight; + return Math.min(this._webviewHeight + _articleExtraComponent.TAB_LINE_HEIGHT, maxHeight - TOP_SPACE); + } + }, { + key: "_onTabPress", + value: function _onTabPress() { + var expand = this._currentHeight <= this._height; + + this._updateViewsStates(expand ? this._maxHeight() : this._height, expand); + } + }, { + key: "_expandCollapseAnimation", + value: function _expandCollapseAnimation(expand) { + this._updateViewsStates(expand ? this._maxHeight() : this._height, expand); + } + }, { + key: "_toggleVisibility", + value: function _toggleVisibility(state) { + this._updateViewsStates(state ? this._height : 0, false); + } + }, { + key: "_updateViewsStates", + value: function () { + var _updateViewsStates2 = (0, _asyncToGenerator2.default)(function* (height, expand) { + if (this._currentHeight !== height) { + if (!expand) { + this._toggleScrollState(expand); + } + + yield this._animate(height); + + this._toggleMinDist(expand); + + if (expand) { + this._toggleScrollState(expand); + + this._triggerWebViewRender(); + } + + this.setState({ + expanded: expand + }); + } + }); + + function _updateViewsStates(_x, _x2) { + return _updateViewsStates2.apply(this, arguments); + } + + return _updateViewsStates; + }() + }, { + key: "_triggerWebViewRender", + value: function _triggerWebViewRender() { + if (_$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isIOS() && this._scrollRef && this._scrollRef.current) { + this._scrollRef.current.scrollTo({ + y: 1 + }); + } + } + }, { + key: "_toggleScrollState", + value: function _toggleScrollState(enableScroll) { + if (this._scrollRef && this._scrollRef.current) { + this._scrollRef.current.setNativeProps({ + scrollEnabled: enableScroll + }); + } + } + }, { + key: "_toggleMinDist", + value: function _toggleMinDist(enableScroll) { + if (this._panRef && this._panRef.current) { + var minDist = enableScroll ? 30 : 0; + + this._panRef.current.setNativeProps({ + minDist: minDist + }); + } + } + }, { + key: "_animate", + value: function () { + var _animate2 = (0, _asyncToGenerator2.default)(function* (destinationValue) { + var _this2 = this; + + this._currentHeight = destinationValue; + + if (this._animation) { + this._animation.stop(); + + this._animation = undefined; + } + + this._animation = _reactNative.Animated.timing(this._animatedHeight, { + toValue: destinationValue, + duration: 300, + useNativeDriver: false + }); + return new Promise(function (resolve) { + _this2._animation.start(function (_ref2) { + var finished = _ref2.finished; + + if (finished) { + _this2._animation = undefined; + resolve(); + } + }); + }); + }); + + function _animate(_x3) { + return _animate2.apply(this, arguments); + } + + return _animate; + }() + }, { + key: "render", + value: function render() { + var _this$state = this.state, + content = _this$state.content, + expanded = _this$state.expanded; + + if (content) { + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-extra-container"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.Animated.View, { + style: [_articleExtraComponent.default.container, { + height: this._animatedHeight + }], + onLayout: this.onLayout, + children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-extra-parent"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { + style: _articleExtraComponent.default.parent, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[15]).PanGestureHandler, { + ref: this._panRef, + onHandlerStateChange: this.onPanHandler, + simultaneousHandlers: this._scrollRef, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { + style: _articleExtraComponent.default.view, + collapsable: false, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).Css, { + classes: ["newsmemory-article-extra-webview"], + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaGestureHandlerScrollview, { + ref: this._scrollRef, + simultaneousHandlers: this._panRef, + style: _articleExtraComponent.default.view, + scrollEnabled: false, + onScroll: this.onScroll, + children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[18]).AutoHeightWebView, { + startInLoadingState: _$$_REQUIRE(_dependencyMap[19]).LoadingStatePosition.none, + source: { + html: content + }, + htmlContentId: "content", + onHeightChange: this.onWebViewHeightChange, + onMessage: this.onMessage + }) + }) + }) + }) + }) + }) + }), (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(Tab, { + onPress: this.onTabPress, + expanded: expanded + })] + }) + }); + } + + return null; + } + }]); + }(_react.default.Component); + + ArticleExtra.propsTypes = { + onPress: _propTypes.default.func, + onLayout: _propTypes.default.func, + onOpenGallery: _propTypes.default.func, + maxHeight: _propTypes.default.number.isRequired + }; +},1926,[3,270,6,7,11,13,14,582,16,18,1927,1928,179,819,1811,1,438,1929,1930,1940]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.AnimatedImageIconChooser = undefined; + exports.getBase64 = getBase64; + + 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 _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + var _imageComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + + var _excluded = ["style", "imageStyle", "iconStyle", "type", "name", "source", "size", "tintColor"], + _excluded2 = ["Component", "getBase64Function"], + _excluded3 = ["Component", "getBase64Function"]; + + 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; })(); } + + function mapPropsOnComponent(props) { + var style = props.style, + imageStyle = props.imageStyle, + iconStyle = props.iconStyle, + type = props.type, + name = props.name, + source = props.source, + size = props.size, + tintColor = props.tintColor, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + + var library = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("library", style, type); + + var srcFromStyle = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("src", style); + + var src = _$$_REQUIRE(_dependencyMap[12]).JSUtils.isNull(srcFromStyle) || srcFromStyle === "inherit" ? name : srcFromStyle; + var newProps = Object.assign({ + Component: null + }, rest); + + var mergedIconStyle = _reactNative.StyleSheet.flatten([iconStyle, style]); + + if (Object.values(_iconComponent.TecnaviaIconType).includes(library) && src && src.length) { + newProps.Component = _iconComponent.default; + newProps.getBase64Function = _iconComponent.iconBase64; + newProps.style = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle(mergedIconStyle, ["tintColor", "src"]); + newProps.size = size; + newProps.name = src; + newProps.type = library; + } else { + var newSource = source; + + if (typeof srcFromStyle === "string" && srcFromStyle.indexOf("base64") !== -1) { + newSource = { + uri: srcFromStyle + }; + } + + var mergedImageStyle = _reactNative.StyleSheet.flatten([imageStyle, style]); + + var width = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("width", mergedImageStyle); + + var height = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("height", mergedImageStyle); + + var fontSize = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("fontSize", mergedIconStyle); + + var newStyle = {}; + + if (width === undefined && height === undefined) { + if (fontSize !== undefined) { + newStyle.width = fontSize; + newStyle.height = fontSize; + } + } else if (width === undefined) { + newStyle.width = height; + } else if (height === undefined) { + newStyle.height = width; + } + + newProps.Component = _imageComponent.default; + newProps.getBase64Function = _imageComponent.imageBase64; + newProps.style = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle([mergedImageStyle, newStyle], ["color", "src", "fontSize"]); + newProps.source = newSource; + newProps.tintColor = tintColor; + } + + return newProps; + } + + function getBase64(props) { + var _mapPropsOnComponent = mapPropsOnComponent(props), + Component = _mapPropsOnComponent.Component, + getBase64Function = _mapPropsOnComponent.getBase64Function, + rest = (0, _objectWithoutProperties2.default)(_mapPropsOnComponent, _excluded2); + + if (getBase64Function) { + return getBase64Function(rest); + } + + return undefined; + } + + var ImageIconChooser = function (_React$Component) { + function ImageIconChooser() { + (0, _classCallCheck2.default)(this, ImageIconChooser); + return _callSuper(this, ImageIconChooser, arguments); + } + + (0, _inherits2.default)(ImageIconChooser, _React$Component); + return (0, _createClass2.default)(ImageIconChooser, [{ + key: "render", + value: function render() { + var _mapPropsOnComponent2 = mapPropsOnComponent(this.props), + Component = _mapPropsOnComponent2.Component, + getBase64Function = _mapPropsOnComponent2.getBase64Function, + rest = (0, _objectWithoutProperties2.default)(_mapPropsOnComponent2, _excluded3); + + if (Component) { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(Component, Object.assign({}, rest)); + } + + return Component; + } + }]); + }(_react.default.Component); + + ImageIconChooser.propTypes = Object.assign({ + style: _propTypes.default.any, + imageStyle: _propTypes.default.any, + iconStyle: _propTypes.default.any, + size: _propTypes.default.number, + tintColor: _propTypes.default.string + }, _iconComponent.default.propTypes, _imageComponent.default.propTypes); + + var AnimatedImageIconChooser = exports.AnimatedImageIconChooser = _reactNative.Animated.createAnimatedComponent(ImageIconChooser); + + var _default = exports.default = ImageIconChooser; +},1927,[3,6,7,11,13,14,4,16,18,582,1811,588,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236248,7 +244037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1815,[18,438]); +},1928,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236295,7 +244084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var TecnaviaAnimatedScrollView = exports.TecnaviaAnimatedScrollView = _reactNative.Animated.createAnimatedComponent(TecnaviaScrollView); -},1816,[3,4,16,582,18,179,579,1]); +},1929,[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 @@ -236310,7 +244099,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1817,[1818]); +},1930,[1931]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236501,7 +244290,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e htmlContentId: "", disableStartAutoHeightEvaluation: false }; -},1818,[3,33,4,582,16,1819,1821,179,1822]); +},1931,[3,33,4,582,16,1932,1934,179,1935]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236519,7 +244308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e js += (0, _$$_REQUIRE(_dependencyMap[0]).updateWebviewFontSizeScript)(elementId); return js; }; -},1819,[1820]); +},1932,[1933]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236689,7 +244478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, 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 }"; }; -},1820,[18,3,1724,438]); +},1933,[18,3,1893,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -236741,7 +244530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e didMountRef.current = true; }, watcher); } -},1821,[3,33,16,436,434,564]); +},1934,[3,33,16,436,434,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -237473,7 +245262,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ignoreUrls: [], progressHidden: false }, _$$_REQUIRE(_dependencyMap[21]).OurBridge.customDefaultProps); -},1822,[3,22,4,270,6,7,11,13,14,582,16,18,436,1823,1708,1729,564,438,1726,179,1828,579,834]); +},1935,[3,22,4,270,6,7,11,13,14,582,16,18,436,1936,868,1897,564,438,880,179,1940,579,891]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -237615,7 +245404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1823,[3,270,6,7,18,434,824,823,815,438,1824]); +},1936,[3,270,6,7,18,434,881,1873,814,438,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -237630,7 +245419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1824,[1825]); +},1937,[1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -237868,162 +245657,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fadeDuration: 500, opacity: 1 }; -},1825,[3,6,7,11,13,14,16,18,434,1826,438,1709,179,1827]); -__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 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - - var _excluded = ["type", "style", "onLayout", "children"]; - var TEXT_TRANSFORMS = ["uppercase", "lowercase", "capitalize", "none"]; - var DISPLAY_VALUES = ["flex", "none"]; - var Type = exports.Type = { - bold: "bold", - medium: "medium", - regular: "regular" - }; - - var applyDefaultStyle = function applyDefaultStyle(textStyle, type) { - var family = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontFamily", textStyle); - - var weight = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontWeight", textStyle); - - var defaultStyle = {}; - - if (!family) { - defaultStyle.fontFamily = "system font"; - } - - if (!weight) { - switch (type) { - case Type.bold: - defaultStyle.fontWeight = "bold"; - break; - - case Type.medium: - defaultStyle.fontWeight = "normal"; - break; - - default: - defaultStyle.fontWeight = "normal"; - } - } - - return defaultStyle; - }; - - var getTransformProps = function getTransformProps(children, style) { - var textTransform = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("textTransform", style, "none", true); - - var newChildren = children; - - if (textTransform === "upperFirst" && typeof children === "string") { - newChildren = newChildren.toLowerCase(); - newChildren = newChildren.charAt(0).toUpperCase() + newChildren.slice(1); - } else if (TEXT_TRANSFORMS.includes(textTransform)) { - style.push({ - textTransform: textTransform - }); - } - - var display = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("display", style, "", true); - - if (display) { - if (!DISPLAY_VALUES.includes(display)) { - display = "flex"; - } - - style.push({ - display: display - }); - } - - return { - children: newChildren, - style: style - }; - }; - - function FontText(props) { - var _useFonts = (0, _$$_REQUIRE(_dependencyMap[7]).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; - } - - return fontStyle; - }; - - var type = props.type, - style = props.style, - _onLayout = props.onLayout, - children = props.children, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - var fontStyle = _getFontStyle(type); - - var textStyle = [fontStyle]; - - if (style) { - if (Array.isArray(style)) { - textStyle.push.apply(textStyle, (0, _toConsumableArray2.default)(style)); - } else { - textStyle.push(style); - } - } - - textStyle.push(applyDefaultStyle(textStyle, type)); - var newProps = getTransformProps(children, textStyle); - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Text, Object.assign({ - onLayout: function onLayout(e) { - if (_onLayout) { - _onLayout(e, textStyle); - } - }, - allowFontScaling: allowFontScaling, - minimumFontScale: _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMinScale, - maxFontSizeMultiplier: _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMaxScale - }, rest, newProps)); - } - - FontText.propTypes = { - type: _propTypes.default.oneOf(Object.values(Type)), - onLayout: _propTypes.default.func, - style: _propTypes.default.any, - children: _propTypes.default.any, - supportFontScaling: _propTypes.default.bool, - useDefaultFonts: _propTypes.default.bool - }; - FontText.defaultProps = { - type: Type.regular, - supportFontScaling: true, - useDefaultFonts: false - }; - - var _default = exports.default = FontText; -},1826,[3,22,4,582,16,18,438,1713,179]); +},1938,[3,6,7,11,13,14,16,18,434,816,438,819,179,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238046,7 +245680,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 10 } }); -},1827,[18]); +},1939,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238135,7 +245769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebViewProgress.defaultProps = { loadingPosition: LoadingStatePosition.center }; -},1828,[3,582,16,18,1829,179]); +},1940,[3,582,16,18,1941,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238150,7 +245784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1829,[1830]); +},1941,[1942]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238290,7 +245924,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e advanced: false, hidden: false }; -},1830,[3,6,7,11,13,14,16,18,582,1831,179,1832]); +},1942,[3,6,7,11,13,14,16,18,582,1943,179,1944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238318,7 +245952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},1831,[18,438]); +},1943,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238595,7 +246229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},1832,[3,22,6,7,11,13,14,582,16,18,1688,1826,1833,438,1709,179,1834]); +},1944,[3,22,6,7,11,13,14,582,16,18,1713,816,1945,438,819,179,1946]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238636,7 +246270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},1833,[3,6,7,11,13,14,16,18,179]); +},1945,[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 @@ -238679,7 +246313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1834,[18,438]); +},1946,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238757,7 +246391,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleFling.defaultProps = {}; var _default = exports.default = ArticleFling; -},1835,[3,16,582,18,1836,1,438,179]); +},1947,[3,16,582,18,1948,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -238805,7 +246439,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ZoomDevice.constants = {}; var _default = exports.default = ZoomDevice; -},1836,[3,6,7,438]); +},1948,[3,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -239741,7 +247375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleGraph.defaultProps = { renderGraphContent: false }; -},1837,[3,224,270,6,7,11,13,14,1838,1839,582,16,18,1840,436,630,1842,1843,566,665,666,668,587,667,1772,671,1844,1850,1853,1869,438,1709,564,1748,179,1870]); +},1949,[3,224,270,6,7,11,13,14,1950,1951,582,16,18,1952,436,629,858,1954,566,664,665,667,587,666,859,670,1955,1961,1964,1979,438,819,564,866,179,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -239837,7 +247471,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageId: 0, artId: -1 }; -},1838,[3,6,7,11,13,14,16,582,18,438,179,598]); +},1950,[3,6,7,11,13,14,16,582,18,438,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -239957,7 +247591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageId: 0, artId: -1 }; -},1839,[3,4,6,7,11,13,14,16,582,18,179,598]); +},1951,[3,4,6,7,11,13,14,16,582,18,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -240812,7 +248446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1840,[3,270,6,7,1131,406,1841,436,434,824,1729,630,438,1748,564]); +},1952,[3,270,6,7,1181,406,1953,436,434,881,1897,629,438,866,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -240955,208 +248589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e accessibility_mode: "accessibilityMode" } }; -},1841,[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.PageViewPosition = 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 _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["start", "end", "left", "right"]; - var PageViewPosition = exports.PageViewPosition = { - LEFT: "left", - RIGHT: "right", - CENTER: "center" - }; - - var PageUtils = exports.default = function () { - function PageUtils() { - (0, _classCallCheck2.default)(this, PageUtils); - } - - return (0, _createClass2.default)(PageUtils, null, [{ - key: "getSectionLetterFromPage", - value: function getSectionLetterFromPage(page) { - var letters = ""; - - if (page) { - for (var i = 0; i < page.length; i++) { - if (page.charAt(i).match(/[a-z]/i)) { - letters += page.charAt(i); - } else { - break; - } - } - } - - return letters; - } - }, { - key: "getPageNumberFromPage", - value: function getPageNumberFromPage(page) { - var number = ""; - - if (page) { - for (var i = 0; i < page.length; i++) { - if (page.charAt(i).match(/[0-9]/i)) { - number += page.charAt(i); - } - } - } - - return parseInt(number, 10); - } - }, { - key: "splitLettersAndNumbersFromPageNumber", - value: function splitLettersAndNumbersFromPageNumber(pageNumber) { - var pageNumberString = ("" + pageNumber).trim(); - var j = 0; - - while (j < pageNumberString.length && isNaN(pageNumberString[j])) { - j += 1; - } - - var letters = pageNumberString.substring(0, j); - var numbers = pageNumberString.substring(j); - return { - letters: letters, - numbers: numbers - }; - } - }, { - key: "removeZerosFromPageNumber", - value: function removeZerosFromPageNumber(pageNumber) { - var _PageUtils$splitLette = PageUtils.splitLettersAndNumbersFromPageNumber(pageNumber), - letters = _PageUtils$splitLette.letters, - numbers = _PageUtils$splitLette.numbers; - - if (letters.startsWith(".")) { - letters = letters.substring(1); - } - - while (numbers.length > 0 && numbers.substring(0, 1) === "0") { - numbers = numbers.substring(1); - } - - return "" + letters + numbers; - } - }, { - key: "getNextPageNumber", - value: function getNextPageNumber(number) { - try { - var letters = ""; - var zeros = ""; - var pageNumber = ""; - - for (var i = 0; i < number.length; i++) { - var char = number.charAt(i); - - if (char.match(/[^0-9]/)) { - letters += char; - } else if (char === "0") { - zeros += char; - } else { - pageNumber += parseInt(number.substring(i), 10) + 1; - break; - } - } - - if (pageNumber.length > number.length && zeros.length > 0) { - zeros = zeros.substring(0, zeros.length - (pageNumber.length - number.length)); - } - - return letters + zeros + pageNumber; - } catch (e) { - return number; - } - } - }, { - key: "getPageByPageNumber", - value: function getPageByPageNumber(pages, pageNumber) { - if (pages.length > 0) { - var page = pages.find(function (item) { - return PageUtils.comparePageNumber(item.getPage(), pageNumber); - }); - return page; - } - - return undefined; - } - }, { - key: "comparePageNumber", - value: function comparePageNumber(pageNumberA, pageNumberB) { - return PageUtils.removeZerosFromPageNumber(pageNumberA) === PageUtils.removeZerosFromPageNumber(pageNumberB); - } - }, { - key: "comparePages", - value: function comparePages(page, anotherPage) { - return page.modifyTime === anotherPage.modifyTime && page.section === anotherPage.section && page.page === anotherPage.page && page.shownPage === anotherPage.shownPage && page.edition === anotherPage.edition && page.extraMd5 === anotherPage.extraMd5 && page.type === anotherPage.type; - } - }, { - key: "getNextPage", - value: function getNextPage(page, pages) { - var nextPageIndex = pages.findIndex(function (item) { - return PageUtils.comparePages(item, page); - }) + 1; - - if (nextPageIndex > 0 && nextPageIndex < pages.length) { - return pages[nextPageIndex]; - } - - return null; - } - }, { - key: "traverseStyleForRTL", - value: function traverseStyleForRTL(style) { - if (!_$$_REQUIRE(_dependencyMap[5]).PlatformUtils.isRTL()) { - return style; - } - - if (Array.isArray(style)) { - return style.map(function (item) { - return PageUtils.traverseStyleForRTL(item); - }); - } - - if (typeof style === "object") { - var start = style.start, - end = style.end, - left = style.left, - right = style.right, - rest = (0, _objectWithoutProperties2.default)(style, _excluded); - - if (start !== undefined) { - rest.end = start; - } - - if (left !== undefined) { - rest.right = left; - } - - if (end !== undefined) { - rest.start = end; - } - - if (right !== undefined) { - rest.left = right; - } - - return rest; - } - - return style; - } - }]); - }(); -},1842,[3,4,6,7,671,438]); +},1953,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -241279,7 +248712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1843,[3,270,6,7,18,824,438]); +},1954,[3,270,6,7,18,881,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242261,7 +249694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minZoom: 1, maxZoom: 5 }; -},1844,[3,33,6,7,11,13,14,582,16,18,674,1773,1845,1846,1836,1847,438,1,1848,179,1709,1833,1849]); +},1955,[3,33,6,7,11,13,14,582,16,18,673,1924,1956,1957,1948,1958,438,1,1959,179,819,1945,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242299,7 +249732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); GestureTimer.timers = {}; -},1845,[3,6,7]); +},1956,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242451,7 +249884,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]) }; -},1846,[3,6,7,11,13,14,16,582,18,1,179]); +},1957,[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 @@ -242466,7 +249899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},1847,[18]); +},1958,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242683,7 +250116,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]); } -},1848,[674,3,1836,438,1]); +},1959,[673,3,1948,438,1]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242698,7 +250131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1849,[1832]); +},1960,[1944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -242953,7 +250386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showAll: false, hidden: false }; -},1850,[3,22,4,6,7,11,13,14,16,582,18,1851,1842,438,179]); +},1961,[3,22,4,6,7,11,13,14,16,582,18,1962,858,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -243341,7 +250774,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1851,[3,4,270,6,7,11,13,14,16,582,18,1852,436,630,1772,406,671,564,179,438,588,587]); +},1962,[3,4,270,6,7,11,13,14,16,582,18,1963,436,629,859,406,670,564,179,438,588,587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -243433,7 +250866,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onHrError: _propTypes.default.func, onHrLoaded: _propTypes.default.func }); -},1852,[3,6,7,11,13,14,16,582,18,179,598]); +},1963,[3,6,7,11,13,14,16,582,18,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -243718,7 +251151,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = PageExtra; -},1853,[3,6,7,11,13,14,582,16,18,436,1854,1842,667,668,671,438,564,1748,179]); +},1964,[3,6,7,11,13,14,582,16,18,436,1965,858,666,667,670,438,564,866,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244562,7 +251995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] }, index); } -},1854,[3,33,6,7,16,18,1855,407,1856,817,665,668,672,671,1729,436,1840,406,666,667,670,1776,630,1842,1823,438,1748,1859,1866,564,1709,179]); +},1965,[3,33,6,7,16,18,1966,407,1967,864,664,667,671,670,1897,436,1952,406,665,666,669,1927,629,858,1936,438,866,1970,1976,564,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244572,7 +252005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.RNMail; -},1855,[18]); +},1966,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244600,7 +252033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function newsmemoryArticleGallery(json) { return NewsMemoryParser.getArticleGallery(json); } -},1856,[1857,1858]); +},1967,[1968,1969]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244638,25 +252071,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return thumbnail || ""; } - function getCaption(_ref6) { - var Caption = _ref6.Caption, - Desc = _ref6.Desc; + function getPlayerId(_ref6) { + var playerId = _ref6.playerId; + return playerId || ""; + } + + function getCaption(_ref7) { + var Caption = _ref7.Caption, + Desc = _ref7.Desc; return _$$_REQUIRE(_dependencyMap[0]).StringUtils.decodeHTML(Caption || Desc); } - function getUrl(_ref7) { - var URL = _ref7.URL; + function getUrl(_ref8) { + var URL = _ref8.URL; return URL || ""; } - function getTitle(_ref8) { - var Title = _ref8.Title; + function getTitle(_ref9) { + var Title = _ref9.Title; return _$$_REQUIRE(_dependencyMap[0]).StringUtils.decodeHTML(Title || ""); } - function getAction(_ref9) { - var Action = _ref9.Action, - URL = _ref9.URL; + function getAction(_ref10) { + var Action = _ref10.Action, + URL = _ref10.URL; if (Action) { return Action; @@ -244689,6 +252127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gallery.caption = getPreviewText(item); gallery.thumbnail = getPreviewImage(item); gallery.textColor = getPreviewTextColor(item); + gallery.playerId = getPlayerId(item); break; case "videoLink": @@ -244765,7 +252204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var action = item.action; return action.hasPropertyNotClickable(); } -},1857,[438]); +},1968,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -244870,7 +252309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return []; } -},1858,[438]); +},1969,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245704,7 +253143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _$$_REQUIRE(_dependencyMap[8]).trackADBMobileAction)(adobeAnalyticsConfig.editionLoadActionName, params); } }; -},1859,[3,4,668,667,671,1842,1860,1865,819,438,1701,1700]); +},1970,[3,4,667,666,670,858,1971,1975,1869,438,1876,1875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245848,7 +253287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1860,[3,270,6,7,11,13,14,1861,1862,1863]); +},1971,[3,270,6,7,11,13,14,1972,865,1973]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -245946,301 +253385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_Session2.default); -},1861,[3,6,7,11,85,13,14,1862]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.Route = exports.Action = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _toConsumableArray2 = _$$_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 _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _excluded = ["appName", "bundleId", "uniqueId", "version"]; - - 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 Route = exports.Route = function () { - function Route(name) { - var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date().getTime(); - (0, _classCallCheck2.default)(this, Route); - this.time = time; - this.name = name; - } - - return (0, _createClass2.default)(Route, [{ - key: "getName", - value: function getName() { - return this.name; - } - }, { - key: "getTime", - value: function getTime() { - return this.time; - } - }, { - key: "toString", - value: function toString() { - return "{\"time\": " + this.time + ", \"name\": \"" + this.name + "\" }"; - } - }, { - key: "equals", - value: function equals(route) { - return this.name === route.getName(); - } - }]); - }(); - - var Action = exports.Action = function (_Route) { - function Action(name, params) { - var _this; - - var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date().getTime(); - (0, _classCallCheck2.default)(this, Action); - _this = _callSuper(this, Action, [name, time]); - _this.params = params; - return _this; - } - - (0, _inherits2.default)(Action, _Route); - return (0, _createClass2.default)(Action, [{ - key: "getParams", - value: function getParams() { - return this.params || {}; - } - }, { - key: "toString", - value: function toString() { - return "{\"time\": " + this.time + ", \"name\": \"" + this.name + "\", \"params\": " + JSON.stringify(this.params) + " }"; - } - }, { - key: "equals", - value: function equals(action) { - return this.name === action.getName() && _$$_REQUIRE(_dependencyMap[9]).JSUtils.equals(this.params, action.getParams()); - } - }]); - }(Route); - - var Session = exports.default = function () { - function Session() { - var actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var routes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Date().getTime(); - var orientation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _deviceUtils.default.getCurrentOrientation(); - (0, _classCallCheck2.default)(this, Session); - this.startTime = time; - this.startOrientation = orientation.toLowerCase(); - this.actions = actions; - this.navigation = routes; - } - - return (0, _createClass2.default)(Session, [{ - key: "filterRoute", - value: function filterRoute(newRoute, routesList) { - var lastRoute = routesList[routesList.length - 1]; - - if (!lastRoute || !lastRoute.equals(newRoute)) { - var sameRoutes = routesList.filter(function (route) { - return newRoute.getTime() - route.getTime() < 1000 && route.equals(newRoute); - }); - return sameRoutes.length > 0; - } - - return true; - } - }, { - key: "addAction", - value: function addAction(name, params) { - var newAction = new Action(name, params); - - if (!this.filterRoute(newAction, this.actions)) { - this.actions.push(newAction); - } - } - }, { - key: "addRoute", - value: function addRoute(route) { - var newRoute = new Route(route); - - if (!this.filterRoute(newRoute, this.navigation)) { - this.navigation.push(newRoute); - } - } - }, { - key: "getActions", - value: function getActions() { - return this.actions || []; - } - }, { - key: "getNavigation", - value: function getNavigation() { - return this.navigation || []; - } - }, { - key: "getDuration", - value: function getDuration() { - var lastAction = this.actions[this.actions.length - 1]; - - if (lastAction) { - return lastAction.getTime() - this.startTime; - } - - return 0; - } - }, { - key: "getActionsCounters", - value: function getActionsCounters() { - return this.actions.reduce(function (current, action) { - var name = action.getName(); - current[name] = current[name] ? current[name] + 1 : 1; - return current; - }, {}); - } - }, { - key: "getRoutesCounters", - value: function getRoutesCounters() { - var _this2 = this; - - return this.navigation.reduce(function (current, route, index) { - var prevRoute = _this2.navigation[index - 1]; - var nextRoute = _this2.navigation[index + 1]; - var endTime = new Date().getTime(); - - if (nextRoute) { - endTime = nextRoute.getTime(); - } - - var name = route.getName(); - var times = 1; - var duration = endTime - route.getTime(); - - if (current[name]) { - var _current$name = current[name], - prevTimes = _current$name.times, - prevDuration = _current$name.duration; - - if (!prevRoute || prevRoute && name !== prevRoute.getName()) { - times = prevTimes + 1; - } - - duration += prevDuration; - } - - current[name] = { - times: times, - duration: duration - }; - return current; - }, {}); - } - }, { - key: "getOrientationInfo", - value: function getOrientationInfo() { - var rotationActions = [new Action("rotate_" + this.startOrientation, {}, this.startTime)]; - rotationActions.push.apply(rotationActions, (0, _toConsumableArray2.default)(this.actions.filter(function (action) { - return action.getName().startsWith("rotate_"); - }))); - - if (rotationActions && rotationActions.length > 0) { - var orientationDurations = rotationActions.reduce(function (current, action, index) { - var nextAction = rotationActions[index + 1]; - var endTime = new Date().getTime(); - - if (nextAction) { - endTime = nextAction.getTime(); - } - - var orientation = action.getName().replace("rotate_", ""); - var duration = endTime - action.getTime(); - - if (current[orientation]) { - duration += current[orientation]; - } - - current[orientation] = duration; - return current; - }, {}); - var totalTime = Object.keys(orientationDurations).reduce(function (current, orientation) { - return current + orientationDurations[orientation]; - }, 0); - return Object.keys(orientationDurations).reduce(function (current, orientation) { - current[orientation] = totalTime ? orientationDurations[orientation] / totalTime * 100 : 0; - return current; - }, {}); - } - - return {}; - } - }, { - key: "getFullReport", - value: function getFullReport() { - var _PlatformUtils$info = _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.info, - appName = _PlatformUtils$info.appName, - bundleId = _PlatformUtils$info.bundleId, - uniqueId = _PlatformUtils$info.uniqueId, - storeVersion = _PlatformUtils$info.version, - deviceInfo = (0, _objectWithoutProperties2.default)(_PlatformUtils$info, _excluded); - - var version = _deviceUtils.default.getAppVersion(); - - var appInfo = { - pSetup: global.getAppPSetup(), - machine: global.getAppServer(), - appName: appName, - bundleId: bundleId, - version: version - }; - - if (version !== storeVersion) { - appInfo.storeVersion = storeVersion; - } - - return { - startTime: this.startTime, - startOrientation: this.startOrientation, - duration: this.getDuration(), - actions: this.actions, - routes: this.navigation, - orientation: this.getOrientationInfo(), - deviceInfo: deviceInfo, - appInfo: appInfo - }; - } - }, { - key: "getReport", - value: function getReport() { - return Object.assign({}, this.getFullReport(), { - actions: this.getActionsCounters(), - routes: this.getRoutesCounters() - }); - } - }, { - key: "toString", - value: function toString() { - return "{\"startTime\": " + this.startTime + ", \"startOrientation\": \"" + this.startOrientation + "\",\n \"actions\": " + JSON.stringify(this.actions.map(function (action) { - return action.toString(); - })) + ", \"navigation\": " + JSON.stringify(this.navigation.map(function (route) { - return route.toString(); - })) + "}"; - } - }]); - }(); -},1862,[3,4,22,11,13,14,6,7,434,438]); +},1972,[3,6,7,11,85,13,14,865]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246573,7 +253718,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1863,[3,270,6,7,1862,1864,566,406,438]); +},1973,[3,270,6,7,865,1974,566,406,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246649,7 +253794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SessionHelper.SP = { name: "sessions" }; -},1864,[3,270,6,7,438]); +},1974,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246892,7 +254037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return params; }; -},1865,[1700,1701,438]); +},1975,[1875,1876,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -246907,7 +254052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1866,[1867]); +},1976,[1977]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -247104,7 +254249,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1867,[3,6,7,11,13,14,16,18,179,1868,1849,438]); +},1977,[3,6,7,11,13,14,16,18,179,1978,1960,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -247140,7 +254285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1868,[18,438]); +},1978,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -247154,7 +254299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},1869,[18]); +},1979,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -247261,7 +254406,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e errors: [], autoHideTimer: 5000 }; -},1870,[3,6,7,11,13,14,16,582,18,1826,179,1709,1871]); +},1980,[3,6,7,11,13,14,16,582,18,816,179,819,1981]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -247285,7 +254430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},1871,[18,438]); +},1981,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -248390,7 +255535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e header: false, enableDesktopLayout: false }; -},1872,[3,270,6,7,11,13,14,582,16,18,567,1840,1873,1841,436,630,1823,667,668,1772,671,1953,1776,1958,1961,1963,438,564,1748,1964,1866,1819,1968,179,1777,1975,1709,1856,1859,1713,1870,1817,1828,1985]); +},1982,[3,270,6,7,11,13,14,582,16,18,567,1952,1983,1953,436,629,1936,666,667,859,670,1984,1927,1989,1992,1994,438,564,866,1995,1976,1932,1999,179,1811,2002,819,1967,1970,817,1980,1930,1940,2009]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -248644,1423 +255789,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1873,[3,270,6,7,566,667,668,1772,671,406,1841,1859,438,1874]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getAccessibilityItemsIndexSecondLevel = exports.getAccessibilityItemsIndexFirstLevel = exports.getAccessibilityItemsArticle = exports.ACTIONS_TYPE = exports.ACTIONS = undefined; - - var _AccessibilityListItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var ACTIONS_TYPE = exports.ACTIONS_TYPE = { - layout: "layout", - link: "link", - toggle: "toggle" - }; - var ACTIONS = exports.ACTIONS = { - goBack: { - key: "goBack", - icon: _$$_REQUIRE(_dependencyMap[2]), - defaultLabelKey: "btn_go_back" - }, - goBackArticle: { - key: "goBack", - icon: _$$_REQUIRE(_dependencyMap[2]), - defaultLabelKey: "btn_go_back_article" - }, - goBackSection: { - key: "goBack", - icon: _$$_REQUIRE(_dependencyMap[2]), - defaultLabelKey: "btn_go_back_section" - }, - goNext: { - key: "goNext", - icon: _$$_REQUIRE(_dependencyMap[3]), - defaultLabelKey: "btn_go_next" - }, - goNextArticle: { - key: "goNext", - icon: _$$_REQUIRE(_dependencyMap[3]), - defaultLabelKey: "btn_go_next_article" - }, - goNextSection: { - key: "goNext", - icon: _$$_REQUIRE(_dependencyMap[3]), - defaultLabelKey: "btn_go_next_section" - }, - goUp: { - key: "goUp", - icon: _$$_REQUIRE(_dependencyMap[4]), - defaultLabelKey: "btn_go_up" - }, - goUpChooseIssue: { - key: "goUp", - icon: _$$_REQUIRE(_dependencyMap[4]), - defaultLabelKey: "btn_go_up_choose_issue" - }, - goUpGeneralIndex: { - key: "goUp", - icon: _$$_REQUIRE(_dependencyMap[4]), - defaultLabelKey: "btn_go_up_general_index" - }, - goUpSection: { - key: "goUp", - icon: _$$_REQUIRE(_dependencyMap[4]), - defaultLabelKey: "btn_go_up_section" - }, - openStore: { - type: ACTIONS_TYPE.link, - key: "openStore", - icon: _$$_REQUIRE(_dependencyMap[5]), - defaultLabelKey: "btn_store" - }, - openLink: { - type: ACTIONS_TYPE.link, - key: "openLink", - icon: _$$_REQUIRE(_dependencyMap[6]), - defaultLabelKey: "btn_link" - }, - openAktuell: { - type: ACTIONS_TYPE.link, - key: "openAktuell", - icon: _$$_REQUIRE(_dependencyMap[6]), - defaultLabelKey: "btn_link" - }, - openMore: { - type: ACTIONS_TYPE.link, - key: "openMore", - icon: _$$_REQUIRE(_dependencyMap[7]), - defaultLabelKey: "btn_more" - }, - openLiveNews: { - type: ACTIONS_TYPE.link, - key: "openLiveNews", - icon: _$$_REQUIRE(_dependencyMap[8]), - pSetupRelabel: "feedButton", - defaultLabelKey: "btn_feed" - }, - openThumbnail: { - type: ACTIONS_TYPE.layout, - key: "openThumbnail", - icon: _$$_REQUIRE(_dependencyMap[9]), - pSetupRelabel: "thumbnailButton", - defaultLabelKey: "btn_thumbnail" - }, - openBrowse: { - type: ACTIONS_TYPE.layout, - key: "openBrowse", - icon: _$$_REQUIRE(_dependencyMap[10]), - pSetupRelabel: "gBookButton", - defaultLabelKey: "btn_g_book" - }, - openRead: { - type: ACTIONS_TYPE.layout, - key: "openRead", - icon: _$$_REQUIRE(_dependencyMap[11]), - pSetupRelabel: "readButton", - defaultLabelKey: "btn_read" - }, - openSwipe: { - type: ACTIONS_TYPE.layout, - key: "openSwipe", - icon: _$$_REQUIRE(_dependencyMap[10]), - pSetupRelabel: "swipeButton", - defaultLabelKey: "btn_swipe" - }, - openIndex: { - type: ACTIONS_TYPE.layout, - key: "openIndex", - icon: _$$_REQUIRE(_dependencyMap[12]), - pSetupRelabel: "indexButton", - defaultLabelKey: "btn_index" - }, - openArticle: { - type: ACTIONS_TYPE.layout, - key: "openArticle", - icon: _$$_REQUIRE(_dependencyMap[12]) - }, - openAccessibility: { - type: ACTIONS_TYPE.layout, - key: "openAccessibility", - icon: _$$_REQUIRE(_dependencyMap[13]), - pSetupRelabel: "accessibilityButton", - defaultLabelKey: "btn_accessibility" - }, - openSearch: { - type: ACTIONS_TYPE.layout, - key: "openSearch", - icon: _$$_REQUIRE(_dependencyMap[14]), - pSetupRelabel: "searchButton", - defaultLabelKey: "btn_search" - }, - openSpecialSections: { - type: ACTIONS_TYPE.link, - key: "openSpecialSections", - icon: _$$_REQUIRE(_dependencyMap[15]), - pSetupRelabel: "specialSectionButton", - defaultLabelKey: "btn_special_section" - }, - openOptionPageEditions: { - type: ACTIONS_TYPE.link, - key: "openOptionPageEditions", - icon: _$$_REQUIRE(_dependencyMap[16]), - pSetupRelabel: "editionsButton", - defaultLabelKey: "btn_editions" - }, - openOptionPageContact: { - type: ACTIONS_TYPE.link, - key: "openOptionPageContact", - icon: _$$_REQUIRE(_dependencyMap[17]), - defaultLabelKey: "btn_contact" - }, - openOptionPageLogin: { - type: ACTIONS_TYPE.link, - key: "openOptionPageLogin", - icon: _$$_REQUIRE(_dependencyMap[18]), - defaultLabelKey: "btn_account" - }, - openOptionPageSettings: { - type: ACTIONS_TYPE.link, - key: "openOptionPageSettings", - icon: _$$_REQUIRE(_dependencyMap[19]), - pSetupRelabel: "settingsButton", - defaultLabelKey: "btn_settings" - }, - openOptionPageHelp: { - type: ACTIONS_TYPE.link, - key: "openOptionPageHelp", - icon: _$$_REQUIRE(_dependencyMap[20]), - pSetupRelabel: "helpButton", - defaultLabelKey: "btn_help" - }, - openOptionPagePublications: { - type: ACTIONS_TYPE.link, - key: "openOptionPagePublications", - icon: _$$_REQUIRE(_dependencyMap[5]), - pSetupRelabel: "storeButton", - defaultLabelKey: "btn_publications" - }, - openOptionPageAccessibility: { - type: ACTIONS_TYPE.link, - key: "openOptionPageAccessibility", - icon: _$$_REQUIRE(_dependencyMap[13]), - pSetupRelabel: "accessibilityButton", - defaultLabelKey: "btn_accessibility" - }, - openOptionPageArchive: { - type: ACTIONS_TYPE.link, - key: "openOptionPageArchive", - icon: _$$_REQUIRE(_dependencyMap[21]), - pSetupRelabel: "archiveButton", - defaultLabelKey: "btn_archive" - }, - openCarMode: { - type: ACTIONS_TYPE.layout, - key: "openCarMode", - icon: _$$_REQUIRE(_dependencyMap[22]), - pSetupRelabel: "carModeButton", - defaultLabelKey: "btn_car_mode" - }, - openBack: { - type: ACTIONS_TYPE.layout, - key: "openBack", - icon: _$$_REQUIRE(_dependencyMap[2]), - pSetupRelabel: "backButton", - defaultLabelKey: "btn_go_back" - }, - downloadEdition: { - type: ACTIONS_TYPE.toggle, - key: "downloadEdition", - icon: _$$_REQUIRE(_dependencyMap[23]), - pSetupRelabel: "downloadButton", - defaultLabelKey: "btn_download" - }, - fitPageToggle: { - type: ACTIONS_TYPE.toggle, - key: "fitPageToggle", - icon: _$$_REQUIRE(_dependencyMap[24]), - activeIcon: _$$_REQUIRE(_dependencyMap[25]), - pSetupRelabel: "fitPageButton", - defaultLabelKey: "btn_fit_page" - }, - openIndexAlt: { - type: ACTIONS_TYPE.link, - key: "openIndexAlt", - icon: _$$_REQUIRE(_dependencyMap[26]) - }, - previousArticle: { - type: ACTIONS_TYPE.link, - key: "previousArticle", - icon: _$$_REQUIRE(_dependencyMap[27]) - }, - nextArticle: { - type: ACTIONS_TYPE.link, - key: "nextArticle", - icon: _$$_REQUIRE(_dependencyMap[28]) - }, - shareAlt: { - type: ACTIONS_TYPE.link, - key: "shareAlt", - icon: _$$_REQUIRE(_dependencyMap[29]) - }, - closeCarMode: { - key: "closeCarMode", - icon: _$$_REQUIRE(_dependencyMap[30]), - defaultLabelKey: "btn_close_car_mode" - }, - closeAccessibility: { - key: "closeAccessibility", - icon: _$$_REQUIRE(_dependencyMap[31]), - defaultLabelKey: "btn_close_accessibility" - }, - closeEditions: { - key: "closeAccessibility", - icon: _$$_REQUIRE(_dependencyMap[32]), - defaultLabelKey: "btn_close_editions" - }, - closeArticle: { - key: "closeArticle", - icon: _$$_REQUIRE(_dependencyMap[32]) - }, - search: { - key: "search", - icon: _$$_REQUIRE(_dependencyMap[33]) - }, - clearSearch: { - key: "clearSearch", - icon: _$$_REQUIRE(_dependencyMap[34]) - }, - share: { - key: "share", - icon: _$$_REQUIRE(_dependencyMap[35]) - }, - shareFacebook: { - key: "shareFacebook", - icon: _$$_REQUIRE(_dependencyMap[36]) - }, - shareTwitter: { - key: "shareTwitter", - icon: _$$_REQUIRE(_dependencyMap[37]) - }, - shareReddit: { - key: "shareReddit", - icon: _$$_REQUIRE(_dependencyMap[38]) - }, - shareEmail: { - key: "shareEmail", - icon: _$$_REQUIRE(_dependencyMap[39]) - }, - toggleFullScreen: { - key: "toggleFullScreen", - icon: _$$_REQUIRE(_dependencyMap[40]), - activeIcon: _$$_REQUIRE(_dependencyMap[41]) - }, - toggleTextToSpeech: { - key: "toggleTextToSpeech", - icon: _$$_REQUIRE(_dependencyMap[42]), - activeIcon: _$$_REQUIRE(_dependencyMap[43]), - defaultLabelKey: "btn_tts" - }, - toggleGraphic: { - key: "toggleGraphic", - icon: _$$_REQUIRE(_dependencyMap[44]), - activeIcon: _$$_REQUIRE(_dependencyMap[45]) - }, - toggleFont: { - key: "toggleFont", - icon: _$$_REQUIRE(_dependencyMap[46]) - }, - fontDecrease: { - key: "fontDecrease", - icon: _$$_REQUIRE(_dependencyMap[47]) - }, - fontIncrease: { - key: "fontIncrease", - icon: _$$_REQUIRE(_dependencyMap[46]) - }, - toggleGraphZoom: { - key: "toggleGraphZoom", - icon: _$$_REQUIRE(_dependencyMap[48]) - }, - graphDecrease: { - key: "graphDecrease", - icon: _$$_REQUIRE(_dependencyMap[49]) - }, - graphIncrease: { - key: "graphIncrease", - icon: _$$_REQUIRE(_dependencyMap[48]) - }, - graphZoomUnfit: { - key: "graphZoomUnfit", - icon: _$$_REQUIRE(_dependencyMap[50]) - }, - print: { - key: "print", - icon: _$$_REQUIRE(_dependencyMap[51]) - }, - showWith: { - key: "showWith" - }, - translate: { - key: "translate", - icon: _$$_REQUIRE(_dependencyMap[52]), - arIcon: _$$_REQUIRE(_dependencyMap[53]), - cnIcon: _$$_REQUIRE(_dependencyMap[54]), - bsIcon: _$$_REQUIRE(_dependencyMap[55]), - daIcon: _$$_REQUIRE(_dependencyMap[56]), - deIcon: _$$_REQUIRE(_dependencyMap[57]), - elIcon: _$$_REQUIRE(_dependencyMap[58]), - enIcon: _$$_REQUIRE(_dependencyMap[59]), - esIcon: _$$_REQUIRE(_dependencyMap[60]), - frIcon: _$$_REQUIRE(_dependencyMap[61]), - hrIcon: _$$_REQUIRE(_dependencyMap[62]), - itIcon: _$$_REQUIRE(_dependencyMap[63]), - jaIcon: _$$_REQUIRE(_dependencyMap[64]), - koIcon: _$$_REQUIRE(_dependencyMap[65]), - msIcon: _$$_REQUIRE(_dependencyMap[66]), - noIcon: _$$_REQUIRE(_dependencyMap[67]), - nlIcon: _$$_REQUIRE(_dependencyMap[68]), - ptIcon: _$$_REQUIRE(_dependencyMap[69]), - ruIcon: _$$_REQUIRE(_dependencyMap[70]), - slIcon: _$$_REQUIRE(_dependencyMap[71]), - sqIcon: _$$_REQUIRE(_dependencyMap[72]), - srIcon: _$$_REQUIRE(_dependencyMap[73]), - svIcon: _$$_REQUIRE(_dependencyMap[74]), - usIcon: _$$_REQUIRE(_dependencyMap[75]), - noneIcon: "none" - }, - warning: { - key: "warning", - icon: _$$_REQUIRE(_dependencyMap[76]) - }, - toggleArticleExtra: { - key: "toggleArticleExtra", - icon: _$$_REQUIRE(_dependencyMap[77]), - activeIcon: _$$_REQUIRE(_dependencyMap[78]) - } - }; - - var getAccessibilityItemsIndexFirstLevel = exports.getAccessibilityItemsIndexFirstLevel = function getAccessibilityItemsIndexFirstLevel() { - var addRss = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var items = []; - - if (!_$$_REQUIRE(_dependencyMap[79]).PlatformUtils.isSystemAccessibilityEnabled()) { - items.push(new _AccessibilityListItem.default(ACTIONS.closeAccessibility)); - } - - if (addRss) { - items.push(new _AccessibilityListItem.default(ACTIONS.openLiveNews)); - } - - items.push(new _AccessibilityListItem.default(ACTIONS.goUpChooseIssue)); - return items; - }; - - var getAccessibilityItemsIndexSecondLevel = exports.getAccessibilityItemsIndexSecondLevel = function getAccessibilityItemsIndexSecondLevel(index, length) { - var sectionsName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - var items = []; - items.push(new _AccessibilityListItem.default(ACTIONS.goUpGeneralIndex)); - - if (length > 1) { - if (index > 0) { - items.push(new _AccessibilityListItem.default(ACTIONS.goBackSection, { - section: sectionsName[index - 1] - })); - } - - if (index < length - 1) { - items.push(new _AccessibilityListItem.default(ACTIONS.goNextSection, { - section: sectionsName[index + 1] - })); - } - } - - return items; - }; - - var getAccessibilityItemsArticle = exports.getAccessibilityItemsArticle = function getAccessibilityItemsArticle(index, length) { - var section = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; - var items = []; - items.push(new _AccessibilityListItem.default(ACTIONS.goUpSection, { - section: section - })); - - if (length > 1) { - var articleIndex = index + 1; - - if (index > 0) { - items.push(new _AccessibilityListItem.default(ACTIONS.goBackArticle, { - index: articleIndex - 1 - })); - } - - if (index < length - 1) { - items.push(new _AccessibilityListItem.default(ACTIONS.goNextArticle, { - index: articleIndex + 1 - })); - } - } - - return items; - }; -},1874,[3,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,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 AccessibilityListItem = exports.default = function () { - function AccessibilityListItem() { - var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - (0, _classCallCheck2.default)(this, AccessibilityListItem); - this.key = action.key; - this.text = global.strings(action.defaultLabelKey, params); - } - - return (0, _createClass2.default)(AccessibilityListItem, [{ - key: "getKey", - value: function getKey() { - return this.key; - } - }, { - key: "getText", - value: function getText() { - return this.text; - } - }]); - }(); -},1875,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "45c8580e1792fcb822cf7dda10017ccf", - "name": "ic-circle-back", - "type": "png" - }); -},1876,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "613863d0df368e626999ad9f4158e87f", - "name": "ic-circle-next", - "type": "png" - }); -},1877,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "6978b0be11e512eda129ef180bb63c88", - "name": "ic-circle-up", - "type": "png" - }); -},1878,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "f9b30b50eae30abdd4c6909a78efb652", - "name": "ic-store", - "type": "png" - }); -},1879,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "e4168ddb673c3e55284ff279c28cc4db", - "name": "ic-language", - "type": "png" - }); -},1880,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "034bfe8a3f4123c6f8b4b8da12530d78", - "name": "ic-more", - "type": "png" - }); -},1881,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "29caf3d3e097907a14f487485874419d", - "name": "ic-rss", - "type": "png" - }); -},1882,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "aeae99506fadbc9056401970e0f237ba", - "name": "ic-thumbnail", - "type": "png" - }); -},1883,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "8cad01104cc5eae200588591d3cae11d", - "name": "ic-browse", - "type": "png" - }); -},1884,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "acf90d30dd27987ed2620ef33d15a6e5", - "name": "ic-read", - "type": "png" - }); -},1885,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "7643029cd05f6a836321b3981632b035", - "name": "ic-index", - "type": "png" - }); -},1886,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 502, - "height": 512, - "scales": [1], - "hash": "1e83b03c9895293c9ff55f4073dcc7ff", - "name": "ic-accessibility", - "type": "png" - }); -},1887,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "bced865f6219398b7191d2daa3468779", - "name": "ic-search", - "type": "png" - }); -},1888,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "681d0a13bf8456b5476ead4d9263cffe", - "name": "ic-supplements", - "type": "png" - }); -},1889,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "ab055d81bbc8c4018146610f46725762", - "name": "ic-calendar", - "type": "png" - }); -},1890,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "02d26871539edb78786b3e6da157ea44", - "name": "ic-contact", - "type": "png" - }); -},1891,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "ac631eb39a10015e40c478e24e036846", - "name": "ic-login", - "type": "png" - }); -},1892,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "9dc95ce92cd1c6f49a3a3f226fc6f7eb", - "name": "ic-settings", - "type": "png" - }); -},1893,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "e0481a118606dead3a295fef981d7edc", - "name": "ic-help", - "type": "png" - }); -},1894,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 34, - "height": 30, - "scales": [1], - "hash": "2a96f9c30f6e03150a95ddd31081cd6f", - "name": "ic-archive", - "type": "png" - }); -},1895,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 512, - "height": 512, - "scales": [1], - "hash": "848b0b22c1b52300f93704a7742a4013", - "name": "ic-car-mode", - "type": "png" - }); -},1896,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "14b736755a49a5950221b3e9096dd851", - "name": "ic-download", - "type": "png" - }); -},1897,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "16efbb191e582c375ffe1769776fa961", - "name": "ic-fit", - "type": "png" - }); -},1898,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "a8f8040cf758c03728c1ebbd16b07bb9", - "name": "ic-unfit", - "type": "png" - }); -},1899,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "47f5b6375873018bc17335a0c076ec8c", - "name": "ic-up", - "type": "png" - }); -},1900,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "2e5760e962fac769536c2c6c65ee9395", - "name": "ic-prev", - "type": "png" - }); -},1901,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "6bf86efa5c3303d8cdf086b8ed847e33", - "name": "ic-next", - "type": "png" - }); -},1902,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "47966434c6e29673f6fc5d3535cae4cb", - "name": "ic-share", - "type": "png" - }); -},1903,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "4e71926e0879cfb848b561bd7b5b4213", - "name": "ic-circle-car-mode", - "type": "png" - }); -},1904,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "88fad4ca39a216c47441048e9d5e62df", - "name": "ic-circle-accessibility", - "type": "png" - }); -},1905,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "bf9fb2944d5f0bd3874ee6bd1a9eceb3", - "name": "ic-circle-close", - "type": "png" - }); -},1906,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "5e45a9c50db3d62397ad8551cf95e3a9", - "name": "ic-circle-search", - "type": "png" - }); -},1907,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "15e2b1fe93a891795c780a58815f9c82", - "name": "ic-circle-clear-search", - "type": "png" - }); -},1908,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "6ba5a41885a677cd43e072b06055463d", - "name": "ic-circle-share", - "type": "png" - }); -},1909,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "8ce2f5e609fe1fb5e24943a8860dc6f7", - "name": "ic-share-facebook", - "type": "png" - }); -},1910,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "e78c910aa27719184422141df8d41d61", - "name": "ic-share-twitter", - "type": "png" - }); -},1911,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "fad59489972a85f52ebafd4dfbd49b49", - "name": "ic-share-reddit", - "type": "png" - }); -},1912,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "76f3b241bb2759700b4ea1cc33ab3ca8", - "name": "ic-share-email", - "type": "png" - }); -},1913,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "db503f8d7a4f0d48e1c64f117cb81458", - "name": "ic-circle-expand", - "type": "png" - }); -},1914,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "f2a8eb6e4f68a7669d4b9c6a756f078b", - "name": "ic-circle-collapse", - "type": "png" - }); -},1915,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "a1acc1f8030e4476c081efb2bb5ea04c", - "name": "ic-circle-tts-on", - "type": "png" - }); -},1916,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "1a6baa693214e6694432380827bb4065", - "name": "ic-circle-tts-off", - "type": "png" - }); -},1917,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "add8a361710899a68d8ab63d1a09fffb", - "name": "ic-circle-toggle-graphic", - "type": "png" - }); -},1918,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "306ed6f673ae6592625c635761f1d3f6", - "name": "ic-circle-toggle-text", - "type": "png" - }); -},1919,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "01b7cd24c6e74f8481d564ca1f5afd05", - "name": "ic-circle-font-increase", - "type": "png" - }); -},1920,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "581aca734d03b65f68a70b60eaefc7c7", - "name": "ic-circle-font-decrease", - "type": "png" - }); -},1921,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "5e5863653a1d1427c5143285b3f82259", - "name": "ic-circle-graph-increase", - "type": "png" - }); -},1922,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "80f60866aae6b2df4bb622316e44cd2c", - "name": "ic-circle-graph-decrease", - "type": "png" - }); -},1923,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "45c1055f3a678eb6a967dd850707314c", - "name": "ic-circle-zoom-fit-out", - "type": "png" - }); -},1924,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "9b2380c5c569ec06999a8643f295853d", - "name": "ic-circle-print", - "type": "png" - }); -},1925,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "7b48fb4c836276960783eda6bf78c0f3", - "name": "ic-circle-translate", - "type": "png" - }); -},1926,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "d5d0830e9a062de4ccdf2f1393852cab", - "name": "ar", - "type": "png" - }); -},1927,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "1253e52865d2aa74c5b21a5e57bc1e66", - "name": "cn", - "type": "png" - }); -},1928,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "b92186dfe15c358f93dc14c629854187", - "name": "bs", - "type": "png" - }); -},1929,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "7c3229b3383ad9f95813dbdadff3ac0d", - "name": "da", - "type": "png" - }); -},1930,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "ada9a0ecd8ea2500afb9ec99296673a5", - "name": "de", - "type": "png" - }); -},1931,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "f93c7d09e4b862378133a326cea5c908", - "name": "el", - "type": "png" - }); -},1932,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "0faaa9e600183cc49e653b809e6f806e", - "name": "en", - "type": "png" - }); -},1933,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "61954655d226abf50a2a71ad61651588", - "name": "es", - "type": "png" - }); -},1934,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "3113565b0bca4098b5677ca9395a10f6", - "name": "fr", - "type": "png" - }); -},1935,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "ea6b5a67335b99aa29d5a0b4ae6dbcb4", - "name": "hr", - "type": "png" - }); -},1936,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "f9f1de0d53ccd181caa26ecc0130ba54", - "name": "it", - "type": "png" - }); -},1937,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "db5efce5019a6f53a6769984d759b52a", - "name": "ja", - "type": "png" - }); -},1938,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "8db6a19b2f2b31aef1e74d4f73bc69ac", - "name": "ko", - "type": "png" - }); -},1939,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "8426ee7c20c8b5aba746377cd1fa863a", - "name": "ms", - "type": "png" - }); -},1940,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "4865405f3786a8c63a913b4d8a3af170", - "name": "no", - "type": "png" - }); -},1941,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "6bd61a4a0d90eb99aa87104c22165cae", - "name": "nl", - "type": "png" - }); -},1942,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "5595f3682257331a45359bb6c76fe680", - "name": "pt", - "type": "png" - }); -},1943,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "ce61769dbcf9ef7c9bbff78a93a26c88", - "name": "ru", - "type": "png" - }); -},1944,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "c9968af1620d6c269b4d542a0396f139", - "name": "sl", - "type": "png" - }); -},1945,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "460a4767e02ba17a08280763e56c3836", - "name": "sq", - "type": "png" - }); -},1946,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "4964db473e6c02c2e53d7afefdf2972c", - "name": "sr", - "type": "png" - }); -},1947,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "eb24ee9da62bbafc134a3932a6bbb6b3", - "name": "sv", - "type": "png" - }); -},1948,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 32, - "height": 32, - "scales": [1], - "hash": "2ecd1f589181ca5b19b88932049c540b", - "name": "us", - "type": "png" - }); -},1949,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 96, - "scales": [1], - "hash": "8365dae40f9b069c1b8cdac98fb53569", - "name": "ic-warning", - "type": "png" - }); -},1950,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "42b514a8bdd098a614d2a7507a94cf1c", - "name": "ic-circle-eye-off", - "type": "png" - }); -},1951,[1210]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/newsmemory/buttons-json-manager/icons", - "width": 128, - "height": 128, - "scales": [1], - "hash": "b4d434e56b55aea85c3192022f46b285", - "name": "ic-circle-eye", - "type": "png" - }); -},1952,[1210]); +},1983,[3,270,6,7,566,666,667,859,670,406,1953,1970,438,1730]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -250253,7 +255982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ArticleAdContainer; -},1953,[3,33,582,16,18,436,1954,179,564,438]); +},1984,[3,33,582,16,18,436,1985,179,564,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -250375,7 +256104,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)()]; -},1954,[3,6,7,438,1955]); +},1985,[3,6,7,438,1986]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -250801,7 +256530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1955,[3,6,7,18,1956,1957]); +},1986,[3,6,7,18,1987,1988]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -250856,7 +256585,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]; -},1956,[]); +},1987,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -250918,7 +256647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e nativo: "nativo" } }; -},1957,[]); +},1988,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -251303,7 +257032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minHeight: 150, fontScale: 1 }; -},1958,[3,270,6,7,11,13,14,582,16,18,1826,588,1776,1959,1709,179,1900,1960,438]); +},1989,[3,270,6,7,11,13,14,582,16,18,816,588,1927,1990,819,179,1756,1991,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -251348,7 +257077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 40 } }); -},1959,[18,438]); +},1990,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -251360,7 +257089,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-down", "type": "png" }); -},1960,[1210]); +},1991,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -251598,7 +257327,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e button: undefined, login: undefined }; -},1961,[3,6,7,11,13,14,16,582,18,1826,1962,436,1,564,1726,1842,1709,179]); +},1992,[3,6,7,11,13,14,16,582,18,816,1993,436,1,564,880,858,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -251656,7 +257385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 16 } }); -},1962,[18,438]); +},1993,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -251692,7 +257421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: "white" } }); -},1963,[18]); +},1994,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253077,7 +258806,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return html; }; -},1964,[3,22,406,1965,630,1842,1708,668,667,671,669,438,1748,1966,1820,1967,1968,1974]); +},1995,[3,22,406,1996,629,858,868,667,666,670,668,438,866,1997,1933,1998,1999,2001]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253087,7 +258816,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; -},1965,[]); +},1996,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253210,7 +258939,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1966,[3,6,7]); +},1997,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253261,7 +258990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e css += NO_ARTICLE_TEXT_SELECTION_CSS(enableArticleTextSelection); return css; }; -},1967,[1709,1711,438]); +},1998,[819,827,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -253534,1899 +259263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref3.apply(this, arguments); }; }(); -},1968,[3,270,1969,566,668,1973,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 _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _NewsmemoryDatabasesManager; - - var MAIN_DB_NAME = "database.db"; - - var NewsmemoryDatabasesManager = exports.default = function () { - function NewsmemoryDatabasesManager() { - (0, _classCallCheck2.default)(this, NewsmemoryDatabasesManager); - } - - return (0, _createClass2.default)(NewsmemoryDatabasesManager, null, [{ - key: "getNewspaperDirectory", - value: function getNewspaperDirectory() { - return _tecnaviaFileUtils.default.getNewspaperBaseDirectory(); - } - }, { - key: "getDatabaseFilePath", - value: function getDatabaseFilePath() { - return _tecnaviaFileUtils.default.getNewsmemoryBaseDirectory() + MAIN_DB_NAME; - } - }, { - key: "getNewspaperIssueDirectory", - value: function getNewspaperIssueDirectory(paper, issue) { - return NewsmemoryDatabasesManager.getNewspaperDirectory() + paper + "/" + issue + "/"; - } - }, { - key: "deleteNewspaperIssueDirectory", - value: function () { - var _deleteNewspaperIssueDirectory = (0, _asyncToGenerator2.default)(function* (paper, issue) { - var dirToDelete = NewsmemoryDatabasesManager.getNewspaperIssueDirectory(paper, issue); - - try { - yield _tecnaviaFileUtils.default.unlink(dirToDelete); - } catch (e) {} - }); - - function deleteNewspaperIssueDirectory(_x, _x2) { - return _deleteNewspaperIssueDirectory.apply(this, arguments); - } - - return deleteNewspaperIssueDirectory; - }() - }, { - key: "makeNewspaperDirectory", - value: function () { - var _makeNewspaperDirectory = (0, _asyncToGenerator2.default)(function* () { - var newspaperDirectory = NewsmemoryDatabasesManager.getNewspaperDirectory(); - - if (!(yield _tecnaviaFileUtils.default.exists(newspaperDirectory))) { - yield _tecnaviaFileUtils.default.mkdir(newspaperDirectory); - } - }); - - function makeNewspaperDirectory() { - return _makeNewspaperDirectory.apply(this, arguments); - } - - return makeNewspaperDirectory; - }() - }, { - key: "deleteNewspaperDirectory", - value: function () { - var _deleteNewspaperDirectory = (0, _asyncToGenerator2.default)(function* () { - try { - yield _tecnaviaFileUtils.default.unlink(NewsmemoryDatabasesManager.getNewspaperDirectory()); - } catch (e) {} - }); - - function deleteNewspaperDirectory() { - return _deleteNewspaperDirectory.apply(this, arguments); - } - - return deleteNewspaperDirectory; - }() - }, { - key: "databaseExists", - value: function () { - var _databaseExists = (0, _asyncToGenerator2.default)(function* () { - if (NewsmemoryDatabasesManager.database) { - return NewsmemoryDatabasesManager.database.exists(); - } - - return false; - }); - - function databaseExists() { - return _databaseExists.apply(this, arguments); - } - - return databaseExists; - }() - }, { - key: "closeDatabase", - value: function () { - var _closeDatabase = (0, _asyncToGenerator2.default)(function* () { - if (NewsmemoryDatabasesManager.database) { - return NewsmemoryDatabasesManager.database.close(); - } - - return false; - }); - - function closeDatabase() { - return _closeDatabase.apply(this, arguments); - } - - return closeDatabase; - }() - }, { - key: "deleteDatabase", - value: function () { - var _deleteDatabase = (0, _asyncToGenerator2.default)(function* () { - if (NewsmemoryDatabasesManager.database) { - return NewsmemoryDatabasesManager.database.delete(); - } - - return false; - }); - - function deleteDatabase() { - return _deleteDatabase.apply(this, arguments); - } - - return deleteDatabase; - }() - }, { - key: "openTransaction", - value: function () { - var _openTransaction = (0, _asyncToGenerator2.default)(function* (query, params) { - return NewsmemoryDatabasesManager.database.transaction(query, params); - }); - - function openTransaction(_x3, _x4) { - return _openTransaction.apply(this, arguments); - } - - return openTransaction; - }() - }, { - key: "checkIfColumnExists", - value: function () { - var _checkIfColumnExists = (0, _asyncToGenerator2.default)(function* (table, column) { - return NewsmemoryDatabasesManager.database.columnExists(table, column); - }); - - function checkIfColumnExists(_x5, _x6) { - return _checkIfColumnExists.apply(this, arguments); - } - - return checkIfColumnExists; - }() - }, { - key: "createDatabasesTable", - value: function () { - var _createDatabasesTable = (0, _asyncToGenerator2.default)(function* () { - try { - var query = "CREATE TABLE IF NOT EXISTS databases (db_filename VARCHAR(255), db_paper VARCHAR(50), db_issue VARCHAR(20), db_edition VARCHAR(50), db_downtime DATETIME, db_status INTEGER DEFAULT 0, db_network VARCHAR(1), UNIQUE (db_paper,db_issue,db_edition) ON CONFLICT REPLACE );"; - yield NewsmemoryDatabasesManager.openTransaction(query); - var dbStatusExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_status"); - - if (!dbStatusExists) { - query = "ALTER TABLE databases ADD COLUMN db_status INTEGER DEFAULT 0;"; - yield NewsmemoryDatabasesManager.openTransaction(query); - } - - var dbNetworkExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_network"); - - if (!dbNetworkExists) { - var _global$getNewsmemory = global.getNewsmemoryConfig(), - network = _global$getNewsmemory.network; - - query = "ALTER TABLE databases ADD COLUMN db_network VARCHAR(1) DEFAULT '" + network + "'"; - yield NewsmemoryDatabasesManager.openTransaction(query); - } - - var dbPSetupExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_pSetup"); - - if (!dbPSetupExists) { - var _global$getActivePSet = global.getActivePSetup(), - pSetup = _global$getActivePSet.pSetup; - - query = "ALTER TABLE databases ADD COLUMN db_pSetup VARCHAR(255) DEFAULT '" + pSetup + "'"; - yield NewsmemoryDatabasesManager.openTransaction(query); - } - - var dbSecretExists = yield NewsmemoryDatabasesManager.checkIfColumnExists("databases", "db_secret"); - - if (!dbSecretExists) { - query = "ALTER TABLE databases ADD COLUMN db_secret VARCHAR(255) DEFAULT ''"; - yield NewsmemoryDatabasesManager.openTransaction(query); - } - } catch (e) { - throw e; - } - }); - - function createDatabasesTable() { - return _createDatabasesTable.apply(this, arguments); - } - - return createDatabasesTable; - }() - }, { - key: "resetDatabase", - value: function () { - var _resetDatabase = (0, _asyncToGenerator2.default)(function* () { - yield NewsmemoryDatabasesManager.closeDatabase(); - yield NewsmemoryDatabasesManager.deleteDatabase(); - yield NewsmemoryDatabasesManager.createDatabasesTable(); - }); - - function resetDatabase() { - return _resetDatabase.apply(this, arguments); - } - - return resetDatabase; - }() - }, { - key: "updateStatus", - value: function () { - var _updateStatus = (0, _asyncToGenerator2.default)(function* (paper, issue, edition, status) { - var pSetup = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.getActivePSetup().pSetup; - var query = "UPDATE databases SET db_status = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?"; - - try { - yield NewsmemoryDatabasesManager.openTransaction(query, [status, paper, issue, edition, pSetup]); - return true; - } catch (e) { - throw e; - } - }); - - function updateStatus(_x7, _x8, _x9, _x10) { - return _updateStatus.apply(this, arguments); - } - - return updateStatus; - }() - }, { - key: "updateNetwork", - value: function () { - var _updateNetwork = (0, _asyncToGenerator2.default)(function* (paper, issue, edition, network) { - var pSetup = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.getActivePSetup().pSetup; - var query = "UPDATE databases SET db_network = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?"; - - try { - yield NewsmemoryDatabasesManager.openTransaction(query, [network, paper, issue, edition, pSetup]); - return true; - } catch (e) { - throw e; - } - }); - - function updateNetwork(_x11, _x12, _x13, _x14) { - return _updateNetwork.apply(this, arguments); - } - - return updateNetwork; - }() - }, { - key: "getIssueStatus", - value: function () { - var _getIssueStatus = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { - var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; - var query = "SELECT db_status FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; - - try { - var response = yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); - - if (response && response[0]) { - return response[0]; - } - - throw new Error("missing issue on database"); - } catch (e) { - throw e; - } - }); - - function getIssueStatus(_x15, _x16, _x17) { - return _getIssueStatus.apply(this, arguments); - } - - return getIssueStatus; - }() - }, { - key: "insertIssue", - value: function () { - var _insertIssue = (0, _asyncToGenerator2.default)(function* (filename, paper, issue, edition) { - var secret = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ""; - var pSetup = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : global.getActivePSetup().pSetup; - var network = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : global.getNewsmemoryConfig().network; - var query = "INSERT INTO databases (db_filename, db_paper, db_issue, db_edition, db_downtime, db_pSetup, db_secret, db_network) VALUES (?, ?, ?, ?, ?, ?, ?, ?);"; - var downloadTime = parseInt(new Date().getTime() / 1000, 10); - - try { - var shortFilename = filename.replace(_tecnaviaFileUtils.default.getNewsmemoryBaseDirectory(), ""); - yield NewsmemoryDatabasesManager.openTransaction(query, [shortFilename, paper, issue, edition, downloadTime, pSetup, secret, network]); - return true; - } catch (e) { - throw e; - } - }); - - function insertIssue(_x18, _x19, _x20, _x21) { - return _insertIssue.apply(this, arguments); - } - - return insertIssue; - }() - }, { - key: "getAllIssues", - value: function () { - var _getAllIssues = (0, _asyncToGenerator2.default)(function* () { - var query = "SELECT * FROM databases ORDER BY db_issue DESC;"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query); - var issues = result.map(function (issue) { - return new _NewspaperIssue.default(issue); - }); - return issues; - } catch (e) { - throw e; - } - }); - - function getAllIssues() { - return _getAllIssues.apply(this, arguments); - } - - return getAllIssues; - }() - }, { - key: "getIssuesByDates", - value: function () { - var _getIssuesByDates = (0, _asyncToGenerator2.default)(function* () { - var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var query = "SELECT * FROM databases WHERE db_issue IN ( " + Array(dates.length).fill("?").join(",") + ");"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query, dates); - var issues = result.map(function (issue) { - return new _NewspaperIssue.default(issue); - }); - return issues; - } catch (e) { - throw e; - } - }); - - function getIssuesByDates() { - return _getIssuesByDates.apply(this, arguments); - } - - return getIssuesByDates; - }() - }, { - key: "getAllIssuesExcept", - value: function () { - var _getAllIssuesExcept = (0, _asyncToGenerator2.default)(function* () { - var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var query = "SELECT * FROM databases WHERE db_issue NOT IN ( " + Array(dates.length).fill("?").join(",") + ") ORDER BY db_downtime DESC;"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query, dates); - var issues = result.map(function (issue) { - return new _NewspaperIssue.default(issue); - }); - return issues; - } catch (e) { - throw e; - } - }); - - function getAllIssuesExcept() { - return _getAllIssuesExcept.apply(this, arguments); - } - - return getAllIssuesExcept; - }() - }, { - key: "getIssue", - value: function () { - var _getIssue = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { - var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; - var query = "SELECT * FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); - - if (result && result.length) { - return new _NewspaperIssue.default(result[0]); - } - - throw new Error("Issue not found"); - } catch (e) { - throw e; - } - }); - - function getIssue(_x22, _x23, _x24) { - return _getIssue.apply(this, arguments); - } - - return getIssue; - }() - }, { - key: "deleteIssue", - value: function () { - var _deleteIssue = (0, _asyncToGenerator2.default)(function* (paper, issue, edition) { - var pSetup = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : global.getActivePSetup().pSetup; - var query = "DELETE FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;"; - - try { - yield NewsmemoryDatabasesManager.openTransaction(query, [paper, issue, edition, pSetup]); - return true; - } catch (e) { - throw e; - } - }); - - function deleteIssue(_x25, _x26, _x27) { - return _deleteIssue.apply(this, arguments); - } - - return deleteIssue; - }() - }, { - key: "deleteIssueByFilename", - value: function () { - var _deleteIssueByFilename = (0, _asyncToGenerator2.default)(function* (filename) { - var query = "DELETE FROM databases WHERE db_filename = ?;"; - - try { - yield NewsmemoryDatabasesManager.openTransaction(query, [filename]); - return true; - } catch (e) { - throw e; - } - }); - - function deleteIssueByFilename(_x28) { - return _deleteIssueByFilename.apply(this, arguments); - } - - return deleteIssueByFilename; - }() - }, { - key: "getIssuesByEdition", - value: function () { - var _getIssuesByEdition = (0, _asyncToGenerator2.default)(function* (edition) { - var query = "SELECT * FROM databases WHERE db_edition = ?;"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query, [edition]); - var issues = result.map(function (issue) { - return new _NewspaperIssue.default(issue); - }); - return issues; - } catch (e) { - throw e; - } - }); - - function getIssuesByEdition(_x29) { - return _getIssuesByEdition.apply(this, arguments); - } - - return getIssuesByEdition; - }() - }, { - key: "getIssuesByPaper", - value: function () { - var _getIssuesByPaper = (0, _asyncToGenerator2.default)(function* (paper) { - var query = "SELECT * FROM databases WHERE db_paper = ?;"; - - try { - var result = yield NewsmemoryDatabasesManager.openTransaction(query, [paper]); - var issues = result.map(function (issue) { - return new _NewspaperIssue.default(issue); - }); - return issues; - } catch (e) { - throw e; - } - }); - - function getIssuesByPaper(_x30) { - return _getIssuesByPaper.apply(this, arguments); - } - - return getIssuesByPaper; - }() - }]); - }(); - - _NewsmemoryDatabasesManager = NewsmemoryDatabasesManager; - NewsmemoryDatabasesManager.database = new _Database.default(_NewsmemoryDatabasesManager.getDatabaseFilePath()); -},1969,[3,270,6,7,1970,566,1772]); -__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 _promiseQueue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNativeSqliteStorage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var Database = exports.default = function () { - function Database(path, migrations) { - (0, _classCallCheck2.default)(this, Database); - this.path = path; - this.queue = new _promiseQueue.default(1, Infinity); - this.migrations = migrations || []; - } - - return (0, _createClass2.default)(Database, [{ - key: "getPath", - value: function getPath() { - return this.path; - } - }, { - key: "delete", - value: function () { - var _delete2 = (0, _asyncToGenerator2.default)(function* () { - var _this = this; - - var result; - - try { - if (yield this.exists()) { - yield new Promise(function (resolve, reject) { - _reactNativeSqliteStorage.default.deleteDatabase(_this.path, resolve, reject); - }); - } - - result = true; - } catch (e) { - result = false; - } - - return result; - }); - - function _delete() { - return _delete2.apply(this, arguments); - } - - return _delete; - }() - }, { - key: "exists", - value: function () { - var _exists = (0, _asyncToGenerator2.default)(function* () { - var result; - - try { - result = yield _tecnaviaFileUtils.default.exists(this.path); - } catch (e) { - result = false; - } - - return result; - }); - - function exists() { - return _exists.apply(this, arguments); - } - - return exists; - }() - }, { - key: "open", - value: function () { - var _open = (0, _asyncToGenerator2.default)(function* () { - var _this2 = this; - - var result = false; - - try { - this.db = yield new Promise(function (resolve, reject) { - _reactNativeSqliteStorage.default.openDatabase({ - name: _this2.path - }, resolve, reject); - }); - result = !!this.db; - } catch (e) {} - - return result; - }); - - function open() { - return _open.apply(this, arguments); - } - - return open; - }() - }, { - key: "close", - value: function () { - var _close = (0, _asyncToGenerator2.default)(function* () { - var _this3 = this; - - var result = true; - - try { - yield new Promise(function (resolve, reject) { - _this3.db.close(resolve, reject); - }); - } catch (e) { - result = false; - } - - return result; - }); - - function close() { - return _close.apply(this, arguments); - } - - return close; - }() - }, { - key: "migrateDB", - value: function () { - var _migrateDB = (0, _asyncToGenerator2.default)(function* () { - var dbVersion = 0; - - try { - yield this.executeSqlNoTx("CREATE TABLE IF NOT EXISTS db_info ( key VARCHAR(255) NOT NULL, value VARCHAR(255) NOT NULL, PRIMARY KEY (key, value));"); - var rows = yield this.executeSqlNoTx("SELECT value FROM db_info WHERE key LIKE 'version'"); - - if (rows.length > 0) { - dbVersion = rows.item(0).value || 0; - } - } catch (e) { - dbVersion = 0; - } - - try { - for (var i = 0; i < this.migrations.length; i++) { - var _this$migrations$i = this.migrations[i], - version = _this$migrations$i.version, - queries = _this$migrations$i.queries; - - if (dbVersion < version) { - for (var q = 0; q < queries.length; q++) { - yield this.executeSqlNoTx(queries[q]); - } - - yield this.executeSqlNoTx("REPLACE INTO db_info ('key', 'value') VALUES ('version', " + version + ");"); - } - } - } catch (e) { - throw e; - } - }); - - function migrateDB() { - return _migrateDB.apply(this, arguments); - } - - return migrateDB; - }() - }, { - key: "openTransaction", - value: function () { - var _openTransaction = (0, _asyncToGenerator2.default)(function* () { - var _this4 = this; - - return new Promise(function (resolve, reject) { - _this4.db.transaction(function (tx) { - resolve(tx); - }, function (e) { - reject(e); - }); - }); - }); - - function openTransaction() { - return _openTransaction.apply(this, arguments); - } - - return openTransaction; - }() - }, { - key: "executeSqlNoTx", - value: function () { - var _executeSqlNoTx = (0, _asyncToGenerator2.default)(function* (query, params) { - var _this5 = this; - - return this.queue.add(function () { - return new Promise(function () { - var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { - if (yield _this5.open()) { - _this5.db.executeSql(query, params, function (resultSet) { - resolve(resultSet.rows); - }, function (e) { - reject(e); - }); - } else { - resolve([]); - } - }); - - return function (_x3, _x4) { - return _ref.apply(this, arguments); - }; - }()); - }); - }); - - function executeSqlNoTx(_x, _x2) { - return _executeSqlNoTx.apply(this, arguments); - } - - return executeSqlNoTx; - }() - }, { - key: "executeSql", - value: function () { - var _executeSql = (0, _asyncToGenerator2.default)(function* (tx, query, params) { - return new Promise(function (resolve, reject) { - tx.executeSql(query, params, function (transaction, sqlResult) { - var array = []; - - for (var i = 0; i < sqlResult.rows.length; i++) { - array.push(sqlResult.rows.item(i)); - } - - resolve(array); - }, function (e) { - reject(e); - }); - }); - }); - - function executeSql(_x5, _x6, _x7) { - return _executeSql.apply(this, arguments); - } - - return executeSql; - }() - }, { - key: "transaction", - value: function () { - var _transaction = (0, _asyncToGenerator2.default)(function* (query) { - var _this6 = this; - - var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return this.queue.add(function () { - return new Promise(function () { - var _ref2 = (0, _asyncToGenerator2.default)(function* (resolve) { - if (yield _this6.open()) { - try { - var tx = yield _this6.openTransaction(); - var result = yield _this6.executeSql(tx, query, params); - resolve(result); - } catch (e) { - resolve([]); - } - } else { - resolve([]); - } - }); - - return function (_x9) { - return _ref2.apply(this, arguments); - }; - }()); - }); - }); - - function transaction(_x8) { - return _transaction.apply(this, arguments); - } - - return transaction; - }() - }, { - key: "tableExists", - value: function () { - var _tableExists = (0, _asyncToGenerator2.default)(function* (table) { - var result = false; - - try { - var query = "SELECT name FROM sqlite_master WHERE type='table' AND name='" + table + "';"; - var rows = yield this.transaction(query, []); - - if (rows.length > 0) { - result = true; - } - } catch (e) {} - - return result; - }); - - function tableExists(_x10) { - return _tableExists.apply(this, arguments); - } - - return tableExists; - }() - }, { - key: "columnExists", - value: function () { - var _columnExists = (0, _asyncToGenerator2.default)(function* (table, column) { - var result = false; - - try { - var query = "PRAGMA table_info(" + table + ");"; - var columns = yield this.transaction(query, []); - - for (var i = 0; i < columns.length; i++) { - if (columns[i].name === column) { - result = true; - } - } - } catch (e) {} - - return result; - }); - - function columnExists(_x11, _x12) { - return _columnExists.apply(this, arguments); - } - - return columnExists; - }() - }, { - key: "deleteFrom", - value: function () { - var _deleteFrom = (0, _asyncToGenerator2.default)(function* (table, whereClause) { - return this.transaction("DELETE FROM " + table + " " + (whereClause ? "WHERE " + whereClause : "") + ";"); - }); - - function deleteFrom(_x13, _x14) { - return _deleteFrom.apply(this, arguments); - } - - return deleteFrom; - }() - }, { - key: "replaceInto", - value: function () { - var _replaceInto = (0, _asyncToGenerator2.default)(function* (table, cols, items) { - var _this7 = this; - - var numberOfParamsInAQuery = Math.floor(Database.MAX_INSERT_PARAMS / cols.length); - var chunksLength = Math.ceil(items.length / numberOfParamsInAQuery); - var chunks = Array.from({ - length: chunksLength - }, function (v, i) { - return items.slice(i * numberOfParamsInAQuery, i * numberOfParamsInAQuery + numberOfParamsInAQuery); - }); - var startTime = new Date().getTime(); - var promises = chunks.map(function () { - var _ref3 = (0, _asyncToGenerator2.default)(function* (chunk) { - var query = "REPLACE INTO " + table + " ( " + cols.join(",") + " ) VALUES "; - query += chunk.reduce(function (result, item, index, array) { - return result.concat("(").concat(Array(cols.length).fill("?").join(",")).concat(index < array.length - 1 ? ")," : ");"); - }, ""); - var params = chunk.reduce(function (result, item) { - return result.concat(item); - }, []); - return _this7.transaction(query, params); - }); - - return function (_x18) { - return _ref3.apply(this, arguments); - }; - }()); - - try { - var response = yield Promise.all(promises); - return response; - } catch (e) { - throw e; - } - }); - - function replaceInto(_x15, _x16, _x17) { - return _replaceInto.apply(this, arguments); - } - - return replaceInto; - }() - }, { - key: "destroy", - value: function () { - var _destroy = (0, _asyncToGenerator2.default)(function* () { - return this.close(); - }); - - function destroy() { - return _destroy.apply(this, arguments); - } - - return destroy; - }() - }]); - }(); - - Database.MAX_INSERT_PARAMS = 500; - Database.TAG = "DATABASE"; -},1970,[3,270,6,7,541,1971,566]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var config = [[false, "SQLitePlugin", "transaction", false, true, true], [false, "SQLitePlugin", "readTransaction", false, true, true], [false, "SQLitePlugin", "close", false, false, true], [false, "SQLitePlugin", "executeSql", true, false, true], [false, "SQLitePlugin", "sqlBatch", false, false, true], [false, "SQLitePlugin", "attach", true, false, true], [false, "SQLitePlugin", "detach", false, false, true], [false, "SQLitePluginTransaction", "executeSql", true, false, false], [false, "SQLiteFactory", "deleteDatabase", false, false, true], [true, "SQLiteFactory", "openDatabase", false, false, true], [false, "SQLiteFactory", "echoTest", false, false, true]]; - var originalFns = {}; - config.forEach(function (entry) { - var _entry = _$$_REQUIRE(_dependencyMap[0])(entry, 3), - returnValueExpected = _entry[0], - prototype = _entry[1], - fn = _entry[2]; - - var originalFn = _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn]; - - originalFns[prototype + "." + fn] = originalFn; - }); - - function enablePromiseRuntime(enable) { - if (enable) { - createPromiseRuntime(); - } else { - createCallbackRuntime(); - } - } - - function createCallbackRuntime() { - config.forEach(function (entry) { - var _entry2 = _$$_REQUIRE(_dependencyMap[0])(entry, 6), - returnValueExpected = _entry2[0], - prototype = _entry2[1], - fn = _entry2[2], - argsNeedPadding = _entry2[3], - reverseCallbacks = _entry2[4], - rejectOnError = _entry2[5]; - - _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn] = originalFns[prototype + "." + fn]; - }); - } - - function createPromiseRuntime() { - config.forEach(function (entry) { - var _entry3 = _$$_REQUIRE(_dependencyMap[0])(entry, 6), - returnValueExpected = _entry3[0], - prototype = _entry3[1], - fn = _entry3[2], - argsNeedPadding = _entry3[3], - reverseCallbacks = _entry3[4], - rejectOnError = _entry3[5]; - - var originalFn = _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn]; - - _$$_REQUIRE(_dependencyMap[1])[prototype].prototype[fn] = function () { - var _this = this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (argsNeedPadding && args.length == 1) { - args.push([]); - } - - var promise = new Promise(function (resolve, reject) { - var success = function success() { - if (!returnValueExpected) { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return resolve(args); - } - }; - - var error = function error(err) { - if (rejectOnError) { - reject(err); - } - - return false; - }; - - var retValue = originalFn.call.apply(originalFn, [_this].concat(args, [reverseCallbacks ? error : success, reverseCallbacks ? success : error])); - - if (returnValueExpected) { - return resolve(retValue); - } - }); - return promise; - }; - }); - } - - _$$_REQUIRE(_dependencyMap[1]).SQLiteFactory.prototype.enablePromise = enablePromiseRuntime; - module.exports = new (_$$_REQUIRE(_dependencyMap[1]).SQLiteFactory)(); -},1971,[33,1972]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - var NativeModules = _$$_REQUIRE(_dependencyMap[0]).NativeModules; - - var DB_STATE_INIT, DB_STATE_OPEN, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, argsArray, dblocations, newSQLError, root, txLocks; - var plugin = {}; - READ_ONLY_REGEX = /^(\s|;)*(?:alter|create|delete|drop|insert|reindex|replace|update)/i; - DB_STATE_INIT = "INIT"; - DB_STATE_OPEN = "OPEN"; - txLocks = {}; - - newSQLError = function newSQLError(error, code) { - var sqlError; - sqlError = error; - - if (!code) { - code = 0; - } - - if (!sqlError) { - sqlError = new Error("a plugin had an error but provided no response"); - sqlError.code = code; - } - - if (typeof sqlError === "string") { - sqlError = new Error(error); - sqlError.code = code; - } - - if (!sqlError.code && sqlError.message) { - sqlError.code = code; - } - - if (!sqlError.code && !sqlError.message) { - sqlError = new Error("an unknown error was returned: " + JSON.stringify(sqlError)); - sqlError.code = code; - } - - return sqlError; - }; - - var nextTick = setImmediate || function (fun) { - setTimeout(fun, 0); - }; - - if (global.window) { - nextTick = window.setImmediate || function (fun) { - window.setTimeout(fun, 0); - }; - } - - argsArray = function argsArray(fun) { - return function () { - var args, i, len; - len = arguments.length; - - if (len) { - args = []; - i = -1; - - while (++i < len) { - args[i] = arguments[i]; - } - - return fun.call(this, args); - } else { - return fun.call(this, []); - } - }; - }; - - plugin.exec = function (method, options, success, error) { - if (plugin.sqlitePlugin.DEBUG) {} - - NativeModules["SQLite"][method](options, success, error); - }; - - SQLitePlugin = function SQLitePlugin(openargs, openSuccess, openError) { - var dbname; - - if (!(openargs && openargs['name'])) { - throw newSQLError("Cannot create a SQLitePlugin db instance without a db name"); - } - - dbname = openargs.name; - - if (typeof dbname !== 'string') { - throw newSQLError('sqlite plugin database name must be a string'); - } - - this.openargs = openargs; - this.dbname = dbname; - this.openSuccess = openSuccess; - this.openError = openError; - this.openSuccess || (this.openSuccess = function () {}); - this.openError || (this.openError = function (e) {}); - this.open(this.openSuccess, this.openError); - }; - - SQLitePlugin.prototype.databaseFeatures = { - isSQLitePluginDatabase: true - }; - SQLitePlugin.prototype.openDBs = {}; - - SQLitePlugin.prototype.addTransaction = function (t) { - if (!txLocks[this.dbname]) { - txLocks[this.dbname] = { - queue: [], - inProgress: false - }; - } - - txLocks[this.dbname].queue.push(t); - - if (this.dbname in this.openDBs && this.openDBs[this.dbname] !== DB_STATE_INIT) { - this.startNextTransaction(); - } else { - if (this.dbname in this.openDBs) {} else {} - } - }; - - SQLitePlugin.prototype.transaction = function (fn, error, success) { - if (!this.openDBs[this.dbname]) { - error(newSQLError('database not open')); - return; - } - - this.addTransaction(new SQLitePluginTransaction(this, fn, error, success, true, false)); - }; - - SQLitePlugin.prototype.readTransaction = function (fn, error, success) { - if (!this.openDBs[this.dbname]) { - error(newSQLError('database not open')); - return; - } - - this.addTransaction(new SQLitePluginTransaction(this, fn, error, success, false, true)); - }; - - SQLitePlugin.prototype.startNextTransaction = function () { - var self; - self = this; - nextTick(function (_this) { - return function () { - var txLock; - - if (!(_this.dbname in _this.openDBs) || _this.openDBs[_this.dbname] !== DB_STATE_OPEN) { - return; - } - - txLock = txLocks[self.dbname]; - - if (!txLock) {} else if (txLock.queue.length > 0 && !txLock.inProgress) { - txLock.inProgress = true; - txLock.queue.shift().start(); - } - }; - }(this)); - }; - - SQLitePlugin.prototype.abortAllPendingTransactions = function () { - var j, len1, ref, tx, txLock; - txLock = txLocks[this.dbname]; - - if (!!txLock && txLock.queue.length > 0) { - ref = txLock.queue; - - for (j = 0, len1 = ref.length; j < len1; j++) { - tx = ref[j]; - tx.abortFromQ(newSQLError('Invalid database handle')); - } - - txLock.queue = []; - txLock.inProgress = false; - } - }; - - SQLitePlugin.prototype.sqlBatch = function (sqlStatements, success, error) { - var batchList, j, len1, myfn, st; - - if (!sqlStatements || sqlStatements.constructor !== Array) { - throw newSQLError('sqlBatch expects an array'); - } - - batchList = []; - - for (j = 0, len1 = sqlStatements.length; j < len1; j++) { - st = sqlStatements[j]; - - if (st.constructor === Array) { - if (st.length === 0) { - throw newSQLError('sqlBatch array element of zero (0) length'); - } - - batchList.push({ - sql: st[0], - params: st.length === 0 ? [] : st[1] - }); - } else { - batchList.push({ - sql: st, - params: [] - }); - } - } - - myfn = function myfn(tx) { - var elem, k, len2, results; - results = []; - - for (k = 0, len2 = batchList.length; k < len2; k++) { - elem = batchList[k]; - results.push(tx.addStatement(elem.sql, elem.params, null, null)); - } - - return results; - }; - - var mysuccess = function mysuccess() { - if (!!success) { - return success(); - } - }; - - var myerror = function myerror(e) { - if (!!error) { - return error(e); - } else {} - }; - - this.addTransaction(new SQLitePluginTransaction(this, myfn, myerror, mysuccess, true, false)); - }; - - SQLitePlugin.prototype.open = function (success, error) { - var openerrorcb, opensuccesscb; - - if (this.dbname in this.openDBs && this.openDBs[this.dbname] === DB_STATE_OPEN) { - nextTick(function (_this) { - return function () { - success(_this); - }; - }(this)); - } else { - opensuccesscb = function (_this) { - return function () { - var txLock; - - if (!_this.openDBs[_this.dbname]) {} - - if (_this.dbname in _this.openDBs) { - _this.openDBs[_this.dbname] = DB_STATE_OPEN; - } - - if (!!success) { - success(_this); - } - - txLock = txLocks[_this.dbname]; - - if (!!txLock && txLock.queue.length > 0 && !txLock.inProgress) { - _this.startNextTransaction(); - } - }; - }(this); - - openerrorcb = function (_this) { - return function () { - if (!!error) { - error(newSQLError('Could not open database')); - } - - delete _this.openDBs[_this.dbname]; - - _this.abortAllPendingTransactions(); - }; - }(this); - - this.openDBs[this.dbname] = DB_STATE_INIT; - plugin.exec("open", this.openargs, opensuccesscb, openerrorcb); - } - }; - - SQLitePlugin.prototype.close = function (success, error) { - if (this.dbname in this.openDBs) { - if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { - error(newSQLError('database cannot be closed while a transaction is in progress')); - return; - } - - delete this.openDBs[this.dbname]; - - if (txLocks[this.dbname]) {} else {} - - var mysuccess = function mysuccess(t, r) { - if (!!success) { - return success(r); - } - }; - - var myerror = function myerror(t, e) { - if (!!error) { - return error(e); - } else {} - }; - - plugin.exec("close", { - path: this.dbname - }, mysuccess, myerror); - } else { - var err = 'cannot close: database is not open'; - - if (error) { - nextTick(function () { - return error(err); - }); - } - } - }; - - SQLitePlugin.prototype.attach = function (dbNameToAttach, dbAlias, success, error) { - if (this.dbname in this.openDBs) { - if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { - error(newSQLError('database cannot be attached while a transaction is in progress')); - return; - } - - var mysuccess = function mysuccess(t, r) { - if (!!success) { - return success(r); - } - }; - - var myerror = function myerror(e) { - if (!!error) { - return error(e); - } else {} - }; - - plugin.exec("attach", { - path: this.dbname, - dbName: dbNameToAttach, - dbAlias: dbAlias - }, mysuccess, myerror); - } else { - var err = 'cannot attach: database is not open'; - - if (error) { - nextTick(function () { - return error(err); - }); - } - } - }; - - SQLitePlugin.prototype.detach = function (dbAlias, success, error) { - if (this.dbname in this.openDBs) { - if (txLocks[this.dbname] && txLocks[this.dbname].inProgress) { - error(newSQLError('database cannot be attached while a transaction is in progress')); - return; - } - - var mysuccess = function mysuccess(t, r) { - if (!!success) { - return success(r); - } - }; - - var myerror = function myerror(e) { - if (!!error) { - return error(e); - } else {} - }; - - this.executeSql('DETACH DATABASE ' + dbAlias, [], mysuccess, myerror); - } else { - var err = 'cannot attach: database is not open'; - - if (error) { - nextTick(function () { - return error(err); - }); - } - } - }; - - SQLitePlugin.prototype.executeSql = function (statement, params, success, error) { - var myerror, myfn, mysuccess; - - mysuccess = function mysuccess(t, r) { - if (!!success) { - return success(r); - } - }; - - myerror = function myerror(t, e) { - if (!!error) { - return error(e); - } else {} - }; - - myfn = function myfn(tx) { - tx.addStatement(statement, params, mysuccess, myerror); - }; - - this.addTransaction(new SQLitePluginTransaction(this, myfn, null, null, false, false)); - }; - - SQLitePluginTransaction = function SQLitePluginTransaction(db, fn, error, success, txlock, readOnly) { - if (typeof fn !== "function") { - var err = newSQLError("transaction expected a function"); - - if (!!error) { - return error(err); - } else { - throw err; - } - } - - this.db = db; - this.fn = fn; - this.error = error; - this.success = success; - this.txlock = txlock; - this.readOnly = readOnly; - this.executes = []; - - if (txlock) { - this.addStatement("BEGIN", [], null, function (tx, err) { - throw newSQLError("unable to begin transaction: " + err.message, err.code); - }); - } else { - this.addStatement("SELECT 1", [], null, null); - } - }; - - SQLitePluginTransaction.prototype.start = function () { - var err; - - try { - this.fn(this); - this.run(); - } catch (_error) { - err = _error; - txLocks[this.db.dbname].inProgress = false; - this.db.startNextTransaction(); - - if (this.error) { - this.error(newSQLError(err)); - } - } - }; - - SQLitePluginTransaction.prototype.executeSql = function (sql, values, success, error) { - var that = this; - - if (that.finalized) { - throw { - message: "InvalidStateError: DOM Exception 11: This transaction is already finalized. Transactions are committed after its success or failure handlers are called. If you are using a Promise to handle callbacks, be aware that implementations following the A+ standard adhere to run-to-completion semantics and so Promise resolution occurs on a subsequent tick and therefore after the transaction commits.", - code: 11 - }; - } - - if (that.readOnly && READ_ONLY_REGEX.test(sql)) { - that.handleStatementFailure(error, { - message: 'invalid sql for a read-only transaction' - }); - return; - } - - var mysuccess = function mysuccess(t, r) { - if (!!success) { - return success(t, r); - } - }; - - var myerror = function myerror(t, e) { - if (!!error) { - return error(e); - } else {} - }; - - that.addStatement(sql, values, mysuccess, myerror); - }; - - SQLitePluginTransaction.prototype.addStatement = function (sql, values, success, error) { - var j, len1, params, sqlStatement, t, v; - sqlStatement = typeof sql === 'string' ? sql : sql.toString(); - params = []; - - if (!!values && values.constructor === Array) { - for (j = 0, len1 = values.length; j < len1; j++) { - v = values[j]; - t = typeof v; - - if (v === null || v === undefined || t === 'number' || t === 'string') { - params.push(v); - } else if (t === 'boolean') { - params.push(~~v); - } else if (t !== 'function') { - params.push(v.toString()); - console.warn('addStatement - parameter of type <' + t + '> converted to string using toString()'); - } else { - var errorMsg = 'Unsupported parameter type <' + t + '> found in addStatement()'; - console.error(errorMsg); - error(newSQLError(errorMsg)); - return; - } - } - } - - this.executes.push({ - success: success, - error: error, - sql: sqlStatement, - params: params - }); - }; - - SQLitePluginTransaction.prototype.handleStatementSuccess = function (handler, response) { - var payload, rows; - - if (!handler) { - return; - } - - rows = response.rows || []; - payload = { - rows: { - item: function item(i) { - return rows[i]; - }, - raw: function raw() { - return rows.slice(); - }, - length: rows.length - }, - rowsAffected: response.rowsAffected || 0, - insertId: response.insertId || undefined - }; - handler(this, payload); - }; - - SQLitePluginTransaction.prototype.handleStatementFailure = function (handler, response) { - if (!handler) { - throw newSQLError("a statement with no error handler failed: " + response.message, response.code); - } - - if (handler(this, response) !== false) { - throw newSQLError("a statement error callback did not return false: " + response.message, response.code); - } - }; - - SQLitePluginTransaction.prototype.run = function () { - var batchExecutes, handlerFor, i, callbacks, request, tropts, tx, txFailure, waiting; - txFailure = null; - tropts = []; - batchExecutes = this.executes; - waiting = batchExecutes.length; - this.executes = []; - tx = this; - - handlerFor = function handlerFor(index, didSucceed) { - return function (response) { - if (!txFailure) { - try { - if (didSucceed) { - tx.handleStatementSuccess(batchExecutes[index].success, response); - } else { - tx.handleStatementFailure(batchExecutes[index].error, newSQLError(response)); - } - } catch (err) { - var errorMsg = JSON.stringify(err); - if (errorMsg === "{}") errorMsg = err.toString(); - } - - if (!didSucceed) { - txFailure = newSQLError(response); - } - } - - if (--waiting === 0) { - if (txFailure) { - tx.executes = []; - tx.abort(txFailure); - } else if (tx.executes.length > 0) { - tx.run(); - } else { - tx.finish(); - } - } - }; - }; - - i = 0; - callbacks = []; - - while (i < batchExecutes.length) { - request = batchExecutes[i]; - callbacks.push({ - success: handlerFor(i, true), - error: handlerFor(i, false) - }); - tropts.push({ - qid: 1111, - sql: request.sql, - params: request.params - }); - i++; - } - - var mysuccess = function mysuccess(result) { - var j, last, q, r, res, type; - - if (result.length == 0) { - return; - } - - last = result.length - 1; - - for (j = 0; j <= last; ++j) { - r = result[j]; - type = r.type; - res = r.result; - q = callbacks[j]; - - if (q) { - if (q[type]) { - q[type](res); - } - } - } - }; - - var myerror = function myerror(error) {}; - - plugin.exec("backgroundExecuteSqlBatch", { - dbargs: { - dbname: this.db.dbname - }, - executes: tropts - }, mysuccess, myerror); - }; - - SQLitePluginTransaction.prototype.abort = function (txFailure) { - var failed, succeeded, tx; - - if (this.finalized) { - return; - } - - tx = this; - - succeeded = function succeeded(tx) { - txLocks[tx.db.dbname].inProgress = false; - tx.db.startNextTransaction(); - - if (tx.error) { - tx.error(txFailure); - } - }; - - failed = function failed(tx, err) { - txLocks[tx.db.dbname].inProgress = false; - tx.db.startNextTransaction(); - - if (tx.error) { - tx.error(newSQLError("error while trying to roll back: " + err.message, err.code)); - } - }; - - this.finalized = true; - - if (this.txlock) { - this.addStatement("ROLLBACK", [], succeeded, failed); - this.run(); - } else { - succeeded(tx); - } - }; - - SQLitePluginTransaction.prototype.finish = function () { - var failed, succeeded, tx; - - if (this.finalized) { - return; - } - - tx = this; - - succeeded = function succeeded(tx) { - txLocks[tx.db.dbname].inProgress = false; - tx.db.startNextTransaction(); - - if (tx.success) { - tx.success(); - } - }; - - failed = function failed(tx, err) { - txLocks[tx.db.dbname].inProgress = false; - tx.db.startNextTransaction(); - - if (tx.error) { - tx.error(newSQLError("error while trying to commit: " + err.message, err.code)); - } - }; - - this.finalized = true; - - if (this.txlock) { - this.addStatement("COMMIT", [], succeeded, failed); - this.run(); - } else { - succeeded(tx); - } - }; - - SQLitePluginTransaction.prototype.abortFromQ = function (sqlerror) { - if (this.error) { - this.error(sqlerror); - } - }; - - dblocations = { - 'default': 'nosync', - 'Documents': 'docs', - 'Library': 'libs' - }; - - SQLiteFactory = function SQLiteFactory() {}; - - SQLiteFactory.prototype.DEBUG = function (debug) { - plugin.sqlitePlugin.DEBUG = debug; - }; - - SQLiteFactory.prototype.sqliteFeatures = function () { - return { - isSQLitePlugin: true - }; - }; - - SQLiteFactory.prototype.openDatabase = argsArray(function (args) { - var errorcb, first, okcb, openargs, readOnly; - - if (args.length < 1) { - return null; - } - - first = args[0]; - openargs = null; - - okcb = errorcb = function errorcb() {}; - - if (first.constructor === String) { - openargs = { - name: first, - dblocation: dblocations['default'] - }; - - if (args.length >= 5) { - okcb = args[4]; - - if (args.length > 5) { - errorcb = args[5]; - } - } - } else { - openargs = first; - readOnly = !!openargs.readOnly; - - if (!readOnly && (!openargs.location || openargs.location.constructor !== String || !dblocations.hasOwnProperty(openargs.location))) { - openargs.dblocation = dblocations['default']; - } else { - openargs.dblocation = dblocations[openargs.location]; - } - - if (!!openargs.createFromLocation) { - if (openargs.createFromLocation === 1) { - openargs.assetFilename = "1"; - } else if (typeof openargs.createFromLocation == 'string') { - openargs.assetFilename = openargs.createFromLocation; - } - } - - if (!!openargs.androidDatabaseImplementation && openargs.androidDatabaseImplementation === 2) { - openargs.androidOldDatabaseImplementation = 1; - } - - if (!!openargs.androidLockWorkaround && openargs.androidLockWorkaround === 1) { - openargs.androidBugWorkaround = 1; - } - - if (args.length >= 2) { - okcb = args[1]; - - if (args.length > 2) { - errorcb = args[2]; - } - } - } - - return new SQLitePlugin(openargs, okcb, errorcb); - }); - - SQLiteFactory.prototype.echoTest = function (success, error) { - var inputTestValue = 'test-string'; - - var mysuccess = function mysuccess(testValue) { - if (testValue === inputTestValue) { - return success(); - } else { - return error("Mismatch: got: " + testValue + " , expected: " + inputTestValue); - } - }; - - var myerror = function myerror(e) { - return error(e); - }; - - plugin.exec("echoStringValue", { - value: inputTestValue - }, mysuccess, myerror); - }; - - SQLiteFactory.prototype.deleteDatabase = function (first, success, error) { - var args = {}; - - if (first.constructor === String) { - args.path = first; - args.dblocation = dblocations['default']; - } else { - if (!(first && first['name'])) { - throw new Error("Please specify db name via name property"); - } - - args.path = first.name; - - if (!first.location || first.location.constructor !== String || !dblocations.hasOwnProperty(first.location)) { - args.dblocation = dblocations['default']; - } else { - args.dblocation = dblocations[first.location]; - } - } - - var mysuccess = function mysuccess(r) { - delete SQLitePlugin.prototype.openDBs[args.path]; - - if (!!success) { - return success(r); - } - }; - - var myerror = function myerror(e) { - if (!!error) { - return error(e); - } else {} - }; - - plugin.exec("delete", args, mysuccess, myerror); - }; - - plugin.sqlitePlugin = { - SQLiteFactory: SQLiteFactory, - SQLitePluginTransaction: SQLitePluginTransaction, - SQLitePlugin: SQLitePlugin - }; - module.exports = plugin.sqlitePlugin; -},1972,[18]); +},1999,[3,270,860,566,667,2000,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255540,7 +259377,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1973,[3,6,7,1957]); +},2000,[3,6,7,1988]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255549,7 +259386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var jQueryBase64 = exports.jQueryBase64 = "LyohIGpRdWVyeSB2My41LjEgfCAoYykgSlMgRm91bmRhdGlvbiBhbmQgb3RoZXIgY29udHJpYnV0b3JzIHwganF1ZXJ5Lm9yZy9saWNlbnNlICovCiFmdW5jdGlvbihlLHQpeyJ1c2Ugc3RyaWN0Ijsib2JqZWN0Ij09dHlwZW9mIG1vZHVsZSYmIm9iamVjdCI9PXR5cGVvZiBtb2R1bGUuZXhwb3J0cz9tb2R1bGUuZXhwb3J0cz1lLmRvY3VtZW50P3QoZSwhMCk6ZnVuY3Rpb24oZSl7aWYoIWUuZG9jdW1lbnQpdGhyb3cgbmV3IEVycm9yKCJqUXVlcnkgcmVxdWlyZXMgYSB3aW5kb3cgd2l0aCBhIGRvY3VtZW50Iik7cmV0dXJuIHQoZSl9OnQoZSl9KCJ1bmRlZmluZWQiIT10eXBlb2Ygd2luZG93P3dpbmRvdzp0aGlzLGZ1bmN0aW9uKEMsZSl7InVzZSBzdHJpY3QiO3ZhciB0PVtdLHI9T2JqZWN0LmdldFByb3RvdHlwZU9mLHM9dC5zbGljZSxnPXQuZmxhdD9mdW5jdGlvbihlKXtyZXR1cm4gdC5mbGF0LmNhbGwoZSl9OmZ1bmN0aW9uKGUpe3JldHVybiB0LmNvbmNhdC5hcHBseShbXSxlKX0sdT10LnB1c2gsaT10LmluZGV4T2Ysbj17fSxvPW4udG9TdHJpbmcsdj1uLmhhc093blByb3BlcnR5LGE9di50b1N0cmluZyxsPWEuY2FsbChPYmplY3QpLHk9e30sbT1mdW5jdGlvbihlKXtyZXR1cm4iZnVuY3Rpb24iPT10eXBlb2YgZSYmIm51bWJlciIhPXR5cGVvZiBlLm5vZGVUeXBlfSx4PWZ1bmN0aW9uKGUpe3JldHVybiBudWxsIT1lJiZlPT09ZS53aW5kb3d9LEU9Qy5kb2N1bWVudCxjPXt0eXBlOiEwLHNyYzohMCxub25jZTohMCxub01vZHVsZTohMH07ZnVuY3Rpb24gYihlLHQsbil7dmFyIHIsaSxvPShuPW58fEUpLmNyZWF0ZUVsZW1lbnQoInNjcmlwdCIpO2lmKG8udGV4dD1lLHQpZm9yKHIgaW4gYykoaT10W3JdfHx0LmdldEF0dHJpYnV0ZSYmdC5nZXRBdHRyaWJ1dGUocikpJiZvLnNldEF0dHJpYnV0ZShyLGkpO24uaGVhZC5hcHBlbmRDaGlsZChvKS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKG8pfWZ1bmN0aW9uIHcoZSl7cmV0dXJuIG51bGw9PWU/ZSsiIjoib2JqZWN0Ij09dHlwZW9mIGV8fCJmdW5jdGlvbiI9PXR5cGVvZiBlP25bby5jYWxsKGUpXXx8Im9iamVjdCI6dHlwZW9mIGV9dmFyIGY9IjMuNS4xIixTPWZ1bmN0aW9uKGUsdCl7cmV0dXJuIG5ldyBTLmZuLmluaXQoZSx0KX07ZnVuY3Rpb24gcChlKXt2YXIgdD0hIWUmJiJsZW5ndGgiaW4gZSYmZS5sZW5ndGgsbj13KGUpO3JldHVybiFtKGUpJiYheChlKSYmKCJhcnJheSI9PT1ufHwwPT09dHx8Im51bWJlciI9PXR5cGVvZiB0JiYwPHQmJnQtMSBpbiBlKX1TLmZuPVMucHJvdG90eXBlPXtqcXVlcnk6Zixjb25zdHJ1Y3RvcjpTLGxlbmd0aDowLHRvQXJyYXk6ZnVuY3Rpb24oKXtyZXR1cm4gcy5jYWxsKHRoaXMpfSxnZXQ6ZnVuY3Rpb24oZSl7cmV0dXJuIG51bGw9PWU/cy5jYWxsKHRoaXMpOmU8MD90aGlzW2UrdGhpcy5sZW5ndGhdOnRoaXNbZV19LHB1c2hTdGFjazpmdW5jdGlvbihlKXt2YXIgdD1TLm1lcmdlKHRoaXMuY29uc3RydWN0b3IoKSxlKTtyZXR1cm4gdC5wcmV2T2JqZWN0PXRoaXMsdH0sZWFjaDpmdW5jdGlvbihlKXtyZXR1cm4gUy5lYWNoKHRoaXMsZSl9LG1hcDpmdW5jdGlvbihuKXtyZXR1cm4gdGhpcy5wdXNoU3RhY2soUy5tYXAodGhpcyxmdW5jdGlvbihlLHQpe3JldHVybiBuLmNhbGwoZSx0LGUpfSkpfSxzbGljZTpmdW5jdGlvbigpe3JldHVybiB0aGlzLnB1c2hTdGFjayhzLmFwcGx5KHRoaXMsYXJndW1lbnRzKSl9LGZpcnN0OmZ1bmN0aW9uKCl7cmV0dXJuIHRoaXMuZXEoMCl9LGxhc3Q6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5lcSgtMSl9LGV2ZW46ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5wdXNoU3RhY2soUy5ncmVwKHRoaXMsZnVuY3Rpb24oZSx0KXtyZXR1cm4odCsxKSUyfSkpfSxvZGQ6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5wdXNoU3RhY2soUy5ncmVwKHRoaXMsZnVuY3Rpb24oZSx0KXtyZXR1cm4gdCUyfSkpfSxlcTpmdW5jdGlvbihlKXt2YXIgdD10aGlzLmxlbmd0aCxuPStlKyhlPDA/dDowKTtyZXR1cm4gdGhpcy5wdXNoU3RhY2soMDw9biYmbjx0P1t0aGlzW25dXTpbXSl9LGVuZDpmdW5jdGlvbigpe3JldHVybiB0aGlzLnByZXZPYmplY3R8fHRoaXMuY29uc3RydWN0b3IoKX0scHVzaDp1LHNvcnQ6dC5zb3J0LHNwbGljZTp0LnNwbGljZX0sUy5leHRlbmQ9Uy5mbi5leHRlbmQ9ZnVuY3Rpb24oKXt2YXIgZSx0LG4scixpLG8sYT1hcmd1bWVudHNbMF18fHt9LHM9MSx1PWFyZ3VtZW50cy5sZW5ndGgsbD0hMTtmb3IoImJvb2xlYW4iPT10eXBlb2YgYSYmKGw9YSxhPWFyZ3VtZW50c1tzXXx8e30scysrKSwib2JqZWN0Ij09dHlwZW9mIGF8fG0oYSl8fChhPXt9KSxzPT09dSYmKGE9dGhpcyxzLS0pO3M8dTtzKyspaWYobnVsbCE9KGU9YXJndW1lbnRzW3NdKSlmb3IodCBpbiBlKXI9ZVt0XSwiX19wcm90b19fIiE9PXQmJmEhPT1yJiYobCYmciYmKFMuaXNQbGFpbk9iamVjdChyKXx8KGk9QXJyYXkuaXNBcnJheShyKSkpPyhuPWFbdF0sbz1pJiYhQXJyYXkuaXNBcnJheShuKT9bXTppfHxTLmlzUGxhaW5PYmplY3Qobik/bjp7fSxpPSExLGFbdF09Uy5leHRlbmQobCxvLHIpKTp2b2lkIDAhPT1yJiYoYVt0XT1yKSk7cmV0dXJuIGF9LFMuZXh0ZW5kKHtleHBhbmRvOiJqUXVlcnkiKyhmK01hdGgucmFuZG9tKCkpLnJlcGxhY2UoL1xEL2csIiIpLGlzUmVhZHk6ITAsZXJyb3I6ZnVuY3Rpb24oZSl7dGhyb3cgbmV3IEVycm9yKGUpfSxub29wOmZ1bmN0aW9uKCl7fSxpc1BsYWluT2JqZWN0OmZ1bmN0aW9uKGUpe3ZhciB0LG47cmV0dXJuISghZXx8IltvYmplY3QgT2JqZWN0XSIhPT1vLmNhbGwoZSkpJiYoISh0PXIoZSkpfHwiZnVuY3Rpb24iPT10eXBlb2Yobj12LmNhbGwodCwiY29uc3RydWN0b3IiKSYmdC5jb25zdHJ1Y3RvcikmJmEuY2FsbChuKT09PWwpfSxpc0VtcHR5T2JqZWN0OmZ1bmN0aW9uKGUpe3ZhciB0O2Zvcih0IGluIGUpcmV0dXJuITE7cmV0dXJuITB9LGdsb2JhbEV2YWw6ZnVuY3Rpb24oZSx0LG4pe2IoZSx7bm9uY2U6dCYmdC5ub25jZX0sbil9LGVhY2g6ZnVuY3Rpb24oZSx0KXt2YXIgbixyPTA7aWYocChlKSl7Zm9yKG49ZS5sZW5ndGg7cjxuO3IrKylpZighMT09PXQuY2FsbChlW3JdLHIsZVtyXSkpYnJlYWt9ZWxzZSBmb3IociBpbiBlKWlmKCExPT09dC5jYWxsKGVbcl0scixlW3JdKSlicmVhaztyZXR1cm4gZX0sbWFrZUFycmF5OmZ1bmN0aW9uKGUsdCl7dmFyIG49dHx8W107cmV0dXJuIG51bGwhPWUmJihwKE9iamVjdChlKSk/Uy5tZXJnZShuLCJzdHJpbmciPT10eXBlb2YgZT9bZV06ZSk6dS5jYWxsKG4sZSkpLG59LGluQXJyYXk6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiBudWxsPT10Py0xOmkuY2FsbCh0LGUsbil9LG1lcmdlOmZ1bmN0aW9uKGUsdCl7Zm9yKHZhciBuPSt0Lmxlbmd0aCxyPTAsaT1lLmxlbmd0aDtyPG47cisrKWVbaSsrXT10W3JdO3JldHVybiBlLmxlbmd0aD1pLGV9LGdyZXA6ZnVuY3Rpb24oZSx0LG4pe2Zvcih2YXIgcj1bXSxpPTAsbz1lLmxlbmd0aCxhPSFuO2k8bztpKyspIXQoZVtpXSxpKSE9PWEmJnIucHVzaChlW2ldKTtyZXR1cm4gcn0sbWFwOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG89MCxhPVtdO2lmKHAoZSkpZm9yKHI9ZS5sZW5ndGg7bzxyO28rKyludWxsIT0oaT10KGVbb10sbyxuKSkmJmEucHVzaChpKTtlbHNlIGZvcihvIGluIGUpbnVsbCE9KGk9dChlW29dLG8sbikpJiZhLnB1c2goaSk7cmV0dXJuIGcoYSl9LGd1aWQ6MSxzdXBwb3J0Onl9KSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoUy5mbltTeW1ib2wuaXRlcmF0b3JdPXRbU3ltYm9sLml0ZXJhdG9yXSksUy5lYWNoKCJCb29sZWFuIE51bWJlciBTdHJpbmcgRnVuY3Rpb24gQXJyYXkgRGF0ZSBSZWdFeHAgT2JqZWN0IEVycm9yIFN5bWJvbCIuc3BsaXQoIiAiKSxmdW5jdGlvbihlLHQpe25bIltvYmplY3QgIit0KyJdIl09dC50b0xvd2VyQ2FzZSgpfSk7dmFyIGQ9ZnVuY3Rpb24obil7dmFyIGUsZCxiLG8saSxoLGYsZyx3LHUsbCxULEMsYSxFLHYscyxjLHksUz0ic2l6emxlIisxKm5ldyBEYXRlLHA9bi5kb2N1bWVudCxrPTAscj0wLG09dWUoKSx4PXVlKCksQT11ZSgpLE49dWUoKSxEPWZ1bmN0aW9uKGUsdCl7cmV0dXJuIGU9PT10JiYobD0hMCksMH0saj17fS5oYXNPd25Qcm9wZXJ0eSx0PVtdLHE9dC5wb3AsTD10LnB1c2gsSD10LnB1c2gsTz10LnNsaWNlLFA9ZnVuY3Rpb24oZSx0KXtmb3IodmFyIG49MCxyPWUubGVuZ3RoO248cjtuKyspaWYoZVtuXT09PXQpcmV0dXJuIG47cmV0dXJuLTF9LFI9ImNoZWNrZWR8c2VsZWN0ZWR8YXN5bmN8YXV0b2ZvY3VzfGF1dG9wbGF5fGNvbnRyb2xzfGRlZmVyfGRpc2FibGVkfGhpZGRlbnxpc21hcHxsb29wfG11bHRpcGxlfG9wZW58cmVhZG9ubHl8cmVxdWlyZWR8c2NvcGVkIixNPSJbXFx4MjBcXHRcXHJcXG5cXGZdIixJPSIoPzpcXFxcW1xcZGEtZkEtRl17MSw2fSIrTSsiP3xcXFxcW15cXHJcXG5cXGZdfFtcXHctXXxbXlwwLVxceDdmXSkrIixXPSJcXFsiK00rIiooIitJKyIpKD86IitNKyIqKFsqXiR8IX5dPz0pIitNKyIqKD86JygoPzpcXFxcLnxbXlxcXFwnXSkqKSd8XCIoKD86XFxcXC58W15cXFxcXCJdKSopXCJ8KCIrSSsiKSl8KSIrTSsiKlxcXSIsRj0iOigiK0krIikoPzpcXCgoKCcoKD86XFxcXC58W15cXFxcJ10pKiknfFwiKCg/OlxcXFwufFteXFxcXFwiXSkqKVwiKXwoKD86XFxcXC58W15cXFxcKClbXFxdXXwiK1crIikqKXwuKilcXCl8KSIsQj1uZXcgUmVnRXhwKE0rIisiLCJnIiksJD1uZXcgUmVnRXhwKCJeIitNKyIrfCgoPzpefFteXFxcXF0pKD86XFxcXC4pKikiK00rIiskIiwiZyIpLF89bmV3IFJlZ0V4cCgiXiIrTSsiKiwiK00rIioiKSx6PW5ldyBSZWdFeHAoIl4iK00rIiooWz4rfl18IitNKyIpIitNKyIqIiksVT1uZXcgUmVnRXhwKE0rInw+IiksWD1uZXcgUmVnRXhwKEYpLFY9bmV3IFJlZ0V4cCgiXiIrSSsiJCIpLEc9e0lEOm5ldyBSZWdFeHAoIl4jKCIrSSsiKSIpLENMQVNTOm5ldyBSZWdFeHAoIl5cXC4oIitJKyIpIiksVEFHOm5ldyBSZWdFeHAoIl4oIitJKyJ8WypdKSIpLEFUVFI6bmV3IFJlZ0V4cCgiXiIrVyksUFNFVURPOm5ldyBSZWdFeHAoIl4iK0YpLENISUxEOm5ldyBSZWdFeHAoIl46KG9ubHl8Zmlyc3R8bGFzdHxudGh8bnRoLWxhc3QpLShjaGlsZHxvZi10eXBlKSg/OlxcKCIrTSsiKihldmVufG9kZHwoKFsrLV18KShcXGQqKW58KSIrTSsiKig/OihbKy1dfCkiK00rIiooXFxkKyl8KSkiK00rIipcXCl8KSIsImkiKSxib29sOm5ldyBSZWdFeHAoIl4oPzoiK1IrIikkIiwiaSIpLG5lZWRzQ29udGV4dDpuZXcgUmVnRXhwKCJeIitNKyIqWz4rfl18OihldmVufG9kZHxlcXxndHxsdHxudGh8Zmlyc3R8bGFzdCkoPzpcXCgiK00rIiooKD86LVxcZCk/XFxkKikiK00rIipcXCl8KSg/PVteLV18JCkiLCJpIil9LFk9L0hUTUwkL2ksUT0vXig/OmlucHV0fHNlbGVjdHx0ZXh0YXJlYXxidXR0b24pJC9pLEo9L15oXGQkL2ksSz0vXltee10rXHtccypcW25hdGl2ZSBcdy8sWj0vXig/OiMoW1x3LV0rKXwoXHcrKXxcLihbXHctXSspKSQvLGVlPS9bK35dLyx0ZT1uZXcgUmVnRXhwKCJcXFxcW1xcZGEtZkEtRl17MSw2fSIrTSsiP3xcXFxcKFteXFxyXFxuXFxmXSkiLCJnIiksbmU9ZnVuY3Rpb24oZSx0KXt2YXIgbj0iMHgiK2Uuc2xpY2UoMSktNjU1MzY7cmV0dXJuIHR8fChuPDA/U3RyaW5nLmZyb21DaGFyQ29kZShuKzY1NTM2KTpTdHJpbmcuZnJvbUNoYXJDb2RlKG4+PjEwfDU1Mjk2LDEwMjMmbnw1NjMyMCkpfSxyZT0vKFtcMC1ceDFmXHg3Zl18Xi0/XGQpfF4tJHxbXlwwLVx4MWZceDdmLVx1RkZGRlx3LV0vZyxpZT1mdW5jdGlvbihlLHQpe3JldHVybiB0PyJcMCI9PT1lPyJcdWZmZmQiOmUuc2xpY2UoMCwtMSkrIlxcIitlLmNoYXJDb2RlQXQoZS5sZW5ndGgtMSkudG9TdHJpbmcoMTYpKyIgIjoiXFwiK2V9LG9lPWZ1bmN0aW9uKCl7VCgpfSxhZT1iZShmdW5jdGlvbihlKXtyZXR1cm4hMD09PWUuZGlzYWJsZWQmJiJmaWVsZHNldCI9PT1lLm5vZGVOYW1lLnRvTG93ZXJDYXNlKCl9LHtkaXI6InBhcmVudE5vZGUiLG5leHQ6ImxlZ2VuZCJ9KTt0cnl7SC5hcHBseSh0PU8uY2FsbChwLmNoaWxkTm9kZXMpLHAuY2hpbGROb2RlcyksdFtwLmNoaWxkTm9kZXMubGVuZ3RoXS5ub2RlVHlwZX1jYXRjaChlKXtIPXthcHBseTp0Lmxlbmd0aD9mdW5jdGlvbihlLHQpe0wuYXBwbHkoZSxPLmNhbGwodCkpfTpmdW5jdGlvbihlLHQpe3ZhciBuPWUubGVuZ3RoLHI9MDt3aGlsZShlW24rK109dFtyKytdKTtlLmxlbmd0aD1uLTF9fX1mdW5jdGlvbiBzZSh0LGUsbixyKXt2YXIgaSxvLGEscyx1LGwsYyxmPWUmJmUub3duZXJEb2N1bWVudCxwPWU/ZS5ub2RlVHlwZTo5O2lmKG49bnx8W10sInN0cmluZyIhPXR5cGVvZiB0fHwhdHx8MSE9PXAmJjkhPT1wJiYxMSE9PXApcmV0dXJuIG47aWYoIXImJihUKGUpLGU9ZXx8QyxFKSl7aWYoMTEhPT1wJiYodT1aLmV4ZWModCkpKWlmKGk9dVsxXSl7aWYoOT09PXApe2lmKCEoYT1lLmdldEVsZW1lbnRCeUlkKGkpKSlyZXR1cm4gbjtpZihhLmlkPT09aSlyZXR1cm4gbi5wdXNoKGEpLG59ZWxzZSBpZihmJiYoYT1mLmdldEVsZW1lbnRCeUlkKGkpKSYmeShlLGEpJiZhLmlkPT09aSlyZXR1cm4gbi5wdXNoKGEpLG59ZWxzZXtpZih1WzJdKXJldHVybiBILmFwcGx5KG4sZS5nZXRFbGVtZW50c0J5VGFnTmFtZSh0KSksbjtpZigoaT11WzNdKSYmZC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lJiZlLmdldEVsZW1lbnRzQnlDbGFzc05hbWUpcmV0dXJuIEguYXBwbHkobixlLmdldEVsZW1lbnRzQnlDbGFzc05hbWUoaSkpLG59aWYoZC5xc2EmJiFOW3QrIiAiXSYmKCF2fHwhdi50ZXN0KHQpKSYmKDEhPT1wfHwib2JqZWN0IiE9PWUubm9kZU5hbWUudG9Mb3dlckNhc2UoKSkpe2lmKGM9dCxmPWUsMT09PXAmJihVLnRlc3QodCl8fHoudGVzdCh0KSkpeyhmPWVlLnRlc3QodCkmJnllKGUucGFyZW50Tm9kZSl8fGUpPT09ZSYmZC5zY29wZXx8KChzPWUuZ2V0QXR0cmlidXRlKCJpZCIpKT9zPXMucmVwbGFjZShyZSxpZSk6ZS5zZXRBdHRyaWJ1dGUoImlkIixzPVMpKSxvPShsPWgodCkpLmxlbmd0aDt3aGlsZShvLS0pbFtvXT0ocz8iIyIrczoiOnNjb3BlIikrIiAiK3hlKGxbb10pO2M9bC5qb2luKCIsIil9dHJ5e3JldHVybiBILmFwcGx5KG4sZi5xdWVyeVNlbGVjdG9yQWxsKGMpKSxufWNhdGNoKGUpe04odCwhMCl9ZmluYWxseXtzPT09UyYmZS5yZW1vdmVBdHRyaWJ1dGUoImlkIil9fX1yZXR1cm4gZyh0LnJlcGxhY2UoJCwiJDEiKSxlLG4scil9ZnVuY3Rpb24gdWUoKXt2YXIgcj1bXTtyZXR1cm4gZnVuY3Rpb24gZSh0LG4pe3JldHVybiByLnB1c2godCsiICIpPmIuY2FjaGVMZW5ndGgmJmRlbGV0ZSBlW3Iuc2hpZnQoKV0sZVt0KyIgIl09bn19ZnVuY3Rpb24gbGUoZSl7cmV0dXJuIGVbU109ITAsZX1mdW5jdGlvbiBjZShlKXt2YXIgdD1DLmNyZWF0ZUVsZW1lbnQoImZpZWxkc2V0Iik7dHJ5e3JldHVybiEhZSh0KX1jYXRjaChlKXtyZXR1cm4hMX1maW5hbGx5e3QucGFyZW50Tm9kZSYmdC5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKHQpLHQ9bnVsbH19ZnVuY3Rpb24gZmUoZSx0KXt2YXIgbj1lLnNwbGl0KCJ8Iikscj1uLmxlbmd0aDt3aGlsZShyLS0pYi5hdHRySGFuZGxlW25bcl1dPXR9ZnVuY3Rpb24gcGUoZSx0KXt2YXIgbj10JiZlLHI9biYmMT09PWUubm9kZVR5cGUmJjE9PT10Lm5vZGVUeXBlJiZlLnNvdXJjZUluZGV4LXQuc291cmNlSW5kZXg7aWYocilyZXR1cm4gcjtpZihuKXdoaWxlKG49bi5uZXh0U2libGluZylpZihuPT09dClyZXR1cm4tMTtyZXR1cm4gZT8xOi0xfWZ1bmN0aW9uIGRlKHQpe3JldHVybiBmdW5jdGlvbihlKXtyZXR1cm4iaW5wdXQiPT09ZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpJiZlLnR5cGU9PT10fX1mdW5jdGlvbiBoZShuKXtyZXR1cm4gZnVuY3Rpb24oZSl7dmFyIHQ9ZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpO3JldHVybigiaW5wdXQiPT09dHx8ImJ1dHRvbiI9PT10KSYmZS50eXBlPT09bn19ZnVuY3Rpb24gZ2UodCl7cmV0dXJuIGZ1bmN0aW9uKGUpe3JldHVybiJmb3JtImluIGU/ZS5wYXJlbnROb2RlJiYhMT09PWUuZGlzYWJsZWQ/ImxhYmVsImluIGU/ImxhYmVsImluIGUucGFyZW50Tm9kZT9lLnBhcmVudE5vZGUuZGlzYWJsZWQ9PT10OmUuZGlzYWJsZWQ9PT10OmUuaXNEaXNhYmxlZD09PXR8fGUuaXNEaXNhYmxlZCE9PSF0JiZhZShlKT09PXQ6ZS5kaXNhYmxlZD09PXQ6ImxhYmVsImluIGUmJmUuZGlzYWJsZWQ9PT10fX1mdW5jdGlvbiB2ZShhKXtyZXR1cm4gbGUoZnVuY3Rpb24obyl7cmV0dXJuIG89K28sbGUoZnVuY3Rpb24oZSx0KXt2YXIgbixyPWEoW10sZS5sZW5ndGgsbyksaT1yLmxlbmd0aDt3aGlsZShpLS0pZVtuPXJbaV1dJiYoZVtuXT0hKHRbbl09ZVtuXSkpfSl9KX1mdW5jdGlvbiB5ZShlKXtyZXR1cm4gZSYmInVuZGVmaW5lZCIhPXR5cGVvZiBlLmdldEVsZW1lbnRzQnlUYWdOYW1lJiZlfWZvcihlIGluIGQ9c2Uuc3VwcG9ydD17fSxpPXNlLmlzWE1MPWZ1bmN0aW9uKGUpe3ZhciB0PWUubmFtZXNwYWNlVVJJLG49KGUub3duZXJEb2N1bWVudHx8ZSkuZG9jdW1lbnRFbGVtZW50O3JldHVybiFZLnRlc3QodHx8biYmbi5ub2RlTmFtZXx8IkhUTUwiKX0sVD1zZS5zZXREb2N1bWVudD1mdW5jdGlvbihlKXt2YXIgdCxuLHI9ZT9lLm93bmVyRG9jdW1lbnR8fGU6cDtyZXR1cm4gciE9QyYmOT09PXIubm9kZVR5cGUmJnIuZG9jdW1lbnRFbGVtZW50JiYoYT0oQz1yKS5kb2N1bWVudEVsZW1lbnQsRT0haShDKSxwIT1DJiYobj1DLmRlZmF1bHRWaWV3KSYmbi50b3AhPT1uJiYobi5hZGRFdmVudExpc3RlbmVyP24uYWRkRXZlbnRMaXN0ZW5lcigidW5sb2FkIixvZSwhMSk6bi5hdHRhY2hFdmVudCYmbi5hdHRhY2hFdmVudCgib251bmxvYWQiLG9lKSksZC5zY29wZT1jZShmdW5jdGlvbihlKXtyZXR1cm4gYS5hcHBlbmRDaGlsZChlKS5hcHBlbmRDaGlsZChDLmNyZWF0ZUVsZW1lbnQoImRpdiIpKSwidW5kZWZpbmVkIiE9dHlwZW9mIGUucXVlcnlTZWxlY3RvckFsbCYmIWUucXVlcnlTZWxlY3RvckFsbCgiOnNjb3BlIGZpZWxkc2V0IGRpdiIpLmxlbmd0aH0pLGQuYXR0cmlidXRlcz1jZShmdW5jdGlvbihlKXtyZXR1cm4gZS5jbGFzc05hbWU9ImkiLCFlLmdldEF0dHJpYnV0ZSgiY2xhc3NOYW1lIil9KSxkLmdldEVsZW1lbnRzQnlUYWdOYW1lPWNlKGZ1bmN0aW9uKGUpe3JldHVybiBlLmFwcGVuZENoaWxkKEMuY3JlYXRlQ29tbWVudCgiIikpLCFlLmdldEVsZW1lbnRzQnlUYWdOYW1lKCIqIikubGVuZ3RofSksZC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lPUsudGVzdChDLmdldEVsZW1lbnRzQnlDbGFzc05hbWUpLGQuZ2V0QnlJZD1jZShmdW5jdGlvbihlKXtyZXR1cm4gYS5hcHBlbmRDaGlsZChlKS5pZD1TLCFDLmdldEVsZW1lbnRzQnlOYW1lfHwhQy5nZXRFbGVtZW50c0J5TmFtZShTKS5sZW5ndGh9KSxkLmdldEJ5SWQ/KGIuZmlsdGVyLklEPWZ1bmN0aW9uKGUpe3ZhciB0PWUucmVwbGFjZSh0ZSxuZSk7cmV0dXJuIGZ1bmN0aW9uKGUpe3JldHVybiBlLmdldEF0dHJpYnV0ZSgiaWQiKT09PXR9fSxiLmZpbmQuSUQ9ZnVuY3Rpb24oZSx0KXtpZigidW5kZWZpbmVkIiE9dHlwZW9mIHQuZ2V0RWxlbWVudEJ5SWQmJkUpe3ZhciBuPXQuZ2V0RWxlbWVudEJ5SWQoZSk7cmV0dXJuIG4/W25dOltdfX0pOihiLmZpbHRlci5JRD1mdW5jdGlvbihlKXt2YXIgbj1lLnJlcGxhY2UodGUsbmUpO3JldHVybiBmdW5jdGlvbihlKXt2YXIgdD0idW5kZWZpbmVkIiE9dHlwZW9mIGUuZ2V0QXR0cmlidXRlTm9kZSYmZS5nZXRBdHRyaWJ1dGVOb2RlKCJpZCIpO3JldHVybiB0JiZ0LnZhbHVlPT09bn19LGIuZmluZC5JRD1mdW5jdGlvbihlLHQpe2lmKCJ1bmRlZmluZWQiIT10eXBlb2YgdC5nZXRFbGVtZW50QnlJZCYmRSl7dmFyIG4scixpLG89dC5nZXRFbGVtZW50QnlJZChlKTtpZihvKXtpZigobj1vLmdldEF0dHJpYnV0ZU5vZGUoImlkIikpJiZuLnZhbHVlPT09ZSlyZXR1cm5bb107aT10LmdldEVsZW1lbnRzQnlOYW1lKGUpLHI9MDt3aGlsZShvPWlbcisrXSlpZigobj1vLmdldEF0dHJpYnV0ZU5vZGUoImlkIikpJiZuLnZhbHVlPT09ZSlyZXR1cm5bb119cmV0dXJuW119fSksYi5maW5kLlRBRz1kLmdldEVsZW1lbnRzQnlUYWdOYW1lP2Z1bmN0aW9uKGUsdCl7cmV0dXJuInVuZGVmaW5lZCIhPXR5cGVvZiB0LmdldEVsZW1lbnRzQnlUYWdOYW1lP3QuZ2V0RWxlbWVudHNCeVRhZ05hbWUoZSk6ZC5xc2E/dC5xdWVyeVNlbGVjdG9yQWxsKGUpOnZvaWQgMH06ZnVuY3Rpb24oZSx0KXt2YXIgbixyPVtdLGk9MCxvPXQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoZSk7aWYoIioiPT09ZSl7d2hpbGUobj1vW2krK10pMT09PW4ubm9kZVR5cGUmJnIucHVzaChuKTtyZXR1cm4gcn1yZXR1cm4gb30sYi5maW5kLkNMQVNTPWQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSYmZnVuY3Rpb24oZSx0KXtpZigidW5kZWZpbmVkIiE9dHlwZW9mIHQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSYmRSlyZXR1cm4gdC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKGUpfSxzPVtdLHY9W10sKGQucXNhPUsudGVzdChDLnF1ZXJ5U2VsZWN0b3JBbGwpKSYmKGNlKGZ1bmN0aW9uKGUpe3ZhciB0O2EuYXBwZW5kQ2hpbGQoZSkuaW5uZXJIVE1MPSI8YSBpZD0nIitTKyInPjwvYT48c2VsZWN0IGlkPSciK1MrIi1cclxcJyBtc2FsbG93Y2FwdHVyZT0nJz48b3B0aW9uIHNlbGVjdGVkPScnPjwvb3B0aW9uPjwvc2VsZWN0PiIsZS5xdWVyeVNlbGVjdG9yQWxsKCJbbXNhbGxvd2NhcHR1cmVePScnXSIpLmxlbmd0aCYmdi5wdXNoKCJbKl4kXT0iK00rIiooPzonJ3xcIlwiKSIpLGUucXVlcnlTZWxlY3RvckFsbCgiW3NlbGVjdGVkXSIpLmxlbmd0aHx8di5wdXNoKCJcXFsiK00rIiooPzp2YWx1ZXwiK1IrIikiKSxlLnF1ZXJ5U2VsZWN0b3JBbGwoIltpZH49IitTKyItXSIpLmxlbmd0aHx8di5wdXNoKCJ+PSIpLCh0PUMuY3JlYXRlRWxlbWVudCgiaW5wdXQiKSkuc2V0QXR0cmlidXRlKCJuYW1lIiwiIiksZS5hcHBlbmRDaGlsZCh0KSxlLnF1ZXJ5U2VsZWN0b3JBbGwoIltuYW1lPScnXSIpLmxlbmd0aHx8di5wdXNoKCJcXFsiK00rIipuYW1lIitNKyIqPSIrTSsiKig/OicnfFwiXCIpIiksZS5xdWVyeVNlbGVjdG9yQWxsKCI6Y2hlY2tlZCIpLmxlbmd0aHx8di5wdXNoKCI6Y2hlY2tlZCIpLGUucXVlcnlTZWxlY3RvckFsbCgiYSMiK1MrIisqIikubGVuZ3RofHx2LnB1c2goIi4jLitbK35dIiksZS5xdWVyeVNlbGVjdG9yQWxsKCJcXFxmIiksdi5wdXNoKCJbXFxyXFxuXFxmXSIpfSksY2UoZnVuY3Rpb24oZSl7ZS5pbm5lckhUTUw9IjxhIGhyZWY9JycgZGlzYWJsZWQ9J2Rpc2FibGVkJz48L2E+PHNlbGVjdCBkaXNhYmxlZD0nZGlzYWJsZWQnPjxvcHRpb24vPjwvc2VsZWN0PiI7dmFyIHQ9Qy5jcmVhdGVFbGVtZW50KCJpbnB1dCIpO3Quc2V0QXR0cmlidXRlKCJ0eXBlIiwiaGlkZGVuIiksZS5hcHBlbmRDaGlsZCh0KS5zZXRBdHRyaWJ1dGUoIm5hbWUiLCJEIiksZS5xdWVyeVNlbGVjdG9yQWxsKCJbbmFtZT1kXSIpLmxlbmd0aCYmdi5wdXNoKCJuYW1lIitNKyIqWypeJHwhfl0/PSIpLDIhPT1lLnF1ZXJ5U2VsZWN0b3JBbGwoIjplbmFibGVkIikubGVuZ3RoJiZ2LnB1c2goIjplbmFibGVkIiwiOmRpc2FibGVkIiksYS5hcHBlbmRDaGlsZChlKS5kaXNhYmxlZD0hMCwyIT09ZS5xdWVyeVNlbGVjdG9yQWxsKCI6ZGlzYWJsZWQiKS5sZW5ndGgmJnYucHVzaCgiOmVuYWJsZWQiLCI6ZGlzYWJsZWQiKSxlLnF1ZXJ5U2VsZWN0b3JBbGwoIiosOngiKSx2LnB1c2goIiwuKjoiKX0pKSwoZC5tYXRjaGVzU2VsZWN0b3I9Sy50ZXN0KGM9YS5tYXRjaGVzfHxhLndlYmtpdE1hdGNoZXNTZWxlY3Rvcnx8YS5tb3pNYXRjaGVzU2VsZWN0b3J8fGEub01hdGNoZXNTZWxlY3Rvcnx8YS5tc01hdGNoZXNTZWxlY3RvcikpJiZjZShmdW5jdGlvbihlKXtkLmRpc2Nvbm5lY3RlZE1hdGNoPWMuY2FsbChlLCIqIiksYy5jYWxsKGUsIltzIT0nJ106eCIpLHMucHVzaCgiIT0iLEYpfSksdj12Lmxlbmd0aCYmbmV3IFJlZ0V4cCh2LmpvaW4oInwiKSkscz1zLmxlbmd0aCYmbmV3IFJlZ0V4cChzLmpvaW4oInwiKSksdD1LLnRlc3QoYS5jb21wYXJlRG9jdW1lbnRQb3NpdGlvbikseT10fHxLLnRlc3QoYS5jb250YWlucyk/ZnVuY3Rpb24oZSx0KXt2YXIgbj05PT09ZS5ub2RlVHlwZT9lLmRvY3VtZW50RWxlbWVudDplLHI9dCYmdC5wYXJlbnROb2RlO3JldHVybiBlPT09cnx8ISghcnx8MSE9PXIubm9kZVR5cGV8fCEobi5jb250YWlucz9uLmNvbnRhaW5zKHIpOmUuY29tcGFyZURvY3VtZW50UG9zaXRpb24mJjE2JmUuY29tcGFyZURvY3VtZW50UG9zaXRpb24ocikpKX06ZnVuY3Rpb24oZSx0KXtpZih0KXdoaWxlKHQ9dC5wYXJlbnROb2RlKWlmKHQ9PT1lKXJldHVybiEwO3JldHVybiExfSxEPXQ/ZnVuY3Rpb24oZSx0KXtpZihlPT09dClyZXR1cm4gbD0hMCwwO3ZhciBuPSFlLmNvbXBhcmVEb2N1bWVudFBvc2l0aW9uLSF0LmNvbXBhcmVEb2N1bWVudFBvc2l0aW9uO3JldHVybiBufHwoMSYobj0oZS5vd25lckRvY3VtZW50fHxlKT09KHQub3duZXJEb2N1bWVudHx8dCk/ZS5jb21wYXJlRG9jdW1lbnRQb3NpdGlvbih0KToxKXx8IWQuc29ydERldGFjaGVkJiZ0LmNvbXBhcmVEb2N1bWVudFBvc2l0aW9uKGUpPT09bj9lPT1DfHxlLm93bmVyRG9jdW1lbnQ9PXAmJnkocCxlKT8tMTp0PT1DfHx0Lm93bmVyRG9jdW1lbnQ9PXAmJnkocCx0KT8xOnU/UCh1LGUpLVAodSx0KTowOjQmbj8tMToxKX06ZnVuY3Rpb24oZSx0KXtpZihlPT09dClyZXR1cm4gbD0hMCwwO3ZhciBuLHI9MCxpPWUucGFyZW50Tm9kZSxvPXQucGFyZW50Tm9kZSxhPVtlXSxzPVt0XTtpZighaXx8IW8pcmV0dXJuIGU9PUM/LTE6dD09Qz8xOmk/LTE6bz8xOnU/UCh1LGUpLVAodSx0KTowO2lmKGk9PT1vKXJldHVybiBwZShlLHQpO249ZTt3aGlsZShuPW4ucGFyZW50Tm9kZSlhLnVuc2hpZnQobik7bj10O3doaWxlKG49bi5wYXJlbnROb2RlKXMudW5zaGlmdChuKTt3aGlsZShhW3JdPT09c1tyXSlyKys7cmV0dXJuIHI/cGUoYVtyXSxzW3JdKTphW3JdPT1wPy0xOnNbcl09PXA/MTowfSksQ30sc2UubWF0Y2hlcz1mdW5jdGlvbihlLHQpe3JldHVybiBzZShlLG51bGwsbnVsbCx0KX0sc2UubWF0Y2hlc1NlbGVjdG9yPWZ1bmN0aW9uKGUsdCl7aWYoVChlKSxkLm1hdGNoZXNTZWxlY3RvciYmRSYmIU5bdCsiICJdJiYoIXN8fCFzLnRlc3QodCkpJiYoIXZ8fCF2LnRlc3QodCkpKXRyeXt2YXIgbj1jLmNhbGwoZSx0KTtpZihufHxkLmRpc2Nvbm5lY3RlZE1hdGNofHxlLmRvY3VtZW50JiYxMSE9PWUuZG9jdW1lbnQubm9kZVR5cGUpcmV0dXJuIG59Y2F0Y2goZSl7Tih0LCEwKX1yZXR1cm4gMDxzZSh0LEMsbnVsbCxbZV0pLmxlbmd0aH0sc2UuY29udGFpbnM9ZnVuY3Rpb24oZSx0KXtyZXR1cm4oZS5vd25lckRvY3VtZW50fHxlKSE9QyYmVChlKSx5KGUsdCl9LHNlLmF0dHI9ZnVuY3Rpb24oZSx0KXsoZS5vd25lckRvY3VtZW50fHxlKSE9QyYmVChlKTt2YXIgbj1iLmF0dHJIYW5kbGVbdC50b0xvd2VyQ2FzZSgpXSxyPW4mJmouY2FsbChiLmF0dHJIYW5kbGUsdC50b0xvd2VyQ2FzZSgpKT9uKGUsdCwhRSk6dm9pZCAwO3JldHVybiB2b2lkIDAhPT1yP3I6ZC5hdHRyaWJ1dGVzfHwhRT9lLmdldEF0dHJpYnV0ZSh0KToocj1lLmdldEF0dHJpYnV0ZU5vZGUodCkpJiZyLnNwZWNpZmllZD9yLnZhbHVlOm51bGx9LHNlLmVzY2FwZT1mdW5jdGlvbihlKXtyZXR1cm4oZSsiIikucmVwbGFjZShyZSxpZSl9LHNlLmVycm9yPWZ1bmN0aW9uKGUpe3Rocm93IG5ldyBFcnJvcigiU3ludGF4IGVycm9yLCB1bnJlY29nbml6ZWQgZXhwcmVzc2lvbjogIitlKX0sc2UudW5pcXVlU29ydD1mdW5jdGlvbihlKXt2YXIgdCxuPVtdLHI9MCxpPTA7aWYobD0hZC5kZXRlY3REdXBsaWNhdGVzLHU9IWQuc29ydFN0YWJsZSYmZS5zbGljZSgwKSxlLnNvcnQoRCksbCl7d2hpbGUodD1lW2krK10pdD09PWVbaV0mJihyPW4ucHVzaChpKSk7d2hpbGUoci0tKWUuc3BsaWNlKG5bcl0sMSl9cmV0dXJuIHU9bnVsbCxlfSxvPXNlLmdldFRleHQ9ZnVuY3Rpb24oZSl7dmFyIHQsbj0iIixyPTAsaT1lLm5vZGVUeXBlO2lmKGkpe2lmKDE9PT1pfHw5PT09aXx8MTE9PT1pKXtpZigic3RyaW5nIj09dHlwZW9mIGUudGV4dENvbnRlbnQpcmV0dXJuIGUudGV4dENvbnRlbnQ7Zm9yKGU9ZS5maXJzdENoaWxkO2U7ZT1lLm5leHRTaWJsaW5nKW4rPW8oZSl9ZWxzZSBpZigzPT09aXx8ND09PWkpcmV0dXJuIGUubm9kZVZhbHVlfWVsc2Ugd2hpbGUodD1lW3IrK10pbis9byh0KTtyZXR1cm4gbn0sKGI9c2Uuc2VsZWN0b3JzPXtjYWNoZUxlbmd0aDo1MCxjcmVhdGVQc2V1ZG86bGUsbWF0Y2g6RyxhdHRySGFuZGxlOnt9LGZpbmQ6e30scmVsYXRpdmU6eyI+Ijp7ZGlyOiJwYXJlbnROb2RlIixmaXJzdDohMH0sIiAiOntkaXI6InBhcmVudE5vZGUifSwiKyI6e2RpcjoicHJldmlvdXNTaWJsaW5nIixmaXJzdDohMH0sIn4iOntkaXI6InByZXZpb3VzU2libGluZyJ9fSxwcmVGaWx0ZXI6e0FUVFI6ZnVuY3Rpb24oZSl7cmV0dXJuIGVbMV09ZVsxXS5yZXBsYWNlKHRlLG5lKSxlWzNdPShlWzNdfHxlWzRdfHxlWzVdfHwiIikucmVwbGFjZSh0ZSxuZSksIn49Ij09PWVbMl0mJihlWzNdPSIgIitlWzNdKyIgIiksZS5zbGljZSgwLDQpfSxDSElMRDpmdW5jdGlvbihlKXtyZXR1cm4gZVsxXT1lWzFdLnRvTG93ZXJDYXNlKCksIm50aCI9PT1lWzFdLnNsaWNlKDAsMyk/KGVbM118fHNlLmVycm9yKGVbMF0pLGVbNF09KyhlWzRdP2VbNV0rKGVbNl18fDEpOjIqKCJldmVuIj09PWVbM118fCJvZGQiPT09ZVszXSkpLGVbNV09KyhlWzddK2VbOF18fCJvZGQiPT09ZVszXSkpOmVbM10mJnNlLmVycm9yKGVbMF0pLGV9LFBTRVVETzpmdW5jdGlvbihlKXt2YXIgdCxuPSFlWzZdJiZlWzJdO3JldHVybiBHLkNISUxELnRlc3QoZVswXSk/bnVsbDooZVszXT9lWzJdPWVbNF18fGVbNV18fCIiOm4mJlgudGVzdChuKSYmKHQ9aChuLCEwKSkmJih0PW4uaW5kZXhPZigiKSIsbi5sZW5ndGgtdCktbi5sZW5ndGgpJiYoZVswXT1lWzBdLnNsaWNlKDAsdCksZVsyXT1uLnNsaWNlKDAsdCkpLGUuc2xpY2UoMCwzKSl9fSxmaWx0ZXI6e1RBRzpmdW5jdGlvbihlKXt2YXIgdD1lLnJlcGxhY2UodGUsbmUpLnRvTG93ZXJDYXNlKCk7cmV0dXJuIioiPT09ZT9mdW5jdGlvbigpe3JldHVybiEwfTpmdW5jdGlvbihlKXtyZXR1cm4gZS5ub2RlTmFtZSYmZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpPT09dH19LENMQVNTOmZ1bmN0aW9uKGUpe3ZhciB0PW1bZSsiICJdO3JldHVybiB0fHwodD1uZXcgUmVnRXhwKCIoXnwiK00rIikiK2UrIigiK00rInwkKSIpKSYmbShlLGZ1bmN0aW9uKGUpe3JldHVybiB0LnRlc3QoInN0cmluZyI9PXR5cGVvZiBlLmNsYXNzTmFtZSYmZS5jbGFzc05hbWV8fCJ1bmRlZmluZWQiIT10eXBlb2YgZS5nZXRBdHRyaWJ1dGUmJmUuZ2V0QXR0cmlidXRlKCJjbGFzcyIpfHwiIil9KX0sQVRUUjpmdW5jdGlvbihuLHIsaSl7cmV0dXJuIGZ1bmN0aW9uKGUpe3ZhciB0PXNlLmF0dHIoZSxuKTtyZXR1cm4gbnVsbD09dD8iIT0iPT09cjohcnx8KHQrPSIiLCI9Ij09PXI/dD09PWk6IiE9Ij09PXI/dCE9PWk6Il49Ij09PXI/aSYmMD09PXQuaW5kZXhPZihpKToiKj0iPT09cj9pJiYtMTx0LmluZGV4T2YoaSk6IiQ9Ij09PXI/aSYmdC5zbGljZSgtaS5sZW5ndGgpPT09aToifj0iPT09cj8tMTwoIiAiK3QucmVwbGFjZShCLCIgIikrIiAiKS5pbmRleE9mKGkpOiJ8PSI9PT1yJiYodD09PWl8fHQuc2xpY2UoMCxpLmxlbmd0aCsxKT09PWkrIi0iKSl9fSxDSElMRDpmdW5jdGlvbihoLGUsdCxnLHYpe3ZhciB5PSJudGgiIT09aC5zbGljZSgwLDMpLG09Imxhc3QiIT09aC5zbGljZSgtNCkseD0ib2YtdHlwZSI9PT1lO3JldHVybiAxPT09ZyYmMD09PXY/ZnVuY3Rpb24oZSl7cmV0dXJuISFlLnBhcmVudE5vZGV9OmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG8sYSxzLHUsbD15IT09bT8ibmV4dFNpYmxpbmciOiJwcmV2aW91c1NpYmxpbmciLGM9ZS5wYXJlbnROb2RlLGY9eCYmZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpLHA9IW4mJiF4LGQ9ITE7aWYoYyl7aWYoeSl7d2hpbGUobCl7YT1lO3doaWxlKGE9YVtsXSlpZih4P2Eubm9kZU5hbWUudG9Mb3dlckNhc2UoKT09PWY6MT09PWEubm9kZVR5cGUpcmV0dXJuITE7dT1sPSJvbmx5Ij09PWgmJiF1JiYibmV4dFNpYmxpbmcifXJldHVybiEwfWlmKHU9W20/Yy5maXJzdENoaWxkOmMubGFzdENoaWxkXSxtJiZwKXtkPShzPShyPShpPShvPShhPWMpW1NdfHwoYVtTXT17fSkpW2EudW5pcXVlSURdfHwob1thLnVuaXF1ZUlEXT17fSkpW2hdfHxbXSlbMF09PT1rJiZyWzFdKSYmclsyXSxhPXMmJmMuY2hpbGROb2Rlc1tzXTt3aGlsZShhPSsrcyYmYSYmYVtsXXx8KGQ9cz0wKXx8dS5wb3AoKSlpZigxPT09YS5ub2RlVHlwZSYmKytkJiZhPT09ZSl7aVtoXT1bayxzLGRdO2JyZWFrfX1lbHNlIGlmKHAmJihkPXM9KHI9KGk9KG89KGE9ZSlbU118fChhW1NdPXt9KSlbYS51bmlxdWVJRF18fChvW2EudW5pcXVlSURdPXt9KSlbaF18fFtdKVswXT09PWsmJnJbMV0pLCExPT09ZCl3aGlsZShhPSsrcyYmYSYmYVtsXXx8KGQ9cz0wKXx8dS5wb3AoKSlpZigoeD9hLm5vZGVOYW1lLnRvTG93ZXJDYXNlKCk9PT1mOjE9PT1hLm5vZGVUeXBlKSYmKytkJiYocCYmKChpPShvPWFbU118fChhW1NdPXt9KSlbYS51bmlxdWVJRF18fChvW2EudW5pcXVlSURdPXt9KSlbaF09W2ssZF0pLGE9PT1lKSlicmVhaztyZXR1cm4oZC09dik9PT1nfHxkJWc9PTAmJjA8PWQvZ319fSxQU0VVRE86ZnVuY3Rpb24oZSxvKXt2YXIgdCxhPWIucHNldWRvc1tlXXx8Yi5zZXRGaWx0ZXJzW2UudG9Mb3dlckNhc2UoKV18fHNlLmVycm9yKCJ1bnN1cHBvcnRlZCBwc2V1ZG86ICIrZSk7cmV0dXJuIGFbU10/YShvKToxPGEubGVuZ3RoPyh0PVtlLGUsIiIsb10sYi5zZXRGaWx0ZXJzLmhhc093blByb3BlcnR5KGUudG9Mb3dlckNhc2UoKSk/bGUoZnVuY3Rpb24oZSx0KXt2YXIgbixyPWEoZSxvKSxpPXIubGVuZ3RoO3doaWxlKGktLSllW249UChlLHJbaV0pXT0hKHRbbl09cltpXSl9KTpmdW5jdGlvbihlKXtyZXR1cm4gYShlLDAsdCl9KTphfX0scHNldWRvczp7bm90OmxlKGZ1bmN0aW9uKGUpe3ZhciByPVtdLGk9W10scz1mKGUucmVwbGFjZSgkLCIkMSIpKTtyZXR1cm4gc1tTXT9sZShmdW5jdGlvbihlLHQsbixyKXt2YXIgaSxvPXMoZSxudWxsLHIsW10pLGE9ZS5sZW5ndGg7d2hpbGUoYS0tKShpPW9bYV0pJiYoZVthXT0hKHRbYV09aSkpfSk6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiByWzBdPWUscyhyLG51bGwsbixpKSxyWzBdPW51bGwsIWkucG9wKCl9fSksaGFzOmxlKGZ1bmN0aW9uKHQpe3JldHVybiBmdW5jdGlvbihlKXtyZXR1cm4gMDxzZSh0LGUpLmxlbmd0aH19KSxjb250YWluczpsZShmdW5jdGlvbih0KXtyZXR1cm4gdD10LnJlcGxhY2UodGUsbmUpLGZ1bmN0aW9uKGUpe3JldHVybi0xPChlLnRleHRDb250ZW50fHxvKGUpKS5pbmRleE9mKHQpfX0pLGxhbmc6bGUoZnVuY3Rpb24obil7cmV0dXJuIFYudGVzdChufHwiIil8fHNlLmVycm9yKCJ1bnN1cHBvcnRlZCBsYW5nOiAiK24pLG49bi5yZXBsYWNlKHRlLG5lKS50b0xvd2VyQ2FzZSgpLGZ1bmN0aW9uKGUpe3ZhciB0O2Rve2lmKHQ9RT9lLmxhbmc6ZS5nZXRBdHRyaWJ1dGUoInhtbDpsYW5nIil8fGUuZ2V0QXR0cmlidXRlKCJsYW5nIikpcmV0dXJuKHQ9dC50b0xvd2VyQ2FzZSgpKT09PW58fDA9PT10LmluZGV4T2YobisiLSIpfXdoaWxlKChlPWUucGFyZW50Tm9kZSkmJjE9PT1lLm5vZGVUeXBlKTtyZXR1cm4hMX19KSx0YXJnZXQ6ZnVuY3Rpb24oZSl7dmFyIHQ9bi5sb2NhdGlvbiYmbi5sb2NhdGlvbi5oYXNoO3JldHVybiB0JiZ0LnNsaWNlKDEpPT09ZS5pZH0scm9vdDpmdW5jdGlvbihlKXtyZXR1cm4gZT09PWF9LGZvY3VzOmZ1bmN0aW9uKGUpe3JldHVybiBlPT09Qy5hY3RpdmVFbGVtZW50JiYoIUMuaGFzRm9jdXN8fEMuaGFzRm9jdXMoKSkmJiEhKGUudHlwZXx8ZS5ocmVmfHx+ZS50YWJJbmRleCl9LGVuYWJsZWQ6Z2UoITEpLGRpc2FibGVkOmdlKCEwKSxjaGVja2VkOmZ1bmN0aW9uKGUpe3ZhciB0PWUubm9kZU5hbWUudG9Mb3dlckNhc2UoKTtyZXR1cm4iaW5wdXQiPT09dCYmISFlLmNoZWNrZWR8fCJvcHRpb24iPT09dCYmISFlLnNlbGVjdGVkfSxzZWxlY3RlZDpmdW5jdGlvbihlKXtyZXR1cm4gZS5wYXJlbnROb2RlJiZlLnBhcmVudE5vZGUuc2VsZWN0ZWRJbmRleCwhMD09PWUuc2VsZWN0ZWR9LGVtcHR5OmZ1bmN0aW9uKGUpe2ZvcihlPWUuZmlyc3RDaGlsZDtlO2U9ZS5uZXh0U2libGluZylpZihlLm5vZGVUeXBlPDYpcmV0dXJuITE7cmV0dXJuITB9LHBhcmVudDpmdW5jdGlvbihlKXtyZXR1cm4hYi5wc2V1ZG9zLmVtcHR5KGUpfSxoZWFkZXI6ZnVuY3Rpb24oZSl7cmV0dXJuIEoudGVzdChlLm5vZGVOYW1lKX0saW5wdXQ6ZnVuY3Rpb24oZSl7cmV0dXJuIFEudGVzdChlLm5vZGVOYW1lKX0sYnV0dG9uOmZ1bmN0aW9uKGUpe3ZhciB0PWUubm9kZU5hbWUudG9Mb3dlckNhc2UoKTtyZXR1cm4iaW5wdXQiPT09dCYmImJ1dHRvbiI9PT1lLnR5cGV8fCJidXR0b24iPT09dH0sdGV4dDpmdW5jdGlvbihlKXt2YXIgdDtyZXR1cm4iaW5wdXQiPT09ZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpJiYidGV4dCI9PT1lLnR5cGUmJihudWxsPT0odD1lLmdldEF0dHJpYnV0ZSgidHlwZSIpKXx8InRleHQiPT09dC50b0xvd2VyQ2FzZSgpKX0sZmlyc3Q6dmUoZnVuY3Rpb24oKXtyZXR1cm5bMF19KSxsYXN0OnZlKGZ1bmN0aW9uKGUsdCl7cmV0dXJuW3QtMV19KSxlcTp2ZShmdW5jdGlvbihlLHQsbil7cmV0dXJuW248MD9uK3Q6bl19KSxldmVuOnZlKGZ1bmN0aW9uKGUsdCl7Zm9yKHZhciBuPTA7bjx0O24rPTIpZS5wdXNoKG4pO3JldHVybiBlfSksb2RkOnZlKGZ1bmN0aW9uKGUsdCl7Zm9yKHZhciBuPTE7bjx0O24rPTIpZS5wdXNoKG4pO3JldHVybiBlfSksbHQ6dmUoZnVuY3Rpb24oZSx0LG4pe2Zvcih2YXIgcj1uPDA/bit0OnQ8bj90Om47MDw9LS1yOyllLnB1c2gocik7cmV0dXJuIGV9KSxndDp2ZShmdW5jdGlvbihlLHQsbil7Zm9yKHZhciByPW48MD9uK3Q6bjsrK3I8dDspZS5wdXNoKHIpO3JldHVybiBlfSl9fSkucHNldWRvcy5udGg9Yi5wc2V1ZG9zLmVxLHtyYWRpbzohMCxjaGVja2JveDohMCxmaWxlOiEwLHBhc3N3b3JkOiEwLGltYWdlOiEwfSliLnBzZXVkb3NbZV09ZGUoZSk7Zm9yKGUgaW57c3VibWl0OiEwLHJlc2V0OiEwfSliLnBzZXVkb3NbZV09aGUoZSk7ZnVuY3Rpb24gbWUoKXt9ZnVuY3Rpb24geGUoZSl7Zm9yKHZhciB0PTAsbj1lLmxlbmd0aCxyPSIiO3Q8bjt0Kyspcis9ZVt0XS52YWx1ZTtyZXR1cm4gcn1mdW5jdGlvbiBiZShzLGUsdCl7dmFyIHU9ZS5kaXIsbD1lLm5leHQsYz1sfHx1LGY9dCYmInBhcmVudE5vZGUiPT09YyxwPXIrKztyZXR1cm4gZS5maXJzdD9mdW5jdGlvbihlLHQsbil7d2hpbGUoZT1lW3VdKWlmKDE9PT1lLm5vZGVUeXBlfHxmKXJldHVybiBzKGUsdCxuKTtyZXR1cm4hMX06ZnVuY3Rpb24oZSx0LG4pe3ZhciByLGksbyxhPVtrLHBdO2lmKG4pe3doaWxlKGU9ZVt1XSlpZigoMT09PWUubm9kZVR5cGV8fGYpJiZzKGUsdCxuKSlyZXR1cm4hMH1lbHNlIHdoaWxlKGU9ZVt1XSlpZigxPT09ZS5ub2RlVHlwZXx8ZilpZihpPShvPWVbU118fChlW1NdPXt9KSlbZS51bmlxdWVJRF18fChvW2UudW5pcXVlSURdPXt9KSxsJiZsPT09ZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpKWU9ZVt1XXx8ZTtlbHNle2lmKChyPWlbY10pJiZyWzBdPT09ayYmclsxXT09PXApcmV0dXJuIGFbMl09clsyXTtpZigoaVtjXT1hKVsyXT1zKGUsdCxuKSlyZXR1cm4hMH1yZXR1cm4hMX19ZnVuY3Rpb24gd2UoaSl7cmV0dXJuIDE8aS5sZW5ndGg/ZnVuY3Rpb24oZSx0LG4pe3ZhciByPWkubGVuZ3RoO3doaWxlKHItLSlpZighaVtyXShlLHQsbikpcmV0dXJuITE7cmV0dXJuITB9OmlbMF19ZnVuY3Rpb24gVGUoZSx0LG4scixpKXtmb3IodmFyIG8sYT1bXSxzPTAsdT1lLmxlbmd0aCxsPW51bGwhPXQ7czx1O3MrKykobz1lW3NdKSYmKG4mJiFuKG8scixpKXx8KGEucHVzaChvKSxsJiZ0LnB1c2gocykpKTtyZXR1cm4gYX1mdW5jdGlvbiBDZShkLGgsZyx2LHksZSl7cmV0dXJuIHYmJiF2W1NdJiYodj1DZSh2KSkseSYmIXlbU10mJih5PUNlKHksZSkpLGxlKGZ1bmN0aW9uKGUsdCxuLHIpe3ZhciBpLG8sYSxzPVtdLHU9W10sbD10Lmxlbmd0aCxjPWV8fGZ1bmN0aW9uKGUsdCxuKXtmb3IodmFyIHI9MCxpPXQubGVuZ3RoO3I8aTtyKyspc2UoZSx0W3JdLG4pO3JldHVybiBufShofHwiKiIsbi5ub2RlVHlwZT9bbl06bixbXSksZj0hZHx8IWUmJmg/YzpUZShjLHMsZCxuLHIpLHA9Zz95fHwoZT9kOmx8fHYpP1tdOnQ6ZjtpZihnJiZnKGYscCxuLHIpLHYpe2k9VGUocCx1KSx2KGksW10sbixyKSxvPWkubGVuZ3RoO3doaWxlKG8tLSkoYT1pW29dKSYmKHBbdVtvXV09IShmW3Vbb11dPWEpKX1pZihlKXtpZih5fHxkKXtpZih5KXtpPVtdLG89cC5sZW5ndGg7d2hpbGUoby0tKShhPXBbb10pJiZpLnB1c2goZltvXT1hKTt5KG51bGwscD1bXSxpLHIpfW89cC5sZW5ndGg7d2hpbGUoby0tKShhPXBbb10pJiYtMTwoaT15P1AoZSxhKTpzW29dKSYmKGVbaV09ISh0W2ldPWEpKX19ZWxzZSBwPVRlKHA9PT10P3Auc3BsaWNlKGwscC5sZW5ndGgpOnApLHk/eShudWxsLHQscCxyKTpILmFwcGx5KHQscCl9KX1mdW5jdGlvbiBFZShlKXtmb3IodmFyIGksdCxuLHI9ZS5sZW5ndGgsbz1iLnJlbGF0aXZlW2VbMF0udHlwZV0sYT1vfHxiLnJlbGF0aXZlWyIgIl0scz1vPzE6MCx1PWJlKGZ1bmN0aW9uKGUpe3JldHVybiBlPT09aX0sYSwhMCksbD1iZShmdW5jdGlvbihlKXtyZXR1cm4tMTxQKGksZSl9LGEsITApLGM9W2Z1bmN0aW9uKGUsdCxuKXt2YXIgcj0hbyYmKG58fHQhPT13KXx8KChpPXQpLm5vZGVUeXBlP3UoZSx0LG4pOmwoZSx0LG4pKTtyZXR1cm4gaT1udWxsLHJ9XTtzPHI7cysrKWlmKHQ9Yi5yZWxhdGl2ZVtlW3NdLnR5cGVdKWM9W2JlKHdlKGMpLHQpXTtlbHNle2lmKCh0PWIuZmlsdGVyW2Vbc10udHlwZV0uYXBwbHkobnVsbCxlW3NdLm1hdGNoZXMpKVtTXSl7Zm9yKG49KytzO248cjtuKyspaWYoYi5yZWxhdGl2ZVtlW25dLnR5cGVdKWJyZWFrO3JldHVybiBDZSgxPHMmJndlKGMpLDE8cyYmeGUoZS5zbGljZSgwLHMtMSkuY29uY2F0KHt2YWx1ZToiICI9PT1lW3MtMl0udHlwZT8iKiI6IiJ9KSkucmVwbGFjZSgkLCIkMSIpLHQsczxuJiZFZShlLnNsaWNlKHMsbikpLG48ciYmRWUoZT1lLnNsaWNlKG4pKSxuPHImJnhlKGUpKX1jLnB1c2godCl9cmV0dXJuIHdlKGMpfXJldHVybiBtZS5wcm90b3R5cGU9Yi5maWx0ZXJzPWIucHNldWRvcyxiLnNldEZpbHRlcnM9bmV3IG1lLGg9c2UudG9rZW5pemU9ZnVuY3Rpb24oZSx0KXt2YXIgbixyLGksbyxhLHMsdSxsPXhbZSsiICJdO2lmKGwpcmV0dXJuIHQ/MDpsLnNsaWNlKDApO2E9ZSxzPVtdLHU9Yi5wcmVGaWx0ZXI7d2hpbGUoYSl7Zm9yKG8gaW4gbiYmIShyPV8uZXhlYyhhKSl8fChyJiYoYT1hLnNsaWNlKHJbMF0ubGVuZ3RoKXx8YSkscy5wdXNoKGk9W10pKSxuPSExLChyPXouZXhlYyhhKSkmJihuPXIuc2hpZnQoKSxpLnB1c2goe3ZhbHVlOm4sdHlwZTpyWzBdLnJlcGxhY2UoJCwiICIpfSksYT1hLnNsaWNlKG4ubGVuZ3RoKSksYi5maWx0ZXIpIShyPUdbb10uZXhlYyhhKSl8fHVbb10mJiEocj11W29dKHIpKXx8KG49ci5zaGlmdCgpLGkucHVzaCh7dmFsdWU6bix0eXBlOm8sbWF0Y2hlczpyfSksYT1hLnNsaWNlKG4ubGVuZ3RoKSk7aWYoIW4pYnJlYWt9cmV0dXJuIHQ/YS5sZW5ndGg6YT9zZS5lcnJvcihlKTp4KGUscykuc2xpY2UoMCl9LGY9c2UuY29tcGlsZT1mdW5jdGlvbihlLHQpe3ZhciBuLHYseSxtLHgscixpPVtdLG89W10sYT1BW2UrIiAiXTtpZighYSl7dHx8KHQ9aChlKSksbj10Lmxlbmd0aDt3aGlsZShuLS0pKGE9RWUodFtuXSkpW1NdP2kucHVzaChhKTpvLnB1c2goYSk7KGE9QShlLCh2PW8sbT0wPCh5PWkpLmxlbmd0aCx4PTA8di5sZW5ndGgscj1mdW5jdGlvbihlLHQsbixyLGkpe3ZhciBvLGEscyx1PTAsbD0iMCIsYz1lJiZbXSxmPVtdLHA9dyxkPWV8fHgmJmIuZmluZC5UQUcoIioiLGkpLGg9ays9bnVsbD09cD8xOk1hdGgucmFuZG9tKCl8fC4xLGc9ZC5sZW5ndGg7Zm9yKGkmJih3PXQ9PUN8fHR8fGkpO2whPT1nJiZudWxsIT0obz1kW2xdKTtsKyspe2lmKHgmJm8pe2E9MCx0fHxvLm93bmVyRG9jdW1lbnQ9PUN8fChUKG8pLG49IUUpO3doaWxlKHM9dlthKytdKWlmKHMobyx0fHxDLG4pKXtyLnB1c2gobyk7YnJlYWt9aSYmKGs9aCl9bSYmKChvPSFzJiZvKSYmdS0tLGUmJmMucHVzaChvKSl9aWYodSs9bCxtJiZsIT09dSl7YT0wO3doaWxlKHM9eVthKytdKXMoYyxmLHQsbik7aWYoZSl7aWYoMDx1KXdoaWxlKGwtLSljW2xdfHxmW2xdfHwoZltsXT1xLmNhbGwocikpO2Y9VGUoZil9SC5hcHBseShyLGYpLGkmJiFlJiYwPGYubGVuZ3RoJiYxPHUreS5sZW5ndGgmJnNlLnVuaXF1ZVNvcnQocil9cmV0dXJuIGkmJihrPWgsdz1wKSxjfSxtP2xlKHIpOnIpKSkuc2VsZWN0b3I9ZX1yZXR1cm4gYX0sZz1zZS5zZWxlY3Q9ZnVuY3Rpb24oZSx0LG4scil7dmFyIGksbyxhLHMsdSxsPSJmdW5jdGlvbiI9PXR5cGVvZiBlJiZlLGM9IXImJmgoZT1sLnNlbGVjdG9yfHxlKTtpZihuPW58fFtdLDE9PT1jLmxlbmd0aCl7aWYoMjwobz1jWzBdPWNbMF0uc2xpY2UoMCkpLmxlbmd0aCYmIklEIj09PShhPW9bMF0pLnR5cGUmJjk9PT10Lm5vZGVUeXBlJiZFJiZiLnJlbGF0aXZlW29bMV0udHlwZV0pe2lmKCEodD0oYi5maW5kLklEKGEubWF0Y2hlc1swXS5yZXBsYWNlKHRlLG5lKSx0KXx8W10pWzBdKSlyZXR1cm4gbjtsJiYodD10LnBhcmVudE5vZGUpLGU9ZS5zbGljZShvLnNoaWZ0KCkudmFsdWUubGVuZ3RoKX1pPUcubmVlZHNDb250ZXh0LnRlc3QoZSk/MDpvLmxlbmd0aDt3aGlsZShpLS0pe2lmKGE9b1tpXSxiLnJlbGF0aXZlW3M9YS50eXBlXSlicmVhaztpZigodT1iLmZpbmRbc10pJiYocj11KGEubWF0Y2hlc1swXS5yZXBsYWNlKHRlLG5lKSxlZS50ZXN0KG9bMF0udHlwZSkmJnllKHQucGFyZW50Tm9kZSl8fHQpKSl7aWYoby5zcGxpY2UoaSwxKSwhKGU9ci5sZW5ndGgmJnhlKG8pKSlyZXR1cm4gSC5hcHBseShuLHIpLG47YnJlYWt9fX1yZXR1cm4obHx8ZihlLGMpKShyLHQsIUUsbiwhdHx8ZWUudGVzdChlKSYmeWUodC5wYXJlbnROb2RlKXx8dCksbn0sZC5zb3J0U3RhYmxlPVMuc3BsaXQoIiIpLnNvcnQoRCkuam9pbigiIik9PT1TLGQuZGV0ZWN0RHVwbGljYXRlcz0hIWwsVCgpLGQuc29ydERldGFjaGVkPWNlKGZ1bmN0aW9uKGUpe3JldHVybiAxJmUuY29tcGFyZURvY3VtZW50UG9zaXRpb24oQy5jcmVhdGVFbGVtZW50KCJmaWVsZHNldCIpKX0pLGNlKGZ1bmN0aW9uKGUpe3JldHVybiBlLmlubmVySFRNTD0iPGEgaHJlZj0nIyc+PC9hPiIsIiMiPT09ZS5maXJzdENoaWxkLmdldEF0dHJpYnV0ZSgiaHJlZiIpfSl8fGZlKCJ0eXBlfGhyZWZ8aGVpZ2h0fHdpZHRoIixmdW5jdGlvbihlLHQsbil7aWYoIW4pcmV0dXJuIGUuZ2V0QXR0cmlidXRlKHQsInR5cGUiPT09dC50b0xvd2VyQ2FzZSgpPzE6Mil9KSxkLmF0dHJpYnV0ZXMmJmNlKGZ1bmN0aW9uKGUpe3JldHVybiBlLmlubmVySFRNTD0iPGlucHV0Lz4iLGUuZmlyc3RDaGlsZC5zZXRBdHRyaWJ1dGUoInZhbHVlIiwiIiksIiI9PT1lLmZpcnN0Q2hpbGQuZ2V0QXR0cmlidXRlKCJ2YWx1ZSIpfSl8fGZlKCJ2YWx1ZSIsZnVuY3Rpb24oZSx0LG4pe2lmKCFuJiYiaW5wdXQiPT09ZS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpKXJldHVybiBlLmRlZmF1bHRWYWx1ZX0pLGNlKGZ1bmN0aW9uKGUpe3JldHVybiBudWxsPT1lLmdldEF0dHJpYnV0ZSgiZGlzYWJsZWQiKX0pfHxmZShSLGZ1bmN0aW9uKGUsdCxuKXt2YXIgcjtpZighbilyZXR1cm4hMD09PWVbdF0/dC50b0xvd2VyQ2FzZSgpOihyPWUuZ2V0QXR0cmlidXRlTm9kZSh0KSkmJnIuc3BlY2lmaWVkP3IudmFsdWU6bnVsbH0pLHNlfShDKTtTLmZpbmQ9ZCxTLmV4cHI9ZC5zZWxlY3RvcnMsUy5leHByWyI6Il09Uy5leHByLnBzZXVkb3MsUy51bmlxdWVTb3J0PVMudW5pcXVlPWQudW5pcXVlU29ydCxTLnRleHQ9ZC5nZXRUZXh0LFMuaXNYTUxEb2M9ZC5pc1hNTCxTLmNvbnRhaW5zPWQuY29udGFpbnMsUy5lc2NhcGVTZWxlY3Rvcj1kLmVzY2FwZTt2YXIgaD1mdW5jdGlvbihlLHQsbil7dmFyIHI9W10saT12b2lkIDAhPT1uO3doaWxlKChlPWVbdF0pJiY5IT09ZS5ub2RlVHlwZSlpZigxPT09ZS5ub2RlVHlwZSl7aWYoaSYmUyhlKS5pcyhuKSlicmVhaztyLnB1c2goZSl9cmV0dXJuIHJ9LFQ9ZnVuY3Rpb24oZSx0KXtmb3IodmFyIG49W107ZTtlPWUubmV4dFNpYmxpbmcpMT09PWUubm9kZVR5cGUmJmUhPT10JiZuLnB1c2goZSk7cmV0dXJuIG59LGs9Uy5leHByLm1hdGNoLm5lZWRzQ29udGV4dDtmdW5jdGlvbiBBKGUsdCl7cmV0dXJuIGUubm9kZU5hbWUmJmUubm9kZU5hbWUudG9Mb3dlckNhc2UoKT09PXQudG9Mb3dlckNhc2UoKX12YXIgTj0vXjwoW2Etel1bXlwvXDA+Olx4MjBcdFxyXG5cZl0qKVtceDIwXHRcclxuXGZdKlwvPz4oPzo8XC9cMT58KSQvaTtmdW5jdGlvbiBEKGUsbixyKXtyZXR1cm4gbShuKT9TLmdyZXAoZSxmdW5jdGlvbihlLHQpe3JldHVybiEhbi5jYWxsKGUsdCxlKSE9PXJ9KTpuLm5vZGVUeXBlP1MuZ3JlcChlLGZ1bmN0aW9uKGUpe3JldHVybiBlPT09biE9PXJ9KToic3RyaW5nIiE9dHlwZW9mIG4/Uy5ncmVwKGUsZnVuY3Rpb24oZSl7cmV0dXJuLTE8aS5jYWxsKG4sZSkhPT1yfSk6Uy5maWx0ZXIobixlLHIpfVMuZmlsdGVyPWZ1bmN0aW9uKGUsdCxuKXt2YXIgcj10WzBdO3JldHVybiBuJiYoZT0iOm5vdCgiK2UrIikiKSwxPT09dC5sZW5ndGgmJjE9PT1yLm5vZGVUeXBlP1MuZmluZC5tYXRjaGVzU2VsZWN0b3IocixlKT9bcl06W106Uy5maW5kLm1hdGNoZXMoZSxTLmdyZXAodCxmdW5jdGlvbihlKXtyZXR1cm4gMT09PWUubm9kZVR5cGV9KSl9LFMuZm4uZXh0ZW5kKHtmaW5kOmZ1bmN0aW9uKGUpe3ZhciB0LG4scj10aGlzLmxlbmd0aCxpPXRoaXM7aWYoInN0cmluZyIhPXR5cGVvZiBlKXJldHVybiB0aGlzLnB1c2hTdGFjayhTKGUpLmZpbHRlcihmdW5jdGlvbigpe2Zvcih0PTA7dDxyO3QrKylpZihTLmNvbnRhaW5zKGlbdF0sdGhpcykpcmV0dXJuITB9KSk7Zm9yKG49dGhpcy5wdXNoU3RhY2soW10pLHQ9MDt0PHI7dCsrKVMuZmluZChlLGlbdF0sbik7cmV0dXJuIDE8cj9TLnVuaXF1ZVNvcnQobik6bn0sZmlsdGVyOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLnB1c2hTdGFjayhEKHRoaXMsZXx8W10sITEpKX0sbm90OmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLnB1c2hTdGFjayhEKHRoaXMsZXx8W10sITApKX0saXM6ZnVuY3Rpb24oZSl7cmV0dXJuISFEKHRoaXMsInN0cmluZyI9PXR5cGVvZiBlJiZrLnRlc3QoZSk/UyhlKTplfHxbXSwhMSkubGVuZ3RofX0pO3ZhciBqLHE9L14oPzpccyooPFtcd1xXXSs+KVtePl0qfCMoW1x3LV0rKSkkLzsoUy5mbi5pbml0PWZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpO2lmKCFlKXJldHVybiB0aGlzO2lmKG49bnx8aiwic3RyaW5nIj09dHlwZW9mIGUpe2lmKCEocj0iPCI9PT1lWzBdJiYiPiI9PT1lW2UubGVuZ3RoLTFdJiYzPD1lLmxlbmd0aD9bbnVsbCxlLG51bGxdOnEuZXhlYyhlKSl8fCFyWzFdJiZ0KXJldHVybiF0fHx0LmpxdWVyeT8odHx8bikuZmluZChlKTp0aGlzLmNvbnN0cnVjdG9yKHQpLmZpbmQoZSk7aWYoclsxXSl7aWYodD10IGluc3RhbmNlb2YgUz90WzBdOnQsUy5tZXJnZSh0aGlzLFMucGFyc2VIVE1MKHJbMV0sdCYmdC5ub2RlVHlwZT90Lm93bmVyRG9jdW1lbnR8fHQ6RSwhMCkpLE4udGVzdChyWzFdKSYmUy5pc1BsYWluT2JqZWN0KHQpKWZvcihyIGluIHQpbSh0aGlzW3JdKT90aGlzW3JdKHRbcl0pOnRoaXMuYXR0cihyLHRbcl0pO3JldHVybiB0aGlzfXJldHVybihpPUUuZ2V0RWxlbWVudEJ5SWQoclsyXSkpJiYodGhpc1swXT1pLHRoaXMubGVuZ3RoPTEpLHRoaXN9cmV0dXJuIGUubm9kZVR5cGU/KHRoaXNbMF09ZSx0aGlzLmxlbmd0aD0xLHRoaXMpOm0oZSk/dm9pZCAwIT09bi5yZWFkeT9uLnJlYWR5KGUpOmUoUyk6Uy5tYWtlQXJyYXkoZSx0aGlzKX0pLnByb3RvdHlwZT1TLmZuLGo9UyhFKTt2YXIgTD0vXig/OnBhcmVudHN8cHJldig/OlVudGlsfEFsbCkpLyxIPXtjaGlsZHJlbjohMCxjb250ZW50czohMCxuZXh0OiEwLHByZXY6ITB9O2Z1bmN0aW9uIE8oZSx0KXt3aGlsZSgoZT1lW3RdKSYmMSE9PWUubm9kZVR5cGUpO3JldHVybiBlfVMuZm4uZXh0ZW5kKHtoYXM6ZnVuY3Rpb24oZSl7dmFyIHQ9UyhlLHRoaXMpLG49dC5sZW5ndGg7cmV0dXJuIHRoaXMuZmlsdGVyKGZ1bmN0aW9uKCl7Zm9yKHZhciBlPTA7ZTxuO2UrKylpZihTLmNvbnRhaW5zKHRoaXMsdFtlXSkpcmV0dXJuITB9KX0sY2xvc2VzdDpmdW5jdGlvbihlLHQpe3ZhciBuLHI9MCxpPXRoaXMubGVuZ3RoLG89W10sYT0ic3RyaW5nIiE9dHlwZW9mIGUmJlMoZSk7aWYoIWsudGVzdChlKSlmb3IoO3I8aTtyKyspZm9yKG49dGhpc1tyXTtuJiZuIT09dDtuPW4ucGFyZW50Tm9kZSlpZihuLm5vZGVUeXBlPDExJiYoYT8tMTxhLmluZGV4KG4pOjE9PT1uLm5vZGVUeXBlJiZTLmZpbmQubWF0Y2hlc1NlbGVjdG9yKG4sZSkpKXtvLnB1c2gobik7YnJlYWt9cmV0dXJuIHRoaXMucHVzaFN0YWNrKDE8by5sZW5ndGg/Uy51bmlxdWVTb3J0KG8pOm8pfSxpbmRleDpmdW5jdGlvbihlKXtyZXR1cm4gZT8ic3RyaW5nIj09dHlwZW9mIGU/aS5jYWxsKFMoZSksdGhpc1swXSk6aS5jYWxsKHRoaXMsZS5qcXVlcnk/ZVswXTplKTp0aGlzWzBdJiZ0aGlzWzBdLnBhcmVudE5vZGU/dGhpcy5maXJzdCgpLnByZXZBbGwoKS5sZW5ndGg6LTF9LGFkZDpmdW5jdGlvbihlLHQpe3JldHVybiB0aGlzLnB1c2hTdGFjayhTLnVuaXF1ZVNvcnQoUy5tZXJnZSh0aGlzLmdldCgpLFMoZSx0KSkpKX0sYWRkQmFjazpmdW5jdGlvbihlKXtyZXR1cm4gdGhpcy5hZGQobnVsbD09ZT90aGlzLnByZXZPYmplY3Q6dGhpcy5wcmV2T2JqZWN0LmZpbHRlcihlKSl9fSksUy5lYWNoKHtwYXJlbnQ6ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5wYXJlbnROb2RlO3JldHVybiB0JiYxMSE9PXQubm9kZVR5cGU/dDpudWxsfSxwYXJlbnRzOmZ1bmN0aW9uKGUpe3JldHVybiBoKGUsInBhcmVudE5vZGUiKX0scGFyZW50c1VudGlsOmZ1bmN0aW9uKGUsdCxuKXtyZXR1cm4gaChlLCJwYXJlbnROb2RlIixuKX0sbmV4dDpmdW5jdGlvbihlKXtyZXR1cm4gTyhlLCJuZXh0U2libGluZyIpfSxwcmV2OmZ1bmN0aW9uKGUpe3JldHVybiBPKGUsInByZXZpb3VzU2libGluZyIpfSxuZXh0QWxsOmZ1bmN0aW9uKGUpe3JldHVybiBoKGUsIm5leHRTaWJsaW5nIil9LHByZXZBbGw6ZnVuY3Rpb24oZSl7cmV0dXJuIGgoZSwicHJldmlvdXNTaWJsaW5nIil9LG5leHRVbnRpbDpmdW5jdGlvbihlLHQsbil7cmV0dXJuIGgoZSwibmV4dFNpYmxpbmciLG4pfSxwcmV2VW50aWw6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiBoKGUsInByZXZpb3VzU2libGluZyIsbil9LHNpYmxpbmdzOmZ1bmN0aW9uKGUpe3JldHVybiBUKChlLnBhcmVudE5vZGV8fHt9KS5maXJzdENoaWxkLGUpfSxjaGlsZHJlbjpmdW5jdGlvbihlKXtyZXR1cm4gVChlLmZpcnN0Q2hpbGQpfSxjb250ZW50czpmdW5jdGlvbihlKXtyZXR1cm4gbnVsbCE9ZS5jb250ZW50RG9jdW1lbnQmJnIoZS5jb250ZW50RG9jdW1lbnQpP2UuY29udGVudERvY3VtZW50OihBKGUsInRlbXBsYXRlIikmJihlPWUuY29udGVudHx8ZSksUy5tZXJnZShbXSxlLmNoaWxkTm9kZXMpKX19LGZ1bmN0aW9uKHIsaSl7Uy5mbltyXT1mdW5jdGlvbihlLHQpe3ZhciBuPVMubWFwKHRoaXMsaSxlKTtyZXR1cm4iVW50aWwiIT09ci5zbGljZSgtNSkmJih0PWUpLHQmJiJzdHJpbmciPT10eXBlb2YgdCYmKG49Uy5maWx0ZXIodCxuKSksMTx0aGlzLmxlbmd0aCYmKEhbcl18fFMudW5pcXVlU29ydChuKSxMLnRlc3QocikmJm4ucmV2ZXJzZSgpKSx0aGlzLnB1c2hTdGFjayhuKX19KTt2YXIgUD0vW15ceDIwXHRcclxuXGZdKy9nO2Z1bmN0aW9uIFIoZSl7cmV0dXJuIGV9ZnVuY3Rpb24gTShlKXt0aHJvdyBlfWZ1bmN0aW9uIEkoZSx0LG4scil7dmFyIGk7dHJ5e2UmJm0oaT1lLnByb21pc2UpP2kuY2FsbChlKS5kb25lKHQpLmZhaWwobik6ZSYmbShpPWUudGhlbik/aS5jYWxsKGUsdCxuKTp0LmFwcGx5KHZvaWQgMCxbZV0uc2xpY2UocikpfWNhdGNoKGUpe24uYXBwbHkodm9pZCAwLFtlXSl9fVMuQ2FsbGJhY2tzPWZ1bmN0aW9uKHIpe3ZhciBlLG47cj0ic3RyaW5nIj09dHlwZW9mIHI/KGU9cixuPXt9LFMuZWFjaChlLm1hdGNoKFApfHxbXSxmdW5jdGlvbihlLHQpe25bdF09ITB9KSxuKTpTLmV4dGVuZCh7fSxyKTt2YXIgaSx0LG8sYSxzPVtdLHU9W10sbD0tMSxjPWZ1bmN0aW9uKCl7Zm9yKGE9YXx8ci5vbmNlLG89aT0hMDt1Lmxlbmd0aDtsPS0xKXt0PXUuc2hpZnQoKTt3aGlsZSgrK2w8cy5sZW5ndGgpITE9PT1zW2xdLmFwcGx5KHRbMF0sdFsxXSkmJnIuc3RvcE9uRmFsc2UmJihsPXMubGVuZ3RoLHQ9ITEpfXIubWVtb3J5fHwodD0hMSksaT0hMSxhJiYocz10P1tdOiIiKX0sZj17YWRkOmZ1bmN0aW9uKCl7cmV0dXJuIHMmJih0JiYhaSYmKGw9cy5sZW5ndGgtMSx1LnB1c2godCkpLGZ1bmN0aW9uIG4oZSl7Uy5lYWNoKGUsZnVuY3Rpb24oZSx0KXttKHQpP3IudW5pcXVlJiZmLmhhcyh0KXx8cy5wdXNoKHQpOnQmJnQubGVuZ3RoJiYic3RyaW5nIiE9PXcodCkmJm4odCl9KX0oYXJndW1lbnRzKSx0JiYhaSYmYygpKSx0aGlzfSxyZW1vdmU6ZnVuY3Rpb24oKXtyZXR1cm4gUy5lYWNoKGFyZ3VtZW50cyxmdW5jdGlvbihlLHQpe3ZhciBuO3doaWxlKC0xPChuPVMuaW5BcnJheSh0LHMsbikpKXMuc3BsaWNlKG4sMSksbjw9bCYmbC0tfSksdGhpc30saGFzOmZ1bmN0aW9uKGUpe3JldHVybiBlPy0xPFMuaW5BcnJheShlLHMpOjA8cy5sZW5ndGh9LGVtcHR5OmZ1bmN0aW9uKCl7cmV0dXJuIHMmJihzPVtdKSx0aGlzfSxkaXNhYmxlOmZ1bmN0aW9uKCl7cmV0dXJuIGE9dT1bXSxzPXQ9IiIsdGhpc30sZGlzYWJsZWQ6ZnVuY3Rpb24oKXtyZXR1cm4hc30sbG9jazpmdW5jdGlvbigpe3JldHVybiBhPXU9W10sdHx8aXx8KHM9dD0iIiksdGhpc30sbG9ja2VkOmZ1bmN0aW9uKCl7cmV0dXJuISFhfSxmaXJlV2l0aDpmdW5jdGlvbihlLHQpe3JldHVybiBhfHwodD1bZSwodD10fHxbXSkuc2xpY2U/dC5zbGljZSgpOnRdLHUucHVzaCh0KSxpfHxjKCkpLHRoaXN9LGZpcmU6ZnVuY3Rpb24oKXtyZXR1cm4gZi5maXJlV2l0aCh0aGlzLGFyZ3VtZW50cyksdGhpc30sZmlyZWQ6ZnVuY3Rpb24oKXtyZXR1cm4hIW99fTtyZXR1cm4gZn0sUy5leHRlbmQoe0RlZmVycmVkOmZ1bmN0aW9uKGUpe3ZhciBvPVtbIm5vdGlmeSIsInByb2dyZXNzIixTLkNhbGxiYWNrcygibWVtb3J5IiksUy5DYWxsYmFja3MoIm1lbW9yeSIpLDJdLFsicmVzb2x2ZSIsImRvbmUiLFMuQ2FsbGJhY2tzKCJvbmNlIG1lbW9yeSIpLFMuQ2FsbGJhY2tzKCJvbmNlIG1lbW9yeSIpLDAsInJlc29sdmVkIl0sWyJyZWplY3QiLCJmYWlsIixTLkNhbGxiYWNrcygib25jZSBtZW1vcnkiKSxTLkNhbGxiYWNrcygib25jZSBtZW1vcnkiKSwxLCJyZWplY3RlZCJdXSxpPSJwZW5kaW5nIixhPXtzdGF0ZTpmdW5jdGlvbigpe3JldHVybiBpfSxhbHdheXM6ZnVuY3Rpb24oKXtyZXR1cm4gcy5kb25lKGFyZ3VtZW50cykuZmFpbChhcmd1bWVudHMpLHRoaXN9LCJjYXRjaCI6ZnVuY3Rpb24oZSl7cmV0dXJuIGEudGhlbihudWxsLGUpfSxwaXBlOmZ1bmN0aW9uKCl7dmFyIGk9YXJndW1lbnRzO3JldHVybiBTLkRlZmVycmVkKGZ1bmN0aW9uKHIpe1MuZWFjaChvLGZ1bmN0aW9uKGUsdCl7dmFyIG49bShpW3RbNF1dKSYmaVt0WzRdXTtzW3RbMV1dKGZ1bmN0aW9uKCl7dmFyIGU9biYmbi5hcHBseSh0aGlzLGFyZ3VtZW50cyk7ZSYmbShlLnByb21pc2UpP2UucHJvbWlzZSgpLnByb2dyZXNzKHIubm90aWZ5KS5kb25lKHIucmVzb2x2ZSkuZmFpbChyLnJlamVjdCk6clt0WzBdKyJXaXRoIl0odGhpcyxuP1tlXTphcmd1bWVudHMpfSl9KSxpPW51bGx9KS5wcm9taXNlKCl9LHRoZW46ZnVuY3Rpb24odCxuLHIpe3ZhciB1PTA7ZnVuY3Rpb24gbChpLG8sYSxzKXtyZXR1cm4gZnVuY3Rpb24oKXt2YXIgbj10aGlzLHI9YXJndW1lbnRzLGU9ZnVuY3Rpb24oKXt2YXIgZSx0O2lmKCEoaTx1KSl7aWYoKGU9YS5hcHBseShuLHIpKT09PW8ucHJvbWlzZSgpKXRocm93IG5ldyBUeXBlRXJyb3IoIlRoZW5hYmxlIHNlbGYtcmVzb2x1dGlvbiIpO3Q9ZSYmKCJvYmplY3QiPT10eXBlb2YgZXx8ImZ1bmN0aW9uIj09dHlwZW9mIGUpJiZlLnRoZW4sbSh0KT9zP3QuY2FsbChlLGwodSxvLFIscyksbCh1LG8sTSxzKSk6KHUrKyx0LmNhbGwoZSxsKHUsbyxSLHMpLGwodSxvLE0scyksbCh1LG8sUixvLm5vdGlmeVdpdGgpKSk6KGEhPT1SJiYobj12b2lkIDAscj1bZV0pLChzfHxvLnJlc29sdmVXaXRoKShuLHIpKX19LHQ9cz9lOmZ1bmN0aW9uKCl7dHJ5e2UoKX1jYXRjaChlKXtTLkRlZmVycmVkLmV4Y2VwdGlvbkhvb2smJlMuRGVmZXJyZWQuZXhjZXB0aW9uSG9vayhlLHQuc3RhY2tUcmFjZSksdTw9aSsxJiYoYSE9PU0mJihuPXZvaWQgMCxyPVtlXSksby5yZWplY3RXaXRoKG4scikpfX07aT90KCk6KFMuRGVmZXJyZWQuZ2V0U3RhY2tIb29rJiYodC5zdGFja1RyYWNlPVMuRGVmZXJyZWQuZ2V0U3RhY2tIb29rKCkpLEMuc2V0VGltZW91dCh0KSl9fXJldHVybiBTLkRlZmVycmVkKGZ1bmN0aW9uKGUpe29bMF1bM10uYWRkKGwoMCxlLG0ocik/cjpSLGUubm90aWZ5V2l0aCkpLG9bMV1bM10uYWRkKGwoMCxlLG0odCk/dDpSKSksb1syXVszXS5hZGQobCgwLGUsbShuKT9uOk0pKX0pLnByb21pc2UoKX0scHJvbWlzZTpmdW5jdGlvbihlKXtyZXR1cm4gbnVsbCE9ZT9TLmV4dGVuZChlLGEpOmF9fSxzPXt9O3JldHVybiBTLmVhY2gobyxmdW5jdGlvbihlLHQpe3ZhciBuPXRbMl0scj10WzVdO2FbdFsxXV09bi5hZGQsciYmbi5hZGQoZnVuY3Rpb24oKXtpPXJ9LG9bMy1lXVsyXS5kaXNhYmxlLG9bMy1lXVszXS5kaXNhYmxlLG9bMF1bMl0ubG9jayxvWzBdWzNdLmxvY2spLG4uYWRkKHRbM10uZmlyZSksc1t0WzBdXT1mdW5jdGlvbigpe3JldHVybiBzW3RbMF0rIldpdGgiXSh0aGlzPT09cz92b2lkIDA6dGhpcyxhcmd1bWVudHMpLHRoaXN9LHNbdFswXSsiV2l0aCJdPW4uZmlyZVdpdGh9KSxhLnByb21pc2UocyksZSYmZS5jYWxsKHMscyksc30sd2hlbjpmdW5jdGlvbihlKXt2YXIgbj1hcmd1bWVudHMubGVuZ3RoLHQ9bixyPUFycmF5KHQpLGk9cy5jYWxsKGFyZ3VtZW50cyksbz1TLkRlZmVycmVkKCksYT1mdW5jdGlvbih0KXtyZXR1cm4gZnVuY3Rpb24oZSl7clt0XT10aGlzLGlbdF09MTxhcmd1bWVudHMubGVuZ3RoP3MuY2FsbChhcmd1bWVudHMpOmUsLS1ufHxvLnJlc29sdmVXaXRoKHIsaSl9fTtpZihuPD0xJiYoSShlLG8uZG9uZShhKHQpKS5yZXNvbHZlLG8ucmVqZWN0LCFuKSwicGVuZGluZyI9PT1vLnN0YXRlKCl8fG0oaVt0XSYmaVt0XS50aGVuKSkpcmV0dXJuIG8udGhlbigpO3doaWxlKHQtLSlJKGlbdF0sYSh0KSxvLnJlamVjdCk7cmV0dXJuIG8ucHJvbWlzZSgpfX0pO3ZhciBXPS9eKEV2YWx8SW50ZXJuYWx8UmFuZ2V8UmVmZXJlbmNlfFN5bnRheHxUeXBlfFVSSSlFcnJvciQvO1MuRGVmZXJyZWQuZXhjZXB0aW9uSG9vaz1mdW5jdGlvbihlLHQpe0MuY29uc29sZSYmQy5jb25zb2xlLndhcm4mJmUmJlcudGVzdChlLm5hbWUpJiZDLmNvbnNvbGUud2FybigialF1ZXJ5LkRlZmVycmVkIGV4Y2VwdGlvbjogIitlLm1lc3NhZ2UsZS5zdGFjayx0KX0sUy5yZWFkeUV4Y2VwdGlvbj1mdW5jdGlvbihlKXtDLnNldFRpbWVvdXQoZnVuY3Rpb24oKXt0aHJvdyBlfSl9O3ZhciBGPVMuRGVmZXJyZWQoKTtmdW5jdGlvbiBCKCl7RS5yZW1vdmVFdmVudExpc3RlbmVyKCJET01Db250ZW50TG9hZGVkIixCKSxDLnJlbW92ZUV2ZW50TGlzdGVuZXIoImxvYWQiLEIpLFMucmVhZHkoKX1TLmZuLnJlYWR5PWZ1bmN0aW9uKGUpe3JldHVybiBGLnRoZW4oZSlbImNhdGNoIl0oZnVuY3Rpb24oZSl7Uy5yZWFkeUV4Y2VwdGlvbihlKX0pLHRoaXN9LFMuZXh0ZW5kKHtpc1JlYWR5OiExLHJlYWR5V2FpdDoxLHJlYWR5OmZ1bmN0aW9uKGUpeyghMD09PWU/LS1TLnJlYWR5V2FpdDpTLmlzUmVhZHkpfHwoUy5pc1JlYWR5PSEwKSE9PWUmJjA8LS1TLnJlYWR5V2FpdHx8Ri5yZXNvbHZlV2l0aChFLFtTXSl9fSksUy5yZWFkeS50aGVuPUYudGhlbiwiY29tcGxldGUiPT09RS5yZWFkeVN0YXRlfHwibG9hZGluZyIhPT1FLnJlYWR5U3RhdGUmJiFFLmRvY3VtZW50RWxlbWVudC5kb1Njcm9sbD9DLnNldFRpbWVvdXQoUy5yZWFkeSk6KEUuYWRkRXZlbnRMaXN0ZW5lcigiRE9NQ29udGVudExvYWRlZCIsQiksQy5hZGRFdmVudExpc3RlbmVyKCJsb2FkIixCKSk7dmFyICQ9ZnVuY3Rpb24oZSx0LG4scixpLG8sYSl7dmFyIHM9MCx1PWUubGVuZ3RoLGw9bnVsbD09bjtpZigib2JqZWN0Ij09PXcobikpZm9yKHMgaW4gaT0hMCxuKSQoZSx0LHMsbltzXSwhMCxvLGEpO2Vsc2UgaWYodm9pZCAwIT09ciYmKGk9ITAsbShyKXx8KGE9ITApLGwmJihhPyh0LmNhbGwoZSxyKSx0PW51bGwpOihsPXQsdD1mdW5jdGlvbihlLHQsbil7cmV0dXJuIGwuY2FsbChTKGUpLG4pfSkpLHQpKWZvcig7czx1O3MrKyl0KGVbc10sbixhP3I6ci5jYWxsKGVbc10scyx0KGVbc10sbikpKTtyZXR1cm4gaT9lOmw/dC5jYWxsKGUpOnU/dChlWzBdLG4pOm99LF89L14tbXMtLyx6PS8tKFthLXpdKS9nO2Z1bmN0aW9uIFUoZSx0KXtyZXR1cm4gdC50b1VwcGVyQ2FzZSgpfWZ1bmN0aW9uIFgoZSl7cmV0dXJuIGUucmVwbGFjZShfLCJtcy0iKS5yZXBsYWNlKHosVSl9dmFyIFY9ZnVuY3Rpb24oZSl7cmV0dXJuIDE9PT1lLm5vZGVUeXBlfHw5PT09ZS5ub2RlVHlwZXx8IStlLm5vZGVUeXBlfTtmdW5jdGlvbiBHKCl7dGhpcy5leHBhbmRvPVMuZXhwYW5kbytHLnVpZCsrfUcudWlkPTEsRy5wcm90b3R5cGU9e2NhY2hlOmZ1bmN0aW9uKGUpe3ZhciB0PWVbdGhpcy5leHBhbmRvXTtyZXR1cm4gdHx8KHQ9e30sVihlKSYmKGUubm9kZVR5cGU/ZVt0aGlzLmV4cGFuZG9dPXQ6T2JqZWN0LmRlZmluZVByb3BlcnR5KGUsdGhpcy5leHBhbmRvLHt2YWx1ZTp0LGNvbmZpZ3VyYWJsZTohMH0pKSksdH0sc2V0OmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpPXRoaXMuY2FjaGUoZSk7aWYoInN0cmluZyI9PXR5cGVvZiB0KWlbWCh0KV09bjtlbHNlIGZvcihyIGluIHQpaVtYKHIpXT10W3JdO3JldHVybiBpfSxnZXQ6ZnVuY3Rpb24oZSx0KXtyZXR1cm4gdm9pZCAwPT09dD90aGlzLmNhY2hlKGUpOmVbdGhpcy5leHBhbmRvXSYmZVt0aGlzLmV4cGFuZG9dW1godCldfSxhY2Nlc3M6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiB2b2lkIDA9PT10fHx0JiYic3RyaW5nIj09dHlwZW9mIHQmJnZvaWQgMD09PW4/dGhpcy5nZXQoZSx0KToodGhpcy5zZXQoZSx0LG4pLHZvaWQgMCE9PW4/bjp0KX0scmVtb3ZlOmZ1bmN0aW9uKGUsdCl7dmFyIG4scj1lW3RoaXMuZXhwYW5kb107aWYodm9pZCAwIT09cil7aWYodm9pZCAwIT09dCl7bj0odD1BcnJheS5pc0FycmF5KHQpP3QubWFwKFgpOih0PVgodCkpaW4gcj9bdF06dC5tYXRjaChQKXx8W10pLmxlbmd0aDt3aGlsZShuLS0pZGVsZXRlIHJbdFtuXV19KHZvaWQgMD09PXR8fFMuaXNFbXB0eU9iamVjdChyKSkmJihlLm5vZGVUeXBlP2VbdGhpcy5leHBhbmRvXT12b2lkIDA6ZGVsZXRlIGVbdGhpcy5leHBhbmRvXSl9fSxoYXNEYXRhOmZ1bmN0aW9uKGUpe3ZhciB0PWVbdGhpcy5leHBhbmRvXTtyZXR1cm4gdm9pZCAwIT09dCYmIVMuaXNFbXB0eU9iamVjdCh0KX19O3ZhciBZPW5ldyBHLFE9bmV3IEcsSj0vXig/Olx7W1x3XFddKlx9fFxbW1x3XFddKlxdKSQvLEs9L1tBLVpdL2c7ZnVuY3Rpb24gWihlLHQsbil7dmFyIHIsaTtpZih2b2lkIDA9PT1uJiYxPT09ZS5ub2RlVHlwZSlpZihyPSJkYXRhLSIrdC5yZXBsYWNlKEssIi0kJiIpLnRvTG93ZXJDYXNlKCksInN0cmluZyI9PXR5cGVvZihuPWUuZ2V0QXR0cmlidXRlKHIpKSl7dHJ5e249InRydWUiPT09KGk9bil8fCJmYWxzZSIhPT1pJiYoIm51bGwiPT09aT9udWxsOmk9PT0raSsiIj8raTpKLnRlc3QoaSk/SlNPTi5wYXJzZShpKTppKX1jYXRjaChlKXt9US5zZXQoZSx0LG4pfWVsc2Ugbj12b2lkIDA7cmV0dXJuIG59Uy5leHRlbmQoe2hhc0RhdGE6ZnVuY3Rpb24oZSl7cmV0dXJuIFEuaGFzRGF0YShlKXx8WS5oYXNEYXRhKGUpfSxkYXRhOmZ1bmN0aW9uKGUsdCxuKXtyZXR1cm4gUS5hY2Nlc3MoZSx0LG4pfSxyZW1vdmVEYXRhOmZ1bmN0aW9uKGUsdCl7US5yZW1vdmUoZSx0KX0sX2RhdGE6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiBZLmFjY2VzcyhlLHQsbil9LF9yZW1vdmVEYXRhOmZ1bmN0aW9uKGUsdCl7WS5yZW1vdmUoZSx0KX19KSxTLmZuLmV4dGVuZCh7ZGF0YTpmdW5jdGlvbihuLGUpe3ZhciB0LHIsaSxvPXRoaXNbMF0sYT1vJiZvLmF0dHJpYnV0ZXM7aWYodm9pZCAwPT09bil7aWYodGhpcy5sZW5ndGgmJihpPVEuZ2V0KG8pLDE9PT1vLm5vZGVUeXBlJiYhWS5nZXQobywiaGFzRGF0YUF0dHJzIikpKXt0PWEubGVuZ3RoO3doaWxlKHQtLSlhW3RdJiYwPT09KHI9YVt0XS5uYW1lKS5pbmRleE9mKCJkYXRhLSIpJiYocj1YKHIuc2xpY2UoNSkpLFoobyxyLGlbcl0pKTtZLnNldChvLCJoYXNEYXRhQXR0cnMiLCEwKX1yZXR1cm4gaX1yZXR1cm4ib2JqZWN0Ij09dHlwZW9mIG4/dGhpcy5lYWNoKGZ1bmN0aW9uKCl7US5zZXQodGhpcyxuKX0pOiQodGhpcyxmdW5jdGlvbihlKXt2YXIgdDtpZihvJiZ2b2lkIDA9PT1lKXJldHVybiB2b2lkIDAhPT0odD1RLmdldChvLG4pKT90OnZvaWQgMCE9PSh0PVoobyxuKSk/dDp2b2lkIDA7dGhpcy5lYWNoKGZ1bmN0aW9uKCl7US5zZXQodGhpcyxuLGUpfSl9LG51bGwsZSwxPGFyZ3VtZW50cy5sZW5ndGgsbnVsbCwhMCl9LHJlbW92ZURhdGE6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuZWFjaChmdW5jdGlvbigpe1EucmVtb3ZlKHRoaXMsZSl9KX19KSxTLmV4dGVuZCh7cXVldWU6ZnVuY3Rpb24oZSx0LG4pe3ZhciByO2lmKGUpcmV0dXJuIHQ9KHR8fCJmeCIpKyJxdWV1ZSIscj1ZLmdldChlLHQpLG4mJighcnx8QXJyYXkuaXNBcnJheShuKT9yPVkuYWNjZXNzKGUsdCxTLm1ha2VBcnJheShuKSk6ci5wdXNoKG4pKSxyfHxbXX0sZGVxdWV1ZTpmdW5jdGlvbihlLHQpe3Q9dHx8ImZ4Ijt2YXIgbj1TLnF1ZXVlKGUsdCkscj1uLmxlbmd0aCxpPW4uc2hpZnQoKSxvPVMuX3F1ZXVlSG9va3MoZSx0KTsiaW5wcm9ncmVzcyI9PT1pJiYoaT1uLnNoaWZ0KCksci0tKSxpJiYoImZ4Ij09PXQmJm4udW5zaGlmdCgiaW5wcm9ncmVzcyIpLGRlbGV0ZSBvLnN0b3AsaS5jYWxsKGUsZnVuY3Rpb24oKXtTLmRlcXVldWUoZSx0KX0sbykpLCFyJiZvJiZvLmVtcHR5LmZpcmUoKX0sX3F1ZXVlSG9va3M6ZnVuY3Rpb24oZSx0KXt2YXIgbj10KyJxdWV1ZUhvb2tzIjtyZXR1cm4gWS5nZXQoZSxuKXx8WS5hY2Nlc3MoZSxuLHtlbXB0eTpTLkNhbGxiYWNrcygib25jZSBtZW1vcnkiKS5hZGQoZnVuY3Rpb24oKXtZLnJlbW92ZShlLFt0KyJxdWV1ZSIsbl0pfSl9KX19KSxTLmZuLmV4dGVuZCh7cXVldWU6ZnVuY3Rpb24odCxuKXt2YXIgZT0yO3JldHVybiJzdHJpbmciIT10eXBlb2YgdCYmKG49dCx0PSJmeCIsZS0tKSxhcmd1bWVudHMubGVuZ3RoPGU/Uy5xdWV1ZSh0aGlzWzBdLHQpOnZvaWQgMD09PW4/dGhpczp0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgZT1TLnF1ZXVlKHRoaXMsdCxuKTtTLl9xdWV1ZUhvb2tzKHRoaXMsdCksImZ4Ij09PXQmJiJpbnByb2dyZXNzIiE9PWVbMF0mJlMuZGVxdWV1ZSh0aGlzLHQpfSl9LGRlcXVldWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuZWFjaChmdW5jdGlvbigpe1MuZGVxdWV1ZSh0aGlzLGUpfSl9LGNsZWFyUXVldWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMucXVldWUoZXx8ImZ4IixbXSl9LHByb21pc2U6ZnVuY3Rpb24oZSx0KXt2YXIgbixyPTEsaT1TLkRlZmVycmVkKCksbz10aGlzLGE9dGhpcy5sZW5ndGgscz1mdW5jdGlvbigpey0tcnx8aS5yZXNvbHZlV2l0aChvLFtvXSl9OyJzdHJpbmciIT10eXBlb2YgZSYmKHQ9ZSxlPXZvaWQgMCksZT1lfHwiZngiO3doaWxlKGEtLSkobj1ZLmdldChvW2FdLGUrInF1ZXVlSG9va3MiKSkmJm4uZW1wdHkmJihyKyssbi5lbXB0eS5hZGQocykpO3JldHVybiBzKCksaS5wcm9taXNlKHQpfX0pO3ZhciBlZT0vWystXT8oPzpcZCpcLnwpXGQrKD86W2VFXVsrLV0/XGQrfCkvLnNvdXJjZSx0ZT1uZXcgUmVnRXhwKCJeKD86KFsrLV0pPXwpKCIrZWUrIikoW2EteiVdKikkIiwiaSIpLG5lPVsiVG9wIiwiUmlnaHQiLCJCb3R0b20iLCJMZWZ0Il0scmU9RS5kb2N1bWVudEVsZW1lbnQsaWU9ZnVuY3Rpb24oZSl7cmV0dXJuIFMuY29udGFpbnMoZS5vd25lckRvY3VtZW50LGUpfSxvZT17Y29tcG9zZWQ6ITB9O3JlLmdldFJvb3ROb2RlJiYoaWU9ZnVuY3Rpb24oZSl7cmV0dXJuIFMuY29udGFpbnMoZS5vd25lckRvY3VtZW50LGUpfHxlLmdldFJvb3ROb2RlKG9lKT09PWUub3duZXJEb2N1bWVudH0pO3ZhciBhZT1mdW5jdGlvbihlLHQpe3JldHVybiJub25lIj09PShlPXR8fGUpLnN0eWxlLmRpc3BsYXl8fCIiPT09ZS5zdHlsZS5kaXNwbGF5JiZpZShlKSYmIm5vbmUiPT09Uy5jc3MoZSwiZGlzcGxheSIpfTtmdW5jdGlvbiBzZShlLHQsbixyKXt2YXIgaSxvLGE9MjAscz1yP2Z1bmN0aW9uKCl7cmV0dXJuIHIuY3VyKCl9OmZ1bmN0aW9uKCl7cmV0dXJuIFMuY3NzKGUsdCwiIil9LHU9cygpLGw9biYmblszXXx8KFMuY3NzTnVtYmVyW3RdPyIiOiJweCIpLGM9ZS5ub2RlVHlwZSYmKFMuY3NzTnVtYmVyW3RdfHwicHgiIT09bCYmK3UpJiZ0ZS5leGVjKFMuY3NzKGUsdCkpO2lmKGMmJmNbM10hPT1sKXt1Lz0yLGw9bHx8Y1szXSxjPSt1fHwxO3doaWxlKGEtLSlTLnN0eWxlKGUsdCxjK2wpLCgxLW8pKigxLShvPXMoKS91fHwuNSkpPD0wJiYoYT0wKSxjLz1vO2MqPTIsUy5zdHlsZShlLHQsYytsKSxuPW58fFtdfXJldHVybiBuJiYoYz0rY3x8K3V8fDAsaT1uWzFdP2MrKG5bMV0rMSkqblsyXTorblsyXSxyJiYoci51bml0PWwsci5zdGFydD1jLHIuZW5kPWkpKSxpfXZhciB1ZT17fTtmdW5jdGlvbiBsZShlLHQpe2Zvcih2YXIgbixyLGksbyxhLHMsdSxsPVtdLGM9MCxmPWUubGVuZ3RoO2M8ZjtjKyspKHI9ZVtjXSkuc3R5bGUmJihuPXIuc3R5bGUuZGlzcGxheSx0Pygibm9uZSI9PT1uJiYobFtjXT1ZLmdldChyLCJkaXNwbGF5Iil8fG51bGwsbFtjXXx8KHIuc3R5bGUuZGlzcGxheT0iIikpLCIiPT09ci5zdHlsZS5kaXNwbGF5JiZhZShyKSYmKGxbY109KHU9YT1vPXZvaWQgMCxhPShpPXIpLm93bmVyRG9jdW1lbnQscz1pLm5vZGVOYW1lLCh1PXVlW3NdKXx8KG89YS5ib2R5LmFwcGVuZENoaWxkKGEuY3JlYXRlRWxlbWVudChzKSksdT1TLmNzcyhvLCJkaXNwbGF5Iiksby5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKG8pLCJub25lIj09PXUmJih1PSJibG9jayIpLHVlW3NdPXUpKSkpOiJub25lIiE9PW4mJihsW2NdPSJub25lIixZLnNldChyLCJkaXNwbGF5IixuKSkpO2ZvcihjPTA7YzxmO2MrKyludWxsIT1sW2NdJiYoZVtjXS5zdHlsZS5kaXNwbGF5PWxbY10pO3JldHVybiBlfVMuZm4uZXh0ZW5kKHtzaG93OmZ1bmN0aW9uKCl7cmV0dXJuIGxlKHRoaXMsITApfSxoaWRlOmZ1bmN0aW9uKCl7cmV0dXJuIGxlKHRoaXMpfSx0b2dnbGU6ZnVuY3Rpb24oZSl7cmV0dXJuImJvb2xlYW4iPT10eXBlb2YgZT9lP3RoaXMuc2hvdygpOnRoaXMuaGlkZSgpOnRoaXMuZWFjaChmdW5jdGlvbigpe2FlKHRoaXMpP1ModGhpcykuc2hvdygpOlModGhpcykuaGlkZSgpfSl9fSk7dmFyIGNlLGZlLHBlPS9eKD86Y2hlY2tib3h8cmFkaW8pJC9pLGRlPS88KFthLXpdW15cL1wwPlx4MjBcdFxyXG5cZl0qKS9pLGhlPS9eJHxebW9kdWxlJHxcLyg/OmphdmF8ZWNtYSlzY3JpcHQvaTtjZT1FLmNyZWF0ZURvY3VtZW50RnJhZ21lbnQoKS5hcHBlbmRDaGlsZChFLmNyZWF0ZUVsZW1lbnQoImRpdiIpKSwoZmU9RS5jcmVhdGVFbGVtZW50KCJpbnB1dCIpKS5zZXRBdHRyaWJ1dGUoInR5cGUiLCJyYWRpbyIpLGZlLnNldEF0dHJpYnV0ZSgiY2hlY2tlZCIsImNoZWNrZWQiKSxmZS5zZXRBdHRyaWJ1dGUoIm5hbWUiLCJ0IiksY2UuYXBwZW5kQ2hpbGQoZmUpLHkuY2hlY2tDbG9uZT1jZS5jbG9uZU5vZGUoITApLmNsb25lTm9kZSghMCkubGFzdENoaWxkLmNoZWNrZWQsY2UuaW5uZXJIVE1MPSI8dGV4dGFyZWE+eDwvdGV4dGFyZWE+Iix5Lm5vQ2xvbmVDaGVja2VkPSEhY2UuY2xvbmVOb2RlKCEwKS5sYXN0Q2hpbGQuZGVmYXVsdFZhbHVlLGNlLmlubmVySFRNTD0iPG9wdGlvbj48L29wdGlvbj4iLHkub3B0aW9uPSEhY2UubGFzdENoaWxkO3ZhciBnZT17dGhlYWQ6WzEsIjx0YWJsZT4iLCI8L3RhYmxlPiJdLGNvbDpbMiwiPHRhYmxlPjxjb2xncm91cD4iLCI8L2NvbGdyb3VwPjwvdGFibGU+Il0sdHI6WzIsIjx0YWJsZT48dGJvZHk+IiwiPC90Ym9keT48L3RhYmxlPiJdLHRkOlszLCI8dGFibGU+PHRib2R5Pjx0cj4iLCI8L3RyPjwvdGJvZHk+PC90YWJsZT4iXSxfZGVmYXVsdDpbMCwiIiwiIl19O2Z1bmN0aW9uIHZlKGUsdCl7dmFyIG47cmV0dXJuIG49InVuZGVmaW5lZCIhPXR5cGVvZiBlLmdldEVsZW1lbnRzQnlUYWdOYW1lP2UuZ2V0RWxlbWVudHNCeVRhZ05hbWUodHx8IioiKToidW5kZWZpbmVkIiE9dHlwZW9mIGUucXVlcnlTZWxlY3RvckFsbD9lLnF1ZXJ5U2VsZWN0b3JBbGwodHx8IioiKTpbXSx2b2lkIDA9PT10fHx0JiZBKGUsdCk/Uy5tZXJnZShbZV0sbik6bn1mdW5jdGlvbiB5ZShlLHQpe2Zvcih2YXIgbj0wLHI9ZS5sZW5ndGg7bjxyO24rKylZLnNldChlW25dLCJnbG9iYWxFdmFsIiwhdHx8WS5nZXQodFtuXSwiZ2xvYmFsRXZhbCIpKX1nZS50Ym9keT1nZS50Zm9vdD1nZS5jb2xncm91cD1nZS5jYXB0aW9uPWdlLnRoZWFkLGdlLnRoPWdlLnRkLHkub3B0aW9ufHwoZ2Uub3B0Z3JvdXA9Z2Uub3B0aW9uPVsxLCI8c2VsZWN0IG11bHRpcGxlPSdtdWx0aXBsZSc+IiwiPC9zZWxlY3Q+Il0pO3ZhciBtZT0vPHwmIz9cdys7LztmdW5jdGlvbiB4ZShlLHQsbixyLGkpe2Zvcih2YXIgbyxhLHMsdSxsLGMsZj10LmNyZWF0ZURvY3VtZW50RnJhZ21lbnQoKSxwPVtdLGQ9MCxoPWUubGVuZ3RoO2Q8aDtkKyspaWYoKG89ZVtkXSl8fDA9PT1vKWlmKCJvYmplY3QiPT09dyhvKSlTLm1lcmdlKHAsby5ub2RlVHlwZT9bb106byk7ZWxzZSBpZihtZS50ZXN0KG8pKXthPWF8fGYuYXBwZW5kQ2hpbGQodC5jcmVhdGVFbGVtZW50KCJkaXYiKSkscz0oZGUuZXhlYyhvKXx8WyIiLCIiXSlbMV0udG9Mb3dlckNhc2UoKSx1PWdlW3NdfHxnZS5fZGVmYXVsdCxhLmlubmVySFRNTD11WzFdK1MuaHRtbFByZWZpbHRlcihvKSt1WzJdLGM9dVswXTt3aGlsZShjLS0pYT1hLmxhc3RDaGlsZDtTLm1lcmdlKHAsYS5jaGlsZE5vZGVzKSwoYT1mLmZpcnN0Q2hpbGQpLnRleHRDb250ZW50PSIifWVsc2UgcC5wdXNoKHQuY3JlYXRlVGV4dE5vZGUobykpO2YudGV4dENvbnRlbnQ9IiIsZD0wO3doaWxlKG89cFtkKytdKWlmKHImJi0xPFMuaW5BcnJheShvLHIpKWkmJmkucHVzaChvKTtlbHNlIGlmKGw9aWUobyksYT12ZShmLmFwcGVuZENoaWxkKG8pLCJzY3JpcHQiKSxsJiZ5ZShhKSxuKXtjPTA7d2hpbGUobz1hW2MrK10paGUudGVzdChvLnR5cGV8fCIiKSYmbi5wdXNoKG8pfXJldHVybiBmfXZhciBiZT0vXmtleS8sd2U9L14oPzptb3VzZXxwb2ludGVyfGNvbnRleHRtZW51fGRyYWd8ZHJvcCl8Y2xpY2svLFRlPS9eKFteLl0qKSg/OlwuKC4rKXwpLztmdW5jdGlvbiBDZSgpe3JldHVybiEwfWZ1bmN0aW9uIEVlKCl7cmV0dXJuITF9ZnVuY3Rpb24gU2UoZSx0KXtyZXR1cm4gZT09PWZ1bmN0aW9uKCl7dHJ5e3JldHVybiBFLmFjdGl2ZUVsZW1lbnR9Y2F0Y2goZSl7fX0oKT09KCJmb2N1cyI9PT10KX1mdW5jdGlvbiBrZShlLHQsbixyLGksbyl7dmFyIGEscztpZigib2JqZWN0Ij09dHlwZW9mIHQpe2ZvcihzIGluInN0cmluZyIhPXR5cGVvZiBuJiYocj1yfHxuLG49dm9pZCAwKSx0KWtlKGUscyxuLHIsdFtzXSxvKTtyZXR1cm4gZX1pZihudWxsPT1yJiZudWxsPT1pPyhpPW4scj1uPXZvaWQgMCk6bnVsbD09aSYmKCJzdHJpbmciPT10eXBlb2Ygbj8oaT1yLHI9dm9pZCAwKTooaT1yLHI9bixuPXZvaWQgMCkpLCExPT09aSlpPUVlO2Vsc2UgaWYoIWkpcmV0dXJuIGU7cmV0dXJuIDE9PT1vJiYoYT1pLChpPWZ1bmN0aW9uKGUpe3JldHVybiBTKCkub2ZmKGUpLGEuYXBwbHkodGhpcyxhcmd1bWVudHMpfSkuZ3VpZD1hLmd1aWR8fChhLmd1aWQ9Uy5ndWlkKyspKSxlLmVhY2goZnVuY3Rpb24oKXtTLmV2ZW50LmFkZCh0aGlzLHQsaSxyLG4pfSl9ZnVuY3Rpb24gQWUoZSxpLG8pe28/KFkuc2V0KGUsaSwhMSksUy5ldmVudC5hZGQoZSxpLHtuYW1lc3BhY2U6ITEsaGFuZGxlcjpmdW5jdGlvbihlKXt2YXIgdCxuLHI9WS5nZXQodGhpcyxpKTtpZigxJmUuaXNUcmlnZ2VyJiZ0aGlzW2ldKXtpZihyLmxlbmd0aCkoUy5ldmVudC5zcGVjaWFsW2ldfHx7fSkuZGVsZWdhdGVUeXBlJiZlLnN0b3BQcm9wYWdhdGlvbigpO2Vsc2UgaWYocj1zLmNhbGwoYXJndW1lbnRzKSxZLnNldCh0aGlzLGksciksdD1vKHRoaXMsaSksdGhpc1tpXSgpLHIhPT0obj1ZLmdldCh0aGlzLGkpKXx8dD9ZLnNldCh0aGlzLGksITEpOm49e30sciE9PW4pcmV0dXJuIGUuc3RvcEltbWVkaWF0ZVByb3BhZ2F0aW9uKCksZS5wcmV2ZW50RGVmYXVsdCgpLG4udmFsdWV9ZWxzZSByLmxlbmd0aCYmKFkuc2V0KHRoaXMsaSx7dmFsdWU6Uy5ldmVudC50cmlnZ2VyKFMuZXh0ZW5kKHJbMF0sUy5FdmVudC5wcm90b3R5cGUpLHIuc2xpY2UoMSksdGhpcyl9KSxlLnN0b3BJbW1lZGlhdGVQcm9wYWdhdGlvbigpKX19KSk6dm9pZCAwPT09WS5nZXQoZSxpKSYmUy5ldmVudC5hZGQoZSxpLENlKX1TLmV2ZW50PXtnbG9iYWw6e30sYWRkOmZ1bmN0aW9uKHQsZSxuLHIsaSl7dmFyIG8sYSxzLHUsbCxjLGYscCxkLGgsZyx2PVkuZ2V0KHQpO2lmKFYodCkpe24uaGFuZGxlciYmKG49KG89bikuaGFuZGxlcixpPW8uc2VsZWN0b3IpLGkmJlMuZmluZC5tYXRjaGVzU2VsZWN0b3IocmUsaSksbi5ndWlkfHwobi5ndWlkPVMuZ3VpZCsrKSwodT12LmV2ZW50cyl8fCh1PXYuZXZlbnRzPU9iamVjdC5jcmVhdGUobnVsbCkpLChhPXYuaGFuZGxlKXx8KGE9di5oYW5kbGU9ZnVuY3Rpb24oZSl7cmV0dXJuInVuZGVmaW5lZCIhPXR5cGVvZiBTJiZTLmV2ZW50LnRyaWdnZXJlZCE9PWUudHlwZT9TLmV2ZW50LmRpc3BhdGNoLmFwcGx5KHQsYXJndW1lbnRzKTp2b2lkIDB9KSxsPShlPShlfHwiIikubWF0Y2goUCl8fFsiIl0pLmxlbmd0aDt3aGlsZShsLS0pZD1nPShzPVRlLmV4ZWMoZVtsXSl8fFtdKVsxXSxoPShzWzJdfHwiIikuc3BsaXQoIi4iKS5zb3J0KCksZCYmKGY9Uy5ldmVudC5zcGVjaWFsW2RdfHx7fSxkPShpP2YuZGVsZWdhdGVUeXBlOmYuYmluZFR5cGUpfHxkLGY9Uy5ldmVudC5zcGVjaWFsW2RdfHx7fSxjPVMuZXh0ZW5kKHt0eXBlOmQsb3JpZ1R5cGU6ZyxkYXRhOnIsaGFuZGxlcjpuLGd1aWQ6bi5ndWlkLHNlbGVjdG9yOmksbmVlZHNDb250ZXh0OmkmJlMuZXhwci5tYXRjaC5uZWVkc0NvbnRleHQudGVzdChpKSxuYW1lc3BhY2U6aC5qb2luKCIuIil9LG8pLChwPXVbZF0pfHwoKHA9dVtkXT1bXSkuZGVsZWdhdGVDb3VudD0wLGYuc2V0dXAmJiExIT09Zi5zZXR1cC5jYWxsKHQscixoLGEpfHx0LmFkZEV2ZW50TGlzdGVuZXImJnQuYWRkRXZlbnRMaXN0ZW5lcihkLGEpKSxmLmFkZCYmKGYuYWRkLmNhbGwodCxjKSxjLmhhbmRsZXIuZ3VpZHx8KGMuaGFuZGxlci5ndWlkPW4uZ3VpZCkpLGk/cC5zcGxpY2UocC5kZWxlZ2F0ZUNvdW50KyssMCxjKTpwLnB1c2goYyksUy5ldmVudC5nbG9iYWxbZF09ITApfX0scmVtb3ZlOmZ1bmN0aW9uKGUsdCxuLHIsaSl7dmFyIG8sYSxzLHUsbCxjLGYscCxkLGgsZyx2PVkuaGFzRGF0YShlKSYmWS5nZXQoZSk7aWYodiYmKHU9di5ldmVudHMpKXtsPSh0PSh0fHwiIikubWF0Y2goUCl8fFsiIl0pLmxlbmd0aDt3aGlsZShsLS0paWYoZD1nPShzPVRlLmV4ZWModFtsXSl8fFtdKVsxXSxoPShzWzJdfHwiIikuc3BsaXQoIi4iKS5zb3J0KCksZCl7Zj1TLmV2ZW50LnNwZWNpYWxbZF18fHt9LHA9dVtkPShyP2YuZGVsZWdhdGVUeXBlOmYuYmluZFR5cGUpfHxkXXx8W10scz1zWzJdJiZuZXcgUmVnRXhwKCIoXnxcXC4pIitoLmpvaW4oIlxcLig/Oi4qXFwufCkiKSsiKFxcLnwkKSIpLGE9bz1wLmxlbmd0aDt3aGlsZShvLS0pYz1wW29dLCFpJiZnIT09Yy5vcmlnVHlwZXx8biYmbi5ndWlkIT09Yy5ndWlkfHxzJiYhcy50ZXN0KGMubmFtZXNwYWNlKXx8ciYmciE9PWMuc2VsZWN0b3ImJigiKioiIT09cnx8IWMuc2VsZWN0b3IpfHwocC5zcGxpY2UobywxKSxjLnNlbGVjdG9yJiZwLmRlbGVnYXRlQ291bnQtLSxmLnJlbW92ZSYmZi5yZW1vdmUuY2FsbChlLGMpKTthJiYhcC5sZW5ndGgmJihmLnRlYXJkb3duJiYhMSE9PWYudGVhcmRvd24uY2FsbChlLGgsdi5oYW5kbGUpfHxTLnJlbW92ZUV2ZW50KGUsZCx2LmhhbmRsZSksZGVsZXRlIHVbZF0pfWVsc2UgZm9yKGQgaW4gdSlTLmV2ZW50LnJlbW92ZShlLGQrdFtsXSxuLHIsITApO1MuaXNFbXB0eU9iamVjdCh1KSYmWS5yZW1vdmUoZSwiaGFuZGxlIGV2ZW50cyIpfX0sZGlzcGF0Y2g6ZnVuY3Rpb24oZSl7dmFyIHQsbixyLGksbyxhLHM9bmV3IEFycmF5KGFyZ3VtZW50cy5sZW5ndGgpLHU9Uy5ldmVudC5maXgoZSksbD0oWS5nZXQodGhpcywiZXZlbnRzIil8fE9iamVjdC5jcmVhdGUobnVsbCkpW3UudHlwZV18fFtdLGM9Uy5ldmVudC5zcGVjaWFsW3UudHlwZV18fHt9O2ZvcihzWzBdPXUsdD0xO3Q8YXJndW1lbnRzLmxlbmd0aDt0Kyspc1t0XT1hcmd1bWVudHNbdF07aWYodS5kZWxlZ2F0ZVRhcmdldD10aGlzLCFjLnByZURpc3BhdGNofHwhMSE9PWMucHJlRGlzcGF0Y2guY2FsbCh0aGlzLHUpKXthPVMuZXZlbnQuaGFuZGxlcnMuY2FsbCh0aGlzLHUsbCksdD0wO3doaWxlKChpPWFbdCsrXSkmJiF1LmlzUHJvcGFnYXRpb25TdG9wcGVkKCkpe3UuY3VycmVudFRhcmdldD1pLmVsZW0sbj0wO3doaWxlKChvPWkuaGFuZGxlcnNbbisrXSkmJiF1LmlzSW1tZWRpYXRlUHJvcGFnYXRpb25TdG9wcGVkKCkpdS5ybmFtZXNwYWNlJiYhMSE9PW8ubmFtZXNwYWNlJiYhdS5ybmFtZXNwYWNlLnRlc3Qoby5uYW1lc3BhY2UpfHwodS5oYW5kbGVPYmo9byx1LmRhdGE9by5kYXRhLHZvaWQgMCE9PShyPSgoUy5ldmVudC5zcGVjaWFsW28ub3JpZ1R5cGVdfHx7fSkuaGFuZGxlfHxvLmhhbmRsZXIpLmFwcGx5KGkuZWxlbSxzKSkmJiExPT09KHUucmVzdWx0PXIpJiYodS5wcmV2ZW50RGVmYXVsdCgpLHUuc3RvcFByb3BhZ2F0aW9uKCkpKX1yZXR1cm4gYy5wb3N0RGlzcGF0Y2gmJmMucG9zdERpc3BhdGNoLmNhbGwodGhpcyx1KSx1LnJlc3VsdH19LGhhbmRsZXJzOmZ1bmN0aW9uKGUsdCl7dmFyIG4scixpLG8sYSxzPVtdLHU9dC5kZWxlZ2F0ZUNvdW50LGw9ZS50YXJnZXQ7aWYodSYmbC5ub2RlVHlwZSYmISgiY2xpY2siPT09ZS50eXBlJiYxPD1lLmJ1dHRvbikpZm9yKDtsIT09dGhpcztsPWwucGFyZW50Tm9kZXx8dGhpcylpZigxPT09bC5ub2RlVHlwZSYmKCJjbGljayIhPT1lLnR5cGV8fCEwIT09bC5kaXNhYmxlZCkpe2ZvcihvPVtdLGE9e30sbj0wO248dTtuKyspdm9pZCAwPT09YVtpPShyPXRbbl0pLnNlbGVjdG9yKyIgIl0mJihhW2ldPXIubmVlZHNDb250ZXh0Py0xPFMoaSx0aGlzKS5pbmRleChsKTpTLmZpbmQoaSx0aGlzLG51bGwsW2xdKS5sZW5ndGgpLGFbaV0mJm8ucHVzaChyKTtvLmxlbmd0aCYmcy5wdXNoKHtlbGVtOmwsaGFuZGxlcnM6b30pfXJldHVybiBsPXRoaXMsdTx0Lmxlbmd0aCYmcy5wdXNoKHtlbGVtOmwsaGFuZGxlcnM6dC5zbGljZSh1KX0pLHN9LGFkZFByb3A6ZnVuY3Rpb24odCxlKXtPYmplY3QuZGVmaW5lUHJvcGVydHkoUy5FdmVudC5wcm90b3R5cGUsdCx7ZW51bWVyYWJsZTohMCxjb25maWd1cmFibGU6ITAsZ2V0Om0oZSk/ZnVuY3Rpb24oKXtpZih0aGlzLm9yaWdpbmFsRXZlbnQpcmV0dXJuIGUodGhpcy5vcmlnaW5hbEV2ZW50KX06ZnVuY3Rpb24oKXtpZih0aGlzLm9yaWdpbmFsRXZlbnQpcmV0dXJuIHRoaXMub3JpZ2luYWxFdmVudFt0XX0sc2V0OmZ1bmN0aW9uKGUpe09iamVjdC5kZWZpbmVQcm9wZXJ0eSh0aGlzLHQse2VudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwLHdyaXRhYmxlOiEwLHZhbHVlOmV9KX19KX0sZml4OmZ1bmN0aW9uKGUpe3JldHVybiBlW1MuZXhwYW5kb10/ZTpuZXcgUy5FdmVudChlKX0sc3BlY2lhbDp7bG9hZDp7bm9CdWJibGU6ITB9LGNsaWNrOntzZXR1cDpmdW5jdGlvbihlKXt2YXIgdD10aGlzfHxlO3JldHVybiBwZS50ZXN0KHQudHlwZSkmJnQuY2xpY2smJkEodCwiaW5wdXQiKSYmQWUodCwiY2xpY2siLENlKSwhMX0sdHJpZ2dlcjpmdW5jdGlvbihlKXt2YXIgdD10aGlzfHxlO3JldHVybiBwZS50ZXN0KHQudHlwZSkmJnQuY2xpY2smJkEodCwiaW5wdXQiKSYmQWUodCwiY2xpY2siKSwhMH0sX2RlZmF1bHQ6ZnVuY3Rpb24oZSl7dmFyIHQ9ZS50YXJnZXQ7cmV0dXJuIHBlLnRlc3QodC50eXBlKSYmdC5jbGljayYmQSh0LCJpbnB1dCIpJiZZLmdldCh0LCJjbGljayIpfHxBKHQsImEiKX19LGJlZm9yZXVubG9hZDp7cG9zdERpc3BhdGNoOmZ1bmN0aW9uKGUpe3ZvaWQgMCE9PWUucmVzdWx0JiZlLm9yaWdpbmFsRXZlbnQmJihlLm9yaWdpbmFsRXZlbnQucmV0dXJuVmFsdWU9ZS5yZXN1bHQpfX19fSxTLnJlbW92ZUV2ZW50PWZ1bmN0aW9uKGUsdCxuKXtlLnJlbW92ZUV2ZW50TGlzdGVuZXImJmUucmVtb3ZlRXZlbnRMaXN0ZW5lcih0LG4pfSxTLkV2ZW50PWZ1bmN0aW9uKGUsdCl7aWYoISh0aGlzIGluc3RhbmNlb2YgUy5FdmVudCkpcmV0dXJuIG5ldyBTLkV2ZW50KGUsdCk7ZSYmZS50eXBlPyh0aGlzLm9yaWdpbmFsRXZlbnQ9ZSx0aGlzLnR5cGU9ZS50eXBlLHRoaXMuaXNEZWZhdWx0UHJldmVudGVkPWUuZGVmYXVsdFByZXZlbnRlZHx8dm9pZCAwPT09ZS5kZWZhdWx0UHJldmVudGVkJiYhMT09PWUucmV0dXJuVmFsdWU/Q2U6RWUsdGhpcy50YXJnZXQ9ZS50YXJnZXQmJjM9PT1lLnRhcmdldC5ub2RlVHlwZT9lLnRhcmdldC5wYXJlbnROb2RlOmUudGFyZ2V0LHRoaXMuY3VycmVudFRhcmdldD1lLmN1cnJlbnRUYXJnZXQsdGhpcy5yZWxhdGVkVGFyZ2V0PWUucmVsYXRlZFRhcmdldCk6dGhpcy50eXBlPWUsdCYmUy5leHRlbmQodGhpcyx0KSx0aGlzLnRpbWVTdGFtcD1lJiZlLnRpbWVTdGFtcHx8RGF0ZS5ub3coKSx0aGlzW1MuZXhwYW5kb109ITB9LFMuRXZlbnQucHJvdG90eXBlPXtjb25zdHJ1Y3RvcjpTLkV2ZW50LGlzRGVmYXVsdFByZXZlbnRlZDpFZSxpc1Byb3BhZ2F0aW9uU3RvcHBlZDpFZSxpc0ltbWVkaWF0ZVByb3BhZ2F0aW9uU3RvcHBlZDpFZSxpc1NpbXVsYXRlZDohMSxwcmV2ZW50RGVmYXVsdDpmdW5jdGlvbigpe3ZhciBlPXRoaXMub3JpZ2luYWxFdmVudDt0aGlzLmlzRGVmYXVsdFByZXZlbnRlZD1DZSxlJiYhdGhpcy5pc1NpbXVsYXRlZCYmZS5wcmV2ZW50RGVmYXVsdCgpfSxzdG9wUHJvcGFnYXRpb246ZnVuY3Rpb24oKXt2YXIgZT10aGlzLm9yaWdpbmFsRXZlbnQ7dGhpcy5pc1Byb3BhZ2F0aW9uU3RvcHBlZD1DZSxlJiYhdGhpcy5pc1NpbXVsYXRlZCYmZS5zdG9wUHJvcGFnYXRpb24oKX0sc3RvcEltbWVkaWF0ZVByb3BhZ2F0aW9uOmZ1bmN0aW9uKCl7dmFyIGU9dGhpcy5vcmlnaW5hbEV2ZW50O3RoaXMuaXNJbW1lZGlhdGVQcm9wYWdhdGlvblN0b3BwZWQ9Q2UsZSYmIXRoaXMuaXNTaW11bGF0ZWQmJmUuc3RvcEltbWVkaWF0ZVByb3BhZ2F0aW9uKCksdGhpcy5zdG9wUHJvcGFnYXRpb24oKX19LFMuZWFjaCh7YWx0S2V5OiEwLGJ1YmJsZXM6ITAsY2FuY2VsYWJsZTohMCxjaGFuZ2VkVG91Y2hlczohMCxjdHJsS2V5OiEwLGRldGFpbDohMCxldmVudFBoYXNlOiEwLG1ldGFLZXk6ITAscGFnZVg6ITAscGFnZVk6ITAsc2hpZnRLZXk6ITAsdmlldzohMCwiY2hhciI6ITAsY29kZTohMCxjaGFyQ29kZTohMCxrZXk6ITAsa2V5Q29kZTohMCxidXR0b246ITAsYnV0dG9uczohMCxjbGllbnRYOiEwLGNsaWVudFk6ITAsb2Zmc2V0WDohMCxvZmZzZXRZOiEwLHBvaW50ZXJJZDohMCxwb2ludGVyVHlwZTohMCxzY3JlZW5YOiEwLHNjcmVlblk6ITAsdGFyZ2V0VG91Y2hlczohMCx0b0VsZW1lbnQ6ITAsdG91Y2hlczohMCx3aGljaDpmdW5jdGlvbihlKXt2YXIgdD1lLmJ1dHRvbjtyZXR1cm4gbnVsbD09ZS53aGljaCYmYmUudGVzdChlLnR5cGUpP251bGwhPWUuY2hhckNvZGU/ZS5jaGFyQ29kZTplLmtleUNvZGU6IWUud2hpY2gmJnZvaWQgMCE9PXQmJndlLnRlc3QoZS50eXBlKT8xJnQ/MToyJnQ/Mzo0JnQ/MjowOmUud2hpY2h9fSxTLmV2ZW50LmFkZFByb3ApLFMuZWFjaCh7Zm9jdXM6ImZvY3VzaW4iLGJsdXI6ImZvY3Vzb3V0In0sZnVuY3Rpb24oZSx0KXtTLmV2ZW50LnNwZWNpYWxbZV09e3NldHVwOmZ1bmN0aW9uKCl7cmV0dXJuIEFlKHRoaXMsZSxTZSksITF9LHRyaWdnZXI6ZnVuY3Rpb24oKXtyZXR1cm4gQWUodGhpcyxlKSwhMH0sZGVsZWdhdGVUeXBlOnR9fSksUy5lYWNoKHttb3VzZWVudGVyOiJtb3VzZW92ZXIiLG1vdXNlbGVhdmU6Im1vdXNlb3V0Iixwb2ludGVyZW50ZXI6InBvaW50ZXJvdmVyIixwb2ludGVybGVhdmU6InBvaW50ZXJvdXQifSxmdW5jdGlvbihlLGkpe1MuZXZlbnQuc3BlY2lhbFtlXT17ZGVsZWdhdGVUeXBlOmksYmluZFR5cGU6aSxoYW5kbGU6ZnVuY3Rpb24oZSl7dmFyIHQsbj1lLnJlbGF0ZWRUYXJnZXQscj1lLmhhbmRsZU9iajtyZXR1cm4gbiYmKG49PT10aGlzfHxTLmNvbnRhaW5zKHRoaXMsbikpfHwoZS50eXBlPXIub3JpZ1R5cGUsdD1yLmhhbmRsZXIuYXBwbHkodGhpcyxhcmd1bWVudHMpLGUudHlwZT1pKSx0fX19KSxTLmZuLmV4dGVuZCh7b246ZnVuY3Rpb24oZSx0LG4scil7cmV0dXJuIGtlKHRoaXMsZSx0LG4scil9LG9uZTpmdW5jdGlvbihlLHQsbixyKXtyZXR1cm4ga2UodGhpcyxlLHQsbixyLDEpfSxvZmY6ZnVuY3Rpb24oZSx0LG4pe3ZhciByLGk7aWYoZSYmZS5wcmV2ZW50RGVmYXVsdCYmZS5oYW5kbGVPYmopcmV0dXJuIHI9ZS5oYW5kbGVPYmosUyhlLmRlbGVnYXRlVGFyZ2V0KS5vZmYoci5uYW1lc3BhY2U/ci5vcmlnVHlwZSsiLiIrci5uYW1lc3BhY2U6ci5vcmlnVHlwZSxyLnNlbGVjdG9yLHIuaGFuZGxlciksdGhpcztpZigib2JqZWN0Ij09dHlwZW9mIGUpe2ZvcihpIGluIGUpdGhpcy5vZmYoaSx0LGVbaV0pO3JldHVybiB0aGlzfXJldHVybiExIT09dCYmImZ1bmN0aW9uIiE9dHlwZW9mIHR8fChuPXQsdD12b2lkIDApLCExPT09biYmKG49RWUpLHRoaXMuZWFjaChmdW5jdGlvbigpe1MuZXZlbnQucmVtb3ZlKHRoaXMsZSxuLHQpfSl9fSk7dmFyIE5lPS88c2NyaXB0fDxzdHlsZXw8bGluay9pLERlPS9jaGVja2VkXHMqKD86W149XXw9XHMqLmNoZWNrZWQuKS9pLGplPS9eXHMqPCEoPzpcW0NEQVRBXFt8LS0pfCg/OlxdXF18LS0pPlxzKiQvZztmdW5jdGlvbiBxZShlLHQpe3JldHVybiBBKGUsInRhYmxlIikmJkEoMTEhPT10Lm5vZGVUeXBlP3Q6dC5maXJzdENoaWxkLCJ0ciIpJiZTKGUpLmNoaWxkcmVuKCJ0Ym9keSIpWzBdfHxlfWZ1bmN0aW9uIExlKGUpe3JldHVybiBlLnR5cGU9KG51bGwhPT1lLmdldEF0dHJpYnV0ZSgidHlwZSIpKSsiLyIrZS50eXBlLGV9ZnVuY3Rpb24gSGUoZSl7cmV0dXJuInRydWUvIj09PShlLnR5cGV8fCIiKS5zbGljZSgwLDUpP2UudHlwZT1lLnR5cGUuc2xpY2UoNSk6ZS5yZW1vdmVBdHRyaWJ1dGUoInR5cGUiKSxlfWZ1bmN0aW9uIE9lKGUsdCl7dmFyIG4scixpLG8sYSxzO2lmKDE9PT10Lm5vZGVUeXBlKXtpZihZLmhhc0RhdGEoZSkmJihzPVkuZ2V0KGUpLmV2ZW50cykpZm9yKGkgaW4gWS5yZW1vdmUodCwiaGFuZGxlIGV2ZW50cyIpLHMpZm9yKG49MCxyPXNbaV0ubGVuZ3RoO248cjtuKyspUy5ldmVudC5hZGQodCxpLHNbaV1bbl0pO1EuaGFzRGF0YShlKSYmKG89US5hY2Nlc3MoZSksYT1TLmV4dGVuZCh7fSxvKSxRLnNldCh0LGEpKX19ZnVuY3Rpb24gUGUobixyLGksbyl7cj1nKHIpO3ZhciBlLHQsYSxzLHUsbCxjPTAsZj1uLmxlbmd0aCxwPWYtMSxkPXJbMF0saD1tKGQpO2lmKGh8fDE8ZiYmInN0cmluZyI9PXR5cGVvZiBkJiYheS5jaGVja0Nsb25lJiZEZS50ZXN0KGQpKXJldHVybiBuLmVhY2goZnVuY3Rpb24oZSl7dmFyIHQ9bi5lcShlKTtoJiYoclswXT1kLmNhbGwodGhpcyxlLHQuaHRtbCgpKSksUGUodCxyLGksbyl9KTtpZihmJiYodD0oZT14ZShyLG5bMF0ub3duZXJEb2N1bWVudCwhMSxuLG8pKS5maXJzdENoaWxkLDE9PT1lLmNoaWxkTm9kZXMubGVuZ3RoJiYoZT10KSx0fHxvKSl7Zm9yKHM9KGE9Uy5tYXAodmUoZSwic2NyaXB0IiksTGUpKS5sZW5ndGg7YzxmO2MrKyl1PWUsYyE9PXAmJih1PVMuY2xvbmUodSwhMCwhMCkscyYmUy5tZXJnZShhLHZlKHUsInNjcmlwdCIpKSksaS5jYWxsKG5bY10sdSxjKTtpZihzKWZvcihsPWFbYS5sZW5ndGgtMV0ub3duZXJEb2N1bWVudCxTLm1hcChhLEhlKSxjPTA7YzxzO2MrKyl1PWFbY10saGUudGVzdCh1LnR5cGV8fCIiKSYmIVkuYWNjZXNzKHUsImdsb2JhbEV2YWwiKSYmUy5jb250YWlucyhsLHUpJiYodS5zcmMmJiJtb2R1bGUiIT09KHUudHlwZXx8IiIpLnRvTG93ZXJDYXNlKCk/Uy5fZXZhbFVybCYmIXUubm9Nb2R1bGUmJlMuX2V2YWxVcmwodS5zcmMse25vbmNlOnUubm9uY2V8fHUuZ2V0QXR0cmlidXRlKCJub25jZSIpfSxsKTpiKHUudGV4dENvbnRlbnQucmVwbGFjZShqZSwiIiksdSxsKSl9cmV0dXJuIG59ZnVuY3Rpb24gUmUoZSx0LG4pe2Zvcih2YXIgcixpPXQ/Uy5maWx0ZXIodCxlKTplLG89MDtudWxsIT0ocj1pW29dKTtvKyspbnx8MSE9PXIubm9kZVR5cGV8fFMuY2xlYW5EYXRhKHZlKHIpKSxyLnBhcmVudE5vZGUmJihuJiZpZShyKSYmeWUodmUociwic2NyaXB0IikpLHIucGFyZW50Tm9kZS5yZW1vdmVDaGlsZChyKSk7cmV0dXJuIGV9Uy5leHRlbmQoe2h0bWxQcmVmaWx0ZXI6ZnVuY3Rpb24oZSl7cmV0dXJuIGV9LGNsb25lOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG8sYSxzLHUsbCxjPWUuY2xvbmVOb2RlKCEwKSxmPWllKGUpO2lmKCEoeS5ub0Nsb25lQ2hlY2tlZHx8MSE9PWUubm9kZVR5cGUmJjExIT09ZS5ub2RlVHlwZXx8Uy5pc1hNTERvYyhlKSkpZm9yKGE9dmUoYykscj0wLGk9KG89dmUoZSkpLmxlbmd0aDtyPGk7cisrKXM9b1tyXSx1PWFbcl0sdm9pZCAwLCJpbnB1dCI9PT0obD11Lm5vZGVOYW1lLnRvTG93ZXJDYXNlKCkpJiZwZS50ZXN0KHMudHlwZSk/dS5jaGVja2VkPXMuY2hlY2tlZDoiaW5wdXQiIT09bCYmInRleHRhcmVhIiE9PWx8fCh1LmRlZmF1bHRWYWx1ZT1zLmRlZmF1bHRWYWx1ZSk7aWYodClpZihuKWZvcihvPW98fHZlKGUpLGE9YXx8dmUoYykscj0wLGk9by5sZW5ndGg7cjxpO3IrKylPZShvW3JdLGFbcl0pO2Vsc2UgT2UoZSxjKTtyZXR1cm4gMDwoYT12ZShjLCJzY3JpcHQiKSkubGVuZ3RoJiZ5ZShhLCFmJiZ2ZShlLCJzY3JpcHQiKSksY30sY2xlYW5EYXRhOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdCxuLHIsaT1TLmV2ZW50LnNwZWNpYWwsbz0wO3ZvaWQgMCE9PShuPWVbb10pO28rKylpZihWKG4pKXtpZih0PW5bWS5leHBhbmRvXSl7aWYodC5ldmVudHMpZm9yKHIgaW4gdC5ldmVudHMpaVtyXT9TLmV2ZW50LnJlbW92ZShuLHIpOlMucmVtb3ZlRXZlbnQobixyLHQuaGFuZGxlKTtuW1kuZXhwYW5kb109dm9pZCAwfW5bUS5leHBhbmRvXSYmKG5bUS5leHBhbmRvXT12b2lkIDApfX19KSxTLmZuLmV4dGVuZCh7ZGV0YWNoOmZ1bmN0aW9uKGUpe3JldHVybiBSZSh0aGlzLGUsITApfSxyZW1vdmU6ZnVuY3Rpb24oZSl7cmV0dXJuIFJlKHRoaXMsZSl9LHRleHQ6ZnVuY3Rpb24oZSl7cmV0dXJuICQodGhpcyxmdW5jdGlvbihlKXtyZXR1cm4gdm9pZCAwPT09ZT9TLnRleHQodGhpcyk6dGhpcy5lbXB0eSgpLmVhY2goZnVuY3Rpb24oKXsxIT09dGhpcy5ub2RlVHlwZSYmMTEhPT10aGlzLm5vZGVUeXBlJiY5IT09dGhpcy5ub2RlVHlwZXx8KHRoaXMudGV4dENvbnRlbnQ9ZSl9KX0sbnVsbCxlLGFyZ3VtZW50cy5sZW5ndGgpfSxhcHBlbmQ6ZnVuY3Rpb24oKXtyZXR1cm4gUGUodGhpcyxhcmd1bWVudHMsZnVuY3Rpb24oZSl7MSE9PXRoaXMubm9kZVR5cGUmJjExIT09dGhpcy5ub2RlVHlwZSYmOSE9PXRoaXMubm9kZVR5cGV8fHFlKHRoaXMsZSkuYXBwZW5kQ2hpbGQoZSl9KX0scHJlcGVuZDpmdW5jdGlvbigpe3JldHVybiBQZSh0aGlzLGFyZ3VtZW50cyxmdW5jdGlvbihlKXtpZigxPT09dGhpcy5ub2RlVHlwZXx8MTE9PT10aGlzLm5vZGVUeXBlfHw5PT09dGhpcy5ub2RlVHlwZSl7dmFyIHQ9cWUodGhpcyxlKTt0Lmluc2VydEJlZm9yZShlLHQuZmlyc3RDaGlsZCl9fSl9LGJlZm9yZTpmdW5jdGlvbigpe3JldHVybiBQZSh0aGlzLGFyZ3VtZW50cyxmdW5jdGlvbihlKXt0aGlzLnBhcmVudE5vZGUmJnRoaXMucGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUoZSx0aGlzKX0pfSxhZnRlcjpmdW5jdGlvbigpe3JldHVybiBQZSh0aGlzLGFyZ3VtZW50cyxmdW5jdGlvbihlKXt0aGlzLnBhcmVudE5vZGUmJnRoaXMucGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUoZSx0aGlzLm5leHRTaWJsaW5nKX0pfSxlbXB0eTpmdW5jdGlvbigpe2Zvcih2YXIgZSx0PTA7bnVsbCE9KGU9dGhpc1t0XSk7dCsrKTE9PT1lLm5vZGVUeXBlJiYoUy5jbGVhbkRhdGEodmUoZSwhMSkpLGUudGV4dENvbnRlbnQ9IiIpO3JldHVybiB0aGlzfSxjbG9uZTpmdW5jdGlvbihlLHQpe3JldHVybiBlPW51bGwhPWUmJmUsdD1udWxsPT10P2U6dCx0aGlzLm1hcChmdW5jdGlvbigpe3JldHVybiBTLmNsb25lKHRoaXMsZSx0KX0pfSxodG1sOmZ1bmN0aW9uKGUpe3JldHVybiAkKHRoaXMsZnVuY3Rpb24oZSl7dmFyIHQ9dGhpc1swXXx8e30sbj0wLHI9dGhpcy5sZW5ndGg7aWYodm9pZCAwPT09ZSYmMT09PXQubm9kZVR5cGUpcmV0dXJuIHQuaW5uZXJIVE1MO2lmKCJzdHJpbmciPT10eXBlb2YgZSYmIU5lLnRlc3QoZSkmJiFnZVsoZGUuZXhlYyhlKXx8WyIiLCIiXSlbMV0udG9Mb3dlckNhc2UoKV0pe2U9Uy5odG1sUHJlZmlsdGVyKGUpO3RyeXtmb3IoO248cjtuKyspMT09PSh0PXRoaXNbbl18fHt9KS5ub2RlVHlwZSYmKFMuY2xlYW5EYXRhKHZlKHQsITEpKSx0LmlubmVySFRNTD1lKTt0PTB9Y2F0Y2goZSl7fX10JiZ0aGlzLmVtcHR5KCkuYXBwZW5kKGUpfSxudWxsLGUsYXJndW1lbnRzLmxlbmd0aCl9LHJlcGxhY2VXaXRoOmZ1bmN0aW9uKCl7dmFyIG49W107cmV0dXJuIFBlKHRoaXMsYXJndW1lbnRzLGZ1bmN0aW9uKGUpe3ZhciB0PXRoaXMucGFyZW50Tm9kZTtTLmluQXJyYXkodGhpcyxuKTwwJiYoUy5jbGVhbkRhdGEodmUodGhpcykpLHQmJnQucmVwbGFjZUNoaWxkKGUsdGhpcykpfSxuKX19KSxTLmVhY2goe2FwcGVuZFRvOiJhcHBlbmQiLHByZXBlbmRUbzoicHJlcGVuZCIsaW5zZXJ0QmVmb3JlOiJiZWZvcmUiLGluc2VydEFmdGVyOiJhZnRlciIscmVwbGFjZUFsbDoicmVwbGFjZVdpdGgifSxmdW5jdGlvbihlLGEpe1MuZm5bZV09ZnVuY3Rpb24oZSl7Zm9yKHZhciB0LG49W10scj1TKGUpLGk9ci5sZW5ndGgtMSxvPTA7bzw9aTtvKyspdD1vPT09aT90aGlzOnRoaXMuY2xvbmUoITApLFMocltvXSlbYV0odCksdS5hcHBseShuLHQuZ2V0KCkpO3JldHVybiB0aGlzLnB1c2hTdGFjayhuKX19KTt2YXIgTWU9bmV3IFJlZ0V4cCgiXigiK2VlKyIpKD8hcHgpW2EteiVdKyQiLCJpIiksSWU9ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5vd25lckRvY3VtZW50LmRlZmF1bHRWaWV3O3JldHVybiB0JiZ0Lm9wZW5lcnx8KHQ9QyksdC5nZXRDb21wdXRlZFN0eWxlKGUpfSxXZT1mdW5jdGlvbihlLHQsbil7dmFyIHIsaSxvPXt9O2ZvcihpIGluIHQpb1tpXT1lLnN0eWxlW2ldLGUuc3R5bGVbaV09dFtpXTtmb3IoaSBpbiByPW4uY2FsbChlKSx0KWUuc3R5bGVbaV09b1tpXTtyZXR1cm4gcn0sRmU9bmV3IFJlZ0V4cChuZS5qb2luKCJ8IiksImkiKTtmdW5jdGlvbiBCZShlLHQsbil7dmFyIHIsaSxvLGEscz1lLnN0eWxlO3JldHVybihuPW58fEllKGUpKSYmKCIiIT09KGE9bi5nZXRQcm9wZXJ0eVZhbHVlKHQpfHxuW3RdKXx8aWUoZSl8fChhPVMuc3R5bGUoZSx0KSksIXkucGl4ZWxCb3hTdHlsZXMoKSYmTWUudGVzdChhKSYmRmUudGVzdCh0KSYmKHI9cy53aWR0aCxpPXMubWluV2lkdGgsbz1zLm1heFdpZHRoLHMubWluV2lkdGg9cy5tYXhXaWR0aD1zLndpZHRoPWEsYT1uLndpZHRoLHMud2lkdGg9cixzLm1pbldpZHRoPWkscy5tYXhXaWR0aD1vKSksdm9pZCAwIT09YT9hKyIiOmF9ZnVuY3Rpb24gJGUoZSx0KXtyZXR1cm57Z2V0OmZ1bmN0aW9uKCl7aWYoIWUoKSlyZXR1cm4odGhpcy5nZXQ9dCkuYXBwbHkodGhpcyxhcmd1bWVudHMpO2RlbGV0ZSB0aGlzLmdldH19fSFmdW5jdGlvbigpe2Z1bmN0aW9uIGUoKXtpZihsKXt1LnN0eWxlLmNzc1RleHQ9InBvc2l0aW9uOmFic29sdXRlO2xlZnQ6LTExMTExcHg7d2lkdGg6NjBweDttYXJnaW4tdG9wOjFweDtwYWRkaW5nOjA7Ym9yZGVyOjAiLGwuc3R5bGUuY3NzVGV4dD0icG9zaXRpb246cmVsYXRpdmU7ZGlzcGxheTpibG9jaztib3gtc2l6aW5nOmJvcmRlci1ib3g7b3ZlcmZsb3c6c2Nyb2xsO21hcmdpbjphdXRvO2JvcmRlcjoxcHg7cGFkZGluZzoxcHg7d2lkdGg6NjAlO3RvcDoxJSIscmUuYXBwZW5kQ2hpbGQodSkuYXBwZW5kQ2hpbGQobCk7dmFyIGU9Qy5nZXRDb21wdXRlZFN0eWxlKGwpO249IjElIiE9PWUudG9wLHM9MTI9PT10KGUubWFyZ2luTGVmdCksbC5zdHlsZS5yaWdodD0iNjAlIixvPTM2PT09dChlLnJpZ2h0KSxyPTM2PT09dChlLndpZHRoKSxsLnN0eWxlLnBvc2l0aW9uPSJhYnNvbHV0ZSIsaT0xMj09PXQobC5vZmZzZXRXaWR0aC8zKSxyZS5yZW1vdmVDaGlsZCh1KSxsPW51bGx9fWZ1bmN0aW9uIHQoZSl7cmV0dXJuIE1hdGgucm91bmQocGFyc2VGbG9hdChlKSl9dmFyIG4scixpLG8sYSxzLHU9RS5jcmVhdGVFbGVtZW50KCJkaXYiKSxsPUUuY3JlYXRlRWxlbWVudCgiZGl2Iik7bC5zdHlsZSYmKGwuc3R5bGUuYmFja2dyb3VuZENsaXA9ImNvbnRlbnQtYm94IixsLmNsb25lTm9kZSghMCkuc3R5bGUuYmFja2dyb3VuZENsaXA9IiIseS5jbGVhckNsb25lU3R5bGU9ImNvbnRlbnQtYm94Ij09PWwuc3R5bGUuYmFja2dyb3VuZENsaXAsUy5leHRlbmQoeSx7Ym94U2l6aW5nUmVsaWFibGU6ZnVuY3Rpb24oKXtyZXR1cm4gZSgpLHJ9LHBpeGVsQm94U3R5bGVzOmZ1bmN0aW9uKCl7cmV0dXJuIGUoKSxvfSxwaXhlbFBvc2l0aW9uOmZ1bmN0aW9uKCl7cmV0dXJuIGUoKSxufSxyZWxpYWJsZU1hcmdpbkxlZnQ6ZnVuY3Rpb24oKXtyZXR1cm4gZSgpLHN9LHNjcm9sbGJveFNpemU6ZnVuY3Rpb24oKXtyZXR1cm4gZSgpLGl9LHJlbGlhYmxlVHJEaW1lbnNpb25zOmZ1bmN0aW9uKCl7dmFyIGUsdCxuLHI7cmV0dXJuIG51bGw9PWEmJihlPUUuY3JlYXRlRWxlbWVudCgidGFibGUiKSx0PUUuY3JlYXRlRWxlbWVudCgidHIiKSxuPUUuY3JlYXRlRWxlbWVudCgiZGl2IiksZS5zdHlsZS5jc3NUZXh0PSJwb3NpdGlvbjphYnNvbHV0ZTtsZWZ0Oi0xMTExMXB4Iix0LnN0eWxlLmhlaWdodD0iMXB4IixuLnN0eWxlLmhlaWdodD0iOXB4IixyZS5hcHBlbmRDaGlsZChlKS5hcHBlbmRDaGlsZCh0KS5hcHBlbmRDaGlsZChuKSxyPUMuZ2V0Q29tcHV0ZWRTdHlsZSh0KSxhPTM8cGFyc2VJbnQoci5oZWlnaHQpLHJlLnJlbW92ZUNoaWxkKGUpKSxhfX0pKX0oKTt2YXIgX2U9WyJXZWJraXQiLCJNb3oiLCJtcyJdLHplPUUuY3JlYXRlRWxlbWVudCgiZGl2Iikuc3R5bGUsVWU9e307ZnVuY3Rpb24gWGUoZSl7dmFyIHQ9Uy5jc3NQcm9wc1tlXXx8VWVbZV07cmV0dXJuIHR8fChlIGluIHplP2U6VWVbZV09ZnVuY3Rpb24oZSl7dmFyIHQ9ZVswXS50b1VwcGVyQ2FzZSgpK2Uuc2xpY2UoMSksbj1fZS5sZW5ndGg7d2hpbGUobi0tKWlmKChlPV9lW25dK3QpaW4gemUpcmV0dXJuIGV9KGUpfHxlKX12YXIgVmU9L14obm9uZXx0YWJsZSg/IS1jW2VhXSkuKykvLEdlPS9eLS0vLFllPXtwb3NpdGlvbjoiYWJzb2x1dGUiLHZpc2liaWxpdHk6ImhpZGRlbiIsZGlzcGxheToiYmxvY2sifSxRZT17bGV0dGVyU3BhY2luZzoiMCIsZm9udFdlaWdodDoiNDAwIn07ZnVuY3Rpb24gSmUoZSx0LG4pe3ZhciByPXRlLmV4ZWModCk7cmV0dXJuIHI/TWF0aC5tYXgoMCxyWzJdLShufHwwKSkrKHJbM118fCJweCIpOnR9ZnVuY3Rpb24gS2UoZSx0LG4scixpLG8pe3ZhciBhPSJ3aWR0aCI9PT10PzE6MCxzPTAsdT0wO2lmKG49PT0ocj8iYm9yZGVyIjoiY29udGVudCIpKXJldHVybiAwO2Zvcig7YTw0O2ErPTIpIm1hcmdpbiI9PT1uJiYodSs9Uy5jc3MoZSxuK25lW2FdLCEwLGkpKSxyPygiY29udGVudCI9PT1uJiYodS09Uy5jc3MoZSwicGFkZGluZyIrbmVbYV0sITAsaSkpLCJtYXJnaW4iIT09biYmKHUtPVMuY3NzKGUsImJvcmRlciIrbmVbYV0rIldpZHRoIiwhMCxpKSkpOih1Kz1TLmNzcyhlLCJwYWRkaW5nIituZVthXSwhMCxpKSwicGFkZGluZyIhPT1uP3UrPVMuY3NzKGUsImJvcmRlciIrbmVbYV0rIldpZHRoIiwhMCxpKTpzKz1TLmNzcyhlLCJib3JkZXIiK25lW2FdKyJXaWR0aCIsITAsaSkpO3JldHVybiFyJiYwPD1vJiYodSs9TWF0aC5tYXgoMCxNYXRoLmNlaWwoZVsib2Zmc2V0Iit0WzBdLnRvVXBwZXJDYXNlKCkrdC5zbGljZSgxKV0tby11LXMtLjUpKXx8MCksdX1mdW5jdGlvbiBaZShlLHQsbil7dmFyIHI9SWUoZSksaT0oIXkuYm94U2l6aW5nUmVsaWFibGUoKXx8bikmJiJib3JkZXItYm94Ij09PVMuY3NzKGUsImJveFNpemluZyIsITEsciksbz1pLGE9QmUoZSx0LHIpLHM9Im9mZnNldCIrdFswXS50b1VwcGVyQ2FzZSgpK3Quc2xpY2UoMSk7aWYoTWUudGVzdChhKSl7aWYoIW4pcmV0dXJuIGE7YT0iYXV0byJ9cmV0dXJuKCF5LmJveFNpemluZ1JlbGlhYmxlKCkmJml8fCF5LnJlbGlhYmxlVHJEaW1lbnNpb25zKCkmJkEoZSwidHIiKXx8ImF1dG8iPT09YXx8IXBhcnNlRmxvYXQoYSkmJiJpbmxpbmUiPT09Uy5jc3MoZSwiZGlzcGxheSIsITEscikpJiZlLmdldENsaWVudFJlY3RzKCkubGVuZ3RoJiYoaT0iYm9yZGVyLWJveCI9PT1TLmNzcyhlLCJib3hTaXppbmciLCExLHIpLChvPXMgaW4gZSkmJihhPWVbc10pKSwoYT1wYXJzZUZsb2F0KGEpfHwwKStLZShlLHQsbnx8KGk/ImJvcmRlciI6ImNvbnRlbnQiKSxvLHIsYSkrInB4In1mdW5jdGlvbiBldChlLHQsbixyLGkpe3JldHVybiBuZXcgZXQucHJvdG90eXBlLmluaXQoZSx0LG4scixpKX1TLmV4dGVuZCh7Y3NzSG9va3M6e29wYWNpdHk6e2dldDpmdW5jdGlvbihlLHQpe2lmKHQpe3ZhciBuPUJlKGUsIm9wYWNpdHkiKTtyZXR1cm4iIj09PW4/IjEiOm59fX19LGNzc051bWJlcjp7YW5pbWF0aW9uSXRlcmF0aW9uQ291bnQ6ITAsY29sdW1uQ291bnQ6ITAsZmlsbE9wYWNpdHk6ITAsZmxleEdyb3c6ITAsZmxleFNocmluazohMCxmb250V2VpZ2h0OiEwLGdyaWRBcmVhOiEwLGdyaWRDb2x1bW46ITAsZ3JpZENvbHVtbkVuZDohMCxncmlkQ29sdW1uU3RhcnQ6ITAsZ3JpZFJvdzohMCxncmlkUm93RW5kOiEwLGdyaWRSb3dTdGFydDohMCxsaW5lSGVpZ2h0OiEwLG9wYWNpdHk6ITAsb3JkZXI6ITAsb3JwaGFuczohMCx3aWRvd3M6ITAsekluZGV4OiEwLHpvb206ITB9LGNzc1Byb3BzOnt9LHN0eWxlOmZ1bmN0aW9uKGUsdCxuLHIpe2lmKGUmJjMhPT1lLm5vZGVUeXBlJiY4IT09ZS5ub2RlVHlwZSYmZS5zdHlsZSl7dmFyIGksbyxhLHM9WCh0KSx1PUdlLnRlc3QodCksbD1lLnN0eWxlO2lmKHV8fCh0PVhlKHMpKSxhPVMuY3NzSG9va3NbdF18fFMuY3NzSG9va3Nbc10sdm9pZCAwPT09bilyZXR1cm4gYSYmImdldCJpbiBhJiZ2b2lkIDAhPT0oaT1hLmdldChlLCExLHIpKT9pOmxbdF07InN0cmluZyI9PT0obz10eXBlb2YgbikmJihpPXRlLmV4ZWMobikpJiZpWzFdJiYobj1zZShlLHQsaSksbz0ibnVtYmVyIiksbnVsbCE9biYmbj09biYmKCJudW1iZXIiIT09b3x8dXx8KG4rPWkmJmlbM118fChTLmNzc051bWJlcltzXT8iIjoicHgiKSkseS5jbGVhckNsb25lU3R5bGV8fCIiIT09bnx8MCE9PXQuaW5kZXhPZigiYmFja2dyb3VuZCIpfHwobFt0XT0iaW5oZXJpdCIpLGEmJiJzZXQiaW4gYSYmdm9pZCAwPT09KG49YS5zZXQoZSxuLHIpKXx8KHU/bC5zZXRQcm9wZXJ0eSh0LG4pOmxbdF09bikpfX0sY3NzOmZ1bmN0aW9uKGUsdCxuLHIpe3ZhciBpLG8sYSxzPVgodCk7cmV0dXJuIEdlLnRlc3QodCl8fCh0PVhlKHMpKSwoYT1TLmNzc0hvb2tzW3RdfHxTLmNzc0hvb2tzW3NdKSYmImdldCJpbiBhJiYoaT1hLmdldChlLCEwLG4pKSx2b2lkIDA9PT1pJiYoaT1CZShlLHQscikpLCJub3JtYWwiPT09aSYmdCBpbiBRZSYmKGk9UWVbdF0pLCIiPT09bnx8bj8obz1wYXJzZUZsb2F0KGkpLCEwPT09bnx8aXNGaW5pdGUobyk/b3x8MDppKTppfX0pLFMuZWFjaChbImhlaWdodCIsIndpZHRoIl0sZnVuY3Rpb24oZSx1KXtTLmNzc0hvb2tzW3VdPXtnZXQ6ZnVuY3Rpb24oZSx0LG4pe2lmKHQpcmV0dXJuIVZlLnRlc3QoUy5jc3MoZSwiZGlzcGxheSIpKXx8ZS5nZXRDbGllbnRSZWN0cygpLmxlbmd0aCYmZS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKS53aWR0aD9aZShlLHUsbik6V2UoZSxZZSxmdW5jdGlvbigpe3JldHVybiBaZShlLHUsbil9KX0sc2V0OmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpPUllKGUpLG89IXkuc2Nyb2xsYm94U2l6ZSgpJiYiYWJzb2x1dGUiPT09aS5wb3NpdGlvbixhPShvfHxuKSYmImJvcmRlci1ib3giPT09Uy5jc3MoZSwiYm94U2l6aW5nIiwhMSxpKSxzPW4/S2UoZSx1LG4sYSxpKTowO3JldHVybiBhJiZvJiYocy09TWF0aC5jZWlsKGVbIm9mZnNldCIrdVswXS50b1VwcGVyQ2FzZSgpK3Uuc2xpY2UoMSldLXBhcnNlRmxvYXQoaVt1XSktS2UoZSx1LCJib3JkZXIiLCExLGkpLS41KSkscyYmKHI9dGUuZXhlYyh0KSkmJiJweCIhPT0oclszXXx8InB4IikmJihlLnN0eWxlW3VdPXQsdD1TLmNzcyhlLHUpKSxKZSgwLHQscyl9fX0pLFMuY3NzSG9va3MubWFyZ2luTGVmdD0kZSh5LnJlbGlhYmxlTWFyZ2luTGVmdCxmdW5jdGlvbihlLHQpe2lmKHQpcmV0dXJuKHBhcnNlRmxvYXQoQmUoZSwibWFyZ2luTGVmdCIpKXx8ZS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKS5sZWZ0LVdlKGUse21hcmdpbkxlZnQ6MH0sZnVuY3Rpb24oKXtyZXR1cm4gZS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKS5sZWZ0fSkpKyJweCJ9KSxTLmVhY2goe21hcmdpbjoiIixwYWRkaW5nOiIiLGJvcmRlcjoiV2lkdGgifSxmdW5jdGlvbihpLG8pe1MuY3NzSG9va3NbaStvXT17ZXhwYW5kOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdD0wLG49e30scj0ic3RyaW5nIj09dHlwZW9mIGU/ZS5zcGxpdCgiICIpOltlXTt0PDQ7dCsrKW5baStuZVt0XStvXT1yW3RdfHxyW3QtMl18fHJbMF07cmV0dXJuIG59fSwibWFyZ2luIiE9PWkmJihTLmNzc0hvb2tzW2krb10uc2V0PUplKX0pLFMuZm4uZXh0ZW5kKHtjc3M6ZnVuY3Rpb24oZSx0KXtyZXR1cm4gJCh0aGlzLGZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG89e30sYT0wO2lmKEFycmF5LmlzQXJyYXkodCkpe2ZvcihyPUllKGUpLGk9dC5sZW5ndGg7YTxpO2ErKylvW3RbYV1dPVMuY3NzKGUsdFthXSwhMSxyKTtyZXR1cm4gb31yZXR1cm4gdm9pZCAwIT09bj9TLnN0eWxlKGUsdCxuKTpTLmNzcyhlLHQpfSxlLHQsMTxhcmd1bWVudHMubGVuZ3RoKX19KSwoKFMuVHdlZW49ZXQpLnByb3RvdHlwZT17Y29uc3RydWN0b3I6ZXQsaW5pdDpmdW5jdGlvbihlLHQsbixyLGksbyl7dGhpcy5lbGVtPWUsdGhpcy5wcm9wPW4sdGhpcy5lYXNpbmc9aXx8Uy5lYXNpbmcuX2RlZmF1bHQsdGhpcy5vcHRpb25zPXQsdGhpcy5zdGFydD10aGlzLm5vdz10aGlzLmN1cigpLHRoaXMuZW5kPXIsdGhpcy51bml0PW98fChTLmNzc051bWJlcltuXT8iIjoicHgiKX0sY3VyOmZ1bmN0aW9uKCl7dmFyIGU9ZXQucHJvcEhvb2tzW3RoaXMucHJvcF07cmV0dXJuIGUmJmUuZ2V0P2UuZ2V0KHRoaXMpOmV0LnByb3BIb29rcy5fZGVmYXVsdC5nZXQodGhpcyl9LHJ1bjpmdW5jdGlvbihlKXt2YXIgdCxuPWV0LnByb3BIb29rc1t0aGlzLnByb3BdO3JldHVybiB0aGlzLm9wdGlvbnMuZHVyYXRpb24/dGhpcy5wb3M9dD1TLmVhc2luZ1t0aGlzLmVhc2luZ10oZSx0aGlzLm9wdGlvbnMuZHVyYXRpb24qZSwwLDEsdGhpcy5vcHRpb25zLmR1cmF0aW9uKTp0aGlzLnBvcz10PWUsdGhpcy5ub3c9KHRoaXMuZW5kLXRoaXMuc3RhcnQpKnQrdGhpcy5zdGFydCx0aGlzLm9wdGlvbnMuc3RlcCYmdGhpcy5vcHRpb25zLnN0ZXAuY2FsbCh0aGlzLmVsZW0sdGhpcy5ub3csdGhpcyksbiYmbi5zZXQ/bi5zZXQodGhpcyk6ZXQucHJvcEhvb2tzLl9kZWZhdWx0LnNldCh0aGlzKSx0aGlzfX0pLmluaXQucHJvdG90eXBlPWV0LnByb3RvdHlwZSwoZXQucHJvcEhvb2tzPXtfZGVmYXVsdDp7Z2V0OmZ1bmN0aW9uKGUpe3ZhciB0O3JldHVybiAxIT09ZS5lbGVtLm5vZGVUeXBlfHxudWxsIT1lLmVsZW1bZS5wcm9wXSYmbnVsbD09ZS5lbGVtLnN0eWxlW2UucHJvcF0/ZS5lbGVtW2UucHJvcF06KHQ9Uy5jc3MoZS5lbGVtLGUucHJvcCwiIikpJiYiYXV0byIhPT10P3Q6MH0sc2V0OmZ1bmN0aW9uKGUpe1MuZnguc3RlcFtlLnByb3BdP1MuZnguc3RlcFtlLnByb3BdKGUpOjEhPT1lLmVsZW0ubm9kZVR5cGV8fCFTLmNzc0hvb2tzW2UucHJvcF0mJm51bGw9PWUuZWxlbS5zdHlsZVtYZShlLnByb3ApXT9lLmVsZW1bZS5wcm9wXT1lLm5vdzpTLnN0eWxlKGUuZWxlbSxlLnByb3AsZS5ub3crZS51bml0KX19fSkuc2Nyb2xsVG9wPWV0LnByb3BIb29rcy5zY3JvbGxMZWZ0PXtzZXQ6ZnVuY3Rpb24oZSl7ZS5lbGVtLm5vZGVUeXBlJiZlLmVsZW0ucGFyZW50Tm9kZSYmKGUuZWxlbVtlLnByb3BdPWUubm93KX19LFMuZWFzaW5nPXtsaW5lYXI6ZnVuY3Rpb24oZSl7cmV0dXJuIGV9LHN3aW5nOmZ1bmN0aW9uKGUpe3JldHVybi41LU1hdGguY29zKGUqTWF0aC5QSSkvMn0sX2RlZmF1bHQ6InN3aW5nIn0sUy5meD1ldC5wcm90b3R5cGUuaW5pdCxTLmZ4LnN0ZXA9e307dmFyIHR0LG50LHJ0LGl0LG90PS9eKD86dG9nZ2xlfHNob3d8aGlkZSkkLyxhdD0vcXVldWVIb29rcyQvO2Z1bmN0aW9uIHN0KCl7bnQmJighMT09PUUuaGlkZGVuJiZDLnJlcXVlc3RBbmltYXRpb25GcmFtZT9DLnJlcXVlc3RBbmltYXRpb25GcmFtZShzdCk6Qy5zZXRUaW1lb3V0KHN0LFMuZnguaW50ZXJ2YWwpLFMuZngudGljaygpKX1mdW5jdGlvbiB1dCgpe3JldHVybiBDLnNldFRpbWVvdXQoZnVuY3Rpb24oKXt0dD12b2lkIDB9KSx0dD1EYXRlLm5vdygpfWZ1bmN0aW9uIGx0KGUsdCl7dmFyIG4scj0wLGk9e2hlaWdodDplfTtmb3IodD10PzE6MDtyPDQ7cis9Mi10KWlbIm1hcmdpbiIrKG49bmVbcl0pXT1pWyJwYWRkaW5nIituXT1lO3JldHVybiB0JiYoaS5vcGFjaXR5PWkud2lkdGg9ZSksaX1mdW5jdGlvbiBjdChlLHQsbil7Zm9yKHZhciByLGk9KGZ0LnR3ZWVuZXJzW3RdfHxbXSkuY29uY2F0KGZ0LnR3ZWVuZXJzWyIqIl0pLG89MCxhPWkubGVuZ3RoO288YTtvKyspaWYocj1pW29dLmNhbGwobix0LGUpKXJldHVybiByfWZ1bmN0aW9uIGZ0KG8sZSx0KXt2YXIgbixhLHI9MCxpPWZ0LnByZWZpbHRlcnMubGVuZ3RoLHM9Uy5EZWZlcnJlZCgpLmFsd2F5cyhmdW5jdGlvbigpe2RlbGV0ZSB1LmVsZW19KSx1PWZ1bmN0aW9uKCl7aWYoYSlyZXR1cm4hMTtmb3IodmFyIGU9dHR8fHV0KCksdD1NYXRoLm1heCgwLGwuc3RhcnRUaW1lK2wuZHVyYXRpb24tZSksbj0xLSh0L2wuZHVyYXRpb258fDApLHI9MCxpPWwudHdlZW5zLmxlbmd0aDtyPGk7cisrKWwudHdlZW5zW3JdLnJ1bihuKTtyZXR1cm4gcy5ub3RpZnlXaXRoKG8sW2wsbix0XSksbjwxJiZpP3Q6KGl8fHMubm90aWZ5V2l0aChvLFtsLDEsMF0pLHMucmVzb2x2ZVdpdGgobyxbbF0pLCExKX0sbD1zLnByb21pc2Uoe2VsZW06byxwcm9wczpTLmV4dGVuZCh7fSxlKSxvcHRzOlMuZXh0ZW5kKCEwLHtzcGVjaWFsRWFzaW5nOnt9LGVhc2luZzpTLmVhc2luZy5fZGVmYXVsdH0sdCksb3JpZ2luYWxQcm9wZXJ0aWVzOmUsb3JpZ2luYWxPcHRpb25zOnQsc3RhcnRUaW1lOnR0fHx1dCgpLGR1cmF0aW9uOnQuZHVyYXRpb24sdHdlZW5zOltdLGNyZWF0ZVR3ZWVuOmZ1bmN0aW9uKGUsdCl7dmFyIG49Uy5Ud2VlbihvLGwub3B0cyxlLHQsbC5vcHRzLnNwZWNpYWxFYXNpbmdbZV18fGwub3B0cy5lYXNpbmcpO3JldHVybiBsLnR3ZWVucy5wdXNoKG4pLG59LHN0b3A6ZnVuY3Rpb24oZSl7dmFyIHQ9MCxuPWU/bC50d2VlbnMubGVuZ3RoOjA7aWYoYSlyZXR1cm4gdGhpcztmb3IoYT0hMDt0PG47dCsrKWwudHdlZW5zW3RdLnJ1bigxKTtyZXR1cm4gZT8ocy5ub3RpZnlXaXRoKG8sW2wsMSwwXSkscy5yZXNvbHZlV2l0aChvLFtsLGVdKSk6cy5yZWplY3RXaXRoKG8sW2wsZV0pLHRoaXN9fSksYz1sLnByb3BzO2ZvcighZnVuY3Rpb24oZSx0KXt2YXIgbixyLGksbyxhO2ZvcihuIGluIGUpaWYoaT10W3I9WChuKV0sbz1lW25dLEFycmF5LmlzQXJyYXkobykmJihpPW9bMV0sbz1lW25dPW9bMF0pLG4hPT1yJiYoZVtyXT1vLGRlbGV0ZSBlW25dKSwoYT1TLmNzc0hvb2tzW3JdKSYmImV4cGFuZCJpbiBhKWZvcihuIGluIG89YS5leHBhbmQobyksZGVsZXRlIGVbcl0sbyluIGluIGV8fChlW25dPW9bbl0sdFtuXT1pKTtlbHNlIHRbcl09aX0oYyxsLm9wdHMuc3BlY2lhbEVhc2luZyk7cjxpO3IrKylpZihuPWZ0LnByZWZpbHRlcnNbcl0uY2FsbChsLG8sYyxsLm9wdHMpKXJldHVybiBtKG4uc3RvcCkmJihTLl9xdWV1ZUhvb2tzKGwuZWxlbSxsLm9wdHMucXVldWUpLnN0b3A9bi5zdG9wLmJpbmQobikpLG47cmV0dXJuIFMubWFwKGMsY3QsbCksbShsLm9wdHMuc3RhcnQpJiZsLm9wdHMuc3RhcnQuY2FsbChvLGwpLGwucHJvZ3Jlc3MobC5vcHRzLnByb2dyZXNzKS5kb25lKGwub3B0cy5kb25lLGwub3B0cy5jb21wbGV0ZSkuZmFpbChsLm9wdHMuZmFpbCkuYWx3YXlzKGwub3B0cy5hbHdheXMpLFMuZngudGltZXIoUy5leHRlbmQodSx7ZWxlbTpvLGFuaW06bCxxdWV1ZTpsLm9wdHMucXVldWV9KSksbH1TLkFuaW1hdGlvbj1TLmV4dGVuZChmdCx7dHdlZW5lcnM6eyIqIjpbZnVuY3Rpb24oZSx0KXt2YXIgbj10aGlzLmNyZWF0ZVR3ZWVuKGUsdCk7cmV0dXJuIHNlKG4uZWxlbSxlLHRlLmV4ZWModCksbiksbn1dfSx0d2VlbmVyOmZ1bmN0aW9uKGUsdCl7bShlKT8odD1lLGU9WyIqIl0pOmU9ZS5tYXRjaChQKTtmb3IodmFyIG4scj0wLGk9ZS5sZW5ndGg7cjxpO3IrKyluPWVbcl0sZnQudHdlZW5lcnNbbl09ZnQudHdlZW5lcnNbbl18fFtdLGZ0LnR3ZWVuZXJzW25dLnVuc2hpZnQodCl9LHByZWZpbHRlcnM6W2Z1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG8sYSxzLHUsbCxjLGY9IndpZHRoImluIHR8fCJoZWlnaHQiaW4gdCxwPXRoaXMsZD17fSxoPWUuc3R5bGUsZz1lLm5vZGVUeXBlJiZhZShlKSx2PVkuZ2V0KGUsImZ4c2hvdyIpO2ZvcihyIGluIG4ucXVldWV8fChudWxsPT0oYT1TLl9xdWV1ZUhvb2tzKGUsImZ4IikpLnVucXVldWVkJiYoYS51bnF1ZXVlZD0wLHM9YS5lbXB0eS5maXJlLGEuZW1wdHkuZmlyZT1mdW5jdGlvbigpe2EudW5xdWV1ZWR8fHMoKX0pLGEudW5xdWV1ZWQrKyxwLmFsd2F5cyhmdW5jdGlvbigpe3AuYWx3YXlzKGZ1bmN0aW9uKCl7YS51bnF1ZXVlZC0tLFMucXVldWUoZSwiZngiKS5sZW5ndGh8fGEuZW1wdHkuZmlyZSgpfSl9KSksdClpZihpPXRbcl0sb3QudGVzdChpKSl7aWYoZGVsZXRlIHRbcl0sbz1vfHwidG9nZ2xlIj09PWksaT09PShnPyJoaWRlIjoic2hvdyIpKXtpZigic2hvdyIhPT1pfHwhdnx8dm9pZCAwPT09dltyXSljb250aW51ZTtnPSEwfWRbcl09diYmdltyXXx8Uy5zdHlsZShlLHIpfWlmKCh1PSFTLmlzRW1wdHlPYmplY3QodCkpfHwhUy5pc0VtcHR5T2JqZWN0KGQpKWZvcihyIGluIGYmJjE9PT1lLm5vZGVUeXBlJiYobi5vdmVyZmxvdz1baC5vdmVyZmxvdyxoLm92ZXJmbG93WCxoLm92ZXJmbG93WV0sbnVsbD09KGw9diYmdi5kaXNwbGF5KSYmKGw9WS5nZXQoZSwiZGlzcGxheSIpKSwibm9uZSI9PT0oYz1TLmNzcyhlLCJkaXNwbGF5IikpJiYobD9jPWw6KGxlKFtlXSwhMCksbD1lLnN0eWxlLmRpc3BsYXl8fGwsYz1TLmNzcyhlLCJkaXNwbGF5IiksbGUoW2VdKSkpLCgiaW5saW5lIj09PWN8fCJpbmxpbmUtYmxvY2siPT09YyYmbnVsbCE9bCkmJiJub25lIj09PVMuY3NzKGUsImZsb2F0IikmJih1fHwocC5kb25lKGZ1bmN0aW9uKCl7aC5kaXNwbGF5PWx9KSxudWxsPT1sJiYoYz1oLmRpc3BsYXksbD0ibm9uZSI9PT1jPyIiOmMpKSxoLmRpc3BsYXk9ImlubGluZS1ibG9jayIpKSxuLm92ZXJmbG93JiYoaC5vdmVyZmxvdz0iaGlkZGVuIixwLmFsd2F5cyhmdW5jdGlvbigpe2gub3ZlcmZsb3c9bi5vdmVyZmxvd1swXSxoLm92ZXJmbG93WD1uLm92ZXJmbG93WzFdLGgub3ZlcmZsb3dZPW4ub3ZlcmZsb3dbMl19KSksdT0hMSxkKXV8fCh2PyJoaWRkZW4iaW4gdiYmKGc9di5oaWRkZW4pOnY9WS5hY2Nlc3MoZSwiZnhzaG93Iix7ZGlzcGxheTpsfSksbyYmKHYuaGlkZGVuPSFnKSxnJiZsZShbZV0sITApLHAuZG9uZShmdW5jdGlvbigpe2ZvcihyIGluIGd8fGxlKFtlXSksWS5yZW1vdmUoZSwiZnhzaG93IiksZClTLnN0eWxlKGUscixkW3JdKX0pKSx1PWN0KGc/dltyXTowLHIscCksciBpbiB2fHwodltyXT11LnN0YXJ0LGcmJih1LmVuZD11LnN0YXJ0LHUuc3RhcnQ9MCkpfV0scHJlZmlsdGVyOmZ1bmN0aW9uKGUsdCl7dD9mdC5wcmVmaWx0ZXJzLnVuc2hpZnQoZSk6ZnQucHJlZmlsdGVycy5wdXNoKGUpfX0pLFMuc3BlZWQ9ZnVuY3Rpb24oZSx0LG4pe3ZhciByPWUmJiJvYmplY3QiPT10eXBlb2YgZT9TLmV4dGVuZCh7fSxlKTp7Y29tcGxldGU6bnx8IW4mJnR8fG0oZSkmJmUsZHVyYXRpb246ZSxlYXNpbmc6biYmdHx8dCYmIW0odCkmJnR9O3JldHVybiBTLmZ4Lm9mZj9yLmR1cmF0aW9uPTA6Im51bWJlciIhPXR5cGVvZiByLmR1cmF0aW9uJiYoci5kdXJhdGlvbiBpbiBTLmZ4LnNwZWVkcz9yLmR1cmF0aW9uPVMuZnguc3BlZWRzW3IuZHVyYXRpb25dOnIuZHVyYXRpb249Uy5meC5zcGVlZHMuX2RlZmF1bHQpLG51bGwhPXIucXVldWUmJiEwIT09ci5xdWV1ZXx8KHIucXVldWU9ImZ4Iiksci5vbGQ9ci5jb21wbGV0ZSxyLmNvbXBsZXRlPWZ1bmN0aW9uKCl7bShyLm9sZCkmJnIub2xkLmNhbGwodGhpcyksci5xdWV1ZSYmUy5kZXF1ZXVlKHRoaXMsci5xdWV1ZSl9LHJ9LFMuZm4uZXh0ZW5kKHtmYWRlVG86ZnVuY3Rpb24oZSx0LG4scil7cmV0dXJuIHRoaXMuZmlsdGVyKGFlKS5jc3MoIm9wYWNpdHkiLDApLnNob3coKS5lbmQoKS5hbmltYXRlKHtvcGFjaXR5OnR9LGUsbixyKX0sYW5pbWF0ZTpmdW5jdGlvbih0LGUsbixyKXt2YXIgaT1TLmlzRW1wdHlPYmplY3QodCksbz1TLnNwZWVkKGUsbixyKSxhPWZ1bmN0aW9uKCl7dmFyIGU9ZnQodGhpcyxTLmV4dGVuZCh7fSx0KSxvKTsoaXx8WS5nZXQodGhpcywiZmluaXNoIikpJiZlLnN0b3AoITApfTtyZXR1cm4gYS5maW5pc2g9YSxpfHwhMT09PW8ucXVldWU/dGhpcy5lYWNoKGEpOnRoaXMucXVldWUoby5xdWV1ZSxhKX0sc3RvcDpmdW5jdGlvbihpLGUsbyl7dmFyIGE9ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5zdG9wO2RlbGV0ZSBlLnN0b3AsdChvKX07cmV0dXJuInN0cmluZyIhPXR5cGVvZiBpJiYobz1lLGU9aSxpPXZvaWQgMCksZSYmdGhpcy5xdWV1ZShpfHwiZngiLFtdKSx0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgZT0hMCx0PW51bGwhPWkmJmkrInF1ZXVlSG9va3MiLG49Uy50aW1lcnMscj1ZLmdldCh0aGlzKTtpZih0KXJbdF0mJnJbdF0uc3RvcCYmYShyW3RdKTtlbHNlIGZvcih0IGluIHIpclt0XSYmclt0XS5zdG9wJiZhdC50ZXN0KHQpJiZhKHJbdF0pO2Zvcih0PW4ubGVuZ3RoO3QtLTspblt0XS5lbGVtIT09dGhpc3x8bnVsbCE9aSYmblt0XS5xdWV1ZSE9PWl8fChuW3RdLmFuaW0uc3RvcChvKSxlPSExLG4uc3BsaWNlKHQsMSkpOyFlJiZvfHxTLmRlcXVldWUodGhpcyxpKX0pfSxmaW5pc2g6ZnVuY3Rpb24oYSl7cmV0dXJuITEhPT1hJiYoYT1hfHwiZngiKSx0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgZSx0PVkuZ2V0KHRoaXMpLG49dFthKyJxdWV1ZSJdLHI9dFthKyJxdWV1ZUhvb2tzIl0saT1TLnRpbWVycyxvPW4/bi5sZW5ndGg6MDtmb3IodC5maW5pc2g9ITAsUy5xdWV1ZSh0aGlzLGEsW10pLHImJnIuc3RvcCYmci5zdG9wLmNhbGwodGhpcywhMCksZT1pLmxlbmd0aDtlLS07KWlbZV0uZWxlbT09PXRoaXMmJmlbZV0ucXVldWU9PT1hJiYoaVtlXS5hbmltLnN0b3AoITApLGkuc3BsaWNlKGUsMSkpO2ZvcihlPTA7ZTxvO2UrKyluW2VdJiZuW2VdLmZpbmlzaCYmbltlXS5maW5pc2guY2FsbCh0aGlzKTtkZWxldGUgdC5maW5pc2h9KX19KSxTLmVhY2goWyJ0b2dnbGUiLCJzaG93IiwiaGlkZSJdLGZ1bmN0aW9uKGUscil7dmFyIGk9Uy5mbltyXTtTLmZuW3JdPWZ1bmN0aW9uKGUsdCxuKXtyZXR1cm4gbnVsbD09ZXx8ImJvb2xlYW4iPT10eXBlb2YgZT9pLmFwcGx5KHRoaXMsYXJndW1lbnRzKTp0aGlzLmFuaW1hdGUobHQociwhMCksZSx0LG4pfX0pLFMuZWFjaCh7c2xpZGVEb3duOmx0KCJzaG93Iiksc2xpZGVVcDpsdCgiaGlkZSIpLHNsaWRlVG9nZ2xlOmx0KCJ0b2dnbGUiKSxmYWRlSW46e29wYWNpdHk6InNob3cifSxmYWRlT3V0OntvcGFjaXR5OiJoaWRlIn0sZmFkZVRvZ2dsZTp7b3BhY2l0eToidG9nZ2xlIn19LGZ1bmN0aW9uKGUscil7Uy5mbltlXT1mdW5jdGlvbihlLHQsbil7cmV0dXJuIHRoaXMuYW5pbWF0ZShyLGUsdCxuKX19KSxTLnRpbWVycz1bXSxTLmZ4LnRpY2s9ZnVuY3Rpb24oKXt2YXIgZSx0PTAsbj1TLnRpbWVycztmb3IodHQ9RGF0ZS5ub3coKTt0PG4ubGVuZ3RoO3QrKykoZT1uW3RdKSgpfHxuW3RdIT09ZXx8bi5zcGxpY2UodC0tLDEpO24ubGVuZ3RofHxTLmZ4LnN0b3AoKSx0dD12b2lkIDB9LFMuZngudGltZXI9ZnVuY3Rpb24oZSl7Uy50aW1lcnMucHVzaChlKSxTLmZ4LnN0YXJ0KCl9LFMuZnguaW50ZXJ2YWw9MTMsUy5meC5zdGFydD1mdW5jdGlvbigpe250fHwobnQ9ITAsc3QoKSl9LFMuZnguc3RvcD1mdW5jdGlvbigpe250PW51bGx9LFMuZnguc3BlZWRzPXtzbG93OjYwMCxmYXN0OjIwMCxfZGVmYXVsdDo0MDB9LFMuZm4uZGVsYXk9ZnVuY3Rpb24ocixlKXtyZXR1cm4gcj1TLmZ4JiZTLmZ4LnNwZWVkc1tyXXx8cixlPWV8fCJmeCIsdGhpcy5xdWV1ZShlLGZ1bmN0aW9uKGUsdCl7dmFyIG49Qy5zZXRUaW1lb3V0KGUscik7dC5zdG9wPWZ1bmN0aW9uKCl7Qy5jbGVhclRpbWVvdXQobil9fSl9LHJ0PUUuY3JlYXRlRWxlbWVudCgiaW5wdXQiKSxpdD1FLmNyZWF0ZUVsZW1lbnQoInNlbGVjdCIpLmFwcGVuZENoaWxkKEUuY3JlYXRlRWxlbWVudCgib3B0aW9uIikpLHJ0LnR5cGU9ImNoZWNrYm94Iix5LmNoZWNrT249IiIhPT1ydC52YWx1ZSx5Lm9wdFNlbGVjdGVkPWl0LnNlbGVjdGVkLChydD1FLmNyZWF0ZUVsZW1lbnQoImlucHV0IikpLnZhbHVlPSJ0IixydC50eXBlPSJyYWRpbyIseS5yYWRpb1ZhbHVlPSJ0Ij09PXJ0LnZhbHVlO3ZhciBwdCxkdD1TLmV4cHIuYXR0ckhhbmRsZTtTLmZuLmV4dGVuZCh7YXR0cjpmdW5jdGlvbihlLHQpe3JldHVybiAkKHRoaXMsUy5hdHRyLGUsdCwxPGFyZ3VtZW50cy5sZW5ndGgpfSxyZW1vdmVBdHRyOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLmVhY2goZnVuY3Rpb24oKXtTLnJlbW92ZUF0dHIodGhpcyxlKX0pfX0pLFMuZXh0ZW5kKHthdHRyOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG89ZS5ub2RlVHlwZTtpZigzIT09byYmOCE9PW8mJjIhPT1vKXJldHVybiJ1bmRlZmluZWQiPT10eXBlb2YgZS5nZXRBdHRyaWJ1dGU/Uy5wcm9wKGUsdCxuKTooMT09PW8mJlMuaXNYTUxEb2MoZSl8fChpPVMuYXR0ckhvb2tzW3QudG9Mb3dlckNhc2UoKV18fChTLmV4cHIubWF0Y2guYm9vbC50ZXN0KHQpP3B0OnZvaWQgMCkpLHZvaWQgMCE9PW4/bnVsbD09PW4/dm9pZCBTLnJlbW92ZUF0dHIoZSx0KTppJiYic2V0ImluIGkmJnZvaWQgMCE9PShyPWkuc2V0KGUsbix0KSk/cjooZS5zZXRBdHRyaWJ1dGUodCxuKyIiKSxuKTppJiYiZ2V0ImluIGkmJm51bGwhPT0ocj1pLmdldChlLHQpKT9yOm51bGw9PShyPVMuZmluZC5hdHRyKGUsdCkpP3ZvaWQgMDpyKX0sYXR0ckhvb2tzOnt0eXBlOntzZXQ6ZnVuY3Rpb24oZSx0KXtpZigheS5yYWRpb1ZhbHVlJiYicmFkaW8iPT09dCYmQShlLCJpbnB1dCIpKXt2YXIgbj1lLnZhbHVlO3JldHVybiBlLnNldEF0dHJpYnV0ZSgidHlwZSIsdCksbiYmKGUudmFsdWU9biksdH19fX0scmVtb3ZlQXR0cjpmdW5jdGlvbihlLHQpe3ZhciBuLHI9MCxpPXQmJnQubWF0Y2goUCk7aWYoaSYmMT09PWUubm9kZVR5cGUpd2hpbGUobj1pW3IrK10pZS5yZW1vdmVBdHRyaWJ1dGUobil9fSkscHQ9e3NldDpmdW5jdGlvbihlLHQsbil7cmV0dXJuITE9PT10P1MucmVtb3ZlQXR0cihlLG4pOmUuc2V0QXR0cmlidXRlKG4sbiksbn19LFMuZWFjaChTLmV4cHIubWF0Y2guYm9vbC5zb3VyY2UubWF0Y2goL1x3Ky9nKSxmdW5jdGlvbihlLHQpe3ZhciBhPWR0W3RdfHxTLmZpbmQuYXR0cjtkdFt0XT1mdW5jdGlvbihlLHQsbil7dmFyIHIsaSxvPXQudG9Mb3dlckNhc2UoKTtyZXR1cm4gbnx8KGk9ZHRbb10sZHRbb109cixyPW51bGwhPWEoZSx0LG4pP286bnVsbCxkdFtvXT1pKSxyfX0pO3ZhciBodD0vXig/OmlucHV0fHNlbGVjdHx0ZXh0YXJlYXxidXR0b24pJC9pLGd0PS9eKD86YXxhcmVhKSQvaTtmdW5jdGlvbiB2dChlKXtyZXR1cm4oZS5tYXRjaChQKXx8W10pLmpvaW4oIiAiKX1mdW5jdGlvbiB5dChlKXtyZXR1cm4gZS5nZXRBdHRyaWJ1dGUmJmUuZ2V0QXR0cmlidXRlKCJjbGFzcyIpfHwiIn1mdW5jdGlvbiBtdChlKXtyZXR1cm4gQXJyYXkuaXNBcnJheShlKT9lOiJzdHJpbmciPT10eXBlb2YgZSYmZS5tYXRjaChQKXx8W119Uy5mbi5leHRlbmQoe3Byb3A6ZnVuY3Rpb24oZSx0KXtyZXR1cm4gJCh0aGlzLFMucHJvcCxlLHQsMTxhcmd1bWVudHMubGVuZ3RoKX0scmVtb3ZlUHJvcDpmdW5jdGlvbihlKXtyZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uKCl7ZGVsZXRlIHRoaXNbUy5wcm9wRml4W2VdfHxlXX0pfX0pLFMuZXh0ZW5kKHtwcm9wOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG89ZS5ub2RlVHlwZTtpZigzIT09byYmOCE9PW8mJjIhPT1vKXJldHVybiAxPT09byYmUy5pc1hNTERvYyhlKXx8KHQ9Uy5wcm9wRml4W3RdfHx0LGk9Uy5wcm9wSG9va3NbdF0pLHZvaWQgMCE9PW4/aSYmInNldCJpbiBpJiZ2b2lkIDAhPT0ocj1pLnNldChlLG4sdCkpP3I6ZVt0XT1uOmkmJiJnZXQiaW4gaSYmbnVsbCE9PShyPWkuZ2V0KGUsdCkpP3I6ZVt0XX0scHJvcEhvb2tzOnt0YWJJbmRleDp7Z2V0OmZ1bmN0aW9uKGUpe3ZhciB0PVMuZmluZC5hdHRyKGUsInRhYmluZGV4Iik7cmV0dXJuIHQ/cGFyc2VJbnQodCwxMCk6aHQudGVzdChlLm5vZGVOYW1lKXx8Z3QudGVzdChlLm5vZGVOYW1lKSYmZS5ocmVmPzA6LTF9fX0scHJvcEZpeDp7ImZvciI6Imh0bWxGb3IiLCJjbGFzcyI6ImNsYXNzTmFtZSJ9fSkseS5vcHRTZWxlY3RlZHx8KFMucHJvcEhvb2tzLnNlbGVjdGVkPXtnZXQ6ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5wYXJlbnROb2RlO3JldHVybiB0JiZ0LnBhcmVudE5vZGUmJnQucGFyZW50Tm9kZS5zZWxlY3RlZEluZGV4LG51bGx9LHNldDpmdW5jdGlvbihlKXt2YXIgdD1lLnBhcmVudE5vZGU7dCYmKHQuc2VsZWN0ZWRJbmRleCx0LnBhcmVudE5vZGUmJnQucGFyZW50Tm9kZS5zZWxlY3RlZEluZGV4KX19KSxTLmVhY2goWyJ0YWJJbmRleCIsInJlYWRPbmx5IiwibWF4TGVuZ3RoIiwiY2VsbFNwYWNpbmciLCJjZWxsUGFkZGluZyIsInJvd1NwYW4iLCJjb2xTcGFuIiwidXNlTWFwIiwiZnJhbWVCb3JkZXIiLCJjb250ZW50RWRpdGFibGUiXSxmdW5jdGlvbigpe1MucHJvcEZpeFt0aGlzLnRvTG93ZXJDYXNlKCldPXRoaXN9KSxTLmZuLmV4dGVuZCh7YWRkQ2xhc3M6ZnVuY3Rpb24odCl7dmFyIGUsbixyLGksbyxhLHMsdT0wO2lmKG0odCkpcmV0dXJuIHRoaXMuZWFjaChmdW5jdGlvbihlKXtTKHRoaXMpLmFkZENsYXNzKHQuY2FsbCh0aGlzLGUseXQodGhpcykpKX0pO2lmKChlPW10KHQpKS5sZW5ndGgpd2hpbGUobj10aGlzW3UrK10paWYoaT15dChuKSxyPTE9PT1uLm5vZGVUeXBlJiYiICIrdnQoaSkrIiAiKXthPTA7d2hpbGUobz1lW2ErK10pci5pbmRleE9mKCIgIitvKyIgIik8MCYmKHIrPW8rIiAiKTtpIT09KHM9dnQocikpJiZuLnNldEF0dHJpYnV0ZSgiY2xhc3MiLHMpfXJldHVybiB0aGlzfSxyZW1vdmVDbGFzczpmdW5jdGlvbih0KXt2YXIgZSxuLHIsaSxvLGEscyx1PTA7aWYobSh0KSlyZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uKGUpe1ModGhpcykucmVtb3ZlQ2xhc3ModC5jYWxsKHRoaXMsZSx5dCh0aGlzKSkpfSk7aWYoIWFyZ3VtZW50cy5sZW5ndGgpcmV0dXJuIHRoaXMuYXR0cigiY2xhc3MiLCIiKTtpZigoZT1tdCh0KSkubGVuZ3RoKXdoaWxlKG49dGhpc1t1KytdKWlmKGk9eXQobikscj0xPT09bi5ub2RlVHlwZSYmIiAiK3Z0KGkpKyIgIil7YT0wO3doaWxlKG89ZVthKytdKXdoaWxlKC0xPHIuaW5kZXhPZigiICIrbysiICIpKXI9ci5yZXBsYWNlKCIgIitvKyIgIiwiICIpO2khPT0ocz12dChyKSkmJm4uc2V0QXR0cmlidXRlKCJjbGFzcyIscyl9cmV0dXJuIHRoaXN9LHRvZ2dsZUNsYXNzOmZ1bmN0aW9uKGksdCl7dmFyIG89dHlwZW9mIGksYT0ic3RyaW5nIj09PW98fEFycmF5LmlzQXJyYXkoaSk7cmV0dXJuImJvb2xlYW4iPT10eXBlb2YgdCYmYT90P3RoaXMuYWRkQ2xhc3MoaSk6dGhpcy5yZW1vdmVDbGFzcyhpKTptKGkpP3RoaXMuZWFjaChmdW5jdGlvbihlKXtTKHRoaXMpLnRvZ2dsZUNsYXNzKGkuY2FsbCh0aGlzLGUseXQodGhpcyksdCksdCl9KTp0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgZSx0LG4scjtpZihhKXt0PTAsbj1TKHRoaXMpLHI9bXQoaSk7d2hpbGUoZT1yW3QrK10pbi5oYXNDbGFzcyhlKT9uLnJlbW92ZUNsYXNzKGUpOm4uYWRkQ2xhc3MoZSl9ZWxzZSB2b2lkIDAhPT1pJiYiYm9vbGVhbiIhPT1vfHwoKGU9eXQodGhpcykpJiZZLnNldCh0aGlzLCJfX2NsYXNzTmFtZV9fIixlKSx0aGlzLnNldEF0dHJpYnV0ZSYmdGhpcy5zZXRBdHRyaWJ1dGUoImNsYXNzIixlfHwhMT09PWk/IiI6WS5nZXQodGhpcywiX19jbGFzc05hbWVfXyIpfHwiIikpfSl9LGhhc0NsYXNzOmZ1bmN0aW9uKGUpe3ZhciB0LG4scj0wO3Q9IiAiK2UrIiAiO3doaWxlKG49dGhpc1tyKytdKWlmKDE9PT1uLm5vZGVUeXBlJiYtMTwoIiAiK3Z0KHl0KG4pKSsiICIpLmluZGV4T2YodCkpcmV0dXJuITA7cmV0dXJuITF9fSk7dmFyIHh0PS9cci9nO1MuZm4uZXh0ZW5kKHt2YWw6ZnVuY3Rpb24obil7dmFyIHIsZSxpLHQ9dGhpc1swXTtyZXR1cm4gYXJndW1lbnRzLmxlbmd0aD8oaT1tKG4pLHRoaXMuZWFjaChmdW5jdGlvbihlKXt2YXIgdDsxPT09dGhpcy5ub2RlVHlwZSYmKG51bGw9PSh0PWk/bi5jYWxsKHRoaXMsZSxTKHRoaXMpLnZhbCgpKTpuKT90PSIiOiJudW1iZXIiPT10eXBlb2YgdD90Kz0iIjpBcnJheS5pc0FycmF5KHQpJiYodD1TLm1hcCh0LGZ1bmN0aW9uKGUpe3JldHVybiBudWxsPT1lPyIiOmUrIiJ9KSksKHI9Uy52YWxIb29rc1t0aGlzLnR5cGVdfHxTLnZhbEhvb2tzW3RoaXMubm9kZU5hbWUudG9Mb3dlckNhc2UoKV0pJiYic2V0ImluIHImJnZvaWQgMCE9PXIuc2V0KHRoaXMsdCwidmFsdWUiKXx8KHRoaXMudmFsdWU9dCkpfSkpOnQ/KHI9Uy52YWxIb29rc1t0LnR5cGVdfHxTLnZhbEhvb2tzW3Qubm9kZU5hbWUudG9Mb3dlckNhc2UoKV0pJiYiZ2V0ImluIHImJnZvaWQgMCE9PShlPXIuZ2V0KHQsInZhbHVlIikpP2U6InN0cmluZyI9PXR5cGVvZihlPXQudmFsdWUpP2UucmVwbGFjZSh4dCwiIik6bnVsbD09ZT8iIjplOnZvaWQgMH19KSxTLmV4dGVuZCh7dmFsSG9va3M6e29wdGlvbjp7Z2V0OmZ1bmN0aW9uKGUpe3ZhciB0PVMuZmluZC5hdHRyKGUsInZhbHVlIik7cmV0dXJuIG51bGwhPXQ/dDp2dChTLnRleHQoZSkpfX0sc2VsZWN0OntnZXQ6ZnVuY3Rpb24oZSl7dmFyIHQsbixyLGk9ZS5vcHRpb25zLG89ZS5zZWxlY3RlZEluZGV4LGE9InNlbGVjdC1vbmUiPT09ZS50eXBlLHM9YT9udWxsOltdLHU9YT9vKzE6aS5sZW5ndGg7Zm9yKHI9bzwwP3U6YT9vOjA7cjx1O3IrKylpZigoKG49aVtyXSkuc2VsZWN0ZWR8fHI9PT1vKSYmIW4uZGlzYWJsZWQmJighbi5wYXJlbnROb2RlLmRpc2FibGVkfHwhQShuLnBhcmVudE5vZGUsIm9wdGdyb3VwIikpKXtpZih0PVMobikudmFsKCksYSlyZXR1cm4gdDtzLnB1c2godCl9cmV0dXJuIHN9LHNldDpmdW5jdGlvbihlLHQpe3ZhciBuLHIsaT1lLm9wdGlvbnMsbz1TLm1ha2VBcnJheSh0KSxhPWkubGVuZ3RoO3doaWxlKGEtLSkoKHI9aVthXSkuc2VsZWN0ZWQ9LTE8Uy5pbkFycmF5KFMudmFsSG9va3Mub3B0aW9uLmdldChyKSxvKSkmJihuPSEwKTtyZXR1cm4gbnx8KGUuc2VsZWN0ZWRJbmRleD0tMSksb319fX0pLFMuZWFjaChbInJhZGlvIiwiY2hlY2tib3giXSxmdW5jdGlvbigpe1MudmFsSG9va3NbdGhpc109e3NldDpmdW5jdGlvbihlLHQpe2lmKEFycmF5LmlzQXJyYXkodCkpcmV0dXJuIGUuY2hlY2tlZD0tMTxTLmluQXJyYXkoUyhlKS52YWwoKSx0KX19LHkuY2hlY2tPbnx8KFMudmFsSG9va3NbdGhpc10uZ2V0PWZ1bmN0aW9uKGUpe3JldHVybiBudWxsPT09ZS5nZXRBdHRyaWJ1dGUoInZhbHVlIik/Im9uIjplLnZhbHVlfSl9KSx5LmZvY3VzaW49Im9uZm9jdXNpbiJpbiBDO3ZhciBidD0vXig/OmZvY3VzaW5mb2N1c3xmb2N1c291dGJsdXIpJC8sd3Q9ZnVuY3Rpb24oZSl7ZS5zdG9wUHJvcGFnYXRpb24oKX07Uy5leHRlbmQoUy5ldmVudCx7dHJpZ2dlcjpmdW5jdGlvbihlLHQsbixyKXt2YXIgaSxvLGEscyx1LGwsYyxmLHA9W258fEVdLGQ9di5jYWxsKGUsInR5cGUiKT9lLnR5cGU6ZSxoPXYuY2FsbChlLCJuYW1lc3BhY2UiKT9lLm5hbWVzcGFjZS5zcGxpdCgiLiIpOltdO2lmKG89Zj1hPW49bnx8RSwzIT09bi5ub2RlVHlwZSYmOCE9PW4ubm9kZVR5cGUmJiFidC50ZXN0KGQrUy5ldmVudC50cmlnZ2VyZWQpJiYoLTE8ZC5pbmRleE9mKCIuIikmJihkPShoPWQuc3BsaXQoIi4iKSkuc2hpZnQoKSxoLnNvcnQoKSksdT1kLmluZGV4T2YoIjoiKTwwJiYib24iK2QsKGU9ZVtTLmV4cGFuZG9dP2U6bmV3IFMuRXZlbnQoZCwib2JqZWN0Ij09dHlwZW9mIGUmJmUpKS5pc1RyaWdnZXI9cj8yOjMsZS5uYW1lc3BhY2U9aC5qb2luKCIuIiksZS5ybmFtZXNwYWNlPWUubmFtZXNwYWNlP25ldyBSZWdFeHAoIihefFxcLikiK2guam9pbigiXFwuKD86LipcXC58KSIpKyIoXFwufCQpIik6bnVsbCxlLnJlc3VsdD12b2lkIDAsZS50YXJnZXR8fChlLnRhcmdldD1uKSx0PW51bGw9PXQ/W2VdOlMubWFrZUFycmF5KHQsW2VdKSxjPVMuZXZlbnQuc3BlY2lhbFtkXXx8e30scnx8IWMudHJpZ2dlcnx8ITEhPT1jLnRyaWdnZXIuYXBwbHkobix0KSkpe2lmKCFyJiYhYy5ub0J1YmJsZSYmIXgobikpe2ZvcihzPWMuZGVsZWdhdGVUeXBlfHxkLGJ0LnRlc3QocytkKXx8KG89by5wYXJlbnROb2RlKTtvO289by5wYXJlbnROb2RlKXAucHVzaChvKSxhPW87YT09PShuLm93bmVyRG9jdW1lbnR8fEUpJiZwLnB1c2goYS5kZWZhdWx0Vmlld3x8YS5wYXJlbnRXaW5kb3d8fEMpfWk9MDt3aGlsZSgobz1wW2krK10pJiYhZS5pc1Byb3BhZ2F0aW9uU3RvcHBlZCgpKWY9byxlLnR5cGU9MTxpP3M6Yy5iaW5kVHlwZXx8ZCwobD0oWS5nZXQobywiZXZlbnRzIil8fE9iamVjdC5jcmVhdGUobnVsbCkpW2UudHlwZV0mJlkuZ2V0KG8sImhhbmRsZSIpKSYmbC5hcHBseShvLHQpLChsPXUmJm9bdV0pJiZsLmFwcGx5JiZWKG8pJiYoZS5yZXN1bHQ9bC5hcHBseShvLHQpLCExPT09ZS5yZXN1bHQmJmUucHJldmVudERlZmF1bHQoKSk7cmV0dXJuIGUudHlwZT1kLHJ8fGUuaXNEZWZhdWx0UHJldmVudGVkKCl8fGMuX2RlZmF1bHQmJiExIT09Yy5fZGVmYXVsdC5hcHBseShwLnBvcCgpLHQpfHwhVihuKXx8dSYmbShuW2RdKSYmIXgobikmJigoYT1uW3VdKSYmKG5bdV09bnVsbCksUy5ldmVudC50cmlnZ2VyZWQ9ZCxlLmlzUHJvcGFnYXRpb25TdG9wcGVkKCkmJmYuYWRkRXZlbnRMaXN0ZW5lcihkLHd0KSxuW2RdKCksZS5pc1Byb3BhZ2F0aW9uU3RvcHBlZCgpJiZmLnJlbW92ZUV2ZW50TGlzdGVuZXIoZCx3dCksUy5ldmVudC50cmlnZ2VyZWQ9dm9pZCAwLGEmJihuW3VdPWEpKSxlLnJlc3VsdH19LHNpbXVsYXRlOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcj1TLmV4dGVuZChuZXcgUy5FdmVudCxuLHt0eXBlOmUsaXNTaW11bGF0ZWQ6ITB9KTtTLmV2ZW50LnRyaWdnZXIocixudWxsLHQpfX0pLFMuZm4uZXh0ZW5kKHt0cmlnZ2VyOmZ1bmN0aW9uKGUsdCl7cmV0dXJuIHRoaXMuZWFjaChmdW5jdGlvbigpe1MuZXZlbnQudHJpZ2dlcihlLHQsdGhpcyl9KX0sdHJpZ2dlckhhbmRsZXI6ZnVuY3Rpb24oZSx0KXt2YXIgbj10aGlzWzBdO2lmKG4pcmV0dXJuIFMuZXZlbnQudHJpZ2dlcihlLHQsbiwhMCl9fSkseS5mb2N1c2lufHxTLmVhY2goe2ZvY3VzOiJmb2N1c2luIixibHVyOiJmb2N1c291dCJ9LGZ1bmN0aW9uKG4scil7dmFyIGk9ZnVuY3Rpb24oZSl7Uy5ldmVudC5zaW11bGF0ZShyLGUudGFyZ2V0LFMuZXZlbnQuZml4KGUpKX07Uy5ldmVudC5zcGVjaWFsW3JdPXtzZXR1cDpmdW5jdGlvbigpe3ZhciBlPXRoaXMub3duZXJEb2N1bWVudHx8dGhpcy5kb2N1bWVudHx8dGhpcyx0PVkuYWNjZXNzKGUscik7dHx8ZS5hZGRFdmVudExpc3RlbmVyKG4saSwhMCksWS5hY2Nlc3MoZSxyLCh0fHwwKSsxKX0sdGVhcmRvd246ZnVuY3Rpb24oKXt2YXIgZT10aGlzLm93bmVyRG9jdW1lbnR8fHRoaXMuZG9jdW1lbnR8fHRoaXMsdD1ZLmFjY2VzcyhlLHIpLTE7dD9ZLmFjY2VzcyhlLHIsdCk6KGUucmVtb3ZlRXZlbnRMaXN0ZW5lcihuLGksITApLFkucmVtb3ZlKGUscikpfX19KTt2YXIgVHQ9Qy5sb2NhdGlvbixDdD17Z3VpZDpEYXRlLm5vdygpfSxFdD0vXD8vO1MucGFyc2VYTUw9ZnVuY3Rpb24oZSl7dmFyIHQ7aWYoIWV8fCJzdHJpbmciIT10eXBlb2YgZSlyZXR1cm4gbnVsbDt0cnl7dD0obmV3IEMuRE9NUGFyc2VyKS5wYXJzZUZyb21TdHJpbmcoZSwidGV4dC94bWwiKX1jYXRjaChlKXt0PXZvaWQgMH1yZXR1cm4gdCYmIXQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoInBhcnNlcmVycm9yIikubGVuZ3RofHxTLmVycm9yKCJJbnZhbGlkIFhNTDogIitlKSx0fTt2YXIgU3Q9L1xbXF0kLyxrdD0vXHI/XG4vZyxBdD0vXig/OnN1Ym1pdHxidXR0b258aW1hZ2V8cmVzZXR8ZmlsZSkkL2ksTnQ9L14oPzppbnB1dHxzZWxlY3R8dGV4dGFyZWF8a2V5Z2VuKS9pO2Z1bmN0aW9uIER0KG4sZSxyLGkpe3ZhciB0O2lmKEFycmF5LmlzQXJyYXkoZSkpUy5lYWNoKGUsZnVuY3Rpb24oZSx0KXtyfHxTdC50ZXN0KG4pP2kobix0KTpEdChuKyJbIisoIm9iamVjdCI9PXR5cGVvZiB0JiZudWxsIT10P2U6IiIpKyJdIix0LHIsaSl9KTtlbHNlIGlmKHJ8fCJvYmplY3QiIT09dyhlKSlpKG4sZSk7ZWxzZSBmb3IodCBpbiBlKUR0KG4rIlsiK3QrIl0iLGVbdF0scixpKX1TLnBhcmFtPWZ1bmN0aW9uKGUsdCl7dmFyIG4scj1bXSxpPWZ1bmN0aW9uKGUsdCl7dmFyIG49bSh0KT90KCk6dDtyW3IubGVuZ3RoXT1lbmNvZGVVUklDb21wb25lbnQoZSkrIj0iK2VuY29kZVVSSUNvbXBvbmVudChudWxsPT1uPyIiOm4pfTtpZihudWxsPT1lKXJldHVybiIiO2lmKEFycmF5LmlzQXJyYXkoZSl8fGUuanF1ZXJ5JiYhUy5pc1BsYWluT2JqZWN0KGUpKVMuZWFjaChlLGZ1bmN0aW9uKCl7aSh0aGlzLm5hbWUsdGhpcy52YWx1ZSl9KTtlbHNlIGZvcihuIGluIGUpRHQobixlW25dLHQsaSk7cmV0dXJuIHIuam9pbigiJiIpfSxTLmZuLmV4dGVuZCh7c2VyaWFsaXplOmZ1bmN0aW9uKCl7cmV0dXJuIFMucGFyYW0odGhpcy5zZXJpYWxpemVBcnJheSgpKX0sc2VyaWFsaXplQXJyYXk6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5tYXAoZnVuY3Rpb24oKXt2YXIgZT1TLnByb3AodGhpcywiZWxlbWVudHMiKTtyZXR1cm4gZT9TLm1ha2VBcnJheShlKTp0aGlzfSkuZmlsdGVyKGZ1bmN0aW9uKCl7dmFyIGU9dGhpcy50eXBlO3JldHVybiB0aGlzLm5hbWUmJiFTKHRoaXMpLmlzKCI6ZGlzYWJsZWQiKSYmTnQudGVzdCh0aGlzLm5vZGVOYW1lKSYmIUF0LnRlc3QoZSkmJih0aGlzLmNoZWNrZWR8fCFwZS50ZXN0KGUpKX0pLm1hcChmdW5jdGlvbihlLHQpe3ZhciBuPVModGhpcykudmFsKCk7cmV0dXJuIG51bGw9PW4/bnVsbDpBcnJheS5pc0FycmF5KG4pP1MubWFwKG4sZnVuY3Rpb24oZSl7cmV0dXJue25hbWU6dC5uYW1lLHZhbHVlOmUucmVwbGFjZShrdCwiXHJcbiIpfX0pOntuYW1lOnQubmFtZSx2YWx1ZTpuLnJlcGxhY2Uoa3QsIlxyXG4iKX19KS5nZXQoKX19KTt2YXIganQ9LyUyMC9nLHF0PS8jLiokLyxMdD0vKFs/Jl0pXz1bXiZdKi8sSHQ9L14oLio/KTpbIFx0XSooW15cclxuXSopJC9nbSxPdD0vXig/OkdFVHxIRUFEKSQvLFB0PS9eXC9cLy8sUnQ9e30sTXQ9e30sSXQ9IiovIi5jb25jYXQoIioiKSxXdD1FLmNyZWF0ZUVsZW1lbnQoImEiKTtmdW5jdGlvbiBGdChvKXtyZXR1cm4gZnVuY3Rpb24oZSx0KXsic3RyaW5nIiE9dHlwZW9mIGUmJih0PWUsZT0iKiIpO3ZhciBuLHI9MCxpPWUudG9Mb3dlckNhc2UoKS5tYXRjaChQKXx8W107aWYobSh0KSl3aGlsZShuPWlbcisrXSkiKyI9PT1uWzBdPyhuPW4uc2xpY2UoMSl8fCIqIiwob1tuXT1vW25dfHxbXSkudW5zaGlmdCh0KSk6KG9bbl09b1tuXXx8W10pLnB1c2godCl9fWZ1bmN0aW9uIEJ0KHQsaSxvLGEpe3ZhciBzPXt9LHU9dD09PU10O2Z1bmN0aW9uIGwoZSl7dmFyIHI7cmV0dXJuIHNbZV09ITAsUy5lYWNoKHRbZV18fFtdLGZ1bmN0aW9uKGUsdCl7dmFyIG49dChpLG8sYSk7cmV0dXJuInN0cmluZyIhPXR5cGVvZiBufHx1fHxzW25dP3U/IShyPW4pOnZvaWQgMDooaS5kYXRhVHlwZXMudW5zaGlmdChuKSxsKG4pLCExKX0pLHJ9cmV0dXJuIGwoaS5kYXRhVHlwZXNbMF0pfHwhc1siKiJdJiZsKCIqIil9ZnVuY3Rpb24gJHQoZSx0KXt2YXIgbixyLGk9Uy5hamF4U2V0dGluZ3MuZmxhdE9wdGlvbnN8fHt9O2ZvcihuIGluIHQpdm9pZCAwIT09dFtuXSYmKChpW25dP2U6cnx8KHI9e30pKVtuXT10W25dKTtyZXR1cm4gciYmUy5leHRlbmQoITAsZSxyKSxlfVd0LmhyZWY9VHQuaHJlZixTLmV4dGVuZCh7YWN0aXZlOjAsbGFzdE1vZGlmaWVkOnt9LGV0YWc6e30sYWpheFNldHRpbmdzOnt1cmw6VHQuaHJlZix0eXBlOiJHRVQiLGlzTG9jYWw6L14oPzphYm91dHxhcHB8YXBwLXN0b3JhZ2V8ListZXh0ZW5zaW9ufGZpbGV8cmVzfHdpZGdldCk6JC8udGVzdChUdC5wcm90b2NvbCksZ2xvYmFsOiEwLHByb2Nlc3NEYXRhOiEwLGFzeW5jOiEwLGNvbnRlbnRUeXBlOiJhcHBsaWNhdGlvbi94LXd3dy1mb3JtLXVybGVuY29kZWQ7IGNoYXJzZXQ9VVRGLTgiLGFjY2VwdHM6eyIqIjpJdCx0ZXh0OiJ0ZXh0L3BsYWluIixodG1sOiJ0ZXh0L2h0bWwiLHhtbDoiYXBwbGljYXRpb24veG1sLCB0ZXh0L3htbCIsanNvbjoiYXBwbGljYXRpb24vanNvbiwgdGV4dC9qYXZhc2NyaXB0In0sY29udGVudHM6e3htbDovXGJ4bWxcYi8saHRtbDovXGJodG1sLyxqc29uOi9cYmpzb25cYi99LHJlc3BvbnNlRmllbGRzOnt4bWw6InJlc3BvbnNlWE1MIix0ZXh0OiJyZXNwb25zZVRleHQiLGpzb246InJlc3BvbnNlSlNPTiJ9LGNvbnZlcnRlcnM6eyIqIHRleHQiOlN0cmluZywidGV4dCBodG1sIjohMCwidGV4dCBqc29uIjpKU09OLnBhcnNlLCJ0ZXh0IHhtbCI6Uy5wYXJzZVhNTH0sZmxhdE9wdGlvbnM6e3VybDohMCxjb250ZXh0OiEwfX0sYWpheFNldHVwOmZ1bmN0aW9uKGUsdCl7cmV0dXJuIHQ/JHQoJHQoZSxTLmFqYXhTZXR0aW5ncyksdCk6JHQoUy5hamF4U2V0dGluZ3MsZSl9LGFqYXhQcmVmaWx0ZXI6RnQoUnQpLGFqYXhUcmFuc3BvcnQ6RnQoTXQpLGFqYXg6ZnVuY3Rpb24oZSx0KXsib2JqZWN0Ij09dHlwZW9mIGUmJih0PWUsZT12b2lkIDApLHQ9dHx8e307dmFyIGMsZixwLG4sZCxyLGgsZyxpLG8sdj1TLmFqYXhTZXR1cCh7fSx0KSx5PXYuY29udGV4dHx8dixtPXYuY29udGV4dCYmKHkubm9kZVR5cGV8fHkuanF1ZXJ5KT9TKHkpOlMuZXZlbnQseD1TLkRlZmVycmVkKCksYj1TLkNhbGxiYWNrcygib25jZSBtZW1vcnkiKSx3PXYuc3RhdHVzQ29kZXx8e30sYT17fSxzPXt9LHU9ImNhbmNlbGVkIixUPXtyZWFkeVN0YXRlOjAsZ2V0UmVzcG9uc2VIZWFkZXI6ZnVuY3Rpb24oZSl7dmFyIHQ7aWYoaCl7aWYoIW4pe249e307d2hpbGUodD1IdC5leGVjKHApKW5bdFsxXS50b0xvd2VyQ2FzZSgpKyIgIl09KG5bdFsxXS50b0xvd2VyQ2FzZSgpKyIgIl18fFtdKS5jb25jYXQodFsyXSl9dD1uW2UudG9Mb3dlckNhc2UoKSsiICJdfXJldHVybiBudWxsPT10P251bGw6dC5qb2luKCIsICIpfSxnZXRBbGxSZXNwb25zZUhlYWRlcnM6ZnVuY3Rpb24oKXtyZXR1cm4gaD9wOm51bGx9LHNldFJlcXVlc3RIZWFkZXI6ZnVuY3Rpb24oZSx0KXtyZXR1cm4gbnVsbD09aCYmKGU9c1tlLnRvTG93ZXJDYXNlKCldPXNbZS50b0xvd2VyQ2FzZSgpXXx8ZSxhW2VdPXQpLHRoaXN9LG92ZXJyaWRlTWltZVR5cGU6ZnVuY3Rpb24oZSl7cmV0dXJuIG51bGw9PWgmJih2Lm1pbWVUeXBlPWUpLHRoaXN9LHN0YXR1c0NvZGU6ZnVuY3Rpb24oZSl7dmFyIHQ7aWYoZSlpZihoKVQuYWx3YXlzKGVbVC5zdGF0dXNdKTtlbHNlIGZvcih0IGluIGUpd1t0XT1bd1t0XSxlW3RdXTtyZXR1cm4gdGhpc30sYWJvcnQ6ZnVuY3Rpb24oZSl7dmFyIHQ9ZXx8dTtyZXR1cm4gYyYmYy5hYm9ydCh0KSxsKDAsdCksdGhpc319O2lmKHgucHJvbWlzZShUKSx2LnVybD0oKGV8fHYudXJsfHxUdC5ocmVmKSsiIikucmVwbGFjZShQdCxUdC5wcm90b2NvbCsiLy8iKSx2LnR5cGU9dC5tZXRob2R8fHQudHlwZXx8di5tZXRob2R8fHYudHlwZSx2LmRhdGFUeXBlcz0odi5kYXRhVHlwZXx8IioiKS50b0xvd2VyQ2FzZSgpLm1hdGNoKFApfHxbIiJdLG51bGw9PXYuY3Jvc3NEb21haW4pe3I9RS5jcmVhdGVFbGVtZW50KCJhIik7dHJ5e3IuaHJlZj12LnVybCxyLmhyZWY9ci5ocmVmLHYuY3Jvc3NEb21haW49V3QucHJvdG9jb2wrIi8vIitXdC5ob3N0IT1yLnByb3RvY29sKyIvLyIrci5ob3N0fWNhdGNoKGUpe3YuY3Jvc3NEb21haW49ITB9fWlmKHYuZGF0YSYmdi5wcm9jZXNzRGF0YSYmInN0cmluZyIhPXR5cGVvZiB2LmRhdGEmJih2LmRhdGE9Uy5wYXJhbSh2LmRhdGEsdi50cmFkaXRpb25hbCkpLEJ0KFJ0LHYsdCxUKSxoKXJldHVybiBUO2ZvcihpIGluKGc9Uy5ldmVudCYmdi5nbG9iYWwpJiYwPT1TLmFjdGl2ZSsrJiZTLmV2ZW50LnRyaWdnZXIoImFqYXhTdGFydCIpLHYudHlwZT12LnR5cGUudG9VcHBlckNhc2UoKSx2Lmhhc0NvbnRlbnQ9IU90LnRlc3Qodi50eXBlKSxmPXYudXJsLnJlcGxhY2UocXQsIiIpLHYuaGFzQ29udGVudD92LmRhdGEmJnYucHJvY2Vzc0RhdGEmJjA9PT0odi5jb250ZW50VHlwZXx8IiIpLmluZGV4T2YoImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCIpJiYodi5kYXRhPXYuZGF0YS5yZXBsYWNlKGp0LCIrIikpOihvPXYudXJsLnNsaWNlKGYubGVuZ3RoKSx2LmRhdGEmJih2LnByb2Nlc3NEYXRhfHwic3RyaW5nIj09dHlwZW9mIHYuZGF0YSkmJihmKz0oRXQudGVzdChmKT8iJiI6Ij8iKSt2LmRhdGEsZGVsZXRlIHYuZGF0YSksITE9PT12LmNhY2hlJiYoZj1mLnJlcGxhY2UoTHQsIiQxIiksbz0oRXQudGVzdChmKT8iJiI6Ij8iKSsiXz0iK0N0Lmd1aWQrKytvKSx2LnVybD1mK28pLHYuaWZNb2RpZmllZCYmKFMubGFzdE1vZGlmaWVkW2ZdJiZULnNldFJlcXVlc3RIZWFkZXIoIklmLU1vZGlmaWVkLVNpbmNlIixTLmxhc3RNb2RpZmllZFtmXSksUy5ldGFnW2ZdJiZULnNldFJlcXVlc3RIZWFkZXIoIklmLU5vbmUtTWF0Y2giLFMuZXRhZ1tmXSkpLCh2LmRhdGEmJnYuaGFzQ29udGVudCYmITEhPT12LmNvbnRlbnRUeXBlfHx0LmNvbnRlbnRUeXBlKSYmVC5zZXRSZXF1ZXN0SGVhZGVyKCJDb250ZW50LVR5cGUiLHYuY29udGVudFR5cGUpLFQuc2V0UmVxdWVzdEhlYWRlcigiQWNjZXB0Iix2LmRhdGFUeXBlc1swXSYmdi5hY2NlcHRzW3YuZGF0YVR5cGVzWzBdXT92LmFjY2VwdHNbdi5kYXRhVHlwZXNbMF1dKygiKiIhPT12LmRhdGFUeXBlc1swXT8iLCAiK0l0KyI7IHE9MC4wMSI6IiIpOnYuYWNjZXB0c1siKiJdKSx2LmhlYWRlcnMpVC5zZXRSZXF1ZXN0SGVhZGVyKGksdi5oZWFkZXJzW2ldKTtpZih2LmJlZm9yZVNlbmQmJighMT09PXYuYmVmb3JlU2VuZC5jYWxsKHksVCx2KXx8aCkpcmV0dXJuIFQuYWJvcnQoKTtpZih1PSJhYm9ydCIsYi5hZGQodi5jb21wbGV0ZSksVC5kb25lKHYuc3VjY2VzcyksVC5mYWlsKHYuZXJyb3IpLGM9QnQoTXQsdix0LFQpKXtpZihULnJlYWR5U3RhdGU9MSxnJiZtLnRyaWdnZXIoImFqYXhTZW5kIixbVCx2XSksaClyZXR1cm4gVDt2LmFzeW5jJiYwPHYudGltZW91dCYmKGQ9Qy5zZXRUaW1lb3V0KGZ1bmN0aW9uKCl7VC5hYm9ydCgidGltZW91dCIpfSx2LnRpbWVvdXQpKTt0cnl7aD0hMSxjLnNlbmQoYSxsKX1jYXRjaChlKXtpZihoKXRocm93IGU7bCgtMSxlKX19ZWxzZSBsKC0xLCJObyBUcmFuc3BvcnQiKTtmdW5jdGlvbiBsKGUsdCxuLHIpe3ZhciBpLG8sYSxzLHUsbD10O2h8fChoPSEwLGQmJkMuY2xlYXJUaW1lb3V0KGQpLGM9dm9pZCAwLHA9cnx8IiIsVC5yZWFkeVN0YXRlPTA8ZT80OjAsaT0yMDA8PWUmJmU8MzAwfHwzMDQ9PT1lLG4mJihzPWZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG8sYSxzPWUuY29udGVudHMsdT1lLmRhdGFUeXBlczt3aGlsZSgiKiI9PT11WzBdKXUuc2hpZnQoKSx2b2lkIDA9PT1yJiYocj1lLm1pbWVUeXBlfHx0LmdldFJlc3BvbnNlSGVhZGVyKCJDb250ZW50LVR5cGUiKSk7aWYocilmb3IoaSBpbiBzKWlmKHNbaV0mJnNbaV0udGVzdChyKSl7dS51bnNoaWZ0KGkpO2JyZWFrfWlmKHVbMF1pbiBuKW89dVswXTtlbHNle2ZvcihpIGluIG4pe2lmKCF1WzBdfHxlLmNvbnZlcnRlcnNbaSsiICIrdVswXV0pe289aTticmVha31hfHwoYT1pKX1vPW98fGF9aWYobylyZXR1cm4gbyE9PXVbMF0mJnUudW5zaGlmdChvKSxuW29dfSh2LFQsbikpLCFpJiYtMTxTLmluQXJyYXkoInNjcmlwdCIsdi5kYXRhVHlwZXMpJiYodi5jb252ZXJ0ZXJzWyJ0ZXh0IHNjcmlwdCJdPWZ1bmN0aW9uKCl7fSkscz1mdW5jdGlvbihlLHQsbixyKXt2YXIgaSxvLGEscyx1LGw9e30sYz1lLmRhdGFUeXBlcy5zbGljZSgpO2lmKGNbMV0pZm9yKGEgaW4gZS5jb252ZXJ0ZXJzKWxbYS50b0xvd2VyQ2FzZSgpXT1lLmNvbnZlcnRlcnNbYV07bz1jLnNoaWZ0KCk7d2hpbGUobylpZihlLnJlc3BvbnNlRmllbGRzW29dJiYobltlLnJlc3BvbnNlRmllbGRzW29dXT10KSwhdSYmciYmZS5kYXRhRmlsdGVyJiYodD1lLmRhdGFGaWx0ZXIodCxlLmRhdGFUeXBlKSksdT1vLG89Yy5zaGlmdCgpKWlmKCIqIj09PW8pbz11O2Vsc2UgaWYoIioiIT09dSYmdSE9PW8pe2lmKCEoYT1sW3UrIiAiK29dfHxsWyIqICIrb10pKWZvcihpIGluIGwpaWYoKHM9aS5zcGxpdCgiICIpKVsxXT09PW8mJihhPWxbdSsiICIrc1swXV18fGxbIiogIitzWzBdXSkpeyEwPT09YT9hPWxbaV06ITAhPT1sW2ldJiYobz1zWzBdLGMudW5zaGlmdChzWzFdKSk7YnJlYWt9aWYoITAhPT1hKWlmKGEmJmVbInRocm93cyJdKXQ9YSh0KTtlbHNlIHRyeXt0PWEodCl9Y2F0Y2goZSl7cmV0dXJue3N0YXRlOiJwYXJzZXJlcnJvciIsZXJyb3I6YT9lOiJObyBjb252ZXJzaW9uIGZyb20gIit1KyIgdG8gIitvfX19cmV0dXJue3N0YXRlOiJzdWNjZXNzIixkYXRhOnR9fSh2LHMsVCxpKSxpPyh2LmlmTW9kaWZpZWQmJigodT1ULmdldFJlc3BvbnNlSGVhZGVyKCJMYXN0LU1vZGlmaWVkIikpJiYoUy5sYXN0TW9kaWZpZWRbZl09dSksKHU9VC5nZXRSZXNwb25zZUhlYWRlcigiZXRhZyIpKSYmKFMuZXRhZ1tmXT11KSksMjA0PT09ZXx8IkhFQUQiPT09di50eXBlP2w9Im5vY29udGVudCI6MzA0PT09ZT9sPSJub3Rtb2RpZmllZCI6KGw9cy5zdGF0ZSxvPXMuZGF0YSxpPSEoYT1zLmVycm9yKSkpOihhPWwsIWUmJmx8fChsPSJlcnJvciIsZTwwJiYoZT0wKSkpLFQuc3RhdHVzPWUsVC5zdGF0dXNUZXh0PSh0fHxsKSsiIixpP3gucmVzb2x2ZVdpdGgoeSxbbyxsLFRdKTp4LnJlamVjdFdpdGgoeSxbVCxsLGFdKSxULnN0YXR1c0NvZGUodyksdz12b2lkIDAsZyYmbS50cmlnZ2VyKGk/ImFqYXhTdWNjZXNzIjoiYWpheEVycm9yIixbVCx2LGk/bzphXSksYi5maXJlV2l0aCh5LFtULGxdKSxnJiYobS50cmlnZ2VyKCJhamF4Q29tcGxldGUiLFtULHZdKSwtLVMuYWN0aXZlfHxTLmV2ZW50LnRyaWdnZXIoImFqYXhTdG9wIikpKX1yZXR1cm4gVH0sZ2V0SlNPTjpmdW5jdGlvbihlLHQsbil7cmV0dXJuIFMuZ2V0KGUsdCxuLCJqc29uIil9LGdldFNjcmlwdDpmdW5jdGlvbihlLHQpe3JldHVybiBTLmdldChlLHZvaWQgMCx0LCJzY3JpcHQiKX19KSxTLmVhY2goWyJnZXQiLCJwb3N0Il0sZnVuY3Rpb24oZSxpKXtTW2ldPWZ1bmN0aW9uKGUsdCxuLHIpe3JldHVybiBtKHQpJiYocj1yfHxuLG49dCx0PXZvaWQgMCksUy5hamF4KFMuZXh0ZW5kKHt1cmw6ZSx0eXBlOmksZGF0YVR5cGU6cixkYXRhOnQsc3VjY2VzczpufSxTLmlzUGxhaW5PYmplY3QoZSkmJmUpKX19KSxTLmFqYXhQcmVmaWx0ZXIoZnVuY3Rpb24oZSl7dmFyIHQ7Zm9yKHQgaW4gZS5oZWFkZXJzKSJjb250ZW50LXR5cGUiPT09dC50b0xvd2VyQ2FzZSgpJiYoZS5jb250ZW50VHlwZT1lLmhlYWRlcnNbdF18fCIiKX0pLFMuX2V2YWxVcmw9ZnVuY3Rpb24oZSx0LG4pe3JldHVybiBTLmFqYXgoe3VybDplLHR5cGU6IkdFVCIsZGF0YVR5cGU6InNjcmlwdCIsY2FjaGU6ITAsYXN5bmM6ITEsZ2xvYmFsOiExLGNvbnZlcnRlcnM6eyJ0ZXh0IHNjcmlwdCI6ZnVuY3Rpb24oKXt9fSxkYXRhRmlsdGVyOmZ1bmN0aW9uKGUpe1MuZ2xvYmFsRXZhbChlLHQsbil9fSl9LFMuZm4uZXh0ZW5kKHt3cmFwQWxsOmZ1bmN0aW9uKGUpe3ZhciB0O3JldHVybiB0aGlzWzBdJiYobShlKSYmKGU9ZS5jYWxsKHRoaXNbMF0pKSx0PVMoZSx0aGlzWzBdLm93bmVyRG9jdW1lbnQpLmVxKDApLmNsb25lKCEwKSx0aGlzWzBdLnBhcmVudE5vZGUmJnQuaW5zZXJ0QmVmb3JlKHRoaXNbMF0pLHQubWFwKGZ1bmN0aW9uKCl7dmFyIGU9dGhpczt3aGlsZShlLmZpcnN0RWxlbWVudENoaWxkKWU9ZS5maXJzdEVsZW1lbnRDaGlsZDtyZXR1cm4gZX0pLmFwcGVuZCh0aGlzKSksdGhpc30sd3JhcElubmVyOmZ1bmN0aW9uKG4pe3JldHVybiBtKG4pP3RoaXMuZWFjaChmdW5jdGlvbihlKXtTKHRoaXMpLndyYXBJbm5lcihuLmNhbGwodGhpcyxlKSl9KTp0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgZT1TKHRoaXMpLHQ9ZS5jb250ZW50cygpO3QubGVuZ3RoP3Qud3JhcEFsbChuKTplLmFwcGVuZChuKX0pfSx3cmFwOmZ1bmN0aW9uKHQpe3ZhciBuPW0odCk7cmV0dXJuIHRoaXMuZWFjaChmdW5jdGlvbihlKXtTKHRoaXMpLndyYXBBbGwobj90LmNhbGwodGhpcyxlKTp0KX0pfSx1bndyYXA6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMucGFyZW50KGUpLm5vdCgiYm9keSIpLmVhY2goZnVuY3Rpb24oKXtTKHRoaXMpLnJlcGxhY2VXaXRoKHRoaXMuY2hpbGROb2Rlcyl9KSx0aGlzfX0pLFMuZXhwci5wc2V1ZG9zLmhpZGRlbj1mdW5jdGlvbihlKXtyZXR1cm4hUy5leHByLnBzZXVkb3MudmlzaWJsZShlKX0sUy5leHByLnBzZXVkb3MudmlzaWJsZT1mdW5jdGlvbihlKXtyZXR1cm4hIShlLm9mZnNldFdpZHRofHxlLm9mZnNldEhlaWdodHx8ZS5nZXRDbGllbnRSZWN0cygpLmxlbmd0aCl9LFMuYWpheFNldHRpbmdzLnhocj1mdW5jdGlvbigpe3RyeXtyZXR1cm4gbmV3IEMuWE1MSHR0cFJlcXVlc3R9Y2F0Y2goZSl7fX07dmFyIF90PXswOjIwMCwxMjIzOjIwNH0senQ9Uy5hamF4U2V0dGluZ3MueGhyKCk7eS5jb3JzPSEhenQmJiJ3aXRoQ3JlZGVudGlhbHMiaW4genQseS5hamF4PXp0PSEhenQsUy5hamF4VHJhbnNwb3J0KGZ1bmN0aW9uKGkpe3ZhciBvLGE7aWYoeS5jb3JzfHx6dCYmIWkuY3Jvc3NEb21haW4pcmV0dXJue3NlbmQ6ZnVuY3Rpb24oZSx0KXt2YXIgbixyPWkueGhyKCk7aWYoci5vcGVuKGkudHlwZSxpLnVybCxpLmFzeW5jLGkudXNlcm5hbWUsaS5wYXNzd29yZCksaS54aHJGaWVsZHMpZm9yKG4gaW4gaS54aHJGaWVsZHMpcltuXT1pLnhockZpZWxkc1tuXTtmb3IobiBpbiBpLm1pbWVUeXBlJiZyLm92ZXJyaWRlTWltZVR5cGUmJnIub3ZlcnJpZGVNaW1lVHlwZShpLm1pbWVUeXBlKSxpLmNyb3NzRG9tYWlufHxlWyJYLVJlcXVlc3RlZC1XaXRoIl18fChlWyJYLVJlcXVlc3RlZC1XaXRoIl09IlhNTEh0dHBSZXF1ZXN0IiksZSlyLnNldFJlcXVlc3RIZWFkZXIobixlW25dKTtvPWZ1bmN0aW9uKGUpe3JldHVybiBmdW5jdGlvbigpe28mJihvPWE9ci5vbmxvYWQ9ci5vbmVycm9yPXIub25hYm9ydD1yLm9udGltZW91dD1yLm9ucmVhZHlzdGF0ZWNoYW5nZT1udWxsLCJhYm9ydCI9PT1lP3IuYWJvcnQoKToiZXJyb3IiPT09ZT8ibnVtYmVyIiE9dHlwZW9mIHIuc3RhdHVzP3QoMCwiZXJyb3IiKTp0KHIuc3RhdHVzLHIuc3RhdHVzVGV4dCk6dChfdFtyLnN0YXR1c118fHIuc3RhdHVzLHIuc3RhdHVzVGV4dCwidGV4dCIhPT0oci5yZXNwb25zZVR5cGV8fCJ0ZXh0Iil8fCJzdHJpbmciIT10eXBlb2Ygci5yZXNwb25zZVRleHQ/e2JpbmFyeTpyLnJlc3BvbnNlfTp7dGV4dDpyLnJlc3BvbnNlVGV4dH0sci5nZXRBbGxSZXNwb25zZUhlYWRlcnMoKSkpfX0sci5vbmxvYWQ9bygpLGE9ci5vbmVycm9yPXIub250aW1lb3V0PW8oImVycm9yIiksdm9pZCAwIT09ci5vbmFib3J0P3Iub25hYm9ydD1hOnIub25yZWFkeXN0YXRlY2hhbmdlPWZ1bmN0aW9uKCl7ND09PXIucmVhZHlTdGF0ZSYmQy5zZXRUaW1lb3V0KGZ1bmN0aW9uKCl7byYmYSgpfSl9LG89bygiYWJvcnQiKTt0cnl7ci5zZW5kKGkuaGFzQ29udGVudCYmaS5kYXRhfHxudWxsKX1jYXRjaChlKXtpZihvKXRocm93IGV9fSxhYm9ydDpmdW5jdGlvbigpe28mJm8oKX19fSksUy5hamF4UHJlZmlsdGVyKGZ1bmN0aW9uKGUpe2UuY3Jvc3NEb21haW4mJihlLmNvbnRlbnRzLnNjcmlwdD0hMSl9KSxTLmFqYXhTZXR1cCh7YWNjZXB0czp7c2NyaXB0OiJ0ZXh0L2phdmFzY3JpcHQsIGFwcGxpY2F0aW9uL2phdmFzY3JpcHQsIGFwcGxpY2F0aW9uL2VjbWFzY3JpcHQsIGFwcGxpY2F0aW9uL3gtZWNtYXNjcmlwdCJ9LGNvbnRlbnRzOntzY3JpcHQ6L1xiKD86amF2YXxlY21hKXNjcmlwdFxiL30sY29udmVydGVyczp7InRleHQgc2NyaXB0IjpmdW5jdGlvbihlKXtyZXR1cm4gUy5nbG9iYWxFdmFsKGUpLGV9fX0pLFMuYWpheFByZWZpbHRlcigic2NyaXB0IixmdW5jdGlvbihlKXt2b2lkIDA9PT1lLmNhY2hlJiYoZS5jYWNoZT0hMSksZS5jcm9zc0RvbWFpbiYmKGUudHlwZT0iR0VUIil9KSxTLmFqYXhUcmFuc3BvcnQoInNjcmlwdCIsZnVuY3Rpb24obil7dmFyIHIsaTtpZihuLmNyb3NzRG9tYWlufHxuLnNjcmlwdEF0dHJzKXJldHVybntzZW5kOmZ1bmN0aW9uKGUsdCl7cj1TKCI8c2NyaXB0PiIpLmF0dHIobi5zY3JpcHRBdHRyc3x8e30pLnByb3Aoe2NoYXJzZXQ6bi5zY3JpcHRDaGFyc2V0LHNyYzpuLnVybH0pLm9uKCJsb2FkIGVycm9yIixpPWZ1bmN0aW9uKGUpe3IucmVtb3ZlKCksaT1udWxsLGUmJnQoImVycm9yIj09PWUudHlwZT80MDQ6MjAwLGUudHlwZSl9KSxFLmhlYWQuYXBwZW5kQ2hpbGQoclswXSl9LGFib3J0OmZ1bmN0aW9uKCl7aSYmaSgpfX19KTt2YXIgVXQsWHQ9W10sVnQ9Lyg9KVw/KD89JnwkKXxcP1w/LztTLmFqYXhTZXR1cCh7anNvbnA6ImNhbGxiYWNrIixqc29ucENhbGxiYWNrOmZ1bmN0aW9uKCl7dmFyIGU9WHQucG9wKCl8fFMuZXhwYW5kbysiXyIrQ3QuZ3VpZCsrO3JldHVybiB0aGlzW2VdPSEwLGV9fSksUy5hamF4UHJlZmlsdGVyKCJqc29uIGpzb25wIixmdW5jdGlvbihlLHQsbil7dmFyIHIsaSxvLGE9ITEhPT1lLmpzb25wJiYoVnQudGVzdChlLnVybCk/InVybCI6InN0cmluZyI9PXR5cGVvZiBlLmRhdGEmJjA9PT0oZS5jb250ZW50VHlwZXx8IiIpLmluZGV4T2YoImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCIpJiZWdC50ZXN0KGUuZGF0YSkmJiJkYXRhIik7aWYoYXx8Impzb25wIj09PWUuZGF0YVR5cGVzWzBdKXJldHVybiByPWUuanNvbnBDYWxsYmFjaz1tKGUuanNvbnBDYWxsYmFjayk/ZS5qc29ucENhbGxiYWNrKCk6ZS5qc29ucENhbGxiYWNrLGE/ZVthXT1lW2FdLnJlcGxhY2UoVnQsIiQxIityKTohMSE9PWUuanNvbnAmJihlLnVybCs9KEV0LnRlc3QoZS51cmwpPyImIjoiPyIpK2UuanNvbnArIj0iK3IpLGUuY29udmVydGVyc1sic2NyaXB0IGpzb24iXT1mdW5jdGlvbigpe3JldHVybiBvfHxTLmVycm9yKHIrIiB3YXMgbm90IGNhbGxlZCIpLG9bMF19LGUuZGF0YVR5cGVzWzBdPSJqc29uIixpPUNbcl0sQ1tyXT1mdW5jdGlvbigpe289YXJndW1lbnRzfSxuLmFsd2F5cyhmdW5jdGlvbigpe3ZvaWQgMD09PWk/UyhDKS5yZW1vdmVQcm9wKHIpOkNbcl09aSxlW3JdJiYoZS5qc29ucENhbGxiYWNrPXQuanNvbnBDYWxsYmFjayxYdC5wdXNoKHIpKSxvJiZtKGkpJiZpKG9bMF0pLG89aT12b2lkIDB9KSwic2NyaXB0In0pLHkuY3JlYXRlSFRNTERvY3VtZW50PSgoVXQ9RS5pbXBsZW1lbnRhdGlvbi5jcmVhdGVIVE1MRG9jdW1lbnQoIiIpLmJvZHkpLmlubmVySFRNTD0iPGZvcm0+PC9mb3JtPjxmb3JtPjwvZm9ybT4iLDI9PT1VdC5jaGlsZE5vZGVzLmxlbmd0aCksUy5wYXJzZUhUTUw9ZnVuY3Rpb24oZSx0LG4pe3JldHVybiJzdHJpbmciIT10eXBlb2YgZT9bXTooImJvb2xlYW4iPT10eXBlb2YgdCYmKG49dCx0PSExKSx0fHwoeS5jcmVhdGVIVE1MRG9jdW1lbnQ/KChyPSh0PUUuaW1wbGVtZW50YXRpb24uY3JlYXRlSFRNTERvY3VtZW50KCIiKSkuY3JlYXRlRWxlbWVudCgiYmFzZSIpKS5ocmVmPUUubG9jYXRpb24uaHJlZix0LmhlYWQuYXBwZW5kQ2hpbGQocikpOnQ9RSksbz0hbiYmW10sKGk9Ti5leGVjKGUpKT9bdC5jcmVhdGVFbGVtZW50KGlbMV0pXTooaT14ZShbZV0sdCxvKSxvJiZvLmxlbmd0aCYmUyhvKS5yZW1vdmUoKSxTLm1lcmdlKFtdLGkuY2hpbGROb2RlcykpKTt2YXIgcixpLG99LFMuZm4ubG9hZD1mdW5jdGlvbihlLHQsbil7dmFyIHIsaSxvLGE9dGhpcyxzPWUuaW5kZXhPZigiICIpO3JldHVybi0xPHMmJihyPXZ0KGUuc2xpY2UocykpLGU9ZS5zbGljZSgwLHMpKSxtKHQpPyhuPXQsdD12b2lkIDApOnQmJiJvYmplY3QiPT10eXBlb2YgdCYmKGk9IlBPU1QiKSwwPGEubGVuZ3RoJiZTLmFqYXgoe3VybDplLHR5cGU6aXx8IkdFVCIsZGF0YVR5cGU6Imh0bWwiLGRhdGE6dH0pLmRvbmUoZnVuY3Rpb24oZSl7bz1hcmd1bWVudHMsYS5odG1sKHI/UygiPGRpdj4iKS5hcHBlbmQoUy5wYXJzZUhUTUwoZSkpLmZpbmQocik6ZSl9KS5hbHdheXMobiYmZnVuY3Rpb24oZSx0KXthLmVhY2goZnVuY3Rpb24oKXtuLmFwcGx5KHRoaXMsb3x8W2UucmVzcG9uc2VUZXh0LHQsZV0pfSl9KSx0aGlzfSxTLmV4cHIucHNldWRvcy5hbmltYXRlZD1mdW5jdGlvbih0KXtyZXR1cm4gUy5ncmVwKFMudGltZXJzLGZ1bmN0aW9uKGUpe3JldHVybiB0PT09ZS5lbGVtfSkubGVuZ3RofSxTLm9mZnNldD17c2V0T2Zmc2V0OmZ1bmN0aW9uKGUsdCxuKXt2YXIgcixpLG8sYSxzLHUsbD1TLmNzcyhlLCJwb3NpdGlvbiIpLGM9UyhlKSxmPXt9OyJzdGF0aWMiPT09bCYmKGUuc3R5bGUucG9zaXRpb249InJlbGF0aXZlIikscz1jLm9mZnNldCgpLG89Uy5jc3MoZSwidG9wIiksdT1TLmNzcyhlLCJsZWZ0IiksKCJhYnNvbHV0ZSI9PT1sfHwiZml4ZWQiPT09bCkmJi0xPChvK3UpLmluZGV4T2YoImF1dG8iKT8oYT0ocj1jLnBvc2l0aW9uKCkpLnRvcCxpPXIubGVmdCk6KGE9cGFyc2VGbG9hdChvKXx8MCxpPXBhcnNlRmxvYXQodSl8fDApLG0odCkmJih0PXQuY2FsbChlLG4sUy5leHRlbmQoe30scykpKSxudWxsIT10LnRvcCYmKGYudG9wPXQudG9wLXMudG9wK2EpLG51bGwhPXQubGVmdCYmKGYubGVmdD10LmxlZnQtcy5sZWZ0K2kpLCJ1c2luZyJpbiB0P3QudXNpbmcuY2FsbChlLGYpOigibnVtYmVyIj09dHlwZW9mIGYudG9wJiYoZi50b3ArPSJweCIpLCJudW1iZXIiPT10eXBlb2YgZi5sZWZ0JiYoZi5sZWZ0Kz0icHgiKSxjLmNzcyhmKSl9fSxTLmZuLmV4dGVuZCh7b2Zmc2V0OmZ1bmN0aW9uKHQpe2lmKGFyZ3VtZW50cy5sZW5ndGgpcmV0dXJuIHZvaWQgMD09PXQ/dGhpczp0aGlzLmVhY2goZnVuY3Rpb24oZSl7Uy5vZmZzZXQuc2V0T2Zmc2V0KHRoaXMsdCxlKX0pO3ZhciBlLG4scj10aGlzWzBdO3JldHVybiByP3IuZ2V0Q2xpZW50UmVjdHMoKS5sZW5ndGg/KGU9ci5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKSxuPXIub3duZXJEb2N1bWVudC5kZWZhdWx0Vmlldyx7dG9wOmUudG9wK24ucGFnZVlPZmZzZXQsbGVmdDplLmxlZnQrbi5wYWdlWE9mZnNldH0pOnt0b3A6MCxsZWZ0OjB9OnZvaWQgMH0scG9zaXRpb246ZnVuY3Rpb24oKXtpZih0aGlzWzBdKXt2YXIgZSx0LG4scj10aGlzWzBdLGk9e3RvcDowLGxlZnQ6MH07aWYoImZpeGVkIj09PVMuY3NzKHIsInBvc2l0aW9uIikpdD1yLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpO2Vsc2V7dD10aGlzLm9mZnNldCgpLG49ci5vd25lckRvY3VtZW50LGU9ci5vZmZzZXRQYXJlbnR8fG4uZG9jdW1lbnRFbGVtZW50O3doaWxlKGUmJihlPT09bi5ib2R5fHxlPT09bi5kb2N1bWVudEVsZW1lbnQpJiYic3RhdGljIj09PVMuY3NzKGUsInBvc2l0aW9uIikpZT1lLnBhcmVudE5vZGU7ZSYmZSE9PXImJjE9PT1lLm5vZGVUeXBlJiYoKGk9UyhlKS5vZmZzZXQoKSkudG9wKz1TLmNzcyhlLCJib3JkZXJUb3BXaWR0aCIsITApLGkubGVmdCs9Uy5jc3MoZSwiYm9yZGVyTGVmdFdpZHRoIiwhMCkpfXJldHVybnt0b3A6dC50b3AtaS50b3AtUy5jc3MociwibWFyZ2luVG9wIiwhMCksbGVmdDp0LmxlZnQtaS5sZWZ0LVMuY3NzKHIsIm1hcmdpbkxlZnQiLCEwKX19fSxvZmZzZXRQYXJlbnQ6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5tYXAoZnVuY3Rpb24oKXt2YXIgZT10aGlzLm9mZnNldFBhcmVudDt3aGlsZShlJiYic3RhdGljIj09PVMuY3NzKGUsInBvc2l0aW9uIikpZT1lLm9mZnNldFBhcmVudDtyZXR1cm4gZXx8cmV9KX19KSxTLmVhY2goe3Njcm9sbExlZnQ6InBhZ2VYT2Zmc2V0IixzY3JvbGxUb3A6InBhZ2VZT2Zmc2V0In0sZnVuY3Rpb24odCxpKXt2YXIgbz0icGFnZVlPZmZzZXQiPT09aTtTLmZuW3RdPWZ1bmN0aW9uKGUpe3JldHVybiAkKHRoaXMsZnVuY3Rpb24oZSx0LG4pe3ZhciByO2lmKHgoZSk/cj1lOjk9PT1lLm5vZGVUeXBlJiYocj1lLmRlZmF1bHRWaWV3KSx2b2lkIDA9PT1uKXJldHVybiByP3JbaV06ZVt0XTtyP3Iuc2Nyb2xsVG8obz9yLnBhZ2VYT2Zmc2V0Om4sbz9uOnIucGFnZVlPZmZzZXQpOmVbdF09bn0sdCxlLGFyZ3VtZW50cy5sZW5ndGgpfX0pLFMuZWFjaChbInRvcCIsImxlZnQiXSxmdW5jdGlvbihlLG4pe1MuY3NzSG9va3Nbbl09JGUoeS5waXhlbFBvc2l0aW9uLGZ1bmN0aW9uKGUsdCl7aWYodClyZXR1cm4gdD1CZShlLG4pLE1lLnRlc3QodCk/UyhlKS5wb3NpdGlvbigpW25dKyJweCI6dH0pfSksUy5lYWNoKHtIZWlnaHQ6ImhlaWdodCIsV2lkdGg6IndpZHRoIn0sZnVuY3Rpb24oYSxzKXtTLmVhY2goe3BhZGRpbmc6ImlubmVyIithLGNvbnRlbnQ6cywiIjoib3V0ZXIiK2F9LGZ1bmN0aW9uKHIsbyl7Uy5mbltvXT1mdW5jdGlvbihlLHQpe3ZhciBuPWFyZ3VtZW50cy5sZW5ndGgmJihyfHwiYm9vbGVhbiIhPXR5cGVvZiBlKSxpPXJ8fCghMD09PWV8fCEwPT09dD8ibWFyZ2luIjoiYm9yZGVyIik7cmV0dXJuICQodGhpcyxmdW5jdGlvbihlLHQsbil7dmFyIHI7cmV0dXJuIHgoZSk/MD09PW8uaW5kZXhPZigib3V0ZXIiKT9lWyJpbm5lciIrYV06ZS5kb2N1bWVudC5kb2N1bWVudEVsZW1lbnRbImNsaWVudCIrYV06OT09PWUubm9kZVR5cGU/KHI9ZS5kb2N1bWVudEVsZW1lbnQsTWF0aC5tYXgoZS5ib2R5WyJzY3JvbGwiK2FdLHJbInNjcm9sbCIrYV0sZS5ib2R5WyJvZmZzZXQiK2FdLHJbIm9mZnNldCIrYV0sclsiY2xpZW50IithXSkpOnZvaWQgMD09PW4/Uy5jc3MoZSx0LGkpOlMuc3R5bGUoZSx0LG4saSl9LHMsbj9lOnZvaWQgMCxuKX19KX0pLFMuZWFjaChbImFqYXhTdGFydCIsImFqYXhTdG9wIiwiYWpheENvbXBsZXRlIiwiYWpheEVycm9yIiwiYWpheFN1Y2Nlc3MiLCJhamF4U2VuZCJdLGZ1bmN0aW9uKGUsdCl7Uy5mblt0XT1mdW5jdGlvbihlKXtyZXR1cm4gdGhpcy5vbih0LGUpfX0pLFMuZm4uZXh0ZW5kKHtiaW5kOmZ1bmN0aW9uKGUsdCxuKXtyZXR1cm4gdGhpcy5vbihlLG51bGwsdCxuKX0sdW5iaW5kOmZ1bmN0aW9uKGUsdCl7cmV0dXJuIHRoaXMub2ZmKGUsbnVsbCx0KX0sZGVsZWdhdGU6ZnVuY3Rpb24oZSx0LG4scil7cmV0dXJuIHRoaXMub24odCxlLG4scil9LHVuZGVsZWdhdGU6ZnVuY3Rpb24oZSx0LG4pe3JldHVybiAxPT09YXJndW1lbnRzLmxlbmd0aD90aGlzLm9mZihlLCIqKiIpOnRoaXMub2ZmKHQsZXx8IioqIixuKX0saG92ZXI6ZnVuY3Rpb24oZSx0KXtyZXR1cm4gdGhpcy5tb3VzZWVudGVyKGUpLm1vdXNlbGVhdmUodHx8ZSl9fSksUy5lYWNoKCJibHVyIGZvY3VzIGZvY3VzaW4gZm9jdXNvdXQgcmVzaXplIHNjcm9sbCBjbGljayBkYmxjbGljayBtb3VzZWRvd24gbW91c2V1cCBtb3VzZW1vdmUgbW91c2VvdmVyIG1vdXNlb3V0IG1vdXNlZW50ZXIgbW91c2VsZWF2ZSBjaGFuZ2Ugc2VsZWN0IHN1Ym1pdCBrZXlkb3duIGtleXByZXNzIGtleXVwIGNvbnRleHRtZW51Ii5zcGxpdCgiICIpLGZ1bmN0aW9uKGUsbil7Uy5mbltuXT1mdW5jdGlvbihlLHQpe3JldHVybiAwPGFyZ3VtZW50cy5sZW5ndGg/dGhpcy5vbihuLG51bGwsZSx0KTp0aGlzLnRyaWdnZXIobil9fSk7dmFyIEd0PS9eW1xzXHVGRUZGXHhBMF0rfFtcc1x1RkVGRlx4QTBdKyQvZztTLnByb3h5PWZ1bmN0aW9uKGUsdCl7dmFyIG4scixpO2lmKCJzdHJpbmciPT10eXBlb2YgdCYmKG49ZVt0XSx0PWUsZT1uKSxtKGUpKXJldHVybiByPXMuY2FsbChhcmd1bWVudHMsMiksKGk9ZnVuY3Rpb24oKXtyZXR1cm4gZS5hcHBseSh0fHx0aGlzLHIuY29uY2F0KHMuY2FsbChhcmd1bWVudHMpKSl9KS5ndWlkPWUuZ3VpZD1lLmd1aWR8fFMuZ3VpZCsrLGl9LFMuaG9sZFJlYWR5PWZ1bmN0aW9uKGUpe2U/Uy5yZWFkeVdhaXQrKzpTLnJlYWR5KCEwKX0sUy5pc0FycmF5PUFycmF5LmlzQXJyYXksUy5wYXJzZUpTT049SlNPTi5wYXJzZSxTLm5vZGVOYW1lPUEsUy5pc0Z1bmN0aW9uPW0sUy5pc1dpbmRvdz14LFMuY2FtZWxDYXNlPVgsUy50eXBlPXcsUy5ub3c9RGF0ZS5ub3csUy5pc051bWVyaWM9ZnVuY3Rpb24oZSl7dmFyIHQ9Uy50eXBlKGUpO3JldHVybigibnVtYmVyIj09PXR8fCJzdHJpbmciPT09dCkmJiFpc05hTihlLXBhcnNlRmxvYXQoZSkpfSxTLnRyaW09ZnVuY3Rpb24oZSl7cmV0dXJuIG51bGw9PWU/IiI6KGUrIiIpLnJlcGxhY2UoR3QsIiIpfSwiZnVuY3Rpb24iPT10eXBlb2YgZGVmaW5lJiZkZWZpbmUuYW1kJiZkZWZpbmUoImpxdWVyeSIsW10sZnVuY3Rpb24oKXtyZXR1cm4gU30pO3ZhciBZdD1DLmpRdWVyeSxRdD1DLiQ7cmV0dXJuIFMubm9Db25mbGljdD1mdW5jdGlvbihlKXtyZXR1cm4gQy4kPT09UyYmKEMuJD1RdCksZSYmQy5qUXVlcnk9PT1TJiYoQy5qUXVlcnk9WXQpLFN9LCJ1bmRlZmluZWQiPT10eXBlb2YgZSYmKEMualF1ZXJ5PUMuJD1TKSxTfSk7Cg=="; var letteringBase64 = exports.letteringBase64 = "KGZ1bmN0aW9uKCQpewoJZnVuY3Rpb24gaW5qZWN0b3IodCwgc3BsaXR0ZXIsIGtsYXNzLCBhZnRlcikgewoJCXZhciB0ZXh0ID0gdC50ZXh0KCkKCQksIGEgPSB0ZXh0LnNwbGl0KHNwbGl0dGVyKQoJCSwgaW5qZWN0ID0gJyc7CgkJaWYgKGEubGVuZ3RoKSB7CgkJCSQoYSkuZWFjaChmdW5jdGlvbihpLCBpdGVtKSB7CgkJCQlpbmplY3QgKz0gJzxzcGFuIGNsYXNzPSInK2tsYXNzKyhpKzEpKyciIGFyaWEtaGlkZGVuPSJ0cnVlIj4nK2l0ZW0rJzwvc3Bhbj4nK2FmdGVyOwoJCQl9KTsKCQkJdC5hdHRyKCdhcmlhLWxhYmVsJyx0ZXh0KQoJCQkuZW1wdHkoKQoJCQkuYXBwZW5kKGluamVjdCkKCgkJfQoJfQoKCgl2YXIgbWV0aG9kcyA9IHsKCQlpbml0IDogZnVuY3Rpb24oKSB7CgoJCQlyZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uKCkgewoJCQkJaW5qZWN0b3IoJCh0aGlzKSwgJycsICdjaGFyJywgJycpOwoJCQl9KTsKCgkJfSwKCgkJd29yZHMgOiBmdW5jdGlvbigpIHsKCgkJCXJldHVybiB0aGlzLmVhY2goZnVuY3Rpb24oKSB7CgkJCQlpbmplY3RvcigkKHRoaXMpLCAnICcsICd3b3JkJywgJyAnKTsKCQkJfSk7CgoJCX0sCgoJCWxpbmVzIDogZnVuY3Rpb24oKSB7CgoJCQlyZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uKCkgewoJCQkJdmFyIHIgPSAiZWVmZWMzMDMwNzlhZDE3NDA1Yzg4OWUwOTJlMTA1YjAiOwoJCQkJLy8gQmVjYXVzZSBpdCdzIGhhcmQgdG8gc3BsaXQgYSA8YnIvPiB0YWcgY29uc2lzdGVudGx5IGFjcm9zcyBicm93c2VycywKCQkJCS8vICgqYWhlbSogSUUgKmFoZW0qKSwgd2UgcmVwbGFjZSBhbGwgPGJyLz4gaW5zdGFuY2VzIHdpdGggYW4gbWQ1IGhhc2gKCQkJCS8vIChvZiB0aGUgd29yZCAic3BsaXQiKS4gIElmIHlvdSdyZSB0cnlpbmcgdG8gdXNlIHRoaXMgcGx1Z2luIG9uIHRoYXQKCQkJCS8vIG1kNSBoYXNoIHN0cmluZywgaXQgd2lsbCBmYWlsIGJlY2F1c2UgeW91J3JlIGJlaW5nIHJpZGljdWxvdXMuCgkJCQlpbmplY3RvcigkKHRoaXMpLmNoaWxkcmVuKCJiciIpLnJlcGxhY2VXaXRoKHIpLmVuZCgpLCByLCAnbGluZScsICcnKTsKCQkJfSk7CgoJCX0KCX07CgoJJC5mbi5sZXR0ZXJpbmcgPSBmdW5jdGlvbiggbWV0aG9kICkgewoJCS8vIE1ldGhvZCBjYWxsaW5nIGxvZ2ljCgkJaWYgKCBtZXRob2QgJiYgbWV0aG9kc1ttZXRob2RdICkgewoJCQlyZXR1cm4gbWV0aG9kc1sgbWV0aG9kIF0uYXBwbHkoIHRoaXMsIFtdLnNsaWNlLmNhbGwoIGFyZ3VtZW50cywgMSApKTsKCQl9IGVsc2UgaWYgKCBtZXRob2QgPT09ICdsZXR0ZXJzJyB8fCAhIG1ldGhvZCApIHsKCQkJcmV0dXJuIG1ldGhvZHMuaW5pdC5hcHBseSggdGhpcywgW10uc2xpY2UuY2FsbCggYXJndW1lbnRzLCAwICkgKTsgLy8gYWx3YXlzIHBhc3MgYW4gYXJyYXkKCQl9CgkJJC5lcnJvciggJ01ldGhvZCAnICsgIG1ldGhvZCArICcgZG9lcyBub3QgZXhpc3Qgb24galF1ZXJ5LmxldHRlcmluZycgKTsKCQlyZXR1cm4gdGhpczsKCX07Cgp9KShqUXVlcnkpOw=="; var columnizerBase64 = exports.columnizerBase64 = "KGZ1bmN0aW9uKCQpeyQuZm4uY29sdW1uaXplPWZ1bmN0aW9uKG9wdGlvbnMpe3RoaXMuY29scz1bXTt0aGlzLm9mZnNldD0wO3RoaXMuYmVmb3JlPVtdO3RoaXMubGFzdE90aGVyPTA7dGhpcy5wcmV2TWF4PTA7dGhpcy5kZWJ1Zz0wO3RoaXMuc2V0Q29sdW1uU3RhcnQ9bnVsbDt0aGlzLmVsaXBzaXNUZXh0PScnO3ZhciBkZWZhdWx0cz17d2lkdGg6NDAwLGNvbHVtbnM6ZmFsc2UsYnVpbGRPbmNlOmZhbHNlLG92ZXJmbG93OmZhbHNlLGRvbmVGdW5jOmZ1bmN0aW9uKCl7fSx0YXJnZXQ6ZmFsc2UsaWdub3JlSW1hZ2VMb2FkaW5nOnRydWUsY29sdW1uRmxvYXQ6ImxlZnQiLGxhc3ROZXZlclRhbGxlc3Q6ZmFsc2UsYWNjdXJhY3k6ZmFsc2UscHJlY2lzZTpmYWxzZSxtYW51YWxCcmVha3M6ZmFsc2UsY3NzQ2xhc3NQcmVmaXg6IiIsZWxpcHNpc1RleHQ6Jy4uLicsZGVidWc6MH07b3B0aW9ucz0kLmV4dGVuZChkZWZhdWx0cyxvcHRpb25zKTtpZih0eXBlb2Yob3B0aW9ucy53aWR0aCk9PSJzdHJpbmciKXtvcHRpb25zLndpZHRoPXBhcnNlSW50KG9wdGlvbnMud2lkdGgsMTApO2lmKGlzTmFOKG9wdGlvbnMud2lkdGgpKXtvcHRpb25zLndpZHRoPWRlZmF1bHRzLndpZHRoO319CmlmKHR5cGVvZiBvcHRpb25zLnNldENvbHVtblN0YXJ0PT0nZnVuY3Rpb24nKXt0aGlzLnNldENvbHVtblN0YXJ0PW9wdGlvbnMuc2V0Q29sdW1uU3RhcnQ7fQppZih0eXBlb2Ygb3B0aW9ucy5lbGlwc2lzVGV4dD09J3N0cmluZycpe3RoaXMuZWxpcHNpc1RleHQ9b3B0aW9ucy5lbGlwc2lzVGV4dDt9CmlmKG9wdGlvbnMuZGVidWcpe3RoaXMuZGVidWc9b3B0aW9ucy5kZWJ1Zzt9CmlmKCFvcHRpb25zLnNldFdpZHRoKXtpZihvcHRpb25zLnByZWNpc2Upe29wdGlvbnMuc2V0V2lkdGg9ZnVuY3Rpb24obnVtQ29scyl7cmV0dXJuIDEwMC9udW1Db2xzO307fWVsc2V7b3B0aW9ucy5zZXRXaWR0aD1mdW5jdGlvbihudW1Db2xzKXtyZXR1cm4gTWF0aC5mbG9vcigxMDAvbnVtQ29scyk7fTt9fQpmdW5jdGlvbiBhcHBlbmRTYWZlKCR0YXJnZXQsJGVsZW0pe3RyeXskdGFyZ2V0LmFwcGVuZCgkZWxlbSk7fWNhdGNoKGUpeyR0YXJnZXRbMF0uYXBwZW5kQ2hpbGQoJGVsZW1bMF0pO319CnJldHVybiB0aGlzLmVhY2goZnVuY3Rpb24oKXt2YXIgJGluQm94PW9wdGlvbnMudGFyZ2V0PyQob3B0aW9ucy50YXJnZXQpOiQodGhpcyk7dmFyIG1heEhlaWdodD0kKHRoaXMpLmhlaWdodCgpO3ZhciAkY2FjaGU9JCgnPGRpdj48L2Rpdj4nKTt2YXIgbGFzdFdpZHRoPTA7dmFyIGNvbHVtbml6aW5nPWZhbHNlO3ZhciBtYW51YWxCcmVha3M9b3B0aW9ucy5tYW51YWxCcmVha3M7dmFyIGNzc0NsYXNzUHJlZml4PWRlZmF1bHRzLmNzc0NsYXNzUHJlZml4O2lmKHR5cGVvZihvcHRpb25zLmNzc0NsYXNzUHJlZml4KT09InN0cmluZyIpe2Nzc0NsYXNzUHJlZml4PW9wdGlvbnMuY3NzQ2xhc3NQcmVmaXg7fQp2YXIgYWRqdXN0bWVudD0wO2FwcGVuZFNhZmUoJGNhY2hlLCQodGhpcykuY29udGVudHMoKS5jbG9uZSh0cnVlKSk7aWYoIW9wdGlvbnMuaWdub3JlSW1hZ2VMb2FkaW5nJiYhb3B0aW9ucy50YXJnZXQpe2lmKCEkaW5Cb3guZGF0YSgiaW1hZ2VMb2FkZWQiKSl7JGluQm94LmRhdGEoImltYWdlTG9hZGVkIix0cnVlKTtpZigkKHRoaXMpLmZpbmQoImltZyIpLmxlbmd0aD4wKXt2YXIgZnVuYz1mdW5jdGlvbigkaW5Cb3gsJGNhY2hlKXtyZXR1cm4gZnVuY3Rpb24oKXtpZighJGluQm94LmRhdGEoImZpcnN0SW1hZ2VMb2FkZWQiKSl7JGluQm94LmRhdGEoImZpcnN0SW1hZ2VMb2FkZWQiLCJ0cnVlIik7YXBwZW5kU2FmZSgkaW5Cb3guZW1wdHkoKSwkY2FjaGUuY2hpbGRyZW4oKS5jbG9uZSh0cnVlKSk7JGluQm94LmNvbHVtbml6ZShvcHRpb25zKTt9fTt9KCQodGhpcyksJGNhY2hlKTskKHRoaXMpLmZpbmQoImltZyIpLm9uZSgibG9hZCIsZnVuYyk7JCh0aGlzKS5maW5kKCJpbWciKS5vbmUoImFib3J0IixmdW5jKTtyZXR1cm47fX19CiRpbkJveC5lbXB0eSgpO2NvbHVtbml6ZUl0KCk7aWYoIW9wdGlvbnMuYnVpbGRPbmNlKXskKHdpbmRvdykucmVzaXplKGZ1bmN0aW9uKCl7aWYoIW9wdGlvbnMuYnVpbGRPbmNlKXtpZigkaW5Cb3guZGF0YSgidGltZW91dCIpKXtjbGVhclRpbWVvdXQoJGluQm94LmRhdGEoInRpbWVvdXQiKSk7fQokaW5Cb3guZGF0YSgidGltZW91dCIsc2V0VGltZW91dChjb2x1bW5pemVJdCwyMDApKTt9fSk7fQpmdW5jdGlvbiBwcmVmaXhUaGVDbGFzc05hbWUoY2xhc3NOYW1lLHdpdGhEb3Qpe3ZhciBkb3Q9d2l0aERvdD8iLiI6IiI7aWYoY3NzQ2xhc3NQcmVmaXgubGVuZ3RoKXtyZXR1cm4gZG90K2Nzc0NsYXNzUHJlZml4KyItIitjbGFzc05hbWU7fQpyZXR1cm4gZG90K2NsYXNzTmFtZTt9CmZ1bmN0aW9uIGNvbHVtbml6ZSgkcHV0SW5IZXJlLCRwdWxsT3V0SGVyZSwkcGFyZW50Q29sdW1uLHRhcmdldEhlaWdodCl7d2hpbGUoKG1hbnVhbEJyZWFrc3x8JHBhcmVudENvbHVtbi5oZWlnaHQoKTx0YXJnZXRIZWlnaHQpJiYkcHVsbE91dEhlcmVbMF0uY2hpbGROb2Rlcy5sZW5ndGgpe3ZhciBub2RlPSRwdWxsT3V0SGVyZVswXS5jaGlsZE5vZGVzWzBdO2lmKCQobm9kZSkuZmluZChwcmVmaXhUaGVDbGFzc05hbWUoImNvbHVtbmJyZWFrIix0cnVlKSkubGVuZ3RoKXtyZXR1cm47fQppZigkKG5vZGUpLmhhc0NsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgiY29sdW1uYnJlYWsiKSkpe3JldHVybjt9CmFwcGVuZFNhZmUoJHB1dEluSGVyZSwkKG5vZGUpKTt9CmlmKCRwdXRJbkhlcmVbMF0uY2hpbGROb2Rlcy5sZW5ndGg9PT0wKXJldHVybjt2YXIga2lkcz0kcHV0SW5IZXJlWzBdLmNoaWxkTm9kZXM7dmFyIGxhc3RLaWQ9a2lkc1traWRzLmxlbmd0aC0xXTskcHV0SW5IZXJlWzBdLnJlbW92ZUNoaWxkKGxhc3RLaWQpO3ZhciAkaXRlbT0kKGxhc3RLaWQpO2lmKCRpdGVtWzBdLm5vZGVUeXBlPT0zKXt2YXIgb1RleHQ9JGl0ZW1bMF0ubm9kZVZhbHVlO3ZhciBjb3VudGVyMj1vcHRpb25zLndpZHRoLzE4O2lmKG9wdGlvbnMuYWNjdXJhY3kpCmNvdW50ZXIyPW9wdGlvbnMuYWNjdXJhY3k7dmFyIGNvbHVtblRleHQ7dmFyIGxhdGVzdFRleHROb2RlPW51bGw7d2hpbGUoJHBhcmVudENvbHVtbi5oZWlnaHQoKTx0YXJnZXRIZWlnaHQmJm9UZXh0Lmxlbmd0aCl7dmFyIGluZGV4T2ZTcGFjZT1vVGV4dC5pbmRleE9mKCcgJyxjb3VudGVyMik7aWYoaW5kZXhPZlNwYWNlIT0tMSl7Y29sdW1uVGV4dD1vVGV4dC5zdWJzdHJpbmcoMCxpbmRleE9mU3BhY2UpO31lbHNle2NvbHVtblRleHQ9b1RleHQ7fQpsYXRlc3RUZXh0Tm9kZT1kb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShjb2x1bW5UZXh0KTthcHBlbmRTYWZlKCRwdXRJbkhlcmUsJChsYXRlc3RUZXh0Tm9kZSkpO2lmKG9UZXh0Lmxlbmd0aD5jb3VudGVyMiYmaW5kZXhPZlNwYWNlIT0tMSl7b1RleHQ9b1RleHQuc3Vic3RyaW5nKGluZGV4T2ZTcGFjZSk7fWVsc2V7b1RleHQ9IiI7fX0KaWYoJHBhcmVudENvbHVtbi5oZWlnaHQoKT49dGFyZ2V0SGVpZ2h0JiZsYXRlc3RUZXh0Tm9kZSE9PW51bGwpeyRwdXRJbkhlcmVbMF0ucmVtb3ZlQ2hpbGQobGF0ZXN0VGV4dE5vZGUpO29UZXh0PWxhdGVzdFRleHROb2RlLm5vZGVWYWx1ZStvVGV4dDt9CmlmKG9UZXh0Lmxlbmd0aCl7JGl0ZW1bMF0ubm9kZVZhbHVlPW9UZXh0O31lbHNle3JldHVybiBmYWxzZTt9fQppZigkcHVsbE91dEhlcmUuY29udGVudHMoKS5sZW5ndGgpeyRwdWxsT3V0SGVyZS5wcmVwZW5kKCRpdGVtKTt9ZWxzZXthcHBlbmRTYWZlKCRwdWxsT3V0SGVyZSwkaXRlbSk7fQpyZXR1cm4gJGl0ZW1bMF0ubm9kZVR5cGU9PTM7fQpmdW5jdGlvbiBzcGxpdCgkcHV0SW5IZXJlLCRwdWxsT3V0SGVyZSwkcGFyZW50Q29sdW1uLHRhcmdldEhlaWdodCl7aWYoJHB1dEluSGVyZS5jb250ZW50cygiOmxhc3QiKS5maW5kKHByZWZpeFRoZUNsYXNzTmFtZSgiY29sdW1uYnJlYWsiLHRydWUpKS5sZW5ndGgpe3JldHVybjt9CmlmKCRwdXRJbkhlcmUuY29udGVudHMoIjpsYXN0IikuaGFzQ2xhc3MocHJlZml4VGhlQ2xhc3NOYW1lKCJjb2x1bW5icmVhayIpKSl7cmV0dXJuO30KaWYoJHB1bGxPdXRIZXJlLmNvbnRlbnRzKCkubGVuZ3RoKXt2YXIgJGNsb25lTWU9JHB1bGxPdXRIZXJlLmNvbnRlbnRzKCI6Zmlyc3QiKTtpZih0eXBlb2YgJGNsb25lTWUuZ2V0KDApPT0ndW5kZWZpbmVkJ3x8JGNsb25lTWUuZ2V0KDApLm5vZGVUeXBlIT0xKXJldHVybjt2YXIgJGNsb25lPSRjbG9uZU1lLmNsb25lKHRydWUpO2lmKCRjbG9uZU1lLmhhc0NsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgiY29sdW1uYnJlYWsiKSkpe2FwcGVuZFNhZmUoJHB1dEluSGVyZSwkY2xvbmUpOyRjbG9uZU1lLnJlbW92ZSgpO31lbHNlIGlmKG1hbnVhbEJyZWFrcyl7YXBwZW5kU2FmZSgkcHV0SW5IZXJlLCRjbG9uZSk7JGNsb25lTWUucmVtb3ZlKCk7fWVsc2UgaWYoJGNsb25lLmdldCgwKS5ub2RlVHlwZT09MSYmISRjbG9uZS5oYXNDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoImRvbnRlbmQiKSkpe2FwcGVuZFNhZmUoJHB1dEluSGVyZSwkY2xvbmUpO2lmKCRjbG9uZS5pcygiaW1nIikmJiRwYXJlbnRDb2x1bW4uaGVpZ2h0KCk8dGFyZ2V0SGVpZ2h0KzIwKXskY2xvbmVNZS5yZW1vdmUoKTt9ZWxzZSBpZigkY2xvbmVNZS5oYXNDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoImRvbnRzcGxpdCIpKSYmJHBhcmVudENvbHVtbi5oZWlnaHQoKTx0YXJnZXRIZWlnaHQrMjApeyRjbG9uZU1lLnJlbW92ZSgpO31lbHNlIGlmKCRjbG9uZS5pcygiaW1nIil8fCRjbG9uZU1lLmhhc0NsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgiZG9udHNwbGl0IikpKXskY2xvbmUucmVtb3ZlKCk7fWVsc2V7JGNsb25lLmVtcHR5KCk7aWYoIWNvbHVtbml6ZSgkY2xvbmUsJGNsb25lTWUsJHBhcmVudENvbHVtbix0YXJnZXRIZWlnaHQpKXskY2xvbmVNZS5hZGRDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoInNwbGl0IikpO2lmKCRjbG9uZU1lLmdldCgwKS50YWdOYW1lPT0nT0wnKXt2YXIgc3RhcnRXaXRoPSRjbG9uZS5nZXQoMCkuY2hpbGRFbGVtZW50Q291bnQrJGNsb25lLmdldCgwKS5zdGFydDskY2xvbmVNZS5hdHRyKCdzdGFydCcsc3RhcnRXaXRoKzEpO30KaWYoJGNsb25lTWUuY2hpbGRyZW4oKS5sZW5ndGgpe3NwbGl0KCRjbG9uZSwkY2xvbmVNZSwkcGFyZW50Q29sdW1uLHRhcmdldEhlaWdodCk7fX1lbHNleyRjbG9uZU1lLmFkZENsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgic3BsaXQiKSk7fQppZigkY2xvbmUuZ2V0KDApLmNoaWxkTm9kZXMubGVuZ3RoPT09MCl7JGNsb25lLnJlbW92ZSgpOyRjbG9uZU1lLnJlbW92ZUNsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgic3BsaXQiKSk7fX19fX0KZnVuY3Rpb24gc2luZ2xlQ29sdW1uaXplSXQoKXtpZigkaW5Cb3guZGF0YSgiY29sdW1uaXplZCIpJiYkaW5Cb3guY2hpbGRyZW4oKS5sZW5ndGg9PTEpe3JldHVybjt9CiRpbkJveC5kYXRhKCJjb2x1bW5pemVkIix0cnVlKTskaW5Cb3guZGF0YSgiY29sdW1uaXppbmciLHRydWUpOyRpbkJveC5lbXB0eSgpOyRpbkJveC5hcHBlbmQoJCgiPGRpdiBjbGFzcz0nIgorcHJlZml4VGhlQ2xhc3NOYW1lKCJmaXJzdCIpKyIgIgorcHJlZml4VGhlQ2xhc3NOYW1lKCJsYXN0IikrIiAiCitwcmVmaXhUaGVDbGFzc05hbWUoImNvbHVtbiIpKyIgIgorIicgc3R5bGU9J3dpZHRoOjEwMCU7IGZsb2F0OiAiK29wdGlvbnMuY29sdW1uRmxvYXQrIjsnPjwvZGl2PiIpKTskY29sPSRpbkJveC5jaGlsZHJlbigpLmVxKCRpbkJveC5jaGlsZHJlbigpLmxlbmd0aC0xKTskZGVzdHJveWFibGU9JGNhY2hlLmNsb25lKHRydWUpO2lmKG9wdGlvbnMub3ZlcmZsb3cpe3RhcmdldEhlaWdodD1vcHRpb25zLm92ZXJmbG93LmhlaWdodDtjb2x1bW5pemUoJGNvbCwkZGVzdHJveWFibGUsJGNvbCx0YXJnZXRIZWlnaHQpO2lmKCEkZGVzdHJveWFibGUuY29udGVudHMoKS5maW5kKCI6Zmlyc3QtY2hpbGQiKS5oYXNDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoImRvbnRlbmQiKSkpe3NwbGl0KCRjb2wsJGRlc3Ryb3lhYmxlLCRjb2wsdGFyZ2V0SGVpZ2h0KTt9CndoaWxlKCRjb2wuY29udGVudHMoIjpsYXN0IikubGVuZ3RoJiZjaGVja0RvbnRFbmRDb2x1bW4oJGNvbC5jb250ZW50cygiOmxhc3QiKS5nZXQoMCkpKXt2YXIgJGxhc3RLaWQ9JGNvbC5jb250ZW50cygiOmxhc3QiKTskbGFzdEtpZC5yZW1vdmUoKTskZGVzdHJveWFibGUucHJlcGVuZCgkbGFzdEtpZCk7fQp2YXIgaHRtbD0iIjt2YXIgZGl2PWRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ0RJVicpO3doaWxlKCRkZXN0cm95YWJsZVswXS5jaGlsZE5vZGVzLmxlbmd0aD4wKXt2YXIga2lkPSRkZXN0cm95YWJsZVswXS5jaGlsZE5vZGVzWzBdO2lmKGtpZC5hdHRyaWJ1dGVzKXtmb3IodmFyIGk9MDtpPGtpZC5hdHRyaWJ1dGVzLmxlbmd0aDtpKyspe2lmKGtpZC5hdHRyaWJ1dGVzW2ldLm5vZGVOYW1lLmluZGV4T2YoImpRdWVyeSIpPT09MCl7a2lkLnJlbW92ZUF0dHJpYnV0ZShraWQuYXR0cmlidXRlc1tpXS5ub2RlTmFtZSk7fX19CmRpdi5pbm5lckhUTUw9IiI7ZGl2LmFwcGVuZENoaWxkKCRkZXN0cm95YWJsZVswXS5jaGlsZE5vZGVzWzBdKTtodG1sKz1kaXYuaW5uZXJIVE1MO30KdmFyIG92ZXJmbG93PSQob3B0aW9ucy5vdmVyZmxvdy5pZClbMF07b3ZlcmZsb3cuaW5uZXJIVE1MPWh0bWw7fWVsc2V7YXBwZW5kU2FmZSgkY29sLCRkZXN0cm95YWJsZS5jb250ZW50cygpKTt9CiRpbkJveC5kYXRhKCJjb2x1bW5pemluZyIsZmFsc2UpO2lmKG9wdGlvbnMub3ZlcmZsb3cmJm9wdGlvbnMub3ZlcmZsb3cuZG9uZUZ1bmMpe29wdGlvbnMub3ZlcmZsb3cuZG9uZUZ1bmMoKTt9Cm9wdGlvbnMuZG9uZUZ1bmMoKTt9CmZ1bmN0aW9uIGNoZWNrRG9udEVuZENvbHVtbihkb20pe2lmKGRvbS5ub2RlVHlwZT09Myl7aWYoL15ccyskLy50ZXN0KGRvbS5ub2RlVmFsdWUpKXtpZighZG9tLnByZXZpb3VzU2libGluZylyZXR1cm4gZmFsc2U7cmV0dXJuIGNoZWNrRG9udEVuZENvbHVtbihkb20ucHJldmlvdXNTaWJsaW5nKTt9CnJldHVybiBmYWxzZTt9CmlmKGRvbS5ub2RlVHlwZSE9MSlyZXR1cm4gZmFsc2U7aWYoJChkb20pLmhhc0NsYXNzKHByZWZpeFRoZUNsYXNzTmFtZSgiZG9udGVuZCIpKSlyZXR1cm4gdHJ1ZTtpZihkb20uY2hpbGROb2Rlcy5sZW5ndGg9PT0wKXJldHVybiBmYWxzZTtyZXR1cm4gY2hlY2tEb250RW5kQ29sdW1uKGRvbS5jaGlsZE5vZGVzW2RvbS5jaGlsZE5vZGVzLmxlbmd0aC0xXSk7fQpmdW5jdGlvbiBjb2x1bW5pemVJdCgpe2FkanVzdG1lbnQ9MDtpZihsYXN0V2lkdGg9PSRpbkJveC53aWR0aCgpKXJldHVybjtsYXN0V2lkdGg9JGluQm94LndpZHRoKCk7dmFyIG51bUNvbHM9TWF0aC5yb3VuZCgkaW5Cb3gud2lkdGgoKS9vcHRpb25zLndpZHRoKTt2YXIgb3B0aW9uV2lkdGg9b3B0aW9ucy53aWR0aDt2YXIgb3B0aW9uSGVpZ2h0PW9wdGlvbnMuaGVpZ2h0O2lmKG9wdGlvbnMuY29sdW1ucyludW1Db2xzPW9wdGlvbnMuY29sdW1ucztpZihtYW51YWxCcmVha3Mpe251bUNvbHM9JGNhY2hlLmZpbmQocHJlZml4VGhlQ2xhc3NOYW1lKCJjb2x1bW5icmVhayIsdHJ1ZSkpLmxlbmd0aCsxO29wdGlvbldpZHRoPWZhbHNlO30KaWYobnVtQ29sczw9MSl7cmV0dXJuIHNpbmdsZUNvbHVtbml6ZUl0KCk7fQppZigkaW5Cb3guZGF0YSgiY29sdW1uaXppbmciKSlyZXR1cm47JGluQm94LmRhdGEoImNvbHVtbml6ZWQiLHRydWUpOyRpbkJveC5kYXRhKCJjb2x1bW5pemluZyIsdHJ1ZSk7JGluQm94LmVtcHR5KCk7JGluQm94LmFwcGVuZCgkKCI8ZGl2IHN0eWxlPSd3aWR0aDoiK29wdGlvbnMuc2V0V2lkdGgobnVtQ29scykrIiU7IGZsb2F0OiAiK29wdGlvbnMuY29sdW1uRmxvYXQrIjsnPjwvZGl2PiIpKTskY29sPSRpbkJveC5jaGlsZHJlbigiOmxhc3QiKTthcHBlbmRTYWZlKCRjb2wsJGNhY2hlLmNsb25lKCkpO21heEhlaWdodD0kY29sLmhlaWdodCgpOyRpbkJveC5lbXB0eSgpO3ZhciB0YXJnZXRIZWlnaHQ9bWF4SGVpZ2h0L251bUNvbHM7dmFyIGZpcnN0VGltZT10cnVlO3ZhciBtYXhMb29wcz0zO3ZhciBzY3JvbGxIb3Jpem9udGFsbHk9ZmFsc2U7aWYob3B0aW9ucy5vdmVyZmxvdyl7bWF4TG9vcHM9MTt0YXJnZXRIZWlnaHQ9b3B0aW9ucy5vdmVyZmxvdy5oZWlnaHQ7fWVsc2UgaWYob3B0aW9uSGVpZ2h0JiZvcHRpb25XaWR0aCl7bWF4TG9vcHM9MTt0YXJnZXRIZWlnaHQ9b3B0aW9uSGVpZ2h0O3Njcm9sbEhvcml6b250YWxseT10cnVlO30KZm9yKHZhciBsb29wQ291bnQ9MDtsb29wQ291bnQ8bWF4TG9vcHMmJmxvb3BDb3VudDwyMDtsb29wQ291bnQrKyl7JGluQm94LmVtcHR5KCk7dmFyICRkZXN0cm95YWJsZSxjbGFzc05hbWUsJGNvbCwkbGFzdEtpZDt0cnl7JGRlc3Ryb3lhYmxlPSRjYWNoZS5jbG9uZSh0cnVlKTt9Y2F0Y2goZSl7JGRlc3Ryb3lhYmxlPSRjYWNoZS5jbG9uZSgpO30KJGRlc3Ryb3lhYmxlLmNzcygidmlzaWJpbGl0eSIsImhpZGRlbiIpO2Zvcih2YXIgaT0wO2k8bnVtQ29scztpKyspe2NsYXNzTmFtZT0oaT09PTApP3ByZWZpeFRoZUNsYXNzTmFtZSgiZmlyc3QiKToiIjtjbGFzc05hbWUrPSIgIitwcmVmaXhUaGVDbGFzc05hbWUoImNvbHVtbiIpO2NsYXNzTmFtZT0oaT09bnVtQ29scy0xKT8ocHJlZml4VGhlQ2xhc3NOYW1lKCJsYXN0IikrIiAiK2NsYXNzTmFtZSk6Y2xhc3NOYW1lOyRpbkJveC5hcHBlbmQoJCgiPGRpdiBjbGFzcz0nIitjbGFzc05hbWUrIicgc3R5bGU9J3dpZHRoOiIrb3B0aW9ucy5zZXRXaWR0aChudW1Db2xzKSsiJTsgZmxvYXQ6ICIrb3B0aW9ucy5jb2x1bW5GbG9hdCsiOyc+PC9kaXY+IikpO30KaT0wO3doaWxlKGk8bnVtQ29scy0ob3B0aW9ucy5vdmVyZmxvdz8wOjEpfHxzY3JvbGxIb3Jpem9udGFsbHkmJiRkZXN0cm95YWJsZS5jb250ZW50cygpLmxlbmd0aCl7aWYoJGluQm94LmNoaWxkcmVuKCkubGVuZ3RoPD1pKXskaW5Cb3guYXBwZW5kKCQoIjxkaXYgY2xhc3M9JyIrY2xhc3NOYW1lKyInIHN0eWxlPSd3aWR0aDoiK29wdGlvbnMuc2V0V2lkdGgobnVtQ29scykrIiU7IGZsb2F0OiAiK29wdGlvbnMuY29sdW1uRmxvYXQrIjsnPjwvZGl2PiIpKTt9CiRjb2w9JGluQm94LmNoaWxkcmVuKCkuZXEoaSk7aWYoc2Nyb2xsSG9yaXpvbnRhbGx5KXskY29sLndpZHRoKG9wdGlvbldpZHRoKyJweCIpO30KY29sdW1uaXplKCRjb2wsJGRlc3Ryb3lhYmxlLCRjb2wsdGFyZ2V0SGVpZ2h0KTtzcGxpdCgkY29sLCRkZXN0cm95YWJsZSwkY29sLHRhcmdldEhlaWdodCk7d2hpbGUoJGNvbC5jb250ZW50cygiOmxhc3QiKS5sZW5ndGgmJmNoZWNrRG9udEVuZENvbHVtbigkY29sLmNvbnRlbnRzKCI6bGFzdCIpLmdldCgwKSkpeyRsYXN0S2lkPSRjb2wuY29udGVudHMoIjpsYXN0Iik7JGxhc3RLaWQucmVtb3ZlKCk7JGRlc3Ryb3lhYmxlLnByZXBlbmQoJGxhc3RLaWQpO30KaSsrO2lmKCRjb2wuY29udGVudHMoKS5sZW5ndGg9PT0wJiYkZGVzdHJveWFibGUuY29udGVudHMoKS5sZW5ndGgpeyRjb2wuYXBwZW5kKCRkZXN0cm95YWJsZS5jb250ZW50cygiOmZpcnN0IikpO31lbHNlIGlmKGk9PW51bUNvbHMtKG9wdGlvbnMub3ZlcmZsb3c/MDoxKSYmIW9wdGlvbnMub3ZlcmZsb3cpe2lmKCRkZXN0cm95YWJsZS5maW5kKHByZWZpeFRoZUNsYXNzTmFtZSgiY29sdW1uYnJlYWsiLHRydWUpKS5sZW5ndGgpe251bUNvbHMrKzt9fX0KaWYob3B0aW9ucy5vdmVyZmxvdyYmIXNjcm9sbEhvcml6b250YWxseSl7dmFyIElFNj1mYWxzZTt2YXIgSUU3PShkb2N1bWVudC5hbGwpJiYobmF2aWdhdG9yLmFwcFZlcnNpb24uaW5kZXhPZigiTVNJRSA3LiIpIT0tMSk7aWYoSUU2fHxJRTcpe3ZhciBodG1sPSIiO3ZhciBkaXY9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnRElWJyk7d2hpbGUoJGRlc3Ryb3lhYmxlWzBdLmNoaWxkTm9kZXMubGVuZ3RoPjApe3ZhciBraWQ9JGRlc3Ryb3lhYmxlWzBdLmNoaWxkTm9kZXNbMF07Zm9yKGk9MDtpPGtpZC5hdHRyaWJ1dGVzLmxlbmd0aDtpKyspe2lmKGtpZC5hdHRyaWJ1dGVzW2ldLm5vZGVOYW1lLmluZGV4T2YoImpRdWVyeSIpPT09MCl7a2lkLnJlbW92ZUF0dHJpYnV0ZShraWQuYXR0cmlidXRlc1tpXS5ub2RlTmFtZSk7fX0KZGl2LmlubmVySFRNTD0iIjtkaXYuYXBwZW5kQ2hpbGQoJGRlc3Ryb3lhYmxlWzBdLmNoaWxkTm9kZXNbMF0pO2h0bWwrPWRpdi5pbm5lckhUTUw7fQp2YXIgb3ZlcmZsb3c9JChvcHRpb25zLm92ZXJmbG93LmlkKVswXTtvdmVyZmxvdy5pbm5lckhUTUw9aHRtbDt9ZWxzZXskKG9wdGlvbnMub3ZlcmZsb3cuaWQpLmVtcHR5KCkuYXBwZW5kKCRkZXN0cm95YWJsZS5jb250ZW50cygpLmNsb25lKHRydWUpKTt9fWVsc2UgaWYoIXNjcm9sbEhvcml6b250YWxseSl7JGNvbD0kaW5Cb3guY2hpbGRyZW4oKS5lcSgkaW5Cb3guY2hpbGRyZW4oKS5sZW5ndGgtMSk7JGRlc3Ryb3lhYmxlLmNvbnRlbnRzKCkuZWFjaChmdW5jdGlvbigpeyRjb2wuYXBwZW5kKCQodGhpcykpO30pO3ZhciBhZnRlckg9JGNvbC5oZWlnaHQoKTt2YXIgZGlmZj1hZnRlckgtdGFyZ2V0SGVpZ2h0O3ZhciB0b3RhbEg9MDt2YXIgbWluPTEwMDAwMDAwO3ZhciBtYXg9MDt2YXIgbGFzdElzTWF4PWZhbHNlO3ZhciBudW1iZXJPZkNvbHVtbnNUaGF0RG9udEVuZEluQUNvbHVtbkJyZWFrPTA7JGluQm94LmNoaWxkcmVuKCkuZWFjaChmdW5jdGlvbigkaW5Cb3gpe3JldHVybiBmdW5jdGlvbigkaXRlbSl7dmFyICRjb2w9JGluQm94LmNoaWxkcmVuKCkuZXEoJGl0ZW0pO3ZhciBlbmRzSW5CcmVhaz0kY29sLmNoaWxkcmVuKCI6bGFzdCIpLmZpbmQocHJlZml4VGhlQ2xhc3NOYW1lKCJjb2x1bW5icmVhayIsdHJ1ZSkpLmxlbmd0aDtpZighZW5kc0luQnJlYWspe3ZhciBoPSRjb2wuaGVpZ2h0KCk7bGFzdElzTWF4PWZhbHNlO3RvdGFsSCs9aDtpZihoPm1heCl7bWF4PWg7bGFzdElzTWF4PXRydWU7fQppZihoPG1pbiltaW49aDtudW1iZXJPZkNvbHVtbnNUaGF0RG9udEVuZEluQUNvbHVtbkJyZWFrKys7fX07fSgkaW5Cb3gpKTt2YXIgYXZnSD10b3RhbEgvbnVtYmVyT2ZDb2x1bW5zVGhhdERvbnRFbmRJbkFDb2x1bW5CcmVhaztpZih0b3RhbEg9PT0wKXtsb29wQ291bnQ9bWF4TG9vcHM7fWVsc2UgaWYob3B0aW9ucy5sYXN0TmV2ZXJUYWxsZXN0JiZsYXN0SXNNYXgpe2FkanVzdG1lbnQrPTU7dGFyZ2V0SGVpZ2h0PXRhcmdldEhlaWdodCszMDtpZihsb29wQ291bnQ9PW1heExvb3BzLTEpbWF4TG9vcHMrKzt9ZWxzZSBpZihtYXgtbWluPjMwKXt0YXJnZXRIZWlnaHQ9YXZnSCszMDt9ZWxzZSBpZihNYXRoLmFicyhhdmdILXRhcmdldEhlaWdodCk+MjApe3RhcmdldEhlaWdodD1hdmdIO31lbHNle2xvb3BDb3VudD1tYXhMb29wczt9fWVsc2V7JGluQm94LmNoaWxkcmVuKCkuZWFjaChmdW5jdGlvbihpKXskY29sPSRpbkJveC5jaGlsZHJlbigpLmVxKGkpOyRjb2wud2lkdGgob3B0aW9uV2lkdGgrInB4Iik7aWYoaT09PTApeyRjb2wuYWRkQ2xhc3MocHJlZml4VGhlQ2xhc3NOYW1lKCJmaXJzdCIpKTt9ZWxzZSBpZihpPT0kaW5Cb3guY2hpbGRyZW4oKS5sZW5ndGgtMSl7JGNvbC5hZGRDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoImxhc3QiKSk7fWVsc2V7JGNvbC5yZW1vdmVDbGFzcyhwcmVmaXhUaGVDbGFzc05hbWUoImZpcnN0IikpOyRjb2wucmVtb3ZlQ2xhc3MocHJlZml4VGhlQ2xhc3NOYW1lKCJsYXN0IikpO319KTskaW5Cb3gud2lkdGgoJGluQm94LmNoaWxkcmVuKCkubGVuZ3RoKm9wdGlvbldpZHRoKyJweCIpO30KJGluQm94LmFwcGVuZCgkKCI8YnIgc3R5bGU9J2NsZWFyOmJvdGg7Jz4iKSk7fQokaW5Cb3guZmluZChwcmVmaXhUaGVDbGFzc05hbWUoImNvbHVtbiIsdHJ1ZSkpLmZpbmQoIjpmaXJzdCIrcHJlZml4VGhlQ2xhc3NOYW1lKCJyZW1vdmVpZmZpcnN0Iix0cnVlKSkucmVtb3ZlKCk7JGluQm94LmZpbmQocHJlZml4VGhlQ2xhc3NOYW1lKCJjb2x1bW4iLHRydWUpKS5maW5kKCc6bGFzdCcrcHJlZml4VGhlQ2xhc3NOYW1lKCJyZW1vdmVpZmxhc3QiLHRydWUpKS5yZW1vdmUoKTskaW5Cb3guZmluZChwcmVmaXhUaGVDbGFzc05hbWUoInNwbGl0Iix0cnVlKSkuZmluZCgiOmZpcnN0IitwcmVmaXhUaGVDbGFzc05hbWUoInJlbW92ZWlmZmlyc3QiLHRydWUpKS5yZW1vdmUoKTskaW5Cb3guZmluZChwcmVmaXhUaGVDbGFzc05hbWUoInNwbGl0Iix0cnVlKSkuZmluZCgnOmxhc3QnK3ByZWZpeFRoZUNsYXNzTmFtZSgicmVtb3ZlaWZsYXN0Iix0cnVlKSkucmVtb3ZlKCk7JGluQm94LmRhdGEoImNvbHVtbml6aW5nIixmYWxzZSk7aWYob3B0aW9ucy5vdmVyZmxvdyl7b3B0aW9ucy5vdmVyZmxvdy5kb25lRnVuYygpO30Kb3B0aW9ucy5kb25lRnVuYygpO319KTt9OyQuZm4ucmVudW1iZXJCeUpTPWZ1bmN0aW9uKCRzZWFyY2hUYWcsJGNvbG5vLCR0YXJnZXRJZCwkdGFyZ2V0Q2xhc3Mpe3RoaXMuc2V0TGlzdD1mdW5jdGlvbigkY29scywkbGlzdCwkdGFnMSl7dmFyICRwYXJlbnRzPXRoaXMuYmVmb3JlLnBhcmVudHMoKTt2YXIgJHJlc3Q7JHJlc3Q9JCgkY29sc1t0aGlzLm9mZnNldC0xXSkuZmluZCgnPionKTtpZigoJHJlc3QubGFzdCgpKVswXS50YWdOYW1lIT0kdGFnMS50b1VwcGVyQ2FzZSgpKXtpZih0aGlzLmRlYnVnKXtjb25zb2xlLmRlYnVnKCJMYXN0IGl0ZW0gaW4gcHJldmlvdXMgY29sdW1uLCBpc24ndCBhIGxpc3QuLi4iKTt9CnJldHVybiAwO30KJHJlc3Q9JHJlc3QubGVuZ3RoO3ZhciAkdGludD0xO2lmKHRoaXMubGFzdE90aGVyPD0wKXskdGludD10aGlzLmJlZm9yZS5jaGlsZHJlbigpLmxlbmd0aCsxO31lbHNleyR0aW50PSQoJHBhcmVudHNbdGhpcy5sYXN0T3RoZXJdKS5jaGlsZHJlbigpLmxlbmd0aCsxO30KaWYoJCgkY29sc1t0aGlzLm9mZnNldF0pLmZpbmQoJHRhZzErJzpmaXJzdCBsaS5zcGxpdCcpLmxlbmd0aCl7dmFyICR3aGVyZUVsaXBzaXM9JCgkY29sc1t0aGlzLm9mZnNldC0xXSkuZmluZCgkdGFnMSsnOmxhc3QgbGk6bGFzdCcpO2lmKHRoaXMuZWxpcHNpc1RleHQ9PT0nJ3x8JCgkY29sc1t0aGlzLm9mZnNldC0xXSkuZmluZCgkdGFnMSsnOmxhc3QgfiBkaXYnKS5sZW5ndGh8fCQoJGNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoJHRhZzErJzpsYXN0IH4gcCcpLmxlbmd0aCl7O31lbHNle2lmKCQoJHdoZXJlRWxpcHNpcykuZmluZCgndWwsIG9sLCBkbCcpLmxlbmd0aD09MCl7dmFyICR0eHQ9JHdoZXJlRWxpcHNpcy5sYXN0KCkudGV4dCgpO3ZhciAkbGVuPSR0eHQubGVuZ3RoO2lmKCR0eHQuc3Vic3RyaW5nKCRsZW4tMSk9PSc7Jyl7aWYoJHR4dC5zdWJzdHJpbmcoJGxlbi00KSE9dGhpcy5lbGlwc2lzVGV4dCsnOycpeyR0eHQ9JHR4dC5zdWJzdHJpbmcoMCwkbGVuLTEpK3RoaXMuZWxpcHNpc1RleHQrJzsnO319ZWxzZXtpZigkdHh0LnN1YnN0cmluZygkbGVuLTMpIT10aGlzLmVsaXBzaXNUZXh0KXskdHh0Kz10aGlzLmVsaXBzaXNUZXh0O319CiR3aGVyZUVsaXBzaXMubGFzdCgpLnRleHQoJHR4dCk7fX0KaWYoJCgkY29sc1t0aGlzLm9mZnNldF0pLmZpbmQoJHRhZzErJzpmaXJzdCA+bGkuc3BsaXQgPicrJHRhZzEpLmxlbmd0aD09MCl7JHRpbnQtLTt9fQppZigkcmVzdD09MSl7JHRpbnQrPXRoaXMucHJldk1heDt9CmlmKHRoaXMubmVzdD4xKXtpZih0aGlzLmRlYnVnKXtjb25zb2xlLmRlYnVnKCJTdXBwb3NlZCB0byBiZSBhIG5lc3RlZCBsaXN0Li4uZGVjciIpO30KJHRpbnQtLTt2YXIgJHR0PSQoJGNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoJHRhZzErJzpmaXJzdCBsaS5zcGxpdDpmaXJzdCcpO2lmKCR0dC5sZW5ndGg+MCl7aWYodGhpcy5kZWJ1Zyl7Y29uc29sZS5kZWJ1ZygiUHJldmlvdXMgY29sdW1uIHN0YXJ0ZWQgd2l0aCBhIHNwbGl0IGl0ZW0sIHNvIHRoYXQgY291bnQgaXMgb25lIGxlc3MgdGhhbiBleHBlY3RlZCIpO30KJHRpbnQtLTt9CiR0dD0kKCRjb2xzW3RoaXMub2Zmc2V0XSkuZmluZCgkdGFnMSsnOmZpcnN0IGxpOmZpcnN0JykuY2xvbmUoKTskdHQuY2hpbGRyZW4oKS5yZW1vdmUoKTtpZigkLnRyaW0oJHR0LnRleHQoKSkubGVuZ3RoPjApe2lmKHRoaXMuZGVidWcpe2NvbnNvbGUuZGVidWcoIklmIHRoYXQgd2FzIGEgY29tcGxldGUgbGlzdCBpbiB0aGUgcHJldmlvdXMgY29sdW1uLCBkb24ndCBkZWNyLiIpO30KJHRpbnQrKztpZigkKCRjb2xzW3RoaXMub2Zmc2V0LTFdKS5maW5kKCI+IiskdGFnMSsnOmxhc3QgJykuY2hpbGRyZW4oKS5sZW5ndGg9PTApe2lmKHRoaXMuZGVidWcpe2NvbnNvbGUuZGVidWcoInVubGVzcyB0aGF0IHdhcyBlbXB0eSwgaW4gd2hpY2ggY2FzZSByZXZlcnQiKTt9CiR0aW50LS07fX19ZWxzZXt2YXIgJHR0PSQoJGNvbHNbdGhpcy5vZmZzZXRdKS5maW5kKCR0YWcxKyc6Zmlyc3QgbGk6Zmlyc3QgJyskdGFnMSsiLnNwbGl0IGxpLnNwbGl0Iik7aWYoJHR0Lmxlbmd0aD4wKXtpZih0aGlzLmRlYnVnKXtjb25zb2xlLmRlYnVnKCJbTmVzdGVkXSBDb2x1bW4gc3RhcnRlZCB3aXRoIGEgc3BsaXQgaXRlbSwgc28gdGhhdCBjb3VudCBpcyBvbmUgbGVzcyB0aGFuIGV4cGVjdGVkIik7fQokdGludC0tO319CmlmKHRoaXMuZGVidWcpe2NvbnNvbGUuZGVidWcoIlNldHRpbmcgdGhlIHN0YXJ0IHZhbHVlIHRvICIrJHRpbnQrIiAoIit0aGlzLnByZXZNYXgrIikiKTt9CmlmKCR0aW50PjApe2lmKHR5cGVvZiB0aGlzLnNldENvbHVtblN0YXJ0PT0nZnVuY3Rpb24nKXt0aGlzLnNldENvbHVtblN0YXJ0KCRsaXN0LCR0aW50KTt9ZWxzZXskbGlzdC5hdHRyKCdzdGFydCcsJHRpbnQpO319CnJldHVybiAwO30KaWYodHlwZW9mICR0YXJnZXRJZD09PSd1bmRlZmluZWQnKXskdGFyZ2V0SWQ9ZmFsc2U7fQppZih0eXBlb2YgJHRhcmdldENsYXNzPT09J3VuZGVmaW5lZCcpeyR0YXJnZXRDbGFzcz1mYWxzZTt9CmlmKCEkdGFyZ2V0SWQmJiEkdGFyZ2V0Q2xhc3Mpe3Rocm93InJlbnVtYmVyQnlKUygpOiBCYWQgcGFyYW0sIG11c3QgcGFzcyBhbiBpZCBvciBhIGNsYXNzIjt9CnZhciAkdGFyZ2V0PScnO3RoaXMucHJldk1heD0xO2lmKCR0YXJnZXRDbGFzcyl7JHRhcmdldD0iLiIrJHRhcmdldENsYXNzO31lbHNleyR0YXJnZXQ9IiMiKyR0YXJnZXRJZDt9CnZhciAkdGFnMT0kc2VhcmNoVGFnLnRvTG93ZXJDYXNlKCk7dmFyICR0YWcyPSRzZWFyY2hUYWcudG9VcHBlckNhc2UoKTt0aGlzLmNvbHM9JCgkdGFyZ2V0KTtpZih0aGlzLmRlYnVnKXtjb25zb2xlLmRlYnVnKCJUaGVyZSBhcmUgIit0aGlzLmNvbHMubGVuZ3RoKyIgaXRlbXMsIGxvb2tpbmcgZm9yICIrJHRhZzEpO30KdGhpcy5iZWZvcmU9JCh0aGlzLmNvbHNbMF0pLmZpbmQoJHRhZzErJzpsYXN0Jyk7dGhpcy5wcmV2TWF4PXRoaXMuYmVmb3JlLmNoaWxkcmVuKCkubGVuZ3RoO2Zvcih0aGlzLm9mZnNldD0xO3RoaXMub2Zmc2V0PHRoaXMuY29scy5sZW5ndGg7dGhpcy5vZmZzZXQrKyl7aWYodGhpcy5kZWJ1Zyl7Y29uc29sZS5kZWJ1ZygiaXRlcmF0aW5nICIrdGhpcy5vZmZzZXQrIi4uLltvZiAiK3RoaXMuY29scy5sZW5ndGgrIl0iKTt9CmlmKHRoaXMub2Zmc2V0JSRjb2xubz09MCl7aWYodGhpcy5kZWJ1Zyl7Y29uc29sZS5kZWJ1ZygiRmlyc3QgY29sdW1uIChpbiB0aGVvcnkuLikiKTt9CnRoaXMucHJldk1heD0xO2NvbnRpbnVlO30KdGhpcy5iZWZvcmU9JCh0aGlzLmNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoJHRhZzErJzpsYXN0Jyk7aWYodGhpcy5iZWZvcmUubGVuZ3RoKXtpZih0aGlzLmRlYnVnKXtjb25zb2xlLmRlYnVnKCJIYXZlIHNvbWUgIiskc2VhcmNoVGFnKyIgZWxlbWVudHMgaW4gdGhlIHByZXZpb3VzIGNvbHVtbiIpO30KdmFyICRsaXN0PSQodGhpcy5jb2xzW3RoaXMub2Zmc2V0XSkuZmluZCgkdGFnMSsnOmZpcnN0Jyk7dmFyICRmaXJzdD0kKHRoaXMuY29sc1t0aGlzLm9mZnNldF0pLmZpbmQoJyo6Zmlyc3QnKTtpZigkZmlyc3RbMF0hPT0kbGlzdFswXSl7Y29udGludWU7fQp2YXIgJHBhcmVudHM9dGhpcy5iZWZvcmUucGFyZW50cygpO3RoaXMubGFzdE90aGVyPTA7dmFyICRmb3VuZD1mYWxzZTtmb3IoO3RoaXMubGFzdE90aGVyPCRwYXJlbnRzLmxlbmd0aDt0aGlzLmxhc3RPdGhlcisrKXtpZigkcGFyZW50c1t0aGlzLmxhc3RPdGhlcl0udGFnTmFtZSE9JHRhZzImJiRwYXJlbnRzW3RoaXMubGFzdE90aGVyXS50YWdOYW1lIT0iTEkiKXskZm91bmQ9dHJ1ZTt0aGlzLmxhc3RPdGhlci0tO2JyZWFrO319CnRoaXMubmVzdD0xO2lmKCQodGhpcy5jb2xzW3RoaXMub2Zmc2V0XSkuZmluZCgiPiIrJHRhZzErJzpmaXJzdCBsaSAnKyR0YWcxKyI6Zmlyc3QiKS5sZW5ndGgpe3RoaXMubmVzdD0yO30KdGhpcy5zZXRMaXN0KHRoaXMuY29scywkbGlzdCwkdGFnMSk7dGhpcy5sYXN0T3RoZXItLTskbGlzdD0kKHRoaXMuY29sc1t0aGlzLm9mZnNldF0pLmZpbmQoJHRhZzErJzpmaXJzdCBsaSAnKyR0YWcxKyI6Zmlyc3QiKTtpZigkbGlzdC5sZW5ndGgpe3RoaXMuYmVmb3JlPSQodGhpcy5jb2xzW3RoaXMub2Zmc2V0LTFdKS5maW5kKCI+IiskdGFnMSsnOmxhc3QgbGkgJyskdGFnMSsiOmxhc3QiKTt0aGlzLnByZXZNYXg9MDt0aGlzLm5lc3Q9MTt0aGlzLnNldExpc3QodGhpcy5jb2xzLCRsaXN0LCR0YWcxKTt9CnZhciAkcmVzZXQ9JCh0aGlzLmNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoIj4iKyR0YWcxKyc6bGFzdCcpO3RoaXMucHJldk1heD0kcmVzZXQuY2hpbGRyZW4oKS5sZW5ndGg7fX0KcmV0dXJuIDA7fTt9KShqUXVlcnkpOw=="; -},1974,[]); +},2001,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255564,7 +259401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},1975,[1976]); +},2002,[2003]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255692,7 +259529,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},1976,[3,6,7,11,13,14,16,434,1977,179,438]); +},2003,[3,6,7,11,13,14,16,434,2004,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255962,7 +259799,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = BottomSheet; -},1977,[3,22,6,7,11,85,13,14,16,582,18,436,1978,1826,1979,1982,564,821,179,438,1981]); +},2004,[3,22,6,7,11,85,13,14,16,582,18,436,2005,816,2006,830,564,1871,179,438,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -255998,7 +259835,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: "100%" } }); -},1978,[18]); +},2005,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256550,7 +260387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } }); -},1979,[3,4,270,22,6,7,11,13,14,582,16,18,438,821,1,179,1816,1980,1981]); +},2006,[3,4,270,22,6,7,11,13,14,582,16,18,438,1871,1,179,1929,2007,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256580,7 +260417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); TecnaviaSectionList.displayName = "SectionList"; -},1980,[3,16,18,179]); +},2007,[3,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -256926,366 +260763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Shortcut.propTypes = Object.assign({}, ShortcutManager.propTypes); Shortcut.defaultProps = Object.assign({}, ShortcutManager.defaultProps); -},1981,[3,11,13,14,270,6,7,16,582,820,438,821]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.ModalStyle = undefined; - - var _slicedToArray2 = _$$_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 _reactNativeModal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _keyboardAvoidingComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _modalFooter = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _excluded = ["visible", "onClose", "onCancel", "onConfirm", "onStateChange", "onHide", "hasFooter", "children", "supportedOrientations", "backgroundColor", "foregroundColor", "containerStyle", "style", "needsKeyboardOffsetCheck", "cancelable"]; - - 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 TIMING = 300; - - var styles = _reactNative.StyleSheet.create({ - modal: { - padding: 10, - justifyContent: "center", - alignItems: "center" - }, - container: { - padding: 10, - borderRadius: 20, - width: "100%", - maxWidth: 600, - backgroundColor: _$$_REQUIRE(_dependencyMap[10]).colors.white, - overflow: "hidden" - } - }); - - var TaModal = (0, _react.forwardRef)(function (props, ref) { - var visible = props.visible, - onClose = props.onClose, - onCancel = props.onCancel, - onConfirm = props.onConfirm, - onStateChange = props.onStateChange, - onHide = props.onHide, - hasFooter = props.hasFooter, - children = props.children, - supportedOrientations = props.supportedOrientations, - _props$backgroundColo = props.backgroundColor, - bgColor = _props$backgroundColo === undefined ? _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultBackgroundColor() : _props$backgroundColo, - foregroundColor = props.foregroundColor, - containerStyle = props.containerStyle, - style = props.style, - needsKeyboardOffsetCheck = props.needsKeyboardOffsetCheck, - cancelable = props.cancelable, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - var _DeviceUtils$getSafeA = _deviceUtils.default.getSafeAreaInsets(), - top = _DeviceUtils$getSafeA.top, - bottom = _DeviceUtils$getSafeA.bottom; - - var _DeviceUtils$getSafeA2 = _deviceUtils.default.getSafeArea(), - height = _DeviceUtils$getSafeA2.height; - - var _useState = (0, _react.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - expanded = _useState2[0], - setExpanded = _useState2[1]; - - var _useState3 = (0, _react.useState)(top), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - keyboardVerticalOffset = _useState4[0], - setKeyboardVerticalOffset = _useState4[1]; - - var _useState5 = (0, _react.useState)(bgColor), - _useState6 = (0, _slicedToArray2.default)(_useState5, 2), - backgroundColor = _useState6[0], - setBackgroundColor = _useState6[1]; - - var _expand = function _expand() { - return setExpanded(true); - }; - - var _collapse = function _collapse() { - return setExpanded(false); - }; - - var _consumeCallback = function _consumeCallback(callback) { - var consumed = typeof callback === "function" && callback(); - - if (!consumed) { - _collapse(); - } - }; - - var _onHide = function _onHide() { - return typeof onHide === "function" && onHide(); - }; - - var _onClose = function _onClose() { - return _consumeCallback(onClose); - }; - - var _onCancel = function _onCancel() { - return _consumeCallback(onCancel); - }; - - var _onConfirm = function _onConfirm() { - return _consumeCallback(onConfirm); - }; - - var otherProps = {}; - var keyboardProps = {}; - - if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isIOS()) { - if (needsKeyboardOffsetCheck) { - otherProps.onLayout = function (_ref) { - var nativeEvent = _ref.nativeEvent; - - if (nativeEvent.layout.height < height) { - setKeyboardVerticalOffset(keyboardVerticalOffset + (height - nativeEvent.layout.height) / 2); - } - }; - } - - keyboardProps.keyboardVerticalOffset = keyboardVerticalOffset; - } - - if (cancelable) { - otherProps.onBackdropPress = _onClose; - otherProps.onBackButtonPress = _onClose; - } - - (0, _react.useImperativeHandle)(ref, function () { - return { - expand: function expand() { - return _expand(); - }, - collapse: function collapse() { - return _collapse(); - } - }; - }); - (0, _react.useEffect)(function () { - setBackgroundColor(bgColor); - }, [bgColor]); - (0, _react.useEffect)(function () { - if (typeof onStateChange === "function") { - onStateChange(expanded); - } - }, [expanded]); - (0, _react.useEffect)(function () { - setExpanded(visible); - }, [visible]); - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNativeModal.default, Object.assign({ - isVisible: expanded, - animationInTiming: TIMING, - animationOutTiming: TIMING, - backdropTransitionInTiming: TIMING, - backdropTransitionOutTiming: TIMING, - supportedOrientations: supportedOrientations || ["portrait", "portrait-upside-down", "landscape"], - style: [styles.modal, style] - }, otherProps, _reactNative.Platform.select({ - ios: { - onDismiss: _onHide - }, - android: { - onModalHide: _onHide, - useNativeDriver: true, - useNativeDriverForBackdrop: true - } - }), rest, { - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_keyboardAvoidingComponent.default, Object.assign({ - style: [styles.container, { - marginTop: top, - marginBottom: bottom, - maxHeight: height, - backgroundColor: backgroundColor - }, containerStyle] - }, keyboardProps, { - nestedScrollEnabled: true, - children: [children, hasFooter ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_modalFooter.default, { - onCancel: _onCancel, - onConfirm: _onConfirm, - color: _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultForegroundColor(), - confirmColor: foregroundColor || global.getRssIndex().supportColor || _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultForegroundColor() - }) : null] - })) - })); - }); - TaModal.propTypes = { - children: _propTypes.default.any, - visible: _propTypes.default.bool, - hasFooter: _propTypes.default.bool, - onStateChange: _propTypes.default.func, - onHide: _propTypes.default.func, - onClose: _propTypes.default.func, - onCancel: _propTypes.default.func, - onConfirm: _propTypes.default.func, - backgroundColor: _propTypes.default.string, - foregroundColor: _propTypes.default.string, - supportedOrientations: _propTypes.default.arrayOf(_propTypes.default.string), - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), - containerStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), - needsKeyboardOffsetCheck: _propTypes.default.bool, - cancelable: _propTypes.default.bool - }; - TaModal.defaultProps = { - hasFooter: false, - visible: false, - needsKeyboardOffsetCheck: false, - cancelable: true - }; - var ModalStyle = exports.ModalStyle = styles; - - var _default = exports.default = TaModal; -},1982,[3,33,4,582,16,18,1326,434,1983,1984,438,1709,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _excluded = ["enabled"]; - - 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 useIsFloatingKeyboard = function useIsFloatingKeyboard() { - var _useState = (0, _react.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - isFloating = _useState2[0], - setFloating = _useState2[1]; - - var windowWidth = _reactNative.Dimensions.get("window").width; - - var onKeyboardWillChangeFrame = function onKeyboardWillChangeFrame(event) { - var newIsFloating = event.endCoordinates.width !== windowWidth; - - if (isFloating !== newIsFloating) { - setFloating(newIsFloating); - } - }; - - (0, _react.useEffect)(function () { - var subscription = _reactNative.Keyboard.addListener("keyboardWillChangeFrame", onKeyboardWillChangeFrame); - - return function () { - subscription.remove(); - }; - }, [isFloating]); - return isFloating; - }; - - var TecnaviaKeyboardAvoidingView = function TecnaviaKeyboardAvoidingView(props) { - var enabled = props.enabled, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - var isFloatingKeyboard = useIsFloatingKeyboard(); - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.KeyboardAvoidingView, Object.assign({ - style: { - flex: 1 - }, - behavior: _$$_REQUIRE(_dependencyMap[6]).PlatformUtils.isIOS() ? "padding" : "height", - enabled: enabled && !isFloatingKeyboard - }, rest)); - }; - - TecnaviaKeyboardAvoidingView.defaultProps = { - enabled: true - }; - - var _default = exports.default = TecnaviaKeyboardAvoidingView; -},1983,[3,4,33,16,18,179,438]); -__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 _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var styles = _reactNative.StyleSheet.create({ - footer: { - paddingTop: 10, - flexDirection: "row", - justifyContent: "flex-end" - }, - buttonContainer: { - height: 40, - padding: 10 - } - }); - - function ModalFooter(props) { - var onCancel = props.onCancel, - onConfirm = props.onConfirm, - color = props.color, - confirmColor = props.confirmColor; - return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(_reactNative.View, { - style: styles.footer, - children: [onCancel ? (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.TouchableOpacity, { - style: styles.buttonContainer, - onPress: onCancel, - children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_fontText.default, { - style: { - color: color, - textTransform: "uppercase" - }, - children: global.strings("btn_cancel") - }) - }) : null, onConfirm ? (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.TouchableOpacity, { - style: styles.buttonContainer, - onPress: onConfirm, - children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_fontText.default, { - style: { - color: confirmColor, - textTransform: "uppercase" - }, - children: global.strings("btn_confirm") - }) - }) : null] - }); - } - - ModalFooter.propTypes = { - onCancel: _propTypes.default.func, - onConfirm: _propTypes.default.func, - color: _propTypes.default.string, - confirmColor: _propTypes.default.string - }; - ModalFooter.defaultProps = {}; - - var _default = exports.default = ModalFooter; -},1984,[3,16,582,18,1826,179]); +},2008,[3,11,13,14,270,6,7,16,582,1870,438,1871]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257494,7 +260972,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: _propTypes.default.func, children: _propTypes.default.any }; -},1985,[3,270,33,4,22,582,16,18,1986,436,1846,1826,2003,179,1709,438,564]); +},2009,[3,270,33,4,22,582,16,18,2010,436,1957,816,2027,179,819,438,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -257793,7 +261271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1986,[3,270,6,7,1987,1993]); +},2010,[3,270,6,7,2011,2017]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258165,7 +261643,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1987,[3,270,6,7,436,434,1988,1989,1866,564]); +},2011,[3,270,6,7,436,434,2012,2013,1976,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258420,7 +261898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPause: _propTypes.default.func, onClose: _propTypes.default.func }; -},1988,[3,224,6,7,11,13,14,16,582,18,1777,1709,179,1849]); +},2012,[3,224,6,7,11,13,14,16,582,18,1811,819,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258772,7 +262250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},1989,[3,270,6,7,1990,436,1991,564,438]); +},2013,[3,270,6,7,2014,436,2015,564,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -258954,7 +262432,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_reactNative.NativeEventEmitter); var _default = exports.default = new Tts(); -},1990,[3,6,7,11,13,14,18]); +},2014,[3,6,7,11,13,14,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259118,7 +262596,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 0; } -},1991,[3,270,22,1990,1992,1824]); +},2015,[3,270,22,2014,2016,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259131,7 +262609,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; -},1992,[18]); +},2016,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259430,7 +262908,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},1993,[3,270,6,7,436,824,1994,564,1981,438,1995,1777,1999,2001]); +},2017,[3,270,6,7,436,881,2018,564,2008,438,2019,1811,2023,2025]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259481,7 +262959,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = HintKeys; -},1994,[3,436]); +},2018,[3,436]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259641,7 +263119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1995,[3,6,7,11,13,14,16,18,434,1996,1998,438,179]); +},2019,[3,6,7,11,13,14,16,18,434,2020,2022,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -259904,7 +263382,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Hint; -},1996,[3,33,582,16,18,1997,1826,1777,1776,438,1709,179]); +},2020,[3,33,582,16,18,2021,816,1811,1927,438,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260039,7 +263517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ProgressCountDown; -},1997,[3,33,16,582,18,902,1826,179,438]); +},2021,[3,33,16,582,18,959,816,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260173,7 +263651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, _hintComponent.default.defaultProps); var _default = exports.default = HintProgress; -},1998,[3,22,33,4,582,16,18,1996,438,564,1709,179,1849]); +},2022,[3,22,33,4,582,16,18,2020,438,564,819,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260303,7 +263781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.Component); -},1999,[3,270,6,7,11,13,14,16,18,2000,179]); +},2023,[3,270,6,7,11,13,14,16,18,2024,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260472,7 +263950,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = VoiceIcon; -},2000,[3,33,16,582,18,436,1826,438,1709,564,179,1776,1777]); +},2024,[3,33,16,582,18,436,816,438,819,564,179,1927,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260517,7 +263995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2001,[3,6,7,18,2002,438]); +},2025,[3,6,7,18,2026,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -260625,7 +264103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e deviceInfoSettings: deviceInfoSettings, appNotificationSettings: appNotificationSettings }; -},2002,[18]); +},2026,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260753,7 +264231,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2003,[18,1711,438]); +},2027,[18,827,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260936,7 +264414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e HeaderParent.defaultProps = { header: false }; -},2004,[3,4,270,6,7,11,13,14,16,582,18,2005,1826,817,667,1823,179,1709,438,2006,2011]); +},2028,[3,4,270,6,7,11,13,14,16,582,18,2029,816,864,666,1936,179,819,438,2030,1861]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -260990,7 +264468,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginHorizontal: 15 } }); -},2005,[18,1711,438]); +},2029,[18,827,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261144,7 +264622,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e logoHeight: _$$_REQUIRE(_dependencyMap[16]).LOGO_HEIGHT, style: undefined }; -},2006,[3,270,6,7,11,13,14,582,16,18,2007,2008,438,179,1709,2009,1711]); +},2030,[3,270,6,7,11,13,14,582,16,18,2031,2032,438,179,819,1862,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -261297,7 +264775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.any }; -},2007,[3,4,6,7,11,13,14,16,582,588,179]); +},2031,[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 @@ -261319,3537 +264797,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _$$_REQUIRE(_dependencyMap[1]).LOGO_HEIGHT } }); -},2008,[18,1711]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Logo = 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])); - - 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 Logo = exports.Logo = function (_BaseModel) { - function Logo(obj) { - var _this; - - (0, _classCallCheck2.default)(this, Logo); - _this = _callSuper(this, Logo, [obj]); - _this.url = _this.getValueByKey("url"); - _this.action = _this.getValueByKey("function", "openIndex"); - _this.padding = _this.getValueByKey("padding", "").split(",").map(function (item) { - return parseInt(item, 10); - }); - _this.alignment = _this.getValueByKey("alignment", "left"); - return _this; - } - - (0, _inherits2.default)(Logo, _BaseModel); - return (0, _createClass2.default)(Logo, [{ - key: "getUrl", - value: function getUrl() { - return this.url; - } - }, { - key: "setUrl", - value: function setUrl(url) { - this.url = url; - } - }, { - key: "getAction", - value: function getAction() { - return this.action; - } - }, { - key: "getPadding", - value: function getPadding() { - return this.padding; - } - }, { - key: "getAlignment", - value: function getAlignment() { - return this.alignment; - } - }]); - }(_$$_REQUIRE(_dependencyMap[6]).BaseModel); -},2009,[3,6,7,11,13,14,2010]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.BaseModel = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var BaseModel = exports.BaseModel = function () { - function BaseModel(json) { - (0, _classCallCheck2.default)(this, BaseModel); - this.json = json; - } - - return (0, _createClass2.default)(BaseModel, [{ - key: "getValueByKey", - value: function getValueByKey(key, fallback) { - return this.json && this.json[key] ? this.json[key] : fallback; - } - }, { - key: "getArrayByKey", - value: function getArrayByKey(key) { - return this.json && this.json[key] && Array.isArray(this.json[key]) ? this.json[key] : []; - } - }]); - }(); -},2010,[3,6,7]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Header = 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])); - - 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 Header = exports.Header = function (_BaseModel) { - function Header(json) { - var _this; - - (0, _classCallCheck2.default)(this, Header); - _this = _callSuper(this, Header, [json]); - _this.header = new (_$$_REQUIRE(_dependencyMap[6]).Logo)(json.header); - _this.hrTop = new (_$$_REQUIRE(_dependencyMap[7]).Hr)(json.hr.top); - _this.hrBottom = new (_$$_REQUIRE(_dependencyMap[7]).Hr)(json.hr.bottom); - _this.left = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.left); - _this.right = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.right); - _this.carMode = new (_$$_REQUIRE(_dependencyMap[8]).Section)(json.carMode); - return _this; - } - - (0, _inherits2.default)(Header, _BaseModel); - return (0, _createClass2.default)(Header, [{ - key: "getHrBottom", - value: function getHrBottom() { - return this.hrBottom || {}; - } - }, { - key: "getHrTop", - value: function getHrTop() { - return this.hrTop || {}; - } - }, { - key: "getLogo", - value: function getLogo() { - return this.header; - } - }, { - key: "getLeft", - value: function getLeft() { - return this.left; - } - }, { - key: "getRight", - value: function getRight() { - return this.right; - } - }, { - key: "getCarMode", - value: function getCarMode() { - return this.carMode; - } - }, { - key: "getButtonByAction", - value: function getButtonByAction(action) { - var button; - - if (this.getLeft()) { - button = this.getLeft().buttons.find(function (icon) { - return icon.getAction() === action; - }); - } - - if (!button && this.getRight()) { - button = this.getRight().buttons.find(function (icon) { - return icon.getAction() === action; - }); - } - - return button; - } - }]); - }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); -},2011,[3,6,7,11,13,14,2009,2012,2013,2010]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Hr = 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])); - - 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 Hr = exports.Hr = function (_BaseModel) { - function Hr(obj) { - var _this; - - (0, _classCallCheck2.default)(this, Hr); - _this = _callSuper(this, Hr, [obj]); - - _this.setColor(); - - _this.setHeight(); - - return _this; - } - - (0, _inherits2.default)(Hr, _BaseModel); - return (0, _createClass2.default)(Hr, [{ - key: "setHeight", - value: function setHeight() { - this.height = parseInt(this.getValueByKey("height", "1"), 10); - } - }, { - key: "setColor", - value: function setColor() { - this.color = this.getValueByKey("color", _$$_REQUIRE(_dependencyMap[6]).colors.black); - } - }, { - key: "getHeight", - value: function getHeight() { - return this.height; - } - }, { - key: "getColor", - value: function getColor() { - return this.color.length ? this.color : _$$_REQUIRE(_dependencyMap[6]).colors.black; - } - }]); - }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); -},2012,[3,6,7,11,13,14,438,2010]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Section = 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])); - - 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 Section = exports.Section = function (_BaseModel) { - function Section(section) { - var _this; - - (0, _classCallCheck2.default)(this, Section); - _this = _callSuper(this, Section, [section]); - - _this.setButtons(); - - _this.setColor(); - - _this.setHoverText(); - - _this.setSize(); - - return _this; - } - - (0, _inherits2.default)(Section, _BaseModel); - return (0, _createClass2.default)(Section, [{ - key: "getButtons", - value: function getButtons() { - return this.buttons; - } - }, { - key: "getReverseButtons", - value: function getReverseButtons() { - var newButtons = []; - this.buttons.forEach(function (button) { - newButtons.splice(0, 0, button); - }); - return newButtons; - } - }, { - key: "getColor", - value: function getColor() { - return this.color; - } - }, { - key: "getHoverText", - value: function getHoverText() { - return this.hoverText; - } - }, { - key: "getTextSize", - value: function getTextSize() { - return this.textSize; - } - }, { - key: "setHoverText", - value: function setHoverText() { - this.hoverText = this.getValueByKey("hoverText", ""); - } - }, { - key: "setSize", - value: function setSize() { - this.textSize = parseInt(this.getValueByKey("size", "20"), 10); - } - }, { - key: "setColor", - value: function setColor() { - this.color = this.getValueByKey("color", _$$_REQUIRE(_dependencyMap[6]).colors.black); - } - }, { - key: "setButtons", - value: function setButtons() { - this.buttons = this.getArrayByKey("buttons").map(function (button) { - return new (_$$_REQUIRE(_dependencyMap[7]).ArticleIcon)(button); - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[8]).BaseModel); -},2013,[3,6,7,11,13,14,438,2014,2010]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ArticleIcon = 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])); - - 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 ArticleIcon = exports.ArticleIcon = function (_Icon) { - function ArticleIcon(json) { - (0, _classCallCheck2.default)(this, ArticleIcon); - return _callSuper(this, ArticleIcon, [json, "article-header"]); - } - - (0, _inherits2.default)(ArticleIcon, _Icon); - return (0, _createClass2.default)(ArticleIcon); - }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},2014,[3,7,6,11,13,14,2015]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Icon = 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])); - - 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 Icon = exports.Icon = function (_BaseModel) { - function Icon(json, key) { - var _this; - - (0, _classCallCheck2.default)(this, Icon); - _this = _callSuper(this, Icon, [json]); - _this.key = key; - _this.forceText = _this.getValueByKey("forceText", "0") === "1"; - - var splitted = _this.getValueByKey("function", "").split(":"); - - _this.action = splitted[0]; - _this.actionValue = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(splitted[1]); - _this.id = parseInt(_this.getValueByKey("id", "-1"), 10); - _this.library = _this.getValueByKey("iconLibrary", ""); - _this.icon = _this.setIcon(_this.getValueByKey("iconUrlOff")); - _this.activeIcon = _this.setIcon(_this.getValueByKey("iconUrlOn"), true); - _this.text = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeHTML(_this.getValueByKey("text", "")); - _this.loggedInText = _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeHTML(_this.getValueByKey("loggedInText", "")); - _this.innerTextSupported = _this.getValueByKey("innerTextSupported", _this.customIcon ? "0" : "1") === "1"; - return _this; - } - - (0, _inherits2.default)(Icon, _BaseModel); - return (0, _createClass2.default)(Icon, [{ - key: "setIcon", - value: function setIcon(jsonValue) { - var activeIcon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - var css = _$$_REQUIRE(_dependencyMap[7]).Css.getStyleObjByCssClasses(["newsmemory-" + this.key + "-icon", "newsmemory-" + this.key + "-icon-" + this.action]); - - if (css) { - if (css.src === "default") { - jsonValue = ""; - this.library = ""; - } else { - this.library = css.library || this.library; - - if (css.src !== "inherit") { - jsonValue = css.src && css.src.length ? css.src : jsonValue; - } - } - } - - if (this.isLibraryIcon()) { - this.customIcon = true; - return jsonValue || ""; - } - - if (jsonValue && jsonValue.length) { - this.customIcon = true; - return { - uri: _$$_REQUIRE(_dependencyMap[6]).StringUtils.decodeURIComponent(jsonValue) - }; - } - - var iconDefaultObj = _$$_REQUIRE(_dependencyMap[8]).ACTIONS[this.action]; - - if (iconDefaultObj) { - if (activeIcon && iconDefaultObj.activeIcon) { - return iconDefaultObj.activeIcon; - } - - return iconDefaultObj.icon; - } - - return undefined; - } - }, { - key: "getText", - value: function getText() { - return this.text; - } - }, { - key: "getLoggedInText", - value: function getLoggedInText() { - return this.loggedInText; - } - }, { - key: "getActiveIcon", - value: function getActiveIcon() { - return this.activeIcon; - } - }, { - key: "getIcon", - value: function getIcon() { - return this.icon; - } - }, { - key: "getAction", - value: function getAction() { - return this.action; - } - }, { - key: "getActionValue", - value: function getActionValue() { - return this.actionValue; - } - }, { - key: "getId", - value: function getId() { - return this.id; - } - }, { - key: "isForceText", - value: function isForceText() { - return this.forceText; - } - }, { - key: "isCustomIcon", - value: function isCustomIcon() { - return this.customIcon; - } - }, { - key: "getLibrary", - value: function getLibrary() { - return this.library; - } - }, { - key: "isLibraryIcon", - value: function isLibraryIcon() { - return this.library && Object.values(_$$_REQUIRE(_dependencyMap[9]).TecnaviaIconType).includes(this.library); - } - }, { - key: "supportInnerText", - value: function supportInnerText() { - return this.innerTextSupported; - } - }]); - }(_$$_REQUIRE(_dependencyMap[10]).BaseModel); -},2015,[3,6,7,11,13,14,438,1709,1874,1777,2010]); -__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 _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - 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 styles = _reactNative.StyleSheet.create({ - modal: { - padding: 10 - }, - title: { - fontSize: 20, - margin: 10 - }, - text: { - marginHorizontal: 10, - marginBottom: 10 - }, - button: { - flex: 1, - alignItems: "center", - justifyContent: "center", - height: 50, - borderWidth: 0.5, - margin: 5 - } - }); - - function TaAlert(props) { - var title = props.title, - message = props.message, - onDismiss = props.onDismiss; - var buttons = props.buttons; - - if (!buttons) { - buttons = []; - } - - if (buttons.length === 0) { - buttons.push({ - text: global.strings("btn_ok") - }); - } - - var _onDismiss = function _onDismiss() { - if (typeof onDismiss === "function") { - onDismiss(); - } - }; - - var _useState = (0, _react.useState)(_$$_REQUIRE(_dependencyMap[7]).Css.getDefaultBackgroundColor()), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - backgroundColor = _useState2[0], - setBackgroundColor = _useState2[1]; - - var _useState3 = (0, _react.useState)(_$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor()), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - color = _useState4[0], - setColor = _useState4[1]; - - (0, _react.useEffect)(function () { - var handleColorThemeChange = function handleColorThemeChange() { - setBackgroundColor(_$$_REQUIRE(_dependencyMap[7]).Css.getDefaultBackgroundColor()); - setColor(_$$_REQUIRE(_dependencyMap[7]).Css.getDefaultForegroundColor()); - }; - - var eventListener = _$$_REQUIRE(_dependencyMap[8]).EventRegister.on(_events.default.ON_COLOR_THEME_CHANGE, handleColorThemeChange); - - return function () { - _$$_REQUIRE(_dependencyMap[8]).EventRegister.rm(eventListener); - }; - }, []); - var buttonsContainerStyle = { - flexDirection: "row", - width: "100%" - }; - - if (buttons.length > 2) { - buttonsContainerStyle.flexDirection = "column"; - buttonsContainerStyle.height = buttons.length * (styles.button.height + styles.button.margin * 2); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { - style: [styles.modal, { - backgroundColor: backgroundColor - }], - children: [title ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: [styles.title, { - color: color - }], - type: _fontText.Type.bold, - children: title - }) : null, message ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: [styles.text, { - color: color - }], - children: message - }) : null, buttons.length ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { - style: buttonsContainerStyle, - children: buttons.map(function (_ref, index) { - var _ref$Component = _ref.Component, - Component = _ref$Component === undefined ? null : _ref$Component, - text = _ref.text, - _onPress = _ref.onPress, - _ref$style = _ref.style, - style = _ref$style === undefined ? {} : _ref$style; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { - style: { - flexDirection: "row", - flex: 1 - }, - children: Component ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Component, { - backgroundColor: backgroundColor, - color: color - }) : (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { - style: [styles.button, { - borderColor: color - }, style], - onPress: function onPress() { - _onDismiss(); - - if (typeof _onPress === "function") { - _onPress(); - } - }, - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: [styles.buttonText, { - color: color - }], - type: _fontText.Type.bold, - children: text - }) - }, "ta_alert_button_" + index) - }, "ta_alert_button_container_" + index); - }) - }) : null] - }); - } - - TaAlert.propTypes = { - title: _propTypes.default.string, - message: _propTypes.default.string, - buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ - Component: _propTypes.default.any, - text: _propTypes.default.string, - onPress: _propTypes.default.func, - style: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object, _propTypes.default.number]) - })), - onDismiss: _propTypes.default.func - }; - TaAlert.defaultProps = { - title: "", - message: "", - buttons: [] - }; - - var _default = exports.default = TaAlert; -},2016,[3,33,582,16,18,436,1826,1709,564,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _excluded = ["visible", "useNativeDriver", "onBackButtonPress", "onBackdropPress", "containerStyle"]; - - 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 styles = _reactNative.StyleSheet.create({ - container: { - position: "absolute", - top: 0, - bottom: 0, - start: 0, - right: 0, - justifyContent: "center", - alignItems: "center", - backgroundColor: _$$_REQUIRE(_dependencyMap[5]).colors.transparent600 - } - }); - - function JsModal(props) { - var visible = props.visible, - useNativeDriver = props.useNativeDriver, - onBackButtonPress = props.onBackButtonPress, - onBackdropPress = props.onBackdropPress, - containerStyle = props.containerStyle, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - if (!visible) { - return null; - } - - var deviceWidth = _reactNative.Dimensions.get("window").width; - - var opacityValue = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current; - var currentOpacityValue = (0, _react.useRef)(0); - var onTouch = (0, _react.useCallback)(function () { - if (typeof onBackdropPress === "function") { - onBackdropPress(); - } - }, []); - var onBackPress = (0, _react.useCallback)(function () { - if (typeof onBackButtonPress === "function") { - onBackButtonPress(); - } - }, []); - - var animate = function animate(destination) { - _reactNative.Animated.timing(opacityValue, { - toValue: destination, - duration: 300, - useNativeDriver: useNativeDriver - }).start(function (_ref) { - var finished = _ref.finished; - - if (finished) { - currentOpacityValue.current = destination; - } - }); - }; - - (0, _react.useEffect)(function () { - animate(currentOpacityValue.current === 0 ? 1 : 0); - - var backHandler = _reactNative.BackHandler.addEventListener("hardwareBackPress", onBackPress); - - return function () { - if (backHandler) { - backHandler.remove(); - } - }; - }, [visible]); - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Animated.View, Object.assign({ - style: [styles.container, { - opacity: opacityValue, - padding: deviceWidth * 0.05 - }, containerStyle], - onTouchEnd: onTouch - }, rest)); - } - - JsModal.propTypes = { - visible: _propTypes.default.bool, - useNativeDriver: _propTypes.default.bool, - onBackButtonPress: _propTypes.default.func, - onBackdropPress: _propTypes.default.func, - containerStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]) - }; - JsModal.defaultProps = { - visible: false, - useNativeDriver: true - }; - - var _default = exports.default = JsModal; -},2017,[3,4,582,16,18,438,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = 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 _Publication = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _PublicationsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _excluded = ["currentPublication"]; - - var PublicationsManager = exports.default = function () { - function PublicationsManager() { - (0, _classCallCheck2.default)(this, PublicationsManager); - this.publications = []; - } - - return (0, _createClass2.default)(PublicationsManager, [{ - key: "load", - value: function () { - var _load = (0, _asyncToGenerator2.default)(function* () { - var allItems = yield _PublicationsHelper.default.getAllItems(); - - if (allItems) { - var currentPublication = allItems.currentPublication, - rawPublications = (0, _objectWithoutProperties2.default)(allItems, _excluded); - this.publications = Object.values(rawPublications).map(function (rawPublication) { - return PublicationsManager.parsePublication(rawPublication); - }); - this.currentPublication = this.getPublication(currentPublication); - } - }); - - function load() { - return _load.apply(this, arguments); - } - - return load; - }() - }, { - key: "getPublications", - value: function getPublications() { - return this.publications; - } - }, { - key: "getPublication", - value: function getPublication(pSetup) { - return this.publications.find(function (publication) { - return publication.getPSetup() === pSetup; - }); - } - }, { - key: "getXPaperPublication", - value: function getXPaperPublication(pSetup) { - return this.publications.find(function (publication) { - return publication.getPSetup().startsWith(pSetup + "-xp-"); - }); - } - }, { - key: "getCurrentPublication", - value: function getCurrentPublication() { - return this.currentPublication; - } - }, { - key: "addPublication", - value: function () { - var _addPublication = (0, _asyncToGenerator2.default)(function* (params) { - var publication; - - if (params && params.pSetup) { - publication = this.getPublication(params.pSetup); - - if (!publication && params.machine) { - publication = new _Publication.default(params); - this.publications.push(publication); - yield this.storePublication(publication); - } - } - - return publication; - }); - - function addPublication(_x) { - return _addPublication.apply(this, arguments); - } - - return addPublication; - }() - }, { - key: "deletePublication", - value: function () { - var _deletePublication = (0, _asyncToGenerator2.default)(function* (_ref) { - var pSetup = _ref.pSetup; - - if (pSetup) { - try { - var index = this.publications.findIndex(function (publication) { - return publication.getPSetup() === pSetup; - }); - - if (index >= 0) { - this.publications.splice(index, 1); - } - - yield _PublicationsHelper.default.removeItem(pSetup); - - if (this.currentPublication && this.currentPublication.getPSetup() === pSetup) { - this.currentPublication = undefined; - yield _PublicationsHelper.default.removeItem(_PublicationsHelper.default.SP.keys.current); - } - - return true; - } catch (e) {} - } - - return false; - }); - - function deletePublication(_x2) { - return _deletePublication.apply(this, arguments); - } - - return deletePublication; - }() - }, { - key: "storePublication", - value: function () { - var _storePublication = (0, _asyncToGenerator2.default)(function* (publication) { - return _PublicationsHelper.default.setItem(publication.getPSetup(), publication.toString()); - }); - - function storePublication(_x3) { - return _storePublication.apply(this, arguments); - } - - return storePublication; - }() - }, { - key: "setCurrentPublication", - value: function () { - var _setCurrentPublication = (0, _asyncToGenerator2.default)(function* (params) { - if (params && params.pSetup) { - var pSetup = params.pSetup, - machine = params.machine; - var publication = this.getPublication(pSetup); - - if (!publication && machine) { - if (pSetup.indexOf("-xp-") !== -1) { - var pSetupArray = pSetup.split("-xp-"); - - if (pSetupArray.length > 1) { - publication = this.getPublication(pSetupArray[0]); - } - } else { - publication = this.getXPaperPublication(pSetup); - } - - if (publication) { - yield this.deletePublication({ - pSetup: publication.getPSetup() - }); - } - - publication = yield this.addPublication(params); - } else if (publication && (params.external || publication.isExternal())) { - publication.external = true; - yield this.storePublication(publication); - } - - this.currentPublication = publication; - return _PublicationsHelper.default.setItem(_PublicationsHelper.default.SP.keys.current, pSetup); - } - - return false; - }); - - function setCurrentPublication(_x4) { - return _setCurrentPublication.apply(this, arguments); - } - - return setCurrentPublication; - }() - }], [{ - key: "parsePublication", - value: function parsePublication(rawPublication) { - var parts = rawPublication.split(","); - return new _Publication.default({ - pSetup: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[0]), - machine: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[1]), - name: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[2]), - st: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[3]), - icon: _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[4]), - paper: parts[5] ? _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[5]) : "", - xpaper: parts[6] ? _$$_REQUIRE(_dependencyMap[7]).StringUtils.decodeURIComponent(parts[6]) : "", - external: parts[7] === "true" - }); - } - }]); - }(); -},2018,[3,4,270,6,7,2019,2020,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 Publication = exports.default = function () { - function Publication(params) { - (0, _classCallCheck2.default)(this, Publication); - var pSetup = params.pSetup, - machine = params.machine, - name = params.name, - country = params.st, - iconURL = params.icon, - psetup = params.psetup, - paper = params.paper, - xpaper = params.xpaper, - external = params.external; - this.psetup = pSetup || psetup; - this.machine = machine; - this.name = name || ""; - this.country = country || ""; - this.iconURL = iconURL || ""; - this.paper = paper || ""; - this.xpaper = xpaper || ""; - this.external = external || false; - } - - return (0, _createClass2.default)(Publication, [{ - key: "getPSetup", - value: function getPSetup() { - return this.psetup; - } - }, { - key: "getMachine", - value: function getMachine() { - return this.machine; - } - }, { - key: "getName", - value: function getName() { - return this.name; - } - }, { - key: "getCountry", - value: function getCountry() { - return this.country; - } - }, { - key: "getIconURL", - value: function getIconURL() { - return this.iconURL; - } - }, { - key: "getPaper", - value: function getPaper() { - return this.paper; - } - }, { - key: "getXPaper", - value: function getXPaper() { - return this.xpaper; - } - }, { - key: "isExternal", - value: function isExternal() { - return this.external; - } - }, { - key: "toString", - value: function toString() { - return encodeURIComponent(this.psetup) + "," + encodeURIComponent(this.machine) + "," + encodeURIComponent(this.name) + "," + encodeURIComponent(this.country) + "," + encodeURIComponent(this.iconURL) + "," + encodeURIComponent(this.paper) + "," + encodeURIComponent(this.xpaper) + "," + this.external; - } - }]); - }(); -},2019,[3,6,7]); -__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 PublicationsHelper = exports.default = function () { - function PublicationsHelper() { - (0, _classCallCheck2.default)(this, PublicationsHelper); - } - - return (0, _createClass2.default)(PublicationsHelper, null, [{ - key: "getAllItems", - value: function () { - var _getAllItems = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(PublicationsHelper.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(PublicationsHelper.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(PublicationsHelper.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(PublicationsHelper.SP.name, key); - }); - - function removeItem(_x4) { - return _removeItem.apply(this, arguments); - } - - return removeItem; - }() - }]); - }(); - - PublicationsHelper.SP = { - name: "publications", - keys: { - current: "currentPublication" - } - }; -},2020,[3,270,6,7,438]); -__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { - module.exports = { - "main": { - "enableHighlighting": "true", - "backgroundColor": "#000000", - "textColor": "#FFFFFF", - "buttonHighlightColor": "#4DB9E3", - "defaultButtonHighlightColor": "#FFFFFF", - "buttons": [ - { - "text": "Read", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openRead" - }, - { - "text": "Swipe", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openSwipe" - }, - { - "text": "Browse", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openBrowse" - }, - { - "text": "Thumbs", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openThumbnail" - }, - { - "text": "Index", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openIndex" - }, - { - "text": "Editions", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openOptionPageEditions" - }, - { - "text": "News", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openLiveNews" - }, - { - "text": "", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "downloadEdition" - }, - { - "text": "Specials", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openSpecialSections" - }, - { - "text": "More", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openMore" - }, - { - "text": "Fit", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "fitPageToggle" - } - ], - "more": [ - { - "id": "1", - "text": "Search", - "forceText": "0", - "iconUrlOff": "", - "iconLibrary": "", - "function": "openSearch" - }, - { - "id": "2", - "text": "Publications", - "forceText": "0", - "function": "openOptionPagePublications" - }, - { - "id": "3", - "text": "Login", - "iconUrlOff": "", - "iconLibrary": "", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "4", - "text": "Help", - "iconUrlOff": "", - "iconLibrary": "", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "5", - "text": "Contact", - "iconUrlOff": "", - "iconLibrary": "", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "6", - "text": "Settings", - "iconUrlOff": "", - "iconLibrary": "", - "forceText": "0", - "function": "openOptionPageSettings" - } - ] - }, - "navigation": { - "backgroundColor": "transparent", - "textColor": "#000000", - "back": { - "buttons": [ - { - "text": "BackPage", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "backPage" - }, - { - "text": "BackSection", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "backSection" - } - ] - }, - "forward": { - "buttons": [ - { - "text": "ForwardPage", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "forwardPage" - }, - { - "text": "ForwardSection", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "forwardSection" - } - ] - } - }, - "index": { - "firstLevel": { - "header": { - "url": "", - "function": "openIndex", - "padding": "0,0,0,0", - "alignment": "left" - }, - "hr": { - "top": { - "color": "#000000", - "height": "1" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "color": "#000000", - "buttons": [] - }, - "right": { - "buttons": [ - { - "text": "GoUp", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "goUp" - }, - { - "text": "FullScreenToggle", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleFullScreen" - }, - { - "text": "Close", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "closeArticle" - } - ] - } - }, - "secondLevel": { - "header": { - "url": "", - "function": "openIndex", - "padding": "0,0,0,0", - "alignment": "left" - }, - "hr": { - "top": { - "color": "#000000", - "height": "1" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "color": "#000000", - "buttons": [] - }, - "right": { - "buttons": [ - { - "text": "GoBack", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "goBack" - }, - { - "text": "GoUp", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "goUp" - }, - { - "text": "GoNext", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "goNext" - }, - { - "text": "FullScreenToggle", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleFullScreen" - }, - { - "text": "Close", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "closeArticle" - } - ] - } - } - }, - "article": { - "header": { - "url": "", - "function": "openIndex", - "padding": "0,0,0,0", - "alignment": "left" - }, - "hr": { - "top": { - "color": "#000000", - "height": "1" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "color": "#000000", - "hoverText": "Example hover text", - "size": "20", - "padding": "20,0,0,0", - "alignment": "left", - "buttons": [ - { - "text": "Print", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "print" - }, - { - "text": "Share", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "share" - } - ] - }, - "right": { - "buttons": [ - { - "text": "Search", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "search" - }, - { - "text": "Clear search", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "clearSearch" - }, - { - "text": "FontDecrease", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "fontDecrease" - }, - { - "text": "FontIncrease", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "fontIncrease" - }, - { - "text": "ToggleArticleExtra", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleArticleExtra" - }, - { - "text": "GraphDecrease", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphDecrease" - }, - { - "text": "GraphIncrease", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphIncrease" - }, - { - "text": "GraphZoomUnfit", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphZoomUnfit" - }, - { - "text": "TextToSpeech", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleTextToSpeech" - }, - { - "text": "FullScreenToggle", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleFullScreen" - }, - { - "text": "Graphic", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleGraphic" - }, - { - "text": "Close", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "closeArticle" - } - ] - }, - "footer": { - "buttons": null, - "more": [ - { - "id": "1", - "text": "Search", - "forceText": "0", - "function": "openSearch" - }, - { - "id": "2", - "text": "Login", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "3", - "text": "Help", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "4", - "text": "Contact", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "5", - "text": "Settings", - "forceText": "0", - "function": "openOptionPageSettings" - } - ] - } - } -} -; -},2021,[]); -__d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { - module.exports = { - "main": { - "enableHighlighting": "true", - "backgroundColor": "#000000", - "textColor": "#FFFFFF", - "buttonHighlightColor": "#4DB9E3", - "defaultButtonHighlightColor": "#FFFFFF", - "buttons": [ - { - "text": "Index", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openIndex" - }, - { - "text": "Thumbnail", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openThumbnail" - }, - { - "text": "Browse", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openBrowse" - }, - { - "text": "News", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "forceText": "0", - "function": "openLiveNews" - }, - { - "text": "Fit", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "fitPageToggle" - }, - { - "text": "Option", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openMore" - } - ], - "more": [ - { - "id": "1", - "text": "Search", - "forceText": "0", - "function": "openSearch" - }, - { - "id": "2", - "text": "Editions", - "forceText": "0", - "function": "openOptionPageEditions" - }, - { - "id": "3", - "text": "Specials", - "forceText": "0", - "function": "openSpecialSections" - }, - { - "id": "4", - "text": "Publications", - "forceText": "0", - "function": "openOptionPagePublications" - }, - { - "id": "5", - "text": "Login", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "6", - "text": "Help", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "7", - "text": "Contact", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "8", - "text": "Settings", - "forceText": "0", - "function": "openOptionPageSettings" - } - ] - }, - "navigation": { - "backgroundColor": "transparent", - "textColor": "#00000", - "back": { - "buttons": [ - { - "text": "BackPage", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "backPage" - }, - { - "text": "BackSection", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "backSection" - } - ] - }, - "forward": { - "buttons": [ - { - "text": "ForwardPage", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "forwardPage" - }, - { - "text": "ForwardSection", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "forwardSection" - } - ] - } - }, - "index": { - "firstLevel": { - "header": {}, - "hr": { - "top": { - "color": "#000000", - "height": "1" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "buttons": [] - }, - "right": { - "buttons": [] - },"footer": { - "enableHighlighting": "true", - "backgroundColor": "#000000", - "textColor": "#FFFFFF", - "buttonHighlightColor": "#4DB9E3", - "defaultButtonHighlightColor": "#FFFFFF", - "buttons": [ - { - "text": "Browse", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openBrowse" - }, - { - "text": "Previous Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "previousArticle" - }, - { - "text": "Index", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openIndexAlt" - }, - { - "text": "Next Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "nextArticle" - }, - { - "text": "Option", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openMore" - } - ], - "more": [ - { - "id": "1", - "text": "Editions", - "forceText": "0", - "function": "openOptionPageEditions" - }, - { - "id": "2", - "text": "Specials", - "forceText": "0", - "function": "openSpecialSections" - }, - { - "id": "3", - "text": "Login", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "4", - "text": "Help", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "5", - "text": "Contact", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "6", - "text": "Settings", - "forceText": "0", - "function": "openOptionPageSettings" - }, - { - "id": "7", - "text": "Search", - "forceText": "0", - "function": "openSearch" - } - ] - } - }, - "secondLevel": { - "header": {}, - "hr": { - "top": { - "color": "#000000", - "height": "1" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "buttons": [] - }, - "right": { - "buttons": [] - },"footer": { - "enableHighlighting": "true", - "backgroundColor": "#000000", - "textColor": "#FFFFFF", - "buttonHighlightColor": "#4DB9E3", - "defaultButtonHighlightColor": "#FFFFFF", - "buttons": [ - { - "text": "Browse", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openBrowse" - }, - { - "text": "Previous Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "previousArticle" - }, - { - "text": "Index", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openIndexAlt" - }, - { - "text": "Next Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "nextArticle" - }, - { - "text": "Option", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openMore" - } - ], - "more": [ - { - "id": "1", - "text": "Editions", - "forceText": "0", - "function": "openOptionPageEditions" - }, - { - "id": "2", - "text": "Specials", - "forceText": "0", - "function": "openSpecialSections" - }, - { - "id": "3", - "text": "Login", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "4", - "text": "Help", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "5", - "text": "Contact", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "6", - "text": "Settings", - "forceText": "0", - "function": "openOptionPageSettings" - }, - { - "id": "7", - "text": "Search", - "forceText": "0", - "function": "openSearch" - } - ] - } - } - }, - "article": { - "header": { - "url": "", - "function": "openIndex", - "padding": "0,0,0,0", - "alignment": "left" - }, - "hr": { - "top": { - "color": "", - "height": "" - }, - "bottom": { - "color": "", - "height": "" - } - }, - "left": { - "color": "#000000", - "hoverText": "Example hover text", - "size": "20", - "padding": "20,0,0,0", - "alignment": "left", - "buttons": [ - { - "text": "Print", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "print" - }, - { - "text": "Share", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "share" - } - ] - }, - "right": { - "buttons": [ - { - "text": "Search", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "search" - }, - { - "text": "Clear search", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "clearSearch" - }, - { - "text": "FontDecrease", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "fontDecrease" - }, - { - "text": "FontIncrease", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "fontIncrease" - }, - { - "text": "ToggleArticleExtra", - "iconUrlOn": "", - "iconUrlOff": "", - "iconLibrary": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleArticleExtra" - }, - { - "text": "GraphDecrease", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphDecrease" - }, - { - "text": "GraphIncrease", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphIncrease" - }, - { - "text": "GraphZoomUnfit", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "graphZoomUnfit" - }, - { - "text": "TextToSpeech", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleTextToSpeech" - }, - { - "text": "Graphic", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "toggleGraphic" - }, - { - "text": "Close", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "35", - "padding": "0,0,0,0", - "function": "closeArticle" - } - ] - }, - "footer": { - "enableHighlighting": "true", - "backgroundColor": "#000000", - "textColor": "#FFFFFF", - "buttonHighlightColor": "#4DB9E3", - "defaultButtonHighlightColor": "#FFFFFF", - "buttons": [ - { - "text": "Browse", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openBrowse" - }, - { - "text": "Previous Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "previousArticle" - }, - { - "text": "Index", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openIndexAlt" - }, - { - "text": "Next Article", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "nextArticle" - }, - { - "text": "Option", - "iconUrlOn": "", - "iconUrlOff": "", - "height": "45", - "padding": "0,0,0,0", - "function": "openMore" - } - ], - "more": [ - { - "id": "1", - "text": "Editions", - "forceText": "0", - "function": "openOptionPageEditions" - }, - { - "id": "2", - "text": "Specials", - "forceText": "0", - "function": "openSpecialSections" - }, - { - "id": "3", - "text": "Login", - "forceText": "0", - "function": "openOptionPageLogin" - }, - { - "id": "4", - "text": "Help", - "forceText": "0", - "function": "openOptionPageHelp" - }, - { - "id": "5", - "text": "Contact", - "forceText": "0", - "function": "openOptionPageContact" - }, - { - "id": "6", - "text": "Settings", - "forceText": "0", - "function": "openOptionPageSettings" - }, - { - "id": "7", - "text": "Search", - "forceText": "0", - "function": "openSearch" - } - ] - } - } -} -; -},2022,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Footer = 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])); - - 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 Footer = exports.Footer = function (_BaseModel) { - function Footer(json) { - var _this; - - (0, _classCallCheck2.default)(this, Footer); - _this = _callSuper(this, Footer, [json]); - - _this.setEnableHighlighting(); - - _this.setBackgroundColor(); - - _this.setTextColor(); - - _this.setButtonHighlightColor(); - - _this.setDefaultButtonHighlightColor(); - - _this.setButtons(); - - _this.setMore(); - - return _this; - } - - (0, _inherits2.default)(Footer, _BaseModel); - return (0, _createClass2.default)(Footer, [{ - key: "setEnableHighlighting", - value: function setEnableHighlighting() { - this.enableHighlighting = this.getValueByKey("enableHighlighting", false); - } - }, { - key: "setBackgroundColor", - value: function setBackgroundColor() { - this.backgroundColor = this.getValueByKey("backgroundColor", _$$_REQUIRE(_dependencyMap[6]).colors.black); - } - }, { - key: "setTextColor", - value: function setTextColor() { - this.textColor = this.getValueByKey("textColor", _$$_REQUIRE(_dependencyMap[6]).colors.white); - } - }, { - key: "setButtonHighlightColor", - value: function setButtonHighlightColor() { - this.buttonHighlightColor = this.getValueByKey("buttonHighlightColor", _$$_REQUIRE(_dependencyMap[6]).colors.md_light_blue_300); - } - }, { - key: "setDefaultButtonHighlightColor", - value: function setDefaultButtonHighlightColor() { - this.defaultButtonHighlightColor = this.getValueByKey("defaultButtonHighlightColor", _$$_REQUIRE(_dependencyMap[6]).colors.white); - } - }, { - key: "setButtons", - value: function setButtons() { - this.buttons = this.getArrayByKey("buttons").map(function (button) { - return new (_$$_REQUIRE(_dependencyMap[7]).FooterIcon)(button); - }); - } - }, { - key: "setMore", - value: function setMore() { - this.more = this.getArrayByKey("more").map(function (button) { - return new (_$$_REQUIRE(_dependencyMap[8]).MoreIcon)(button); - }); - } - }, { - key: "getButtonByAction", - value: function getButtonByAction(action) { - var button = this.buttons.find(function (icon) { - return icon.getAction() === action; - }); - - if (!button) { - button = this.more.find(function (icon) { - return icon.getAction() === action; - }); - } - - return button; - } - }]); - }(_$$_REQUIRE(_dependencyMap[9]).BaseModel); -},2023,[3,6,7,11,13,14,438,2024,2025,2010]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FooterIcon = 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])); - - 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 FooterIcon = exports.FooterIcon = function (_Icon) { - function FooterIcon(json) { - (0, _classCallCheck2.default)(this, FooterIcon); - return _callSuper(this, FooterIcon, [json, "footer"]); - } - - (0, _inherits2.default)(FooterIcon, _Icon); - return (0, _createClass2.default)(FooterIcon); - }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},2024,[3,7,6,11,13,14,2015]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.MoreIcon = 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])); - - 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 MoreIcon = exports.MoreIcon = function (_Icon) { - function MoreIcon(json) { - (0, _classCallCheck2.default)(this, MoreIcon); - return _callSuper(this, MoreIcon, [json, "footer-more"]); - } - - (0, _inherits2.default)(MoreIcon, _Icon); - return (0, _createClass2.default)(MoreIcon); - }(_$$_REQUIRE(_dependencyMap[6]).Icon); -},2025,[3,7,6,11,13,14,2015]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PaperSetupManager = 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 _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _PublicationsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _PaperSetupService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _excluded = ["oneTimeToken", "fromCache"]; - - var PaperSetupManager = exports.PaperSetupManager = function () { - function PaperSetupManager() { - (0, _classCallCheck2.default)(this, PaperSetupManager); - this.pSetups = []; - this.activePSetup = PaperSetupManager.getMainPSetup(); - } - - return (0, _createClass2.default)(PaperSetupManager, [{ - key: "preloadCustomFonts", - value: function () { - var _preloadCustomFonts = (0, _asyncToGenerator2.default)(function* (config) { - var paper = config.paper, - customFontsString = config.customFontsString, - customFontsFileTime = config.customFontsFileTime; - - if (customFontsString) { - yield _$$_REQUIRE(_dependencyMap[8]).FontsManager.preloadFonts(paper, customFontsString, customFontsFileTime); - } else {} - }); - - function preloadCustomFonts(_x) { - return _preloadCustomFonts.apply(this, arguments); - } - - return preloadCustomFonts; - }() - }, { - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* (pSetup) { - var machine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : PaperSetupManager.getMachine(); - var extraParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var success = false; - var overwriteActivePSetup = true; - var preview = extraParams.preview, - oneTimeToken = extraParams.oneTimeToken, - firstInstall = extraParams.firstInstall, - fromCache = extraParams.fromCache; - - if (!pSetup) { - pSetup = PaperSetupManager.getMainPSetup(); - overwriteActivePSetup = !this.activePSetup; - } - - var config = this.pSetups[pSetup]; - - if (!config) { - config = new (_$$_REQUIRE(_dependencyMap[9]).PaperSetupConfig)(pSetup, machine); - } - - var _yield$PaperSetupMana = yield PaperSetupManager.download({ - pSetup: pSetup, - machine: machine, - preview: preview, - oneTimeToken: oneTimeToken, - firstInstall: firstInstall, - fromCache: fromCache - }), - pSetupConfigJSON = _yield$PaperSetupMana.json, - fromServer = _yield$PaperSetupMana.fromServer; - - success = yield config.init(pSetupConfigJSON); - - if (success) { - yield this.preloadCustomFonts(config); - - if (oneTimeToken) { - var _config = config, - loginStatus = _config.loginStatus; - loginStatus.setOneTimeToken(oneTimeToken); - } - - this.pSetups[pSetup] = config; - - if (overwriteActivePSetup) { - this.setActivePSetup(pSetup); - } - } - - return { - success: success, - fromServer: fromServer - }; - }); - - function init(_x2) { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "initConfigOnly", - value: function () { - var _initConfigOnly = (0, _asyncToGenerator2.default)(function* () { - var pSetup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PaperSetupManager.getMainPSetup(); - var machine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : PaperSetupManager.getMachine(); - var config = new (_$$_REQUIRE(_dependencyMap[9]).PaperSetupConfig)(pSetup, machine); - - var _yield$PaperSetupMana2 = yield PaperSetupManager.download({ - pSetup: pSetup, - machine: machine - }), - json = _yield$PaperSetupMana2.json; - - var success = yield config.init(json); - - if (success) { - yield this.preloadCustomFonts(config); - } - - return { - success: success, - config: config - }; - }); - - function initConfigOnly() { - return _initConfigOnly.apply(this, arguments); - } - - return initConfigOnly; - }() - }, { - key: "setCurrentPublication", - value: function setCurrentPublication(_ref) { - var pSetup = _ref.pSetup, - machine = _ref.machine, - paperName = _ref.paperName, - external = _ref.external; - var activeConfig = this.getActivePSetupConfig(); - var publicationsManager = global.getPublicationsManager(); - publicationsManager.setCurrentPublication({ - pSetup: pSetup, - machine: machine, - name: paperName || activeConfig.paperName, - paper: activeConfig.paper, - xpaper: activeConfig.xpaper, - external: external - }); - } - }, { - key: "load", - value: function () { - var _load = (0, _asyncToGenerator2.default)(function* (pSetup, machine) { - var extraParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var external = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - var success = true; - var fromServer = false; - var pSetupToUse = pSetup; - var machineToUse = machine; - - var _this$getMainPSetupCo = this.getMainPSetupConfig(), - mainPSetup = _this$getMainPSetupCo.pSetup, - isGenericApp = _this$getMainPSetupCo.isGenericApp; - - var publicationBaseParams = { - pSetup: pSetup, - machine: machine, - paperName: extraParams.paperName, - external: external && pSetup !== mainPSetup - }; - - if (pSetup && pSetup !== this.activePSetup) { - if (!machineToUse && isGenericApp) { - var _this$getActivePSetup = this.getActivePSetupConfig(); - - machineToUse = _this$getActivePSetup.machine; - } - - if (!external && !global.isTaAddon() && (!isGenericApp || PaperSetupManager.isPSetupASpecialOfActivePSetup(pSetup) || PaperSetupManager.isPSetupXPaperOfActivePSetup(pSetup))) { - var xpSetup = pSetup; - - if (pSetup.indexOf("-xp-") !== -1) { - var _pSetupArray = pSetup.split("-xp-"); - - if (_pSetupArray.length > 1) { - xpSetup = _pSetupArray[1]; - } - } - - var pSetupArray = this.activePSetup.split("-xp-"); - - if (pSetupArray.length > 1) { - if (pSetupArray[0] !== xpSetup) { - pSetupToUse = pSetupArray[0] + "-xp-" + xpSetup; - } - } else { - pSetupToUse = this.activePSetup + "-xp-" + xpSetup; - } - } - - var _yield$this$init = yield this.init(pSetupToUse, machineToUse, extraParams); - - success = _yield$this$init.success; - fromServer = _yield$this$init.fromServer; - - if (success) { - this.setCurrentPublication(publicationBaseParams); - var activeConfig = this.getActivePSetupConfig(); - activeConfig.setExternal(publicationBaseParams.external); - } - } else { - var publicationsManager = global.getPublicationsManager(); - - if (!publicationsManager.getCurrentPublication()) { - this.setCurrentPublication(publicationBaseParams); - } - - var preview = extraParams.preview, - oneTimeToken = extraParams.oneTimeToken; - - if (preview || oneTimeToken) { - var _yield$this$init2 = yield this.init(pSetupToUse, machineToUse, extraParams); - - success = _yield$this$init2.success; - fromServer = _yield$this$init2.fromServer; - } - } - - return { - config: success ? this.getActivePSetupConfig() : null, - fromServer: fromServer - }; - }); - - function load(_x3, _x4) { - return _load.apply(this, arguments); - } - - return load; - }() - }, { - key: "reload", - value: function () { - var _reload = (0, _asyncToGenerator2.default)(function* (extraParams) { - var _this$getActivePSetup2 = this.getActivePSetupConfig(), - pSetup = _this$getActivePSetup2.pSetup, - machine = _this$getActivePSetup2.machine; - - var result = yield this.init(pSetup, machine, extraParams); - return result; - }); - - function reload(_x5) { - return _reload.apply(this, arguments); - } - - return reload; - }() - }, { - key: "setActivePSetup", - value: function setActivePSetup(pSetup) { - this.activePSetup = pSetup; - } - }, { - key: "resetActivePSetup", - value: function resetActivePSetup() { - this.activePSetup = PaperSetupManager.getMainPSetup(); - } - }, { - key: "getActivePSetup", - value: function getActivePSetup() { - return this.activePSetup; - } - }, { - key: "setPSetupConfig", - value: function setPSetupConfig(pSetup, pSetupConfig) { - this.pSetups[pSetup] = pSetupConfig; - } - }, { - key: "getPSetupConfig", - value: function getPSetupConfig(pSetup) { - if (pSetup) { - if (this.pSetups[pSetup]) { - return this.pSetups[pSetup]; - } - } else {} - - return {}; - } - }, { - key: "getMainPSetupConfig", - value: function getMainPSetupConfig() { - return this.getPSetupConfig(PaperSetupManager.getMainPSetup()); - } - }, { - key: "getActivePSetupConfig", - value: function getActivePSetupConfig() { - return this.getPSetupConfig(this.getActivePSetup()); - } - }, { - key: "getRSSActivePSetupConfig", - value: function getRSSActivePSetupConfig() { - var activePSetupConfig = this.getActivePSetupConfig(); - var activeRssIsEnabled = activePSetupConfig.rssIsEnabled, - activePSetup = activePSetupConfig.pSetup; - - if (activeRssIsEnabled) { - var pSetupArray = activePSetup.split("-xp-"); - - if (pSetupArray.length > 1) { - var mainActivePSetup = this.getPSetupConfig(pSetupArray[0]); - - if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(mainActivePSetup)) { - return mainActivePSetup; - } - } else { - return activePSetupConfig; - } - } - - return this.getMainPSetupConfig(); - } - }], [{ - key: "getMainPSetup", - value: function getMainPSetup() { - return global.getAppPSetup(); - } - }, { - key: "getMachine", - value: function getMachine() { - return global.getAppServer(); - } - }, { - key: "isGenericAppConfigured", - value: function isGenericAppConfigured() { - var _global$getMainPSetup = global.getMainPSetup(), - isGenericApp = _global$getMainPSetup.isGenericApp, - publicationsPageURL = _global$getMainPSetup.publicationsPageURL; - - return isGenericApp && !!publicationsPageURL; - } - }, { - key: "isPSetupASpecialOfActivePSetup", - value: function isPSetupASpecialOfActivePSetup(pSetup) { - var _global$getActivePSet = global.getActivePSetup(), - specials = _global$getActivePSet.specials; - - return pSetup && specials ? specials.split(",").includes(pSetup) : false; - } - }, { - key: "isPSetupXPaperOfActivePSetup", - value: function isPSetupXPaperOfActivePSetup(pSetup) { - var _global$getActivePSet2 = global.getActivePSetup(), - xPapers = _global$getActivePSet2.xPapers; - - return pSetup && xPapers ? xPapers.split(",").includes(pSetup) : false; - } - }, { - key: "download", - value: function () { - var _download = (0, _asyncToGenerator2.default)(function* () { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - pSetup: PaperSetupManager.getMainPSetup(), - machine: PaperSetupManager.getMachine(), - fromCache: false - }; - var fromServer = false; - var oneTimeToken = params.oneTimeToken, - fromCache = params.fromCache, - otherParams = (0, _objectWithoutProperties2.default)(params, _excluded); - var pSetup = otherParams.pSetup, - machine = otherParams.machine, - preview = otherParams.preview; - var deepLinkParamsPresent = preview || oneTimeToken; - - var storageKey = pSetup + "-" + _Api.default.getServer(machine); - - var json = yield _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiGet(storageKey); - - if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json) && machine.startsWith("http")) { - json = yield _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiGet(pSetup + "-" + _$$_REQUIRE(_dependencyMap[10]).StringUtils.removeProtocolFromURL(machine)); - } - - if (_$$_REQUIRE(_dependencyMap[10]).NetworkUtils.isOnline() && (_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json) || !_$$_REQUIRE(_dependencyMap[10]).JSUtils.hasProperty(json, "layoutStyle") || !fromCache || deepLinkParamsPresent)) { - if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(json)) { - var newsmemoryConfig = global.getNewsmemoryConfig(); - var _json = json, - udb = _json.udb; - otherParams.prefEdi = yield newsmemoryConfig.getPrefEdi(udb); - otherParams.favEdi = yield newsmemoryConfig.getFavEdi(); - } - - if (global.apiKey) { - otherParams.apiKey = global.apiKey; - } - - var newJson = yield _PaperSetupService.default.getJson(otherParams); - - if (!_$$_REQUIRE(_dependencyMap[10]).JSUtils.isEmpty(newJson)) { - json = newJson; - - _$$_REQUIRE(_dependencyMap[10]).StorageUtils.clearAll(storageKey).then(function () { - return _$$_REQUIRE(_dependencyMap[10]).StorageUtils.multiSet(storageKey, newJson); - }); - - fromServer = true; - } - } - - return { - json: json || {}, - fromServer: fromServer - }; - }); - - function download() { - return _download.apply(this, arguments); - } - - return download; - }() - }]); - }(); -},2026,[3,4,270,6,7,407,2018,2027,2030,1748,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 api = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var parser = _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 PaperSetupService = exports.default = function () { - function PaperSetupService() { - (0, _classCallCheck2.default)(this, PaperSetupService); - } - - return (0, _createClass2.default)(PaperSetupService, null, [{ - key: "getJson", - value: function () { - var _getJson = (0, _asyncToGenerator2.default)(function* (params) { - var data = yield api.getDataFromApiResponse(params); - return parser.parse(data); - }); - - function getJson(_x) { - return _getJson.apply(this, arguments); - } - - return getJson; - }() - }]); - }(); -},2027,[3,270,6,7,2028,2029]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getDataFromApiResponse = getDataFromApiResponse; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _Api = _interopRequireWildcard(_$$_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; } - - function getDataFromApiResponse(_x) { - return _getDataFromApiResponse.apply(this, arguments); - } - - function _getDataFromApiResponse() { - _getDataFromApiResponse = (0, _asyncToGenerator2.default)(function* (params) { - var result = ""; - - try { - result = yield _Api.default.requestWithRetry({ - request: _Api.default.pSetup, - onRetry: function onRetry(retries, maxRetries) { - _$$_REQUIRE(_dependencyMap[4]).EventRegister.emit(_events.default.PAPER_SETUP_API_RETRY, { - retryText: global.strings("msg_download_retry", { - retry: retries + 1, - maxRetries: maxRetries - }) - }); - } - }, params); - } catch (e) { - if (e.response && e.response.status === _Api.HTTP_CODES.UNAUTHORIZED) { - throw e; - } - } - - return result; - }); - return _getDataFromApiResponse.apply(this, arguments); - } -},2028,[3,270,436,407,564]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.parse = parse; - - function parse() { - var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - var splitData = data.split("&"); - var json = {}; - - for (var i = 0; i < splitData.length; i++) { - try { - var splitSetting = splitData[i].split("="); - var key = splitSetting[0]; - - if (key) { - json[key] = _$$_REQUIRE(_dependencyMap[0]).StringUtils.decodeURIComponent(splitSetting[1]); - } - } catch (e) {} - } - - return json; - } -},2029,[438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FontsManager = 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 _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _ApplicationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _FontsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var FontsManager = exports.FontsManager = function () { - function FontsManager() { - (0, _classCallCheck2.default)(this, FontsManager); - this.configs = []; - } - - return (0, _createClass2.default)(FontsManager, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var pSetupConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(); - var pSetup = pSetupConfig.pSetup, - machine = pSetupConfig.machine, - cdnServer = pSetupConfig.cdnServer, - paper = pSetupConfig.paper, - customFontsFileTime = pSetupConfig.customFontsFileTime; - - if (!this.configs[paper]) { - this.configs[paper] = new (_$$_REQUIRE(_dependencyMap[7]).FontsConfig)(); - } - - _FontsHelper.default.setStorageName(paper); - - var lastCustomFontsFileTime = yield _FontsHelper.default.getFiletime(); - var fontsJSON = {}; - - try { - fontsJSON = yield _FontsHelper.default.dump(); - } catch (e) {} - - if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.isOnline() && customFontsFileTime > -1 && customFontsFileTime > lastCustomFontsFileTime) { - fontsJSON = yield FontsManager.download({ - pSetup: pSetup, - machine: machine, - cdnServer: cdnServer, - mtime: customFontsFileTime - }); - } else if (customFontsFileTime === -1) { - fontsJSON = {}; - yield _FontsHelper.default.clearAll(); - } - - _FontsHelper.default.setFiletime(customFontsFileTime); - - yield _ApplicationManager.default.makeFontsDirectory(); - var mainFontsJSON = this.getMainFontsJSON(pSetupConfig); - - if (!_$$_REQUIRE(_dependencyMap[8]).JSUtils.isEmpty(mainFontsJSON)) { - fontsJSON = _$$_REQUIRE(_dependencyMap[8]).FontUtils.mergeFontsJSONs(mainFontsJSON, fontsJSON); - } - - return this.configs[paper].init(fontsJSON); - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "getMainFontsJSON", - value: function getMainFontsJSON() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup(), - activePaper = _ref.paper; - - var _global$getMainPSetup = global.getMainPSetup(), - paper = _global$getMainPSetup.paper; - - var fontsConfig = this.getConfig(paper); - - if (activePaper !== paper && fontsConfig) { - return fontsConfig.getJSON(); - } - - return {}; - } - }, { - key: "getConfig", - value: function getConfig() { - var paper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.getActivePSetup().paper; - return this.configs[paper] || new (_$$_REQUIRE(_dependencyMap[7]).FontsConfig)(); - } - }], [{ - key: "download", - value: function () { - var _download = (0, _asyncToGenerator2.default)(function* (params) { - var response = yield _NewsmemoryAJAX.default.customFonts(params); - var json = {}; - - if (response && response.data && response.data.fonts) { - json = response.data; - var keys = Object.keys(json); - - if (keys.length > 0) { - keys.forEach(function (key) { - if (Array.isArray(json[key])) { - json[key] = JSON.stringify(json[key]); - } - }); - - _$$_REQUIRE(_dependencyMap[8]).StorageUtils.clearAll(_FontsHelper.default.SP.name).then(function () { - return _$$_REQUIRE(_dependencyMap[8]).StorageUtils.multiSet(_FontsHelper.default.SP.name, json); - }); - } - } - - return json; - }); - - function download(_x) { - return _download.apply(this, arguments); - } - - return download; - }() - }, { - key: "preloadFonts", - value: function () { - var _preloadFonts = (0, _asyncToGenerator2.default)(function* (paper, rawJSON, fileTime) { - var json = {}; - - try { - json = JSON.parse(rawJSON); - var keys = Object.keys(json); - - if (keys.length > 0) { - _FontsHelper.default.setStorageName(paper); - - keys.forEach(function (key) { - if (Array.isArray(json[key])) { - json[key] = JSON.stringify(json[key]); - } - }); - yield _$$_REQUIRE(_dependencyMap[8]).StorageUtils.clearAll(_FontsHelper.default.SP.name); - yield _$$_REQUIRE(_dependencyMap[8]).StorageUtils.multiSet(_FontsHelper.default.SP.name, json); - yield _FontsHelper.default.setFiletime(fileTime); - } - } catch (e) {} - }); - - function preloadFonts(_x2, _x3, _x4) { - return _preloadFonts.apply(this, arguments); - } - - return preloadFonts; - }() - }]); - }(); -},2030,[3,270,6,7,406,817,2031,2032,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 FONTS_BASE_STORAGE_NAME = "fonts"; - - var FontsHelper = exports.default = function () { - function FontsHelper() { - (0, _classCallCheck2.default)(this, FontsHelper); - } - - return (0, _createClass2.default)(FontsHelper, null, [{ - key: "setStorageName", - value: function setStorageName(prefix) { - var storageName = FONTS_BASE_STORAGE_NAME; - - if (prefix) { - storageName = prefix + "_" + storageName; - } - - FontsHelper.SP.name = storageName; - } - }, { - key: "getItem", - value: function () { - var _getItem = (0, _asyncToGenerator2.default)(function* (key) { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.getItem(FontsHelper.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) { - yield _$$_REQUIRE(_dependencyMap[4]).StorageUtils.setItem(FontsHelper.SP.name, key, value); - }); - - function setItem(_x2, _x3) { - return _setItem.apply(this, arguments); - } - - return setItem; - }() - }, { - key: "getFiletime", - value: function () { - var _getFiletime = (0, _asyncToGenerator2.default)(function* () { - var filetime = parseInt((yield FontsHelper.getItem(FontsHelper.SP.keys.filetime)) || -1, 10); - return filetime; - }); - - function getFiletime() { - return _getFiletime.apply(this, arguments); - } - - return getFiletime; - }() - }, { - key: "setFiletime", - value: function () { - var _setFiletime = (0, _asyncToGenerator2.default)(function* (filetime) { - return FontsHelper.setItem(FontsHelper.SP.keys.filetime, "" + filetime); - }); - - function setFiletime(_x4) { - return _setFiletime.apply(this, arguments); - } - - return setFiletime; - }() - }, { - key: "clearAll", - value: function () { - var _clearAll = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.clearAll(FontsHelper.SP.name); - }); - - function clearAll() { - return _clearAll.apply(this, arguments); - } - - return clearAll; - }() - }, { - key: "dump", - value: function () { - var _dump = (0, _asyncToGenerator2.default)(function* () { - return _$$_REQUIRE(_dependencyMap[4]).StorageUtils.multiGet(FontsHelper.SP.name); - }); - - function dump() { - return _dump.apply(this, arguments); - } - - return dump; - }() - }]); - }(); - - FontsHelper.SP = { - name: FONTS_BASE_STORAGE_NAME, - keys: { - fonts: "fonts", - font_regular: "regular", - font_medium: "medium", - font_bold: "bold", - filetime: "filetime" - } - }; -},2031,[3,270,6,7,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FontsConfig = 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 _FontsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var FontsConfig = exports.FontsConfig = function () { - function FontsConfig() { - (0, _classCallCheck2.default)(this, FontsConfig); - } - - return (0, _createClass2.default)(FontsConfig, [{ - key: "init", - value: function () { - var _init = (0, _asyncToGenerator2.default)(function* () { - var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - this.json = json; - var keys = _FontsHelper.default.SP.keys; - this.fonts = yield this.getValue(keys.fonts); - this.dynamicFonts = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.getDynamicFonts(this.fonts, _tecnaviaFileUtils.default.getFontsDirectory()); - this.mappedDynamicFonts = []; - - for (var i = 0; i < this.dynamicFonts.length; i++) { - var dynamicFont = this.dynamicFonts[i]; - - if (dynamicFont) { - var mappedDynamicFont = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.dynamicFontMappingForApp(dynamicFont); - this.mappedDynamicFonts.push(mappedDynamicFont); - } - } - - this.defaultFontRegular = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp(); - this.defaultFontMedium = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp("", "medium"); - this.defaultFontBold = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp("", "bold"); - - var _global$getRssIndex = global.getRssIndex(), - fontBold = _global$getRssIndex.fontBold, - fontMedium = _global$getRssIndex.fontMedium, - fontRegular = _global$getRssIndex.fontRegular; - - var fontRegularName = yield this.getValue(keys.font_regular); - - if (fontRegularName) { - this.fontRegular = yield this.getFontMapping(fontRegularName); - } else if (fontRegular) { - this.fontRegular = yield this.getFontMapping(fontRegular); - } else { - this.fontRegular = this.defaultFontRegular; - } - - var fontMediumName = yield this.getValue(keys.font_medium); - - if (fontMediumName) { - this.fontMedium = yield this.getFontMapping(fontMediumName, "medium"); - } else if (fontMedium) { - this.fontMedium = yield this.getFontMapping(fontMedium, "medium"); - } else { - this.fontMedium = this.defaultFontMedium; - } - - var fontBoldName = yield this.getValue(keys.font_bold); - - if (fontBoldName) { - this.fontBold = yield this.getFontMapping(fontBoldName, "bold"); - } else if (fontBold) { - this.fontBold = yield this.getFontMapping(fontBold, "bold"); - } else { - this.fontBold = this.defaultFontBold; - } - - return true; - }); - - function init() { - return _init.apply(this, arguments); - } - - return init; - }() - }, { - key: "getJSON", - value: function getJSON() { - return this.json || {}; - } - }, { - key: "getValue", - value: function () { - var _getValue = (0, _asyncToGenerator2.default)(function* (key) { - var value = this.json[key]; - - if (value === null || value === undefined) { - value = yield _FontsHelper.default.getItem(key); - } - - var keys = _FontsHelper.default.SP.keys; - - if (key === keys.fonts) { - try { - value = JSON.parse(value); - } catch (e) { - value = []; - } - } - - return value; - }); - - function getValue(_x) { - return _getValue.apply(this, arguments); - } - - return getValue; - }() - }, { - key: "getFontMapping", - value: function () { - var _getFontMapping = (0, _asyncToGenerator2.default)(function* (fontName, type) { - var fontMapping; - var dynamicFont = this.dynamicFonts.find(function (font) { - return font && font.name === fontName; - }); - - if (dynamicFont) { - fontMapping = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.dynamicFontMappingForApp(dynamicFont, type); - } else { - fontMapping = yield _$$_REQUIRE(_dependencyMap[6]).FontUtils.fontMappingForApp(fontName, type); - } - - return fontMapping; - }); - - function getFontMapping(_x2, _x3) { - return _getFontMapping.apply(this, arguments); - } - - return getFontMapping; - }() - }]); - }(); -},2032,[3,270,6,7,2031,566,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Navigation = 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])); - - 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 Navigation = exports.Navigation = function (_BaseModel) { - function Navigation(json) { - var _this; - - (0, _classCallCheck2.default)(this, Navigation); - _this = _callSuper(this, Navigation, [json]); - _this.back = new (_$$_REQUIRE(_dependencyMap[6]).Section)(json.back); - _this.forward = new (_$$_REQUIRE(_dependencyMap[6]).Section)(json.forward); - return _this; - } - - (0, _inherits2.default)(Navigation, _BaseModel); - return (0, _createClass2.default)(Navigation, [{ - key: "getBack", - value: function getBack() { - return this.back; - } - }, { - key: "getForward", - value: function getForward() { - return this.forward; - } - }, { - key: "getButtonByAction", - value: function getButtonByAction(action) { - var button; - - if (this.getBack()) { - button = this.getBack().buttons.find(function (icon) { - return icon.getAction() === action; - }); - } - - if (!button && this.getForward()) { - button = this.getForward().buttons.find(function (icon) { - return icon.getAction() === action; - }); - } - - return button; - } - }]); - }(_$$_REQUIRE(_dependencyMap[7]).BaseModel); -},2033,[3,6,7,11,13,14,2013,2010]); +},2032,[18,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -264973,7 +264921,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SslConfig.MAIN_DIRECTORY = "certs"; SslConfig.LIST = "list.json"; SslConfig.FILETIME = "filetime.txt"; -},2034,[3,270,6,7,407,566,438]); +},2033,[3,270,6,7,407,566,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265061,7 +265009,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2035,[3,270,6,7,566]); +},2034,[3,270,6,7,566]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265225,7 +265173,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2036,[3,270,6,7,436,2037,2038,438,2045,564]); +},2035,[3,270,6,7,436,2036,2037,438,2044,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265478,7 +265426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},2037,[3,270,6,7,438]); +},2036,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265653,7 +265601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); RssActionManager.PARSER = [new _ParserV2.default(), new _ParserV.default()]; -},2038,[3,6,7,2039,2041,2042]); +},2037,[3,6,7,2038,2040,2041]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265773,7 +265721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2039,[3,6,7,2040]); +},2038,[3,6,7,2039]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265805,7 +265753,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]; -},2040,[]); +},2039,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -265886,7 +265834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2041,[3,6,7]); +},2040,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266175,7 +266123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return global.strings("action_unknown"); }; -},2042,[3,16,18,567,2040,1729,436,1777,179,2043]); +},2041,[3,16,18,567,2039,1897,436,1811,179,2042]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266290,7 +266238,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e clearFavoritesEventName: _propTypes.default.string, toggleFavoritesEventName: _propTypes.default.string }; -},2043,[3,6,7,11,13,14,16,582,1776,564,2044,179,1709,1777]); +},2042,[3,6,7,11,13,14,16,582,1927,564,2043,179,819,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266314,7 +266262,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: CIRCULAR_MENU_ICON_SIZE } }); -},2044,[18]); +},2043,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266567,7 +266515,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2045,[3,6,7,1957,2038,2046,438,1857]); +},2044,[3,6,7,1988,2037,2045,438,1968]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266621,7 +266569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2046,[3,6,7]); +},2045,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -266827,7 +266775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2047,[3,270,6,7,1131,407,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,1986,438]); +},2046,[3,270,6,7,1181,407,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2010,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", @@ -267248,7 +267196,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "msg_edit_token_confirm": "New value: \"{{token}}\"", "btn_not_sure_yet": "Not sure yet" }; -},2048,[]); +},2047,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai a {{anchor}}", @@ -267640,7 +267588,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Caricamento...", "btn_not_sure_yet": "Non ne sono ancora sicuro" }; -},2049,[]); +},2048,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "{{anchor}} اذهب إلى", @@ -267995,7 +267943,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "جارٍ التحميل...", "btn_not_sure_yet": "لست متأكدا بعد" }; -},2050,[]); +},2049,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -268363,7 +268311,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploader...", "btn_not_sure_yet": "Ikke sikker endnu" }; -},2051,[]); +},2050,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Weiter zu {{anchor}}", @@ -268749,7 +268697,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Hochladen...", "btn_not_sure_yet": "Noch nicht sicher" }; -},2052,[]); +},2051,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Aller à {{anchor}}", @@ -269117,7 +269065,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Téléchargement...", "btn_not_sure_yet": "Je ne suis pas encore sûr" }; -},2053,[]); +},2052,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Ga naar {{anchor}}", @@ -269484,7 +269432,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploaden...", "btn_not_sure_yet": "Nog niet zeker" }; -},2054,[]); +},2053,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Acción ir a {{anchor}}", @@ -269867,7 +269815,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Cargando...", "btn_not_sure_yet": "No estoy seguro todavía" }; -},2055,[]); +},2054,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Du-te la {{anchor}}", @@ -270225,7 +270173,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Se încarcă...", "btn_not_sure_yet": "Încă nu sunt sigur" }; -},2056,[]); +},2055,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Pojdi na {{anchor}}", @@ -270641,7 +270589,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "msg_edit_token_confirm": "Nova vrednost: \"{{token}}\"", "btn_not_sure_yet": "Nisem še prepričan" }; -},2057,[]); +},2056,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå till {{anchor}}", @@ -271028,7 +270976,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laddar upp...", "btn_not_sure_yet": "Inte säker än" }; -},2058,[]); +},2057,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai para {{anchor}}", @@ -271413,7 +271361,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Carregando...", "btn_not_sure_yet": "Ainda não tenho certeza" }; -},2059,[]); +},2058,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Vai para {{anchor}}", @@ -271796,7 +271744,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Carregando...", "btn_not_sure_yet": "Ainda não tenho certeza" }; -},2060,[]); +},2059,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Ga naar {{anchor}}", @@ -272163,7 +272111,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Uploaden...", "btn_not_sure_yet": "Nog niet zeker" }; -},2061,[]); +},2060,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -272528,7 +272476,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laster opp ...", "btn_not_sure_yet": "Ikke sikker ennå" }; -},2062,[]); +},2061,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "action_go_to_category": "Gå til {{anchor}}", @@ -272894,7 +272842,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "uploading": "Laster opp ...", "btn_not_sure_yet": "Ikke sikker ennå" }; -},2063,[]); +},2062,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273022,7 +272970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e filetime: "filetime" } }; -},2064,[3,270,6,7,438]); +},2063,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273627,7 +273575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2065,[3,270,6,7,16,18,2066,1973,1957,2070,2076,2073,2075,2074,2071,2077,2107,820,2114,1826,438,1709,179]); +},2064,[3,270,6,7,16,18,2065,2000,1988,2069,2075,2072,2074,2073,2070,2076,2106,1870,2113,816,438,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273788,7 +273736,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e notices: "notices" } }; -},2066,[3,270,6,7,2067,438]); +},2065,[3,270,6,7,2066,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273830,7 +273778,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2067,[3,270,6,7,2068,2069]); +},2066,[3,270,6,7,2067,2068]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273876,7 +273824,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getNoticeBaseURI() { return _Api.default.noticeURI(getNoticeParams()); } -},2068,[3,270,407,2026]); +},2067,[3,270,407,1854]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -273886,7 +273834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function parse(json) { return JSON.stringify(json.result); } -},2069,[]); +},2068,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274184,7 +274132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2070,[3,270,6,7,2071,2074,2075,434,1957,2073,2076,2066,2072,2068,438,820,1973]); +},2069,[3,270,6,7,2070,2073,2074,434,1988,2072,2075,2065,2071,2067,438,1870,2000]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274245,7 +274193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticeAdOverPageModel.TAG = "ad_over_page"; -},2071,[3,6,7,11,13,14,1842,2072,2073]); +},2070,[3,6,7,11,13,14,858,2071,2072]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274363,7 +274311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_Notice2.default); -},2072,[3,6,7,11,13,14,2073]); +},2071,[3,6,7,11,13,14,2072]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274630,7 +274578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function print(text) {} }]); }(); -},2073,[3,6,7,1957,438]); +},2072,[3,6,7,1988,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274825,7 +274773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticeInterstitialModel.TAG = "interstitial"; -},2074,[3,6,7,11,13,14,630,1842,2072,671,2073]); +},2073,[3,6,7,11,13,14,629,858,2071,670,2072]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274871,7 +274819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_NoticeFullscreen2.default); NoticePrestitialModel.TAG = "prestitial"; -},2075,[3,6,7,11,13,14,2072]); +},2074,[3,6,7,11,13,14,2071]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -274937,7 +274885,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_Notice2.default); NoticeInstoryAdModel.TAG = "instory_ad"; -},2076,[3,6,7,11,13,14,2073,1973]); +},2075,[3,6,7,11,13,14,2072,2000]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275494,7 +275442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e card: false } }; -},2077,[3,6,7,11,13,14,582,16,18,1729,588,436,824,2078,2105,2106,564,1713,438,179,819]); +},2076,[3,6,7,11,13,14,582,16,18,1897,588,436,881,2077,2104,2105,564,817,438,179,1869]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275697,7 +275645,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NativeAdTemplate; -},2078,[3,16,18,2079,2095,2101,434,824,2085,179,1709,2104,2091]); +},2077,[3,16,18,2078,2094,2100,434,881,2084,179,819,2103,2090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275870,7 +275818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ImageComponent: undefined, imageContainerStyle: undefined }; -},2079,[3,6,7,11,13,14,16,18,582,2080,2084,2086,588,2091,438,179,1709,2092,2087]); +},2078,[3,6,7,11,13,14,16,18,582,2079,2083,2085,588,2090,438,179,819,2091,2086]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -275998,7 +275946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2080,[3,6,7,11,13,14,16,18,582,2081,2038,1776,179,1709,2083,1039]); +},2079,[3,6,7,11,13,14,16,18,582,2080,2037,1927,179,819,2082,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276034,7 +275982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: 5 } }); -},2081,[18,2082,438]); +},2080,[18,2081,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276070,7 +276018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: ICON_PADDING } }); -},2082,[18]); +},2081,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -276082,7 +276030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic_gallery_white", "type": "png" }); -},2083,[1210]); +},2082,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276102,7 +276050,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingVertical: _$$_REQUIRE(_dependencyMap[1]).CONTAINER_VERTICAL_PADDING } }); -},2084,[18,2085]); +},2083,[18,2084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276131,7 +276079,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2085,[18,438]); +},2084,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276178,7 +276126,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = TilePreview; -},2086,[3,22,4,16,2087,2088,179,1826]); +},2085,[3,22,4,16,2086,2087,179,816]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276209,7 +276157,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2087,[18,2085,438]); +},2086,[18,2084,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276489,7 +276437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e topPadding: 0, verticalPaddingSize: 0 }; -},2088,[3,22,4,6,7,11,13,14,16,18,582,2089,438,179,1709,2090]); +},2087,[3,22,4,6,7,11,13,14,16,18,582,2088,438,179,819,2089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276504,7 +276452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexDirection: "column" } }); -},2089,[18]); +},2088,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276658,7 +276606,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TextAutoMeasure.defaultProps = { numberOfLines: 1 }; -},2090,[3,4,270,6,7,11,13,14,16,582,1826,438,179]); +},2089,[3,4,270,6,7,11,13,14,16,582,816,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276762,7 +276710,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _deviceUtils.default.isPortrait() ? itemsPerRowPortrait : itemsPerRowLandscape; } -},2091,[18,3,434,438,2085]); +},2090,[18,3,434,438,2084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276777,7 +276725,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2092,[2093]); +},2091,[2092]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276908,7 +276856,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bgUrl: "", hideBottomLine: false }; -},2093,[3,6,7,11,13,14,16,18,582,2094,2091,1709,179,438]); +},2092,[3,6,7,11,13,14,16,18,582,2093,2090,819,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -276922,7 +276870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2094,[18]); +},2093,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277057,7 +277005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BottomComponent: undefined, ImageComponent: undefined }; -},2095,[3,6,7,11,13,14,16,18,582,1826,2096,2100,438,2091,2085,179,1709,2092]); +},2094,[3,6,7,11,13,14,16,18,582,816,2095,2099,438,2090,2084,179,819,2091]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277409,7 +277357,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2096,[3,270,6,7,2037,2097,438,2026,2099]); +},2095,[3,270,6,7,2036,2096,438,1854,2098]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277810,7 +277758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2097,[3,270,22,6,7,2037,438,2098]); +},2096,[3,270,22,6,7,2036,438,2097]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -277820,7 +277768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RSS: 1, EPAPER: 2 }; -},2098,[]); +},2097,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278093,7 +278041,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssKey: "publications" }; } -},2099,[3,16,2037,2097,1879]); +},2098,[3,16,2036,2096,1735]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278148,7 +278096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},2100,[18,2085,438]); +},2099,[18,2084,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278311,7 +278259,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BottomComponent: undefined, ImageComponent: undefined }; -},2101,[3,6,7,11,13,14,16,18,582,1826,2102,2103,2091,179,1709]); +},2100,[3,6,7,11,13,14,16,18,582,816,2101,2102,2090,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278372,7 +278320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2102,[18,438,2085]); +},2101,[18,438,2084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278573,7 +278521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 300, blurRadius: 10 }; -},2103,[3,6,7,11,13,14,582,16,18,588,179]); +},2102,[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 @@ -278737,7 +278685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return formatResourceToDTO(resource); }); }; -},2104,[3,2038,2046,2097,438,2045,1856]); +},2103,[3,2037,2045,2096,438,2044,1967]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -278946,7 +278894,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = NativeVideoAdTemplate; -},2105,[3,16,18,2101,2095,2079,434,824,2085,179,1709,2104]); +},2104,[3,16,18,2100,2094,2078,434,881,2084,179,819,2103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279070,7 +279018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = StandardDisplayAdTemplate; -},2106,[3,16,18,2079,824,2085,2101,179,1709,2091]); +},2105,[3,16,18,2078,881,2084,2100,179,819,2090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279395,7 +279343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2107,[3,6,7,11,13,14,582,16,18,1729,436,1707,434,1823,1708,564,1828,2104,438,2099,2108,179,1818,1822,1039]); +},2106,[3,6,7,11,13,14,582,16,18,1897,436,1882,434,1936,868,564,1940,2103,438,2098,2107,179,1931,1935,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -279692,7 +279640,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } catch (e) {} } -},2108,[3,270,2109,2037,1724,2097,824,1823,1729,2113,1824,2112,2099,1039,1726]); +},2107,[3,270,2108,2036,1893,2096,881,1936,1897,2112,1937,2111,2098,1089,880]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280302,7 +280250,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; -},2109,[3,270,6,7,2110,2111,586,566,2046,436,1994,1995,564,438,2112]); +},2108,[3,270,6,7,2109,2110,586,566,2045,436,2018,2019,564,438,2111]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280743,7 +280691,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) );"] }]; -},2110,[3,270,6,7,1970,566,438,2104]); +},2109,[3,270,6,7,861,566,438,2103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280773,7 +280721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _getJsonDbUpdate.apply(this, arguments); } -},2111,[3,270,408]); +},2110,[3,270,408]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -280978,7 +280926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},2112,[3,4,1700,2099,1701,438,819]); +},2111,[3,4,1875,2098,1876,438,1869]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -281040,7 +280988,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2113,[3,6,7,270,815,438]); +},2112,[3,6,7,270,814,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282198,7 +282146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _LoginManager = LoginManager; LoginManager.database = new _Database.default(_LoginManager.getClassicDatabaseFilePath()); -},2114,[3,270,6,7,11,13,14,61,2115,436,819,1724,1703,823,566,1970,406,1752,1841,1859,438,2116,1751,1713,564,1726,2117]); +},2113,[3,270,6,7,11,13,14,61,2114,436,1869,1893,1878,1873,566,861,406,871,1953,1970,438,2115,870,817,564,880,2116]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -282273,7 +282221,7 @@ __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]]; } -},2115,[3,270,18,31]); +},2114,[3,270,18,31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282427,7 +282375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LoginManager.logOut(); return true; } -},2116,[3,270,824,1824,438]); +},2115,[3,270,881,1937,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282476,7 +282424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pendingOperations.operations -= 1; } }; -},2117,[]); +},2116,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282536,7 +282484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2118,[3,270,6,7,2119,2122,2123,2124]); +},2117,[3,270,6,7,2118,2121,2122,2123]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282568,7 +282516,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); -},2119,[3,7,6,11,13,14,436,2120]); +},2118,[3,7,6,11,13,14,436,2119]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282767,7 +282715,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2120,[3,270,6,7,2121,438,564]); +},2119,[3,270,6,7,2120,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 { @@ -284097,7 +284045,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }] }, {}, [1])(1); }); -},2121,[]); +},2120,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284129,7 +284077,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); -},2122,[3,7,6,11,13,14,436,2120]); +},2121,[3,7,6,11,13,14,436,2119]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284161,7 +284109,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); -},2123,[3,7,6,11,13,14,436,2120]); +},2122,[3,7,6,11,13,14,436,2119]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284193,7 +284141,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); -},2124,[3,7,6,11,13,14,436,2120]); +},2123,[3,7,6,11,13,14,436,2119]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284315,7 +284263,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2125,[3,270,6,7,2126,2037,2096,438]); +},2124,[3,270,6,7,2125,2036,2095,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284362,7 +284310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2126,[3,270,6,7,2127,2128]); +},2125,[3,270,6,7,2126,2127]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284428,7 +284376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _getDataFromApiResponse.apply(this, arguments); } -},2127,[3,270,407]); +},2126,[3,270,407]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -284505,7 +284453,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } -},2128,[2129]); +},2127,[2128]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function DOMParser(options) { this.options = options || { @@ -284729,7 +284677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.XMLSerializer = _$$_REQUIRE(_dependencyMap[2]).XMLSerializer; exports.DOMParser = DOMParser; exports.__DOMHandler = DOMHandler; -},2129,[2130,2131,2132]); +},2128,[2129,2130,2131]); __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]"); @@ -285404,7 +285352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.XMLReader = XMLReader; exports.ParseError = ParseError; -},2130,[]); +},2129,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { exports.entityMap = { lt: '<', @@ -285649,7 +285597,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hearts: "♥", diams: "♦" }; -},2131,[]); +},2130,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function copy(src, dest) { for (var p in src) { @@ -286962,7 +286910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DOMException = DOMException; exports.DOMImplementation = DOMImplementation; exports.XMLSerializer = XMLSerializer; -},2132,[]); +},2131,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287795,7 +287743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2133,[3,270,6,7,2134,436,1765,2135,2155,2183,438,1713,564,815]); +},2132,[3,270,6,7,2133,436,1917,2134,2154,2182,438,817,564,814]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -287966,7 +287914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},2134,[3,270,6,7,438]); +},2133,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288200,7 +288148,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2135,[3,6,7,11,13,14,16,18,2136,2144,2146,2148,2149,434,2151,2153,438,2091,179,2141,1857,2155,1039]); +},2134,[3,6,7,11,13,14,16,18,2135,2143,2145,2147,2148,434,2150,2152,438,2090,179,2140,1968,2154,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288394,7 +288342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2136,[3,6,7,11,13,14,582,16,18,1276,2038,2103,1826,2085,2080,2137,2102,2091,1709,179,438,2141,1039]); +},2135,[3,6,7,11,13,14,582,16,18,1326,2037,2102,816,2084,2079,2136,2101,2090,819,179,438,2140,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288706,7 +288654,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2137,[3,6,7,11,13,14,582,16,18,2038,2138,1826,588,2080,438,1709,179,2082,2139,2042,1039]); +},2136,[3,6,7,11,13,14,582,16,18,2037,2137,816,588,2079,438,819,179,2081,2138,2041,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288877,7 +288825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2138,[3,6,7,11,13,14,582,16,18,1777,2082,438,179,1709,1039]); +},2137,[3,6,7,11,13,14,582,16,18,1811,2081,438,179,819,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288957,7 +288905,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TilePremiumIcon.defaultProps = { show: false }; -},2139,[3,6,7,11,13,14,16,582,588,179,2140]); +},2138,[3,6,7,11,13,14,16,582,588,179,2139]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288974,7 +288922,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignSelf: "center" } }); -},2140,[18]); +},2139,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -288989,7 +288937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2141,[2142]); +},2140,[2141]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289049,7 +288997,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, borderStyle: _propTypes.default.any }; -},2142,[3,16,18,582,2143,2091,179,438,1709]); +},2141,[3,16,18,582,2142,2090,179,438,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289068,7 +289016,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[1]).CARD_RADIUS } }); -},2143,[18,2091]); +},2142,[18,2090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289179,7 +289127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2144,[3,6,7,11,13,14,16,582,18,1826,588,438,1709,179,2141,2145,2104,1039]); +},2143,[3,6,7,11,13,14,16,582,18,816,588,438,819,179,2140,2144,2103,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289208,7 +289156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginVertical: 0 } }); -},2145,[18,438]); +},2144,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289350,7 +289298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2146,[3,6,7,11,13,14,16,582,18,1954,2147,438,179,2141,1709,1039]); +},2145,[3,6,7,11,13,14,16,582,18,1985,2146,438,179,2140,819,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289372,7 +289320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _$$_REQUIRE(_dependencyMap[1]).NATIVO_CARD_HEIGHT } }); -},2147,[18,2101]); +},2146,[18,2100]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289552,7 +289500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2148,[3,6,7,11,13,14,582,16,18,1707,1823,1708,1709,179,1822,438,1828,2141,1039]); +},2147,[3,6,7,11,13,14,582,16,18,1882,1936,868,819,179,1935,438,1940,2140,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289694,7 +289642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2149,[3,6,7,11,13,14,16,18,582,1276,1826,2150,2038,2103,2091,179,1709,2141,438,1039]); +},2148,[3,6,7,11,13,14,16,18,582,1326,816,2149,2037,2102,2090,179,819,2140,438,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289755,7 +289703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2150,[18,438,2085]); +},2149,[18,438,2084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289949,7 +289897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2151,[3,4,6,7,11,13,14,582,16,18,2038,436,1826,2085,2102,2152,2137,2091,1709,179,438,564,2141,1039]); +},2150,[3,4,6,7,11,13,14,582,16,18,2037,436,816,2084,2101,2151,2136,2090,819,179,438,564,2140,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289962,54 +289910,72 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _cmpUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _excluded = ["video", "autoplay", "onRef"]; + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _excluded = ["video", "onRef", "progressColor"]; function DailymotionVideoPlayerComponent(props) { + var video = props.video, + onRef = props.onRef, + progressColor = props.progressColor, + rest = (0, _objectWithoutProperties2.default)(props, _excluded); + var action = video.action, + url = video.url, + playerId = video.playerId; + var _OptionalPackages$get = _optionalPackageUtils.default.getDailymotionVideoPlayer(), DailymotionVideoPlayer = _OptionalPackages$get.Player; - if (DailymotionVideoPlayer) { - var video = props.video, - _props$autoplay = props.autoplay, - autoplay = _props$autoplay === undefined ? false : _props$autoplay, - onRef = props.onRef, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - var action = video.action, - url = video.url; - var playerData = { - autoplay: autoplay - }; - - if (action && action === "dailymotionPlaylist") { - playerData.playlist = url; - } else { - playerData.video = url; - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(DailymotionVideoPlayer, Object.assign({ - ref: function ref(_ref) { - if (typeof onRef === "function") { - onRef(_ref); - } - }, - playerData: playerData - }, rest)); + if (!DailymotionVideoPlayer) { + return null; } - return null; + if (!playerId) { + return null; + } + + var playerData = { + playerId: playerId, + allowIDFA: _cmpUtils.default.isAdTrackingAllowed() + }; + + if (action && action === "dailymotionPlaylist") { + playerData.playlist = url; + } else { + playerData.video = url; + } + + var style = _$$_REQUIRE(_dependencyMap[6]).Css.getStyleObjByCssClasses(["progress-circle"], { + cssKey: "dailymotion" + }); + + var color = _$$_REQUIRE(_dependencyMap[7]).CssUtils.getAttributeFromStyle("color", style, progressColor); + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(DailymotionVideoPlayer, Object.assign({ + ref: function ref(_ref) { + if (typeof onRef === "function") { + onRef(_ref); + } + }, + playerData: playerData, + progressColor: color + }, rest)); } DailymotionVideoPlayerComponent.propTypes = { video: _propTypes.default.object.isRequired, style: _propTypes.default.object, - autoplay: _propTypes.default.bool, + progressColor: _propTypes.default.string, onRef: _propTypes.default.func }; + DailymotionVideoPlayerComponent.defaultProps = { + progressColor: _$$_REQUIRE(_dependencyMap[6]).Css.getDefaultForegroundColor() + }; var _default = exports.default = DailymotionVideoPlayerComponent; -},2152,[3,4,582,16,824,179]); +},2151,[3,4,582,16,1882,881,819,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -290120,7 +290086,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2153,[3,6,7,11,13,14,16,582,18,588,2088,438,1709,179,2141,2154,1826,2104,1039]); +},2152,[3,6,7,11,13,14,16,582,18,588,2087,438,819,179,2140,2153,816,2103,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -290165,7 +290131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: "100%" } }); -},2154,[18,2091]); +},2153,[18,2090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -290818,7 +290784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2155,[3,6,7,11,13,14,582,16,18,1773,2156,2164,2165,2167,438,2091,2099,179,2168,2171,2174,2176,2179,2182,1709,2045,1039]); +},2154,[3,6,7,11,13,14,582,16,18,1924,2155,2163,2164,2166,438,2090,2098,179,2167,2170,2173,2175,2178,2181,819,2044,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291122,7 +291088,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RssBaseView; -},2156,[3,4,6,7,11,13,14,16,582,18,2157,2158,179,2160,1980,438]); +},2155,[3,4,6,7,11,13,14,16,582,18,2156,2157,179,2159,2007,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291140,7 +291106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, item: {} }); -},2157,[18]); +},2156,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291462,7 +291428,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e windowSize: 2, initialNumToRender: 6 }; -},2158,[3,4,6,7,11,13,14,16,582,18,2159,179,1816]); +},2157,[3,4,6,7,11,13,14,16,582,18,2158,179,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -291588,7 +291554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e visibility: AsymmetricVisibility.VISIBLE, PlaceholderComponent: null }; -},2159,[3,4,6,7,11,13,14,16,18,582,179]); +},2158,[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 @@ -291950,7 +291916,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FooterBar; -},2160,[3,33,582,16,18,436,1954,434,2161,1777,438,179,1709,564,2163]); +},2159,[3,33,582,16,18,436,1985,434,2160,1811,438,179,819,564,2162]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292110,7 +292076,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FooterElement; -},2161,[3,33,16,18,582,436,2037,1826,1776,564,438,1709,179,2162]); +},2160,[3,33,16,18,582,436,2036,816,1927,564,438,819,179,2161]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292135,7 +292101,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2162,[18]); +},2161,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292154,7 +292120,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)); } -},2163,[3,16,18,179]); +},2162,[3,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292340,7 +292306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2164,[3,6,7,11,13,14,582,16,18,1276,2096,588,2085,2137,2086,2100,438,2091,1709,179,2092,1039]); +},2163,[3,6,7,11,13,14,582,16,18,1326,2095,588,2084,2136,2085,2099,438,2090,819,179,2091,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292470,7 +292436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2165,[3,6,7,11,13,14,582,16,2085,2137,2086,2166,2091,438,1709,179,2093,2087,1039]); +},2164,[3,6,7,11,13,14,582,16,2084,2136,2085,2165,2090,438,819,179,2092,2086,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292494,7 +292460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingBottom: _$$_REQUIRE(_dependencyMap[1]).CONTAINER_VERTICAL_PADDING } }); -},2166,[18,2085]); +},2165,[18,2084]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292670,7 +292636,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2167,[3,6,7,11,13,14,582,16,18,588,2085,2080,2137,2086,2084,2091,438,179,1709,2092,2087,1039]); +},2166,[3,6,7,11,13,14,582,16,18,588,2084,2079,2136,2085,2083,2090,438,179,819,2091,2086,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292685,7 +292651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2168,[2169]); +},2167,[2168]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292834,7 +292800,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e itemID: _propTypes.default.number, changeContainerStyleCallback: _propTypes.default.func }; -},2169,[3,6,7,11,13,14,16,582,2170,1954,1709,179,2093]); +},2168,[3,6,7,11,13,14,16,582,2169,1985,819,179,2092]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292850,7 +292816,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2170,[18]); +},2169,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -292865,7 +292831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2171,[2172]); +},2170,[2171]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293020,7 +292986,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TileWebView.defaultProps = { baseUrl: _webUtils.WEBVIEW_BASE_URL }; -},2172,[3,6,7,11,13,14,582,16,1707,1823,1708,2173,1709,179,1822,1828,2092]); +},2171,[3,6,7,11,13,14,582,16,1882,1936,868,2172,819,179,1935,1940,2091]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293038,7 +293004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},2173,[18]); +},2172,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293130,7 +293096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thumbnail: _propTypes.default.string }) }; -},2174,[3,6,7,11,13,14,16,582,1826,2175,588,438,179,1709,2092,2104]); +},2173,[3,6,7,11,13,14,16,582,816,2174,588,438,179,819,2091,2103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293161,7 +293127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginVertical: TITLE_VERTICAL_MARGIN } }); -},2175,[18,438]); +},2174,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293176,7 +293142,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2176,[2177]); +},2175,[2176]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293299,7 +293265,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isLinkToCategory: _propTypes.default.bool }) }; -},2177,[3,6,7,11,13,14,16,18,582,1826,2178,588,438,179,1709,2092,2104]); +},2176,[3,6,7,11,13,14,16,18,582,816,2177,588,438,179,819,2091,2103]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293326,7 +293292,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e margin: HORIZONTAL_MARGIN / 2 } }); -},2178,[18,438]); +},2177,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293487,7 +293453,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gridIndex: _propTypes.default.number }) }; -},2179,[3,6,7,11,13,14,16,18,1276,582,2180,1826,434,438,179,1709,2181,2092]); +},2178,[3,6,7,11,13,14,16,18,1326,582,2179,816,434,438,179,819,2180,2091]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293557,7 +293523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e bottom: 0 } }); -},2180,[18,438]); +},2179,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293713,7 +293679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TopCropImage.defaultProps = { top: 0 }; -},2181,[3,270,6,7,11,13,14,16,582,18,588,179]); +},2180,[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 @@ -293728,7 +293694,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, item: {} }); -},2182,[18]); +},2181,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -293872,7 +293838,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2183,[3,6,7,11,13,14,16,438,2091,2155,1039,179]); +},2182,[3,6,7,11,13,14,16,438,2090,2154,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -293891,7 +293857,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _reactNative.AppRegistry.registerHeadlessTask("TaHeadlessTask", function () { return _PushHelper.default.onBackgroundMessage; }); -},2184,[18,3,1727,1231,2185]); +},2183,[18,3,1895,1281,2184]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -294044,54 +294010,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _zoomConstants.default.init(); yield _GlobalConfig.default.initMachineId(); - this.appStateChangeListener = _reactNative.AppState.addEventListener("change", _$$_REQUIRE(_dependencyMap[26]).JSUtils.debounce(this.stateChangeHandler, 500, { + + _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.addConnectionChangeEventListener(this.onHandleConnectivityChange); + + this.onAccessibilityModeListener = _reactNative.AccessibilityInfo.addEventListener("screenReaderChanged", this.onAccessibilityModeChange); + this.onCheckConfigUpdateEvent = _$$_REQUIRE(_dependencyMap[29]).EventRegister.on(_events.default.CONFIG_UPDATE_CHECK, this.triggerCheckConfigUpdateOnPSetup); + 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); + this.colorSchemeChangeListener = _reactNative.Appearance.addChangeListener(_$$_REQUIRE(_dependencyMap[26]).JSUtils.debounce(this.onDeviceColorSchemeChange, 200, { leading: false, trailing: true })); - _$$_REQUIRE(_dependencyMap[26]).NetworkUtils.addConnectionChangeEventListener(this.onHandleConnectivityChange); - - 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[26]).PlatformUtils.isAndroid()) { + if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isIOS()) { + this.appStateChangeListener = _reactNative.AppState.addEventListener("change", _$$_REQUIRE(_dependencyMap[26]).JSUtils.debounce(this.stateChangeHandler, 500, { + leading: false, + trailing: true + })); + 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); + } else { + this.appStateChangeListener = _reactNative.AppState.addEventListener("change", this.stateChangeHandler); + this.focusStateListener = _reactNative.AppState.addEventListener("focus", function () { + return _this2.stateChangeHandler("active"); + }); + this.blurStateListener = _reactNative.AppState.addEventListener("blur", function () { + if (_this2.currentAppState === "active") { + _this2.stateChangeHandler("inactive"); + } + }); 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); - try { yield global.getLocaleConfig().initLocale(); } catch (e) {} - if (_$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid()) { - var url = this.props.url; + var url = _$$_REQUIRE(_dependencyMap[26]).PlatformUtils.isAndroid() ? this.props.url : yield _reactNative.Linking.getInitialURL(); - if (url) { - yield this.handleOpenURL({ - url: url - }); - } - } else { - this.safeAreaChangeEventId = _$$_REQUIRE(_dependencyMap[29]).EventRegister.on(_events.default.ON_SAFE_AREA_CHANGE, function () { - _this2.setLayout(_deviceUtils.default.getSafeArea()); + if (url) { + yield this.handleOpenURL({ + url: url }); - this.handleOpenURLListener = _reactNative.Linking.addEventListener("url", this.handleOpenURL); - var initialURL = yield _reactNative.Linking.getInitialURL(); - - if (initialURL) { - yield this.handleOpenURL({ - url: initialURL - }); - } } - this.colorSchemeChangeListener = _reactNative.Appearance.addChangeListener(_$$_REQUIRE(_dependencyMap[26]).JSUtils.debounce(this.onDeviceColorSchemeChange, 200, { - leading: false, - trailing: true - })); - this.onCheckConfigUpdateEvent = _$$_REQUIRE(_dependencyMap[29]).EventRegister.on(_events.default.CONFIG_UPDATE_CHECK, this.triggerCheckConfigUpdateOnPSetup); this.startNetworkStatusCheck(); global.debugOperations.push(new (_$$_REQUIRE(_dependencyMap[27]).DebugOperation)("RootComponent", "mounted")); this.setState({ @@ -294109,10 +294074,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "componentWillUnmount", value: function componentWillUnmount() { - var _this$appStateChangeL, _this$newIntentListen, _this$onKeyDownListen, _this$onKeyUpListener, _this$onUserInteractL, _this$onAccessibility, _this$colorSchemeChan, _this$handleOpenURLLi; + var _this$appStateChangeL, _this$focusStateListe, _this$blurStateListen, _this$newIntentListen, _this$onKeyDownListen, _this$onKeyUpListener, _this$onUserInteractL, _this$onAccessibility, _this$colorSchemeChan, _this$handleOpenURLLi; (0, _get2.default)((0, _getPrototypeOf2.default)(RootComponent.prototype), "componentWillUnmount", this).call(this); (_this$appStateChangeL = this.appStateChangeListener) == null ? undefined : _this$appStateChangeL.remove(); + (_this$focusStateListe = this.focusStateListener) == null ? undefined : _this$focusStateListe.remove(); + (_this$blurStateListen = this.blurStateListener) == null ? undefined : _this$blurStateListen.remove(); (_this$newIntentListen = this.newIntentListener) == null ? undefined : _this$newIntentListen.remove(); (_this$onKeyDownListen = this.onKeyDownListener) == null ? undefined : _this$onKeyDownListen.remove(); (_this$onKeyUpListener = this.onKeyUpListener) == null ? undefined : _this$onKeyUpListener.remove(); @@ -294286,10 +294253,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_handleAppStateChange", value: function () { var _handleAppStateChange2 = (0, _asyncToGenerator2.default)(function* (nextAppState) { - var update = false; - var fromBackground = this.currentAppState && this.currentAppState.match(/(background|inactive|unknown)/); + if (this.currentAppState === nextAppState) { + return; + } - if (this.currentAppState && !_IAPHelper.default.purchasing && !_InterstitialsHelper.default.showingNativeInterstitial) { + var update = false; + var oldAppState = this.currentAppState; + this.currentAppState = nextAppState; + + _deviceUtils.default.setCurrentAppState(nextAppState); + + var fromBackground = oldAppState == null ? undefined : oldAppState.match(/(background|inactive|unknown)/); + + if (oldAppState && !_IAPHelper.default.purchasing && !_InterstitialsHelper.default.showingNativeInterstitial) { var goingForeground = fromBackground && nextAppState === "active"; if (goingForeground) { @@ -294340,7 +294316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.startNetworkStatusCheck(); _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_FOREGROUND, { - currentAppState: this.currentAppState, + currentAppState: oldAppState, nextAppState: nextAppState }); } else if (nextAppState === "background") { @@ -294352,12 +294328,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.clearConnectivityChangeTimeout(); _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_BACKGROUND, { - currentAppState: this.currentAppState, + currentAppState: oldAppState, nextAppState: nextAppState }); } else if (this.currentAppState.match(/active/) && nextAppState === "inactive") { _$$_REQUIRE(_dependencyMap[29]).EventRegister.emit(_events.default.ON_STATE_CHANGE_GOING_INACTIVE, { - currentAppState: this.currentAppState, + currentAppState: oldAppState, nextAppState: nextAppState }); } @@ -294367,10 +294343,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (_InterstitialsHelper.default.showingNativeInterstitial && fromBackground) { _InterstitialsHelper.default.showingNativeInterstitial = false; } - - this.currentAppState = nextAppState; - - _deviceUtils.default.setCurrentAppState(this.currentAppState); }); function _handleAppStateChange(_x) { @@ -295129,7 +295101,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shortcutEnabled: global.__DEV__, enableDebugger: false }); -},2185,[3,270,6,7,11,85,13,14,582,16,18,407,816,820,436,2186,2194,1727,434,630,1708,821,2210,1729,1836,2666,438,1713,579,564,1981,1709,819,1995,2117,2243,1039,179,2214,2670]); +},2184,[3,270,6,7,11,85,13,14,582,16,18,407,1867,1870,436,2185,2193,1895,434,629,868,1871,2209,1897,1948,2665,438,817,579,564,2008,819,1869,2019,2116,2242,1089,179,2213,2669]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295462,7 +295434,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e InterstitialsHelper.prebidInitialized = false; InterstitialsHelper.showingNativeInterstitial = false; -},2186,[3,270,6,7,2071,2072,2074,2075,671,824,2187,2188,438]); +},2185,[3,270,6,7,2070,2071,2073,2074,670,881,2186,2187,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295603,7 +295575,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2187,[3,22,6,7,820,1709,438]); +},2186,[3,22,6,7,1870,819,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295786,7 +295758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.default.Component); InterstitialContainer.popup = {}; -},2188,[3,270,6,7,11,13,14,16,18,2189,434,2190,2072,179]); +},2187,[3,270,6,7,11,13,14,16,18,2188,434,2189,2071,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -295805,7 +295777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent } }); -},2189,[18,438]); +},2188,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296043,7 +296015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Interstitial.defaultProps = { innerRef: function innerRef() {} }; -},2190,[3,270,6,7,11,13,14,582,16,18,2071,2072,1707,434,2191,2189,179,819,1822,1828]); +},2189,[3,270,6,7,11,13,14,582,16,18,2070,2071,1882,434,2190,2188,179,1869,1935,1940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296148,7 +296120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showAfter: _propTypes.default.number, onClose: _propTypes.default.func }; -},2191,[3,6,7,11,13,14,16,582,434,2192,438,1709,179]); +},2190,[3,6,7,11,13,14,16,582,434,2191,438,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296232,7 +296204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CloseComponent.defaultProps = { cssClasses: [] }; -},2192,[3,6,7,11,13,14,16,18,582,1777,2193,179,1,1709]); +},2191,[3,6,7,11,13,14,16,18,582,1811,2192,179,1,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -296270,7 +296242,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2193,[18,438]); +},2192,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297294,7 +297266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e purchaseToken: "purchaseToken" } }; -},2194,[3,22,270,6,7,18,1750,434,824,2195,2196,438,2197,1713,2198,2208,2209,815]); +},2193,[3,22,270,6,7,18,869,434,881,2194,2195,438,2196,817,2197,2207,2208,814]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297469,7 +297441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2195,[3,270,6,7,407,434,438]); +},2194,[3,270,6,7,407,434,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297683,7 +297655,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function onPurchaseUpdateOperationCompleted(callback) {} }]); }(); -},2196,[3,270,6,7]); +},2195,[3,270,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -297797,7 +297769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2197,[3,6,7]); +},2196,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298091,7 +298063,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_IAPrnBase2.default); -},2198,[3,270,6,7,11,13,14,2199,407,1750,824,406,2207]); +},2197,[3,270,6,7,11,13,14,2198,407,869,881,406,2206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -298452,7 +298424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_IAPBase2.default); -},2199,[3,270,6,7,11,13,14,2200,1750,824,2196,438,2206]); +},2198,[3,270,6,7,11,13,14,2199,869,881,2195,438,2205]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -298842,7 +298814,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_$$_REQUIRE(_dependencyMap[8])); exports.default = PQueue; -},2200,[13,11,2201,6,2203,14,7,270,2205]); +},2199,[13,11,2200,6,2202,14,7,270,2204]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -298907,7 +298879,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e module.exports = pTimeout; module.exports.default = pTimeout; module.exports.TimeoutError = TimeoutError; -},2201,[13,11,6,14,7,61,2202]); +},2200,[13,11,6,14,7,61,2201]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -298928,7 +298900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); }; -},2202,[]); +},2201,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -298991,7 +298963,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = PriorityQueue; -},2203,[6,7,2204]); +},2202,[6,7,2203]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -299019,7 +298991,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } exports.default = lowerBound; -},2204,[]); +},2203,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -299227,7 +299199,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if ('undefined' !== typeof module) { module.exports = EventEmitter; } -},2205,[]); +},2204,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299280,7 +299252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2206,[3,6,7]); +},2205,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299348,7 +299320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2207,[3,6,7]); +},2206,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299716,7 +299688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_IAPrnBase2.default); -},2208,[3,270,6,7,11,85,13,14,631,406,824,2199,2206,438,2207]); +},2207,[3,270,6,7,11,85,13,14,630,406,881,2198,2205,438,2206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -299966,7 +299938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_IAPrnBase2.default); -},2209,[3,270,6,7,11,13,14,824,2199,406,2206,438,2207]); +},2208,[3,270,6,7,11,13,14,881,2198,406,2205,438,2206]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300115,7 +300087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2210,[3,16,2211,2466,2654,1729,2655,2657,2658,2659,2660,2661,2235,2237,179,2663]); +},2209,[3,16,2210,2465,2653,1897,2654,2656,2657,2658,2659,2660,2234,2236,179,2662]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300253,7 +300225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NavigatorBaseScreen); -},2211,[3,6,7,11,85,13,14,16,816,436,2187,2212,2236,564,438,2231,179,2214,2465]); +},2210,[3,6,7,11,85,13,14,16,1867,436,2186,2211,2235,564,438,2230,179,2213,2464]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300436,7 +300408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2212,[3,16,2134,2097,1729,2213,2234,2235,2237,1748,179,2243,1981,2244,2372,2395,2397]); +},2211,[3,16,2133,2096,1897,2212,2233,2234,2236,866,179,2242,2008,2243,2371,2394,2396]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300591,7 +300563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[20]).NavigationBaseScreen); -},2213,[3,270,6,7,11,13,14,16,18,1708,407,406,1840,438,1776,179,2214,1709,2215,1726,2231]); +},2212,[3,270,6,7,11,13,14,16,18,868,407,406,1952,438,1927,179,2213,819,2214,880,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -300656,7 +300628,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},2214,[3,4,16,18,434,842,179]); +},2213,[3,4,16,18,434,899,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301475,7 +301447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shortcutEnabled: true, forceFullscreen: false }); -},2215,[3,4,270,6,7,11,85,13,14,582,16,18,1840,2114,436,2194,630,1726,1729,2216,2219,1983,564,438,821,1824,815,1859,2116,2229,2230,179,1876,1709,1822,1828,1981]); +},2214,[3,4,270,6,7,11,85,13,14,582,16,18,1952,2113,436,2193,629,880,1897,2215,2218,856,564,438,1871,1937,814,1970,2115,2228,2229,179,1732,819,1935,1940,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301525,7 +301497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e source: _$$_REQUIRE(_dependencyMap[10]), library: undefined }; -},2216,[3,6,7,11,13,14,16,582,2217,179,1906]); +},2215,[3,6,7,11,13,14,16,582,2216,179,1762]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301695,7 +301667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e library: undefined, cssProps: {} }; -},2217,[3,6,7,11,13,14,16,582,18,2218,1776,564,179,1709,1]); +},2216,[3,6,7,11,13,14,16,582,18,2217,1927,564,179,819,1]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301730,7 +301702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignSelf: "center" } }); -},2218,[18,1711]); +},2217,[18,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302301,7 +302273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SettingDebug.defaultProps = { hidden: false }; -},2219,[3,270,6,7,11,13,14,582,16,18,1855,816,820,2114,824,566,1729,1982,1826,2220,2221,438,1866,2223,815,1860,1709,179,2222,1816,2225,2226]); +},2218,[3,270,6,7,11,13,14,582,16,18,1966,1867,1870,2113,881,566,1897,830,816,2219,2220,438,1976,2222,814,1971,819,179,2221,1929,2224,2225]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302423,7 +302395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FontTextInput; -},2220,[3,22,4,582,16,18,1713,179,438]); +},2219,[3,22,4,582,16,18,817,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302534,7 +302506,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingHeader; -},2221,[3,16,582,18,1826,1777,1709,179,2222]); +},2220,[3,16,582,18,816,1811,819,179,2221]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -302652,7 +302624,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2222,[18,438]); +},2221,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303257,7 +303229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2223,[3,270,6,7,1855,407,816,2224,1823,438,815,819,1700]); +},2222,[3,270,6,7,1966,407,1867,2223,1936,438,814,1869,1875]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303335,7 +303307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active_days_total: "activeDaysTotal" } }; -},2224,[3,270,6,7,438]); +},2223,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303427,7 +303399,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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,1826,179,1866,438,1824]); +},2224,[3,270,6,7,11,13,14,582,16,18,407,816,179,1976,438,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303597,7 +303569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Setting; -},2226,[3,4,16,582,18,1826,1776,1709,179,2227,2228]); +},2225,[3,4,16,582,18,816,1927,819,179,2226,2227]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303680,7 +303652,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2227,[18,438]); +},2226,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303764,7 +303736,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Button: Button, Text: Text }; -},2228,[3,4,16,18,1826,438,179,1709]); +},2227,[3,4,16,18,816,438,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303949,7 +303921,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value = data.value; global.getNewsmemoryConfig().setValue(key, value); } -},2229,[3,270,2114,436,1729,1859,564,438,815]); +},2228,[3,270,2113,436,1897,1970,564,438,814]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -303996,7 +303968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2230,[18,438]); +},2229,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -304011,7 +303983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2231,[2232]); +},2230,[2231]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -304330,7 +304302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationBaseScreen.defaultProps = { enablePostponeAction: false }; -},2232,[3,22,270,6,7,11,85,13,14,582,16,18,436,2233,824,819,564,1824,438,815]); +},2231,[3,22,270,6,7,11,85,13,14,582,16,18,436,2232,881,1869,564,1937,438,814]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -304549,7 +304521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UPGRADED: 2, UPDATED: 3 }; -},2233,[3,270,6,7,817,1841,2134,824,566,2223,438,1713]); +},2232,[3,270,6,7,864,1953,2133,881,566,2222,438,817]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -304629,7 +304601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2234,[3,6,7,11,13,14,16,2134,179,1822,2231]); +},2233,[3,6,7,11,13,14,16,2133,179,1935,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -304938,7 +304910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebScreen.defaultProps = { considerSafeArea: true }; -},2235,[3,270,6,7,11,85,13,14,582,16,2236,820,436,1724,823,2187,1823,1708,1983,564,2231,438,1824,179,1822,1828,2214]); +},2234,[3,270,6,7,11,85,13,14,582,16,2235,1870,436,1893,1873,2186,1936,868,856,564,2230,438,1937,179,1935,1940,2213]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305049,7 +305021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } -},2236,[3,33,16,18,436,438,564,2214,179]); +},2235,[3,33,16,18,436,438,564,2213,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305584,7 +305556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: [actionBar, barComponent] }); } -},2237,[3,4,16,18,1276,2236,1724,434,2187,566,1823,1826,1776,2231,1709,2214,438,2238,179,2239,1777,2108,1196]); +},2236,[3,4,16,18,1326,2235,1893,434,2186,566,1936,816,1927,2230,819,2213,438,2237,179,2238,1811,2107,1246]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305691,7 +305663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontWeight: "bold" } }); -},2238,[18]); +},2237,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305939,7 +305911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buttonStyle: buttonLayoutStyle }, props)); } -},2239,[3,33,16,18,820,817,2097,1729,2228,1777,588,179,1709,2238,2240,438,2241]); +},2238,[3,33,16,18,1870,864,2096,1897,2227,1811,588,179,819,2237,2239,438,2240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -305951,7 +305923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "text_banner", "type": "png" }); -},2240,[1210]); +},2239,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -305966,7 +305938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2241,[2242]); +},2240,[2241]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -306084,7 +306056,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 }; -},2242,[3,6,7,11,13,14,16,582,436,1777,2228,564,179,1709]); +},2241,[3,6,7,11,13,14,16,582,436,1811,2227,564,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -306132,7 +306104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},2243,[3,4,16,179,1039]); +},2242,[3,4,16,179,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -306147,7 +306119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2244,[2245]); +},2243,[2244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -307268,7 +307240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: _propTypes.default.object, tab: _propTypes.default.string }; -},2245,[3,33,270,6,7,11,85,13,14,582,16,18,407,816,820,1840,1969,2246,2247,1873,436,2186,819,1727,630,824,2187,1772,1729,2260,2261,2263,2266,2267,2270,2271,564,438,1859,2117,1713,2223,1726,815,1039,1824,1975,179,1709,1849,2272,2368,2231]); +},2244,[3,33,270,6,7,11,85,13,14,582,16,18,407,1867,1870,1952,860,2245,2246,1983,436,2185,1869,1895,629,881,2186,859,1897,2259,2260,2262,2265,2266,2269,2270,564,438,1970,2116,817,2222,880,814,1089,1937,2002,179,819,1960,2271,2367,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -307991,7 +307963,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NewsmemoryManager; -},2246,[3,270,6,7,1840,436,819,630,1726,1772,1969,2114,2247,2257,438,564,1860,2259,815,586,1748]); +},2245,[3,270,6,7,1952,436,1869,629,880,859,860,2113,2246,2256,438,564,1971,2258,814,586,866]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -310728,7 +310700,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2247,[3,4,22,270,6,7,407,1840,436,2194,630,1726,1842,566,668,587,667,1772,671,1969,2248,2250,406,2249,2252,2253,2254,2255,2256,2114,2257,1873,564,2258,438,588,1968,586,1860,1859,2259,815,2026]); +},2246,[3,4,22,270,6,7,407,1952,436,2193,629,880,858,566,667,587,666,859,670,860,2247,2249,406,2248,2251,2252,2253,2254,2255,2113,2256,1983,564,2257,438,588,1999,586,1971,1970,2258,814,1854]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -311308,7 +311280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2248,[3,270,6,7,667,668,587,671,2249,1970,2251,2250,438]); +},2247,[3,270,6,7,666,667,587,670,2248,861,2250,2249,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312737,7 +312709,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2249,[3,22,270,6,7,2200,1840,436,434,586,630,1843,566,668,587,1772,671,1969,2250,406,564,438,1851,588]); +},2248,[3,22,270,6,7,2199,1952,436,434,586,629,1954,566,667,587,859,670,860,2249,406,564,438,1962,588]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312976,7 +312948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2250,[3,33,6,7,630,665,666,667,668,587,672,671,669,670,438]); +},2249,[3,33,6,7,629,664,665,666,667,587,671,670,668,669,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313065,7 +313037,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2251,[3,6,7,665,666,667,668,587,672,671,669,670,438]); +},2250,[3,6,7,664,665,666,667,587,671,670,668,669,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313122,7 +313094,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2252,[3,6,7]); +},2251,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313178,7 +313150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2253,[3,6,7,11,13,14,2252,671]); +},2252,[3,6,7,11,13,14,2251,670]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313216,7 +313188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleHRZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleHRZipDownloadOperation); }(_DownloadOperation2.default); -},2254,[3,7,6,11,13,14,2252,671]); +},2253,[3,7,6,11,13,14,2251,670]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313268,7 +313240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2255,[3,6,7,11,13,14,2252,671,587]); +},2254,[3,6,7,11,13,14,2251,670,587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313306,7 +313278,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleZipDownloadOperation); }(_DownloadOperation2.default); -},2256,[3,7,6,11,13,14,2252,671]); +},2255,[3,7,6,11,13,14,2251,670]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -313873,7 +313845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function purgeLog(message) {} }]); }(); -},2257,[3,270,6,7,566,1969,1970,1772,2248,671,438]); +},2256,[3,270,6,7,566,860,861,859,2247,670,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314203,7 +314175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2258,[3,270,6,7,630,1841]); +},2257,[3,270,6,7,629,1953]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314353,7 +314325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref5.apply(this, arguments); }; }(); -},2259,[3,270,1969,2114,1873,436,564,815]); +},2258,[3,270,860,2113,1983,436,564,814]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -314948,7 +314920,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2260,[3,270,6,7,11,85,13,14,582,16,816,1840,1969,2114,2246,2247,436,819,2194,2097,824,1726,1708,1772,1729,438,2026,564,1824,2259,2197,2215,1039,179]); +},2259,[3,270,6,7,11,85,13,14,582,16,1867,1952,860,2113,2245,2246,436,1869,2193,2096,881,880,868,859,1897,438,1854,564,1937,2258,2196,2214,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315099,7 +315071,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2261,[3,4,6,7,11,13,14,16,18,582,2262,564,179,1849]); +},2260,[3,4,6,7,11,13,14,16,18,582,2261,564,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315130,7 +315102,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e margin: 10 } }); -},2262,[18]); +},2261,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315778,7 +315750,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2263,[3,4,270,6,7,11,85,13,14,582,16,18,816,1840,2114,2246,436,819,434,2097,824,1823,1729,1983,2264,2026,1726,2229,2265,2116,1751,564,1824,821,438,1874,179,1816,1817,1828,2239,1981,1039]); +},2262,[3,4,270,6,7,11,85,13,14,582,16,18,1867,1952,2113,2245,436,1869,434,2096,881,1936,1897,856,2263,1854,880,2228,2264,2115,870,564,1937,1871,438,1730,179,1929,1930,1940,2238,2008,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -315891,7 +315863,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NativeOptionsPageUtils; -},2264,[3,270,6,7,1969,2246,2247,1726,1772,2026,438]); +},2263,[3,270,6,7,860,2245,2246,880,859,1854,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316062,7 +316034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _completeTransaction.apply(this, arguments); } -},2265,[3,270,2194,824,1726,2197,438]); +},2264,[3,270,2193,881,880,2196,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316632,7 +316604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2266,[3,4,270,6,7,11,85,13,14,582,16,18,816,2246,436,819,2097,824,1823,1729,2264,2026,1726,2229,2114,1874,2265,2116,564,1824,821,438,179,1822,1981,1039]); +},2265,[3,4,270,6,7,11,85,13,14,582,16,18,1867,2245,436,1869,2096,881,1936,1897,2263,1854,880,2228,2113,1730,2264,2115,564,1937,1871,438,179,1935,2008,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -316988,7 +316960,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e OptionPageAccessibility.defaultProps = { shortcutPriority: 0 }; -},2267,[3,270,6,7,11,13,14,582,16,18,816,406,436,819,1875,1979,1826,2268,564,438,1874,2269,179,1709,1985,2004]); +},2266,[3,270,6,7,11,13,14,582,16,18,1867,406,436,1869,1731,2006,816,2267,564,438,1730,2268,179,819,2009,2028]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317028,7 +317000,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e issue: {}, issueText: {} }); -},2268,[18,438]); +},2267,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317062,7 +317034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.pathEdi = obj.pathEdi; this.editionIndex = obj.editionIndex; }); -},2269,[3,7,6]); +},2268,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317299,7 +317271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpen: function onOpen() {}, onClose: function onClose() {} }; -},2270,[3,270,6,7,11,13,14,582,16,18,834,1840,2247,436,630,1708,2216,564,1726,438,1709,1828,179,1817,2230,1822]); +},2269,[3,270,6,7,11,13,14,582,16,18,891,1952,2246,436,629,868,2215,564,880,438,819,1940,179,1930,2229,1935]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317326,7 +317298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2271,[18]); +},2270,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319762,7 +319734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[50]).Shortcut.defaultProps, { shortcutEnabled: true }); -},2272,[3,270,240,6,7,11,85,13,14,582,16,18,405,1840,2247,436,434,630,1842,668,587,667,1772,671,2273,2275,2309,2276,2316,2350,2270,2356,2363,2364,438,2365,564,821,1874,1859,1968,1726,2026,1748,1700,179,1709,1711,2366,1849,1981]); +},2271,[3,270,240,6,7,11,85,13,14,582,16,18,405,1952,2246,436,434,629,858,667,587,666,859,670,2272,2274,2308,2275,2315,2349,2269,2355,2362,2363,438,2364,564,1871,1730,1970,1999,880,1854,866,1875,179,819,827,2365,1960,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319832,7 +319804,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2273,[3,6,7,16,1826,2274,815,438,179,1985]); +},2272,[3,6,7,16,816,2273,814,438,179,2009]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -319852,7 +319824,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, buttonText: {} }); -},2274,[18]); +},2273,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -320205,7 +320177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleModeManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[24]).Shortcut.defaultProps, { indexMode: false }); -},2275,[3,4,6,7,11,13,14,16,582,667,1772,2004,2276,436,671,1842,630,1729,438,564,1726,1709,179,2303,1981]); +},2274,[3,4,6,7,11,13,14,16,582,666,859,2028,2275,436,670,858,629,1897,438,564,880,819,179,2302,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321097,7 +321069,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndexLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[38]).PureShortcut.defaultProps, { indexLevel: 1 }); -},2276,[3,4,270,6,7,11,13,14,582,16,436,434,630,823,1875,667,668,1973,1772,671,1729,2216,2277,2279,2281,2286,2287,2297,2217,2301,2302,821,438,1859,1874,564,179,1709,1981,2011]); +},2275,[3,4,270,6,7,11,13,14,582,16,436,434,629,1873,1731,666,667,2000,859,670,1897,2215,2276,2278,2280,2285,2286,2296,2216,2300,2301,1871,438,1970,1730,564,179,819,2008,1861]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321240,7 +321212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _propTypes.default.string.isRequired, onChangeEventName: _propTypes.default.string }; -},2277,[3,6,7,11,13,14,16,18,582,1826,2278,564,438,179,1709,1985]); +},2276,[3,6,7,11,13,14,16,18,582,816,2277,564,438,179,819,2009]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321274,7 +321246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontStyle: "italic" } }); -},2278,[18,1711]); +},2277,[18,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321347,7 +321319,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SubHeaderComponent.defaultProps = { cssClasses: [] }; -},2279,[3,6,7,11,13,14,16,582,18,2280,179,1709]); +},2278,[3,6,7,11,13,14,16,582,18,2279,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321367,7 +321339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "flex-end" } }); -},2280,[18,1711]); +},2279,[18,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321450,7 +321422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_indexBaseComponent.default); -},2281,[3,6,7,11,13,14,16,407,1708,1771,2003,2282,1709,1967,1974,2285,179,1816,1817]); +},2280,[3,6,7,11,13,14,16,407,868,1923,2027,2281,819,1998,2001,2284,179,1929,1930]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321867,7 +321839,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enableSeparator: true, fullscreen: false }); -},2282,[3,22,6,7,11,13,14,16,18,582,1773,671,2003,1979,179,1711,2004,438,2283,1709,1816,630,1981]); +},2281,[3,22,6,7,11,13,14,16,18,582,1924,670,2027,2006,179,827,2028,438,2282,819,1929,629,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322149,7 +322121,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })) }); }; -},2283,[3,582,16,18,434,630,1842,1875,668,671,1826,2284,2003,438,179,1709,1985]); +},2282,[3,582,16,18,434,629,858,1731,667,670,816,2283,2027,438,179,819,2009]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322366,7 +322338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, page: _propTypes.default.instanceOf(_Page.default) }; -},2284,[3,4,270,6,7,11,13,14,582,16,18,566,587,671,588,438,179,1849]); +},2283,[3,4,270,6,7,11,13,14,582,16,18,566,587,670,588,438,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322380,7 +322352,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var getCustomIndexIframeDefinition = exports.getCustomIndexIframeDefinition = function getCustomIndexIframeDefinition() { return "\n "; }; -},2285,[]); +},2284,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322574,7 +322546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndex.propTypes = { title: _propTypes.default.string }; -},2286,[3,22,6,7,11,13,14,582,16,434,1842,2282,1874,2283,630,179]); +},2285,[3,22,6,7,11,13,14,582,16,434,858,2281,1730,2282,629,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322891,7 +322863,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemorySecondIndex.defaultProps = Object.assign({}, _indexBaseComponent.default.defaultProps, { secondLevelIndex: 0 }); -},2287,[3,22,6,7,11,85,13,14,16,582,2288,2282,671,630,2283,1874,179]); +},2286,[3,22,6,7,11,85,13,14,16,582,2287,2281,670,629,2282,1730,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323129,7 +323101,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showIndicators: false, skipChildMemo: false }; -},2288,[3,6,7,11,13,14,582,16,18,1678,434,2289,2294,2295,1,438,179]); +},2287,[3,6,7,11,13,14,582,16,18,1703,434,2288,2293,2294,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323284,7 +323256,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkNavigationButtons; -},2289,[3,33,4,16,582,18,2290,179,1709,2292,2293]); +},2288,[3,33,4,16,582,18,2289,179,819,2291,2292]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323334,7 +323306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkButton; -},2290,[3,16,582,18,2291,179,1709]); +},2289,[3,16,582,18,2290,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323373,7 +323345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ButtonIcon; -},2291,[3,16,582,1776,179,1709]); +},2290,[3,16,582,1927,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -323385,7 +323357,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-left-button", "type": "png" }); -},2292,[1210]); +},2291,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -323397,7 +323369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-right-button", "type": "png" }); -},2293,[1210]); +},2292,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323456,7 +323428,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = ViewPagerChild; -},2294,[3,16,582,18,630,179,1849]); +},2293,[3,16,582,18,629,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323510,7 +323482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Indicators; -},2295,[3,16,582,18,2296,179,438]); +},2294,[3,16,582,18,2295,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323541,7 +323513,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginBottom: 3 } }); -},2296,[18,438]); +},2295,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323702,7 +323674,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor: global.getRssIndex() }); } -},2297,[3,4,16,2038,434,668,1772,2135,2298,438,1964,2045,2104,1968,2091,179,2283,2099,1709]); +},2296,[3,4,16,2037,434,667,859,2134,2297,438,1995,2044,2103,1999,2090,179,2282,2098,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323799,7 +323771,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabNavigator; -},2298,[3,4,16,18,582,2299,1661,179,438]); +},2297,[3,4,16,18,582,2298,1686,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324035,7 +324007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabBar; -},2299,[3,22,33,16,18,582,2300,438,179]); +},2298,[3,22,33,16,18,582,2299,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324121,7 +324093,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabItem; -},2300,[3,16,18,582,1776,1826,438,179]); +},2299,[3,16,18,582,1927,816,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324336,7 +324308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rightButtons: [], cssButtonClasses: [] }; -},2301,[3,22,6,7,11,13,14,16,582,18,1874,1709,438,1711,179,2015]); +},2300,[3,22,6,7,11,13,14,16,582,18,1730,819,438,827,179,1810]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324500,7 +324472,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, cssProps: {} }; -},2302,[3,4,6,7,11,13,14,16,582,2217,564,179]); +},2301,[3,4,6,7,11,13,14,16,582,2216,564,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326794,7 +326766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryArticleLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[54]).Shortcut.defaultProps, { header: false }); -},2303,[3,270,6,7,11,85,13,14,582,16,18,1840,406,1841,1986,436,2304,434,630,1842,1843,566,1875,667,668,1772,671,1988,2288,1771,2305,2216,2306,2277,2279,2307,2217,2301,2302,2308,1874,564,438,821,1701,1866,1824,1965,179,1859,1976,1709,1748,1964,1981,2011]); +},2302,[3,270,6,7,11,85,13,14,582,16,18,1952,406,1953,2010,436,2303,434,629,858,1954,566,1731,666,667,859,670,2012,2287,1923,2304,2215,2305,2276,2278,2306,2216,2300,2301,2307,1730,564,438,1871,1876,1976,1937,1996,179,1970,2003,819,866,1995,2008,1861]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327268,7 +327240,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2304,[3,270,6,7,18,1855,567,406,667,668,1772,671,566,1823,1824,1701,1700,1859,438,1748,586]); +},2303,[3,270,6,7,18,1966,567,406,666,667,859,670,566,1936,1937,1876,1875,1970,438,866,586]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327450,7 +327422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e level: DEFAULT_LEVEL, visible: false }; -},2305,[3,6,7,11,13,14,16,18,582,1826,436,564,179,1709,1711]); +},2304,[3,6,7,11,13,14,16,18,582,816,436,564,179,819,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327522,7 +327494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FlagIconComponent; -},2306,[3,22,4,16,582,18,1776,1873,1826,438,1874,179,1709]); +},2305,[3,22,4,16,582,18,1927,1983,816,438,1730,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327695,7 +327667,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e badgeIcon: undefined, cssBadgeClasses: [] }; -},2307,[3,6,7,11,85,13,14,16,582,18,2217,2218,1776,564,438,179,1709]); +},2306,[3,6,7,11,85,13,14,16,582,18,2216,2217,1927,564,438,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327749,7 +327721,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2308,[18,1711]); +},2307,[18,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328444,7 +328416,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isItemPresent: _propTypes.default.func, style: _propTypes.default.any }, _$$_REQUIRE(_dependencyMap[33]).Shortcut.propTypes); -},2309,[3,270,22,6,7,11,85,13,14,582,16,18,1840,2247,436,434,2097,823,1729,1776,2310,564,821,1709,438,1874,179,1976,1726,815,2163,2311,2315,1981,2023]); +},2308,[3,270,22,6,7,11,85,13,14,582,16,18,1952,2246,436,434,2096,1873,1897,1927,2309,564,1871,819,438,1730,179,2003,880,814,2162,2310,2314,2008,1851]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328810,7 +328782,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 }; -},2310,[3,4,6,7,11,13,14,16,582,18,564,179,1711]); +},2309,[3,4,6,7,11,13,14,16,582,18,564,179,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329030,7 +329002,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NewsMemoryFooterIcon); -},2311,[3,6,7,11,85,13,14,16,436,2312,564,1772,815,438,1874,179,1849,2314,2315]); +},2310,[3,6,7,11,85,13,14,16,436,2311,564,859,814,438,1730,179,1960,2313,2314]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329178,7 +329150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssTextClasses: [], cssTextParentClasses: [] }; -},2312,[3,6,7,11,13,14,16,18,154,582,2313,1776,179,2314,1709]); +},2311,[3,6,7,11,13,14,16,18,154,582,2312,1927,179,2313,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329301,7 +329273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssParentClasses: [] }; -},2313,[3,270,6,7,11,13,14,16,582,18,1826,438,179,1709,2314]); +},2312,[3,270,6,7,11,13,14,16,582,18,816,438,179,819,2313]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329335,7 +329307,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 12 } }); -},2314,[18]); +},2313,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329570,7 +329542,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, visible: true }); -},2315,[3,270,6,7,11,13,14,16,582,18,1826,2312,179,438,1709,2314,1981,2015]); +},2314,[3,270,6,7,11,13,14,16,582,18,816,2311,179,438,819,2313,2008,1810]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -330257,7 +330229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageNumberTop: true, isSpecialSection: false }); -},2316,[3,270,6,7,11,85,13,14,582,16,18,1840,436,2186,630,1842,1772,671,2317,2336,564,438,821,1859,179,1981,2033]); +},2315,[3,270,6,7,11,85,13,14,582,16,18,1952,436,2185,629,858,859,670,2316,2335,564,438,1871,1970,179,2008,1866]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331648,7 +331620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e numberOfShowedPages: 1, initialEvent: undefined }); -},2317,[3,270,22,6,7,11,85,13,14,582,16,1840,436,630,1842,665,668,1772,671,2318,1836,2319,2326,438,564,821,672,1824,1859,179,1981]); +},2316,[3,270,22,6,7,11,85,13,14,582,16,1952,436,629,858,664,667,859,670,2317,1948,2318,2325,438,564,1871,671,1937,1970,179,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331776,7 +331748,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2318,[3,6,7]); +},2317,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332470,7 +332442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e twoFingerTapEnabled: false, cssContainerClasses: [] }; -},2319,[3,22,6,7,11,13,14,582,16,18,674,1845,2320,1846,2321,2325,438,673,179,1,1709]); +},2318,[3,22,6,7,11,13,14,582,16,18,673,1956,2319,1957,2320,2324,438,672,179,1,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -332715,7 +332687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2320,[3,6,7,2318,438]); +},2319,[3,6,7,2317,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333348,7 +333320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2321,[3,33,6,7,674,1836,1,2322,2323,2324,673]); +},2320,[3,33,6,7,673,1948,1,2321,2322,2323,672]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333450,7 +333422,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]; } -},2322,[3,674,1836,1,673]); +},2321,[3,673,1948,1,672]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333504,7 +333476,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)])]); }; -},2323,[674,3,1836]); +},2322,[673,3,1948]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333677,7 +333649,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]))))]; } -},2324,[674,3,1836,438,1,673]); +},2323,[673,3,1948,438,1,672]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -333720,7 +333692,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2325,[18,438]); +},2324,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334450,7 +334422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showBorder: false, loginOverlayPosition: _$$_REQUIRE(_dependencyMap[30]).PageViewPosition.CENTER }; -},2326,[3,6,7,11,13,14,582,16,18,1840,436,630,1772,671,2327,1961,2328,2329,1853,2330,2331,2332,2335,1748,564,438,586,587,179,668,1842]); +},2325,[3,6,7,11,13,14,582,16,18,1952,436,629,859,670,2326,1992,2327,2328,1964,2329,2330,2331,2334,866,564,438,586,587,179,667,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334711,7 +334683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e page: _propTypes.default.instanceOf(_Page.default), style: _propTypes.default.any }; -},2327,[3,4,270,6,7,11,13,14,16,18,834,582,671,2186,438,1,579,179]); +},2326,[3,4,270,6,7,11,13,14,16,18,891,582,670,2185,438,1,579,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334916,7 +334888,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minZoom: 1, hidden: false }; -},2328,[3,33,6,7,11,13,14,16,18,582,671,667,1826,438,1709,179]); +},2327,[3,33,6,7,11,13,14,16,18,582,670,666,816,438,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335009,7 +334981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.PureComponent); -},2329,[3,6,7,11,13,14,16,18,179,1709,438]); +},2328,[3,6,7,11,13,14,16,18,179,819,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335287,7 +335259,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, fitWidth: _propTypes.default.bool }; -},2330,[3,6,7,11,13,14,16,582,18,902,436,630,665,1840,1854,672,671,564,438,179]); +},2329,[3,6,7,11,13,14,16,582,18,959,436,629,664,1952,1965,671,670,564,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335378,7 +335350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageImage.defaultProps = { show: true }; -},2331,[3,4,6,7,11,13,14,16,582,587,566,588,438,179,1849]); +},2330,[3,4,6,7,11,13,14,16,582,587,566,588,438,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335520,7 +335492,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e left: _propTypes.default.number }) }; -},2332,[3,6,7,11,13,14,2333,582,16,18,566,587,1772,671,2334,2331,179,438]); +},2331,[3,6,7,11,13,14,2332,582,16,18,566,587,859,670,2333,2330,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335690,7 +335662,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e blackAndWhite: false, enableThumbnail: false }; -},2333,[3,4,6,7,11,13,14,16,582,18,438,179,598]); +},2332,[3,4,6,7,11,13,14,16,582,18,438,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335939,7 +335911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageHr.defaultProps = { showAll: true }; -},2334,[3,6,7,11,13,14,16,582,18,671,630,436,1772,587,1850,438,564,179]); +},2333,[3,6,7,11,13,14,16,582,18,670,629,436,859,587,1961,438,564,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335967,7 +335939,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2335,[18,438]); +},2334,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336378,7 +336350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e animateButtons: false } }; -},2336,[3,4,6,7,11,13,14,582,16,18,436,630,667,1776,2312,2337,2338,2340,2349,438,564,179,1,815,1874,1777,2033]); +},2335,[3,4,6,7,11,13,14,582,16,18,436,629,666,1927,2311,2336,2337,2339,2348,438,564,179,1,814,1730,1811,1866]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336446,7 +336418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesBackToPaperButton.propTypes = { onPress: _propTypes.default.func.isRequired }; -},2337,[3,6,7,11,13,14,16,582,18,2338,588,179,2339]); +},2336,[3,6,7,11,13,14,16,582,18,2337,588,179,2338]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336551,7 +336523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 23 } }); -},2338,[18,438,1711]); +},2337,[18,438,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336563,7 +336535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-to-paper", "type": "png" }); -},2339,[1210]); +},2338,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336866,7 +336838,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesNavigationButtons.defaultProps = { version: 2 }; -},2340,[3,6,7,11,13,14,16,582,18,2338,1846,436,2310,1776,2341,2342,2343,2344,2345,2346,2347,2348,179,1709,438,2033]); +},2339,[3,6,7,11,13,14,16,582,18,2337,1957,436,2309,1927,2340,2341,2342,2343,2344,2345,2346,2347,179,819,438,1866]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336878,7 +336850,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2341,[1210]); +},2340,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336890,7 +336862,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2342,[1210]); +},2341,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336902,7 +336874,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2343,[1210]); +},2342,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336914,7 +336886,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2344,[1210]); +},2343,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336926,7 +336898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2345,[1210]); +},2344,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336938,7 +336910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2346,[1210]); +},2345,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336950,7 +336922,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2347,[1210]); +},2346,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -336962,7 +336934,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2348,[1210]); +},2347,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337125,7 +337097,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pagesAreaSize: _propTypes.default.object, onPress: _propTypes.default.func }; -},2349,[3,6,7,11,13,14,16,582,18,1826,2310,436,179,1709,1,2340]); +},2348,[3,6,7,11,13,14,16,582,18,816,2309,436,179,819,1,2339]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337507,7 +337479,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, model: _propTypes.default.instanceOf(_$$_REQUIRE(_dependencyMap[29]).Header).isRequired }, _$$_REQUIRE(_dependencyMap[28]).Shortcut.propTypes); -},2350,[3,6,7,11,13,14,582,16,18,820,630,1842,667,668,671,2351,1979,1826,2216,2353,821,179,1711,1874,1709,2354,438,2004,1981,2011]); +},2349,[3,6,7,11,13,14,582,16,18,1870,629,858,666,667,670,2350,2006,816,2215,2352,1871,179,827,1730,819,2353,438,2028,2008,1861]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337628,7 +337600,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClassesIcon: [], cssClassesText: [] }; -},2351,[3,6,7,11,13,14,16,582,18,1826,2352,1777,179,1709,438]); +},2350,[3,6,7,11,13,14,16,582,18,816,2351,1811,179,819,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337650,7 +337622,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlign: "center" } }); -},2352,[18]); +},2351,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337715,7 +337687,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR } }); -},2353,[18,1711,438]); +},2352,[18,827,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337960,7 +337932,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 0, autoFocus: false }; -},2354,[3,270,6,7,11,13,14,582,16,18,2220,1777,1709,438,179,2355]); +},2353,[3,270,6,7,11,13,14,582,16,18,2219,1811,819,438,179,2354]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337996,7 +337968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 30 } }); -},2355,[18]); +},2354,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338691,7 +338663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired }, _$$_REQUIRE(_dependencyMap[29]).Shortcut.propTypes); NewsmemoryThumbnail.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[29]).Shortcut.defaultProps); -},2356,[3,270,6,7,11,85,13,14,582,16,18,2357,436,630,1842,566,667,587,1772,671,2358,564,821,2359,438,179,1980,2360,1709,1981]); +},2355,[3,270,6,7,11,85,13,14,582,16,18,2356,436,629,858,566,666,587,859,670,2357,564,1871,2358,438,179,2007,2359,819,2008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -338801,7 +338773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; }; -},2357,[]); +},2356,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338966,7 +338938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 5 } }); -},2358,[18,3,671,630,667,438,1711]); +},2357,[18,3,670,629,666,438,827]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339046,7 +339018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2359,[3,6,7,671]); +},2358,[3,6,7,670]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339343,7 +339315,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); }; -},2360,[3,270,16,18,436,2304,630,1842,667,1772,671,2361,1826,2358,179,1709,2004,1866,1859,2362,1711,1777,438,1980]); +},2359,[3,270,16,18,436,2303,629,858,666,859,670,2360,816,2357,179,819,2028,1976,1970,2361,827,1811,438,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339457,7 +339429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.object }; -},2361,[3,4,270,6,7,11,13,14,16,582,588,179,1849]); +},2360,[3,4,270,6,7,11,13,14,16,582,588,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339638,7 +339610,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DownloadButton.defaultProps = { disabled: false }; -},2362,[3,4,6,7,11,13,14,16,582,18,1777,564,179,1709,1849]); +},2361,[3,4,6,7,11,13,14,16,582,18,1811,564,179,819,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339911,7 +339883,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BackgroundPages.defaultProps = { hidden: false }; -},2363,[3,6,7,11,13,14,582,16,18,436,630,667,1772,671,2326,2364,564,1711,179,438,1709,1849]); +},2362,[3,6,7,11,13,14,582,16,18,436,629,666,859,670,2325,2363,564,827,179,438,819,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339942,7 +339914,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},2364,[18,438]); +},2363,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340608,7 +340580,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); LayoutFlexManager.LAST_ACCESSIBILITY_STATE = false; -},2365,[3,6,7,434,1840,1709,438]); +},2364,[3,6,7,434,1952,819,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340623,7 +340595,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2366,[2367]); +},2365,[2366]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340754,7 +340726,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2367,[3,6,7,11,13,14,16,582,436,564,179,1849,438]); +},2366,[3,6,7,11,13,14,16,582,436,564,179,1960,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340769,7 +340741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2368,[2369]); +},2367,[2368]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341008,7 +340980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showLoading: true, ignoreSafeArea: false }; -},2369,[3,6,7,11,13,14,582,16,18,436,434,588,2370,564,179,2371,1849,438]); +},2368,[3,6,7,11,13,14,582,16,18,436,434,588,2369,564,179,2370,1960,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341034,7 +341006,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: "contain" }; }; -},2370,[3,434]); +},2369,[3,434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341050,7 +341022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: "100%" } }); -},2371,[18]); +},2370,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341361,7 +341333,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2372,[3,6,7,11,85,13,14,582,16,18,1840,436,2091,2221,2373,2384,2385,2389,2390,438,564,179,1709,2222,2231,2098,1980]); +},2371,[3,6,7,11,85,13,14,582,16,18,1952,436,2090,2220,2372,2383,2384,2388,2389,438,564,179,819,2221,2230,2097,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341644,7 +341616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2373,[3,270,6,7,11,13,14,16,18,816,1727,1765,1707,824,1823,1729,2374,2375,2377,2381,2382,2383,1713,2001,438,1709,179,1824]); +},2372,[3,270,6,7,11,13,14,16,18,1867,1895,1917,1882,881,1936,1897,2373,2374,2376,2380,2381,2382,817,2025,438,819,179,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341771,7 +341743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onChange: _propTypes.default.func.isRequired }; -},2374,[3,270,6,7,11,13,14,582,16,2226,815,179]); +},2373,[3,270,6,7,11,13,14,582,16,2225,814,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341912,7 +341884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: _propTypes.default.bool, onChange: _propTypes.default.func.isRequired }; -},2375,[3,270,6,7,11,13,14,16,582,18,2376,1709,179,2227,2226]); +},2374,[3,270,6,7,11,13,14,16,582,18,2375,819,179,2226,2225]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341999,7 +341971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaCheckBox; -},2376,[3,16,582,18,1777,438,179,1709]); +},2375,[3,16,582,18,1811,438,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342153,7 +342125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPicker; -},2377,[3,270,33,4,16,582,18,2226,2378,179]); +},2376,[3,270,33,4,16,582,18,2225,2377,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342364,7 +342336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownList; -},2378,[3,22,33,16,582,18,1982,2379,1709,179,1980]); +},2377,[3,22,33,16,582,18,830,2378,819,179,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342467,7 +342439,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDownOption.defaultProps = {}; var _default = exports.default = DropDownOption; -},2379,[3,582,16,18,2380,179,1709]); +},2378,[3,582,16,18,2379,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342599,7 +342571,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Option; -},2380,[3,4,582,16,18,1826,1777,1776,438,179]); +},2379,[3,4,582,16,18,816,1811,1927,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342656,7 +342628,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPickerMulti; -},2381,[3,4,16,582,2377,179]); +},2380,[3,4,16,582,2376,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342701,7 +342673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingText; -},2382,[3,16,582,18,1709,179,2227,2226]); +},2381,[3,16,582,18,819,179,2226,2225]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342773,7 +342745,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2383,[3,6,7,1824]); +},2382,[3,6,7,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -342959,7 +342931,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2384,[3,270,6,7,11,13,14,16,1840,1841,436,2374,2375,2377,2383,179,438,1748,2259,564,1726]); +},2383,[3,270,6,7,11,13,14,16,1952,1953,436,2373,2374,2376,2382,179,438,866,2258,564,880]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343248,7 +343220,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2385,[3,270,22,6,7,11,13,14,16,407,816,1840,1873,1841,436,819,2375,2377,2383,179,2386,630,2387,2388,438,564]); +},2384,[3,270,22,6,7,11,13,14,16,407,1867,1952,1983,1953,436,1869,2374,2376,2382,179,2385,629,2386,2387,438,564]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -343260,7 +343232,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_full", "type": "png" }); -},2386,[1210]); +},2385,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -343272,7 +343244,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_medium", "type": "png" }); -},2387,[1210]); +},2386,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -343284,7 +343256,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_low", "type": "png" }); -},2388,[1210]); +},2387,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343364,7 +343336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2389,[3,6,7,11,13,14,16,434,2374,2219,2383,2223,179]); +},2388,[3,6,7,11,13,14,16,434,2373,2218,2382,2222,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343554,7 +343526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2390,[3,270,6,7,11,13,14,16,820,2109,566,2374,2391,2383,438,2099,179]); +},2389,[3,270,6,7,11,13,14,16,1870,2108,566,2373,2390,2382,438,2098,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343617,7 +343589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingMyHome; -},2391,[3,16,582,2226,1982,179,2392]); +},2390,[3,16,582,2225,830,179,2391]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343632,7 +343604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2392,[2393]); +},2391,[2392]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344409,7 +344381,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeConfig.defaultProps = { showAlwaysOnClose: false }; -},2393,[3,22,240,6,7,11,13,14,270,582,16,18,2096,2109,2037,434,2103,2228,2376,1826,1777,588,2394,2099,2104,179,1709,620,438,1980]); +},2392,[3,22,240,6,7,11,13,14,270,582,16,18,2095,2108,2036,434,2102,2227,2375,816,1811,588,2393,2098,2103,179,819,619,438,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344569,7 +344541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 40 } }); -},2394,[18,2091,438]); +},2393,[18,2090,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344584,7 +344556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2395,[2396]); +},2394,[2395]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344744,7 +344716,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryHTML5Screen.propTypes = { navigation: _propTypes.default.object }; -},2396,[3,6,7,11,85,13,14,16,18,567,582,820,1729,438,179,1822,1824,2231]); +},2395,[3,6,7,11,85,13,14,16,18,567,582,1870,1897,438,179,1935,1937,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344759,7 +344731,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2397,[2398]); +},2396,[2397]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345169,7 +345141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryScreen.defaultProps = { considerSafeAreaTop: false }; -},2398,[3,270,4,6,7,11,85,13,14,582,16,18,2304,434,566,2399,2402,2459,1777,438,2112,1859,2231,1709,179,2401,2463]); +},2397,[3,270,4,6,7,11,85,13,14,582,16,18,2303,434,566,2398,2401,2458,1811,438,2111,1970,2230,819,179,2400,2462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345238,7 +345210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startIndex: _propTypes.default.number.isRequired, total: _propTypes.default.number.isRequired }; -},2399,[3,6,7,11,13,14,16,582,1826,2400,179]); +},2398,[3,6,7,11,13,14,16,582,816,2399,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345257,7 +345229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlignVertical: "center" } }); -},2400,[18,2401]); +},2399,[18,2400]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345371,7 +345343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2401,[18,438]); +},2400,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345388,9 +345360,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); var _viewPagerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); @@ -345452,8 +345424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case "dailymotion": case "dailymotionPlaylist": return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).GalleryVideoDailymotion, { - item: item, - isPlaylist: item.action === "dailymotionPlaylist" + item: item }, index); case "videoStream": @@ -345517,7 +345488,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryPager.defaultProps = { startIndex: 0 }; -},2402,[3,6,7,11,13,14,16,582,2288,179,2403,2406,2450,2453,2456,2458]); +},2401,[3,6,7,11,13,14,582,16,2287,179,2402,2405,2449,2452,2455,2457]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345532,7 +345503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2403,[2404]); +},2402,[2403]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345555,7 +345526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _dailymotionVideoPlayerComponent = _$$_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)); } @@ -345571,57 +345542,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(GalleryVideoDailymotion, [{ key: "render", 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, - isPlaylist = _this$props.isPlaylist; - var url = item.url; - var playerData = { - autoplay: false - }; - - if (isPlaylist) { - playerData.playlist = url; - } else { - playerData.video = url; - } - - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[11]).styles.parent, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(DailymotionVideoPlayer, { - ref: function ref(r) { - _this.player = r; - }, - playerData: playerData, - style: { - height: "100%", - width: "100%" - }, - onPlayerEvent: function onPlayerEvent(payload) { - return; - }, - onStart: function onStart(payload) { - return; - }, - onPause: function onPause(payload) { - return; - }, - onSeeked: function onSeeked(payload) { - return; - }, - onEnd: function onEnd(payload) { - return; - } - }) - }); - } - - return null; + var item = this.props.item; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[11]).styles.parent, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_dailymotionVideoPlayerComponent.default, { + video: item, + style: { + height: "100%", + width: "100%" + }, + progressColor: _$$_REQUIRE(_dependencyMap[12]).colors.white_transparent_135 + }) + }); } }]); }(_react.default.Component); @@ -345629,11 +345561,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryVideoDailymotion.propTypes = { item: _propTypes.default.shape({ thumbnail: _propTypes.default.string, - url: _propTypes.default.string.isRequired - }), - isPlaylist: _propTypes.default.bool + action: _propTypes.default.string.isRequired, + url: _propTypes.default.string.isRequired, + playerId: _propTypes.default.string.isRequired + }) }; -},2404,[3,6,7,11,13,14,582,16,18,824,179,2405]); +},2403,[3,6,7,11,13,14,582,16,18,2151,179,2404,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345651,7 +345584,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingTop: _$$_REQUIRE(_dependencyMap[1]).GALLERY_ITEM_HEIGHT } }); -},2405,[18,2401]); +},2404,[18,2400]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345666,7 +345599,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2406,[2407]); +},2405,[2406]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345683,13 +345616,13 @@ __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 _reactNativeVideoPlayer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _reactNativeVideoPlayer = _$$_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)); } @@ -345705,7 +345638,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(GalleryVideoStream, [{ key: "pause", value: function pause() { - if (this.player && this.player.state.isPlaying) { + var _this$player; + + if ((_this$player = this.player) != null && _this$player.state.isPlaying) { this.player.pause(); } } @@ -345744,7 +345679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2407,[3,6,7,11,13,14,16,2408,18,582,179,2449]); +},2406,[3,6,7,11,13,14,582,16,18,2407,179,2448]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346509,7 +346444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customStyles: {}, showDuration: false }; -},2408,[3,4,6,7,11,13,14,16,582,18,1807,2409,2432,179]); +},2407,[3,4,6,7,11,13,14,16,582,18,1841,2408,2431,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347060,7 +346995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fullscreen: true } }); -},2409,[3,270,6,7,11,13,14,16,582,18,154,2410,2411,2412,2413,179,2415]); +},2408,[3,270,6,7,11,13,14,16,582,18,154,2409,2410,2411,2412,179,2414]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347072,7 +347007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TTML: 'application/ttml+xml', VTT: 'text/vtt' }; -},2410,[]); +},2409,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347097,7 +347032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TRANSFER: 'CIPhotoEffectTransfer', SEPIA: 'CISepiaTone' }; -},2411,[]); +},2410,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347110,7 +347045,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CLEARKEY: 'clearkey', FAIRPLAY: 'fairplay' }; -},2412,[]); +},2411,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347124,7 +347059,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cover: null, stretch: null }); -},2413,[3,2414]); +},2412,[3,2413]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -347148,7 +347083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; module.exports = keyMirror; -},2414,[]); +},2413,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347182,7 +347117,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2415,[2416,2417,2418,2428,2429,2430,2419]); +},2414,[2415,2416,2417,2427,2428,2429,2418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347209,7 +347144,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; -},2416,[145]); +},2415,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347221,7 +347156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2417,[582]); +},2416,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347253,7 +347188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2418,[2419,2420,2427,582]); +},2417,[2418,2419,2426,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347297,7 +347232,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2419,[2420,2422,582,2426,2417]); +},2418,[2419,2421,582,2425,2416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347345,7 +347280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2420,[2421]); +},2419,[2420]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347401,7 +347336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2421,[31]); +},2420,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347434,7 +347369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2422,[2423,2424,2425,582,2416]); +},2421,[2422,2423,2424,582,2415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347494,7 +347429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2423,[582]); +},2422,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347508,7 +347443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2424,[2416,582]); +},2423,[2415,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347574,14 +347509,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2425,[582]); +},2424,[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'] }; -},2426,[]); +},2425,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347602,7 +347537,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2427,[2423,2424,2425,582,2416]); +},2426,[2422,2423,2424,582,2415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347612,7 +347547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2428,[582]); +},2427,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347675,7 +347610,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 }); -},2429,[2419,582,2416,2430]); +},2428,[2418,582,2415,2429]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347704,7 +347639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2430,[2420,2431,582,2417,2416]); +},2429,[2419,2430,582,2416,2415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347733,7 +347668,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2431,[2422,2416,582]); +},2430,[2421,2415,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347767,7 +347702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2432,[2433,2434,2435,2445,2446,2447,2436]); +},2431,[2432,2433,2434,2444,2445,2446,2435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347794,7 +347729,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; -},2433,[145]); +},2432,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347806,7 +347741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2434,[582]); +},2433,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347838,7 +347773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2435,[2436,2437,2444,582]); +},2434,[2435,2436,2443,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347882,7 +347817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2436,[2437,2439,582,2443,2434]); +},2435,[2436,2438,582,2442,2433]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347930,7 +347865,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2437,[2438]); +},2436,[2437]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -347986,7 +347921,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2438,[31]); +},2437,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348019,7 +347954,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2439,[2440,2441,2442,582,2433]); +},2438,[2439,2440,2441,582,2432]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348079,7 +348014,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2440,[582]); +},2439,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348093,7 +348028,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2441,[2433,582]); +},2440,[2432,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348159,14 +348094,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2442,[582]); +},2441,[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'] }; -},2443,[]); +},2442,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348187,7 +348122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2444,[2440,2441,2442,582,2433]); +},2443,[2439,2440,2441,582,2432]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348197,7 +348132,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2445,[582]); +},2444,[582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348260,7 +348195,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 }); -},2446,[2436,582,2433,2447]); +},2445,[2435,582,2432,2446]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348289,7 +348224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2447,[2437,2448,582,2434,2433]); +},2446,[2436,2447,582,2433,2432]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -348318,7 +348253,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2448,[2439,2433,582]); +},2447,[2438,2432,582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348334,7 +348269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2449,[18]); +},2448,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348349,7 +348284,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2450,[2451]); +},2449,[2450]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348440,7 +348375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thumbnail: _propTypes.default.string }) }; -},2451,[3,6,7,11,13,14,16,18,582,588,1823,1776,179,1709,2452,1777]); +},2450,[3,6,7,11,13,14,16,18,582,588,1936,1927,179,819,2451,1811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348468,7 +348403,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 80 } }); -},2452,[18,438]); +},2451,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348483,7 +348418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2453,[2454]); +},2452,[2453]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348562,7 +348497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2454,[3,6,7,11,13,14,16,582,18,179,2455,1822,1708]); +},2453,[3,6,7,11,13,14,16,582,18,179,2454,1935,868]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348579,7 +348514,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2455,[18,438]); +},2454,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348594,7 +348529,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2456,[2457]); +},2455,[2456]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348749,7 +348684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _propTypes.default.number }) }; -},2457,[3,270,6,7,11,13,14,16,18,582,566,434,588,438,179]); +},2456,[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 @@ -348773,7 +348708,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2458,[18,438]); +},2457,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348915,7 +348850,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e visible: true, startIndex: 0 }; -},2459,[3,6,7,11,13,14,16,582,436,2460,564,438,179,1980,2461]); +},2458,[3,6,7,11,13,14,16,582,436,2459,564,438,179,2007,2460]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349032,7 +348967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryThumbnail.defaultProps = { selected: false }; -},2460,[3,6,7,11,13,14,16,582,18,436,2461,588,564,2462,438,179]); +},2459,[3,6,7,11,13,14,16,582,18,436,2460,588,564,2461,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349058,7 +348993,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2461,[18,438]); +},2460,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -349070,7 +349005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic_not_available", "type": "png" }); -},2462,[1210]); +},2461,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349085,7 +349020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2463,[2464]); +},2462,[2463]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349223,7 +349158,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxLines: 1, color: _$$_REQUIRE(_dependencyMap[12]).colors.white }; -},2464,[3,6,7,11,13,14,16,582,18,1826,1777,179,438]); +},2463,[3,6,7,11,13,14,16,582,18,816,1811,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349351,7 +349286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigatorBaseScreen.propTypes = { navigation: _propTypes.default.object }; -},2465,[3,6,7,11,13,14,16,582,1995]); +},2464,[3,6,7,11,13,14,16,582,2019]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349611,7 +349546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssComponent.INTERVAL_ID = -1; RssComponent.INTERSTITIAL_TIMER = undefined; -},2466,[3,270,6,7,11,85,13,14,16,2467,2186,436,2109,1727,1729,2630,2236,2187,820,2114,819,2652,564,438,2223,179,2214,2465]); +},2465,[3,270,6,7,11,85,13,14,16,2466,2185,436,2108,1895,1897,2629,2235,2186,1870,2113,1869,2651,564,438,2222,179,2213,2464]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -349829,7 +349764,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2467,[3,16,2097,2187,1729,2235,2468,2568,2237,2589,1821,438,179,2243,1981,2621,2397,2624,2372,2626]); +},2466,[3,16,2096,2186,1897,2234,2467,2567,2236,2588,1934,438,179,2242,2008,2620,2396,2623,2371,2625]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350076,7 +350011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2468,[3,16,18,434,2187,1729,1777,2469,179,1709,2231,438,2471,2472,2506,2552,2237,2558,2560,2566]); +},2467,[3,16,18,434,2186,1897,1811,2468,179,819,2230,438,2470,2471,2505,2551,2236,2557,2559,2565]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350214,7 +350149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2469,[3,16,18,2228,1826,1777,588,179,1709,2470,438]); +},2468,[3,16,18,2227,816,1811,588,179,819,2469,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350293,7 +350228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 14 } }); -},2470,[18]); +},2469,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350408,7 +350343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return type.value === value; }).text; }; -},2471,[3,407,438]); +},2470,[3,407,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350423,7 +350358,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2472,[2473]); +},2471,[2472]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350546,7 +350481,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getParam: _propTypes.default.func.isRequired }) }; -},2473,[3,270,6,7,11,85,13,14,582,16,18,2474,179,1709,2231]); +},2472,[3,270,6,7,11,85,13,14,582,16,18,2473,179,819,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351105,7 +351040,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e EventBaseScreen.SORT_POPULARITY = 0; EventBaseScreen.SORT_DATE = 1; EventBaseScreen.SORT_NAME = 2; -},2474,[3,270,6,7,11,85,13,14,16,18,407,1954,1823,1826,1777,588,2231,438,2471,2475,1709,179,2489,2491,2493,2496]); +},2473,[3,270,6,7,11,85,13,14,16,18,407,1985,1936,816,1811,588,2230,438,2470,2474,819,179,2488,2490,2492,2495]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351120,7 +351055,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2475,[2476]); +},2474,[2475]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351191,7 +351126,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return out; } -},2476,[2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488]); +},2475,[2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351203,7 +351138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "2", "type": "png" }); -},2477,[1210]); +},2476,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351215,7 +351150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "3", "type": "png" }); -},2478,[1210]); +},2477,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351227,7 +351162,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "4", "type": "png" }); -},2479,[1210]); +},2478,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351239,7 +351174,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "5", "type": "png" }); -},2480,[1210]); +},2479,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351251,7 +351186,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "6", "type": "png" }); -},2481,[1210]); +},2480,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351263,7 +351198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "7", "type": "png" }); -},2482,[1210]); +},2481,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351275,7 +351210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "8", "type": "png" }); -},2483,[1210]); +},2482,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351287,7 +351222,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "10", "type": "png" }); -},2484,[1210]); +},2483,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351299,7 +351234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "14", "type": "png" }); -},2485,[1210]); +},2484,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351311,7 +351246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "15", "type": "png" }); -},2486,[1210]); +},2485,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351323,7 +351258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "76", "type": "png" }); -},2487,[1210]); +},2486,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -351335,7 +351270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "390", "type": "png" }); -},2488,[1210]); +},2487,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351618,7 +351553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enhanced: _propTypes.default.bool, portal: _propTypes.default.string.isRequired }; -},2489,[3,270,6,7,11,13,14,16,18,582,1276,2138,2103,1826,436,1777,438,179,2490,2043]); +},2488,[3,270,6,7,11,13,14,16,18,582,1326,2137,2102,816,436,1811,438,179,2489,2042]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351741,7 +351676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 3 } }); -},2490,[18,2471,438]); +},2489,[18,2470,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351756,7 +351691,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2491,[2492]); +},2490,[2491]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351822,7 +351757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e image: _propTypes.default.string, date: _propTypes.default.string }; -},2492,[3,582,16,18,1826,179]); +},2491,[3,582,16,18,816,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352069,7 +352004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e getItemById: _propTypes.default.func.isRequired, featuredEvents: _propTypes.default.arrayOf(_propTypes.default.number) }; -},2493,[3,270,6,7,11,13,14,16,582,18,434,407,2494,179,438,2471]); +},2492,[3,270,6,7,11,13,14,16,582,18,434,407,2493,179,438,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352184,7 +352119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onEventPress: _propTypes.default.func.isRequired }; -},2494,[3,6,7,11,13,14,16,18,1276,582,1826,2495,588,179,2092,438]); +},2493,[3,6,7,11,13,14,16,18,1326,582,816,2494,588,179,2091,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352246,7 +352181,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "flex-end" } }); -},2495,[18,438,2471]); +},2494,[18,438,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352261,7 +352196,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2496,[2497]); +},2495,[2496]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352882,7 +352817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } }; -},2497,[3,270,6,7,11,13,14,582,16,18,407,2351,1826,1777,588,2498,438,179,1709,2499,2500,1849,2505,1980,1870]); +},2496,[3,270,6,7,11,13,14,582,16,18,407,2350,816,1811,588,2497,438,179,819,2498,2499,1960,2504,2007,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352964,7 +352899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e LoadingMore.defaultProps = { visible: false }; -},2498,[3,6,7,11,13,14,16,582,179,1849]); +},2497,[3,6,7,11,13,14,16,582,179,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352991,7 +352926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 22 } }); -},2499,[18,438]); +},2498,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353006,7 +352941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2500,[2501]); +},2499,[2500]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353141,7 +353076,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e offsetY: OFFSET_Y, availableHeight: 0 }; -},2501,[3,4,6,7,11,13,14,582,16,2502,1709,179]); +},2500,[3,4,6,7,11,13,14,582,16,2501,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353565,7 +353500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: "transparent" } }); -},2502,[3,6,7,11,13,14,582,16,18,2503,2504,179,598]); +},2501,[3,6,7,11,13,14,582,16,18,2502,2503,179,597]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353751,7 +353686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: "#444" } }); -},2503,[3,6,7,11,13,14,582,16,18,2504,179]); +},2502,[3,6,7,11,13,14,582,16,18,2503,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353800,7 +353735,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; } -},2504,[18]); +},2503,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353998,7 +353933,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e latitudeKey: "latitude", longitudeKey: "longitude" }; -},2505,[3,6,7,11,13,14,582,16,824,179,438]); +},2504,[3,6,7,11,13,14,582,16,881,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354013,7 +353948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2506,[2507]); +},2505,[2506]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354528,7 +354463,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pass: "", portal: "" }; -},2507,[3,270,6,7,11,85,13,14,582,16,18,407,438,2471,179,2508,2520,2522,2523,2526,2531,2536,1709,1849,2231]); +},2506,[3,270,6,7,11,85,13,14,582,16,18,407,438,2470,179,2507,2519,2521,2522,2525,2530,2535,819,1960,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354543,7 +354478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2508,[2509]); +},2507,[2508]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354670,7 +354605,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e advanceFilters: [], buttons: [] }; -},2509,[3,6,7,11,13,14,16,582,18,179,2510,1816,2511,438,2518,1870]); +},2508,[3,6,7,11,13,14,16,582,18,179,2509,1929,2510,438,2517,1980]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354706,7 +354641,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() } }); -},2510,[18,2471]); +},2509,[18,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354721,7 +354656,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2511,[2512]); +},2510,[2511]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354846,7 +354781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e headerColor: _$$_REQUIRE(_dependencyMap[13]).colors.black, borderColor: _$$_REQUIRE(_dependencyMap[13]).colors.black }; -},2512,[3,6,7,11,13,14,16,18,582,1777,2513,179,2516,438]); +},2511,[3,6,7,11,13,14,16,18,582,1811,2512,179,2515,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354877,7 +354812,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } })); } -},2513,[3,22,33,16,2514,179,438]); +},2512,[3,22,33,16,2513,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355078,7 +355013,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e sectionContainerStyle: {}, renderAsFlatList: false }; -},2514,[3,4,22,6,7,11,13,14,16,18,2515,179]); +},2513,[3,4,22,6,7,11,13,14,16,18,2514,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355362,7 +355297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, renderChildrenCollapsed: true }; -},2515,[3,6,7,11,13,14,16,18,179]); +},2514,[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 @@ -355392,7 +355327,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flexDirection: "column" } }); -},2516,[18,2517]); +},2515,[18,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355406,7 +355341,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BORDER_RADIUS: 5, SEARCH_WIDTH: 200 }; -},2517,[]); +},2516,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355489,7 +355424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[11]).colors.black, textColor: _$$_REQUIRE(_dependencyMap[11]).colors.white }; -},2518,[3,6,7,11,13,14,16,18,582,179,2519,438]); +},2517,[3,6,7,11,13,14,16,18,582,179,2518,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355514,7 +355449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING } }); -},2519,[18,2517,438]); +},2518,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355615,7 +355550,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hint: _propTypes.default.string, defaultSearch: _propTypes.default.string }; -},2520,[3,6,7,11,13,14,16,582,18,2220,179,2521,438]); +},2519,[3,6,7,11,13,14,16,582,18,2219,179,2520,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355633,7 +355568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS } }); -},2521,[18,438,2517]); +},2520,[18,438,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355677,7 +355612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2522,[18,438,2517]); +},2521,[18,438,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355692,7 +355627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2523,[2524]); +},2522,[2523]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356227,7 +356162,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e useLocation: _propTypes.default.bool, onDisableSwitch: _propTypes.default.func }; -},2524,[3,6,7,11,13,14,270,4,582,16,18,407,2096,434,2113,1982,2220,438,1824,179,2525,2517,1980]); +},2523,[3,6,7,11,13,14,270,4,582,16,18,407,2095,434,2112,830,2219,438,1937,179,2524,2516,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356308,7 +356243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2525,[18,2517,438]); +},2524,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356323,7 +356258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2526,[2527]); +},2525,[2526]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356428,7 +356363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxValue: _propTypes.default.number.isRequired, defaultValue: _propTypes.default.number.isRequired }; -},2527,[3,6,7,11,13,14,2528,582,16,18,179,2530,438]); +},2526,[3,6,7,11,13,14,2527,582,16,18,179,2529,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -356515,7 +356450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var Slider = SliderWithRef; var _default = exports.default = Slider; -},2528,[3,4,16,18,2529,179]); +},2527,[3,4,16,18,2528,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -356529,7 +356464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var RNCSliderNativeComponent = (0, _reactNative.requireNativeComponent)('RNCSlider'); var _default = exports.default = RNCSliderNativeComponent; -},2529,[18]); +},2528,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356558,7 +356493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: "50%" } }); -},2530,[18,2517,438]); +},2529,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356573,7 +356508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2531,[2532]); +},2530,[2531]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356797,7 +356732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e selectedCategories: [], selectedLabels: [] }; -},2532,[3,22,33,16,18,582,1826,1982,179,2533,2535,2534]); +},2531,[3,22,33,16,18,582,816,830,179,2532,2534,2533]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356879,7 +356814,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e labels: _propTypes.default.array.isRequired, onChange: _propTypes.default.func.isRequired }; -},2533,[3,33,16,582,18,1826,179,2534,438]); +},2532,[3,33,16,582,18,816,179,2533,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356940,7 +356875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e width: 15 } }); -},2534,[18,2517,438]); +},2533,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357135,7 +357070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e multiSelect: _propTypes.default.bool, onChange: _propTypes.default.func }; -},2535,[3,33,22,16,18,582,2513,1777,1826,179,2534,1980]); +},2534,[3,33,22,16,18,582,2512,1811,816,179,2533,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357150,7 +357085,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2536,[2537]); +},2535,[2536]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357386,7 +357321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: String })) }; -},2537,[3,6,7,11,13,14,16,18,582,2538,1777,1982,1826,438,179,1980,2551]); +},2536,[3,6,7,11,13,14,16,18,582,2537,1811,830,816,438,179,2007,2550]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357540,7 +357475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RangePickerComponent; -},2538,[3,33,16,582,18,2539,1777,438,179]); +},2537,[3,33,16,582,18,2538,1811,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357750,7 +357685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DatePicker; -},2539,[3,33,16,582,18,1826,2540,1777,438,179]); +},2538,[3,33,16,582,18,816,2539,1811,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357809,7 +357744,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Picker; -},2540,[3,2541,582,16,179,1709]); +},2539,[3,2540,582,16,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357840,7 +357775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = _datetimepicker.default; -},2541,[2542,3,2550,2549]); +},2540,[2541,3,2549,2548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357992,7 +357927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e open: open, dismiss: dismiss }; -},2542,[3,33,270,31,2543,18,2546,2548,2549]); +},2541,[3,33,270,31,2542,18,2545,2547,2548]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358008,7 +357943,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; -},2543,[3,240,2544,2547,2546]); +},2542,[3,240,2543,2546,2545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358061,7 +357996,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; -},2544,[3,270,6,7,18,2545,2546]); +},2543,[3,270,6,7,18,2544,2545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358099,7 +358034,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'); } -},2545,[3,31]); +},2544,[3,31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358148,7 +358083,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'; -},2546,[]); +},2545,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358201,7 +358136,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; -},2547,[3,270,6,7,18,2545,2546]); +},2546,[3,270,6,7,18,2544,2545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358278,7 +358213,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."); } } -},2548,[3,2543,31,18,2546,2545]); +},2547,[3,2542,31,18,2545,2544]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358311,7 +358246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, date]; }; -},2549,[2546]); +},2548,[2545]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358370,7 +358305,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, [onChange, valueTimestamp, mode]); return null; } -},2550,[16,2548,2546,2542]); +},2549,[16,2547,2545,2541]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358416,7 +358351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[2]).colors.white } }); -},2551,[18,2517,438]); +},2550,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358431,7 +358366,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2552,[2553]); +},2551,[2552]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358521,7 +358456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2553,[3,6,7,11,85,13,14,16,436,179,2554,2471,2557,2231]); +},2552,[3,6,7,11,85,13,14,16,436,179,2553,2470,2556,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358536,7 +358471,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2554,[2555]); +},2553,[2554]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358750,7 +358685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, itemKey: _propTypes.default.string }; -},2555,[3,270,6,7,11,13,14,582,16,18,1826,1777,564,179,2556,1709,1849,438,1980]); +},2554,[3,270,6,7,11,13,14,582,16,18,816,1811,564,179,2555,819,1960,438,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358789,7 +358724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2556,[18,438]); +},2555,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358804,7 +358739,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2557,[2489]); +},2556,[2488]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359275,7 +359210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2558,[3,270,6,7,11,85,13,14,16,18,407,436,1823,2138,1826,2220,1777,588,2231,438,2471,179,1709,1849,2559,1816,2043]); +},2557,[3,270,6,7,11,85,13,14,16,18,407,436,1936,2137,816,2219,1811,588,2230,438,2470,179,819,1960,2558,1929,2042]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359335,7 +359270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e top: 25 } }); -},2559,[18,2471,438]); +},2558,[18,2470,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359350,7 +359285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2560,[2561]); +},2559,[2560]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359667,7 +359602,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[21]).NavigationBaseScreen); -},2561,[3,270,6,7,11,85,13,14,16,18,407,436,1826,1777,588,2471,179,2562,438,1709,2565,2231]); +},2560,[3,270,6,7,11,85,13,14,16,18,407,436,816,1811,588,2470,179,2561,438,819,2564,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359682,7 +359617,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2562,[2563]); +},2561,[2562]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359945,7 +359880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onEmptyPress: _propTypes.default.func, onItemPress: _propTypes.default.func }; -},2563,[3,270,6,7,11,13,14,582,16,18,1826,1777,564,179,2564,1849,1709,438,1980]); +},2562,[3,270,6,7,11,13,14,582,16,18,816,1811,564,179,2563,1960,819,438,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359984,7 +359919,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2564,[18,438]); +},2563,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360014,7 +359949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2565,[18,2471]); +},2564,[18,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360029,7 +359964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2566,[2567]); +},2565,[2566]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360097,7 +360032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2567,[3,6,7,11,85,13,14,16,18,2231,179,1709,1822,2471]); +},2566,[3,6,7,11,85,13,14,16,18,2230,179,819,1935,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360214,7 +360149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2568,[3,16,1729,1777,2469,179,438,2471,2569,2578,2581,2585,1709,2237,2231,2587,2588]); +},2567,[3,16,1897,1811,2468,179,438,2470,2568,2577,2580,2584,819,2236,2230,2586,2587]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360229,7 +360164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2569,[2570]); +},2568,[2569]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360397,7 +360332,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2570,[3,6,7,11,85,13,14,16,2539,179,2508,2471,438,2571,2574,2577,2520,2523,2231]); +},2569,[3,6,7,11,85,13,14,16,2538,179,2507,2470,438,2570,2573,2576,2519,2522,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360412,7 +360347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2571,[2572]); +},2570,[2571]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360536,7 +360471,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textColor: _propTypes.default.string, active: _propTypes.default.string.isRequired }; -},2572,[3,6,7,11,13,14,16,18,582,179,2573,2517]); +},2571,[3,6,7,11,13,14,16,18,582,179,2572,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360557,7 +360492,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH } }); -},2573,[18,2517]); +},2572,[18,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360572,7 +360507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2574,[2575]); +},2573,[2574]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360698,7 +360633,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hintMin: _propTypes.default.string, hintMax: _propTypes.default.string }; -},2575,[3,6,7,11,13,14,16,582,18,2220,179,2576]); +},2574,[3,6,7,11,13,14,16,582,18,2219,179,2575]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360729,7 +360664,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS } }); -},2576,[18,2517,438]); +},2575,[18,2516,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360777,7 +360712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS } }); -},2577,[18,438,2517]); +},2576,[18,438,2516]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360792,7 +360727,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2578,[2579]); +},2577,[2578]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360937,7 +360872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[15]).NavigationBaseScreen); -},2579,[3,6,7,11,85,13,14,16,18,436,1826,2471,179,2562,2580,2231]); +},2578,[3,6,7,11,85,13,14,16,18,436,816,2470,179,2561,2579,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360963,7 +360898,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2580,[18,438]); +},2579,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360978,7 +360913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2581,[2582]); +},2580,[2581]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361052,7 +360987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2582,[3,6,7,11,85,13,14,16,436,179,2554,2471,2583,2231]); +},2581,[3,6,7,11,85,13,14,16,436,179,2553,2470,2582,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361217,7 +361152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemPress: _propTypes.default.func, color: _propTypes.default.string.isRequired }; -},2583,[3,6,7,11,13,14,16,582,18,567,1826,2138,436,1777,179,2584,2471,2043,438]); +},2582,[3,6,7,11,13,14,16,582,18,567,816,2137,436,1811,179,2583,2470,2042,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361269,7 +361204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginEnd: 5 } }); -},2584,[18,438]); +},2583,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361284,7 +361219,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2585,[2586]); +},2584,[2585]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361388,7 +361323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2586,[3,6,7,11,85,13,14,16,407,2231,179,2496,2471,2583]); +},2585,[3,6,7,11,85,13,14,16,407,2230,179,2495,2470,2582]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -361400,7 +361335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "monster_logo", "type": "png" }); -},2587,[1210]); +},2586,[1260]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361460,7 +361395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[8]).NavigationBaseScreen); -},2588,[3,6,7,11,85,13,14,16,2231,179,1822,2471]); +},2587,[3,6,7,11,85,13,14,16,2230,179,1935,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361803,7 +361738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2589,[3,4,16,18,2236,820,2037,436,434,2187,1729,2160,2298,2099,179,2590,2108,2601,2603,2605,2612,438,1709,564,2239,2091,1176,2614]); +},2588,[3,4,16,18,2235,1870,2036,436,434,2186,1897,2159,2297,2098,179,2589,2107,2600,2602,2604,2611,438,819,564,2238,2090,1226,2613]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361818,7 +361753,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2590,[2591]); +},2589,[2590]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362266,8 +362201,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: { width: "100%", height: (0, _$$_REQUIRE(_dependencyMap[25]).HEADER_HEIGHT)() - }, - autoplay: true + } }) }); } @@ -362300,7 +362234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isHome: false, isLive: false }; -},2591,[3,270,6,7,11,85,13,14,582,16,18,820,2592,2109,436,1727,434,2097,2151,564,1039,438,1857,179,1709,2593,2594]); +},2590,[3,270,6,7,11,85,13,14,582,16,18,1870,2591,2108,436,1895,434,2096,2150,564,1089,438,1968,179,819,2592,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362348,7 +362282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2592,[3,270,6,7,2109]); +},2591,[3,270,6,7,2108]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362397,7 +362331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2593,[18,438]); +},2592,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362412,7 +362346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2594,[2595]); +},2593,[2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363045,7 +362979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var params = navigation.state.params; return params; }; -},2595,[3,270,6,7,11,85,13,14,582,16,18,820,436,1954,1957,1724,434,2097,824,1729,2351,1826,2596,2112,564,2109,815,179,2599,1709,438,2600,2099,1849,1824,2231]); +},2594,[3,270,6,7,11,85,13,14,582,16,18,1870,436,1985,1988,1893,434,2096,881,1897,2350,816,2595,2111,564,2108,814,179,2598,819,438,2599,2098,1960,1937,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363300,7 +363234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2596,[3,6,7,11,13,14,16,18,1773,2597,2156,2091,1857,179,438,1709,2135,1039]); +},2595,[3,6,7,11,13,14,16,18,1924,2596,2155,2090,1968,179,438,819,2134,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363405,7 +363339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2597,[3,6,7,11,13,14,16,438,2598,1039,179]); +},2596,[3,6,7,11,13,14,16,438,2597,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363797,7 +363731,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2598,[3,6,7,11,13,14,582,16,18,2038,436,1826,2085,2102,2137,2091,564,1709,438,2042,179,2082,2141,1822,1708,1039]); +},2597,[3,6,7,11,13,14,582,16,18,2037,436,816,2084,2101,2136,2090,564,819,438,2041,179,2081,2140,1935,868,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363891,7 +363825,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: adsComponent }); }; -},2599,[3,33,4,16,18,1954,179]); +},2598,[3,33,4,16,18,1985,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363909,7 +363843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingVertical: 10 } }); -},2600,[18,2091]); +},2599,[18,2090]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364319,7 +364253,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeScreen.propTypes = Object.assign({ item: _propTypes.default.object }, _$$_REQUIRE(_dependencyMap[27]).RssBaseScreen.propTypes); -},2601,[3,270,6,7,11,85,13,14,582,16,18,820,2592,2109,2097,1996,1994,2228,1826,1777,179,2602,564,438,2160,2392,2099,2594]); +},2600,[3,270,6,7,11,85,13,14,582,16,18,1870,2591,2108,2096,2020,2018,2227,816,1811,179,2601,564,438,2159,2391,2098,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364366,7 +364300,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 3 } }); -},2602,[18,2091,438]); +},2601,[18,2090,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364381,7 +364315,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2603,[2604]); +},2602,[2603]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364499,7 +364433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).RssBaseScreen); -},2604,[3,270,6,7,11,85,13,14,16,18,436,564,179,2594]); +},2603,[3,270,6,7,11,85,13,14,16,18,436,564,179,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364514,7 +364448,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2605,[2606]); +},2604,[2605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364693,7 +364627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[17]).RssBaseScreen); -},2606,[3,270,6,7,11,13,14,16,18,2109,434,2607,438,1709,179,2611,2099,2594]); +},2605,[3,270,6,7,11,13,14,16,18,2108,434,2606,438,819,179,2610,2098,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364992,7 +364926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RssSearchAdvanceModal; -},2607,[3,4,270,33,16,582,1826,2538,2608,2610,2109,1982,438,179,1709]); +},2606,[3,4,270,33,16,582,816,2537,2607,2609,2108,830,438,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365053,7 +364987,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDown.defaultProps = {}; var _default = exports.default = DropDown; -},2608,[3,4,16,582,2378,2609,179]); +},2607,[3,4,16,582,2377,2608,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365138,7 +365072,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownButton; -},2609,[3,16,582,18,1777,438,179,1709,2228]); +},2608,[3,16,582,18,1811,438,179,819,2227]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365175,7 +365109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2610,[18,438]); +},2609,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365190,7 +365124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2611,[2354]); +},2610,[2353]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365205,7 +365139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2612,[2613]); +},2611,[2612]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365242,7 +365176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},2613,[3,6,7,11,13,14,16]); +},2612,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365257,7 +365191,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2614,[2615]); +},2613,[2614]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365437,7 +365371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemPress: _propTypes.default.func.isRequired, drawerHeader: _propTypes.default.node }; -},2615,[3,33,16,582,18,2616,436,2097,564,179,2214,1709,438,1176]); +},2614,[3,33,16,582,18,2615,436,2096,564,179,2213,819,438,1226]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365652,7 +365586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelComponent; -},2616,[3,4,16,18,582,2096,2617,2618,2619,2620,438,2091,1709,179]); +},2615,[3,4,16,18,582,2095,2616,2617,2618,2619,438,2090,819,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365714,7 +365648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelChevronComponent; -},2617,[3,16,582,1777,2228,179,1709,438]); +},2616,[3,16,582,1811,2227,179,819,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365790,7 +365724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelIconComponent; -},2618,[3,582,16,18,1776,2091,1709,179,438]); +},2617,[3,582,16,18,1927,2090,819,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365885,7 +365819,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelTextComponent; -},2619,[3,33,16,582,436,1826,2037,564,179,1709]); +},2618,[3,33,16,582,436,816,2036,564,179,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365902,7 +365836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2620,[18]); +},2619,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365917,7 +365851,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2621,[2622]); +},2620,[2621]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366073,7 +366007,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TutorialScreen.propTypes = { navigation: _propTypes.default.object }; -},2622,[3,6,7,11,85,13,14,16,18,582,1826,2096,2288,588,434,1729,2231,179,2623,1849]); +},2621,[3,6,7,11,85,13,14,16,18,582,816,2095,2287,588,434,1897,2230,179,2622,1960]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366115,7 +366049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2623,[18,438]); +},2622,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366130,7 +366064,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2624,[2625]); +},2623,[2624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366511,7 +366445,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2625,[3,270,6,7,11,85,13,14,16,18,582,434,820,566,2109,2374,2382,2219,2091,1823,438,2231,2001,179,2227,1824,1709,1980]); +},2624,[3,270,6,7,11,85,13,14,16,18,582,434,1870,566,2108,2373,2381,2218,2090,1936,438,2230,2025,179,2226,1937,819,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366526,7 +366460,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2626,[2627]); +},2625,[2626]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367042,7 +366976,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) }; -},2627,[3,270,6,7,11,85,13,14,582,16,18,436,1954,2186,1957,1724,434,824,1729,1988,1983,2288,2628,2634,2643,2651,2231,564,2112,1700,438,2099,179,2599,2160,1709]); +},2626,[3,270,6,7,11,85,13,14,582,16,18,436,1985,2185,1988,1893,434,881,1897,2012,856,2287,2627,2633,2642,2650,2230,564,2111,1875,438,2098,179,2598,2159,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367751,14 +367685,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_onLoadStart", value: function _onLoadStart() { + var _this$viafouraRef; + var _this$props5 = this.props, onLoadStart = _this$props5.onLoadStart, index = _this$props5.index; this.pageLoaded = false; - - if (this.viafouraRef) { - this.viafouraRef.hide(); - } + (_this$viafouraRef = this.viafouraRef) == null ? undefined : _this$viafouraRef.hide(); if (onLoadStart) { onLoadStart(index); @@ -367947,7 +367880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasColumnizer: false, insideAdModels: [] }; -},2628,[3,270,6,7,11,13,14,582,16,1855,1856,436,1957,1724,1703,824,2187,1708,2046,1953,2629,2080,564,1820,1709,438,1974,1819,179,1726,2632,1704,2104,1824,1849,1817]); +},2627,[3,270,6,7,11,13,14,582,16,1966,1967,436,1988,1893,1878,881,2186,868,2045,1984,2628,2079,564,1933,819,438,2001,1932,179,880,2631,1879,2103,1937,1960,1930]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368084,7 +368017,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2629,[3,270,6,7,11,85,13,14,582,16,436,2194,630,1726,564,179,1817,438,1828,2630,1039]); +},2628,[3,270,6,7,11,85,13,14,582,16,436,2193,629,880,564,179,1930,438,1940,2629,1089]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368224,7 +368157,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2630,[3,270,6,7,11,85,13,14,582,16,2114,436,434,2097,1726,564,2631,1039,179]); +},2629,[3,270,6,7,11,85,13,14,582,16,2113,436,434,2096,880,564,2630,1089,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368296,7 +368229,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).BaseOptionspage); -},2631,[3,6,7,11,85,13,14,1726,438,2215]); +},2630,[3,6,7,11,85,13,14,880,438,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368826,7 +368759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isAutoHeight: false, autoHeightWebViewProps: {} }; -},2632,[3,4,270,6,7,11,13,14,582,16,18,1729,1983,436,819,1708,1724,1725,1703,2633,564,1704,1726,2116,438,1828,179,1817,2214,1822]); +},2631,[3,4,270,6,7,11,13,14,582,16,18,1897,856,436,1869,868,1893,1894,1878,2632,564,1879,880,2115,438,1940,179,1930,2213,1935]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368853,7 +368786,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent } }); -},2633,[18,438]); +},2632,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369006,7 +368939,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e item: _propTypes.default.object, onBylinePress: _propTypes.default.func }; -},2634,[3,6,7,11,13,14,582,16,18,2187,2628,2635,179,1816,1709,438,2636,2091,2638]); +},2633,[3,6,7,11,13,14,582,16,18,2186,2627,2634,179,1929,819,438,2635,2090,2637]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369028,7 +368961,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minHeight: 0 } }); -},2635,[18]); +},2634,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369277,7 +369210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasSquaredImage: _propTypes.default.bool, rootStyle: _propTypes.default.any }; -},2636,[3,6,7,11,13,14,16,18,582,1826,588,2097,2088,1709,438,179,2637]); +},2635,[3,6,7,11,13,14,16,18,582,816,588,2096,2087,819,438,179,2636]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369328,7 +369261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2637,[18]); +},2636,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369343,7 +369276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2638,[2639]); +},2637,[2638]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369721,7 +369654,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, loadUrlInArticle: _propTypes.default.bool }; -},2639,[3,270,6,7,11,13,14,582,16,567,436,1724,1776,2640,2044,564,1709,179,2642,1777,438]); +},2638,[3,270,6,7,11,13,14,582,16,567,436,1893,1927,2639,2043,564,819,179,2641,1811,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370126,7 +370059,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e btnOutRange: _$$_REQUIRE(_dependencyMap[10]).colors.black, btnOutRangeTxt: _$$_REQUIRE(_dependencyMap[10]).colors.white }; -},2640,[3,6,7,11,13,14,582,16,18,2641,438,179]); +},2639,[3,6,7,11,13,14,582,16,18,2640,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370249,7 +370182,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startDegree: 0, endDegree: 720 }; -},2641,[3,6,7,11,13,14,16,18,582,179]); +},2640,[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 @@ -370264,7 +370197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2642,[2043]); +},2641,[2042]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370277,26 +370210,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _articleContentBase = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _articleContentBase = _$$_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 getHeaderHeight = function getHeaderHeight() { - var style = _$$_REQUIRE(_dependencyMap[10]).Css.getStyleObjByCssClasses(["article-header"]); + var style = _$$_REQUIRE(_dependencyMap[11]).Css.getStyleObjByCssClasses(["article-header"]); - return style.height || (0, _$$_REQUIRE(_dependencyMap[11]).HEADER_HEIGHT)(); + return style.height || (0, _$$_REQUIRE(_dependencyMap[12]).HEADER_HEIGHT)(); }; var ArticleContent = function (_ArticleContentBase) { @@ -370307,12 +370242,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this = _callSuper(this, ArticleContent, [props, { parallaxHeight: props.item.image ? getHeaderHeight() : 0 }]); + _this.onHeaderRef = _this._onHeaderRef.bind(_this); _this.getHeader = _this._getHeader.bind(_this); return _this; } (0, _inherits2.default)(ArticleContent, _ArticleContentBase); return (0, _createClass2.default)(ArticleContent, [{ + key: "_onHeaderRef", + value: function _onHeaderRef(ref) { + this.headerRef = ref; + } + }, { key: "_getHeader", value: function _getHeader() { var _this2 = this; @@ -370320,7 +370261,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this$props = this.props, item = _this$props.item, width = _this$props.width; - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).ArticleContentHeader, { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ArticleContentHeader, { + ref: this.onHeaderRef, item: item, onImagePress: this.onPress, onImageError: function onImageError() { @@ -370332,11 +370274,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: getHeaderHeight() }); } + }, { + key: "updateCurrent", + value: function updateCurrent(currentIndex) { + var _this$headerRef; + + (0, _get2.default)((0, _getPrototypeOf2.default)(ArticleContent.prototype), "updateCurrent", this).call(this, currentIndex); + (_this$headerRef = this.headerRef) == null ? undefined : _this$headerRef.updateActive(this.isCurrentPage); + } }, { key: "render", value: function render() { - var startDegree = _$$_REQUIRE(_dependencyMap[14]).PlatformUtils.isRTL() ? 270 : 180; - var endDegree = _$$_REQUIRE(_dependencyMap[14]).PlatformUtils.isRTL() ? 0 : 270; + var startDegree = _$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isRTL() ? 270 : 180; + var endDegree = _$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isRTL() ? 0 : 270; var _this$props2 = this.props, item = _this$props2.item, width = _this$props2.width, @@ -370347,30 +370297,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRssIndex = global.getRssIndex(), floatingButtonColor = _global$getRssIndex.floatingButtonColor; - var backgroundColor = _$$_REQUIRE(_dependencyMap[10]).Css.getDefaultBackgroundColor(); + var backgroundColor = _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultBackgroundColor(); - return (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { style: { flex: 1 }, - children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { classes: ["article-container"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_$$_REQUIRE(_dependencyMap[15]).ParallaxScroll, { + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_$$_REQUIRE(_dependencyMap[16]).ParallaxScroll, { onLayout: this.onScrollLayout, onScroll: this.onScroll, width: width, parallaxHeight: parallaxHeight, renderParallaxBackground: this.getHeader, - children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[16]).ArticleContentHeadline, { + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[17]).ArticleContentHeadline, { date: item.date, title: item.title, kicker: item.kicker, byline: item.byline, renderTopBanner: this.getTopBanner, onBylinePress: this.onBylinePress - }), (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Css, { + }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { classes: ["article-body"], - children: (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { style: { flexDirection: "column", backgroundColor: backgroundColor @@ -370379,7 +370329,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) })] }) - }), (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[17]).CircularFloatingActionMenu, { + }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[18]).CircularFloatingActionMenu, { style: { bottom: bottom, justifyContent: "flex-end" @@ -370397,35 +370347,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }]); }(_articleContentBase.default); - ArticleContent.propTypes = { + ArticleContent.propTypes = Object.assign({ item: _propTypes.default.object, width: _propTypes.default.number, bottom: _propTypes.default.number - }; + }, _articleContentBase.default.propTypes); var _default = exports.default = ArticleContent; -},2643,[3,6,7,11,13,14,582,16,18,2628,1709,2593,179,2644,438,2646,2648,2638]); +},2642,[3,6,7,11,85,13,14,582,16,18,2627,819,2592,179,2643,438,2645,2647,2637]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.ArticleContentHeader = ArticleContentHeader; + exports.ArticleContentHeader = undefined; - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _iconGallery = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _dailymotionVideoPlayerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _dailymotionVideoPlayerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _iconGallery = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); 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); } @@ -370443,27 +370395,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRssIndex = global.getRssIndex(), supportColor = _global$getRssIndex.supportColor; - var overlayBgColor = hasImage || hasVideo ? _$$_REQUIRE(_dependencyMap[9]).colors.transparent600 : supportColor; + var overlayBgColor = hasImage || hasVideo ? _$$_REQUIRE(_dependencyMap[10]).colors.transparent600 : supportColor; var hideIcon = hasVideo && gallery && gallery.length === 1; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_$$_REQUIRE(_dependencyMap[10]).Fragment, { - children: [galleryItem ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_$$_REQUIRE(_dependencyMap[11]).Fragment, { + children: [galleryItem ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-header-image-description"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[12]).styles.captionContainer, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[13]).styles.captionContainer, { backgroundColor: overlayBgColor }], - children: galleryItem && galleryItem.caption ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + children: galleryItem && galleryItem.caption ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-header-image-caption"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_fontText.default, { numberOfLines: 2, - style: _$$_REQUIRE(_dependencyMap[12]).styles.caption, + style: _$$_REQUIRE(_dependencyMap[13]).styles.caption, children: galleryItem.caption }) }) : null }) - }) : null, !hideIcon ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + }) : null, !hideIcon ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-fixed-header"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_iconGallery.default, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_iconGallery.default, { parentStyle: { position: "absolute", height: 40, @@ -370478,19 +370430,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function HeaderImage(props) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-header-image"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_blurImageComponent.default, Object.assign({}, props)) + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_blurImageComponent.default, Object.assign({}, props)) }); } - function ArticleContentHeader(props) { + var ArticleContentHeader = exports.ArticleContentHeader = (0, _react.forwardRef)(function (props, ref) { var item = props.item, onRendered = props.onRendered, onImagePress = props.onImagePress, onImageError = props.onImageError, width = props.width, - height = props.height; + height = props.height, + isCurrentPage = props.isCurrentPage; var image = item.image, gallery = item.gallery; @@ -370499,37 +370452,54 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var backgroundColor = _styleUtils.default.fixColorForDarkTheme(articleBgColor); - var hasVideo = (0, _$$_REQUIRE(_dependencyMap[13]).galleryHasDailymotionVideo)(gallery); + var hasVideo = (0, _$$_REQUIRE(_dependencyMap[14]).galleryHasDailymotionVideo)(gallery); var hasImage = !hasVideo && !!image; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + + var _useState = (0, _react.useState)(isCurrentPage), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + isActive = _useState2[0], + setIsActive = _useState2[1]; + + var updateActive = function updateActive(active) { + if (active !== isActive) { + setIsActive(active); + } + }; + + (0, _react.useImperativeHandle)(ref, function () { + return { + updateActive: updateActive + }; + }); + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-header"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[12]).styles.container, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[13]).styles.container, { backgroundColor: backgroundColor }], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).Css, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { classes: ["article-header-no-image"], - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { - children: [hasVideo ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + children: [hasVideo && isActive ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { style: { width: width, height: height }, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_dailymotionVideoPlayerComponent.default, { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_dailymotionVideoPlayerComponent.default, { video: gallery[0], style: { width: "100%", flex: 1 } }) - }) : null, hasImage ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(HeaderImage, { + }) : null, hasImage ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(HeaderImage, { width: width, height: height, onRendered: onRendered, onImagePress: onImagePress, onImageError: onImageError, image: image - }) : null, (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(ArticleHeaderOverlay, { + }) : null, (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(ArticleHeaderOverlay, { item: item, hasImage: hasImage, hasVideo: hasVideo @@ -370538,8 +370508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) }); - } - + }); ArticleContentHeader.propTypes = { width: _propTypes.default.number, height: _propTypes.default.number, @@ -370549,9 +370518,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onRendered: _propTypes.default.func, onImagePress: _propTypes.default.func, - onImageError: _propTypes.default.func + onImageError: _propTypes.default.func, + isCurrentPage: _propTypes.default.bool }; -},2644,[3,16,18,582,1826,2103,2080,2152,2187,438,179,1709,2645,1857]); +},2643,[3,33,582,16,18,2186,2102,816,2151,2079,438,179,819,2644,1968]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370577,7 +370547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 10 } }); -},2645,[18,438]); +},2644,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370592,7 +370562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2646,[2647]); +},2645,[2646]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370693,7 +370663,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderParallaxBackground: null, parallaxBackgroundScrollSpeed: 2 }; -},2647,[3,4,16,18,582,179,1816,438]); +},2646,[3,4,16,18,582,179,1929,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370708,7 +370678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2648,[2649]); +},2647,[2648]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370816,7 +370786,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleContentHeadline.defaultProps = { date: "" }; -},2649,[3,582,16,18,2187,1826,1709,179,2650]); +},2648,[3,582,16,18,2186,816,819,179,2649]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370852,7 +370822,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingHorizontal: 4 } }); -},2650,[18]); +},2649,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370875,7 +370845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2651,[18]); +},2650,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370995,7 +370965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = CustomEmbedWebView; -},2652,[3,33,4,582,16,18,436,434,2192,1974,1708,564,179,1709,2653,1828,438]); +},2651,[3,33,4,582,16,18,436,434,2191,2001,868,564,179,819,2652,1940,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371307,7 +371277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e htmlContentId: "", disableStartAutoHeightEvaluation: false }; -},2653,[3,4,6,7,11,13,14,582,16,1819,179,1822]); +},2652,[3,4,6,7,11,13,14,582,16,1932,179,1935]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371456,7 +371426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NativoLandingPageScreen.propTypes = { navigation: _propTypes.default.object.isRequired }; -},2654,[3,6,7,11,13,14,582,16,18,824,2231,179,1816]); +},2653,[3,6,7,11,13,14,582,16,18,881,2230,179,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371539,7 +371509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2655,[3,6,7,11,13,14,16,407,2656,2231,438,179]); +},2654,[3,6,7,11,13,14,16,407,2655,2230,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371626,7 +371596,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) : null] }); } -},2656,[3,33,16,18,2236,436,434,1708,438,564,1709,179,1822,1828]); +},2655,[3,33,16,18,2235,436,434,868,438,564,819,179,1935,1940]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371712,7 +371682,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2657,[3,6,7,11,13,14,16,406,407,2656,2231,438,179]); +},2656,[3,6,7,11,13,14,16,406,407,2655,2230,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371950,7 +371920,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[25]).NavigationBaseScreen); -},2658,[3,270,6,7,11,85,13,14,16,816,820,2109,2018,436,819,1726,2019,1729,2656,438,564,1824,179,1849,1831,2231]); +},2657,[3,270,6,7,11,85,13,14,16,1867,1870,2108,1727,436,1869,880,1728,1897,2655,438,564,1937,179,1960,1943,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372091,7 +372061,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SelectionScreen.propTypes = { navigation: _propTypes.default.object }; -},2659,[3,270,6,7,11,85,13,14,16,582,2656,2231,438,179]); +},2658,[3,270,6,7,11,85,13,14,16,582,2655,2230,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372167,7 +372137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[12]).NavigationBaseScreen); -},2660,[3,6,7,11,13,14,16,18,1826,1777,1709,179,2231]); +},2659,[3,6,7,11,13,14,16,18,816,1811,819,179,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372489,7 +372459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UpdaterScreen.defaultProps = { manualRestartContext: global.__DEV__ }; -},2661,[3,270,6,7,11,85,13,14,582,16,18,407,434,630,823,566,2228,1826,2662,438,579,1995,2231,1709,179,1849,2243]); +},2660,[3,270,6,7,11,85,13,14,582,16,18,407,434,629,1873,566,2227,816,2661,438,579,2019,2230,819,179,1960,2242]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372526,7 +372496,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2662,[18]); +},2661,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372541,7 +372511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2663,[2664]); +},2662,[2663]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373182,7 +373152,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[35]).NavigationBaseScreen); -},2664,[3,270,6,7,11,85,13,14,16,2665,816,820,2257,436,819,2194,1727,2233,1707,823,566,2019,1729,1713,815,438,579,2026,2223,564,407,1748,2368,179,2243,2231]); +},2663,[3,270,6,7,11,85,13,14,16,2664,1867,1870,2256,436,1869,2193,1895,2232,1882,1873,566,1728,1897,817,814,438,579,1854,2222,564,407,866,2367,179,2242,2230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -373194,7 +373164,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.SplashScreen; -},2665,[18]); +},2664,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373379,7 +373349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RootBase.propTypes = { children: _propTypes.default.any }; -},2666,[3,4,582,16,18,434,824,1729,2667,1975,2668,1713,2214,438,2188,1824,815,1866,1995,1999,179,1709,2669]); +},2665,[3,4,582,16,18,434,881,1897,2666,2002,2667,817,2213,438,2187,1937,814,1976,2019,2023,179,819,2668]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373563,7 +373533,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DebugOverlay; -},2667,[3,22,33,582,16,18,438,179,2214,1713,1816,2160]); +},2666,[3,22,33,582,16,18,438,179,2213,817,1929,2159]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373712,7 +373682,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpen: _propTypes.default.func, onClose: _propTypes.default.func }; -},2668,[3,6,7,11,13,14,582,16,1724,179,2632]); +},2667,[3,6,7,11,13,14,582,16,1893,179,2631]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373797,7 +373767,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); }; -},2669,[3,33,4,16,18,179]); +},2668,[3,33,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373812,6 +373782,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2670,[2225]); +},2669,[2224]); __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 31b2c84..e388deb 100644 --- a/src/main/assets/packages.txt +++ b/src/main/assets/packages.txt @@ -10,7 +10,6 @@ com.prebidlibrary.RNPrebidPackage com.oblador.vectoricons.VectorIconsPackage com.reactcommunity.rndatetimepicker.RNDateTimePickerPackage com.reactnativecommunity.asyncstorage.AsyncStoragePackage -com.reactnativecommunity.imageeditor.ImageEditorPackage com.reactnativecommunity.netinfo.NetInfoPackage com.reactnativecommunity.slider.ReactSliderPackage com.reactnativecommunity.cookies.CookieManagerPackage @@ -37,7 +36,7 @@ com.airbnb.android.react.maps.MapsPackage com.matejdr.matheranalytics.MatherAnalyticsPackage de.bonify.reactnativematomo.MatomoPackage net.nativo.reactsdk.RNNativoSdkPackage -com.geektime.rnonesignalandroid.ReactNativeOneSignalPackage +com.onesignal.rnonesignalandroid.ReactNativeOneSignalPackage com.reactnativepagerview.PagerViewPackage com.library.RCTPdfView io.amarcruz.photoview.PhotoViewPackage