89 lines
3.7 KiB
TypeScript
89 lines
3.7 KiB
TypeScript
/* Metro module 4580; source: design/void/Icon/native/Icon.tsx; dependencies: [31, 27, 33, 4501, 697, 2] */
|
|
function _fun38856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:6, offset: 0x010cdadc, size: 364 bytes, params: 8, frame: 22
|
|
var object2;
|
|
const closure = getIconSize;
|
|
const closure2 = getIconStyle;
|
|
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 */).Image;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
object2 = {EXTRA_SMALL_10: 'extraSmall10', EXTRA_SMALL: 'extraSmall', SMALL: 'small', SMALL_20: 'small20',
|
|
MEDIUM: 'medium', LARGE: 'large', CUSTOM: 'custom', REFRESH_SMALL_16: 'refreshSmall16', SMALL_14: 'small14'};
|
|
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
|
var object2 = {};
|
|
object2.tintColor = importDefault(dependencyMap[4]).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
return {iconColor: object2};
|
|
});
|
|
value = value.memo(value.forwardRef(_fun38860));
|
|
value.displayName = 'Icon';
|
|
value.Sizes = object2;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Icon/native/Icon.tsx');
|
|
exports.default = value;
|
|
exports.IconSizes = object2;
|
|
exports.getIconSize = closure;
|
|
exports.getIconStyle = closure2;
|
|
}
|
|
|
|
function getIconSize(a0) { // fn#38857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:369, offset: 0x010cdc48, size: 186 bytes, params: 2, frame: 3
|
|
const EXTRA_SMALL_10 = env0_4.EXTRA_SMALL_10;
|
|
if (EXTRA_SMALL_10 === a0) {
|
|
return 10;
|
|
}
|
|
const EXTRA_SMALL = env0_4.EXTRA_SMALL;
|
|
if (EXTRA_SMALL === a0) {
|
|
return 12;
|
|
}
|
|
const SMALL = env0_4.SMALL;
|
|
if (SMALL === a0) {
|
|
return 18;
|
|
}
|
|
const SMALL_14 = env0_4.SMALL_14;
|
|
if (SMALL_14 === a0) {
|
|
return 14;
|
|
}
|
|
const SMALL_20 = env0_4.SMALL_20;
|
|
if (SMALL_20 === a0) {
|
|
return 20;
|
|
}
|
|
const MEDIUM = env0_4.MEDIUM;
|
|
if (MEDIUM === a0) {
|
|
return 24;
|
|
}
|
|
const LARGE = env0_4.LARGE;
|
|
if (LARGE === a0) {
|
|
return 32;
|
|
}
|
|
const REFRESH_SMALL_16 = env0_4.REFRESH_SMALL_16;
|
|
if (REFRESH_SMALL_16 === a0) {
|
|
return 16;
|
|
}
|
|
const CUSTOM = env0_4.CUSTOM;
|
|
if (CUSTOM === a0) {
|
|
}
|
|
}
|
|
|
|
function getIconStyle(a0) { // fn#38858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:742, offset: 0x010cdd02, size: 29 bytes, params: 2, frame: 11
|
|
const iconSize = getIconSize(a0);
|
|
return {width: iconSize, height: iconSize};
|
|
}
|
|
|
|
function _fun38860({source, color, disableColor, size = env0_4.MEDIUM, style, resizeMode, accessible, accessibilityLabel}, a1) { // fn#38860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:840, offset: 0x010cdd53, size: 198 bytes, params: 3, frame: 21
|
|
disableColor = !(disableColor === undefined) && disableColor;
|
|
resizeMode = resizeMode === undefined ? 'cover' : resizeMode;
|
|
const styles = useStyles(size);
|
|
return (
|
|
<Image
|
|
resizeMode={resizeMode}
|
|
source={source}
|
|
style={[getIconStyle(size),
|
|
disableColor ? undefined : color != null ? {tintColor: color} : styles.iconColor, style]}
|
|
accessible={accessible}
|
|
accessibilityLabel={accessibilityLabel}
|
|
fadeDuration={0}
|
|
ref={a1}
|
|
/>
|
|
);
|
|
}
|
|
|