react-native-inapp-inspector 2.4.2 → 2.5.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 (202) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +523 -2
  2. package/dist/commonjs/capture.d.ts +2 -0
  3. package/dist/commonjs/capture.js +1 -1
  4. package/dist/commonjs/components/AnalyticsDetail.js +23 -23
  5. package/dist/commonjs/components/AnalyticsEventCard.js +1 -1
  6. package/dist/commonjs/components/AnalyticsGraph.js +44 -44
  7. package/dist/commonjs/components/AnimatedBrandOwl.js +32 -32
  8. package/dist/commonjs/components/AppHeaderLogo.js +6 -6
  9. package/dist/commonjs/components/BrandCircleIcon.js +28 -28
  10. package/dist/commonjs/components/BrandSquareIcon.js +33 -33
  11. package/dist/commonjs/components/ConsoleLogCard.js +1 -1
  12. package/dist/commonjs/components/Inspector/AnalyticsTab.js +2 -2
  13. package/dist/commonjs/components/Inspector/ConfirmationModal.js +23 -25
  14. package/dist/commonjs/components/Inspector/ConsoleTab.js +5 -5
  15. package/dist/commonjs/components/Inspector/CrashTab.js +44 -11
  16. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +1 -1
  17. package/dist/commonjs/components/Inspector/FabLauncher.js +30 -25
  18. package/dist/commonjs/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
  19. package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +54 -0
  20. package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
  21. package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +234 -0
  22. package/dist/commonjs/components/Inspector/InspectorHeader.js +137 -127
  23. package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +1 -1
  24. package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +114 -32
  25. package/dist/commonjs/components/Inspector/MainScreen.js +26 -19
  26. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +38 -35
  27. package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +36 -0
  28. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +345 -123
  29. package/dist/commonjs/components/Inspector/NetworkTab.js +14 -14
  30. package/dist/commonjs/components/Inspector/PushCard.js +1 -1
  31. package/dist/commonjs/components/Inspector/PushDetail.js +9 -9
  32. package/dist/commonjs/components/Inspector/PushTab.js +3 -3
  33. package/dist/commonjs/components/Inspector/ReduxTab.js +9 -7
  34. package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
  35. package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +43 -0
  36. package/dist/commonjs/components/Inspector/SettingsPanel.js +102 -73
  37. package/dist/commonjs/components/Inspector/SocketCard.js +1 -1
  38. package/dist/commonjs/components/Inspector/SocketDetail.js +73 -63
  39. package/dist/commonjs/components/Inspector/SocketTab.js +4 -4
  40. package/dist/commonjs/components/Inspector/StorageTab.js +10 -10
  41. package/dist/commonjs/components/Inspector/SupportModal.js +2 -2
  42. package/dist/commonjs/components/Inspector/SupportPage.js +1 -1
  43. package/dist/commonjs/components/JsonViewer.js +47 -45
  44. package/dist/commonjs/components/LogCard.js +22 -20
  45. package/dist/commonjs/components/ModuleErrorBoundary.js +5 -5
  46. package/dist/commonjs/components/NetworkIcons.d.ts +27 -0
  47. package/dist/commonjs/components/NetworkIcons.js +103 -5
  48. package/dist/commonjs/constants/version.d.ts +1 -1
  49. package/dist/commonjs/constants/version.js +1 -1
  50. package/dist/commonjs/crash.d.ts +1 -1
  51. package/dist/commonjs/crash.js +1 -1
  52. package/dist/commonjs/customHooks/crashHandler.d.ts +2 -1
  53. package/dist/commonjs/customHooks/crashHandler.js +7 -7
  54. package/dist/commonjs/editor.d.ts +13 -0
  55. package/dist/commonjs/editor.js +1 -0
  56. package/dist/commonjs/helpers/index.d.ts +1 -0
  57. package/dist/commonjs/helpers/index.js +1 -1
  58. package/dist/commonjs/helpers/settingsStore.js +1 -1
  59. package/dist/commonjs/helpers/telemetry.js +1 -1
  60. package/dist/commonjs/i18n/index.js +1 -1
  61. package/dist/commonjs/i18n/locales/ar.json +1 -1
  62. package/dist/commonjs/i18n/locales/bn.json +1 -1
  63. package/dist/commonjs/i18n/locales/de.json +1 -1
  64. package/dist/commonjs/i18n/locales/en.json +1 -1
  65. package/dist/commonjs/i18n/locales/es.json +1 -1
  66. package/dist/commonjs/i18n/locales/fr.json +1 -1
  67. package/dist/commonjs/i18n/locales/gu.json +1 -1
  68. package/dist/commonjs/i18n/locales/hi.json +1 -1
  69. package/dist/commonjs/i18n/locales/id.json +1 -1
  70. package/dist/commonjs/i18n/locales/it.json +1 -1
  71. package/dist/commonjs/i18n/locales/ja.json +1 -1
  72. package/dist/commonjs/i18n/locales/kn.json +1 -1
  73. package/dist/commonjs/i18n/locales/ko.json +1 -1
  74. package/dist/commonjs/i18n/locales/ml.json +1 -1
  75. package/dist/commonjs/i18n/locales/mr.json +1 -1
  76. package/dist/commonjs/i18n/locales/nl.json +1 -1
  77. package/dist/commonjs/i18n/locales/pa.json +1 -1
  78. package/dist/commonjs/i18n/locales/pl.json +1 -1
  79. package/dist/commonjs/i18n/locales/pt.json +1 -1
  80. package/dist/commonjs/i18n/locales/ru.json +1 -1
  81. package/dist/commonjs/i18n/locales/ta.json +1 -1
  82. package/dist/commonjs/i18n/locales/te.json +1 -1
  83. package/dist/commonjs/i18n/locales/tr.json +1 -1
  84. package/dist/commonjs/i18n/locales/vi.json +1 -1
  85. package/dist/commonjs/i18n/locales/zh.json +1 -1
  86. package/dist/commonjs/index.d.ts +4 -1
  87. package/dist/commonjs/index.js +3 -3
  88. package/dist/commonjs/native/NativeInspector.d.ts +3 -0
  89. package/dist/commonjs/native/NativeInspector.js +1 -1
  90. package/dist/commonjs/native/NativeNetworkInspector.d.ts +4 -0
  91. package/dist/commonjs/styles/AppColors.d.ts +42 -2
  92. package/dist/commonjs/styles/AppColors.js +1 -1
  93. package/dist/commonjs/styles/common.js +1 -1
  94. package/dist/commonjs/styles/index.d.ts +7 -0
  95. package/dist/commonjs/styles/index.js +1 -1
  96. package/dist/commonjs/types/editor.d.ts +96 -0
  97. package/dist/commonjs/types/editor.js +1 -0
  98. package/dist/commonjs/types/interfaces.d.ts +21 -0
  99. package/dist/esm/capture.d.ts +2 -0
  100. package/dist/esm/capture.js +1 -1
  101. package/dist/esm/components/AnalyticsDetail.js +31 -31
  102. package/dist/esm/components/AnalyticsEventCard.js +1 -1
  103. package/dist/esm/components/AnalyticsGraph.js +74 -74
  104. package/dist/esm/components/AnimatedBrandOwl.js +114 -114
  105. package/dist/esm/components/AppHeaderLogo.js +7 -7
  106. package/dist/esm/components/BrandCircleIcon.js +70 -70
  107. package/dist/esm/components/BrandSquareIcon.js +61 -61
  108. package/dist/esm/components/ConsoleLogCard.js +1 -1
  109. package/dist/esm/components/Inspector/AnalyticsTab.js +14 -14
  110. package/dist/esm/components/Inspector/ConfirmationModal.js +23 -25
  111. package/dist/esm/components/Inspector/ConsoleTab.js +17 -17
  112. package/dist/esm/components/Inspector/CrashTab.js +202 -169
  113. package/dist/esm/components/Inspector/DeviceInfoTab.js +75 -75
  114. package/dist/esm/components/Inspector/FabLauncher.js +56 -51
  115. package/dist/esm/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
  116. package/dist/esm/components/Inspector/FloatingCaptureWidget.js +54 -0
  117. package/dist/esm/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
  118. package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +234 -0
  119. package/dist/esm/components/Inspector/InspectorHeader.js +162 -152
  120. package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +1 -1
  121. package/dist/esm/components/Inspector/LanguageSelectorModal.js +140 -58
  122. package/dist/esm/components/Inspector/MainScreen.js +61 -54
  123. package/dist/esm/components/Inspector/MediaGalleryTab.js +55 -52
  124. package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +36 -0
  125. package/dist/esm/components/Inspector/MediaPreviewModal.js +345 -123
  126. package/dist/esm/components/Inspector/NetworkTab.js +74 -74
  127. package/dist/esm/components/Inspector/PushCard.js +1 -1
  128. package/dist/esm/components/Inspector/PushDetail.js +18 -18
  129. package/dist/esm/components/Inspector/PushTab.js +1 -1
  130. package/dist/esm/components/Inspector/ReduxTab.js +18 -16
  131. package/dist/esm/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
  132. package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +43 -0
  133. package/dist/esm/components/Inspector/SettingsPanel.js +224 -195
  134. package/dist/esm/components/Inspector/SocketCard.js +8 -8
  135. package/dist/esm/components/Inspector/SocketDetail.js +106 -96
  136. package/dist/esm/components/Inspector/SocketTab.js +18 -18
  137. package/dist/esm/components/Inspector/StorageTab.js +47 -47
  138. package/dist/esm/components/Inspector/SupportModal.js +64 -64
  139. package/dist/esm/components/Inspector/SupportPage.js +5 -5
  140. package/dist/esm/components/JsonViewer.js +51 -49
  141. package/dist/esm/components/LogCard.js +41 -39
  142. package/dist/esm/components/ModuleErrorBoundary.js +10 -10
  143. package/dist/esm/components/NetworkIcons.d.ts +27 -0
  144. package/dist/esm/components/NetworkIcons.js +101 -3
  145. package/dist/esm/constants/version.d.ts +1 -1
  146. package/dist/esm/constants/version.js +1 -1
  147. package/dist/esm/crash.d.ts +1 -1
  148. package/dist/esm/crash.js +1 -1
  149. package/dist/esm/customHooks/crashHandler.d.ts +2 -1
  150. package/dist/esm/customHooks/crashHandler.js +7 -7
  151. package/dist/esm/editor.d.ts +13 -0
  152. package/dist/esm/editor.js +1 -0
  153. package/dist/esm/helpers/index.d.ts +1 -0
  154. package/dist/esm/helpers/index.js +4 -4
  155. package/dist/esm/helpers/settingsStore.js +1 -1
  156. package/dist/esm/helpers/telemetry.js +1 -1
  157. package/dist/esm/i18n/index.js +1 -1
  158. package/dist/esm/i18n/locales/ar.json +1 -1
  159. package/dist/esm/i18n/locales/bn.json +1 -1
  160. package/dist/esm/i18n/locales/de.json +1 -1
  161. package/dist/esm/i18n/locales/en.json +1 -1
  162. package/dist/esm/i18n/locales/es.json +1 -1
  163. package/dist/esm/i18n/locales/fr.json +1 -1
  164. package/dist/esm/i18n/locales/gu.json +1 -1
  165. package/dist/esm/i18n/locales/hi.json +1 -1
  166. package/dist/esm/i18n/locales/id.json +1 -1
  167. package/dist/esm/i18n/locales/it.json +1 -1
  168. package/dist/esm/i18n/locales/ja.json +1 -1
  169. package/dist/esm/i18n/locales/kn.json +1 -1
  170. package/dist/esm/i18n/locales/ko.json +1 -1
  171. package/dist/esm/i18n/locales/ml.json +1 -1
  172. package/dist/esm/i18n/locales/mr.json +1 -1
  173. package/dist/esm/i18n/locales/nl.json +1 -1
  174. package/dist/esm/i18n/locales/pa.json +1 -1
  175. package/dist/esm/i18n/locales/pl.json +1 -1
  176. package/dist/esm/i18n/locales/pt.json +1 -1
  177. package/dist/esm/i18n/locales/ru.json +1 -1
  178. package/dist/esm/i18n/locales/ta.json +1 -1
  179. package/dist/esm/i18n/locales/te.json +1 -1
  180. package/dist/esm/i18n/locales/tr.json +1 -1
  181. package/dist/esm/i18n/locales/vi.json +1 -1
  182. package/dist/esm/i18n/locales/zh.json +1 -1
  183. package/dist/esm/index.d.ts +4 -1
  184. package/dist/esm/index.js +5 -5
  185. package/dist/esm/native/NativeInspector.d.ts +3 -0
  186. package/dist/esm/native/NativeInspector.js +1 -1
  187. package/dist/esm/native/NativeNetworkInspector.d.ts +4 -0
  188. package/dist/esm/styles/AppColors.d.ts +42 -2
  189. package/dist/esm/styles/AppColors.js +1 -1
  190. package/dist/esm/styles/common.js +1 -1
  191. package/dist/esm/styles/index.d.ts +7 -0
  192. package/dist/esm/styles/index.js +1 -1
  193. package/dist/esm/types/editor.d.ts +96 -0
  194. package/dist/esm/types/editor.js +1 -0
  195. package/dist/esm/types/interfaces.d.ts +21 -0
  196. package/editor.d.ts +1 -0
  197. package/editor.js +1 -0
  198. package/ios/NetworkInspectorModule.mm +429 -0
  199. package/package.json +10 -1
  200. package/react-native-inapp-inspector.podspec +1 -1
  201. package/src/native/NativeInspector.ts +57 -4
  202. package/src/native/NativeNetworkInspector.ts +4 -0
