69 lines
4.2 KiB
TypeScript
69 lines
4.2 KiB
TypeScript
/* Metro module 14660; source: modules/premium/powerups/native/GuildPowerupsCard.tsx; dependencies: [31, 27, 33, 4501, 697, 674, 6239, 2] */
|
|
import Module00674 from '../../../../by-id/module-00674.js'; /* Metro dependency 674 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as CardNativeModule from '../../../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
|
|
|
|
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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
const object2 = {};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
|
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
|
object2.borderColor = BACKGROUND_MOD_MUTED;
|
|
object2.borderWidth = 1;
|
|
object2.borderStyle = 'solid';
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object2, SHADOW_LOW, undefined);
|
|
object.cardNormal = object2;
|
|
const object3 = {};
|
|
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
|
object3.borderColor = Module00674(GREEN_360).alpha(0.35).hex();
|
|
object.cardActive = object3;
|
|
const object4 = {};
|
|
let YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
|
object4.borderColor = Module00674(YELLOW_300).alpha(0.35).hex();
|
|
object.cardExpiring = object4;
|
|
const object5 = {};
|
|
YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
|
object5.borderColor = Module00674(YELLOW_300).alpha(0.35).hex();
|
|
object.cardRemoving = object5;
|
|
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
(FileImportTrackerModule).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 object = {'children': 0, 'containerStyle': 0, 'status': 0};
|
|
silentSetPrototypeOf(object, null, undefined);
|
|
const value = copyDataProperties({}, a0, object, 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 = (CardNativeModule).Card;
|
|
return (
|
|
<View style={items2}>
|
|
<Card border="none" {...value}>
|
|
{children}
|
|
</Card>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110719, 14660, [31, 27, 33, 4501, 697, 674, 6239,
|
|
2]) /* metro module 14660, dependencies: [31, 27, 33, 4501, 697, 674, 6239, 2] */;
|