react-native-inapp-inspector 2.3.24 → 2.4.0

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.
Files changed (207) hide show
  1. package/README.md +26 -5
  2. package/dist/commonjs/components/AnalyticsDetail.js +15 -12
  3. package/dist/commonjs/components/AnalyticsEventCard.js +11 -8
  4. package/dist/commonjs/components/AppHeaderLogo.js +4 -6
  5. package/dist/commonjs/components/ConsoleLogCard.d.ts +1 -0
  6. package/dist/commonjs/components/ConsoleLogCard.js +92 -80
  7. package/dist/commonjs/components/EndOfListFooter.d.ts +5 -1
  8. package/dist/commonjs/components/EndOfListFooter.js +27 -5
  9. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +1 -1
  10. package/dist/commonjs/components/Inspector/AnalyticsTab.js +27 -299
  11. package/dist/commonjs/components/Inspector/ConsoleTab.js +36 -94
  12. package/dist/commonjs/components/Inspector/CrashDetail.js +11 -10
  13. package/dist/commonjs/components/Inspector/CrashTab.js +43 -33
  14. package/dist/commonjs/components/Inspector/DebuggingTab.js +13 -13
  15. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +107 -71
  16. package/dist/commonjs/components/Inspector/FabLauncher.js +8 -9
  17. package/dist/commonjs/components/Inspector/InspectorHeader.js +93 -70
  18. package/dist/commonjs/components/Inspector/LogDetail.js +10 -7
  19. package/dist/commonjs/components/Inspector/MainScreen.js +66 -30
  20. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +1 -1
  21. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +3 -3
  22. package/dist/commonjs/components/Inspector/NetworkDetail.js +29 -28
  23. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +1 -1
  24. package/dist/commonjs/components/Inspector/NetworkTab.js +87 -85
  25. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +3 -3
  26. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +21 -22
  27. package/dist/commonjs/components/Inspector/PushCard.d.ts +4 -0
  28. package/dist/commonjs/components/Inspector/PushCard.js +89 -0
  29. package/dist/commonjs/components/Inspector/PushDetail.d.ts +4 -0
  30. package/dist/commonjs/components/Inspector/PushDetail.js +190 -0
  31. package/dist/commonjs/components/Inspector/PushTab.d.ts +3 -0
  32. package/dist/commonjs/components/Inspector/PushTab.js +45 -0
  33. package/dist/commonjs/components/Inspector/ReduxDetail.js +16 -13
  34. package/dist/commonjs/components/Inspector/ReduxTab.js +109 -106
  35. package/dist/commonjs/components/Inspector/SettingsPanel.js +230 -134
  36. package/dist/commonjs/components/Inspector/StorageTab.js +55 -51
  37. package/dist/commonjs/components/Inspector/TabBar.js +30 -26
  38. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
  39. package/dist/commonjs/components/JsonViewer.js +151 -159
  40. package/dist/commonjs/components/LogCard.js +34 -38
  41. package/dist/commonjs/components/LogSyntaxHighlighter.js +3 -3
  42. package/dist/commonjs/components/ModuleErrorBoundary.d.ts +24 -0
  43. package/dist/commonjs/components/ModuleErrorBoundary.js +33 -0
  44. package/dist/commonjs/components/NetworkIcons.d.ts +3 -3
  45. package/dist/commonjs/components/NetworkIcons.js +10 -6
  46. package/dist/commonjs/components/SegmentedTabs.d.ts +8 -2
  47. package/dist/commonjs/components/SegmentedTabs.js +11 -7
  48. package/dist/commonjs/components/ShareButton.d.ts +11 -0
  49. package/dist/commonjs/components/ShareButton.js +6 -0
  50. package/dist/commonjs/constants/index.js +1 -1
  51. package/dist/commonjs/constants/version.d.ts +1 -1
  52. package/dist/commonjs/constants/version.js +1 -1
  53. package/dist/commonjs/customHooks/crashHandler.js +4 -4
  54. package/dist/commonjs/customHooks/networkLogger.js +1 -2
  55. package/dist/commonjs/customHooks/pushNotificationLogger.d.ts +19 -0
  56. package/dist/commonjs/customHooks/pushNotificationLogger.js +1 -0
  57. package/dist/commonjs/helpers/index.d.ts +6 -0
  58. package/dist/commonjs/helpers/index.js +4 -4
  59. package/dist/commonjs/helpers/memoryManager.d.ts +2 -2
  60. package/dist/commonjs/helpers/memoryManager.js +1 -1
  61. package/dist/commonjs/helpers/remoteConfig.js +1 -1
  62. package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
  63. package/dist/commonjs/helpers/settingsStore.js +1 -1
  64. package/dist/commonjs/helpers/shareFormatter.d.ts +13 -0
  65. package/dist/commonjs/helpers/shareFormatter.js +7 -0
  66. package/dist/commonjs/i18n/index.d.ts +35 -0
  67. package/dist/commonjs/i18n/index.js +1 -1
  68. package/dist/commonjs/i18n/locales/ar.json +1 -0
  69. package/dist/commonjs/i18n/locales/de.json +1 -0
  70. package/dist/commonjs/i18n/locales/en.json +1 -1
  71. package/dist/commonjs/i18n/locales/es.json +1 -0
  72. package/dist/commonjs/i18n/locales/fr.json +1 -0
  73. package/dist/commonjs/i18n/locales/hi.json +1 -0
  74. package/dist/commonjs/i18n/locales/ja.json +1 -0
  75. package/dist/commonjs/i18n/locales/ko.json +1 -0
  76. package/dist/commonjs/i18n/locales/pt.json +1 -0
  77. package/dist/commonjs/i18n/locales/ru.json +1 -0
  78. package/dist/commonjs/i18n/locales/zh.json +1 -0
  79. package/dist/commonjs/index.d.ts +6 -5
  80. package/dist/commonjs/index.js +4 -4
  81. package/dist/commonjs/push.d.ts +4 -0
  82. package/dist/commonjs/push.js +1 -0
  83. package/dist/commonjs/styles/AppColors.d.ts +40 -0
  84. package/dist/commonjs/styles/AppColors.js +1 -1
  85. package/dist/commonjs/styles/index.js +1 -1
  86. package/dist/commonjs/types/enums.d.ts +30 -20
  87. package/dist/commonjs/types/enums.js +1 -1
  88. package/dist/commonjs/types/index.d.ts +10 -0
  89. package/dist/commonjs/types/interfaces.d.ts +63 -7
  90. package/dist/esm/components/AnalyticsDetail.js +84 -81
  91. package/dist/esm/components/AnalyticsEventCard.js +20 -17
  92. package/dist/esm/components/AppHeaderLogo.js +5 -7
  93. package/dist/esm/components/ConsoleLogCard.d.ts +1 -0
  94. package/dist/esm/components/ConsoleLogCard.js +98 -86
  95. package/dist/esm/components/EndOfListFooter.d.ts +5 -1
  96. package/dist/esm/components/EndOfListFooter.js +36 -14
  97. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +14 -14
  98. package/dist/esm/components/Inspector/AnalyticsTab.js +44 -316
  99. package/dist/esm/components/Inspector/ConsoleTab.js +55 -113
  100. package/dist/esm/components/Inspector/CrashDetail.js +53 -52
  101. package/dist/esm/components/Inspector/CrashTab.js +74 -64
  102. package/dist/esm/components/Inspector/DebuggingTab.js +33 -33
  103. package/dist/esm/components/Inspector/DeviceInfoTab.js +174 -138
  104. package/dist/esm/components/Inspector/FabLauncher.js +41 -42
  105. package/dist/esm/components/Inspector/InspectorHeader.js +138 -115
  106. package/dist/esm/components/Inspector/LogDetail.js +24 -21
  107. package/dist/esm/components/Inspector/MainScreen.js +98 -62
  108. package/dist/esm/components/Inspector/MediaGalleryTab.js +1 -1
  109. package/dist/esm/components/Inspector/MediaPreviewModal.js +31 -31
  110. package/dist/esm/components/Inspector/NetworkDetail.js +88 -87
  111. package/dist/esm/components/Inspector/NetworkFilterModal.js +8 -8
  112. package/dist/esm/components/Inspector/NetworkTab.js +132 -130
  113. package/dist/esm/components/Inspector/NpmStarPrompt.js +42 -42
  114. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -46
  115. package/dist/esm/components/Inspector/PushCard.d.ts +4 -0
  116. package/dist/esm/components/Inspector/PushCard.js +89 -0
  117. package/dist/esm/components/Inspector/PushDetail.d.ts +4 -0
  118. package/dist/esm/components/Inspector/PushDetail.js +190 -0
  119. package/dist/esm/components/Inspector/PushTab.d.ts +3 -0
  120. package/dist/esm/components/Inspector/PushTab.js +45 -0
  121. package/dist/esm/components/Inspector/ReduxDetail.js +40 -37
  122. package/dist/esm/components/Inspector/ReduxTab.js +155 -152
  123. package/dist/esm/components/Inspector/SettingsPanel.js +380 -284
  124. package/dist/esm/components/Inspector/StorageTab.js +177 -173
  125. package/dist/esm/components/Inspector/TabBar.js +38 -34
  126. package/dist/esm/components/Inspector/UpdateAvailableModal.js +1 -1
  127. package/dist/esm/components/JsonViewer.js +161 -169
  128. package/dist/esm/components/LogCard.js +38 -42
  129. package/dist/esm/components/LogSyntaxHighlighter.js +1 -1
  130. package/dist/esm/components/ModuleErrorBoundary.d.ts +24 -0
  131. package/dist/esm/components/ModuleErrorBoundary.js +33 -0
  132. package/dist/esm/components/NetworkIcons.d.ts +3 -3
  133. package/dist/esm/components/NetworkIcons.js +7 -3
  134. package/dist/esm/components/SegmentedTabs.d.ts +8 -2
  135. package/dist/esm/components/SegmentedTabs.js +12 -8
  136. package/dist/esm/components/ShareButton.d.ts +11 -0
  137. package/dist/esm/components/ShareButton.js +6 -0
  138. package/dist/esm/constants/index.js +1 -1
  139. package/dist/esm/constants/version.d.ts +1 -1
  140. package/dist/esm/constants/version.js +1 -1
  141. package/dist/esm/customHooks/crashHandler.js +6 -6
  142. package/dist/esm/customHooks/networkLogger.js +1 -2
  143. package/dist/esm/customHooks/pushNotificationLogger.d.ts +19 -0
  144. package/dist/esm/customHooks/pushNotificationLogger.js +1 -0
  145. package/dist/esm/helpers/index.d.ts +6 -0
  146. package/dist/esm/helpers/index.js +4 -4
  147. package/dist/esm/helpers/memoryManager.d.ts +2 -2
  148. package/dist/esm/helpers/memoryManager.js +1 -1
  149. package/dist/esm/helpers/remoteConfig.js +1 -1
  150. package/dist/esm/helpers/settingsStore.d.ts +1 -0
  151. package/dist/esm/helpers/settingsStore.js +1 -1
  152. package/dist/esm/helpers/shareFormatter.d.ts +13 -0
  153. package/dist/esm/helpers/shareFormatter.js +7 -0
  154. package/dist/esm/i18n/index.d.ts +35 -0
  155. package/dist/esm/i18n/index.js +1 -1
  156. package/dist/esm/i18n/locales/ar.json +1 -0
  157. package/dist/esm/i18n/locales/de.json +1 -0
  158. package/dist/esm/i18n/locales/en.json +1 -1
  159. package/dist/esm/i18n/locales/es.json +1 -0
  160. package/dist/esm/i18n/locales/fr.json +1 -0
  161. package/dist/esm/i18n/locales/hi.json +1 -0
  162. package/dist/esm/i18n/locales/ja.json +1 -0
  163. package/dist/esm/i18n/locales/ko.json +1 -0
  164. package/dist/esm/i18n/locales/pt.json +1 -0
  165. package/dist/esm/i18n/locales/ru.json +1 -0
  166. package/dist/esm/i18n/locales/zh.json +1 -0
  167. package/dist/esm/index.d.ts +6 -5
  168. package/dist/esm/index.js +7 -7
  169. package/dist/esm/push.d.ts +4 -0
  170. package/dist/esm/push.js +1 -0
  171. package/dist/esm/styles/AppColors.d.ts +40 -0
  172. package/dist/esm/styles/AppColors.js +1 -1
  173. package/dist/esm/styles/index.js +1 -1
  174. package/dist/esm/types/enums.d.ts +30 -20
  175. package/dist/esm/types/enums.js +1 -1
  176. package/dist/esm/types/index.d.ts +10 -0
  177. package/dist/esm/types/interfaces.d.ts +63 -7
  178. package/package.json +53 -24
  179. package/src/native/NativeInspector.ts +0 -1
  180. package/dist/commonjs/bundle.d.ts +0 -2
  181. package/dist/commonjs/bundle.js +0 -1
  182. package/dist/commonjs/components/BrandSquareIcon.d.ts +0 -5
  183. package/dist/commonjs/components/BrandSquareIcon.js +0 -112
  184. package/dist/commonjs/components/Inspector/BundleTab.d.ts +0 -48
  185. package/dist/commonjs/components/Inspector/BundleTab.js +0 -1297
  186. package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +0 -27
  187. package/dist/commonjs/components/Inspector/PerformanceTab.js +0 -454
  188. package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +0 -115
  189. package/dist/commonjs/customHooks/bundleAnalyzer.js +0 -1
  190. package/dist/commonjs/customHooks/performanceTracker.d.ts +0 -144
  191. package/dist/commonjs/customHooks/performanceTracker.js +0 -63
  192. package/dist/commonjs/performance.d.ts +0 -2
  193. package/dist/commonjs/performance.js +0 -1
  194. package/dist/esm/bundle.d.ts +0 -2
  195. package/dist/esm/bundle.js +0 -1
  196. package/dist/esm/components/BrandSquareIcon.d.ts +0 -5
  197. package/dist/esm/components/BrandSquareIcon.js +0 -112
  198. package/dist/esm/components/Inspector/BundleTab.d.ts +0 -48
  199. package/dist/esm/components/Inspector/BundleTab.js +0 -1297
  200. package/dist/esm/components/Inspector/PerformanceTab.d.ts +0 -27
  201. package/dist/esm/components/Inspector/PerformanceTab.js +0 -454
  202. package/dist/esm/customHooks/bundleAnalyzer.d.ts +0 -115
  203. package/dist/esm/customHooks/bundleAnalyzer.js +0 -1
  204. package/dist/esm/customHooks/performanceTracker.d.ts +0 -144
  205. package/dist/esm/customHooks/performanceTracker.js +0 -63
  206. package/dist/esm/performance.d.ts +0 -2
  207. package/dist/esm/performance.js +0 -1
