react-native-inapp-inspector 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +151 -53
- package/README.de.md +150 -52
- package/README.es.md +139 -42
- package/README.fr.md +151 -53
- package/README.hi.md +141 -43
- package/README.ja.md +150 -69
- package/README.ko.md +153 -55
- package/README.md +73 -14
- package/README.pt-BR.md +152 -54
- package/README.ru.md +153 -55
- package/README.zh-CN.md +95 -219
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +154 -9
- package/dist/commonjs/capture.d.ts +5 -2
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/Inspector/FabLauncher.js +12 -12
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +17 -17
- package/dist/commonjs/components/Inspector/InspectorHeader.js +41 -41
- package/dist/commonjs/components/Inspector/MainScreen.js +15 -15
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +52 -34
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +744 -304
- package/dist/commonjs/components/NetworkIcons.d.ts +12 -0
- package/dist/commonjs/components/NetworkIcons.js +56 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/types/interfaces.d.ts +2 -0
- package/dist/esm/capture.d.ts +5 -2
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/Inspector/FabLauncher.js +37 -37
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +30 -30
- package/dist/esm/components/Inspector/InspectorHeader.js +34 -34
- package/dist/esm/components/Inspector/MainScreen.js +51 -51
- package/dist/esm/components/Inspector/MediaGalleryTab.js +100 -82
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/esm/components/Inspector/MediaPreviewModal.js +774 -334
- package/dist/esm/components/NetworkIcons.d.ts +12 -0
- package/dist/esm/components/NetworkIcons.js +256 -203
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/types/interfaces.d.ts +2 -0
- package/ios/NetworkInspectorModule.mm +487 -224
- package/package.json +1 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +22 -0
- package/src/native/NativeNetworkInspector.ts +1 -1
|
@@ -1,365 +1,805 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,h,w,m){m===void 0&&(m=w);var y=Object.getOwnPropertyDescriptor(h,w);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[w]}}),Object.defineProperty(o,m,y)}):(function(o,h,w,m){m===void 0&&(m=w),o[m]=h[w]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,h){Object.defineProperty(o,"default",{enumerable:!0,value:h})}):function(o,h){o.default=h}),__importStar=this&&this.__importStar||(function(){var o=function(h){return o=Object.getOwnPropertyNames||function(w){var m=[];for(var y in w)Object.prototype.hasOwnProperty.call(w,y)&&(m[m.length]=y);return m},o(h)};return function(h){if(h&&h.__esModule)return h;var w={};if(h!=null)for(var m=o(h),y=0;y<m.length;y++)m[y]!=="default"&&__createBinding(w,h,m[y]);return __setModuleDefault(w,h),w}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};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")),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"],MediaPreviewModal=({item:o,visible:h,onClose:w,onDelete:m,onConvertToGif:y})=>{const{t:n}=(0,i18n_1.useTranslation)(),[de,he]=(0,react_1.useState)(!1),[P,v]=(0,react_1.useState)(!1),[Be,F]=(0,react_1.useState)(null),[Me,O]=(0,react_1.useState)(o?.width),[Re,I]=(0,react_1.useState)(o?.height),[ze,D]=(0,react_1.useState)(o?.sizeBytes),[Ve,J]=(0,react_1.useState)(o?.durationMs),[Pe,Q]=(0,react_1.useState)(!1),[Fe,pe]=(0,react_1.useState)(!1),[Oe,ee]=(0,react_1.useState)(!1),[l,S]=(0,react_1.useState)("none"),[ue,N]=(0,react_1.useState)(1),[$,ge]=(0,react_1.useState)(0),[te,Ie]=(0,react_1.useState)("free"),[i,T]=(0,react_1.useState)({x:.1,y:.15,width:.8,height:.7}),[A,ye]=(0,react_1.useState)("#EF4444"),[j,De]=(0,react_1.useState)(4),[E,q]=(0,react_1.useState)([]),[oe,U]=(0,react_1.useState)(null),[ht,$e]=(0,react_1.useState)("rect"),[He,ie]=(0,react_1.useState)([]),[We,X]=(0,react_1.useState)([]),[Le,G]=(0,react_1.useState)(!1),[be,fe]=(0,react_1.useState)(null),[Y,Z]=(0,react_1.useState)(""),[Ee,ae]=(0,react_1.useState)([]),pt=(0,react_1.useRef)(null),[we,me]=(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}),z=(0,react_1.useRef)(l);z.current=l;const Te=(0,react_1.useRef)(A);Te.current=A;const Ce=(0,react_1.useRef)(j);Ce.current=j;const xe=(0,react_1.useRef)(i);xe.current=i;const re=(0,react_1.useRef)(we);re.current=we;const Ge=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>z.current==="draw",onMoveShouldSetPanResponder:()=>z.current==="draw",onPanResponderGrant:e=>{const{locationX:t,locationY:a}=e.nativeEvent;U([{x:t,y:a}])},onPanResponderMove:e=>{const{locationX:t,locationY:a}=e.nativeEvent;U(g=>g?[...g,{x:t,y:a}]:[{x:t,y:a}])},onPanResponderRelease:()=>{U(e=>(e&&e.length>1&&q(t=>[...t,{id:`stroke_${Date.now()}_${Math.random()}`,points:e,color:Te.current,strokeWidth:Ce.current}]),null))}})).current,K=(0,react_1.useRef)({mode:"none",startX:0,startY:0,origBox:{x:.08,y:.1,width:.84,height:.75}}),Ne=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>z.current==="crop",onStartShouldSetPanResponderCapture:()=>z.current==="crop",onMoveShouldSetPanResponder:()=>z.current==="crop",onMoveShouldSetPanResponderCapture:()=>z.current==="crop",onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:e=>{const t=re.current,a=t.width>50?t.width:react_native_1.Dimensions.get("window").width-16,g=t.height>50?t.height:react_native_1.Dimensions.get("window").height*.72,{locationX:L,locationY:k}=e.nativeEvent,p=Math.max(0,Math.min(1,L/a)),d=Math.max(0,Math.min(1,k/g)),_=xe.current,B=_.x,R=_.y,s=_.x+_.width,c=_.y+_.height,b=Math.max(.08,40/a),f=Math.max(.08,40/g);let r="none";Math.abs(p-B)<=b&&Math.abs(d-R)<=f?r="tl":Math.abs(p-s)<=b&&Math.abs(d-R)<=f?r="tr":Math.abs(p-B)<=b&&Math.abs(d-c)<=f?r="bl":Math.abs(p-s)<=b&&Math.abs(d-c)<=f?r="br":Math.abs(d-R)<=f&&p>=B&&p<=s?r="top":Math.abs(d-c)<=f&&p>=B&&p<=s?r="bottom":Math.abs(p-B)<=b&&d>=R&&d<=c?r="left":Math.abs(p-s)<=b&&d>=R&&d<=c?r="right":p>=B&&p<=s&&d>=R&&d<=c?r="center":r="new",K.current={mode:r,startX:p,startY:d,origBox:{..._}}},onPanResponderMove:(e,t)=>{const a=re.current,g=a.width>0?a.width:react_native_1.Dimensions.get("window").width-16,L=a.height>0?a.height:react_native_1.Dimensions.get("window").height*.7;if(!g||!L)return;const k=t.dx/g,p=t.dy/L,{mode:d,startX:_,startY:B,origBox:R}=K.current,{x:s,y:c,width:b,height:f}=R;if(d==="center"){const r=Math.max(0,Math.min(1-b,s+k)),C=Math.max(0,Math.min(1-f,c+p));T(ce=>({...ce,x:r,y:C}))}else if(d==="new"){const r=Math.max(0,Math.min(1,_+k)),C=Math.max(0,Math.min(1,B+p)),ce=Math.min(_,r),st=Math.min(B,C),ct=Math.max(.04,Math.abs(r-_)),dt=Math.max(.04,Math.abs(C-B));T({x:ce,y:st,width:ct,height:dt})}else if(d==="tl"){const r=Math.max(0,Math.min(s+b-.04,s+k)),C=Math.max(0,Math.min(c+f-.04,c+p));T({x:r,y:C,width:b-(r-s),height:f-(C-c)})}else if(d==="tr"){const r=Math.max(0,Math.min(c+f-.04,c+p)),C=Math.max(.04,Math.min(1-s,b+k));T({x:s,y:r,width:C,height:f-(r-c)})}else if(d==="bl"){const r=Math.max(0,Math.min(s+b-.04,s+k)),C=Math.max(.04,Math.min(1-c,f+p));T({x:r,y:c,width:b-(r-s),height:C})}else if(d==="br"){const r=Math.max(.04,Math.min(1-s,b+k)),C=Math.max(.04,Math.min(1-c,f+p));T({x:s,y:c,width:r,height:C})}else if(d==="top"){const r=Math.max(0,Math.min(c+f-.04,c+p));T({x:s,y:r,width:b,height:f-(r-c)})}else if(d==="bottom"){const r=Math.max(.04,Math.min(1-c,f+p));T({x:s,y:c,width:b,height:r})}else if(d==="left"){const r=Math.max(0,Math.min(s+b-.04,s+k));T({x:r,y:c,width:b-(r-s),height:f})}else if(d==="right"){const r=Math.max(.04,Math.min(1-s,b+k));T({x:s,y:c,width:r,height:f})}},onPanResponderRelease:()=>{K.current.mode="none"},onPanResponderTerminate:()=>{K.current.mode="none"}})).current;if(react_1.default.useEffect(()=>{o?.uri&&(F(o.uri),O(o.width),I(o.height),D(o.sizeBytes),J(o.durationMs),Q(!1),ge(0),N(1),S("none"),q([]),U(null),ie([]),X([]),ae([]),T({x:.08,y:.1,width:.84,height:.75}))},[o?.uri,o?.width,o?.height,o?.sizeBytes,o?.durationMs]),!o||!h)return null;const u=Be||o.uri,H=Me??o.width,W=Re??o.height,_e=ze??o.sizeBytes,ne=Ve??o.durationMs,M=o.type==="video",ve=o.type==="gif",x=o.type==="image",je=$===90||$===270?H&&W?Math.min(W/H,H/W,.75):.72:1,qe=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),N(e=>Math.min(4,parseFloat((e+.25).toFixed(2))))},Ue=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),N(e=>Math.max(1,parseFloat((e-.25).toFixed(2))))},Xe=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),N(1)},Ye=async()=>{if(!u||!x)return;(0,NativeInspector_1.triggerNativeHaptic)("light");const e=($+90)%360;if(ge(e),(0,toast_1.showToast)(n("mediaGallery.rotatedSuccess",`Rotated ${e}\xB0`)),!P){v(!0);try{const t=await editor_1.MediaEditor.editPhoto({uri:u,rotation:90});t?.uri&&(F(t.uri),t.width&&O(t.width),t.height&&I(t.height),t.size&&D(t.size))}catch{}finally{v(!1)}}},Ze=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),q(e=>e.slice(0,-1))},Ke=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),q([])},Je=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),S("crop"),Ie(e),T(e==="1:1"?{x:.15,y:.2,width:.7,height:.7}:e==="4:3"?{x:.1,y:.2,width:.8,height:.6}:e==="16:9"?{x:.05,y:.25,width:.9,height:.506}:e==="9:16"?{x:.25,y:.1,width:.5,height:.888}:e==="3:2"?{x:.1,y:.2,width:.8,height:.533}:{x:.08,y:.1,width:.84,height:.75})},Qe=async()=>{if(!(!u||!x)){(0,NativeInspector_1.triggerNativeHaptic)("medium"),v(!0);try{const e=await editor_1.MediaEditor.cropToDefect(u,{x:i.x,y:i.y,width:i.width,height:i.height,isNormalized:!0});e?.uri&&(F(e.uri),e.width&&O(e.width),e.height&&I(e.height),e.size&&D(e.size),(0,toast_1.showToast)(n("mediaGallery.croppedSuccess","Image Cropped")),S("none"))}catch{(0,toast_1.showToast)(n("mediaGallery.cropFailed","Crop failed"))}finally{v(!1)}}},le=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),$e(e);const t={id:`shape_${Date.now()}`,type:e,x:.25,y:.35,width:e==="circle"?.4:.5,height:e==="circle"?.4:.25,color:A};ie(a=>[...a,t]),(0,toast_1.showToast)(n("mediaGallery.shapeAdded",`${e.toUpperCase()} Added`))},et=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const e={id:`blur_${Date.now()}`,x:.12,y:.35,width:.76,height:.12};ae(t=>[...t,e]),(0,toast_1.showToast)(n("mediaGallery.blurAdded","Blur Mask Added"))},Se=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),e?(fe(e),Z(e.text)):(fe(null),Z("")),G(!0)},tt=()=>{if(!Y.trim()){G(!1);return}if(be)X(e=>e.map(t=>t.id===be.id?{...t,text:Y.trim(),color:A}:t));else{const e={id:`text_${Date.now()}`,text:Y.trim(),x:.2,y:.4,color:AppColors_1.AppColors.white,bgColor:A==="#FFFFFF"?"#0F172A":A};X(t=>[...t,e])}G(!1),Z(""),(0,toast_1.showToast)(n("mediaGallery.textAdded","Text Added"))},ot=async e=>{if(!(!u||!x||P)){(0,NativeInspector_1.triggerNativeHaptic)("medium"),v(!0);try{const t=await editor_1.MediaEditor.editPhoto({uri:u,quality:.85,crop:{x:0,y:0,width:1,height:1,isNormalized:!0}});if(t?.uri){F(t.uri);const a=Math.round((H||1080)*e),g=Math.round((W||1920)*e);O(a),I(g),t.size&&D(Math.round(t.size*e*e)),(0,toast_1.showToast)(n("mediaGallery.resizedSuccess",`Resized to ${Math.round(e*100)}% (${a}\xD7${g})`)),S("none")}}catch{(0,toast_1.showToast)(n("mediaGallery.resizeFailed","Resize failed"))}finally{v(!1)}}},se=()=>{u&&((0,NativeInspector_1.triggerNativeHaptic)("light"),(0,helpers_1.copyImageOrMediaToClipboard)(u,x?"Image":"Media"))},it=async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=u.startsWith("file://")||u.startsWith("content://")||u.startsWith("http")?u:`file://${u}`,t=react_native_1.Platform.select({ios:{url:e,title:o.filename},default:{title:o.filename,message:o.filename,url:e}});(await react_native_1.Share.share(t)).action===react_native_1.Share.sharedAction&&(0,toast_1.showToast)(n("mediaGallery.shareSuccess","Shared successfully"))}catch(e){e?.message!=="User did not share"&&(0,toast_1.showToast)(n("mediaGallery.shareUnavailable","Sharing not available on this device"))}},at=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),ee(!0)},Ae=async()=>{if(y){he(!0);try{await y(o),(0,toast_1.showToast)(n("mediaGallery.convertedSuccess","Converted to GIF!"))}catch{(0,toast_1.showToast)(n("mediaGallery.convertFailed","Conversion failed"))}finally{he(!1)}}},ke=async()=>{try{pe(!0),await capture_1.ScreenCapture.playVideo(u)}catch{(0,toast_1.showToast)(n("mediaGallery.playError","Unable to play video"))}finally{pe(!1)}},rt=async()=>{if(!(!u||!M||P)){v(!0),(0,NativeInspector_1.triggerNativeHaptic)("light");try{const t=Math.min(ne||1e4,5e3),a=await editor_1.MediaEditor.trimReproClip(u,0,t,{quality:"medium"});a?.uri&&(F(a.uri),a.width&&O(a.width),a.height&&I(a.height),a.size&&D(a.size),a.durationMs&&J(a.durationMs),(0,toast_1.showToast)(n("mediaGallery.trimmedSuccess","Trimmed to 5s Repro Clip")))}catch{(0,toast_1.showToast)(n("mediaGallery.trimFailed","Trim failed"))}finally{v(!1)}}},nt=async()=>{if(!(!u||!M||P)){v(!0),(0,NativeInspector_1.triggerNativeHaptic)("light");try{const e=await editor_1.MediaEditor.muteVideo(u);e?.uri&&(F(e.uri),e.width&&O(e.width),e.height&&I(e.height),e.size&&D(e.size),e.durationMs&&J(e.durationMs),(0,toast_1.showToast)(n("mediaGallery.mutedSuccess","Audio Stripped")))}catch{(0,toast_1.showToast)(n("mediaGallery.muteFailed","Mute failed"))}finally{v(!1)}}},V=ne?(ne/1e3).toFixed(1):null,lt=V?`00:${Number(V)<10?"0":""}${V}`:null;return<react_native_1.Modal visible={h}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={w}>
|
|
2
|
-
<react_native_1.
|
|
3
|
-
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(i,u,y,v){v===void 0&&(v=y);var C=Object.getOwnPropertyDescriptor(u,y);(!C||("get"in C?!u.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return u[y]}}),Object.defineProperty(i,v,C)}):(function(i,u,y,v){v===void 0&&(v=y),i[v]=u[y]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(i,u){Object.defineProperty(i,"default",{enumerable:!0,value:u})}):function(i,u){i.default=u}),__importStar=this&&this.__importStar||(function(){var i=function(u){return i=Object.getOwnPropertyNames||function(y){var v=[];for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(v[v.length]=C);return v},i(u)};return function(u){if(u&&u.__esModule)return u;var y={};if(u!=null)for(var v=i(u),C=0;C<v.length;C++)v[C]!=="default"&&__createBinding(y,u,v[C]);return __setModuleDefault(y,u),y}})(),__importDefault=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};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:i,canvasWidth:u,canvasHeight:y,scale:v,onUpdate:C,onDelete:s,onEdit:le})=>{const A=(0,react_1.useRef)(new react_native_1.Animated.ValueXY({x:0,y:0})).current,we=(0,react_1.useRef)(i);we.current=i;const ve=(0,react_1.useRef)(u);ve.current=u;const ce=(0,react_1.useRef)(y);ce.current=y;const ye=(0,react_1.useRef)(v);ye.current=v;const L=(0,react_1.useRef)(C);L.current=C;const _=(0,react_1.useRef)(!1),x=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!1,onMoveShouldSetPanResponder:(G,b)=>Math.abs(b.dx)>3||Math.abs(b.dy)>3,onMoveShouldSetPanResponderCapture:()=>!1,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{_.current=!1,A.setValue({x:0,y:0})},onPanResponderMove:(G,b)=>{(Math.abs(b.dx)>3||Math.abs(b.dy)>3)&&(_.current=!0),A.setValue({x:b.dx,y:b.dy})},onPanResponderRelease:(G,b)=>{if(!_.current){le(we.current),A.setValue({x:0,y:0});return}const B=(ve.current||300)*(ye.current||1),H=(ce.current||500)*(ye.current||1),D=b.dx/B,$=b.dy/H,O=we.current,Fe=Math.max(0,Math.min(.85,O.x+D)),Ce=Math.max(0,Math.min(.92,O.y+$));A.setValue({x:0,y:0}),L.current(O.id,{x:Fe,y:Ce})},onPanResponderTerminate:()=>{A.setValue({x:0,y:0}),_.current=!1}})).current;return<react_native_1.Animated.View{...x.panHandlers}style={[previewStyles.textAnnotationPill,{left:`${i.x*100}%`,top:`${i.y*100}%`,backgroundColor:i.bgColor,transform:A.getTranslateTransform()}]}>
|
|
2
|
+
<react_native_1.Text style={[previewStyles.textAnnotationText,{color:i.color}]}pointerEvents="none">
|
|
3
|
+
{i.text}
|
|
4
|
+
</react_native_1.Text>
|
|
5
|
+
<react_native_1.TouchableOpacity style={previewStyles.textDeleteBtn}onPress={()=>s(i.id)}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
6
|
+
<NetworkIcons_1.CloseWhite size={8}/>
|
|
7
|
+
</react_native_1.TouchableOpacity>
|
|
8
|
+
</react_native_1.Animated.View>},CropOverlay=({cropBox:i,imageWidth:u,imageHeight:y,imageOffsetX:v,imageOffsetY:C,scale:s,onUpdateCropBox:le,onApplyCrop:A,onCancelCrop:we})=>{const ve=Math.max(0,Math.min(.9,isFinite(i?.x)?i.x:.08)),ce=Math.max(0,Math.min(.9,isFinite(i?.y)?i.y:.12)),ye=Math.max(.1,Math.min(1-ve,isFinite(i?.width)?i.width:.84)),L=Math.max(.1,Math.min(1-ce,isFinite(i?.height)?i.height:.76)),_=v+ve*u,x=C+ce*y,G=ye*u,b=L*y,B=(0,react_1.useRef)({x:ve,y:ce,width:ye,height:L});B.current={x:ve,y:ce,width:ye,height:L};const H=(0,react_1.useRef)(u);H.current=u;const D=(0,react_1.useRef)(y);D.current=y;const $=(0,react_1.useRef)(s);$.current=s;const O=(0,react_1.useRef)(le);O.current=le;const Fe=(0,react_1.useRef)({origBox:{x:.08,y:.12,width:.84,height:.76}}),Ce=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:(W,me)=>Math.abs(me.dx)>3||Math.abs(me.dy)>3,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{Fe.current.origBox={...B.current}},onPanResponderMove:(W,me)=>{const xe=H.current*($.current||1),_e=D.current*($.current||1);if(!xe||!_e)return;const{x:l,y:f,width:I,height:j}=Fe.current.origBox,T=Math.max(0,Math.min(1-I,l+me.dx/xe)),J=Math.max(0,Math.min(1-j,f+me.dy/_e));O.current({x:T,y:J,width:I,height:j})},onPanResponderRelease:()=>{}})).current,be=W=>react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:(me,xe)=>Math.abs(xe.dx)>2||Math.abs(xe.dy)>2,onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{Fe.current.origBox={...B.current}},onPanResponderMove:(me,xe)=>{const _e=H.current*($.current||1),l=D.current*($.current||1);if(!_e||!l)return;const f=xe.dx/_e,I=xe.dy/l,{x:j,y:T,width:J,height:U}=Fe.current.origBox,Ae=.1;let de=j,ze=T,ae=J,Ge=U;(W==="tl"||W==="left"||W==="bl")&&(de=Math.max(0,Math.min(j+J-Ae,j+f)),ae=J-(de-j)),(W==="tr"||W==="right"||W==="br")&&(ae=Math.max(Ae,Math.min(1-j,J+f))),(W==="tl"||W==="top"||W==="tr")&&(ze=Math.max(0,Math.min(T+U-Ae,T+I)),Ge=U-(ze-T)),(W==="bl"||W==="bottom"||W==="br")&&(Ge=Math.max(Ae,Math.min(1-T,U+I))),O.current({x:de,y:ze,width:ae,height:Ge})},onPanResponderRelease:()=>{}}),ie=(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 u<20||y<20?null:<react_native_1.View style={react_native_1.StyleSheet.absoluteFill}pointerEvents="box-none">
|
|
9
|
+
|
|
10
|
+
<react_native_1.View style={react_native_1.StyleSheet.absoluteFill}pointerEvents="none">
|
|
4
11
|
|
|
5
|
-
<react_native_1.View style={
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</react_native_1.Text>
|
|
14
|
-
</react_native_1.View>
|
|
15
|
-
<react_native_1.View style={previewStyles.headerTextCol}>
|
|
16
|
-
<react_native_1.Text style={previewStyles.title}numberOfLines={1}>
|
|
17
|
-
{o.filename||(o.uri?o.uri.split("/").pop():"")||"Capture"}
|
|
18
|
-
</react_native_1.Text>
|
|
19
|
-
<react_native_1.Text style={previewStyles.subtitle}numberOfLines={1}>
|
|
20
|
-
{(0,helpers_1.formatBytes)(_e||0)}
|
|
21
|
-
{o.timestamp?` \u2022 ${new Date(o.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`:""}
|
|
22
|
-
</react_native_1.Text>
|
|
23
|
-
</react_native_1.View>
|
|
24
|
-
</react_native_1.TouchableOpacity>
|
|
12
|
+
<react_native_1.View style={{position:"absolute",top:0,left:0,right:0,height:x,backgroundColor:"rgba(0,0,0,0.6)"}}/>
|
|
13
|
+
|
|
14
|
+
<react_native_1.View style={{position:"absolute",top:x+b,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.6)"}}/>
|
|
15
|
+
|
|
16
|
+
<react_native_1.View style={{position:"absolute",top:x,left:0,width:_,height:b,backgroundColor:"rgba(0,0,0,0.6)"}}/>
|
|
17
|
+
|
|
18
|
+
<react_native_1.View style={{position:"absolute",top:x,left:_+G,right:0,height:b,backgroundColor:"rgba(0,0,0,0.6)"}}/>
|
|
19
|
+
</react_native_1.View>
|
|
25
20
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{M&&y&&<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={n("mediaGallery.convertToGif","Convert to GIF")}onPress={Ae}disabled={de}style={[previewStyles.headerActionBtn,{backgroundColor:`${AppColors_1.AppColors.warningAmber}33`,borderColor:`${AppColors_1.AppColors.warningAmber}66`}]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
29
|
-
<NetworkIcons_1.GifIcon size={13}color={AppColors_1.AppColors.warningAmber}/>
|
|
30
|
-
</TouchableScale_1.default>}
|
|
21
|
+
|
|
22
|
+
<react_native_1.View style={{position:"absolute",left:_,top:x,width:G,height:b,borderWidth:2,borderColor:"#00E5FF",backgroundColor:"transparent",zIndex:200}}pointerEvents="box-none">
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
|
|
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)"}}/>
|
|
26
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",left:0,right:0,top:"66.66%",height:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
|
|
27
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",top:0,bottom:0,left:"33.33%",width:1,backgroundColor:"rgba(0,229,255,0.35)"}}/>
|
|
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)"}}/>
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</TouchableScale_1.default>
|
|
30
|
+
|
|
31
|
+
<react_native_1.View style={react_native_1.StyleSheet.absoluteFill}{...Ce.panHandlers}/>
|
|
39
32
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
|
|
34
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",top:-2,left:-2,width:22,height:22,borderTopWidth:4,borderLeftWidth:4,borderColor:"#00E5FF"}}/>
|
|
35
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",top:-2,right:-2,width:22,height:22,borderTopWidth:4,borderRightWidth:4,borderColor:"#00E5FF"}}/>
|
|
36
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",bottom:-2,left:-2,width:22,height:22,borderBottomWidth:4,borderLeftWidth:4,borderColor:"#00E5FF"}}/>
|
|
37
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",bottom:-2,right:-2,width:22,height:22,borderBottomWidth:4,borderRightWidth:4,borderColor:"#00E5FF"}}/>
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</react_native_1.View>
|
|
39
|
+
|
|
40
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",top:-3,left:"50%",marginLeft:-16,width:32,height:5,backgroundColor:"#00E5FF",borderRadius:3}}/>
|
|
41
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",bottom:-3,left:"50%",marginLeft:-16,width:32,height:5,backgroundColor:"#00E5FF",borderRadius:3}}/>
|
|
42
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",left:-3,top:"50%",marginTop:-16,width:5,height:32,backgroundColor:"#00E5FF",borderRadius:3}}/>
|
|
43
|
+
<react_native_1.View pointerEvents="none"style={{position:"absolute",right:-3,top:"50%",marginTop:-16,width:5,height:32,backgroundColor:"#00E5FF",borderRadius:3}}/>
|
|
50
44
|
|
|
51
45
|
|
|
52
|
-
<react_native_1.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
46
|
+
<react_native_1.View style={{position:"absolute",top:-22,left:-22,width:44,height:44,zIndex:30}}{...ie.tl.panHandlers}/>
|
|
47
|
+
<react_native_1.View style={{position:"absolute",top:-22,right:-22,width:44,height:44,zIndex:30}}{...ie.tr.panHandlers}/>
|
|
48
|
+
<react_native_1.View style={{position:"absolute",bottom:-22,left:-22,width:44,height:44,zIndex:30}}{...ie.bl.panHandlers}/>
|
|
49
|
+
<react_native_1.View style={{position:"absolute",bottom:-22,right:-22,width:44,height:44,zIndex:30}}{...ie.br.panHandlers}/>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<react_native_1.View style={{position:"absolute",top:-20,left:"25%",right:"25%",height:40,zIndex:25}}{...ie.top.panHandlers}/>
|
|
53
|
+
<react_native_1.View style={{position:"absolute",bottom:-20,left:"25%",right:"25%",height:40,zIndex:25}}{...ie.bottom.panHandlers}/>
|
|
54
|
+
<react_native_1.View style={{position:"absolute",left:-20,top:"25%",bottom:"25%",width:40,zIndex:25}}{...ie.left.panHandlers}/>
|
|
55
|
+
<react_native_1.View style={{position:"absolute",right:-20,top:"25%",bottom:"25%",width:40,zIndex:25}}{...ie.right.panHandlers}/>
|
|
56
|
+
</react_native_1.View>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
{we&&<react_native_1.TouchableOpacity activeOpacity={.8}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),we()}}style={previewStyles.cropCancelBtn}accessibilityLabel="Cancel Crop">
|
|
60
|
+
<NetworkIcons_1.CloseWhite size={14}color={AppColors_1.AppColors.white}/>
|
|
61
|
+
</react_native_1.TouchableOpacity>}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
{A&&<react_native_1.TouchableOpacity activeOpacity={.8}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),A()}}style={previewStyles.cropConfirmBtn}accessibilityLabel="Apply Crop Selection">
|
|
65
|
+
<NetworkIcons_1.CheckIcon size={18}color={AppColors_1.AppColors.white}/>
|
|
66
|
+
</react_native_1.TouchableOpacity>}
|
|
67
|
+
</react_native_1.View>},MediaPreviewModal=({item:i,visible:u,onClose:y,onDelete:v,onConvertToGif:C})=>{const{t:s}=(0,i18n_1.useTranslation)(),le=(0,react_1.useContext)(InspectorContext_1.InspectorContext),A=le?.modalHeightPercent??90,{width:we}=(0,react_native_1.useWindowDimensions)(),ve=(0,react_1.useMemo)(()=>react_native_1.Platform.OS==="ios"?A>=98?we>=390?50:44:0:react_native_1.Platform.OS==="android"&&A>=98?react_native_1.StatusBar.currentHeight||24:0,[A,we]),[ce,ye]=(0,react_1.useState)(!1),[L,_]=(0,react_1.useState)(!1),[x,G]=(0,react_1.useState)(null),[b,B]=(0,react_1.useState)(i?.width),[H,D]=(0,react_1.useState)(i?.height),[$,O]=(0,react_1.useState)(i?.sizeBytes),[Fe,Ce]=(0,react_1.useState)(i?.durationMs),[be,ie]=(0,react_1.useState)(!1),[W,me]=(0,react_1.useState)(!1),[xe,_e]=(0,react_1.useState)(!1),[l,f]=(0,react_1.useState)("none"),[I,j]=(0,react_1.useState)(1),[T,J]=(0,react_1.useState)(0),[U,Ae]=(0,react_1.useState)([]),[de,ze]=(0,react_1.useState)([]),[ae,Ge]=(0,react_1.useState)(!1),[Gt,Re]=(0,react_1.useState)(!1),[c,fe]=(0,react_1.useState)("brush"),[pt,Nt]=(0,react_1.useState)(24),[ee,Lt]=(0,react_1.useState)("brightness"),[M,Ye]=(0,react_1.useState)("none"),[Y,Ne]=(0,react_1.useState)(!1),[N,Le]=(0,react_1.useState)(!1),[h,Be]=(0,react_1.useState)({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),[q,qe]=(0,react_1.useState)(!1),[Z,Ze]=(0,react_1.useState)(!1),[V,ke]=(0,react_1.useState)(0),[E,Pe]=(0,react_1.useState)(i?.durationMs||1e4),[Me,rt]=(0,react_1.useState)("end"),[X,Ke]=(0,react_1.useState)(!1),[Te,nt]=(0,react_1.useState)(100),[he,st]=(0,react_1.useState)(1),[Qe,mt]=(0,react_1.useState)(12),[ut,$t]=(0,react_1.useState)(480),[xt,ft]=(0,react_1.useState)([]),[uo,Tt]=(0,react_1.useState)(!1),[go,jt]=(0,react_1.useState)(0),[gt,Je]=(0,react_1.useState)("free"),[et,He]=(0,react_1.useState)({x:.08,y:.12,width:.84,height:.76}),[K,wt]=(0,react_1.useState)("#EF4444"),[re,Xt]=(0,react_1.useState)(4),[R,pe]=(0,react_1.useState)([]),[p,tt]=(0,react_1.useState)(null),[Q,ue]=(0,react_1.useState)([]),[Ut,ot]=(0,react_1.useState)(!1),[vt,Ct]=(0,react_1.useState)(null),[lt,ct]=(0,react_1.useState)(""),[dt,Yt]=(0,react_1.useState)({x:.3,y:.4}),P=(0,react_1.useCallback)(()=>{ze([]),Ae(e=>[...e,{uri:x||i?.uri||null,inkPaths:[...R],texts:[...Q],adjustments:{...h},filterPreset:M,showWatermark:Y,showGridlines:N,rotationAngle:T,flipH:q,flipV:Z,width:b,height:H,sizeBytes:$}])},[x,i?.uri,R,Q,h,M,Y,N,T,q,Z,b,H,$]),_t=(0,react_1.useRef)(P);_t.current=P;const yo=(0,react_1.useRef)(null),[Oe,Mt]=(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}),ge=(0,react_1.useRef)(l);ge.current=l;const ht=(0,react_1.useRef)(c);ht.current=c;const $e=(0,react_1.useRef)(K);$e.current=K;const je=(0,react_1.useRef)(re);je.current=re;const qt=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>ge.current==="draw",onMoveShouldSetPanResponder:()=>ge.current==="draw",onPanResponderGrant:e=>{_t.current();const{locationX:t,locationY:o}=e.nativeEvent;tt([{x:t,y:o}])},onPanResponderMove:e=>{const{locationX:t,locationY:o}=e.nativeEvent,a=ht.current;tt(a==="brush"||a==="highlighter"?r=>r?[...r,{x:t,y:o}]:[{x:t,y:o}]:r=>[r&&r.length>0?r[0]:{x:t,y:o},{x:t,y:o}])},onPanResponderRelease:()=>{tt(e=>{if(e&&e.length>0){const t=ht.current,o=e[0],a=e[e.length-1]||o;if((t==="brush"||t==="highlighter")&&e.length>1)pe(r=>[...r,{id:`stroke_${Date.now()}_${Math.random()}`,type:t,points:e,color:$e.current,strokeWidth:je.current}]);else if(t==="arrow"&&e.length>1)Math.hypot(a.x-o.x,a.y-o.y)>6&&pe(n=>[...n,{id:`stroke_${Date.now()}_${Math.random()}`,type:"arrow",points:[o,a],color:$e.current,strokeWidth:je.current}]);else if(t==="circle"||t==="spotlight")Math.hypot(a.x-o.x,a.y-o.y)>6&&pe(n=>[...n,{id:`stroke_${Date.now()}_${Math.random()}`,type:t,points:[o,a],color:$e.current,strokeWidth:je.current}]);else if(t==="step"){const r=R.filter(n=>n.type==="step").length;pe(n=>[...n,{id:`stroke_${Date.now()}_${Math.random()}`,type:"step",points:[o],color:$e.current,strokeWidth:je.current,stepNumber:r+1}])}else if(t==="rect"||t==="redact"||t==="pixelate"){const r=Math.min(o.x,a.x),n=Math.min(o.y,a.y),d=Math.abs(a.x-o.x),m=Math.abs(a.y-o.y);d>4&&m>4&&pe(S=>[...S,{id:`stroke_${Date.now()}_${Math.random()}`,type:t,points:[o,a],rect:{x:r,y:n,width:d,height:m},color:$e.current,strokeWidth:je.current}])}}return null})}})).current,Xe=(e,t,o)=>{const a=t&&t>0?t:1e3,r=o&&o>0?o:1e3,n=a/r;if(e==="free")return{x:parseFloat(((1-.84)/2).toFixed(4)),y:parseFloat(((1-.76)/2).toFixed(4)),width:.84,height:.76};let d=1;e==="1:1"?d=1:e==="4:3"?d=4/3:e==="16:9"?d=16/9:e==="9:16"?d=9/16:e==="3:2"&&(d=3/2);const m=d/n;let S=.88,F=.88;if(m>=1){if(S=.88,F=.88/m,F>.88){const Ue=.88/F;S*=Ue,F=.88}}else if(F=.88,S=.88*m,S>.88){const Ue=.88/S;F*=Ue,S=.88}S=Math.max(.1,Math.min(.96,parseFloat(S.toFixed(4)))),F=Math.max(.1,Math.min(.96,parseFloat(F.toFixed(4))));const Se=parseFloat(((1-S)/2).toFixed(4)),Ee=parseFloat(((1-F)/2).toFixed(4));return{x:Se,y:Ee,width:S,height:F}};react_1.default.useEffect(()=>{i?.uri&&(G(i.uri),B(i.width),D(i.height),O(i.sizeBytes),Ce(i.durationMs),ie(!1),j(1),f("none"),pe([]),tt(null),ue([]),He(Xe("free",i.width,i.height)),ke(0),Pe(i.durationMs||1e4),rt("end"),Ke(!1),nt(100),st(1),jt(0))},[i?.uri,i?.width,i?.height,i?.sizeBytes,i?.durationMs]),react_1.default.useEffect(()=>{if(i?.type==="video"&&i?.uri){let e=!0;return Tt(!0),editor_1.MediaEditor.generateFilmstrip({uri:i.uri,count:10,targetWidth:120,targetHeight:120}).then(t=>{e&&t?.thumbnails&&ft(t.thumbnails)}).catch(()=>{}).finally(()=>{e&&Tt(!1)}),()=>{e=!1}}else ft([])},[i?.type,i?.uri]),react_1.default.useEffect(()=>{if(x||i?.uri){const e=x||i?.uri;e&&i?.type==="image"&&(!b||!H)&&react_native_1.Image.getSize(e,(t,o)=>{t>0&&o>0&&(B(t),D(o))},()=>{})}},[x,i?.uri,i?.type,b,H]);const ne=(0,react_1.useMemo)(()=>{const e=Oe.width,t=Oe.height;if(!e||!t)return{width:e,height:t};const o=b??i?.width,a=H??i?.height;if(!o||!a||o<=0||a<=0)return{width:e,height:t};const r=o/a,n=e/t;let d=e,m=t;return r>n?(d=e,m=e/r):(m=t,d=t*r),{width:Math.max(20,Math.floor(d)),height:Math.max(20,Math.floor(m))}},[Oe.width,Oe.height,b,H,i?.width,i?.height]),w=x||i?.uri,te=b??i?.width,oe=H??i?.height,St=$??i?.sizeBytes,z=Fe??i?.durationMs,g=i?.type==="video",bo=i?.type==="gif",k=i?.type==="image",se=(0,react_1.useRef)(new react_native_1.Animated.ValueXY({x:0,y:0})).current,Ie=(0,react_1.useRef)({x:0,y:0}),it=(0,react_1.useRef)({x:0,y:0});(0,react_1.useEffect)(()=>{const e=se.x.addListener(o=>Ie.current.x=o.value),t=se.y.addListener(o=>Ie.current.y=o.value);return()=>{se.x.removeListener(e),se.y.removeListener(t)}},[se]);const Ve=(0,react_1.useRef)(I);Ve.current=I;const De=(0,react_1.useRef)(ne);De.current=ne;const We=(0,react_1.useRef)(Oe);We.current=Oe;const Ft=(0,react_1.useCallback)(()=>{const e=Ve.current;if(e<=1)return{maxX:0,maxY:0};const t=De.current.width,o=De.current.height,a=We.current.width,r=We.current.height,n=Math.max(0,(t*e-a)/2/e),d=Math.max(0,(o*e-r)/2/e);return{maxX:n,maxY:d}},[]),At=(0,react_1.useCallback)((e,t)=>{const{maxX:o,maxY:a}=Ft();return{x:Math.max(-o,Math.min(o,e)),y:Math.max(-a,Math.min(a,t))}},[Ft]),Zt=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>Ve.current>1,onMoveShouldSetPanResponder:(e,t)=>Ve.current>1&&(Math.abs(t.dx)>4||Math.abs(t.dy)>4),onMoveShouldSetPanResponderCapture:(e,t)=>Ve.current>1&&(Math.abs(t.dx)>6||Math.abs(t.dy)>6),onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderGrant:()=>{it.current={...Ie.current}},onPanResponderMove:(e,t)=>{const o=Ve.current,a=it.current.x+t.dx/o,r=it.current.y+t.dy/o,{maxX:n,maxY:d}=(()=>{const F=Ve.current;if(F<=1)return{maxX:0,maxY:0};const Se=De.current.width,Ee=De.current.height,Ue=We.current.width,Et=We.current.height;return{maxX:Math.max(0,(Se*F-Ue)/2/F),maxY:Math.max(0,(Ee*F-Et)/2/F)}})(),m=Math.max(-n,Math.min(n,a)),S=Math.max(-d,Math.min(d,r));se.setValue({x:m,y:S})},onPanResponderRelease:()=>{const{maxX:e,maxY:t}=(()=>{const r=Ve.current;if(r<=1)return{maxX:0,maxY:0};const n=De.current.width,d=De.current.height,m=We.current.width,S=We.current.height;return{maxX:Math.max(0,(n*r-m)/2/r),maxY:Math.max(0,(d*r-S)/2/r)}})(),o=Ie.current,a={x:Math.max(-e,Math.min(e,o.x)),y:Math.max(-t,Math.min(t,o.y))};(a.x!==o.x||a.y!==o.y)&&react_native_1.Animated.spring(se,{toValue:a,friction:7,tension:60,useNativeDriver:!1}).start()},onPanResponderTerminate:()=>{}})).current;(0,react_1.useEffect)(()=>{if(I<=1)se.setValue({x:0,y:0}),it.current={x:0,y:0};else{const e=At(Ie.current.x,Ie.current.y);(e.x!==Ie.current.x||e.y!==Ie.current.y)&&react_native_1.Animated.spring(se,{toValue:e,friction:7,tension:60,useNativeDriver:!1}).start()}},[I,se,At]);const Kt=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),j(e=>Math.min(4,parseFloat((e+.25).toFixed(2))))},Qt=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),j(e=>Math.max(1,parseFloat((e-.25).toFixed(2))))},Rt=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),j(1),se.setValue({x:0,y:0}),it.current={x:0,y:0}},kt=(0,react_1.useRef)(240),Pt=(0,react_1.useCallback)(e=>{const t=Math.max(50,kt.current),o=Math.max(0,Math.min(1,e/t));if(ge.current==="draw"){const a=ht.current;if(a==="brush"||a==="highlighter"||a==="arrow"||a==="rect"||a==="circle"||a==="spotlight"||a==="step"){const r=Math.round(2+o*22);Xt(r)}else if(a==="pixelate"){const r=Math.round(4+o*36);Nt(r)}}else if(ge.current==="adjust")if(ee==="vignette"){const a=Math.round(o*100);Be(r=>({...r,vignette:a}))}else{const a=Math.round(o*100-50);Be(r=>({...r,[ee]:a}))}else if(ge.current==="crop"){const a=Math.round(o*360);J(a)}else if(ge.current==="trim"){const r=Math.round(o*(z||1e4));Me==="start"?ke(Math.min(E-500,r)):Pe(Math.max(V+500,r))}else if(ge.current==="audio"){const a=Math.round(o*100);nt(a),Ke(a===0)}else if(ge.current==="speed"){const a=parseFloat((.5+o*1.5).toFixed(2));st(a)}else if(ge.current==="gif"){const a=Math.round(6+o*18);mt(a)}else if(ge.current==="none"){const a=parseFloat((1+o*3).toFixed(2));j(a)}},[ee,z,Me,V,E]),Jt=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!0,onMoveShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponderCapture:()=>!0,onPanResponderGrant:e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Pt(e.nativeEvent.locationX)},onPanResponderMove:e=>{Pt(e.nativeEvent.locationX)},onPanResponderRelease:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light")}})).current,Ot=(0,react_1.useMemo)(()=>{if(l==="draw"){if(c==="brush"||c==="highlighter"||c==="arrow"||c==="rect"||c==="circle"||c==="spotlight"||c==="step")return Math.min(100,Math.max(0,(re-2)/22*100));if(c==="pixelate")return Math.min(100,Math.max(0,(pt-4)/36*100));if(c==="redact")return 100}return l==="adjust"?ee==="vignette"?Math.min(100,Math.max(0,h.vignette)):Math.min(100,Math.max(0,h[ee]+50)):l==="crop"?Math.min(100,Math.max(0,T/360*100)):l==="trim"?Math.min(100,Math.max(0,(Me==="start"?V:E)/(z||1e4)*100)):l==="audio"?X?0:Te:l==="speed"?Math.min(100,Math.max(0,(he-.5)/1.5*100)):l==="gif"?Math.min(100,Math.max(0,(Qe-6)/18*100)):l==="none"?Math.min(100,Math.max(0,(I-1)/3*100)):50},[l,c,re,pt,ee,h,T,I,z,Me,V,E,X,Te,he,Qe]),It=(0,react_1.useCallback)(()=>{if(U.length===0)return;(0,NativeInspector_1.triggerNativeHaptic)("light");const e=U[U.length-1];ze(t=>[...t,{uri:x||i?.uri||null,inkPaths:[...R],texts:[...Q],adjustments:{...h},filterPreset:M,showWatermark:Y,rotationAngle:T,flipH:q,flipV:Z,width:b,height:H,sizeBytes:$}]),Ae(t=>t.slice(0,t.length-1)),e&&(G(e.uri),pe(e.inkPaths),ue(e.texts),e.adjustments&&Be(e.adjustments),e.filterPreset&&Ye(e.filterPreset),e.showWatermark!==void 0&&Ne(e.showWatermark),e.showGridlines!==void 0&&Le(e.showGridlines),e.rotationAngle!==void 0&&J(e.rotationAngle),e.flipH!==void 0&&qe(e.flipH),e.flipV!==void 0&&Ze(e.flipV),e.width&&B(e.width),e.height&&D(e.height),e.sizeBytes&&O(e.sizeBytes),(0,toast_1.showToast)(s("mediaGallery.undone","Action Undone")))},[U,x,i?.uri,R,Q,h,M,Y,N,T,q,Z,b,H,$,s]),eo=(0,react_1.useCallback)(()=>{if(de.length===0)return;(0,NativeInspector_1.triggerNativeHaptic)("light");const e=de[de.length-1];Ae(t=>[...t,{uri:x||i?.uri||null,inkPaths:[...R],texts:[...Q],adjustments:{...h},filterPreset:M,showWatermark:Y,showGridlines:N,rotationAngle:T,flipH:q,flipV:Z,width:b,height:H,sizeBytes:$}]),ze(t=>t.slice(0,t.length-1)),e&&(G(e.uri),pe(e.inkPaths),ue(e.texts),e.adjustments&&Be(e.adjustments),e.filterPreset&&Ye(e.filterPreset),e.showWatermark!==void 0&&Ne(e.showWatermark),e.showGridlines!==void 0&&Le(e.showGridlines),e.rotationAngle!==void 0&&J(e.rotationAngle),e.flipH!==void 0&&qe(e.flipH),e.flipV!==void 0&&Ze(e.flipV),e.width&&B(e.width),e.height&&D(e.height),e.sizeBytes&&O(e.sizeBytes),(0,toast_1.showToast)(s("mediaGallery.redone","Action Redone")))},[de,x,i?.uri,R,Q,h,M,Y,N,T,q,Z,b,H,$,s]),to=(0,react_1.useCallback)(()=>{i&&((0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),G(i.uri),pe([]),ue([]),Be({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),Ye("none"),Ne(!1),Le(!1),J(0),qe(!1),Ze(!1),B(i.width),D(i.height),O(i.sizeBytes),Ce(i.durationMs),j(1),f("none"),ke(0),Pe(i.durationMs||1e4),rt("end"),Ke(!1),nt(100),st(1),(0,toast_1.showToast)(s("mediaGallery.resetSuccess",i.type==="video"?"Reset to original video":"Reset to original image")))},[i,P,s]),Vt=(0,react_1.useCallback)(async()=>{if(!(!i||!w)){if((0,NativeInspector_1.triggerNativeHaptic)("medium"),_(!0),g){try{const e=z||i.durationMs||1e4,t=await editor_1.MediaEditor.trimVideo({uri:w,startTimeMs:V,endTimeMs:E<e?E:void 0,muteAudio:X||Te===0,quality:"high"});t?.uri?(G(t.uri),t.width&&B(t.width),t.height&&D(t.height),t.size&&O(t.size),t.durationMs&&Ce(t.durationMs),(0,toast_1.showToast)(s("mediaGallery.videoSaved","Video Saved Successfully")),le?.refreshMediaCount?.().catch(()=>{})):(0,toast_1.showToast)(s("mediaGallery.videoSaved","Video Saved"))}catch{(0,toast_1.showToast)(s("mediaGallery.saveFailed","Failed to save video"))}finally{_(!1)}return}try{const e=Math.max(1,te||1e3),t=Math.max(1,oe||1e3),o=R.filter(n=>(n.type==="redact"||n.type==="pixelate")&&n.rect).map(n=>{const d=n.rect;return{x:d.x/e,y:d.y/t,width:d.width/e,height:d.height/t,style:n.type==="pixelate"?"blur":"blackout",isNormalized:!0}}),a=[...Q.map(n=>({x:n.x,y:n.y,width:.22,height:.06,color:n.bgColor||"#EF4444",label:n.text,isNormalized:!0})),...R.filter(n=>n.type==="rect"||n.type==="arrow"||n.type==="circle").map(n=>{const d=n.points[0]||{x:0,y:0},m=n.points[n.points.length-1]||d,S=Math.min(d.x,m.x),F=Math.min(d.y,m.y),Se=Math.max(10,Math.abs(m.x-d.x)),Ee=Math.max(10,Math.abs(m.y-d.y));return{x:S/e,y:F/t,width:Se/e,height:Ee/t,color:n.color||"#EF4444",isNormalized:!0}})],r=await editor_1.MediaEditor.editPhoto({uri:w,rotation:T!==0?T:void 0,flipHorizontal:q,flipVertical:Z,adjustments:{brightness:h.brightness/50,contrast:1+h.contrast/50,saturation:1+h.saturation/50,temperature:h.warmth/50,vignette:h.vignette/100},filterPreset:M!=="none"?M:void 0,redactions:o.length>0?o:void 0,annotations:a.length>0?a:void 0,format:i.format==="png"?"png":"jpeg",quality:.92});r?.uri?(G(r.uri),r.width&&B(r.width),r.height&&D(r.height),r.size&&O(r.size),pe([]),ue([]),Be({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),J(0),qe(!1),Ze(!1),(0,toast_1.showToast)(s("mediaGallery.savedSuccess","Image Saved Successfully")),le?.refreshMediaCount?.().catch(()=>{})):(0,toast_1.showToast)(s("mediaGallery.savedSuccess","Image Saved"))}catch{(0,toast_1.showToast)(s("mediaGallery.saveFailed","Failed to save image"))}finally{_(!1)}}},[i,w,g,z,V,E,X,Te,te,oe,T,q,Z,h,M,R,Q,le,s]),zt=(0,react_1.useCallback)(async()=>{if(!(!i||!w||!g||L)){(0,NativeInspector_1.triggerNativeHaptic)("medium"),_(!0);try{const e=await editor_1.MediaEditor.generateFilmstrip({uri:w,count:1,targetWidth:te||1080,targetHeight:oe||1920});e?.thumbnails&&e.thumbnails.length>0?((0,toast_1.showToast)(s("mediaGallery.snapshotSaved","Frame Snapshot Saved (PNG)")),le?.refreshMediaCount?.().catch(()=>{})):(0,toast_1.showToast)(s("mediaGallery.snapshotFailed","Failed to snapshot frame"))}catch{(0,toast_1.showToast)(s("mediaGallery.snapshotFailed","Failed to snapshot frame"))}finally{_(!1)}}},[i,w,g,L,te,oe,le,s]),oo=(0,react_1.useMemo)(()=>{if(!g||!i)return!1;const e=i.durationMs||1e4,t=V>0||E<e,o=X||Te<100,a=he!==1,r=x!=null&&x!==i.uri;return t||o||a||r},[g,i,V,E,X,Te,he,x]),Bt=(0,react_1.useMemo)(()=>{if(!i)return!1;const e=x!=null&&x!==i.uri,t=R.length>0,o=Q.length>0,a=U.length>0,r=h.brightness!==0||h.contrast!==0||h.saturation!==0||h.warmth!==0||h.exposure!==0||h.vignette!==0;return e||t||o||a||r||(T!==0||q||Z)||M!=="none"||Y||N},[x,i,R.length,Q.length,U.length,h,T,q,Z,M,Y,N]),io=()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),It()},ao=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),pe([])},mo=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("crop"),Je(e),He(Xe(e,te,oe))},Ht=async()=>{if(!(!w||!k)){(0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),_(!0);try{const e=await editor_1.MediaEditor.cropToDefect(w,{x:et.x,y:et.y,width:et.width,height:et.height,isNormalized:!0});e?.uri?(G(e.uri),e.width&&B(e.width),e.height&&D(e.height),e.size&&O(e.size),He(Xe("free",e.width,e.height)),Je("free"),(0,toast_1.showToast)(s("mediaGallery.croppedSuccess","Image Cropped")),f("none")):(0,toast_1.showToast)(s("mediaGallery.cropFailed","Crop failed"))}catch{(0,toast_1.showToast)(s("mediaGallery.cropFailed","Crop failed"))}finally{_(!1)}}},yt=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),e?(Ct(e),ct(e.text)):(Ct(null),ct("")),ot(!0)},ro=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),ue(t=>t.filter(o=>o.id!==e))},no=()=>{if(!lt.trim()){ot(!1);return}if(P(),vt)ue(e=>e.map(t=>t.id===vt.id?{...t,text:lt.trim(),color:K}:t));else{const e={id:`text_${Date.now()}`,text:lt.trim(),x:dt.x,y:dt.y,color:AppColors_1.AppColors.white,bgColor:K==="#FFFFFF"?"#0F172A":K};ue(t=>[...t,e])}ot(!1),ct(""),(0,toast_1.showToast)(s("mediaGallery.textAdded","Text Added"))},xo=async e=>{if(!(!w||!k||L)){(0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),_(!0);try{const t=await editor_1.MediaEditor.editPhoto({uri:w,quality:.85,crop:{x:0,y:0,width:1,height:1,isNormalized:!0}});if(t?.uri){G(t.uri);const o=Math.round((te||1080)*e),a=Math.round((oe||1920)*e);B(o),D(a),t.size&&O(Math.round(t.size*e*e)),(0,toast_1.showToast)(s("mediaGallery.resizedSuccess",`Resized to ${Math.round(e*100)}% (${o}\xD7${a})`)),f("none")}}catch{(0,toast_1.showToast)(s("mediaGallery.resizeFailed","Resize failed"))}finally{_(!1)}}},so=async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=w.startsWith("file://")||w.startsWith("content://")||w.startsWith("http")?w:`file://${w}`,t=react_native_1.Platform.select({ios:{url:e,title:i.filename},default:{title:i.filename,message:i.filename,url:e}});(await react_native_1.Share.share(t)).action===react_native_1.Share.sharedAction&&(0,toast_1.showToast)(s("mediaGallery.shareSuccess","Shared successfully"))}catch(e){e?.message!=="User did not share"&&(0,toast_1.showToast)(s("mediaGallery.shareUnavailable","Sharing not available on this device"))}},lo=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),_e(!0)},Dt=async()=>{if(C){ye(!0);try{await C(i),(0,toast_1.showToast)(s("mediaGallery.convertedSuccess","Converted to GIF!"))}catch{(0,toast_1.showToast)(s("mediaGallery.convertFailed","Conversion failed"))}finally{ye(!1)}}},bt=async()=>{try{me(!0),await capture_1.ScreenCapture.playVideo(w)}catch{(0,toast_1.showToast)(s("mediaGallery.playError","Unable to play video"))}finally{me(!1)}},fo=async()=>{if(!(!w||!g||L)){_(!0),(0,NativeInspector_1.triggerNativeHaptic)("light");try{const t=Math.min(z||1e4,5e3),o=await editor_1.MediaEditor.trimReproClip(w,0,t,{quality:"medium"});o?.uri&&(G(o.uri),o.width&&B(o.width),o.height&&D(o.height),o.size&&O(o.size),o.durationMs&&Ce(o.durationMs),(0,toast_1.showToast)(s("mediaGallery.trimmedSuccess","Trimmed to 5s Repro Clip")))}catch{(0,toast_1.showToast)(s("mediaGallery.trimFailed","Trim failed"))}finally{_(!1)}}},co=async()=>{if(!(!w||!g||L)){_(!0),(0,NativeInspector_1.triggerNativeHaptic)("light");try{const e=await editor_1.MediaEditor.muteVideo(w);e?.uri&&(G(e.uri),e.width&&B(e.width),e.height&&D(e.height),e.size&&O(e.size),e.durationMs&&Ce(e.durationMs),(0,toast_1.showToast)(s("mediaGallery.mutedSuccess","Audio Stripped")))}catch{(0,toast_1.showToast)(s("mediaGallery.muteFailed","Mute failed"))}finally{_(!1)}}},at=z?(z/1e3).toFixed(1):null,Wt=at?`00:${Number(at)<10?"0":""}${at}`:null,ho=[{key:"none",label:s("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:s("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:s("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:V>0||E<(z||1e4)},{key:"audio",label:s("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:X||Te<100},{key:"speed",label:s("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:he!==1},{key:"gif",label:s("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:s("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!i||!u?null:<react_native_1.Modal visible={u}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={y}>
|
|
68
|
+
<react_native_1.View style={previewStyles.modalBackdrop}>
|
|
69
|
+
<react_native_1.Pressable style={previewStyles.modalBackdropPressable}onPress={y}/>
|
|
70
|
+
<react_native_1.View style={[previewStyles.modalContentCard,{height:`${A}%`,borderTopLeftRadius:A>=100?0:20,borderTopRightRadius:A>=100?0:20}]}>
|
|
71
|
+
<react_native_1.StatusBar translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
72
|
+
|
|
73
|
+
<react_native_1.View style={[previewStyles.header,{paddingTop:ve,borderTopLeftRadius:A>=100?0:20,borderTopRightRadius:A>=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:A>=100?0:20,borderTopRightRadius:A>=100?0:20}]}pointerEvents="none"/>
|
|
75
|
+
<react_native_1.View style={previewStyles.headerInner}>
|
|
76
|
+
|
|
77
|
+
<react_native_1.View style={previewStyles.headerLeft}>
|
|
78
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={s("common.back","Back")}onPress={y}hitSlop={15}style={previewStyles.headerBackBtn}>
|
|
79
|
+
<NetworkIcons_1.WhiteBackNavigation size={17}/>
|
|
80
|
+
</TouchableScale_1.default>
|
|
81
|
+
<react_native_1.View style={previewStyles.headerTextCol}>
|
|
82
|
+
<react_native_1.View style={previewStyles.headerTitleRow}>
|
|
83
|
+
<react_native_1.Text style={previewStyles.title}numberOfLines={1}>
|
|
84
|
+
{i.filename||(k?"debug_session.png":"recording.mp4")}
|
|
63
85
|
</react_native_1.Text>
|
|
64
|
-
<react_native_1.
|
|
65
|
-
|
|
86
|
+
<react_native_1.View style={previewStyles.formatBadge}>
|
|
87
|
+
<react_native_1.Text style={previewStyles.formatBadgeText}>
|
|
88
|
+
{(i.filename?.split(".").pop()||(k?"PNG":g?"MP4":"GIF")).toUpperCase()}
|
|
89
|
+
</react_native_1.Text>
|
|
90
|
+
</react_native_1.View>
|
|
91
|
+
</react_native_1.View>
|
|
92
|
+
<react_native_1.View style={previewStyles.headerSubtitleRow}>
|
|
93
|
+
<react_native_1.Text style={previewStyles.subtitleDim}numberOfLines={1}>
|
|
94
|
+
{te&&oe?`${te} \xD7 ${oe}`:k?"1320 \xD7 2868":"1080 \xD7 1920"}
|
|
66
95
|
</react_native_1.Text>
|
|
67
|
-
|
|
68
|
-
|
|
96
|
+
{St?<>
|
|
97
|
+
<react_native_1.Text style={previewStyles.subtitleDot}>•</react_native_1.Text>
|
|
98
|
+
<react_native_1.Text style={previewStyles.subtitleSize}>
|
|
99
|
+
{(0,helpers_1.formatBytes)(St)}
|
|
100
|
+
</react_native_1.Text>
|
|
101
|
+
</>:<>
|
|
102
|
+
<react_native_1.Text style={previewStyles.subtitleDot}>•</react_native_1.Text>
|
|
103
|
+
<react_native_1.Text style={previewStyles.subtitleSize}>774 KB</react_native_1.Text>
|
|
104
|
+
</>}
|
|
105
|
+
</react_native_1.View>
|
|
106
|
+
</react_native_1.View>
|
|
107
|
+
</react_native_1.View>
|
|
69
108
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
109
|
+
|
|
110
|
+
<react_native_1.View style={previewStyles.headerRight}>
|
|
111
|
+
|
|
112
|
+
{k&&<react_native_1.View style={previewStyles.undoRedoGroup}>
|
|
113
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={s("common.undo","Undo")}onPress={It}disabled={U.length===0}style={[previewStyles.undoHalfBtn,U.length===0&&previewStyles.actionDisabled]}hitSlop={{top:8,bottom:8,left:6,right:4}}>
|
|
114
|
+
<NetworkIcons_1.UndoIcon size={14}color={U.length>0?AppColors_1.AppColors.white:"rgba(255, 255, 255, 0.35)"}/>
|
|
115
|
+
</react_native_1.TouchableOpacity>
|
|
116
|
+
<react_native_1.View style={previewStyles.undoDivider}/>
|
|
117
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel="Redo"onPress={eo}disabled={de.length===0}style={[previewStyles.redoHalfBtn,de.length===0&&previewStyles.actionDisabled]}hitSlop={{top:8,bottom:8,left:4,right:6}}>
|
|
118
|
+
<NetworkIcons_1.RedoIcon size={14}color={de.length>0?AppColors_1.AppColors.white:"rgba(255, 255, 255, 0.35)"}/>
|
|
119
|
+
</react_native_1.TouchableOpacity>
|
|
120
|
+
</react_native_1.View>}
|
|
77
121
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</react_native_1.TouchableOpacity>
|
|
83
|
-
</react_native_1.View>)}
|
|
122
|
+
|
|
123
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="More Options"onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Re(e=>!e)}}style={previewStyles.headerMoreBtn}hitSlop={{top:8,bottom:8,left:6,right:6}}>
|
|
124
|
+
<NetworkIcons_1.MoreDotsIcon size={16}color={AppColors_1.AppColors.white}/>
|
|
125
|
+
</TouchableScale_1.default>
|
|
84
126
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
127
|
+
|
|
128
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={s("common.save","Save")}onPress={Vt}disabled={L}style={[previewStyles.headerSaveBtn,L&&{opacity:.6}]}hitSlop={{top:8,bottom:8,left:6,right:6}}>
|
|
129
|
+
<NetworkIcons_1.SaveIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
130
|
+
<react_native_1.Text style={previewStyles.headerSaveText}>{s("common.save","Save")}</react_native_1.Text>
|
|
131
|
+
</TouchableScale_1.default>
|
|
132
|
+
</react_native_1.View>
|
|
133
|
+
</react_native_1.View>
|
|
134
|
+
</react_native_1.View>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
{Gt&&<react_native_1.View style={previewStyles.moreMenuDropdown}>
|
|
138
|
+
{(k&&Bt||g&&oo)&&<react_native_1.TouchableOpacity onPress={()=>{Re(!1),to()}}style={previewStyles.moreMenuItem}>
|
|
139
|
+
<NetworkIcons_1.ResetIcon size={14}color={AppColors_1.AppColors.sky400}/>
|
|
140
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
141
|
+
{s("common.reset","Reset to Original")}
|
|
142
|
+
</react_native_1.Text>
|
|
143
|
+
</react_native_1.TouchableOpacity>}
|
|
144
|
+
{k&&<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Le(e=>!e),Re(!1)}}style={previewStyles.moreMenuItem}>
|
|
145
|
+
<NetworkIcons_1.GridlinesIcon size={14}color={N?AppColors_1.AppColors.sky400:AppColors_1.AppColors.white}/>
|
|
146
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
147
|
+
{N?s("mediaGallery.hideGridlines","Hide Instagram Grid (3\xD73)"):s("mediaGallery.showGridlines","Show Instagram Grid (3\xD73)")}
|
|
148
|
+
</react_native_1.Text>
|
|
149
|
+
</react_native_1.TouchableOpacity>}
|
|
150
|
+
{k&&<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),Ne(e=>!e),Re(!1)}}style={previewStyles.moreMenuItem}>
|
|
151
|
+
<react_native_1.Text style={previewStyles.moreMenuItemIconText}>🛡</react_native_1.Text>
|
|
152
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
153
|
+
{Y?s("mediaGallery.hideWatermark","Hide QA Watermark"):s("mediaGallery.showWatermark","Show QA Watermark")}
|
|
154
|
+
</react_native_1.Text>
|
|
155
|
+
</react_native_1.TouchableOpacity>}
|
|
156
|
+
{g&&<react_native_1.TouchableOpacity onPress={()=>{Re(!1),Dt()}}style={previewStyles.moreMenuItem}>
|
|
157
|
+
<NetworkIcons_1.GifIcon size={14}color={AppColors_1.AppColors.violet600}/>
|
|
158
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
159
|
+
{s("mediaGallery.exportGif","Export as Animated GIF")}
|
|
160
|
+
</react_native_1.Text>
|
|
161
|
+
</react_native_1.TouchableOpacity>}
|
|
162
|
+
{g&&<react_native_1.TouchableOpacity onPress={()=>{Re(!1),zt()}}style={previewStyles.moreMenuItem}>
|
|
163
|
+
<NetworkIcons_1.CameraRollIcon size={14}color={AppColors_1.AppColors.sky400}/>
|
|
164
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
165
|
+
{s("mediaGallery.snapshotFrame","Snapshot Frame (PNG)")}
|
|
166
|
+
</react_native_1.Text>
|
|
167
|
+
</react_native_1.TouchableOpacity>}
|
|
168
|
+
<react_native_1.TouchableOpacity onPress={()=>{Re(!1),so()}}style={previewStyles.moreMenuItem}>
|
|
169
|
+
<NetworkIcons_1.ShareIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
170
|
+
<react_native_1.Text style={previewStyles.moreMenuItemText}>
|
|
171
|
+
{s("mediaGallery.share",g?"Share Video":"Share Image")}
|
|
172
|
+
</react_native_1.Text>
|
|
173
|
+
</react_native_1.TouchableOpacity>
|
|
174
|
+
<react_native_1.TouchableOpacity onPress={()=>{Re(!1),lo()}}style={[previewStyles.moreMenuItem,previewStyles.moreMenuItemDestructive]}>
|
|
175
|
+
<NetworkIcons_1.TrashIcon size={14}color={AppColors_1.AppColors.rose500}/>
|
|
176
|
+
<react_native_1.Text style={[previewStyles.moreMenuItemText,{color:AppColors_1.AppColors.rose500}]}>
|
|
177
|
+
{s("mediaGallery.delete","Delete Media")}
|
|
178
|
+
</react_native_1.Text>
|
|
179
|
+
</react_native_1.TouchableOpacity>
|
|
180
|
+
</react_native_1.View>}
|
|
92
181
|
|
|
182
|
+
|
|
183
|
+
<react_native_1.View style={previewStyles.stageWrapper}>
|
|
184
|
+
<react_native_1.View onLayout={e=>{const{width:t,height:o}=e.nativeEvent.layout;t>20&&o>20&&Mt(a=>({...a,width:t,height:o}))}}style={previewStyles.previewCard}>
|
|
185
|
+
{g?i.thumbnailUri&&!be?<>
|
|
186
|
+
<react_native_1.Image source={{uri:i.thumbnailUri}}style={previewStyles.image}resizeMode="contain"onError={()=>ie(!0)}/>
|
|
187
|
+
<react_native_1.View style={previewStyles.videoImageOverlay}/>
|
|
188
|
+
</>:<react_native_1.View style={previewStyles.videoFallbackBackdrop}>
|
|
189
|
+
<react_native_1.View style={previewStyles.videoFallbackGlow}/>
|
|
190
|
+
<NetworkIcons_1.FilmIcon size={52}color={AppColors_1.AppColors.sky400}/>
|
|
191
|
+
<react_native_1.Text style={previewStyles.videoFallbackTitle}>
|
|
192
|
+
{i.width&&i.height?`${i.width} \xD7 ${i.height}`:"HD Video Recording"}
|
|
193
|
+
</react_native_1.Text>
|
|
194
|
+
<react_native_1.Text style={previewStyles.videoFallbackSubtitle}>
|
|
195
|
+
{at?`${at}s duration`:"MP4 Video"} •{" "}
|
|
196
|
+
{(0,helpers_1.formatBytes)(i.sizeBytes)}
|
|
197
|
+
</react_native_1.Text>
|
|
198
|
+
</react_native_1.View>:<react_native_1.Animated.View onLayout={e=>{const{width:t,height:o}=e.nativeEvent.layout;t>20&&o>20&&Mt(a=>({...a,width:t,height:o}))}}style={[previewStyles.canvasContainer,{transform:[...se.getTranslateTransform(),{scale:I}]}]}{...l==="draw"?qt.panHandlers:l==="none"&&I>1?Zt.panHandlers:{}}>
|
|
199
|
+
<react_native_1.View style={[previewStyles.imageCanvasWrapper,{width:ne.width,height:ne.height,transform:[{rotate:`${T}deg`},{scaleX:q?-1:1},{scaleY:Z?-1:1}]}]}>
|
|
93
200
|
|
|
94
|
-
|
|
95
|
-
<react_native_1.Text style={[previewStyles.textAnnotationText,{color:e.color}]}>
|
|
96
|
-
{e.text}
|
|
97
|
-
</react_native_1.Text>
|
|
98
|
-
<react_native_1.TouchableOpacity style={previewStyles.textDeleteBtn}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),X(t=>t.filter(a=>a.id!==e.id))}}>
|
|
99
|
-
<NetworkIcons_1.CloseWhite size={8}/>
|
|
100
|
-
</react_native_1.TouchableOpacity>
|
|
101
|
-
</react_native_1.TouchableOpacity>)}
|
|
201
|
+
<react_native_1.Image key={ae?i?.uri:w}source={{uri:ae?i?.uri:w}}style={previewStyles.image}resizeMode="cover"onError={()=>ie(!0)}/>
|
|
102
202
|
|
|
103
203
|
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
<react_native_1.View pointerEvents="none"style={[previewStyles.cropDimMask,{top:0,left:0,right:0,height:`${i.y*100}%`}]}/>
|
|
204
|
+
{!ae&&<>
|
|
107
205
|
|
|
108
|
-
|
|
206
|
+
{h.brightness+h.exposure!==0&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:h.brightness+h.exposure>0?"#FFFFFF":"#000000",opacity:Math.min(.65,Math.abs(h.brightness+h.exposure)/100*.7)}]}/>}
|
|
207
|
+
|
|
109
208
|
|
|
110
|
-
|
|
209
|
+
{h.warmth!==0&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:h.warmth>0?"#F59E0B":"#0284C7",opacity:Math.min(.4,Math.abs(h.warmth)/50*.35)}]}/>}
|
|
210
|
+
|
|
111
211
|
|
|
112
|
-
|
|
212
|
+
{h.saturation>0&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"#A855F7",opacity:Math.min(.2,h.saturation/50*.15)}]}/>}
|
|
113
213
|
|
|
114
214
|
|
|
115
|
-
|
|
116
|
-
<react_native_svg_1.Rect x={`${i.x*100}%`}y={`${i.y*100}%`}width={`${i.width*100}%`}height={`${i.height*100}%`}stroke="#FFFFFF"strokeWidth="2.5"strokeDasharray="8, 5"fill="rgba(56, 189, 248, 0.10)"/>
|
|
117
|
-
<react_native_svg_1.Line x1={`${i.x*100}%`}y1={`${(i.y+i.height*.333)*100}%`}x2={`${(i.x+i.width)*100}%`}y2={`${(i.y+i.height*.333)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
|
|
118
|
-
<react_native_svg_1.Line x1={`${i.x*100}%`}y1={`${(i.y+i.height*.666)*100}%`}x2={`${(i.x+i.width)*100}%`}y2={`${(i.y+i.height*.666)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
|
|
119
|
-
<react_native_svg_1.Line x1={`${(i.x+i.width*.333)*100}%`}y1={`${i.y*100}%`}x2={`${(i.x+i.width*.333)*100}%`}y2={`${(i.y+i.height)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
|
|
120
|
-
<react_native_svg_1.Line x1={`${(i.x+i.width*.666)*100}%`}y1={`${i.y*100}%`}x2={`${(i.x+i.width*.666)*100}%`}y2={`${(i.y+i.height)*100}%`}stroke="rgba(255, 255, 255, 0.55)"strokeWidth="1.2"strokeDasharray="4, 4"/>
|
|
121
|
-
</react_native_svg_1.default>
|
|
215
|
+
{h.vignette>0&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{borderRadius:6,borderWidth:Math.max(2,h.vignette/100*44),borderColor:`rgba(0, 0, 0, ${.85*(h.vignette/100)})`}]}/>}
|
|
122
216
|
|
|
123
217
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
218
|
+
{M==="mono"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(100, 116, 139, 0.45)"}]}/>}
|
|
219
|
+
{M==="noir"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(0, 0, 0, 0.48)"}]}/>}
|
|
220
|
+
{M==="sepia"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(120, 53, 15, 0.32)"}]}/>}
|
|
221
|
+
{M==="vintage"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(217, 119, 6, 0.22)"}]}/>}
|
|
222
|
+
{M==="vibrant"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(236, 72, 153, 0.16)"}]}/>}
|
|
223
|
+
{M==="cool"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(14, 165, 233, 0.22)"}]}/>}
|
|
224
|
+
{M==="warm"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(249, 115, 22, 0.22)"}]}/>}
|
|
225
|
+
{M==="fade"&&<react_native_1.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:"rgba(255, 255, 255, 0.18)"}]}/>}
|
|
226
|
+
</>}
|
|
130
227
|
|
|
228
|
+
|
|
229
|
+
{!ae&&<react_native_svg_1.default style={react_native_1.StyleSheet.absoluteFill}pointerEvents={l==="draw"?"auto":"none"}>
|
|
230
|
+
<react_native_svg_1.G>
|
|
131
231
|
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
232
|
+
{R.map(e=>{if(e.type==="brush"){if(e.points.length<2)return null;const t=e.points.reduce((o,a,r)=>r===0?`M ${a.x} ${a.y}`:`${o} L ${a.x} ${a.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((o,a,r)=>r===0?`M ${a.x} ${a.y}`:`${o} L ${a.x} ${a.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],o=e.points[1],a=o.x-t.x,r=o.y-t.y,n=Math.atan2(r,a),d=Math.min(28,Math.max(14,e.strokeWidth*3.5)),m=Math.PI/6,S=o.x-d*Math.cos(n-m),F=o.y-d*Math.sin(n-m),Se=o.x-d*Math.cos(n+m),Ee=o.y-d*Math.sin(n+m);return<react_native_svg_1.G key={e.id}>
|
|
233
|
+
<react_native_svg_1.Line x1={t.x}y1={t.y}x2={o.x}y2={o.y}stroke={e.color}strokeWidth={e.strokeWidth}strokeLinecap="round"/>
|
|
234
|
+
<react_native_svg_1.Polygon points={`${o.x},${o.y} ${S},${F} ${Se},${Ee}`}fill={e.color}/>
|
|
235
|
+
</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},o=e.points[1]||t,a=Math.min(t.x,o.x),r=Math.min(t.y,o.y),n=Math.max(10,Math.abs(o.x-t.x)),d=Math.max(10,Math.abs(o.y-t.y));return<react_native_svg_1.Ellipse key={e.id}cx={a+n/2}cy={r+d/2}rx={n/2}ry={d/2}stroke={e.color}strokeWidth={e.strokeWidth}fill="none"/>}if(e.type==="spotlight"){const t=e.points[0]||{x:0,y:0},o=e.points[1]||t,a=Math.min(t.x,o.x),r=Math.min(t.y,o.y),n=Math.max(16,Math.abs(o.x-t.x)),d=Math.max(16,Math.abs(o.y-t.y));return<react_native_svg_1.G key={e.id}>
|
|
236
|
+
<react_native_svg_1.Ellipse cx={a+n/2}cy={r+d/2}rx={n/2}ry={d/2}stroke="#FBBF24"strokeWidth={2.5}strokeDasharray="5,3"fill="rgba(255, 255, 255, 0.15)"/>
|
|
237
|
+
</react_native_svg_1.G>}if(e.type==="step"){const t=e.points[0]||{x:0,y:0},o=Math.max(12,Math.min(20,e.strokeWidth*2.2+8));return<react_native_svg_1.G key={e.id}>
|
|
238
|
+
<react_native_svg_1.Circle cx={t.x}cy={t.y}r={o}fill={e.color||"#EF4444"}stroke="#FFFFFF"strokeWidth={1.5}/>
|
|
239
|
+
<react_native_svg_1.Text x={t.x}y={t.y+o*.35}fill="#FFFFFF"fontSize={Math.round(o*.95)}fontWeight="bold"textAnchor="middle">
|
|
240
|
+
{e.stepNumber||1}
|
|
241
|
+
</react_native_svg_1.Text>
|
|
242
|
+
</react_native_svg_1.G>}if(e.type==="redact"){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}fill="#000000"rx={4}ry={4}/>}if(e.type==="pixelate"){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.G key={e.id}>
|
|
243
|
+
<react_native_svg_1.Rect x={t.x}y={t.y}width={t.width}height={t.height}fill="rgba(255,255,255,0.22)"stroke="rgba(255,255,255,0.5)"strokeWidth={1.5}strokeDasharray="4,4"rx={4}ry={4}/>
|
|
244
|
+
<react_native_svg_1.Line x1={t.x}y1={t.y+t.height*.33}x2={t.x+t.width}y2={t.y+t.height*.33}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
|
|
245
|
+
<react_native_svg_1.Line x1={t.x}y1={t.y+t.height*.66}x2={t.x+t.width}y2={t.y+t.height*.66}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
|
|
246
|
+
<react_native_svg_1.Line x1={t.x+t.width*.33}y1={t.y}x2={t.x+t.width*.33}y2={t.y+t.height}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
|
|
247
|
+
<react_native_svg_1.Line x1={t.x+t.width*.66}y1={t.y}x2={t.x+t.width*.66}y2={t.y+t.height}stroke="rgba(255,255,255,0.35)"strokeWidth={1}/>
|
|
248
|
+
</react_native_svg_1.G>}return null})}
|
|
136
249
|
|
|
137
250
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
251
|
+
{p&&p.length>0&&<>
|
|
252
|
+
{c==="brush"&&p.length>1&&<react_native_svg_1.Path d={p.reduce((e,t,o)=>o===0?`M ${t.x} ${t.y}`:`${e} L ${t.x} ${t.y}`,"")}stroke={K}strokeWidth={re}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}
|
|
253
|
+
|
|
254
|
+
{c==="highlighter"&&p.length>1&&<react_native_svg_1.Path d={p.reduce((e,t,o)=>o===0?`M ${t.x} ${t.y}`:`${e} L ${t.x} ${t.y}`,"")}stroke={K}strokeWidth={re*2.5}strokeOpacity={.4}strokeLinecap="round"strokeLinejoin="round"fill="none"/>}
|
|
255
|
+
|
|
256
|
+
{c==="arrow"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=t.x-e.x,a=t.y-e.y,r=Math.atan2(a,o),n=Math.min(28,Math.max(14,re*3.5)),d=Math.PI/6,m=t.x-n*Math.cos(r-d),S=t.y-n*Math.sin(r-d),F=t.x-n*Math.cos(r+d),Se=t.y-n*Math.sin(r+d);return<react_native_svg_1.G>
|
|
257
|
+
<react_native_svg_1.Line x1={e.x}y1={e.y}x2={t.x}y2={t.y}stroke={K}strokeWidth={re}strokeLinecap="round"/>
|
|
258
|
+
<react_native_svg_1.Polygon points={`${t.x},${t.y} ${m},${S} ${F},${Se}`}fill={K}/>
|
|
259
|
+
</react_native_svg_1.G>})()}
|
|
260
|
+
|
|
261
|
+
{c==="rect"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=Math.min(e.x,t.x),a=Math.min(e.y,t.y),r=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return<react_native_svg_1.Rect x={o}y={a}width={r}height={n}stroke={K}strokeWidth={re}rx={6}ry={6}fill="none"/>})()}
|
|
262
|
+
|
|
263
|
+
{c==="circle"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=Math.min(e.x,t.x),a=Math.min(e.y,t.y),r=Math.max(10,Math.abs(t.x-e.x)),n=Math.max(10,Math.abs(t.y-e.y));return<react_native_svg_1.Ellipse cx={o+r/2}cy={a+n/2}rx={r/2}ry={n/2}stroke={K}strokeWidth={re}fill="none"/>})()}
|
|
264
|
+
|
|
265
|
+
{c==="spotlight"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=Math.min(e.x,t.x),a=Math.min(e.y,t.y),r=Math.max(16,Math.abs(t.x-e.x)),n=Math.max(16,Math.abs(t.y-e.y));return<react_native_svg_1.G>
|
|
266
|
+
<react_native_svg_1.Ellipse cx={o+r/2}cy={a+n/2}rx={r/2}ry={n/2}stroke="#FBBF24"strokeWidth={2.5}strokeDasharray="5,3"fill="rgba(255, 255, 255, 0.15)"/>
|
|
267
|
+
</react_native_svg_1.G>})()}
|
|
268
|
+
|
|
269
|
+
{c==="step"&&p.length>0&&(()=>{const e=p[0],t=R.filter(a=>a.type==="step").length,o=Math.max(12,Math.min(20,re*2.2+8));return<react_native_svg_1.G>
|
|
270
|
+
<react_native_svg_1.Circle cx={e.x}cy={e.y}r={o}fill={K||"#EF4444"}stroke="#FFFFFF"strokeWidth={1.5}/>
|
|
271
|
+
<react_native_svg_1.Text x={e.x}y={e.y+o*.35}fill="#FFFFFF"fontSize={Math.round(o*.95)}fontWeight="bold"textAnchor="middle">
|
|
272
|
+
{t+1}
|
|
273
|
+
</react_native_svg_1.Text>
|
|
274
|
+
</react_native_svg_1.G>})()}
|
|
275
|
+
|
|
276
|
+
{c==="redact"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=Math.min(e.x,t.x),a=Math.min(e.y,t.y),r=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return<react_native_svg_1.Rect x={o}y={a}width={r}height={n}fill="#000000"stroke="rgba(255,255,255,0.4)"strokeWidth={1}strokeDasharray="3,3"rx={4}ry={4}/>})()}
|
|
277
|
+
|
|
278
|
+
{c==="pixelate"&&p.length>1&&(()=>{const e=p[0],t=p[p.length-1],o=Math.min(e.x,t.x),a=Math.min(e.y,t.y),r=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return<react_native_svg_1.Rect x={o}y={a}width={r}height={n}fill="rgba(255,255,255,0.22)"stroke="rgba(255,255,255,0.6)"strokeWidth={1.5}strokeDasharray="4,4"rx={4}ry={4}/>})()}
|
|
279
|
+
</>}
|
|
280
|
+
</react_native_svg_1.G>
|
|
281
|
+
</react_native_svg_1.default>}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
{Y&&!ae&&<react_native_1.View pointerEvents="none"style={previewStyles.watermarkOverlay}>
|
|
285
|
+
<react_native_1.Text style={previewStyles.watermarkText}>
|
|
286
|
+
{react_native_1.Platform.OS.toUpperCase()} • {te}×{oe} • QA DIAGNOSTIC
|
|
287
|
+
</react_native_1.Text>
|
|
288
|
+
<react_native_1.Text style={previewStyles.watermarkTime}>
|
|
289
|
+
{new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}
|
|
290
|
+
</react_native_1.Text>
|
|
144
291
|
</react_native_1.View>}
|
|
145
|
-
</react_native_1.View>}
|
|
146
292
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</react_native_1.View>
|
|
153
|
-
<react_native_1.View style={previewStyles.centerPlayPill}>
|
|
154
|
-
<react_native_1.Text style={previewStyles.centerPlayText}>
|
|
155
|
-
{Fe?n("mediaGallery.playing","Playing Video..."):n("mediaGallery.playVideo","Play Video")}
|
|
156
|
-
</react_native_1.Text>
|
|
157
|
-
</react_native_1.View>
|
|
158
|
-
</react_native_1.TouchableOpacity>}
|
|
293
|
+
|
|
294
|
+
{l==="text"&&<react_native_1.Pressable style={react_native_1.StyleSheet.absoluteFill}onPress={e=>{const{locationX:t,locationY:o}=e.nativeEvent,a=Math.max(1,ne.width),r=Math.max(1,ne.height),n=Math.max(.05,Math.min(.85,t/a)),d=Math.max(.05,Math.min(.85,o/r));Yt({x:n,y:d}),yt()}}/>}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
{!ae&&Q.map(e=><DraggableText key={e.id}textItem={e}canvasWidth={ne.width}canvasHeight={ne.height}scale={I}onUpdate={(t,o)=>{P(),ue(a=>a.map(r=>r.id===t?{...r,...o}:r))}}onDelete={t=>{ro(t)}}onEdit={t=>yt(t)}/>)}
|
|
159
298
|
|
|
299
|
+
|
|
300
|
+
{(N||l==="crop")&&!ae&&<react_native_1.View pointerEvents="none"style={previewStyles.instagramGridOverlay}>
|
|
301
|
+
<react_native_1.View style={[previewStyles.instagramGridHLine,{top:"33.33%"}]}/>
|
|
302
|
+
<react_native_1.View style={[previewStyles.instagramGridHLine,{top:"66.67%"}]}/>
|
|
303
|
+
<react_native_1.View style={[previewStyles.instagramGridVLine,{left:"33.33%"}]}/>
|
|
304
|
+
<react_native_1.View style={[previewStyles.instagramGridVLine,{left:"66.67%"}]}/>
|
|
305
|
+
</react_native_1.View>}
|
|
306
|
+
</react_native_1.View>
|
|
307
|
+
</react_native_1.Animated.View>}
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
{k&&Bt&&<react_native_1.Pressable onPressIn={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ge(!0)}}onPressOut={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ge(!1)}}style={({pressed:e})=>[previewStyles.holdCompareBtn,e&&previewStyles.holdCompareBtnPressed]}>
|
|
313
|
+
<NetworkIcons_1.EyeCompareIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
314
|
+
<react_native_1.Text style={previewStyles.holdCompareText}>
|
|
315
|
+
{ae?"Original Image":"Hold to Compare"}
|
|
316
|
+
</react_native_1.Text>
|
|
317
|
+
</react_native_1.Pressable>}
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
{g&&<react_native_1.TouchableOpacity onPress={bt}activeOpacity={.85}style={previewStyles.modernCenterPlayBtn}>
|
|
321
|
+
{W?<NetworkIcons_1.PauseIcon size={24}color={AppColors_1.AppColors.white}/>:<react_native_1.View style={{marginLeft:3}}>
|
|
322
|
+
<NetworkIcons_1.PlayIcon size={24}color={AppColors_1.AppColors.white}/>
|
|
323
|
+
</react_native_1.View>}
|
|
324
|
+
</react_native_1.TouchableOpacity>}
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
{g&&<react_native_1.View style={previewStyles.videoFloatingHud}>
|
|
328
|
+
<react_native_1.TouchableOpacity onPress={bt}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
329
|
+
{W?<NetworkIcons_1.PauseIcon size={13}color={AppColors_1.AppColors.white}/>:<NetworkIcons_1.PlayIcon size={13}color={AppColors_1.AppColors.white}/>}
|
|
330
|
+
</react_native_1.TouchableOpacity>
|
|
331
|
+
<react_native_1.View style={previewStyles.videoHudProgressBar}>
|
|
332
|
+
<react_native_1.View style={[previewStyles.videoHudProgressFill,{left:`${V/(z||1e4)*100}%`,width:`${Math.max(4,(E-V)/(z||1e4)*100)}%`}]}/>
|
|
333
|
+
</react_native_1.View>
|
|
334
|
+
<react_native_1.Text style={previewStyles.videoHudTimeText}>
|
|
335
|
+
{Wt||"00:05"}
|
|
336
|
+
</react_native_1.Text>
|
|
337
|
+
{X&&<react_native_1.View style={previewStyles.videoHudBadge}>
|
|
338
|
+
<NetworkIcons_1.VolumeXIcon size={10}color="#F87171"/>
|
|
339
|
+
</react_native_1.View>}
|
|
340
|
+
{he!==1&&<react_native_1.View style={previewStyles.videoHudBadge}>
|
|
341
|
+
<react_native_1.Text style={previewStyles.videoHudBadgeText}>{he}x</react_native_1.Text>
|
|
342
|
+
</react_native_1.View>}
|
|
343
|
+
</react_native_1.View>}
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
{k&&<react_native_1.View style={previewStyles.floatingZoomBar}>
|
|
347
|
+
<TouchableScale_1.default onPress={Kt}style={previewStyles.zoomBtn}accessibilityLabel="Zoom In">
|
|
348
|
+
<NetworkIcons_1.ZoomInIcon size={15}color={AppColors_1.AppColors.white}/>
|
|
349
|
+
</TouchableScale_1.default>
|
|
350
|
+
|
|
351
|
+
<react_native_1.TouchableOpacity onPress={Rt}activeOpacity={.8}style={previewStyles.zoomLevelBadge}>
|
|
352
|
+
<react_native_1.Text style={previewStyles.zoomLevelText}>
|
|
353
|
+
{Math.round(I*100)}%
|
|
354
|
+
</react_native_1.Text>
|
|
355
|
+
</react_native_1.TouchableOpacity>
|
|
356
|
+
|
|
357
|
+
<TouchableScale_1.default onPress={Qt}style={previewStyles.zoomBtn}accessibilityLabel="Zoom Out">
|
|
358
|
+
<NetworkIcons_1.ZoomOutIcon size={15}color={AppColors_1.AppColors.white}/>
|
|
359
|
+
</TouchableScale_1.default>
|
|
360
|
+
|
|
361
|
+
<TouchableScale_1.default onPress={Rt}style={previewStyles.zoomBtn}accessibilityLabel="Fit to Screen">
|
|
362
|
+
<NetworkIcons_1.MaximizeIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
363
|
+
</TouchableScale_1.default>
|
|
364
|
+
</react_native_1.View>}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
{k&&l==="crop"&&<CropOverlay cropBox={et}imageWidth={ne.width}imageHeight={ne.height}imageOffsetX={(Oe.width-ne.width)/2}imageOffsetY={(Oe.height-ne.height)/2}scale={I}onUpdateCropBox={He}onApplyCrop={Ht}onCancelCrop={()=>f("none")}/>}
|
|
368
|
+
</react_native_1.View>
|
|
369
|
+
</react_native_1.View>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<react_native_1.View style={previewStyles.bottomControlsContainer}>
|
|
373
|
+
|
|
374
|
+
{(k||g)&&<react_native_1.View style={previewStyles.contextToolPanel}>
|
|
160
375
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
376
|
+
<react_native_1.View style={previewStyles.panelHeaderRow}>
|
|
377
|
+
<react_native_1.View style={previewStyles.panelHeaderLeft}>
|
|
378
|
+
<react_native_1.View style={[previewStyles.panelGlowDot,k&&l==="draw"&&{backgroundColor:"#818CF8"},k&&l==="crop"&&{backgroundColor:"#38BDF8"},k&&l==="adjust"&&{backgroundColor:"#F59E0B"},k&&l==="text"&&{backgroundColor:"#A855F7"},g&&l==="trim"&&{backgroundColor:"#38BDF8"},g&&l==="audio"&&{backgroundColor:"#F59E0B"},g&&l==="speed"&&{backgroundColor:"#8B5CF6"},g&&l==="gif"&&{backgroundColor:"#10B981"},g&&l==="snapshot"&&{backgroundColor:"#EC4899"},g&&l==="none"&&{backgroundColor:"#818CF8"}]}/>
|
|
379
|
+
<react_native_1.Text style={previewStyles.panelHeaderTitle}>
|
|
380
|
+
{k?l==="draw"?c==="redact"?"BLACKOUT REDACTION":c==="pixelate"?"PIXELATE BLUR":c==="highlighter"?"HIGHLIGHTER":c==="arrow"?"ARROW CALLOUT":c==="rect"?"RECTANGLE BOX":c==="circle"?"CIRCLE / ELLIPSE":c==="spotlight"?"SPOTLIGHT FOCUS":c==="step"?"STEP NUMBER BADGE":"PEN BRUSH":l==="crop"?"CROP & ROTATE":l==="adjust"?`ADJUST: ${ee.toUpperCase()}`:l==="text"?"TEXT & BUG BADGES":"CANVAS PREVIEW":l==="trim"?"VIDEO TRIMMER":l==="audio"?"AUDIO CONTROLS":l==="speed"?"SPEED MULTIPLIER":l==="gif"?"GIF EXPORT STUDIO":l==="snapshot"?"FRAME SNAPSHOT":"VIDEO STUDIO & PLAYER"}
|
|
381
|
+
</react_native_1.Text>
|
|
382
|
+
</react_native_1.View>
|
|
383
|
+
<react_native_1.View style={previewStyles.panelValueBadge}>
|
|
384
|
+
<react_native_1.Text style={previewStyles.panelValueText}>
|
|
385
|
+
{k?l==="draw"?c==="redact"?"100% Solid":c==="pixelate"?`+${pt} px`:c==="step"?`Badge #${R.filter(e=>e.type==="step").length+1}`:`+${re} px`:l==="crop"?`${gt.toUpperCase()} \u2022 ${T}\xB0`:l==="adjust"?ee==="vignette"?`+${h.vignette}%`:`${h[ee]>=0?"+":""}${h[ee]}%`:l==="text"?`${Q.length} Notes`:`${Math.round(I*100)}%`:l==="trim"?`${(V/1e3).toFixed(1)}s - ${(E/1e3).toFixed(1)}s (${((E-V)/1e3).toFixed(1)}s)`:l==="audio"?X?"Muted (0%)":`${Te}% Vol`:l==="speed"?`${he}x Speed`:l==="gif"?`${Qe} FPS \u2022 ${ut}px`:l==="snapshot"?`${te||1080}\xD7${oe||1920}`:Wt||"00:05"}
|
|
386
|
+
</react_native_1.Text>
|
|
387
|
+
</react_native_1.View>
|
|
388
|
+
</react_native_1.View>
|
|
169
389
|
|
|
170
390
|
|
|
171
|
-
{
|
|
172
|
-
<react_native_1.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
391
|
+
{g&&l==="trim"&&xt.length>0&&<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={previewStyles.filmstripScroll}>
|
|
392
|
+
{xt.map(e=>{const t=e.timeMs>=V&&e.timeMs<=E;return<react_native_1.TouchableOpacity key={`thumb_${e.index}_${e.timeMs}`}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Me==="start"?ke(Math.min(E-500,e.timeMs)):Pe(Math.max(V+500,e.timeMs))}}style={[previewStyles.filmstripThumbItem,t&&previewStyles.filmstripThumbActive]}>
|
|
393
|
+
<react_native_1.Image source={{uri:e.uri}}style={previewStyles.filmstripThumbImg}resizeMode="cover"/>
|
|
394
|
+
<react_native_1.Text style={previewStyles.filmstripThumbTime}>
|
|
395
|
+
{(e.timeMs/1e3).toFixed(1)}s
|
|
396
|
+
</react_native_1.Text>
|
|
397
|
+
</react_native_1.TouchableOpacity>})}
|
|
398
|
+
</react_native_1.ScrollView>}
|
|
177
399
|
|
|
178
400
|
|
|
179
|
-
<react_native_1.
|
|
180
|
-
<react_native_1.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
401
|
+
<react_native_1.View style={previewStyles.sliderRowContainer}>
|
|
402
|
+
<react_native_1.Text style={previewStyles.sliderMinIndicator}>
|
|
403
|
+
{g&&l==="speed"?"0.5x":g&&l==="gif"?"6fps":"\u25CB"}
|
|
404
|
+
</react_native_1.Text>
|
|
405
|
+
<react_native_1.View onLayout={e=>{const t=e.nativeEvent.layout.width;t>20&&(kt.current=t)}}style={previewStyles.sliderTrackTouchable}{...Jt.panHandlers}>
|
|
406
|
+
<react_native_1.View style={previewStyles.sliderTrackBg}>
|
|
407
|
+
<react_native_1.View style={[previewStyles.sliderFillTrack,{width:`${Ot}%`},g&&l==="trim"&&{left:`${V/(z||1e4)*100}%`,width:`${Math.max(4,(E-V)/(z||1e4)*100)}%`,backgroundColor:"#38BDF8"}]}/>
|
|
408
|
+
<react_native_1.View pointerEvents="none"style={[previewStyles.sliderThumbHandle,{left:`${Ot}%`}]}>
|
|
409
|
+
<react_native_1.View style={previewStyles.sliderThumbInnerGlow}/>
|
|
410
|
+
</react_native_1.View>
|
|
411
|
+
</react_native_1.View>
|
|
186
412
|
</react_native_1.View>
|
|
187
|
-
|
|
413
|
+
<react_native_1.Text style={previewStyles.sliderMaxIndicator}>
|
|
414
|
+
{g&&l==="speed"?"2.0x":g&&l==="gif"?"24fps":"\u25CF"}
|
|
415
|
+
</react_native_1.Text>
|
|
416
|
+
</react_native_1.View>
|
|
188
417
|
|
|
189
418
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
</react_native_1.Text>
|
|
199
|
-
</react_native_1.TouchableOpacity>
|
|
419
|
+
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={previewStyles.modeChipsScroll}>
|
|
420
|
+
{g?l==="trim"?<>
|
|
421
|
+
|
|
422
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),rt("start")}}style={[previewStyles.modeChip,Me==="start"&&previewStyles.modeChipActive]}>
|
|
423
|
+
<react_native_1.Text style={[previewStyles.modeChipText,Me==="start"&&previewStyles.modeChipTextActive]}>
|
|
424
|
+
Start: {(V/1e3).toFixed(1)}s
|
|
425
|
+
</react_native_1.Text>
|
|
426
|
+
</react_native_1.TouchableOpacity>
|
|
200
427
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
428
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),rt("end")}}style={[previewStyles.modeChip,Me==="end"&&previewStyles.modeChipActive]}>
|
|
429
|
+
<react_native_1.Text style={[previewStyles.modeChipText,Me==="end"&&previewStyles.modeChipTextActive]}>
|
|
430
|
+
End: {(E/1e3).toFixed(1)}s
|
|
431
|
+
</react_native_1.Text>
|
|
432
|
+
</react_native_1.TouchableOpacity>
|
|
206
433
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<react_native_1.
|
|
434
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=z||1e4;ke(0),Pe(Math.min(e,3e3))}}style={previewStyles.modeChip}>
|
|
438
|
+
<react_native_1.Text style={previewStyles.modeChipText}>First 3s</react_native_1.Text>
|
|
439
|
+
</react_native_1.TouchableOpacity>
|
|
440
|
+
|
|
441
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=z||1e4;ke(0),Pe(Math.min(e,5e3))}}style={previewStyles.modeChip}>
|
|
442
|
+
<react_native_1.Text style={previewStyles.modeChipText}>First 5s</react_native_1.Text>
|
|
443
|
+
</react_native_1.TouchableOpacity>
|
|
444
|
+
|
|
445
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=z||1e4;ke(0),Pe(Math.min(e,1e4))}}style={previewStyles.modeChip}>
|
|
446
|
+
<react_native_1.Text style={previewStyles.modeChipText}>First 10s</react_native_1.Text>
|
|
447
|
+
</react_native_1.TouchableOpacity>
|
|
448
|
+
|
|
449
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
450
|
+
|
|
451
|
+
<react_native_1.TouchableOpacity onPress={Vt}style={previewStyles.applyActionBtn}>
|
|
452
|
+
<react_native_1.Text style={previewStyles.applyActionText}>Apply Trim</react_native_1.Text>
|
|
453
|
+
</react_native_1.TouchableOpacity>
|
|
454
|
+
|
|
455
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ke(0),Pe(z||1e4)}}style={previewStyles.cancelActionBtn}>
|
|
456
|
+
<react_native_1.Text style={previewStyles.cancelActionText}>Reset</react_native_1.Text>
|
|
457
|
+
</react_native_1.TouchableOpacity>
|
|
458
|
+
</>:l==="audio"?<>
|
|
459
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Ke(e=>!e)}}style={[previewStyles.modeChip,X&&previewStyles.modeChipActive]}>
|
|
460
|
+
<NetworkIcons_1.VolumeXIcon size={14}color={X?AppColors_1.AppColors.white:"rgba(255,255,255,0.7)"}/>
|
|
461
|
+
<react_native_1.Text style={[previewStyles.modeChipText,X&&previewStyles.modeChipTextActive]}>
|
|
462
|
+
{X?"Muted":"Unmuted"}
|
|
463
|
+
</react_native_1.Text>
|
|
464
|
+
</react_native_1.TouchableOpacity>
|
|
465
|
+
|
|
466
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
467
|
+
|
|
468
|
+
{[100,75,50,25,0].map(e=><react_native_1.TouchableOpacity key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),nt(e),Ke(e===0)}}style={[previewStyles.modeChip,!X&&Te===e&&previewStyles.modeChipActive]}>
|
|
469
|
+
<react_native_1.Text style={[previewStyles.modeChipText,!X&&Te===e&&previewStyles.modeChipTextActive]}>
|
|
470
|
+
{e}%
|
|
471
|
+
</react_native_1.Text>
|
|
472
|
+
</react_native_1.TouchableOpacity>)}
|
|
473
|
+
|
|
474
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
475
|
+
|
|
476
|
+
<react_native_1.TouchableOpacity onPress={co}style={previewStyles.applyActionBtn}>
|
|
477
|
+
<react_native_1.Text style={previewStyles.applyActionText}>Strip Audio</react_native_1.Text>
|
|
478
|
+
</react_native_1.TouchableOpacity>
|
|
479
|
+
</>:l==="speed"?<>
|
|
480
|
+
{[.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,he===e&&previewStyles.modeChipActive]}>
|
|
481
|
+
<NetworkIcons_1.ZapIcon size={13}color={he===e?AppColors_1.AppColors.white:"rgba(255,255,255,0.7)"}/>
|
|
482
|
+
<react_native_1.Text style={[previewStyles.modeChipText,he===e&&previewStyles.modeChipTextActive]}>
|
|
483
|
+
{e===1?"1.0x (Normal)":`${e}x`}
|
|
484
|
+
</react_native_1.Text>
|
|
485
|
+
</react_native_1.TouchableOpacity>)}
|
|
486
|
+
</>:l==="gif"?<>
|
|
487
|
+
|
|
488
|
+
{[{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"),mt(e.fps)}}style={[previewStyles.modeChip,Qe===e.fps&&previewStyles.modeChipActive]}>
|
|
489
|
+
<react_native_1.Text style={[previewStyles.modeChipText,Qe===e.fps&&previewStyles.modeChipTextActive]}>
|
|
490
|
+
{e.label}
|
|
491
|
+
</react_native_1.Text>
|
|
492
|
+
</react_native_1.TouchableOpacity>)}
|
|
493
|
+
|
|
494
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
{[{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"),$t(e.w)}}style={[previewStyles.modeChip,ut===e.w&&previewStyles.modeChipActive]}>
|
|
498
|
+
<react_native_1.Text style={[previewStyles.modeChipText,ut===e.w&&previewStyles.modeChipTextActive]}>
|
|
499
|
+
{e.label}
|
|
500
|
+
</react_native_1.Text>
|
|
501
|
+
</react_native_1.TouchableOpacity>)}
|
|
502
|
+
|
|
503
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
504
|
+
|
|
505
|
+
<react_native_1.TouchableOpacity onPress={Dt}disabled={ce}style={[previewStyles.applyActionBtn,ce&&{opacity:.6}]}>
|
|
506
|
+
<react_native_1.Text style={previewStyles.applyActionText}>
|
|
507
|
+
{ce?"Exporting...":"Export GIF"}
|
|
508
|
+
</react_native_1.Text>
|
|
509
|
+
</react_native_1.TouchableOpacity>
|
|
510
|
+
</>:l==="snapshot"?<>
|
|
511
|
+
<react_native_1.TouchableOpacity onPress={zt}disabled={L}style={previewStyles.applyActionBtn}>
|
|
512
|
+
<NetworkIcons_1.CameraRollIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
513
|
+
<react_native_1.Text style={previewStyles.applyActionText}>
|
|
514
|
+
Snapshot Current Frame (PNG)
|
|
515
|
+
</react_native_1.Text>
|
|
516
|
+
</react_native_1.TouchableOpacity>
|
|
517
|
+
</>:<>
|
|
518
|
+
<react_native_1.TouchableOpacity onPress={bt}style={previewStyles.modeChipActive}>
|
|
519
|
+
<NetworkIcons_1.PlayIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
520
|
+
<react_native_1.Text style={previewStyles.modeChipTextActive}>Play Video</react_native_1.Text>
|
|
521
|
+
</react_native_1.TouchableOpacity>
|
|
522
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("trim")}}style={previewStyles.modeChip}>
|
|
523
|
+
<NetworkIcons_1.ScissorsIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
524
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Trim Clip</react_native_1.Text>
|
|
525
|
+
</react_native_1.TouchableOpacity>
|
|
526
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("audio")}}style={previewStyles.modeChip}>
|
|
527
|
+
<NetworkIcons_1.VolumeXIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
528
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Audio</react_native_1.Text>
|
|
529
|
+
</react_native_1.TouchableOpacity>
|
|
530
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("speed")}}style={previewStyles.modeChip}>
|
|
531
|
+
<NetworkIcons_1.ZapIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
532
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Speed</react_native_1.Text>
|
|
533
|
+
</react_native_1.TouchableOpacity>
|
|
534
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("gif")}}style={previewStyles.modeChip}>
|
|
535
|
+
<NetworkIcons_1.GifIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
536
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Export GIF</react_native_1.Text>
|
|
537
|
+
</react_native_1.TouchableOpacity>
|
|
538
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("snapshot")}}style={previewStyles.modeChip}>
|
|
539
|
+
<NetworkIcons_1.CameraRollIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
540
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Snapshot</react_native_1.Text>
|
|
541
|
+
</react_native_1.TouchableOpacity>
|
|
542
|
+
</>:l==="draw"?<>
|
|
543
|
+
|
|
544
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("brush")}}style={[previewStyles.modeChip,c==="brush"&&previewStyles.modeChipActive]}>
|
|
545
|
+
<NetworkIcons_1.PenIcon size={14}color={c==="brush"?AppColors_1.AppColors.white:"rgba(255,255,255,0.6)"}/>
|
|
546
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="brush"&&previewStyles.modeChipTextActive]}>
|
|
547
|
+
Brush
|
|
548
|
+
</react_native_1.Text>
|
|
215
549
|
</react_native_1.TouchableOpacity>
|
|
216
|
-
|
|
217
|
-
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("highlighter")}}style={[previewStyles.modeChip,c==="highlighter"&&previewStyles.modeChipActive]}>
|
|
553
|
+
<NetworkIcons_1.HighlighterIcon size={14}color={c==="highlighter"?AppColors_1.AppColors.white:"rgba(255,255,255,0.6)"}/>
|
|
554
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="highlighter"&&previewStyles.modeChipTextActive]}>
|
|
555
|
+
Highlighter
|
|
556
|
+
</react_native_1.Text>
|
|
218
557
|
</react_native_1.TouchableOpacity>
|
|
219
|
-
</react_native_1.View>
|
|
220
|
-
</react_native_1.View>
|
|
221
558
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<react_native_1.Text style={[previewStyles.
|
|
226
|
-
|
|
559
|
+
|
|
560
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("arrow")}}style={[previewStyles.modeChip,c==="arrow"&&previewStyles.modeChipActive]}>
|
|
561
|
+
<NetworkIcons_1.ArrowRightIcon size={14}color={c==="arrow"?AppColors_1.AppColors.white:"rgba(255,255,255,0.6)"}/>
|
|
562
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="arrow"&&previewStyles.modeChipTextActive]}>
|
|
563
|
+
Arrow
|
|
227
564
|
</react_native_1.Text>
|
|
228
|
-
</react_native_1.TouchableOpacity>
|
|
229
|
-
</react_native_1.ScrollView>
|
|
230
|
-
</react_native_1.View>}
|
|
565
|
+
</react_native_1.TouchableOpacity>
|
|
231
566
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
</react_native_1.View>}
|
|
567
|
+
|
|
568
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("rect")}}style={[previewStyles.modeChip,c==="rect"&&previewStyles.modeChipActive]}>
|
|
569
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,c==="rect"&&{color:AppColors_1.AppColors.white}]}>
|
|
570
|
+
□
|
|
571
|
+
</react_native_1.Text>
|
|
572
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="rect"&&previewStyles.modeChipTextActive]}>
|
|
573
|
+
Rectangle
|
|
574
|
+
</react_native_1.Text>
|
|
575
|
+
</react_native_1.TouchableOpacity>
|
|
242
576
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
<react_native_1.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<react_native_1.Text style={previewStyles.actionPillText}>Undo</react_native_1.Text>
|
|
253
|
-
</react_native_1.TouchableOpacity>
|
|
254
|
-
<react_native_1.TouchableOpacity onPress={Ke}disabled={E.length===0}style={[previewStyles.actionPillBtn,E.length===0&&{opacity:.4}]}>
|
|
255
|
-
<react_native_1.Text style={previewStyles.actionPillText}>Clear</react_native_1.Text>
|
|
256
|
-
</react_native_1.TouchableOpacity>
|
|
257
|
-
</react_native_1.ScrollView>
|
|
258
|
-
</react_native_1.View>}
|
|
577
|
+
|
|
578
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("circle")}}style={[previewStyles.modeChip,c==="circle"&&previewStyles.modeChipActive]}>
|
|
579
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,c==="circle"&&{color:AppColors_1.AppColors.white}]}>
|
|
580
|
+
○
|
|
581
|
+
</react_native_1.Text>
|
|
582
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="circle"&&previewStyles.modeChipTextActive]}>
|
|
583
|
+
Circle
|
|
584
|
+
</react_native_1.Text>
|
|
585
|
+
</react_native_1.TouchableOpacity>
|
|
259
586
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
</react_native_1.TouchableOpacity>
|
|
270
|
-
<react_native_1.TouchableOpacity onPress={()=>le("ellipse")}style={previewStyles.shapeOptionBtn}>
|
|
271
|
-
<NetworkIcons_1.EllipseIconOutline size={14}color={AppColors_1.AppColors.violet600}/>
|
|
272
|
-
<react_native_1.Text style={previewStyles.shapeOptionText}>Ellipse</react_native_1.Text>
|
|
273
|
-
</react_native_1.TouchableOpacity>
|
|
274
|
-
<react_native_1.View style={previewStyles.subDivider}/>
|
|
275
|
-
{COLOR_PALETTE.slice(0,4).map(e=><react_native_1.TouchableOpacity key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ye(e)}}style={[previewStyles.colorDot,{backgroundColor:e},A===e&&previewStyles.colorDotActive]}/>)}
|
|
276
|
-
</react_native_1.ScrollView>
|
|
277
|
-
</react_native_1.View>}
|
|
587
|
+
|
|
588
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("spotlight")}}style={[previewStyles.modeChip,c==="spotlight"&&previewStyles.modeChipActive]}>
|
|
589
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,c==="spotlight"&&{color:AppColors_1.AppColors.white}]}>
|
|
590
|
+
🔦
|
|
591
|
+
</react_native_1.Text>
|
|
592
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="spotlight"&&previewStyles.modeChipTextActive]}>
|
|
593
|
+
Spotlight
|
|
594
|
+
</react_native_1.Text>
|
|
595
|
+
</react_native_1.TouchableOpacity>
|
|
278
596
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
597
|
+
|
|
598
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("step"),(0,toast_1.showToast)(s("mediaGallery.tapToPlaceStep","Tap or drag on image to place numbered steps \u2460 \u2461 \u2462"))}}style={[previewStyles.modeChip,c==="step"&&previewStyles.modeChipActive]}>
|
|
599
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,c==="step"&&{color:AppColors_1.AppColors.white}]}>
|
|
600
|
+
①
|
|
601
|
+
</react_native_1.Text>
|
|
602
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="step"&&previewStyles.modeChipTextActive]}>
|
|
603
|
+
Step #{R.filter(e=>e.type==="step").length+1}
|
|
604
|
+
</react_native_1.Text>
|
|
605
|
+
</react_native_1.TouchableOpacity>
|
|
288
606
|
|
|
289
|
-
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
607
|
+
|
|
608
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("redact")}}style={[previewStyles.modeChip,c==="redact"&&previewStyles.modeChipActive]}>
|
|
609
|
+
<NetworkIcons_1.RedactIcon size={14}color={c==="redact"?AppColors_1.AppColors.white:"rgba(255,255,255,0.6)"}/>
|
|
610
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="redact"&&previewStyles.modeChipTextActive]}>
|
|
611
|
+
Redact
|
|
612
|
+
</react_native_1.Text>
|
|
613
|
+
</react_native_1.TouchableOpacity>
|
|
295
614
|
|
|
296
|
-
|
|
297
|
-
<
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
615
|
+
|
|
616
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),fe("pixelate")}}style={[previewStyles.modeChip,c==="pixelate"&&previewStyles.modeChipActive]}>
|
|
617
|
+
<NetworkIcons_1.PixelateIcon size={14}color={c==="pixelate"?AppColors_1.AppColors.white:"rgba(255,255,255,0.6)"}/>
|
|
618
|
+
<react_native_1.Text style={[previewStyles.modeChipText,c==="pixelate"&&previewStyles.modeChipTextActive]}>
|
|
619
|
+
Pixelate
|
|
620
|
+
</react_native_1.Text>
|
|
621
|
+
</react_native_1.TouchableOpacity>
|
|
302
622
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
</
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
<
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
623
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
624
|
+
|
|
625
|
+
{COLOR_PALETTE.map(e=><react_native_1.TouchableOpacity key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),wt(e)}}style={[previewStyles.colorDot,{backgroundColor:e},K===e&&previewStyles.colorDotActive]}/>)}
|
|
626
|
+
|
|
627
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
628
|
+
|
|
629
|
+
<react_native_1.TouchableOpacity onPress={io}disabled={R.length===0}style={[previewStyles.actionPillBtn,R.length===0&&{opacity:.4}]}>
|
|
630
|
+
<NetworkIcons_1.UndoIcon size={13}color={AppColors_1.AppColors.white}/>
|
|
631
|
+
<react_native_1.Text style={previewStyles.actionPillText}>Undo</react_native_1.Text>
|
|
632
|
+
</react_native_1.TouchableOpacity>
|
|
633
|
+
|
|
634
|
+
{R.length>0&&<react_native_1.TouchableOpacity onPress={ao}style={[previewStyles.actionPillBtn,{backgroundColor:"rgba(239, 68, 68, 0.2)"}]}>
|
|
635
|
+
<react_native_1.Text style={[previewStyles.actionPillText,{color:AppColors_1.AppColors.rose400}]}>
|
|
636
|
+
Clear ({R.length})
|
|
637
|
+
</react_native_1.Text>
|
|
638
|
+
</react_native_1.TouchableOpacity>}
|
|
639
|
+
</>:l==="adjust"?<>
|
|
640
|
+
|
|
641
|
+
{[{key:"none",label:"Original",icon:"\u2726"},{key:"vibrant",label:"Vibrant",icon:"\u{1F308}"},{key:"mono",label:"Mono",icon:"\u25D0"},{key:"sepia",label:"Sepia",icon:"\u2615"},{key:"vintage",label:"Vintage",icon:"\u{1F39E}"},{key:"noir",label:"Noir",icon:"\u{1F311}"},{key:"cool",label:"Cool",icon:"\u2744"},{key:"warm",label:"Warm",icon:"\u2600"},{key:"fade",label:"Fade",icon:"\u{1F32B}"}].map(e=><react_native_1.TouchableOpacity key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),Ye(e.key)}}style={[previewStyles.modeChip,M===e.key&&previewStyles.modeChipActive]}>
|
|
642
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,M===e.key&&{color:AppColors_1.AppColors.white}]}>
|
|
643
|
+
{e.icon}
|
|
644
|
+
</react_native_1.Text>
|
|
645
|
+
<react_native_1.Text style={[previewStyles.modeChipText,M===e.key&&previewStyles.modeChipTextActive]}>
|
|
646
|
+
{e.label}
|
|
647
|
+
</react_native_1.Text>
|
|
648
|
+
</react_native_1.TouchableOpacity>)}
|
|
649
|
+
|
|
650
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),Ne(e=>!e)}}style={[previewStyles.modeChip,Y&&previewStyles.modeChipActive]}>
|
|
654
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,Y&&{color:AppColors_1.AppColors.white}]}>
|
|
655
|
+
🛡
|
|
656
|
+
</react_native_1.Text>
|
|
657
|
+
<react_native_1.Text style={[previewStyles.modeChipText,Y&&previewStyles.modeChipTextActive]}>
|
|
658
|
+
QA Bar {Y?"ON":"OFF"}
|
|
659
|
+
</react_native_1.Text>
|
|
660
|
+
</react_native_1.TouchableOpacity>
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Le(e=>!e)}}style={[previewStyles.modeChip,N&&previewStyles.modeChipActive]}>
|
|
664
|
+
<NetworkIcons_1.GridlinesIcon size={13}color={N?AppColors_1.AppColors.white:"rgba(255,255,255,0.8)"}/>
|
|
665
|
+
<react_native_1.Text style={[previewStyles.modeChipText,N&&previewStyles.modeChipTextActive]}>
|
|
666
|
+
Grid 3×3
|
|
667
|
+
</react_native_1.Text>
|
|
668
|
+
</react_native_1.TouchableOpacity>
|
|
669
|
+
|
|
670
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
{[{key:"brightness",label:"Brightness",icon:"\u2600"},{key:"contrast",label:"Contrast",icon:"\u25D0"},{key:"saturation",label:"Saturation",icon:"\u{1F3A8}"},{key:"warmth",label:"Warmth",icon:"\u{1F525}"},{key:"exposure",label:"Exposure",icon:"\u26A1"},{key:"vignette",label:"Vignette",icon:"\u25CE"}].map(e=><react_native_1.TouchableOpacity key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Lt(e.key)}}style={[previewStyles.modeChip,ee===e.key&&previewStyles.modeChipActive]}>
|
|
674
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,ee===e.key&&{color:AppColors_1.AppColors.white}]}>
|
|
675
|
+
{e.icon}
|
|
676
|
+
</react_native_1.Text>
|
|
677
|
+
<react_native_1.Text style={[previewStyles.modeChipText,ee===e.key&&previewStyles.modeChipTextActive]}>
|
|
678
|
+
{e.label}
|
|
679
|
+
</react_native_1.Text>
|
|
680
|
+
</react_native_1.TouchableOpacity>)}
|
|
681
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
682
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),Ye("none"),Ne(!1),Be({brightness:0,contrast:0,saturation:0,warmth:0,exposure:0,vignette:0}),(0,toast_1.showToast)(s("mediaGallery.resetAdjustments","Adjustments Reset"))}}style={previewStyles.modeChip}>
|
|
683
|
+
<NetworkIcons_1.ResetIcon size={12}color="rgba(255,255,255,0.7)"/>
|
|
684
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Reset</react_native_1.Text>
|
|
685
|
+
</react_native_1.TouchableOpacity>
|
|
686
|
+
</>:l==="crop"?<>
|
|
687
|
+
{["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"),Je(e);const t=Xe(e,te,oe);He(t)}}style={[previewStyles.modeChip,gt===e&&previewStyles.modeChipActive]}>
|
|
688
|
+
<react_native_1.Text style={[previewStyles.modeChipText,gt===e&&previewStyles.modeChipTextActive]}>
|
|
689
|
+
{e==="free"?"Free":e}
|
|
690
|
+
</react_native_1.Text>
|
|
691
|
+
</react_native_1.TouchableOpacity>)}
|
|
692
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
693
|
+
|
|
694
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),J(e=>(e+90)%360)}}style={previewStyles.modeChip}>
|
|
695
|
+
<NetworkIcons_1.RotateIcon size={13}color="rgba(255,255,255,0.8)"/>
|
|
696
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Rotate 90°</react_native_1.Text>
|
|
697
|
+
</react_native_1.TouchableOpacity>
|
|
698
|
+
|
|
699
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),qe(e=>!e)}}style={[previewStyles.modeChip,q&&previewStyles.modeChipActive]}>
|
|
700
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,q&&{color:AppColors_1.AppColors.white}]}>
|
|
701
|
+
⇄
|
|
702
|
+
</react_native_1.Text>
|
|
703
|
+
<react_native_1.Text style={[previewStyles.modeChipText,q&&previewStyles.modeChipTextActive]}>
|
|
704
|
+
Flip H
|
|
705
|
+
</react_native_1.Text>
|
|
706
|
+
</react_native_1.TouchableOpacity>
|
|
707
|
+
|
|
708
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(),Ze(e=>!e)}}style={[previewStyles.modeChip,Z&&previewStyles.modeChipActive]}>
|
|
709
|
+
<react_native_1.Text style={[previewStyles.modeChipIconText,Z&&{color:AppColors_1.AppColors.white}]}>
|
|
710
|
+
⇅
|
|
711
|
+
</react_native_1.Text>
|
|
712
|
+
<react_native_1.Text style={[previewStyles.modeChipText,Z&&previewStyles.modeChipTextActive]}>
|
|
713
|
+
Flip V
|
|
714
|
+
</react_native_1.Text>
|
|
715
|
+
</react_native_1.TouchableOpacity>
|
|
716
|
+
|
|
717
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Le(e=>!e)}}style={[previewStyles.modeChip,N&&previewStyles.modeChipActive]}>
|
|
718
|
+
<NetworkIcons_1.GridlinesIcon size={13}color={N?AppColors_1.AppColors.white:"rgba(255,255,255,0.8)"}/>
|
|
719
|
+
<react_native_1.Text style={[previewStyles.modeChipText,N&&previewStyles.modeChipTextActive]}>
|
|
720
|
+
Grid 3×3
|
|
721
|
+
</react_native_1.Text>
|
|
722
|
+
</react_native_1.TouchableOpacity>
|
|
723
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
724
|
+
<react_native_1.TouchableOpacity onPress={Ht}style={previewStyles.applyActionBtn}>
|
|
725
|
+
<react_native_1.Text style={previewStyles.applyActionText}>Apply</react_native_1.Text>
|
|
726
|
+
</react_native_1.TouchableOpacity>
|
|
727
|
+
<react_native_1.TouchableOpacity onPress={()=>f("none")}style={previewStyles.cancelActionBtn}>
|
|
728
|
+
<react_native_1.Text style={previewStyles.cancelActionText}>Cancel</react_native_1.Text>
|
|
729
|
+
</react_native_1.TouchableOpacity>
|
|
730
|
+
</>:l==="text"?<>
|
|
731
|
+
<react_native_1.TouchableOpacity onPress={()=>yt()}style={previewStyles.modeChipActive}>
|
|
732
|
+
<react_native_1.Text style={previewStyles.modeChipTextActive}>+ Custom Note</react_native_1.Text>
|
|
733
|
+
</react_native_1.TouchableOpacity>
|
|
734
|
+
|
|
735
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
{[{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"),P(),ue(t=>[...t,{id:`text_${Date.now()}_${Math.random()}`,text:e.label,x:dt?.x??.35,y:dt?.y??.35,color:"#FFFFFF",bgColor:e.color,fontSize:13}]),(0,toast_1.showToast)(s("mediaGallery.tagPlaced",`Placed tag: ${e.label}`))}}style={[previewStyles.modeChip,{borderColor:e.color,backgroundColor:`${e.color}26`}]}>
|
|
739
|
+
<react_native_1.Text style={[previewStyles.modeChipText,{color:e.color,fontWeight:"700"}]}>
|
|
740
|
+
{e.label}
|
|
741
|
+
</react_native_1.Text>
|
|
742
|
+
</react_native_1.TouchableOpacity>)}
|
|
743
|
+
|
|
744
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
745
|
+
|
|
746
|
+
{COLOR_PALETTE.map(e=><react_native_1.TouchableOpacity key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),wt(e)}}style={[previewStyles.colorDot,{backgroundColor:e},K===e&&previewStyles.colorDotActive]}/>)}
|
|
747
|
+
{Q.length>0&&<>
|
|
748
|
+
<react_native_1.View style={previewStyles.subDivider}/>
|
|
749
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),P(),ue([])}}style={[previewStyles.modeChip,{backgroundColor:"rgba(239, 68, 68, 0.2)"}]}>
|
|
750
|
+
<react_native_1.Text style={[previewStyles.modeChipText,{color:AppColors_1.AppColors.rose500}]}>
|
|
751
|
+
Clear All ({Q.length})
|
|
752
|
+
</react_native_1.Text>
|
|
753
|
+
</react_native_1.TouchableOpacity>
|
|
754
|
+
</>}
|
|
755
|
+
</>:<>
|
|
756
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("draw"),fe("brush")}}style={previewStyles.modeChip}>
|
|
757
|
+
<NetworkIcons_1.PenIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
758
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Markup</react_native_1.Text>
|
|
759
|
+
</react_native_1.TouchableOpacity>
|
|
760
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=Xe("free",te,oe);He(e),Je("free"),f("crop")}}style={previewStyles.modeChip}>
|
|
761
|
+
<NetworkIcons_1.CropIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
762
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Crop</react_native_1.Text>
|
|
763
|
+
</react_native_1.TouchableOpacity>
|
|
764
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("adjust")}}style={previewStyles.modeChip}>
|
|
765
|
+
<NetworkIcons_1.SunAdjustIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
766
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Adjust</react_native_1.Text>
|
|
767
|
+
</react_native_1.TouchableOpacity>
|
|
768
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),f("text"),(0,toast_1.showToast)(s("mediaGallery.tapToAddText","Tap anywhere on the image to add text"))}}style={previewStyles.modeChip}>
|
|
769
|
+
<NetworkIcons_1.TypeIcon size={14}color="rgba(255,255,255,0.7)"/>
|
|
770
|
+
<react_native_1.Text style={previewStyles.modeChipText}>Add Text</react_native_1.Text>
|
|
771
|
+
</react_native_1.TouchableOpacity>
|
|
772
|
+
</>}
|
|
773
|
+
</react_native_1.ScrollView>
|
|
774
|
+
</react_native_1.View>}
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
<react_native_1.View style={previewStyles.studioToolbar}>
|
|
778
|
+
{(k?ho:po).map(e=>{const t=l===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>{if((0,NativeInspector_1.triggerNativeHaptic)("light"),e.key==="crop"){const o=Xe("free",te,oe);He(o),Je("free"),f("crop")}else e.key==="text"?(f("text"),(0,toast_1.showToast)(s("mediaGallery.tapToAddText","Tap anywhere on the image to add text"))):f(e.key)}}style={[previewStyles.studioToolItem,t&&previewStyles.studioToolItemActive]}>
|
|
779
|
+
{e.icon(t)}
|
|
780
|
+
<react_native_1.Text style={[previewStyles.studioToolLabel,t&&previewStyles.studioToolLabelActive]}>
|
|
781
|
+
{e.label}
|
|
782
|
+
</react_native_1.Text>
|
|
783
|
+
{"hasBadge"in e&&e.hasBadge&&<react_native_1.View style={previewStyles.studioTabBadgeDot}/>}
|
|
784
|
+
</TouchableScale_1.default>})}
|
|
348
785
|
</react_native_1.View>
|
|
349
|
-
</react_native_1.
|
|
786
|
+
</react_native_1.View>
|
|
350
787
|
</react_native_1.View>
|
|
788
|
+
</react_native_1.View>
|
|
351
789
|
|
|
352
790
|
|
|
353
|
-
<react_native_1.Modal visible={
|
|
354
|
-
<react_native_1.View style={previewStyles.
|
|
791
|
+
<react_native_1.Modal visible={Ut}transparent={!0}animationType="fade"onRequestClose={()=>ot(!1)}>
|
|
792
|
+
<react_native_1.View style={previewStyles.textModalBackdrop}>
|
|
355
793
|
<react_native_1.View style={previewStyles.textModalCard}>
|
|
356
|
-
<react_native_1.Text style={previewStyles.textModalTitle}>
|
|
357
|
-
|
|
794
|
+
<react_native_1.Text style={previewStyles.textModalTitle}>
|
|
795
|
+
Add Text Note / Callout
|
|
796
|
+
</react_native_1.Text>
|
|
797
|
+
<react_native_1.TextInput style={previewStyles.textModalInput}placeholder="e.g. Defect: Button overlap"placeholderTextColor="rgba(255,255,255,0.4)"value={lt}onChangeText={ct}autoFocus={!0}multiline={!0}/>
|
|
358
798
|
<react_native_1.View style={previewStyles.textModalActions}>
|
|
359
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
799
|
+
<react_native_1.TouchableOpacity onPress={()=>ot(!1)}style={previewStyles.modalCancelBtn}>
|
|
360
800
|
<react_native_1.Text style={previewStyles.modalCancelText}>Cancel</react_native_1.Text>
|
|
361
801
|
</react_native_1.TouchableOpacity>
|
|
362
|
-
<react_native_1.TouchableOpacity onPress={
|
|
802
|
+
<react_native_1.TouchableOpacity onPress={no}style={previewStyles.modalConfirmBtn}>
|
|
363
803
|
<react_native_1.Text style={previewStyles.modalConfirmText}>Place Text</react_native_1.Text>
|
|
364
804
|
</react_native_1.TouchableOpacity>
|
|
365
805
|
</react_native_1.View>
|
|
@@ -368,5 +808,5 @@
|
|
|
368
808
|
</react_native_1.Modal>
|
|
369
809
|
|
|
370
810
|
|
|
371
|
-
<ConfirmationModal_1.ConfirmationModal visible={
|
|
372
|
-
</react_native_1.Modal>};exports.MediaPreviewModal=MediaPreviewModal;const previewStyles=react_native_1.StyleSheet.create({overlay:{flex:1,backgroundColor:AppColors_1.AppColors.slate900},header:{width:"100%",zIndex:10,borderBottomWidth:react_native_1.StyleSheet.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.25)"},headerInner:{width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingTop:react_native_1.Platform.OS==="ios"?52:react_native_1.StatusBar.currentHeight?react_native_1.StatusBar.currentHeight+8:18,paddingBottom:12,minHeight:react_native_1.Platform.OS==="ios"?94:64},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0,marginRight:6},headerTextCol:{flex:1,minWidth:0},headerRight:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},badge:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6,paddingVertical:3,borderRadius:5,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)"},badgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.4,color:AppColors_1.AppColors.white},title:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12.5,color:AppColors_1.AppColors.white,letterSpacing:-.1},subtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:"rgba(255, 255, 255, 0.7)",marginTop:1},headerActionBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(239, 68, 68, 0.35)",borderWidth:1,borderColor:"rgba(252, 165, 165, 0.55)",alignItems:"center",justifyContent:"center"},headerCloseBtn:{width:30,height:30,borderRadius:7,backgroundColor:"rgba(244, 63, 94, 0.28)",borderWidth:1,borderColor:"rgba(251, 113, 133, 0.48)",alignItems:"center",justifyContent:"center"},stageSafe:{flex:1,width:"100%"},stage:{flex:1,width:"100%",alignItems:"center",justifyContent:"center",padding:8},previewCard:{flex:1,width:"100%",borderRadius:14,overflow:"hidden",backgroundColor:"#090D1A",alignItems:"center",justifyContent:"center",position:"relative"},canvasContainer:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",position:"relative"},image:{width:"100%",height:"100%"},videoImageOverlay:{...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},centerPlayContainer:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayGlow:{position:"absolute",width:80,height:80,borderRadius:40,backgroundColor:"rgba(56, 189, 248, 0.22)"},centerPlayCircle:{width:62,height:62,borderRadius:31,backgroundColor:AppColors_1.AppColors.sky500,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:AppColors_1.AppColors.sky500,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayPill:{backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:12,paddingVertical:4,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},centerPlayText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.white,letterSpacing:.3},topLeftBadgeOverlay:{position:"absolute",top:12,left:12},bottomRightBadgeOverlay:{position:"absolute",bottom:12,right:12},metaPill:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},metaPillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.white,letterSpacing:.2},floatingZoomBar:{position:"absolute",right:12,top:"35%",backgroundColor:"rgba(15, 23, 42, 0.92)",borderRadius:20,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",paddingVertical:6,paddingHorizontal:4,alignItems:"center",gap:6,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:4},shadowOpacity:.45,shadowRadius:8,elevation:10},zoomBtn:{width:28,height:28,borderRadius:14,backgroundColor:"rgba(255, 255, 255, 0.12)",alignItems:"center",justifyContent:"center"},zoomLevelBadge:{paddingHorizontal:4,paddingVertical:2},zoomLevelText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.sky400,letterSpacing:.2},subToolBar:{width:"100%",backgroundColor:"rgba(15, 23, 42, 0.96)",borderRadius:12,paddingVertical:6,paddingHorizontal:8,marginTop:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)"},subToolScroll:{flexDirection:"row",alignItems:"center",gap:8},ratioChip:{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.14)"},ratioChipActive:{backgroundColor:AppColors_1.AppColors.indigo600,borderColor:AppColors_1.AppColors.indigo400},ratioChipText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:"rgba(255, 255, 255, 0.8)"},ratioChipTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},applyActionBtn:{backgroundColor:AppColors_1.AppColors.emerald600,paddingHorizontal:12,paddingVertical:5,borderRadius:8},applyActionText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white},cancelActionBtn:{backgroundColor:"rgba(255, 255, 255, 0.12)",paddingHorizontal:10,paddingVertical:5,borderRadius:8},cancelActionText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:"rgba(255, 255, 255, 0.8)"},colorDot:{width:22,height:22,borderRadius:11,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.3)"},colorDotActive:{borderColor:AppColors_1.AppColors.white,transform:[{scale:1.25}]},subDivider:{width:1,height:18,backgroundColor:"rgba(255, 255, 255, 0.15)",marginHorizontal:4},strokeWidthBtn:{width:24,height:24,borderRadius:12,backgroundColor:"rgba(255, 255, 255, 0.08)",alignItems:"center",justifyContent:"center"},strokeWidthBtnActive:{backgroundColor:"rgba(255, 255, 255, 0.25)"},strokeDot:{borderRadius:99},actionPillBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.10)"},actionPillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10,color:AppColors_1.AppColors.white},shapeOptionBtn:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:9,paddingVertical:5,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.08)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)"},shapeOptionText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.white},shapeItem:{position:"absolute",borderWidth:2.5,borderStyle:"solid"},shapeDeleteBadge:{position:"absolute",top:-8,right:-8,width:16,height:16,borderRadius:8,backgroundColor:AppColors_1.AppColors.rose500,alignItems:"center",justifyContent:"center"},blurItem:{position:"absolute",backgroundColor:"rgba(15, 23, 42, 0.95)",borderWidth:1.5,borderColor:"rgba(56, 189, 248, 0.7)",borderRadius:6,alignItems:"center",justifyContent:"center"},blurItemText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.sky300,letterSpacing:.6},textAnnotationPill:{position:"absolute",flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.35)",shadowColor: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"},cropSubToolBar:{width:"100%",backgroundColor:"rgba(15, 23, 42, 0.96)",borderRadius:12,paddingVertical:8,paddingHorizontal:10,marginTop:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.12)",gap:8},cropActionHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",paddingBottom:4,borderBottomWidth:react_native_1.StyleSheet.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.12)"},cropHeaderTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:"rgba(255, 255, 255, 0.65)"},cropActionButtons:{flexDirection:"row",alignItems:"center",gap:8},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:"dashed",borderColor:AppColors_1.AppColors.white,backgroundColor:"rgba(56, 189, 248, 0.08)",shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:4},cropGridH:{position:"absolute",left:0,right:0,height:1,borderTopWidth:1,borderStyle:"dashed",borderColor:"rgba(255, 255, 255, 0.45)"},cropGridV:{position:"absolute",top:0,bottom:0,width:1,borderLeftWidth:1,borderStyle:"dashed",borderColor:"rgba(255, 255, 255, 0.45)"},cropHandleTouchArea:{position:"absolute",width:38,height:38,alignItems:"center",justifyContent:"center",zIndex:10},handleAreaTL:{top:-19,left:-19},handleAreaTR:{top:-19,right:-19},handleAreaBL:{bottom:-19,left:-19},handleAreaBR:{bottom:-19,right:-19},cropCornerBracket:{position:"absolute",width:14,height:14,borderColor:AppColors_1.AppColors.white,backgroundColor:AppColors_1.AppColors.sky500,borderRadius:2,borderWidth:2,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:2},shadowOpacity:.6,shadowRadius:3,elevation:4},bracketTL:{top:-7,left:-7},bracketTR:{top:-7,right:-7},bracketBL:{bottom:-7,left:-7},bracketBR:{bottom:-7,right:-7},cropEdgeBarTop:{position:"absolute",top:-3,left:"35%",right:"35%",height:6,backgroundColor:AppColors_1.AppColors.white,borderRadius:3},cropEdgeBarBottom:{position:"absolute",bottom:-3,left:"35%",right:"35%",height:6,backgroundColor:AppColors_1.AppColors.white,borderRadius:3},cropEdgeBarLeft:{position:"absolute",left:-3,top:"35%",bottom:"35%",width:6,backgroundColor:AppColors_1.AppColors.white,borderRadius:3},cropEdgeBarRight:{position:"absolute",right:-3,top:"35%",bottom:"35%",width:6,backgroundColor:AppColors_1.AppColors.white,borderRadius:3},cropCenterPill:{position:"absolute",top:6,alignSelf:"center",backgroundColor:"rgba(14, 165, 233, 0.92)",paddingHorizontal:8,paddingVertical:2.5,borderRadius:6,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.25)"},cropCenterPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.white,letterSpacing:.4},bottomTesterDock:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",width:"100%",paddingVertical:10,paddingHorizontal:6,marginTop:6,backgroundColor:"rgba(15, 23, 42, 0.94)",borderRadius:14,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.14)",gap:4},dockToolBtn:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:6,paddingHorizontal:2,borderRadius:10,backgroundColor:"rgba(255, 255, 255, 0.06)",gap:3},dockToolBtnActive:{backgroundColor:AppColors_1.AppColors.indigo600,borderColor:AppColors_1.AppColors.indigo400,borderWidth:1},dockPrimaryBtn:{backgroundColor:AppColors_1.AppColors.indigo600},dockToolLabel:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:9.5,color:"rgba(255, 255, 255, 0.85)",letterSpacing:.1},modalBackdrop:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.70)",alignItems:"center",justifyContent:"center",padding:20},textModalCard:{width:"100%",maxWidth:360,backgroundColor:"#0F172A",borderRadius:16,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.18)",padding:16,gap:12},textModalTitle:{fontFamily: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}});
|
|
811
|
+
<ConfirmationModal_1.ConfirmationModal visible={xe}title={s("mediaGallery.deleteTitle","Delete Media?")}message={s("mediaGallery.deleteMessage",{filename:i.filename})}confirmText={s("mediaGallery.delete","Delete")}cancelText={s("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{_e(!1),v(i),y()}}onCancel={()=>_e(!1)}/>
|
|
812
|
+
</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"},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}});
|