react-native-inapp-inspector 2.5.1 → 2.5.3

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 (308) hide show
  1. package/README.ar.md +151 -53
  2. package/README.de.md +150 -52
  3. package/README.es.md +139 -42
  4. package/README.fr.md +151 -53
  5. package/README.hi.md +141 -43
  6. package/README.ja.md +150 -69
  7. package/README.ko.md +153 -55
  8. package/README.md +73 -14
  9. package/README.pt-BR.md +152 -54
  10. package/README.ru.md +153 -55
  11. package/README.zh-CN.md +95 -219
  12. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  13. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  15. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/results.bin +1 -0
  16. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
  17. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
  18. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
  19. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
  20. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
  21. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$activityEventListener$1.dex +0 -0
  22. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
  23. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.dex +0 -0
  24. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
  25. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.dex +0 -0
  26. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
  27. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
  28. package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  29. package/android/build/.transforms/c93e459e24d856bde563ebb048265732/results.bin +1 -0
  30. package/android/build/.transforms/c93e459e24d856bde563ebb048265732/transformed/classes/classes_dex/classes.dex +0 -0
  31. package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +10 -0
  32. package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +160 -0
  33. package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  34. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +212 -0
  35. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +31 -0
  36. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +22 -0
  37. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +24 -0
  38. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +16 -0
  39. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +17 -0
  40. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +19 -0
  41. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +18 -0
  42. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +300 -0
  43. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +17 -0
  44. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +23 -0
  45. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +16 -0
  46. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +20 -0
  47. package/android/build/generated/source/codegen/schema.json +1 -0
  48. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
  49. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  50. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  51. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  52. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  53. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  54. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  55. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  56. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  57. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  58. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  59. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  60. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  61. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
  62. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  63. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  64. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
  65. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
  66. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  67. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  68. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  69. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
  70. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  71. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  72. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  73. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  74. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
  75. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  76. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
  77. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  78. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
  79. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
  80. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
  81. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  82. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  157. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  158. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  159. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  160. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  161. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  162. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  163. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  164. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  165. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  166. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  167. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  168. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  169. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  170. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  171. package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  172. package/android/build/reports/problems/problems-report.html +659 -0
  173. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  174. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  175. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  176. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  177. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  178. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
  179. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  180. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
  181. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  182. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
  183. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
  184. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
  185. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +154 -9
  186. package/dist/commonjs/capture.d.ts +5 -2
  187. package/dist/commonjs/capture.js +1 -1
  188. package/dist/commonjs/components/CountryFlag.d.ts +10 -0
  189. package/dist/commonjs/components/CountryFlag.js +140 -0
  190. package/dist/commonjs/components/EmptyState.js +6 -6
  191. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +36 -36
  192. package/dist/commonjs/components/Inspector/FabLauncher.js +12 -12
  193. package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +23 -23
  194. package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +24 -24
  195. package/dist/commonjs/components/Inspector/InspectorHeader.js +40 -42
  196. package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +23 -18
  197. package/dist/commonjs/components/Inspector/MainScreen.js +17 -17
  198. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +52 -34
  199. package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +20 -18
  200. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +742 -304
  201. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +21 -21
  202. package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +6 -6
  203. package/dist/commonjs/components/Inspector/SocketFilterModal.js +12 -12
  204. package/dist/commonjs/components/Inspector/TabBar.js +3 -3
  205. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
  206. package/dist/commonjs/components/MetaAccordion.js +17 -17
  207. package/dist/commonjs/components/ModuleErrorBoundary.js +4 -4
  208. package/dist/commonjs/components/NetworkIcons.d.ts +19 -0
  209. package/dist/commonjs/components/NetworkIcons.js +87 -3
  210. package/dist/commonjs/components/SourcePageCard.js +9 -9
  211. package/dist/commonjs/constants/version.d.ts +1 -1
  212. package/dist/commonjs/constants/version.js +1 -1
  213. package/dist/commonjs/i18n/locales/ar.json +1 -1
  214. package/dist/commonjs/i18n/locales/bn.json +1 -1
  215. package/dist/commonjs/i18n/locales/de.json +1 -1
  216. package/dist/commonjs/i18n/locales/en.json +1 -1
  217. package/dist/commonjs/i18n/locales/es.json +1 -1
  218. package/dist/commonjs/i18n/locales/fr.json +1 -1
  219. package/dist/commonjs/i18n/locales/gu.json +1 -1
  220. package/dist/commonjs/i18n/locales/hi.json +1 -1
  221. package/dist/commonjs/i18n/locales/id.json +1 -1
  222. package/dist/commonjs/i18n/locales/it.json +1 -1
  223. package/dist/commonjs/i18n/locales/ja.json +1 -1
  224. package/dist/commonjs/i18n/locales/kn.json +1 -1
  225. package/dist/commonjs/i18n/locales/ko.json +1 -1
  226. package/dist/commonjs/i18n/locales/ml.json +1 -1
  227. package/dist/commonjs/i18n/locales/mr.json +1 -1
  228. package/dist/commonjs/i18n/locales/nl.json +1 -1
  229. package/dist/commonjs/i18n/locales/pa.json +1 -1
  230. package/dist/commonjs/i18n/locales/pl.json +1 -1
  231. package/dist/commonjs/i18n/locales/pt.json +1 -1
  232. package/dist/commonjs/i18n/locales/ru.json +1 -1
  233. package/dist/commonjs/i18n/locales/ta.json +1 -1
  234. package/dist/commonjs/i18n/locales/te.json +1 -1
  235. package/dist/commonjs/i18n/locales/tr.json +1 -1
  236. package/dist/commonjs/i18n/locales/vi.json +1 -1
  237. package/dist/commonjs/i18n/locales/zh.json +1 -1
  238. package/dist/commonjs/index.js +1 -1
  239. package/dist/commonjs/native/NativeInspector.d.ts +4 -0
  240. package/dist/commonjs/native/NativeInspector.js +1 -1
  241. package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
  242. package/dist/commonjs/styles/AppColors.d.ts +76 -0
  243. package/dist/commonjs/styles/AppColors.js +1 -1
  244. package/dist/commonjs/types/interfaces.d.ts +2 -0
  245. package/dist/esm/capture.d.ts +5 -2
  246. package/dist/esm/capture.js +1 -1
  247. package/dist/esm/components/CountryFlag.d.ts +10 -0
  248. package/dist/esm/components/CountryFlag.js +140 -0
  249. package/dist/esm/components/EmptyState.js +13 -13
  250. package/dist/esm/components/Inspector/DeviceInfoTab.js +176 -176
  251. package/dist/esm/components/Inspector/FabLauncher.js +37 -37
  252. package/dist/esm/components/Inspector/FloatingCaptureWidget.js +27 -27
  253. package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +9 -9
  254. package/dist/esm/components/Inspector/InspectorHeader.js +43 -45
  255. package/dist/esm/components/Inspector/LanguageSelectorModal.js +107 -102
  256. package/dist/esm/components/Inspector/MainScreen.js +52 -52
  257. package/dist/esm/components/Inspector/MediaGalleryTab.js +100 -82
  258. package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +20 -18
  259. package/dist/esm/components/Inspector/MediaPreviewModal.js +764 -326
  260. package/dist/esm/components/Inspector/NetworkFilterModal.js +37 -37
  261. package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +20 -20
  262. package/dist/esm/components/Inspector/SocketFilterModal.js +32 -32
  263. package/dist/esm/components/Inspector/TabBar.js +12 -12
  264. package/dist/esm/components/Inspector/UpdateAvailableModal.js +11 -11
  265. package/dist/esm/components/MetaAccordion.js +24 -24
  266. package/dist/esm/components/ModuleErrorBoundary.js +20 -20
  267. package/dist/esm/components/NetworkIcons.d.ts +19 -0
  268. package/dist/esm/components/NetworkIcons.js +89 -5
  269. package/dist/esm/components/SourcePageCard.js +21 -21
  270. package/dist/esm/constants/version.d.ts +1 -1
  271. package/dist/esm/constants/version.js +1 -1
  272. package/dist/esm/i18n/locales/ar.json +1 -1
  273. package/dist/esm/i18n/locales/bn.json +1 -1
  274. package/dist/esm/i18n/locales/de.json +1 -1
  275. package/dist/esm/i18n/locales/en.json +1 -1
  276. package/dist/esm/i18n/locales/es.json +1 -1
  277. package/dist/esm/i18n/locales/fr.json +1 -1
  278. package/dist/esm/i18n/locales/gu.json +1 -1
  279. package/dist/esm/i18n/locales/hi.json +1 -1
  280. package/dist/esm/i18n/locales/id.json +1 -1
  281. package/dist/esm/i18n/locales/it.json +1 -1
  282. package/dist/esm/i18n/locales/ja.json +1 -1
  283. package/dist/esm/i18n/locales/kn.json +1 -1
  284. package/dist/esm/i18n/locales/ko.json +1 -1
  285. package/dist/esm/i18n/locales/ml.json +1 -1
  286. package/dist/esm/i18n/locales/mr.json +1 -1
  287. package/dist/esm/i18n/locales/nl.json +1 -1
  288. package/dist/esm/i18n/locales/pa.json +1 -1
  289. package/dist/esm/i18n/locales/pl.json +1 -1
  290. package/dist/esm/i18n/locales/pt.json +1 -1
  291. package/dist/esm/i18n/locales/ru.json +1 -1
  292. package/dist/esm/i18n/locales/ta.json +1 -1
  293. package/dist/esm/i18n/locales/te.json +1 -1
  294. package/dist/esm/i18n/locales/tr.json +1 -1
  295. package/dist/esm/i18n/locales/vi.json +1 -1
  296. package/dist/esm/i18n/locales/zh.json +1 -1
  297. package/dist/esm/index.js +3 -3
  298. package/dist/esm/native/NativeInspector.d.ts +4 -0
  299. package/dist/esm/native/NativeInspector.js +1 -1
  300. package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
  301. package/dist/esm/styles/AppColors.d.ts +76 -0
  302. package/dist/esm/styles/AppColors.js +1 -1
  303. package/dist/esm/types/interfaces.d.ts +2 -0
  304. package/ios/NetworkInspectorModule.mm +487 -224
  305. package/package.json +1 -1
  306. package/react-native-inapp-inspector.podspec +1 -1
  307. package/src/native/NativeInspector.ts +22 -0
  308. package/src/native/NativeNetworkInspector.ts +1 -1
