Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
/* Metro module 15305; source: modules/upsell_tooltip/experiments/MainViewTooltipActionSheetsDisabledExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun117017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15502:6, offset: 0x024a06b9, size: 155 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'kind': 'user', 'name': '2026-01-mobile-action-sheet-killswitch',
|
||||
defaultConfig: {disabled: false}, variations: {[0]: {disabled: false}, [1]: {disabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/upsell_tooltip/experiments/MainViewTooltipActionSheetsDisabledExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,384 @@
|
||||
/* Metro module 15277; source: modules/upsell_tooltip/native/MainViewTooltipActionSheetsV2.tsx; dependencies: [57, 31, 3849, 1348, 661, 1376, 33, 15278, 1962, 15280, 15281, 15282, 15283, 15285, 15286, 14231, 15288, 15293, 15295, 15298, 1365, 1366, 683, 1370, 11088, 3968, 1367, 15304, 566, 10357, 2] */
|
||||
function _fun116842(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:6, offset: 0x024981de, size: 980 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const closure = trackActionSheetImpression;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(31) /* metro dependency 31 */;
|
||||
const env0_5 = value.useEffect;
|
||||
const env0_6 = value.useMemo;
|
||||
const env0_7 = value.useRef;
|
||||
const actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_11 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).DismissibleContentGroupName;
|
||||
const env0_12 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const closure2 = importer;
|
||||
const closure3 = importer_116848;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET = DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
const DISCOUNT_OFFER_ACTION_SHEET = DismissibleContent.DISCOUNT_OFFER_ACTION_SHEET;
|
||||
const MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET = DismissibleContent.MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
const MOBILE_BOGO_PROMOTION_ACTION_SHEET = DismissibleContent.MOBILE_BOGO_PROMOTION_ACTION_SHEET;
|
||||
const closure4 = importer_116852;
|
||||
items = [];
|
||||
value = arraySpread(items, [{id: GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET, importer: importer_116849},
|
||||
{id: DISCOUNT_OFFER_ACTION_SHEET, importer: importer_116850}, {id: MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET,
|
||||
importer: importer_116851}, {id: MOBILE_BOGO_PROMOTION_ACTION_SHEET, importer: closure4}], 0, closure4);
|
||||
const RIOT_CONNECTION_DEPRECATION_DISABLE = DismissibleContent.RIOT_CONNECTION_DEPRECATION_DISABLE;
|
||||
items[value] = {id: RIOT_CONNECTION_DEPRECATION_DISABLE, importer: importer_116853};
|
||||
value += 1;
|
||||
const PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL;
|
||||
items[value] = {id: PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL, importer: closure3};
|
||||
value += 1;
|
||||
const PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL;
|
||||
items[value] = {id: PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL, importer: closure3};
|
||||
value += 1;
|
||||
const GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET = DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET;
|
||||
items[value] = {id: GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET, importer: closure2};
|
||||
value += 1;
|
||||
const GIFTING_PROMOTION_REMINDER = DismissibleContent.GIFTING_PROMOTION_REMINDER;
|
||||
items[value] = {id: GIFTING_PROMOTION_REMINDER, importer: closure2};
|
||||
value += 1;
|
||||
const NEW_GIFTING_BADGES_COACHMARK = DismissibleContent.NEW_GIFTING_BADGES_COACHMARK;
|
||||
items[value] = {id: NEW_GIFTING_BADGES_COACHMARK, importer: importer_116854};
|
||||
value += 1;
|
||||
const CUSTOM_APP_ICONS_COACHMARK = DismissibleContent.CUSTOM_APP_ICONS_COACHMARK;
|
||||
items[value] = {id: CUSTOM_APP_ICONS_COACHMARK, importer: importer_116855};
|
||||
value += 1;
|
||||
const ROBLOX_CONNECTION_COACHMARK = DismissibleContent.ROBLOX_CONNECTION_COACHMARK;
|
||||
items[value] = {id: ROBLOX_CONNECTION_COACHMARK, importer: importer_116856};
|
||||
value += 1;
|
||||
const DISPLAY_NAME_STYLES_MOBILE_ANNOUNCEMENT_MODAL = DismissibleContent.DISPLAY_NAME_STYLES_MOBILE_ANNOUNCEMENT_MODAL;
|
||||
items[value] = {id: DISPLAY_NAME_STYLES_MOBILE_ANNOUNCEMENT_MODAL, importer: importer_116857};
|
||||
const COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT = DismissibleContent.COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT;
|
||||
items[value + 1] = {id: COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT, importer: importer_116858};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/upsell_tooltip/native/MainViewTooltipActionSheetsV2.tsx');
|
||||
exports.default = MainViewTooltipActionSheetsV2;
|
||||
exports.ACTION_SHEET_REGISTRY = items;
|
||||
exports.trackActionSheetImpression = closure;
|
||||
}
|
||||
|
||||
function getActionSheetType(a0) { // fn#116843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1946, offset: 0x024985b2, size: 136 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
var value;
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isSnowflakeBoundDismissibleContent(a0)) {
|
||||
r0 = 'snowflake_bound';
|
||||
} else {
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isVersionedDismissibleContent(a0)) {
|
||||
r1 = 'versioned';
|
||||
} else {
|
||||
value = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
value = value.isTimeRecurringDismissibleContent(a0);
|
||||
r1 = value ? 'time_recurring' : 'single_use';
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function trackActionSheetImpression(a0) { // fn#116844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:2179, offset: 0x0249863a, size: 177 bytes, params: 2, frame: 21
|
||||
const value3 = ActionSheetStore.getContent() != null;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const MAIN_VIEW_ACTION_SHEET_SELECTED = AnalyticEvents.MAIN_VIEW_ACTION_SHEET_SELECTED;
|
||||
const object2 = {};
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
object2.dc_id = DismissibleContent[a0.id];
|
||||
object2.dc_type = getActionSheetType(a0.id);
|
||||
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
object2.bypass_fatigue = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0.id);
|
||||
object2.is_another_action_sheet_open = value3;
|
||||
Reflect.apply(track, defaultImport, [MAIN_VIEW_ACTION_SHEET_SELECTED, object2]);
|
||||
}
|
||||
|
||||
function TrackedDismissibleActionSheet(a0) { // fn#116845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:2469, offset: 0x024986eb, size: 138 bytes, params: 2, frame: 17
|
||||
const actionSheetConfig = a0.actionSheetConfig;
|
||||
const hasTrackedRef = a0.hasTrackedRef;
|
||||
const value = Object.create(null);
|
||||
value.actionSheetConfig = 0;
|
||||
value.hasTrackedRef = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, actionSheetConfig);
|
||||
useEffect(_fun116846, [actionSheetConfig, hasTrackedRef]);
|
||||
const DismissibleActionSheet = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
|
||||
return <DismissibleActionSheet {...value2} />;
|
||||
}
|
||||
|
||||
function importer() { // fn#116847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:326, offset: 0x024987a6, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[9], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116848() { // fn#116848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:394, offset: 0x024987d3, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[13], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116849() { // fn#116849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:507, offset: 0x02498800, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[12], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116850() { // fn#116850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:604, offset: 0x0249882d, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[14], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116851() { // fn#116851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:713, offset: 0x0249885a, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[15], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116852() { // fn#116852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:817, offset: 0x02498887, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[11], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116853() { // fn#116853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:923, offset: 0x024988b4, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[18], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116854() { // fn#116854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1500, offset: 0x024988e1, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[17], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116855() { // fn#116855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1596, offset: 0x0249890e, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116856() { // fn#116856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1692, offset: 0x0249893b, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[10], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116857() { // fn#116857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1807, offset: 0x02498968, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[16], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function importer_116858() { // fn#116858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:1917, offset: 0x02498995, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[8])(dependencyMap[19], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function MainViewTooltipActionSheetsV2() { // fn#116859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:2782, offset: 0x024989c2, size: 795 bytes, params: 1, frame: 27
|
||||
var r7;
|
||||
var SelectedSnowflakeBoundDismissibleContent;
|
||||
const value2 = (require(15304) /* metro dependency 15304: useMainViewTooltipActionSheetEligibilityMap */).useMainViewTooltipActionSheetMap();
|
||||
const value4 = env0_3(env0_4.useState(null), 2);
|
||||
const value5 = 0;
|
||||
const property = value4[value5];
|
||||
const env0_2 = value4[1];
|
||||
var env0_3 = useRef(false);
|
||||
var env0_4 = useRef(false);
|
||||
useEffect(_fun116860, [property]);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value6 = Reflect.apply(useStateFromStores, fluxModule, [[ActionSheetStore], _fun116861]);
|
||||
const value7 = fluxModule.useStateFromStores([UserSettingsProtoStore], _fun116862);
|
||||
const moduleValue4 = fluxModule;
|
||||
useStateFromStores = moduleValue4.useStateFromStores;
|
||||
const value9 = useMemo(_fun116864, [value2, value7, Reflect.apply(useStateFromStores, moduleValue4,
|
||||
[[UserSettingsProtoStore], _fun116863])]);
|
||||
const env0_7 = useRef(null);
|
||||
useEffect(_fun116866, [value9, value6]);
|
||||
if (property != null) {
|
||||
var id = property.id;
|
||||
r7 = value2[id] ?? ({});
|
||||
var getActionSheetTypeBinding = getActionSheetType;
|
||||
id = property.id;
|
||||
var actionSheetTypeBinding = getActionSheetTypeBinding(id);
|
||||
if (actionSheetTypeBinding === 'snowflake_bound') {
|
||||
SelectedSnowflakeBoundDismissibleContent = (require(10357) /* metro dependency 10357: SelectedDismissibleContent */).SelectedSnowflakeBoundDismissibleContent;
|
||||
id = property.id;
|
||||
r7 = r7.newSnowflakeId ?? '';
|
||||
return (
|
||||
<SelectedSnowflakeBoundDismissibleContent
|
||||
contentType={id}
|
||||
newSnowflakeId={r7}
|
||||
groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}
|
||||
>
|
||||
{children_116869}
|
||||
</SelectedSnowflakeBoundDismissibleContent>
|
||||
);
|
||||
}
|
||||
if (actionSheetTypeBinding === 'versioned') {
|
||||
const SelectedVersionedDismissibleContent = (require(10357) /* metro dependency 10357: SelectedDismissibleContent */).SelectedVersionedDismissibleContent;
|
||||
return (
|
||||
<SelectedVersionedDismissibleContent
|
||||
latestVersion={r7.latestVersion ?? value5}
|
||||
contentType={property.id}
|
||||
groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}
|
||||
>
|
||||
{children_116870}
|
||||
</SelectedVersionedDismissibleContent>
|
||||
);
|
||||
}
|
||||
if (actionSheetTypeBinding === 'time_recurring') {
|
||||
const SelectedTimeRecurringDismissibleContent = (require(10357) /* metro dependency 10357: SelectedDismissibleContent */).SelectedTimeRecurringDismissibleContent;
|
||||
return (
|
||||
<SelectedTimeRecurringDismissibleContent
|
||||
contentType={property.id}
|
||||
timeRecurringConfig={r7.cooldownConfig}
|
||||
groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}
|
||||
bypassAutoDismiss={false}
|
||||
>
|
||||
{children_116871}
|
||||
</SelectedTimeRecurringDismissibleContent>
|
||||
);
|
||||
}
|
||||
if (actionSheetTypeBinding === 'single_use') {
|
||||
return ((Component) => <Component contentTypes={[property.id]} groupName={DismissibleContentGroupName.MAIN_VIEW_TOOLTIPS}>{children_116872}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun116846() { // fn#116846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:2562, offset: 0x02498775, size: 49 bytes, params: 1, frame: 11
|
||||
var value2;
|
||||
if (!hasTrackedRef.current) {
|
||||
hasTrackedRef.current = true;
|
||||
value2 = environment.__proto__;
|
||||
trackActionSheetImpression(actionSheetConfig);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116860() { // fn#116860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:2940, offset: 0x02498cdd, size: 19 bytes, params: 1, frame: 2
|
||||
env0_4.current = false;
|
||||
}
|
||||
|
||||
function _fun116861() { // fn#116861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3004, offset: 0x02498cf0, size: 29 bytes, params: 1, frame: 9
|
||||
const value = environment.__proto__;
|
||||
return ActionSheetStore.getKey() === 'MainViewTooltipActionSheets';
|
||||
}
|
||||
|
||||
function _fun116862() { // fn#116862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3060, offset: 0x02498d0d, size: 38 bytes, params: 1, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
return userContent?.dismissedContents;
|
||||
}
|
||||
|
||||
function _fun116863() { // fn#116863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3176, offset: 0x02498d33, size: 38 bytes, params: 1, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
return userContent?.recurringDismissibleContentStates;
|
||||
}
|
||||
|
||||
function _fun116864() { // fn#116864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3278, offset: 0x02498d59, size: 41 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = env1_13.find(_fun116865);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function _fun116866() { // fn#116866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3960, offset: 0x02498eec, size: 149 bytes, params: 1, frame: 16
|
||||
var r6;
|
||||
var clearTimeout;
|
||||
var binding;
|
||||
if (env0_7.current != null) {
|
||||
clearTimeout = global.clearTimeout;
|
||||
binding = env0_7;
|
||||
clearTimeout(binding.current);
|
||||
binding.current = null;
|
||||
}
|
||||
binding = env0_5;
|
||||
const binding2 = env0_3;
|
||||
if (binding) {
|
||||
binding2.current = true;
|
||||
} else {
|
||||
r6 = binding2.current ? 350 : 0;
|
||||
if (env0_6 == null) {
|
||||
env0_3.current = false;
|
||||
}
|
||||
env0_7.current = global.setTimeout(_fun116867, r6);
|
||||
}
|
||||
return _fun116868;
|
||||
}
|
||||
|
||||
function MainViewTooltipActionSheetsV2Children({visibleContent, markAsDismissed}) { // fn#116869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:4491, owner: MainViewTooltipActionSheetsV2.children, offset: 0x02498fd5, size: 118 bytes, params: 2, frame: 17
|
||||
return visibleContent !== env0_1.id ? null : <TrackedDismissibleActionSheet actionSheetConfig={env0_1} hasTrackedRef={env0_4} actionSheetKey="MainViewTooltipActionSheets" importer={env0_1.importer} markAsDismissed={markAsDismissed} {...env0_8.actionSheetProperties} />;
|
||||
}
|
||||
|
||||
function MainViewTooltipActionSheetsV2Children_116870({visibleContent, markAsDismissed}) { // fn#116870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:4872, owner: MainViewTooltipActionSheetsV2.children, offset: 0x0249904b, size: 130 bytes, params: 2, frame: 17
|
||||
return visibleContent !== env0_1.id ? null : <TrackedDismissibleActionSheet actionSheetConfig={env0_1} hasTrackedRef={env0_4} actionSheetKey="MainViewTooltipActionSheets" importer={env0_1.importer} markAsDismissed={markAsDismissed} versionedDismissibleContentType={env0_1.id} {...env0_8.actionSheetProperties} />;
|
||||
}
|
||||
|
||||
function MainViewTooltipActionSheetsV2Children_116872({visibleContent, markAsDismissed}) { // fn#116872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:5618, owner: MainViewTooltipActionSheetsV2.children, offset: 0x024990cd, size: 118 bytes, params: 2, frame: 17
|
||||
return visibleContent !== env0_1.id ? null : <TrackedDismissibleActionSheet actionSheetConfig={env0_1} hasTrackedRef={env0_4} markAsDismissed={markAsDismissed} importer={env0_1.importer} actionSheetKey="MainViewTooltipActionSheets" {...env0_8.actionSheetProperties} />;
|
||||
}
|
||||
|
||||
function _fun116865(a0) { // fn#116865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:3313, offset: 0x02498d82, size: 362 bytes, params: 2, frame: 23
|
||||
var r3;
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var moduleValue3;
|
||||
var value4;
|
||||
var value5;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_0;
|
||||
let id = a0.id;
|
||||
const property = binding[id];
|
||||
const isEligible = property?.isEligible;
|
||||
if (isEligible) {
|
||||
id = a0.id;
|
||||
value2 = property == null;
|
||||
if (value2) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
moduleValue = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue.isSnowflakeBoundDismissibleContent(id)) {
|
||||
value5 = property.newSnowflakeId == null;
|
||||
if (value5) {
|
||||
r3 = value5;
|
||||
} else {
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
r3 = value.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(id,
|
||||
property.newSnowflakeId).isDismissed;
|
||||
}
|
||||
r2 = r3;
|
||||
} else if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isVersionedDismissibleContent(id)) {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
r2 = value.isVersionedDismissibleContentDismissed(id, property.latestVersion).isDismissed;
|
||||
} else {
|
||||
moduleValue3 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue3.isTimeRecurringDismissibleContent(id)) {
|
||||
value4 = property.cooldownConfig == null;
|
||||
if (value4) {
|
||||
r3 = value4;
|
||||
} else {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
r3 = value.isTimeRecurringDismissibleContentDismissed(id, property.cooldownConfig).isDismissed;
|
||||
}
|
||||
r2 = r3;
|
||||
} else {
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
value = value.UNSAFE_isDismissibleContentDismissed(id);
|
||||
r2 = value;
|
||||
}
|
||||
}
|
||||
r1 = r2;
|
||||
}
|
||||
value = !r1;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = isEligible;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116867() { // fn#116867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:4114, offset: 0x02498f81, size: 32 bytes, params: 1, frame: 12
|
||||
env1_2(env1_6);
|
||||
env1_7.current = null;
|
||||
}
|
||||
|
||||
function _fun116868() { // fn#116868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15474:4150, offset: 0x02498fa1, size: 52 bytes, params: 1, frame: 13
|
||||
var clearTimeout;
|
||||
var binding;
|
||||
if (env1_7.current != null) {
|
||||
clearTimeout = global.clearTimeout;
|
||||
binding = env1_7;
|
||||
clearTimeout(binding.current);
|
||||
binding.current = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* Metro module 8574; source: modules/upsell_tooltip/native/PremiumUpsellTooltipActionSheet.tsx; dependencies: [31, 27, 1376, 33, 4501, 697, 3968, 6275, 1305, 4573, 4578, 4080, 2] */
|
||||
function _fun67840(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8759:6, offset: 0x01c33dc4, size: 482 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
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;
|
||||
object4 = {};
|
||||
const object5 = {justifyContent: 'center'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
object4.container = object5;
|
||||
const object6 = {'alignSelf': 'center', 'width': 231, 'height': 231, 'borderRadius': null, 'marginBottom': 16};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object4.img = object6;
|
||||
object4.header = {'flexDirection': 'row', 'justifyContent': 'center'};
|
||||
object4.title = {'textAlign': 'center', 'marginBottom': 8};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.description = {textAlign: 'center', marginBottom: PX_24};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object4.nitroWheel = {'tintColor': null, 'width': 32, 'height': 32, 'marginTop': -2, 'marginLeft': -16,
|
||||
tintColor: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.buttonContainer = {gap: PX_8};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/upsell_tooltip/native/PremiumUpsellTooltipActionSheet.tsx');
|
||||
exports.default = PremiumUpsellTooltipActionSheet;
|
||||
}
|
||||
|
||||
function PremiumUpsellTooltipActionSheet({title, backdropProps, description, descriptionStyle, imageSource, imageStyle, dismissibleContent, primaryButtonText, primaryButtonIcon, secondaryButtonText, onDismiss, onPrimaryButtonPress, onSecondaryButtonPress}) { // fn#67841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8759:843, offset: 0x01c33fa6, size: 676 bytes, params: 2, frame: 38
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const styles = useStyles();
|
||||
const closure = PremiumUpsellTooltipActionSheetHandleDismiss;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {startExpanded: true, ...backdropProps};
|
||||
bottomSheetProps['onDismiss'] = closure;
|
||||
const items2 = [imageSource != null ? <Image style={[styles.img, imageStyle]} source={imageSource} /> : null];
|
||||
const NitroWheel = (require(1305) /* metro dependency 1305: native */).NitroWheel;
|
||||
const nitroWheel = <NitroWheel style={styles.nitroWheel} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <View style={styles.header}>{nitroWheel}<Text variant="heading-xl/bold" style={styles.title} color="mobile-text-heading-primary" accessibilityRole="header">{title}</Text></View>;
|
||||
items2[2] = <Text style={[styles.description,
|
||||
descriptionStyle]} variant="text-md/medium" color="text-default">{description}</Text>;
|
||||
items2[3] = <View style={styles.buttonContainer}><Button variant="active" text={primaryButtonText} onPress={function() {
|
||||
onPrimaryButtonPress();
|
||||
importDefault(dependencyMap[11]).hideActionSheet();
|
||||
PremiumUpsellTooltipActionSheetHandleDismiss(ContentDismissActionType.PRIMARY);
|
||||
}} icon={primaryButtonIcon?.()} size="lg" />{secondaryButtonText != null ? <Button variant="secondary" text={secondaryButtonText} onPress={function() {
|
||||
if (onSecondaryButtonPress != null) {
|
||||
onSecondaryButtonPress();
|
||||
}
|
||||
importDefault(dependencyMap[11]).hideActionSheet();
|
||||
PremiumUpsellTooltipActionSheetHandleDismiss(ContentDismissActionType.DISMISS);
|
||||
}} size="lg" /> : null}</View>;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function PremiumUpsellTooltipActionSheetHandleDismiss(a0) { // fn#67842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8759:1138, owner: PremiumUpsellTooltipActionSheet.handleDismiss, offset: 0x01c3424a, size: 119 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = a0 !== ContentDismissActionType.DISMISS;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
r0 = !r0 ? onDismiss == null : r0;
|
||||
if (!r0) {
|
||||
onDismiss();
|
||||
}
|
||||
value = environment.__proto__;
|
||||
(require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */).UNSAFE_markDismissibleContentAsDismissed(dismissibleContent,
|
||||
{forceTrack: true, dismissAction: a0});
|
||||
}
|
||||
|
||||
+298
@@ -0,0 +1,298 @@
|
||||
/* Metro module 15304; source: modules/upsell_tooltip/native/useMainViewTooltipActionSheetEligibilityMap.tsx; dependencies: [57, 31, 7670, 15284, 7261, 1348, 1373, 1878, 661, 1880, 670, 566, 15305, 1581, 7258, 7062, 15306, 7582, 7583, 7676, 7633, 3968, 1365, 7634, 7635, 15300, 15281, 7260, 15295, 4239, 1244, 2774, 2] */
|
||||
function _fun117006(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:6, offset: 0x0249faac, size: 366 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
|
||||
const googlePlayPriceChangeStore = importDefault(15284) /* metro dependency 15284: GooglePlayPriceChangeStore */;
|
||||
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
const {PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID,
|
||||
PREMIUM_TIER_2_REACTIVATION_TRIAL_ID} = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_12 = (require(670) /* metro dependency 670: UserSettingsConstants */).UserSettingsTypes;
|
||||
const Set = global.Set;
|
||||
const set = new Set([PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID,
|
||||
PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/upsell_tooltip/native/useMainViewTooltipActionSheetEligibilityMap.tsx');
|
||||
exports.useMainViewTooltipActionSheetMap = useMainViewTooltipActionSheetMap;
|
||||
}
|
||||
|
||||
function useMainViewTooltipActionSheetMap() { // fn#117007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:599, offset: 0x0249fc1a, size: 2178 bytes, params: 1, frame: 40
|
||||
var oneofKind;
|
||||
var mobileBottomSheet;
|
||||
var r21;
|
||||
var id;
|
||||
var dismissibleContent;
|
||||
var promotionId;
|
||||
var r18;
|
||||
var r11;
|
||||
var moduleValue3;
|
||||
var properties;
|
||||
var object2;
|
||||
var GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
var DISCOUNT_OFFER_ACTION_SHEET;
|
||||
var object3;
|
||||
var MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
var object5;
|
||||
var PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL;
|
||||
var PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL;
|
||||
var GIFTING_PROMOTION_REMINDER;
|
||||
var moduleValue19;
|
||||
var RIOT_CONNECTION_DEPRECATION_DISABLE;
|
||||
var object7;
|
||||
var object8;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
function() {
|
||||
return UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS);
|
||||
});
|
||||
const defaultImport = importDefault(15305) /* metro dependency 15305: MainViewTooltipActionSheetsDisabledExperiment */;
|
||||
const getConfig = defaultImport.getConfig;
|
||||
let r0 = value3 && !Reflect.apply(getConfig, defaultImport,
|
||||
[{location: 'MainViewTooltipActionSheets'}]).disabled && !(require(566) /* metro dependency 566: flux */).useStateFromStores([UserRequiredActionStore],
|
||||
function() {
|
||||
return UserRequiredActionStore.hasAction();
|
||||
});
|
||||
if (r0) {
|
||||
moduleValue3 = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
||||
r0 = !moduleValue3.isMetaQuest();
|
||||
}
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
const value9 = env0_3(Reflect.apply(useStateFromStoresArray, fluxModule, [[GooglePlayPriceChangeStore], function() {
|
||||
return [GooglePlayPriceChangeStore.shouldShowGooglePlayPriceChange,
|
||||
GooglePlayPriceChangeStore.priceChangeRecord];
|
||||
}]), 2);
|
||||
const property = value9[0];
|
||||
const property2 = value9[1];
|
||||
const value10 = (require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */).usePremiumDiscountOffer();
|
||||
const value11 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
|
||||
const PremiumTrialOfferActionSheetKillSwitchExperiment = (require(15306) /* metro dependency 15306: PremiumTrialOfferActionSheetKillSwitchExperiment */).PremiumTrialOfferActionSheetKillSwitchExperiment;
|
||||
let useConfig = PremiumTrialOfferActionSheetKillSwitchExperiment.useConfig;
|
||||
const enabled = Reflect.apply(useConfig, PremiumTrialOfferActionSheetKillSwitchExperiment,
|
||||
[{location: 'MainViewTooltipActionSheets'}]).enabled;
|
||||
const usePromotionMarketingComponentModule = require(7582) /* metro dependency 7582: usePromotionMarketingComponent */;
|
||||
const usePromotionMarketingComponent = usePromotionMarketingComponentModule.usePromotionMarketingComponent;
|
||||
const MarketingComponentType = (require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType;
|
||||
const MOBILE_BOTTOM_SHEET = MarketingComponentType.MOBILE_BOTTOM_SHEET;
|
||||
const value12 = Reflect.apply(usePromotionMarketingComponent, usePromotionMarketingComponentModule,
|
||||
[MOBILE_BOTTOM_SHEET]);
|
||||
const value13 = null;
|
||||
if (value13 == value12) {
|
||||
oneofKind = value2;
|
||||
} else {
|
||||
properties = value12.properties;
|
||||
properties = properties.properties;
|
||||
oneofKind = properties.oneofKind;
|
||||
}
|
||||
if (oneofKind !== 'mobileBottomSheet') {
|
||||
mobileBottomSheet = value13;
|
||||
} else {
|
||||
properties = value12.properties;
|
||||
properties = properties.properties;
|
||||
mobileBottomSheet = properties.mobileBottomSheet;
|
||||
}
|
||||
const value14 = fluxModule.useStateFromStores([PromotionsStore], _fun117011);
|
||||
const value15 = fluxModule.useStateFromStores([PromotionsStore], _fun117012);
|
||||
const value16 = fluxModule.useStateFromStores([PromotionsStore], _fun117013);
|
||||
const GiftPromotionReminderExperiment = (require(7676) /* metro dependency 7676: GiftPromotionReminderExperiment */).GiftPromotionReminderExperiment;
|
||||
useConfig = GiftPromotionReminderExperiment.useConfig;
|
||||
const enabled2 = Reflect.apply(useConfig, GiftPromotionReminderExperiment,
|
||||
[{location: 'MainViewTooltipActionSheets'}]).enabled;
|
||||
const GiftingBadgeExperiment = (require(7633) /* metro dependency 7633: GiftingBadgeExperiment */).GiftingBadgeExperiment;
|
||||
useConfig = GiftingBadgeExperiment.useConfig;
|
||||
const enabled3 = Reflect.apply(useConfig, GiftingBadgeExperiment,
|
||||
[{location: 'MainViewTooltipActionSheets'}]).enabled;
|
||||
const value17 = fluxModule.useStateFromStores([UserStore], _fun117014);
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_isDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
let NEW_GIFTING_BADGES_COACHMARK = DismissibleContent.NEW_GIFTING_BADGES_COACHMARK;
|
||||
env0_4.useEffect(_fun117015, [enabled3, value17, Reflect.apply(UNSAFE_isDismissibleContentDismissed,
|
||||
dismissibleContentUnsafeUtilsModule, [NEW_GIFTING_BADGES_COACHMARK])]);
|
||||
const value19 = fluxModule.useStateFromStores([BadgeDirectoryStore], _fun117016);
|
||||
const useProfileFramesMarketingModule = require(15300) /* metro dependency 15300: useProfileFramesMarketing */;
|
||||
const useProfileFramesMarketing = useProfileFramesMarketingModule.useProfileFramesMarketing;
|
||||
const isAnnouncementEligible = Reflect.apply(useProfileFramesMarketing, useProfileFramesMarketingModule,
|
||||
['MainViewTooltipActionSheets']).isAnnouncementEligible;
|
||||
const value20 = (require(15281) /* metro dependency 15281: RobloxConnectionCoachmark */).useShouldShowRobloxConnectionCoachmark();
|
||||
const value21 = (require(7260) /* metro dependency 7260: PremiumBogoPromotionUtilsCommon */).useIsEligibleForBogoPromotion();
|
||||
const LEAGUE_OF_LEGENDS = PlatformTypes.LEAGUE_OF_LEGENDS;
|
||||
items = [LEAGUE_OF_LEGENDS];
|
||||
const RIOT_GAMES = PlatformTypes.RIOT_GAMES;
|
||||
items[1] = RIOT_GAMES;
|
||||
const value22 = (require(15295) /* metro dependency 15295: ConnectionDeprecationBottomSheet */).useShouldShowConnectionDeprecationBottomSheet({deprecatedPlatformTypes: items});
|
||||
const value23 = (require(4239) /* metro dependency 4239: riotSocialSDKMigration */).useIsRiotSocialSDKMigrationEnabled({location: 'MainViewTooltipActionSheets'});
|
||||
const value24 = value13 != value15;
|
||||
if (r0) {
|
||||
object2 = {};
|
||||
GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET = DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
r21 = property && value13 != property2;
|
||||
object2[GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET] = {isEligible: r21,
|
||||
newSnowflakeId: value13 == property2 ? value2 : property2.priceChangeId, actionSheetProperties: {}};
|
||||
DISCOUNT_OFFER_ACTION_SHEET = DismissibleContent.DISCOUNT_OFFER_ACTION_SHEET;
|
||||
object3 = {};
|
||||
r21 = value13 != value10 && value13 == value10.expiresAt;
|
||||
object3.isEligible = r21;
|
||||
id = value13 == value10 ? value2 : value10.id;
|
||||
object3.newSnowflakeId = id;
|
||||
r21 = value13 != value10 ? {userDiscountOffer: value10} : {};
|
||||
object3.actionSheetProperties = r21;
|
||||
object2[DISCOUNT_OFFER_ACTION_SHEET] = object3;
|
||||
MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET = DismissibleContent.MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
object5 = {};
|
||||
r21 = value13 != value11 && value13 == value11.expires_at;
|
||||
r21 = r21 && !enabled;
|
||||
r21 = r21 && env0_13.has(value11.trial_id);
|
||||
object5.isEligible = r21;
|
||||
id = value13 == value11 ? value2 : value11.id;
|
||||
object5.newSnowflakeId = id;
|
||||
r21 = value13 != value11 ? {userTrialOffer: value11} : {};
|
||||
object5.actionSheetProperties = r21;
|
||||
object2[MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET] = object5;
|
||||
PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL;
|
||||
dismissibleContent = value13 == mobileBottomSheet ? value2 : mobileBottomSheet.dismissibleContent;
|
||||
promotionId = value13 == value12 ? value2 : value12.promotionId;
|
||||
id = value13 == value12 ? value2 : value12.id;
|
||||
object2[PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL] = {isEligible: dismissibleContent === DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL,
|
||||
|
||||
newSnowflakeId: promotionId, actionSheetProperties: {bottomSheetData: mobileBottomSheet, componentId: id}};
|
||||
PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL;
|
||||
dismissibleContent = value13 == mobileBottomSheet ? value2 : mobileBottomSheet.dismissibleContent;
|
||||
promotionId = value13 == value12 ? value2 : value12.promotionId;
|
||||
id = value13 == value12 ? value2 : value12.id;
|
||||
object2[PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL] = {isEligible: dismissibleContent === DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL,
|
||||
|
||||
newSnowflakeId: promotionId, actionSheetProperties: {bottomSheetData: mobileBottomSheet, componentId: id}};
|
||||
object2[DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET] = {isEligible: value24,
|
||||
newSnowflakeId: value14, actionSheetProperties: {coachmarkComponent: value15}};
|
||||
GIFTING_PROMOTION_REMINDER = DismissibleContent.GIFTING_PROMOTION_REMINDER;
|
||||
r21 = value24 ? value13 == value16 : !value24;
|
||||
r18 = !r21 && value13 != value14;
|
||||
if (r18) {
|
||||
moduleValue19 = dismissibleContentUnsafeUtilsModule;
|
||||
r18 = !!moduleValue19.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET,
|
||||
|
||||
|
||||
value14).isDismissed;
|
||||
}
|
||||
r18 = r18 && enabled2;
|
||||
r18 = r18 && value13 != value16;
|
||||
object2[GIFTING_PROMOTION_REMINDER] = {isEligible: r18, newSnowflakeId: value14,
|
||||
actionSheetProperties: {coachmarkComponent: value16}};
|
||||
NEW_GIFTING_BADGES_COACHMARK = DismissibleContent.NEW_GIFTING_BADGES_COACHMARK;
|
||||
r11 = enabled3 && value17;
|
||||
r11 = r11 && value19;
|
||||
object2[NEW_GIFTING_BADGES_COACHMARK] = {isEligible: r11, actionSheetProperties: {}};
|
||||
object2[DismissibleContent.CUSTOM_APP_ICONS_COACHMARK] = {isEligible: true, actionSheetProperties: {}};
|
||||
object2[DismissibleContent.ROBLOX_CONNECTION_COACHMARK] = {isEligible: value20, actionSheetProperties: {}};
|
||||
object2[DismissibleContent.MOBILE_BOGO_PROMOTION_ACTION_SHEET] = {isEligible: value21,
|
||||
actionSheetProperties: {}};
|
||||
object2[DismissibleContent.DISPLAY_NAME_STYLES_MOBILE_ANNOUNCEMENT_MODAL] = {isEligible: true,
|
||||
actionSheetProperties: {}};
|
||||
RIOT_CONNECTION_DEPRECATION_DISABLE = DismissibleContent.RIOT_CONNECTION_DEPRECATION_DISABLE;
|
||||
object7 = {};
|
||||
object7.isEligible = value22 && value23;
|
||||
object8 = {platformTypes: items};
|
||||
object8.applicationName = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2774) /* metro dependency 2774: ApplicationAccountLinkingMessages */)['1S6oAo']);
|
||||
object7.actionSheetProperties = object8;
|
||||
object2[RIOT_CONNECTION_DEPRECATION_DISABLE] = object7;
|
||||
object2[DismissibleContent.COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT] = {isEligible: isAnnouncementEligible,
|
||||
actionSheetProperties: {}};
|
||||
r0 = object2;
|
||||
} else {
|
||||
r0 = {};
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun117011() { // fn#117011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:1403, offset: 0x024a04f0, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return PromotionsStore.getGiftPromotion()?.id;
|
||||
}
|
||||
|
||||
function _fun117012() { // fn#117012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:1502, offset: 0x024a0513, size: 111 bytes, params: 1, frame: 13
|
||||
var giftIconCoachmark;
|
||||
var properties;
|
||||
let value = environment.__proto__;
|
||||
const getMarketingComponentByType = PromotionsStore.getMarketingComponentByType;
|
||||
const MarketingComponentType = (require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType;
|
||||
const GIFT_ICON_COACHMARK = MarketingComponentType.GIFT_ICON_COACHMARK;
|
||||
value = Reflect.apply(getMarketingComponentByType, PromotionsStore, [GIFT_ICON_COACHMARK]);
|
||||
const value2 = null;
|
||||
if (value2 != value) {
|
||||
properties = value.properties;
|
||||
properties = properties.properties;
|
||||
if (properties.oneofKind !== 'giftIconCoachmark') {
|
||||
giftIconCoachmark = value2;
|
||||
} else {
|
||||
properties = value.properties;
|
||||
properties = properties.properties;
|
||||
giftIconCoachmark = properties.giftIconCoachmark;
|
||||
}
|
||||
} else {
|
||||
giftIconCoachmark = value2;
|
||||
}
|
||||
return giftIconCoachmark;
|
||||
}
|
||||
|
||||
function _fun117013() { // fn#117013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:1753, offset: 0x024a0582, size: 111 bytes, params: 1, frame: 13
|
||||
var giftReminderCoachmark;
|
||||
var properties;
|
||||
let value = environment.__proto__;
|
||||
const getMarketingComponentByType = PromotionsStore.getMarketingComponentByType;
|
||||
const MarketingComponentType = (require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType;
|
||||
const GIFT_REMINDER_COACHMARK = MarketingComponentType.GIFT_REMINDER_COACHMARK;
|
||||
value = Reflect.apply(getMarketingComponentByType, PromotionsStore, [GIFT_REMINDER_COACHMARK]);
|
||||
const value2 = null;
|
||||
if (value2 != value) {
|
||||
properties = value.properties;
|
||||
properties = properties.properties;
|
||||
if (properties.oneofKind !== 'giftReminderCoachmark') {
|
||||
giftReminderCoachmark = value2;
|
||||
} else {
|
||||
properties = value.properties;
|
||||
properties = properties.properties;
|
||||
giftReminderCoachmark = properties.giftReminderCoachmark;
|
||||
}
|
||||
} else {
|
||||
giftReminderCoachmark = value2;
|
||||
}
|
||||
return giftReminderCoachmark;
|
||||
}
|
||||
|
||||
function _fun117014() { // fn#117014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:2157, offset: 0x024a05f1, size: 49 bytes, params: 1, frame: 11
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = UserStore.getCurrentUser();
|
||||
if (value == null) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.hasHadPremium();
|
||||
r1 = value;
|
||||
}
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
function _fun117015() { // fn#117015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:2366, offset: 0x024a0622, size: 91 bytes, params: 1, frame: 14
|
||||
var value;
|
||||
if (enabled && env0_1 && !env0_2) {
|
||||
value = environment.__proto__;
|
||||
value = require(7634) /* metro dependency 7634: BadgeDirectoryActionCreators */;
|
||||
value.fetchBadge((require(7635) /* metro dependency 7635: BadgeId */).BadgeId.GIFTING);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun117016() { // fn#117016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15501:2477, offset: 0x024a067d, size: 60 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
const getBadgeById = BadgeDirectoryStore.getBadgeById;
|
||||
const BadgeId = (require(7635) /* metro dependency 7635: BadgeId */).BadgeId;
|
||||
const GIFTING = BadgeId.GIFTING;
|
||||
return Reflect.apply(getBadgeById, BadgeDirectoryStore, [GIFTING]) != null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user