66 lines
3.6 KiB
TypeScript
66 lines
3.6 KiB
TypeScript
/* Metro module 14660; source: modules/premium/powerups/native/GuildPowerupsCard.tsx; dependencies: [31, 27, 33, 4501, 697, 674, 6239, 2] */
|
|
function _fun110719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14857:6, offset: 0x02383e17, size: 500 bytes, params: 8, frame: 25
|
|
var object6;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
object6 = {};
|
|
const object7 = {};
|
|
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
|
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
|
object7.borderColor = BACKGROUND_MOD_MUTED;
|
|
object7.borderWidth = 1;
|
|
object7.borderStyle = 'solid';
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object7, SHADOW_LOW, undefined);
|
|
object6.cardNormal = object7;
|
|
const object8 = {};
|
|
const value2 = importDefault(674) /* metro dependency 674 */;
|
|
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
|
object8.borderColor = value2(GREEN_360).alpha(0.35).hex();
|
|
object6.cardActive = object8;
|
|
const object9 = {};
|
|
const value5 = value2;
|
|
let YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
|
object9.borderColor = value5(YELLOW_300).alpha(0.35).hex();
|
|
object6.cardExpiring = object9;
|
|
const object10 = {};
|
|
const value8 = value2;
|
|
YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
|
object10.borderColor = value8(YELLOW_300).alpha(0.35).hex();
|
|
object6.cardRemoving = object10;
|
|
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object6]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsCard.tsx');
|
|
exports.default = GuildPowerupsCard;
|
|
}
|
|
|
|
function GuildPowerupsCard(a0) { // fn#110720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14857:675, offset: 0x0238400b, size: 284 bytes, params: 2, frame: 24
|
|
const children = a0.children;
|
|
const containerStyle = a0.containerStyle;
|
|
const status = a0.status;
|
|
const object2 = {'children': 0, 'containerStyle': 0, 'status': 0};
|
|
silentSetPrototypeOf(object2, null, undefined);
|
|
const value = copyDataProperties({}, a0, object2, undefined);
|
|
const value3 = undefined;
|
|
const styles = useStyles();
|
|
const items2 = [styles.cardNormal];
|
|
items2[1] = (status == null ? value3 : status.type) === 'active' && styles.cardActive;
|
|
items2[2] = (status == null ? value3 : status.type) === 'expiring' && styles.cardExpiring;
|
|
items2[3] = (status == null ? value3 : status.type) === 'removing' && styles.cardRemoving;
|
|
items2[4] = containerStyle;
|
|
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
|
return (
|
|
<View style={items2}>
|
|
<Card border="none" {...value}>
|
|
{children}
|
|
</Card>
|
|
</View>
|
|
);
|
|
}
|
|
|