Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,82 @@
/* Metro module 7598; source: modules/collectibles/native/components/CutoutableAvatarDecoration.tsx; dependencies: [31, 27, 4502, 33, 632, 1423, 477, 7599, 7601, 5475, 2] */
function _fun60921(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7776:6, offset: 0x01715025, size: 177 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/components/CutoutableAvatarDecoration.tsx');
exports.default = CutoutableAvatarDecoration;
}
function CutoutableAvatarDecoration({size, avatarDecoration, decorationStyle, animate, cutout}) { // fn#60922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7776:259, offset: 0x017150d6, size: 536 bytes, params: 2, frame: 25
var r1;
var r2;
var r0;
var moduleValue2;
const env0_3 = animate;
var value;
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStores = useStateFromStoresModule.useStateFromStores;
let object = [AccessibilityStore];
const useReducedMotion = Reflect.apply(useStateFromStores, useStateFromStoresModule, [object, function() {
return AccessibilityStore.useReducedMotion;
}]);
const {shouldAnimate, avatarDecorationUrl, style, sizeStyle, source} = env0_3.useMemo(_fun60924, [animate, size,
avatarDecoration, decorationStyle, useReducedMotion]);
if (avatarDecoration == null) {
r0 = null;
} else if (avatarDecorationUrl == null) {
r0 = null;
} else {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isAndroid()) {
if (shouldAnimate) {
if (cutout != null) {
value = importDefault(7599) /* metro dependency 7599: ClipView */;
value = ((Component) => <Component style={style} cutouts={cutout.nativeCutouts}>{((Component) => <Component url={avatarDecorationUrl} style={sizeStyle} />)(importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */)}</Component>)(value);
r2 = value;
} else {
object = {style: style, pointerEvents: 'none'};
value = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
value = <View {...object}>{((Component) => <Component url={avatarDecorationUrl} style={sizeStyle} />)(value)}</View>;
r2 = value;
}
r1 = r2;
} else if (cutout != null) {
value = importDefault(7599) /* metro dependency 7599: ClipView */;
value = ((Component) => <Component style={style} cutouts={cutout.nativeCutouts}>{((Component) => <Component source={source} style={sizeStyle} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</Component>)(value);
r1 = value;
} else {
value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component source={source} style={style} />)(value);
r1 = value;
}
} else if (cutout != null) {
value = importDefault(7599) /* metro dependency 7599: ClipView */;
value = ((Component) => <Component style={style} cutouts={cutout.nativeCutouts}>{((Component) => <Component source={source} style={sizeStyle} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</Component>)(value);
r1 = value;
} else {
value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component source={source} style={style} />)(value);
r1 = value;
}
r0 = r1;
}
return r0;
}
function _fun60924() { // fn#60924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7776:437, offset: 0x017152ee, size: 175 bytes, params: 1, frame: 15
const r1 = animate && !useReducedMotion && avatarDecoration != null;
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
const getAvatarDecorationURL = avatarUtilsModule.getAvatarDecorationURL;
const sizeBinding = size;
const value5 = Reflect.apply(getAvatarDecorationURL, avatarUtilsModule, [{avatarDecoration: avatarDecoration,
canAnimate: r1, size: sizeBinding}]);
return {avatarDecorationUrl: value5, sizeStyle: {width: sizeBinding, height: sizeBinding},
style: [{width: sizeBinding, height: sizeBinding}, decorationStyle], shouldAnimate: r1,
source: {uri: value5 ?? ''}};
}