@@ -1,372 +1,810 @@
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}>
1
+ import Ao,{useCallback as ot,useContext as pr,useEffect as hi,useMemo as oo,useRef as G,useState as V}from"react";import{Animated as Gt,Dimensions as ci,Image as Co,Modal as Ci,PanResponder as Lt,Platform as io,Pressable as Oo,ScrollView as Ti,Share as Mi,StatusBar as Fi,StyleSheet as N,Text as R,TextInput as Cr,TouchableOpacity as A,useWindowDimensions as Tr,View as F}from"react-native";import Mr from"react-native-linear-gradient";import Fr,{Circle as Si,Ellipse as To,G as Ct,Line as $t,Path as Mo,Polygon as Ri,Rect as Nt,Text as Pi}from"react-native-svg";import{AppColors as S}from"../../styles/AppColors";import{AppFonts as $}from"../../styles/AppFonts";import Bt from"../TouchableScale";import{InspectorContext as kr}from"./InspectorContext";import{ConfirmationModal as Sr}from"./ConfirmationModal";import{ArrowRightIcon as Rr,CameraRollIcon as Fo,CheckIcon as Pr,CloseWhite as Bi,CropIcon as Ii,EyeCompareIcon as Br,EyeIcon as Ai,FilmIcon as Ir,GifIcon as Do,GridlinesIcon as Wo,HighlighterIcon as Ar,MaximizeIcon as Or,MoreDotsIcon as Dr,PauseIcon as Oi,PenIcon as Vo,PixelateIcon as Wr,PlayIcon as Eo,RedactIcon as Vr,RedoIcon as Er,ResetIcon as Di,RotateIcon as Hr,SaveIcon as Gr,ScissorsIcon as Wi,ShareIcon as Lr,SunAdjustIcon as Vi,TrashIcon as $r,TypeIcon as Ei,UndoIcon as Hi,VolumeXIcon as So,WhiteBackNavigation as Nr,ZoomInIcon as Ur,ZoomOutIcon as Xr,BrightnessIcon as Yr,ContrastIcon as _r,SaturationIcon as Zr,WarmthIcon as qr,ExposureIcon as Qr,VignetteIcon as Kr,ZapIcon as Ho}from"../NetworkIcons";import{ScreenCapture as Jr}from"../../capture";import{MediaEditor as Tt}from"../../editor";import{formatBytes as Gi}from"../../helpers";import{showToast as L}from"../../helpers/toast";import{useTranslation as en}from"../../i18n";import{triggerNativeHaptic as B}from"../../native/NativeInspector";const Li=["#EF4444","#F59E0B","#38BDF8","#10B981","#A855F7","#FFFFFF","#0F172A"],Cn=({textItem:M,canvasWidth:De,canvasHeight:ke,scale:It,onUpdate:Mt,onDelete:I,onEdit:We})=>{const te=G(new Gt.ValueXY({x:0,y:0})).current,qe=G(M);qe.current=M;const Qe=G(De);Qe.current=De;const Ve=G(ke);Ve.current=ke;const Ne=G(It);Ne.current=It;const me=G(Mt);me.current=Mt;const Q=G(!1),Y=G(Lt.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!1,onMoveShouldSetPanResponder:(ge,U)=>Math.abs(U.dx)>3||Math.abs(U.dy)>3,onMoveShouldSetPanResponderCapture:()=>!1,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{Q.current=!1,te.setValue({x:0,y:0})},onPanResponderMove:(ge,U)=>{(Math.abs(U.dx)>3||Math.abs(U.dy)>3)&&(Q.current=!0),te.setValue({x:U.dx,y:U.dy})},onPanResponderRelease:(ge,U)=>{if(!Q.current){We(qe.current),te.setValue({x:0,y:0});return}const de=(Qe.current||300)*(Ne.current||1),he=(Ve.current||500)*(Ne.current||1),ce=U.dx/de,be=U.dy/he,ne=qe.current,it=Math.max(0,Math.min(.85,ne.x+ce)),Ke=Math.max(0,Math.min(.92,ne.y+be));te.setValue({x:0,y:0}),me.current(ne.id,{x:it,y:Ke})},onPanResponderTerminate:()=>{te.setValue({x:0,y:0}),Q.current=!1}})).current;return<Gt.View{...Y.panHandlers}style={[t.textAnnotationPill,{left:`${M.x*100}%`,top:`${M.y*100}%`,backgroundColor:M.bgColor,transform:te.getTranslateTransform()}]}>
2
+ <R style={[t.textAnnotationText,{color:M.color}]}pointerEvents="none">
3
+ {M.text}
4
+ </R>
5
+ <A style={t.textDeleteBtn}onPress={()=>I(M.id)}hitSlop={{top:10,bottom:10,left:10,right:10}}>
6
+ <Bi size={8}/>
7
+ </A>
8
+ </Gt.View>},Tn=({cropBox:M,imageWidth:De,imageHeight:ke,imageOffsetX:It,imageOffsetY:Mt,scale:I,onUpdateCropBox:We,onApplyCrop:te,onCancelCrop:qe})=>{const Qe=Math.max(0,Math.min(.9,isFinite(M?.x)?M.x:.08)),Ve=Math.max(0,Math.min(.9,isFinite(M?.y)?M.y:.12)),Ne=Math.max(.1,Math.min(1-Qe,isFinite(M?.width)?M.width:.84)),me=Math.max(.1,Math.min(1-Ve,isFinite(M?.height)?M.height:.76)),Q=It+Qe*De,Y=Mt+Ve*ke,ge=Ne*De,U=me*ke,de=G({x:Qe,y:Ve,width:Ne,height:me});de.current={x:Qe,y:Ve,width:Ne,height:me};const he=G(De);he.current=De;const ce=G(ke);ce.current=ke;const be=G(I);be.current=I;const ne=G(We);ne.current=We;const it=G({origBox:{x:.08,y:.12,width:.84,height:.76}}),Ke=G(Lt.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:(ue,Xe)=>Math.abs(Xe.dx)>3||Math.abs(Xe.dy)>3,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{it.current.origBox={...de.current}},onPanResponderMove:(ue,Xe)=>{const Ye=he.current*(be.current||1),Je=ce.current*(be.current||1);if(!Ye||!Je)return;const{x:O,y:_,width:ae,height:xe}=it.current.origBox,Z=Math.max(0,Math.min(1-ae,O+Xe.dx/Ye)),Se=Math.max(0,Math.min(1-xe,_+Xe.dy/Je));ne.current({x:Z,y:Se,width:ae,height:xe})},onPanResponderRelease:()=>{}})).current,Ue=ue=>Lt.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:(Xe,Ye)=>Math.abs(Ye.dx)>2||Math.abs(Ye.dy)>2,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{it.current.origBox={...de.current}},onPanResponderMove:(Xe,Ye)=>{const Je=he.current*(be.current||1),O=ce.current*(be.current||1);if(!Je||!O)return;const _=Ye.dx/Je,ae=Ye.dy/O,{x:xe,y:Z,width:Se,height:we}=it.current.origBox,rt=.1;let Ee=xe,vt=Z,Be=Se,At=we;(ue==="tl"||ue==="left"||ue==="bl")&&(Ee=Math.max(0,Math.min(xe+Se-rt,xe+_)),Be=Se-(Ee-xe)),(ue==="tr"||ue==="right"||ue==="br")&&(Be=Math.max(rt,Math.min(1-xe,Se+_))),(ue==="tl"||ue==="top"||ue==="tr")&&(vt=Math.max(0,Math.min(Z+we-rt,Z+ae)),At=we-(vt-Z)),(ue==="bl"||ue==="bottom"||ue==="br")&&(At=Math.max(rt,Math.min(1-Z,we+ae))),ne.current({x:Ee,y:vt,width:Be,height:At})},onPanResponderRelease:()=>{}}),ze=G({tl:Ue("tl"),tr:Ue("tr"),bl:Ue("bl"),br:Ue("br"),top:Ue("top"),bottom:Ue("bottom"),left:Ue("left"),right:Ue("right")}).current;return De<20||ke<20?null:<F style={N.absoluteFill}pointerEvents="box-none">
9
+
10
+ <F style={N.absoluteFill}pointerEvents="none">
11
+
12
+ <F style={{position:"absolute",top:0,left:0,right:0,height:Y,backgroundColor:"rgba(0,0,0,0.6)"}}/>
13
+
14
+ <F style={{position:"absolute",top:Y+U,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.6)"}}/>
4
15
 
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>
14
- </T>
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>
23
- </T>
24
- </A>
16
+ <F style={{position:"absolute",top:Y,left:0,width:Q,height:U,backgroundColor:"rgba(0,0,0,0.6)"}}/>
17
+
18
+ <F style={{position:"absolute",top:Y,left:Q+ge,right:0,height:U,backgroundColor:"rgba(0,0,0,0.6)"}}/>
19
+ </F>
25
20
 
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>}
21
+
22
+ <F style={{position:"absolute",left:Q,top:Y,width:ge,height:U,borderWidth:2,borderColor:"#00E5FF",backgroundColor:"transparent",zIndex:200}}pointerEvents="box-none">
31
23
 
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>
24
+
25
+ <F pointerEvents="none"style={{position:"absolute",left:0,right:0,top:"33.33%",height:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
26
+ <F pointerEvents="none"style={{position:"absolute",left:0,right:0,top:"66.66%",height:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
27
+ <F pointerEvents="none"style={{position:"absolute",top:0,bottom:0,left:"33.33%",width:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
28
+ <F pointerEvents="none"style={{position:"absolute",top:0,bottom:0,left:"66.66%",width:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
35
29
 
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>
30
+
31
+ <F style={N.absoluteFill}{...Ke.panHandlers}/>
39
32
 
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>
33
+
34
+ <F pointerEvents="none"style={{position:"absolute",top:-2,left:-2,width:22,height:22,borderTopWidth:4,borderLeftWidth:4,borderColor:"#00E5FF"}}/>
35
+ <F pointerEvents="none"style={{position:"absolute",top:-2,right:-2,width:22,height:22,borderTopWidth:4,borderRightWidth:4,borderColor:"#00E5FF"}}/>
36
+ <F pointerEvents="none"style={{position:"absolute",bottom:-2,left:-2,width:22,height:22,borderBottomWidth:4,borderLeftWidth:4,borderColor:"#00E5FF"}}/>
37
+ <F pointerEvents="none"style={{position:"absolute",bottom:-2,right:-2,width:22,height:22,borderBottomWidth:4,borderRightWidth:4,borderColor:"#00E5FF"}}/>
43
38
 
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>
39
+
40
+ <F pointerEvents="none"style={{position:"absolute",top:-3,left:"50%",marginLeft:-16,width:32,height:5,backgroundColor:"#00E5FF",borderRadius:3}}/>
41
+ <F pointerEvents="none"style={{position:"absolute",bottom:-3,left:"50%",marginLeft:-16,width:32,height:5,backgroundColor:"#00E5FF",borderRadius:3}}/>
42
+ <F pointerEvents="none"style={{position:"absolute",left:-3,top:"50%",marginTop:-16,width:5,height:32,backgroundColor:"#00E5FF",borderRadius:3}}/>
43
+ <F pointerEvents="none"style={{position:"absolute",right:-3,top:"50%",marginTop:-16,width:5,height:32,backgroundColor:"#00E5FF",borderRadius:3}}/>
50
44
 
51
45
 
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)}/>
46
+ <F style={{position:"absolute",top:-22,left:-22,width:44,height:44,zIndex:30}}{...ze.tl.panHandlers}/>
47
+ <F style={{position:"absolute",top:-22,right:-22,width:44,height:44,zIndex:30}}{...ze.tr.panHandlers}/>
48
+ <F style={{position:"absolute",bottom:-22,left:-22,width:44,height:44,zIndex:30}}{...ze.bl.panHandlers}/>
49
+ <F style={{position:"absolute",bottom:-22,right:-22,width:44,height:44,zIndex:30}}{...ze.br.panHandlers}/>
69
50
 
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>
51
+
52
+ <F style={{position:"absolute",top:-20,left:"25%",right:"25%",height:40,zIndex:25}}{...ze.top.panHandlers}/>
53
+ <F style={{position:"absolute",bottom:-20,left:"25%",right:"25%",height:40,zIndex:25}}{...ze.bottom.panHandlers}/>
54
+ <F style={{position:"absolute",left:-20,top:"25%",bottom:"25%",width:40,zIndex:25}}{...ze.left.panHandlers}/>
55
+ <F style={{position:"absolute",right:-20,top:"25%",bottom:"25%",width:40,zIndex:25}}{...ze.right.panHandlers}/>
56
+ </F>
77
57
 
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>)}
58
+
59
+ {qe&&<A activeOpacity={.8}onPress={()=>{B("light"),qe()}}style={t.cropCancelBtn}accessibilityLabel="Cancel Crop">
60
+ <Bi size={14}color={S.white}/>
61
+ </A>}
84
62
 
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>)}
63
+
64
+ {te&&<A activeOpacity={.8}onPress={()=>{B("medium"),te()}}style={t.cropConfirmBtn}accessibilityLabel="Apply Crop Selection">
65
+ <Pr size={18}color={S.white}/>
66
+ </A>}
67
+ </F>};export const MediaPreviewModal=({item:M,visible:De,onClose:ke,onDelete:It,onConvertToGif:Mt})=>{const{t:I}=en(),We=pr(kr),te=We?.modalHeightPercent??90,{width:qe}=Tr(),Qe=oo(()=>io.OS==="ios"?te>=98?qe>=390?50:44:0:io.OS==="android"&&te>=98?Fi.currentHeight||24:0,[te,qe]),[Ve,Ne]=V(!1),[me,Q]=V(!1),[Y,ge]=V(null),[U,de]=V(M?.width),[he,ce]=V(M?.height),[be,ne]=V(M?.sizeBytes),[it,Ke]=V(M?.durationMs),[Ue,ze]=V(!1),[ue,Xe]=V(!1),[Ye,Je]=V(!1),[O,_]=V("none"),[ae,xe]=V(1),[Z,Se]=V(0),[we,rt]=V([]),[Ee,vt]=V([]),[Be,At]=V(!1),[$i,nt]=V(!1),[D,_e]=V("brush"),[Ro,ji]=V(24),[He,Ni]=V("brightness"),[K,Ut]=V("none"),[Ce,Ot]=V(!1),[ye,Dt]=V(!1),[E,Ft]=V({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),[Te,Xt]=V(!1),[Me,Yt]=V(!1),[se,at]=V(0),[pe,st]=V(M?.durationMs||1e4),[et,ro]=V("end"),[fe,_t]=V(!1),[Ze,no]=V(100),[Ge,ao]=V(1),[Zt,Go]=V(12),[Po,Ui]=V(480),[Lo,$o]=V([]),[Mn,jo]=V(!1),[vn,Xi]=V(0),[zo,qt]=V("free"),[Qt,kt]=V({x:.08,y:.12,width:.84,height:.76}),[ve,No]=V("#EF4444"),[Ie,Yi]=V(4),[oe,Le]=V([]),[H,Kt]=V(null),[Fe,$e]=V([]),[_i,Jt]=V(!1),[Uo,Xo]=V(null),[so,lo]=V(""),[ho,Zi]=V({x:.3,y:.4}),re=ot(()=>{vt([]),rt(e=>[...e,{uri:Y||M?.uri||null,inkPaths:[...oe],texts:[...Fe],adjustments:{...E},filterPreset:K,showWatermark:Ce,showGridlines:ye,rotationAngle:Z,flipH:Te,flipV:Me,width:U,height:he,sizeBytes:be}])},[Y,M?.uri,oe,Fe,E,K,Ce,ye,Z,Te,Me,U,he,be]),Yo=G(re);Yo.current=re;const Fn=G(null),[lt,_o]=V({width:ci.get("window").width-16,height:ci.get("window").height*.72,pageX:0,pageY:0}),je=G(O);je.current=O;const co=G(D);co.current=D;const Wt=G(ve);Wt.current=ve;const Vt=G(Ie);Vt.current=Ie;const qi=G(Lt.create({onStartShouldSetPanResponder:()=>je.current==="draw",onMoveShouldSetPanResponder:()=>je.current==="draw",onPanResponderGrant:e=>{Yo.current();const{locationX:C,locationY:T}=e.nativeEvent;Kt([{x:C,y:T}])},onPanResponderMove:e=>{const{locationX:C,locationY:T}=e.nativeEvent,k=co.current;Kt(k==="brush"||k==="highlighter"?P=>P?[...P,{x:C,y:T}]:[{x:C,y:T}]:P=>[P&&P.length>0?P[0]:{x:C,y:T},{x:C,y:T}])},onPanResponderRelease:()=>{Kt(e=>{if(e&&e.length>0){const C=co.current,T=e[0],k=e[e.length-1]||T;if((C==="brush"||C==="highlighter")&&e.length>1)Le(P=>[...P,{id:`stroke_${Date.now()}_${Math.random()}`,type:C,points:e,color:Wt.current,strokeWidth:Vt.current}]);else if(C==="arrow"&&e.length>1)Math.hypot(k.x-T.x,k.y-T.y)>6&&Le(z=>[...z,{id:`stroke_${Date.now()}_${Math.random()}`,type:"arrow",points:[T,k],color:Wt.current,strokeWidth:Vt.current}]);else if(C==="circle"||C==="spotlight")Math.hypot(k.x-T.x,k.y-T.y)>6&&Le(z=>[...z,{id:`stroke_${Date.now()}_${Math.random()}`,type:C,points:[T,k],color:Wt.current,strokeWidth:Vt.current}]);else if(C==="step"){const P=oe.filter(z=>z.type==="step").length;Le(z=>[...z,{id:`stroke_${Date.now()}_${Math.random()}`,type:"step",points:[T],color:Wt.current,strokeWidth:Vt.current,stepNumber:P+1}])}else if(C==="rect"||C==="redact"||C==="pixelate"){const P=Math.min(T.x,k.x),z=Math.min(T.y,k.y),W=Math.abs(k.x-T.x),X=Math.abs(k.y-T.y);W>4&&X>4&&Le(J=>[...J,{id:`stroke_${Date.now()}_${Math.random()}`,type:C,points:[T,k],rect:{x:P,y:z,width:W,height:X},color:Wt.current,strokeWidth:Vt.current}])}}return null})}})).current,Et=(e,C,T)=>{const k=C&&C>0?C:1e3,P=T&&T>0?T:1e3,z=k/P;if(e==="free")return{x:parseFloat(((1-.84)/2).toFixed(4)),y:parseFloat(((1-.76)/2).toFixed(4)),width:.84,height:.76};let W=1;e==="1:1"?W=1:e==="4:3"?W=4/3:e==="16:9"?W=16/9:e==="9:16"?W=9/16:e==="3:2"&&(W=3/2);const X=W/z;let J=.88,ee=.88;if(X>=1){if(J=.88,ee=.88/X,ee>.88){const Ht=.88/ee;J*=Ht,ee=.88}}else if(ee=.88,J=.88*X,J>.88){const Ht=.88/J;ee*=Ht,J=.88}J=Math.max(.1,Math.min(.96,parseFloat(J.toFixed(4)))),ee=Math.max(.1,Math.min(.96,parseFloat(ee.toFixed(4))));const tt=parseFloat(((1-J)/2).toFixed(4)),Pt=parseFloat(((1-ee)/2).toFixed(4));return{x:tt,y:Pt,width:J,height:ee}};Ao.useEffect(()=>{M?.uri&&(ge(M.uri),de(M.width),ce(M.height),ne(M.sizeBytes),Ke(M.durationMs),ze(!1),xe(1),_("none"),Le([]),Kt(null),$e([]),kt(Et("free",M.width,M.height)),at(0),st(M.durationMs||1e4),ro("end"),_t(!1),no(100),ao(1),Xi(0))},[M?.uri,M?.width,M?.height,M?.sizeBytes,M?.durationMs]),Ao.useEffect(()=>{if(M?.type==="video"&&M?.uri){let e=!0;return jo(!0),Tt.generateFilmstrip({uri:M.uri,count:10,targetWidth:120,targetHeight:120}).then(C=>{e&&C?.thumbnails&&$o(C.thumbnails)}).catch(()=>{}).finally(()=>{e&&jo(!1)}),()=>{e=!1}}else $o([])},[M?.type,M?.uri]),Ao.useEffect(()=>{if(Y||M?.uri){const e=Y||M?.uri;e&&M?.type==="image"&&(!U||!he)&&Co.getSize(e,(C,T)=>{C>0&&T>0&&(de(C),ce(T))},()=>{})}},[Y,M?.uri,M?.type,U,he]);const Ae=oo(()=>{const e=lt.width,C=lt.height;if(!e||!C)return{width:e,height:C};const T=U??M?.width,k=he??M?.height;if(!T||!k||T<=0||k<=0)return{width:e,height:C};const P=T/k,z=e/C;let W=e,X=C;return P>z?(W=e,X=e/P):(X=C,W=C*P),{width:Math.max(20,Math.floor(W)),height:Math.max(20,Math.floor(X))}},[lt.width,lt.height,U,he,M?.width,M?.height]),q=Y||M?.uri,Re=U??M?.width,Pe=he??M?.height,Zo=be??M?.sizeBytes,le=it??M?.durationMs,j=M?.type==="video",kn=M?.type==="gif",ie=M?.type==="image",Oe=G(new Gt.ValueXY({x:0,y:0})).current,dt=G({x:0,y:0}),eo=G({x:0,y:0});hi(()=>{const e=Oe.x.addListener(T=>dt.current.x=T.value),C=Oe.y.addListener(T=>dt.current.y=T.value);return()=>{Oe.x.removeListener(e),Oe.y.removeListener(C)}},[Oe]);const ht=G(ae);ht.current=ae;const St=G(Ae);St.current=Ae;const Rt=G(lt);Rt.current=lt;const qo=ot(()=>{const e=ht.current;if(e<=1)return{maxX:0,maxY:0};const C=St.current.width,T=St.current.height,k=Rt.current.width,P=Rt.current.height,z=Math.max(0,(C*e-k)/2/e),W=Math.max(0,(T*e-P)/2/e);return{maxX:z,maxY:W}},[]),Qo=ot((e,C)=>{const{maxX:T,maxY:k}=qo();return{x:Math.max(-T,Math.min(T,e)),y:Math.max(-k,Math.min(k,C))}},[qo]),Qi=G(Lt.create({onStartShouldSetPanResponder:()=>ht.current>1,onMoveShouldSetPanResponder:(e,C)=>ht.current>1&&(Math.abs(C.dx)>4||Math.abs(C.dy)>4),onMoveShouldSetPanResponderCapture:(e,C)=>ht.current>1&&(Math.abs(C.dx)>6||Math.abs(C.dy)>6),onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{eo.current={...dt.current}},onPanResponderMove:(e,C)=>{const T=ht.current,k=eo.current.x+C.dx/T,P=eo.current.y+C.dy/T,{maxX:z,maxY:W}=(()=>{const ee=ht.current;if(ee<=1)return{maxX:0,maxY:0};const tt=St.current.width,Pt=St.current.height,Ht=Rt.current.width,di=Rt.current.height;return{maxX:Math.max(0,(tt*ee-Ht)/2/ee),maxY:Math.max(0,(Pt*ee-di)/2/ee)}})(),X=Math.max(-z,Math.min(z,k)),J=Math.max(-W,Math.min(W,P));Oe.setValue({x:X,y:J})},onPanResponderRelease:()=>{const{maxX:e,maxY:C}=(()=>{const P=ht.current;if(P<=1)return{maxX:0,maxY:0};const z=St.current.width,W=St.current.height,X=Rt.current.width,J=Rt.current.height;return{maxX:Math.max(0,(z*P-X)/2/P),maxY:Math.max(0,(W*P-J)/2/P)}})(),T=dt.current,k={x:Math.max(-e,Math.min(e,T.x)),y:Math.max(-C,Math.min(C,T.y))};(k.x!==T.x||k.y!==T.y)&&Gt.spring(Oe,{toValue:k,friction:7,tension:60,useNativeDriver:!1}).start()},onPanResponderTerminate:()=>{}})).current;hi(()=>{if(ae<=1)Oe.setValue({x:0,y:0}),eo.current={x:0,y:0};else{const e=Qo(dt.current.x,dt.current.y);(e.x!==dt.current.x||e.y!==dt.current.y)&&Gt.spring(Oe,{toValue:e,friction:7,tension:60,useNativeDriver:!1}).start()}},[ae,Oe,Qo]);const Ki=()=>{B("light"),xe(e=>Math.min(4,parseFloat((e+.25).toFixed(2))))},Ji=()=>{B("light"),xe(e=>Math.max(1,parseFloat((e-.25).toFixed(2))))},Ko=()=>{B("medium"),xe(1),Oe.setValue({x:0,y:0}),eo.current={x:0,y:0}},Jo=G(240),ei=ot(e=>{const C=Math.max(50,Jo.current),T=Math.max(0,Math.min(1,e/C));if(je.current==="draw"){const k=co.current;if(k==="brush"||k==="highlighter"||k==="arrow"||k==="rect"||k==="circle"||k==="spotlight"||k==="step"){const P=Math.round(2+T*22);Yi(P)}else if(k==="pixelate"){const P=Math.round(4+T*36);ji(P)}}else if(je.current==="adjust")if(He==="vignette"){const k=Math.round(T*100);Ft(P=>({...P,vignette:k}))}else{const k=Math.round(T*100-50);Ft(P=>({...P,[He]:k}))}else if(je.current==="crop"){const k=Math.round(T*360);Se(k)}else if(je.current==="trim"){const P=Math.round(T*(le||1e4));et==="start"?at(Math.min(pe-500,P)):st(Math.max(se+500,P))}else if(je.current==="audio"){const k=Math.round(T*100);no(k),_t(k===0)}else if(je.current==="speed"){const k=parseFloat((.5+T*1.5).toFixed(2));ao(k)}else if(je.current==="gif"){const k=Math.round(6+T*18);Go(k)}else if(je.current==="none"){const k=parseFloat((1+T*3).toFixed(2));xe(k)}},[He,le,et,se,pe]),er=G(Lt.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!0,onMoveShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponderCapture:()=>!0,onPanResponderGrant:e=>{B("light"),ei(e.nativeEvent.locationX)},onPanResponderMove:e=>{ei(e.nativeEvent.locationX)},onPanResponderRelease:()=>{B("light")}})).current,ti=oo(()=>{if(O==="draw"){if(D==="brush"||D==="highlighter"||D==="arrow"||D==="rect"||D==="circle"||D==="spotlight"||D==="step")return Math.min(100,Math.max(0,(Ie-2)/22*100));if(D==="pixelate")return Math.min(100,Math.max(0,(Ro-4)/36*100));if(D==="redact")return 100}return O==="adjust"?He==="vignette"?Math.min(100,Math.max(0,E.vignette)):Math.min(100,Math.max(0,E[He]+50)):O==="crop"?Math.min(100,Math.max(0,Z/360*100)):O==="trim"?Math.min(100,Math.max(0,(et==="start"?se:pe)/(le||1e4)*100)):O==="audio"?fe?0:Ze:O==="speed"?Math.min(100,Math.max(0,(Ge-.5)/1.5*100)):O==="gif"?Math.min(100,Math.max(0,(Zt-6)/18*100)):O==="none"?Math.min(100,Math.max(0,(ae-1)/3*100)):50},[O,D,Ie,Ro,He,E,Z,ae,le,et,se,pe,fe,Ze,Ge,Zt]),oi=ot(()=>{if(we.length===0)return;B("light");const e=we[we.length-1];vt(C=>[...C,{uri:Y||M?.uri||null,inkPaths:[...oe],texts:[...Fe],adjustments:{...E},filterPreset:K,showWatermark:Ce,rotationAngle:Z,flipH:Te,flipV:Me,width:U,height:he,sizeBytes:be}]),rt(C=>C.slice(0,C.length-1)),e&&(ge(e.uri),Le(e.inkPaths),$e(e.texts),e.adjustments&&Ft(e.adjustments),e.filterPreset&&Ut(e.filterPreset),e.showWatermark!==void 0&&Ot(e.showWatermark),e.showGridlines!==void 0&&Dt(e.showGridlines),e.rotationAngle!==void 0&&Se(e.rotationAngle),e.flipH!==void 0&&Xt(e.flipH),e.flipV!==void 0&&Yt(e.flipV),e.width&&de(e.width),e.height&&ce(e.height),e.sizeBytes&&ne(e.sizeBytes),L(I("mediaGallery.undone","Action Undone")))},[we,Y,M?.uri,oe,Fe,E,K,Ce,ye,Z,Te,Me,U,he,be,I]),tr=ot(()=>{if(Ee.length===0)return;B("light");const e=Ee[Ee.length-1];rt(C=>[...C,{uri:Y||M?.uri||null,inkPaths:[...oe],texts:[...Fe],adjustments:{...E},filterPreset:K,showWatermark:Ce,showGridlines:ye,rotationAngle:Z,flipH:Te,flipV:Me,width:U,height:he,sizeBytes:be}]),vt(C=>C.slice(0,C.length-1)),e&&(ge(e.uri),Le(e.inkPaths),$e(e.texts),e.adjustments&&Ft(e.adjustments),e.filterPreset&&Ut(e.filterPreset),e.showWatermark!==void 0&&Ot(e.showWatermark),e.showGridlines!==void 0&&Dt(e.showGridlines),e.rotationAngle!==void 0&&Se(e.rotationAngle),e.flipH!==void 0&&Xt(e.flipH),e.flipV!==void 0&&Yt(e.flipV),e.width&&de(e.width),e.height&&ce(e.height),e.sizeBytes&&ne(e.sizeBytes),L(I("mediaGallery.redone","Action Redone")))},[Ee,Y,M?.uri,oe,Fe,E,K,Ce,ye,Z,Te,Me,U,he,be,I]),or=ot(()=>{M&&(B("medium"),re(),ge(M.uri),Le([]),$e([]),Ft({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),Ut("none"),Ot(!1),Dt(!1),Se(0),Xt(!1),Yt(!1),de(M.width),ce(M.height),ne(M.sizeBytes),Ke(M.durationMs),xe(1),_("none"),at(0),st(M.durationMs||1e4),ro("end"),_t(!1),no(100),ao(1),L(I("mediaGallery.resetSuccess",M.type==="video"?"Reset to original video":"Reset to original image")))},[M,re,I]),ii=ot(async()=>{if(!(!M||!q)){if(B("medium"),Q(!0),j){try{const e=le||M.durationMs||1e4,C=await Tt.trimVideo({uri:q,startTimeMs:se,endTimeMs:pe<e?pe:void 0,muteAudio:fe||Ze===0,quality:"high"});C?.uri?(ge(C.uri),C.width&&de(C.width),C.height&&ce(C.height),C.size&&ne(C.size),C.durationMs&&Ke(C.durationMs),L(I("mediaGallery.videoSaved","Video Saved Successfully")),We?.refreshMediaCount?.().catch(()=>{})):L(I("mediaGallery.videoSaved","Video Saved"))}catch{L(I("mediaGallery.saveFailed","Failed to save video"))}finally{Q(!1)}return}try{const e=Math.max(1,Re||1e3),C=Math.max(1,Pe||1e3),T=oe.filter(z=>(z.type==="redact"||z.type==="pixelate")&&z.rect).map(z=>{const W=z.rect;return{x:W.x/e,y:W.y/C,width:W.width/e,height:W.height/C,style:z.type==="pixelate"?"blur":"blackout",isNormalized:!0}}),k=[...Fe.map(z=>({x:z.x,y:z.y,width:.22,height:.06,color:z.bgColor||"#EF4444",label:z.text,isNormalized:!0})),...oe.filter(z=>z.type==="rect"||z.type==="arrow"||z.type==="circle").map(z=>{const W=z.points[0]||{x:0,y:0},X=z.points[z.points.length-1]||W,J=Math.min(W.x,X.x),ee=Math.min(W.y,X.y),tt=Math.max(10,Math.abs(X.x-W.x)),Pt=Math.max(10,Math.abs(X.y-W.y));return{x:J/e,y:ee/C,width:tt/e,height:Pt/C,color:z.color||"#EF4444",isNormalized:!0}})],P=await Tt.editPhoto({uri:q,rotation:Z!==0?Z:void 0,flipHorizontal:Te,flipVertical:Me,adjustments:{brightness:E.brightness/50,contrast:1+E.contrast/50,saturation:1+E.saturation/50,temperature:E.warmth/50,vignette:E.vignette/100},filterPreset:K!=="none"?K:void 0,redactions:T.length>0?T:void 0,annotations:k.length>0?k:void 0,format:M.format==="png"?"png":"jpeg",quality:.92});P?.uri?(ge(P.uri),P.width&&de(P.width),P.height&&ce(P.height),P.size&&ne(P.size),Le([]),$e([]),Ft({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),Se(0),Xt(!1),Yt(!1),L(I("mediaGallery.savedSuccess","Image Saved Successfully")),We?.refreshMediaCount?.().catch(()=>{})):L(I("mediaGallery.savedSuccess","Image Saved"))}catch{L(I("mediaGallery.saveFailed","Failed to save image"))}finally{Q(!1)}}},[M,q,j,le,se,pe,fe,Ze,Re,Pe,Z,Te,Me,E,K,oe,Fe,We,I]),ri=ot(async()=>{if(!(!M||!q||!j||me)){B("medium"),Q(!0);try{const e=await Tt.generateFilmstrip({uri:q,count:1,targetWidth:Re||1080,targetHeight:Pe||1920});e?.thumbnails&&e.thumbnails.length>0?(L(I("mediaGallery.snapshotSaved","Frame Snapshot Saved (PNG)")),We?.refreshMediaCount?.().catch(()=>{})):L(I("mediaGallery.snapshotFailed","Failed to snapshot frame"))}catch{L(I("mediaGallery.snapshotFailed","Failed to snapshot frame"))}finally{Q(!1)}}},[M,q,j,me,Re,Pe,We,I]),ir=oo(()=>{if(!j||!M)return!1;const e=M.durationMs||1e4,C=se>0||pe<e,T=fe||Ze<100,k=Ge!==1,P=Y!=null&&Y!==M.uri;return C||T||k||P},[j,M,se,pe,fe,Ze,Ge,Y]),ni=oo(()=>{if(!M)return!1;const e=Y!=null&&Y!==M.uri,C=oe.length>0,T=Fe.length>0,k=we.length>0,P=E.brightness!==0||E.contrast!==0||E.saturation!==0||E.warmth!==0||E.exposure!==0||E.vignette!==0;return e||C||T||k||P||(Z!==0||Te||Me)||K!=="none"||Ce||ye},[Y,M,oe.length,Fe.length,we.length,E,Z,Te,Me,K,Ce,ye]),rr=()=>{B("light"),oi()},nr=()=>{B("medium"),re(),Le([])},Sn=e=>{B("light"),_("crop"),qt(e),kt(Et(e,Re,Pe))},ai=async()=>{if(!(!q||!ie)){B("medium"),re(),Q(!0);try{const e=await Tt.cropToDefect(q,{x:Qt.x,y:Qt.y,width:Qt.width,height:Qt.height,isNormalized:!0});e?.uri?(ge(e.uri),e.width&&de(e.width),e.height&&ce(e.height),e.size&&ne(e.size),kt(Et("free",e.width,e.height)),qt("free"),L(I("mediaGallery.croppedSuccess","Image Cropped")),_("none")):L(I("mediaGallery.cropFailed","Crop failed"))}catch{L(I("mediaGallery.cropFailed","Crop failed"))}finally{Q(!1)}}},Bo=e=>{B("light"),e?(Xo(e),lo(e.text)):(Xo(null),lo("")),Jt(!0)},ar=e=>{B("light"),re(),$e(C=>C.filter(T=>T.id!==e))},sr=()=>{if(!so.trim()){Jt(!1);return}if(re(),Uo)$e(e=>e.map(C=>C.id===Uo.id?{...C,text:so.trim(),color:ve}:C));else{const e={id:`text_${Date.now()}`,text:so.trim(),x:ho.x,y:ho.y,color:S.white,bgColor:ve==="#FFFFFF"?"#0F172A":ve};$e(C=>[...C,e])}Jt(!1),lo(""),L(I("mediaGallery.textAdded","Text Added"))},Rn=async e=>{if(!(!q||!ie||me)){B("medium"),re(),Q(!0);try{const C=await Tt.editPhoto({uri:q,quality:.85,crop:{x:0,y:0,width:1,height:1,isNormalized:!0}});if(C?.uri){ge(C.uri);const T=Math.round((Re||1080)*e),k=Math.round((Pe||1920)*e);de(T),ce(k),C.size&&ne(Math.round(C.size*e*e)),L(I("mediaGallery.resizedSuccess",`Resized to ${Math.round(e*100)}% (${T}\xD7${k})`)),_("none")}}catch{L(I("mediaGallery.resizeFailed","Resize failed"))}finally{Q(!1)}}},lr=async()=>{try{B("light");const e=q.startsWith("file://")||q.startsWith("content://")||q.startsWith("http")?q:`file://${q}`,C=io.select({ios:{url:e,title:M.filename},default:{title:M.filename,message:M.filename,url:e}});(await Mi.share(C)).action===Mi.sharedAction&&L(I("mediaGallery.shareSuccess","Shared successfully"))}catch(e){e?.message!=="User did not share"&&L(I("mediaGallery.shareUnavailable","Sharing not available on this device"))}},dr=()=>{B("medium"),Je(!0)},si=async()=>{if(Mt){Ne(!0);try{await Mt(M),L(I("mediaGallery.convertedSuccess","Converted to GIF!"))}catch{L(I("mediaGallery.convertFailed","Conversion failed"))}finally{Ne(!1)}}},Io=async()=>{try{Xe(!0),await Jr.playVideo(q)}catch{L(I("mediaGallery.playError","Unable to play video"))}finally{Xe(!1)}},Pn=async()=>{if(!(!q||!j||me)){Q(!0),B("light");try{const C=Math.min(le||1e4,5e3),T=await Tt.trimReproClip(q,0,C,{quality:"medium"});T?.uri&&(ge(T.uri),T.width&&de(T.width),T.height&&ce(T.height),T.size&&ne(T.size),T.durationMs&&Ke(T.durationMs),L(I("mediaGallery.trimmedSuccess","Trimmed to 5s Repro Clip")))}catch{L(I("mediaGallery.trimFailed","Trim failed"))}finally{Q(!1)}}},hr=async()=>{if(!(!q||!j||me)){Q(!0),B("light");try{const e=await Tt.muteVideo(q);e?.uri&&(ge(e.uri),e.width&&de(e.width),e.height&&ce(e.height),e.size&&ne(e.size),e.durationMs&&Ke(e.durationMs),L(I("mediaGallery.mutedSuccess","Audio Stripped")))}catch{L(I("mediaGallery.muteFailed","Mute failed"))}finally{Q(!1)}}},to=le?(le/1e3).toFixed(1):null,li=to?`00:${Number(to)<10?"0":""}${to}`:null,cr=[{key:"none",label:I("mediaGallery.preview","Preview"),themeColor:S.brandPurple,icon:e=><Ai size={16}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"crop",label:"Crop",themeColor:S.sky600,icon:e=><Ii size={16}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"adjust",label:"Adjust",themeColor:S.amber500,icon:e=><Vi size={16}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"draw",label:"Markup",themeColor:S.sky400,icon:e=><Vo size={16}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"text",label:"Text",themeColor:S.violet600,icon:e=><Ei size={16}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>}],ur=[{key:"none",label:I("mediaGallery.preview","Player"),themeColor:S.brandPurple,icon:e=><Ai size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"trim",label:I("media.trim","Trim"),themeColor:S.sky600,icon:e=><Wi size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>,hasBadge:se>0||pe<(le||1e4)},{key:"audio",label:I("media.audio","Audio"),themeColor:S.amber600,icon:e=><So size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>,hasBadge:fe||Ze<100},{key:"speed",label:I("media.speed","Speed"),themeColor:S.violet600,icon:e=><Ho size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>,hasBadge:Ge!==1},{key:"gif",label:I("media.toGif","To GIF"),themeColor:S.emerald500,icon:e=><Do size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>},{key:"snapshot",label:I("media.snapshot","Snapshot"),themeColor:S.pink500,icon:e=><Fo size={14}color={e?"#38BDF8":"rgba(255,255,255,0.55)"}/>}];return!M||!De?null:<Ci visible={De}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={ke}>
68
+ <F style={t.modalBackdrop}>
69
+ <Oo style={t.modalBackdropPressable}onPress={ke}/>
70
+ <F style={[t.modalContentCard,{height:`${te}%`,borderTopLeftRadius:te>=100?0:20,borderTopRightRadius:te>=100?0:20}]}>
71
+ <Fi translucent backgroundColor="transparent"barStyle="light-content"/>
72
+
73
+ <F style={[t.header,{paddingTop:Qe,borderTopLeftRadius:te>=100?0:20,borderTopRightRadius:te>=100?0:20}]}>
74
+ <Mr colors={[S.indigo600,S.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={[N.absoluteFill,{borderTopLeftRadius:te>=100?0:20,borderTopRightRadius:te>=100?0:20}]}pointerEvents="none"/>
75
+ <F style={t.headerInner}>
76
+
77
+ <F style={t.headerLeft}>
78
+ <Bt accessible={!0}accessibilityRole="button"accessibilityLabel={I("common.back","Back")}onPress={ke}hitSlop={15}style={t.headerBackBtn}>
79
+ <Nr size={17}/>
80
+ </Bt>
81
+ <F style={t.headerTextCol}>
82
+ <F style={t.headerTitleRow}>
83
+ <R style={t.title}numberOfLines={1}>
84
+ {M.filename||(ie?"debug_session.png":"recording.mp4")}
85
+ </R>
86
+ <F style={t.formatBadge}>
87
+ <R style={t.formatBadgeText}>
88
+ {(M.filename?.split(".").pop()||(ie?"PNG":j?"MP4":"GIF")).toUpperCase()}
89
+ </R>
90
+ </F>
91
+ </F>
92
+ <F style={t.headerSubtitleRow}>
93
+ <R style={t.subtitleDim}numberOfLines={1}>
94
+ {Re&&Pe?`${Re} \xD7 ${Pe}`:ie?"1320 \xD7 2868":"1080 \xD7 1920"}
95
+ </R>
96
+ {Zo?<>
97
+ <R style={t.subtitleDot}>•</R>
98
+ <R style={t.subtitleSize}>
99
+ {Gi(Zo)}
100
+ </R>
101
+ </>:<>
102
+ <R style={t.subtitleDot}>•</R>
103
+ <R style={t.subtitleSize}>774 KB</R>
104
+ </>}
105
+ </F>
106
+ </F>
107
+ </F>
108
+
109
+
110
+ <F style={t.headerRight}>
111
+
112
+ {ie&&<F style={t.undoRedoGroup}>
113
+ <A accessible={!0}accessibilityRole="button"accessibilityLabel={I("common.undo","Undo")}onPress={oi}disabled={we.length===0}style={[t.undoHalfBtn,we.length===0&&t.actionDisabled]}hitSlop={{top:8,bottom:8,left:6,right:4}}>
114
+ <Hi size={14}color={we.length>0?S.white:"rgba(255, 255, 255, 0.35)"}/>
115
+ </A>
116
+ <F style={t.undoDivider}/>
117
+ <A accessible={!0}accessibilityRole="button"accessibilityLabel="Redo"onPress={tr}disabled={Ee.length===0}style={[t.redoHalfBtn,Ee.length===0&&t.actionDisabled]}hitSlop={{top:8,bottom:8,left:4,right:6}}>
118
+ <Er size={14}color={Ee.length>0?S.white:"rgba(255, 255, 255, 0.35)"}/>
119
+ </A>
120
+ </F>}
121
+
122
+
123
+ <Bt accessible={!0}accessibilityRole="button"accessibilityLabel="More Options"onPress={()=>{B("light"),nt(e=>!e)}}style={t.headerMoreBtn}hitSlop={{top:8,bottom:8,left:6,right:6}}>
124
+ <Dr size={16}color={S.white}/>
125
+ </Bt>
126
+
127
+
128
+ <Bt accessible={!0}accessibilityRole="button"accessibilityLabel={I("common.save","Save")}onPress={ii}disabled={me}style={[t.headerSaveBtn,me&&{opacity:.6}]}hitSlop={{top:8,bottom:8,left:6,right:6}}>
129
+ <Gr size={14}color={S.white}/>
130
+ <R style={t.headerSaveText}>{I("common.save","Save")}</R>
131
+ </Bt>
132
+ </F>
133
+ </F>
134
+ </F>
135
+
136
+
137
+ {$i&&<F style={t.moreMenuDropdown}>
138
+ {(ie&&ni||j&&ir)&&<A onPress={()=>{nt(!1),or()}}style={t.moreMenuItem}>
139
+ <Di size={14}color={S.sky400}/>
140
+ <R style={t.moreMenuItemText}>
141
+ {I("common.reset","Reset to Original")}
142
+ </R>
143
+ </A>}
144
+ {ie&&<A onPress={()=>{B("light"),Dt(e=>!e),nt(!1)}}style={t.moreMenuItem}>
145
+ <Wo size={14}color={ye?S.sky400:S.white}/>
146
+ <R style={t.moreMenuItemText}>
147
+ {ye?I("mediaGallery.hideGridlines","Hide Instagram Grid (3\xD73)"):I("mediaGallery.showGridlines","Show Instagram Grid (3\xD73)")}
148
+ </R>
149
+ </A>}
150
+ {ie&&<A onPress={()=>{B("light"),re(),Ot(e=>!e),nt(!1)}}style={t.moreMenuItem}>
151
+ <R style={t.moreMenuItemIconText}>🛡</R>
152
+ <R style={t.moreMenuItemText}>
153
+ {Ce?I("mediaGallery.hideWatermark","Hide QA Watermark"):I("mediaGallery.showWatermark","Show QA Watermark")}
154
+ </R>
155
+ </A>}
156
+ {j&&<A onPress={()=>{nt(!1),si()}}style={t.moreMenuItem}>
157
+ <Do size={14}color={S.violet600}/>
158
+ <R style={t.moreMenuItemText}>
159
+ {I("mediaGallery.exportGif","Export as Animated GIF")}
160
+ </R>
161
+ </A>}
162
+ {j&&<A onPress={()=>{nt(!1),ri()}}style={t.moreMenuItem}>
163
+ <Fo size={14}color={S.sky400}/>
164
+ <R style={t.moreMenuItemText}>
165
+ {I("mediaGallery.snapshotFrame","Snapshot Frame (PNG)")}
166
+ </R>
167
+ </A>}
168
+ <A onPress={()=>{nt(!1),lr()}}style={t.moreMenuItem}>
169
+ <Lr size={14}color={S.white}/>
170
+ <R style={t.moreMenuItemText}>
171
+ {I("mediaGallery.share",j?"Share Video":"Share Image")}
172
+ </R>
173
+ </A>
174
+ <A onPress={()=>{nt(!1),dr()}}style={[t.moreMenuItem,t.moreMenuItemDestructive]}>
175
+ <$r size={14}color={S.rose500}/>
176
+ <R style={[t.moreMenuItemText,{color:S.rose500}]}>
177
+ {I("mediaGallery.delete","Delete Media")}
178
+ </R>
179
+ </A>
180
+ </F>}
92
181
 
182
+
183
+ <F style={t.stageWrapper}>
184
+ <F onLayout={e=>{const{width:C,height:T}=e.nativeEvent.layout;C>20&&T>20&&_o(k=>({...k,width:C,height:T}))}}style={t.previewCard}>
185
+ {j?M.thumbnailUri&&!Ue?<>
186
+ <Co source={{uri:M.thumbnailUri}}style={t.image}resizeMode="contain"onError={()=>ze(!0)}/>
187
+ <F style={t.videoImageOverlay}/>
188
+ </>:<F style={t.videoFallbackBackdrop}>
189
+ <F style={t.videoFallbackGlow}/>
190
+ <Ir size={52}color={S.sky400}/>
191
+ <R style={t.videoFallbackTitle}>
192
+ {M.width&&M.height?`${M.width} \xD7 ${M.height}`:"HD Video Recording"}
193
+ </R>
194
+ <R style={t.videoFallbackSubtitle}>
195
+ {to?`${to}s duration`:"MP4 Video"} •{" "}
196
+ {Gi(M.sizeBytes)}
197
+ </R>
198
+ </F>:<Gt.View onLayout={e=>{const{width:C,height:T}=e.nativeEvent.layout;C>20&&T>20&&_o(k=>({...k,width:C,height:T}))}}style={[t.canvasContainer,{transform:[...Oe.getTranslateTransform(),{scale:ae}]}]}{...O==="draw"?qi.panHandlers:O==="none"&&ae>1?Qi.panHandlers:{}}>
199
+ <F style={[t.imageCanvasWrapper,{width:Ae.width,height:Ae.height,transform:[{rotate:`${Z}deg`},{scaleX:Te?-1:1},{scaleY:Me?-1:1}]}]}>
93
200
 
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>)}
201
+ <Co key={Be?M?.uri:q}source={{uri:Be?M?.uri:q}}style={t.image}resizeMode="cover"onError={()=>ze(!0)}/>
102
202
 
103
203
 
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}%`}]}/>
204
+ {!Be&&<>
107
205
 
108
- <T pointerEvents="none"style={[e.cropDimMask,{top:`${(r.y+r.height)*100}%`,left:0,right:0,bottom:0}]}/>
206
+ {E.brightness+E.exposure!==0&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:E.brightness+E.exposure>0?"#FFFFFF":"#000000",opacity:Math.min(.65,Math.abs(E.brightness+E.exposure)/100*.7)}]}/>}
207
+
109
208
 
110
- <T pointerEvents="none"style={[e.cropDimMask,{top:`${r.y*100}%`,left:0,width:`${r.x*100}%`,height:`${r.height*100}%`}]}/>
209
+ {E.warmth!==0&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:E.warmth>0?"#F59E0B":"#0284C7",opacity:Math.min(.4,Math.abs(E.warmth)/50*.35)}]}/>}
210
+
111
211
 
112
- <T pointerEvents="none"style={[e.cropDimMask,{top:`${r.y*100}%`,left:`${(r.x+r.width)*100}%`,right:0,height:`${r.height*100}%`}]}/>
212
+ {E.saturation>0&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"#A855F7",opacity:Math.min(.2,E.saturation/50*.15)}]}/>}
113
213
 
114
214
 
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>
215
+ {E.vignette>0&&<F pointerEvents="none"style={[N.absoluteFill,{borderRadius:6,borderWidth:Math.max(2,E.vignette/100*44),borderColor:`rgba(0, 0, 0, ${.85*(E.vignette/100)})`}]}/>}
122
216
 
123
217
 
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]}/>
218
+ {K==="mono"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(100, 116, 139, 0.45)"}]}/>}
219
+ {K==="noir"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(0, 0, 0, 0.48)"}]}/>}
220
+ {K==="sepia"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(120, 53, 15, 0.32)"}]}/>}
221
+ {K==="vintage"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(217, 119, 6, 0.22)"}]}/>}
222
+ {K==="vibrant"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(236, 72, 153, 0.16)"}]}/>}
223
+ {K==="cool"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(14, 165, 233, 0.22)"}]}/>}
224
+ {K==="warm"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(249, 115, 22, 0.22)"}]}/>}
225
+ {K==="fade"&&<F pointerEvents="none"style={[N.absoluteFill,{backgroundColor:"rgba(255, 255, 255, 0.18)"}]}/>}
226
+ </>}
130
227
 
228
+
229
+ {!Be&&<Fr style={N.absoluteFill}pointerEvents={O==="draw"?"auto":"none"}>
230
+ <Ct>
131
231
 
132
- <T style={e.cropEdgeBarTop}/>
133
- <T style={e.cropEdgeBarBottom}/>
134
- <T style={e.cropEdgeBarLeft}/>
135
- <T style={e.cropEdgeBarRight}/>
232
+ {oe.map(e=>{if(e.type==="brush"){if(e.points.length<2)return null;const C=e.points.reduce((T,k,P)=>P===0?`M ${k.x} ${k.y}`:`${T} L ${k.x} ${k.y}`,"");return<Mo key={e.id}d={C}stroke={e.color}strokeWidth={e.strokeWidth}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}if(e.type==="highlighter"){if(e.points.length<2)return null;const C=e.points.reduce((T,k,P)=>P===0?`M ${k.x} ${k.y}`:`${T} L ${k.x} ${k.y}`,"");return<Mo key={e.id}d={C}stroke={e.color}strokeWidth={e.strokeWidth*2.5}strokeOpacity={.4}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}if(e.type==="arrow"){if(e.points.length<2)return null;const C=e.points[0],T=e.points[1],k=T.x-C.x,P=T.y-C.y,z=Math.atan2(P,k),W=Math.min(28,Math.max(14,e.strokeWidth*3.5)),X=Math.PI/6,J=T.x-W*Math.cos(z-X),ee=T.y-W*Math.sin(z-X),tt=T.x-W*Math.cos(z+X),Pt=T.y-W*Math.sin(z+X);return<Ct key={e.id}>
233
+ <$t x1={C.x}y1={C.y}x2={T.x}y2={T.y}stroke={e.color}strokeWidth={e.strokeWidth}strokeLinecap="round"/>
234
+ <Ri points={`${T.x},${T.y} ${J},${ee} ${tt},${Pt}`}fill={e.color}/>
235
+ </Ct>}if(e.type==="rect"){const C=e.rect||{x:Math.min(e.points[0]?.x||0,e.points[1]?.x||0),y:Math.min(e.points[0]?.y||0,e.points[1]?.y||0),width:Math.abs((e.points[1]?.x||0)-(e.points[0]?.x||0)),height:Math.abs((e.points[1]?.y||0)-(e.points[0]?.y||0))};return<Nt key={e.id}x={C.x}y={C.y}width={C.width}height={C.height}stroke={e.color}strokeWidth={e.strokeWidth}rx={6}ry={6}fill="none"/>}if(e.type==="circle"){const C=e.points[0]||{x:0,y:0},T=e.points[1]||C,k=Math.min(C.x,T.x),P=Math.min(C.y,T.y),z=Math.max(10,Math.abs(T.x-C.x)),W=Math.max(10,Math.abs(T.y-C.y));return<To key={e.id}cx={k+z/2}cy={P+W/2}rx={z/2}ry={W/2}stroke={e.color}strokeWidth={e.strokeWidth}fill="none"/>}if(e.type==="spotlight"){const C=e.points[0]||{x:0,y:0},T=e.points[1]||C,k=Math.min(C.x,T.x),P=Math.min(C.y,T.y),z=Math.max(16,Math.abs(T.x-C.x)),W=Math.max(16,Math.abs(T.y-C.y));return<Ct key={e.id}>
236
+ <To cx={k+z/2}cy={P+W/2}rx={z/2}ry={W/2}stroke="#FBBF24"strokeWidth={2.5}strokeDasharray="5,3"fill="rgba(255, 255, 255, 0.15)"/>
237
+ </Ct>}if(e.type==="step"){const C=e.points[0]||{x:0,y:0},T=Math.max(12,Math.min(20,e.strokeWidth*2.2+8));return<Ct key={e.id}>
238
+ <Si cx={C.x}cy={C.y}r={T}fill={e.color||"#EF4444"}stroke="#FFFFFF"strokeWidth={1.5}/>
239
+ <Pi x={C.x}y={C.y+T*.35}fill="#FFFFFF"fontSize={Math.round(T*.95)}fontWeight="bold"textAnchor="middle">
240
+ {e.stepNumber||1}
241
+ </Pi>
242
+ </Ct>}if(e.type==="redact"){const C=e.rect||{x:Math.min(e.points[0]?.x||0,e.points[1]?.x||0),y:Math.min(e.points[0]?.y||0,e.points[1]?.y||0),width:Math.abs((e.points[1]?.x||0)-(e.points[0]?.x||0)),height:Math.abs((e.points[1]?.y||0)-(e.points[0]?.y||0))};return<Nt key={e.id}x={C.x}y={C.y}width={C.width}height={C.height}fill="#000000"rx={4}ry={4}/>}if(e.type==="pixelate"){const C=e.rect||{x:Math.min(e.points[0]?.x||0,e.points[1]?.x||0),y:Math.min(e.points[0]?.y||0,e.points[1]?.y||0),width:Math.abs((e.points[1]?.x||0)-(e.points[0]?.x||0)),height:Math.abs((e.points[1]?.y||0)-(e.points[0]?.y||0))};return<Ct key={e.id}>
243
+ <Nt x={C.x}y={C.y}width={C.width}height={C.height}fill="rgba(255,255,255,0.22)"stroke="rgba(255,255,255,0.5)"strokeWidth={1.5}strokeDasharray="4,4"rx={4}ry={4}/>
244
+ <$t x1={C.x}y1={C.y+C.height*.33}x2={C.x+C.width}y2={C.y+C.height*.33}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
245
+ <$t x1={C.x}y1={C.y+C.height*.66}x2={C.x+C.width}y2={C.y+C.height*.66}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
246
+ <$t x1={C.x+C.width*.33}y1={C.y}x2={C.x+C.width*.33}y2={C.y+C.height}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
247
+ <$t x1={C.x+C.width*.66}y1={C.y}x2={C.x+C.width*.66}y2={C.y+C.height}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
248
+ </Ct>}return null})}
136
249
 
137
250
 
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>}
251
+ {H&&H.length>0&&<>
252
+ {D==="brush"&&H.length>1&&<Mo d={H.reduce((e,C,T)=>T===0?`M ${C.x} ${C.y}`:`${e} L ${C.x} ${C.y}`,"")}stroke={ve}strokeWidth={Ie}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}
146
253
 
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}/>
152
- </T>
153
- <T style={e.centerPlayPill}>
154
- <S style={e.centerPlayText}>
155
- {Ht?z("mediaGallery.playing","Playing Video..."):z("mediaGallery.playVideo","Play Video")}
156
- </S>
157
- </T>
158
- </A>}
254
+ {D==="highlighter"&&H.length>1&&<Mo d={H.reduce((e,C,T)=>T===0?`M ${C.x} ${C.y}`:`${e} L ${C.x} ${C.y}`,"")}stroke={ve}strokeWidth={Ie*2.5}strokeOpacity={.4}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}
255
+
256
+ {D==="arrow"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=C.x-e.x,k=C.y-e.y,P=Math.atan2(k,T),z=Math.min(28,Math.max(14,Ie*3.5)),W=Math.PI/6,X=C.x-z*Math.cos(P-W),J=C.y-z*Math.sin(P-W),ee=C.x-z*Math.cos(P+W),tt=C.y-z*Math.sin(P+W);return<Ct>
257
+ <$t x1={e.x}y1={e.y}x2={C.x}y2={C.y}stroke={ve}strokeWidth={Ie}strokeLinecap="round"/>
258
+ <Ri points={`${C.x},${C.y} ${X},${J} ${ee},${tt}`}fill={ve}/>
259
+ </Ct>})()}
260
+
261
+ {D==="rect"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=Math.min(e.x,C.x),k=Math.min(e.y,C.y),P=Math.abs(C.x-e.x),z=Math.abs(C.y-e.y);return<Nt x={T}y={k}width={P}height={z}stroke={ve}strokeWidth={Ie}rx={6}ry={6}fill="none"/>})()}
262
+
263
+ {D==="circle"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=Math.min(e.x,C.x),k=Math.min(e.y,C.y),P=Math.max(10,Math.abs(C.x-e.x)),z=Math.max(10,Math.abs(C.y-e.y));return<To cx={T+P/2}cy={k+z/2}rx={P/2}ry={z/2}stroke={ve}strokeWidth={Ie}fill="none"/>})()}
264
+
265
+ {D==="spotlight"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=Math.min(e.x,C.x),k=Math.min(e.y,C.y),P=Math.max(16,Math.abs(C.x-e.x)),z=Math.max(16,Math.abs(C.y-e.y));return<Ct>
266
+ <To cx={T+P/2}cy={k+z/2}rx={P/2}ry={z/2}stroke="#FBBF24"strokeWidth={2.5}strokeDasharray="5,3"fill="rgba(255, 255, 255, 0.15)"/>
267
+ </Ct>})()}
268
+
269
+ {D==="step"&&H.length>0&&(()=>{const e=H[0],C=oe.filter(k=>k.type==="step").length,T=Math.max(12,Math.min(20,Ie*2.2+8));return<Ct>
270
+ <Si cx={e.x}cy={e.y}r={T}fill={ve||"#EF4444"}stroke="#FFFFFF"strokeWidth={1.5}/>
271
+ <Pi x={e.x}y={e.y+T*.35}fill="#FFFFFF"fontSize={Math.round(T*.95)}fontWeight="bold"textAnchor="middle">
272
+ {C+1}
273
+ </Pi>
274
+ </Ct>})()}
275
+
276
+ {D==="redact"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=Math.min(e.x,C.x),k=Math.min(e.y,C.y),P=Math.abs(C.x-e.x),z=Math.abs(C.y-e.y);return<Nt x={T}y={k}width={P}height={z}fill="#000000"stroke="rgba(255,255,255,0.4)"strokeWidth={1}strokeDasharray="3,3"rx={4}ry={4}/>})()}
277
+
278
+ {D==="pixelate"&&H.length>1&&(()=>{const e=H[0],C=H[H.length-1],T=Math.min(e.x,C.x),k=Math.min(e.y,C.y),P=Math.abs(C.x-e.x),z=Math.abs(C.y-e.y);return<Nt x={T}y={k}width={P}height={z}fill="rgba(255,255,255,0.22)"stroke="rgba(255,255,255,0.6)"strokeWidth={1.5}strokeDasharray="4,4"rx={4}ry={4}/>})()}
279
+ </>}
280
+ </Ct>
281
+ </Fr>}
282
+
283
+
284
+ {Ce&&!Be&&<F pointerEvents="none"style={t.watermarkOverlay}>
285
+ <R style={t.watermarkText}>
286
+ {io.OS.toUpperCase()} • {Re}×{Pe} • QA DIAGNOSTIC
287
+ </R>
288
+ <R style={t.watermarkTime}>
289
+ {new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}
290
+ </R>
291
+ </F>}
292
+
293
+
294
+ {O==="text"&&<Oo style={N.absoluteFill}onPress={e=>{const{locationX:C,locationY:T}=e.nativeEvent,k=Math.max(1,Ae.width),P=Math.max(1,Ae.height),z=Math.max(.05,Math.min(.85,C/k)),W=Math.max(.05,Math.min(.85,T/P));Zi({x:z,y:W}),Bo()}}/>}
159
295
 
296
+
297
+ {!Be&&Fe.map(e=><Cn key={e.id}textItem={e}canvasWidth={Ae.width}canvasHeight={Ae.height}scale={ae}onUpdate={(C,T)=>{re(),$e(k=>k.map(P=>P.id===C?{...P,...T}:P))}}onDelete={C=>{ar(C)}}onEdit={C=>Bo(C)}/>)}
298
+
299
+
300
+ {(ye||O==="crop")&&!Be&&<F pointerEvents="none"style={t.instagramGridOverlay}>
301
+ <F style={[t.instagramGridHLine,{top:"33.33%"}]}/>
302
+ <F style={[t.instagramGridHLine,{top:"66.67%"}]}/>
303
+ <F style={[t.instagramGridVLine,{left:"33.33%"}]}/>
304
+ <F style={[t.instagramGridVLine,{left:"66.67%"}]}/>
305
+ </F>}
306
+ </F>
307
+ </Gt.View>}
308
+
309
+
310
+
311
+
312
+ {ie&&ni&&<Oo onPressIn={()=>{B("light"),At(!0)}}onPressOut={()=>{B("light"),At(!1)}}style={({pressed:e})=>[t.holdCompareBtn,e&&t.holdCompareBtnPressed]}>
313
+ <Br size={14}color={S.white}/>
314
+ <R style={t.holdCompareText}>
315
+ {Be?"Original Image":"Hold to Compare"}
316
+ </R>
317
+ </Oo>}
318
+
319
+
320
+ {j&&<A onPress={Io}activeOpacity={.85}style={t.modernCenterPlayBtn}>
321
+ {ue?<Oi size={24}color={S.white}/>:<F style={{marginLeft:3}}>
322
+ <Eo size={24}color={S.white}/>
323
+ </F>}
324
+ </A>}
325
+
326
+
327
+ {j&&<F style={t.videoFloatingHud}>
328
+ <A onPress={Io}hitSlop={{top:8,bottom:8,left:8,right:8}}>
329
+ {ue?<Oi size={13}color={S.white}/>:<Eo size={13}color={S.white}/>}
330
+ </A>
331
+ <F style={t.videoHudProgressBar}>
332
+ <F style={[t.videoHudProgressFill,{left:`${se/(le||1e4)*100}%`,width:`${Math.max(4,(pe-se)/(le||1e4)*100)}%`}]}/>
333
+ </F>
334
+ <R style={t.videoHudTimeText}>
335
+ {li||"00:05"}
336
+ </R>
337
+ {fe&&<F style={t.videoHudBadge}>
338
+ <So size={10}color="#F87171"/>
339
+ </F>}
340
+ {Ge!==1&&<F style={t.videoHudBadge}>
341
+ <R style={t.videoHudBadgeText}>{Ge}x</R>
342
+ </F>}
343
+ </F>}
344
+
345
+
346
+ {ie&&<F style={t.floatingZoomBar}>
347
+ <Bt onPress={Ki}style={t.zoomBtn}accessibilityLabel="Zoom In">
348
+ <Ur size={15}color={S.white}/>
349
+ </Bt>
350
+
351
+ <A onPress={Ko}activeOpacity={.8}style={t.zoomLevelBadge}>
352
+ <R style={t.zoomLevelText}>
353
+ {Math.round(ae*100)}%
354
+ </R>
355
+ </A>
356
+
357
+ <Bt onPress={Ji}style={t.zoomBtn}accessibilityLabel="Zoom Out">
358
+ <Xr size={15}color={S.white}/>
359
+ </Bt>
360
+
361
+ <Bt onPress={Ko}style={t.zoomBtn}accessibilityLabel="Fit to Screen">
362
+ <Or size={14}color={S.white}/>
363
+ </Bt>
364
+ </F>}
365
+
366
+
367
+ {ie&&O==="crop"&&<Tn cropBox={Qt}imageWidth={Ae.width}imageHeight={Ae.height}imageOffsetX={(lt.width-Ae.width)/2}imageOffsetY={(lt.height-Ae.height)/2}scale={ae}onUpdateCropBox={kt}onApplyCrop={ai}onCancelCrop={()=>_("none")}/>}
368
+ </F>
369
+ </F>
370
+
371
+
372
+ <F style={t.bottomControlsContainer}>
373
+
374
+ {(ie||j)&&<F style={t.contextToolPanel}>
160
375
 
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>
167
- </T>
168
- </T>}
376
+ <F style={t.panelHeaderRow}>
377
+ <F style={t.panelHeaderLeft}>
378
+ <F style={[t.panelGlowDot,ie&&O==="draw"&&{backgroundColor:"#818CF8"},ie&&O==="crop"&&{backgroundColor:"#38BDF8"},ie&&O==="adjust"&&{backgroundColor:"#F59E0B"},ie&&O==="text"&&{backgroundColor:"#A855F7"},j&&O==="trim"&&{backgroundColor:"#38BDF8"},j&&O==="audio"&&{backgroundColor:"#F59E0B"},j&&O==="speed"&&{backgroundColor:"#8B5CF6"},j&&O==="gif"&&{backgroundColor:"#10B981"},j&&O==="snapshot"&&{backgroundColor:"#EC4899"},j&&O==="none"&&{backgroundColor:"#818CF8"}]}/>
379
+ <R style={t.panelHeaderTitle}>
380
+ {ie?O==="draw"?D==="redact"?"BLACKOUT REDACTION":D==="pixelate"?"PIXELATE BLUR":D==="highlighter"?"HIGHLIGHTER":D==="arrow"?"ARROW CALLOUT":D==="rect"?"RECTANGLE BOX":D==="circle"?"CIRCLE / ELLIPSE":D==="spotlight"?"SPOTLIGHT FOCUS":D==="step"?"STEP NUMBER BADGE":"PEN BRUSH":O==="crop"?"CROP & ROTATE":O==="adjust"?`ADJUST: ${He.toUpperCase()}`:O==="text"?"TEXT & BUG BADGES":"CANVAS PREVIEW":O==="trim"?"VIDEO TRIMMER":O==="audio"?"AUDIO CONTROLS":O==="speed"?"SPEED MULTIPLIER":O==="gif"?"GIF EXPORT STUDIO":O==="snapshot"?"FRAME SNAPSHOT":"VIDEO STUDIO & PLAYER"}
381
+ </R>
382
+ </F>
383
+ <F style={t.panelValueBadge}>
384
+ <R style={t.panelValueText}>
385
+ {ie?O==="draw"?D==="redact"?"100% Solid":D==="pixelate"?`+${Ro} px`:D==="step"?`Badge #${oe.filter(e=>e.type==="step").length+1}`:`+${Ie} px`:O==="crop"?`${zo.toUpperCase()} \u2022 ${Z}\xB0`:O==="adjust"?He==="vignette"?`+${E.vignette}%`:`${E[He]>=0?"+":""}${E[He]}%`:O==="text"?`${Fe.length} Notes`:`${Math.round(ae*100)}%`:O==="trim"?`${(se/1e3).toFixed(1)}s - ${(pe/1e3).toFixed(1)}s (${((pe-se)/1e3).toFixed(1)}s)`:O==="audio"?fe?"Muted (0%)":`${Ze}% Vol`:O==="speed"?`${Ge}x Speed`:O==="gif"?`${Zt} FPS \u2022 ${Po}px`:O==="snapshot"?`${Re||1080}\xD7${Pe||1920}`:li||"00:05"}
386
+ </R>
387
+ </F>
388
+ </F>
169
389
 
170
390
 
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>
175
- </T>
176
- </T>}
391
+ {j&&O==="trim"&&Lo.length>0&&<Ti horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={t.filmstripScroll}>
392
+ {Lo.map(e=>{const C=e.timeMs>=se&&e.timeMs<=pe;return<A key={`thumb_${e.index}_${e.timeMs}`}onPress={()=>{B("light"),et==="start"?at(Math.min(pe-500,e.timeMs)):st(Math.max(se+500,e.timeMs))}}style={[t.filmstripThumbItem,C&&t.filmstripThumbActive]}>
393
+ <Co source={{uri:e.uri}}style={t.filmstripThumbImg}resizeMode="cover"/>
394
+ <R style={t.filmstripThumbTime}>
395
+ {(e.timeMs/1e3).toFixed(1)}s
396
+ </R>
397
+ </A>})}
398
+ </Ti>}
177
399
 
178
400
 
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>
401
+ <F style={t.sliderRowContainer}>
402
+ <R style={t.sliderMinIndicator}>
403
+ {j&&O==="speed"?"0.5x":j&&O==="gif"?"6fps":"\u25CB"}
404
+ </R>
405
+ <F onLayout={e=>{const C=e.nativeEvent.layout.width;C>20&&(Jo.current=C)}}style={t.sliderTrackTouchable}{...er.panHandlers}>
406
+ <F style={t.sliderTrackBg}>
407
+ <F style={[t.sliderFillTrack,{width:`${ti}%`},j&&O==="trim"&&{left:`${se/(le||1e4)*100}%`,width:`${Math.max(4,(pe-se)/(le||1e4)*100)}%`,backgroundColor:"#38BDF8"}]}/>
408
+ <F pointerEvents="none"style={[t.sliderThumbHandle,{left:`${ti}%`}]}>
409
+ <F style={t.sliderThumbInnerGlow}/>
410
+ </F>
411
+ </F>
412
+ </F>
413
+ <R style={t.sliderMaxIndicator}>
414
+ {j&&O==="speed"?"2.0x":j&&O==="gif"?"24fps":"\u25CF"}
415
+ </R>
416
+ </F>
188
417
 
189
418
 
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>
419
+ <Ti horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={t.modeChipsScroll}>
420
+ {j?O==="trim"?<>
421
+
422
+ <A onPress={()=>{B("light"),ro("start")}}style={[t.modeChip,et==="start"&&t.modeChipActive]}>
423
+ <R style={[t.modeChipText,et==="start"&&t.modeChipTextActive]}>
424
+ Start: {(se/1e3).toFixed(1)}s
425
+ </R>
426
+ </A>
206
427
 
207
-
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>
428
+ <A onPress={()=>{B("light"),ro("end")}}style={[t.modeChip,et==="end"&&t.modeChipActive]}>
429
+ <R style={[t.modeChipText,et==="end"&&t.modeChipTextActive]}>
430
+ End: {(pe/1e3).toFixed(1)}s
431
+ </R>
432
+ </A>
433
+
434
+ <F style={t.subDivider}/>
435
+
436
+
437
+ <A onPress={()=>{B("light");const e=le||1e4;at(0),st(Math.min(e,3e3))}}style={t.modeChip}>
438
+ <R style={t.modeChipText}>First 3s</R>
439
+ </A>
440
+
441
+ <A onPress={()=>{B("light");const e=le||1e4;at(0),st(Math.min(e,5e3))}}style={t.modeChip}>
442
+ <R style={t.modeChipText}>First 5s</R>
443
+ </A>
444
+
445
+ <A onPress={()=>{B("light");const e=le||1e4;at(0),st(Math.min(e,1e4))}}style={t.modeChip}>
446
+ <R style={t.modeChipText}>First 10s</R>
447
+ </A>
448
+
449
+ <F style={t.subDivider}/>
450
+
451
+ <A onPress={ii}style={t.applyActionBtn}>
452
+ <R style={t.applyActionText}>Apply Trim</R>
453
+ </A>
454
+
455
+ <A onPress={()=>{B("light"),at(0),st(le||1e4)}}style={t.cancelActionBtn}>
456
+ <R style={t.cancelActionText}>Reset</R>
457
+ </A>
458
+ </>:O==="audio"?<>
459
+ <A onPress={()=>{B("light"),_t(e=>!e)}}style={[t.modeChip,fe&&t.modeChipActive]}>
460
+ <So size={14}color={fe?S.white:"rgba(255,255,255,0.7)"}/>
461
+ <R style={[t.modeChipText,fe&&t.modeChipTextActive]}>
462
+ {fe?"Muted":"Unmuted"}
463
+ </R>
464
+ </A>
465
+
466
+ <F style={t.subDivider}/>
467
+
468
+ {[100,75,50,25,0].map(e=><A key={e}onPress={()=>{B("light"),no(e),_t(e===0)}}style={[t.modeChip,!fe&&Ze===e&&t.modeChipActive]}>
469
+ <R style={[t.modeChipText,!fe&&Ze===e&&t.modeChipTextActive]}>
470
+ {e}%
471
+ </R>
472
+ </A>)}
473
+
474
+ <F style={t.subDivider}/>
475
+
476
+ <A onPress={hr}style={t.applyActionBtn}>
477
+ <R style={t.applyActionText}>Strip Audio</R>
478
+ </A>
479
+ </>:O==="speed"?<>
480
+ {[.5,.75,1,1.25,1.5,2].map(e=><A key={e}onPress={()=>{B("light"),ao(e)}}style={[t.modeChip,Ge===e&&t.modeChipActive]}>
481
+ <Ho size={13}color={Ge===e?S.white:"rgba(255,255,255,0.7)"}/>
482
+ <R style={[t.modeChipText,Ge===e&&t.modeChipTextActive]}>
483
+ {e===1?"1.0x (Normal)":`${e}x`}
484
+ </R>
485
+ </A>)}
486
+ </>:O==="gif"?<>
487
+
488
+ {[{fps:8,label:"8 FPS (Small)"},{fps:12,label:"12 FPS (Smooth)"},{fps:20,label:"20 FPS (HD)"}].map(e=><A key={e.fps}onPress={()=>{B("light"),Go(e.fps)}}style={[t.modeChip,Zt===e.fps&&t.modeChipActive]}>
489
+ <R style={[t.modeChipText,Zt===e.fps&&t.modeChipTextActive]}>
490
+ {e.label}
491
+ </R>
492
+ </A>)}
493
+
494
+ <F style={t.subDivider}/>
495
+
496
+
497
+ {[{w:320,label:"320px"},{w:480,label:"480px"},{w:640,label:"640px"}].map(e=><A key={e.w}onPress={()=>{B("light"),Ui(e.w)}}style={[t.modeChip,Po===e.w&&t.modeChipActive]}>
498
+ <R style={[t.modeChipText,Po===e.w&&t.modeChipTextActive]}>
499
+ {e.label}
500
+ </R>
501
+ </A>)}
502
+
503
+ <F style={t.subDivider}/>
504
+
505
+ <A onPress={si}disabled={Ve}style={[t.applyActionBtn,Ve&&{opacity:.6}]}>
506
+ <R style={t.applyActionText}>
507
+ {Ve?"Exporting...":"Export GIF"}
508
+ </R>
509
+ </A>
510
+ </>:O==="snapshot"?<>
511
+ <A onPress={ri}disabled={me}style={t.applyActionBtn}>
512
+ <Fo size={14}color={S.white}/>
513
+ <R style={t.applyActionText}>
514
+ Snapshot Current Frame (PNG)
515
+ </R>
516
+ </A>
517
+ </>:<>
518
+ <A onPress={Io}style={t.modeChipActive}>
519
+ <Eo size={14}color={S.white}/>
520
+ <R style={t.modeChipTextActive}>Play Video</R>
521
+ </A>
522
+ <A onPress={()=>{B("light"),_("trim")}}style={t.modeChip}>
523
+ <Wi size={14}color="rgba(255,255,255,0.7)"/>
524
+ <R style={t.modeChipText}>Trim Clip</R>
525
+ </A>
526
+ <A onPress={()=>{B("light"),_("audio")}}style={t.modeChip}>
527
+ <So size={14}color="rgba(255,255,255,0.7)"/>
528
+ <R style={t.modeChipText}>Audio</R>
529
+ </A>
530
+ <A onPress={()=>{B("light"),_("speed")}}style={t.modeChip}>
531
+ <Ho size={14}color="rgba(255,255,255,0.7)"/>
532
+ <R style={t.modeChipText}>Speed</R>
533
+ </A>
534
+ <A onPress={()=>{B("light"),_("gif")}}style={t.modeChip}>
535
+ <Do size={14}color="rgba(255,255,255,0.7)"/>
536
+ <R style={t.modeChipText}>Export GIF</R>
537
+ </A>
538
+ <A onPress={()=>{B("light"),_("snapshot")}}style={t.modeChip}>
539
+ <Fo size={14}color="rgba(255,255,255,0.7)"/>
540
+ <R style={t.modeChipText}>Snapshot</R>
541
+ </A>
542
+ </>:O==="draw"?<>
543
+
544
+ <A onPress={()=>{B("light"),_e("brush")}}style={[t.modeChip,D==="brush"&&t.modeChipActive]}>
545
+ <Vo size={14}color={D==="brush"?S.white:"rgba(255,255,255,0.6)"}/>
546
+ <R style={[t.modeChipText,D==="brush"&&t.modeChipTextActive]}>
547
+ Brush
548
+ </R>
549
+ </A>
550
+
551
+
552
+ <A onPress={()=>{B("light"),_e("highlighter")}}style={[t.modeChip,D==="highlighter"&&t.modeChipActive]}>
553
+ <Ar size={14}color={D==="highlighter"?S.white:"rgba(255,255,255,0.6)"}/>
554
+ <R style={[t.modeChipText,D==="highlighter"&&t.modeChipTextActive]}>
555
+ Highlighter
556
+ </R>
215
557
  </A>
216
- <A onPress={ao}style={e.applyActionBtn}>
217
- <S style={e.applyActionText}>Apply Crop</S>
558
+
559
+
560
+ <A onPress={()=>{B("light"),_e("arrow")}}style={[t.modeChip,D==="arrow"&&t.modeChipActive]}>
561
+ <Rr size={14}color={D==="arrow"?S.white:"rgba(255,255,255,0.6)"}/>
562
+ <R style={[t.modeChipText,D==="arrow"&&t.modeChipTextActive]}>
563
+ Arrow
564
+ </R>
218
565
  </A>
219
- </T>
220
- </T>
221
566
 
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>}
231
-
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>}
242
-
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>}
259
-
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>}
567
+
568
+ <A onPress={()=>{B("light"),_e("rect")}}style={[t.modeChip,D==="rect"&&t.modeChipActive]}>
569
+ <R style={[t.modeChipIconText,D==="rect"&&{color:S.white}]}>
570
+ □
571
+ </R>
572
+ <R style={[t.modeChipText,D==="rect"&&t.modeChipTextActive]}>
573
+ Rectangle
574
+ </R>
575
+ </A>
278
576
 
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>
577
+
578
+ <A onPress={()=>{B("light"),_e("circle")}}style={[t.modeChip,D==="circle"&&t.modeChipActive]}>
579
+ <R style={[t.modeChipIconText,D==="circle"&&{color:S.white}]}>
580
+ ○
581
+ </R>
582
+ <R style={[t.modeChipText,D==="circle"&&t.modeChipTextActive]}>
583
+ Circle
584
+ </R>
585
+ </A>
586
+
587
+
588
+ <A onPress={()=>{B("light"),_e("spotlight")}}style={[t.modeChip,D==="spotlight"&&t.modeChipActive]}>
589
+ <R style={[t.modeChipIconText,D==="spotlight"&&{color:S.white}]}>
590
+ 🔦
591
+ </R>
592
+ <R style={[t.modeChipText,D==="spotlight"&&t.modeChipTextActive]}>
593
+ Spotlight
594
+ </R>
595
+ </A>
596
+
597
+
598
+ <A onPress={()=>{B("light"),_e("step"),L(I("mediaGallery.tapToPlaceStep","Tap or drag on image to place numbered steps \u2460 \u2461 \u2462"))}}style={[t.modeChip,D==="step"&&t.modeChipActive]}>
599
+ <R style={[t.modeChipIconText,D==="step"&&{color:S.white}]}>
600
+ ①
601
+ </R>
602
+ <R style={[t.modeChipText,D==="step"&&t.modeChipTextActive]}>
603
+ Step #{oe.filter(e=>e.type==="step").length+1}
604
+ </R>
605
+ </A>
606
+
607
+
608
+ <A onPress={()=>{B("light"),_e("redact")}}style={[t.modeChip,D==="redact"&&t.modeChipActive]}>
609
+ <Vr size={14}color={D==="redact"?S.white:"rgba(255,255,255,0.6)"}/>
610
+ <R style={[t.modeChipText,D==="redact"&&t.modeChipTextActive]}>
611
+ Redact
612
+ </R>
613
+ </A>
614
+
615
+
616
+ <A onPress={()=>{B("light"),_e("pixelate")}}style={[t.modeChip,D==="pixelate"&&t.modeChipActive]}>
617
+ <Wr size={14}color={D==="pixelate"?S.white:"rgba(255,255,255,0.6)"}/>
618
+ <R style={[t.modeChipText,D==="pixelate"&&t.modeChipTextActive]}>
619
+ Pixelate
620
+ </R>
621
+ </A>
622
+
623
+ <F style={t.subDivider}/>
624
+
625
+ {Li.map(e=><A key={e}onPress={()=>{B("light"),No(e)}}style={[t.colorDot,{backgroundColor:e},ve===e&&t.colorDotActive]}/>)}
626
+
627
+ <F style={t.subDivider}/>
628
+
629
+ <A onPress={rr}disabled={oe.length===0}style={[t.actionPillBtn,oe.length===0&&{opacity:.4}]}>
630
+ <Hi size={13}color={S.white}/>
631
+ <R style={t.actionPillText}>Undo</R>
632
+ </A>
633
+
634
+ {oe.length>0&&<A onPress={nr}style={[t.actionPillBtn,{backgroundColor:"rgba(239, 68, 68, 0.2)"}]}>
635
+ <R style={[t.actionPillText,{color:S.rose400}]}>
636
+ Clear ({oe.length})
637
+ </R>
638
+ </A>}
639
+ </>:O==="adjust"?<>
640
+
641
+ {[{key:"none",label:"Original",icon:"\u2726"},{key:"vibrant",label:"Vibrant",icon:"\u{1F308}"},{key:"mono",label:"Mono",icon:"\u25D0"},{key:"sepia",label:"Sepia",icon:"\u2615"},{key:"vintage",label:"Vintage",icon:"\u{1F39E}"},{key:"noir",label:"Noir",icon:"\u{1F311}"},{key:"cool",label:"Cool",icon:"\u2744"},{key:"warm",label:"Warm",icon:"\u2600"},{key:"fade",label:"Fade",icon:"\u{1F32B}"}].map(e=><A key={e.key}onPress={()=>{B("light"),re(),Ut(e.key)}}style={[t.modeChip,K===e.key&&t.modeChipActive]}>
642
+ <R style={[t.modeChipIconText,K===e.key&&{color:S.white}]}>
643
+ {e.icon}
644
+ </R>
645
+ <R style={[t.modeChipText,K===e.key&&t.modeChipTextActive]}>
646
+ {e.label}
647
+ </R>
648
+ </A>)}
649
+
650
+ <F style={t.subDivider}/>
651
+
652
+
653
+ <A onPress={()=>{B("light"),re(),Ot(e=>!e)}}style={[t.modeChip,Ce&&t.modeChipActive]}>
654
+ <R style={[t.modeChipIconText,Ce&&{color:S.white}]}>
655
+ 🛡
656
+ </R>
657
+ <R style={[t.modeChipText,Ce&&t.modeChipTextActive]}>
658
+ QA Bar {Ce?"ON":"OFF"}
659
+ </R>
660
+ </A>
661
+
662
+
663
+ <A onPress={()=>{B("light"),Dt(e=>!e)}}style={[t.modeChip,ye&&t.modeChipActive]}>
664
+ <Wo size={13}color={ye?S.white:"rgba(255,255,255,0.8)"}/>
665
+ <R style={[t.modeChipText,ye&&t.modeChipTextActive]}>
666
+ Grid 3×3
667
+ </R>
668
+ </A>
669
+
670
+ <F style={t.subDivider}/>
671
+
672
+
673
+ {[{key:"brightness",label:I("media.brightness","Brightness"),IconComponent:Yr},{key:"contrast",label:I("media.contrast","Contrast"),IconComponent:_r},{key:"saturation",label:I("media.saturation","Saturation"),IconComponent:Zr},{key:"warmth",label:I("media.warmth","Warmth"),IconComponent:qr},{key:"exposure",label:I("media.exposure","Exposure"),IconComponent:Qr},{key:"vignette",label:I("media.vignette","Vignette"),IconComponent:Kr}].map(e=>{const C=e.IconComponent,T=He===e.key;return<A key={e.key}onPress={()=>{B("light"),Ni(e.key)}}style={[t.modeChip,T&&t.modeChipActive]}>
674
+ <C size={14}color={T?S.white:S.grayTextWeak}/>
675
+ <R style={[t.modeChipText,T&&t.modeChipTextActive]}>
676
+ {e.label}
677
+ </R>
678
+ </A>})}
679
+ <F style={t.subDivider}/>
680
+ <A onPress={()=>{B("medium"),re(),Ut("none"),Ot(!1),Ft({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),L(I("mediaGallery.resetAdjustments","Adjustments Reset"))}}style={t.modeChip}>
681
+ <Di size={12}color="rgba(255,255,255,0.7)"/>
682
+ <R style={t.modeChipText}>Reset</R>
683
+ </A>
684
+ </>:O==="crop"?<>
685
+ {["free","1:1","4:3","16:9","9:16","3:2"].map(e=><A key={e}onPress={()=>{B("light"),qt(e);const C=Et(e,Re,Pe);kt(C)}}style={[t.modeChip,zo===e&&t.modeChipActive]}>
686
+ <R style={[t.modeChipText,zo===e&&t.modeChipTextActive]}>
687
+ {e==="free"?"Free":e}
688
+ </R>
689
+ </A>)}
690
+ <F style={t.subDivider}/>
691
+
692
+ <A onPress={()=>{B("light"),re(),Se(e=>(e+90)%360)}}style={t.modeChip}>
693
+ <Hr size={13}color="rgba(255,255,255,0.8)"/>
694
+ <R style={t.modeChipText}>Rotate 90°</R>
695
+ </A>
696
+
697
+ <A onPress={()=>{B("light"),re(),Xt(e=>!e)}}style={[t.modeChip,Te&&t.modeChipActive]}>
698
+ <R style={[t.modeChipIconText,Te&&{color:S.white}]}>
699
+ ⇄
700
+ </R>
701
+ <R style={[t.modeChipText,Te&&t.modeChipTextActive]}>
702
+ Flip H
703
+ </R>
704
+ </A>
705
+
706
+ <A onPress={()=>{B("light"),re(),Yt(e=>!e)}}style={[t.modeChip,Me&&t.modeChipActive]}>
707
+ <R style={[t.modeChipIconText,Me&&{color:S.white}]}>
708
+ ⇅
709
+ </R>
710
+ <R style={[t.modeChipText,Me&&t.modeChipTextActive]}>
711
+ Flip V
712
+ </R>
713
+ </A>
714
+
715
+ <A onPress={()=>{B("light"),Dt(e=>!e)}}style={[t.modeChip,ye&&t.modeChipActive]}>
716
+ <Wo size={13}color={ye?S.white:"rgba(255,255,255,0.8)"}/>
717
+ <R style={[t.modeChipText,ye&&t.modeChipTextActive]}>
718
+ Grid 3×3
719
+ </R>
720
+ </A>
721
+ <F style={t.subDivider}/>
722
+ <A onPress={ai}style={t.applyActionBtn}>
723
+ <R style={t.applyActionText}>Apply</R>
724
+ </A>
725
+ <A onPress={()=>_("none")}style={t.cancelActionBtn}>
726
+ <R style={t.cancelActionText}>Cancel</R>
727
+ </A>
728
+ </>:O==="text"?<>
729
+ <A onPress={()=>Bo()}style={t.modeChipActive}>
730
+ <R style={t.modeChipTextActive}>+ Custom Note</R>
731
+ </A>
732
+
733
+ <F style={t.subDivider}/>
734
+
735
+
736
+ {[{label:"\u{1F41E} BUG",color:"#EF4444"},{label:"\u26A0\uFE0F OVERFLOW",color:"#F59E0B"},{label:"\u26A1 SLOW >3s",color:"#8B5CF6"},{label:"\u{1F6AB} API 500",color:"#DC2626"},{label:"\u{1F4A5} CRASH",color:"#991B1B"}].map(e=><A key={e.label}onPress={()=>{B("light"),re(),$e(C=>[...C,{id:`text_${Date.now()}_${Math.random()}`,text:e.label,x:ho?.x??.35,y:ho?.y??.35,color:"#FFFFFF",bgColor:e.color,fontSize:13}]),L(I("mediaGallery.tagPlaced",`Placed tag: ${e.label}`))}}style={[t.modeChip,{borderColor:e.color,backgroundColor:`${e.color}26`}]}>
737
+ <R style={[t.modeChipText,{color:e.color,fontWeight:"700"}]}>
738
+ {e.label}
739
+ </R>
740
+ </A>)}
741
+
742
+ <F style={t.subDivider}/>
743
+
744
+ {Li.map(e=><A key={e}onPress={()=>{B("light"),No(e)}}style={[t.colorDot,{backgroundColor:e},ve===e&&t.colorDotActive]}/>)}
745
+ {Fe.length>0&&<>
746
+ <F style={t.subDivider}/>
747
+ <A onPress={()=>{B("medium"),re(),$e([])}}style={[t.modeChip,{backgroundColor:"rgba(239, 68, 68, 0.2)"}]}>
748
+ <R style={[t.modeChipText,{color:S.rose500}]}>
749
+ Clear All ({Fe.length})
750
+ </R>
751
+ </A>
752
+ </>}
753
+ </>:<>
754
+ <A onPress={()=>{B("light"),_("draw"),_e("brush")}}style={t.modeChip}>
755
+ <Vo size={14}color="rgba(255,255,255,0.7)"/>
756
+ <R style={t.modeChipText}>Markup</R>
757
+ </A>
758
+ <A onPress={()=>{B("light");const e=Et("free",Re,Pe);kt(e),qt("free"),_("crop")}}style={t.modeChip}>
759
+ <Ii size={14}color="rgba(255,255,255,0.7)"/>
760
+ <R style={t.modeChipText}>Crop</R>
761
+ </A>
762
+ <A onPress={()=>{B("light"),_("adjust")}}style={t.modeChip}>
763
+ <Vi size={14}color="rgba(255,255,255,0.7)"/>
764
+ <R style={t.modeChipText}>Adjust</R>
765
+ </A>
766
+ <A onPress={()=>{B("light"),_("text"),L(I("mediaGallery.tapToAddText","Tap anywhere on the image to add text"))}}style={t.modeChip}>
767
+ <Ei size={14}color="rgba(255,255,255,0.7)"/>
768
+ <R style={t.modeChipText}>Add Text</R>
769
+ </A>
770
+ </>}
771
+ </Ti>
772
+ </F>}
773
+
774
+
775
+ <F style={t.studioToolbar}>
776
+ {(ie?cr:ur).map(e=>{const C=O===e.key;return<Bt key={e.key}onPress={()=>{if(B("light"),e.key==="crop"){const T=Et("free",Re,Pe);kt(T),qt("free"),_("crop")}else e.key==="text"?(_("text"),L(I("mediaGallery.tapToAddText","Tap anywhere on the image to add text"))):_(e.key)}}style={[t.studioToolItem,C&&t.studioToolItemActive]}>
777
+ {e.icon(C)}
778
+ <R style={[t.studioToolLabel,C&&t.studioToolLabelActive]}>
779
+ {e.label}
780
+ </R>
781
+ {"hasBadge"in e&&e.hasBadge&&<F style={t.studioTabBadgeDot}/>}
782
+ </Bt>})}
783
+ </F>
784
+ </F>
785
+ </F>
786
+ </F>
351
787
 
