Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,93 @@
|
||||
/* Metro module 11958; source: modules/chat/native/placeholder/ChatPlaceholderRow.tsx; dependencies: [31, 27, 33, 1305, 4501, 697, 11957, 9671, 2] */
|
||||
function _fun91753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12144:6, offset: 0x02070c52, size: 519 bytes, params: 8, frame: 26
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value2.jsx;
|
||||
const env0_4 = value2.jsxs;
|
||||
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const NORMAL = AvatarSizes.NORMAL;
|
||||
const property = AVATAR_SIZE_MAP[NORMAL];
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object6 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.paddingLeft = PX_12;
|
||||
const CHAT_PLACEHOLDER_ROW_MARGIN_TOP = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_MARGIN_TOP;
|
||||
object6.paddingTop = CHAT_PLACEHOLDER_ROW_MARGIN_TOP;
|
||||
object6.flexDirection = 'row';
|
||||
object3.row = object6;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.rowInner = {marginHorizontal: PX_12, flex: 1};
|
||||
const object7 = {};
|
||||
let BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object7.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object7.height = property;
|
||||
object7.width = property;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.placeholderAvatar = object7;
|
||||
const object8 = {};
|
||||
BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object8.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
const CHAT_PLACEHOLDER_ROW_LINE_HEIGHT = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_LINE_HEIGHT;
|
||||
object8.height = CHAT_PLACEHOLDER_ROW_LINE_HEIGHT;
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.placeholderText = object8;
|
||||
const CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP = (require(11957) /* metro dependency 11957: getChatPlaceholderRowHeight */).CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP;
|
||||
object3.placeholderBody = {marginTop: CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP, width: '100%'};
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
value = value.memo(ChatPlaceholderRow);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/ChatPlaceholderRow.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function ChatPlaceholderRow({lines}) { // fn#91754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12144:762, offset: 0x02070e59, size: 400 bytes, params: 2, frame: 30
|
||||
var r1;
|
||||
var defaultImport;
|
||||
var value7;
|
||||
var push;
|
||||
var jsxRuntimeEnv0_3Binding;
|
||||
var placeholderText;
|
||||
var placeholderBody;
|
||||
var value8;
|
||||
const styles = useStyles();
|
||||
let Math = global.Math;
|
||||
let floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value3 = Reflect.apply(floor, Math, [10 * Math2.random()]);
|
||||
Math = global.Math;
|
||||
floor = Math.floor;
|
||||
const Math3 = global.Math;
|
||||
const value5 = Reflect.apply(floor, Math, [50 * Math3.random()]) + 10;
|
||||
const items2 = [];
|
||||
if (0 < lines) {
|
||||
for (r1 = 0; true; r1 = value8) {
|
||||
defaultImport = importDefault(9671) /* metro dependency 9671: getChatPlaceholderRowWidth */;
|
||||
value7 = defaultImport(value3 + r1);
|
||||
push = items2.push;
|
||||
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
|
||||
placeholderText = styles.placeholderText;
|
||||
placeholderBody = styles.placeholderBody;
|
||||
Reflect.apply(push, items2, [<View style={[placeholderText, placeholderBody,
|
||||
{width: '' + value7 + '%'}]} key={r1} />]);
|
||||
value8 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
||||
if (!(value8 < lines)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
const items3 = [<View style={styles.placeholderAvatar} />];
|
||||
items3[1] = <View style={styles.rowInner}><View style={[styles.placeholderText,
|
||||
{width: '' + value5 + '%'}]} />{items2}</View>;
|
||||
return (
|
||||
<View style={styles.row}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user