diff --git a/README.md b/README.md index 29e87d3..45e0657 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ You must use git to download the sdk from [repository](https://pubgit.newsmemory 1. Inside root folder run the following command: ```sh -git clone --depth 1 --branch 3.18.15 https://pubgit.newsmemory.com/tecnavia/newsmemory-android-sdk.git +git clone --depth 1 --branch 3.18.16 https://pubgit.newsmemory.com/tecnavia/newsmemory-android-sdk.git ``` 2. if you already has the module you could update to another release by the following commands ```sh cd newsmemory-android-sdk -git checkout tags/3.18.15 +git checkout tags/3.18.16 ``` ## Installation diff --git a/build.gradle b/build.gradle index 8f51342..beaca5a 100644 --- a/build.gradle +++ b/build.gradle @@ -223,7 +223,7 @@ publishing { tareactnativetecnaviautils(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-tecnavia-utils' - version '1.3.1' + version '1.3.2' artifact("$libsDirName/react-native-tecnavia-utils-release.aar") } @@ -335,7 +335,7 @@ publishing { tatecnaviareactnativewebanalytics(MavenPublication) { groupId 'tecnavia' artifactId 'tecnavia_react-native-web-analytics' - version '1.0.2' + version '1.1.1' artifact("$libsDirName/tecnavia_react-native-web-analytics-release.aar") } @@ -470,7 +470,7 @@ dependencies { implementation "tecnavia:react-native-splash-screen:3.2.0" implementation "tecnavia:react-native-sqlite-storage:3.3.10" implementation "tecnavia:react-native-svg:15.7.1" - implementation "tecnavia:react-native-tecnavia-utils:1.3.1" + implementation "tecnavia:react-native-tecnavia-utils:1.3.2" implementation "tecnavia:react-native-text-size:3.0.0" implementation "tecnavia:react-native-tts:4.1.1" implementation "tecnavia:react-native-uuid-generator:6.1.1" @@ -486,7 +486,7 @@ dependencies { implementation "tecnavia:tecnavia_react-native-navigation-bar-color:2.0.2" implementation "tecnavia:tecnavia_react-native-pdf:5.1.8" implementation "tecnavia:tecnavia_react-native-print:0.6.1" - implementation "tecnavia:tecnavia_react-native-web-analytics:1.0.2" + implementation "tecnavia:tecnavia_react-native-web-analytics:1.1.1" implementation "tecnavia:tecnavia_react-native-zip-archive:5.2.0" api "tecnavia:react-native:0.70.15" implementation "tecnavia:android-jsc:1.0.0" diff --git a/gradle.properties b/gradle.properties index 4ea7cf8..a7488d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ android.useAndroidX=true APP_NAME=Android SDK -APP_VERSION_NAME=3.18.15 -APP_VERSION_CODE=1745333985376 +APP_VERSION_NAME=3.18.16 +APP_VERSION_CODE=1746431572918 ANDROID_APP_ID=com.tecnaviaapplication IS_ADDON=true diff --git a/libs/react-native-tecnavia-utils-release.aar b/libs/react-native-tecnavia-utils-release.aar index 0c13259..598bbd6 100644 Binary files a/libs/react-native-tecnavia-utils-release.aar and b/libs/react-native-tecnavia-utils-release.aar differ diff --git a/libs/tecnavia_react-native-web-analytics-release.aar b/libs/tecnavia_react-native-web-analytics-release.aar index 37c200f..adcee7c 100644 Binary files a/libs/tecnavia_react-native-web-analytics-release.aar and b/libs/tecnavia_react-native-web-analytics-release.aar differ diff --git a/src/main/assets/index.android.bundle b/src/main/assets/index.android.bundle index 0efbbe8..24aba60 100644 --- a/src/main/assets/index.android.bundle +++ b/src/main/assets/index.android.bundle @@ -48274,10 +48274,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var speedInKbps; var _yield$DownloadUtils$ = yield _downloadUtils.default.getEditionDatabaseAndPages(dbURL, zipDBFilename, destinationPath, Object.assign({ - completionCallback: function completionCallback(_ref2) { - var speed = _ref2.speed; - speedInKbps = speed; - } + completionCallback: function () { + var _completionCallback = (0, _asyncToGenerator2.default)(function* (_ref2) { + var speed = _ref2.speed; + speedInKbps = speed; + return Promise.resolve(); + }); + + function completionCallback(_x14) { + return _completionCallback.apply(this, arguments); + } + + return completionCallback; + }() }, config)), filenames = _yield$DownloadUtils$.filenames, responseHeaders = _yield$DownloadUtils$.responseHeaders; @@ -48330,14 +48339,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "downloadHRImage", value: function () { - var _downloadHRImage = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, xmlId, boxId, graph, secret) { + var _downloadHRImage = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, xmlId, boxId, graph, secret, downloadConfig) { var type = graph ? "jpg" : "gif"; var imageName = "pag_" + xmlId + "_" + boxId + "." + type; var url = NewsmemoryAJAX.getHrImageUrl(issue, graph, xmlId, boxId, filename, filetime, secret); try { var destinationFolder = NewsmemoryAJAX.getPagePath(paper, issue, filename); - var path = yield _downloadUtils.default.downloadResourceInFolder(url, destinationFolder, imageName); + var path = yield _downloadUtils.default.downloadResourceInFolder(url, destinationFolder, imageName, downloadConfig); var _yield$getImageSize = yield (0, _$$_REQUIRE(_dependencyMap[18]).getImageSize)("file://" + path), width = _yield$getImageSize.width, @@ -48354,7 +48363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadHRImage(_x14, _x15, _x16, _x17, _x18, _x19, _x20, _x21) { + function downloadHRImage(_x15, _x16, _x17, _x18, _x19, _x20, _x21, _x22, _x23) { return _downloadHRImage.apply(this, arguments); } @@ -48363,7 +48372,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "downloadImage", value: function () { - var _downloadImage = (0, _asyncToGenerator2.default)(function* (paper, issue, image, filename, filetime, secret) { + var _downloadImage = (0, _asyncToGenerator2.default)(function* (paper, issue, image, filename, filetime, secret, downloadConfig) { var useCDN = _newsmemoryUtils.default.isCDNEnabled(); var defaultParams = Object.assign({}, _Api.default.getDefaultParams(true, useCDN), NewsmemoryAJAX.getDefaultGETParams(), { @@ -48376,7 +48385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue) + filename + "/"; - var path = yield _downloadUtils.default.downloadResourceInFolder(imageURL, destinationFolder, image); + var path = yield _downloadUtils.default.downloadResourceInFolder(imageURL, destinationFolder, image, downloadConfig); var width = 0; var height = 0; @@ -48406,7 +48415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadImage(_x22, _x23, _x24, _x25, _x26, _x27) { + function downloadImage(_x24, _x25, _x26, _x27, _x28, _x29, _x30) { return _downloadImage.apply(this, arguments); } @@ -48415,7 +48424,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "downloadPageZip", value: function () { - var _downloadPageZip = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, secret) { + var _downloadPageZip = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, secret, downloadConfig) { var useCDN = _newsmemoryUtils.default.isCDNEnabled(); var defaultParams = Object.assign({}, _Api.default.getDefaultParams(true, useCDN), NewsmemoryAJAX.getDefaultGETParams(), { @@ -48427,7 +48436,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue) + filename + "/"; - yield _downloadUtils.default.downloadResourceAndUnzipInFolder(zipURL, destinationFolder); + yield _downloadUtils.default.downloadResourceAndUnzipInFolder(zipURL, destinationFolder, downloadConfig); var LOW = _$$_REQUIRE(_dependencyMap[19]).EPaperImageName.LOW, GRAPH = _$$_REQUIRE(_dependencyMap[19]).EPaperImageName.GRAPH, @@ -48441,7 +48450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadPageZip(_x28, _x29, _x30, _x31, _x32) { + function downloadPageZip(_x31, _x32, _x33, _x34, _x35, _x36) { return _downloadPageZip.apply(this, arguments); } @@ -48450,7 +48459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "downloadHRImagesZip", value: function () { - var _downloadHRImagesZip = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, secret) { + var _downloadHRImagesZip = (0, _asyncToGenerator2.default)(function* (paper, issue, filename, filetime, secret, downloadConfig) { var useCDN = _newsmemoryUtils.default.isCDNEnabled(); var page = filename.substring(0, filename.length - 2); @@ -48464,7 +48473,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue) + filename + "/"; - var path = yield _downloadUtils.default.downloadResourceInFolder(zipURL, destinationFolder, _newsmemoryUtils.ARCHIVE_ZIP_GRAPH_FILENAME); + var path = yield _downloadUtils.default.downloadResourceInFolder(zipURL, destinationFolder, _newsmemoryUtils.ARCHIVE_ZIP_GRAPH_FILENAME, downloadConfig); var success = yield _tecnaviaFileUtils.default.exists(path); if (success) { @@ -48477,7 +48486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadHRImagesZip(_x33, _x34, _x35, _x36, _x37) { + function downloadHRImagesZip(_x37, _x38, _x39, _x40, _x41, _x42) { return _downloadHRImagesZip.apply(this, arguments); } @@ -48486,7 +48495,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "downloadMultiplePagesZips", value: function () { - var _downloadMultiplePagesZips = (0, _asyncToGenerator2.default)(function* (paper, issue, filenames, filetimes, secret) { + var _downloadMultiplePagesZips = (0, _asyncToGenerator2.default)(function* (paper, issue, filenames, filetimes, secret, downloadConfig) { var useCDN = _newsmemoryUtils.default.isCDNEnabled(); var defaultParams = Object.assign({}, _Api.default.getDefaultParams(true, useCDN), NewsmemoryAJAX.getDefaultGETParams(), { @@ -48499,7 +48508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { var destinationFolder = _NewsmemoryDatabasesManager.default.getNewspaperIssueDirectory(paper, issue); - yield _downloadUtils.default.downloadResourceAndUnzipInFolder(zipURL, destinationFolder); + yield _downloadUtils.default.downloadResourceAndUnzipInFolder(zipURL, destinationFolder, downloadConfig); var LOW = _$$_REQUIRE(_dependencyMap[19]).EPaperImageName.LOW, GRAPH = _$$_REQUIRE(_dependencyMap[19]).EPaperImageName.GRAPH, @@ -48511,7 +48520,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _downloadUtils.default.scanPageFolderForImages(destinationFolder + filename, [LOW, GRAPH, GIF, PDF]); }); - return function (_x43) { + return function (_x49) { return _ref3.apply(this, arguments); }; }())); @@ -48520,7 +48529,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadMultiplePagesZips(_x38, _x39, _x40, _x41, _x42) { + function downloadMultiplePagesZips(_x43, _x44, _x45, _x46, _x47, _x48) { return _downloadMultiplePagesZips.apply(this, arguments); } @@ -48562,7 +48571,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadFullPaper(_x44, _x45, _x46) { + function downloadFullPaper(_x50, _x51, _x52) { return _downloadFullPaper.apply(this, arguments); } @@ -48598,7 +48607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("NewsmemoryAJAX - downloadPaperIndex: no data returned"); }); - function downloadPaperIndex(_x47, _x48) { + function downloadPaperIndex(_x53, _x54) { return _downloadPaperIndex.apply(this, arguments); } @@ -48626,7 +48635,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e throw new Error("NewsmemoryAJAX - downloadArticles: no data returned"); }); - function downloadArticles(_x49, _x50, _x51, _x52) { + function downloadArticles(_x55, _x56, _x57, _x58) { return _downloadArticles.apply(this, arguments); } @@ -48708,7 +48717,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return NewsmemoryAJAX.get(params); }); - function getCDNStatus(_x53, _x54) { + function getCDNStatus(_x59, _x60) { return _getCDNStatus.apply(this, arguments); } @@ -48843,7 +48852,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function downloadPDF(_x55, _x56) { + function downloadPDF(_x61, _x62) { return _downloadPDF.apply(this, arguments); } @@ -48871,7 +48880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }); - function uploadSessionReport(_x57, _x58) { + function uploadSessionReport(_x63, _x64) { return _uploadSessionReport.apply(this, arguments); } @@ -48995,7 +49004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _Api.default.get(_Api.default.baseUrl(cdnServer || machine), {}, defaultParams, true); }); - function customFonts(_x59) { + function customFonts(_x65) { return _customFonts.apply(this, arguments); } @@ -49090,8 +49099,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e API.set2GTimeout(); } else if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.is3G()) { API.set3GTimeout(); - } else if (_$$_REQUIRE(_dependencyMap[8]).NetworkUtils.is4G()) { - API.set4GTimeout(); } else { API.set4GTimeout(); } @@ -83810,7 +83817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "isHighSpeedNetwork", value: function isHighSpeedNetwork() { - return NetworkUtils.isWiFi() || NetworkUtils.is4G(); + return NetworkUtils.isWiFi() || NetworkUtils.is4G() || NetworkUtils.is5G(); } }, { key: "is2G", @@ -83827,6 +83834,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function is4G() { return NetworkUtils.isCellularOnBand("4g"); } + }, { + key: "is5G", + value: function is5G() { + return NetworkUtils.isCellularOnBand("5g"); + } }, { key: "isCellularOnBand", value: function isCellularOnBand(band) { @@ -86062,7 +86074,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NO_ZIP: 3, GENERIC_ERROR: 4, NO_GRANTS_ALLOWED_IP: 5, - SERVICE_ERROR: 6 + SERVICE_ERROR: 6, + LOCAL_ERROR: 7 }; var DOWNLOAD_WARNING_CODES = exports.DOWNLOAD_WARNING_CODES = { VALIDATION_WARNING: 1, @@ -86298,20 +86311,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e INVALID_ZIP = DOWNLOAD_ERROR_CODES.INVALID_ZIP, NO_ZIP = DOWNLOAD_ERROR_CODES.NO_ZIP, GENERIC_ERROR = DOWNLOAD_ERROR_CODES.GENERIC_ERROR, - SERVICE_ERROR = DOWNLOAD_ERROR_CODES.SERVICE_ERROR; + SERVICE_ERROR = DOWNLOAD_ERROR_CODES.SERVICE_ERROR, + LOCAL_ERROR = DOWNLOAD_ERROR_CODES.LOCAL_ERROR; var PARTIAL_CONTENT = _Api.HTTP_CODES.PARTIAL_CONTENT, INTERNAL_SERVER_ERROR = _Api.HTTP_CODES.INTERNAL_SERVER_ERROR, BAD_GATEWAY = _Api.HTTP_CODES.BAD_GATEWAY, SERVICE_UNAVAILABLE = _Api.HTTP_CODES.SERVICE_UNAVAILABLE, GATEWAY_TIMEOUT = _Api.HTTP_CODES.GATEWAY_TIMEOUT, FORBIDDEN = _Api.HTTP_CODES.FORBIDDEN; + var progressCallback = config.progressCallback, + completionCallback = config.completionCallback, + requestHeaders = config.requestHeaders; + var startTime = Date.now(); + var kBitsDownloaded = 0; try { - var progressCallback = config.progressCallback, - completionCallback = config.completionCallback, - requestHeaders = config.requestHeaders; - var startTime = Date.now(); - var kBitsDownloaded = 0; response = yield _tecnaviaFileUtils.default.fetch(resourceURL, { timeout: _Api.default.timeout, startCallBack: function startCallBack(contentLength) { @@ -86324,19 +86338,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e progressCallback: progressCallback, requestHeaders: requestHeaders }); - - if (completionCallback) { - var duration = (Date.now() - startTime) / 1000; - var speed = kBitsDownloaded / duration; - completionCallback({ - speed: speed - }); - } } catch (e) { var error = new DownloadError(TIMEOUT, e.message); throw error; } + if (typeof completionCallback === "function") { + var duration = (Date.now() - startTime) / 1000; + var speed = kBitsDownloaded / duration; + + if (kBitsDownloaded > 0) {} + + try { + yield completionCallback({ + speed: speed + }); + } catch (e) { + throw new DownloadError(LOCAL_ERROR, e.message); + } + } + if (response) { var _response = response, respInfo = _response.respInfo, @@ -86346,16 +86367,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (status === INTERNAL_SERVER_ERROR) { var message = "Internal server error"; - - var _error = new DownloadError(GENERIC_ERROR, message); - - throw _error; + throw new DownloadError(GENERIC_ERROR, message); } else if (status === BAD_GATEWAY || status === SERVICE_UNAVAILABLE || status === GATEWAY_TIMEOUT) { var _message = "Server service/gateway error"; - - var _error2 = new DownloadError(SERVICE_ERROR, _message); - - throw _error2; + throw new DownloadError(SERVICE_ERROR, _message); } else if (status === PARTIAL_CONTENT) { var errorCode; @@ -86363,7 +86378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var params = {}; - if (headers && headers["Ta-Validation-Error"]) { + if (headers != null && headers["Ta-Validation-Error"]) { try { params = JSON.parse(headers["Ta-Validation-Error"]); } catch (e) {} @@ -86389,11 +86404,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e break; } - var _error3 = new DownloadError(errorCode, _message2); + var _error = new DownloadError(errorCode, _message2); - _error3.setParams(params); + _error.setParams(params); - throw _error3; + throw _error; } else if (status === FORBIDDEN) { var _message3 = "Forbidden"; throw new Error(_message3); @@ -86405,9 +86420,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; } } else { - var _error4 = "No response from download URL: " + resourceURL; + var _error2 = "No response from download URL: " + resourceURL; - throw new Error(_error4); + throw new Error(_error2); } }); @@ -86517,95 +86532,90 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e unzippedFiles = _yield$DownloadUtils$4.files; responseHeaders = _yield$DownloadUtils$4.responseHeaders; + var zipDb = destinationFolder + zipDbFilename; + var db = destinationFolder + DownloadUtils.getDatabaseName(zipDb); - try { - var zipDb = destinationFolder + zipDbFilename; - var db = destinationFolder + DownloadUtils.getDatabaseName(zipDb); + if (yield _tecnaviaFileUtils.default.exists(zipDb)) { + try { + yield _tecnaviaFileUtils.default.unzip(zipDb, destinationFolder); - if (yield _tecnaviaFileUtils.default.exists(zipDb)) { - try { - yield _tecnaviaFileUtils.default.unzip(zipDb, destinationFolder); + _tecnaviaFileUtils.default.clearUnusedDownloadedFiles(zipDb); + } catch (e) { + _tecnaviaFileUtils.default.clearUnusedDownloadedFiles(zipDb); - _tecnaviaFileUtils.default.clearUnusedDownloadedFiles(zipDb); - } catch (e) { - _tecnaviaFileUtils.default.clearUnusedDownloadedFiles(zipDb); - - throw e; - } + throw e; } + } - if (yield _tecnaviaFileUtils.default.exists(db)) { - filenames.db = db; + if (yield _tecnaviaFileUtils.default.exists(db)) { + filenames.db = db; - try { - filenames.pages = []; + try { + filenames.pages = []; - if (Array.isArray(unzippedFiles)) { - var _loop2 = function* _loop2() { - var filename = unzippedFiles[i]; + if (Array.isArray(unzippedFiles)) { + var _loop2 = function* _loop2() { + var filename = unzippedFiles[i]; - if (filename === SECRET_PDF_FILENAME) { - filenames.secret = yield _tecnaviaFileUtils.default.readFile(destinationFolder + filename); - } else if (filename !== zipDbFilename) { - var pageFolder = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getParentPath(filename); + if (filename === SECRET_PDF_FILENAME) { + filenames.secret = yield _tecnaviaFileUtils.default.readFile(destinationFolder + filename); + } else if (filename !== zipDbFilename) { + var pageFolder = _$$_REQUIRE(_dependencyMap[12]).StringUtils.getParentPath(filename); - if (!filenames.pages.find(function (_ref) { - var name = _ref.name; - return name === pageFolder; - })) { - var path = destinationFolder + pageFolder; + if (!filenames.pages.find(function (_ref) { + var name = _ref.name; + return name === pageFolder; + })) { + var path = destinationFolder + pageFolder; - var _yield$TecnaviaFileUt = yield _tecnaviaFileUtils.default.stat(path), - isDirectory = _yield$TecnaviaFileUt.isDirectory; + var _yield$TecnaviaFileUt = yield _tecnaviaFileUtils.default.stat(path), + isDirectory = _yield$TecnaviaFileUt.isDirectory; - if (isDirectory()) { - filenames.pages.push({ - path: path, - name: pageFolder - }); - } + if (isDirectory()) { + filenames.pages.push({ + path: path, + name: pageFolder + }); } } - }; - - for (var i = 0; i < unzippedFiles.length; i++) { - yield* _loop2(); } - } else { - var files = yield _tecnaviaFileUtils.default.readDir(destinationFolder); + }; - for (var _i = 0; _i < files.length; _i++) { - var _files$_i = files[_i], - path = _files$_i.path, - name = _files$_i.name, - isDirectory = _files$_i.isDirectory; + for (var i = 0; i < unzippedFiles.length; i++) { + yield* _loop2(); + } + } else { + var files = yield _tecnaviaFileUtils.default.readDir(destinationFolder); - if (isDirectory()) { - filenames.pages.push({ - path: path, - name: name - }); - } else if (name === SECRET_PDF_FILENAME) { - filenames.secret = yield _tecnaviaFileUtils.default.readFile(path); - } + for (var _i = 0; _i < files.length; _i++) { + var _files$_i = files[_i], + path = _files$_i.path, + name = _files$_i.name, + isDirectory = _files$_i.isDirectory; + + if (isDirectory()) { + filenames.pages.push({ + path: path, + name: name + }); + } else if (name === SECRET_PDF_FILENAME) { + filenames.secret = yield _tecnaviaFileUtils.default.readFile(path); } } - } catch (e) { - throw e; } - } else { - throw new Error("Editions database not found after unzip"); + } catch (e) { + throw e; } + } else { + throw new Error("Editions database not found after unzip"); + } - var callbackAfterUnzip = config.callbackAfterUnzip; + var callbackAfterUnzip = config.callbackAfterUnzip; - if (callbackAfterUnzip) { - try { - yield callbackAfterUnzip(); - } catch (e) {} - } - } catch (e) { - throw e; + if (callbackAfterUnzip) { + try { + yield callbackAfterUnzip(); + } catch (e) {} } } catch (e) { throw e; @@ -87128,7 +87138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var imageStyle; if (style) { - imageStyle = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle(style, ["fontSize", "filters", "image"]); + imageStyle = _$$_REQUIRE(_dependencyMap[12]).CssUtils.deleteKeysFromStyle(style, ["fontSize", "filters", "image", "resizeMode"]); var tintColor = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getTintColorAttributeStyle(style); @@ -87136,6 +87146,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e props.tintColor = tintColor; } + var resizeMode = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("resizeMode", style); + + if (resizeMode) { + props.resizeMode = resizeMode; + } + var filters = _$$_REQUIRE(_dependencyMap[12]).CssUtils.getAttributeFromStyle("filters", style); if (Array.isArray(filters) && !_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(filters)) { @@ -97176,7 +97192,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; return _f; }(); @@ -97228,7 +97244,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; return _f; }(); @@ -97280,7 +97296,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; return _f; }(); } @@ -97305,7 +97321,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; return _f; }(); @@ -97373,7 +97389,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; return _f; }(); @@ -97463,7 +97479,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; return _f; }(); @@ -97496,7 +97512,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; return _f; }())(); } @@ -98252,7 +98268,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "_args": [ [ "react-native-reanimated@2.17.0", - "/Users/ipaddev/sdk/3.18.15.rc" + "/Users/ipaddev/sdk/3.18.16.rc" ] ], "_from": "react-native-reanimated@2.17.0", @@ -98276,7 +98292,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.18.15.rc", + "_where": "/Users/ipaddev/sdk/3.18.16.rc", "author": { "name": "Krzysztof Magiera", "email": "krzys.magiera@gmail.com" @@ -98623,7 +98639,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.18.15.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; return _f; }())(); } @@ -101295,7 +101311,7 @@ __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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; return _f; }())(); },712,[676,713,714,715]); @@ -101323,7 +101339,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; return _f; }(); } else { @@ -101346,7 +101362,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; return _f; }(); } @@ -101386,7 +101402,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; return _f; }(); @@ -101420,7 +101436,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; return _f; }(); @@ -101454,7 +101470,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; return _f; }(); @@ -101473,7 +101489,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; return _f; }(); @@ -101495,7 +101511,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; return _f; }(); @@ -101508,7 +101524,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; return _f; }(); @@ -101530,7 +101546,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; return _f; }(); @@ -101552,7 +101568,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; return _f; }(); @@ -101778,7 +101794,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; return _f; }(); @@ -101790,7 +101806,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; return _f; }(); @@ -101802,7 +101818,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; return _f; }(); @@ -101814,7 +101830,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; return _f; }(); @@ -101826,7 +101842,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; return _f; }(); @@ -101854,7 +101870,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; return _f; }(); @@ -101905,7 +101921,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; return _f; }()); }; @@ -102361,7 +102377,7 @@ __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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; return _f; }(); },715,[716,713,714,717]); @@ -102413,7 +102429,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; return _f; }(); @@ -102566,7 +102582,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; return _f; }(); @@ -102589,7 +102605,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; return _f; }(); @@ -102609,7 +102625,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; return _f; }(); @@ -102621,7 +102637,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; return _f; }(); @@ -102643,7 +102659,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; return _f; }()); }; @@ -102653,7 +102669,7 @@ __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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; return _f; }(); },716,[3,677,714]); @@ -102740,7 +102756,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; return _f; }()); }; @@ -102754,7 +102770,7 @@ __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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; return _f; }(); },717,[716,718]); @@ -102774,7 +102790,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; return _f; }(); @@ -102788,7 +102804,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; return _f; }(); @@ -102800,7 +102816,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; return _f; }(); @@ -102812,7 +102828,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; return _f; }(); @@ -102828,7 +102844,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; return _f; }(); }; @@ -102836,7 +102852,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; return _f; }(); @@ -102848,7 +102864,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; return _f; }(); @@ -102860,7 +102876,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; return _f; }(); @@ -102872,7 +102888,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; return _f; }(); @@ -102890,7 +102906,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; return _f; }(); }; @@ -102898,7 +102914,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; return _f; }(); @@ -102915,7 +102931,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; return _f; }(); }; @@ -102923,7 +102939,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; return _f; }(); @@ -102952,7 +102968,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; return _f; }(); @@ -102973,7 +102989,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; return _f; }() }; @@ -102984,7 +103000,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; return _f; }(); @@ -102998,7 +103014,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; return _f; }(); @@ -103010,7 +103026,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; return _f; }(); @@ -103026,7 +103042,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; return _f; }(); }; @@ -103034,7 +103050,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; return _f; }(); @@ -103054,7 +103070,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; return _f; }(); }; @@ -103062,7 +103078,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.18.15.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; return _f; }(); @@ -103122,7 +103138,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 1 && arguments[1] !== undefined ? arguments[1] : {}; var textStyle = []; - var fontToUse; - - if (type === Type.bold && fontBold) { - fontToUse = fontBold; - } else if (type === Type.medium && fontMedium) { - fontToUse = fontMedium; - } else if (fontRegular) { - fontToUse = fontRegular; - } - - if (fontToUse) { - textStyle.push({ - fontFamily: fontToUse.font - }); - } - - var styleFamily; - - if (style) { - styleFamily = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontFamily", style); + if (!_$$_REQUIRE(_dependencyMap[6]).JSUtils.isEmpty(style)) { if (Array.isArray(style)) { textStyle.push.apply(textStyle, (0, _toConsumableArray2.default)(style)); } else { @@ -118390,10 +118386,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } - if (!styleFamily && (_fontToUse = fontToUse) != null && _fontToUse.fontWeight) { - textStyle.push({ - fontWeight: fontToUse.fontWeight - }); + var styleFamily = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontFamily", style); + + if (!styleFamily) { + var fontToUse; + + if (type === Type.bold && fontBold) { + fontToUse = fontBold; + } else if (type === Type.medium && fontMedium) { + fontToUse = fontMedium; + } else if (fontRegular) { + fontToUse = fontRegular; + } + + if (fontToUse) { + var _fontToUse = fontToUse, + fontWeight = _fontToUse.fontWeight, + fontFamily = _fontToUse.font; + textStyle.push({ + fontFamily: fontFamily + }); + + var styleWeight = _$$_REQUIRE(_dependencyMap[6]).CssUtils.getAttributeFromStyle("fontWeight", style); + + if (fontWeight && !styleWeight) { + textStyle.push({ + fontWeight: fontWeight + }); + } + } } return textStyle; @@ -119840,6 +119861,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "newsmemory-index-accessibility-text": { color: _$$_REQUIRE(_dependencyMap[0]).colors.md_blue_600 + }, + "my-home-config-image-blur": { + adaptHeightIfOutOfRange: [false, false] } } }, @@ -120251,7 +120275,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getDebugStyles() { if (global.cssDebug) { - return {}; + return { + base: { + styles: {} + }, + baseLight: { + styles: {} + }, + baseDark: { + styles: {} + } + }; } return {}; @@ -124536,9 +124570,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this5 = this; return this.queue.add(function () { - return new Promise(function () { - var _ref = (0, _asyncToGenerator2.default)(function* (resolve, reject) { - if (yield _this5.open()) { + return new Promise(function (resolve, reject) { + _this5.open().then(function (isOpen) { + if (isOpen) { _this5.db.executeSql(query, params, function (resultSet) { resolve(resultSet.rows); }, function (e) { @@ -124547,12 +124581,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else { resolve([]); } + }).catch(function (e) { + reject(e); }); - - return function (_x3, _x4) { - return _ref.apply(this, arguments); - }; - }()); + }); }); }); @@ -124581,7 +124613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); - function executeSql(_x5, _x6, _x7) { + function executeSql(_x3, _x4, _x5) { return _executeSql.apply(this, arguments); } @@ -124595,29 +124627,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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) { + return new Promise(function (resolve) { + _this6.open().then(function (isOpen) { + if (isOpen) { + _this6.openTransaction().then(function (tx) { + return _this6.executeSql(tx, query, params); + }).then(function (result) { + return resolve(result); + }).catch(function (e) { resolve([]); - } + }); } else { resolve([]); } + }).catch(function (e) { + resolve([]); }); - - return function (_x9) { - return _ref2.apply(this, arguments); - }; - }()); + }); }); }); - function transaction(_x8) { + function transaction(_x6) { return _transaction.apply(this, arguments); } @@ -124641,7 +124671,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }); - function tableExists(_x10) { + function tableExists(_x7) { return _tableExists.apply(this, arguments); } @@ -124667,7 +124697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }); - function columnExists(_x11, _x12) { + function columnExists(_x8, _x9) { return _columnExists.apply(this, arguments); } @@ -124680,7 +124710,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.transaction("DELETE FROM " + table + " " + (whereClause ? "WHERE " + whereClause : "") + ";"); }); - function deleteFrom(_x13, _x14) { + function deleteFrom(_x10, _x11) { return _deleteFrom.apply(this, arguments); } @@ -124701,7 +124731,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var startTime = new Date().getTime(); var promises = chunks.map(function () { - var _ref3 = (0, _asyncToGenerator2.default)(function* (chunk) { + var _ref = (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 ? ")," : ");"); @@ -124712,8 +124742,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _this7.transaction(query, params); }); - return function (_x18) { - return _ref3.apply(this, arguments); + return function (_x15) { + return _ref.apply(this, arguments); }; }()); @@ -124725,7 +124755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function replaceInto(_x15, _x16, _x17) { + function replaceInto(_x12, _x13, _x14) { return _replaceInto.apply(this, arguments); } @@ -130576,49 +130606,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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@blueconic/blueconic-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-admob'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-chartbeat'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.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.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-push-notification'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.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.16.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.18.15.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.16.rc/src/lib/utils/noop.js"); }(); break; @@ -130629,21 +130659,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.18.15.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.16.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.18.15.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.16.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.18.15.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.16.rc/src/lib/utils/noop.js"); }(); break; @@ -130654,21 +130684,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case DEPENDENCIES.IOSNewsmemorySDK: module = function () { - throw new Error("Cannot find module '@tecnavia/react-native-newsmemory-pod'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@tecnavia/react-native-newsmemory-pod'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.rc/src/lib/utils/noop.js"); }(); break; case DEPENDENCIES.Osano: module = function () { - throw new Error("Cannot find module '@tecnavia/react-native-osano-web'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.15.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.16.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.18.15.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.16.rc/src/lib/utils/noop.js"); }(); break; @@ -130679,98 +130709,98 @@ __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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'matomo-tracker-react-native'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-adbmobile'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-baronweather'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-comscore'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-fbsdk-next'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.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.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-iap'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-maps'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-mather-analytics'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-matomo'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.rc/src/lib/utils/noop.js"); }(); break; case DEPENDENCIES.NativeStack: module = function () { - throw new Error("Cannot find module '@react-navigation/native-stack'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module '@react-navigation/native-stack'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-nativo-ads'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-onesignal'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-prebid'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.rc/src/lib/utils/noop.js"); }(); break; @@ -130781,21 +130811,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e case DEPENDENCIES.IOSTrackingTransparency: module = function () { - throw new Error("Cannot find module 'react-native-tracking-transparency'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-tracking-transparency'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-viafoura'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.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.18.15.rc/src/lib/utils/noop.js"); + throw new Error("Cannot find module 'react-native-voice'\nRequire stack:\n- /Users/ipaddev/sdk/3.18.16.rc/src/lib/utils/noop.js"); }(); break; @@ -132917,7 +132947,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); exports.RAW_HTML = undefined; - var RAW_HTML = exports.RAW_HTML = "\n \n \n \n \n \n \n \n"; + var RAW_HTML = exports.RAW_HTML = "\n \n \n \n \n \n \n \n"; },907,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { @@ -133013,7 +133043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e for (var i = 0; i < entries.length; i++) { var entry = entries[i]; - if (!isString(entry == null ? undefined : entry[0]) || !isString(entry == null ? undefined : entry[1])) { + if (!isString(entry === null || entry === undefined ? undefined : entry[0]) || !isString(entry === null || entry === undefined ? undefined : entry[1])) { return false; } } @@ -142404,7 +142434,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.18.15.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.16.rc/node_modules/@react-navigation/elements/src/noop.js"); }().default; } catch (e) {} @@ -153231,7 +153261,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "_args": [ [ "react-native-url-polyfill@1.3.0", - "/Users/ipaddev/sdk/3.18.15.rc" + "/Users/ipaddev/sdk/3.18.16.rc" ] ], "_from": "react-native-url-polyfill@1.3.0", @@ -153255,7 +153285,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.18.15.rc", + "_where": "/Users/ipaddev/sdk/3.18.16.rc", "author": { "name": "Nicolas Charpentier", "email": "nicolas.charpentier079@gmail.com" @@ -178034,7 +178064,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.18.15.rc/node_modules/@react-navigation/drawer/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.16.rc/node_modules/@react-navigation/drawer/node_modules/@react-navigation/elements/src/noop.js"); }().default; } catch (e) {} @@ -179222,7 +179252,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (39:15)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (39:15)"; return _f; }(); @@ -179281,7 +179311,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (88:4)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (88:4)"; return _f; }(), [drawerPosition, drawerWidth]); var hideStatusBar = React.useCallback(function (hide) { @@ -179378,7 +179408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f({open:open,isUserInitiated:isUserInitiated,velocity: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,reduceMotion:'never'});if(!isUserInitiated){return;}if(open){runOnJS(onOpen)();}else{runOnJS(onClose)();}}}"; _f.__workletHash = 3124016504787; - _f.__location = "/Users/ipaddev/sdk/3.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (158:4)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (158:4)"; return _f; }(), [getDrawerTranslationX, onClose, onOpen, touchStartX, touchX, translationX]); React.useEffect(function () { @@ -179403,7 +179433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(event,ctx){const{translationX,gestureState,touchStartX}=jsThis._closure;{ctx.hasCalledOnStart=false;ctx.startX=translationX.value;gestureState.value=event.state;touchStartX.value=event.x;}}"; _f.__workletHash = 7995461185439; - _f.__location = "/Users/ipaddev/sdk/3.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:13)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (199:13)"; return _f; }(), onActive: function () { @@ -179427,7 +179457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(event,ctx){const{touchX,translationX,gestureState,runOnJS,onGestureStart}=jsThis._closure;{touchX.value=event.x;translationX.value=ctx.startX+event.translationX;gestureState.value=event.state;if(!ctx.hasCalledOnStart){ctx.hasCalledOnStart=true;runOnJS(onGestureStart)();}}}"; _f.__workletHash = 2717092431621; - _f.__location = "/Users/ipaddev/sdk/3.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (205:14)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (205:14)"; return _f; }(), onEnd: function () { @@ -179452,7 +179482,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({open:nextOpen,isUserInitiated:true,velocity:event.velocityX});}}"; _f.__workletHash = 5030620258728; - _f.__location = "/Users/ipaddev/sdk/3.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (218:11)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (218:11)"; return _f; }(), onFinish: function () { @@ -179466,7 +179496,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (238:14)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (238:14)"; return _f; }() }); @@ -179494,7 +179524,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (243:37)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (243:37)"; return _f; }()); @@ -179522,7 +179552,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{dimensions,drawerWidth,drawerType,translateX,drawerPosition,isRTL}=jsThis._closure;{const distanceFromEdge=dimensions.width-drawerWidth;return{transform:drawerType==='permanent'?[]:[{translateX:(drawerType==='back'?0:translateX.value)+(drawerPosition==='left'?isRTL?-distanceFromEdge:0:isRTL?0:distanceFromEdge)}]};}}"; _f.__workletHash = 17545005580326; - _f.__location = "/Users/ipaddev/sdk/3.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (289:47)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (289:47)"; _f.__optimalization = 3; return _f; }()); @@ -179543,7 +179573,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (315:48)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (315:48)"; _f.__optimalization = 3; return _f; }()); @@ -179560,7 +179590,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (335:35)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx (335:35)"; return _f; }()); return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_DrawerProgressContext.default.Provider, { @@ -179669,7 +179699,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (26:41)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (26:41)"; _f.__optimalization = 3; return _f; }()); @@ -179689,7 +179719,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.18.15.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (35:41)"; + _f.__location = "/Users/ipaddev/sdk/3.18.16.rc/node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx (35:41)"; return _f; }()); return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNativeReanimated.default.View, Object.assign({}, props, { @@ -180075,24 +180105,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var backgroundColor = props.backgroundColor, Component = props.Component, onLogoPress = props.onLogoPress; + + var logoStyle = _$$_REQUIRE(_dependencyMap[7]).CssHelper.getStyleObjByCssClasses(["opt-logo"]); + + var style = [styles.logo, logoStyle]; var ToRender = null; if (typeof Component === "string") { ToRender = _react.default.createElement(_taImageIcon.default, { - style: styles.logo, + style: style, source: { uri: Component } }); } else if (typeof Component === "function") { ToRender = Component({ - style: styles.logo + style: style }); } else if (Component != null) { - ToRender = Component; + ToRender = _react.default.createElement(_$$_REQUIRE(_dependencyMap[7]).Css, { + classes: ["opt-logo"] + }, Component); } else { ToRender = _react.default.createElement(_taImageIcon.default, { - style: styles.logo, + style: style, source: { uri: _liveConfig.default.getPSetup().logoUrl } @@ -180107,9 +180143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: backgroundColor }], onPress: onLogoPress - }, _react.default.createElement(_$$_REQUIRE(_dependencyMap[7]).Css, { - classes: ["opt-logo"] - }, ToRender))); + }, ToRender)); } Logo.propTypes = { @@ -205598,7 +205632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: true }); exports.VERSION = undefined; - var VERSION = "1.5.3"; + var VERSION = "1.5.4"; exports.VERSION = VERSION; },1760,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { @@ -231356,10 +231390,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield GlobalConfig.initAds(); (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init ads completed"); yield GlobalConfig.initRssConfig(); + (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init RSS config completed"); GlobalConfig.initContext(); GlobalConfig.initCustomStyles(); - yield Analytics.initAnalytics(); - (0, _$$_REQUIRE(_dependencyMap[19]).addDebugOperation)("GlobalConfig", "init analytics completed"); }); function initConfigurations() { @@ -231368,6 +231401,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return initConfigurations; }() + }, { + key: "initAnalytics", + value: function () { + var _initAnalytics = (0, _asyncToGenerator2.default)(function* () { + yield Analytics.initAnalytics(); + }); + + function initAnalytics() { + return _initAnalytics.apply(this, arguments); + } + + return initAnalytics; + }() }, { key: "getNewsmemoryScreenVersion", value: function getNewsmemoryScreenVersion() { @@ -268320,6 +268366,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "offline_download_warning": "لم يتم تنزيل هذا الإصدار بالكامل.\nقد تظهر بعض أجزاء الصفحات غير واضحة.", "offline_download_dialog": "هل تريد تنزيل الإصدار بالكامل للقراءة في وضع عدم الاتصال؟", "mobile_network_warning": "أنت متصل بشبكة جوال بدلاً من شبكة WiFi", + "slow_network_warning": "أنت متصل بشبكة بطيئة", "msg_operation_completed": "اكتملت العملية", "msg_ok_delete_db": "تم حذف جميع الإصدارات المحفوظة", "msg_download_rss": "جارٍ تنزيل مقالات جديدة...", @@ -268679,6 +268726,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "For automatisk at downloade alle udgaver til offline-læsning, vælg 'Mere' > 'Indstillinger' > 'Offline mode' som dit foretrukne netværk", "offline_download_dialog": "Vil du downloade hele udgaven til offline læsning?", "mobile_network_warning": "Din tilsluttet et mobilnetværk i stedet for WiFi", + "slow_network_warning": "Du er tilsluttet et langsomt netværk", "msg_ok_delete_db": "Alle gemte udgaver er blevet slettet", "msg_operation_completed": "Drift afsluttet", "msg_download_rss": "Downloader nye artikler...", @@ -268787,7 +268835,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Fortsættelse", "login_failed": "Login mislykkedes", "login_no_email": "Kan ikke logge ind: Ingen e-mail tilknyttet din sociale konto" -}; +} +; },2097,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -269051,6 +269100,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Wenn Sie alle Ausgaben für das Offline-Lesen herunterladen möchten, drücken Sie auf den Mehr-Button -> Reiter 'Optionen' -> und wählen dann Offline Modus als Netzwerkmodus", "offline_download_dialog": "Möchten Sie die komplette Ausgabe zum Offline-Lesen herunterladen?", "mobile_network_warning": "Sie sind mit einem Mobilfunknetz anstelle von WiFi verbunden", + "slow_network_warning": "Sie sind mit einem langsamen Netzwerk verbunden", "msg_ok_delete_db": "Alle gespeicherten Ausgaben wurden gelöscht", "msg_operation_completed": "Vorgang ausgeführt", "msg_download_rss": "Neue Artikel herunterladen ...", @@ -269176,7 +269226,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Fortsetzung", "login_failed": "Fehler bei der Anmeldung", "login_no_email": "Anmeldung kann nicht angemeldet: Keine E-Mail zu Ihrem sozialen Konto zugeordnet" -}; +} +; },2098,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -269350,6 +269401,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "max_salary": "Max. salary", "min_salary": "Min. salary", "mobile_network_warning": "You are connected to a mobile network instead of WiFi", + "slow_network_warning": "You are connected to a slow network", "msg_entering_section": "Entering section {{section}}", "msg_available_next_startup": "This configuration will be available next startup", "msg_clear_cache": "Clear cache", @@ -269861,6 +269913,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Si desea descargar todas las ediciones para poder leerla sin conexión automáticamente pulse el botón 'Más' -> 'Configuración' -> Seleccione 'Modo wifi' como modo de conexión", "offline_download_dialog": "¿Quieres descargar toda la edición para poder leerla sin conexión?", "mobile_network_warning": "Estás conectado a una red móvil en lugar de WiFi", + "slow_network_warning": "Estás conectado a una red lenta", "msg_operation_completed": "Operación completada", "msg_ok_delete_db": "Se han eliminado todas las ediciones guardadas.", "msg_download_rss": "Descargando nuevos artículos...", @@ -270250,6 +270303,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Pour obtenir automatiquement toutes les éditions à télécharger pour une consultation hors ligne, appuyez sur le bouton 'Plus' -> onglet 'Paramètres' -> Sélectionnez 'Mode Wifi' comme mode réseau", "offline_download_dialog": "Voulez-vous télécharger toute l'édition pour la lecture hors ligne?", "mobile_network_warning": "Vous êtes connecté à un réseau mobile au lieu du WiFi", + "slow_network_warning": "Vous êtes connecté à un réseau lent", "msg_operation_completed": "Opération terminée", "msg_ok_delete_db": "Toutes les éditions enregistrées ont été supprimées", "msg_font_scaling": "Souhaitez-vous appliquer la taille du texte de votre appareil à cette application?", @@ -270629,6 +270683,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "se vuoi che tutte le edizioni vengano scaricate automaticamente per essere lette anche offline premi sul pulsante 'Altro' -> 'Impostazioni' -> Seleziona 'Modalità Wifi'", "offline_download_dialog": "Vuoi scaricare l'intera edizione per poterla leggere offline?", "mobile_network_warning": "Sei connesso a una rete mobile anziché WiFi", + "slow_network_warning": "Sei connesso a una rete lenta", "msg_operation_completed": "Operazione completata", "msg_ok_delete_db": "Tutte le edizione sono state cancellate", "msg_download_rss": "Download di nuovi articoli...", @@ -270755,7 +270810,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Continuazione", "login_failed": "Accesso non riuscito", "login_no_email": "Impossibile accedere: nessuna e-mail associata al tuo account social" -}; +} +; },2102,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -271017,6 +271073,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Hvis du vil laste ned alle utgaver automatisk for offline lesing, velger du 'Mer' > 'Innstillinger' > 'Frakoblet modus' som foretrukket Nettverksinnstilling", "offline_download_dialog": "Ønsker du å laste ned hele utgaven for offline lesing?", "mobile_network_warning": "Du er koblet til et mobilnettverk i stedet for WiFi", + "slow_network_warning": "Du er koblet til et tregt nettverk", "msg_operation_completed": "Drift fullført", "msg_ok_delete_db": "Alle lagrede utgaver er slettet", "msg_download_rss": "Laster ned nye artikler...", @@ -271387,6 +271444,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Indien u alle edities automatisch wilt downloaden om offline te kunnen bekijken, druk dan op de knop 'Meer' -> 'Instellingen' -> Selecteer 'Wifi mode' als netwerkmodus", "offline_download_dialog": "Wilt u de volledige uitgave downloaden om offline te kunnen lezen?", "mobile_network_warning": "U bent verbonden met een mobiel netwerk in plaats van WiFi", + "slow_network_warning": "U bent verbonden met een langzaam netwerk", "msg_operation_completed": "Bewerking voltooid", "msg_ok_delete_db": "Alle opgeslagen edities zijn verwijderd", "msg_download_rss": "Nieuwe artikelen downloaden...", @@ -271495,7 +271553,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Voortzetting", "login_failed": "Inloggen mislukt", "login_no_email": "Kan niet inloggen: geen e-mail aan uw sociale account gekoppeld" -}; +} +; },2104,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -271757,6 +271816,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Gebruikerstip: Indien u alle edities automatisch wilt downloaden om offline te kunnen bekijken, druk dan op de knop 'Meer' -> 'Instellingen' -> Selecteer 'Wifi mode' als netwerkmodus", "offline_download_dialog": "Wilt u de volledige uitgave downloaden om offline te kunnen lezen?", "mobile_network_warning": "U bent verbonden met een mobiel netwerk in plaats van WiFi", + "slow_network_warning": "U bent verbonden met een langzaam netwerk", "msg_operation_completed": "Bewerking voltooid", "msg_ok_delete_db": "Alle opgeslagen edities zijn verwijderd", "msg_download_rss": "Nieuwe artikelen downloaden...", @@ -271865,7 +271925,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Voortzetting", "login_failed": "Inloggen mislukt", "login_no_email": "Kan niet inloggen: geen e-mail aan uw sociale account gekoppeld" -}; +} +; },2105,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -272127,6 +272188,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download": "Hvis du vil laste ned alle utgåver automatisk for offline lesing, velger du 'Meir' > 'Innstillingar' > 'Frakoblet modus' som foretrukket Nettverksinnstilling", "offline_download_dialog": "Ønsker du å laste ned hele utgåven for offline lesing?", "mobile_network_warning": "Du er koblet til et mobilnettverk i stedet for WiFi", + "slow_network_warning": "Du er koblet til et tregt nettverk", "msg_operation_completed": "Drift fullført", "msg_ok_delete_db": "Alle lagrede utgaver er slettet", "msg_download_rss": "Laster ned nye artikler...", @@ -272233,8 +272295,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Fortsettelse", "login_failed": "Innlogging mislyktes", "login_no_email": "Kan ikke logge inn: Ingen e -post tilknyttet din sosiale konto" -} -; +}; },2106,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -272494,6 +272555,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download_title": "Dica do Utilizador", "user_tip_download": "Para descarregar automaticamente todas as edições para leitura offline, seleccione 'Mais' > 'Configurações' > 'Offline' como a sua configuração de rede preferida", "mobile_network_warning": "Está ligado a uma rede móvel em vez de WiFi", + "slow_network_warning": "Você está conectado a uma rede lenta", "msg_operation_completed": "Operação concluída", "msg_ok_delete_db": "Todas as edições guardadas foram eliminadas", "msg_font_scaling": "Quer manter este parâmetro dentro desta aplicação?", @@ -272620,7 +272682,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Continuação", "login_failed": "Falha no login", "login_no_email": "Incapaz de fazer login: nenhum e-mail associado à sua conta social" -}; +} +; },2107,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -272880,6 +272943,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "user_tip_download_title": "Dica do Utilizador", "user_tip_download": "Para descarregar automaticamente todas as edições para leitura offline, seleccione 'Opções' > 'Definições' > 'Offline' como a sua configuração de rede preferida", "mobile_network_warning": "Está ligado a uma rede móvel em vez de WiFi", + "slow_network_warning": "Você está conectado a uma rede lenta", "msg_operation_completed": "Operação concluída", "msg_ok_delete_db": "Todas as edições guardadas foram eliminadas", "msg_font_scaling": "Quer manter este parâmetro dentro desta aplicação?", @@ -273008,7 +273072,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Continuação", "login_failed": "Falha no login", "login_no_email": "Incapaz de fazer login: nenhum e-mail associado à sua conta social" -}; +} +; },2108,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -273262,6 +273327,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "vertical_job_location_hint": "Selectați o locație", "vertical_job_text_hint": "Introduceți un cuvânt cheie pentru căutare", "mobile_network_warning": "Sunteți conectat la o rețea mobilă în loc de WiFi", + "slow_network_warning": "Sunteți conectat la o rețea lentă", "msg_operation_completed": "Operațiunea finalizată", "msg_ok_delete_db": "Toate edițiile salvate au fost șterse", "msg_download_rss": "Se descarcă articole noi...", @@ -273369,7 +273435,8 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "pj_continuation": "Continuare", "login_failed": "Autentificare eșuată", "login_no_email": "Imposibil de autentificat: Nu există niciun e-mail asociat contului dvs. social" -}; +} +; },2109,[]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { @@ -273537,6 +273604,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "max_salary": "Največja plača", "min_salary": "Najmanjša plača", "mobile_network_warning": "Povezani ste z mobilnim omrežjem namesto z omrežjem WiFi", + "slow_network_warning": "Povezani ste s počasnim omrežjem", "msg_entering_section": "Vstopate v razdelek {{section}}", "msg_available_next_startup": "Ta konfiguracija bo na voljo ob naslednjem zagonu", "msg_clear_cache": "Počistite predpomnilnik", @@ -273930,6 +273998,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "max_salary": "Max. lön", "min_salary": "Min. lön", "mobile_network_warning": "Du är ansluten till ett mobilnätverk istället för WiFi", + "slow_network_warning": "Du är ansluten till ett långsamt nätverk", "msg_available_next_startup": "Denna konfiguration kommer att finnas tillgänglig nästa start", "msg_clear_cache": "Rensa cache", "msg_clear_favorites": "Radera favoriter", @@ -281161,8 +281230,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _classCallCheck2.default)(this, BlurImage); _this = _callSuper(this, BlurImage, [props]); + var defaultHeight = props.height, + style = props.style; + + var height = _$$_REQUIRE(_dependencyMap[10]).CssUtils.getAttributeFromStyle("height", style, defaultHeight, true); + + _this.aspectRatioRange = _$$_REQUIRE(_dependencyMap[10]).CssUtils.getAttributeFromStyle("aspectRatioDoNotBlurRange", style, [1, 1.75], true); + _this.adaptHeight = _$$_REQUIRE(_dependencyMap[10]).CssUtils.getAttributeFromStyle("adaptHeightIfOutOfRange", style, [false, true], true); _this.onLayout = _this._onLayout.bind(_this); _this.state = { + height: height, loading: true, enableBlur: false }; @@ -281173,31 +281250,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(BlurImage, [{ key: "_getBackgroundImage", value: function _getBackgroundImage(uri) { - var _this2 = this; - var _this$props = this.props, - height = _this$props.height, blurRadius = _this$props.blurRadius, - style = _this$props.style; - var enableBlur = this.state.enableBlur; - var imageStyle = [{ - height: height, - width: null, - flex: 1 - }, style]; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_imageComponent.default, { - style: imageStyle, + style = _this$props.style, + onRendered = _this$props.onRendered; + var _this$state = this.state, + height = _this$state.height, + enableBlur = _this$state.enableBlur; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_imageComponent.default, { + style: [{ + flex: 1, + width: null + }, style, { + height: height + }], source: { uri: uri }, resizeMode: "cover", - onLoadEnd: function onLoadEnd() { - var onRendered = _this2.props.onRendered; - - if (onRendered) { - onRendered(); - } - }, + onLoadEnd: onRendered, blurRadius: enableBlur ? blurRadius : 0 }); } @@ -281205,21 +281276,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getForegroundImage", value: function _getForegroundImage(uri) { var _this$props2 = this.props, - height = _this$props2.height, style = _this$props2.style, onImageError = _this$props2.onImageError; - var enableBlur = this.state.enableBlur; - var imageStyle = [{ - height: height, - width: null, - position: "absolute", - top: 0, - start: 0, - end: 0 - }, style]; - return enableBlur ? (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_imageComponent.default, { + var _this$state2 = this.state, + height = _this$state2.height, + enableBlur = _this$state2.enableBlur; + + if (!enableBlur) { + return null; + } + + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_imageComponent.default, { resizeMethod: "scale", - style: imageStyle, + style: [{ + position: "absolute", + top: 0, + start: 0, + end: 0, + width: null + }, style, { + height: height + }], source: { uri: uri }, @@ -281229,83 +281306,100 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onImageError(); } } - }) : null; + }); } }, { key: "_onLayout", value: function _onLayout(_ref) { - var _this3 = this; + var _this2 = this; var nativeEvent = _ref.nativeEvent; - var image = this.props.image; + var _this$props3 = this.props, + image = _this$props3.image, + onHeightChange = _this$props3.onHeightChange; var _nativeEvent$layout = nativeEvent.layout, containerWidth = _nativeEvent$layout.width, containerHeight = _nativeEvent$layout.height; + var newState = { + loading: false + }; (0, _imageComponent.getSize)(image, function (imageWidth, imageHeight) { - var enableBlur = false; + var imageRatio = imageWidth / imageHeight; - if (imageWidth <= imageHeight) { - enableBlur = true; - } else { - var scaleWidthFactor = containerWidth / imageWidth; - var scaleHeightFactor = containerHeight / imageHeight; + var ratioLowerOrEqualThan = Array.isArray(_this2.aspectRatioRange) && !_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(_this2.aspectRatioRange[0]) && imageRatio <= _this2.aspectRatioRange[0]; - if (scaleWidthFactor > 2 || scaleHeightFactor > 2) { - enableBlur = true; - } else { - var scaledHeight = imageHeight * scaleWidthFactor; - var heightDiff = scaledHeight - containerHeight; + var upperBoundIndex = _this2.aspectRatioRange.length - 1; - if (heightDiff > 0 && heightDiff / scaledHeight > 0.5) { - enableBlur = true; - } + var ratioGreateOrEqualThan = Array.isArray(_this2.aspectRatioRange) && !_$$_REQUIRE(_dependencyMap[10]).JSUtils.isNull(_this2.aspectRatioRange[upperBoundIndex]) && imageRatio >= _this2.aspectRatioRange[upperBoundIndex]; + + if (ratioLowerOrEqualThan || ratioGreateOrEqualThan) { + var boundIndex = ratioLowerOrEqualThan ? 0 : 1; + + var needsAdaptHeight = Array.isArray(_this2.adaptHeight) && _this2.adaptHeight[boundIndex]; + + if (needsAdaptHeight) { + var height = containerWidth / imageRatio; + onHeightChange == null ? undefined : onHeightChange(height); + newState.height = height; } + + newState.enableBlur = !needsAdaptHeight; + + _this2.setState(newState); + + return; } - _this3.setState({ - loading: false, - enableBlur: enableBlur - }); + var scaleWidthFactor = containerWidth / imageWidth; + var scaleHeightFactor = containerHeight / imageHeight; + var scaledHeight = imageHeight * scaleWidthFactor; + var heightDiff = scaledHeight - containerHeight; + newState.enableBlur = scaleWidthFactor > 2 || scaleHeightFactor > 2 || heightDiff > 0 && heightDiff / scaledHeight > 0.5; + + _this2.setState(newState); }, function () { - _this3.setState({ - loading: false - }); + _this2.setState(newState); }); } }, { key: "_getImage", value: function _getImage(uri) { - var _this$props3 = this.props, - onImagePress = _this$props3.onImagePress, - height = _this$props3.height; + var onImagePress = this.props.onImagePress; + var height = this.state.height; + var Images = [this._getBackgroundImage(uri), this._getForegroundImage(uri)]; if (onImagePress) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.TouchableOpacity, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.TouchableOpacity, { style: { height: height }, onPress: onImagePress, - children: [this._getBackgroundImage(uri), this._getForegroundImage(uri)] + children: Images }); } - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { - children: [this._getBackgroundImage(uri), this._getForegroundImage(uri)] + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + children: Images }); } }, { key: "render", value: function render() { - var _this$props4 = this.props, - image = _this$props4.image, - height = _this$props4.height; - var loading = this.state.loading; - return !loading ? this._getImage(image) : (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: { - height: height - }, - onLayout: this.onLayout - }); + var image = this.props.image; + var _this$state3 = this.state, + loading = _this$state3.loading, + height = _this$state3.height; + + if (loading) { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: { + height: height + }, + onLayout: this.onLayout + }); + } + + return this._getImage(image); } }]); }(_react.default.Component); @@ -281317,13 +281411,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onRendered: _propTypes.default.func, onImagePress: _propTypes.default.func, onImageError: _propTypes.default.func, + onHeightChange: _propTypes.default.func, style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) }; BlurImage.defaultProps = { height: 300, blurRadius: 10 }; -},2155,[3,6,7,11,13,14,582,16,18,588,179]); +},2155,[3,6,7,11,13,14,582,16,18,588,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -282455,19 +282550,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _RssContentManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var api = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); + var _downloadUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _downloadUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _Resource = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _Resource = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var api = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _hintKeys = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _hintKeys = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _RssContentManager = _$$_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); } @@ -282877,12 +282972,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var result = []; var content = yield _RssContentManager.default.getCategoryContent(); content.forEach(function (item) { + var name = item.label, + count = item.count, + image = item.image; + var images = image.split("#").filter(function (element) { + return element !== ""; + }); result.push({ - name: item.label, - count: item.count, - image: item.image.split("#").find(function (element) { - return element !== ""; - }) + name: name, + count: count, + images: images }); }); return result; @@ -283052,7 +283151,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssContentHelper.ERROR = -1; RssContentHelper.NO_NEW_ITEMS_AVAILABLE = 0; RssContentHelper.NEW_ITEMS_AVAILABLE = 1; -},2161,[3,270,6,7,2162,2163,586,566,2094,436,2067,2068,564,438,2164]); +},2161,[3,270,6,7,436,586,566,2094,2162,2067,2163,2068,564,438,2164]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getJsonDbUpdate = getJsonDbUpdate; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _axios = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + function getJsonDbUpdate(_x, _x2) { + return _getJsonDbUpdate.apply(this, arguments); + } + + function _getJsonDbUpdate() { + _getJsonDbUpdate = (0, _asyncToGenerator2.default)(function* (newestEntry, categoryIds) { + var _global$getRSSActiveP = global.getRSSActivePSetup(), + baseRssUpdateURL = _global$getRSSActiveP.baseRssUpdateURL; + + if (categoryIds && categoryIds.length) { + baseRssUpdateURL += "&catIds=" + categoryIds.join(); + } + + baseRssUpdateURL += "&newestEntry=" + newestEntry; + var response = yield _axios.default.get(baseRssUpdateURL); + return response.data; + }); + return _getJsonDbUpdate.apply(this, arguments); + } +},2162,[3,270,408]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -283493,37 +283622,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) );"] }]; -},2162,[3,270,6,7,861,566,438,2156]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getJsonDbUpdate = getJsonDbUpdate; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _axios = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - function getJsonDbUpdate(_x, _x2) { - return _getJsonDbUpdate.apply(this, arguments); - } - - function _getJsonDbUpdate() { - _getJsonDbUpdate = (0, _asyncToGenerator2.default)(function* (newestEntry, categoryIds) { - var _global$getRSSActiveP = global.getRSSActivePSetup(), - baseRssUpdateURL = _global$getRSSActiveP.baseRssUpdateURL; - - if (categoryIds && categoryIds.length) { - baseRssUpdateURL += "&catIds=" + categoryIds.join(); - } - - baseRssUpdateURL += "&newestEntry=" + newestEntry; - var response = yield _axios.default.get(baseRssUpdateURL); - return response.data; - }); - return _getJsonDbUpdate.apply(this, arguments); - } -},2163,[3,270,408]); +},2163,[3,270,6,7,861,566,438,2156]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -289627,7 +289726,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, children: [item.image && !itemAction.hasPropertyHideImageInCardMode() ? (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[18]).Css, { - classes: ["tile-card-image-blur"], + classes: ["rss-image-blur", "tile-card-image-blur"], children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_blurImageComponent.default, { image: item.image, style: _card.default.image, @@ -290896,21 +290995,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); var _reactNativeLinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + var _RssActionManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _cardEpaper = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _RssActionManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12])); - var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _cardEpaper = _interopRequireWildcard(_$$_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); } @@ -290937,7 +291036,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function _getImage(_ref) { var image = _ref.image; return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[16]).Css, { - classes: ["title-image", "tile-card-image", "tile-card-image-epaper"], + classes: ["rss-image-blur", "title-image", "tile-card-image", "tile-card-image-epaper"], children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_blurImageComponent.default, { image: image, style: _cardEpaper.default.image, @@ -291021,7 +291120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2197,[3,6,7,11,13,14,16,18,582,1379,816,2198,2086,2155,2143,179,819,2189,438,928]); +},2197,[3,6,7,11,13,14,582,16,18,1379,2086,2155,816,2198,2143,179,819,2189,438,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -301667,9 +301766,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function NewsmemoryNavigator(props) { var startupNewsmemoryScreen = props.startupNewsmemoryScreen, tab = props.tab; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).CustomNavigationContainer, { + + var _Css$getStyleObjByCss = _$$_REQUIRE(_dependencyMap[10]).Css.getStyleObjByCssClasses(["navigation-header"]), + _Css$getStyleObjByCss2 = _Css$getStyleObjByCss.backgroundColor, + backgroundColor = _Css$getStyleObjByCss2 === undefined ? _$$_REQUIRE(_dependencyMap[10]).Css.getDefaultBackgroundColor() : _Css$getStyleObjByCss2; + + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).CustomNavigationContainer, { independent: true, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(Stack.Navigator, Object.assign({}, _NavigationService.default.getStackNavigatorDefaultProps(), { + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(Stack.Navigator, Object.assign({}, _NavigationService.default.getStackNavigatorDefaultProps(), { screenOptions: Object.assign({}, _NavigationService.default.getStackScreenOptions(), { gestureEnabled: false }), @@ -301681,13 +301785,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var name = _navigationUtils.default.getActiveRouteFromState(data.state); if (name && !SHORTCUT_ENABLE_SCREENS.includes(name)) { - _$$_REQUIRE(_dependencyMap[12]).ShortcutManager.disable(); + _$$_REQUIRE(_dependencyMap[13]).ShortcutManager.disable(); } else { - _$$_REQUIRE(_dependencyMap[12]).ShortcutManager.enable(); + _$$_REQUIRE(_dependencyMap[13]).ShortcutManager.enable(); } } }, - children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: "LandingPageScreen", options: { headerShown: false, @@ -301695,11 +301799,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gesturesEnabled: false }, children: function children(navProps) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_landingPageScreen.default, Object.assign({}, navProps, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_landingPageScreen.default, Object.assign({}, navProps, { destinationScreen: startupNewsmemoryScreen })); } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: "EpaperModeSelectionScreen", component: _epaperModeSelectionScreen.default, options: { @@ -301707,7 +301811,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e headerTransparent: true, gesturesEnabled: false } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: _$$_REQUIRE(_dependencyMap[9]).NEWSMEMORY_SCREENS_NAME.REACT, options: { headerShown: false, @@ -301715,17 +301819,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gesturesEnabled: false }, children: function children(navProps) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[13]).NewsmemoryScreen, Object.assign({}, navProps, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[14]).NewsmemoryScreen, Object.assign({}, navProps, { tab: tab })); } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: "GeneralSettingsScreen", - component: _$$_REQUIRE(_dependencyMap[14]).GeneralSettingsScreen, + component: _$$_REQUIRE(_dependencyMap[15]).GeneralSettingsScreen, options: function options(navProps) { return { header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(CommonHeader.ActionBar, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(CommonHeader.ActionBar, { + backgroundColor: backgroundColor, left: CommonHeader._getHeaderLeftButtonsBackButtonOnly(navProps), center: CommonHeader._getLogo(), right: CommonHeader._getEmptyPlaceHolders() @@ -301734,14 +301839,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gesturesEnabled: false }; } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: _$$_REQUIRE(_dependencyMap[9]).NEWSMEMORY_SCREENS_NAME.HTML5, - component: _$$_REQUIRE(_dependencyMap[15]).NewsmemoryHTML5Screen, + component: _$$_REQUIRE(_dependencyMap[16]).NewsmemoryHTML5Screen, options: function options(_ref2) { var navProps = _ref2.navProps; return { header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(CommonHeader.ActionBar, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(CommonHeader.ActionBar, { + backgroundColor: backgroundColor, left: CommonHeader._getHeaderLeftButtonsBackButtonOnly(navProps, function () { _NavigationService.default.main.reset("RssNavigator"); }), @@ -301752,13 +301858,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gesturesEnabled: false }; } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: "WebScreen", options: function options(navProps) { return { headerStyle: CommonHeader._getStyle(navProps), header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(CommonHeader.ActionBar, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(CommonHeader.ActionBar, { + backgroundColor: backgroundColor, left: CommonHeader._getHeaderLeftButtonsBackButtonOnly(navProps), center: CommonHeader._getLogo(navProps), right: CommonHeader._getSharedHeaderRightButton(navProps) @@ -301768,13 +301875,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }, children: function children(navProps) { - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_webScreen.default, Object.assign({}, navProps, { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_webScreen.default, Object.assign({}, navProps, { considerSafeArea: false })); } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Stack.Screen, { + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Stack.Screen, { name: "GalleryScreen", - component: _$$_REQUIRE(_dependencyMap[16]).GalleryScreen, + component: _$$_REQUIRE(_dependencyMap[17]).GalleryScreen, options: { headerShown: false, gestureEnabled: false @@ -301783,7 +301890,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })) }); } -},2260,[3,16,2182,2149,1947,2261,2282,2283,2285,866,179,2291,2057,2292,2420,2443,2445]); +},2260,[3,16,2182,2149,1947,2261,2282,2283,2285,866,819,179,2291,2057,2292,2420,2443,2445]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -306425,19 +306532,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _barsComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _Paywall = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _LiveConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _Paywall = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12])); + + var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); var _excluded = ["backgroundColor"]; @@ -306446,35 +306555,32 @@ __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; } function _getStyle(props) { - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props), + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props), _getNavigationParams$ = _getNavigationParams.isArchive, isArchive = _getNavigationParams$ === undefined ? false : _getNavigationParams$, _getNavigationParams$2 = _getNavigationParams.isAccessibilityMode, isAccessibilityMode = _getNavigationParams$2 === undefined ? false : _getNavigationParams$2; - var style = [_$$_REQUIRE(_dependencyMap[14]).Css.getStyleByCssClasses(["navigation-header"])]; + var style = [_$$_REQUIRE(_dependencyMap[15]).Css.getStyleByCssClasses(["navigation-header"])]; if (isArchive) { - style.push(_$$_REQUIRE(_dependencyMap[14]).Css.getStyleByCssClasses(["navigation-archive-header"])); + style.push(_$$_REQUIRE(_dependencyMap[15]).Css.getStyleByCssClasses(["navigation-archive-header"])); } if (isAccessibilityMode) { - style.push(_$$_REQUIRE(_dependencyMap[14]).Css.getStyleByCssClasses(["navigation-accessibility-header"])); + style.push(_$$_REQUIRE(_dependencyMap[15]).Css.getStyleByCssClasses(["navigation-accessibility-header"])); } return style; } function _getLogo(props) { - var _useTecnaviaSafeAreaF = (0, _$$_REQUIRE(_dependencyMap[15]).useTecnaviaSafeAreaFrame)(), + var _useTecnaviaSafeAreaF = (0, _$$_REQUIRE(_dependencyMap[16]).useTecnaviaSafeAreaFrame)(), width = _useTecnaviaSafeAreaF.width; - var isIPhone = _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isiPhone(); + var buttonSize = _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isiPhone() ? _$$_REQUIRE(_dependencyMap[18]).BUTTON_SIZE_IOS_PHONE : _$$_REQUIRE(_dependencyMap[18]).BUTTON_SIZE; - var buttonSize = isIPhone ? _$$_REQUIRE(_dependencyMap[17]).BUTTON_SIZE_IOS_PHONE : _$$_REQUIRE(_dependencyMap[17]).BUTTON_SIZE; - var paddingLeft = isIPhone ? 5 : 0; - - var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props), + var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props), _getNavigationParams3 = _getNavigationParams2.isArchive, isArchive = _getNavigationParams3 === undefined ? false : _getNavigationParams3, _getNavigationParams4 = _getNavigationParams2.isAccessibilityMode, @@ -306497,14 +306603,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses.push("navigation-accessibility-header-title"); } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[17]).styles.headerLogoParent, { - paddingLeft: paddingLeft, + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[18]).styles.headerLogoParent, { flexDirection: "row" }], - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Css, { classes: cssClasses, - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontText.default, { type: _fontText.Type.bold, style: { justifyContent: "center" @@ -306515,14 +306620,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - var logoWidth = width - buttonSize * 4 - paddingLeft; - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[17]).styles.headerLogoParent, { - paddingLeft: paddingLeft - }], - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { - classes: ["navigation-header-logo"], - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).LogoImage, { + var logoWidth = width - buttonSize * 4; + var logoClasses = ["navigation-header-logo"]; + + if (_LiveConfig.default.isEpaperSide()) { + logoClasses.push("navigation-epaper-header-logo"); + } else if (_LiveConfig.default.isRssSide()) { + logoClasses.push("navigation-rss-header-logo"); + } + + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.headerLogoParent, + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Css, { + classes: logoClasses, + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).LogoImage, { style: { flex: 1, width: logoWidth @@ -306534,22 +306645,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getEmptyPlaceHolders() { var number = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - var placeholderStyle = [_$$_REQUIRE(_dependencyMap[17]).styles.placeHolder]; + var placeholderStyle = [_$$_REQUIRE(_dependencyMap[18]).styles.placeHolder]; - if (_$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isiPhone()) { - placeholderStyle.push(_$$_REQUIRE(_dependencyMap[17]).styles.placeHolderIphone); + if (_$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isiPhone()) { + placeholderStyle.push(_$$_REQUIRE(_dependencyMap[18]).styles.placeHolderIphone); } var placeHolders = []; for (var i = 0; i < number; i++) { - placeHolders.push((0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNative.View, { + placeHolders.push((0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { style: placeholderStyle }, "placeholder_" + i)); } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[17]).styles.container, + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.container, children: placeHolders }, "btn_placeholders"); } @@ -306562,26 +306673,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor = rssIndexConfig.supportColor; } - return supportColor || _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultForegroundColor(); + return supportColor || _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultForegroundColor(); } function _getHeaderLeftButtonsBackButtonOnly(props, _onPress) { var _global$getRssIndex = global.getRssIndex(), buttonBackgroundColor = _global$getRssIndex.buttonBackgroundColor; - var buttonStyle = [_$$_REQUIRE(_dependencyMap[17]).styles.button, { - backgroundColor: _$$_REQUIRE(_dependencyMap[14]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor() : buttonBackgroundColor + var buttonStyle = [_$$_REQUIRE(_dependencyMap[18]).styles.button, { + backgroundColor: _$$_REQUIRE(_dependencyMap[15]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor() : buttonBackgroundColor }]; - var iconStyle = [_$$_REQUIRE(_dependencyMap[17]).styles.icon, { + var iconStyle = [_$$_REQUIRE(_dependencyMap[18]).styles.icon, { color: _getForegroundColor() }]; - if (_$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isiPhone()) { - buttonStyle.push(_$$_REQUIRE(_dependencyMap[17]).styles.buttonIphone); - iconStyle.push(_$$_REQUIRE(_dependencyMap[17]).styles.iconIphone); + if (_$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isiPhone()) { + buttonStyle.push(_$$_REQUIRE(_dependencyMap[18]).styles.buttonIphone); + iconStyle.push(_$$_REQUIRE(_dependencyMap[18]).styles.iconIphone); } - var _getNavigationParams7 = (0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props), + var _getNavigationParams7 = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props), _getNavigationParams8 = _getNavigationParams7.backAccessibilityLabel, backAccessibilityLabel = _getNavigationParams8 === undefined ? global.strings("btn_back") : _getNavigationParams8, _getNavigationParams9 = _getNavigationParams7.isArchive, @@ -306598,11 +306709,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses.push("navigation-accessibility-icon", "navigation-accessibility-back-icon"); } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).HeaderButton, { + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).HeaderButton, { parentStyle: buttonStyle, style: iconStyle, - name: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isRTL() ? "arrow-forward" : "arrow-back", - type: _$$_REQUIRE(_dependencyMap[20]).TecnaviaIconType.MATERIAL_ICONS, + name: _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isRTL() ? "arrow-forward" : "arrow-back", + type: _$$_REQUIRE(_dependencyMap[21]).TecnaviaIconType.MATERIAL_ICONS, accessibilityLabel: accessibilityLabel, cssClasses: cssClasses, onPress: function onPress() { @@ -306632,11 +306743,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e placeHolderCounter += 1; } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[17]).styles.container, - children: [!isSidebar && showDrawerButton ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).DrawerButton, { + return (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.container, + children: [!isSidebar && showDrawerButton ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).DrawerButton, { navigation: navigation - }) : null, showHomeButton ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).HomeButton, { + }) : null, showHomeButton ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).HomeButton, { navigation: navigation }) : null, _getEmptyPlaceHolders(placeHolderCounter)] }); @@ -306649,23 +306760,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRssIndex3 = global.getRssIndex(), supportColor = _global$getRssIndex3.supportColor; - var cssKey = _$$_REQUIRE(_dependencyMap[16]).StringUtils.getKeyFromText(displayName); + var cssKey = _$$_REQUIRE(_dependencyMap[17]).StringUtils.getKeyFromText(displayName); - var color = _$$_REQUIRE(_dependencyMap[14]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultForegroundColor() : _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor(); - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { + var color = _$$_REQUIRE(_dependencyMap[15]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultForegroundColor() : _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor(); + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Css, { classes: ["rss-button", "rss-custom-action-bar-button"], cssKey: cssKey, - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_reactNative.TouchableOpacity, { - style: [_$$_REQUIRE(_dependencyMap[17]).styles.customActionBarButton, { + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.TouchableOpacity, { + style: [_$$_REQUIRE(_dependencyMap[18]).styles.customActionBarButton, { backgroundColor: supportColor }], onPress: function onPress() { - return (0, _$$_REQUIRE(_dependencyMap[21]).performNavigation)(navigation, item); + return (0, _$$_REQUIRE(_dependencyMap[22]).performNavigation)(navigation, item); }, - children: [image ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { + children: [image ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Css, { classes: ["rss-button-icon", "rss-custom-action-bar-button-icon"], cssKey: cssKey, - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_imageIconChooserComponent.default, { + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_imageIconChooserComponent.default, { forceRNComponent: true, style: { height: 25 @@ -306677,11 +306788,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: "contain", tintColor: color }) - }) : null, (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[14]).Css, { + }) : null, (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Css, { classes: ["rss-button-icon-text", "rss-custom-action-bar-button-text"], cssKey: cssKey, - children: (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_fontText.default, { - style: [_$$_REQUIRE(_dependencyMap[17]).styles.customActionBarButtonText, { + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[18]).styles.customActionBarButtonText, { color: color }], children: displayName @@ -306701,8 +306812,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _getEmptyPlaceHolders(); } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[17]).styles.container, + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.container, children: actionBarItems.map(function (item) { return _getRSSCustomActionBarButton(navigation, item); }) @@ -306714,18 +306825,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var rssIndexConfig = global.getRssIndex(); var showLayoutButton = rssIndexConfig.needToShowLayoutButton(); var actionBarItems = rssIndexConfig.actionBarItems; - return (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[17]).styles.container, - children: [(0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).SearchButton, { + return (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.container, + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).SearchButton, { navigation: navigation - }), showLayoutButton ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).LayoutButton, {}) : null, actionBarItems.map(function (item) { + }), showLayoutButton ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).LayoutButton, {}) : null, actionBarItems.map(function (item) { return _getRSSCustomActionBarButton(navigation, item); })] }); } function _getSharedHeaderRightButton(props) { - var _getNavigationParams11 = (0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props), + var _getNavigationParams11 = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props), _getNavigationParams12 = _getNavigationParams11.url, url = _getNavigationParams12 === undefined ? "" : _getNavigationParams12, _getNavigationParams13 = _getNavigationParams11.shareButtonIsEnabled, @@ -306735,7 +306846,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _getNavigationParams15 = _getNavigationParams11.externalBrowserIsEnabled, externalBrowserIsEnabled = _getNavigationParams15 === undefined ? true : _getNavigationParams15; - var _getNavigationParams16 = (0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props), + var _getNavigationParams16 = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props), _getNavigationParams17 = _getNavigationParams16.isArchive, isArchive = _getNavigationParams17 === undefined ? false : _getNavigationParams17, _getNavigationParams18 = _getNavigationParams16.isAccessibilityMode, @@ -306750,16 +306861,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRssIndex5 = global.getRssIndex(), buttonBackgroundColor = _global$getRssIndex5.buttonBackgroundColor; - var buttonStyle = [_$$_REQUIRE(_dependencyMap[17]).styles.button, { - backgroundColor: _$$_REQUIRE(_dependencyMap[14]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor() : buttonBackgroundColor + var buttonStyle = [_$$_REQUIRE(_dependencyMap[18]).styles.button, { + backgroundColor: _$$_REQUIRE(_dependencyMap[15]).Css.isDarkTheme() ? _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor() : buttonBackgroundColor }]; - var iconStyle = [_$$_REQUIRE(_dependencyMap[17]).styles.icon, { + var iconStyle = [_$$_REQUIRE(_dependencyMap[18]).styles.icon, { color: _getForegroundColor() }]; - if (_$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isiPhone()) { - buttonStyle.push(_$$_REQUIRE(_dependencyMap[17]).styles.buttonIphone); - iconStyle.push(_$$_REQUIRE(_dependencyMap[17]).styles.iconIphone); + if (_$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isiPhone()) { + buttonStyle.push(_$$_REQUIRE(_dependencyMap[18]).styles.buttonIphone); + iconStyle.push(_$$_REQUIRE(_dependencyMap[18]).styles.iconIphone); } if (shareButtonIsEnabled || printButtonIsEnabled || externalBrowserIsEnabled) { @@ -306775,11 +306886,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses.push("navigation-accessibility-icon", "navigation-accessibility-browser-icon"); } - buttons.push((0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).HeaderButton, { + buttons.push((0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).HeaderButton, { parentStyle: buttonStyle, style: iconStyle, - name: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isIOS() ? "apple-safari" : "google-chrome", - type: _$$_REQUIRE(_dependencyMap[20]).TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, + name: _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isIOS() ? "apple-safari" : "google-chrome", + type: _$$_REQUIRE(_dependencyMap[21]).TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, cssClasses: cssClasses, accessibilityLabel: accessibilityLabel, onPress: function onPress() { @@ -306799,11 +306910,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _cssClasses.push("navigation-accessibility-icon", "navigation-accessibility-share-icon"); } - buttons.push((0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).HeaderButton, { + buttons.push((0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).HeaderButton, { parentStyle: buttonStyle, style: iconStyle, name: "share", - type: _$$_REQUIRE(_dependencyMap[20]).TecnaviaIconType.MATERIAL_ICONS, + type: _$$_REQUIRE(_dependencyMap[21]).TecnaviaIconType.MATERIAL_ICONS, cssClasses: _cssClasses, onPress: function onPress() { _reactNative.Share.share({ @@ -306822,11 +306933,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _cssClasses2.push("navigation-accessibility-icon", "navigation-accessibility-print-icon"); } - buttons.push((0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_$$_REQUIRE(_dependencyMap[19]).HeaderButton, { + buttons.push((0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[20]).HeaderButton, { parentStyle: buttonStyle, style: iconStyle, name: "print", - type: _$$_REQUIRE(_dependencyMap[20]).TecnaviaIconType.MATERIAL_ICONS, + type: _$$_REQUIRE(_dependencyMap[21]).TecnaviaIconType.MATERIAL_ICONS, cssClasses: _cssClasses2, onPress: function onPress() { _tecnaviaFileUtils.default.printFile(url); @@ -306842,9 +306953,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function HeaderHeightConsumer(props) { var children = props.children; - var frame = (0, _$$_REQUIRE(_dependencyMap[15]).useTecnaviaSafeAreaFrame)(); - var insets = (0, _$$_REQUIRE(_dependencyMap[15]).useTecnaviaSafeAreaInsets)(); - var headerHeight = (0, _$$_REQUIRE(_dependencyMap[22]).getDefaultHeaderHeight)(frame, false, insets.top); + var frame = (0, _$$_REQUIRE(_dependencyMap[16]).useTecnaviaSafeAreaFrame)(); + var insets = (0, _$$_REQUIRE(_dependencyMap[16]).useTecnaviaSafeAreaInsets)(); + var headerHeight = (0, _$$_REQUIRE(_dependencyMap[23]).getDefaultHeaderHeight)(frame, false, insets.top); if (typeof children === "function") { return children(headerHeight); @@ -306854,7 +306965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function _getGradient(props, style) { - return (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_reactNativeLinearGradient.default, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNativeLinearGradient.default, Object.assign({ style: Object.assign({ position: "absolute", top: 0, @@ -306868,7 +306979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function ActionBar(props) { var _props$backgroundColo = props.backgroundColor, - backgroundColor = _props$backgroundColo === undefined ? _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor() : _props$backgroundColo, + backgroundColor = _props$backgroundColo === undefined ? _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor() : _props$backgroundColo, _props$left = props.left, left = _props$left === undefined ? null : _props$left, _props$center = props.center, @@ -306878,13 +306989,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style = props.style, considerSafeArea = props.considerSafeArea, considerSafeAreaTop = props.considerSafeAreaTop; - var insets = (0, _$$_REQUIRE(_dependencyMap[15]).useTecnaviaSafeAreaInsets)(); - var frame = (0, _$$_REQUIRE(_dependencyMap[15]).useTecnaviaSafeAreaFrame)(); - var shadow = _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isAndroid() ? { + var insets = (0, _$$_REQUIRE(_dependencyMap[16]).useTecnaviaSafeAreaInsets)(); + var frame = (0, _$$_REQUIRE(_dependencyMap[16]).useTecnaviaSafeAreaFrame)(); + var shadow = _$$_REQUIRE(_dependencyMap[17]).PlatformUtils.isAndroid() ? { elevation: 2 } : { marginBottom: 0.5, - shadowColor: _$$_REQUIRE(_dependencyMap[16]).colors.black, + shadowColor: _$$_REQUIRE(_dependencyMap[17]).colors.black, shadowOpacity: 0.75, shadowOffset: { height: 6, @@ -306892,12 +307003,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; - var _Css$getStyleObjByCss = _$$_REQUIRE(_dependencyMap[14]).Css.getStyleObjByCssClasses(["navigation-header-gradient"]), + var _Css$getStyleObjByCss = _$$_REQUIRE(_dependencyMap[15]).Css.getStyleObjByCssClasses(["navigation-header-gradient"]), gradientProps = _Css$getStyleObjByCss.backgroundColor, rest = (0, _objectWithoutProperties2.default)(_Css$getStyleObjByCss, _excluded); var hasGradient = typeof gradientProps === "object"; - var actionBar = (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_reactNative.View, { + var actionBar = (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { style: [Object.assign({ marginTop: considerSafeArea || considerSafeAreaTop ? insets.top : 0, marginLeft: considerSafeArea ? insets.left : 0, @@ -306916,11 +307027,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (considerSafeArea || considerSafeAreaTop) { var statusBarColor = style && style.backgroundColor || backgroundColor; - var navigationBarColor = _styleUtils.default.getNavigationBarColor() || _$$_REQUIRE(_dependencyMap[14]).Css.getDefaultBackgroundColor(); + var navigationBarColor = _styleUtils.default.getNavigationBarColor() || _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor(); var edges = considerSafeAreaTop ? ["top"] : ["top", "left", "right"]; - barComponent = (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_react.default.Fragment, { - children: [(0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_barsComponent.default, { + barComponent = (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_react.default.Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_barsComponent.default, { edges: edges, statusBarColor: statusBarColor, navigationBarColor: navigationBarColor @@ -306930,11 +307041,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } - return (0, _$$_REQUIRE(_dependencyMap[18]).jsxs)(_react.default.Fragment, { + return (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_react.default.Fragment, { children: [actionBar, barComponent] }); } -},2285,[3,4,16,18,1379,2284,1943,434,2235,566,1985,816,1976,2279,819,2262,438,2286,179,2287,1861,2160,926]); +},2285,[3,4,16,18,1379,2284,1920,1943,434,2235,566,1985,816,1976,2279,819,2262,438,2286,179,2287,1861,2160,926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -309450,6 +309561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.refreshEdition = this._refreshEdition.bind(this); this.updateCallback = this._updateCallback.bind(this); this.handleFailedOperations = this._handleFailedOperations.bind(this); + this.showFullDownloadWarningDialog = this._showFullDownloadWarningDialog.bind(this); this.onConnectionTypeListener = _$$_REQUIRE(_dependencyMap[32]).EventRegister.on(_events.default.ON_CONNECTIVITY_CHANGE, this.connectionTypeChange); this.onDownloadFullEditionListener = _$$_REQUIRE(_dependencyMap[32]).EventRegister.on(_events.default.NEWSMEMORY_DOWNLOAD_FULL_EDITION, this.downloadFullEdition); this.onDownloadResourceListener = _$$_REQUIRE(_dependencyMap[32]).EventRegister.on(_events.default.NEWSMEMORY_REQUEST_DOWNLOAD_IMAGE, this.downloadResource); @@ -309718,9 +309830,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_clearQueueThumbnail", value: function _clearQueueThumbnail() { - if (this.downloadManager) { - this.downloadManager.clearThumbnailQueue(); - } + var _this$downloadManager3; + + (_this$downloadManager3 = this.downloadManager) == null ? undefined : _this$downloadManager3.clearThumbnailQueue(); } }, { key: "_clearQueueHR", @@ -309745,23 +309857,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_restartQueueHR", value: function _restartQueueHR() { - var _this$downloadManager3; + var _this$downloadManager4; - (_this$downloadManager3 = this.downloadManager) == null ? undefined : _this$downloadManager3.restartHighResQueue(); + (_this$downloadManager4 = this.downloadManager) == null ? undefined : _this$downloadManager4.restartHighResQueue(); } }, { key: "_resumeQueueHR", value: function _resumeQueueHR() { - var _this$downloadManager4; + var _this$downloadManager5; - (_this$downloadManager4 = this.downloadManager) == null ? undefined : _this$downloadManager4.resumeHighResQueue(); + (_this$downloadManager5 = this.downloadManager) == null ? undefined : _this$downloadManager5.resumeHighResQueue(); } }, { key: "_pauseQueueHR", value: function _pauseQueueHR() { - var _this$downloadManager5; + var _this$downloadManager6; - (_this$downloadManager5 = this.downloadManager) == null ? undefined : _this$downloadManager5.pauseHighResQueue(); + (_this$downloadManager6 = this.downloadManager) == null ? undefined : _this$downloadManager6.pauseHighResQueue(); } }, { key: "_generatePNG", @@ -309872,7 +309984,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } try { - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); var edition = yield this.editionsManager.getEdition(dbIssue, dbEdition, dbSecret); if (!edition) { @@ -310078,7 +310190,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.reject(new Error("No editionsManager found")); } - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); return this.editionsManager.savePages(pages); }); @@ -310111,7 +310223,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.reject(new Error("No editionsManager found")); } - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); return this.editionsManager.insertPages(pages); }); @@ -310140,7 +310252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _removePages = (0, _asyncToGenerator2.default)(function* (newspaper, pages) { try { var dbFilename = newspaper.dbFilename; - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); yield this.editionsManager.removePages(pages); yield this.editionsManager.removeImagesForPages(pages); yield this.editionsManager.removeArticlesForPages(pages); @@ -310211,7 +310323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.reject(new Error("No editionsManager found")); } - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); return this.editionsManager.removeImagesForPages(pages); }); @@ -310244,7 +310356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.reject(new Error("No editionsManager found")); } - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); return this.editionsManager.removeImagesForPages(pages); }); @@ -310280,7 +310392,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Promise.reject(new Error("No editionsManager found")); } - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); return this.editionsManager.saveImages(images); } @@ -310343,15 +310455,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return result; }, {}); - promises = Object.keys(organizedImages).map(function (key) { - if (_this3.editionsManager) { - _this3.editionsManager.initDatabase(key); - return _this3.editionsManager.saveImages(organizedImages[key]); - } + if (this.editionsManager) { + promises = Object.keys(organizedImages).map(function () { + var _ref6 = (0, _asyncToGenerator2.default)(function* (key) { + try { + yield _this3.editionsManager.initDatabase(key); + return _this3.editionsManager.saveImages(organizedImages[key]); + } catch (e) {} + + return Promise.resolve(); + }); + + return function (_x32) { + return _ref6.apply(this, arguments); + }; + }()); + } - return Promise.resolve(); - }); this.imageToStoreList = []; } @@ -310369,7 +310490,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _getPageByFilename = (0, _asyncToGenerator2.default)(function* (dbFilename, filename) { try { - this.editionsManager.initDatabase(dbFilename); + yield this.editionsManager.initDatabase(dbFilename); var page = yield this.editionsManager.getPageByFilename(filename); return page; } catch (e) { @@ -310377,7 +310498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getPageByFilename(_x32, _x33) { + function getPageByFilename(_x33, _x34) { return _getPageByFilename.apply(this, arguments); } @@ -310402,7 +310523,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; }); - function getLatestIssue(_x34) { + function getLatestIssue(_x35) { return _getLatestIssue.apply(this, arguments); } @@ -310429,7 +310550,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return []; }); - function getEditions(_x35) { + function getEditions(_x36) { return _getEditions.apply(this, arguments); } @@ -310448,7 +310569,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return success; }); - function insertIssueDBIntoDatabases(_x36, _x37, _x38, _x39, _x40) { + function insertIssueDBIntoDatabases(_x37, _x38, _x39, _x40, _x41) { return _insertIssueDBIntoDatabases.apply(this, arguments); } @@ -310457,11 +310578,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "clearQueues", value: function clearQueues() { - var _this$downloadManager6; + var _this$downloadManager7; this.resetPageCounters(); this.resetPageHrCounters(); - (_this$downloadManager6 = this.downloadManager) == null ? undefined : _this$downloadManager6.clearQueues(); + (_this$downloadManager7 = this.downloadManager) == null ? undefined : _this$downloadManager7.clearQueues(); } }, { key: "_handleLastPageNumberAndArticle", @@ -310936,7 +311057,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }); - function downloadNewspaper(_x41, _x42) { + function downloadNewspaper(_x42, _x43) { return _downloadNewspaper.apply(this, arguments); } @@ -311104,13 +311225,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "downloadMultiZip", value: function () { var _downloadMultiZip = (0, _asyncToGenerator2.default)(function* (pages) { - var _this$downloadManager7; + var _this$downloadManager8; var priority = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return (_this$downloadManager7 = this.downloadManager) == null ? undefined : _this$downloadManager7.loadMultiZipInQueue(this.getCurrentNewspaper(), pages, false, priority); + return (_this$downloadManager8 = this.downloadManager) == null ? undefined : _this$downloadManager8.loadMultiZipInQueue(this.getCurrentNewspaper(), pages, false, priority); }); - function downloadMultiZip(_x43) { + function downloadMultiZip(_x44) { return _downloadMultiZip.apply(this, arguments); } @@ -311120,13 +311241,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "downloadSingleZip", value: function () { var _downloadSingleZip = (0, _asyncToGenerator2.default)(function* (page) { - var _this$downloadManager8; + var _this$downloadManager9; var priority = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return (_this$downloadManager8 = this.downloadManager) == null ? undefined : _this$downloadManager8.loadZipInQueue(this.getCurrentNewspaper(), page, false, priority); + return (_this$downloadManager9 = this.downloadManager) == null ? undefined : _this$downloadManager9.loadZipInQueue(this.getCurrentNewspaper(), page, false, priority); }); - function downloadSingleZip(_x44) { + function downloadSingleZip(_x45) { return _downloadSingleZip.apply(this, arguments); } @@ -311136,13 +311257,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "downloadHRImages", value: function () { var _downloadHRImages = (0, _asyncToGenerator2.default)(function* (page) { - var _this$downloadManager9; + var _this$downloadManager10; var priority = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return (_this$downloadManager9 = this.downloadManager) == null ? undefined : _this$downloadManager9.loadHRImagesInQueue(this.getCurrentNewspaper(), page, false, priority); + return (_this$downloadManager10 = this.downloadManager) == null ? undefined : _this$downloadManager10.loadHRImagesInQueue(this.getCurrentNewspaper(), page, false, priority); }); - function downloadHRImages(_x45) { + function downloadHRImages(_x46) { return _downloadHRImages.apply(this, arguments); } @@ -311152,13 +311273,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "downloadSingleImage", value: function () { var _downloadSingleImage = (0, _asyncToGenerator2.default)(function* (page, image) { - var _this$downloadManager10; + var _this$downloadManager11; var priority = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - return (_this$downloadManager10 = this.downloadManager) == null ? undefined : _this$downloadManager10.loadImageInQueue(this.getCurrentNewspaper(), page, image, false, priority); + return (_this$downloadManager11 = this.downloadManager) == null ? undefined : _this$downloadManager11.loadImageInQueue(this.getCurrentNewspaper(), page, image, false, priority); }); - function downloadSingleImage(_x46, _x47) { + function downloadSingleImage(_x47, _x48) { return _downloadSingleImage.apply(this, arguments); } @@ -311168,12 +311289,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "downloadThumbnailImageOnQueue", value: function () { var _downloadThumbnailImageOnQueue = (0, _asyncToGenerator2.default)(function* (page, image) { - var _this$downloadManager11; + var _this$downloadManager12; - return (_this$downloadManager11 = this.downloadManager) == null ? undefined : _this$downloadManager11.loadThumbnailInQueue(this.getCurrentNewspaper(), page, image); + return (_this$downloadManager12 = this.downloadManager) == null ? undefined : _this$downloadManager12.loadThumbnailInQueue(this.getCurrentNewspaper(), page, image); }); - function downloadThumbnailImageOnQueue(_x48, _x49) { + function downloadThumbnailImageOnQueue(_x49, _x50) { return _downloadThumbnailImageOnQueue.apply(this, arguments); } @@ -311182,9 +311303,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "clearThumbnailQueue", value: function clearThumbnailQueue() { - var _this$downloadManager12; + var _this$downloadManager13; - (_this$downloadManager12 = this.downloadManager) == null ? undefined : _this$downloadManager12.clearThumbnailQueue(); + (_this$downloadManager13 = this.downloadManager) == null ? undefined : _this$downloadManager13.clearThumbnailQueue(); } }, { key: "getCurrentVersionOfPage", @@ -311202,8 +311323,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var filename = page.filename; - return edition.getPages(true).find(function (_ref6) { - var currentFilename = _ref6.filename; + return edition.getPages(true).find(function (_ref7) { + var currentFilename = _ref7.filename; return currentFilename === filename; }); } @@ -311245,8 +311366,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var currentPage = currentPages[_i3]; var currentFilename = currentPage.filename; - if (!updatedPages.find(function (_ref7) { - var filename = _ref7.filename; + if (!updatedPages.find(function (_ref8) { + var filename = _ref8.filename; return currentFilename === filename; })) { pagesDeleted.push(currentPage); @@ -311275,15 +311396,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e updatedPage.setArticles(currentPage.getArticles()); var currentNewspaper = this.getCurrentNewspaper(); var edition = currentNewspaper == null ? undefined : currentNewspaper.getEditionModel(); - - if (edition) { - edition.updatePage(updatedPage); - } - + edition == null ? undefined : edition.updatePage(updatedPage); yield this.savePage(updatedPage); }); - function updatePageMetadata(_x50, _x51) { + function updatePageMetadata(_x51, _x52) { return _updatePageMetadata.apply(this, arguments); } @@ -311332,7 +311449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (e) {} }); - function replacePage(_x52, _x53) { + function replacePage(_x53, _x54) { return _replacePage.apply(this, arguments); } @@ -311377,7 +311494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } catch (e) {} }); - function addPage(_x54) { + function addPage(_x55) { return _addPage.apply(this, arguments); } @@ -311399,7 +311516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function retrieveArticlesForPages(_x55) { + function retrieveArticlesForPages(_x56) { return _retrieveArticlesForPages.apply(this, arguments); } @@ -311481,7 +311598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var onReset = function () { - var _ref8 = (0, _asyncToGenerator2.default)(function* () { + var _ref9 = (0, _asyncToGenerator2.default)(function* () { yield (0, _$$_REQUIRE(_dependencyMap[40]).deleteData)(); _$$_REQUIRE(_dependencyMap[32]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_EDITION, { @@ -311491,7 +311608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return function onReset() { - return _ref8.apply(this, arguments); + return _ref9.apply(this, arguments); }; }(); @@ -311701,7 +311818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function _handleDownloadError(_x56) { + function _handleDownloadError(_x57) { return _handleDownloadError2.apply(this, arguments); } @@ -311734,10 +311851,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.triggerInitialDownload(network); } }, { - key: "loadPages", - value: function loadPages() { + key: "_showFullDownloadWarningDialog", + value: function _showFullDownloadWarningDialog() { var _this10 = this; + var slowNetwork = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var buttons = [{ + text: global.strings("btn_cancel"), + onPress: function onPress() { + _this10.triggerInitialDownload(_newsmemoryUtils.DownloadType.MID_AND_LOW, true); + } + }, { + text: global.strings("btn_ok"), + onPress: function onPress() { + _this10.triggerInitialDownload(_newsmemoryUtils.DownloadType.FULL, true); + } + }]; + var title = slowNetwork ? global.strings("slow_network_warning") : global.strings("mobile_network_warning"); + + _$$_REQUIRE(_dependencyMap[41]).CustomAlert.alert(title, global.strings("offline_download_dialog"), buttons, { + cancelable: false + }); + } + }, { + key: "loadPages", + value: function loadPages() { var skipUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; if (!_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isOnline()) { @@ -311764,24 +311902,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e status: currentNewspaper.getStatus() }); - if (!_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isCellular() || !_newsmemoryUtils.default.isModeFull()) { - this.triggerInitialDownload(currentNewspaper.getDbNetwork()); - return; + var dbNetwork = currentNewspaper.getDbNetwork(); + + if (_newsmemoryUtils.default.isModeFull()) { + if (_newsmemoryUtils.default.isModeLow(dbNetwork)) { + this.showFullDownloadWarningDialog(true); + return; + } + + if (_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isCellular()) { + this.showFullDownloadWarningDialog(false); + return; + } } - var buttons = [{ - text: global.strings("btn_cancel"), - onPress: function onPress() { - _this10.triggerInitialDownload(_newsmemoryUtils.DownloadType.MID_AND_LOW); - } - }, { - text: global.strings("btn_ok"), - onPress: this.triggerInitialDownload - }]; - - _$$_REQUIRE(_dependencyMap[41]).CustomAlert.alert(global.strings("mobile_network_warning"), global.strings("offline_download_dialog"), buttons, { - cancelable: false - }); + this.triggerInitialDownload(dbNetwork); } }, { key: "_getDownloadProgress", @@ -311817,11 +311952,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function _triggerInitialDownload(network) { var _this12 = this; + var forceMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var networkToUse = network; var isHighSpeedNetwork = _$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isHighSpeedNetwork(); - if (this.lowSpeedDownload || !isHighSpeedNetwork) { + if (!forceMode && (this.lowSpeedDownload || !isHighSpeedNetwork)) { networkToUse = _newsmemoryUtils.DownloadType.LOW_ONLY; } else { var newsmemoryConfig = global.getNewsmemoryConfig(); @@ -311832,14 +311968,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (!_$$_REQUIRE(_dependencyMap[34]).NetworkUtils.isOnline()) { + var _currentNewspaper$get; + var currentNewspaper = this.getCurrentNewspaper(); + var status = (_currentNewspaper$get = currentNewspaper == null ? undefined : currentNewspaper.getStatus()) != null ? _currentNewspaper$get : _NewspaperIssue.DBStatus.DB_DOWNLOADED; _$$_REQUIRE(_dependencyMap[32]).EventRegister.emit(_events.default.NEWSMEMORY_INITIAL_DOWNLOAD_FINISHED, { - status: currentNewspaper ? currentNewspaper.getStatus() : _NewspaperIssue.DBStatus.DB_DOWNLOADED + status: status }); if (!_$$_REQUIRE(_dependencyMap[34]).PlatformUtils.isTablet()) { - var message = currentNewspaper && currentNewspaper.hasHighResolutionDownloaded() ? global.strings("err_offline") : global.strings("offline_download_warning"); + var message = currentNewspaper != null && currentNewspaper.hasHighResolutionDownloaded() ? global.strings("err_offline") : global.strings("offline_download_warning"); _$$_REQUIRE(_dependencyMap[41]).CustomAlert.alert(global.strings("title_offline"), message); } @@ -311942,7 +312081,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield _NewsmemoryDatabasesManager.default.updateStatus(currentNewspaper.getPaper(), currentNewspaper.getIssue(), currentNewspaper.getEdition(), newDbStatus); }); - function updateNewspaperStatus(_x57) { + function updateNewspaperStatus(_x58) { return _updateNewspaperStatus.apply(this, arguments); } @@ -311964,7 +312103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield _NewsmemoryDatabasesManager.default.updateNetwork(currentNewspaper.getPaper(), currentNewspaper.getIssue(), currentNewspaper.getEdition(), network); }); - function updateNewspaperNetwork(_x58) { + function updateNewspaperNetwork(_x59) { return _updateNewspaperNetwork.apply(this, arguments); } @@ -312092,21 +312231,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _EPaperImage = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _DownloadManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _DownloadManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _DTOToNewsmemory = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _NewsmemoryToDTO = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _DTOToNewsmemory = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _NewsmemoryToDTO = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); var NewsmemoryEditionsManager = exports.default = function () { function NewsmemoryEditionsManager(paper) { @@ -312116,17 +312257,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(NewsmemoryEditionsManager, [{ key: "initDatabase", - value: function initDatabase(path) { - if (this.database) { - if (this.database.getPath() === path) { - return; + value: function () { + var _initDatabase = (0, _asyncToGenerator2.default)(function* (path) { + if (!(yield _tecnaviaFileUtils.default.exists(path))) { + throw new Error("database not found -> " + path); } - this.database.destroy(); + if (this.database) { + if (this.database.getPath() === path) { + return; + } + + yield this.database.destroy(); + } + + this.database = new _Database.default(path); + }); + + function initDatabase(_x) { + return _initDatabase.apply(this, arguments); } - this.database = new _Database.default(path); - } + return initDatabase; + }() }, { key: "databaseExists", value: function () { @@ -312142,13 +312295,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return databaseExists; }() + }, { + key: "openDatabase", + value: function () { + var _openDatabase = (0, _asyncToGenerator2.default)(function* () { + var _this$database$open, _this$database2; + + return (_this$database$open = (_this$database2 = this.database) == null ? undefined : _this$database2.open()) != null ? _this$database$open : false; + }); + + function openDatabase() { + return _openDatabase.apply(this, arguments); + } + + return openDatabase; + }() }, { key: "closeDatabase", value: function () { var _closeDatabase = (0, _asyncToGenerator2.default)(function* () { - var _this$database$close, _this$database2; + var _this$database$close, _this$database3; - return (_this$database$close = (_this$database2 = this.database) == null ? undefined : _this$database2.close()) != null ? _this$database$close : false; + return (_this$database$close = (_this$database3 = this.database) == null ? undefined : _this$database3.close()) != null ? _this$database$close : false; }); function closeDatabase() { @@ -312161,9 +312329,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "deleteDatabase", value: function () { var _deleteDatabase = (0, _asyncToGenerator2.default)(function* () { - var _this$database$delete, _this$database3; + if (!this.database) { + return false; + } - return (_this$database$delete = (_this$database3 = this.database) == null ? undefined : _this$database3.delete()) != null ? _this$database$delete : false; + var success = yield this.database.delete(); + + if (success) { + this.database = undefined; + return true; + } + + return false; }); function deleteDatabase() { @@ -312181,7 +312358,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (_this$database$transa = (_this$database4 = this.database) == null ? undefined : _this$database4.transaction(query, params)) != null ? _this$database$transa : []; }); - function openTransaction(_x, _x2) { + function openTransaction(_x2, _x3) { return _openTransaction.apply(this, arguments); } @@ -312202,7 +312379,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function insertPage(_x3, _x4, _x5, _x6, _x7) { + function insertPage(_x4, _x5, _x6, _x7, _x8) { return _insertPage.apply(this, arguments); } @@ -312225,7 +312402,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getIssue(_x8) { + function getIssue(_x9) { return _getIssue.apply(this, arguments); } @@ -312239,7 +312416,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var query = "SELECT * FROM pages WHERE filename = ?"; var pages = yield this.openTransaction(query, [filename]); - if (pages && pages.length) { + if (!_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(pages)) { return _NewsmemoryToDTO.default.dbPageToDTO(pages[0]); } @@ -312249,7 +312426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getPageByFilename(_x9) { + function getPageByFilename(_x10) { return _getPageByFilename.apply(this, arguments); } @@ -312270,7 +312447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getArticles(_x10) { + function getArticles(_x11) { return _getArticles.apply(this, arguments); } @@ -312312,7 +312489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getImages(_x11) { + function getImages(_x12) { return _getImages.apply(this, arguments); } @@ -312384,7 +312561,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return article.getPageId() === dto.getPageId(); }); - if (_$$_REQUIRE(_dependencyMap[12]).JSUtils.isEmpty(articles)) { + if (_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(articles)) { try { articles = yield _DownloadManager.default.downloadArticles(issue, edition, dto.getFilename(), secret); articles.forEach(function (article) { @@ -312429,7 +312606,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); - function getEdition(_x12, _x13, _x14) { + function getEdition(_x13, _x14, _x15) { return _getEdition.apply(this, arguments); } @@ -312448,7 +312625,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }); - function savePages(_x15) { + function savePages(_x16) { return _savePages.apply(this, arguments); } @@ -312470,7 +312647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }); - function insertPages(_x16) { + function insertPages(_x17) { return _insertPages.apply(this, arguments); } @@ -312489,7 +312666,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }); - function saveImages(_x17) { + function saveImages(_x18) { return _saveImages.apply(this, arguments); } @@ -312504,7 +312681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })); }); - function saveArticles(_x18) { + function saveArticles(_x19) { return _saveArticles.apply(this, arguments); } @@ -312553,7 +312730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }); - function getCustomIndex(_x19) { + function getCustomIndex(_x20) { return _getCustomIndex.apply(this, arguments); } @@ -312577,7 +312754,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return undefined; }); - function isLite(_x20) { + function isLite(_x21) { return _isLite.apply(this, arguments); } @@ -312591,7 +312768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.database.replaceInto("pages", ["issueId", "filename", "type"], [issueId, isLiteValue, "LT"]); }); - function addLite(_x21, _x22) { + function addLite(_x22, _x23) { return _addLite.apply(this, arguments); } @@ -312604,7 +312781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.database.deleteFrom("pages", "issueId = " + issueId + " AND type = 'LT'"); }); - function removeLite(_x23) { + function removeLite(_x24) { return _removeLite.apply(this, arguments); } @@ -312617,7 +312794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.database.deleteFrom("pages", this.getPageIdsWhereClause(pages)); }); - function removePages(_x24) { + function removePages(_x25) { return _removePages.apply(this, arguments); } @@ -312630,7 +312807,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.database.deleteFrom("images", this.getPageIdsWhereClause(pages)); }); - function removeImagesForPages(_x25) { + function removeImagesForPages(_x26) { return _removeImagesForPages.apply(this, arguments); } @@ -312643,7 +312820,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return this.database.deleteFrom("articles", this.getPageIdsWhereClause(pages)); }); - function removeArticlesForPages(_x26) { + function removeArticlesForPages(_x27) { return _removeArticlesForPages.apply(this, arguments); } @@ -312651,7 +312828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2296,[3,270,6,7,666,667,587,670,2297,861,2299,2298,438]); +},2296,[3,270,6,7,566,666,667,587,670,2297,861,2299,2298,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -312951,6 +313128,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return downloadResourceWithRetry; }() + }, { + key: "getDefaultDownloadConfig", + value: function getDefaultDownloadConfig(newspaper) { + return { + completionCallback: function () { + var _completionCallback = (0, _asyncToGenerator2.default)(function* () { + if (newspaper && !(yield _tecnaviaFileUtils.default.exists(newspaper.getFilename()))) { + throw new Error("ipaddb file does not exist!"); + } + }); + + function completionCallback() { + return _completionCallback.apply(this, arguments); + } + + return completionCallback; + }() + }; + } }, { key: "downloadImages", value: function () { @@ -312972,7 +313168,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var image = images[i]; var imageName = image.getName(dataSaveMode); - var _ref = (yield this.downloadResourceWithRetry("image", _NewsmemoryAJAX.default.downloadImage, paper, issue, imageName, filename, filetime, secret)) || {}, + var _ref = (yield this.downloadResourceWithRetry("image", _NewsmemoryAJAX.default.downloadImage, paper, issue, imageName, filename, filetime, secret, this.getDefaultDownloadConfig(newspaper))) || {}, path = _ref.path, width = _ref.width, height = _ref.height; @@ -313009,7 +313205,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var graph = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; var image; - var _ref2 = (yield this.downloadResourceWithRetry("hrimage", _NewsmemoryAJAX.default.downloadHRImage, newspaper.getPaper(), newspaper.getIssue(), page.getFilename(), page.getModifyTime(), xmlId, boxId, graph, newspaper.getSecret())) || {}, + var _ref2 = (yield this.downloadResourceWithRetry("hrimage", _NewsmemoryAJAX.default.downloadHRImage, newspaper.getPaper(), newspaper.getIssue(), page.getFilename(), page.getModifyTime(), xmlId, boxId, graph, newspaper.getSecret(), this.getDefaultDownloadConfig(newspaper))) || {}, path = _ref2.path, width = _ref2.width, height = _ref2.height; @@ -313056,7 +313252,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var secret = newspaper.getSecret(); var filename = page.getFilename(); var filetime = page.getModifyTime(); - var path = yield this.downloadResourceWithRetry("hrimages", _NewsmemoryAJAX.default.downloadHRImagesZip, paper, issue, filename, filetime, secret); + var path = yield this.downloadResourceWithRetry("hrimages", _NewsmemoryAJAX.default.downloadHRImagesZip, paper, issue, filename, filetime, secret, this.getDefaultDownloadConfig(newspaper)); if (!path) { return []; @@ -313177,7 +313373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var secret = newspaper.getSecret(); var filename = page.getFilename(); var filetime = page.getModifyTime(); - var localImagesFilenames = (yield this.downloadResourceWithRetry("singlezip", _NewsmemoryAJAX.default.downloadPageZip, paper, issue, filename, filetime, secret)) || []; + var localImagesFilenames = (yield this.downloadResourceWithRetry("singlezip", _NewsmemoryAJAX.default.downloadPageZip, paper, issue, filename, filetime, secret, this.getDefaultDownloadConfig(newspaper))) || []; var downloadedImages = []; try { @@ -313227,7 +313423,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var filetimes = pages.map(function (page) { return page.getModifyTime(); }); - var localPages = (yield this.downloadResourceWithRetry("multizip", _NewsmemoryAJAX.default.downloadMultiplePagesZips, paper, issue, filenames, filetimes, secret)) || []; + var localPages = (yield this.downloadResourceWithRetry("multizip", _NewsmemoryAJAX.default.downloadMultiplePagesZips, paper, issue, filenames, filetimes, secret, this.getDefaultDownloadConfig(newspaper))) || []; var downloadedImages = []; var watermarkPromises = []; @@ -313938,7 +314134,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _width = _yield$getImageSize.width; _height = _yield$getImageSize.height; } else { - var _ref13 = (yield this.downloadResourceWithRetry("image", _NewsmemoryAJAX.default.downloadImage, paper, issue, _EPaperImage.EPaperImageName.GIF, filename, page.getModifyTime(), newspaper.getSecret())) || {}; + var _ref13 = (yield this.downloadResourceWithRetry("image", _NewsmemoryAJAX.default.downloadImage, paper, issue, _EPaperImage.EPaperImageName.GIF, filename, page.getModifyTime(), newspaper.getSecret(), this.getDefaultDownloadConfig(newspaper))) || {}; path = _ref13.path; _width = _ref13.width; @@ -314677,15 +314873,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _tecnaviaFileUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _NewsmemoryDatabasesManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _Database = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _NewsmemoryEditionsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _NewsmemoryDatabasesManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _NewsmemoryEditionsManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); var PurgeTask = exports.default = function () { function PurgeTask(issueToDownload) { @@ -315105,7 +315301,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _loop = function* _loop() { var issueDbPath = issuesDb[i]; var issueManager = new _NewsmemoryEditionsManager.default(); - issueManager.initDatabase(issueDbPath); + yield issueManager.initDatabase(issueDbPath); try { var pages = yield issueManager.getPages(); @@ -315229,7 +315425,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function purgeLog(message) {} }]); }(); -},2305,[3,270,6,7,566,860,861,859,2296,670,438]); +},2305,[3,270,6,7,566,859,670,861,860,2296,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -317070,7 +317266,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }), getSavedIssues: _nativeOptionsPageUtils.default.getSavedIssues, - LogoComponent: _$$_REQUIRE(_dependencyMap[40]).LogoImage, + LogoComponent: function LogoComponent(props) { + return (0, _$$_REQUIRE(_dependencyMap[36]).jsx)(_$$_REQUIRE(_dependencyMap[40]).Css, { + classes: ["navigation-header-logo", "navigation-epaper-header-logo"], + children: (0, _$$_REQUIRE(_dependencyMap[36]).jsx)(_$$_REQUIRE(_dependencyMap[41]).LogoImage, Object.assign({}, props)) + }); + }, pSetup: pSetup, server: machine, baseTabPath: optionsPageTabPath, @@ -317111,7 +317312,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }]); - }(_$$_REQUIRE(_dependencyMap[41]).Shortcut); + }(_$$_REQUIRE(_dependencyMap[42]).Shortcut); NativeOptionsPage.propTypes = Object.assign({ onOpen: _propTypes.default.func, @@ -317123,18 +317324,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: _propTypes.default.shape({ navigate: _propTypes.default.func }) - }, _$$_REQUIRE(_dependencyMap[41]).Shortcut.propTypes); - NativeOptionsPage.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[41]).Shortcut.defaultProps, { + }, _$$_REQUIRE(_dependencyMap[42]).Shortcut.propTypes); + NativeOptionsPage.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[42]).Shortcut.defaultProps, { shortcutEnabled: true }); var _default = exports.default = function _default(props) { - var navigation = (0, _$$_REQUIRE(_dependencyMap[42]).useNavigation)(); + var navigation = (0, _$$_REQUIRE(_dependencyMap[43]).useNavigation)(); return (0, _$$_REQUIRE(_dependencyMap[36]).jsx)(NativeOptionsPage, Object.assign({}, props, { navigation: navigation })); }; -},2311,[3,4,270,6,7,11,85,13,14,582,16,18,1917,2001,2114,2294,436,1919,434,2149,881,1985,1947,856,2312,1904,880,2277,2313,2116,870,564,1986,1921,438,1780,179,1978,1979,1989,2287,2057,928]); +},2311,[3,4,270,6,7,11,85,13,14,582,16,18,1917,2001,2114,2294,436,1919,434,2149,881,1985,1947,856,2312,1904,880,2277,2313,2116,870,564,1986,1921,438,1780,179,1978,1979,1989,819,2287,2057,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345226,19 +345427,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); if (feedElements.length > 0) { + var parentKey; var prevSection = sections[sections.length - 1]; - if (prevSection && prevSection.data.length) { - populatedSections += 1; - } + if (prevSection) { + if (prevSection.data.length > 0) { + populatedSections += 1; + } - var parentKey; - - if (prevSection && depth > 0) { - if (depth > prevSection.depth) { - parentKey = prevSection.title; - } else if (depth === prevSection.depth) { - parentKey = prevSection.parentKey; + if (depth > 0) { + if (depth > prevSection.depth) { + parentKey = prevSection.title; + } else if (depth === prevSection.depth) { + parentKey = prevSection.parentKey; + } } } @@ -345268,24 +345470,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (isAlreadyPresent) { - return 1; + return 0; } - var fallbackImage; - var fallbackImageExtra = (0, _$$_REQUIRE(_dependencyMap[23]).parseExtra)(drawerItem, "myHomeFallbackImageURL"); + var dbCat = dbCategories.find(function (x) { + return x.name === drawerItemKey; + }); - if ((fallbackImageExtra == null ? undefined : fallbackImageExtra.length) > 0) { - fallbackImage = fallbackImageExtra[1]; + if (!dbCat) { + return 0; } var nextDrawerItem = drawerItemsFlat[i + 1]; var hasChildren = nextDrawerItem && nextDrawerItem.type === _IndexHelper.default.SP.values.drawer.type.feed && nextDrawerItem.parent === drawerItemKey && nextDrawerItem.depth > depth; - var dbCat = dbCategories.find(function (x) { - return x.name === drawerItemKey; - }); var _prevSection = sections[sections.length - 1]; - var image = dbCat.image || fallbackImage; - var imageSize = yield (0, _imageComponent.getImageSize)(image); + var fallbackImageExtra = (0, _$$_REQUIRE(_dependencyMap[23]).parseExtra)(drawerItem, "myHomeFallbackImageURL"); + + if ((fallbackImageExtra == null ? undefined : fallbackImageExtra.length) > 0) { + dbCat.images.push(fallbackImageExtra[1]); + } + + var imageIdx = 0; + var image; + var imageSize = { + width: 0, + height: 0 + }; + var validImage = false; + + while (imageIdx < dbCat.images.length && !validImage) { + var dbImage = dbCat.images[imageIdx]; + imageSize = yield (0, _imageComponent.getImageSize)(dbImage); + validImage = imageSize && imageSize.width > 0 && imageSize.height > 0; + + if (validImage) { + image = dbImage; + } + + imageIdx += 1; + } + var newItem = { itemKey: dbCat.name, parentKey: parent, @@ -345313,10 +345537,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } } catch (e) {} - }; + }, + _ret; for (var i = 0; i < drawerItemsFlat.length; i++) { - if (yield* _loop()) continue; + _ret = yield* _loop(); + if (_ret === 0) continue; } return { @@ -345333,7 +345559,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getUserSettin = global.getUserSettings(), selectedMyHomeCategories = _global$getUserSettin.selectedMyHomeCategories; - if (selectedMyHomeCategories && selectedMyHomeCategories.length > 0) { + if (!_$$_REQUIRE(_dependencyMap[24]).JSUtils.isEmpty(selectedMyHomeCategories)) { result = selectedMyHomeCategories.findIndex(function (x) { return x === itemKey; }) > -1; @@ -345417,7 +345643,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } else { result = global.strings("select_my_home_categories", { - category: (0, _$$_REQUIRE(_dependencyMap[24]).getCategoryLabel)(category) + category: (0, _$$_REQUIRE(_dependencyMap[25]).getCategoryLabel)(category) }); } @@ -345485,11 +345711,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e result = this._getListItemParent(item); } - return result ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.TouchableWithoutFeedback, { + return result ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.TouchableWithoutFeedback, { onPress: function onPress() { return _this2._onPress(item); }, - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { children: result }) }) : null; @@ -345505,9 +345731,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var collapsed = this._isCollapsed(item.itemKey); - return (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-chevron"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_buttonComponent.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_buttonComponent.default, { transparent: true, bordered: false, large: true, @@ -345515,13 +345741,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: function onPress() { _this3.setState((0, _defineProperty2.default)({}, item.itemKey, !collapsed)); }, - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-chevron-icon"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_iconComponent.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_iconComponent.default, { name: collapsed ? "chevron-down" : "chevron-up", type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, style: [_rssMyHomeConfigComponent.default.chevronIcon, { - color: _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultForegroundColor() + color: _$$_REQUIRE(_dependencyMap[27]).Css.getDefaultForegroundColor() }] }) }) @@ -345565,89 +345791,106 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor = _global$getRssIndex2.supportColor; var checked = isSelected(itemKey); - var filter = !checked && !this._hasChildrenSelected(item) ? _$$_REQUIRE(_dependencyMap[27]).FILTERS.GRAYSCALE : undefined; - var defaultImageHeight = _$$_REQUIRE(_dependencyMap[28]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[28]).PlatformUtils.isiPadPro12dot9() ? _rssMyHomeConfigComponent.IMAGE_HEIGHT_TABLET_LARGE : _rssMyHomeConfigComponent.IMAGE_HEIGHT_TABLET : _rssMyHomeConfigComponent.IMAGE_HEIGHT_PHONE; + var defaultImageHeight = _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isiPadPro12dot9() ? _rssMyHomeConfigComponent.IMAGE_HEIGHT_TABLET_LARGE : _rssMyHomeConfigComponent.IMAGE_HEIGHT_TABLET : _rssMyHomeConfigComponent.IMAGE_HEIGHT_PHONE; + var hasLandscapeImage = imageSize && imageSize.width > imageSize.height; + var imageClasses = ["my-home-config-image", "my-home-config-line-parent-image"]; + + if (hasLandscapeImage) { + imageClasses.push("rss-image-blur", "my-home-config-image-blur"); + } else { + imageClasses.push("my-home-config-image-no-image"); + } + var imageStyle = [_rssMyHomeConfigComponent.default.image, { height: defaultImageHeight - }, _$$_REQUIRE(_dependencyMap[26]).Css.getStyleObjByCssClasses(["my-home-config-image", "my-home-config-line-parent-image"])]; - - if (filter) { - imageStyle.push({ - filters: [{ - filter: filter - }] - }); - } - + }, _$$_REQUIRE(_dependencyMap[27]).Css.getStyleObjByCssClasses(imageClasses)]; var ImageComponent; - if (imageSize.width > imageSize.height) { - var imageHeight = _$$_REQUIRE(_dependencyMap[28]).CssUtils.getAttributeFromStyle("height", imageStyle, defaultImageHeight); - - var scale = _deviceUtils.default.getSafeAreaWidth() / (imageSize.width * imageHeight / imageSize.height); - var translateY = imageHeight * ((scale - 1) / 2 - 0.3333333333333333); - imageStyle.push({ - transform: [{ - translateY: translateY - }, { - scale: scale + if (!image) { + ImageComponent = (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { + style: [imageStyle, { + backgroundColor: checked ? supportColor : _$$_REQUIRE(_dependencyMap[24]).colors.white }] }); - ImageComponent = (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_imageComponent.default, { - style: imageStyle, - resizeMethod: "scale", - resizeMode: "contain", - source: { - uri: image - } - }); } else { - ImageComponent = (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_blurImageComponent.default, { - image: image, - style: imageStyle - }); - } + var filter = !checked && !this._hasChildrenSelected(item) ? _$$_REQUIRE(_dependencyMap[28]).FILTERS.GRAYSCALE : undefined; - var checkboxColor = _$$_REQUIRE(_dependencyMap[28]).ColorUtils.determineTextColor(supportColor); + if (filter) { + imageStyle.push({ + filters: [{ + filter: filter + }] + }); + } - var checkboxBackgroundColor = supportColor; + if (hasLandscapeImage) { + var imageHeight = _$$_REQUIRE(_dependencyMap[24]).CssUtils.getAttributeFromStyle("height", imageStyle, defaultImageHeight); - if (_$$_REQUIRE(_dependencyMap[26]).Css.isDarkTheme()) { - checkboxColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultForegroundColor(); - - if (_$$_REQUIRE(_dependencyMap[28]).ColorUtils.isClearColor(supportColor)) { - checkboxBackgroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultBackgroundColor(); + var scale = Math.max(_deviceUtils.default.getSafeAreaWidth() / (imageSize.width * imageHeight / imageSize.height), 1.3333333333333333); + var translateY = imageHeight * ((scale - 1) / 2 - 0.3333333333333333); + imageStyle.push({ + transform: [{ + translateY: translateY + }, { + scale: scale + }] + }); + ImageComponent = (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_imageComponent.default, { + style: imageStyle, + resizeMethod: "scale", + resizeMode: "contain", + source: { + uri: image + } + }); + } else { + ImageComponent = (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_blurImageComponent.default, { + image: image, + style: imageStyle + }); } } - return (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_$$_REQUIRE(_dependencyMap[25]).Fragment, { - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + var checkboxColor = _$$_REQUIRE(_dependencyMap[24]).ColorUtils.determineTextColor(supportColor); + + var checkboxBackgroundColor = supportColor; + + if (_$$_REQUIRE(_dependencyMap[27]).Css.isDarkTheme()) { + checkboxColor = _$$_REQUIRE(_dependencyMap[27]).Css.getDefaultForegroundColor(); + + if (_$$_REQUIRE(_dependencyMap[24]).ColorUtils.isClearColor(supportColor)) { + checkboxBackgroundColor = _$$_REQUIRE(_dependencyMap[27]).Css.getDefaultBackgroundColor(); + } + } + + return (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_$$_REQUIRE(_dependencyMap[26]).Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-parent"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.view, - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-parent-overlay"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.overlay }) - }), ImageComponent, (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + }), ImageComponent, (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-parent-content"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.content, - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.text, - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-parent-title"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { allowFontScaling: true, adjustsFontSizeToFit: true, numberOfLines: 1, style: _rssMyHomeConfigComponent.default.category, - children: (0, _$$_REQUIRE(_dependencyMap[24]).getCategoryLabel)(itemKey) + children: (0, _$$_REQUIRE(_dependencyMap[25]).getCategoryLabel)(itemKey) }) - }), (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + }), (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-parent-counter"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { allowFontScaling: true, adjustsFontSizeToFit: true, numberOfLines: 1, @@ -345657,7 +345900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) })] - }), (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_checkboxComponent.default, { + }), (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_checkboxComponent.default, { style: _rssMyHomeConfigComponent.default.checkbox, checked: checked, checkedStyle: { @@ -345690,54 +345933,54 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor = _global$getRssIndex3.supportColor; var checked = isSelected(itemKey); - return (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_$$_REQUIRE(_dependencyMap[25]).Fragment, { - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_$$_REQUIRE(_dependencyMap[26]).Fragment, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-child"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { style: [_rssMyHomeConfigComponent.default.childView, { backgroundColor: checked ? supportColor : menuBackgroundColor }], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.childContent, - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_checkboxComponent.default, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_checkboxComponent.default, { checked: checked, uncheckedStyle: { - backgroundColor: _$$_REQUIRE(_dependencyMap[28]).colors.transparent, - borderColor: _$$_REQUIRE(_dependencyMap[28]).colors.black + backgroundColor: _$$_REQUIRE(_dependencyMap[24]).colors.transparent, + borderColor: _$$_REQUIRE(_dependencyMap[24]).colors.black }, checkedStyle: { - borderColor: _$$_REQUIRE(_dependencyMap[28]).colors.white, + borderColor: _$$_REQUIRE(_dependencyMap[24]).colors.white, backgroundColor: supportColor }, checkStyle: { - color: _$$_REQUIRE(_dependencyMap[28]).ColorUtils.determineTextColor(supportColor) + color: _$$_REQUIRE(_dependencyMap[24]).ColorUtils.determineTextColor(supportColor) }, onPress: function onPress() { return _this5._onPress(item); } }) - }), (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + }), (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.childText, - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-child-text"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { allowFontScaling: true, adjustsFontSizeToFit: true, numberOfLines: 1, style: [_rssMyHomeConfigComponent.default.childCategory, { - color: _$$_REQUIRE(_dependencyMap[28]).ColorUtils.determineTextColor(checked ? supportColor : menuBackgroundColor) + color: _$$_REQUIRE(_dependencyMap[24]).ColorUtils.determineTextColor(checked ? supportColor : menuBackgroundColor) }], - children: (0, _$$_REQUIRE(_dependencyMap[24]).getCategoryLabel)(itemKey) + children: (0, _$$_REQUIRE(_dependencyMap[25]).getCategoryLabel)(itemKey) }) - }), (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + }), (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-line-child-counter"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { allowFontScaling: true, adjustsFontSizeToFit: true, numberOfLines: 1, style: [_rssMyHomeConfigComponent.default.childArticles, { - color: checked ? _$$_REQUIRE(_dependencyMap[28]).colors.white : _$$_REQUIRE(_dependencyMap[28]).colors.black + color: checked ? _$$_REQUIRE(_dependencyMap[24]).colors.white : _$$_REQUIRE(_dependencyMap[24]).colors.black }], children: global.strings("article_count", { count: articlesCount @@ -345754,14 +345997,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getDarknessBackground", value: function _getDarknessBackground(item, menuBackgroundColor) { var darkPercentageDecrease = item.depth ? Math.min(100, item.depth * 15) : 0; - return _$$_REQUIRE(_dependencyMap[28]).ColorUtils.applyDarknessToHex(menuBackgroundColor, darkPercentageDecrease); + return _$$_REQUIRE(_dependencyMap[24]).ColorUtils.applyDarknessToHex(menuBackgroundColor, darkPercentageDecrease); } }, { key: "renderSeparator", value: function renderSeparator() { - return (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-separator"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { style: _rssMyHomeConfigComponent.default.listSeparator }) }); @@ -345781,6 +346024,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e loading = _this$state.loading, sections = _this$state.sections, populatedSections = _this$state.populatedSections; + + if (loading || !sections) { + return null; + } + var firstLevelSections = sections ? sections.filter(function (section) { return section.depth === 0; }) : []; @@ -345791,31 +346039,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getUserSettin3 = global.getUserSettings(), selectedMyHomeCategories = _global$getUserSettin3.selectedMyHomeCategories; - if (loading || !sections) { - return null; - } + var backgroundColor = _$$_REQUIRE(_dependencyMap[27]).Css.getDefaultBackgroundColor(); - var backgroundColor = _$$_REQUIRE(_dependencyMap[26]).Css.getDefaultBackgroundColor(); - - return (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + return (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: [_rssMyHomeConfigComponent.default.container, { backgroundColor: backgroundColor }, style], - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-header"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.View, { style: [_rssMyHomeConfigComponent.default.line, _rssMyHomeConfigComponent.default.headerParent, { backgroundColor: backgroundColor }], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-header-text"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { style: [_rssMyHomeConfigComponent.default.lineText, _rssMyHomeConfigComponent.default.header], children: this._getText() }) }) }) - }), (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[29]).TecnaviaSectionList, { + }), (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[29]).TecnaviaSectionList, { sections: sections, stickySectionHeadersEnabled: true, keyExtractor: function keyExtractor(item, index) { @@ -345837,20 +346081,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (populatedSections > 1 && !_this6._isParentSectionCollapsed(section) && (section.depth === 0 && firstLevelSections.length > 1 || section.depth > 0)) { var darknessBackgroundColor = _this6._getDarknessBackground(section, supportColor); - return (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-section"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsxs)(_reactNative.View, { style: [_rssMyHomeConfigComponent.default.line, { backgroundColor: darknessBackgroundColor }], - children: [(0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-section-text"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { style: [_rssMyHomeConfigComponent.default.lineText, _rssMyHomeConfigComponent.default.section, { - color: _$$_REQUIRE(_dependencyMap[28]).ColorUtils.determineTextColor(darknessBackgroundColor), + color: _$$_REQUIRE(_dependencyMap[24]).ColorUtils.determineTextColor(darknessBackgroundColor), textTransform: "uppercase" }], - children: (0, _$$_REQUIRE(_dependencyMap[24]).getCategoryLabel)(section.title) + children: (0, _$$_REQUIRE(_dependencyMap[25]).getCategoryLabel)(section.title) }) }), _this6._getChevron(section)] }) @@ -345861,24 +346105,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, extraData: this.state, contentContainerStyle: listStyle - }), showAlwaysOnClose || selectedMyHomeCategories && selectedMyHomeCategories.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + }), showAlwaysOnClose || selectedMyHomeCategories && selectedMyHomeCategories.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-footer"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_reactNative.TouchableOpacity, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_reactNative.TouchableOpacity, { style: [_rssMyHomeConfigComponent.default.line, _rssMyHomeConfigComponent.default.footer, { backgroundColor: supportColor }], onPress: function onPress() { - if (onClose) { - onClose(); - } + onClose == null ? undefined : onClose(); }, - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_$$_REQUIRE(_dependencyMap[26]).Css, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_$$_REQUIRE(_dependencyMap[27]).Css, { classes: ["my-home-config-footer-text"], - children: (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_fontText.default, { + children: (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_fontText.default, { style: [_rssMyHomeConfigComponent.default.lineText, _rssMyHomeConfigComponent.default.section, { - color: _$$_REQUIRE(_dependencyMap[28]).ColorUtils.determineTextColor(supportColor) + color: _$$_REQUIRE(_dependencyMap[24]).ColorUtils.determineTextColor(supportColor) }], - children: closeText ? closeText : global.strings("btn_go_to_news") + children: closeText || global.strings("btn_go_to_news") }) }) }) @@ -345899,7 +346141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeConfig.defaultProps = { showAlwaysOnClose: false }; -},2441,[3,22,240,6,7,11,13,14,270,582,16,18,2148,2161,2085,434,2155,2276,2424,816,1861,588,2442,2151,2156,179,819,619,438,2056]); +},2441,[3,22,240,6,7,11,13,14,270,582,16,18,2148,2161,2085,434,2155,2276,2424,816,1861,588,2442,2151,438,2156,179,819,619,2056]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371755,14 +371997,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ArticleContentHeader, { ref: this.onHeaderRef, item: item, + width: width, + height: getHeaderHeight(), onImagePress: this.onPress, onImageError: function onImageError() { _this2.setState({ parallaxHeight: 0 }); }, - width: width, - height: getHeaderHeight() + onHeightChange: function onHeightChange(height) { + _this2.setState({ + parallaxHeight: height + }); + } }); } }, { @@ -371928,19 +372175,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function HeaderImage(props) { return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).Css, { - classes: ["article-header-image"], + classes: ["article-header-image", "rss-image-blur", "article-header-image-blur"], children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_blurImageComponent.default, Object.assign({}, props)) }); } var ArticleContentHeader = exports.ArticleContentHeader = (0, _react.forwardRef)(function (props, ref) { var item = props.item, + width = props.width, + height = props.height, + isCurrentPage = props.isCurrentPage, onRendered = props.onRendered, onImagePress = props.onImagePress, onImageError = props.onImageError, - width = props.width, - height = props.height, - isCurrentPage = props.isCurrentPage; + onHeightChange = props.onHeightChange; var image = item.image, gallery = item.gallery; @@ -371957,12 +372205,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isActive = _useState2[0], setIsActive = _useState2[1]; - var updateActive = function updateActive(active) { + var updateActive = (0, _react.useCallback)(function (active) { if (active !== isActive) { setIsActive(active); } - }; - + }, [isActive]); (0, _react.useImperativeHandle)(ref, function () { return { updateActive: updateActive @@ -371990,12 +372237,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }) }) : null, hasImage ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(HeaderImage, { + image: image, width: width, height: height, onRendered: onRendered, onImagePress: onImagePress, onImageError: onImageError, - image: image + onHeightChange: onHeightChange }) : null, (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(ArticleHeaderOverlay, { item: item, hasImage: hasImage, @@ -372007,16 +372255,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); }); ArticleContentHeader.propTypes = { - width: _propTypes.default.number, - height: _propTypes.default.number, item: _propTypes.default.shape({ image: _propTypes.default.string, gallery: _propTypes.default.array }), + width: _propTypes.default.number, + height: _propTypes.default.number, + isCurrentPage: _propTypes.default.bool, onRendered: _propTypes.default.func, onImagePress: _propTypes.default.func, onImageError: _propTypes.default.func, - isCurrentPage: _propTypes.default.bool + onHeightChange: _propTypes.default.func }; },2691,[3,33,582,16,18,2235,2155,816,2200,2132,438,179,819,2692,2017]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { @@ -374169,6 +374418,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield _appUtils.default.preventScreenshots(preventScreenshots); var navigation = this.props.navigation; var attUserChoice = yield _cmpUtils.default.init(navigation, isAppUpgraded); + yield _GlobalConfig.default.initAnalytics(); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("SplashScreen", "analytics init completed"); if (_$$_REQUIRE(_dependencyMap[25]).PlatformUtils.isIOS() && attUserChoice) { Analytics.trackATTPermission(attUserChoice);