Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,121 @@
|
||||
/* Metro module 13582; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModalInner.tsx; dependencies: [27, 661, 33, 4501, 697, 3829, 9390, 1244, 9404, 11441, 8658, 5473, 4573, 9505, 6239, 6766, 1948, 4578, 2] */
|
||||
function _fun103231(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:6, offset: 0x0225d8bc, size: 534 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
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;
|
||||
object3 = {};
|
||||
const object5 = {flex: 1};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.padding = PX_24;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
object5.maxWidth = 480;
|
||||
object3.container = object5;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.illustration = {alignSelf: 'center', marginBottom: PX_8};
|
||||
const object7 = {marginTop: 'auto'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.paddingHorizontal = PX_8;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object7.marginBottom = PX_24;
|
||||
object3.closeButton = object7;
|
||||
object3.targetList = {padding: 0};
|
||||
const object9 = {'flexDirection': 'row', 'flexWrap': 'nowrap', 'alignItems': 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.paddingLeft = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.gap = PX_16;
|
||||
object3.targetItem = object9;
|
||||
object3.lastTargetItem = {borderBottomWidth: 0};
|
||||
const object10 = {'flex': 1, 'paddingVertical': null, 'borderBottomWidth': 1};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.paddingVertical = PX_12;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object10.borderBottomColor = BORDER_SUBTLE;
|
||||
object3.disclosureText = object10;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDisclosureModal/QuestDisclosureModalInner.tsx');
|
||||
exports.default = QuestDisclosureModalInner;
|
||||
}
|
||||
|
||||
function QuestDisclosureModalInner({isTargetedDisclosure, gamePublisher, gameTitle, isVideoQuest, onClose, cosponsorName}) { // fn#103232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:873, offset: 0x0225dad2, size: 1061 bytes, params: 2, frame: 31
|
||||
var r14;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const DropsOptedOut = (require(3829) /* metro dependency 3829: UserSettings */).DropsOptedOut;
|
||||
const value2 = DropsOptedOut.useSetting();
|
||||
let object2 = {};
|
||||
if (value2) {
|
||||
object2.icon = ((ServerIcon) => <ServerIcon size="xs" />)((require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon);
|
||||
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2bL0wT']);
|
||||
r14 = [object2];
|
||||
} else {
|
||||
object2.icon = ((GlobeEarthIcon) => <GlobeEarthIcon size="xs" />)((require(9404) /* metro dependency 9404: GlobeEarthIcon */).GlobeEarthIcon);
|
||||
object2.text = intl.string(t.xQSdPv);
|
||||
items2 = [object2];
|
||||
object2 = {};
|
||||
object2.icon = ((UserIcon) => <UserIcon size="xs" />)((require(11441) /* metro dependency 11441: UserIcon */).UserIcon);
|
||||
object2.text = intl.string(t.mYt7hQ);
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.icon = ((GameControllerIcon) => <GameControllerIcon size="xs" />)((require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon);
|
||||
object2.text = intl.string(t.XAsWxQ);
|
||||
items2[2] = object2;
|
||||
r14 = items2;
|
||||
}
|
||||
const WumpusCouchSpotIllustration = (require(5473) /* metro dependency 5473: native */).WumpusCouchSpotIllustration;
|
||||
const items3 = [<View style={styles.illustration}><WumpusCouchSpotIllustration /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const questCopyUtilsModule = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
const getDisclosureText = questCopyUtilsModule.getDisclosureText;
|
||||
items3[1] = <Text variant="text-md/normal" color="mobile-text-heading-primary">{Reflect.apply(getDisclosureText,
|
||||
questCopyUtilsModule, [{gamePublisher: gamePublisher, gameTitle: gameTitle,
|
||||
isTargetedDisclosure: isTargetedDisclosure, isContextualDisclosure: value2, cosponsorName: cosponsorName,
|
||||
isVideoQuest: isVideoQuest}])}</Text>;
|
||||
items3[2] = isTargetedDisclosure && ((Card) => <Card radius={16} style={styles.targetList}>{r14.map(_fun103233)}</Card>)((require(6239) /* metro dependency 6239: CardNative */).Card);
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const tzq9Wa = (require(1244) /* metro dependency 1244: indexNative */).t.tzq9Wa;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
|
||||
items3[3] = <TextWithIOSLinkWorkaround variant="text-md/medium" color="mobile-text-heading-primary">{Reflect.apply(format,
|
||||
intl, [tzq9Wa, {privacySettingsUrl: Reflect.apply(getArticleURL, defaultImport,
|
||||
[QUESTS_PRIVACY_CONTROLS])}])}</TextWithIOSLinkWorkaround>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[4] = <View style={styles.closeButton}><Button variant="primary" grow size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onClose} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103233({icon, text}, a1) { // fn#103233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:1819, offset: 0x0225def7, size: 193 bytes, params: 3, frame: 23
|
||||
const stylesBinding = styles;
|
||||
const targetItem = stylesBinding.targetItem;
|
||||
const items2 = [stylesBinding.disclosureText];
|
||||
items2[1] = a1 === env0_1.length - 1 && styles.lastTargetItem;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={targetItem} key={a1}>
|
||||
{icon}
|
||||
<View style={items2}>
|
||||
<Text variant="text-md/semibold">
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user