127 lines
6.4 KiB
TypeScript
127 lines
6.4 KiB
TypeScript
/* Metro module 14876; source: modules/icymi/native/ICYMILoading.tsx; dependencies: [31, 27, 33, 14815, 697, 11956, 4017, 14854, 2] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
const env0_7 = value.Fragment;
|
|
const env0_8 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112541);
|
|
(require(2) /* metro dependency 2 */).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 = (importDefault(11956) /* metro dependency 11956: useChatPlaceholderAnimatedStyles */)({'visible': true,
|
|
'animated': true});
|
|
const {avatarTitle, title, subtitle} = env0_3.useMemo(_fun112540, []);
|
|
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
|
const container = value2.container;
|
|
const avatarRow = value2.avatarRow;
|
|
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
|
const view = <View2 style={[value2.backgroundColor, value2.avatar, value3]} />;
|
|
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
|
const items3 = [value2.backgroundColor];
|
|
items3[1] = value2.avatarTitle;
|
|
items3[2] = value3;
|
|
const object = {};
|
|
const placeholderRowWidth_112538Binding = placeholderRowWidth_112538;
|
|
object.width = '' + placeholderRowWidth_112538Binding(avatarTitle, 30, 60) + '%';
|
|
items3[3] = object;
|
|
const items4 = [<View style={avatarRow}>{view}<View3 style={items3} /></View>];
|
|
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
|
const items5 = [value2.backgroundColor];
|
|
items5[1] = value2.title;
|
|
items5[2] = value3;
|
|
const object2 = {};
|
|
object2.width = '' + placeholderRowWidth_112538Binding(title, 75, 100) + '%';
|
|
items5[3] = object2;
|
|
items4[1] = <View4 style={items5} />;
|
|
const View5 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
|
const items6 = [value2.backgroundColor];
|
|
items6[1] = value2.subtitle;
|
|
items6[2] = value3;
|
|
const object3 = {};
|
|
object3.width = '' + placeholderRowWidth_112538Binding(subtitle, 75, 100) + '%';
|
|
items6[3] = object3;
|
|
items4[2] = <View5 style={items6} />;
|
|
const View6 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
|
items4[3] = <View6 style={[value2.backgroundColor, value2.image, value3]} />;
|
|
const view2 = <View style={container}>{items4}</View>;
|
|
const Separator = (require(14854) /* metro dependency 14854: ICYMIShared */).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 object2 = {};
|
|
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
|
object2.backgroundColor = {backgroundColor: BACKGROUND_MOD_SUBTLE};
|
|
object2.container = {padding: a0.margin};
|
|
object2.avatarRow = {'flexDirection': 'row', 'alignItems': 'center', marginBottom: a0.margin};
|
|
const object3 = {'width': 40, 'height': 40};
|
|
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object3.marginRight = PX_12;
|
|
object2.avatar = object3;
|
|
object2.avatarTitle = {'height': 18, 'borderRadius': 10, 'flexShrink': 1};
|
|
const object4 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object4.height = PX_16;
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object4.marginBottom = PX_12;
|
|
object4.borderRadius = 10;
|
|
object4.flexShrink = 1;
|
|
object2.title = object4;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.subtitle = {height: PX_16, marginBottom: a0.margin, borderRadius: 10, flexShrink: 1};
|
|
const object7 = {'width': '100%', 'height': 240};
|
|
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
|
object2.image = object7;
|
|
object2.separator = {};
|
|
return object2;
|
|
}
|
|
|
|
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 object2 = {};
|
|
let Math = global.Math;
|
|
let floor = Math.floor;
|
|
const Math2 = global.Math;
|
|
object2.avatarTitle = Reflect.apply(floor, Math, [10 * Math2.random()]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
const Math3 = global.Math;
|
|
object2.title = Reflect.apply(floor, Math, [10 * Math3.random()]);
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
const Math4 = global.Math;
|
|
object2.subtitle = Reflect.apply(floor, Math, [10 * Math4.random()]);
|
|
return object2;
|
|
}
|
|
|