Files
2026-07-28 01:06:53 +03:00

145 lines
7.3 KiB
TypeScript

/* Metro module 14876; source: modules/icymi/native/ICYMILoading.tsx; dependencies: [31, 27, 33, 14815, 697, 11956, 4017, 14854, 2] */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import UseChatPlaceholderAnimatedStyles from '../../chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx'; /* Metro dependency 11956 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
import * as ICYMISharedModule from './ICYMIShared.tsx'; /* Metro dependency 14854 */
function _fun112537(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:6, offset: 0x023d078c, size: 238 bytes, params: 8, frame: 18
const env0_0 = require;
const placeholderRowWidth_112538 = function(a0, a1, a2) {
var Math = global.Math;
var value = Math.sin(a0);
value = 100 * value;
Math = global.Math;
value -= Math.floor(value);
return value * (a2 - a1) + a1;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = value.Fragment;
const env0_8 = (CreateICYMIStylesModule).createICYMIStyles(_fun112541);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMILoading.tsx');
exports.ICYMILoading = ICYMILoading;
function ICYMILoadingItem() { // fn#112539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:867, offset: 0x023d08c0, size: 667 bytes, params: 1, frame: 39
const value2 = env0_8();
const value3 = (UseChatPlaceholderAnimatedStyles)({'visible': true,
'animated': true});
const {avatarTitle, title, subtitle} = ReactModule.useMemo(_fun112540, []);
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
const container = value2.container;
const avatarRow = value2.avatarRow;
const View2 = (ReanimatedRexport).View;
const view = <View2 style={[value2.backgroundColor, value2.avatar, value3]} />;
const View3 = (ReanimatedRexport).View;
const items3 = [value2.backgroundColor];
items3[1] = value2.avatarTitle;
items3[2] = value3;
const object4 = {};
const placeholderRowWidth_112538Binding = placeholderRowWidth_112538;
object4.width = '' + placeholderRowWidth_112538Binding(avatarTitle, 30, 60) + '%';
items3[3] = object4;
const items4 = [
<View style={avatarRow}>
{view}
<View3 style={items3} />
</View>,
];
const View4 = (ReanimatedRexport).View;
const items5 = [value2.backgroundColor];
items5[1] = value2.title;
items5[2] = value3;
const object5 = {};
object5.width = '' + placeholderRowWidth_112538Binding(title, 75, 100) + '%';
items5[3] = object5;
items4[1] = <View4 style={items5} />;
const View5 = (ReanimatedRexport).View;
const items6 = [value2.backgroundColor];
items6[1] = value2.subtitle;
items6[2] = value3;
const object6 = {};
object6.width = '' + placeholderRowWidth_112538Binding(subtitle, 75, 100) + '%';
items6[3] = object6;
items4[2] = <View5 style={items6} />;
const View6 = (ReanimatedRexport).View;
items4[3] = <View6 style={[value2.backgroundColor, value2.image, value3]} />;
const view2 = (
<View style={container}>
{items4}
</View>
);
const Separator = (ICYMISharedModule).Separator;
return (
<>
{view2}
<Separator />
</>
);
}
function _fun112541(a0) { // fn#112541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:190, offset: 0x023d0be1, size: 352 bytes, params: 2, frame: 18
const object = {};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.backgroundColor = {backgroundColor: BACKGROUND_MOD_SUBTLE};
object.container = {padding: a0.margin};
object.avatarRow = {'flexDirection': 'row', 'alignItems': 'center', marginBottom: a0.margin};
const object5 = {'width': 40, 'height': 40};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.marginRight = PX_12;
object.avatar = object5;
object.avatarTitle = {'height': 18, 'borderRadius': 10, 'flexShrink': 1};
const object6 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.height = PX_16;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.marginBottom = PX_12;
object6.borderRadius = 10;
object6.flexShrink = 1;
object.title = object6;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.subtitle = {height: PX_16, marginBottom: a0.margin, borderRadius: 10, flexShrink: 1};
const object8 = {'width': '100%', 'height': 240};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.image = object8;
object.separator = {};
return object;
}
function ICYMILoading() { // fn#112542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:1738, offset: 0x023d0d41, size: 67 bytes, params: 1, frame: 17
return (
<>
<ICYMILoadingItem />
<ICYMILoadingItem />
</>
);
}
}
function _fun112540() { // fn#112540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:954, offset: 0x023d0b5b, size: 134 bytes, params: 1, frame: 15
const object = {};
let Math = global.Math;
let floor = Math.floor;
const Math2 = global.Math;
object.avatarTitle = Reflect.apply(floor, Math, [10 * Math2.random()]);
Math = global.Math;
floor = Math.floor;
const Math3 = global.Math;
object.title = Reflect.apply(floor, Math, [10 * Math3.random()]);
Math = global.Math;
floor = Math.floor;
const Math4 = global.Math;
object.subtitle = Reflect.apply(floor, Math, [10 * Math4.random()]);
return object;
}
global.__d(_fun112537, 14876, [31, 27, 33, 14815, 697, 11956, 4017, 14854,
2]) /* metro module 14876, dependencies: [31, 27, 33, 14815, 697, 11956, 4017, 14854, 2] */;