Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,69 @@
|
||||
/* Metro module 6242; source: design/components/TableRow/native/TableRowIcon.native.tsx; dependencies: [29, 31, 27, 33, 4501, 697, 4580, 2] */
|
||||
function _fun49340(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6420:6, offset: 0x011f6835, size: 679 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['color'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
let TABLE_ROW_ICON_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_ICON_SIZE;
|
||||
object4.width = TABLE_ROW_ICON_SIZE;
|
||||
TABLE_ROW_ICON_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_ICON_SIZE;
|
||||
object4.height = TABLE_ROW_ICON_SIZE;
|
||||
object4.justifyContent = 'center';
|
||||
object4.alignItems = 'center';
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.container = object4;
|
||||
const TABLEROW_ICON_COLOR_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TABLEROW_ICON_COLOR_DEFAULT;
|
||||
object3.default = {color: TABLEROW_ICON_COLOR_DEFAULT};
|
||||
const TEXT_STATUS_ONLINE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_ONLINE;
|
||||
object3.statusOnline = {color: TEXT_STATUS_ONLINE};
|
||||
const TEXT_STATUS_IDLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_IDLE;
|
||||
object3.statusIdle = {color: TEXT_STATUS_IDLE};
|
||||
const TEXT_STATUS_DND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_DND;
|
||||
object3.statusDND = {color: TEXT_STATUS_DND};
|
||||
const TEXT_STATUS_OFFLINE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_OFFLINE;
|
||||
object3.statusOffline = {color: TEXT_STATUS_OFFLINE};
|
||||
const object5 = {};
|
||||
const PLATFORM_XBOX = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_XBOX;
|
||||
object5.backgroundColor = PLATFORM_XBOX;
|
||||
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object5.color = WHITE;
|
||||
object3.xbox = object5;
|
||||
const object6 = {};
|
||||
const PLATFORM_PLAYSTATION = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PLAYSTATION;
|
||||
object6.backgroundColor = PLATFORM_PLAYSTATION;
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object6.color = WHITE;
|
||||
object3.playstation = object6;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object3.danger = {color: TEXT_FEEDBACK_CRITICAL};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object3.secondary = {color: INTERACTIVE_TEXT_DEFAULT};
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object3.translucent = {color: WHITE};
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/TableRow/native/TableRowIcon.native.tsx');
|
||||
exports.TableRowIcon = TableRowIcon;
|
||||
}
|
||||
|
||||
function TableRowIcon({source, IconComponent, variant}) { // fn#49341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6420:1093, offset: 0x011f6adc, size: 477 bytes, params: 2, frame: 24
|
||||
variant = variant === undefined ? 'default' : variant;
|
||||
const styles = useStyles();
|
||||
const r5 = variant === 'default' ? styles.default : variant === 'text-status-online' ? styles.statusOnline : variant === 'text-status-idle' ? styles.statusIdle : variant === 'text-status-dnd' ? styles.statusDND : variant === 'text-status-offline' ? styles.statusOffline : variant === 'xbox' ? styles.xbox : variant === 'playstation' ? styles.playstation : variant === 'danger' ? styles.danger : variant === 'secondary' ? styles.secondary : variant !== 'translucent' ? undefined : styles.translucent;
|
||||
const color = r5.color;
|
||||
const value4 = env0_4(r5, env0_3);
|
||||
const r12 = variant === 'default' ? (require(4580) /* metro dependency 4580: Icon */).IconSizes.MEDIUM : (require(4580) /* metro dependency 4580: Icon */).IconSizes.REFRESH_SMALL_16;
|
||||
const r10 = variant === 'default' || variant === 'danger' || (variant === 'secondary' || variant === 'translucent') ? 'md' : 'sm';
|
||||
return source != null ? <View style={[styles.container,
|
||||
value4]}>{IconComponent != null ? <IconComponent size={r10} color={color} /> : ((Component) => <Component color={color} source={source} size={r12} />)(importDefault(4580) /* metro dependency 4580: Icon */)}</View> : IconComponent == null ? null : <View style={[styles.container,
|
||||
value4]}>{IconComponent != null ? <IconComponent size={r10} color={color} /> : ((Component) => <Component color={color} source={source} size={r12} />)(importDefault(4580) /* metro dependency 4580: Icon */)}</View>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user