react-native-inapp-inspector 2.3.19 → 2.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.js +1 -32
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +243 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -97
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -590
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1141
- package/src/index.tsx +0 -2650
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,308 +1,43 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.NetworkFilterModal = exports.isNetworkFiltersDefault = exports.DEFAULT_NETWORK_FILTERS = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const InspectorContext_1 = require("./InspectorContext");
|
|
43
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
44
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
45
|
-
const i18n_1 = require("../../i18n");
|
|
46
|
-
const constants_1 = require("../../constants");
|
|
47
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
48
|
-
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
49
|
-
exports.DEFAULT_NETWORK_FILTERS = {
|
|
50
|
-
statusCodes: new Set(['all']),
|
|
51
|
-
methods: new Set(['all']),
|
|
52
|
-
latency: 'all',
|
|
53
|
-
protocol: 'all',
|
|
54
|
-
sortBy: 'time_desc',
|
|
55
|
-
};
|
|
56
|
-
const isNetworkFiltersDefault = (f) => (f.statusCodes.has('all') || f.statusCodes.size === 0) &&
|
|
57
|
-
(f.methods.has('all') || f.methods.size === 0) &&
|
|
58
|
-
f.latency === 'all' &&
|
|
59
|
-
f.protocol === 'all' &&
|
|
60
|
-
f.sortBy === 'time_desc';
|
|
61
|
-
exports.isNetworkFiltersDefault = isNetworkFiltersDefault;
|
|
62
|
-
const NetworkFilterModal = ({ visible, onClose, filters, onApply, searchQuery = '', }) => {
|
|
63
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
64
|
-
const { logs } = (0, InspectorContext_1.useInspector)();
|
|
65
|
-
const [draft, setDraft] = (0, react_1.useState)(() => ({
|
|
66
|
-
...filters,
|
|
67
|
-
statusCodes: new Set(filters.statusCodes),
|
|
68
|
-
methods: new Set(filters.methods),
|
|
69
|
-
}));
|
|
70
|
-
(0, react_1.useEffect)(() => {
|
|
71
|
-
if (visible) {
|
|
72
|
-
setDraft({
|
|
73
|
-
...filters,
|
|
74
|
-
statusCodes: new Set(filters.statusCodes),
|
|
75
|
-
methods: new Set(filters.methods),
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}, [visible, filters]);
|
|
79
|
-
const counts = (0, react_1.useMemo)(() => {
|
|
80
|
-
const statusMap = {
|
|
81
|
-
all: logs.length,
|
|
82
|
-
'2xx': 0,
|
|
83
|
-
'3xx': 0,
|
|
84
|
-
'4xx': 0,
|
|
85
|
-
'5xx': 0,
|
|
86
|
-
failed: 0,
|
|
87
|
-
};
|
|
88
|
-
const methodMap = { all: logs.length };
|
|
89
|
-
let fastCount = 0;
|
|
90
|
-
let normalCount = 0;
|
|
91
|
-
let slowCount = 0;
|
|
92
|
-
let httpsCount = 0;
|
|
93
|
-
let httpCount = 0;
|
|
94
|
-
for (const log of logs) {
|
|
95
|
-
const s = typeof log.status === 'number' ? log.status : parseInt(String(log.status), 10);
|
|
96
|
-
if (log.status === 0 || log.status == null) {
|
|
97
|
-
statusMap.failed = (statusMap.failed || 0) + 1;
|
|
98
|
-
}
|
|
99
|
-
else if (!isNaN(s)) {
|
|
100
|
-
if (s >= 200 && s < 300)
|
|
101
|
-
statusMap['2xx'] = (statusMap['2xx'] || 0) + 1;
|
|
102
|
-
else if (s >= 300 && s < 400)
|
|
103
|
-
statusMap['3xx'] = (statusMap['3xx'] || 0) + 1;
|
|
104
|
-
else if (s >= 400 && s < 500)
|
|
105
|
-
statusMap['4xx'] = (statusMap['4xx'] || 0) + 1;
|
|
106
|
-
else if (s >= 500)
|
|
107
|
-
statusMap['5xx'] = (statusMap['5xx'] || 0) + 1;
|
|
108
|
-
}
|
|
109
|
-
const m = (log.method || 'GET').toUpperCase();
|
|
110
|
-
methodMap[m] = (methodMap[m] || 0) + 1;
|
|
111
|
-
const dur = log.duration || 0;
|
|
112
|
-
if (dur < 200)
|
|
113
|
-
fastCount++;
|
|
114
|
-
else if (dur <= 500)
|
|
115
|
-
normalCount++;
|
|
116
|
-
else
|
|
117
|
-
slowCount++;
|
|
118
|
-
if ((log.url || '').toLowerCase().startsWith('https'))
|
|
119
|
-
httpsCount++;
|
|
120
|
-
else
|
|
121
|
-
httpCount++;
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
statusMap,
|
|
125
|
-
methodMap,
|
|
126
|
-
fastCount,
|
|
127
|
-
normalCount,
|
|
128
|
-
slowCount,
|
|
129
|
-
httpsCount,
|
|
130
|
-
httpCount,
|
|
131
|
-
};
|
|
132
|
-
}, [logs]);
|
|
133
|
-
const previewMatchCount = (0, react_1.useMemo)(() => {
|
|
134
|
-
return logs.filter(log => {
|
|
135
|
-
if (!draft.statusCodes.has('all') && draft.statusCodes.size > 0) {
|
|
136
|
-
const s = typeof log.status === 'number' ? log.status : parseInt(String(log.status), 10);
|
|
137
|
-
let matches = false;
|
|
138
|
-
if (draft.statusCodes.has('failed') && (log.status === 0 || log.status == null))
|
|
139
|
-
matches = true;
|
|
140
|
-
if (draft.statusCodes.has('2xx') && !isNaN(s) && s >= 200 && s < 300)
|
|
141
|
-
matches = true;
|
|
142
|
-
if (draft.statusCodes.has('3xx') && !isNaN(s) && s >= 300 && s < 400)
|
|
143
|
-
matches = true;
|
|
144
|
-
if (draft.statusCodes.has('4xx') && !isNaN(s) && s >= 400 && s < 500)
|
|
145
|
-
matches = true;
|
|
146
|
-
if (draft.statusCodes.has('5xx') && !isNaN(s) && s >= 500)
|
|
147
|
-
matches = true;
|
|
148
|
-
if (!matches)
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
if (!draft.methods.has('all') && draft.methods.size > 0) {
|
|
152
|
-
const m = (log.method || 'GET').toUpperCase();
|
|
153
|
-
if (!draft.methods.has(m))
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
const dur = log.duration || 0;
|
|
157
|
-
if (draft.latency === 'fast' && dur >= 200)
|
|
158
|
-
return false;
|
|
159
|
-
if (draft.latency === 'normal' && (dur < 200 || dur > 500))
|
|
160
|
-
return false;
|
|
161
|
-
if (draft.latency === 'slow' && dur <= 500)
|
|
162
|
-
return false;
|
|
163
|
-
const isHttps = (log.url || '').toLowerCase().startsWith('https');
|
|
164
|
-
if (draft.protocol === 'https' && !isHttps)
|
|
165
|
-
return false;
|
|
166
|
-
if (draft.protocol === 'http' && isHttps)
|
|
167
|
-
return false;
|
|
168
|
-
if (searchQuery.trim().length > 0) {
|
|
169
|
-
const q = searchQuery.toLowerCase();
|
|
170
|
-
const u = (log.url || '').toLowerCase();
|
|
171
|
-
if (!u.includes(q))
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
return true;
|
|
175
|
-
}).length;
|
|
176
|
-
}, [logs, draft, searchQuery]);
|
|
177
|
-
const toggleStatus = (key) => {
|
|
178
|
-
setDraft(prev => {
|
|
179
|
-
const next = new Set(prev.statusCodes);
|
|
180
|
-
if (key === 'all') {
|
|
181
|
-
return { ...prev, statusCodes: new Set(['all']) };
|
|
182
|
-
}
|
|
183
|
-
next.delete('all');
|
|
184
|
-
if (next.has(key)) {
|
|
185
|
-
next.delete(key);
|
|
186
|
-
if (next.size === 0)
|
|
187
|
-
next.add('all');
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
next.add(key);
|
|
191
|
-
}
|
|
192
|
-
return { ...prev, statusCodes: next };
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
const toggleMethod = (key) => {
|
|
196
|
-
setDraft(prev => {
|
|
197
|
-
const next = new Set(prev.methods);
|
|
198
|
-
if (key === 'all') {
|
|
199
|
-
return { ...prev, methods: new Set(['all']) };
|
|
200
|
-
}
|
|
201
|
-
next.delete('all');
|
|
202
|
-
if (next.has(key)) {
|
|
203
|
-
next.delete(key);
|
|
204
|
-
if (next.size === 0)
|
|
205
|
-
next.add('all');
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
next.add(key);
|
|
209
|
-
}
|
|
210
|
-
return { ...prev, methods: next };
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
const handleReset = () => {
|
|
214
|
-
setDraft({
|
|
215
|
-
statusCodes: new Set(['all']),
|
|
216
|
-
methods: new Set(['all']),
|
|
217
|
-
latency: 'all',
|
|
218
|
-
protocol: 'all',
|
|
219
|
-
sortBy: 'time_desc',
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
const handleApply = () => {
|
|
223
|
-
onApply(draft);
|
|
224
|
-
onClose();
|
|
225
|
-
};
|
|
226
|
-
const activeFiltersCount = (0, react_1.useMemo)(() => {
|
|
227
|
-
let count = 0;
|
|
228
|
-
if (!draft.statusCodes.has('all') && draft.statusCodes.size > 0)
|
|
229
|
-
count += draft.statusCodes.size;
|
|
230
|
-
if (!draft.methods.has('all') && draft.methods.size > 0)
|
|
231
|
-
count += draft.methods.size;
|
|
232
|
-
if (draft.latency !== 'all')
|
|
233
|
-
count++;
|
|
234
|
-
if (draft.protocol !== 'all')
|
|
235
|
-
count++;
|
|
236
|
-
if (draft.sortBy !== 'time_desc')
|
|
237
|
-
count++;
|
|
238
|
-
return count;
|
|
239
|
-
}, [draft]);
|
|
240
|
-
return (<react_native_1.Modal visible={visible} transparent animationType="fade" onRequestClose={onClose}>
|
|
241
|
-
<react_native_1.Pressable style={styles.overlay} onPress={onClose}>
|
|
242
|
-
<react_native_1.Pressable style={styles.modalCard} onPress={e => e.stopPropagation()}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(h,x,f,b){b===void 0&&(b=f);var T=Object.getOwnPropertyDescriptor(x,f);(!T||("get"in T?!x.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return x[f]}}),Object.defineProperty(h,b,T)}):(function(h,x,f,b){b===void 0&&(b=f),h[b]=x[f]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(h,x){Object.defineProperty(h,"default",{enumerable:!0,value:x})}):function(h,x){h.default=x}),__importStar=this&&this.__importStar||(function(){var h=function(x){return h=Object.getOwnPropertyNames||function(f){var b=[];for(var T in f)Object.prototype.hasOwnProperty.call(f,T)&&(b[b.length]=T);return b},h(x)};return function(x){if(x&&x.__esModule)return x;var f={};if(x!=null)for(var b=h(x),T=0;T<b.length;T++)b[T]!=="default"&&__createBinding(f,x,b[T]);return __setModuleDefault(f,x),f}})(),__importDefault=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NetworkFilterModal=exports.isNetworkFiltersDefault=exports.DEFAULT_NETWORK_FILTERS=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),i18n_1=require("../../i18n"),constants_1=require("../../constants"),NetworkIcons_1=require("../NetworkIcons"),TouchableScale_1=__importDefault(require("../TouchableScale"));exports.DEFAULT_NETWORK_FILTERS={statusCodes:new Set(["all"]),methods:new Set(["all"]),latency:"all",protocol:"all",sortBy:"time_desc"};const isNetworkFiltersDefault=h=>(h.statusCodes.has("all")||h.statusCodes.size===0)&&(h.methods.has("all")||h.methods.size===0)&&h.latency==="all"&&h.protocol==="all"&&h.sortBy==="time_desc";exports.isNetworkFiltersDefault=isNetworkFiltersDefault;const NetworkFilterModal=({visible:h,onClose:x,filters:f,onApply:b,searchQuery:T=""})=>{const{t:L}=(0,i18n_1.useTranslation)(),{logs:S}=(0,InspectorContext_1.useInspector)(),[o,k]=(0,react_1.useState)(()=>({...f,statusCodes:new Set(f.statusCodes),methods:new Set(f.methods)}));(0,react_1.useEffect)(()=>{h&&k({...f,statusCodes:new Set(f.statusCodes),methods:new Set(f.methods)})},[h,f]);const g=(0,react_1.useMemo)(()=>{const e={all:S.length,"2xx":0,"3xx":0,"4xx":0,"5xx":0,failed:0},t={all:S.length};let C=0,_=0,w=0,F=0,B=0;for(const A of S){const v=typeof A.status=="number"?A.status:parseInt(String(A.status),10);A.status===0||A.status==null?e.failed=(e.failed||0)+1:isNaN(v)||(v>=200&&v<300?e["2xx"]=(e["2xx"]||0)+1:v>=300&&v<400?e["3xx"]=(e["3xx"]||0)+1:v>=400&&v<500?e["4xx"]=(e["4xx"]||0)+1:v>=500&&(e["5xx"]=(e["5xx"]||0)+1));const P=(A.method||"GET").toUpperCase();t[P]=(t[P]||0)+1;const I=A.duration||0;I<200?C++:I<=500?_++:w++,(A.url||"").toLowerCase().startsWith("https")?F++:B++}return{statusMap:e,methodMap:t,fastCount:C,normalCount:_,slowCount:w,httpsCount:F,httpCount:B}},[S]),m=(0,react_1.useMemo)(()=>S.filter(e=>{if(!o.statusCodes.has("all")&&o.statusCodes.size>0){const _=typeof e.status=="number"?e.status:parseInt(String(e.status),10);let w=!1;if(o.statusCodes.has("failed")&&(e.status===0||e.status==null)&&(w=!0),o.statusCodes.has("2xx")&&!isNaN(_)&&_>=200&&_<300&&(w=!0),o.statusCodes.has("3xx")&&!isNaN(_)&&_>=300&&_<400&&(w=!0),o.statusCodes.has("4xx")&&!isNaN(_)&&_>=400&&_<500&&(w=!0),o.statusCodes.has("5xx")&&!isNaN(_)&&_>=500&&(w=!0),!w)return!1}if(!o.methods.has("all")&&o.methods.size>0){const _=(e.method||"GET").toUpperCase();if(!o.methods.has(_))return!1}const t=e.duration||0;if(o.latency==="fast"&&t>=200||o.latency==="normal"&&(t<200||t>500)||o.latency==="slow"&&t<=500)return!1;const C=(e.url||"").toLowerCase().startsWith("https");if(o.protocol==="https"&&!C||o.protocol==="http"&&C)return!1;if(T.trim().length>0){const _=T.toLowerCase();if(!(e.url||"").toLowerCase().includes(_))return!1}return!0}).length,[S,o,T]),z=e=>{k(t=>{const C=new Set(t.statusCodes);return e==="all"?{...t,statusCodes:new Set(["all"])}:(C.delete("all"),C.has(e)?(C.delete(e),C.size===0&&C.add("all")):C.add(e),{...t,statusCodes:C})})},V=e=>{k(t=>{const C=new Set(t.methods);return e==="all"?{...t,methods:new Set(["all"])}:(C.delete("all"),C.has(e)?(C.delete(e),C.size===0&&C.add("all")):C.add(e),{...t,methods:C})})},M=()=>{k({statusCodes:new Set(["all"]),methods:new Set(["all"]),latency:"all",protocol:"all",sortBy:"time_desc"})},R=()=>{b(o),x()},O=(0,react_1.useMemo)(()=>{let e=0;return!o.statusCodes.has("all")&&o.statusCodes.size>0&&(e+=o.statusCodes.size),!o.methods.has("all")&&o.methods.size>0&&(e+=o.methods.size),o.latency!=="all"&&e++,o.protocol!=="all"&&e++,o.sortBy!=="time_desc"&&e++,e},[o]);return<react_native_1.Modal visible={h}transparent animationType="fade"onRequestClose={x}>
|
|
2
|
+
<react_native_1.Pressable style={styles.overlay}onPress={x}>
|
|
3
|
+
<react_native_1.Pressable style={styles.modalCard}onPress={e=>e.stopPropagation()}>
|
|
243
4
|
|
|
244
5
|
<react_native_1.View style={styles.header}>
|
|
245
6
|
<react_native_1.View style={styles.headerLeft}>
|
|
246
7
|
<react_native_1.View style={styles.iconCircle}>
|
|
247
|
-
<NetworkIcons_1.FilterIcon size={16}
|
|
8
|
+
<NetworkIcons_1.FilterIcon size={16}color={AppColors_1.AppColors.purple}/>
|
|
248
9
|
</react_native_1.View>
|
|
249
10
|
<react_native_1.View>
|
|
250
|
-
<react_native_1.View style={{
|
|
11
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
251
12
|
<react_native_1.Text style={styles.title}>Network Filters</react_native_1.Text>
|
|
252
|
-
{
|
|
253
|
-
<react_native_1.Text style={styles.activeBadgeText}>{
|
|
254
|
-
</react_native_1.View>
|
|
13
|
+
{O>0&&<react_native_1.View style={styles.activeBadge}>
|
|
14
|
+
<react_native_1.Text style={styles.activeBadgeText}>{O} active</react_native_1.Text>
|
|
15
|
+
</react_native_1.View>}
|
|
255
16
|
</react_native_1.View>
|
|
256
17
|
<react_native_1.Text style={styles.subtitle}>Filter requests by status, method & speed</react_native_1.Text>
|
|
257
18
|
</react_native_1.View>
|
|
258
19
|
</react_native_1.View>
|
|
259
|
-
<react_native_1.TouchableOpacity onPress={
|
|
260
|
-
<NetworkIcons_1.CloseWhite size={14}
|
|
20
|
+
<react_native_1.TouchableOpacity onPress={x}hitSlop={10}style={styles.closeBtn}>
|
|
21
|
+
<NetworkIcons_1.CloseWhite size={14}color={AppColors_1.AppColors.grayText}/>
|
|
261
22
|
</react_native_1.TouchableOpacity>
|
|
262
23
|
</react_native_1.View>
|
|
263
24
|
|
|
264
|
-
<react_native_1.ScrollView style={styles.scrollArea}
|
|
25
|
+
<react_native_1.ScrollView style={styles.scrollArea}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
265
26
|
|
|
266
27
|
<react_native_1.View style={styles.section}>
|
|
267
28
|
<react_native_1.Text style={styles.sectionTitle}>HTTP STATUS CODE</react_native_1.Text>
|
|
268
29
|
<react_native_1.View style={styles.chipsWrap}>
|
|
269
|
-
{[
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
{ key: '4xx', label: '4xx Client Error', color: AppColors_1.AppColors.darkOrange, icon: NetworkIcons_1.CircleAlertIcon, count: counts.statusMap['4xx'] || 0 },
|
|
274
|
-
{ key: '5xx', label: '5xx Server Error', color: AppColors_1.AppColors.errorColor, icon: NetworkIcons_1.CircleXIcon, count: counts.statusMap['5xx'] || 0 },
|
|
275
|
-
{ key: 'failed', label: 'Network Failed / 0', color: AppColors_1.AppColors.errorColor, icon: NetworkIcons_1.ShieldAlertIcon, count: counts.statusMap.failed || 0 },
|
|
276
|
-
].map(item => {
|
|
277
|
-
const isSelected = draft.statusCodes.has(item.key);
|
|
278
|
-
const IconComp = item.icon;
|
|
279
|
-
return (<react_native_1.TouchableOpacity key={item.key} activeOpacity={0.7} onPress={() => toggleStatus(item.key)} style={[
|
|
280
|
-
styles.chip,
|
|
281
|
-
isSelected && {
|
|
282
|
-
backgroundColor: `${item.color}15`,
|
|
283
|
-
borderColor: item.color,
|
|
284
|
-
},
|
|
285
|
-
]}>
|
|
286
|
-
<IconComp size={13} color={isSelected ? item.color : AppColors_1.AppColors.grayTextWeak}/>
|
|
287
|
-
<react_native_1.Text style={[
|
|
288
|
-
styles.chipLabel,
|
|
289
|
-
isSelected && { color: item.color, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
290
|
-
]}>
|
|
291
|
-
{item.label}
|
|
30
|
+
{[{key:"all",label:"All Statuses",color:AppColors_1.AppColors.purple,icon:NetworkIcons_1.LayersIcon,count:g.statusMap.all},{key:"2xx",label:"2xx Success",color:AppColors_1.AppColors.greenColor,icon:NetworkIcons_1.CircleCheckIcon,count:g.statusMap["2xx"]||0},{key:"3xx",label:"3xx Redirect",color:AppColors_1.AppColors.warningIconGold,icon:NetworkIcons_1.RepeatIcon,count:g.statusMap["3xx"]||0},{key:"4xx",label:"4xx Client Error",color:AppColors_1.AppColors.darkOrange,icon:NetworkIcons_1.CircleAlertIcon,count:g.statusMap["4xx"]||0},{key:"5xx",label:"5xx Server Error",color:AppColors_1.AppColors.errorColor,icon:NetworkIcons_1.CircleXIcon,count:g.statusMap["5xx"]||0},{key:"failed",label:"Network Failed / 0",color:AppColors_1.AppColors.errorColor,icon:NetworkIcons_1.ShieldAlertIcon,count:g.statusMap.failed||0}].map(e=>{const t=o.statusCodes.has(e.key),C=e.icon;return<react_native_1.TouchableOpacity key={e.key}activeOpacity={.7}onPress={()=>z(e.key)}style={[styles.chip,t&&{backgroundColor:`${e.color}15`,borderColor:e.color}]}>
|
|
31
|
+
<C size={13}color={t?e.color:AppColors_1.AppColors.grayTextWeak}/>
|
|
32
|
+
<react_native_1.Text style={[styles.chipLabel,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
33
|
+
{e.label}
|
|
292
34
|
</react_native_1.Text>
|
|
293
|
-
<react_native_1.View style={[
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
]}>
|
|
297
|
-
<react_native_1.Text style={[
|
|
298
|
-
styles.countPillText,
|
|
299
|
-
isSelected && { color: item.color },
|
|
300
|
-
]}>
|
|
301
|
-
{item.count}
|
|
35
|
+
<react_native_1.View style={[styles.countPill,t&&{backgroundColor:`${e.color}25`}]}>
|
|
36
|
+
<react_native_1.Text style={[styles.countPillText,t&&{color:e.color}]}>
|
|
37
|
+
{e.count}
|
|
302
38
|
</react_native_1.Text>
|
|
303
39
|
</react_native_1.View>
|
|
304
|
-
</react_native_1.TouchableOpacity>)
|
|
305
|
-
})}
|
|
40
|
+
</react_native_1.TouchableOpacity>})}
|
|
306
41
|
</react_native_1.View>
|
|
307
42
|
</react_native_1.View>
|
|
308
43
|
|
|
@@ -310,58 +45,29 @@ const NetworkFilterModal = ({ visible, onClose, filters, onApply, searchQuery =
|
|
|
310
45
|
<react_native_1.View style={styles.section}>
|
|
311
46
|
<react_native_1.Text style={styles.sectionTitle}>HTTP METHOD</react_native_1.Text>
|
|
312
47
|
<react_native_1.View style={styles.chipsWrap}>
|
|
313
|
-
<react_native_1.TouchableOpacity activeOpacity={
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
backgroundColor: `${AppColors_1.AppColors.purple}15`,
|
|
317
|
-
borderColor: AppColors_1.AppColors.purple,
|
|
318
|
-
},
|
|
319
|
-
]}>
|
|
320
|
-
<NetworkIcons_1.LayersIcon size={12} color={draft.methods.has('all') ? AppColors_1.AppColors.purple : AppColors_1.AppColors.grayTextWeak}/>
|
|
321
|
-
<react_native_1.Text style={[
|
|
322
|
-
styles.chipLabel,
|
|
323
|
-
draft.methods.has('all') && { color: AppColors_1.AppColors.purple, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
324
|
-
]}>
|
|
48
|
+
<react_native_1.TouchableOpacity activeOpacity={.7}onPress={()=>V("all")}style={[styles.chip,o.methods.has("all")&&{backgroundColor:`${AppColors_1.AppColors.purple}15`,borderColor:AppColors_1.AppColors.purple}]}>
|
|
49
|
+
<NetworkIcons_1.LayersIcon size={12}color={o.methods.has("all")?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}/>
|
|
50
|
+
<react_native_1.Text style={[styles.chipLabel,o.methods.has("all")&&{color:AppColors_1.AppColors.purple,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
325
51
|
All Methods
|
|
326
52
|
</react_native_1.Text>
|
|
327
|
-
<react_native_1.View style={[styles.countPill,
|
|
328
|
-
<react_native_1.Text style={[styles.countPillText,
|
|
329
|
-
{
|
|
53
|
+
<react_native_1.View style={[styles.countPill,o.methods.has("all")&&{backgroundColor:`${AppColors_1.AppColors.purple}25`}]}>
|
|
54
|
+
<react_native_1.Text style={[styles.countPillText,o.methods.has("all")&&{color:AppColors_1.AppColors.purple}]}>
|
|
55
|
+
{g.methodMap.all}
|
|
330
56
|
</react_native_1.Text>
|
|
331
57
|
</react_native_1.View>
|
|
332
58
|
</react_native_1.TouchableOpacity>
|
|
333
59
|
|
|
334
|
-
{[
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return (<react_native_1.TouchableOpacity key={m} activeOpacity={0.7} onPress={() => toggleMethod(m)} style={[
|
|
339
|
-
styles.chip,
|
|
340
|
-
isSelected && {
|
|
341
|
-
backgroundColor: `${mColor}18`,
|
|
342
|
-
borderColor: mColor,
|
|
343
|
-
},
|
|
344
|
-
]}>
|
|
345
|
-
<react_native_1.View style={[styles.methodDot, { backgroundColor: mColor }]}/>
|
|
346
|
-
<react_native_1.Text style={[
|
|
347
|
-
styles.chipLabel,
|
|
348
|
-
isSelected && { color: mColor, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
349
|
-
]}>
|
|
350
|
-
{m}
|
|
60
|
+
{["GET","POST","PUT","DELETE","PATCH","QUERY","OPTIONS","HEAD"].map(e=>{const t=o.methods.has(e),C=constants_1.METHOD_COLORS[e]||AppColors_1.AppColors.grayText,_=g.methodMap[e]||0;return<react_native_1.TouchableOpacity key={e}activeOpacity={.7}onPress={()=>V(e)}style={[styles.chip,t&&{backgroundColor:`${C}18`,borderColor:C}]}>
|
|
61
|
+
<react_native_1.View style={[styles.methodDot,{backgroundColor:C}]}/>
|
|
62
|
+
<react_native_1.Text style={[styles.chipLabel,t&&{color:C,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
63
|
+
{e}
|
|
351
64
|
</react_native_1.Text>
|
|
352
|
-
<react_native_1.View style={[
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
]}>
|
|
356
|
-
<react_native_1.Text style={[
|
|
357
|
-
styles.countPillText,
|
|
358
|
-
isSelected && { color: mColor },
|
|
359
|
-
]}>
|
|
360
|
-
{count}
|
|
65
|
+
<react_native_1.View style={[styles.countPill,t&&{backgroundColor:`${C}25`}]}>
|
|
66
|
+
<react_native_1.Text style={[styles.countPillText,t&&{color:C}]}>
|
|
67
|
+
{_}
|
|
361
68
|
</react_native_1.Text>
|
|
362
69
|
</react_native_1.View>
|
|
363
|
-
</react_native_1.TouchableOpacity>)
|
|
364
|
-
})}
|
|
70
|
+
</react_native_1.TouchableOpacity>})}
|
|
365
71
|
</react_native_1.View>
|
|
366
72
|
</react_native_1.View>
|
|
367
73
|
|
|
@@ -369,35 +75,17 @@ const NetworkFilterModal = ({ visible, onClose, filters, onApply, searchQuery =
|
|
|
369
75
|
<react_native_1.View style={styles.section}>
|
|
370
76
|
<react_native_1.Text style={styles.sectionTitle}>LATENCY & SPEED</react_native_1.Text>
|
|
371
77
|
<react_native_1.View style={styles.chipsWrap}>
|
|
372
|
-
{[
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
{ key: 'slow', label: 'Slow (>500ms)', color: AppColors_1.AppColors.errorColor, icon: NetworkIcons_1.CircleAlertIcon, count: counts.slowCount },
|
|
377
|
-
].map(item => {
|
|
378
|
-
const isSelected = draft.latency === item.key;
|
|
379
|
-
const IconComp = item.icon;
|
|
380
|
-
return (<react_native_1.TouchableOpacity key={item.key} activeOpacity={0.7} onPress={() => setDraft(prev => ({ ...prev, latency: item.key }))} style={[
|
|
381
|
-
styles.chip,
|
|
382
|
-
isSelected && {
|
|
383
|
-
backgroundColor: `${item.color}15`,
|
|
384
|
-
borderColor: item.color,
|
|
385
|
-
},
|
|
386
|
-
]}>
|
|
387
|
-
<IconComp size={13} color={isSelected ? item.color : AppColors_1.AppColors.grayTextWeak}/>
|
|
388
|
-
<react_native_1.Text style={[
|
|
389
|
-
styles.chipLabel,
|
|
390
|
-
isSelected && { color: item.color, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
391
|
-
]}>
|
|
392
|
-
{item.label}
|
|
78
|
+
{[{key:"all",label:"All Speeds",color:AppColors_1.AppColors.purple,icon:NetworkIcons_1.LayersIcon},{key:"fast",label:"Fast (<200ms)",color:AppColors_1.AppColors.greenColor,icon:NetworkIcons_1.BoltIcon,count:g.fastCount},{key:"normal",label:"Normal (200-500ms)",color:AppColors_1.AppColors.skyBlue,icon:NetworkIcons_1.ClockIcon,count:g.normalCount},{key:"slow",label:"Slow (>500ms)",color:AppColors_1.AppColors.errorColor,icon:NetworkIcons_1.CircleAlertIcon,count:g.slowCount}].map(e=>{const t=o.latency===e.key,C=e.icon;return<react_native_1.TouchableOpacity key={e.key}activeOpacity={.7}onPress={()=>k(_=>({..._,latency:e.key}))}style={[styles.chip,t&&{backgroundColor:`${e.color}15`,borderColor:e.color}]}>
|
|
79
|
+
<C size={13}color={t?e.color:AppColors_1.AppColors.grayTextWeak}/>
|
|
80
|
+
<react_native_1.Text style={[styles.chipLabel,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
81
|
+
{e.label}
|
|
393
82
|
</react_native_1.Text>
|
|
394
|
-
{
|
|
395
|
-
<react_native_1.Text style={[styles.countPillText,
|
|
396
|
-
{
|
|
83
|
+
{e.count!=null&&<react_native_1.View style={[styles.countPill,t&&{backgroundColor:`${e.color}25`}]}>
|
|
84
|
+
<react_native_1.Text style={[styles.countPillText,t&&{color:e.color}]}>
|
|
85
|
+
{e.count}
|
|
397
86
|
</react_native_1.Text>
|
|
398
|
-
</react_native_1.View>
|
|
399
|
-
</react_native_1.TouchableOpacity>)
|
|
400
|
-
})}
|
|
87
|
+
</react_native_1.View>}
|
|
88
|
+
</react_native_1.TouchableOpacity>})}
|
|
401
89
|
</react_native_1.View>
|
|
402
90
|
</react_native_1.View>
|
|
403
91
|
|
|
@@ -405,34 +93,17 @@ const NetworkFilterModal = ({ visible, onClose, filters, onApply, searchQuery =
|
|
|
405
93
|
<react_native_1.View style={styles.section}>
|
|
406
94
|
<react_native_1.Text style={styles.sectionTitle}>PROTOCOL</react_native_1.Text>
|
|
407
95
|
<react_native_1.View style={styles.chipsWrap}>
|
|
408
|
-
{[
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
].map(item => {
|
|
413
|
-
const isSelected = draft.protocol === item.key;
|
|
414
|
-
const IconComp = item.icon;
|
|
415
|
-
return (<react_native_1.TouchableOpacity key={item.key} activeOpacity={0.7} onPress={() => setDraft(prev => ({ ...prev, protocol: item.key }))} style={[
|
|
416
|
-
styles.chip,
|
|
417
|
-
isSelected && {
|
|
418
|
-
backgroundColor: `${item.color}15`,
|
|
419
|
-
borderColor: item.color,
|
|
420
|
-
},
|
|
421
|
-
]}>
|
|
422
|
-
<IconComp size={13} color={isSelected ? item.color : AppColors_1.AppColors.grayTextWeak}/>
|
|
423
|
-
<react_native_1.Text style={[
|
|
424
|
-
styles.chipLabel,
|
|
425
|
-
isSelected && { color: item.color, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
426
|
-
]}>
|
|
427
|
-
{item.label}
|
|
96
|
+
{[{key:"all",label:"All Protocols",color:AppColors_1.AppColors.purple,icon:NetworkIcons_1.GlobeIcon},{key:"https",label:"HTTPS Secure",color:AppColors_1.AppColors.mintGreenText,icon:NetworkIcons_1.LockIcon,count:g.httpsCount},{key:"http",label:"HTTP Insecure",color:AppColors_1.AppColors.amber700,icon:NetworkIcons_1.UnlockIcon,count:g.httpCount}].map(e=>{const t=o.protocol===e.key,C=e.icon;return<react_native_1.TouchableOpacity key={e.key}activeOpacity={.7}onPress={()=>k(_=>({..._,protocol:e.key}))}style={[styles.chip,t&&{backgroundColor:`${e.color}15`,borderColor:e.color}]}>
|
|
97
|
+
<C size={13}color={t?e.color:AppColors_1.AppColors.grayTextWeak}/>
|
|
98
|
+
<react_native_1.Text style={[styles.chipLabel,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
99
|
+
{e.label}
|
|
428
100
|
</react_native_1.Text>
|
|
429
|
-
{
|
|
430
|
-
<react_native_1.Text style={[styles.countPillText,
|
|
431
|
-
{
|
|
101
|
+
{e.count!=null&&<react_native_1.View style={[styles.countPill,t&&{backgroundColor:`${e.color}25`}]}>
|
|
102
|
+
<react_native_1.Text style={[styles.countPillText,t&&{color:e.color}]}>
|
|
103
|
+
{e.count}
|
|
432
104
|
</react_native_1.Text>
|
|
433
|
-
</react_native_1.View>
|
|
434
|
-
</react_native_1.TouchableOpacity>)
|
|
435
|
-
})}
|
|
105
|
+
</react_native_1.View>}
|
|
106
|
+
</react_native_1.TouchableOpacity>})}
|
|
436
107
|
</react_native_1.View>
|
|
437
108
|
</react_native_1.View>
|
|
438
109
|
|
|
@@ -440,215 +111,28 @@ const NetworkFilterModal = ({ visible, onClose, filters, onApply, searchQuery =
|
|
|
440
111
|
<react_native_1.View style={styles.section}>
|
|
441
112
|
<react_native_1.Text style={styles.sectionTitle}>SORT BY</react_native_1.Text>
|
|
442
113
|
<react_native_1.View style={styles.chipsWrap}>
|
|
443
|
-
{[
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
{ key: 'duration_asc', label: 'Fastest Response', icon: NetworkIcons_1.RocketIcon },
|
|
448
|
-
{ key: 'size_desc', label: 'Largest Response Size', icon: NetworkIcons_1.PackageIcon },
|
|
449
|
-
].map(item => {
|
|
450
|
-
const isSelected = draft.sortBy === item.key;
|
|
451
|
-
const IconComp = item.icon;
|
|
452
|
-
return (<react_native_1.TouchableOpacity key={item.key} activeOpacity={0.7} onPress={() => setDraft(prev => ({ ...prev, sortBy: item.key }))} style={[
|
|
453
|
-
styles.chip,
|
|
454
|
-
isSelected && {
|
|
455
|
-
backgroundColor: `${AppColors_1.AppColors.purple}15`,
|
|
456
|
-
borderColor: AppColors_1.AppColors.purple,
|
|
457
|
-
},
|
|
458
|
-
]}>
|
|
459
|
-
<IconComp size={13} color={isSelected ? AppColors_1.AppColors.purple : AppColors_1.AppColors.grayTextWeak}/>
|
|
460
|
-
<react_native_1.Text style={[
|
|
461
|
-
styles.chipLabel,
|
|
462
|
-
isSelected && { color: AppColors_1.AppColors.purple, fontFamily: AppFonts_1.AppFonts.interBold },
|
|
463
|
-
]}>
|
|
464
|
-
{item.label}
|
|
114
|
+
{[{key:"time_desc",label:"Newest First (Default)",icon:NetworkIcons_1.ClockIcon},{key:"time_asc",label:"Oldest First",icon:NetworkIcons_1.HourglassIcon},{key:"duration_desc",label:"Slowest Response",icon:NetworkIcons_1.TurtleIcon},{key:"duration_asc",label:"Fastest Response",icon:NetworkIcons_1.RocketIcon},{key:"size_desc",label:"Largest Response Size",icon:NetworkIcons_1.PackageIcon}].map(e=>{const t=o.sortBy===e.key,C=e.icon;return<react_native_1.TouchableOpacity key={e.key}activeOpacity={.7}onPress={()=>k(_=>({..._,sortBy:e.key}))}style={[styles.chip,t&&{backgroundColor:`${AppColors_1.AppColors.purple}15`,borderColor:AppColors_1.AppColors.purple}]}>
|
|
115
|
+
<C size={13}color={t?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}/>
|
|
116
|
+
<react_native_1.Text style={[styles.chipLabel,t&&{color:AppColors_1.AppColors.purple,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
117
|
+
{e.label}
|
|
465
118
|
</react_native_1.Text>
|
|
466
|
-
</react_native_1.TouchableOpacity>)
|
|
467
|
-
})}
|
|
119
|
+
</react_native_1.TouchableOpacity>})}
|
|
468
120
|
</react_native_1.View>
|
|
469
121
|
</react_native_1.View>
|
|
470
122
|
</react_native_1.ScrollView>
|
|
471
123
|
|
|
472
124
|
|
|
473
125
|
<react_native_1.View style={styles.footer}>
|
|
474
|
-
<TouchableScale_1.default onPress={
|
|
126
|
+
<TouchableScale_1.default onPress={M}style={styles.resetBtn}>
|
|
475
127
|
<react_native_1.Text style={styles.resetBtnText}>Reset All</react_native_1.Text>
|
|
476
128
|
</TouchableScale_1.default>
|
|
477
129
|
|
|
478
|
-
<TouchableScale_1.default onPress={
|
|
130
|
+
<TouchableScale_1.default onPress={R}style={styles.applyBtn}>
|
|
479
131
|
<react_native_1.Text style={styles.applyBtnText}>
|
|
480
|
-
Apply ({
|
|
132
|
+
Apply ({m} Request{m===1?"":"s"})
|
|
481
133
|
</react_native_1.Text>
|
|
482
134
|
</TouchableScale_1.default>
|
|
483
135
|
</react_native_1.View>
|
|
484
136
|
</react_native_1.Pressable>
|
|
485
137
|
</react_native_1.Pressable>
|
|
486
|
-
</react_native_1.Modal>);
|
|
487
|
-
};
|
|
488
|
-
exports.NetworkFilterModal = NetworkFilterModal;
|
|
489
|
-
const styles = react_native_1.StyleSheet.create({
|
|
490
|
-
overlay: {
|
|
491
|
-
flex: 1,
|
|
492
|
-
backgroundColor: 'rgba(0, 0, 0, 0.55)',
|
|
493
|
-
justifyContent: 'flex-end',
|
|
494
|
-
},
|
|
495
|
-
modalCard: {
|
|
496
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
497
|
-
borderTopLeftRadius: 20,
|
|
498
|
-
borderTopRightRadius: 20,
|
|
499
|
-
maxHeight: '85%',
|
|
500
|
-
shadowColor: AppColors_1.AppColors.black,
|
|
501
|
-
shadowOffset: { width: 0, height: -4 },
|
|
502
|
-
shadowOpacity: 0.15,
|
|
503
|
-
shadowRadius: 10,
|
|
504
|
-
elevation: 8,
|
|
505
|
-
},
|
|
506
|
-
header: {
|
|
507
|
-
flexDirection: 'row',
|
|
508
|
-
alignItems: 'center',
|
|
509
|
-
justifyContent: 'space-between',
|
|
510
|
-
paddingHorizontal: 16,
|
|
511
|
-
paddingTop: 16,
|
|
512
|
-
paddingBottom: 12,
|
|
513
|
-
borderBottomWidth: 1,
|
|
514
|
-
borderBottomColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
515
|
-
},
|
|
516
|
-
headerLeft: {
|
|
517
|
-
flexDirection: 'row',
|
|
518
|
-
alignItems: 'center',
|
|
519
|
-
gap: 10,
|
|
520
|
-
flex: 1,
|
|
521
|
-
},
|
|
522
|
-
iconCircle: {
|
|
523
|
-
width: 34,
|
|
524
|
-
height: 34,
|
|
525
|
-
borderRadius: 10,
|
|
526
|
-
backgroundColor: `${AppColors_1.AppColors.purple}15`,
|
|
527
|
-
alignItems: 'center',
|
|
528
|
-
justifyContent: 'center',
|
|
529
|
-
},
|
|
530
|
-
title: {
|
|
531
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
532
|
-
fontSize: 16,
|
|
533
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
534
|
-
},
|
|
535
|
-
subtitle: {
|
|
536
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
537
|
-
fontSize: 11,
|
|
538
|
-
color: AppColors_1.AppColors.grayText,
|
|
539
|
-
marginTop: 1,
|
|
540
|
-
},
|
|
541
|
-
activeBadge: {
|
|
542
|
-
backgroundColor: `${AppColors_1.AppColors.purple}20`,
|
|
543
|
-
paddingHorizontal: 6,
|
|
544
|
-
paddingVertical: 1.5,
|
|
545
|
-
borderRadius: 8,
|
|
546
|
-
borderWidth: 1,
|
|
547
|
-
borderColor: `${AppColors_1.AppColors.purple}40`,
|
|
548
|
-
},
|
|
549
|
-
activeBadgeText: {
|
|
550
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
551
|
-
fontSize: 9.5,
|
|
552
|
-
color: AppColors_1.AppColors.purple,
|
|
553
|
-
},
|
|
554
|
-
closeBtn: {
|
|
555
|
-
padding: 6,
|
|
556
|
-
},
|
|
557
|
-
scrollArea: {
|
|
558
|
-
maxHeight: 460,
|
|
559
|
-
},
|
|
560
|
-
scrollContent: {
|
|
561
|
-
padding: 16,
|
|
562
|
-
gap: 16,
|
|
563
|
-
},
|
|
564
|
-
section: {
|
|
565
|
-
gap: 8,
|
|
566
|
-
},
|
|
567
|
-
sectionTitle: {
|
|
568
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
569
|
-
fontSize: 11,
|
|
570
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
571
|
-
letterSpacing: 0.8,
|
|
572
|
-
},
|
|
573
|
-
chipsWrap: {
|
|
574
|
-
flexDirection: 'row',
|
|
575
|
-
flexWrap: 'wrap',
|
|
576
|
-
gap: 8,
|
|
577
|
-
},
|
|
578
|
-
chip: {
|
|
579
|
-
flexDirection: 'row',
|
|
580
|
-
alignItems: 'center',
|
|
581
|
-
gap: 6,
|
|
582
|
-
paddingHorizontal: 10,
|
|
583
|
-
paddingVertical: 6,
|
|
584
|
-
borderRadius: 8,
|
|
585
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
586
|
-
borderWidth: 1,
|
|
587
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
588
|
-
},
|
|
589
|
-
chipLabel: {
|
|
590
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
591
|
-
fontSize: 12,
|
|
592
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
593
|
-
},
|
|
594
|
-
methodDot: {
|
|
595
|
-
width: 6.5,
|
|
596
|
-
height: 6.5,
|
|
597
|
-
borderRadius: 3.5,
|
|
598
|
-
},
|
|
599
|
-
countPill: {
|
|
600
|
-
backgroundColor: `${AppColors_1.AppColors.grayBorderSecondary}50`,
|
|
601
|
-
paddingHorizontal: 5,
|
|
602
|
-
paddingVertical: 1,
|
|
603
|
-
borderRadius: 6,
|
|
604
|
-
},
|
|
605
|
-
countPillText: {
|
|
606
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
607
|
-
fontSize: 9.5,
|
|
608
|
-
color: AppColors_1.AppColors.grayText,
|
|
609
|
-
},
|
|
610
|
-
footer: {
|
|
611
|
-
flexDirection: 'row',
|
|
612
|
-
alignItems: 'center',
|
|
613
|
-
gap: 10,
|
|
614
|
-
paddingHorizontal: 16,
|
|
615
|
-
paddingVertical: 14,
|
|
616
|
-
borderTopWidth: 1,
|
|
617
|
-
borderTopColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
618
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
619
|
-
},
|
|
620
|
-
resetBtn: {
|
|
621
|
-
flex: 1,
|
|
622
|
-
paddingVertical: 11,
|
|
623
|
-
borderRadius: 10,
|
|
624
|
-
borderWidth: 1,
|
|
625
|
-
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
626
|
-
alignItems: 'center',
|
|
627
|
-
justifyContent: 'center',
|
|
628
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
629
|
-
},
|
|
630
|
-
resetBtnText: {
|
|
631
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
632
|
-
fontSize: 13,
|
|
633
|
-
color: AppColors_1.AppColors.grayTextStrong,
|
|
634
|
-
},
|
|
635
|
-
applyBtn: {
|
|
636
|
-
flex: 2,
|
|
637
|
-
paddingVertical: 11,
|
|
638
|
-
borderRadius: 10,
|
|
639
|
-
alignItems: 'center',
|
|
640
|
-
justifyContent: 'center',
|
|
641
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
642
|
-
shadowColor: AppColors_1.AppColors.purple,
|
|
643
|
-
shadowOffset: { width: 0, height: 2 },
|
|
644
|
-
shadowOpacity: 0.25,
|
|
645
|
-
shadowRadius: 4,
|
|
646
|
-
elevation: 3,
|
|
647
|
-
},
|
|
648
|
-
applyBtnText: {
|
|
649
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
650
|
-
fontSize: 13,
|
|
651
|
-
color: AppColors_1.AppColors.white,
|
|
652
|
-
},
|
|
653
|
-
});
|
|
654
|
-
exports.default = exports.NetworkFilterModal;
|
|
138
|
+
</react_native_1.Modal>};exports.NetworkFilterModal=NetworkFilterModal;const styles=react_native_1.StyleSheet.create({overlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.55)",justifyContent:"flex-end"},modalCard:{backgroundColor:AppColors_1.AppColors.primaryLight,borderTopLeftRadius:20,borderTopRightRadius:20,maxHeight:"85%",shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:-4},shadowOpacity:.15,shadowRadius:10,elevation:8},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:16,paddingBottom:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1},iconCircle:{width:34,height:34,borderRadius:10,backgroundColor:`${AppColors_1.AppColors.purple}15`,alignItems:"center",justifyContent:"center"},title:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,color:AppColors_1.AppColors.primaryBlack},subtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayText,marginTop:1},activeBadge:{backgroundColor:`${AppColors_1.AppColors.purple}20`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}40`},activeBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.purple},closeBtn:{padding:6},scrollArea:{maxHeight:460},scrollContent:{padding:16,gap:16},section:{gap:8},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8},chipsWrap:{flexDirection:"row",flexWrap:"wrap",gap:8},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:10,paddingVertical:6,borderRadius:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},chipLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.primaryBlack},methodDot:{width:6.5,height:6.5,borderRadius:3.5},countPill:{backgroundColor:`${AppColors_1.AppColors.grayBorderSecondary}50`,paddingHorizontal:5,paddingVertical:1,borderRadius:6},countPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayText},footer:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:16,paddingVertical:14,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.primaryLight},resetBtn:{flex:1,paddingVertical:11,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.grayBackground},resetBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.grayTextStrong},applyBtn:{flex:2,paddingVertical:11,borderRadius:10,alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.purple,shadowColor:AppColors_1.AppColors.purple,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:3},applyBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.white}});exports.default=exports.NetworkFilterModal;
|