react-native-inapp-inspector 2.5.10 → 2.5.12
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.ar.md +0 -8
- package/README.de.md +0 -8
- package/README.es.md +0 -8
- package/README.fr.md +0 -8
- package/README.hi.md +0 -8
- package/README.ja.md +0 -8
- package/README.ko.md +0 -8
- package/README.md +54 -26
- package/README.pt-BR.md +0 -8
- package/README.ru.md +0 -8
- package/README.zh-CN.md +0 -8
- package/dist/commonjs/components/ConsoleLogCard.js +32 -26
- package/dist/commonjs/components/ErrorBoundary.js +1 -1
- package/dist/commonjs/components/Inspector/ConsoleTab.js +19 -14
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +4 -4
- package/dist/commonjs/components/Inspector/InspectorHeader.js +73 -65
- package/dist/commonjs/components/Inspector/MainScreen.js +9 -6
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +187 -90
- package/dist/commonjs/components/Inspector/NetworkDetail.js +11 -8
- package/dist/commonjs/components/Inspector/NetworkTab.js +33 -31
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/PerformanceTab.js +652 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +346 -245
- package/dist/commonjs/components/Inspector/TabBar.js +17 -16
- package/dist/commonjs/components/LogCard.js +11 -8
- package/dist/commonjs/components/ModuleErrorBoundary.js +1 -1
- package/dist/commonjs/components/NetworkIcons.d.ts +9 -0
- package/dist/commonjs/components/NetworkIcons.js +51 -6
- package/dist/commonjs/constants/index.d.ts +1 -0
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.d.ts +9 -1
- package/dist/commonjs/customHooks/crashHandler.js +4 -4
- package/dist/commonjs/helpers/index.d.ts +3 -0
- package/dist/commonjs/helpers/index.js +8 -6
- package/dist/commonjs/helpers/performanceSampler.d.ts +88 -0
- package/dist/commonjs/helpers/performanceSampler.js +1 -0
- package/dist/commonjs/helpers/remoteConfig.d.ts +6 -0
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/telemetry.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +4 -2
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +28 -0
- package/dist/esm/components/ConsoleLogCard.js +67 -61
- package/dist/esm/components/ErrorBoundary.js +10 -10
- package/dist/esm/components/Inspector/ConsoleTab.js +33 -28
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +22 -22
- package/dist/esm/components/Inspector/InspectorHeader.js +194 -186
- package/dist/esm/components/Inspector/MainScreen.js +61 -58
- package/dist/esm/components/Inspector/MediaGalleryTab.js +254 -157
- package/dist/esm/components/Inspector/NetworkDetail.js +62 -59
- package/dist/esm/components/Inspector/NetworkTab.js +39 -37
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/esm/components/Inspector/PerformanceTab.js +652 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +407 -306
- package/dist/esm/components/Inspector/TabBar.js +4 -3
- package/dist/esm/components/LogCard.js +37 -34
- package/dist/esm/components/ModuleErrorBoundary.js +1 -1
- package/dist/esm/components/NetworkIcons.d.ts +9 -0
- package/dist/esm/components/NetworkIcons.js +48 -3
- package/dist/esm/constants/index.d.ts +1 -0
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/crashHandler.d.ts +9 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/index.js +8 -6
- package/dist/esm/helpers/performanceSampler.d.ts +88 -0
- package/dist/esm/helpers/performanceSampler.js +1 -0
- package/dist/esm/helpers/remoteConfig.d.ts +6 -0
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/telemetry.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +28 -0
- package/package.json +24 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,a,_,A){A===void 0&&(A=_);var b=Object.getOwnPropertyDescriptor(a,_);(!b||("get"in b?!a.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return a[_]}}),Object.defineProperty(o,A,b)}):(function(o,a,_,A){A===void 0&&(A=_),o[A]=a[_]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,a){Object.defineProperty(o,"default",{enumerable:!0,value:a})}):function(o,a){o.default=a}),__importStar=this&&this.__importStar||(function(){var o=function(a){return o=Object.getOwnPropertyNames||function(_){var A=[];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(A[A.length]=b);return A},o(a)};return function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var A=o(a),b=0;b<A.length;b++)A[b]!=="default"&&__createBinding(_,a,A[b]);return __setModuleDefault(_,a),_}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),Slider_1=__importDefault(require("../Slider")),styles_1=require("../../styles"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),settingsStore_1=require("../../helpers/settingsStore"),networkLogger_1=require("../../customHooks/networkLogger"),consoleLogger_1=require("../../customHooks/consoleLogger"),analyticsLogger_1=require("../../customHooks/analyticsLogger"),crashHandler_1=require("../../customHooks/crashHandler"),reduxLogger_1=require("../../customHooks/reduxLogger"),i18n_1=require("../../i18n"),LanguageSelectorModal_1=require("./LanguageSelectorModal"),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),NativeInspector_1=require("../../native/NativeInspector"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),memoryManager_1=require("../../helpers/memoryManager"),SettingsPanel=()=>{const{t:o}=(0,i18n_1.useTranslation)(),{settingsPage:a,setSettingsPage:_,settingsActiveSubTab:A,setSettingsActiveSubTab:b,tabVisibility:R,toggleTabVisibility:pe,defaultTab:z,setDefaultTab:ke,isDark:I,setIsDark:Fe,modalHeightPercent:L,setModalHeightPercent:Re,modalAnimationType:ze,setModalAnimationType:Be,showDuplicateLogs:Z,setShowDuplicateLogs:Ie,showUpdateToast:ee,setShowUpdateToast:He,showConsoleLevels:De,setShowConsoleLevels:Pe,closeModal:po,logs:oe,consoleLogs:re,analyticsEvents:te,reduxState:$,maxConsoleLogs:ce,setMaxConsoleLogs:Le,maxAnalyticsEventsLimit:de,setMaxAnalyticsEventsLimit:$e,isAutoRamLimitEnabled:w,setIsAutoRamLimitEnabled:We,deviceFreeRamMb:ie,reduxAutoRefresh:ae,setReduxAutoRefreshState:Ee,reduxExpandDepth:Oe,setReduxExpandDepth:Me,setSelected:Ne,setSelectedEvent:je,setReduxState:Ue,crashRecords:W,maxCrashLogs:ge,setMaxCrashLogs:ue,crashIgnoredTypes:m,setCrashIgnoredTypes:Ge,crashModalTriggerPolicy:qe,setCrashModalTriggerPolicyState:ye,applyCrashPolicyPreset:E,pushRecords:O,maxPushLogs:Je,setMaxPushLogs:Ke,clearAllPushLogs:Ye,simulatePush:M,socketRecords:N,maxSocketLogs:Qe,setMaxSocketLogs:Xe,clearAllSocketLogs:Ze,simulateSocket:j,captureImageFormat:le,setCaptureImageFormat:Ce,captureAutoHide:x,setCaptureAutoHide:U,captureAudioMode:he,setCaptureAudioMode:Ae,captureFps:be,setCaptureFps:me,captureScale:co,setCaptureScale:go,captureBitrate:uo,setCaptureBitrate:yo,captureMaxDurationSeconds:Co,setCaptureMaxDurationSeconds:ho,captureAutoGif:T,setCaptureAutoGif:G,captureWidgetEnabled:B,setCaptureWidgetEnabled:fe,peekOpacity:_e,setPeekOpacity:eo,hiddenUrlPatterns:H,setHiddenUrlPatterns:ne}=(0,InspectorContext_1.useInspector)(),[q,we]=(0,react_1.useState)(""),[J,xe]=(0,react_1.useState)(L),[oo,Te]=(0,react_1.useState)(!1),ro=(0,i18n_1.getLanguage)(),K=i18n_1.SUPPORTED_LANGUAGES.find(e=>e.code===ro)||i18n_1.SUPPORTED_LANGUAGES[0],ve=()=>{const e=q.trim();if(e){if(H.includes(e)){(0,toast_1.showToast)("Pattern already exists in filter list");return}try{new RegExp(e)}catch{}(0,NativeInspector_1.triggerNativeHaptic)("light"),ne(r=>[...r,e]),we(""),(0,toast_1.showToast)("Hidden URL pattern added")}},to=e=>{const r=H[e];if(constants_1.DEFAULT_HIDDEN_URL_PATTERNS.includes(r)){(0,toast_1.showToast)("Default system filter cannot be removed");return}(0,NativeInspector_1.triggerNativeHaptic)("light"),ne(C=>C.filter((f,v)=>v!==e)),(0,toast_1.showToast)("Pattern removed")};(0,react_1.useEffect)(()=>{xe(L)},[L]);const V=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current;(0,react_1.useEffect)(()=>{V.setValue(0),react_native_1.Animated.spring(V,{toValue:1,friction:8,tension:65,useNativeDriver:!0}).start()},[A]);const Y=(0,settingsStore_1.calculateRamBasedLimits)(ie),S=(0,react_1.useMemo)(()=>[{id:1,key:"apis",label:"APIs (Network)",category:"core",icon:"apis",desc:"HTTP/HTTPS requests, GraphQL, Axios & WebSocket inspector"},{id:2,key:"logs",label:"Console Logs",category:"core",icon:"logs",desc:"Terminal console logs, warnings, errors & stack traces"},{id:3,key:"perf",label:"Performance & FPS",category:"telemetry",icon:"perf",desc:"Live 60 FPS graph, JS event loop queue lag, memory heap & jank monitor"},{id:4,key:"analytics",label:"Analytics Logger",category:"telemetry",icon:"analytics",desc:"Firebase & custom analytics events, user properties & params"},{id:5,key:"redux",label:"Redux Inspector",category:"telemetry",icon:"redux",desc:"Store state diffing, action history & reducer timeline"},{id:6,key:"storage",label:"Storage Inspector",category:"telemetry",icon:"storage",desc:"AsyncStorage & MMKV key-value store viewer with full CRUD support"},{id:7,key:"device",label:"Device Info",category:"diagnostic",icon:"device",desc:"Hardware specs, IP address, screen metrics, UDID & runtime stats"},{id:8,key:"crash",label:"Crash Protection",category:"diagnostic",icon:"crash",desc:"Runtime exception guard, breadcrumbs & memory snapshot"},{id:9,key:"debugging",label:"Multi-Device Debugging",category:"diagnostic",icon:"debugging",desc:"QR Code bridge for direct Debug APK download & Metro live-reload sync"},{id:10,key:"media",label:"Screencast",category:"diagnostic",icon:"media",desc:"Screenshots, video recordings, audio narration & animated GIFs"},{id:11,key:"push",label:"Push Notifications",category:"telemetry",icon:"push",desc:"Universal push & local notification logger (Salesforce, FCM, APNs, Braze, Expo)"},{id:12,key:"socket",label:"WebSocket & Socket.IO",category:"telemetry",icon:"socket",desc:"Real-time WebSocket & Socket.IO message inspector, frames & event logger"}].filter(e=>e.key==="debugging"?react_native_1.Platform.OS==="android"&&(0,helpers_1.isLocalDebugEnvironment)():!0),[]),io={apis:{color:AppColors_1.AppColors.blue500,bg:`${AppColors_1.AppColors.blue500}14`,border:`${AppColors_1.AppColors.blue500}2E`},logs:{color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}14`,border:`${AppColors_1.AppColors.purple}2E`},perf:{color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}14`,border:`${AppColors_1.AppColors.purple}2E`},analytics:{color:AppColors_1.AppColors.amber600,bg:`${AppColors_1.AppColors.amber600}14`,border:`${AppColors_1.AppColors.amber600}2E`},redux:{color:AppColors_1.AppColors.violet600,bg:`${AppColors_1.AppColors.violet600}14`,border:`${AppColors_1.AppColors.violet600}2E`},storage:{color:AppColors_1.AppColors.cyan600,bg:`${AppColors_1.AppColors.cyan600}14`,border:`${AppColors_1.AppColors.cyan600}2E`},device:{color:AppColors_1.AppColors.emerald600,bg:`${AppColors_1.AppColors.emerald600}14`,border:`${AppColors_1.AppColors.emerald600}2E`},crash:{color:AppColors_1.AppColors.red600,bg:`${AppColors_1.AppColors.red600}14`,border:`${AppColors_1.AppColors.red600}2E`},debugging:{color:AppColors_1.AppColors.indigo600,bg:`${AppColors_1.AppColors.indigo600}14`,border:`${AppColors_1.AppColors.indigo600}2E`},media:{color:AppColors_1.AppColors.pink600,bg:`${AppColors_1.AppColors.pink600}14`,border:`${AppColors_1.AppColors.pink600}2E`},push:{color:AppColors_1.AppColors.orange600,bg:`${AppColors_1.AppColors.orange600}14`,border:`${AppColors_1.AppColors.orange600}2E`},socket:{color:AppColors_1.AppColors.teal600,bg:`${AppColors_1.AppColors.teal600}14`,border:`${AppColors_1.AppColors.teal600}2E`}},Q=(0,react_1.useMemo)(()=>S.filter(e=>!(e.key==="apis"||e.key==="redux"&&!(0,reduxLogger_1.isReduxConnected)()||e.key==="analytics"&&!(0,analyticsLogger_1.isAnalyticsConnected)())),[S]),ao=S.filter(e=>e.key==="apis"||!!R?.[e.key]).length,D=(0,react_1.useMemo)(()=>Q.length===0?!1:Q.every(e=>!!R?.[e.key]),[Q,R]),lo=e=>{e!=="apis"&&((0,NativeInspector_1.triggerNativeHaptic)("light"),pe(e))},no=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium");const e=!D;Q.forEach(r=>{!!R?.[r.key]!==e&&pe(r.key)}),(0,toast_1.showToast)(e?"All modules enabled":"Optional modules disabled")},[se,Ve]=(0,react_1.useState)(!1),i=e=><react_native_1.View key={e.key}style={{paddingVertical:12,borderBottomWidth:e.isLast?0:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
2
2
|
<TouchableScale_1.default disabled={!e.onPress}onPress={e.onPress}style={{flexDirection:"row",alignItems:"center",gap:12}}>
|
|
3
3
|
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:AppColors_1.AppColors.purpleShade50,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`,alignItems:"center",justifyContent:"center"}}>
|
|
4
4
|
{e.icon}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</TouchableScale_1.default>
|
|
16
16
|
{e.numericInput&&<react_native_1.View style={{marginTop:10,gap:6}}>
|
|
17
17
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:12,paddingVertical:4}}>
|
|
18
|
-
<react_native_1.TextInput style={{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack,paddingVertical:6}}value={String(e.numericInput.value||"")}onChangeText={r=>{const C=parseInt(r.replace(/[^0-9]/g,""),10);if(!isNaN(C)){const
|
|
18
|
+
<react_native_1.TextInput style={{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack,paddingVertical:6}}value={String(e.numericInput.value||"")}onChangeText={r=>{const C=parseInt(r.replace(/[^0-9]/g,""),10);if(!isNaN(C)){const f=Math.max(e.numericInput?.min??1,Math.min(e.numericInput?.max??1e4,C));e.numericInput?.onChange(f)}}}keyboardType={e.numericInput.keyboardType??"number-pad"}placeholder={e.numericInput.placeholder}placeholderTextColor={AppColors_1.AppColors.grayTextWeak}maxLength={6}selectTextOnFocus/>
|
|
19
19
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.purple,marginLeft:6}}>
|
|
20
20
|
MAX
|
|
21
21
|
</react_native_1.Text>
|
|
@@ -32,151 +32,122 @@
|
|
|
32
32
|
</react_native_1.Text>
|
|
33
33
|
</TouchableScale_1.default>})}
|
|
34
34
|
</react_native_1.View>}
|
|
35
|
-
</react_native_1.View>,
|
|
35
|
+
</react_native_1.View>,so=()=><react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
36
36
|
<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:14}}showsVerticalScrollIndicator={!1}>
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</react_native_1.Text>
|
|
46
|
-
{e.badge&&<react_native_1.View style={{backgroundColor:r?"rgba(255,255,255,0.25)":`${AppColors_1.AppColors.purple}18`,paddingHorizontal:5.5,paddingVertical:1,borderRadius:10}}>
|
|
47
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
48
|
-
{e.badge}
|
|
49
|
-
</react_native_1.Text>
|
|
50
|
-
</react_native_1.View>}
|
|
51
|
-
</TouchableScale_1.default>})}
|
|
52
|
-
</react_native_1.ScrollView>
|
|
38
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:12,padding:3,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,flexDirection:"row",alignItems:"center",shadowColor:AppColors_1.AppColors.black,shadowOpacity:.04,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2}}>
|
|
39
|
+
{[{key:"module",label:o("settings.navModules","Modules"),Icon:NetworkIcons_1.LayersIcon},{key:"ui",label:o("settings.navDisplay","Display"),Icon:NetworkIcons_1.ScreenIcon},{key:"limits",label:o("settings.navLimits","Limits"),Icon:NetworkIcons_1.BrainIcon},{key:"capture",label:o("settings.navCapture","Capture"),Icon:NetworkIcons_1.CameraIcon}].map(e=>{const r=A===e.key,C=e.Icon;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="tab"accessibilityLabel={e.label}accessibilityState={{selected:r}}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),(0,InspectorContext_1.animateNextLayout)(),b(e.key)}}style={{flex:1,minWidth:0,paddingVertical:8,paddingHorizontal:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4,borderRadius:9,backgroundColor:r?AppColors_1.AppColors.purple:"transparent"}}>
|
|
40
|
+
<C color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>
|
|
41
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}}numberOfLines={1}ellipsizeMode="tail">
|
|
42
|
+
{e.label}
|
|
43
|
+
</react_native_1.Text>
|
|
44
|
+
</TouchableScale_1.default>})}
|
|
53
45
|
</react_native_1.View>
|
|
54
46
|
|
|
55
|
-
{
|
|
47
|
+
{A==="module"&&<react_native_1.Animated.View style={{gap:10,opacity:V,transform:[{translateY:V.interpolate({inputRange:[0,1],outputRange:[10,0]})}]}}>
|
|
56
48
|
|
|
57
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",
|
|
58
|
-
<
|
|
59
|
-
<react_native_1.
|
|
60
|
-
|
|
61
|
-
</react_native_1.
|
|
62
|
-
<react_native_1.View>
|
|
63
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:
|
|
64
|
-
{
|
|
65
|
-
</react_native_1.Text>
|
|
66
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
67
|
-
{ue} of {w.length} modules active
|
|
49
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:4,paddingVertical:2}}>
|
|
50
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
51
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,lineHeight:16,color:AppColors_1.AppColors.primaryBlack}}>
|
|
52
|
+
Active Modules
|
|
53
|
+
</react_native_1.Text>
|
|
54
|
+
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:10,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}25`}}>
|
|
55
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.purple}}>
|
|
56
|
+
{ao} of {S.length}
|
|
68
57
|
</react_native_1.Text>
|
|
69
58
|
</react_native_1.View>
|
|
70
|
-
</
|
|
59
|
+
</react_native_1.View>
|
|
71
60
|
|
|
72
|
-
<TouchableScale_1.default onPress={
|
|
73
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:
|
|
74
|
-
{
|
|
61
|
+
<TouchableScale_1.default onPress={no}hitSlop={6}style={{paddingHorizontal:10,paddingVertical:4.5,borderRadius:7,backgroundColor:D?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.purple,borderWidth:1,borderColor:D?`${AppColors_1.AppColors.purple}30`:"transparent"}}>
|
|
62
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:D?AppColors_1.AppColors.purple:AppColors_1.AppColors.white}}>
|
|
63
|
+
{D?"Deselect All":"Select All"}
|
|
75
64
|
</react_native_1.Text>
|
|
76
65
|
</TouchableScale_1.default>
|
|
77
66
|
</react_native_1.View>
|
|
78
67
|
|
|
79
68
|
|
|
80
|
-
<react_native_1.View style={{gap:
|
|
81
|
-
{
|
|
69
|
+
<react_native_1.View style={{gap:8}}>
|
|
70
|
+
{S.map(e=>{const r=(0,reduxLogger_1.isReduxConnected)(),C=(0,analyticsLogger_1.isAnalyticsConnected)(),f=e.key==="redux"&&!r||e.key==="analytics"&&!C,v=e.key==="apis"||f,t=e.key==="apis"||!!R?.[e.key]&&!f,h=io[e.key]||{color:AppColors_1.AppColors.purple,bg:`${AppColors_1.AppColors.purple}14`,border:`${AppColors_1.AppColors.purple}2E`},F=e.key==="apis"||e.key==="logs"||e.key==="analytics"||e.key==="redux"||e.key==="crash"||e.key==="push"||e.key==="socket",P=e.key==="apis"?oe.length>0?`${oe.length} requests`:"":e.key==="logs"?re.length>0?`${re.length} logs`:"":e.key==="crash"?W&&W.length>0?`${W.length} crashes`:"":e.key==="analytics"?te.length>0?`${te.length} events`:"":e.key==="redux"?$&&Object.keys($).length>0?`${Object.keys($).length} slices`:"":e.key==="push"?O&&O.length>0?`${O.length} notifications`:"":e.key==="socket"&&N&&N.length>0?`${N.length} sockets`:"";return<react_native_1.View key={e.key}style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:13,borderWidth:1,borderColor:t?`${h.color}38`:AppColors_1.AppColors.grayBorderSecondary,padding:12,gap:8,shadowColor:AppColors_1.AppColors.black,shadowOpacity:t?.03:.01,shadowRadius:3,shadowOffset:{width:0,height:1.5},elevation:1.5}}>
|
|
82
71
|
|
|
83
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"
|
|
72
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
84
73
|
|
|
85
|
-
<
|
|
86
|
-
{e.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
<react_native_1.View style={{width:38,height:38,borderRadius:10,backgroundColor:t?h.bg:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:t?h.border:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center",flexShrink:0}}>
|
|
75
|
+
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
76
|
+
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
77
|
+
{e.icon==="perf"&&<NetworkIcons_1.SpeedometerIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
78
|
+
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
79
|
+
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
80
|
+
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
81
|
+
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
82
|
+
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
83
|
+
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
84
|
+
{e.icon==="media"&&<NetworkIcons_1.ScreencastIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
85
|
+
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
86
|
+
{e.icon==="socket"&&<NetworkIcons_1.WebsocketIcon color={t?h.color:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
87
|
+
</react_native_1.View>
|
|
91
88
|
|
|
92
89
|
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
99
|
-
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
100
|
-
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
101
|
-
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
102
|
-
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
103
|
-
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
104
|
-
{e.icon==="media"&&<NetworkIcons_1.ScreencastIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
105
|
-
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
106
|
-
{e.icon==="socket"&&<NetworkIcons_1.WebsocketIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
107
|
-
</react_native_1.View>
|
|
90
|
+
<react_native_1.View style={{flex:1,minWidth:0,justifyContent:"center"}}>
|
|
91
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
92
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:v?AppColors_1.AppColors.grayText:AppColors_1.AppColors.primaryBlack}}numberOfLines={1}>
|
|
93
|
+
{e.label}
|
|
94
|
+
</react_native_1.Text>
|
|
108
95
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
114
|
-
#{e.id}
|
|
96
|
+
|
|
97
|
+
{e.key==="apis"&&<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.blue500}14`,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,borderWidth:1,borderColor:`${AppColors_1.AppColors.blue500}33`}}>
|
|
98
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:7.5,lineHeight:10,color:AppColors_1.AppColors.blue500,letterSpacing:.3}}>
|
|
99
|
+
CORE
|
|
115
100
|
</react_native_1.Text>
|
|
116
|
-
</react_native_1.View>
|
|
117
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:x?AppColors_1.AppColors.grayText:AppColors_1.AppColors.primaryBlack}}>
|
|
118
|
-
{e.label}
|
|
119
|
-
</react_native_1.Text>
|
|
101
|
+
</react_native_1.View>}
|
|
120
102
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
{o("settings.coreBadge")}
|
|
133
|
-
</react_native_1.Text>
|
|
134
|
-
</react_native_1.View>:h?<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.amber500}18`,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}35`}}>
|
|
135
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.amber700,letterSpacing:.3}}>
|
|
136
|
-
{e.key==="redux"?o("settings.notConnectedBadge"):o("settings.notDetectedBadge")}
|
|
137
|
-
</react_native_1.Text>
|
|
138
|
-
</react_native_1.View>:l?<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.liveGreen}18`,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.liveGreen}38`}}>
|
|
139
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.green700,letterSpacing:.3}}>
|
|
140
|
-
{o("settings.activeBadge")}
|
|
141
|
-
</react_native_1.Text>
|
|
142
|
-
</react_native_1.View>:<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.grayTextWeak}18`,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.grayTextWeak}2E`}}>
|
|
143
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.3}}>
|
|
144
|
-
{o("settings.dormantBadge")}
|
|
145
|
-
</react_native_1.Text>
|
|
146
|
-
</react_native_1.View>}
|
|
147
|
-
</react_native_1.View>
|
|
148
|
-
|
|
149
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayText,lineHeight:15,marginTop:1}}>
|
|
150
|
-
{e.desc}
|
|
151
|
-
</react_native_1.Text>
|
|
103
|
+
{e.key===z&&<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`}}>
|
|
104
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:7.5,lineHeight:10,color:AppColors_1.AppColors.purple,letterSpacing:.3}}>
|
|
105
|
+
DEFAULT
|
|
106
|
+
</react_native_1.Text>
|
|
107
|
+
</react_native_1.View>}
|
|
108
|
+
|
|
109
|
+
{f&&<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.amber500}14`,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}33`}}>
|
|
110
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:7.5,lineHeight:10,color:AppColors_1.AppColors.amber700,letterSpacing:.3}}>
|
|
111
|
+
OFFLINE
|
|
112
|
+
</react_native_1.Text>
|
|
113
|
+
</react_native_1.View>}
|
|
152
114
|
</react_native_1.View>
|
|
153
|
-
|
|
115
|
+
|
|
116
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayTextWeak,marginTop:1.5}}numberOfLines={1}ellipsizeMode="tail">
|
|
117
|
+
{e.desc}
|
|
118
|
+
</react_native_1.Text>
|
|
119
|
+
</react_native_1.View>
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<react_native_1.Switch value={t}disabled={v}onValueChange={()=>lo(e.key)}trackColor={{false:AppColors_1.AppColors.grayBorderSecondary,true:AppColors_1.AppColors.purple}}thumbColor={AppColors_1.AppColors.white}ios_backgroundColor={AppColors_1.AppColors.grayBorderSecondary}style={{transform:[{scaleX:.8},{scaleY:.8}]}}/>
|
|
154
123
|
</react_native_1.View>
|
|
155
124
|
|
|
156
125
|
|
|
157
|
-
{
|
|
126
|
+
{(P||F||e.key==="media")&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:7,borderTopWidth:1,borderTopColor:`${AppColors_1.AppColors.dividerColor}99`,marginTop:1}}>
|
|
158
127
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
{
|
|
163
|
-
|
|
164
|
-
|
|
128
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5,flex:1}}>
|
|
129
|
+
{P?<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
130
|
+
<react_native_1.View style={{width:5.5,height:5.5,borderRadius:3,backgroundColor:t?h.color:AppColors_1.AppColors.grayTextWeak}}/>
|
|
131
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,lineHeight:14,color:t?AppColors_1.AppColors.grayTextStrong:AppColors_1.AppColors.grayTextWeak}}>
|
|
132
|
+
{P}
|
|
133
|
+
</react_native_1.Text>
|
|
134
|
+
</react_native_1.View>:<react_native_1.View/>}
|
|
135
|
+
</react_native_1.View>
|
|
165
136
|
|
|
166
137
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
138
|
+
{(F||e.key==="media")&&<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),e.key==="media"?((0,InspectorContext_1.animateNextLayout)(),b("capture")):_(e.key)}}hitSlop={6}style={{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:8.5,paddingVertical:4,borderRadius:6.5,backgroundColor:`${h.color}14`,borderWidth:1,borderColor:`${h.color}2A`}}>
|
|
139
|
+
<NetworkIcons_1.SettingsIcon color={h.color}size={10}/>
|
|
140
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:h.color}}>
|
|
141
|
+
{o("settings.configure","Configure")}
|
|
142
|
+
</react_native_1.Text>
|
|
143
|
+
<NetworkIcons_1.ForwardChevronIcon color={h.color}size={8}/>
|
|
144
|
+
</TouchableScale_1.default>}
|
|
174
145
|
</react_native_1.View>}
|
|
175
146
|
</react_native_1.View>})}
|
|
176
147
|
</react_native_1.View>
|
|
177
|
-
</react_native_1.View>}
|
|
148
|
+
</react_native_1.Animated.View>}
|
|
178
149
|
|
|
179
|
-
{
|
|
150
|
+
{A==="ui"&&<react_native_1.Animated.View style={{gap:14,opacity:V,transform:[{translateY:V.interpolate({inputRange:[0,1],outputRange:[10,0]})}]}}>
|
|
180
151
|
|
|
181
152
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",padding:14,gap:12}}>
|
|
182
153
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8}}>
|
|
@@ -186,7 +157,7 @@
|
|
|
186
157
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
187
158
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
188
159
|
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:AppColors_1.AppColors.purpleShade50,alignItems:"center",justifyContent:"center"}}>
|
|
189
|
-
{
|
|
160
|
+
{I?<NetworkIcons_1.SunIcon color={AppColors_1.AppColors.purple}size={15}/>:<NetworkIcons_1.MoonIcon color={AppColors_1.AppColors.purple}size={15}/>}
|
|
190
161
|
</react_native_1.View>
|
|
191
162
|
<react_native_1.View style={{flex:1}}>
|
|
192
163
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
@@ -198,7 +169,7 @@
|
|
|
198
169
|
</react_native_1.View>
|
|
199
170
|
</react_native_1.View>
|
|
200
171
|
|
|
201
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:
|
|
172
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:I}}onPress={()=>{const e=!I;Fe(e),(0,styles_1.toggleGlobalTheme)(e)}}style={{width:42,height:24,borderRadius:12,backgroundColor:I?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:I?"flex-end":"flex-start"}}>
|
|
202
173
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
203
174
|
</TouchableScale_1.default>
|
|
204
175
|
</react_native_1.View>
|
|
@@ -221,10 +192,10 @@
|
|
|
221
192
|
</react_native_1.View>
|
|
222
193
|
</react_native_1.View>
|
|
223
194
|
|
|
224
|
-
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),
|
|
225
|
-
{
|
|
195
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Te(!0)}}style={{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.purpleShade50,paddingHorizontal:10,paddingVertical:6,borderRadius:8,gap:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}20`}}>
|
|
196
|
+
{K?.flag?<react_native_1.Text style={{fontSize:13}}>{K.flag}</react_native_1.Text>:<NetworkIcons_1.GlobeIcon size={14}color={AppColors_1.AppColors.purple}/>}
|
|
226
197
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.purple}}>
|
|
227
|
-
{
|
|
198
|
+
{K?.nativeName||K?.name||"English"}
|
|
228
199
|
</react_native_1.Text>
|
|
229
200
|
<NetworkIcons_1.ForwardChevronIcon size={11}color={AppColors_1.AppColors.purple}/>
|
|
230
201
|
</TouchableScale_1.default>
|
|
@@ -254,16 +225,16 @@
|
|
|
254
225
|
</react_native_1.View>
|
|
255
226
|
</react_native_1.View>
|
|
256
227
|
|
|
257
|
-
{
|
|
228
|
+
{J!==L&&<TouchableScale_1.default onPress={()=>{Re(J)}}style={{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:AppColors_1.AppColors.purple,paddingHorizontal:10,paddingVertical:5,borderRadius:7,shadowColor:AppColors_1.AppColors.purple,shadowOffset:{width:0,height:1},shadowOpacity:.28,shadowRadius:2,elevation:2}}>
|
|
258
229
|
<NetworkIcons_1.CheckIcon size={11}color={AppColors_1.AppColors.white}/>
|
|
259
230
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white}}>
|
|
260
|
-
Save ({
|
|
231
|
+
Save ({J}%)
|
|
261
232
|
</react_native_1.Text>
|
|
262
233
|
</TouchableScale_1.default>}
|
|
263
234
|
</react_native_1.View>
|
|
264
235
|
|
|
265
236
|
<react_native_1.View style={{marginTop:6}}>
|
|
266
|
-
<Slider_1.default value={
|
|
237
|
+
<Slider_1.default value={J}onValueChange={xe}min={50}max={90}step={5}quickPresets={[50,60,70,80,90]}formatLabel={e=>`${Math.round(e)}%`}/>
|
|
267
238
|
</react_native_1.View>
|
|
268
239
|
</react_native_1.View>
|
|
269
240
|
|
|
@@ -288,13 +259,13 @@
|
|
|
288
259
|
|
|
289
260
|
<react_native_1.View style={{backgroundColor:"rgba(6, 182, 212, 0.14)",paddingHorizontal:8,paddingVertical:3,borderRadius:6,borderWidth:1,borderColor:"rgba(6, 182, 212, 0.30)"}}>
|
|
290
261
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:"#06B6D4"}}>
|
|
291
|
-
{
|
|
262
|
+
{_e.toFixed(1)}
|
|
292
263
|
</react_native_1.Text>
|
|
293
264
|
</react_native_1.View>
|
|
294
265
|
</react_native_1.View>
|
|
295
266
|
|
|
296
267
|
<react_native_1.View style={{marginTop:6}}>
|
|
297
|
-
<Slider_1.default value={
|
|
268
|
+
<Slider_1.default value={_e}onValueChange={e=>{const r=Math.round(e*10)/10;eo(r)}}min={.1}max={1}step={.1}quickPresets={[.1,.3,.5,.7,1]}formatLabel={e=>e.toFixed(1)}/>
|
|
298
269
|
</react_native_1.View>
|
|
299
270
|
</react_native_1.View>
|
|
300
271
|
|
|
@@ -317,7 +288,7 @@
|
|
|
317
288
|
</react_native_1.View>
|
|
318
289
|
|
|
319
290
|
<react_native_1.View style={{flexDirection:"row",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,padding:3,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
320
|
-
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const r=
|
|
291
|
+
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const r=ze===e.key;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Set transition animation to ${e.label}`}accessibilityState={{selected:r}}onPress={()=>Be(e.key)}style={{flex:1,paddingVertical:7,alignItems:"center",borderRadius:8,backgroundColor:r?AppColors_1.AppColors.purple:"transparent"}}>
|
|
321
292
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}}>
|
|
322
293
|
{e.label}
|
|
323
294
|
</react_native_1.Text>
|
|
@@ -348,11 +319,11 @@
|
|
|
348
319
|
|
|
349
320
|
|
|
350
321
|
<react_native_1.View style={{marginTop:6,gap:6}}>
|
|
351
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${
|
|
322
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${S.find(e=>e.key===z)?.label||"APIs"}`}onPress={()=>Ve(e=>!e)}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1.5,borderColor:se?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:14,paddingVertical:11}}>
|
|
352
323
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
353
324
|
<react_native_1.View style={{width:8,height:8,borderRadius:4,backgroundColor:AppColors_1.AppColors.purple}}/>
|
|
354
325
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
355
|
-
{
|
|
326
|
+
{S.find(e=>e.key===z)?`#${S.find(e=>e.key===z)?.id} ${S.find(e=>e.key===z)?.label}`:"#1 APIs (Network)"}
|
|
356
327
|
</react_native_1.Text>
|
|
357
328
|
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:6}}>
|
|
358
329
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple}}>
|
|
@@ -361,21 +332,21 @@
|
|
|
361
332
|
</react_native_1.View>
|
|
362
333
|
</react_native_1.View>
|
|
363
334
|
|
|
364
|
-
<react_native_1.View style={{transform:[{rotate:
|
|
335
|
+
<react_native_1.View style={{transform:[{rotate:se?"180deg":"0deg"}]}}>
|
|
365
336
|
<NetworkIcons_1.ChevronDownIcon color={AppColors_1.AppColors.grayText}size={15}/>
|
|
366
337
|
</react_native_1.View>
|
|
367
338
|
</TouchableScale_1.default>
|
|
368
339
|
|
|
369
340
|
|
|
370
|
-
{
|
|
371
|
-
{
|
|
341
|
+
{se&&<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.black,shadowOpacity:.08,shadowRadius:6,shadowOffset:{width:0,height:3},elevation:4}}>
|
|
342
|
+
{S.filter(e=>e.key==="apis"||R?.[e.key]).map((e,r,C)=>{const f=z===e.key,v=r===C.length-1;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Select ${e.label} as default tab`}onPress={()=>{ke(e.key),Ve(!1)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingVertical:11,backgroundColor:f?`${AppColors_1.AppColors.purple}0F`:"transparent",borderBottomWidth:v?0:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
372
343
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
373
|
-
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:
|
|
374
|
-
<react_native_1.Text style={{fontFamily:
|
|
344
|
+
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:f?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}}/>
|
|
345
|
+
<react_native_1.Text style={{fontFamily:f?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interMedium,fontSize:13,color:f?AppColors_1.AppColors.purple:AppColors_1.AppColors.primaryBlack}}>
|
|
375
346
|
#{e.id} {e.label}
|
|
376
347
|
</react_native_1.Text>
|
|
377
348
|
</react_native_1.View>
|
|
378
|
-
{
|
|
349
|
+
{f&&<NetworkIcons_1.CheckIcon size={14}color={AppColors_1.AppColors.purple}/>}
|
|
379
350
|
</TouchableScale_1.default>})}
|
|
380
351
|
</react_native_1.View>}
|
|
381
352
|
</react_native_1.View>
|
|
@@ -403,14 +374,14 @@
|
|
|
403
374
|
</react_native_1.View>
|
|
404
375
|
</react_native_1.View>
|
|
405
376
|
|
|
406
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:
|
|
377
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:ee}}onPress={()=>He(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:ee?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:ee?"flex-end":"flex-start"}}>
|
|
407
378
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
408
379
|
</TouchableScale_1.default>
|
|
409
380
|
</react_native_1.View>
|
|
410
381
|
</react_native_1.View>
|
|
411
|
-
</react_native_1.View>}
|
|
382
|
+
</react_native_1.Animated.View>}
|
|
412
383
|
|
|
413
|
-
{
|
|
384
|
+
{A==="limits"&&<react_native_1.Animated.View style={{gap:14,opacity:V,transform:[{translateY:V.interpolate({inputRange:[0,1],outputRange:[10,0]})}]}}>
|
|
414
385
|
|
|
415
386
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",padding:14,gap:12}}>
|
|
416
387
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8}}>
|
|
@@ -434,7 +405,7 @@
|
|
|
434
405
|
</react_native_1.View>
|
|
435
406
|
</react_native_1.View>
|
|
436
407
|
|
|
437
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:
|
|
408
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:w}}onPress={()=>We(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:w?"flex-end":"flex-start"}}>
|
|
438
409
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
439
410
|
</TouchableScale_1.default>
|
|
440
411
|
</react_native_1.View>
|
|
@@ -443,20 +414,20 @@
|
|
|
443
414
|
|
|
444
415
|
|
|
445
416
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
446
|
-
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:
|
|
447
|
-
<NetworkIcons_1.SignalIcon color={
|
|
417
|
+
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:w?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center"}}>
|
|
418
|
+
<NetworkIcons_1.SignalIcon color={w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
448
419
|
</react_native_1.View>
|
|
449
420
|
<react_native_1.View style={{flex:1}}>
|
|
450
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:
|
|
421
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:w?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayText}}>
|
|
451
422
|
Detected Available RAM
|
|
452
423
|
</react_native_1.Text>
|
|
453
424
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
454
|
-
{
|
|
425
|
+
{ie} MB available on device
|
|
455
426
|
</react_native_1.Text>
|
|
456
427
|
</react_native_1.View>
|
|
457
|
-
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:
|
|
458
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:
|
|
459
|
-
{
|
|
428
|
+
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:w?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:w?`${AppColors_1.AppColors.purple}26`:AppColors_1.AppColors.dividerColor}}>
|
|
429
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
430
|
+
{ie} MB
|
|
460
431
|
</react_native_1.Text>
|
|
461
432
|
</react_native_1.View>
|
|
462
433
|
</react_native_1.View>
|
|
@@ -465,17 +436,17 @@
|
|
|
465
436
|
<react_native_1.View style={{marginTop:4,paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,gap:6}}>
|
|
466
437
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
467
438
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:AppColors_1.AppColors.purple}}>
|
|
468
|
-
Profile: {
|
|
439
|
+
Profile: {Y.profileName}
|
|
469
440
|
</react_native_1.Text>
|
|
470
|
-
<react_native_1.View style={{backgroundColor:
|
|
471
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:
|
|
472
|
-
{
|
|
441
|
+
<react_native_1.View style={{backgroundColor:w?`${AppColors_1.AppColors.emerald500}18`:`${AppColors_1.AppColors.purple}18`,paddingHorizontal:7,paddingVertical:2.5,borderRadius:4}}>
|
|
442
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:w?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.purple}}>
|
|
443
|
+
{w?"AUTO-TUNED":"MANUAL"}
|
|
473
444
|
</react_native_1.Text>
|
|
474
445
|
</react_native_1.View>
|
|
475
446
|
</react_native_1.View>
|
|
476
447
|
|
|
477
448
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:4}}>
|
|
478
|
-
{[{label:"Logs",value:
|
|
449
|
+
{[{label:"Logs",value:w?Y.maxConsoleLogs:ce,color:AppColors_1.AppColors.sky500},{label:"Analytics",value:w?Y.maxAnalyticsEvents:de,color:AppColors_1.AppColors.purple},{label:"Crash",value:w?Y.maxCrashRecords:ge,color:AppColors_1.AppColors.errorColor}].map(e=><react_native_1.View key={e.label}style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.color}14`,borderWidth:1,borderColor:`${e.color}33`}}>
|
|
479
450
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,lineHeight:14,color:e.color}}>
|
|
480
451
|
{e.label}:
|
|
481
452
|
</react_native_1.Text>
|
|
@@ -533,8 +504,31 @@
|
|
|
533
504
|
</TouchableScale_1.default>
|
|
534
505
|
</react_native_1.View>
|
|
535
506
|
</react_native_1.View>
|
|
536
|
-
</react_native_1.View>}
|
|
537
|
-
{
|
|
507
|
+
</react_native_1.Animated.View>}
|
|
508
|
+
{A==="capture"&&<react_native_1.Animated.View style={{gap:16,opacity:V,transform:[{translateY:V.interpolate({inputRange:[0,1],outputRange:[10,0]})}]}}>
|
|
509
|
+
|
|
510
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
511
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
512
|
+
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:`${AppColors_1.AppColors.rose500}1A`,alignItems:"center",justifyContent:"center"}}>
|
|
513
|
+
<NetworkIcons_1.VideoCameraIcon color={AppColors_1.AppColors.rose500}size={16}/>
|
|
514
|
+
</react_native_1.View>
|
|
515
|
+
<react_native_1.View style={{flex:1}}>
|
|
516
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
517
|
+
{o("settings.media.floatingWidgetTitle","Floating Capture Widget")}
|
|
518
|
+
</react_native_1.Text>
|
|
519
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
520
|
+
{o("settings.media.floatingWidgetDesc","On-screen floating button to quickly take screenshots and record videos (Disabled by default)")}
|
|
521
|
+
</react_native_1.Text>
|
|
522
|
+
</react_native_1.View>
|
|
523
|
+
</react_native_1.View>
|
|
524
|
+
|
|
525
|
+
{i({icon:<NetworkIcons_1.CameraIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.enableFloatingWidget","Enable Floating Widget"),description:o("settings.media.enableFloatingWidgetDesc","Shows draggable quick screenshot & video recording button on screen"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe(e=>!e),(0,toast_1.showToast)(`Capture widget: ${B?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe(e=>!e),(0,toast_1.showToast)(`Capture widget: ${B?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:B?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:B?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
526
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:B?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
527
|
+
{B?o("settings.media.enabled","ON"):"OFF"}
|
|
528
|
+
</react_native_1.Text>
|
|
529
|
+
</TouchableScale_1.default>})}
|
|
530
|
+
</react_native_1.View>
|
|
531
|
+
|
|
538
532
|
|
|
539
533
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
540
534
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
@@ -551,17 +545,17 @@
|
|
|
551
545
|
</react_native_1.View>
|
|
552
546
|
</react_native_1.View>
|
|
553
547
|
|
|
554
|
-
{
|
|
555
|
-
{["png","jpeg","webp"].map(e=>{const r=
|
|
548
|
+
{i({icon:<NetworkIcons_1.ImageIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.imageFormat","Image Format"),description:o("settings.media.imageFormatDesc","Export formats (PNG lossless, JPEG lossy, WebP)"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
549
|
+
{["png","jpeg","webp"].map(e=>{const r=le===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ce(e),(0,toast_1.showToast)(`Screenshot format: ${e.toUpperCase()}`)}}style={{paddingHorizontal:9,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
556
550
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
557
551
|
{e.toUpperCase()}
|
|
558
552
|
</react_native_1.Text>
|
|
559
553
|
</TouchableScale_1.default>})}
|
|
560
554
|
</react_native_1.View>})}
|
|
561
555
|
|
|
562
|
-
{
|
|
563
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
564
|
-
{
|
|
556
|
+
{i({icon:<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.autoHide","Auto-Hide Inspector During Capture"),description:o("settings.media.autoHideDesc","Temporarily hides the inspector overlay during screen capture"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),U(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${x?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),U(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${x?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:x?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:x?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
557
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:x?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
558
|
+
{x?o("settings.media.enabled","ON"):"OFF"}
|
|
565
559
|
</react_native_1.Text>
|
|
566
560
|
</TouchableScale_1.default>})}
|
|
567
561
|
</react_native_1.View>
|
|
@@ -582,77 +576,117 @@
|
|
|
582
576
|
</react_native_1.View>
|
|
583
577
|
</react_native_1.View>
|
|
584
578
|
|
|
585
|
-
{
|
|
586
|
-
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=
|
|
579
|
+
{i({icon:<NetworkIcons_1.MicrophoneIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.audioMode","Audio Source"),description:o("settings.media.audioModeDesc","Record video with muted, app audio, or microphone commentary"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
580
|
+
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=he===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ae(e.key),(0,toast_1.showToast)(`Audio source: ${e.label}`)}}style={{paddingHorizontal:8,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
587
581
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
588
582
|
{e.label}
|
|
589
583
|
</react_native_1.Text>
|
|
590
584
|
</TouchableScale_1.default>})}
|
|
591
585
|
</react_native_1.View>})}
|
|
592
586
|
|
|
593
|
-
{
|
|
594
|
-
{[15,24,30,60].map(e=>{const r=
|
|
587
|
+
{i({icon:<NetworkIcons_1.FilmIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.frameRate","Recording Frame Rate (FPS)"),description:o("settings.media.frameRateDesc","Target video smoothness: 15, 24, 30, or 60 FPS"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
588
|
+
{[15,24,30,60].map(e=>{const r=be===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),me(e),(0,toast_1.showToast)(`Recording FPS: ${e}`)}}style={{paddingHorizontal:7,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
595
589
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
596
590
|
{e}fps
|
|
597
591
|
</react_native_1.Text>
|
|
598
592
|
</TouchableScale_1.default>})}
|
|
599
593
|
</react_native_1.View>})}
|
|
600
594
|
|
|
601
|
-
{
|
|
602
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
603
|
-
{
|
|
595
|
+
{i({icon:<NetworkIcons_1.GifIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.gifAutoOpt","Auto GIF Optimization"),description:o("settings.media.gifAutoOptDesc","Automatic palette reduction and frame skip for lightweight animated GIFs"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),G(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${T?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),G(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${T?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:T?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:T?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
596
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:T?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
597
|
+
{T?"ON":"OFF"}
|
|
604
598
|
</react_native_1.Text>
|
|
605
599
|
</TouchableScale_1.default>})}
|
|
606
600
|
</react_native_1.View>
|
|
607
601
|
|
|
608
602
|
|
|
609
603
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
610
|
-
{
|
|
604
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.media.purgeAll","Purge Captured Media Cache"),description:o("settings.media.purgeAllDesc","Delete all local screenshots, screen recordings and converted GIFs"),isLast:!0,onPress:()=>{react_native_1.Alert.alert(o("settings.media.purgeConfirmTitle","Purge Media Storage?"),o("settings.media.purgeConfirmMessage","This will permanently delete all captured screenshots and videos from disk."),[{text:o("common.cancel","Cancel"),style:"cancel"},{text:o("settings.media.purgeCacheBtn","Purge All"),style:"destructive",onPress:async()=>{await capture_1.ScreenCapture.clearAllMedia(),(0,toast_1.showToast)(o("settings.media.purgedSuccess","Media cache cleared successfully"))}}])},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
611
605
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
612
606
|
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
613
607
|
</react_native_1.Text>
|
|
614
608
|
</react_native_1.View>})}
|
|
615
609
|
</react_native_1.View>
|
|
616
|
-
</react_native_1.View>}
|
|
610
|
+
</react_native_1.Animated.View>}
|
|
611
|
+
|
|
617
612
|
<react_native_1.View style={{height:48}}/>
|
|
618
613
|
</react_native_1.ScrollView>
|
|
614
|
+
</react_native_1.View>;let k=null;if(a==="apis")k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
619
615
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
<react_native_1.View style={{flex:
|
|
623
|
-
<react_native_1.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
616
|
+
|
|
617
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16,gap:12}}>
|
|
618
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:8}}>
|
|
619
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8,flex:1}}>
|
|
620
|
+
<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.purple}size={16}/>
|
|
621
|
+
<react_native_1.View style={{flex:1}}>
|
|
622
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
623
|
+
{o("settings.apis.hideUrlRegexTitle","Hidden URL Filters (Regex)")}
|
|
624
|
+
</react_native_1.Text>
|
|
625
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayTextWeak,marginTop:2}}>
|
|
626
|
+
{o("settings.apis.hideUrlRegexDesc","Hide matching URLs from Network list and search results (calls will still execute normally).")}
|
|
627
|
+
</react_native_1.Text>
|
|
628
|
+
</react_native_1.View>
|
|
629
|
+
</react_native_1.View>
|
|
630
|
+
{H.length>0&&<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ne([...constants_1.DEFAULT_HIDDEN_URL_PATTERNS]),(0,toast_1.showToast)(o("settings.apis.resetFilterToast","Reset to default URL filters"))}}hitSlop={8}style={{paddingHorizontal:8,paddingVertical:4.5,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}33`,alignSelf:"flex-start"}}>
|
|
631
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.purple}}>
|
|
632
|
+
{o("common.resetDefaults","Reset Defaults")}
|
|
633
|
+
</react_native_1.Text>
|
|
634
|
+
</TouchableScale_1.default>}
|
|
629
635
|
</react_native_1.View>
|
|
630
636
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
|
|
638
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:10,paddingVertical:react_native_1.Platform.OS==="ios"?8:4}}>
|
|
639
|
+
<NetworkIcons_1.CodeBracketsIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
640
|
+
<react_native_1.TextInput style={{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,lineHeight:16,color:AppColors_1.AppColors.primaryBlack,padding:0}}placeholder={o("settings.apis.addPatternPlaceholder","e.g. https://api.example.com or .*analytics.*")}placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={q}onChangeText={we}autoCapitalize="none"autoCorrect={!1}onSubmitEditing={ve}returnKeyType="done"/>
|
|
641
|
+
<TouchableScale_1.default onPress={ve}disabled={!q.trim()}style={{paddingHorizontal:10,paddingVertical:5.5,borderRadius:7,backgroundColor:q.trim()?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}33`}}>
|
|
642
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.white}}>
|
|
643
|
+
{o("common.add","+ Add")}
|
|
644
|
+
</react_native_1.Text>
|
|
645
|
+
</TouchableScale_1.default>
|
|
646
|
+
</react_native_1.View>
|
|
639
647
|
|
|
648
|
+
|
|
649
|
+
<react_native_1.View style={{gap:6}}>
|
|
650
|
+
{H.map((e,r)=>{const C=constants_1.DEFAULT_HIDDEN_URL_PATTERNS.includes(e);return<react_native_1.View key={`${e}-${r}`}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:C?`${AppColors_1.AppColors.slate200}44`:AppColors_1.AppColors.grayBackground,borderRadius:8,paddingHorizontal:10,paddingVertical:7,borderWidth:1,borderColor:C?`${AppColors_1.AppColors.grayBorderSecondary}`:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
651
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0}}>
|
|
652
|
+
<react_native_1.View style={{paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,backgroundColor:C?`${AppColors_1.AppColors.blue500}18`:`${AppColors_1.AppColors.purple}1F`}}>
|
|
653
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,lineHeight:11,color:C?AppColors_1.AppColors.blue600:AppColors_1.AppColors.purple}}>
|
|
654
|
+
{C?"DEFAULT":"CUSTOM"}
|
|
655
|
+
</react_native_1.Text>
|
|
656
|
+
</react_native_1.View>
|
|
657
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11.5,lineHeight:15,color:C?AppColors_1.AppColors.grayTextStrong:AppColors_1.AppColors.primaryBlack,flex:1}}numberOfLines={1}ellipsizeMode="middle">
|
|
658
|
+
{e}
|
|
659
|
+
</react_native_1.Text>
|
|
660
|
+
</react_native_1.View>
|
|
661
|
+
{C?<react_native_1.View style={{padding:5,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.grayTextWeak}18`,alignItems:"center",justifyContent:"center"}}>
|
|
662
|
+
<NetworkIcons_1.LockIcon size={12}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
663
|
+
</react_native_1.View>:<TouchableScale_1.default onPress={()=>to(r)}hitSlop={8}style={{padding:5,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.errorColor}14`}}>
|
|
664
|
+
<NetworkIcons_1.TrashIcon size={12}color={AppColors_1.AppColors.errorColor}/>
|
|
665
|
+
</TouchableScale_1.default>}
|
|
666
|
+
</react_native_1.View>})}
|
|
667
|
+
{H.length===0&&<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayTextWeak,textAlign:"center",paddingVertical:8}}>
|
|
668
|
+
{o("settings.apis.noFiltersActive","No URL filters active. All URLs will be displayed.")}
|
|
669
|
+
</react_native_1.Text>}
|
|
670
|
+
</react_native_1.View>
|
|
671
|
+
</react_native_1.View>
|
|
672
|
+
|
|
673
|
+
|
|
640
674
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
641
|
-
{
|
|
675
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.apis.clearNetworkLogs"),description:o("settings.apis.clearNetworkLogsDescription",{count:oe.length}),isLast:!0,onPress:()=>{(0,networkLogger_1.clearNetworkLogs)(),Ne(null),react_native_1.Alert.alert(o("common.success"),o("settings.apis.networkLogsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
642
676
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
643
677
|
{o("common.clear")}
|
|
644
678
|
</react_native_1.Text>
|
|
645
679
|
</react_native_1.View>})}
|
|
646
680
|
</react_native_1.View>
|
|
647
681
|
<react_native_1.View style={{height:48}}/>
|
|
648
|
-
</react_native_1.ScrollView
|
|
682
|
+
</react_native_1.ScrollView>;else if(a==="logs")k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
649
683
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
650
|
-
{
|
|
684
|
+
{i({icon:<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.logs.maxConsoleLogs"),description:o("settings.logs.maxConsoleLogsDescription"),numericInput:{value:ce,onChange:Le,min:10,max:100,placeholder:"Enter max logs (10-100)"}})}
|
|
651
685
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
652
686
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:AppColors_1.AppColors.primaryBlack,paddingTop:6}}>
|
|
653
687
|
{o("settings.logs.logLevels")}
|
|
654
688
|
</react_native_1.Text>
|
|
655
|
-
{["info","warn","error"].map(e=>{const r=
|
|
689
|
+
{["info","warn","error"].map(e=>{const r=De?.[e],C=e==="error"?AppColors_1.AppColors.errorColor:e==="warn"?AppColors_1.AppColors.warningIconGold:AppColors_1.AppColors.skyBlue,f=o(e==="info"?"settings.logs.showInfo":e==="warn"?"settings.logs.showWarn":"settings.logs.showError"),v=o(e==="info"?"settings.logs.showInfoDesc":e==="warn"?"settings.logs.showWarnDesc":"settings.logs.showErrorDesc");return i({icon:<react_native_1.View style={{width:12,height:12,borderRadius:6,backgroundColor:C}}/>,label:f,description:v,isLast:e==="error",onPress:()=>Pe(t=>({...t,[e]:!t[e]})),right:<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:r?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:r?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
656
690
|
{r&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
657
691
|
</react_native_1.View>})})}
|
|
658
692
|
</react_native_1.View>
|
|
@@ -679,74 +713,141 @@
|
|
|
679
713
|
</react_native_1.View>
|
|
680
714
|
</react_native_1.View>
|
|
681
715
|
|
|
682
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:
|
|
716
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:Z}}onPress={()=>Ie(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:Z?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:Z?"flex-end":"flex-start"}}>
|
|
683
717
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
684
718
|
</TouchableScale_1.default>
|
|
685
719
|
</react_native_1.View>
|
|
686
720
|
</react_native_1.View>
|
|
687
721
|
|
|
688
722
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
689
|
-
{
|
|
723
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.logs.clearConsoleLogs"),description:o("settings.logs.clearConsoleLogsDescription",{count:re.length}),isLast:!0,onPress:()=>{(0,consoleLogger_1.clearConsoleLogs)(),react_native_1.Alert.alert(o("common.success"),o("settings.logs.consoleLogsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
690
724
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
691
725
|
{o("common.clear")}
|
|
692
726
|
</react_native_1.Text>
|
|
693
727
|
</react_native_1.View>})}
|
|
694
728
|
</react_native_1.View>
|
|
695
729
|
<react_native_1.View style={{height:48}}/>
|
|
696
|
-
</react_native_1.ScrollView
|
|
730
|
+
</react_native_1.ScrollView>;else if(a==="analytics")k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
697
731
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
698
|
-
{
|
|
732
|
+
{i({icon:<NetworkIcons_1.AnalyticsIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.analytics.maxAnalyticsEvents"),description:o("settings.analytics.maxAnalyticsEventsDescription",{count:te.length}),numericInput:{value:de,onChange:$e,min:10,max:75,placeholder:"Enter max events (10-75)"},isLast:!0})}
|
|
699
733
|
</react_native_1.View>
|
|
700
734
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
701
|
-
{
|
|
735
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.analytics.clearAnalyticsEvents"),description:o("settings.analytics.clearAnalyticsEventsDescription"),isLast:!0,onPress:()=>{(0,analyticsLogger_1.clearAnalyticsEvents)(),je(null),react_native_1.Alert.alert(o("common.success"),o("settings.analytics.analyticsEventsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
702
736
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
703
737
|
{o("common.clear")}
|
|
704
738
|
</react_native_1.Text>
|
|
705
739
|
</react_native_1.View>})}
|
|
706
740
|
</react_native_1.View>
|
|
707
741
|
<react_native_1.View style={{height:48}}/>
|
|
708
|
-
</react_native_1.ScrollView
|
|
742
|
+
</react_native_1.ScrollView>;else if(a==="redux")k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
709
743
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
710
|
-
{
|
|
711
|
-
{
|
|
744
|
+
{i({icon:<NetworkIcons_1.ReduxIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.redux.autoRefresh"),description:o("settings.redux.autoRefreshDescription"),onPress:()=>Ee(e=>!e),right:<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:ae?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:ae?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
745
|
+
{ae&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
712
746
|
</react_native_1.View>})}
|
|
713
747
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
714
|
-
{
|
|
748
|
+
{i({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.redux.defaultJsonExpandDepth"),description:o("settings.redux.defaultJsonExpandDepthDescription"),picker:{options:[1,2,3,5],selectedValue:Oe,onSelect:Me},isLast:!0})}
|
|
715
749
|
</react_native_1.View>
|
|
716
750
|
|
|
717
751
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
718
|
-
{
|
|
752
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.redux.clearReduxState"),description:o($?"settings.redux.clearReduxStateDescription":"settings.redux.clearReduxStateEmpty"),isLast:!0,onPress:()=>{Ue(null),react_native_1.Alert.alert(o("common.success"),o("settings.redux.reduxStateCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
719
753
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
720
754
|
{o("common.clear")}
|
|
721
755
|
</react_native_1.Text>
|
|
722
756
|
</react_native_1.View>})}
|
|
723
757
|
</react_native_1.View>
|
|
724
758
|
<react_native_1.View style={{height:48}}/>
|
|
725
|
-
</react_native_1.ScrollView
|
|
759
|
+
</react_native_1.ScrollView>;else if(a==="crash"){const e=!!m?.js&&!m?.native&&!!m?.render&&!m?.promise&&!m?.custom,r=!m?.js&&!m?.native&&!m?.render&&!m?.promise&&!m?.custom,C=!!m?.js&&!!m?.native&&!!m?.render&&!!m?.promise&&!!m?.custom,f=["js","native","render","promise","custom"].filter(t=>!m?.[t]).length,v=[{key:"js",label:o("settings.crash.ignoreJs","Ignore JS Runtime Crashes"),desc:o("settings.crash.ignoreJsDesc","Bypasses unhandled JS runtime exceptions, TypeError, SyntaxError & ErrorUtils"),icon:<NetworkIcons_1.JsIcon size={16}color={AppColors_1.AppColors.yellow400}/>},{key:"native",label:o("settings.crash.ignoreNative","Ignore Native Platform Crashes"),desc:o("settings.crash.ignoreNativeDesc","Bypasses iOS Mach-O signals, SIGSEGV, NullPointerException & ExceptionsManager"),icon:<NetworkIcons_1.ChipIcon size={16}color={AppColors_1.AppColors.cyan600}/>},{key:"render",label:o("settings.crash.ignoreRender","Ignore React Render Errors"),desc:o("settings.crash.ignoreRenderDesc","Bypasses React component tree render failures & ErrorBoundary"),icon:<NetworkIcons_1.LayoutIcon size={16}color={AppColors_1.AppColors.purple400}/>},{key:"promise",label:o("settings.crash.ignorePromise","Ignore Promise Rejections"),desc:o("settings.crash.ignorePromiseDesc","Bypasses unhandled asynchronous Promise rejections"),icon:<NetworkIcons_1.HourglassIcon size={16}color={AppColors_1.AppColors.amber400}/>},{key:"custom",label:o("settings.crash.ignoreCustom","Ignore Custom Recorded Errors"),desc:o("settings.crash.ignoreCustomDesc","Bypasses manual recordCustomCrash exceptions & telemetry triggers"),icon:<NetworkIcons_1.CodeBracketsIcon size={16}color={AppColors_1.AppColors.emerald400}/>}];k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:14}}showsVerticalScrollIndicator={!1}>
|
|
760
|
+
|
|
761
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
762
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
763
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
764
|
+
<NetworkIcons_1.ShieldCheckIcon size={16}color={AppColors_1.AppColors.purple}/>
|
|
765
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,letterSpacing:.5,color:AppColors_1.AppColors.purple}}>
|
|
766
|
+
{o("settings.crash.governancePresets","GOVERNANCE PRESETS")}
|
|
767
|
+
</react_native_1.Text>
|
|
768
|
+
</react_native_1.View>
|
|
769
|
+
<react_native_1.View style={{paddingHorizontal:8,paddingVertical:3,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.purple}14`}}>
|
|
770
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.purple}}>
|
|
771
|
+
{f} / 5 PROTECTED
|
|
772
|
+
</react_native_1.Text>
|
|
773
|
+
</react_native_1.View>
|
|
774
|
+
</react_native_1.View>
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
<react_native_1.View style={{flexDirection:"row",gap:8}}>
|
|
778
|
+
<TouchableScale_1.default onPress={()=>E("balanced")}style={{flex:1,paddingVertical:10,paddingHorizontal:6,borderRadius:10,borderWidth:1.5,borderColor:e?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:e?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.grayBackground,alignItems:"center",gap:4}}>
|
|
779
|
+
<NetworkIcons_1.ScaleBalanceIcon size={16}color={e?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}/>
|
|
780
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:e?AppColors_1.AppColors.purple:AppColors_1.AppColors.primaryBlack}}>
|
|
781
|
+
{o("settings.crash.presetBalanced","Balanced")}
|
|
782
|
+
</react_native_1.Text>
|
|
783
|
+
</TouchableScale_1.default>
|
|
784
|
+
|
|
785
|
+
<TouchableScale_1.default onPress={()=>E("max_shield")}style={{flex:1,paddingVertical:10,paddingHorizontal:6,borderRadius:10,borderWidth:1.5,borderColor:r?AppColors_1.AppColors.greenColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:r?`${AppColors_1.AppColors.greenColor}12`:AppColors_1.AppColors.grayBackground,alignItems:"center",gap:4}}>
|
|
786
|
+
<NetworkIcons_1.ShieldCheckIcon size={16}color={r?AppColors_1.AppColors.greenColor:AppColors_1.AppColors.grayText}/>
|
|
787
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:r?AppColors_1.AppColors.greenColor:AppColors_1.AppColors.primaryBlack}}>
|
|
788
|
+
{o("settings.crash.presetMaxShield","Max Shield")}
|
|
789
|
+
</react_native_1.Text>
|
|
790
|
+
</TouchableScale_1.default>
|
|
791
|
+
|
|
792
|
+
<TouchableScale_1.default onPress={()=>E("silent")}style={{flex:1,paddingVertical:10,paddingHorizontal:6,borderRadius:10,borderWidth:1.5,borderColor:C?AppColors_1.AppColors.grayTextWeak:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:C?`${AppColors_1.AppColors.grayTextWeak}1A`:AppColors_1.AppColors.grayBackground,alignItems:"center",gap:4}}>
|
|
793
|
+
<NetworkIcons_1.VolumeMuteIcon size={16}color={C?AppColors_1.AppColors.grayText:AppColors_1.AppColors.grayTextWeak}/>
|
|
794
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:C?AppColors_1.AppColors.grayText:AppColors_1.AppColors.primaryBlack}}>
|
|
795
|
+
{o("settings.crash.presetSilent","Silent Mode")}
|
|
796
|
+
</react_native_1.Text>
|
|
797
|
+
</TouchableScale_1.default>
|
|
798
|
+
</react_native_1.View>
|
|
799
|
+
|
|
800
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText}}>
|
|
801
|
+
{e?o("settings.crash.presetBalancedDesc","Recommended: Native & Promise protected; JS & Render ignored for clean dev workflow"):r?o("settings.crash.presetMaxShieldDesc","100% Protection: Intercepts & captures all 5 error categories"):C?o("settings.crash.presetSilentDesc","Bypasses all error modals & badges for screencasts & clean demos"):o("settings.crash.categoryMatrix","Customized rule matrix actively configured below")}
|
|
802
|
+
</react_native_1.Text>
|
|
803
|
+
</react_native_1.View>
|
|
804
|
+
|
|
805
|
+
|
|
726
806
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
727
|
-
|
|
807
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,letterSpacing:.5,color:AppColors_1.AppColors.purple,marginBottom:4}}>
|
|
808
|
+
{o("settings.crash.categoryMatrix","ERROR INTERCEPTION & IGNORED CATEGORIES")}
|
|
809
|
+
</react_native_1.Text>
|
|
810
|
+
|
|
811
|
+
{v.map((t,h)=>{const F=!!m?.[t.key],P=h===v.length-1;return i({key:t.key,icon:t.icon,label:t.label,description:t.desc,isLast:P,onPress:()=>{Ge(Se=>({...Se,[t.key]:!Se[t.key]}))},right:<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
812
|
+
<react_native_1.View style={{paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,backgroundColor:F?`${AppColors_1.AppColors.warningIconGold}18`:`${AppColors_1.AppColors.greenColor}18`}}>
|
|
813
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:F?AppColors_1.AppColors.warningIconGold:AppColors_1.AppColors.greenColor}}>
|
|
814
|
+
{F?o("settings.crash.ignoredBadge","IGNORED"):o("settings.crash.protectedBadge","PROTECTED")}
|
|
815
|
+
</react_native_1.Text>
|
|
816
|
+
</react_native_1.View>
|
|
817
|
+
<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:F?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:F?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
818
|
+
{F&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
819
|
+
</react_native_1.View>
|
|
820
|
+
</react_native_1.View>})})}
|
|
821
|
+
</react_native_1.View>
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
825
|
+
{i({icon:<NetworkIcons_1.ShieldAlertIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.crash.modalTriggerTitle","Modal Alert Display Policy"),description:o("settings.crash.modalTriggerDesc","Configure when the full-screen diagnostic modal appears"),isLast:!0,picker:{options:["fatal_only","all_errors","silent_tab_only"],selectedValue:qe||"fatal_only",onSelect:t=>ye(t),formatLabel:t=>t==="fatal_only"?o("settings.crash.policyFatalOnly","Fatal Only"):t==="all_errors"?o("settings.crash.policyAllErrors","All Caught"):o("settings.crash.policySilent","Silent Only")}})}
|
|
826
|
+
</react_native_1.View>
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
830
|
+
{i({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.crash.maxCrashLogs","Max Crash Logs Buffer"),description:o("settings.crash.maxCrashLogsDesc","How many crash records to preserve in history (5-100)"),numericInput:{value:ge,onChange:ue,min:5,max:100,placeholder:"Enter max crashes (5-100)"}})}
|
|
728
831
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
729
|
-
{
|
|
730
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:
|
|
731
|
-
{o("settings.
|
|
832
|
+
{i({icon:<NetworkIcons_1.RefreshCcwIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.crash.resetDefaults","Reset to Defaults"),description:o("settings.crash.resetDefaultsDesc","Restore recommended balanced crash protection settings"),onPress:()=>{E("balanced"),ue(50),ye("fatal_only"),react_native_1.Alert.alert(o("common.success","Success"),o("settings.crash.resetDefaultsDesc","Restore recommended balanced crash protection settings"))},right:<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}33`}}>
|
|
833
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.purple}}>
|
|
834
|
+
{o("settings.reset","Reset")}
|
|
732
835
|
</react_native_1.Text>
|
|
733
836
|
</react_native_1.View>})}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
737
|
-
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.crash.clearHistory"),description:o("settings.crash.clearHistoryDesc",{count:R?.length||0}),isLast:!0,onPress:()=>{(0,crashHandler_1.clearCrashRecords)(),react_native_1.Alert.alert(o("common.success"),o("settings.crash.historyCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
837
|
+
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
838
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.crash.clearHistory","Clear Crash History"),description:o("settings.crash.clearHistoryDesc",{count:W?.length||0}),isLast:!0,onPress:()=>{(0,crashHandler_1.clearCrashRecords)(),react_native_1.Alert.alert(o("common.success","Success"),o("settings.crash.historyCleared","Crash logs cleared."))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
738
839
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
739
|
-
{o("common.clear")}
|
|
840
|
+
{o("common.clear","Clear")}
|
|
740
841
|
</react_native_1.Text>
|
|
741
842
|
</react_native_1.View>})}
|
|
742
843
|
</react_native_1.View>
|
|
743
844
|
<react_native_1.View style={{height:48}}/>
|
|
744
|
-
</react_native_1.ScrollView
|
|
845
|
+
</react_native_1.ScrollView>}else a==="push"?k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
745
846
|
|
|
746
847
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
747
|
-
{
|
|
848
|
+
{i({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:"Max Push Notification Logs",description:"Buffer size limit for recorded push payloads (10-200)",numericInput:{value:Je,onChange:Ke,min:10,max:200,placeholder:"Enter max logs (10-200)"}})}
|
|
748
849
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
749
|
-
{
|
|
850
|
+
{i({icon:<NetworkIcons_1.BellIcon color={AppColors_1.AppColors.greenColor}size={16}/>,label:"Universal Ingestion Engine",description:"Captures any push domain (Salesforce, FCM, APNs, Expo, Braze, Custom)",isLast:!0,right:<react_native_1.View style={{paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.greenColor}1F`}}>
|
|
750
851
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
751
852
|
ACTIVE
|
|
752
853
|
</react_native_1.Text>
|
|
@@ -763,25 +864,25 @@
|
|
|
763
864
|
</react_native_1.View>
|
|
764
865
|
|
|
765
866
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:6}}>
|
|
766
|
-
<TouchableScale_1.default onPress={()=>{
|
|
867
|
+
<TouchableScale_1.default onPress={()=>{M("salesforce"),(0,toast_1.showToast)(o("settings.simulator.salesforce","Simulated Salesforce Marketing Cloud push"))}}style={{backgroundColor:`${AppColors_1.AppColors.sky600}14`,borderColor:`${AppColors_1.AppColors.sky600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
767
868
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.sky600}}>
|
|
768
869
|
+ Salesforce MC
|
|
769
870
|
</react_native_1.Text>
|
|
770
871
|
</TouchableScale_1.default>
|
|
771
872
|
|
|
772
|
-
<TouchableScale_1.default onPress={()=>{
|
|
873
|
+
<TouchableScale_1.default onPress={()=>{M("fcm"),(0,toast_1.showToast)(o("settings.simulator.fcm","Simulated Firebase FCM push"))}}style={{backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderColor:`${AppColors_1.AppColors.darkOrange}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
773
874
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.darkOrange}}>
|
|
774
875
|
+ Firebase FCM
|
|
775
876
|
</react_native_1.Text>
|
|
776
877
|
</TouchableScale_1.default>
|
|
777
878
|
|
|
778
|
-
<TouchableScale_1.default onPress={()=>{
|
|
879
|
+
<TouchableScale_1.default onPress={()=>{M("apns"),(0,toast_1.showToast)(o("settings.simulator.apns","Simulated Apple APNs push"))}}style={{backgroundColor:`${AppColors_1.AppColors.primaryBlack}10`,borderColor:`${AppColors_1.AppColors.primaryBlack}25`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
779
880
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.primaryBlack}}>
|
|
780
881
|
+ Apple APNs
|
|
781
882
|
</react_native_1.Text>
|
|
782
883
|
</TouchableScale_1.default>
|
|
783
884
|
|
|
784
|
-
<TouchableScale_1.default onPress={()=>{
|
|
885
|
+
<TouchableScale_1.default onPress={()=>{M("deeplink"),(0,toast_1.showToast)(o("settings.simulator.deepLink","Simulated Deep Link push"))}}style={{backgroundColor:`${AppColors_1.AppColors.brandPurple}14`,borderColor:`${AppColors_1.AppColors.brandPurple}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
785
886
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.brandPurple}}>
|
|
786
887
|
+ Deep Link
|
|
787
888
|
</react_native_1.Text>
|
|
@@ -791,19 +892,19 @@
|
|
|
791
892
|
|
|
792
893
|
|
|
793
894
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
794
|
-
{
|
|
895
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("push.clearTitle","Clear Push History"),description:`Permanently remove all ${O?.length||0} recorded notifications`,isLast:!0,onPress:()=>{Ye(),react_native_1.Alert.alert(o("common.success","Success"),o("settings.pushHistoryCleared","Push notification history cleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
795
896
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
796
897
|
{o("common.clear")}
|
|
797
898
|
</react_native_1.Text>
|
|
798
899
|
</react_native_1.View>})}
|
|
799
900
|
</react_native_1.View>
|
|
800
901
|
<react_native_1.View style={{height:48}}/>
|
|
801
|
-
</react_native_1.ScrollView>:
|
|
902
|
+
</react_native_1.ScrollView>:a==="socket"?k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
802
903
|
|
|
803
904
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
804
|
-
{
|
|
905
|
+
{i({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:"Max WebSocket Connections",description:"Ring buffer limit for active & closed socket sessions (10-200)",numericInput:{value:Qe,onChange:Xe,min:10,max:200,placeholder:"Enter max sockets (10-200)"}})}
|
|
805
906
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
806
|
-
{
|
|
907
|
+
{i({icon:<NetworkIcons_1.WebsocketIcon color={AppColors_1.AppColors.greenColor}size={16}/>,label:"Global WebSocket Interceptor",description:"Automatic capture for WebSocket, WSS & Socket.IO traffic",isLast:!0,right:<react_native_1.View style={{paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.greenColor}1F`}}>
|
|
807
908
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
808
909
|
ACTIVE
|
|
809
910
|
</react_native_1.Text>
|
|
@@ -820,25 +921,25 @@
|
|
|
820
921
|
</react_native_1.View>
|
|
821
922
|
|
|
822
923
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:6}}>
|
|
823
|
-
<TouchableScale_1.default onPress={()=>{
|
|
924
|
+
<TouchableScale_1.default onPress={()=>{j("chat"),(0,toast_1.showToast)(o("settings.simulator.chat","Simulated Real-time Chat WebSocket session"))}}style={{backgroundColor:`${AppColors_1.AppColors.blue600}14`,borderColor:`${AppColors_1.AppColors.blue600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
824
925
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.blue600}}>
|
|
825
926
|
+ Chat Room (WS)
|
|
826
927
|
</react_native_1.Text>
|
|
827
928
|
</TouchableScale_1.default>
|
|
828
929
|
|
|
829
|
-
<TouchableScale_1.default onPress={()=>{
|
|
930
|
+
<TouchableScale_1.default onPress={()=>{j("crypto"),(0,toast_1.showToast)(o("settings.simulator.crypto","Simulated Binance Crypto Ticker stream"))}}style={{backgroundColor:`${AppColors_1.AppColors.emerald600}14`,borderColor:`${AppColors_1.AppColors.emerald600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
830
931
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.emerald600}}>
|
|
831
932
|
+ Crypto Feed (WSS)
|
|
832
933
|
</react_native_1.Text>
|
|
833
934
|
</TouchableScale_1.default>
|
|
834
935
|
|
|
835
|
-
<TouchableScale_1.default onPress={()=>{
|
|
936
|
+
<TouchableScale_1.default onPress={()=>{j("socketio"),(0,toast_1.showToast)(o("settings.simulator.socketio","Simulated Socket.IO v4 session"))}}style={{backgroundColor:`${AppColors_1.AppColors.violet600}14`,borderColor:`${AppColors_1.AppColors.violet600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
836
937
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.violet600}}>
|
|
837
938
|
+ Socket.IO Room
|
|
838
939
|
</react_native_1.Text>
|
|
839
940
|
</TouchableScale_1.default>
|
|
840
941
|
|
|
841
|
-
<TouchableScale_1.default onPress={()=>{
|
|
942
|
+
<TouchableScale_1.default onPress={()=>{j("echo"),(0,toast_1.showToast)(o("settings.simulator.echo","Simulated WebSocket Echo test"))}}style={{backgroundColor:`${AppColors_1.AppColors.brandPurple}14`,borderColor:`${AppColors_1.AppColors.brandPurple}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
842
943
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.brandPurple}}>
|
|
843
944
|
+ Echo Test
|
|
844
945
|
</react_native_1.Text>
|
|
@@ -848,14 +949,14 @@
|
|
|
848
949
|
|
|
849
950
|
|
|
850
951
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
851
|
-
{
|
|
952
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("socket.clearTitle","Clear All WebSocket Logs").replace("All WebSocket Logs","Socket History"),description:`Permanently remove all ${N?.length||0} recorded sessions`,isLast:!0,onPress:()=>{Ze(),react_native_1.Alert.alert(o("common.success","Success"),o("settings.socketHistoryCleared","WebSocket history cleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
852
953
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
853
954
|
{o("common.clear")}
|
|
854
955
|
</react_native_1.Text>
|
|
855
956
|
</react_native_1.View>})}
|
|
856
957
|
</react_native_1.View>
|
|
857
958
|
<react_native_1.View style={{height:48}}/>
|
|
858
|
-
</react_native_1.ScrollView>:
|
|
959
|
+
</react_native_1.ScrollView>:a==="media"&&(k=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
859
960
|
|
|
860
961
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
861
962
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,marginBottom:4}}>
|
|
@@ -866,7 +967,7 @@
|
|
|
866
967
|
</react_native_1.View>
|
|
867
968
|
|
|
868
969
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:8}}>
|
|
869
|
-
<TouchableScale_1.default onPress={async()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),await capture_1.ScreenCapture.takeScreenshot({format:
|
|
970
|
+
<TouchableScale_1.default onPress={async()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),await capture_1.ScreenCapture.takeScreenshot({format:le.toLowerCase(),quality:.9,hideInspector:x})&&((0,NativeInspector_1.triggerNativeHaptic)("success"),(0,toast_1.showToast)(o("settings.simulator.screenshotSaved","Screenshot captured and saved!")))}}style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}33`,borderWidth:1,paddingHorizontal:12,paddingVertical:7,borderRadius:8,flexDirection:"row",alignItems:"center",gap:6}}>
|
|
870
971
|
<NetworkIcons_1.CameraIcon color={AppColors_1.AppColors.purple}size={14}/>
|
|
871
972
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple}}>
|
|
872
973
|
Take Screenshot
|
|
@@ -891,17 +992,17 @@
|
|
|
891
992
|
</react_native_1.View>
|
|
892
993
|
</react_native_1.View>
|
|
893
994
|
|
|
894
|
-
{
|
|
895
|
-
{["png","jpeg","webp"].map(e=>{const r=
|
|
995
|
+
{i({icon:<NetworkIcons_1.ImageIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.imageFormat","Image Format"),description:o("settings.media.imageFormatDesc","Export formats (PNG lossless, JPEG lossy, WebP)"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
996
|
+
{["png","jpeg","webp"].map(e=>{const r=le===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ce(e),(0,toast_1.showToast)(`Screenshot format: ${e.toUpperCase()}`)}}style={{paddingHorizontal:9,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
896
997
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
897
998
|
{e.toUpperCase()}
|
|
898
999
|
</react_native_1.Text>
|
|
899
1000
|
</TouchableScale_1.default>})}
|
|
900
1001
|
</react_native_1.View>})}
|
|
901
1002
|
|
|
902
|
-
{
|
|
903
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
904
|
-
{
|
|
1003
|
+
{i({icon:<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.autoHide","Auto-Hide Inspector During Capture"),description:o("settings.media.autoHideDesc","Temporarily hides the inspector overlay during screen capture"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),U(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${x?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),U(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${x?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:x?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:x?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
1004
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:x?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
1005
|
+
{x?o("settings.media.enabled","ON"):"OFF"}
|
|
905
1006
|
</react_native_1.Text>
|
|
906
1007
|
</TouchableScale_1.default>})}
|
|
907
1008
|
</react_native_1.View>
|
|
@@ -922,49 +1023,49 @@
|
|
|
922
1023
|
</react_native_1.View>
|
|
923
1024
|
</react_native_1.View>
|
|
924
1025
|
|
|
925
|
-
{
|
|
926
|
-
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=
|
|
1026
|
+
{i({icon:<NetworkIcons_1.MicrophoneIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.audioMode","Audio Source"),description:o("settings.media.audioModeDesc","Record video with muted, app audio, or microphone commentary"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
1027
|
+
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=he===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ae(e.key),(0,toast_1.showToast)(`Audio source: ${e.label}`)}}style={{paddingHorizontal:8,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
927
1028
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
928
1029
|
{e.label}
|
|
929
1030
|
</react_native_1.Text>
|
|
930
1031
|
</TouchableScale_1.default>})}
|
|
931
1032
|
</react_native_1.View>})}
|
|
932
1033
|
|
|
933
|
-
{
|
|
934
|
-
{[15,24,30,60].map(e=>{const r=
|
|
1034
|
+
{i({icon:<NetworkIcons_1.FilmIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.frameRate","Recording Frame Rate (FPS)"),description:o("settings.media.frameRateDesc","Target video smoothness: 15, 24, 30, or 60 FPS"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
1035
|
+
{[15,24,30,60].map(e=>{const r=be===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),me(e),(0,toast_1.showToast)(`Recording FPS: ${e}`)}}style={{paddingHorizontal:7,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
935
1036
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
936
1037
|
{e}fps
|
|
937
1038
|
</react_native_1.Text>
|
|
938
1039
|
</TouchableScale_1.default>})}
|
|
939
1040
|
</react_native_1.View>})}
|
|
940
1041
|
|
|
941
|
-
{
|
|
942
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
943
|
-
{
|
|
1042
|
+
{i({icon:<NetworkIcons_1.GifIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.gifAutoOpt","Auto GIF Optimization"),description:o("settings.media.gifAutoOptDesc","Automatic palette reduction and frame skip for lightweight animated GIFs"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),G(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${T?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),G(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${T?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:T?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:T?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
1043
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:T?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
1044
|
+
{T?"ON":"OFF"}
|
|
944
1045
|
</react_native_1.Text>
|
|
945
1046
|
</TouchableScale_1.default>})}
|
|
946
1047
|
</react_native_1.View>
|
|
947
1048
|
|
|
948
1049
|
|
|
949
1050
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
950
|
-
{
|
|
1051
|
+
{i({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.media.purgeAll","Purge Captured Media Cache"),description:o("settings.media.purgeAllDesc","Delete all local screenshots, screen recordings and converted GIFs"),isLast:!0,onPress:()=>{react_native_1.Alert.alert(o("settings.media.purgeConfirmTitle","Purge Media Storage?"),o("settings.media.purgeConfirmMessage","This will permanently delete all captured screenshots and videos from disk."),[{text:o("common.cancel","Cancel"),style:"cancel"},{text:o("settings.media.purgeCacheBtn","Purge All"),style:"destructive",onPress:async()=>{await capture_1.ScreenCapture.clearAllMedia(),(0,toast_1.showToast)(o("settings.media.purgedSuccess","Media cache cleared successfully"))}}])},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
951
1052
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
952
1053
|
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
953
1054
|
</react_native_1.Text>
|
|
954
1055
|
</react_native_1.View>})}
|
|
955
1056
|
</react_native_1.View>
|
|
956
1057
|
<react_native_1.View style={{height:48}}/>
|
|
957
|
-
</react_native_1.ScrollView>);const
|
|
1058
|
+
</react_native_1.ScrollView>);const X=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;return(0,react_1.useEffect)(()=>{a!=="main"&&(X.setValue(0),react_native_1.Animated.spring(X,{toValue:1,friction:8,tension:65,useNativeDriver:!0}).start())},[a]),<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
958
1059
|
|
|
959
|
-
<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,
|
|
960
|
-
{
|
|
1060
|
+
<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,a!=="main"&&{pointerEvents:"none"}]}>
|
|
1061
|
+
{so()}
|
|
961
1062
|
</react_native_1.View>
|
|
962
1063
|
|
|
963
1064
|
|
|
964
|
-
{
|
|
965
|
-
{
|
|
1065
|
+
{a!=="main"&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:X,transform:[{translateX:X.interpolate({inputRange:[0,1],outputRange:[30,0]})}]}]}>
|
|
1066
|
+
{k}
|
|
966
1067
|
</react_native_1.Animated.View>}
|
|
967
1068
|
|
|
968
1069
|
|
|
969
|
-
<LanguageSelectorModal_1.LanguageSelectorModal visible={
|
|
1070
|
+
<LanguageSelectorModal_1.LanguageSelectorModal visible={oo}onClose={()=>Te(!1)}/>
|
|
970
1071
|
</react_native_1.View>};exports.default=SettingsPanel;
|