This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,65 @@
// Metro module 6207 (f6208).
import { forwardRef, useRef, useCallback, useImperativeHandle, useMemo } from "react";
import Module6208, { Commands } from "../../../_bundle/Module6208";
const r20 = forwardRef(function({ onLoad, ...props }, a1) {
const ref = useRef(null);
const callback = useCallback((a0) => {
if (onLoad != null) {
onLoad(a0.nativeEvent.url);
}
}, [onLoad]);
useImperativeHandle(a1, () => ({
play: () => {
if (ref.current != null) {
Commands.play(ref.current);
}
},
pause: () => {
if (ref.current != null) {
Commands.pause(ref.current);
}
},
stop: () => {
if (ref.current != null) {
Commands.seek(ref.current, 0);
Commands.pause(ref.current);
}
},
seek: (a0) => {
if (ref.current != null) {
Commands.seek(ref.current, a0);
}
}
}));
return <Module6208 ref={ref} onLoad={callback} {...props} />;
});
export function useAPNGPlayerControls(a0) {
let c15577_0 = a0;
const ref2 = useRef(false);
return useMemo(() => ({
play: () => {
if (!(c15577_0.current == null || ref2.current)) {
c15577_0.current.play();
ref2.current = true;
}
},
pause: () => {
if (c15577_0.current != null && ref2.current) {
c15577_0.current.pause();
ref2.current = false;
}
},
stop: () => {
if (c15577_0.current != null && ref2.current) {
c15577_0.current.stop();
ref2.current = false;
}
},
seek: (a0) => {
if (c15577_0.current != null) {
c15577_0.current.seek(a0);
}
}
}), [a0]);
}
export { r20 as APNGPlayer };
+7
View File
@@ -0,0 +1,7 @@
// Metro module 11258 (f11259).
import Module8531, { Path } from "../../../_bundle/Module8531";
export default function BrokenImage(props) {
return <Module8531 width={24} height={24} fill="hsl(217, 7.6%, 33.5%)" {...props}>
<Path d="M21 5v6.59l-3-3-4 4-4-4-4 4-3-3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Zm-3 6.42 3 3V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6.58l3 3 4-4 4 4 4-4Z" />
</Module8531>;
};
@@ -0,0 +1,4 @@
// Metro module 9669 (f9670).
export const IMAGE_CAROUSEL_TILE_HEIGHT = 60;
export const IMAGE_CAROUSEL_EXPERIMENT_TILE_MARGIN = 6;
export const IMAGE_CAROUSEL_TILE_CLOSE_BUTTON_PADDING = 8;
+91
View File
@@ -0,0 +1,91 @@
// Metro module 4743 (f4744).
import ThemeStore from "../../user_settings/ThemeStore";
import { ThemeTypes } from "../../../_bundle/Module505";
import { isIOS } from "../../../utils/PlatformUtils";
import { isActionPickSupported } from "./ImagePickerUtils";
import * as _Module4745 from "../../../_bundle/Module4745";
import Module712 from "../../../_bundle/Module712";
import Module4747 from "../../../_bundle/Module4747";
import { intl, t } from "../../../intl/index.native";
const r18 = {
launchImageLibrary: function launchImageLibrary(a0, a1) {
const mediaType = a0.mediaType === "any" ? isIOS() ? "mixed" : a0.mediaType : a0.mediaType;
let selections = a0.selections;
if (selections == null) {
selections = [];
}
const useNewIOSPicker = !a0.disableNewIOSPicker;
_Module4745.launchImageLibrary({
...a0,
mediaType,
presentationStyle: isIOS() ? "pageSheet" : void 0,
selection: selections,
useNewIOSPicker,
forceGetContent: !isActionPickSupported()
}, a1);
},
launchImageLibraryAsync: function launchImageLibraryAsync(c14419_0) {
return new Promise((c25288_0) => {
const mediaType = c14419_0.mediaType === "any" ? isIOS() ? "mixed" : c14419_0.mediaType : c14419_0.mediaType;
let selections = c14419_0.selections;
if (selections == null) {
selections = [];
}
const useNewIOSPicker = !c14419_0.disableNewIOSPicker;
_Module4745.launchImageLibrary({
...c14419_0,
mediaType,
presentationStyle: isIOS() ? "pageSheet" : void 0,
selection: selections,
useNewIOSPicker,
forceGetContent: !isActionPickSupported()
}, (a0) => {
c25288_0(a0);
});
});
},
launchCamera: function launchCamera(a0, a1) {
_Module4745.launchCamera(a0, a1);
},
launchCameraAsync: function launchCameraAsync(c14420_0) {
return new Promise((c25289_0) => {
_Module4745.launchCamera(c14420_0, (a0) => {
c25289_0(a0);
});
});
},
launchCropper: function launchCropper({ uri, width, height, includeBase64, mimeType, freeStyleCropEnabled }) {
const cropperControlsBarColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.BACKGROUND_BASE_LOW);
const cropperControlsColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.BACKGROUND_SURFACE_HIGH);
const cropperActiveWidgetColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.MOBILE_TEXT_HEADING_PRIMARY);
const cropperInactiveWidgetColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.TEXT_MUTED);
const cropperChooseColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.TEXT_BRAND);
const cropperCancelColor = Module712.internal.resolveSemanticColor(ThemeStore.theme, Module712.colors.TEXT_DEFAULT);
return Module4747.openCropper({
mediaType: "photo",
path: uri,
width,
height,
includeBase64,
mimeType,
freeStyleCropEnabled,
cropperStatusBarLight: ThemeStore.theme === ThemeTypes.LIGHT,
cropperNavigationBarLight: ThemeStore.theme === ThemeTypes.LIGHT,
cropperActiveWidgetColor,
cropperInactiveWidgetColor,
cropperControlsColor,
cropperControlsBarColor,
cropperChooseColor,
cropperChooseText: intl.string(t["1Qm822"]),
cropperCancelColor,
cropperCancelText: intl.string(t["ETE/oC"]),
cropperToolbarColor: cropperControlsBarColor,
cropperToolbarWidgetColor: cropperActiveWidgetColor,
cropperToolbarTitle: intl.string(t.b0y3DL),
cropperRotateByAngleAccessibilityLabel: intl.string(t.Izf9u1),
cropperResetRotationAccessibilityLabel: intl.string(t.iz4w1M),
cropperClampButtonAccessibilityLabel: intl.string(t.QHvDTL)
});
}
};
export default r18;
@@ -0,0 +1,8 @@
// Metro module 4744 (f4745).
import { isMetaQuest } from "../../device/MetaQuestUtils.android";
export function isActionPickSupported() {
return !isMetaQuest();
}
export function isImageCaptureIntentSupported() {
return !isMetaQuest();
}