352
788
 
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>
789
+ <Ci visible={_i}transparent={!0}animationType="fade"onRequestClose={()=>Jt(!1)}>
790
+ <F style={t.textModalBackdrop}>
791
+ <F style={t.textModalCard}>
792
+ <R style={t.textModalTitle}>
793
+ Add Text Note / Callout
794
+ </R>
795
+ <Cr style={t.textModalInput}placeholder="e.g. Defect: Button overlap"placeholderTextColor="rgba(255,255,255,0.4)"value={so}onChangeText={lo}autoFocus={!0}multiline={!0}/>
796
+ <F style={t.textModalActions}>
797
+ <A onPress={()=>Jt(!1)}style={t.modalCancelBtn}>
798
+ <R style={t.modalCancelText}>Cancel</R>
361
799
  </A>
362
- <A onPress={no}style={e.modalConfirmBtn}>
363
- <S style={e.modalConfirmText}>Place Text</S>
800
+ <A onPress={sr}style={t.modalConfirmBtn}>
801
+ <R style={t.modalConfirmText}>Place Text</R>
364
802
  </A>
365
- </T>
366
- </T>
367
- </T>
368
- </Ct>
803
+ </F>
804
+ </F>
805
+ </F>
806
+ </Ci>
369
807
 
370
808
 
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}});
809
+ <Sr visible={Ye}title={I("mediaGallery.deleteTitle","Delete Media?")}message={I("mediaGallery.deleteMessage",{filename:M.filename})}confirmText={I("mediaGallery.delete","Delete")}cancelText={I("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{Je(!1),It(M),ke()}}onCancel={()=>Je(!1)}/>
810
+ </Ci>};const t=N.create({modalBackdrop:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.70)",justifyContent:"flex-end",zIndex:999999,elevation:999999},modalBackdropPressable:{...N.absoluteFillObject},modalContentCard:{backgroundColor:"#070A14",borderTopLeftRadius:20,borderTopRightRadius:20,overflow:"hidden",shadowColor:S.black,shadowOffset:{width:0,height:-4},shadowOpacity:.25,shadowRadius:10,elevation:16},header:{width:"100%",zIndex:10,borderBottomWidth:N.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.12)"},headerInner:{width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingTop:6,paddingBottom:8,minHeight:48},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0,marginRight:6},headerTextCol:{flex:1,minWidth:0,justifyContent:"center"},headerTitleRow:{flexDirection:"row",alignItems:"center",gap:6},title:{fontFamily:$.interBold,fontSize:13,color:S.white,letterSpacing:-.1,flexShrink:1},formatBadge:{backgroundColor:"rgba(255, 255, 255, 0.18)",paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,borderWidth:N.hairlineWidth,borderColor:"rgba(255, 255, 255, 0.25)"},formatBadgeText:{fontFamily:$.interBold,fontSize:8.5,color:S.white,letterSpacing:.4},headerSubtitleRow:{flexDirection:"row",alignItems:"center",gap:4,marginTop:1},subtitleDim:{fontFamily:$.interMedium,fontSize:10,color:"rgba(255, 255, 255, 0.85)"},subtitleDot:{fontSize:10,color:"rgba(255, 255, 255, 0.45)"},subtitleSize:{fontFamily:$.interBold,fontSize:10,color:"#38BDF8"},headerBackBtn:{width:32,height:32,borderRadius:16,alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.12)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)"},headerRight:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},undoRedoGroup:{flexDirection:"row",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.12)",borderRadius:8,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",height:30,overflow:"hidden"},undoHalfBtn:{paddingHorizontal:8,height:"100%",alignItems:"center",justifyContent:"center"},redoHalfBtn:{paddingHorizontal:8,height:"100%",alignItems:"center",justifyContent:"center"},undoDivider:{width:1,height:14,backgroundColor:"rgba(255, 255, 255, 0.2)"},actionDisabled:{opacity:.35},headerMoreBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.12)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",alignItems:"center",justifyContent:"center"},headerSaveBtn:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"#059669",borderRadius:8,borderWidth:1,borderColor:"rgba(52, 211, 153, 0.45)",paddingHorizontal:11,height:30},headerSaveText:{fontFamily:$.interBold,fontSize:11,color:S.white},headerExportBtn:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"#0284C7",borderRadius:8,borderWidth:1,borderColor:"rgba(56, 189, 248, 0.5)",paddingHorizontal:10,height:30},headerExportText:{fontFamily:$.interBold,fontSize:11,color:S.white},headerActionBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)",alignItems:"center",justifyContent:"center"},moreMenuDropdown:{position:"absolute",top:52,right:12,backgroundColor:"#0F172A",borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",padding:6,zIndex:100,elevation:12,shadowColor:S.black,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:8,minWidth:160},moreMenuItem:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:10,borderRadius:8},moreMenuItemDestructive:{borderTopWidth:N.hairlineWidth,borderTopColor:"rgba(255, 255, 255, 0.1)",marginTop:4,paddingTop:8},moreMenuItemText:{fontFamily:$.interMedium,fontSize:12,color:S.white},stageWrapper:{flex:1,width:"100%",backgroundColor:"#03050A",paddingHorizontal:8,paddingTop:8,paddingBottom:4,minHeight:0},previewCard:{flex:1,width:"100%",borderRadius:12,overflow:"hidden",backgroundColor:"#03050A",alignItems:"center",justifyContent:"center",position:"relative"},canvasContainer:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",position:"relative"},imageCanvasWrapper:{position:"relative",alignItems:"center",justifyContent:"center"},instagramGridOverlay:{...N.absoluteFillObject,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.45)",zIndex:15},instagramGridHLine:{position:"absolute",left:0,right:0,height:1,backgroundColor:"rgba(255, 255, 255, 0.45)",shadowColor:"#000000",shadowOpacity:.6,shadowRadius:1,shadowOffset:{width:0,height:.5}},instagramGridVLine:{position:"absolute",top:0,bottom:0,width:1,backgroundColor:"rgba(255, 255, 255, 0.45)",shadowColor:"#000000",shadowOpacity:.6,shadowRadius:1,shadowOffset:{width:.5,height:0}},image:{width:"100%",height:"100%"},stageTopLeftBadge:{position:"absolute",top:12,left:12,flexDirection:"row",alignItems:"center",gap:6,backgroundColor:"rgba(10, 15, 29, 0.88)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)",zIndex:20},badgeGlowDot:{width:7,height:7,borderRadius:3.5,backgroundColor:"#38BDF8",shadowColor:"#38BDF8",shadowOffset:{width:0,height:0},shadowOpacity:.9,shadowRadius:4},badgeGlowText:{fontFamily:$.interSemiBold,fontSize:10.5,color:"rgba(255, 255, 255, 0.92)"},holdCompareBtn:{position:"absolute",bottom:12,left:12,flexDirection:"row",alignItems:"center",gap:6,backgroundColor:"rgba(10, 15, 29, 0.90)",paddingHorizontal:12,paddingVertical:7,borderRadius:14,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)",shadowColor:S.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:4,zIndex:20},holdCompareBtnPressed:{backgroundColor:S.indigo600,borderColor:S.indigo400},holdCompareText:{fontFamily:$.interSemiBold,fontSize:11,color:S.white},floatingZoomBar:{position:"absolute",right:12,bottom:12,backgroundColor:"rgba(10, 15, 29, 0.92)",borderRadius:22,borderWidth:1.2,borderColor:"rgba(255, 255, 255, 0.16)",paddingVertical:5,paddingHorizontal:5,alignItems:"center",gap:4,shadowColor:S.black,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:12,zIndex:35},zoomBtn:{width:28,height:28,borderRadius:14,backgroundColor:"rgba(255, 255, 255, 0.10)",alignItems:"center",justifyContent:"center"},zoomLevelBadge:{paddingHorizontal:4,paddingVertical:3},zoomLevelText:{fontFamily:$.interBold,fontSize:9.5,color:"#38BDF8",letterSpacing:.2},videoImageOverlay:{...N.absoluteFillObject,backgroundColor:"rgba(10, 13, 20, 0.28)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:S.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:$.interSemiBold,fontSize:15,color:S.white,marginTop:12},videoFallbackSubtitle:{fontFamily:$.interRegular,fontSize:12,color:"rgba(255, 255, 255, 0.6)",marginTop:4},modernCenterPlayBtn:{position:"absolute",width:60,height:60,borderRadius:30,backgroundColor:"rgba(15, 23, 42, 0.78)",borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.45)",alignItems:"center",justifyContent:"center",shadowColor:S.black,shadowOffset:{width:0,height:4},shadowOpacity:.6,shadowRadius:10,elevation:12,zIndex:25},videoFloatingHud:{position:"absolute",bottom:12,left:12,right:12,backgroundColor:"rgba(10, 15, 29, 0.88)",borderRadius:14,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.16)",flexDirection:"row",alignItems:"center",paddingHorizontal:12,paddingVertical:8,gap:10,shadowColor:S.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:6,elevation:6,zIndex:20},videoHudProgressBar:{flex:1,height:4,backgroundColor:"rgba(255, 255, 255, 0.15)",borderRadius:2,position:"relative",overflow:"hidden"},videoHudProgressFill:{position:"absolute",top:0,bottom:0,backgroundColor:"#38BDF8",borderRadius:2},videoHudTimeText:{fontFamily:$.interBold,fontSize:10.5,color:S.white,letterSpacing:.2},videoHudBadge:{backgroundColor:"rgba(255, 255, 255, 0.12)",paddingHorizontal:5,paddingVertical:2,borderRadius:6},videoHudBadgeText:{fontFamily:$.interBold,fontSize:9,color:"#C084FC"},filmstripScroll:{flexDirection:"row",alignItems:"center",gap:6,paddingVertical:2},filmstripThumbItem:{width:48,height:48,borderRadius:8,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.2)",overflow:"hidden",position:"relative",backgroundColor:"#0F172A"},filmstripThumbActive:{borderColor:"#38BDF8",borderWidth:2,transform:[{scale:1.05}]},filmstripThumbImg:{width:"100%",height:"100%"},filmstripThumbTime:{position:"absolute",bottom:2,right:2,backgroundColor:"rgba(0, 0, 0, 0.75)",paddingHorizontal:3,paddingVertical:1,borderRadius:3,fontFamily:$.interBold,fontSize:7.5,color:S.white},bottomControlsContainer:{width:"100%",backgroundColor:"#070A14",paddingHorizontal:8,paddingTop:6,paddingBottom:io.OS==="ios"?24:12,borderTopWidth:N.hairlineWidth,borderTopColor:"rgba(255, 255, 255, 0.08)",gap:6},contextToolPanel:{width:"100%",backgroundColor:"rgba(10, 15, 29, 0.96)",borderRadius:16,paddingVertical:9,paddingHorizontal:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)",gap:8},panelHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},panelHeaderLeft:{flexDirection:"row",alignItems:"center",gap:7},panelGlowDot:{width:7,height:7,borderRadius:3.5,backgroundColor:"#818CF8",shadowColor:"#818CF8",shadowOffset:{width:0,height:0},shadowOpacity:.9,shadowRadius:4},panelHeaderTitle:{fontFamily:$.interBold,fontSize:11,color:S.white,letterSpacing:.6},panelValueBadge:{backgroundColor:"rgba(2, 132, 199, 0.22)",paddingHorizontal:8,paddingVertical:3,borderRadius:8,borderWidth:1,borderColor:"rgba(56, 189, 248, 0.45)"},panelValueText:{fontFamily:$.interBold,fontSize:10.5,color:"#38BDF8"},sliderRowContainer:{flexDirection:"row",alignItems:"center",width:"100%",gap:8,paddingHorizontal:2},sliderMinIndicator:{fontSize:10,color:"rgba(255, 255, 255, 0.5)"},sliderMaxIndicator:{fontSize:12,color:"rgba(255, 255, 255, 0.85)"},sliderTrackTouchable:{flex:1,height:36,justifyContent:"center"},sliderTrackBg:{width:"100%",height:4,backgroundColor:"rgba(255, 255, 255, 0.14)",borderRadius:2,position:"relative",justifyContent:"center"},sliderFillTrack:{height:4,backgroundColor:"#0284C7",borderRadius:2},sliderThumbHandle:{position:"absolute",width:20,height:20,borderRadius:10,backgroundColor:"#38BDF8",marginLeft:-10,alignItems:"center",justifyContent:"center",shadowColor:"#38BDF8",shadowOffset:{width:0,height:0},shadowOpacity:.9,shadowRadius:6,elevation:6},sliderThumbInnerGlow:{width:8,height:8,borderRadius:4,backgroundColor:S.white},modeChipsScroll:{flexDirection:"row",alignItems:"center",gap:8,paddingTop:2},modeChip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:12,paddingVertical:6,borderRadius:10,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)"},modeChipActive:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:12,paddingVertical:6,borderRadius:10,backgroundColor:"rgba(2, 132, 199, 0.28)",borderColor:"#38BDF8",borderWidth:1.2},modeChipText:{fontFamily:$.interSemiBold,fontSize:11,color:"rgba(255, 255, 255, 0.75)"},modeChipTextActive:{color:S.white,fontFamily:$.interBold,fontSize:11},modeChipIconText:{fontSize:13,color:"rgba(255, 255, 255, 0.7)",marginRight:1},subDivider:{width:1,height:18,backgroundColor:"rgba(255, 255, 255, 0.16)",marginHorizontal:4},colorDot:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:"rgba(255, 255, 255, 0.3)"},colorDotActive:{borderColor:S.white,transform:[{scale:1.25}]},actionPillBtn:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:6,borderRadius:10,backgroundColor:"rgba(255, 255, 255, 0.10)"},actionPillText:{fontFamily:$.interSemiBold,fontSize:10.5,color:S.white},applyActionBtn:{backgroundColor:S.emerald600,paddingHorizontal:14,paddingVertical:6,borderRadius:10},applyActionText:{fontFamily:$.interBold,fontSize:11.5,color:S.white},cancelActionBtn:{backgroundColor:"rgba(255, 255, 255, 0.14)",paddingHorizontal:12,paddingVertical:6,borderRadius:10},cancelActionText:{fontFamily:$.interSemiBold,fontSize:11.5,color:"rgba(255, 255, 255, 0.85)"},studioToolbar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:"rgba(15, 20, 36, 0.95)",borderRadius:16,paddingVertical:4,paddingHorizontal:5,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.08)",gap:4},studioToolItem:{flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,paddingVertical:7,paddingHorizontal:4,borderRadius:12,borderWidth:1,borderColor:"transparent",position:"relative"},studioToolItemActive:{backgroundColor:"rgba(2, 132, 199, 0.22)",borderColor:"#38BDF8",borderWidth:1.2},studioToolLabel:{fontFamily:$.interSemiBold,fontSize:10,color:"rgba(255, 255, 255, 0.60)",letterSpacing:.1},studioToolLabelActive:{color:"#38BDF8",fontFamily:$.interBold},studioTabBadgeDot:{position:"absolute",top:6,right:12,width:5,height:5,borderRadius:2.5,backgroundColor:"#C084FC"},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:S.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:4},textAnnotationText:{fontFamily:$.interBold,fontSize:11},textDeleteBtn:{width:14,height:14,borderRadius:7,backgroundColor:"rgba(0, 0, 0, 0.45)",alignItems:"center",justifyContent:"center"},cropOverlayMask:{...N.absoluteFillObject,zIndex:100,elevation:100},cropDimMask:{position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.58)"},cropBoxFrame:{position:"absolute",borderWidth:2,borderStyle:"solid",borderColor:"#FFFFFF",backgroundColor:"rgba(56, 189, 248, 0.08)",shadowColor:S.black,shadowOffset:{width:0,height:0},shadowOpacity:.9,shadowRadius:5,elevation:10},cropGridH:{position:"absolute",left:0,right:0,height:1,backgroundColor:"rgba(255, 255, 255, 0.45)"},cropGridV:{position:"absolute",top:0,bottom:0,width:1,backgroundColor:"rgba(255, 255, 255, 0.45)"},cropCornerBracket:{position:"absolute",width:20,height:20,borderColor:"#FFFFFF",shadowColor:S.black,shadowOffset:{width:0,height:1},shadowOpacity:.8,shadowRadius:3,elevation:6},bracketTL:{top:-3,left:-3,borderTopWidth:4,borderLeftWidth:4},bracketTR:{top:-3,right:-3,borderTopWidth:4,borderRightWidth:4},bracketBL:{bottom:-3,left:-3,borderBottomWidth:4,borderLeftWidth:4},bracketBR:{bottom:-3,right:-3,borderBottomWidth:4,borderRightWidth:4},cropEdgeBarTop:{position:"absolute",top:-3,left:"50%",marginLeft:-18,width:36,height:5,backgroundColor:"#FFFFFF",borderRadius:2.5},cropEdgeBarBottom:{position:"absolute",bottom:-3,left:"50%",marginLeft:-18,width:36,height:5,backgroundColor:"#FFFFFF",borderRadius:2.5},cropEdgeBarLeft:{position:"absolute",left:-3,top:"50%",marginTop:-18,width:5,height:36,backgroundColor:"#FFFFFF",borderRadius:2.5},cropEdgeBarRight:{position:"absolute",right:-3,top:"50%",marginTop:-18,width:5,height:36,backgroundColor:"#FFFFFF",borderRadius:2.5},cropHandleTouchArea:{position:"absolute",width:44,height:44,alignItems:"center",justifyContent:"center",zIndex:30},handleAreaTL:{top:-22,left:-22},handleAreaTR:{top:-22,right:-22},handleAreaBL:{bottom:-22,left:-22},handleAreaBR:{bottom:-22,right:-22},cropEdgeTouchAreaTop:{position:"absolute",top:-20,left:"25%",right:"25%",height:40,alignItems:"center",justifyContent:"center",zIndex:25},cropEdgeTouchAreaBottom:{position:"absolute",bottom:-20,left:"25%",right:"25%",height:40,alignItems:"center",justifyContent:"center",zIndex:25},cropEdgeTouchAreaLeft:{position:"absolute",left:-20,top:"25%",bottom:"25%",width:40,alignItems:"center",justifyContent:"center",zIndex:25},cropEdgeTouchAreaRight:{position:"absolute",right:-20,top:"25%",bottom:"25%",width:40,alignItems:"center",justifyContent:"center",zIndex:25},cropCancelBtn:{position:"absolute",top:14,left:14,width:38,height:38,borderRadius:19,backgroundColor:"#DC2626",borderWidth:2,borderColor:S.white,alignItems:"center",justifyContent:"center",shadowColor:S.black,shadowOffset:{width:0,height:4},shadowOpacity:.6,shadowRadius:8,elevation:16,zIndex:200},cropConfirmBtn:{position:"absolute",top:14,right:14,width:38,height:38,borderRadius:19,backgroundColor:"#10B981",borderWidth:2,borderColor:S.white,alignItems:"center",justifyContent:"center",shadowColor:S.black,shadowOffset:{width:0,height:4},shadowOpacity:.6,shadowRadius:8,elevation:16,zIndex:200},textModalBackdrop:{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:$.interBold,fontSize:14,color:S.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:$.interRegular,fontSize:13,color:S.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:$.interSemiBold,fontSize:12,color:"rgba(255, 255, 255, 0.7)"},modalConfirmBtn:{paddingHorizontal:16,paddingVertical:8,borderRadius:8,backgroundColor:S.indigo600},modalConfirmText:{fontFamily:$.interBold,fontSize:12,color:S.white},watermarkOverlay:{position:"absolute",bottom:0,left:0,right:0,backgroundColor:"rgba(3, 7, 18, 0.85)",paddingHorizontal:10,paddingVertical:5,flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderTopWidth:N.hairlineWidth,borderTopColor:"rgba(255, 255, 255, 0.2)"},watermarkText:{fontFamily:$.interBold,fontSize:9.5,color:"#38BDF8",letterSpacing:.2},watermarkTime:{fontFamily:$.interSemiBold,fontSize:9.5,color:"#94A3B8"},moreMenuItemIconText:{fontSize:14}});