Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,172 @@
|
||||
/* Metro module 10122; source: modules/collectibles/native/OrbBadgeCollectedModal.tsx; dependencies: [31, 27, 4502, 33, 4501, 697, 5282, 5080, 10069, 10123, 566, 5475, 10142, 9543, 10143, 6618, 10063, 4573, 1244, 4578, 7613, 10066, 5280, 2] */
|
||||
function _fun79002(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:6, offset: 0x01e40cd1, size: 522 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_4 = value.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.root = {flex: 1};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
|
||||
object2.background = object4;
|
||||
object2.orbBadge = {'width': 172, 'height': 172, 'alignSelf': 'center'};
|
||||
object2.main = {flex: 1};
|
||||
const object6 = {'paddingTop': '50%', 'padding': null, 'flex': 1, 'justifyContent': 'space-between'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.padding = PX_16;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object6.gap = PX_32;
|
||||
object2.body = object6;
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.bottomContainer = {'alignSelf': 'flex-end', 'alignItems': 'stretch', 'gap': null, 'width': '100%',
|
||||
gap: PX_32};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.textContainer = {alignItems: 'center', gap: PX_8};
|
||||
object2.text = {textAlign: 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.buttonsContainer = {alignItems: 'stretch', gap: PX_16};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {ROOT: 'ROOT'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/OrbBadgeCollectedModal.tsx');
|
||||
exports.default = OrbBadgeCollectedModal;
|
||||
}
|
||||
|
||||
function OrbBadgeCollectedRootScreen({modalKey, onPressViewBadge}) { // fn#79003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:1185, offset: 0x01e40edb, size: 1049 bytes, params: 2, frame: 41
|
||||
var r5;
|
||||
var VideoComponent;
|
||||
var object;
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value2 = env0_3.useCallback(function() {
|
||||
onPressViewBadge();
|
||||
}, [onPressViewBadge]);
|
||||
const value3 = env0_3.useCallback(_fun79006, [modalKey]);
|
||||
if (useReducedMotion) {
|
||||
r5 = ((Component) => <Component source={{uri: importDefault(10142) /* metro dependency 10142: quest_reward_mobile_bg_staticPng */}} style={styles.background} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
} else {
|
||||
VideoComponent = (require(9543) /* metro dependency 9543: Video */).VideoComponent;
|
||||
object = {};
|
||||
object.uri = importDefault(10143) /* metro dependency 10143: quest_reward_mobile_bgMp4 */;
|
||||
r5 = <VideoComponent source={object} poster={importDefault(10142) /* metro dependency 10142: quest_reward_mobile_bg_staticPng */} style={styles.background} resizeMode="contain" muted pauseWhileAppInactive paused={false} />;
|
||||
}
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const value6 = ((Component) => <Component source={{uri: importDefault(10063) /* metro dependency 10063: orb_profile_badge_icon2xPng */}} style={styles.orbBadge} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let text = styles.text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const Bal8Cv = (require(1244) /* metro dependency 1244: indexNative */).t.Bal8Cv;
|
||||
const text2 = <Text variant="heading-xl/bold" color="always-white" style={text}>{Reflect.apply(string, intl,
|
||||
[Bal8Cv])}</Text>;
|
||||
text = styles.text;
|
||||
string = intl.string;
|
||||
const B25MUf = (require(1244) /* metro dependency 1244: indexNative */).t.B25MUf;
|
||||
const view = <View style={styles.textContainer}>{text2}<Text variant="text-sm/medium" color="always-white" style={text}>{Reflect.apply(string,
|
||||
intl, [B25MUf])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<View style={styles.root}>
|
||||
{r5}
|
||||
<SafeAreaPaddingView
|
||||
style={styles.main}
|
||||
top
|
||||
bottom
|
||||
left
|
||||
right
|
||||
>
|
||||
<View style={styles.body}>
|
||||
{value6}
|
||||
<View style={styles.bottomContainer}>
|
||||
{view}
|
||||
<View style={styles.buttonsContainer}>
|
||||
<Button
|
||||
onPress={value2}
|
||||
variant="primary"
|
||||
size="lg"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uYLGci)}
|
||||
/>
|
||||
<Button
|
||||
onPress={value3}
|
||||
variant="secondary"
|
||||
size="lg"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6gF4aS'])}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function screens(a0, a1, a2) { // fn#79007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:736, offset: 0x01e41321, size: 98 bytes, params: 4, frame: 5
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const ROOT = env0_9.ROOT;
|
||||
return {[ROOT]: {'render': null, 'ignoreKeyboard': true, 'fullscreen': true, 'headerLeft': null,
|
||||
'headerRight': null, 'title': '', render: render_79008, headerLeft: headerLeft_79009,
|
||||
headerRight: headerRight_79012}};
|
||||
}
|
||||
|
||||
function OrbBadgeCollectedModal({modalKey, onPressViewBadge, orbBalancePriorToPurchase}) { // fn#79013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:2521, offset: 0x01e4149a, size: 125 bytes, params: 2, frame: 19
|
||||
env0_3.useEffect(_fun79014, []);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const navigatorProps = {screens: screens(modalKey, onPressViewBadge, orbBalancePriorToPurchase)};
|
||||
const ROOT = env0_9.ROOT;
|
||||
navigatorProps.initialRouteName = ROOT;
|
||||
return <Navigator {...navigatorProps} />;
|
||||
}
|
||||
|
||||
function _fun79006() { // fn#79006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:1375, offset: 0x01e412f4, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
|
||||
value.popWithKey(modalKey);
|
||||
}
|
||||
|
||||
function screensRender() { // fn#79008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:764, owner: screens.render, offset: 0x01e41383, size: 44 bytes, params: 1, frame: 14
|
||||
return <OrbBadgeCollectedRootScreen modalKey={env0_0} onPressViewBadge={require} />;
|
||||
}
|
||||
|
||||
function screensHeaderLeft() { // fn#79009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:874, owner: screens.headerLeft, offset: 0x01e413af, size: 25 bytes, params: 1, frame: 11
|
||||
return HeaderLeft(env0_0);
|
||||
}
|
||||
|
||||
function screensHeaderRight() { // fn#79012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:1013, owner: screens.headerRight, offset: 0x01e41440, size: 90 bytes, params: 1, frame: 16
|
||||
const hooksModule = require(10069) /* metro dependency 10069: hooks */;
|
||||
const useFetchVirtualCurrencyBalance = hooksModule.useFetchVirtualCurrencyBalance;
|
||||
const balance = Reflect.apply(useFetchVirtualCurrencyBalance, hooksModule, []).balance;
|
||||
const BalanceWidgetPill = (require(10123) /* metro dependency 10123: native */).BalanceWidgetPill;
|
||||
return <BalanceWidgetPill initialRenderedBalance={importDefault} balance={balance} />;
|
||||
}
|
||||
|
||||
function _fun79014() { // fn#79014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:2634, offset: 0x01e41517, size: 75 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(7613) /* metro dependency 7613: UserProfileActionCreators */;
|
||||
value.pinUserProfileBadgesOnClient([(require(10066) /* metro dependency 10066: CollectiblesUtils */).createOrbProfileBadge()],
|
||||
600);
|
||||
}
|
||||
|
||||
function HeaderLeft(a0) { // fn#79010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:878, owner: screens.headerLeft.HeaderLeft, offset: 0x01e413c8, size: 75 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return ((Component) => <Component tintColor="white" />)((require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun79011));
|
||||
}
|
||||
|
||||
function _fun79011() { // fn#79011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10308:937, offset: 0x01e41413, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user