@@ -1,1297 +0,0 @@
1
- import Ot,{useState as Q,useEffect as tt,useMemo as q,useCallback as Ae}from"react";import{ActivityIndicator as Tt,Image as Ut,Linking as Ct,Platform as kt,Pressable as He,ScrollView as Te,Share as Nt,StyleSheet as je,Text as C,TextInput as St,View as T}from"react-native";import{useTranslation as jt,t as Ce}from"../../i18n";import G from"../TouchableScale";import K from"../CopyButton";import Ie from"../HighlightText";import Gt from"./FeatureUnderDevNotice";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import{copyToClipboard as Et}from"../../helpers";import{PackageIcon as Pe,SearchIcon as Bt,ClearIcon as Vt,CircleAlertIcon as Ge,LayersIcon as Mt,TimelineIcon as Jt,LiveStateIcon as Zt,StorageIcon as Ee,MetadataIcon as _t,FolderIcon as Xt,FolderOpenIcon as Yt,TrashIcon as Qt,LightbulbIcon as Je,SparkleIcon as Pt,ClockIcon as To,RefreshCcwIcon as Rt,ExternalLinkIcon as Co,DownloadIcon as Ze,ChevronIcon as So}from"../NetworkIcons";import X,{Path as F,Rect as Ke,Circle as $,Ellipse as $e,G as _,Defs as It,LinearGradient as Ft,Stop as Fe}from"react-native-svg";import{analyzeHostAppBundle as Lt,getCachedBundleAnalysis as Bo,getInitialBundleAnalysis as Vo,getHostScriptURL as vo}from"../../customHooks/bundleAnalyzer";const Mo=({name:k,size:M=28})=>{const R=k.toLowerCase();return R==="react"||R.includes("react-native")&&!R.includes("svg")&&!R.includes("screens")&&!R.includes("gradient")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.npmDark}]}>
2
- <X width={M-6}height={M-6}viewBox="0 0 100 100"fill="none">
3
- <$ cx="50"cy="50"r="9"fill={t.reactCyan}/>
4
- <$e cx="50"cy="50"rx="42"ry="16"stroke={t.reactCyan}strokeWidth="6"/>
5
- <$e cx="50"cy="50"rx="42"ry="16"stroke={t.reactCyan}strokeWidth="6"transform="rotate(60 50 50)"/>
6
- <$e cx="50"cy="50"rx="42"ry="16"stroke={t.reactCyan}strokeWidth="6"transform="rotate(120 50 50)"/>
7
- </X>
8
- </T>:R.includes("navigation")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.hermesPurple}]}>
9
- <X width={M-8}height={M-8}viewBox="0 0 100 100"fill="none">
10
- <$ cx="50"cy="50"r="38"stroke={t.white}strokeWidth="8"/>
11
- <F d="M50 20 L68 50 L50 80 L32 50 Z"fill={t.reactCyan}/>
12
- <$ cx="50"cy="50"r="6"fill={t.white}/>
13
- </X>
14
- </T>:R.includes("svg")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.pink400}]}>
15
- <X width={M-8}height={M-8}viewBox="0 0 100 100"fill="none">
16
- <F d="M20 75 C35 25, 65 25, 80 75"stroke={t.white}strokeWidth="10"strokeLinecap="round"/>
17
- <$ cx="20"cy="75"r="8"fill={t.white}/>
18
- <$ cx="80"cy="75"r="8"fill={t.white}/>
19
- <$ cx="50"cy="38"r="7"fill="#FCE7F3"stroke={t.white}strokeWidth="3"/>
20
- </X>
21
- </T>:R.includes("axios")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.expoViolet}]}>
22
- <X width={M-6}height={M-6}viewBox="0 0 100 100"fill="none">
23
- <F d="M22 75 L50 20 L78 75 M33 58 L67 58"stroke={t.white}strokeWidth="12"strokeLinecap="round"strokeLinejoin="round"/>
24
- <$ cx="50"cy="20"r="7"fill={t.reactCyan}/>
25
- </X>
26
- </T>:R.includes("screens")||R.includes("software-mansion")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.reanimatedNavy}]}>
27
- <X width={M-8}height={M-8}viewBox="0 0 100 100"fill="none">
28
- <F d="M50 15 L88 35 L50 55 L12 35 Z"fill={t.sky400}/>
29
- <F d="M12 50 L50 70 L88 50"stroke={t.white}strokeWidth="8"strokeLinecap="round"/>
30
- <F d="M12 65 L50 85 L88 65"stroke="#93C5FD"strokeWidth="8"strokeLinecap="round"/>
31
- </X>
32
- </T>:R.includes("gradient")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.rose600}]}>
33
- <X width={M-4}height={M-4}viewBox="0 0 100 100"fill="none">
34
- <It>
35
- <Ft id="pkgGrad"x1="0"y1="0"x2="100"y2="100"gradientUnits="userSpaceOnUse">
36
- <Fe offset="0"stopColor="#FF0080"/>
37
- <Fe offset="0.5"stopColor="#7928CA"/>
38
- <Fe offset="1"stopColor="#0070F3"/>
39
- </Ft>
40
- </It>
41
- <Ke width="100"height="100"rx="18"fill="url(#pkgGrad)"/>
42
- </X>
43
- </T>:R.includes("i18n")?<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.emerald600}]}>
44
- <X width={M-8}height={M-8}viewBox="0 0 100 100"fill="none">
45
- <$ cx="50"cy="50"r="38"stroke={t.white}strokeWidth="8"/>
46
- <$e cx="50"cy="50"rx="18"ry="38"stroke={t.white}strokeWidth="6"/>
47
- <F d="M14 50 L86 50"stroke={t.white}strokeWidth="7"/>
48
- </X>
49
- </T>:<T style={[e.pkgLogoWrap,{width:M,height:M,backgroundColor:t.npmRed}]}>
50
- <X width={M-4}height={M-4}viewBox="0 0 100 100"fill="none">
51
- <Ke width="100"height="100"rx="14"fill={t.npmRed}/>
52
- <F d="M18 24 H82 V76 H50 V40 H38 V76 H18 Z"fill={t.white}/>
53
- </X>
54
- </T>},Z=({type:k,size:M=16,color:R=t.purple})=>{const v={stroke:R,strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},U=()=>{switch(k){case"folder":return<_>
55
- <F d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"{...v}/>
56
- </_>;case"ban":return<_>
57
- <$ cx="12"cy="12"r="8.5"{...v}/>
58
- <F d="M5.5 5.5 18.5 18.5"{...v}/>
59
- </_>;case"bolt":return<_>
60
- <F d="M13 2 4.5 13.5 H10.5 L9 22 19.5 9.5 H13.5 Z"{...v}/>
61
- </_>;case"source":return<_>
62
- <F d="M8.5 7 L4 12 L8.5 17"{...v}/>
63
- <F d="M15.5 7 L20 12 L15.5 17"{...v}/>
64
- <F d="M13.5 4.5 L10.5 19.5"{...v}/>
65
- </_>;case"deps":return<_>
66
- <Ke x="4"y="4"width="16"height="16"rx="2.5"{...v}/>
67
- <F d="M4 9.5 H20"{...v}/>
68
- <F d="M9.5 9.5 V20"{...v}/>
69
- </_>;case"media":case"image":return<_>
70
- <Ke x="3.5"y="4.5"width="17"height="15"rx="2"{...v}/>
71
- <$ cx="9"cy="10"r="1.5"{...v}/>
72
- <F d="M3.5 17.5 L9.5 12.5 L14 16.5 L17 13.5 L20.5 17.5"{...v}/>
73
- </_>;case"overhead":return<_>
74
- <$ cx="12"cy="12"r="3.2"{...v}/>
75
- <F d="M12 2.5 V5.5 M12 18.5 V21.5 M2.5 12 H5.5 M18.5 12 H21.5 M5.3 5.3 L7.4 7.4 M16.6 16.6 L18.7 18.7 M18.7 5.3 L16.6 7.4 M7.4 16.6 L5.3 18.7"{...v}/>
76
- </_>;case"typescript":return<_>
77
- <F d="M6.5 3.5 H14 L18.5 8 V20.5 H6.5 Z"{...v}/>
78
- <F d="M14 3.5 V8 H18.5"{...v}/>
79
- <F d="M9.5 13.5 H15 M12 13.5 V16.5 M9.5 16.5 H13"{...v}/>
80
- </_>;case"javascript":return<_>
81
- <F d="M9.5 3.5 C7.5 3.5 7.5 6.5 7.5 9 C7.5 11 6.5 12 5 12 C6.5 12 7.5 13 7.5 15 C7.5 17.5 7.5 20.5 9.5 20.5"{...v}/>
82
- <F d="M14.5 3.5 C16.5 3.5 16.5 6.5 16.5 9 C16.5 11 17.5 12 19 12 C17.5 12 16.5 13 16.5 15 C16.5 17.5 16.5 20.5 14.5 20.5"{...v}/>
83
- </_>;case"font":return<_>
84
- <F d="M8 19 L12 5.5 L16 19"{...v}/>
85
- <F d="M9.4 14.5 H14.6"{...v}/>
86
- </_>;case"json":return<_>
87
- <F d="M9 3.5 C7 3.5 7 6 7 8.5 C7 10.5 6 11.5 5 12 C6 12.5 7 13.5 7 15.5 C7 18 7 20.5 9 20.5"{...v}/>
88
- <$ cx="12"cy="12"r="1.1"fill={R}/>
89
- <F d="M15 3.5 C17 3.5 17 6 17 8.5 C17 10.5 18 11.5 19 12 C18 12.5 17 13.5 17 15.5 C17 18 17 20.5 15 20.5"{...v}/>
90
- </_>;default:return null}};return<X width={M}height={M}viewBox="0 0 24 24"fill="none">
91
- {U()}
92
- </X>},_e=({file:k})=>{const[M,R]=Q(!1);if(k.ext==="SVG"||k.name.toLowerCase().endsWith(".svg"))return<T style={[e.mediaThumbWrap,{backgroundColor:t.errorCardBg,alignItems:"center",justifyContent:"center",borderColor:t.errorBorder}]}>
93
- <X width={22}height={22}viewBox="0 0 100 100"fill="none">
94
- <It>
95
- <Ft id="svgGradThumb"x1="0"y1="0"x2="100"y2="100"gradientUnits="userSpaceOnUse">
96
- <Fe offset="0"stopColor={t.rose500}/>
97
- <Fe offset="1"stopColor={t.rose600}/>
98
- </Ft>
99
- </It>
100
- <$ cx="50"cy="50"r="44"fill="url(#svgGradThumb)"/>
101
-
102
- <F d="M25 70 C35 30, 65 30, 75 70"stroke={t.white}strokeWidth="8"strokeLinecap="round"/>
103
- <$ cx="25"cy="70"r="7"fill={t.white}/>
104
- <$ cx="75"cy="70"r="7"fill={t.white}/>
105
- <$ cx="50"cy="40"r="6"fill="#FFE4E6"stroke={t.white}strokeWidth="2"/>
106
- </X>
107
- </T>;if(k.category==="image"&&k.previewUri&&!M)return<T style={e.mediaThumbWrap}>
108
- <Ut source={{uri:k.previewUri}}style={e.mediaThumbImg}resizeMode="cover"onError={()=>R(!0)}/>
109
- </T>;const v=Oe[k.category]||Oe.typescript;return<T style={[e.extChip,{backgroundColor:v.bg,borderColor:`${v.color}40`}]}>
110
- <C style={[e.extChipText,{color:v.color}]}>
111
- {k.ext}
112
- </C>
113
- </T>};function Po(k){const M=new Map;for(const v of k){const P=v.path.replace(/^\/+/,"").split("/").filter(Boolean);if(P.length===0)continue;let W=M;for(let D=0;D<P.length;D++){const O=P[D],V=D===P.length-1;W.has(O)||W.set(O,{name:O,fullPath:P.slice(0,D+1).join("/"),isFile:V,fileItem:V?v:void 0,children:new Map}),V||(W=W.get(O).children)}}function R(v){const U=[];for(const[,P]of v.entries()){const W=R(P.children),D=!P.isFile,O=D?W.reduce((Y,A)=>Y+(A.isFolder?A.fileCount:1),0):1,V=D?W.reduce((Y,A)=>Y+A.sizeKb,0):P.fileItem?P.fileItem.sizeKb:0;U.push({id:P.fullPath,name:P.name,fullPath:P.fullPath,isFolder:D,fileItem:P.fileItem,sizeKb:V,fileCount:O,children:W})}return U.sort((P,W)=>P.isFolder&&!W.isFolder?-1:!P.isFolder&&W.isFolder?1:P.name.localeCompare(W.name))}return R(M)}export const downloadBundleFile=async(k,M)=>{let R="";try{let v="";const U=M||vo();if(U&&U.startsWith("http")){const P=U.match(/^(https?:\/\/[^/]+)/);P&&(v=P[1])}if(v){const P=k.path.replace(/^\/+/,""),W=`${v}/${P}`,D=await fetch(W);if(D.ok){const O=await D.text();O&&O.length>0&&(R=O)}}}catch{}R||(R=`// \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
114
- // File: ${k.name}
115
- // Path: ${k.path}
116
- // Category: ${k.category.toUpperCase()}
117
- // Size: ${k.sizeKb} KB
118
- // Status: ${k.status==="optimal"?"Active in Dependency Graph":"Not consumed / Static"}
119
- // Meta: ${k.meta}
120
- // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
121
-
122
- export default {
123
- id: ${JSON.stringify(k.id)},
124
- name: ${JSON.stringify(k.name)},
125
- path: ${JSON.stringify(k.path)},
126
- category: ${JSON.stringify(k.category)},
127
- sizeKb: ${k.sizeKb},
128
- meta: ${JSON.stringify(k.meta)},
129
- status: ${JSON.stringify(k.status||"optimal")},
130
- };
131
- `);try{await Nt.share(kt.OS==="ios"?{title:k.name,message:R}:{title:`Download ${k.name}`,message:R},{dialogTitle:`Download / Save ${k.name}`})}catch{}try{Et(R,k.name)}catch{}};const Dt=({node:k,level:M,search:R,totalBundleKb:v,expandedFolders:U,toggleFolder:P,isLastChild:W,onDownload:D})=>{const O=R?!0:!!U[k.fullPath],V=!O,Y=M*16+10;if(k.isFolder)return<T style={e.treeFolderBlock}>
132
- <G accessible={!0}accessibilityRole="button"accessibilityLabel={`Folder ${k.name}, ${k.fileCount} ${k.fileCount===1?"file":"files"}, ${k.sizeKb>=1024?`${(k.sizeKb/1024).toFixed(2)} MB`:`${k.sizeKb} KB`}`}accessibilityState={{expanded:O}}accessibilityHint="Double tap to expand or collapse folder"onPress={()=>P(k.fullPath)}style={[e.treeFolderRow,{paddingLeft:Y}]}>
133
- <T style={e.treeRowLeft}>
134
- <T style={{marginRight:4}}>
135
- <So direction={V?"right":"down"}size={12}color={t.grayTextWeak}/>
136
- </T>
137
- {V?<Xt color={t.amber500}size={15}/>:<Yt color={t.amber500}size={15}/>}
138
- <Ie text={k.name+"/"}search={R}style={e.treeFolderName}highlightStyle={e.searchHighlight}/>
139
- <T style={e.treeCountBadge}>
140
- <C style={e.treeCountBadgeText}>
141
- {k.fileCount}{" "}
142
- {k.fileCount===1?Ce("bundle.file"):Ce("bundle.files")}
143
- </C>
144
- </T>
145
- </T>
146
-
147
- <T style={e.treeRowRight}>
148
- <C style={e.treeFolderSize}>
149
- {k.sizeKb>=1024?Ce("bundle.fileSizeMb",{size:(k.sizeKb/1024).toFixed(2)}):Ce("bundle.fileSizeKb",{size:k.sizeKb})}
150
- </C>
151
- <K value={()=>({folder:k.fullPath,sizeKb:k.sizeKb,fileCount:k.fileCount})}label={Ce("bundle.copyFileInfo",{name:k.name})}/>
152
- </T>
153
- </G>
154
-
155
- {!V&&<T style={e.treeChildrenContainer}>
156
- {k.children.map((E,I)=><Dt key={E.id}node={E}level={M+1}search={R}totalBundleKb={v}expandedFolders={U}toggleFolder={P}isLastChild={I===k.children.length-1}onDownload={D}/>)}
157
- </T>}
158
- </T>;const A=k.fileItem;if(!A)return null;const Be=v>0?(A.sizeKb/v*100).toFixed(1):"0",ze=A.isConsumed===!1;return<T style={[e.treeFileRow,{paddingLeft:Y},ze&&e.treeFileRowUnused]}>
159
- <T style={e.treeRowLeft}>
160
- <T style={e.treeBranchGuide}>
161
- <C style={e.treeBranchGuideText}>
162
- {W?"\u2514":"\u251C"}
163
- </C>
164
- </T>
165
-
166
- <_e file={A}/>
167
-
168
- <Ie text={A.name}search={R}style={e.treeFileName}highlightStyle={e.searchHighlight}/>
169
-
170
- {ze&&<T style={e.treeUnusedPill}>
171
- <C style={e.treeUnusedPillText}>
172
- {Ce("bundle.notConsumed")}
173
- </C>
174
- </T>}
175
- </T>
176
-
177
- <T style={e.treeRowRight}>
178
- <T style={e.treeFileSizeGroup}>
179
- <C style={[e.treeFileSizeText,ze&&{color:t.red600}]}>
180
- {A.sizeKb>=1024?Ce("bundle.fileSizeMb",{size:(A.sizeKb/1024).toFixed(2)}):Ce("bundle.fileSizeKb",{size:A.sizeKb})}
181
- </C>
182
- <C style={e.treeFilePctText}>{Be}%</C>
183
- </T>
184
-
185
- <T style={{flexDirection:"row",alignItems:"center",gap:5}}>
186
- {D&&<G accessible={!0}accessibilityRole="button"accessibilityLabel={`Download source code for ${A.name}`}accessibilityHint="Fetches module source code from Metro dev server"onPress={()=>D(A)}style={e.treeActionBtn}hitSlop={8}>
187
- <Ze size={13}color={t.sky500}/>
188
- </G>}
189
-
190
- <K value={()=>A}label={Ce("bundle.fileDetailsJson")}/>
191
- </T>
192
- </T>
193
- </T>},Ro=[{key:"ALL",labelKey:"bundle.catAll",iconType:"folder"},{key:"UNUSED",labelKey:"bundle.catUnused",iconType:"ban"},{key:"CONSUMED",labelKey:"bundle.catConsumed",iconType:"bolt"},{key:"image",labelKey:"bundle.catImages",iconType:"image"},{key:"typescript",labelKey:"bundle.catTypescript",iconType:"typescript"},{key:"javascript",labelKey:"bundle.catJavascript",iconType:"javascript"},{key:"font",labelKey:"bundle.catFonts",iconType:"font"},{key:"json",labelKey:"bundle.catJson",iconType:"json"}],Oe={image:{label:"Images & Media",color:t.pink500,bg:t.pink100},typescript:{label:"TypeScript",color:t.sky500,bg:t.sky100},javascript:{label:"JavaScript",color:t.indigo500,bg:t.indigo50},font:{label:"Fonts",color:t.purple500,bg:t.purple100},json:{label:"JSON / Data",color:t.emerald500,bg:t.emerald100}},Io=Ot.memo(()=>{const{t:k}=jt(),[M,R]=Q("overview"),[v,U]=Q("ios"),[P,W]=Q(""),[D,O]=Q("ALL"),[V,Y]=Q(()=>Bo()||Vo()),[A,Be]=Q(!1),ze=Ae(()=>{Be(!0),Lt(!0).then(o=>{Y(o),Be(!1)}).catch(()=>{Be(!1)})},[]);tt(()=>{let o=!0;return Lt().then(z=>{o&&(Y(z),Be(!1))}).catch(()=>{o&&Be(!1)}),()=>{o=!1}},[]);const E=!!global.HermesInternal,I=q(()=>V?V.files:[],[V]),J=q(()=>V?V.packages:[],[V]),B=q(()=>{const o=V?.totalDevKb||(V?.totalDevBytes?Math.round(V.totalDevBytes/1024):6144),z=V?.totalDevMb?V.totalDevMb.toFixed(2):(o/1024).toFixed(2),L=V?.splitUp?.nodeModules?.kb||Math.round(o*.52),H=V?.splitUp?.nodeModules?.pct||52,N=V?.splitUp?.metroDevOverhead?.kb||Math.round(o*.21),Ue=V?.splitUp?.metroDevOverhead?.pct||21,De=V?.splitUp?.appSource?.kb||Math.round(o*.15),Ne=V?.splitUp?.appSource?.pct||15,Re=V?.splitUp?.assetsMedia?.kb||Math.round(o*.12),We=V?.splitUp?.assetsMedia?.pct||12,$t=[{key:"node_modules",iconType:"javascript",title:"NPM Dependencies",targetTab:"packages",count:V?.packageCount||J.length||53,sizeKb:L,sizeMb:(L/1024).toFixed(2),pct:H,color:t.indigo500,desc:`${V?.packageCount||J.length||53} node_modules packages (React Native, React, navigation, axios)`},{key:"metro_runtime",iconType:"bolt",title:"Metro Dev Runtime",targetTab:"optimizer",count:1,sizeKb:N,sizeMb:(N/1024).toFixed(2),pct:Ue,color:t.amber500,desc:"Module loader, polyfills, HMR client, and prelude runtime"},{key:"app_source",iconType:"typescript",title:"App Source Code (TSX/JS)",targetTab:"files",count:I.filter(j=>j.category==="typescript"||j.category==="javascript").length||7,sizeKb:De,sizeMb:(De/1024).toFixed(2),pct:Ne,color:t.sky500,desc:"Screens, components, navigation, Redux store, and hooks"},{key:"assets_media",iconType:"image",title:"Images & Static Media",targetTab:"media",count:I.filter(j=>j.category==="image"||j.category==="font"||j.category==="json").length||3,sizeKb:Re,sizeMb:(Re/1024).toFixed(2),pct:We,color:t.pink500,desc:"Bundled PNG/JPG/SVG drawables, custom fonts, and JSON assets"}];return{totalKb:o,totalMb:z,totalCount:(V?.packageCount||53)+I.length+1,categories:$t,nodeModulesKb:L,nodeModulesPct:H,metroKb:N,metroPct:Ue,appSourceKb:De,appSourcePct:Ne,assetsMediaKb:Re,assetsMediaPct:We,images:{count:I.filter(j=>j.category==="image").length,kb:Re,pct:We},ts:{count:I.filter(j=>j.category==="typescript").length,kb:De,pct:Ne},js:{count:(V?.packageCount||53)+1,kb:L+N,pct:Number((H+Ue).toFixed(1))},fonts:{count:I.filter(j=>j.category==="font").length,kb:0,pct:0},json:{count:I.filter(j=>j.category==="json").length,kb:Math.round(Re*.1),pct:Number((We*.1).toFixed(1))}}},[V,I,J]),ke=q(()=>I.filter(o=>{const z=!P||o.name.toLowerCase().includes(P.toLowerCase())||o.path.toLowerCase().includes(P.toLowerCase())||o.ext.toLowerCase().includes(P.toLowerCase())||o.meta.toLowerCase().includes(P.toLowerCase()),L=D==="ALL"?!0:D==="UNUSED"?o.isConsumed===!1:D==="CONSUMED"?o.isConsumed!==!1:o.category===D;return z&&L}),[P,D,I]),qe=q(()=>ke.reduce((o,z)=>o+z.sizeKb,0),[ke]),[Se,Xe]=Q("tree"),[Ye,Le]=Q({}),Ve=q(()=>Po(ke),[ke]);tt(()=>{if(Ve.length>0&&Object.keys(Ye).length===0){const o={};Ve.forEach(z=>{z.isFolder&&(o[z.fullPath]=!0,z.children.forEach(L=>{L.isFolder&&(o[L.fullPath]=!0)}))}),Le(o)}},[Ve]);const Wt=Ae(o=>{Le(z=>({...z,[o]:!z[o]}))},[]),At=Ae(()=>{const o={};function z(L){for(const H of L)H.isFolder&&(o[H.fullPath]=!0,z(H.children))}z(Ve),Le(o)},[Ve]),Ht=Ae(()=>{Le({})},[]),Me=q(()=>{if(!P)return J;const o=P.toLowerCase();return J.filter(z=>z.name.toLowerCase().includes(o)||z.description.toLowerCase().includes(o)||z.category.toLowerCase().includes(o))},[P,J]),Qe=q(()=>Me.reduce((o,z)=>o+z.sizeKb,0),[Me]),ve=q(()=>I.filter(o=>o.category==="image"||o.category==="font"),[I]),et=q(()=>ve.reduce((o,z)=>o+z.sizeKb,0),[ve]),Kt=[{key:"overview",label:k("bundle.tabOverview"),icon:o=><Zt color={o?t.white:t.purple}size={12}/>},{key:"production",label:k("bundle.tabProduction",{count:3}),icon:o=><Jt color={o?t.white:t.purple}size={12}/>},{key:"files",label:k("bundle.tabFiles",{count:I.length}),icon:o=><Mt color={o?t.white:t.purple}size={12}/>},{key:"packages",label:k("bundle.tabPackages",{count:J.length}),icon:o=><Pe color={o?t.white:t.purple}size={12}/>},{key:"media",label:k("bundle.tabMedia",{count:ve.length}),icon:o=><Ee color={o?t.white:t.purple}size={12}/>},{key:"optimizer",label:k("bundle.tabOptimizer"),icon:o=><_t color={o?t.white:t.purple}size={12}/>}];return<T style={{flex:1,backgroundColor:t.grayBackground}}>
194
-
195
- <T style={e.topTabWrap}>
196
- <Te horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={e.subTabsScroll}>
197
- {Kt.map(o=>{const z=M===o.key;return<G key={o.key}accessible={!0}accessibilityRole="tab"accessibilityLabel={`${o.label} tab`}accessibilityState={{selected:z}}accessibilityHint={`Switches to ${o.label} tab`}onPress={()=>R(o.key)}style={[e.subTabPill,z&&e.subTabPillActive]}>
198
- {o.icon(z)}
199
- <C style={[e.subTabPillText,z&&e.subTabPillTextActive]}>
200
- {o.label}
201
- </C>
202
- </G>})}
203
- </Te>
204
- <G accessible={!0}accessibilityRole="button"accessibilityLabel={A?"Analyzing Metro bundle":"Reload bundle analysis"}accessibilityHint="Re-probes Metro dev server and refreshes bundle statistics"onPress={ze}style={e.reloadButton}hitSlop={{top:8,bottom:8,left:8,right:8}}>
205
- {A?<Tt size="small"color={t.brandPurple}/>:<Rt color={t.brandPurple}size={14}/>}
206
- </G>
207
- </T>
208
-
209
- <Gt featureName="Metro Bundle Analyzer"/>
210
-
211
-
212
-
213
-
214
- {M==="overview"&&<Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
215
-
216
- <T style={e.heroCard}>
217
- <T style={e.heroTopRow}>
218
- <T style={e.heroIconWrap}>
219
- <Pe color={t.brandPurple}size={24}/>
220
- </T>
221
- <T style={{flex:1}}>
222
- <C style={e.heroTitle}>
223
- {k("bundle.heroTitle")}
224
- </C>
225
- {V?.isLive&&V.scriptURL?<T style={{marginTop:4,gap:4}}>
226
- <C style={e.heroSubtitle}>
227
- {k("bundle.heroSubtitle")}
228
- </C>
229
- <He accessible={!0}accessibilityRole="link"accessibilityLabel={`Live Metro bundle URL: ${V.scriptURL}`}accessibilityHint="Opens Metro bundle script in browser"style={{backgroundColor:`${t.skyBlue}10`,borderColor:`${t.skyBlue}30`,borderWidth:1,borderRadius:8,padding:8,marginTop:2}}onPress={()=>Ct.openURL(V.scriptURL)}>
230
- <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:3}}>
231
- <T style={{flexDirection:"row",alignItems:"center",gap:4}}>
232
- <Co color={t.skyBlue}size={11}/>
233
- <C style={{fontFamily:S.interBold,fontSize:9.5,color:t.skyBlue,letterSpacing:.3,textTransform:"uppercase"}}>
234
- Live Metro URL
235
- </C>
236
- </T>
237
- <C style={{fontFamily:S.interRegular,fontSize:9.5,color:t.grayTextWeak}}>
238
- {V.scriptURL.length} chars
239
- </C>
240
- </T>
241
- <C selectable={!0}numberOfLines={1}ellipsizeMode="tail"style={{fontFamily:S.interMedium,fontSize:11,color:t.skyBlue,textDecorationLine:"underline",lineHeight:16}}>
242
- {V.scriptURL}
243
- </C>
244
- </He>
245
- </T>:<C style={e.heroSubtitle}>
246
- {k("bundle.heroSubtitle")}
247
- </C>}
248
- </T>
249
- <K value={()=>({...B,bundle:V})}label={k("bundle.bundleOverviewJson")}/>
250
- </T>
251
-
252
-
253
- <T style={e.metricsGrid}>
254
- <T style={e.metricBox}>
255
- <C style={e.metricLabel}>
256
- {k("bundle.devBundleSize")}
257
- </C>
258
- <C style={e.metricValue}>
259
- {k("bundle.mbValue",{size:V?V.totalDevMb:B.totalMb})}
260
- </C>
261
- <C style={e.metricHint}>
262
- {V?k("bundle.devBundleHint",{kb:V.totalDevKb,modules:V.moduleCount}):k("bundle.trackedFilesHint",{count:I.length})}
263
- </C>
264
- </T>
265
-
266
- <T style={e.metricBox}>
267
- <C style={e.metricLabel}>
268
- {k("bundle.imagesMedia")}
269
- </C>
270
- <C style={[e.metricValue,{color:t.pink500}]}>
271
- {k("bundle.fileSizeKb",{size:B.images.kb})}
272
- </C>
273
- <C style={e.metricHint}>
274
- {k("bundle.pctOfTrackedAssets",{pct:B.images.pct})}
275
- </C>
276
- </T>
277
-
278
- <T style={e.metricBox}>
279
- <C style={e.metricLabel}>
280
- {k("bundle.tsJsSource")}
281
- </C>
282
- <C style={[e.metricValue,{color:t.sky500}]}>
283
- {k("bundle.fileSizeKb",{size:B.ts.kb+B.js.kb})}
284
- </C>
285
- <C style={e.metricHint}>
286
- {k("bundle.pctOfTrackedAssets",{pct:(B.ts.pct+B.js.pct).toFixed(1)})}
287
- </C>
288
- </T>
289
-
290
- <T style={e.metricBox}>
291
- <C style={e.metricLabel}>
292
- {k("bundle.jsEngine")}
293
- </C>
294
- <T style={{flexDirection:"row",alignItems:"center",gap:5,marginTop:2}}>
295
- <T style={[e.statusIndicator,{backgroundColor:E?t.greenColor:t.darkOrange}]}/>
296
- <C style={e.metricValue}>
297
- {E?"Hermes":"JSC"}
298
- </C>
299
- </T>
300
- <C style={e.metricHint}>
301
- {k(E?"bundle.bytecodeAot":"bundle.standard")}
302
- </C>
303
- </T>
304
- </T>
305
- </T>
306
-
307
-
308
- {V&&!V.isLive&&<T style={e.liveWarningCard}>
309
- <T style={{flexDirection:"row",alignItems:"center",gap:6,flex:1}}>
310
- <Ge color={t.amber700}size={16}/>
311
- <T style={{flex:1}}>
312
- <C style={e.liveWarningTitle}>
313
- {k("bundle.liveAnalysisUnavailable")}
314
- </C>
315
- <C style={e.liveWarningDesc}>
316
- {k("bundle.liveAnalysisUnavailableSub")}
317
- </C>
318
- </T>
319
- <G onPress={ze}style={{backgroundColor:`${t.amber700}18`,paddingHorizontal:8,paddingVertical:5,borderRadius:6,borderWidth:1,borderColor:`${t.amber700}30`,flexDirection:"row",alignItems:"center",gap:4}}>
320
- {A?<Tt size="small"color={t.amber700}/>:<>
321
- <Rt color={t.amber700}size={11}/>
322
- <C style={{fontSize:10.5,fontFamily:S.interBold,color:t.amber700}}>
323
- Retry
324
- </C>
325
- </>}
326
- </G>
327
- </T>
328
- </T>}
329
-
330
-
331
- <T style={e.sectionCard}>
332
- <T style={e.sectionHeaderRow}>
333
- <T style={{flex:1,paddingRight:4}}>
334
- <C style={e.sectionTitle}>
335
- {k("bundle.treemapTitle")}
336
- </C>
337
- <C style={e.sectionSub}>
338
- {k("bundle.treemapSub",{mb:B.totalMb})}
339
- </C>
340
- </T>
341
- <K value={()=>({totalMb:B.totalMb,totalKb:B.totalKb,nodeModules:{kb:B.nodeModulesKb,pct:B.nodeModulesPct},metroRuntime:{kb:B.metroKb,pct:B.metroPct},appSource:{kb:B.appSourceKb,pct:B.appSourcePct},assetsMedia:{kb:B.assetsMediaKb,pct:B.assetsMediaPct}})}label={k("bundle.treemapJson")}/>
342
- </T>
343
-
344
-
345
- <T style={e.treemapBar}>
346
- <T style={{flex:B.nodeModulesPct,backgroundColor:t.indigo500,height:16}}/>
347
- <T style={{flex:B.metroPct,backgroundColor:t.amber500,height:16}}/>
348
- <T style={{flex:B.appSourcePct,backgroundColor:t.sky500,height:16}}/>
349
- <T style={{flex:B.assetsMediaPct,backgroundColor:t.pink500,height:16}}/>
350
- </T>
351
-
352
-
353
- <T style={e.legendGrid}>
354
- <T style={e.legendItem}>
355
- <Z type="javascript"size={13}color={t.indigo500}/>
356
- <C style={e.legendText}>
357
- Node Modules{" "}
358
- <C style={e.legendVal}>
359
- {B.nodeModulesKb>=1024?`${(B.nodeModulesKb/1024).toFixed(1)} MB`:`${B.nodeModulesKb} KB`}{" "}
360
- ({B.nodeModulesPct}%)
361
- </C>
362
- </C>
363
- </T>
364
- <T style={e.legendItem}>
365
- <Z type="overhead"size={13}color={t.amber500}/>
366
- <C style={e.legendText}>
367
- Metro Runtime{" "}
368
- <C style={e.legendVal}>
369
- {B.metroKb>=1024?`${(B.metroKb/1024).toFixed(1)} MB`:`${B.metroKb} KB`}{" "}
370
- ({B.metroPct}%)
371
- </C>
372
- </C>
373
- </T>
374
- <T style={e.legendItem}>
375
- <Z type="typescript"size={13}color={t.sky500}/>
376
- <C style={e.legendText}>
377
- App Source{" "}
378
- <C style={e.legendVal}>
379
- {B.appSourceKb>=1024?`${(B.appSourceKb/1024).toFixed(1)} MB`:`${B.appSourceKb} KB`}{" "}
380
- ({B.appSourcePct}%)
381
- </C>
382
- </C>
383
- </T>
384
- <T style={e.legendItem}>
385
- <Z type="image"size={13}color={t.pink500}/>
386
- <C style={e.legendText}>
387
- Assets & Media{" "}
388
- <C style={e.legendVal}>
389
- {B.assetsMediaKb>=1024?`${(B.assetsMediaKb/1024).toFixed(1)} MB`:`${B.assetsMediaKb} KB`}{" "}
390
- ({B.assetsMediaPct}%)
391
- </C>
392
- </C>
393
- </T>
394
- </T>
395
- </T>
396
-
397
-
398
- <T style={e.sectionCard}>
399
- <T style={e.sectionHeaderRow}>
400
- <C style={e.sectionTitle}>
401
- {k("bundle.categoryBreakdown")}
402
- </C>
403
- <K value={()=>B}label={k("bundle.categoriesJson")}/>
404
- </T>
405
-
406
- {B.categories.map((o,z)=><He key={z}accessible={!0}accessibilityRole="button"accessibilityLabel={`${o.title}, ${o.sizeKb>=1024?`${o.sizeMb} MB`:`${o.sizeKb} KB`}, ${o.pct}% of bundle`}accessibilityHint={`Double tap to view ${o.title} details`}style={({pressed:L})=>[e.catRowCard,L&&{opacity:.85,transform:[{scale:.99}]}]}onPress={()=>R(o.targetTab)}>
407
- <T style={e.catRowTop}>
408
- <T style={[e.catIconBox,{backgroundColor:`${o.color}15`,borderColor:`${o.color}30`}]}>
409
- <Z type={o.iconType}size={18}color={o.color}/>
410
- </T>
411
-
412
- <T style={e.catRowTitleWrap}>
413
- <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6}}>
414
- <C style={e.catRowTitle}numberOfLines={1}>
415
- {o.title}
416
- </C>
417
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
418
- <C style={e.catRowSize}>
419
- {o.sizeKb>=1024?`${o.sizeMb} MB`:`${o.sizeKb} KB`}
420
- </C>
421
- <T style={[e.catPctPill,{backgroundColor:`${o.color}18`}]}>
422
- <C style={[e.catPctText,{color:o.color}]}>
423
- {o.pct}%
424
- </C>
425
- </T>
426
- </T>
427
- </T>
428
-
429
- <C style={e.catRowDesc}numberOfLines={2}>
430
- {o.count} items • {o.desc}
431
- </C>
432
- </T>
433
- </T>
434
-
435
-
436
- <T style={e.catProgressTrack}>
437
- <T style={[e.catProgressBar,{width:`${o.pct}%`,backgroundColor:o.color}]}/>
438
- </T>
439
- </He>)}
440
-
441
-
442
- <T style={e.totalSummaryCard}>
443
- <T style={e.totalSummaryRow}>
444
- <T style={e.totalSummaryLabelWrap}>
445
- <T style={e.totalIconBadge}>
446
- <Pe color={t.brandPurple}size={16}/>
447
- </T>
448
- <T>
449
- <C style={e.totalSummaryLabel}>
450
- TOTAL BUNDLE ASSETS
451
- </C>
452
- <C style={e.totalSummarySub}>
453
- {B.totalCount} Tracked Modules & Media Assets
454
- </C>
455
- </T>
456
- </T>
457
- <T style={{alignItems:"flex-end"}}>
458
- <C style={e.totalSummaryValue}>
459
- {B.totalMb} MB
460
- </C>
461
- <C style={e.totalSummaryKb}>
462
- {B.totalKb.toLocaleString()} KB
463
- </C>
464
- </T>
465
- </T>
466
-
467
-
468
- <T style={e.totalFormulaGrid}>
469
- <T style={e.totalChip}>
470
- <T style={[e.totalDot,{backgroundColor:t.indigo500}]}/>
471
- <C style={e.totalChipText}>
472
- NPM: {(B.nodeModulesKb/1024).toFixed(1)}M (
473
- {B.nodeModulesPct}%)
474
- </C>
475
- </T>
476
- <T style={e.totalChip}>
477
- <T style={[e.totalDot,{backgroundColor:t.amber500}]}/>
478
- <C style={e.totalChipText}>
479
- Metro: {(B.metroKb/1024).toFixed(1)}M (
480
- {B.metroPct}%)
481
- </C>
482
- </T>
483
- <T style={e.totalChip}>
484
- <T style={[e.totalDot,{backgroundColor:t.sky500}]}/>
485
- <C style={e.totalChipText}>
486
- Source: {(B.appSourceKb/1024).toFixed(1)}M (
487
- {B.appSourcePct}%)
488
- </C>
489
- </T>
490
- <T style={e.totalChip}>
491
- <T style={[e.totalDot,{backgroundColor:t.pink500}]}/>
492
- <C style={e.totalChipText}>
493
- Media: {B.assetsMediaKb}K ({B.assetsMediaPct}%)
494
- </C>
495
- </T>
496
- </T>
497
- </T>
498
- </T>
499
-
500
-
501
- <T style={e.sectionCard}>
502
- <T style={e.sectionHeaderRow}>
503
- <T style={{flex:1,paddingRight:4}}>
504
- <C style={e.sectionTitle}>
505
- Bundle Subsystem Breakdown
506
- </C>
507
- <C style={e.sectionSub}>
508
- Granular analysis of packages, application source, engine
509
- runtime & assets
510
- </C>
511
- </T>
512
- <K value={()=>({directPackages:J.filter(o=>o.type==="direct").length,transitivePackages:J.filter(o=>o.type!=="direct").length,hermesEngine:E?"Hermes (Bytecode)":"JSC (Source)",jsDevKb:B.totalKb,jsHermesReleaseKb:Math.round(B.totalKb*.38),appSourceFiles:I.filter(o=>o.category==="typescript"||o.category==="javascript").length,mediaAssets:I.filter(o=>o.category==="image"||o.category==="font"||o.category==="json").length})}label="Subsystem Split JSON"/>
513
- </T>
514
-
515
-
516
- <T style={e.subsystemCard}>
517
- <T style={e.subsystemHeader}>
518
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
519
- <Z type="deps"size={16}color={t.indigo500}/>
520
- <C style={e.subsystemTitle}>
521
- NPM & Third-Party Dependencies
522
- </C>
523
- </T>
524
- <T style={[e.subsystemBadge,{backgroundColor:`${t.indigo500}18`}]}>
525
- <C style={[e.subsystemBadgeText,{color:t.indigo500}]}>
526
- {(B.nodeModulesKb/1024).toFixed(1)} MB •{" "}
527
- {B.nodeModulesPct}%
528
- </C>
529
- </T>
530
- </T>
531
- <T style={e.subsystemGrid}>
532
- <T style={e.subsystemItem}>
533
- <C style={e.subsystemItemText}>
534
- Direct:{" "}
535
- <C style={e.subsystemItemVal}>
536
- {J.filter(o=>o.type==="direct").length||12}{" "}
537
- pkgs
538
- </C>
539
- </C>
540
- </T>
541
- <T style={e.subsystemItem}>
542
- <C style={e.subsystemItemText}>
543
- Transitive:{" "}
544
- <C style={e.subsystemItemVal}>
545
- {J.filter(o=>o.type!=="direct").length||41}{" "}
546
- pkgs
547
- </C>
548
- </C>
549
- </T>
550
- <T style={e.subsystemItem}>
551
- <C style={e.subsystemItemText}>
552
- Top Package:{" "}
553
- <C style={e.subsystemItemVal}>
554
- {J[0]?.name||"react-native"} (
555
- {J[0]?.sizeKb||1240} KB)
556
- </C>
557
- </C>
558
- </T>
559
- </T>
560
- </T>
561
-
562
-
563
- <T style={e.subsystemCard}>
564
- <T style={e.subsystemHeader}>
565
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
566
- <Z type="source"size={16}color={t.sky500}/>
567
- <C style={e.subsystemTitle}>
568
- Application Source Code
569
- </C>
570
- </T>
571
- <T style={[e.subsystemBadge,{backgroundColor:`${t.sky500}18`}]}>
572
- <C style={[e.subsystemBadgeText,{color:t.sky500}]}>
573
- {(B.appSourceKb/1024).toFixed(1)} MB •{" "}
574
- {B.appSourcePct}%
575
- </C>
576
- </T>
577
- </T>
578
- <T style={e.subsystemGrid}>
579
- <T style={e.subsystemItem}>
580
- <C style={e.subsystemItemText}>
581
- TypeScript/TSX:{" "}
582
- <C style={e.subsystemItemVal}>
583
- {I.filter(o=>o.category==="typescript").length||14}{" "}
584
- files
585
- </C>
586
- </C>
587
- </T>
588
- <T style={e.subsystemItem}>
589
- <C style={e.subsystemItemText}>
590
- JavaScript/JSX:{" "}
591
- <C style={e.subsystemItemVal}>
592
- {I.filter(o=>o.category==="javascript").length||3}{" "}
593
- files
594
- </C>
595
- </C>
596
- </T>
597
- <T style={e.subsystemItem}>
598
- <C style={e.subsystemItemText}>
599
- Tracked Modules:{" "}
600
- <C style={e.subsystemItemVal}>
601
- {I.length||18} files
602
- </C>
603
- </C>
604
- </T>
605
- </T>
606
- </T>
607
-
608
-
609
- <T style={e.subsystemCard}>
610
- <T style={e.subsystemHeader}>
611
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
612
- <Z type="bolt"size={16}color={t.emerald600}/>
613
- <C style={e.subsystemTitle}>
614
- Hermes Bytecode Engine
615
- </C>
616
- </T>
617
- <T style={[e.subsystemBadge,{backgroundColor:`${t.emerald500}18`}]}>
618
- <C style={[e.subsystemBadgeText,{color:t.emerald700}]}>
619
- ~62% AOT Compression
620
- </C>
621
- </T>
622
- </T>
623
- <T style={e.subsystemGrid}>
624
- <T style={e.subsystemItem}>
625
- <C style={e.subsystemItemText}>
626
- Dev JS Size:{" "}
627
- <C style={e.subsystemItemVal}>
628
- {B.totalMb} MB
629
- </C>
630
- </C>
631
- </T>
632
- <T style={e.subsystemItem}>
633
- <C style={e.subsystemItemText}>
634
- Hermes Bytecode:{" "}
635
- <C style={e.subsystemItemVal}>
636
- {(B.totalKb*.38/1024).toFixed(2)} MB
637
- </C>
638
- </C>
639
- </T>
640
- <T style={e.subsystemItem}>
641
- <C style={e.subsystemItemText}>
642
- Execution:{" "}
643
- <C style={e.subsystemItemVal}>
644
- {E?"Hermes JSI Direct":"JSC Standard"}
645
- </C>
646
- </C>
647
- </T>
648
- </T>
649
- </T>
650
-
651
-
652
- <T style={e.subsystemCard}>
653
- <T style={e.subsystemHeader}>
654
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
655
- <Z type="media"size={16}color={t.pink500}/>
656
- <C style={e.subsystemTitle}>
657
- Images, Fonts & Static Assets
658
- </C>
659
- </T>
660
- <T style={[e.subsystemBadge,{backgroundColor:`${t.pink500}18`}]}>
661
- <C style={[e.subsystemBadgeText,{color:t.pink500}]}>
662
- {B.assetsMediaKb} KB • {B.assetsMediaPct}%
663
- </C>
664
- </T>
665
- </T>
666
- <T style={e.subsystemGrid}>
667
- <T style={e.subsystemItem}>
668
- <C style={e.subsystemItemText}>
669
- Images & Icons:{" "}
670
- <C style={e.subsystemItemVal}>
671
- {I.filter(o=>o.category==="image").length||2}{" "}
672
- assets
673
- </C>
674
- </C>
675
- </T>
676
- <T style={e.subsystemItem}>
677
- <C style={e.subsystemItemText}>
678
- JSON Data:{" "}
679
- <C style={e.subsystemItemVal}>
680
- {I.filter(o=>o.category==="json").length||1}{" "}
681
- files
682
- </C>
683
- </C>
684
- </T>
685
- <T style={e.subsystemItem}>
686
- <C style={e.subsystemItemText}>
687
- Custom Fonts:{" "}
688
- <C style={e.subsystemItemVal}>
689
- {I.filter(o=>o.category==="font").length||0}{" "}
690
- fonts
691
- </C>
692
- </C>
693
- </T>
694
- </T>
695
- </T>
696
- </T>
697
- </Te>}
698
-
699
-
700
-
701
-
702
- {M==="production"&&<Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
703
-
704
- <Te horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.prodPlatformScroll}>
705
- {[{key:"ios",label:"iOS App (.ipa)",badge:`${V?.production.ios.totalDownloadMb||111.9} MB`},{key:"androidAab",label:"Android AAB (.aab)",badge:`${V?.production.androidAab.totalDownloadMb||38.5} MB`},{key:"androidApk",label:"Universal APK (.apk)",badge:`${V?.production.androidApk.totalInstallMb||364} MB`}].map(o=>{const z=v===o.key;return<G key={o.key}accessible={!0}accessibilityRole="tab"accessibilityLabel={`${o.label}, ${o.badge}`}accessibilityState={{selected:z}}accessibilityHint={`Switches production estimate to ${o.label}`}onPress={()=>U(o.key)}style={[e.prodPlatformBtn,z&&e.prodPlatformBtnActive]}>
706
- <C style={[e.prodPlatformBtnText,z&&e.prodPlatformBtnTextActive]}>
707
- {o.label}
708
- </C>
709
- <T style={[e.prodPlatformBadge,z&&e.prodPlatformBadgeActive]}>
710
- <C style={[e.prodPlatformBadgeText,z&&e.prodPlatformBadgeTextActive]}>
711
- {o.badge}
712
- </C>
713
- </T>
714
- </G>})}
715
- </Te>
716
-
717
-
718
- {V&&<T style={e.heroCard}>
719
- <T style={e.heroTopRow}>
720
- <T style={e.heroIconWrap}>
721
- <Pe color={t.brandPurple}size={24}/>
722
- </T>
723
- <T style={{flex:1}}>
724
- <C style={e.heroTitle}>
725
- {v==="ios"?"iOS Production Binary Footprint":v==="androidAab"?"Google Play App Bundle (.aab)":"Universal Standalone APK (.apk)"}
726
- </C>
727
- <C style={e.heroSubtitle}>
728
- {v==="ios"?"App Store install & over-the-air cellular download estimates":v==="androidAab"?"Optimized per-device dynamic delivery split APK architecture":"Multi-ABI universal install archive for sideloading & direct distribution"}
729
- </C>
730
- </T>
731
- <K value={()=>V.production[v]}label="Production Binary JSON"/>
732
- </T>
733
-
734
-
735
- <T style={e.metricsGrid}>
736
- <T style={e.metricBox}>
737
- <C style={e.metricLabel}>INSTALL SIZE</C>
738
- <C style={[e.metricValue,{color:t.purple}]}>
739
- {V.production[v].totalInstallMb} MB
740
- </C>
741
- <C style={e.metricHint}>
742
- On-device uncompressed footprint
743
- </C>
744
- </T>
745
-
746
- <T style={e.metricBox}>
747
- <C style={e.metricLabel}>DOWNLOAD SIZE</C>
748
- <C style={[e.metricValue,{color:t.emerald600}]}>
749
- ~{V.production[v].totalDownloadMb} MB
750
- </C>
751
- <C style={e.metricHint}>
752
- Store network transfer payload
753
- </C>
754
- </T>
755
-
756
- <T style={e.metricBox}>
757
- <C style={e.metricLabel}>COMPRESSION</C>
758
- <C style={[e.metricValue,{color:t.sky500}]}>
759
- {V.production[v].compressionRatioPct}%
760
- </C>
761
- <C style={e.metricHint}>
762
- Bytecode & asset ratio
763
- </C>
764
- </T>
765
-
766
- <T style={e.metricBox}>
767
- <C style={e.metricLabel}>
768
- FORMAT ARCHITECTURE
769
- </C>
770
- <C style={[e.metricValue,{color:t.amber700}]}>
771
- {v==="ios"?"Mach-O 64-bit":v==="androidAab"?"Split APKs":"FAT Multi-ABI"}
772
- </C>
773
- <C style={e.metricHint}>
774
- {v==="ios"?"Apple ARM64 runtime":v==="androidAab"?"Dynamic Google Play delivery":"Sideload universal package"}
775
- </C>
776
- </T>
777
- </T>
778
- </T>}
779
-
780
-
781
- {V&&<T style={e.sectionCard}>
782
- <T style={e.sectionHeaderRow}>
783
- <T style={{flex:1,paddingRight:4}}>
784
- <C style={e.sectionTitle}>
785
- Binary Component Architecture
786
- </C>
787
- <C style={e.sectionSub}>
788
- Compiled native libraries, runtime bytecodes, assets, and
789
- signature blocks
790
- </C>
791
- </T>
792
- <K value={()=>V.production[v].components}label="Components JSON"/>
793
- </T>
794
-
795
-
796
- <T style={e.prodTreemapBar}>
797
- {V.production[v].components.map((o,z)=><T key={z}style={{flex:Math.max(o.pct,2),backgroundColor:o.color,height:16}}/>)}
798
- </T>
799
-
800
-
801
- <T style={[e.legendGrid,{marginBottom:12}]}>
802
- {V.production[v].components.map((o,z)=><T key={z}style={e.legendItem}>
803
- <T style={{width:8,height:8,borderRadius:4,backgroundColor:o.color}}/>
804
- <C style={e.legendText}numberOfLines={1}>
805
- {o.name}{" "}
806
- <C style={e.legendVal}>
807
- {o.sizeMb} MB ({o.pct}%)
808
- </C>
809
- </C>
810
- </T>)}
811
- </T>
812
-
813
- {V.production[v].components.map((o,z)=><T key={z}style={e.catRowCard}>
814
- <T style={e.catRowTop}>
815
- <T style={[e.catIconBox,{backgroundColor:`${o.color}15`,borderColor:`${o.color}30`}]}>
816
- <Z type={o.category==="native"?"source":o.category==="frameworks"?"deps":o.category==="assets"?"media":o.category==="js"?"javascript":"overhead"}size={18}color={o.color}/>
817
- </T>
818
-
819
- <T style={e.catRowTitleWrap}>
820
- <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6}}>
821
- <C style={e.catRowTitle}numberOfLines={1}>
822
- {o.name}
823
- </C>
824
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
825
- <C style={e.catRowSize}>
826
- {o.sizeMb} MB
827
- </C>
828
- <T style={[e.catPctPill,{backgroundColor:`${o.color}18`}]}>
829
- <C style={[e.catPctText,{color:o.color}]}>
830
- {o.pct}%
831
- </C>
832
- </T>
833
- </T>
834
- </T>
835
-
836
- <C style={e.catRowDesc}numberOfLines={2}>
837
- {o.description}
838
- </C>
839
- </T>
840
- </T>
841
-
842
- <T style={e.catProgressTrack}>
843
- <T style={[e.catProgressBar,{width:`${o.pct}%`,backgroundColor:o.color}]}/>
844
- </T>
845
-
846
- {o.advice?<T style={[e.adviceBadge,e.adviceOptimal,{marginTop:6}]}>
847
- <Je color={t.emerald700}size={13}/>
848
- <C style={[e.adviceText,{color:t.emerald700,flex:1,marginLeft:4}]}>
849
- {o.advice}
850
- </C>
851
- </T>:null}
852
- </T>)}
853
-
854
-
855
- <T style={e.totalSummaryCard}>
856
- <T style={e.totalSummaryRow}>
857
- <T style={e.totalSummaryLabelWrap}>
858
- <T style={e.totalIconBadge}>
859
- <Pe color={t.brandPurple}size={16}/>
860
- </T>
861
- <T>
862
- <C style={e.totalSummaryLabel}>
863
- {v==="ios"?"TOTAL IOS APP BINARY":v==="androidAab"?"TOTAL ANDROID AAB BUNDLE":"TOTAL UNIVERSAL APK"}
864
- </C>
865
- <C style={e.totalSummarySub}>
866
- {v==="ios"?"App Store install & cellular download estimates":v==="androidAab"?"Google Play dynamic delivery split APK":"Universal standalone sideload package"}
867
- </C>
868
- </T>
869
- </T>
870
- </T>
871
-
872
-
873
- <T style={e.totalFormulaGrid}>
874
- <T style={e.totalChip}>
875
- <T style={[e.totalDot,{backgroundColor:t.purple}]}/>
876
- <C style={e.totalChipText}>
877
- Install:{" "}
878
- {V.production[v].totalInstallMb} MB
879
- </C>
880
- </T>
881
- <T style={e.totalChip}>
882
- <T style={[e.totalDot,{backgroundColor:t.sky500}]}/>
883
- <C style={e.totalChipText}>
884
- Download: ~
885
- {V.production[v].totalDownloadMb} MB
886
- </C>
887
- </T>
888
- <T style={e.totalChip}>
889
- <T style={[e.totalDot,{backgroundColor:t.emerald500}]}/>
890
- <C style={e.totalChipText}>
891
- Compression:{" "}
892
- {V.production[v].compressionRatioPct}%
893
- </C>
894
- </T>
895
- </T>
896
- </T>
897
- </T>}
898
- </Te>}
899
-
900
-
901
-
902
-
903
- {M==="files"&&<T style={{flex:1}}>
904
-
905
- <T style={e.filterContainer}>
906
- <T style={e.searchRow}>
907
- <Bt color={t.grayTextWeak}size={15}/>
908
- <St accessible={!0}accessibilityRole="search"accessibilityLabel="Search files"accessibilityHint="Type a filename, path, or extension to filter"placeholder={k("bundle.searchFilesPlaceholder")}placeholderTextColor={t.grayTextWeak}value={P}onChangeText={W}style={e.searchInput}autoCorrect={!1}autoCapitalize="none"/>
909
- {P.length>0&&<He accessible={!0}accessibilityRole="button"accessibilityLabel="Clear search input"onPress={()=>W("")}hitSlop={10}>
910
- <Vt color={t.grayTextWeak}size={14}/>
911
- </He>}
912
- <K value={()=>ke}label={k("bundle.filteredFilesJson")}/>
913
- </T>
914
-
915
-
916
- <Te horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.categoryPillsScroll}>
917
- {Ro.map(o=>{const z=D===o.key,L=o.key==="ALL"?I.length:o.key==="UNUSED"?I.filter(H=>H.isConsumed===!1).length:o.key==="CONSUMED"?I.filter(H=>H.isConsumed!==!1).length:I.filter(H=>H.category===o.key).length;return<G key={o.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Filter by ${k(o.labelKey)}, ${L} items`}accessibilityState={{selected:z}}accessibilityHint={`Filters files list to ${k(o.labelKey)}`}onPress={()=>O(o.key)}style={[e.catPill,z&&e.catPillActive,o.key==="UNUSED"&&z&&{backgroundColor:t.red500,borderColor:t.red600},o.key==="CONSUMED"&&z&&{backgroundColor:t.emerald600,borderColor:t.emerald700}]}>
918
- <Z type={o.iconType}size={12}color={z?t.white:t.grayTextStrong}/>
919
- <C style={[e.catPillText,z&&e.catPillTextActive]}>
920
- {k(o.labelKey)} ({L})
921
- </C>
922
- </G>})}
923
- </Te>
924
- </T>
925
-
926
-
927
- <Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
928
-
929
- <T style={e.treeHeaderRow}>
930
- <T style={e.viewModeToggleGroup}>
931
- <G accessible={!0}accessibilityRole="button"accessibilityLabel="Tree folder view"accessibilityState={{selected:Se==="tree"}}onPress={()=>Xe("tree")}style={[e.viewModeBtn,Se==="tree"&&e.viewModeBtnActive]}>
932
- <C style={[e.viewModeBtnText,Se==="tree"&&e.viewModeBtnTextActive]}>
933
- {k("bundle.treeView")}
934
- </C>
935
- </G>
936
- <G accessible={!0}accessibilityRole="button"accessibilityLabel="Flat list view"accessibilityState={{selected:Se==="list"}}onPress={()=>Xe("list")}style={[e.viewModeBtn,Se==="list"&&e.viewModeBtnActive]}>
937
- <C style={[e.viewModeBtnText,Se==="list"&&e.viewModeBtnTextActive]}>
938
- {k("bundle.flatList")}
939
- </C>
940
- </G>
941
- </T>
942
-
943
- {Se==="tree"?<T style={{flexDirection:"row",alignItems:"center",gap:8}}>
944
- <G accessible={!0}accessibilityRole="button"accessibilityLabel="Expand all folders"onPress={At}>
945
- <C style={e.treeActionLink}>
946
- {k("bundle.expand")}
947
- </C>
948
- </G>
949
- <C style={{color:t.grayTextWeak,fontSize:11}}>
950
- •
951
- </C>
952
- <G accessible={!0}accessibilityRole="button"accessibilityLabel="Collapse all folders"onPress={Ht}>
953
- <C style={e.treeActionLink}>
954
- {k("bundle.collapse")}
955
- </C>
956
- </G>
957
- </T>:<C style={e.listHeaderCount}>
958
- {k("bundle.showingFilesOf",{shown:ke.length,total:I.length})}
959
- </C>}
960
- </T>
961
-
962
-
963
- {Se==="tree"?<T style={e.treeRootCard}>
964
- {Ve.map((o,z)=><Dt key={o.id}node={o}level={0}search={P}totalBundleKb={B.totalKb}expandedFolders={Ye}toggleFolder={Wt}isLastChild={z===Ve.length-1}onDownload={L=>downloadBundleFile(L,V?.scriptURL)}/>)}
965
- </T>:ke.map((o,z)=>{const L=Oe[o.category]||Oe.typescript,H=(o.sizeKb/B.totalKb*100).toFixed(1),N=o.isConsumed===!1;return<T key={o.id}style={[e.fileCard,N&&e.treeFileCardUnused]}>
966
- <T style={e.fileCardTop}>
967
- <T style={e.sNoBadge}>
968
- <C style={e.sNoText}>#{z+1}</C>
969
- </T>
970
-
971
- <_e file={o}/>
972
-
973
- <T style={{flex:1,paddingHorizontal:4}}>
974
- <T style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"}}>
975
- <Ie text={o.name}search={P}style={e.fileName}highlightStyle={e.searchHighlight}/>
976
- {N?<T style={e.unusedBadge}>
977
- <C style={e.unusedBadgeText}>
978
- {k("bundle.notConsumed")}
979
- </C>
980
- </T>:<T style={e.consumedBadge}>
981
- <C style={e.consumedBadgeText}>
982
- {k("bundle.consumed")}
983
- </C>
984
- </T>}
985
- </T>
986
- <Ie text={o.path}search={P}style={e.filePath}highlightStyle={e.searchHighlight}numberOfLines={1}/>
987
- </T>
988
-
989
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
990
- <T style={e.fileSizeBox}>
991
- <C style={[e.fileSizeKb,N&&{color:t.amber800Warm}]}>
992
- {o.sizeKb>=1024?k("bundle.fileSizeMb",{size:(o.sizeKb/1024).toFixed(2)}):k("bundle.fileSizeKb",{size:o.sizeKb})}
993
- </C>
994
- <C style={e.filePercent}>
995
- {H}%
996
- </C>
997
- </T>
998
- <G onPress={()=>downloadBundleFile(o,V?.scriptURL)}style={e.downloadFileBtn}hitSlop={8}>
999
- <Ze size={14}color={t.sky500}/>
1000
- </G>
1001
- <K value={()=>o}label={k("bundle.fileDetailsJson")}/>
1002
- </T>
1003
- </T>
1004
-
1005
- <T style={e.fileProgressTrack}>
1006
- <T style={[e.fileProgressBar,{width:`${Math.min(100,Math.max(4,Number(H)*4))}%`,backgroundColor:N?t.red500:L.color}]}/>
1007
- </T>
1008
-
1009
- <T style={e.fileCardBottom}>
1010
- <C style={e.fileMetaText}>{o.meta}</C>
1011
- {o.advice&&<T style={[e.adviceBadge,o.status==="warning"&&e.adviceWarning,o.status==="optimal"&&e.adviceOptimal,N&&e.adviceUnused]}>
1012
- {N?<Qt color={t.red600}size={12}/>:o.status==="warning"?<Je color={t.amber800Warm}size={12}/>:<Pt color={t.emerald700}size={12}/>}
1013
- <C style={[e.adviceText,o.status==="warning"&&{color:t.amber800Warm},o.status==="optimal"&&{color:t.emerald700},N&&{color:t.red600}]}>
1014
- {o.advice}
1015
- </C>
1016
- </T>}
1017
- </T>
1018
- </T>})}
1019
- </Te>
1020
-
1021
-
1022
- <T style={e.stickyFooterBar}>
1023
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1024
- <Mt color={t.purple}size={14}/>
1025
- <C style={e.footerTitle}>
1026
- {k("bundle.filesOf",{count:ke.length,total:B.totalCount})}
1027
- </C>
1028
- </T>
1029
- <C style={e.footerSizeVal}>
1030
- {k("bundle.kbMbValue",{kb:qe,mb:(qe/1024).toFixed(2)})}
1031
- </C>
1032
- </T>
1033
- </T>}
1034
-
1035
-
1036
-
1037
-
1038
- {M==="packages"&&<T style={{flex:1}}>
1039
- <Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
1040
- <T style={e.filterContainer}>
1041
- <T style={e.searchRow}>
1042
- <Bt color={t.grayTextWeak}size={15}/>
1043
- <St accessible={!0}accessibilityRole="search"accessibilityLabel="Search packages"accessibilityHint="Type a package name or description to filter"placeholder={k("bundle.searchPackagesPlaceholder")}placeholderTextColor={t.grayTextWeak}value={P}onChangeText={W}style={e.searchInput}autoCorrect={!1}autoCapitalize="none"/>
1044
- {P.length>0&&<He accessible={!0}accessibilityRole="button"accessibilityLabel="Clear search input"onPress={()=>W("")}hitSlop={10}>
1045
- <Vt color={t.grayTextWeak}size={14}/>
1046
- </He>}
1047
- <K value={()=>Me}label={k("bundle.dependenciesJson")}/>
1048
- </T>
1049
- </T>
1050
-
1051
- <C style={e.listHeaderCount}>
1052
- {k("bundle.showingDependencies",{count:Me.length})}
1053
- </C>
1054
-
1055
- {Me.map((o,z)=>{const L=o.version?o.version.replace(/^\^/,""):"",H=!!o.latestVersion&&!!L&&o.latestVersion!==L;return<T key={o.id}style={[e.fileCard,o.isDeprecated&&{borderColor:t.errorBorder,backgroundColor:t.errorCardBg}]}>
1056
-
1057
- <T style={e.fileCardTop}>
1058
- <T style={e.sNoBadge}>
1059
- <C style={e.sNoText}>#{z+1}</C>
1060
- </T>
1061
-
1062
- <Mo name={o.name}color={o.color}size={28}/>
1063
-
1064
- <T style={{flex:1,paddingHorizontal:4}}>
1065
- <T style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"}}>
1066
- <Ie text={o.name}search={P}style={e.fileName}highlightStyle={e.searchHighlight}/>
1067
- <T style={e.versionPill}>
1068
- <C style={e.versionPillText}>
1069
- {L?k("bundle.versionPrefix",{version:L}):k("bundle.bundled")}
1070
- </C>
1071
- </T>
1072
-
1073
- {o.isDeprecated?<T style={e.deprecatedBadge}>
1074
- <C style={e.deprecatedBadgeText}>
1075
- {k("bundle.deprecated")}
1076
- </C>
1077
- </T>:H?<T style={e.updateBadge}>
1078
- <C style={e.updateBadgeText}>
1079
- {k("bundle.updateAvailable",{version:o.latestVersion})}
1080
- </C>
1081
- </T>:L?<T style={[e.updateBadge,{backgroundColor:t.gray100,borderColor:t.gray200}]}>
1082
- <C style={[e.updateBadgeText,{color:t.gray600}]}>
1083
- {k("bundle.upToDate")}
1084
- </C>
1085
- </T>:<T style={[e.updateBadge,{backgroundColor:t.gray100,borderColor:t.gray200}]}>
1086
- <C style={[e.updateBadgeText,{color:t.gray600}]}>
1087
- {k("bundle.bundledBadge")}
1088
- </C>
1089
- </T>}
1090
- </T>
1091
- </T>
1092
-
1093
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1094
- <T style={e.fileSizeBox}>
1095
- <C style={e.fileSizeKb}>
1096
- {k("bundle.fileSizeKb",{size:o.sizeKb})}
1097
- </C>
1098
- <C style={e.filePercent}>
1099
- {o.percentage}%
1100
- </C>
1101
- </T>
1102
- <K value={()=>o}label={k("bundle.packageDetailsJson")}/>
1103
- </T>
1104
- </T>
1105
-
1106
-
1107
- <T style={{flexDirection:"row",alignItems:"center",gap:6,marginTop:4,marginBottom:2}}>
1108
- <T style={[e.pkgBadge,{backgroundColor:`${o.color}1F`,borderColor:`${o.color}4D`}]}>
1109
- <C style={[e.pkgBadgeText,{color:o.color}]}>
1110
- {o.category.toUpperCase()}
1111
- </C>
1112
- </T>
1113
- <C style={[e.filePath,{flex:1,marginTop:0}]}numberOfLines={1}>
1114
- {o.description}
1115
- </C>
1116
- </T>
1117
-
1118
-
1119
- {o.isDeprecated&&o.deprecationReason&&<T style={e.deprecationBox}>
1120
- <T style={{flexDirection:"row",alignItems:"center",gap:5}}>
1121
- <Ge color={t.errorColor}size={12}/>
1122
- <C style={e.deprecationText}>
1123
- {o.deprecationReason}
1124
- </C>
1125
- </T>
1126
- </T>}
1127
-
1128
- <T style={e.fileProgressTrack}>
1129
- <T style={[e.fileProgressBar,{width:`${o.percentage*2}%`,backgroundColor:o.isDeprecated?t.red500:o.color}]}/>
1130
- </T>
1131
-
1132
-
1133
- <T style={{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:3}}>
1134
- <T style={{flexDirection:"row",alignItems:"center",gap:8}}>
1135
- <T style={e.typeTag}>
1136
- <C style={e.typeTagText}>
1137
- {o.type==="direct"?k("bundle.direct"):k("bundle.transitive")}
1138
- </C>
1139
- </T>
1140
- {o.lastActive&&<T style={{flexDirection:"row",alignItems:"center",gap:4}}>
1141
- <To color={t.grayTextWeak}size={11}/>
1142
- <C style={e.lastActiveText}>
1143
- {o.lastActive}
1144
- </C>
1145
- </T>}
1146
- </T>
1147
-
1148
- <T style={{flexDirection:"row",alignItems:"center",gap:8}}>
1149
- <C style={e.fileMetaText}>
1150
- {k("bundle.minified",{size:o.sizeKb})}
1151
- </C>
1152
- <G accessible={!0}accessibilityRole="link"accessibilityLabel={`Open ${o.name} on NPM`}accessibilityHint="Opens NPM package page in browser"onPress={()=>{const N=o.npmUrl||`https://www.npmjs.com/package/${o.name}`;Ct.openURL(N).catch(()=>{})}}style={e.npmLinkBtn}>
1153
- <C style={e.npmLinkText}>
1154
- {k("bundle.npmLink")}
1155
- </C>
1156
- </G>
1157
- </T>
1158
- </T>
1159
- </T>})}
1160
- </Te>
1161
-
1162
-
1163
- <T style={e.stickyFooterBar}>
1164
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1165
- <Pe color={t.purple}size={14}/>
1166
- <C style={e.footerTitle}>
1167
- {k("bundle.dependenciesCount",{count:Me.length})}
1168
- </C>
1169
- </T>
1170
- <C style={e.footerSizeVal}>
1171
- {k("bundle.kbMbValue",{kb:Qe,mb:(Qe/1024).toFixed(2)})}
1172
- </C>
1173
- </T>
1174
- </T>}
1175
-
1176
-
1177
-
1178
-
1179
- {M==="media"&&<T style={{flex:1}}>
1180
- <Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
1181
- <T style={e.tipsCard}>
1182
- <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8}}>
1183
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1184
- <Ee color={t.purple}size={18}/>
1185
- <C style={e.tipsHeading}>
1186
- {k("bundle.mediaAuditorTitle")}
1187
- </C>
1188
- </T>
1189
- <K value={()=>ve}label={k("bundle.mediaAssetsJson")}/>
1190
- </T>
1191
- <C style={e.tipDesc}>
1192
- {k("bundle.mediaAuditorPrefix")}{" "}
1193
- <C style={{fontFamily:S.interBold,color:t.purple}}>
1194
- {B.images.pct+B.fonts.pct}%
1195
- </C>{" "}
1196
- {k("bundle.mediaAuditorMid",{kb:B.images.kb+B.fonts.kb})}{" "}
1197
- <C style={{fontFamily:S.interBold,color:t.emerald700}}>
1198
- {k("bundle.mediaSavings",{size:540})}
1199
- </C>{" "}
1200
- {k("bundle.mediaAuditorSuffix")}
1201
- </C>
1202
- </T>
1203
-
1204
- <C style={e.listHeaderCount}>
1205
- {k("bundle.mediaAssetsList",{count:ve.length})}
1206
- </C>
1207
-
1208
- {ve.map((o,z)=><T key={o.id}style={e.fileCard}>
1209
- <T style={e.fileCardTop}>
1210
- <T style={e.sNoBadge}>
1211
- <C style={e.sNoText}>#{z+1}</C>
1212
- </T>
1213
-
1214
- <_e file={o}/>
1215
-
1216
- <T style={{flex:1}}>
1217
- <C style={e.fileName}>{o.name}</C>
1218
- <C style={e.filePath}>{o.path}</C>
1219
- </T>
1220
-
1221
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1222
- <T style={e.fileSizeBox}>
1223
- <C style={e.fileSizeKb}>
1224
- {k("bundle.fileSizeKb",{size:o.sizeKb})}
1225
- </C>
1226
- </T>
1227
- <G accessible={!0}accessibilityRole="button"accessibilityLabel={`Download ${o.name}`}accessibilityHint="Downloads media asset file"onPress={()=>downloadBundleFile(o,V?.scriptURL)}style={e.downloadFileBtn}hitSlop={8}>
1228
- <Ze size={14}color={t.sky500}/>
1229
- </G>
1230
- <K value={()=>o}label={k("bundle.mediaItemJson")}/>
1231
- </T>
1232
- </T>
1233
-
1234
- <T style={e.fileCardBottom}>
1235
- <C style={e.fileMetaText}>{o.meta}</C>
1236
- {o.advice&&<T style={[e.adviceBadge,o.status==="warning"&&e.adviceWarning,o.status==="optimal"&&e.adviceOptimal]}>
1237
- {o.status==="warning"?<Je color={t.amber800Warm}size={12}/>:<Pt color={t.emerald700}size={12}/>}
1238
- <C style={[e.adviceText,o.status==="warning"&&{color:t.amber800Warm},o.status==="optimal"&&{color:t.emerald700}]}>
1239
- {o.advice}
1240
- </C>
1241
- </T>}
1242
- </T>
1243
- </T>)}
1244
- </Te>
1245
-
1246
-
1247
- <T style={e.stickyFooterBar}>
1248
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1249
- <Ee color={t.purple}size={14}/>
1250
- <C style={e.footerTitle}>
1251
- {k("bundle.mediaAndFonts",{count:ve.length})}
1252
- </C>
1253
- </T>
1254
- <C style={e.footerSizeVal}>
1255
- {k("bundle.kbMbValue",{kb:et,mb:(et/1024).toFixed(2)})}
1256
- </C>
1257
- </T>
1258
- </T>}
1259
-
1260
-
1261
-
1262
-
1263
- {M==="optimizer"&&<Te style={{flex:1}}contentContainerStyle={e.contentContainer}keyboardShouldPersistTaps="handled">
1264
- <T style={e.tipsCard}>
1265
- <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12}}>
1266
- <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
1267
- <Ge color={t.purple}size={18}/>
1268
- <C style={e.tipsHeading}>
1269
- {k("bundle.optimizerTitle")}
1270
- </C>
1271
- </T>
1272
- <K value={()=>[k("bundle.optTip1Title"),`${k("bundle.optTip2Title")} (${k(E?"bundle.active":"bundle.actionRequired")})`,k("bundle.optTip3Title"),k("bundle.optTip4Title"),k("bundle.optTip5Title")]}label={k("bundle.optimizationChecklist")}/>
1273
- </T>
1274
-
1275
- {[{iconType:"image",iconColor:t.pink500,title:k("bundle.optTip1Title"),desc:k("bundle.optTip1Desc"),badge:k("bundle.highImpact"),badgeColor:t.pink500},{iconType:"bolt",iconColor:E?t.emerald500:t.amber500,title:k("bundle.optTip2Title"),desc:k(E?"bundle.optTip2DescActive":"bundle.optTip2DescInactive"),badge:k(E?"bundle.active":"bundle.actionRequired"),badgeColor:E?t.emerald500:t.amber500},{iconType:"font",iconColor:t.purple500,title:k("bundle.optTip3Title"),desc:k("bundle.optTip3Desc"),badge:k("bundle.mediumImpact"),badgeColor:t.purple500},{iconType:"source",iconColor:t.sky500,title:k("bundle.optTip4Title"),desc:k("bundle.optTip4Desc"),badge:k("bundle.bestPractice"),badgeColor:t.sky500},{iconType:"overhead",iconColor:t.indigo500,title:k("bundle.optTip5Title"),desc:k("bundle.optTip5Desc"),badge:k("bundle.bestPractice"),badgeColor:t.indigo500}].map((o,z)=><T key={z}style={e.tipItem}>
1276
- <T style={e.tipItemHeader}>
1277
- <T style={e.tipTitleWrap}>
1278
- <T style={e.sNoBadge}>
1279
- <C style={e.sNoText}>#{z+1}</C>
1280
- </T>
1281
- <Z type={o.iconType}size={14}color={o.iconColor}/>
1282
- <C style={e.tipTitle}>{o.title}</C>
1283
- </T>
1284
- <T style={e.tipActionWrap}>
1285
- <T style={[e.impactBadge,{backgroundColor:`${o.badgeColor}18`,borderColor:`${o.badgeColor}40`}]}>
1286
- <C style={[e.impactBadgeText,{color:o.badgeColor}]}>
1287
- {o.badge}
1288
- </C>
1289
- </T>
1290
- <K value={()=>o}label={k("bundle.tipDetails")}/>
1291
- </T>
1292
- </T>
1293
- <C style={e.tipDesc}>{o.desc}</C>
1294
- </T>)}
1295
- </T>
1296
- </Te>}
1297
- </T>}),e=je.create({topTabWrap:{backgroundColor:t.white,paddingVertical:8,borderBottomWidth:1,borderBottomColor:t.dividerColor,flexDirection:"row",alignItems:"center",paddingRight:10},reloadButton:{padding:8,borderRadius:20,backgroundColor:t.grayBackground,borderWidth:1,borderColor:t.dividerColor,alignItems:"center",justifyContent:"center",marginLeft:4},analyzingContainer:{flex:1,alignItems:"center",justifyContent:"center",gap:8,padding:24},analyzingText:{fontFamily:S.interBold,fontSize:13,color:t.primaryBlack},analyzingHint:{fontFamily:S.interRegular,fontSize:11,color:t.grayTextWeak},subTabsScroll:{paddingHorizontal:12,gap:8,flexDirection:"row",alignItems:"center"},subTabPill:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:12,paddingVertical:7,borderRadius:20,backgroundColor:t.grayBackground,borderWidth:1,borderColor:t.dividerColor},subTabPillActive:{backgroundColor:t.brandPurple,borderColor:t.brandPurple,shadowColor:t.brandPurple,shadowOffset:{width:0,height:2},shadowOpacity:.2,shadowRadius:3,elevation:2},subTabPillText:{fontFamily:S.interMedium,fontSize:11.5,color:t.grayTextStrong},subTabPillTextActive:{fontFamily:S.interBold,color:t.white},contentContainer:{padding:16,paddingBottom:40,gap:14},heroCard:{backgroundColor:t.white,borderRadius:14,padding:16,borderWidth:1,borderColor:t.dividerColor,shadowColor:t.primaryBlack,shadowOffset:{width:0,height:2},shadowOpacity:.04,shadowRadius:6,elevation:2},heroTopRow:{flexDirection:"row",alignItems:"flex-start",gap:12,marginBottom:16},heroIconWrap:{width:44,height:44,borderRadius:12,backgroundColor:`${t.brandPurple}12`,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:`${t.brandPurple}25`},heroTitle:{fontFamily:S.interBold,fontSize:16,color:t.primaryBlack},heroSubtitle:{fontFamily:S.interRegular,fontSize:12,color:t.grayTextWeak,marginTop:2},metricsGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},metricBox:{flex:1,minWidth:"45%",backgroundColor:t.grayBackground,borderRadius:10,padding:10,borderWidth:1,borderColor:t.dividerColor},metricLabel:{fontFamily:S.interBold,fontSize:9.5,color:t.grayTextWeak,letterSpacing:.5},metricValue:{fontFamily:S.interBold,fontSize:14,color:t.primaryBlack,marginTop:3},metricHint:{fontFamily:S.interMedium,fontSize:10.5,color:t.grayText,marginTop:2},statusIndicator:{width:8,height:8,borderRadius:4},prodPlatformScroll:{flexDirection:"row",alignItems:"center",gap:8,paddingBottom:4},prodPlatformBtn:{flexDirection:"row",alignItems:"center",paddingVertical:7,paddingHorizontal:12,borderRadius:20,backgroundColor:t.white,borderWidth:1,borderColor:t.dividerColor,gap:6},prodPlatformBtnActive:{backgroundColor:t.brandPurple,borderColor:t.brandPurple,shadowColor:t.brandPurple,shadowOffset:{width:0,height:2},shadowOpacity:.18,shadowRadius:3,elevation:2},prodPlatformBtnText:{fontFamily:S.interBold,fontSize:11.5,color:t.grayTextStrong},prodPlatformBtnTextActive:{color:t.white},prodPlatformBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:10,backgroundColor:`${t.purple}14`},prodPlatformBadgeActive:{backgroundColor:"rgba(255, 255, 255, 0.25)"},prodPlatformBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:t.purple},prodPlatformBadgeTextActive:{color:t.white},sectionCard:{backgroundColor:t.white,borderRadius:14,padding:14,borderWidth:1,borderColor:t.dividerColor,overflow:"hidden"},sectionHeaderRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:10,gap:8},sectionTitle:{fontFamily:S.interBold,fontSize:13,color:t.primaryBlack},sectionSub:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextWeak},treemapBar:{flexDirection:"row",borderRadius:6,overflow:"hidden",height:16,marginBottom:12,backgroundColor:t.slate200},prodTreemapBar:{flexDirection:"row",borderRadius:6,overflow:"hidden",height:16,marginBottom:12,backgroundColor:t.slate200},legendGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},legendItem:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8,paddingVertical:5,borderRadius:8,backgroundColor:`${t.slate200}40`,borderWidth:1,borderColor:`${t.dividerColor}`,flexShrink:0},legendText:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextStrong},legendVal:{fontFamily:S.interBold,color:t.primaryBlack},subsystemCard:{backgroundColor:t.white,borderRadius:12,padding:12,marginBottom:8,borderWidth:1,borderColor:t.dividerColor,gap:8},subsystemHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},subsystemTitle:{fontFamily:S.interBold,fontSize:12.5,color:t.primaryBlack},subsystemBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:6},subsystemBadgeText:{fontFamily:S.interBold,fontSize:10},subsystemGrid:{flexDirection:"row",flexWrap:"wrap",gap:6},subsystemItem:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:t.grayBackground,borderWidth:1,borderColor:t.dividerColor},subsystemItemText:{fontFamily:S.interMedium,fontSize:10.5,color:t.grayTextStrong},subsystemItemVal:{fontFamily:S.interBold,color:t.primaryBlack},catRowCard:{backgroundColor:t.grayBackground,borderRadius:12,padding:12,marginBottom:8,borderWidth:1,borderColor:t.dividerColor,gap:8},catRowTop:{flexDirection:"row",alignItems:"flex-start",gap:10},catIconBox:{width:36,height:36,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},catRowTitleWrap:{flex:1,minWidth:0,gap:2},catRowTitle:{fontFamily:S.interBold,fontSize:13,color:t.primaryBlack,flex:1},catRowDesc:{fontFamily:S.interRegular,fontSize:10.5,color:t.grayTextWeak,lineHeight:14.5},catRowSize:{fontFamily:S.interBold,fontSize:12.5,color:t.primaryBlack},catRowRight:{alignItems:"flex-end",justifyContent:"center",flexShrink:0,minWidth:64},catRowPct:{fontFamily:S.interMedium,fontSize:10,color:t.grayTextWeak},catPctPill:{paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:5},catPctText:{fontFamily:S.interBold,fontSize:9.5},catProgressTrack:{height:5,borderRadius:2.5,backgroundColor:`${t.slate200}`,overflow:"hidden",marginTop:2},catProgressBar:{height:"100%",borderRadius:2.5},filterContainer:{backgroundColor:t.white,borderRadius:12,padding:10,marginHorizontal:16,marginTop:12,borderWidth:1,borderColor:t.dividerColor,gap:8},searchRow:{flexDirection:"row",alignItems:"center",backgroundColor:t.grayBackground,borderRadius:8,paddingHorizontal:10,height:36,gap:8},searchInput:{flex:1,fontFamily:S.interRegular,fontSize:12,color:t.primaryBlack,padding:0},categoryPillsScroll:{gap:6,paddingVertical:2},catPill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:10,paddingVertical:5,borderRadius:16,backgroundColor:t.grayBackground,borderWidth:1,borderColor:t.dividerColor},catPillActive:{backgroundColor:t.brandPurple,borderColor:t.brandPurple},catPillText:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextStrong},catPillTextActive:{fontFamily:S.interBold,color:t.white},listHeaderCount:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextWeak,paddingHorizontal:4},treeHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:2,marginBottom:6},viewModeToggleGroup:{flexDirection:"row",backgroundColor:t.grayBackground,borderRadius:8,padding:2,borderWidth:1,borderColor:t.dividerColor},viewModeBtn:{paddingHorizontal:10,paddingVertical:5,borderRadius:6},viewModeBtnActive:{backgroundColor:t.brandPurple,shadowColor:t.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:2,elevation:2},viewModeBtnText:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextStrong},viewModeBtnTextActive:{fontFamily:S.interBold,color:t.white},treeActionLink:{fontFamily:S.interBold,fontSize:11.5,color:t.purple},treeRootCard:{backgroundColor:t.white,borderRadius:12,borderWidth:1,borderColor:t.dividerColor,overflow:"hidden",marginBottom:16},treeFolderBlock:{borderBottomWidth:je.hairlineWidth,borderBottomColor:t.dividerColor},treeFolderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:8,paddingRight:10,backgroundColor:`${t.purple}06`},treeRowLeft:{flexDirection:"row",alignItems:"center",gap:6,flex:1,marginRight:6},treeRowRight:{flexDirection:"row",alignItems:"center",gap:6},treeChevron:{fontSize:12,color:t.purple,fontFamily:S.interBold,width:12,textAlign:"center"},treeFolderName:{fontFamily:S.interBold,fontSize:12.5,color:t.primaryBlack},treeCountBadge:{paddingHorizontal:5,paddingVertical:1,borderRadius:8,backgroundColor:`${t.purple}14`},treeCountBadgeText:{fontFamily:S.interMedium,fontSize:9.5,color:t.purple},treeFolderSize:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextStrong},treeChildrenContainer:{backgroundColor:t.white},treeFileRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:6,paddingRight:10,borderBottomWidth:je.hairlineWidth,borderBottomColor:`${t.dividerColor}80`,backgroundColor:t.white},treeFileRowUnused:{backgroundColor:`${t.red500}06`},treeBranchGuide:{width:12,alignItems:"center",justifyContent:"center"},treeBranchGuideText:{fontFamily:S.interRegular,fontSize:11,color:t.dividerColor},treeFileName:{fontFamily:S.interMedium,fontSize:12,color:t.primaryBlack,flexShrink:1},treeUnusedPill:{paddingHorizontal:5,paddingVertical:1,borderRadius:4,backgroundColor:`${t.red500}18`},treeUnusedPillText:{fontFamily:S.interBold,fontSize:9,color:t.red600},treeFileSizeGroup:{alignItems:"flex-end"},treeFileSizeText:{fontFamily:S.interMedium,fontSize:11,color:t.primaryBlack},treeFilePctText:{fontFamily:S.interRegular,fontSize:9,color:t.grayTextWeak},fileCard:{backgroundColor:t.white,borderRadius:12,padding:12,borderWidth:1,borderColor:t.dividerColor,gap:6,marginBottom:8},fileCardTop:{flexDirection:"row",alignItems:"center",gap:8},sNoBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:`${t.purple}14`,borderWidth:1,borderColor:`${t.purple}30`,minWidth:26,alignItems:"center",justifyContent:"center"},sNoText:{fontFamily:S.interBold,fontSize:10,color:t.purple},extChip:{paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1},extChipText:{fontFamily:S.interBold,fontSize:10,letterSpacing:.4},pkgBadge:{paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1},pkgBadgeText:{fontFamily:S.interBold,fontSize:9,letterSpacing:.4},pkgLogoWrap:{borderRadius:7,borderWidth:1,alignItems:"center",justifyContent:"center",backgroundColor:t.white,borderColor:t.dividerColor,overflow:"hidden"},pkgLogoFallbackText:{fontFamily:S.interBold},mediaThumbWrap:{width:32,height:32,borderRadius:6,overflow:"hidden",backgroundColor:t.grayBackground,borderWidth:1,borderColor:t.dividerColor},mediaThumbImg:{width:"100%",height:"100%"},fileName:{fontFamily:S.interBold,fontSize:12.5,color:t.primaryBlack},versionPill:{paddingHorizontal:5,paddingVertical:1,borderRadius:4,backgroundColor:`${t.purple}14`,borderWidth:1,borderColor:`${t.purple}26`},versionPillText:{fontFamily:S.interMedium,fontSize:10,color:t.purple},pkgVersion:{fontFamily:S.interMedium,fontSize:11,color:t.grayTextWeak},filePath:{fontFamily:S.interRegular,fontSize:10.5,color:t.grayTextWeak,marginTop:1},fileSizeBox:{alignItems:"flex-end"},downloadFileBtn:{padding:6,borderRadius:6,backgroundColor:`${t.sky500}14`,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:`${t.sky500}28`},treeActionBtn:{padding:4,borderRadius:4,backgroundColor:`${t.sky500}14`,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:`${t.sky500}28`},fileSizeKb:{fontFamily:S.interBold,fontSize:12,color:t.primaryBlack},filePercent:{fontFamily:S.interMedium,fontSize:10,color:t.grayTextWeak},fileProgressTrack:{height:4,borderRadius:2,backgroundColor:t.grayBackground,overflow:"hidden",marginVertical:2},fileProgressBar:{height:"100%",borderRadius:2},fileCardBottom:{gap:4},fileMetaText:{fontFamily:S.interRegular,fontSize:10.5,color:t.grayTextWeak},typeTag:{backgroundColor:t.grayBackground,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:t.dividerColor},typeTagText:{fontFamily:S.interMedium,fontSize:9.5,color:t.grayText},npmLinkBtn:{flexDirection:"row",alignItems:"center",gap:3,paddingHorizontal:7,paddingVertical:2,borderRadius:5,backgroundColor:t.npmRedTint,borderWidth:1,borderColor:t.npmRedBorder},npmLinkText:{fontFamily:S.interBold,fontSize:9.5,color:t.npmRed},deprecatedBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:4,backgroundColor:t.red100,borderWidth:1,borderColor:t.errorBorder},deprecatedBadgeText:{fontFamily:S.interBold,fontSize:9,color:t.red600,letterSpacing:.3},updateBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:4,backgroundColor:t.green100,borderWidth:1,borderColor:t.greenBorder},updateBadgeText:{fontFamily:S.interBold,fontSize:9,color:t.emerald700},lastActiveText:{fontFamily:S.interRegular,fontSize:10,color:t.grayTextWeak},deprecationBox:{backgroundColor:t.errorCardBg,borderRadius:6,paddingHorizontal:8,paddingVertical:5,borderWidth:1,borderColor:t.errorBorder,marginTop:3},deprecationText:{fontFamily:S.interMedium,fontSize:10.5,color:t.rose700,lineHeight:14},unusedBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:4,backgroundColor:t.red100,borderWidth:1,borderColor:t.errorBorder},unusedBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:t.red600},consumedBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:4,backgroundColor:t.green100,borderWidth:1,borderColor:t.greenBorder},consumedBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:t.emerald600},treeFolderChevronWrap:{width:18,height:18,borderRadius:9,backgroundColor:`${t.purple}14`,alignItems:"center",justifyContent:"center"},treeFileCardUnused:{borderColor:t.errorBorder,backgroundColor:t.red50},adviceUnused:{backgroundColor:t.errorCardBg,borderWidth:1,borderColor:t.errorBorder},liveWarningCard:{flexDirection:"row",alignItems:"center",backgroundColor:t.amber100,borderWidth:1,borderColor:t.amber200,borderRadius:10,padding:12,marginBottom:12},liveWarningTitle:{fontFamily:S.interBold,fontSize:12,color:t.amber800Warm,marginBottom:2},liveWarningDesc:{fontFamily:S.interRegular,fontSize:10.5,lineHeight:14,color:t.amber800Warm},adviceBadge:{flexDirection:"row",alignItems:"center",paddingHorizontal:8,paddingVertical:5,borderRadius:6,marginTop:4,gap:6},adviceWarning:{backgroundColor:t.amber100,borderWidth:1,borderColor:t.amber200},adviceOptimal:{backgroundColor:t.green100,borderWidth:1,borderColor:t.greenBorder},adviceText:{fontFamily:S.interMedium,fontSize:10.5,lineHeight:14,flex:1},impactBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1},impactBadgeText:{fontFamily:S.interBold,fontSize:9},searchHighlight:{backgroundColor:t.yellow200,color:t.yellow800,fontFamily:S.interBold},tipsCard:{backgroundColor:t.purple50,borderRadius:14,padding:14,borderWidth:1,borderColor:t.purple200},tipsHeading:{fontFamily:S.interBold,fontSize:13.5,color:t.purple800},totalSummaryCard:{marginTop:10,backgroundColor:`${t.brandPurple}0B`,borderRadius:12,padding:12,borderWidth:1,borderColor:`${t.brandPurple}25`,gap:8},totalSummaryRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},totalSummaryLabelWrap:{flexDirection:"row",alignItems:"center",gap:8},totalIconBadge:{width:32,height:32,borderRadius:8,backgroundColor:`${t.brandPurple}15`,alignItems:"center",justifyContent:"center"},totalSummaryLabel:{fontFamily:S.interBold,fontSize:11.5,color:t.brandPurple,letterSpacing:.6},totalSummarySub:{fontFamily:S.interRegular,fontSize:10,color:t.grayTextWeak,marginTop:1},totalSummaryValue:{fontFamily:S.interBold,fontSize:15,color:t.primaryBlack},totalSummaryKb:{fontFamily:S.interMedium,fontSize:10,color:t.grayTextWeak},totalFormulaGrid:{flexDirection:"row",flexWrap:"wrap",gap:6,paddingTop:6,borderTopWidth:1,borderTopColor:`${t.brandPurple}15`},totalChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:t.white,borderRadius:6,paddingHorizontal:6,paddingVertical:3,borderWidth:1,borderColor:t.dividerColor},totalDot:{width:6,height:6,borderRadius:3},totalChipText:{fontFamily:S.interBold,fontSize:9.5,color:t.primaryBlack},totalSummaryFormula:{fontFamily:S.interRegular,fontSize:10.5,color:t.grayText,lineHeight:15},stickyFooterBar:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:t.white,paddingHorizontal:16,paddingTop:10,paddingBottom:kt.OS==="ios"?24:12,borderTopWidth:1,borderTopColor:t.dividerColor,shadowColor:t.primaryBlack,shadowOffset:{width:0,height:-2},shadowOpacity:.05,shadowRadius:4,elevation:3},footerTitle:{fontFamily:S.interBold,fontSize:12,color:t.primaryBlack},footerSizeVal:{fontFamily:S.interBold,fontSize:12.5,color:t.purple},tipItem:{marginBottom:10,backgroundColor:t.white,padding:12,borderRadius:10,borderWidth:1,borderColor:t.purple200,gap:6},tipItemHeader:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:8},tipTitleWrap:{flexDirection:"row",alignItems:"center",gap:6,flex:1,flexShrink:1},tipActionWrap:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},tipTitle:{fontFamily:S.interBold,fontSize:12,color:t.purple900,flex:1,flexShrink:1},tipDesc:{fontFamily:S.interRegular,fontSize:11,color:t.gray500,lineHeight:16}});export default Io;