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,323 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
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
|
-
const react_1 = __importStar(require("react"));
|
|
40
|
-
const react_native_1 = require("react-native");
|
|
41
|
-
const InspectorContext_1 = require("./InspectorContext");
|
|
42
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
43
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
44
|
-
const helpers_1 = require("../../helpers");
|
|
45
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
46
|
-
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
47
|
-
const DEFAULT_FILTERS = {
|
|
48
|
-
categories: new Set(['all']),
|
|
49
|
-
screens: new Set(),
|
|
50
|
-
sources: new Set(['all']),
|
|
51
|
-
userTypes: new Set(['all']),
|
|
52
|
-
timeWindow: 'all',
|
|
53
|
-
payloadComplexity: 'all',
|
|
54
|
-
hasRevenue: false,
|
|
55
|
-
hasItems: false,
|
|
56
|
-
hasUserProps: false,
|
|
57
|
-
hasParams: false,
|
|
58
|
-
onlyDuplicates: false,
|
|
59
|
-
onlyConversions: false,
|
|
60
|
-
sortBy: 'time_desc',
|
|
61
|
-
};
|
|
62
|
-
const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
63
|
-
const { analyticsEvents, analyticsSearch, analyticsFilters, setAnalyticsFilters, } = (0, InspectorContext_1.useInspector)();
|
|
64
|
-
const [draft, setDraft] = (0, react_1.useState)(() => ({
|
|
65
|
-
...analyticsFilters,
|
|
66
|
-
categories: new Set(analyticsFilters.categories),
|
|
67
|
-
screens: new Set(analyticsFilters.screens),
|
|
68
|
-
sources: new Set(analyticsFilters.sources || ['all']),
|
|
69
|
-
userTypes: new Set(analyticsFilters.userTypes || ['all']),
|
|
70
|
-
}));
|
|
71
|
-
(0, react_1.useEffect)(() => {
|
|
72
|
-
if (visible) {
|
|
73
|
-
setDraft({
|
|
74
|
-
...analyticsFilters,
|
|
75
|
-
categories: new Set(analyticsFilters.categories),
|
|
76
|
-
screens: new Set(analyticsFilters.screens),
|
|
77
|
-
sources: new Set(analyticsFilters.sources || ['all']),
|
|
78
|
-
userTypes: new Set(analyticsFilters.userTypes || ['all']),
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}, [visible, analyticsFilters]);
|
|
82
|
-
const uniqueScreens = (0, react_1.useMemo)(() => {
|
|
83
|
-
const screens = new Set();
|
|
84
|
-
for (const e of analyticsEvents) {
|
|
85
|
-
const scr = e.screenName ||
|
|
86
|
-
e.params?.firebase_screen ||
|
|
87
|
-
e.params?.screen_name ||
|
|
88
|
-
e.params?.firebase_screen_class ||
|
|
89
|
-
e.screenClass;
|
|
90
|
-
if (scr && typeof scr === 'string' && scr.trim() !== '') {
|
|
91
|
-
screens.add(scr.trim());
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return Array.from(screens);
|
|
95
|
-
}, [analyticsEvents]);
|
|
96
|
-
const toggleCategory = (cat) => {
|
|
97
|
-
setDraft(prev => {
|
|
98
|
-
const next = new Set(prev.categories);
|
|
99
|
-
if (cat === 'all') {
|
|
100
|
-
return { ...prev, categories: new Set(['all']) };
|
|
101
|
-
}
|
|
102
|
-
next.delete('all');
|
|
103
|
-
if (next.has(cat)) {
|
|
104
|
-
next.delete(cat);
|
|
105
|
-
if (next.size === 0)
|
|
106
|
-
next.add('all');
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
next.add(cat);
|
|
110
|
-
}
|
|
111
|
-
return { ...prev, categories: next };
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
const toggleScreen = (scr) => {
|
|
115
|
-
setDraft(prev => {
|
|
116
|
-
const next = new Set(prev.screens);
|
|
117
|
-
if (next.has(scr)) {
|
|
118
|
-
next.delete(scr);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
next.add(scr);
|
|
122
|
-
}
|
|
123
|
-
return { ...prev, screens: next };
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
const toggleSource = (src) => {
|
|
127
|
-
setDraft(prev => {
|
|
128
|
-
const next = new Set(prev.sources);
|
|
129
|
-
if (src === 'all') {
|
|
130
|
-
return { ...prev, sources: new Set(['all']) };
|
|
131
|
-
}
|
|
132
|
-
next.delete('all');
|
|
133
|
-
if (next.has(src)) {
|
|
134
|
-
next.delete(src);
|
|
135
|
-
if (next.size === 0)
|
|
136
|
-
next.add('all');
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
next.add(src);
|
|
140
|
-
}
|
|
141
|
-
return { ...prev, sources: next };
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
const toggleUserType = (ut) => {
|
|
145
|
-
setDraft(prev => {
|
|
146
|
-
const next = new Set(prev.userTypes);
|
|
147
|
-
if (ut === 'all') {
|
|
148
|
-
return { ...prev, userTypes: new Set(['all']) };
|
|
149
|
-
}
|
|
150
|
-
next.delete('all');
|
|
151
|
-
if (next.has(ut)) {
|
|
152
|
-
next.delete(ut);
|
|
153
|
-
if (next.size === 0)
|
|
154
|
-
next.add('all');
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
next.add(ut);
|
|
158
|
-
}
|
|
159
|
-
return { ...prev, userTypes: next };
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
const toggleFlag = (key) => {
|
|
163
|
-
setDraft(prev => ({
|
|
164
|
-
...prev,
|
|
165
|
-
[key]: !prev[key],
|
|
166
|
-
}));
|
|
167
|
-
};
|
|
168
|
-
const setTimeWindow = (tw) => {
|
|
169
|
-
setDraft(prev => ({ ...prev, timeWindow: tw }));
|
|
170
|
-
};
|
|
171
|
-
const setPayloadComplexity = (pc) => {
|
|
172
|
-
setDraft(prev => ({ ...prev, payloadComplexity: pc }));
|
|
173
|
-
};
|
|
174
|
-
const setSort = (sortBy) => {
|
|
175
|
-
setDraft(prev => ({ ...prev, sortBy }));
|
|
176
|
-
};
|
|
177
|
-
const handleResetDraft = () => {
|
|
178
|
-
setDraft({
|
|
179
|
-
categories: new Set(['all']),
|
|
180
|
-
screens: new Set(),
|
|
181
|
-
sources: new Set(['all']),
|
|
182
|
-
userTypes: new Set(['all']),
|
|
183
|
-
timeWindow: 'all',
|
|
184
|
-
payloadComplexity: 'all',
|
|
185
|
-
hasRevenue: false,
|
|
186
|
-
hasItems: false,
|
|
187
|
-
hasUserProps: false,
|
|
188
|
-
hasParams: false,
|
|
189
|
-
onlyDuplicates: false,
|
|
190
|
-
onlyConversions: false,
|
|
191
|
-
sortBy: 'time_desc',
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
const handleApply = () => {
|
|
195
|
-
setAnalyticsFilters({
|
|
196
|
-
...draft,
|
|
197
|
-
categories: new Set(draft.categories),
|
|
198
|
-
screens: new Set(draft.screens),
|
|
199
|
-
sources: new Set(draft.sources),
|
|
200
|
-
userTypes: new Set(draft.userTypes),
|
|
201
|
-
});
|
|
202
|
-
onClose();
|
|
203
|
-
};
|
|
204
|
-
const handleDiscard = () => {
|
|
205
|
-
setDraft({
|
|
206
|
-
...analyticsFilters,
|
|
207
|
-
categories: new Set(analyticsFilters.categories),
|
|
208
|
-
screens: new Set(analyticsFilters.screens),
|
|
209
|
-
sources: new Set(analyticsFilters.sources || ['all']),
|
|
210
|
-
userTypes: new Set(analyticsFilters.userTypes || ['all']),
|
|
211
|
-
});
|
|
212
|
-
onClose();
|
|
213
|
-
};
|
|
214
|
-
const draftMatchCount = (0, react_1.useMemo)(() => {
|
|
215
|
-
let events = analyticsEvents;
|
|
216
|
-
if (analyticsSearch) {
|
|
217
|
-
const s = analyticsSearch.toLowerCase();
|
|
218
|
-
events = events.filter(e => e.name.toLowerCase().includes(s) ||
|
|
219
|
-
JSON.stringify(e.params || {}).toLowerCase().includes(s) ||
|
|
220
|
-
(e.screenName ?? '').toLowerCase().includes(s) ||
|
|
221
|
-
(e.pageTitle ?? '').toLowerCase().includes(s));
|
|
222
|
-
}
|
|
223
|
-
if (draft.categories.size > 0 && !draft.categories.has('all')) {
|
|
224
|
-
events = events.filter(e => {
|
|
225
|
-
const cat = (0, helpers_1.getEventCategory)(e.name);
|
|
226
|
-
return draft.categories.has(cat);
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
if (draft.timeWindow !== 'all') {
|
|
230
|
-
const now = Date.now();
|
|
231
|
-
const cutoff = draft.timeWindow === '1m'
|
|
232
|
-
? now - 60 * 1000
|
|
233
|
-
: draft.timeWindow === '5m'
|
|
234
|
-
? now - 5 * 60 * 1000
|
|
235
|
-
: draft.timeWindow === '15m'
|
|
236
|
-
? now - 15 * 60 * 1000
|
|
237
|
-
: now - 60 * 60 * 1000;
|
|
238
|
-
events = events.filter(e => e.timestamp >= cutoff);
|
|
239
|
-
}
|
|
240
|
-
if (draft.sources.size > 0 && !draft.sources.has('all')) {
|
|
241
|
-
events = events.filter(e => draft.sources.has(e.source || 'manual'));
|
|
242
|
-
}
|
|
243
|
-
if (draft.userTypes.size > 0 && !draft.userTypes.has('all')) {
|
|
244
|
-
events = events.filter(e => {
|
|
245
|
-
const isIdentified = Boolean(e.userId && e.userId.trim() !== '');
|
|
246
|
-
if (draft.userTypes.has('identified') && isIdentified)
|
|
247
|
-
return true;
|
|
248
|
-
if (draft.userTypes.has('anonymous') && !isIdentified)
|
|
249
|
-
return true;
|
|
250
|
-
return false;
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
if (draft.payloadComplexity !== 'all') {
|
|
254
|
-
events = events.filter(e => {
|
|
255
|
-
const count = e.params ? Object.keys(e.params).length : 0;
|
|
256
|
-
if (draft.payloadComplexity === 'none')
|
|
257
|
-
return count === 0;
|
|
258
|
-
if (draft.payloadComplexity === 'simple')
|
|
259
|
-
return count >= 1 && count <= 5;
|
|
260
|
-
if (draft.payloadComplexity === 'heavy')
|
|
261
|
-
return count > 5;
|
|
262
|
-
return true;
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
if (draft.onlyConversions) {
|
|
266
|
-
const CONVERSION_PATTERNS = [
|
|
267
|
-
'purchase',
|
|
268
|
-
'item_purchase',
|
|
269
|
-
'ecommerce_purchase',
|
|
270
|
-
'sign_up',
|
|
271
|
-
'login',
|
|
272
|
-
'lead',
|
|
273
|
-
'generate_lead',
|
|
274
|
-
'tutorial_complete',
|
|
275
|
-
'add_payment_info',
|
|
276
|
-
'begin_checkout',
|
|
277
|
-
];
|
|
278
|
-
events = events.filter(e => CONVERSION_PATTERNS.some(pat => e.name.toLowerCase().includes(pat)));
|
|
279
|
-
}
|
|
280
|
-
if (draft.screens.size > 0) {
|
|
281
|
-
events = events.filter(e => {
|
|
282
|
-
const scr = e.screenName ||
|
|
283
|
-
e.params?.firebase_screen ||
|
|
284
|
-
e.params?.screen_name ||
|
|
285
|
-
e.params?.firebase_screen_class ||
|
|
286
|
-
e.screenClass ||
|
|
287
|
-
'';
|
|
288
|
-
return draft.screens.has(scr);
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
if (draft.hasRevenue) {
|
|
292
|
-
events = events.filter(e => {
|
|
293
|
-
const val = e.params?.value ?? e.params?.price;
|
|
294
|
-
return val !== undefined && val !== null && Number(val) > 0;
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
if (draft.hasItems) {
|
|
298
|
-
events = events.filter(e => Array.isArray(e.params?.items) && e.params.items.length > 0);
|
|
299
|
-
}
|
|
300
|
-
if (draft.hasUserProps) {
|
|
301
|
-
events = events.filter(e => e.userProperties && Object.keys(e.userProperties).length > 0);
|
|
302
|
-
}
|
|
303
|
-
if (draft.hasParams) {
|
|
304
|
-
events = events.filter(e => e.params && Object.keys(e.params).length > 0);
|
|
305
|
-
}
|
|
306
|
-
return events.length;
|
|
307
|
-
}, [analyticsEvents, analyticsSearch, draft]);
|
|
308
|
-
const isAllCategories = draft.categories.has('all') || draft.categories.size === 0;
|
|
309
|
-
const isAllSources = draft.sources.has('all') || draft.sources.size === 0;
|
|
310
|
-
const isAllUserTypes = draft.userTypes.has('all') || draft.userTypes.size === 0;
|
|
311
|
-
return (<react_native_1.Modal visible={visible} transparent animationType="fade" onRequestClose={handleDiscard}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(a,i,n,o){o===void 0&&(o=n);var s=Object.getOwnPropertyDescriptor(i,n);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[n]}}),Object.defineProperty(a,o,s)}):(function(a,i,n,o){o===void 0&&(o=n),a[o]=i[n]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(a,i){Object.defineProperty(a,"default",{enumerable:!0,value:i})}):function(a,i){a.default=i}),__importStar=this&&this.__importStar||(function(){var a=function(i){return a=Object.getOwnPropertyNames||function(n){var o=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[o.length]=s);return o},a(i)};return function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var o=a(i),s=0;s<o.length;s++)o[s]!=="default"&&__createBinding(n,i,o[s]);return __setModuleDefault(n,i),n}})(),__importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!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"),helpers_1=require("../../helpers"),NetworkIcons_1=require("../NetworkIcons"),TouchableScale_1=__importDefault(require("../TouchableScale")),DEFAULT_FILTERS={categories:new Set(["all"]),screens:new Set,sources:new Set(["all"]),userTypes:new Set(["all"]),timeWindow:"all",payloadComplexity:"all",hasRevenue:!1,hasItems:!1,hasUserProps:!1,hasParams:!1,onlyDuplicates:!1,onlyConversions:!1,sortBy:"time_desc"},AnalyticsFilterModal=({visible:a,onClose:i})=>{const{analyticsEvents:n,analyticsSearch:o,analyticsFilters:s,setAnalyticsFilters:v}=(0,InspectorContext_1.useInspector)(),[e,c]=(0,react_1.useState)(()=>({...s,categories:new Set(s.categories),screens:new Set(s.screens),sources:new Set(s.sources||["all"]),userTypes:new Set(s.userTypes||["all"])}));(0,react_1.useEffect)(()=>{a&&c({...s,categories:new Set(s.categories),screens:new Set(s.screens),sources:new Set(s.sources||["all"]),userTypes:new Set(s.userTypes||["all"])})},[a,s]);const y=(0,react_1.useMemo)(()=>{const t=new Set;for(const l of n){const r=l.screenName||l.params?.firebase_screen||l.params?.screen_name||l.params?.firebase_screen_class||l.screenClass;r&&typeof r=="string"&&r.trim()!==""&&t.add(r.trim())}return Array.from(t)},[n]),u=t=>{c(l=>{const r=new Set(l.categories);return t==="all"?{...l,categories:new Set(["all"])}:(r.delete("all"),r.has(t)?(r.delete(t),r.size===0&&r.add("all")):r.add(t),{...l,categories:r})})},C=t=>{c(l=>{const r=new Set(l.screens);return r.has(t)?r.delete(t):r.add(t),{...l,screens:r}})},_=t=>{c(l=>{const r=new Set(l.sources);return t==="all"?{...l,sources:new Set(["all"])}:(r.delete("all"),r.has(t)?(r.delete(t),r.size===0&&r.add("all")):r.add(t),{...l,sources:r})})},T=t=>{c(l=>{const r=new Set(l.userTypes);return t==="all"?{...l,userTypes:new Set(["all"])}:(r.delete("all"),r.has(t)?(r.delete(t),r.size===0&&r.add("all")):r.add(t),{...l,userTypes:r})})},p=t=>{c(l=>({...l,[t]:!l[t]}))},A=t=>{c(l=>({...l,timeWindow:t}))},m=t=>{c(l=>({...l,payloadComplexity:t}))},d=t=>{c(l=>({...l,sortBy:t}))},g=()=>{c({categories:new Set(["all"]),screens:new Set,sources:new Set(["all"]),userTypes:new Set(["all"]),timeWindow:"all",payloadComplexity:"all",hasRevenue:!1,hasItems:!1,hasUserProps:!1,hasParams:!1,onlyDuplicates:!1,onlyConversions:!1,sortBy:"time_desc"})},b=()=>{v({...e,categories:new Set(e.categories),screens:new Set(e.screens),sources:new Set(e.sources),userTypes:new Set(e.userTypes)}),i()},f=()=>{c({...s,categories:new Set(s.categories),screens:new Set(s.screens),sources:new Set(s.sources||["all"]),userTypes:new Set(s.userTypes||["all"])}),i()},S=(0,react_1.useMemo)(()=>{let t=n;if(o){const l=o.toLowerCase();t=t.filter(r=>r.name.toLowerCase().includes(l)||JSON.stringify(r.params||{}).toLowerCase().includes(l)||(r.screenName??"").toLowerCase().includes(l)||(r.pageTitle??"").toLowerCase().includes(l))}if(e.categories.size>0&&!e.categories.has("all")&&(t=t.filter(l=>{const r=(0,helpers_1.getEventCategory)(l.name);return e.categories.has(r)})),e.timeWindow!=="all"){const l=Date.now(),r=e.timeWindow==="1m"?l-60*1e3:e.timeWindow==="5m"?l-300*1e3:e.timeWindow==="15m"?l-900*1e3:l-3600*1e3;t=t.filter(P=>P.timestamp>=r)}if(e.sources.size>0&&!e.sources.has("all")&&(t=t.filter(l=>e.sources.has(l.source||"manual"))),e.userTypes.size>0&&!e.userTypes.has("all")&&(t=t.filter(l=>{const r=!!(l.userId&&l.userId.trim()!=="");return!!(e.userTypes.has("identified")&&r||e.userTypes.has("anonymous")&&!r)})),e.payloadComplexity!=="all"&&(t=t.filter(l=>{const r=l.params?Object.keys(l.params).length:0;return e.payloadComplexity==="none"?r===0:e.payloadComplexity==="simple"?r>=1&&r<=5:e.payloadComplexity==="heavy"?r>5:!0})),e.onlyConversions){const l=["purchase","item_purchase","ecommerce_purchase","sign_up","login","lead","generate_lead","tutorial_complete","add_payment_info","begin_checkout"];t=t.filter(r=>l.some(P=>r.name.toLowerCase().includes(P)))}return e.screens.size>0&&(t=t.filter(l=>{const r=l.screenName||l.params?.firebase_screen||l.params?.screen_name||l.params?.firebase_screen_class||l.screenClass||"";return e.screens.has(r)})),e.hasRevenue&&(t=t.filter(l=>{const r=l.params?.value??l.params?.price;return r!=null&&Number(r)>0})),e.hasItems&&(t=t.filter(l=>Array.isArray(l.params?.items)&&l.params.items.length>0)),e.hasUserProps&&(t=t.filter(l=>l.userProperties&&Object.keys(l.userProperties).length>0)),e.hasParams&&(t=t.filter(l=>l.params&&Object.keys(l.params).length>0)),t.length},[n,o,e]),h=e.categories.has("all")||e.categories.size===0,w=e.sources.has("all")||e.sources.size===0,x=e.userTypes.has("all")||e.userTypes.size===0;return<react_native_1.Modal visible={a}transparent animationType="fade"onRequestClose={f}>
|
|
312
2
|
<react_native_1.View style={styles.backdrop}>
|
|
313
|
-
<react_native_1.Pressable style={react_native_1.StyleSheet.absoluteFill}
|
|
3
|
+
<react_native_1.Pressable style={react_native_1.StyleSheet.absoluteFill}onPress={f}/>
|
|
314
4
|
|
|
315
5
|
<react_native_1.View style={styles.modalCard}>
|
|
316
6
|
|
|
317
7
|
<react_native_1.View style={styles.header}>
|
|
318
|
-
<react_native_1.View style={{
|
|
8
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
319
9
|
<react_native_1.View style={styles.headerIconBox}>
|
|
320
|
-
<NetworkIcons_1.FilterIcon color={AppColors_1.AppColors.brandPurple}
|
|
10
|
+
<NetworkIcons_1.FilterIcon color={AppColors_1.AppColors.brandPurple}size={15}/>
|
|
321
11
|
</react_native_1.View>
|
|
322
12
|
<react_native_1.View>
|
|
323
13
|
<react_native_1.Text style={styles.headerTitle}>Analytics Filters</react_native_1.Text>
|
|
@@ -327,132 +17,72 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
327
17
|
</react_native_1.View>
|
|
328
18
|
</react_native_1.View>
|
|
329
19
|
|
|
330
|
-
<react_native_1.View style={{
|
|
331
|
-
<react_native_1.TouchableOpacity onPress={
|
|
20
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
21
|
+
<react_native_1.TouchableOpacity onPress={g}hitSlop={8}style={styles.resetBtn}>
|
|
332
22
|
<react_native_1.Text style={styles.resetBtnText}>Reset All</react_native_1.Text>
|
|
333
23
|
</react_native_1.TouchableOpacity>
|
|
334
24
|
|
|
335
|
-
<react_native_1.TouchableOpacity onPress={
|
|
336
|
-
<NetworkIcons_1.CloseWhite
|
|
25
|
+
<react_native_1.TouchableOpacity onPress={f}hitSlop={10}style={styles.closeBtn}>
|
|
26
|
+
<NetworkIcons_1.CloseWhite/>
|
|
337
27
|
</react_native_1.TouchableOpacity>
|
|
338
28
|
</react_native_1.View>
|
|
339
29
|
</react_native_1.View>
|
|
340
30
|
|
|
341
31
|
|
|
342
|
-
<react_native_1.ScrollView style={{
|
|
32
|
+
<react_native_1.ScrollView style={{maxHeight:460}}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!0}>
|
|
343
33
|
|
|
344
34
|
<react_native_1.View style={styles.section}>
|
|
345
35
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
346
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
36
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
347
37
|
<react_native_1.Text style={styles.sectionTitle}>TIME HORIZON</react_native_1.Text>
|
|
348
38
|
</react_native_1.View>
|
|
349
39
|
<react_native_1.View style={styles.chipsWrap}>
|
|
350
|
-
{[
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
{ key: '5m', label: 'Last 5 mins' },
|
|
354
|
-
{ key: '15m', label: 'Last 15 mins' },
|
|
355
|
-
{ key: '1h', label: 'Last 1 hour' },
|
|
356
|
-
].map(item => (<TouchableScale_1.default key={item.key} onPress={() => setTimeWindow(item.key)} style={[
|
|
357
|
-
styles.filterPill,
|
|
358
|
-
draft.timeWindow === item.key &&
|
|
359
|
-
styles.filterPillActive,
|
|
360
|
-
]}>
|
|
361
|
-
<react_native_1.Text style={[
|
|
362
|
-
styles.filterPillText,
|
|
363
|
-
draft.timeWindow === item.key &&
|
|
364
|
-
styles.filterPillTextActive,
|
|
365
|
-
]}>
|
|
366
|
-
{item.label}
|
|
40
|
+
{[{key:"all",label:"All Time"},{key:"1m",label:"Last 1 min"},{key:"5m",label:"Last 5 mins"},{key:"15m",label:"Last 15 mins"},{key:"1h",label:"Last 1 hour"}].map(t=><TouchableScale_1.default key={t.key}onPress={()=>A(t.key)}style={[styles.filterPill,e.timeWindow===t.key&&styles.filterPillActive]}>
|
|
41
|
+
<react_native_1.Text style={[styles.filterPillText,e.timeWindow===t.key&&styles.filterPillTextActive]}>
|
|
42
|
+
{t.label}
|
|
367
43
|
</react_native_1.Text>
|
|
368
|
-
</TouchableScale_1.default>)
|
|
44
|
+
</TouchableScale_1.default>)}
|
|
369
45
|
</react_native_1.View>
|
|
370
46
|
</react_native_1.View>
|
|
371
47
|
|
|
372
48
|
|
|
373
49
|
<react_native_1.View style={styles.section}>
|
|
374
50
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
375
|
-
<NetworkIcons_1.TargetGoalIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
51
|
+
<NetworkIcons_1.TargetGoalIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
376
52
|
<react_native_1.Text style={styles.sectionTitle}>EVENT CATEGORIES</react_native_1.Text>
|
|
377
53
|
</react_native_1.View>
|
|
378
54
|
<react_native_1.View style={styles.chipsWrap}>
|
|
379
|
-
<TouchableScale_1.default onPress={()
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
]}>
|
|
383
|
-
{isAllCategories && (<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white} size={12}/>)}
|
|
384
|
-
<react_native_1.Text style={[
|
|
385
|
-
styles.filterPillText,
|
|
386
|
-
isAllCategories && styles.filterPillTextActive,
|
|
387
|
-
]}>
|
|
55
|
+
<TouchableScale_1.default onPress={()=>u("all")}style={[styles.filterPill,h&&styles.filterPillActive]}>
|
|
56
|
+
{h&&<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white}size={12}/>}
|
|
57
|
+
<react_native_1.Text style={[styles.filterPillText,h&&styles.filterPillTextActive]}>
|
|
388
58
|
All Categories
|
|
389
59
|
</react_native_1.Text>
|
|
390
60
|
</TouchableScale_1.default>
|
|
391
61
|
|
|
392
|
-
<TouchableScale_1.default onPress={()
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
styles.filterPillActive,
|
|
396
|
-
]}>
|
|
397
|
-
<NetworkIcons_1.CartIcon color={draft.categories.has('ecommerce')
|
|
398
|
-
? AppColors_1.AppColors.white
|
|
399
|
-
: AppColors_1.AppColors.amber700} size={13}/>
|
|
400
|
-
<react_native_1.Text style={[
|
|
401
|
-
styles.filterPillText,
|
|
402
|
-
draft.categories.has('ecommerce') &&
|
|
403
|
-
styles.filterPillTextActive,
|
|
404
|
-
]}>
|
|
62
|
+
<TouchableScale_1.default onPress={()=>u("ecommerce")}style={[styles.filterPill,e.categories.has("ecommerce")&&styles.filterPillActive]}>
|
|
63
|
+
<NetworkIcons_1.CartIcon color={e.categories.has("ecommerce")?AppColors_1.AppColors.white:AppColors_1.AppColors.amber700}size={13}/>
|
|
64
|
+
<react_native_1.Text style={[styles.filterPillText,e.categories.has("ecommerce")&&styles.filterPillTextActive]}>
|
|
405
65
|
Ecommerce
|
|
406
66
|
</react_native_1.Text>
|
|
407
67
|
</TouchableScale_1.default>
|
|
408
68
|
|
|
409
|
-
<TouchableScale_1.default onPress={()
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
styles.filterPillActive,
|
|
413
|
-
]}>
|
|
414
|
-
<NetworkIcons_1.GlobeIcon color={draft.categories.has('page_view')
|
|
415
|
-
? AppColors_1.AppColors.white
|
|
416
|
-
: AppColors_1.AppColors.sky600} size={13}/>
|
|
417
|
-
<react_native_1.Text style={[
|
|
418
|
-
styles.filterPillText,
|
|
419
|
-
draft.categories.has('page_view') &&
|
|
420
|
-
styles.filterPillTextActive,
|
|
421
|
-
]}>
|
|
69
|
+
<TouchableScale_1.default onPress={()=>u("page_view")}style={[styles.filterPill,e.categories.has("page_view")&&styles.filterPillActive]}>
|
|
70
|
+
<NetworkIcons_1.GlobeIcon color={e.categories.has("page_view")?AppColors_1.AppColors.white:AppColors_1.AppColors.sky600}size={13}/>
|
|
71
|
+
<react_native_1.Text style={[styles.filterPillText,e.categories.has("page_view")&&styles.filterPillTextActive]}>
|
|
422
72
|
Screens & Pages
|
|
423
73
|
</react_native_1.Text>
|
|
424
74
|
</TouchableScale_1.default>
|
|
425
75
|
|
|
426
|
-
<TouchableScale_1.default onPress={()
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
styles.filterPillActive,
|
|
430
|
-
]}>
|
|
431
|
-
<NetworkIcons_1.BoltIcon color={draft.categories.has('system')
|
|
432
|
-
? AppColors_1.AppColors.white
|
|
433
|
-
: AppColors_1.AppColors.purple} size={13}/>
|
|
434
|
-
<react_native_1.Text style={[
|
|
435
|
-
styles.filterPillText,
|
|
436
|
-
draft.categories.has('system') &&
|
|
437
|
-
styles.filterPillTextActive,
|
|
438
|
-
]}>
|
|
76
|
+
<TouchableScale_1.default onPress={()=>u("system")}style={[styles.filterPill,e.categories.has("system")&&styles.filterPillActive]}>
|
|
77
|
+
<NetworkIcons_1.BoltIcon color={e.categories.has("system")?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}size={13}/>
|
|
78
|
+
<react_native_1.Text style={[styles.filterPillText,e.categories.has("system")&&styles.filterPillTextActive]}>
|
|
439
79
|
System & Lifecycle
|
|
440
80
|
</react_native_1.Text>
|
|
441
81
|
</TouchableScale_1.default>
|
|
442
82
|
|
|
443
|
-
<TouchableScale_1.default onPress={()
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
styles.filterPillActive,
|
|
447
|
-
]}>
|
|
448
|
-
<NetworkIcons_1.SparkleIcon color={draft.categories.has('custom')
|
|
449
|
-
? AppColors_1.AppColors.white
|
|
450
|
-
: AppColors_1.AppColors.brandPurple} size={13}/>
|
|
451
|
-
<react_native_1.Text style={[
|
|
452
|
-
styles.filterPillText,
|
|
453
|
-
draft.categories.has('custom') &&
|
|
454
|
-
styles.filterPillTextActive,
|
|
455
|
-
]}>
|
|
83
|
+
<TouchableScale_1.default onPress={()=>u("custom")}style={[styles.filterPill,e.categories.has("custom")&&styles.filterPillActive]}>
|
|
84
|
+
<NetworkIcons_1.SparkleIcon color={e.categories.has("custom")?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple}size={13}/>
|
|
85
|
+
<react_native_1.Text style={[styles.filterPillText,e.categories.has("custom")&&styles.filterPillTextActive]}>
|
|
456
86
|
Custom Events
|
|
457
87
|
</react_native_1.Text>
|
|
458
88
|
</TouchableScale_1.default>
|
|
@@ -462,98 +92,50 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
462
92
|
|
|
463
93
|
<react_native_1.View style={styles.section}>
|
|
464
94
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
465
|
-
<NetworkIcons_1.MoneyIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
95
|
+
<NetworkIcons_1.MoneyIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
466
96
|
<react_native_1.Text style={styles.sectionTitle}>
|
|
467
97
|
MONETIZATION & ATTRIBUTES
|
|
468
98
|
</react_native_1.Text>
|
|
469
99
|
</react_native_1.View>
|
|
470
100
|
<react_native_1.View style={styles.chipsWrap}>
|
|
471
|
-
<TouchableScale_1.default onPress={()
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
]}>
|
|
475
|
-
<NetworkIcons_1.TargetGoalIcon color={draft.onlyConversions
|
|
476
|
-
? AppColors_1.AppColors.white
|
|
477
|
-
: AppColors_1.AppColors.brandPurple} size={13}/>
|
|
478
|
-
<react_native_1.Text style={[
|
|
479
|
-
styles.filterPillText,
|
|
480
|
-
draft.onlyConversions && styles.filterPillTextActive,
|
|
481
|
-
]}>
|
|
101
|
+
<TouchableScale_1.default onPress={()=>p("onlyConversions")}style={[styles.filterPill,e.onlyConversions&&styles.filterPillActive]}>
|
|
102
|
+
<NetworkIcons_1.TargetGoalIcon color={e.onlyConversions?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple}size={13}/>
|
|
103
|
+
<react_native_1.Text style={[styles.filterPillText,e.onlyConversions&&styles.filterPillTextActive]}>
|
|
482
104
|
Conversion Events Only
|
|
483
105
|
</react_native_1.Text>
|
|
484
106
|
</TouchableScale_1.default>
|
|
485
107
|
|
|
486
|
-
<TouchableScale_1.default onPress={()
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
]}>
|
|
490
|
-
<NetworkIcons_1.MoneyIcon color={draft.hasRevenue
|
|
491
|
-
? AppColors_1.AppColors.white
|
|
492
|
-
: AppColors_1.AppColors.emerald600} size={13}/>
|
|
493
|
-
<react_native_1.Text style={[
|
|
494
|
-
styles.filterPillText,
|
|
495
|
-
draft.hasRevenue && styles.filterPillTextActive,
|
|
496
|
-
]}>
|
|
108
|
+
<TouchableScale_1.default onPress={()=>p("hasRevenue")}style={[styles.filterPill,e.hasRevenue&&styles.filterPillActive]}>
|
|
109
|
+
<NetworkIcons_1.MoneyIcon color={e.hasRevenue?AppColors_1.AppColors.white:AppColors_1.AppColors.emerald600}size={13}/>
|
|
110
|
+
<react_native_1.Text style={[styles.filterPillText,e.hasRevenue&&styles.filterPillTextActive]}>
|
|
497
111
|
With Revenue (Value > 0)
|
|
498
112
|
</react_native_1.Text>
|
|
499
113
|
</TouchableScale_1.default>
|
|
500
114
|
|
|
501
|
-
<TouchableScale_1.default onPress={()
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
]}>
|
|
505
|
-
<NetworkIcons_1.PackageBoxIcon color={draft.hasItems
|
|
506
|
-
? AppColors_1.AppColors.white
|
|
507
|
-
: AppColors_1.AppColors.amber700} size={13}/>
|
|
508
|
-
<react_native_1.Text style={[
|
|
509
|
-
styles.filterPillText,
|
|
510
|
-
draft.hasItems && styles.filterPillTextActive,
|
|
511
|
-
]}>
|
|
115
|
+
<TouchableScale_1.default onPress={()=>p("hasItems")}style={[styles.filterPill,e.hasItems&&styles.filterPillActive]}>
|
|
116
|
+
<NetworkIcons_1.PackageBoxIcon color={e.hasItems?AppColors_1.AppColors.white:AppColors_1.AppColors.amber700}size={13}/>
|
|
117
|
+
<react_native_1.Text style={[styles.filterPillText,e.hasItems&&styles.filterPillTextActive]}>
|
|
512
118
|
With Items Payload
|
|
513
119
|
</react_native_1.Text>
|
|
514
120
|
</TouchableScale_1.default>
|
|
515
121
|
|
|
516
|
-
<TouchableScale_1.default onPress={()
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
]}>
|
|
520
|
-
<NetworkIcons_1.SparkleIcon color={draft.hasUserProps
|
|
521
|
-
? AppColors_1.AppColors.white
|
|
522
|
-
: AppColors_1.AppColors.brandPurple} size={13}/>
|
|
523
|
-
<react_native_1.Text style={[
|
|
524
|
-
styles.filterPillText,
|
|
525
|
-
draft.hasUserProps && styles.filterPillTextActive,
|
|
526
|
-
]}>
|
|
122
|
+
<TouchableScale_1.default onPress={()=>p("hasUserProps")}style={[styles.filterPill,e.hasUserProps&&styles.filterPillActive]}>
|
|
123
|
+
<NetworkIcons_1.SparkleIcon color={e.hasUserProps?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple}size={13}/>
|
|
124
|
+
<react_native_1.Text style={[styles.filterPillText,e.hasUserProps&&styles.filterPillTextActive]}>
|
|
527
125
|
With User Properties
|
|
528
126
|
</react_native_1.Text>
|
|
529
127
|
</TouchableScale_1.default>
|
|
530
128
|
|
|
531
|
-
<TouchableScale_1.default onPress={()
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
]}>
|
|
535
|
-
<NetworkIcons_1.CodeBracketsIcon color={draft.hasParams
|
|
536
|
-
? AppColors_1.AppColors.white
|
|
537
|
-
: AppColors_1.AppColors.grayText} size={13}/>
|
|
538
|
-
<react_native_1.Text style={[
|
|
539
|
-
styles.filterPillText,
|
|
540
|
-
draft.hasParams && styles.filterPillTextActive,
|
|
541
|
-
]}>
|
|
129
|
+
<TouchableScale_1.default onPress={()=>p("hasParams")}style={[styles.filterPill,e.hasParams&&styles.filterPillActive]}>
|
|
130
|
+
<NetworkIcons_1.CodeBracketsIcon color={e.hasParams?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={13}/>
|
|
131
|
+
<react_native_1.Text style={[styles.filterPillText,e.hasParams&&styles.filterPillTextActive]}>
|
|
542
132
|
With Custom Params
|
|
543
133
|
</react_native_1.Text>
|
|
544
134
|
</TouchableScale_1.default>
|
|
545
135
|
|
|
546
|
-
<TouchableScale_1.default onPress={()
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
]}>
|
|
550
|
-
<NetworkIcons_1.RepeatIcon color={draft.onlyDuplicates
|
|
551
|
-
? AppColors_1.AppColors.white
|
|
552
|
-
: AppColors_1.AppColors.rose600} size={13}/>
|
|
553
|
-
<react_native_1.Text style={[
|
|
554
|
-
styles.filterPillText,
|
|
555
|
-
draft.onlyDuplicates && styles.filterPillTextActive,
|
|
556
|
-
]}>
|
|
136
|
+
<TouchableScale_1.default onPress={()=>p("onlyDuplicates")}style={[styles.filterPill,e.onlyDuplicates&&styles.filterPillActive]}>
|
|
137
|
+
<NetworkIcons_1.RepeatIcon color={e.onlyDuplicates?AppColors_1.AppColors.white:AppColors_1.AppColors.rose600}size={13}/>
|
|
138
|
+
<react_native_1.Text style={[styles.filterPillText,e.onlyDuplicates&&styles.filterPillTextActive]}>
|
|
557
139
|
Frequent Only (> 1×)
|
|
558
140
|
</react_native_1.Text>
|
|
559
141
|
</TouchableScale_1.default>
|
|
@@ -563,53 +145,27 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
563
145
|
|
|
564
146
|
<react_native_1.View style={styles.section}>
|
|
565
147
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
566
|
-
<NetworkIcons_1.UserIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
148
|
+
<NetworkIcons_1.UserIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
567
149
|
<react_native_1.Text style={styles.sectionTitle}>USER IDENTIFICATION</react_native_1.Text>
|
|
568
150
|
</react_native_1.View>
|
|
569
151
|
<react_native_1.View style={styles.chipsWrap}>
|
|
570
|
-
<TouchableScale_1.default onPress={()
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
]}>
|
|
574
|
-
{isAllUserTypes && (<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white} size={12}/>)}
|
|
575
|
-
<react_native_1.Text style={[
|
|
576
|
-
styles.filterPillText,
|
|
577
|
-
isAllUserTypes && styles.filterPillTextActive,
|
|
578
|
-
]}>
|
|
152
|
+
<TouchableScale_1.default onPress={()=>T("all")}style={[styles.filterPill,x&&styles.filterPillActive]}>
|
|
153
|
+
{x&&<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white}size={12}/>}
|
|
154
|
+
<react_native_1.Text style={[styles.filterPillText,x&&styles.filterPillTextActive]}>
|
|
579
155
|
All Users
|
|
580
156
|
</react_native_1.Text>
|
|
581
157
|
</TouchableScale_1.default>
|
|
582
158
|
|
|
583
|
-
<TouchableScale_1.default onPress={()
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
styles.filterPillActive,
|
|
587
|
-
]}>
|
|
588
|
-
<NetworkIcons_1.UserCheckIcon color={draft.userTypes.has('identified')
|
|
589
|
-
? AppColors_1.AppColors.white
|
|
590
|
-
: AppColors_1.AppColors.greenColor} size={13}/>
|
|
591
|
-
<react_native_1.Text style={[
|
|
592
|
-
styles.filterPillText,
|
|
593
|
-
draft.userTypes.has('identified') &&
|
|
594
|
-
styles.filterPillTextActive,
|
|
595
|
-
]}>
|
|
159
|
+
<TouchableScale_1.default onPress={()=>T("identified")}style={[styles.filterPill,e.userTypes.has("identified")&&styles.filterPillActive]}>
|
|
160
|
+
<NetworkIcons_1.UserCheckIcon color={e.userTypes.has("identified")?AppColors_1.AppColors.white:AppColors_1.AppColors.greenColor}size={13}/>
|
|
161
|
+
<react_native_1.Text style={[styles.filterPillText,e.userTypes.has("identified")&&styles.filterPillTextActive]}>
|
|
596
162
|
Identified (User ID)
|
|
597
163
|
</react_native_1.Text>
|
|
598
164
|
</TouchableScale_1.default>
|
|
599
165
|
|
|
600
|
-
<TouchableScale_1.default onPress={()
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
styles.filterPillActive,
|
|
604
|
-
]}>
|
|
605
|
-
<NetworkIcons_1.UserIcon color={draft.userTypes.has('anonymous')
|
|
606
|
-
? AppColors_1.AppColors.white
|
|
607
|
-
: AppColors_1.AppColors.grayTextWeak} size={13}/>
|
|
608
|
-
<react_native_1.Text style={[
|
|
609
|
-
styles.filterPillText,
|
|
610
|
-
draft.userTypes.has('anonymous') &&
|
|
611
|
-
styles.filterPillTextActive,
|
|
612
|
-
]}>
|
|
166
|
+
<TouchableScale_1.default onPress={()=>T("anonymous")}style={[styles.filterPill,e.userTypes.has("anonymous")&&styles.filterPillActive]}>
|
|
167
|
+
<NetworkIcons_1.UserIcon color={e.userTypes.has("anonymous")?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
168
|
+
<react_native_1.Text style={[styles.filterPillText,e.userTypes.has("anonymous")&&styles.filterPillTextActive]}>
|
|
613
169
|
Anonymous
|
|
614
170
|
</react_native_1.Text>
|
|
615
171
|
</TouchableScale_1.default>
|
|
@@ -619,47 +175,25 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
619
175
|
|
|
620
176
|
<react_native_1.View style={styles.section}>
|
|
621
177
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
622
|
-
<NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
178
|
+
<NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
623
179
|
<react_native_1.Text style={styles.sectionTitle}>EVENT SOURCE</react_native_1.Text>
|
|
624
180
|
</react_native_1.View>
|
|
625
181
|
<react_native_1.View style={styles.chipsWrap}>
|
|
626
|
-
<TouchableScale_1.default onPress={()
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
]}>
|
|
630
|
-
{isAllSources && (<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white} size={12}/>)}
|
|
631
|
-
<react_native_1.Text style={[
|
|
632
|
-
styles.filterPillText,
|
|
633
|
-
isAllSources && styles.filterPillTextActive,
|
|
634
|
-
]}>
|
|
182
|
+
<TouchableScale_1.default onPress={()=>_("all")}style={[styles.filterPill,w&&styles.filterPillActive]}>
|
|
183
|
+
{w&&<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white}size={12}/>}
|
|
184
|
+
<react_native_1.Text style={[styles.filterPillText,w&&styles.filterPillTextActive]}>
|
|
635
185
|
All Sources
|
|
636
186
|
</react_native_1.Text>
|
|
637
187
|
</TouchableScale_1.default>
|
|
638
188
|
|
|
639
|
-
<TouchableScale_1.default onPress={()
|
|
640
|
-
|
|
641
|
-
draft.sources.has('firebase') &&
|
|
642
|
-
styles.filterPillActive,
|
|
643
|
-
]}>
|
|
644
|
-
<react_native_1.Text style={[
|
|
645
|
-
styles.filterPillText,
|
|
646
|
-
draft.sources.has('firebase') &&
|
|
647
|
-
styles.filterPillTextActive,
|
|
648
|
-
]}>
|
|
189
|
+
<TouchableScale_1.default onPress={()=>_("firebase")}style={[styles.filterPill,e.sources.has("firebase")&&styles.filterPillActive]}>
|
|
190
|
+
<react_native_1.Text style={[styles.filterPillText,e.sources.has("firebase")&&styles.filterPillTextActive]}>
|
|
649
191
|
Firebase / GA SDK
|
|
650
192
|
</react_native_1.Text>
|
|
651
193
|
</TouchableScale_1.default>
|
|
652
194
|
|
|
653
|
-
<TouchableScale_1.default onPress={()
|
|
654
|
-
|
|
655
|
-
draft.sources.has('manual') &&
|
|
656
|
-
styles.filterPillActive,
|
|
657
|
-
]}>
|
|
658
|
-
<react_native_1.Text style={[
|
|
659
|
-
styles.filterPillText,
|
|
660
|
-
draft.sources.has('manual') &&
|
|
661
|
-
styles.filterPillTextActive,
|
|
662
|
-
]}>
|
|
195
|
+
<TouchableScale_1.default onPress={()=>_("manual")}style={[styles.filterPill,e.sources.has("manual")&&styles.filterPillActive]}>
|
|
196
|
+
<react_native_1.Text style={[styles.filterPillText,e.sources.has("manual")&&styles.filterPillTextActive]}>
|
|
663
197
|
In-App Logger
|
|
664
198
|
</react_native_1.Text>
|
|
665
199
|
</TouchableScale_1.default>
|
|
@@ -669,131 +203,67 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
669
203
|
|
|
670
204
|
<react_native_1.View style={styles.section}>
|
|
671
205
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
672
|
-
<NetworkIcons_1.CodeBracketsIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
206
|
+
<NetworkIcons_1.CodeBracketsIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
673
207
|
<react_native_1.Text style={styles.sectionTitle}>PAYLOAD COMPLEXITY</react_native_1.Text>
|
|
674
208
|
</react_native_1.View>
|
|
675
209
|
<react_native_1.View style={styles.chipsWrap}>
|
|
676
|
-
{[
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
{ key: 'simple', label: '1 - 5 Params' },
|
|
680
|
-
{ key: 'heavy', label: '> 5 Params' },
|
|
681
|
-
].map(item => (<TouchableScale_1.default key={item.key} onPress={() => setPayloadComplexity(item.key)} style={[
|
|
682
|
-
styles.filterPill,
|
|
683
|
-
draft.payloadComplexity === item.key &&
|
|
684
|
-
styles.filterPillActive,
|
|
685
|
-
]}>
|
|
686
|
-
<react_native_1.Text style={[
|
|
687
|
-
styles.filterPillText,
|
|
688
|
-
draft.payloadComplexity === item.key &&
|
|
689
|
-
styles.filterPillTextActive,
|
|
690
|
-
]}>
|
|
691
|
-
{item.label}
|
|
210
|
+
{[{key:"all",label:"All Payloads"},{key:"none",label:"0 Params"},{key:"simple",label:"1 - 5 Params"},{key:"heavy",label:"> 5 Params"}].map(t=><TouchableScale_1.default key={t.key}onPress={()=>m(t.key)}style={[styles.filterPill,e.payloadComplexity===t.key&&styles.filterPillActive]}>
|
|
211
|
+
<react_native_1.Text style={[styles.filterPillText,e.payloadComplexity===t.key&&styles.filterPillTextActive]}>
|
|
212
|
+
{t.label}
|
|
692
213
|
</react_native_1.Text>
|
|
693
|
-
</TouchableScale_1.default>)
|
|
214
|
+
</TouchableScale_1.default>)}
|
|
694
215
|
</react_native_1.View>
|
|
695
216
|
</react_native_1.View>
|
|
696
217
|
|
|
697
218
|
|
|
698
|
-
{
|
|
219
|
+
{y.length>0&&<react_native_1.View style={styles.section}>
|
|
699
220
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
700
|
-
<NetworkIcons_1.PinIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
221
|
+
<NetworkIcons_1.PinIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
701
222
|
<react_native_1.Text style={styles.sectionTitle}>
|
|
702
|
-
DISCOVERED SCREENS ({
|
|
223
|
+
DISCOVERED SCREENS ({y.length})
|
|
703
224
|
</react_native_1.Text>
|
|
704
225
|
</react_native_1.View>
|
|
705
226
|
<react_native_1.View style={styles.chipsWrap}>
|
|
706
|
-
{
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
isSelected && styles.filterPillActive,
|
|
711
|
-
]}>
|
|
712
|
-
<NetworkIcons_1.PinIcon color={isSelected
|
|
713
|
-
? AppColors_1.AppColors.white
|
|
714
|
-
: AppColors_1.AppColors.amber700} size={12}/>
|
|
715
|
-
<react_native_1.Text style={[
|
|
716
|
-
styles.filterPillText,
|
|
717
|
-
isSelected && styles.filterPillTextActive,
|
|
718
|
-
]}>
|
|
719
|
-
{scr}
|
|
227
|
+
{y.map(t=>{const l=e.screens.has(t);return<TouchableScale_1.default key={t}onPress={()=>C(t)}style={[styles.filterPill,l&&styles.filterPillActive]}>
|
|
228
|
+
<NetworkIcons_1.PinIcon color={l?AppColors_1.AppColors.white:AppColors_1.AppColors.amber700}size={12}/>
|
|
229
|
+
<react_native_1.Text style={[styles.filterPillText,l&&styles.filterPillTextActive]}>
|
|
230
|
+
{t}
|
|
720
231
|
</react_native_1.Text>
|
|
721
|
-
</TouchableScale_1.default>)
|
|
722
|
-
})}
|
|
232
|
+
</TouchableScale_1.default>})}
|
|
723
233
|
</react_native_1.View>
|
|
724
|
-
</react_native_1.View>
|
|
234
|
+
</react_native_1.View>}
|
|
725
235
|
|
|
726
236
|
|
|
727
237
|
<react_native_1.View style={styles.section}>
|
|
728
238
|
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
729
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
239
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
730
240
|
<react_native_1.Text style={styles.sectionTitle}>SORT ORDER</react_native_1.Text>
|
|
731
241
|
</react_native_1.View>
|
|
732
242
|
<react_native_1.View style={styles.chipsWrap}>
|
|
733
|
-
<TouchableScale_1.default onPress={()
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
styles.filterPillActive,
|
|
737
|
-
]}>
|
|
738
|
-
<NetworkIcons_1.ClockIcon color={draft.sortBy === 'time_desc'
|
|
739
|
-
? AppColors_1.AppColors.white
|
|
740
|
-
: AppColors_1.AppColors.grayText} size={12}/>
|
|
741
|
-
<react_native_1.Text style={[
|
|
742
|
-
styles.filterPillText,
|
|
743
|
-
draft.sortBy === 'time_desc' &&
|
|
744
|
-
styles.filterPillTextActive,
|
|
745
|
-
]}>
|
|
243
|
+
<TouchableScale_1.default onPress={()=>d("time_desc")}style={[styles.filterPill,e.sortBy==="time_desc"&&styles.filterPillActive]}>
|
|
244
|
+
<NetworkIcons_1.ClockIcon color={e.sortBy==="time_desc"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>
|
|
245
|
+
<react_native_1.Text style={[styles.filterPillText,e.sortBy==="time_desc"&&styles.filterPillTextActive]}>
|
|
746
246
|
Newest First (Default)
|
|
747
247
|
</react_native_1.Text>
|
|
748
248
|
</TouchableScale_1.default>
|
|
749
249
|
|
|
750
|
-
<TouchableScale_1.default onPress={()
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
styles.filterPillActive,
|
|
754
|
-
]}>
|
|
755
|
-
<NetworkIcons_1.HourglassIcon color={draft.sortBy === 'time_asc'
|
|
756
|
-
? AppColors_1.AppColors.white
|
|
757
|
-
: AppColors_1.AppColors.grayText} size={12}/>
|
|
758
|
-
<react_native_1.Text style={[
|
|
759
|
-
styles.filterPillText,
|
|
760
|
-
draft.sortBy === 'time_asc' &&
|
|
761
|
-
styles.filterPillTextActive,
|
|
762
|
-
]}>
|
|
250
|
+
<TouchableScale_1.default onPress={()=>d("time_asc")}style={[styles.filterPill,e.sortBy==="time_asc"&&styles.filterPillActive]}>
|
|
251
|
+
<NetworkIcons_1.HourglassIcon color={e.sortBy==="time_asc"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>
|
|
252
|
+
<react_native_1.Text style={[styles.filterPillText,e.sortBy==="time_asc"&&styles.filterPillTextActive]}>
|
|
763
253
|
Oldest First
|
|
764
254
|
</react_native_1.Text>
|
|
765
255
|
</TouchableScale_1.default>
|
|
766
256
|
|
|
767
|
-
<TouchableScale_1.default onPress={()
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
styles.filterPillActive,
|
|
771
|
-
]}>
|
|
772
|
-
<NetworkIcons_1.MoneyIcon color={draft.sortBy === 'revenue_desc'
|
|
773
|
-
? AppColors_1.AppColors.white
|
|
774
|
-
: AppColors_1.AppColors.emerald600} size={12}/>
|
|
775
|
-
<react_native_1.Text style={[
|
|
776
|
-
styles.filterPillText,
|
|
777
|
-
draft.sortBy === 'revenue_desc' &&
|
|
778
|
-
styles.filterPillTextActive,
|
|
779
|
-
]}>
|
|
257
|
+
<TouchableScale_1.default onPress={()=>d("revenue_desc")}style={[styles.filterPill,e.sortBy==="revenue_desc"&&styles.filterPillActive]}>
|
|
258
|
+
<NetworkIcons_1.MoneyIcon color={e.sortBy==="revenue_desc"?AppColors_1.AppColors.white:AppColors_1.AppColors.emerald600}size={12}/>
|
|
259
|
+
<react_native_1.Text style={[styles.filterPillText,e.sortBy==="revenue_desc"&&styles.filterPillTextActive]}>
|
|
780
260
|
Highest Revenue
|
|
781
261
|
</react_native_1.Text>
|
|
782
262
|
</TouchableScale_1.default>
|
|
783
263
|
|
|
784
|
-
<TouchableScale_1.default onPress={()
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
styles.filterPillActive,
|
|
788
|
-
]}>
|
|
789
|
-
<NetworkIcons_1.FlameIcon color={draft.sortBy === 'count_desc'
|
|
790
|
-
? AppColors_1.AppColors.white
|
|
791
|
-
: AppColors_1.AppColors.darkOrange} size={12}/>
|
|
792
|
-
<react_native_1.Text style={[
|
|
793
|
-
styles.filterPillText,
|
|
794
|
-
draft.sortBy === 'count_desc' &&
|
|
795
|
-
styles.filterPillTextActive,
|
|
796
|
-
]}>
|
|
264
|
+
<TouchableScale_1.default onPress={()=>d("count_desc")}style={[styles.filterPill,e.sortBy==="count_desc"&&styles.filterPillActive]}>
|
|
265
|
+
<NetworkIcons_1.FlameIcon color={e.sortBy==="count_desc"?AppColors_1.AppColors.white:AppColors_1.AppColors.darkOrange}size={12}/>
|
|
266
|
+
<react_native_1.Text style={[styles.filterPillText,e.sortBy==="count_desc"&&styles.filterPillTextActive]}>
|
|
797
267
|
Most Frequent
|
|
798
268
|
</react_native_1.Text>
|
|
799
269
|
</TouchableScale_1.default>
|
|
@@ -803,185 +273,16 @@ const AnalyticsFilterModal = ({ visible, onClose, }) => {
|
|
|
803
273
|
|
|
804
274
|
|
|
805
275
|
<react_native_1.View style={styles.footer}>
|
|
806
|
-
<react_native_1.TouchableOpacity onPress={
|
|
276
|
+
<react_native_1.TouchableOpacity onPress={f}style={styles.discardBtn}activeOpacity={.8}>
|
|
807
277
|
<react_native_1.Text style={styles.discardBtnText}>Discard</react_native_1.Text>
|
|
808
278
|
</react_native_1.TouchableOpacity>
|
|
809
279
|
|
|
810
|
-
<react_native_1.TouchableOpacity onPress={
|
|
280
|
+
<react_native_1.TouchableOpacity onPress={b}style={styles.applyBtn}activeOpacity={.85}>
|
|
811
281
|
<react_native_1.Text style={styles.applyBtnText}>
|
|
812
|
-
Apply ({
|
|
282
|
+
Apply ({S} Events)
|
|
813
283
|
</react_native_1.Text>
|
|
814
284
|
</react_native_1.TouchableOpacity>
|
|
815
285
|
</react_native_1.View>
|
|
816
286
|
</react_native_1.View>
|
|
817
287
|
</react_native_1.View>
|
|
818
|
-
</react_native_1.Modal>);
|
|
819
|
-
};
|
|
820
|
-
const styles = react_native_1.StyleSheet.create({
|
|
821
|
-
backdrop: {
|
|
822
|
-
flex: 1,
|
|
823
|
-
backgroundColor: `${AppColors_1.AppColors.primaryBlack}85`,
|
|
824
|
-
justifyContent: 'center',
|
|
825
|
-
alignItems: 'center',
|
|
826
|
-
padding: 16,
|
|
827
|
-
},
|
|
828
|
-
modalCard: {
|
|
829
|
-
width: '100%',
|
|
830
|
-
maxWidth: 440,
|
|
831
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
832
|
-
borderRadius: 14,
|
|
833
|
-
borderWidth: 1,
|
|
834
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
835
|
-
shadowColor: AppColors_1.AppColors.black,
|
|
836
|
-
shadowOpacity: 0.18,
|
|
837
|
-
shadowRadius: 12,
|
|
838
|
-
shadowOffset: { width: 0, height: 4 },
|
|
839
|
-
elevation: 8,
|
|
840
|
-
overflow: 'hidden',
|
|
841
|
-
},
|
|
842
|
-
header: {
|
|
843
|
-
flexDirection: 'row',
|
|
844
|
-
alignItems: 'center',
|
|
845
|
-
justifyContent: 'space-between',
|
|
846
|
-
paddingHorizontal: 14,
|
|
847
|
-
paddingVertical: 12,
|
|
848
|
-
borderBottomWidth: 1,
|
|
849
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
850
|
-
backgroundColor: `${AppColors_1.AppColors.brandPurple}08`,
|
|
851
|
-
},
|
|
852
|
-
headerIconBox: {
|
|
853
|
-
width: 28,
|
|
854
|
-
height: 28,
|
|
855
|
-
borderRadius: 7,
|
|
856
|
-
backgroundColor: `${AppColors_1.AppColors.brandPurple}18`,
|
|
857
|
-
alignItems: 'center',
|
|
858
|
-
justifyContent: 'center',
|
|
859
|
-
},
|
|
860
|
-
headerTitle: {
|
|
861
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
862
|
-
fontSize: 13.5,
|
|
863
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
864
|
-
},
|
|
865
|
-
headerSubtitle: {
|
|
866
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
867
|
-
fontSize: 10,
|
|
868
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
869
|
-
},
|
|
870
|
-
resetBtn: {
|
|
871
|
-
paddingHorizontal: 8,
|
|
872
|
-
paddingVertical: 4,
|
|
873
|
-
borderRadius: 5,
|
|
874
|
-
backgroundColor: `${AppColors_1.AppColors.darkOrange}14`,
|
|
875
|
-
borderWidth: 1,
|
|
876
|
-
borderColor: `${AppColors_1.AppColors.darkOrange}30`,
|
|
877
|
-
},
|
|
878
|
-
resetBtnText: {
|
|
879
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
880
|
-
fontSize: 10,
|
|
881
|
-
color: AppColors_1.AppColors.darkOrange,
|
|
882
|
-
},
|
|
883
|
-
closeBtn: {
|
|
884
|
-
width: 24,
|
|
885
|
-
height: 24,
|
|
886
|
-
borderRadius: 12,
|
|
887
|
-
backgroundColor: `${AppColors_1.AppColors.primaryBlack}18`,
|
|
888
|
-
alignItems: 'center',
|
|
889
|
-
justifyContent: 'center',
|
|
890
|
-
},
|
|
891
|
-
scrollContent: {
|
|
892
|
-
padding: 14,
|
|
893
|
-
gap: 14,
|
|
894
|
-
},
|
|
895
|
-
section: {
|
|
896
|
-
gap: 7,
|
|
897
|
-
},
|
|
898
|
-
sectionHeaderRow: {
|
|
899
|
-
flexDirection: 'row',
|
|
900
|
-
alignItems: 'center',
|
|
901
|
-
gap: 5,
|
|
902
|
-
},
|
|
903
|
-
sectionTitle: {
|
|
904
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
905
|
-
fontSize: 9.5,
|
|
906
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
907
|
-
letterSpacing: 0.5,
|
|
908
|
-
},
|
|
909
|
-
chipsWrap: {
|
|
910
|
-
flexDirection: 'row',
|
|
911
|
-
flexWrap: 'wrap',
|
|
912
|
-
gap: 6.5,
|
|
913
|
-
},
|
|
914
|
-
filterPill: {
|
|
915
|
-
flexDirection: 'row',
|
|
916
|
-
alignItems: 'center',
|
|
917
|
-
gap: 5,
|
|
918
|
-
paddingHorizontal: 9,
|
|
919
|
-
paddingVertical: 5.5,
|
|
920
|
-
borderRadius: 7,
|
|
921
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
922
|
-
borderWidth: 1,
|
|
923
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
924
|
-
},
|
|
925
|
-
filterPillActive: {
|
|
926
|
-
backgroundColor: AppColors_1.AppColors.brandPurple,
|
|
927
|
-
borderColor: AppColors_1.AppColors.brandPurple,
|
|
928
|
-
shadowColor: AppColors_1.AppColors.brandPurple,
|
|
929
|
-
shadowOffset: { width: 0, height: 1 },
|
|
930
|
-
shadowOpacity: 0.25,
|
|
931
|
-
shadowRadius: 3,
|
|
932
|
-
elevation: 2,
|
|
933
|
-
},
|
|
934
|
-
filterPillText: {
|
|
935
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
936
|
-
fontSize: 11,
|
|
937
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
938
|
-
},
|
|
939
|
-
filterPillTextActive: {
|
|
940
|
-
color: AppColors_1.AppColors.white,
|
|
941
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
942
|
-
},
|
|
943
|
-
footer: {
|
|
944
|
-
flexDirection: 'row',
|
|
945
|
-
alignItems: 'center',
|
|
946
|
-
gap: 10,
|
|
947
|
-
paddingHorizontal: 14,
|
|
948
|
-
paddingVertical: 12,
|
|
949
|
-
borderTopWidth: 1,
|
|
950
|
-
borderTopColor: AppColors_1.AppColors.dividerColor,
|
|
951
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
952
|
-
},
|
|
953
|
-
discardBtn: {
|
|
954
|
-
flex: 1,
|
|
955
|
-
paddingVertical: 9.5,
|
|
956
|
-
borderRadius: 8,
|
|
957
|
-
borderWidth: 1,
|
|
958
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
959
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
960
|
-
alignItems: 'center',
|
|
961
|
-
justifyContent: 'center',
|
|
962
|
-
},
|
|
963
|
-
discardBtnText: {
|
|
964
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
965
|
-
fontSize: 12.5,
|
|
966
|
-
color: AppColors_1.AppColors.grayTextStrong,
|
|
967
|
-
},
|
|
968
|
-
applyBtn: {
|
|
969
|
-
flex: 2,
|
|
970
|
-
backgroundColor: AppColors_1.AppColors.brandPurple,
|
|
971
|
-
paddingVertical: 9.5,
|
|
972
|
-
borderRadius: 8,
|
|
973
|
-
alignItems: 'center',
|
|
974
|
-
justifyContent: 'center',
|
|
975
|
-
shadowColor: AppColors_1.AppColors.brandPurple,
|
|
976
|
-
shadowOffset: { width: 0, height: 1 },
|
|
977
|
-
shadowOpacity: 0.25,
|
|
978
|
-
shadowRadius: 3,
|
|
979
|
-
elevation: 2,
|
|
980
|
-
},
|
|
981
|
-
applyBtnText: {
|
|
982
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
983
|
-
fontSize: 12.5,
|
|
984
|
-
color: AppColors_1.AppColors.white,
|
|
985
|
-
},
|
|
986
|
-
});
|
|
987
|
-
exports.default = AnalyticsFilterModal;
|
|
288
|
+
</react_native_1.Modal>},styles=react_native_1.StyleSheet.create({backdrop:{flex:1,backgroundColor:`${AppColors_1.AppColors.primaryBlack}85`,justifyContent:"center",alignItems:"center",padding:16},modalCard:{width:"100%",maxWidth:440,backgroundColor:AppColors_1.AppColors.white,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:12,shadowOffset:{width:0,height:4},elevation:8,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingVertical:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,backgroundColor:`${AppColors_1.AppColors.brandPurple}08`},headerIconBox:{width:28,height:28,borderRadius:7,backgroundColor:`${AppColors_1.AppColors.brandPurple}18`,alignItems:"center",justifyContent:"center"},headerTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.primaryBlack},headerSubtitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},resetBtn:{paddingHorizontal:8,paddingVertical:4,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.darkOrange}30`},resetBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.darkOrange},closeBtn:{width:24,height:24,borderRadius:12,backgroundColor:`${AppColors_1.AppColors.primaryBlack}18`,alignItems:"center",justifyContent:"center"},scrollContent:{padding:14,gap:14},section:{gap:7},sectionHeaderRow:{flexDirection:"row",alignItems:"center",gap:5},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.5},chipsWrap:{flexDirection:"row",flexWrap:"wrap",gap:6.5},filterPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:9,paddingVertical:5.5,borderRadius:7,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},filterPillActive:{backgroundColor:AppColors_1.AppColors.brandPurple,borderColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2},filterPillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.primaryBlack},filterPillTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},footer:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:14,paddingVertical:12,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.grayBackground},discardBtn:{flex:1,paddingVertical:9.5,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.white,alignItems:"center",justifyContent:"center"},discardBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.grayTextStrong},applyBtn:{flex:2,backgroundColor:AppColors_1.AppColors.brandPurple,paddingVertical:9.5,borderRadius:8,alignItems:"center",justifyContent:"center",shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2},applyBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.white}});exports.default=AnalyticsFilterModal;
|