Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,101 @@
|
||||
/* Metro module 14622; source: modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx; dependencies: [27, 33, 4501, 697, 4573, 14623, 14624, 1244, 2256, 14627, 2] */
|
||||
function _fun110548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:6, offset: 0x0237ccc3, size: 369 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.gap = PX_12;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.margin = PX_16;
|
||||
object4.container = object5;
|
||||
const object6 = {};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.padding = PX_12;
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object6.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object6.borderWidth = 1;
|
||||
object6.borderStyle = 'solid';
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.borderColor = BORDER_SUBTLE;
|
||||
object4.staffContainer = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx');
|
||||
exports.default = GuildPowerupsNotificationContainer;
|
||||
}
|
||||
|
||||
function Tier3OverrideNotice({text}) { // fn#110549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:430, offset: 0x0237ce34, size: 104 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.staffContainer}>
|
||||
<Text variant="text-sm/medium">
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsNotificationContainer({guildId}) { // fn#110550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:694, offset: 0x0237ce9c, size: 338 bytes, params: 2, frame: 26
|
||||
var r6;
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(14623) /* metro dependency 14623: useGuildPowerupTier3OverrideConfig */)(guildId);
|
||||
const value3 = (importDefault(14624) /* metro dependency 14624: useGuildPowerupExpiringNotificationsConfig */)(guildId);
|
||||
let shouldShow = value2.shouldShow;
|
||||
if (shouldShow) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<Text variant="eyebrow" color="text-subtle">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])}</Text>];
|
||||
shouldShow = value2.shouldShow;
|
||||
r6 = shouldShow && <Tier3OverrideNotice text={value2.text} />;
|
||||
items2[1] = r6;
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */;
|
||||
value = ((Component) => <Component guildId={guildId} powerupNames={value3.expiringPowerupNames} warnings={value3.warnings} />)(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = shouldShow;
|
||||
}
|
||||
items2[2] = r6;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<Text variant="eyebrow" color="text-subtle">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])}</Text>];
|
||||
shouldShow = value2.shouldShow;
|
||||
r6 = shouldShow && <Tier3OverrideNotice text={value2.text} />;
|
||||
items2[1] = r6;
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */;
|
||||
value = ((Component) => <Component guildId={guildId} powerupNames={value3.expiringPowerupNames} warnings={value3.warnings} />)(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = shouldShow;
|
||||
}
|
||||
items2[2] = r6;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user