react-native-inapp-inspector 2.5.12 → 2.5.14

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