@@ -1,150 +1,372 @@
1
- import{useState as B}from"react";import{Image as Z,Modal as Oe,Platform as k,Share as _,StatusBar as W,StyleSheet as M,Text as T,TouchableOpacity as R,View as C}from"react-native";import Fe from"react-native-linear-gradient";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import P from"../TouchableScale";import{ConfirmationModal as De}from"./ConfirmationModal";import{ChevronDownIcon as Ee,CopyIcon as H,ExpandCollapseIcon as We,FilmIcon as L,GifIcon as U,ImageIcon as Me,PlayIcon as Ce,ShareIcon as Te,TrashIcon as Se}from"../NetworkIcons";import{ScreenCapture as He}from"../../capture";import{copyImageOrMediaToClipboard as Le,formatBytes as $}from"../../helpers";import{showToast as V}from"../../helpers/toast";import{useTranslation as je}from"../../i18n";import{triggerNativeHaptic as Ue}from"../../native/NativeInspector";export const MediaPreviewModal=({item:o,visible:ve,onClose:F,onDelete:Pe,onConvertToGif:D})=>{const{t:r}=je(),[A,N]=B(!1),[Ie,q]=B(!1),[z,ze]=B(!1),[Be,J]=B(!1),[ke,E]=B(!1);if(!o)return null;const G=()=>{o?.uri&&Le(o.uri,o.type==="image"?"Image":"Media")},K=async()=>{try{J(!0),await He.playVideo(o.uri)}catch{V(r("mediaGallery.playError","Unable to play video"))}finally{J(!1)}},Q=()=>{Ue("medium"),E(!0)},Re=async()=>{if(D){N(!0);try{await D(o),V(r("mediaGallery.convertedSuccess"))}catch{V(r("mediaGallery.convertFailed"))}finally{N(!1)}}},X=async()=>{try{const O=o.uri.startsWith("file://")||o.uri.startsWith("content://")||o.uri.startsWith("http")?o.uri:`file://${o.uri}`,Ge=k.select({ios:{url:O,title:o.filename},default:{title:o.filename,message:o.filename,url:O}});(await _.share(Ge)).action===_.sharedAction&&V(r("mediaGallery.shareSuccess","Shared successfully"))}catch(O){O?.message!=="User did not share"&&V(r("mediaGallery.shareUnavailable","Sharing not available on this device"))}},v=o.type==="video",Y=o.type==="gif",I=o.durationMs?(o.durationMs/1e3).toFixed(1):null,Ve=I?`00:${Number(I)<10?"0":""}${I}`:null;return<Oe visible={ve}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={F}>
2
- <W translucent backgroundColor="transparent"barStyle="light-content"/>
3
- <C style={e.overlay}>
1
+ import fo,{useRef as J,useState as R}from"react";import{Dimensions as ge,Image as Tt,Modal as Ct,PanResponder as kt,Platform as je,SafeAreaView as To,ScrollView as Be,Share as St,StatusBar as Ue,StyleSheet as ee,Text as S,TextInput as Co,TouchableOpacity as A,View as T}from"react-native";import So from"react-native-linear-gradient";import Bt,{G as Bo,Line as Re,Path as Rt,Rect as Ro}from"react-native-svg";import{AppColors as o}from"../../styles/AppColors";import{AppFonts as F}from"../../styles/AppFonts";import G from"../TouchableScale";import{ConfirmationModal as Mo}from"./ConfirmationModal";import{BlurIcon as Po,CircleIconOutline as Io,CloseWhite as Me,CopyIcon as Mt,CropIcon as Ao,EllipseIconOutline as Fo,FilmIcon as Xe,GifIcon as Ye,ImageIcon as $o,PenIcon as Vo,PlayIcon as Pt,RectangleIcon as Do,ResizeIcon as Oo,RotateIcon as It,ScissorsIcon as Wo,ShapesIcon as Lo,ShareIcon as Ho,TrashIcon as Go,TypeIcon as Eo,UndoIcon as Uo,VolumeXIcon as Xo,ZoomInIcon as Yo,ZoomOutIcon as Zo}from"../NetworkIcons";import{ScreenCapture as No}from"../../capture";import{MediaEditor as be}from"../../editor";import{copyImageOrMediaToClipboard as _o,formatBytes as Ze}from"../../helpers";import{showToast as E}from"../../helpers/toast";import{useTranslation as qo}from"../../i18n";import{triggerNativeHaptic as $}from"../../native/NativeInspector";const At=["#EF4444","#F59E0B","#38BDF8","#10B981","#A855F7","#FFFFFF","#0F172A"];export const MediaPreviewModal=({item:k,visible:Ne,onClose:Pe,onDelete:Ft,onConvertToGif:pe})=>{const{t:z}=qo(),[_e,qe]=R(!1),[ie,Y]=R(!1),[$t,re]=R(null),[Vt,ae]=R(k?.width),[Dt,le]=R(k?.height),[Ot,ne]=R(k?.sizeBytes),[Wt,Ie]=R(k?.durationMs),[Lt,Ae]=R(!1),[Ht,Ke]=R(!1),[Gt,Fe]=R(!1),[v,Z]=R("none"),[Je,me]=R(1),[se,Qe]=R(0),[$e,Et]=R("free"),[r,H]=R({x:.1,y:.15,width:.8,height:.7}),[N,et]=R("#EF4444"),[fe,jt]=R(4),[ye,we]=R([]),[Ve,xe]=R(null),[Ko,Ut]=R("rect"),[Xt,De]=R([]),[Yt,Te]=R([]),[Zt,ue]=R(!1),[tt,ot]=R(null),[Ce,ke]=R(""),[Nt,Oe]=R([]),Jo=J(null),[it,rt]=R({width:ge.get("window").width-16,height:ge.get("window").height*.72,pageX:0,pageY:0}),te=J(v);te.current=v;const at=J(N);at.current=N;const lt=J(fe);lt.current=fe;const nt=J(r);nt.current=r;const We=J(it);We.current=it;const _t=J(kt.create({onStartShouldSetPanResponder:()=>te.current==="draw",onMoveShouldSetPanResponder:()=>te.current==="draw",onPanResponderGrant:t=>{const{locationX:i,locationY:C}=t.nativeEvent;xe([{x:i,y:C}])},onPanResponderMove:t=>{const{locationX:i,locationY:C}=t.nativeEvent;xe(O=>O?[...O,{x:i,y:C}]:[{x:i,y:C}])},onPanResponderRelease:()=>{xe(t=>(t&&t.length>1&&we(i=>[...i,{id:`stroke_${Date.now()}_${Math.random()}`,points:t,color:at.current,strokeWidth:lt.current}]),null))}})).current,Se=J({mode:"none",startX:0,startY:0,origBox:{x:.08,y:.1,width:.84,height:.75}}),qt=J(kt.create({onStartShouldSetPanResponder:()=>te.current==="crop",onStartShouldSetPanResponderCapture:()=>te.current==="crop",onMoveShouldSetPanResponder:()=>te.current==="crop",onMoveShouldSetPanResponderCapture:()=>te.current==="crop",onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:t=>{const i=We.current,C=i.width>50?i.width:ge.get("window").width-16,O=i.height>50?i.height:ge.get("window").height*.72,{locationX:he,locationY:_}=t.nativeEvent,V=Math.max(0,Math.min(1,he/C)),I=Math.max(0,Math.min(1,_/O)),X=nt.current,q=X.x,Q=X.y,M=X.x+X.width,P=X.y+X.height,W=Math.max(.08,40/C),L=Math.max(.08,40/O);let B="none";Math.abs(V-q)<=W&&Math.abs(I-Q)<=L?B="tl":Math.abs(V-M)<=W&&Math.abs(I-Q)<=L?B="tr":Math.abs(V-q)<=W&&Math.abs(I-P)<=L?B="bl":Math.abs(V-M)<=W&&Math.abs(I-P)<=L?B="br":Math.abs(I-Q)<=L&&V>=q&&V<=M?B="top":Math.abs(I-P)<=L&&V>=q&&V<=M?B="bottom":Math.abs(V-q)<=W&&I>=Q&&I<=P?B="left":Math.abs(V-M)<=W&&I>=Q&&I<=P?B="right":V>=q&&V<=M&&I>=Q&&I<=P?B="center":B="new",Se.current={mode:B,startX:V,startY:I,origBox:{...X}}},onPanResponderMove:(t,i)=>{const C=We.current,O=C.width>0?C.width:ge.get("window").width-16,he=C.height>0?C.height:ge.get("window").height*.7;if(!O||!he)return;const _=i.dx/O,V=i.dy/he,{mode:I,startX:X,startY:q,origBox:Q}=Se.current,{x:M,y:P,width:W,height:L}=Q;if(I==="center"){const B=Math.max(0,Math.min(1-W,M+_)),j=Math.max(0,Math.min(1-L,P+V));H(Ee=>({...Ee,x:B,y:j}))}else if(I==="new"){const B=Math.max(0,Math.min(1,X+_)),j=Math.max(0,Math.min(1,q+V)),Ee=Math.min(X,B),bo=Math.min(q,j),po=Math.max(.04,Math.abs(B-X)),mo=Math.max(.04,Math.abs(j-q));H({x:Ee,y:bo,width:po,height:mo})}else if(I==="tl"){const B=Math.max(0,Math.min(M+W-.04,M+_)),j=Math.max(0,Math.min(P+L-.04,P+V));H({x:B,y:j,width:W-(B-M),height:L-(j-P)})}else if(I==="tr"){const B=Math.max(0,Math.min(P+L-.04,P+V)),j=Math.max(.04,Math.min(1-M,W+_));H({x:M,y:B,width:j,height:L-(B-P)})}else if(I==="bl"){const B=Math.max(0,Math.min(M+W-.04,M+_)),j=Math.max(.04,Math.min(1-P,L+V));H({x:B,y:P,width:W-(B-M),height:j})}else if(I==="br"){const B=Math.max(.04,Math.min(1-M,W+_)),j=Math.max(.04,Math.min(1-P,L+V));H({x:M,y:P,width:B,height:j})}else if(I==="top"){const B=Math.max(0,Math.min(P+L-.04,P+V));H({x:M,y:B,width:W,height:L-(B-P)})}else if(I==="bottom"){const B=Math.max(.04,Math.min(1-P,L+V));H({x:M,y:P,width:W,height:B})}else if(I==="left"){const B=Math.max(0,Math.min(M+W-.04,M+_));H({x:B,y:P,width:W-(B-M),height:L})}else if(I==="right"){const B=Math.max(.04,Math.min(1-M,W+_));H({x:M,y:P,width:B,height:L})}},onPanResponderRelease:()=>{Se.current.mode="none"},onPanResponderTerminate:()=>{Se.current.mode="none"}})).current;if(fo.useEffect(()=>{k?.uri&&(re(k.uri),ae(k.width),le(k.height),ne(k.sizeBytes),Ie(k.durationMs),Ae(!1),Qe(0),me(1),Z("none"),we([]),xe(null),De([]),Te([]),Oe([]),H({x:.08,y:.1,width:.84,height:.75}))},[k?.uri,k?.width,k?.height,k?.sizeBytes,k?.durationMs]),!k||!Ne)return null;const D=$t||k.uri,de=Vt??k.width,ce=Dt??k.height,st=Ot??k.sizeBytes,Le=Wt??k.durationMs,K=k.type==="video",dt=k.type==="gif",U=k.type==="image",Kt=se===90||se===270?de&&ce?Math.min(ce/de,de/ce,.75):.72:1,Jt=()=>{$("light"),me(t=>Math.min(4,parseFloat((t+.25).toFixed(2))))},Qt=()=>{$("light"),me(t=>Math.max(1,parseFloat((t-.25).toFixed(2))))},eo=()=>{$("medium"),me(1)},to=async()=>{if(!D||!U)return;$("light");const t=(se+90)%360;if(Qe(t),E(z("mediaGallery.rotatedSuccess",`Rotated ${t}\xB0`)),!ie){Y(!0);try{const i=await be.editPhoto({uri:D,rotation:90});i?.uri&&(re(i.uri),i.width&&ae(i.width),i.height&&le(i.height),i.size&&ne(i.size))}catch{}finally{Y(!1)}}},oo=()=>{$("light"),we(t=>t.slice(0,-1))},io=()=>{$("medium"),we([])},ro=t=>{$("light"),Z("crop"),Et(t),H(t==="1:1"?{x:.15,y:.2,width:.7,height:.7}:t==="4:3"?{x:.1,y:.2,width:.8,height:.6}:t==="16:9"?{x:.05,y:.25,width:.9,height:.506}:t==="9:16"?{x:.25,y:.1,width:.5,height:.888}:t==="3:2"?{x:.1,y:.2,width:.8,height:.533}:{x:.08,y:.1,width:.84,height:.75})},ao=async()=>{if(!(!D||!U)){$("medium"),Y(!0);try{const t=await be.cropToDefect(D,{x:r.x,y:r.y,width:r.width,height:r.height,isNormalized:!0});t?.uri&&(re(t.uri),t.width&&ae(t.width),t.height&&le(t.height),t.size&&ne(t.size),E(z("mediaGallery.croppedSuccess","Image Cropped")),Z("none"))}catch{E(z("mediaGallery.cropFailed","Crop failed"))}finally{Y(!1)}}},He=t=>{$("light"),Ut(t);const i={id:`shape_${Date.now()}`,type:t,x:.25,y:.35,width:t==="circle"?.4:.5,height:t==="circle"?.4:.25,color:N};De(C=>[...C,i]),E(z("mediaGallery.shapeAdded",`${t.toUpperCase()} Added`))},lo=()=>{$("light");const t={id:`blur_${Date.now()}`,x:.12,y:.35,width:.76,height:.12};Oe(i=>[...i,t]),E(z("mediaGallery.blurAdded","Blur Mask Added"))},ct=t=>{$("light"),t?(ot(t),ke(t.text)):(ot(null),ke("")),ue(!0)},no=()=>{if(!Ce.trim()){ue(!1);return}if(tt)Te(t=>t.map(i=>i.id===tt.id?{...i,text:Ce.trim(),color:N}:i));else{const t={id:`text_${Date.now()}`,text:Ce.trim(),x:.2,y:.4,color:o.white,bgColor:N==="#FFFFFF"?"#0F172A":N};Te(i=>[...i,t])}ue(!1),ke(""),E(z("mediaGallery.textAdded","Text Added"))},so=async t=>{if(!(!D||!U||ie)){$("medium"),Y(!0);try{const i=await be.editPhoto({uri:D,quality:.85,crop:{x:0,y:0,width:1,height:1,isNormalized:!0}});if(i?.uri){re(i.uri);const C=Math.round((de||1080)*t),O=Math.round((ce||1920)*t);ae(C),le(O),i.size&&ne(Math.round(i.size*t*t)),E(z("mediaGallery.resizedSuccess",`Resized to ${Math.round(t*100)}% (${C}\xD7${O})`)),Z("none")}}catch{E(z("mediaGallery.resizeFailed","Resize failed"))}finally{Y(!1)}}},Ge=()=>{D&&($("light"),_o(D,U?"Image":"Media"))},co=async()=>{try{$("light");const t=D.startsWith("file://")||D.startsWith("content://")||D.startsWith("http")?D:`file://${D}`,i=je.select({ios:{url:t,title:k.filename},default:{title:k.filename,message:k.filename,url:t}});(await St.share(i)).action===St.sharedAction&&E(z("mediaGallery.shareSuccess","Shared successfully"))}catch(t){t?.message!=="User did not share"&&E(z("mediaGallery.shareUnavailable","Sharing not available on this device"))}},ho=()=>{$("medium"),Fe(!0)},ht=async()=>{if(pe){qe(!0);try{await pe(k),E(z("mediaGallery.convertedSuccess","Converted to GIF!"))}catch{E(z("mediaGallery.convertFailed","Conversion failed"))}finally{qe(!1)}}},gt=async()=>{try{Ke(!0),await No.playVideo(D)}catch{E(z("mediaGallery.playError","Unable to play video"))}finally{Ke(!1)}},go=async()=>{if(!(!D||!K||ie)){Y(!0),$("light");try{const i=Math.min(Le||1e4,5e3),C=await be.trimReproClip(D,0,i,{quality:"medium"});C?.uri&&(re(C.uri),C.width&&ae(C.width),C.height&&le(C.height),C.size&&ne(C.size),C.durationMs&&Ie(C.durationMs),E(z("mediaGallery.trimmedSuccess","Trimmed to 5s Repro Clip")))}catch{E(z("mediaGallery.trimFailed","Trim failed"))}finally{Y(!1)}}},yo=async()=>{if(!(!D||!K||ie)){Y(!0),$("light");try{const t=await be.muteVideo(D);t?.uri&&(re(t.uri),t.width&&ae(t.width),t.height&&le(t.height),t.size&&ne(t.size),t.durationMs&&Ie(t.durationMs),E(z("mediaGallery.mutedSuccess","Audio Stripped")))}catch{E(z("mediaGallery.muteFailed","Mute failed"))}finally{Y(!1)}}},oe=Le?(Le/1e3).toFixed(1):null,uo=oe?`00:${Number(oe)<10?"0":""}${oe}`:null;return<Ct visible={Ne}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={Pe}>
2
+ <Ue translucent backgroundColor="transparent"barStyle="light-content"/>
3
+ <T style={e.overlay}>
4
4
 
5
- <Fe colors={[t.indigo600,t.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={e.header}>
6
- <R activeOpacity={.8}onPress={G}style={e.headerLeft}>
7
- <C style={e.badge}>
8
- {v?<L size={12}color={t.white}/>:Y?<U size={12}color={t.white}/>:<Me size={12}color={t.white}/>}
9
- <T style={e.badgeText}>
10
- {o.format.toUpperCase()}
5
+ <T style={e.header}>
6
+ <So colors={[o.indigo600,o.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={ee.absoluteFill}pointerEvents="none"/>
7
+ <T style={e.headerInner}>
8
+ <A activeOpacity={.8}onPress={Ge}style={e.headerLeft}>
9
+ <T style={e.badge}>
10
+ {K?<Xe size={11}color={o.white}/>:dt?<Ye size={11}color={o.white}/>:<$o size={11}color={o.white}/>}
11
+ <S style={e.badgeText}>
12
+ {(k.format||(K?"mp4":dt?"gif":"png")).toUpperCase()}
13
+ </S>
11
14
  </T>
12
- </C>
13
- <C style={e.headerTextCol}>
14
- <T style={e.title}numberOfLines={1}>
15
- {o.filename}
15
+ <T style={e.headerTextCol}>
16
+ <S style={e.title}numberOfLines={1}>
17
+ {k.filename||(k.uri?k.uri.split("/").pop():"")||"Capture"}
18
+ </S>
19
+ <S style={e.subtitle}numberOfLines={1}>
20
+ {Ze(st||0)}
21
+ {k.timestamp?` \u2022 ${new Date(k.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`:""}
22
+ </S>
16
23
  </T>
17
- <T style={e.subtitle}>
18
- {$(o.sizeBytes)} • {new Date(o.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}
19
- </T>
20
- </C>
21
- </R>
24
+ </A>
22
25
 
23
-
24
- <C style={e.headerRight}>
25
- <P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.copyUri","Copy URI")}onPress={G}style={e.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
26
- <H size={13}color={t.white}/>
27
- </P>
26
+
27
+ <T style={e.headerRight}>
28
+ {K&&pe&&<G accessible={!0}accessibilityRole="button"accessibilityLabel={z("mediaGallery.convertToGif","Convert to GIF")}onPress={ht}disabled={_e}style={[e.headerActionBtn,{backgroundColor:`${o.warningAmber}33`,borderColor:`${o.warningAmber}66`}]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
29
+ <Ye size={13}color={o.warningAmber}/>
30
+ </G>}
28
31
 
29
- <P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.share","Share")}onPress={X}style={e.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
30
- <Te size={13}color={t.white}/>
31
- </P>
32
+ <G accessible={!0}accessibilityRole="button"accessibilityLabel={z("mediaGallery.copyUri","Copy URI")}onPress={Ge}style={e.headerActionBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
33
+ <Mt size={13}color={o.white}/>
34
+ </G>
32
35
 
33
- <P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.delete")}onPress={Q}style={e.headerDeleteBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
34
- <Se size={13}color={t.white}/>
35
- </P>
36
+ <G accessible={!0}accessibilityRole="button"accessibilityLabel={z("mediaGallery.share","Share")}onPress={co}style={e.headerActionBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
37
+ <Ho size={13}color={o.white}/>
38
+ </G>
36
39
 
37
- <R accessible={!0}accessibilityRole="button"accessibilityLabel={z?r("mediaGallery.collapse","Exit Fullscreen"):r("mediaGallery.expand","Expand Fullscreen")}onPress={()=>ze(!z)}style={e.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
38
- <We size={13}isExpanded={z}color={t.white}/>
39
- </R>
40
+ <G accessible={!0}accessibilityRole="button"accessibilityLabel={z("mediaGallery.delete","Delete")}onPress={ho}style={e.headerDeleteBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
41
+ <Go size={13}color={o.white}/>
42
+ </G>
40
43
 
41
- <R accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.minimize","Minimize")}onPress={F}style={e.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
42
- <Ee size={14}color={t.white}/>
43
- </R>
44
- </C>
45
- </Fe>
44
+ <A accessible={!0}accessibilityRole="button"accessibilityLabel={z("common.close","Close")}onPress={Pe}style={e.headerCloseBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
45
+ <Me size={12}/>
46
+ </A>
47
+ </T>
48
+ </T>
49
+ </T>
46
50
 
47
51
 
48
- <C style={[e.stage,z&&e.stageExpanded]}>
49
- <R activeOpacity={v?.92:1}onPress={v?K:void 0}style={[e.previewCard,z&&e.previewCardExpanded]}>
50
- {v?o.thumbnailUri&&!Ie?<>
51
- <Z source={{uri:o.thumbnailUri}}style={e.image}resizeMode="contain"onError={()=>q(!0)}/>
52
- <C style={e.videoImageOverlay}/>
53
- </>:<C style={e.videoFallbackBackdrop}>
54
- <C style={e.videoFallbackGlow}/>
55
- <L size={52}color={t.sky400}/>
56
- <T style={e.videoFallbackTitle}>
57
- {o.width&&o.height?`${o.width} \xD7 ${o.height}`:"HD Video Recording"}
52
+ <To style={e.stageSafe}>
53
+ <T style={e.stage}>
54
+ <T onLayout={t=>{const{width:i,height:C}=t.nativeEvent.layout;i>20&&C>20&&rt(O=>({...O,width:i,height:C}))}}style={e.previewCard}>
55
+ {K?k.thumbnailUri&&!Lt?<>
56
+ <Tt source={{uri:k.thumbnailUri}}style={e.image}resizeMode="contain"onError={()=>Ae(!0)}/>
57
+ <T style={e.videoImageOverlay}/>
58
+ </>:<T style={e.videoFallbackBackdrop}>
59
+ <T style={e.videoFallbackGlow}/>
60
+ <Xe size={52}color={o.sky400}/>
61
+ <S style={e.videoFallbackTitle}>
62
+ {k.width&&k.height?`${k.width} \xD7 ${k.height}`:"HD Video Recording"}
63
+ </S>
64
+ <S style={e.videoFallbackSubtitle}>
65
+ {oe?`${oe}s duration`:"MP4 Video"} • {Ze(k.sizeBytes)}
66
+ </S>
67
+ </T>:<T onLayout={t=>{const{width:i,height:C}=t.nativeEvent.layout;i>20&&C>20&&rt(O=>({...O,width:i,height:C}))}}style={[e.canvasContainer,{transform:[{scale:Je*Kt},{rotate:`${se}deg`}]}]}{...v==="draw"?_t.panHandlers:{}}>
68
+ <Tt key={D}source={{uri:D}}style={e.image}resizeMode="contain"onError={()=>Ae(!0)}/>
69
+
70
+
71
+ <Bt style={ee.absoluteFill}pointerEvents={v==="draw"?"auto":"none"}>
72
+ <Bo>
73
+ {ye.map(t=>{if(t.points.length<2)return null;const i=t.points.reduce((C,O,he)=>he===0?`M ${O.x} ${O.y}`:`${C} L ${O.x} ${O.y}`,"");return<Rt key={t.id}d={i}stroke={t.color}strokeWidth={t.strokeWidth}strokeLinecap="round"strokeLinejoin="round"fill="none"/>})}
74
+ {Ve&&Ve.length>1&&<Rt d={Ve.reduce((t,i,C)=>C===0?`M ${i.x} ${i.y}`:`${t} L ${i.x} ${i.y}`,"")}stroke={N}strokeWidth={fe}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}
75
+ </Bo>
76
+ </Bt>
77
+
78
+
79
+ {Xt.map(t=><T key={t.id}style={[e.shapeItem,{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.width*100}%`,height:`${t.height*100}%`,borderColor:t.color,borderRadius:t.type==="circle"?999:t.type==="ellipse"?36:8}]}>
80
+ <A style={e.shapeDeleteBadge}onPress={()=>{$("light"),De(i=>i.filter(C=>C.id!==t.id))}}>
81
+ <Me size={8}/>
82
+ </A>
83
+ </T>)}
84
+
85
+
86
+ {Nt.map(t=><T key={t.id}style={[e.blurItem,{left:`${t.x*100}%`,top:`${t.y*100}%`,width:`${t.width*100}%`,height:`${t.height*100}%`}]}>
87
+ <S style={e.blurItemText}>PRIVACY MASK</S>
88
+ <A style={e.shapeDeleteBadge}onPress={()=>{$("light"),Oe(i=>i.filter(C=>C.id!==t.id))}}>
89
+ <Me size={8}/>
90
+ </A>
91
+ </T>)}
92
+
93
+
94
+ {Yt.map(t=><A key={t.id}activeOpacity={.85}onPress={()=>ct(t)}style={[e.textAnnotationPill,{left:`${t.x*100}%`,top:`${t.y*100}%`,backgroundColor:t.bgColor}]}>
95
+ <S style={[e.textAnnotationText,{color:t.color}]}>
96
+ {t.text}
97
+ </S>
98
+ <A style={e.textDeleteBtn}onPress={()=>{$("light"),Te(i=>i.filter(C=>C.id!==t.id))}}>
99
+ <Me size={8}/>
100
+ </A>
101
+ </A>)}
102
+
103
+
104
+ {v==="crop"&&<T style={e.cropOverlayMask}{...qt.panHandlers}>
105
+
106
+ <T pointerEvents="none"style={[e.cropDimMask,{top:0,left:0,right:0,height:`${r.y*100}%`}]}/>
107
+
108
+ <T pointerEvents="none"style={[e.cropDimMask,{top:`${(r.y+r.height)*100}%`,left:0,right:0,bottom:0}]}/>
109
+
110
+ <T pointerEvents="none"style={[e.cropDimMask,{top:`${r.y*100}%`,left:0,width:`${r.x*100}%`,height:`${r.height*100}%`}]}/>
111
+
112
+ <T pointerEvents="none"style={[e.cropDimMask,{top:`${r.y*100}%`,left:`${(r.x+r.width)*100}%`,right:0,height:`${r.height*100}%`}]}/>
113
+
114
+
115
+ <Bt style={ee.absoluteFill}pointerEvents="none">
116
+ <Ro x={`${r.x*100}%`}y={`${r.y*100}%`}width={`${r.width*100}%`}height={`${r.height*100}%`}stroke="#FFFFFF"strokeWidth="2.5"strokeDasharray="8, 5"fill="rgba(56, 189, 248, 0.10)"/>
117
+ <Re x1={`${r.x*100}%`}y1={`${(r.y+r.height*.333)*100}%`}x2={`${(r.x+r.width)*100}%`}y2={`${(r.y+r.height*.333)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
118
+ <Re x1={`${r.x*100}%`}y1={`${(r.y+r.height*.666)*100}%`}x2={`${(r.x+r.width)*100}%`}y2={`${(r.y+r.height*.666)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
119
+ <Re x1={`${(r.x+r.width*.333)*100}%`}y1={`${r.y*100}%`}x2={`${(r.x+r.width*.333)*100}%`}y2={`${(r.y+r.height)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
120
+ <Re x1={`${(r.x+r.width*.666)*100}%`}y1={`${r.y*100}%`}x2={`${(r.x+r.width*.666)*100}%`}y2={`${(r.y+r.height)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
121
+ </Bt>
122
+
123
+
124
+ <T pointerEvents="none"style={[e.cropBoxFrame,{left:`${r.x*100}%`,top:`${r.y*100}%`,width:`${r.width*100}%`,height:`${r.height*100}%`}]}>
125
+
126
+ <T style={[e.cropCornerBracket,e.bracketTL]}/>
127
+ <T style={[e.cropCornerBracket,e.bracketTR]}/>
128
+ <T style={[e.cropCornerBracket,e.bracketBL]}/>
129
+ <T style={[e.cropCornerBracket,e.bracketBR]}/>
130
+
131
+
132
+ <T style={e.cropEdgeBarTop}/>
133
+ <T style={e.cropEdgeBarBottom}/>
134
+ <T style={e.cropEdgeBarLeft}/>
135
+ <T style={e.cropEdgeBarRight}/>
136
+
137
+
138
+ <T style={e.cropCenterPill}>
139
+ <S style={e.cropCenterPillText}>
140
+ {$e.toUpperCase()} • {Math.round(r.width*100)}% × {Math.round(r.height*100)}%
141
+ </S>
142
+ </T>
143
+ </T>
144
+ </T>}
145
+ </T>}
146
+
147
+
148
+ {K&&<A activeOpacity={.9}onPress={gt}style={e.centerPlayContainer}>
149
+ <T style={e.centerPlayGlow}/>
150
+ <T style={e.centerPlayCircle}>
151
+ <Pt size={28}color={o.white}/>
58
152
  </T>
59
- <T style={e.videoFallbackSubtitle}>
60
- {I?`${I}s duration`:"MP4 Video"} • {$(o.sizeBytes)}
153
+ <T style={e.centerPlayPill}>
154
+ <S style={e.centerPlayText}>
155
+ {Ht?z("mediaGallery.playing","Playing Video..."):z("mediaGallery.playVideo","Play Video")}
156
+ </S>
61
157
  </T>
62
- </C>:<Z source={{uri:o.uri}}style={e.image}resizeMode="contain"onError={()=>q(!0)}/>}
158
+ </A>}
63
159
 
64
-
65
- {v&&<C style={e.centerPlayContainer}pointerEvents="box-none">
66
- <C style={e.centerPlayGlow}/>
67
- <C style={e.centerPlayCircle}>
68
- <Ce size={28}color={t.white}/>
69
- </C>
70
- <C style={e.centerPlayPill}>
71
- <T style={e.centerPlayText}>
72
- {r("mediaGallery.playVideo","Play Video")}
160
+
161
+ {K&&<T style={e.topLeftBadgeOverlay}pointerEvents="none">
162
+ <T style={e.metaPill}>
163
+ <Xe size={11}color={o.sky400}/>
164
+ <S style={e.metaPillText}>
165
+ {uo||(oe?`${oe}s`:"VIDEO")}
166
+ </S>
73
167
  </T>
74
- </C>
75
- </C>}
168
+ </T>}
76
169
 
77
-
78
- {v&&<C style={e.topLeftBadgeOverlay}pointerEvents="none">
79
- <C style={e.metaPill}>
80
- <L size={11}color={t.sky400}/>
81
- <T style={e.metaPillText}>
82
- {Ve||(I?`${I}s`:"VIDEO")}
170
+
171
+ {U&&se>0&&<T style={e.topLeftBadgeOverlay}pointerEvents="none">
172
+ <T style={[e.metaPill,{backgroundColor:"rgba(99, 102, 241, 0.90)"}]}>
173
+ <It size={11}color={o.white}/>
174
+ <S style={e.metaPillText}>{se}°</S>
83
175
  </T>
84
- </C>
85
- </C>}
176
+ </T>}
86
177
 
87
- {Y&&<C style={e.topLeftBadgeOverlay}pointerEvents="none">
88
- <C style={[e.metaPill,{backgroundColor:"rgba(245, 158, 11, 0.85)"}]}>
89
- <U size={11}color={t.white}/>
90
- <T style={e.metaPillText}>ANIMATED GIF</T>
91
- </C>
92
- </C>}
178
+
179
+ <A activeOpacity={.8}onPress={Ge}style={e.bottomRightBadgeOverlay}>
180
+ <T style={e.metaPill}>
181
+ <Mt size={10}color={o.sky400}/>
182
+ <S style={e.metaPillText}>
183
+ {de&&ce?`${de} \xD7 ${ce} \u2022 `:""}
184
+ {Ze(st)}
185
+ </S>
186
+ </T>
187
+ </A>
188
+
189
+
190
+ {U&&<T style={e.floatingZoomBar}>
191
+ <G onPress={Jt}style={e.zoomBtn}accessibilityLabel="Zoom In">
192
+ <Yo size={15}color={o.white}/>
193
+ </G>
194
+
195
+ <A onPress={eo}activeOpacity={.8}style={e.zoomLevelBadge}>
196
+ <S style={e.zoomLevelText}>
197
+ {Math.round(Je*100)}%
198
+ </S>
199
+ </A>
200
+
201
+ <G onPress={Qt}style={e.zoomBtn}accessibilityLabel="Zoom Out">
202
+ <Zo size={15}color={o.white}/>
203
+ </G>
204
+ </T>}
205
+ </T>
93
206
 
94
207
 
95
- <R activeOpacity={.8}onPress={G}style={e.bottomRightBadgeOverlay}>
96
- <C style={e.metaPill}>
97
- <H size={10}color={t.sky400}/>
98
- <T style={e.metaPillText}>
99
- {o.width&&o.height?`${o.width} \xD7 ${o.height} \u2022 `:""}
100
- {$(o.sizeBytes)}
208
+ {U&&v==="crop"&&<T style={e.cropSubToolBar}>
209
+
210
+ <T style={e.cropActionHeaderRow}>
211
+ <S style={e.cropHeaderTitle}>Drag box or corners to crop</S>
212
+ <T style={e.cropActionButtons}>
213
+ <A onPress={()=>Z("none")}style={e.cancelActionBtn}>
214
+ <S style={e.cancelActionText}>Cancel</S>
215
+ </A>
216
+ <A onPress={ao}style={e.applyActionBtn}>
217
+ <S style={e.applyActionText}>Apply Crop</S>
218
+ </A>
219
+ </T>
101
220
  </T>
102
- </C>
103
- </R>
104
- </R>
105
- </C>
106
221
 
107
-
108
- <C style={e.footer}>
109
- {v&&<P onPress={K}style={e.primaryPlayBtn}>
110
- <Ce size={16}color={t.white}/>
111
- <T style={e.primaryPlayText}>
112
- {Be?r("mediaGallery.playing","Playing Video..."):r("mediaGallery.playInPlayer","Play Fullscreen Video")}
113
- </T>
114
- </P>}
222
+
223
+ <Be horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.subToolScroll}>
224
+ {["free","1:1","4:3","16:9","9:16","3:2"].map(t=><A key={t}onPress={()=>ro(t)}style={[e.ratioChip,$e===t&&e.ratioChipActive]}>
225
+ <S style={[e.ratioChipText,$e===t&&e.ratioChipTextActive]}>
226
+ {t.toUpperCase()}
227
+ </S>
228
+ </A>)}
229
+ </Be>
230
+ </T>}
115
231
 
116
- <C style={e.actionsRow}>
117
- <P onPress={G}style={e.actionBtn}>
118
- <H size={14}color={t.grayText}/>
119
- <T style={e.actionText}>
120
- {r("mediaGallery.copyUri","Copy URI")}
121
- </T>
122
- </P>
232
+ {U&&v==="resize"&&<T style={e.subToolBar}>
233
+ <Be horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.subToolScroll}>
234
+ {[{label:"75% HD",scale:.75},{label:"50% Half",scale:.5},{label:"25% Mini",scale:.25}].map(t=><A key={t.label}onPress={()=>so(t.scale)}style={e.ratioChip}>
235
+ <S style={e.ratioChipText}>{t.label}</S>
236
+ </A>)}
237
+ <A onPress={()=>Z("none")}style={e.cancelActionBtn}>
238
+ <S style={e.cancelActionText}>Done</S>
239
+ </A>
240
+ </Be>
241
+ </T>}
123
242
 
124
- {D&&v&&<P onPress={Re}disabled={A}style={[e.actionBtn,{backgroundColor:t.amber100,borderColor:t.amber200}]}>
125
- <U size={15}color={t.amber600}/>
126
- <T style={[e.actionText,{color:t.amber600,fontFamily:S.interBold}]}>
127
- {r(A?"mediaGallery.converting":"mediaGallery.convertToGif")}
128
- </T>
129
- </P>}
243
+ {U&&v==="draw"&&<T style={e.subToolBar}>
244
+ <Be horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.subToolScroll}>
245
+ {At.map(t=><A key={t}onPress={()=>{$("light"),et(t)}}style={[e.colorDot,{backgroundColor:t},N===t&&e.colorDotActive]}/>)}
246
+ <T style={e.subDivider}/>
247
+ {[2,4,8].map(t=><A key={t}onPress={()=>{$("light"),jt(t)}}style={[e.strokeWidthBtn,fe===t&&e.strokeWidthBtnActive]}>
248
+ <T style={[e.strokeDot,{width:t+2,height:t+2,backgroundColor:N}]}/>
249
+ </A>)}
250
+ <A onPress={oo}disabled={ye.length===0}style={[e.actionPillBtn,ye.length===0&&{opacity:.4}]}>
251
+ <Uo size={13}color={o.white}/>
252
+ <S style={e.actionPillText}>Undo</S>
253
+ </A>
254
+ <A onPress={io}disabled={ye.length===0}style={[e.actionPillBtn,ye.length===0&&{opacity:.4}]}>
255
+ <S style={e.actionPillText}>Clear</S>
256
+ </A>
257
+ </Be>
258
+ </T>}
130
259
 
131
- <P onPress={X}style={[e.actionBtn,{backgroundColor:t.indigo600,borderColor:t.indigo600}]}>
132
- <Te size={14}color={t.white}/>
133
- <T style={[e.actionText,{color:t.white,fontFamily:S.interBold}]}>
134
- {r("mediaGallery.share","Share")}
135
- </T>
136
- </P>
260
+ {U&&v==="shapes"&&<T style={e.subToolBar}>
261
+ <Be horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={e.subToolScroll}>
262
+ <A onPress={()=>He("rect")}style={e.shapeOptionBtn}>
263
+ <Do size={14}color={o.sky400}/>
264
+ <S style={e.shapeOptionText}>Rectangle</S>
265
+ </A>
266
+ <A onPress={()=>He("circle")}style={e.shapeOptionBtn}>
267
+ <Io size={14}color={o.amber400}/>
268
+ <S style={e.shapeOptionText}>Circle</S>
269
+ </A>
270
+ <A onPress={()=>He("ellipse")}style={e.shapeOptionBtn}>
271
+ <Fo size={14}color={o.violet600}/>
272
+ <S style={e.shapeOptionText}>Ellipse</S>
273
+ </A>
274
+ <T style={e.subDivider}/>
275
+ {At.slice(0,4).map(t=><A key={t}onPress={()=>{$("light"),et(t)}}style={[e.colorDot,{backgroundColor:t},N===t&&e.colorDotActive]}/>)}
276
+ </Be>
277
+ </T>}
137
278
 
138
- {!v&&<P onPress={Q}style={[e.actionBtn,{backgroundColor:t.red100,borderColor:`${t.red500}4D`}]}>
139
- <Se size={14}color={t.red500}/>
140
- <T style={[e.actionText,{color:t.red500,fontFamily:S.interBold}]}>
141
- {r("mediaGallery.delete","Delete")}
142
- </T>
143
- </P>}
144
- </C>
145
- </C>
146
- </C>
279
+
280
+ <T style={e.bottomTesterDock}>
281
+ {U&&<>
282
+ <G onPress={()=>Z(v==="crop"?"none":"crop")}style={[e.dockToolBtn,v==="crop"&&e.dockToolBtnActive]}>
283
+ <Ao size={16}color={v==="crop"?o.white:o.sky400}/>
284
+ <S style={[e.dockToolLabel,v==="crop"&&{color:o.white}]}>
285
+ Crop
286
+ </S>
287
+ </G>
288
+
289
+ <G onPress={()=>Z(v==="resize"?"none":"resize")}style={[e.dockToolBtn,v==="resize"&&e.dockToolBtnActive]}>
290
+ <Oo size={16}color={v==="resize"?o.white:o.emerald400}/>
291
+ <S style={[e.dockToolLabel,v==="resize"&&{color:o.white}]}>
292
+ Resize
293
+ </S>
294
+ </G>
295
+
296
+ <G onPress={()=>Z(v==="draw"?"none":"draw")}style={[e.dockToolBtn,v==="draw"&&e.dockToolBtnActive]}>
297
+ <Vo size={16}color={v==="draw"?o.white:o.rose400}/>
298
+ <S style={[e.dockToolLabel,v==="draw"&&{color:o.white}]}>
299
+ Draw
300
+ </S>
301
+ </G>
302
+
303
+ <G onPress={()=>Z(v==="shapes"?"none":"shapes")}style={[e.dockToolBtn,v==="shapes"&&e.dockToolBtnActive]}>
304
+ <Lo size={16}color={v==="shapes"?o.white:o.amber400}/>
305
+ <S style={[e.dockToolLabel,v==="shapes"&&{color:o.white}]}>
306
+ Shapes
307
+ </S>
308
+ </G>
309
+
310
+ <G onPress={()=>ct()}style={e.dockToolBtn}>
311
+ <Eo size={16}color={o.indigo400}/>
312
+ <S style={e.dockToolLabel}>Text</S>
313
+ </G>
314
+
315
+ <G onPress={lo}style={e.dockToolBtn}>
316
+ <Po size={16}color={o.sky300}/>
317
+ <S style={e.dockToolLabel}>Blur</S>
318
+ </G>
319
+
320
+ <G onPress={to}style={e.dockToolBtn}>
321
+ <It size={16}color={o.violet600}/>
322
+ <S style={e.dockToolLabel}>Rotate</S>
323
+ </G>
324
+ </>}
325
+
326
+ {K&&<>
327
+ <G onPress={go}disabled={ie}style={e.dockToolBtn}>
328
+ <Wo size={16}color={o.sky400}/>
329
+ <S style={e.dockToolLabel}>{z("media.trim5s","Trim 5s")}</S>
330
+ </G>
331
+
332
+ <G onPress={yo}disabled={ie}style={e.dockToolBtn}>
333
+ <Xo size={16}color={o.amber400}/>
334
+ <S style={e.dockToolLabel}>{z("media.muteAudio","Mute Audio")}</S>
335
+ </G>
336
+
337
+ {pe&&<G onPress={ht}disabled={_e}style={e.dockToolBtn}>
338
+ <Ye size={16}color={o.violet600}/>
339
+ <S style={e.dockToolLabel}>{z("media.toGif","To GIF")}</S>
340
+ </G>}
341
+
342
+ <G onPress={gt}style={[e.dockToolBtn,e.dockPrimaryBtn]}>
343
+ <Pt size={16}color={o.white}/>
344
+ <S style={[e.dockToolLabel,{color:o.white}]}>{z("media.play","Play")}</S>
345
+ </G>
346
+ </>}
347
+ </T>
348
+ </T>
349
+ </To>
350
+ </T>
351
+
352
+
353
+ <Ct visible={Zt}transparent={!0}animationType="fade"onRequestClose={()=>ue(!1)}>
354
+ <T style={e.modalBackdrop}>
355
+ <T style={e.textModalCard}>
356
+ <S style={e.textModalTitle}>Add Text Note / Callout</S>
357
+ <Co style={e.textModalInput}placeholder="e.g. Defect: Button overlap"placeholderTextColor="rgba(255,255,255,0.4)"value={Ce}onChangeText={ke}autoFocus={!0}multiline={!0}/>
358
+ <T style={e.textModalActions}>
359
+ <A onPress={()=>ue(!1)}style={e.modalCancelBtn}>
360
+ <S style={e.modalCancelText}>Cancel</S>
361
+ </A>
362
+ <A onPress={no}style={e.modalConfirmBtn}>
363
+ <S style={e.modalConfirmText}>Place Text</S>
364
+ </A>
365
+ </T>
366
+ </T>
367
+ </T>
368
+ </Ct>
147
369
 
148
370
 
149
- <De visible={ke}title={r("mediaGallery.deleteTitle","Delete Media?")}message={r("mediaGallery.deleteMessage",{filename:o.filename})}confirmText={r("mediaGallery.delete","Delete")}cancelText={r("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{E(!1),Pe(o),F()}}onCancel={()=>E(!1)}/>
150
- </Oe>};const e=M.create({overlay:{flex:1,backgroundColor:t.slate900,justifyContent:"space-between"},header:{flexShrink:0,minHeight:k.OS==="ios"?96:66,flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:k.OS==="ios"?48:W.currentHeight?W.currentHeight+8:18,paddingBottom:14,borderBottomWidth:M.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.25)",zIndex:10},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,minWidth:0,marginRight:8},headerTextCol:{flex:1,minWidth:0},headerRight:{flexDirection:"row",alignItems:"center",gap:7},badge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)"},badgeText:{fontFamily:S.interBold,fontSize:10,letterSpacing:.4,color:t.white},title:{fontFamily:S.interSemiBold,fontSize:13,color:t.white},subtitle:{fontFamily:S.interRegular,fontSize:11,color:"rgba(255, 255, 255, 0.6)",marginTop:1},headerActionBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(239, 68, 68, 0.35)",borderWidth:1,borderColor:"rgba(252, 165, 165, 0.55)",alignItems:"center",justifyContent:"center"},headerIconBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},stage:{flex:1,minHeight:0,alignItems:"center",justifyContent:"center",paddingHorizontal:14,paddingVertical:12,overflow:"hidden"},stageExpanded:{paddingHorizontal:0,paddingVertical:0},previewCard:{flex:1,width:"100%",minHeight:0,borderRadius:16,overflow:"hidden",backgroundColor:t.slate900,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.1)",alignItems:"center",justifyContent:"center",position:"relative"},previewCardExpanded:{borderRadius:0,borderWidth:0},image:{width:"100%",height:"100%"},videoImageOverlay:{...M.absoluteFillObject,backgroundColor:"rgba(10, 13, 20, 0.28)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:t.slate900,alignItems:"center",justifyContent:"center",padding:24},videoFallbackGlow:{position:"absolute",width:150,height:150,borderRadius:75,backgroundColor:"rgba(56, 189, 248, 0.08)"},videoFallbackTitle:{fontFamily:S.interSemiBold,fontSize:15,color:t.white,marginTop:12},videoFallbackSubtitle:{fontFamily:S.interRegular,fontSize:12,color:"rgba(255, 255, 255, 0.6)",marginTop:4},centerPlayContainer:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayGlow:{position:"absolute",width:80,height:80,borderRadius:40,backgroundColor:"rgba(56, 189, 248, 0.22)"},centerPlayCircle:{width:62,height:62,borderRadius:31,backgroundColor:t.sky500,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:t.sky500,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayPill:{backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:12,paddingVertical:4,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},centerPlayText:{fontFamily:S.interBold,fontSize:11.5,color:t.white,letterSpacing:.3},topLeftBadgeOverlay:{position:"absolute",top:12,left:12},bottomRightBadgeOverlay:{position:"absolute",bottom:12,right:12},metaPill:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},metaPillText:{fontFamily:S.interSemiBold,fontSize:11,color:t.white,letterSpacing:.2},footer:{flexShrink:0,paddingHorizontal:16,paddingTop:12,paddingBottom:k.OS==="ios"?34:16,borderTopWidth:1,borderTopColor:t.grayBorderSecondary,backgroundColor:t.white,gap:10,zIndex:10,...k.select({ios:{shadowColor:t.slate900,shadowOffset:{width:0,height:-3},shadowOpacity:.08,shadowRadius:8},android:{elevation:6}})},primaryPlayBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,width:"100%",paddingVertical:12,borderRadius:12,backgroundColor:t.indigo600,shadowColor:t.indigo600,shadowOffset:{width:0,height:3},shadowOpacity:.35,shadowRadius:6,elevation:4},primaryPlayText:{fontFamily:S.interBold,fontSize:13.5,color:t.white,letterSpacing:.3},actionsRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},actionBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:10,paddingHorizontal:12,borderRadius:10,backgroundColor:t.graySurface,borderWidth:1,borderColor:t.grayBorderSecondary},actionText:{fontFamily:S.interSemiBold,fontSize:12,color:t.grayText}});
371
+ <Mo visible={Gt}title={z("mediaGallery.deleteTitle","Delete Media?")}message={z("mediaGallery.deleteMessage",{filename:k.filename})}confirmText={z("mediaGallery.delete","Delete")}cancelText={z("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{Fe(!1),Ft(k),Pe()}}onCancel={()=>Fe(!1)}/>
372
+ </Ct>};const e=ee.create({overlay:{flex:1,backgroundColor:o.slate900},header:{width:"100%",zIndex:10,borderBottomWidth:ee.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.25)"},headerInner:{width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingTop:je.OS==="ios"?52:Ue.currentHeight?Ue.currentHeight+8:18,paddingBottom:12,minHeight:je.OS==="ios"?94:64},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0,marginRight:6},headerTextCol:{flex:1,minWidth:0},headerRight:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},badge:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6,paddingVertical:3,borderRadius:5,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)"},badgeText:{fontFamily:F.interBold,fontSize:9.5,letterSpacing:.4,color:o.white},title:{fontFamily:F.interSemiBold,fontSize:12.5,color:o.white,letterSpacing:-.1},subtitle:{fontFamily:F.interRegular,fontSize:10.5,color:"rgba(255, 255, 255, 0.7)",marginTop:1},headerActionBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(239, 68, 68, 0.35)",borderWidth:1,borderColor:"rgba(252, 165, 165, 0.55)",alignItems:"center",justifyContent:"center"},headerCloseBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(244, 63, 94, 0.28)",borderWidth:1,borderColor:"rgba(251, 113, 133, 0.48)",alignItems:"center",justifyContent:"center"},stageSafe:{flex:1,width:"100%"},stage:{flex:1,width:"100%",alignItems:"center",justifyContent:"center",padding:8},previewCard:{flex:1,width:"100%",borderRadius:14,overflow:"hidden",backgroundColor:"#090D1A",alignItems:"center",justifyContent:"center",position:"relative"},canvasContainer:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",position:"relative"},image:{width:"100%",height:"100%"},videoImageOverlay:{...ee.absoluteFillObject,backgroundColor:"rgba(10, 13, 20, 0.28)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:o.slate900,alignItems:"center",justifyContent:"center",padding:24},videoFallbackGlow:{position:"absolute",width:150,height:150,borderRadius:75,backgroundColor:"rgba(56, 189, 248, 0.08)"},videoFallbackTitle:{fontFamily:F.interSemiBold,fontSize:15,color:o.white,marginTop:12},videoFallbackSubtitle:{fontFamily:F.interRegular,fontSize:12,color:"rgba(255, 255, 255, 0.6)",marginTop:4},centerPlayContainer:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayGlow:{position:"absolute",width:80,height:80,borderRadius:40,backgroundColor:"rgba(56, 189, 248, 0.22)"},centerPlayCircle:{width:62,height:62,borderRadius:31,backgroundColor:o.sky500,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:o.sky500,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayPill:{backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:12,paddingVertical:4,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},centerPlayText:{fontFamily:F.interBold,fontSize:11.5,color:o.white,letterSpacing:.3},topLeftBadgeOverlay:{position:"absolute",top:12,left:12},bottomRightBadgeOverlay:{position:"absolute",bottom:12,right:12},metaPill:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},metaPillText:{fontFamily:F.interSemiBold,fontSize:11,color:o.white,letterSpacing:.2},floatingZoomBar:{position:"absolute",right:12,top:"35%",backgroundColor:"rgba(15, 23, 42, 0.92)",borderRadius:20,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",paddingVertical:6,paddingHorizontal:4,alignItems:"center",gap:6,shadowColor:o.black,shadowOffset:{width:0,height:4},shadowOpacity:.45,shadowRadius:8,elevation:10},zoomBtn:{width:28,height:28,borderRadius:14,backgroundColor:"rgba(255, 255, 255, 0.12)",alignItems:"center",justifyContent:"center"},zoomLevelBadge:{paddingHorizontal:4,paddingVertical:2},zoomLevelText:{fontFamily:F.interBold,fontSize:9.5,color:o.sky400,letterSpacing:.2},subToolBar:{width:"100%",backgroundColor:"rgba(15, 23, 42, 0.96)",borderRadius:12,paddingVertical:6,paddingHorizontal:8,marginTop:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)"},subToolScroll:{flexDirection:"row",alignItems:"center",gap:8},ratioChip:{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.14)"},ratioChipActive:{backgroundColor:o.indigo600,borderColor:o.indigo400},ratioChipText:{fontFamily:F.interSemiBold,fontSize:10.5,color:"rgba(255, 255, 255, 0.8)"},ratioChipTextActive:{color:o.white,fontFamily:F.interBold},applyActionBtn:{backgroundColor:o.emerald600,paddingHorizontal:12,paddingVertical:5,borderRadius:8},applyActionText:{fontFamily:F.interBold,fontSize:11,color:o.white},cancelActionBtn:{backgroundColor:"rgba(255, 255, 255, 0.12)",paddingHorizontal:10,paddingVertical:5,borderRadius:8},cancelActionText:{fontFamily:F.interSemiBold,fontSize:11,color:"rgba(255, 255, 255, 0.8)"},colorDot:{width:22,height:22,borderRadius:11,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.3)"},colorDotActive:{borderColor:o.white,transform:[{scale:1.25}]},subDivider:{width:1,height:18,backgroundColor:"rgba(255, 255, 255, 0.15)",marginHorizontal:4},strokeWidthBtn:{width:24,height:24,borderRadius:12,backgroundColor:"rgba(255, 255, 255, 0.08)",alignItems:"center",justifyContent:"center"},strokeWidthBtnActive:{backgroundColor:"rgba(255, 255, 255, 0.25)"},strokeDot:{borderRadius:99},actionPillBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.10)"},actionPillText:{fontFamily:F.interSemiBold,fontSize:10,color:o.white},shapeOptionBtn:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:9,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)"},shapeOptionText:{fontFamily:F.interSemiBold,fontSize:10.5,color:o.white},shapeItem:{position:"absolute",borderWidth:2.5,borderStyle:"solid"},shapeDeleteBadge:{position:"absolute",top:-8,right:-8,width:16,height:16,borderRadius:8,backgroundColor:o.rose500,alignItems:"center",justifyContent:"center"},blurItem:{position:"absolute",backgroundColor:"rgba(15, 23, 42, 0.95)",borderWidth:1.5,borderColor:"rgba(56, 189, 248, 0.7)",borderRadius:6,alignItems:"center",justifyContent:"center"},blurItemText:{fontFamily:F.interBold,fontSize:9,color:o.sky300,letterSpacing:.6},textAnnotationPill:{position:"absolute",flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.35)",shadowColor:o.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:4},textAnnotationText:{fontFamily:F.interBold,fontSize:11},textDeleteBtn:{width:14,height:14,borderRadius:7,backgroundColor:"rgba(0, 0, 0, 0.45)",alignItems:"center",justifyContent:"center"},cropSubToolBar:{width:"100%",backgroundColor:"rgba(15, 23, 42, 0.96)",borderRadius:12,paddingVertical:8,paddingHorizontal:10,marginTop:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)",gap:8},cropActionHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",paddingBottom:4,borderBottomWidth:ee.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.12)"},cropHeaderTitle:{fontFamily:F.interSemiBold,fontSize:10.5,color:"rgba(255, 255, 255, 0.65)"},cropActionButtons:{flexDirection:"row",alignItems:"center",gap:8},cropOverlayMask:{...ee.absoluteFillObject,zIndex:100,elevation:100},cropDimMask:{position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.58)"},cropBoxFrame:{position:"absolute",borderWidth:2,borderStyle:"dashed",borderColor:o.white,backgroundColor:"rgba(56, 189, 248, 0.08)",shadowColor:o.black,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:4},cropGridH:{position:"absolute",left:0,right:0,height:1,borderTopWidth:1,borderStyle:"dashed",borderColor:"rgba(255, 255, 255, 0.45)"},cropGridV:{position:"absolute",top:0,bottom:0,width:1,borderLeftWidth:1,borderStyle:"dashed",borderColor:"rgba(255, 255, 255, 0.45)"},cropHandleTouchArea:{position:"absolute",width:38,height:38,alignItems:"center",justifyContent:"center",zIndex:10},handleAreaTL:{top:-19,left:-19},handleAreaTR:{top:-19,right:-19},handleAreaBL:{bottom:-19,left:-19},handleAreaBR:{bottom:-19,right:-19},cropCornerBracket:{position:"absolute",width:14,height:14,borderColor:o.white,backgroundColor:o.sky500,borderRadius:2,borderWidth:2,shadowColor:o.black,shadowOffset:{width:0,height:2},shadowOpacity:.6,shadowRadius:3,elevation:4},bracketTL:{top:-7,left:-7},bracketTR:{top:-7,right:-7},bracketBL:{bottom:-7,left:-7},bracketBR:{bottom:-7,right:-7},cropEdgeBarTop:{position:"absolute",top:-3,left:"35%",right:"35%",height:6,backgroundColor:o.white,borderRadius:3},cropEdgeBarBottom:{position:"absolute",bottom:-3,left:"35%",right:"35%",height:6,backgroundColor:o.white,borderRadius:3},cropEdgeBarLeft:{position:"absolute",left:-3,top:"35%",bottom:"35%",width:6,backgroundColor:o.white,borderRadius:3},cropEdgeBarRight:{position:"absolute",right:-3,top:"35%",bottom:"35%",width:6,backgroundColor:o.white,borderRadius:3},cropCenterPill:{position:"absolute",top:6,alignSelf:"center",backgroundColor:"rgba(14, 165, 233, 0.92)",paddingHorizontal:8,paddingVertical:2.5,borderRadius:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.25)"},cropCenterPillText:{fontFamily:F.interBold,fontSize:9,color:o.white,letterSpacing:.4},bottomTesterDock:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",width:"100%",paddingVertical:10,paddingHorizontal:6,marginTop:6,backgroundColor:"rgba(15, 23, 42, 0.94)",borderRadius:14,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.14)",gap:4},dockToolBtn:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:6,paddingHorizontal:2,borderRadius:10,backgroundColor:"rgba(255, 255, 255, 0.06)",gap:3},dockToolBtnActive:{backgroundColor:o.indigo600,borderColor:o.indigo400,borderWidth:1},dockPrimaryBtn:{backgroundColor:o.indigo600},dockToolLabel:{fontFamily:F.interSemiBold,fontSize:9.5,color:"rgba(255, 255, 255, 0.85)",letterSpacing:.1},modalBackdrop:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.70)",alignItems:"center",justifyContent:"center",padding:20},textModalCard:{width:"100%",maxWidth:360,backgroundColor:"#0F172A",borderRadius:16,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",padding:16,gap:12},textModalTitle:{fontFamily:F.interBold,fontSize:14,color:o.white},textModalInput:{minHeight:80,backgroundColor:"rgba(255, 255, 255, 0.08)",borderRadius:10,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)",padding:12,fontFamily:F.interRegular,fontSize:13,color:o.white,textAlignVertical:"top"},textModalActions:{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:10},modalCancelBtn:{paddingHorizontal:14,paddingVertical:8,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.1)"},modalCancelText:{fontFamily:F.interSemiBold,fontSize:12,color:"rgba(255, 255, 255, 0.7)"},modalConfirmBtn:{paddingHorizontal:16,paddingVertical:8,borderRadius:8,backgroundColor:o.indigo600},modalConfirmText:{fontFamily:F.interBold,fontSize:12,color:o.white}});