Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,45 @@
|
||||
/* Metro module 12183; source: modules/premium/referral_program/native/ProgressWheel.tsx; dependencies: [27, 33, 4501, 3860, 697, 12175, 5475, 12184, 7744, 12185, 2] */
|
||||
function _fun93363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12369:6, offset: 0x020b1013, size: 265 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const Math = global.Math;
|
||||
const PI = Math.PI;
|
||||
const env0_6 = 2 * PI * 77;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({progressCircleContainer: {'width': 160,
|
||||
'height': 160, 'alignItems': 'center', 'justifyContent': 'center', 'marginTop': 24},
|
||||
progressCircleImage: {'position': 'absolute', 'width': 93, 'height': 93, 'borderRadius': 46.5},
|
||||
glowImage: {'position': 'absolute', 'width': 180, 'height': 180}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/referral_program/native/ProgressWheel.tsx');
|
||||
exports.default = ProgressWheel;
|
||||
}
|
||||
|
||||
function ProgressWheel({nReferralsSent}) { // fn#93364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12369:519, offset: 0x020b111c, size: 500 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_MOD_STRONG]);
|
||||
const moduleValue2 = useTokenModule;
|
||||
useToken = moduleValue2.useToken;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
const value3 = Reflect.apply(useToken, moduleValue2, [BACKGROUND_SURFACE_HIGH]);
|
||||
const MAX_REFERRALS_SENT = (require(12175) /* metro dependency 12175: useReferralProgramBannerDetails */).MAX_REFERRALS_SENT;
|
||||
const r6 = nReferralsSent === MAX_REFERRALS_SENT && ((Component) => <Component source={importDefault(12184) /* metro dependency 12184 */} style={styles.glowImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const defaultImport2 = importDefault(7744) /* metro dependency 7744 */;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
const circle = <Circle cx={80} cy={80} r={77} stroke={value2} strokeWidth={6} fill={value3} />;
|
||||
const binding = env0_6;
|
||||
return (
|
||||
<View style={styles.progressCircleContainer}>
|
||||
{r6}
|
||||
{((Component) => <Component width={160} height={160}>{circle}<Circle cx={80} cy={80} r={77} stroke="#53ac66" strokeWidth={6} fill="transparent" strokeDasharray={binding} strokeDashoffset={binding * (1 - 33.3 * nReferralsSent / 100)} strokeLinecap="round" rotation={-90} origin="80, 80" /></Component>)(defaultImport2)}
|
||||
{((Component) => <Component source={{uri: importDefault(12185) /* metro dependency 12185: referralTrialPng */}} style={styles.progressCircleImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,238 @@
|
||||
/* Metro module 12174; source: modules/premium/referral_program/native/ReferralProgramPerkCard.tsx; dependencies: [31, 27, 7065, 661, 33, 4501, 697, 1305, 4573, 12175, 1244, 1948, 566, 6771, 6789, 7066, 683, 4080, 12176, 1962, 12183, 6766, 4578, 2] */
|
||||
function _fun93282(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:6, offset: 0x020adde8, size: 677 bytes, params: 8, frame: 23
|
||||
var object5;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const referralTrialStore = importDefault(7065) /* metro dependency 7065: ReferralTrialStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = value.AnalyticEvents;
|
||||
const env0_7 = value.HelpdeskArticles;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object5 = {};
|
||||
const object6 = {width: 320};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object6.alignItems = 'center';
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object6, SHADOW_LOW, undefined);
|
||||
object5.container = object6;
|
||||
object5.progressIndicatorContainer = {'flexDirection': 'row', 'alignItems': 'center', 'alignSelf': 'flex-start',
|
||||
'gap': 8, 'marginTop': 16, 'marginLeft': 24};
|
||||
const object8 = {'width': 24, 'height': 24, 'borderRadius': null, 'backgroundColor': null,
|
||||
'justifyContent': 'center', 'alignItems': 'center'};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object8.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object5.availableReferralSlot = object8;
|
||||
const object9 = {borderWidth: 2};
|
||||
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object9.borderColor = BACKGROUND_SURFACE_HIGH;
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object5.referredFriendAvatar = object9;
|
||||
object5.contentContainer = {'alignItems': 'flex-start', 'paddingHorizontal': 24, 'gap': 8, 'marginTop': 12};
|
||||
object5.heading = {textAlign: 'left'};
|
||||
object5.bodyText = {textAlign: 'left'};
|
||||
const object10 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object10.paddingHorizontal = PX_16;
|
||||
object10.width = '100%';
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object10.marginTop = PX_24;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object10.marginBottom = PX_16;
|
||||
object5.buttonContainer = object10;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object5]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/referral_program/native/ReferralProgramPerkCard.tsx');
|
||||
exports.ReferralProgramPerkCard = ReferralProgramPerkCard;
|
||||
}
|
||||
|
||||
function ReferredFriendAvatar({user}) { // fn#93283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:1090, offset: 0x020ae08d, size: 138 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const avatarProps = {source: user.getAvatarSource(undefined, false, 24)};
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const XSMALL = AvatarSizes.XSMALL;
|
||||
avatarProps.size = XSMALL;
|
||||
return (
|
||||
<View style={styles.referredFriendAvatar}>
|
||||
<Avatar {...avatarProps} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AvailableReferralSlot({slotIndex}) { // fn#93284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:1283, offset: 0x020ae117, size: 107 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.availableReferralSlot}>
|
||||
<Text variant="text-xs/medium" color="text-strong">
|
||||
{slotIndex}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ProgressIndicator({referralSentUsers}) { // fn#93285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:1466, offset: 0x020ae182, size: 218 bytes, params: 2, frame: 24
|
||||
var r7;
|
||||
var push;
|
||||
var jsxRuntimeEnv0_8Binding;
|
||||
var id;
|
||||
var value3;
|
||||
const styles = useStyles();
|
||||
const items2 = [];
|
||||
const MAX_REFERRALS_SENT = (require(12175) /* metro dependency 12175: useReferralProgramBannerDetails */).MAX_REFERRALS_SENT;
|
||||
if (0 < MAX_REFERRALS_SENT) {
|
||||
r7 = 0;
|
||||
while (true) {
|
||||
if (referralSentUsers[r7] != null) {
|
||||
push = items2.push;
|
||||
jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
id = referralSentUsers[r7].id;
|
||||
Reflect.apply(push, items2, [<ReferredFriendAvatar user={referralSentUsers[r7]} key={id} />]);
|
||||
} else {
|
||||
push = items2.push;
|
||||
jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
Reflect.apply(push, items2, [<AvailableReferralSlot slotIndex={r7 + 1} key={r7} />]);
|
||||
}
|
||||
value3 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
||||
if (value3 < MAX_REFERRALS_SENT) {
|
||||
r7 = value3;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (
|
||||
<View style={styles.progressIndicatorContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function getBodyText_93286(a0, a1, a2) { // fn#93286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:1746, offset: 0x020ae25c, size: 428 bytes, params: 4, frame: 22
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
if (a0) {
|
||||
if (a1 === (require(12175) /* metro dependency 12175: useReferralProgramBannerDetails */).MAX_REFERRALS_SENT) {
|
||||
format = intl.format;
|
||||
if (a2) {
|
||||
property = t['1aEjsH'];
|
||||
defaultImport4 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r2 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport4.getArticleURL(HelpdeskArticles.REFERRAL_PROGRAM)}]);
|
||||
} else {
|
||||
property = t['+u3AOO'];
|
||||
defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r2 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport3.getArticleURL(HelpdeskArticles.REFERRAL_PROGRAM)}]);
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
format = intl.format;
|
||||
property = t['omMr+V'];
|
||||
defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r1 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport2.getArticleURL(HelpdeskArticles.REFERRAL_PROGRAM)}]);
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
format = intl.format;
|
||||
property = t['zWhX/Q'];
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r0 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport.getArticleURL(HelpdeskArticles.REFERRAL_PROGRAM)}]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ReferralProgramPerkCard() { // fn#93287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:2364, offset: 0x020ae408, size: 781 bytes, params: 1, frame: 34
|
||||
var r23;
|
||||
var value3;
|
||||
const styles = useStyles();
|
||||
const useReferralProgramBannerDetailsModule = require(12175) /* metro dependency 12175: useReferralProgramBannerDetails */;
|
||||
const useReferralProgramBannerDetails = useReferralProgramBannerDetailsModule.useReferralProgramBannerDetails;
|
||||
const referralSentUsers = Reflect.apply(useReferralProgramBannerDetails, useReferralProgramBannerDetailsModule,
|
||||
[]).referralSentUsers;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let items2 = [ReferralTrialStore];
|
||||
const recipientStatus = Reflect.apply(useStateFromStores, fluxModule, [items2, function() {
|
||||
return ReferralTrialStore.getRecipientStatus();
|
||||
}]);
|
||||
const hasEligibleFriends = fluxModule.useStateFromStores([ReferralTrialStore], function() {
|
||||
return ReferralTrialStore.getHasEligibleFriends();
|
||||
});
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const PREMIUM_MARKETING_REFERALL_PROGRAM_PROGRESS_BAR = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PREMIUM_MARKETING_REFERALL_PROGRAM_PROGRESS_BAR;
|
||||
const analyticsLocations = defaultImport(PREMIUM_MARKETING_REFERALL_PROGRAM_PROGRESS_BAR).analyticsLocations;
|
||||
const size = recipientStatus.size;
|
||||
const MAX_REFERRALS_SENT = useReferralProgramBannerDetailsModule.MAX_REFERRALS_SENT;
|
||||
const value2 = size === MAX_REFERRALS_SENT;
|
||||
if (value2) {
|
||||
value3 = recipientStatus.values();
|
||||
items2 = [];
|
||||
arraySpread(items2, value3, 0, value2);
|
||||
r23 = items2.every(function(a0) {
|
||||
var REDEEMED = require(dependencyMap[15]).ReferralOfferStatus.REDEEMED;
|
||||
return a0 === REDEEMED;
|
||||
});
|
||||
} else {
|
||||
r23 = value2;
|
||||
}
|
||||
const value5 = recipientStatus.size === MAX_REFERRALS_SENT;
|
||||
const value6 = env0_3.useCallback(_fun93291, [analyticsLocations]);
|
||||
const items3 = [((Component) => <Component nReferralsSent={recipientStatus.size} />)(importDefault(12183) /* metro dependency 12183: ProgressWheel */)];
|
||||
items3[1] = <ProgressIndicator referralSentUsers={referralSentUsers} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const USo4s7 = (require(1244) /* metro dependency 1244: indexNative */).t.USo4s7;
|
||||
const text = <Text variant="heading-lg/semibold" color="text-strong" style={styles.heading}>{Reflect.apply(string,
|
||||
intl, [USo4s7])}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
items3[2] = <View style={styles.contentContainer}>{text}<TextWithIOSLinkWorkaround variant="text-md/medium" color="text-subtle" style={styles.bodyText}>{getBodyText_93286(hasEligibleFriends !== false,
|
||||
referralSentUsers.length, r23)}</TextWithIOSLinkWorkaround></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const r13 = hasEligibleFriends === false || value5;
|
||||
string = intl.string;
|
||||
const Lm2nFc = (require(1244) /* metro dependency 1244: indexNative */).t.Lm2nFc;
|
||||
items3[3] = <View style={styles.buttonContainer}><Button variant="primary" size="sm" disabled={r13} text={Reflect.apply(string,
|
||||
intl, [Lm2nFc])} onPress={value6} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93291() { // fn#93291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12360:2856, offset: 0x020ae76b, size: 126 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[16]);
|
||||
const track = defaultImport.track;
|
||||
const REFERRAL_PROGRAM_SHARE_MODAL_CTA_CLICKED = AnalyticEvents.REFERRAL_PROGRAM_SHARE_MODAL_CTA_CLICKED;
|
||||
Reflect.apply(track, defaultImport, [REFERRAL_PROGRAM_SHARE_MODAL_CTA_CLICKED,
|
||||
{location_stack: analyticsLocations}]);
|
||||
const defaultImport2 = importDefault(dependencyMap[17]);
|
||||
const openLazy = defaultImport2.openLazy;
|
||||
value = require(dependencyMap[19]);
|
||||
value = value(dependencyMap[18], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport2, [value, 'referral-program-share-action-sheet']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,981 @@
|
||||
/* Metro module 12176; source: modules/premium/referral_program/native/ReferralProgramShareActionSheet.tsx; dependencies: [5, 57, 31, 27, 1878, 7065, 661, 33, 4501, 697, 566, 12177, 44, 1360, 7694, 12178, 1244, 3869, 12179, 6771, 6789, 683, 7066, 4080, 12180, 1962, 3856, 6758, 4573, 5475, 12181, 12182, 7695, 5461, 4578, 6275, 9100, 7697, 2] */
|
||||
function _fun93301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:6, offset: 0x020aea03, size: 629 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const referralTrialStore = importDefault(7065) /* metro dependency 7065: ReferralTrialStore */;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.paddingBottom = PX_24;
|
||||
object3.searchBarContainer = object4;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.searchBarRowContainer = {paddingTop: PX_8};
|
||||
const PX_64 = (importDefault(697) /* metro dependency 697: native */).space.PX_64;
|
||||
object3.header = {height: PX_64};
|
||||
const object6 = {textAlign: 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingHorizontal = PX_16;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.paddingBottom = PX_8;
|
||||
object3.subtitle = object6;
|
||||
object3.centeredContainer = {alignItems: 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.errorImage = {'height': 200, 'width': 180, marginVertical: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.emptyImage = {'height': 200, 'width': 240, marginTop: PX_16};
|
||||
const object7 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.paddingHorizontal = PX_16;
|
||||
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
|
||||
object7.paddingBottom = PX_48;
|
||||
object3.footer = object7;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object3]);
|
||||
const mapToUser = function(a0) {
|
||||
var items = [a0];
|
||||
items[1] = UserStore.getUser(a0);
|
||||
return items;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/referral_program/native/ReferralProgramShareActionSheet.tsx');
|
||||
exports.default = ReferralProgramShareActionSheet;
|
||||
}
|
||||
|
||||
function ReferralProgramShareActionSheet() { // fn#93303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:813, offset: 0x020aec9b, size: 2183 bytes, params: 1, frame: 42
|
||||
var view;
|
||||
var items2;
|
||||
var items3;
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const binding = env0_5;
|
||||
const value3 = null;
|
||||
const value4 = binding.useRef(value3);
|
||||
const referralsRemaining = (require(566) /* metro dependency 566: flux */).useStateFromStores([ReferralTrialStore],
|
||||
function() {
|
||||
return ReferralTrialStore.getReferralsRemaining();
|
||||
});
|
||||
let useState = binding.useState;
|
||||
const value5 = Reflect.apply(useState, binding, ['']);
|
||||
const binding2 = env0_4;
|
||||
const value6 = binding2(value5, 2);
|
||||
const property = value6[0];
|
||||
const property2 = value6[1];
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, [[]]), 2);
|
||||
const property3 = value7[0];
|
||||
const env0_3 = value7[1];
|
||||
const value8 = (importDefault(12177) /* metro dependency 12177: useDebounce */)(property, 400);
|
||||
useState = binding.useState;
|
||||
const value9 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property4 = value9[0];
|
||||
var env0_4 = value9[1];
|
||||
(importDefault(44) /* metro dependency 44 */)(value3 != referralsRemaining,
|
||||
'Referrals remaining should not be null');
|
||||
const value10 = binding.useMemo(_fun93305, [property3]);
|
||||
var env0_5 = value10;
|
||||
const value11 = binding.useMemo(_fun93306, [value10]);
|
||||
binding.useLayoutEffect(_fun93307, [property]);
|
||||
const {eligibleUsers, fetchUsers, isFetching, hasError,
|
||||
resendUsers} = (require(12178) /* metro dependency 12178: useReferralProgramEligibleUsers */).useReferralProgramEligibleUsers({searchQuery: value8,
|
||||
selectedUsers: value10, limit: 15});
|
||||
const value13 = binding.useMemo(_fun93308, [property3, resendUsers]);
|
||||
const value14 = binding.useMemo(_fun93310, [isFetching, hasError, eligibleUsers]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const DXgoi2 = t.DXgoi2;
|
||||
const value15 = Reflect.apply(string, intl, [DXgoi2]);
|
||||
const value16 = binding.useCallback(_fun93311, []);
|
||||
const value17 = binding.useCallback(_fun93313, [value16, value11]);
|
||||
const value18 = binding.useMemo(function() {
|
||||
return [eligibleUsers.length];
|
||||
}, [eligibleUsers]);
|
||||
const value19 = binding.useCallback(function() {
|
||||
return {type: 'section', props: {hideTitle: true}};
|
||||
}, []);
|
||||
const value20 = binding.useCallback(_fun93316, [eligibleUsers, value16, property3, resendUsers, referralsRemaining,
|
||||
value13]);
|
||||
const defaultImport3 = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const PREMIUM_MARKETING_REFERALL_PROGRAM_SHARE_MODAL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PREMIUM_MARKETING_REFERALL_PROGRAM_SHARE_MODAL;
|
||||
const env0_15 = binding.useCallback(_fun93317(),
|
||||
[defaultImport3(PREMIUM_MARKETING_REFERALL_PROGRAM_SHARE_MODAL).analyticsLocations]);
|
||||
const value22 = binding.useMemo(_fun93322, [referralsRemaining]);
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const bottomSheetTitleHeader = <BottomSheetTitleHeader title={value22} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let subtitle = styles.subtitle;
|
||||
if (hasError) {
|
||||
var viewBindingProps = {style: styles.centeredContainer};
|
||||
items3 = [((Component) => <Component source={{uri: importDefault(12181) /* metro dependency 12181: referral_program_load_issuePng */}} resizeMode="contain" style={styles.errorImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
subtitle = styles.subtitle;
|
||||
string = intl.string;
|
||||
items3[1] = <Text variant="heading-xl/bold" style={subtitle}>{Reflect.apply(string, intl, [t.a9HOKg])}</Text>;
|
||||
subtitle = styles.subtitle;
|
||||
string = intl.string;
|
||||
items3[2] = <Text variant="text-md/medium" color="text-default" style={subtitle}>{Reflect.apply(string, intl,
|
||||
[t.JjjeZb])}</Text>;
|
||||
view = <View {...viewBindingProps}>{items3}</View>;
|
||||
} else if (eligibleUsers.length === 0 && value8.length > 0) {
|
||||
var viewBindingProps = {style: styles.centeredContainer};
|
||||
items2 = [((Component) => <Component source={{uri: importDefault(12182) /* metro dependency 12182: referral_program_sad_cactusPng */}} resizeMode="contain" style={styles.emptyImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
subtitle = styles.subtitle;
|
||||
string = intl.string;
|
||||
items2[1] = <Text variant="heading-xl/bold" style={subtitle}>{Reflect.apply(string, intl,
|
||||
[t['PFp+aJ']])}</Text>;
|
||||
subtitle = styles.subtitle;
|
||||
string = intl.string;
|
||||
items2[2] = <Text variant="text-md/medium" color="text-default" style={subtitle}>{Reflect.apply(string, intl,
|
||||
[t.eBIGB4])}</Text>;
|
||||
view = <View {...viewBindingProps}>{items2}</View>;
|
||||
} else {
|
||||
view = <View style={styles.header}>{bottomSheetTitleHeader}<Text variant="text-xs/medium" color="text-default" lineClamp={2} style={subtitle}>{value15}</Text></View>;
|
||||
}
|
||||
const {renderHeader,
|
||||
headerSize} = (require(7695) /* metro dependency 7695: SearchableUserListActions */).useUserListActionsProps({actions: [],
|
||||
style: property.trim().length > 0 ? value2 : styles.searchBarRowContainer});
|
||||
const value33 = env0_5.useCallback(_fun93323, [fetchUsers]);
|
||||
const ActivityIndicator = (require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator;
|
||||
const activityIndicator = <ActivityIndicator />;
|
||||
const items4 = [styles.footer];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const ItpQxk = (require(1244) /* metro dependency 1244: indexNative */).t.ItpQxk;
|
||||
const view2 = <View style={items4}><Button size="lg" text={Reflect.apply(string, intl,
|
||||
[ItpQxk])} onPress={onPress_93324} loading={property4} disabled={property4 || property3.length === 0} /></View>;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const TagListInputNative = importDefault(9100) /* metro dependency 9100: TagListInputNative */;
|
||||
string = intl.string;
|
||||
const Kd5RaI = (require(1244) /* metro dependency 1244: indexNative */).t.Kd5RaI;
|
||||
const view3 = <View style={styles.searchBarContainer}><TagListInputNative onChangeText={property2} onRemove={value17} tags={value11} placeholder={Reflect.apply(string,
|
||||
intl, [Kd5RaI])} /></View>;
|
||||
const r6 = value14 ? activityIndicator : value3;
|
||||
const UsersFastList = (require(7697) /* metro dependency 7697: UsersFastList */).UsersFastList;
|
||||
return (
|
||||
<BottomSheet
|
||||
scrollable
|
||||
startExpanded
|
||||
header={view}
|
||||
footer={view2}
|
||||
>
|
||||
{view3}
|
||||
{r6}
|
||||
<UsersFastList
|
||||
ref={value4}
|
||||
inActionSheet
|
||||
sections={value18}
|
||||
getItemProps={value20}
|
||||
getSectionProps={value19}
|
||||
renderListHeader={renderHeader}
|
||||
listHeaderSize={headerSize}
|
||||
insetEnd={80}
|
||||
onScroll={value33}
|
||||
/>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93305() { // fn#93305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1164, offset: 0x020af535, size: 72 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var binding;
|
||||
var map;
|
||||
const Map = global.Map;
|
||||
var value;
|
||||
if (env0_2 == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
binding = env0_2;
|
||||
map = binding.map;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(map, binding, [mapToUser]);
|
||||
r0 = value;
|
||||
}
|
||||
value = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
map = new Map();
|
||||
return map instanceof Object ? map : value;
|
||||
}
|
||||
|
||||
function _fun93306() { // fn#93306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1228, offset: 0x020af57d, size: 103 bytes, params: 1, frame: 15
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
var value;
|
||||
const binding = env0_5;
|
||||
value = Reflect.apply(Reflect.apply(from, Array, [binding.values()]).filter, value,
|
||||
[(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
|
||||
return value.map(importDefault(7694) /* metro dependency 7694: makeUserListPillData */);
|
||||
}
|
||||
|
||||
function _fun93307() { // fn#93307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1324, offset: 0x020af5e4, size: 35 bytes, params: 1, frame: 11
|
||||
const current = env0_0.current;
|
||||
if (current != null) {
|
||||
current.scrollToTop(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93308() { // fn#93308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1560, offset: 0x020af607, size: 28 bytes, params: 1, frame: 11
|
||||
return env0_2.filter(function(a0) {
|
||||
return !resendUsers.has(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun93310() { // fn#93310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1610, offset: 0x020af623, size: 37 bytes, params: 1, frame: 3
|
||||
return isFetching && !hasError && eligibleUsers.length === 0;
|
||||
}
|
||||
|
||||
function _fun93311(a0) { // fn#93311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1703, offset: 0x020af648, size: 32 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_3(_fun93312);
|
||||
}
|
||||
|
||||
function _fun93313(a0) { // fn#93313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:1814, offset: 0x020af6c2, size: 154 bytes, params: 2, frame: 18
|
||||
var AccessibilityAnnouncer;
|
||||
var announce;
|
||||
var intl;
|
||||
const property = env0_6[a0];
|
||||
const user = UserStore.getUser(property.id);
|
||||
if (user != null) {
|
||||
env0_13(user);
|
||||
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
announce = AccessibilityAnnouncer.announce;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer,
|
||||
[intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.srlxB8,
|
||||
{text: property.text})]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93316(a0, a1) { // fn#93316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:2098, offset: 0x020af772, size: 105 bytes, params: 3, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(12179) /* metro dependency 12179: ReferralProgramShareActionSheetUtils */).buildReferralUserRow({eligibleUsers: eligibleUsers,
|
||||
row: a1, selectedUserIds: env0_2, resendUsers: resendUsers, referralsRemaining: referralsRemaining,
|
||||
selectedNotResendUsers: env0_12, onSelectUser: env0_13});
|
||||
}
|
||||
|
||||
function _fun93317() { // fn#93317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:2372, offset: 0x020af7db, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun93319);
|
||||
return _fun93321;
|
||||
}
|
||||
|
||||
function _fun93322() { // fn#93322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:2827, offset: 0x020af969, size: 141 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value;
|
||||
if (referralsRemaining === 0) {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t.SY9tyI);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t['2dVCLl']);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun93323(a0) { // fn#93323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:4039, offset: 0x020af9f6, size: 86 bytes, params: 2, frame: 10
|
||||
if (a0.nativeEvent.contentOffset.y + a0.nativeEvent.layoutMeasurement.height >= a0.nativeEvent.contentSize.height - 150) {
|
||||
fetchUsers();
|
||||
}
|
||||
}
|
||||
|
||||
function ReferralProgramShareActionSheetOnPress() { // fn#93324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:4322, owner: ReferralProgramShareActionSheet.onPress, offset: 0x020afa4c, size: 47 bytes, params: 1, frame: 13
|
||||
const binding = env0_15;
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
const binding2 = env0_5;
|
||||
binding(Reflect.apply(from, Array, [binding2.values()]));
|
||||
}
|
||||
|
||||
function* _fun93319(a0) { // fn#93319, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12362:2392, offset: 0x020af80a, size: 351 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var track;
|
||||
var REFERRAL_PROGRAM_SHARE_CTA_CLICKED;
|
||||
var object2;
|
||||
var value5;
|
||||
var createReferralTrials;
|
||||
var map;
|
||||
var closure;
|
||||
var value6;
|
||||
var referralTrials;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var value9;
|
||||
var openLazy;
|
||||
var value10;
|
||||
var paths;
|
||||
var value11;
|
||||
var error;
|
||||
var binding4;
|
||||
var presentError;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var R0RpRX;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[21];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
track = value4.track;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_9;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
REFERRAL_PROGRAM_SHARE_CTA_CLICKED = binding.REFERRAL_PROGRAM_SHARE_CTA_CLICKED;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env2_14;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.location_stack = binding;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(track, value4, [REFERRAL_PROGRAM_SHARE_CTA_CLICKED, object2]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[22];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
createReferralTrials = value5.createReferralTrials;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
map = a0.map;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
closure = function(a0) {
|
||||
return a0.id;
|
||||
};
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(map, a0, [closure]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
referralTrials = Reflect.apply(createReferralTrials, value5, [value6]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
yield referralTrials;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(false);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[23];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
openLazy = value9.openLazy;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[25];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value10 = binding(property);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[24];
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
paths = binding3.paths;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value11 = value10(property, paths);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.selectedUsers = a0;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.trialCreationResult = value7;
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(openLazy, value9, [value11, 'referral-program-share-action-sheet', object2]);
|
||||
} catch (error) {
|
||||
env2_4(false);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value = binding(binding4[26]);
|
||||
presentError = value.presentError;
|
||||
intl = binding(binding4[16]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[16]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
Reflect.apply(presentError, value, [Reflect.apply(string, intl, [R0RpRX])]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/* Metro module 12179; source: modules/premium/referral_program/native/ReferralProgramShareActionSheetUtils.tsx; dependencies: [3793, 7690, 2] */
|
||||
function _fun93353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12365:6, offset: 0x020b0559, size: 128 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_1 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/referral_program/native/ReferralProgramShareActionSheetUtils.tsx');
|
||||
exports.buildReferralUserRow = buildReferralUserRow;
|
||||
}
|
||||
|
||||
function buildReferralUserRow({eligibleUsers, row, selectedUserIds, resendUsers, referralsRemaining, selectedNotResendUsers, onSelectUser}) { // fn#93354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12365:266, offset: 0x020b05d9, size: 216 bytes, params: 2, frame: 21
|
||||
var r5;
|
||||
var length;
|
||||
var value;
|
||||
var includes;
|
||||
var id;
|
||||
var value2;
|
||||
var has;
|
||||
var value3;
|
||||
var getRelationshipType;
|
||||
const property = eligibleUsers[row];
|
||||
if (property != null) {
|
||||
length = selectedNotResendUsers.length;
|
||||
value = length >= referralsRemaining;
|
||||
includes = selectedUserIds.includes;
|
||||
id = property.id;
|
||||
value2 = Reflect.apply(includes, selectedUserIds, [id]);
|
||||
has = resendUsers.has;
|
||||
id = property.id;
|
||||
value3 = Reflect.apply(has, resendUsers, [id]);
|
||||
getRelationshipType = RelationshipStore.getRelationshipType;
|
||||
id = property.id;
|
||||
r5 = value && !value2;
|
||||
r5 = r5 && !value3;
|
||||
length = eligibleUsers.length;
|
||||
return {type: 'user', props: {type: Reflect.apply(getRelationshipType, RelationshipStore, [id]), user: property,
|
||||
onPress: onSelectUser, selected: value2, disabled: r5, mode: UserRowModes.TOGGLE, start: row === 0,
|
||||
end: row === length - 1}};
|
||||
}
|
||||
}
|
||||
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
/* Metro module 12180; source: modules/premium/referral_program/native/ReferralProgramShareConfirmationActionSheet.tsx; dependencies: [27, 661, 33, 4501, 697, 3995, 7066, 1305, 4573, 1244, 4578, 6682, 4080, 4603, 1948, 6275, 6758, 4572, 5473, 6766, 2] */
|
||||
function _fun93355(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12366:6, offset: 0x020b06b1, size: 623 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
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.Fragment;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.content = {paddingHorizontal: PX_16};
|
||||
object2.headerAsset = {alignSelf: 'center'};
|
||||
const object3 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.marginTop = PX_16;
|
||||
object3.alignSelf = 'center';
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.paddingHorizontal = PX_8;
|
||||
object3.textAlign = 'center';
|
||||
object2.header = object3;
|
||||
const object8 = {textAlign: 'center'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.paddingHorizontal = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.marginTop = PX_8;
|
||||
object2.subheader = object8;
|
||||
const object9 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.gap = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.marginTop = PX_16;
|
||||
object9.paddingBottom = 21;
|
||||
object2.recipientContainer = object9;
|
||||
const object10 = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.padding = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.gap = PX_12;
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object10.borderWidth = 1;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object10.borderColor = BORDER_MUTED;
|
||||
object2.recipientRow = object10;
|
||||
object2.recipientDisplayName = {flex: 1};
|
||||
object2.erroredAvatar = {opacity: 0.5};
|
||||
object2.avatarContainer = {'alignSelf': 'center', 'justifyContent': 'center'};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/referral_program/native/ReferralProgramShareConfirmationActionSheet.tsx');
|
||||
exports.default = ReferralProgramShareConfirmationActionSheet;
|
||||
}
|
||||
|
||||
function SharedUser({user, trialCreationResult}) { // fn#93356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12366:897, offset: 0x020b0920, size: 698 bytes, params: 2, frame: 30
|
||||
var r5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var jsxRuntimeEnv0_6Binding;
|
||||
var items3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const name = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
const CreateReferralStatus = (require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).CreateReferralStatus;
|
||||
const FAIL = CreateReferralStatus.FAIL;
|
||||
const value3 = trialCreationResult === FAIL;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const items2 = [styles.avatarContainer];
|
||||
items2[1] = value3 && styles.erroredAvatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
|
||||
const avatar = <Avatar style={items2} size={REFRESH_MEDIUM_32} user={user} guildId={undefined} />;
|
||||
if (value3) {
|
||||
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
items3 = [<Text variant="text-md/medium" color="text-muted" style={styles.recipientDisplayName}>{name}</Text>];
|
||||
items3[1] = <Text variant="text-md/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.RO3T4B,
|
||||
|
||||
{userName: name})}</Text>;
|
||||
r5 = <>{items3}</>;
|
||||
} else {
|
||||
r5 = <Text variant="text-md/medium" color="text-strong" style={styles.recipientDisplayName}>{name}</Text>;
|
||||
}
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const buttonProps = {'variant': 'secondary', 'size': 'sm',
|
||||
text: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['g33r/P'])};
|
||||
const ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
||||
const CONTROL_SECONDARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_SECONDARY_TEXT_DEFAULT;
|
||||
buttonProps.icon = <ChatIcon size="xs" color={CONTROL_SECONDARY_TEXT_DEFAULT} />;
|
||||
buttonProps.onPress = onPress_93357;
|
||||
return (
|
||||
<View style={styles.recipientRow}>
|
||||
{avatar}
|
||||
{r5}
|
||||
<Button {...buttonProps} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ReferralProgramShareConfirmationActionSheet({selectedUsers, trialCreationResult}) { // fn#93358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12366:1952, offset: 0x020b0c29, size: 687 bytes, params: 2, frame: 31
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
let Array = global.Array;
|
||||
const value2 = Array.from(trialCreationResult.values());
|
||||
const r19 = value2.filter(function(a0) {
|
||||
var SUCCESS = require(dependencyMap[6]).CreateReferralStatus.SUCCESS;
|
||||
return a0 === SUCCESS;
|
||||
}).length === 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7VBEue']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tKCltd);
|
||||
const format = intl.format;
|
||||
const AwGSWl = (require(1244) /* metro dependency 1244: indexNative */).t.AwGSWl;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const REFERRAL_PROGRAM = HelpdeskArticles.REFERRAL_PROGRAM;
|
||||
const value5 = Reflect.apply(format, intl, [AwGSWl, {helpdeskArticle: Reflect.apply(getArticleURL, defaultImport,
|
||||
[REFERRAL_PROGRAM])}]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {startExpanded: true, contentStyles: styles.content};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
bottomSheetProps.header = <BottomSheetTitleHeader title={null} />;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const FistBumpSpotIllustration = (require(5473) /* metro dependency 5473: native */).FistBumpSpotIllustration;
|
||||
const items2 = [<View style={styles.headerAsset}><FistBumpSpotIllustration /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.header}>{r19}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
items2[2] = <TextWithIOSLinkWorkaround variant="text-md/medium" color="text-default" style={styles.subheader}>{value5}</TextWithIOSLinkWorkaround>;
|
||||
Array = global.Array;
|
||||
items2[3] = <View style={styles.recipientContainer}>{Array.from(selectedUsers).map(_fun93360)}</View>;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
<Stack>
|
||||
{items2}
|
||||
</Stack>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function SharedUserOnPress() { // fn#93357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12366:1733, owner: SharedUser.onPress, offset: 0x020b0bda, size: 79 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
(importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).openPrivateChannel({recipientIds: user.id});
|
||||
}
|
||||
|
||||
function _fun93360(a0) { // fn#93360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12366:2853, offset: 0x020b0f06, size: 63 bytes, params: 2, frame: 17
|
||||
return (
|
||||
<SharedUser
|
||||
user={a0}
|
||||
trialCreationResult={trialCreationResult.get(a0.id)}
|
||||
key={a0.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user