Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,74 @@
|
||||
/* Metro module 12244; source: modules/premium/fractional/native/BoostingCountDownPill.tsx; dependencies: [27, 33, 4501, 697, 4080, 12245, 1962, 1244, 4573, 2] */
|
||||
function _fun93682(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:6, offset: 0x020becfb, size: 426 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.TouchableOpacity;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'backgroundColor': null, 'flexDirection': 'row', 'gap': 12, 'padding': 12,
|
||||
'justifyContent': 'center', 'borderColor': null, 'borderWidth': 1, 'borderRadius': null, 'marginBottom': 12};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
object5.borderColor = STATUS_WARNING;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.fractionalPremiumBanner = object5;
|
||||
const object6 = {'flex': 1, 'paddingVertical': 12, 'paddingHorizontal': 27, 'backgroundColor': null,
|
||||
'borderRadius': null, 'justifyContent': 'center'};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object6.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object4.fpDurationPill = object6;
|
||||
object4.fpDurationText = {'textAlign': 'center', 'color': '#FFEAA0'};
|
||||
object4.fpUnavailable = {'flex': 1, 'justifyContent': 'center'};
|
||||
object4.fpUnavailableTextNoCountdown = {textAlign: 'center'};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/BoostingCountDownPill.tsx');
|
||||
exports.default = BoostingCountDownPill;
|
||||
}
|
||||
|
||||
function handlePress_93683() { // fn#93683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:755, offset: 0x020beea5, size: 136 bytes, params: 1, frame: 20
|
||||
const defaultImport = importDefault(dependencyMap[4]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[6]);
|
||||
value = value(dependencyMap[5], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
const intl = require(dependencyMap[7]).intl;
|
||||
object2.aboutText = intl.string(require(dependencyMap[7]).t['07lzz7']);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'NitroCreditEducationActionSheet', object2]);
|
||||
}
|
||||
|
||||
function BoostingCountDownPill({fpDurationText, isInReverseTrial, style}) { // fn#93684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:1008, offset: 0x020bef2d, size: 389 bytes, params: 2, frame: 27
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const styles = useStyles();
|
||||
const handlePress_936832 = isInReverseTrial ? undefined : handlePress_93683;
|
||||
const items2 = [styles.fractionalPremiumBanner, style];
|
||||
const r8 = !isInReverseTrial && <View style={styles.fpDurationPill}><Text variant="text-sm/bold" style={styles.fpDurationText}>{fpDurationText.toUpperCase()}</Text></View>;
|
||||
const fpUnavailableTextNoCountdown = isInReverseTrial ? styles.fpUnavailableTextNoCountdown : undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<TouchableOpacity activeOpacity={0.7} onPress={handlePress_936832}>
|
||||
<View style={items2}>
|
||||
{r8}
|
||||
<View style={styles.fpUnavailable}>
|
||||
<Text
|
||||
variant="text-md/normal"
|
||||
color="interactive-text-active"
|
||||
style={fpUnavailableTextNoCountdown}
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5nrJDO'])}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 12194; source: modules/premium/fractional/native/LargeCountDownPill.tsx; dependencies: [27, 33, 4501, 697, 3857, 1244, 4068, 4573, 2] */
|
||||
function _fun93409(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:6, offset: 0x020b298e, size: 302 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.TouchableOpacity;
|
||||
const env0_4 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center', 'borderRadius': null,
|
||||
'backgroundColor': 'rgba(255, 255, 255, 0.1)', 'alignSelf': 'center', 'paddingHorizontal': 16,
|
||||
'marginBottom': 10};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.largeCountdownPill = object4;
|
||||
const TEXT_STATUS_IDLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_IDLE;
|
||||
object3.largeCountdownPillText = {'paddingVertical': 8, 'color': null, 'fontSize': 14, 'lineHeight': 16,
|
||||
'marginRight': 8, color: TEXT_STATUS_IDLE};
|
||||
object3.iconStyle = {'width': 16, 'height': 16};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/LargeCountDownPill.tsx');
|
||||
exports.default = LargeCountDownPill;
|
||||
}
|
||||
|
||||
function LargeCountDownPill({countdownText}) { // fn#93410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:658, offset: 0x020b2abc, size: 237 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const object2 = {onPress: onPress_93411};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="text-xs/bold" style={styles.largeCountdownPillText}>{countdownText.toUpperCase()}</Text>;
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
const TEXT_STATUS_IDLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_IDLE;
|
||||
return (
|
||||
<TouchableOpacity {...object2}>
|
||||
<View style={styles.largeCountdownPill}>
|
||||
{text}
|
||||
<CircleInformationIcon style={styles.iconStyle} color={TEXT_STATUS_IDLE} />
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function LargeCountDownPillOnPress() { // fn#93411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:735, owner: LargeCountDownPill.onPress, offset: 0x020b2ba9, size: 148 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const object2 = {key: 'LARGE_COUNTDOWN_PILL_TOAST'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Mv4E/M']);
|
||||
object2.icon = icon_93412;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
object2.iconColor = STATUS_WARNING;
|
||||
Reflect.apply(open, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function onPressIcon_93412() { // fn#93412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:841, owner: LargeCountDownPill.onPress.icon, offset: 0x020b2c3d, size: 93 bytes, params: 1, frame: 16
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
return <CircleInformationIcon style={styles.iconStyle} color={STATUS_WARNING} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 12245; source: modules/premium/fractional/native/NitroCreditEducationActionSheet.tsx; dependencies: [27, 661, 33, 4501, 697, 6275, 7684, 4573, 6766, 1244, 1948, 2] */
|
||||
function _fun93685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12431:6, offset: 0x020bf0b2, size: 348 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'flexDirection': 'row', 'backgroundColor': null, 'justifyContent': 'center', 'borderRadius': null,
|
||||
'marginBottom': 12};
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: {'marginTop': 32, 'marginHorizontal': 30},
|
||||
aboutContainer: object, warningIcon: {margin: 16}, aboutTextContainer: {'justifyContent': 'center', 'flex': 1,
|
||||
'marginRight': 30}, helpdeskText: {'textAlign': 'center', 'marginBottom': 24}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/NitroCreditEducationActionSheet.tsx');
|
||||
exports.default = NitroCreditEducationActionSheet;
|
||||
}
|
||||
|
||||
function NitroCreditEducationActionSheet({aboutText}) { // fn#93686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12431:651, offset: 0x020bf20e, size: 394 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
const circleErrorIcon = <CircleErrorIcon size="lg" style={styles.warningIcon} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view = <View style={styles.aboutContainer}>{circleErrorIcon}<View style={styles.aboutTextContainer}><Text variant="text-sm/medium" color="always-white">{aboutText}</Text></View></View>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const bg3jBj = (require(1244) /* metro dependency 1244: indexNative */).t.bg3jBj;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const FRACTIONAL_PREMIUM_ABOUT = HelpdeskArticles.FRACTIONAL_PREMIUM_ABOUT;
|
||||
return (
|
||||
<BottomSheet>
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<TextWithIOSLinkWorkaround
|
||||
variant="text-sm/medium"
|
||||
color="always-white"
|
||||
style={styles.helpdeskText}
|
||||
>
|
||||
{Reflect.apply(format, intl, [bg3jBj, {helpCenterLink: Reflect.apply(getArticleURL, defaultImport,
|
||||
[FRACTIONAL_PREMIUM_ABOUT])}])}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user