Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,130 @@
|
||||
/* Metro module 13348; source: modules/user_settings/family_center/ParentalControlledUserSettings.tsx; dependencies: [3831, 661, 13349, 3829, 628, 1345, 1314, 13350, 2] */
|
||||
function _fun101639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13538:6, offset: 0x0221b062, size: 735 bytes, params: 8, frame: 32
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(3831) /* metro dependency 3831: DMSafetyConstants */).ExplicitContentFilterTypes;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).AllFriendSourceFlags;
|
||||
let value = require(13349) /* metro dependency 13349: ParentalControlledUserSettingsDefinitions */;
|
||||
let defineParentalControlledSetting = value.defineParentalControlledSetting;
|
||||
value = Reflect.apply(defineParentalControlledSetting, value, ['textAndImages', 'explicitContentSettings',
|
||||
(require(3829) /* metro dependency 3829: UserSettings */).explicitContentFromProto,
|
||||
(require(3829) /* metro dependency 3829: UserSettings */).explicitContentToProto,
|
||||
{comparator: importDefault(628) /* metro dependency 628: shallowEqual */}]);
|
||||
const value3 = (require(13349) /* metro dependency 13349: ParentalControlledUserSettingsDefinitions */).defineParentalControlledSetting('textAndImages',
|
||||
'explicitContentFilter', function(a0) {
|
||||
var r0;
|
||||
r0 = a0?.value;
|
||||
r0 = r0 ?? ExplicitContentFilterTypes.NON_FRIENDS;
|
||||
return r0;
|
||||
}, function(a0) {
|
||||
var UInt32Value = require(dependencyMap[5]).UInt32Value;
|
||||
return UInt32Value.create({value: a0});
|
||||
});
|
||||
const parentalControlledUserSettingsDefinitionsModule = require(13349) /* metro dependency 13349: ParentalControlledUserSettingsDefinitions */;
|
||||
const value5 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('textAndImages',
|
||||
'goreContentSettings', (require(3829) /* metro dependency 3829: UserSettings */).goreContentFromProto,
|
||||
(require(3829) /* metro dependency 3829: UserSettings */).goreContentToProto,
|
||||
{comparator: importDefault(628) /* metro dependency 628: shallowEqual */});
|
||||
const value7 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'defaultMessageRequestRestricted', function(a0) {
|
||||
return a0?.value;
|
||||
}, function(a0) {
|
||||
var BoolValue = require(dependencyMap[5]).BoolValue;
|
||||
return BoolValue.create({value: a0});
|
||||
});
|
||||
const value9 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'defaultGuildsRestricted', function(a0) {
|
||||
var value = a0;
|
||||
return value != null && value;
|
||||
}, function(a0) {
|
||||
return a0;
|
||||
});
|
||||
const value11 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'defaultGuildsRestrictedV2', function(a0) {
|
||||
return a0?.value;
|
||||
}, function(a0) {
|
||||
var BoolValue = require(dependencyMap[5]).BoolValue;
|
||||
return BoolValue.create({value: a0});
|
||||
});
|
||||
const value13 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'friendSourceFlags', function(a0) {
|
||||
var r0;
|
||||
r0 = a0?.value;
|
||||
r0 = r0 ?? AllFriendSourceFlags;
|
||||
return r0;
|
||||
}, function(a0) {
|
||||
var UInt32Value = require(dependencyMap[5]).UInt32Value;
|
||||
return UInt32Value.create({value: a0});
|
||||
});
|
||||
const value15 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'dropsOptedOut', function(a0) {
|
||||
var r1;
|
||||
r1 = a0?.value;
|
||||
return r1 != null && r1;
|
||||
}, function(a0) {
|
||||
var BoolValue = require(dependencyMap[5]).BoolValue;
|
||||
return BoolValue.create({value: a0});
|
||||
});
|
||||
const value17 = parentalControlledUserSettingsDefinitionsModule.defineParentalControlledSetting('privacy',
|
||||
'quests3PDataOptedOut', function(a0) {
|
||||
var r1;
|
||||
r1 = a0?.value;
|
||||
return r1 != null && r1;
|
||||
}, function(a0) {
|
||||
var BoolValue = require(dependencyMap[5]).BoolValue;
|
||||
return BoolValue.create({value: a0});
|
||||
});
|
||||
const value18 = parentalControlledUserSettingsDefinitionsModule;
|
||||
defineParentalControlledSetting = value18.defineParentalControlledSetting;
|
||||
object2 = {};
|
||||
object2.comparator = (require(13350) /* metro dependency 13350: SpendingLimitUtils */).spendingLimitEqual;
|
||||
const value19 = Reflect.apply(defineParentalControlledSetting, value18, ['safetySettings', 'spendingLimitSettings',
|
||||
function(a0) {
|
||||
var r2;
|
||||
var r0;
|
||||
var object;
|
||||
var value = null;
|
||||
r2 = value == a0 ? undefined : a0.oneTimePurchaseLimit;
|
||||
if (value == r2) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object = {};
|
||||
object.amount = global.Number(r2.amount);
|
||||
object.currency = r2.currency;
|
||||
r0 = object;
|
||||
}
|
||||
return r0;
|
||||
}, _fun101655, object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/ParentalControlledUserSettings.tsx');
|
||||
exports.ParentalControlledExplicitContent = value;
|
||||
exports.ParentalControlledLegacyExplicitContent = value3;
|
||||
exports.ParentalControlledGoreContent = value5;
|
||||
exports.ParentalControlledDefaultMessageRequestRestricted = value7;
|
||||
exports.ParentalControlledDefaultGuildsRestricted = value9;
|
||||
exports.ParentalControlledDefaultGuildsRestrictedV2 = value11;
|
||||
exports.ParentalControlledFriendSourceFlags = value13;
|
||||
exports.ParentalControlledDropsOptedOut = value15;
|
||||
exports.ParentalControlledQuests3PDataOptedOut = value17;
|
||||
exports.ParentalControlledSpendingLimit = value19;
|
||||
}
|
||||
|
||||
function _fun101655(a0) { // fn#101655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13538:1808, offset: 0x0221b438, size: 166 bytes, params: 2, frame: 18
|
||||
const SpendingLimitSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).SpendingLimitSettings;
|
||||
if (a0 == null) {
|
||||
return SpendingLimitSettings.create({});
|
||||
}
|
||||
const amount = a0.amount;
|
||||
const currency = a0.currency;
|
||||
const create = SpendingLimitSettings.create;
|
||||
const SpendingLimit = (require(1314) /* metro dependency 1314: preloaded_user_settings */).SpendingLimit;
|
||||
const create2 = SpendingLimit.create;
|
||||
const object = {};
|
||||
const String = global.String;
|
||||
object.amount = String(amount);
|
||||
object.currency = currency;
|
||||
return Reflect.apply(create, SpendingLimitSettings, [{oneTimePurchaseLimit: Reflect.apply(create2, SpendingLimit,
|
||||
[object])}]);
|
||||
}
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/* Metro module 13349; source: modules/user_settings/family_center/ParentalControlledUserSettingsDefinitions.tsx; dependencies: [5119, 5118, 566, 2] */
|
||||
function _fun101656(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:6, offset: 0x0221b4de, size: 133 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const familyCenterControlledSettingsStore = importDefault(5119) /* metro dependency 5119: FamilyCenterControlledSettingsStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/ParentalControlledUserSettingsDefinitions.tsx');
|
||||
exports.defineParentalControlledSetting = defineParentalControlledSetting;
|
||||
exports.wrapParentalControlledSettingWithExperimentDefaults = function({baseSetting, isEligible, useIsEligible,
|
||||
eligibleDefault, ineligibleDefault, onUseDefault}) {
|
||||
return {getControlledSetting: _fun101666, useControlledSetting: _fun101667,
|
||||
updateControlledSetting: _fun101668};
|
||||
};
|
||||
}
|
||||
|
||||
function defineParentalControlledSetting(a0, a1, a2, a3) { // fn#101657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:256, offset: 0x0221b563, size: 129 bytes, params: 5, frame: 4
|
||||
let value = a4;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
let r2 = value !== undefined ? value : {};
|
||||
const comparator = r2.comparator;
|
||||
r2 = comparator !== undefined ? comparator : function(a0, a1) {
|
||||
return a0 === a1;
|
||||
};
|
||||
return {getControlledSetting: getControlledSetting, updateControlledSetting: function(a0, a1) {
|
||||
var r1;
|
||||
var value = a1;
|
||||
var defineParentalControlledSettingSBinding = defineParentalControlledSettingS;
|
||||
if (typeof value !== 'function') {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = value(getControlledSetting(a0));
|
||||
r1 = value;
|
||||
}
|
||||
return defineParentalControlledSettingSBinding(a0, r1);
|
||||
}, useControlledSetting: useControlledSetting};
|
||||
}
|
||||
|
||||
function wrapParentalControlledSettingWithExperimentDefaults({baseSetting, isEligible, useIsEligible, eligibleDefault, ineligibleDefault, onUseDefault}) { // fn#101665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:835, offset: 0x0221b715, size: 105 bytes, params: 2, frame: 3
|
||||
return {getControlledSetting: getControlledSetting, useControlledSetting: useControlledSetting,
|
||||
updateControlledSetting: function(a0, a1) {
|
||||
return baseSetting.updateControlledSetting(a0, a1);
|
||||
}};
|
||||
}
|
||||
|
||||
function defineParentalControlledSettingGetControlledSetting(a0) { // fn#101659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:366, owner: defineParentalControlledSetting.getControlledSetting, offset: 0x0221b5e4, size: 73 bytes, params: 2, frame: 15
|
||||
const settings = FamilyCenterControlledSettingsStore.getSettings(a0);
|
||||
return importDefault(settings == null || settings[env0_0] == null ? undefined : settings[env0_0][require]);
|
||||
}
|
||||
|
||||
function defineParentalControlledSettingS(a0, a1) { // fn#101660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:541, owner: defineParentalControlledSetting.S, offset: 0x0221b62d, size: 91 bytes, params: 3, frame: 15
|
||||
var environment;
|
||||
var r0;
|
||||
var value;
|
||||
if (a0 == null) {
|
||||
r0 = global.Promise.resolve();
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
|
||||
value = value.updateTeenSettings(a0, a1, function(a0) {
|
||||
a0[require] = importAll(require, a0[require]);
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function defineParentalControlledSettingUseControlledSetting(a0) { // fn#101663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:708, owner: defineParentalControlledSetting.useControlledSetting, offset: 0x0221b6bd, size: 88 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterControlledSettingsStore],
|
||||
_fun101664, [a0], env0_4);
|
||||
}
|
||||
|
||||
function wrapParentalControlledSettingWithExperimentDefaultsGetControlledSetting(a0) { // fn#101666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:1023, owner: wrapParentalControlledSettingWithExperimentDefaults.getControlledSetting, offset: 0x0221b77e, size: 77 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
const controlledSetting = baseSetting.getControlledSetting(a0);
|
||||
if (controlledSetting != null) {
|
||||
r0 = controlledSetting;
|
||||
} else {
|
||||
if (onUseDefault != null) {
|
||||
onUseDefault();
|
||||
}
|
||||
r0 = isEligible() ? eligibleDefault() : ineligibleDefault;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function wrapParentalControlledSettingWithExperimentDefaultsUseControlledSetting(a0) { // fn#101667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13539:1123, owner: wrapParentalControlledSettingWithExperimentDefaults.useControlledSetting, offset: 0x0221b7cb, size: 75 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
const value2 = baseSetting.useControlledSetting(a0);
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
if (onUseDefault != null) {
|
||||
onUseDefault();
|
||||
}
|
||||
r0 = useIsEligible() ? eligibleDefault() : ineligibleDefault;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 13339; source: modules/user_settings/family_center/native/FamilyCenterSettingsNotice.tsx; dependencies: [31, 6263, 33, 8170, 13270, 2224, 5177, 4603, 2] */
|
||||
function _fun101585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13529:6, offset: 0x02219379, size: 160 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(6263) /* metro dependency 6263: Constants */).SafetySettingsNoticeType;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/native/FamilyCenterSettingsNotice.tsx');
|
||||
exports.default = FamilyCenterSettingsParentalControlsNotice;
|
||||
}
|
||||
|
||||
function FamilyCenterSettingsParentalControlsNotice() { // fn#101586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13529:270, offset: 0x02219419, size: 131 bytes, params: 1, frame: 19
|
||||
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds();
|
||||
const SafetySettingsNotice = importDefault(13270) /* metro dependency 13270: SafetySettingsNotice */;
|
||||
const i284fU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).i284fU;
|
||||
const CONTENT_AND_SOCIAL_PARENTAL_CONTROLS_NOTICE = SafetySettingsNoticeType.CONTENT_AND_SOCIAL_PARENTAL_CONTROLS_NOTICE;
|
||||
return (
|
||||
<SafetySettingsNotice
|
||||
label={i284fU}
|
||||
noticeType={CONTENT_AND_SOCIAL_PARENTAL_CONTROLS_NOTICE}
|
||||
labelHook={labelHook}
|
||||
count={value2.length}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterSettingsParentalControlsNoticeLabelHook() { // fn#101587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13529:467, owner: FamilyCenterSettingsParentalControlsNotice.labelHook, offset: 0x0221949c, size: 78 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(require(5177) /* metro dependency 5177: LayerActionCreators */).popLayer();
|
||||
(importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).openPrivateChannel({recipientIds: env0_0});
|
||||
}
|
||||
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/* Metro module 14124; source: modules/user_settings/family_center/native/ParentalControlsSensitiveContentFiltersScreen.tsx; dependencies: [31, 8224, 33, 1244, 9692, 13170, 2] */
|
||||
function _fun106942(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14321:6, offset: 0x022eed16, size: 164 bytes, params: 8, frame: 18
|
||||
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(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/native/ParentalControlsSensitiveContentFiltersScreen.tsx');
|
||||
exports.default = UserSettingsSensitiveContentFilters_106943;
|
||||
}
|
||||
|
||||
function UserSettingsSensitiveContentFilters_106943() { // fn#106943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14321:280, offset: 0x022eedba, size: 72 bytes, params: 1, frame: 14
|
||||
return ((Component) => <Component node={env0_3.useMemo(_fun106944,
|
||||
[])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
|
||||
}
|
||||
|
||||
function _fun106944() { // fn#106944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14321:344, offset: 0x022eee02, size: 320 bytes, params: 1, frame: 21
|
||||
const settingBuildersModule = require(9692) /* metro dependency 9692: SettingBuilders */;
|
||||
const createList = settingBuildersModule.createList;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const GYpoAq = t.GYpoAq;
|
||||
object.label = Reflect.apply(string, intl, [GYpoAq]);
|
||||
const PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_FRIENDS_DMS = MobileSetting.PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_FRIENDS_DMS;
|
||||
const PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_NON_FRIENDS_DMS = MobileSetting.PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_NON_FRIENDS_DMS;
|
||||
object.settings = [PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_FRIENDS_DMS,
|
||||
PARENTAL_CONTROLS_EXPLICIT_MEDIA_FILTERS_NON_FRIENDS_DMS];
|
||||
string = intl.string;
|
||||
const Wnojv1 = t.Wnojv1;
|
||||
object.subLabel = Reflect.apply(string, intl, [Wnojv1]);
|
||||
const items2 = [object];
|
||||
const object4 = {};
|
||||
object4.label = intl.string(t['16/3Bi']);
|
||||
const PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_FRIENDS_DMS = MobileSetting.PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_FRIENDS_DMS;
|
||||
const PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_NON_FRIENDS_DMS = MobileSetting.PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_NON_FRIENDS_DMS;
|
||||
object4.settings = [PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_FRIENDS_DMS,
|
||||
PARENTAL_CONTROLS_GORE_MEDIA_FILTERS_NON_FRIENDS_DMS];
|
||||
string = intl.string;
|
||||
const XgH9eh = t.XgH9eh;
|
||||
object4.subLabel = Reflect.apply(string, intl, [XgH9eh]);
|
||||
items2[1] = object4;
|
||||
return Reflect.apply(createList, settingBuildersModule, [{sections: items2}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
/* Metro module 13388; source: modules/user_settings/family_center/native/UserSettingsFamilyCenter.tsx; dependencies: [57, 31, 27, 5116, 1878, 661, 1229, 1376, 5117, 33, 4572, 4501, 697, 6771, 6789, 8170, 13389, 13390, 8172, 632, 8853, 1244, 2224, 13391, 13425, 5118, 683, 4826, 4831, 4594, 3968, 1365, 5075, 9221, 8861, 2] */
|
||||
function _fun101938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:6, offset: 0x022243e4, size: 509 bytes, params: 8, frame: 22
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ActivityIndicator;
|
||||
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_10 = (require(1229) /* metro dependency 1229: AgeGateConstants */).AgeGateSource;
|
||||
const env0_11 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
|
||||
const env0_12 = value.FamilyCenterPageLocationAnalyticsIds;
|
||||
const env0_13 = value.FamilyCenterSubPageAnalyticsIds;
|
||||
const FamilyCenterSubPages = value.FamilyCenterSubPages;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_15 = value.jsx;
|
||||
const env0_16 = value.jsxs;
|
||||
const ACTIVITY = FamilyCenterSubPages.ACTIVITY;
|
||||
items = [ACTIVITY];
|
||||
const REQUESTS = FamilyCenterSubPages.REQUESTS;
|
||||
items[1] = REQUESTS;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object3 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.paddingHorizontal = PX_16;
|
||||
const env0_18 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flex': 1},
|
||||
segmentedControlContainer: object3, loadingContainer: {minHeight: '100%'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/native/UserSettingsFamilyCenter.tsx');
|
||||
exports.default = FamilyCenterContainer;
|
||||
}
|
||||
|
||||
function FamilyCenterLoading() { // fn#101939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:426, offset: 0x022245e1, size: 95 bytes, params: 1, frame: 16
|
||||
const styles = useStyles();
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
return (
|
||||
<Stack
|
||||
justify="center"
|
||||
align="center"
|
||||
style={styles.loadingContainer}
|
||||
>
|
||||
<ActivityIndicator />
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenter() { // fn#101940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:768, offset: 0x02224640, size: 995 bytes, params: 1, frame: 38
|
||||
var object8;
|
||||
var r0;
|
||||
var moduleValue5;
|
||||
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
var object5;
|
||||
var container;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const FAMILY_CENTER = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).FAMILY_CENTER;
|
||||
const analyticsLocations = defaultImport(FAMILY_CENTER).analyticsLocations;
|
||||
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useAcceptedRequestsCount();
|
||||
const value3 = (importDefault(13389) /* metro dependency 13389: useUserAgeGroup */)();
|
||||
const selectedTab = (importDefault(13390) /* metro dependency 13390: useSelectedTab */)().selectedTab;
|
||||
const value4 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId();
|
||||
const {familyCenterInitialized,
|
||||
isLoading} = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([FamilyCenterStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.familyCenterInitialized = FamilyCenterStore.getIsInitialized();
|
||||
object.isLoading = FamilyCenterStore.isLoading();
|
||||
return object;
|
||||
});
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const value7 = null;
|
||||
const value8 = value7 != value3;
|
||||
const [property, env0_3] = env0_3Binding(env0_4.useState(0), 2);
|
||||
const value11 = env0_4.useCallback(_fun101942, []);
|
||||
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
|
||||
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
|
||||
object8 = {};
|
||||
const object6 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object6.label = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).bdBmqy);
|
||||
const ACTIVITY = FamilyCenterSubPages.ACTIVITY;
|
||||
object6.id = ACTIVITY;
|
||||
object6.page = ((Component) => <Component />)(importDefault(13391) /* metro dependency 13391: FamilyCenterActivityPage */);
|
||||
const items3 = [object6];
|
||||
const object7 = {};
|
||||
object7.label = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['gVWG+6']);
|
||||
const REQUESTS = FamilyCenterSubPages.REQUESTS;
|
||||
object7.id = REQUESTS;
|
||||
object7.page = ((Component) => <Component />)(importDefault(13425) /* metro dependency 13425: FamilyCenterRequestsPage */);
|
||||
items3[1] = object7;
|
||||
object8.items = items3;
|
||||
object8.onPageChange = onPageChange_101943;
|
||||
object8.pageWidth = property;
|
||||
object8.defaultIndex = env0_17.indexOf(selectedTab);
|
||||
const value12 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [object8]);
|
||||
object8 = {ageGroup: value3, numOfAcceptedRequests: value2, selectedTab: selectedTab, selectedTeenId: value4};
|
||||
var env0_4 = object8;
|
||||
const env0_5 = env0_4.useRef(object8);
|
||||
env0_4.useEffect(_fun101944);
|
||||
env0_4.useEffect(_fun101945, [familyCenterInitialized, value8]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun101946);
|
||||
if (familyCenterInitialized) {
|
||||
if (value7 == currentUser) {
|
||||
object8 = {value: analyticsLocations};
|
||||
object5 = {};
|
||||
container = styles.container;
|
||||
object5.style = container;
|
||||
object5.onLayout = value11;
|
||||
items2 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value12} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
container = styles.container;
|
||||
items2[1] = <View style={container}>{isLoading ? <FamilyCenterLoading /> : ((SegmentedControlPages) => <SegmentedControlPages state={value12} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</View>;
|
||||
r0 = <AnalyticsLocationProvider {...object8}><View {...object5}>{items2}</View></AnalyticsLocationProvider>;
|
||||
} else if (value8) {
|
||||
object8 = {value: analyticsLocations};
|
||||
object5 = {};
|
||||
container = styles.container;
|
||||
object5.style = container;
|
||||
object5.onLayout = value11;
|
||||
items2 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value12} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
container = styles.container;
|
||||
items2[1] = <View style={container}>{isLoading ? <FamilyCenterLoading /> : ((SegmentedControlPages) => <SegmentedControlPages state={value12} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</View>;
|
||||
r0 = <AnalyticsLocationProvider {...object8}><View {...object5}>{items2}</View></AnalyticsLocationProvider>;
|
||||
} else {
|
||||
moduleValue5 = require(5075) /* metro dependency 5075: AgeGateModalActionCreators */;
|
||||
moduleValue5.openAgeGateModal(AgeGateSource.FAMILY_CENTER);
|
||||
r0 = value7;
|
||||
}
|
||||
} else {
|
||||
object8 = {value: analyticsLocations};
|
||||
object5 = {};
|
||||
container = styles.container;
|
||||
object5.style = container;
|
||||
object5.onLayout = value11;
|
||||
items2 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value12} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
container = styles.container;
|
||||
items2[1] = <View style={container}>{isLoading ? <FamilyCenterLoading /> : ((SegmentedControlPages) => <SegmentedControlPages state={value12} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</View>;
|
||||
r0 = <AnalyticsLocationProvider {...object8}><View {...object5}>{items2}</View></AnalyticsLocationProvider>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function FamilyCenterContainer() { // fn#101947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:2705, offset: 0x02224bf1, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenter />;
|
||||
}
|
||||
|
||||
function FamilyCenterOnPageChange(a0) { // fn#101943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:1481, owner: FamilyCenter.onPageChange, offset: 0x02224a52, size: 49 bytes, params: 2, frame: 12
|
||||
return (importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).selectTab(env1_17[a0]);
|
||||
}
|
||||
|
||||
function _fun101945() { // fn#101945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:1686, offset: 0x02224a83, size: 219 bytes, params: 1, frame: 22
|
||||
var current;
|
||||
var ageGroup;
|
||||
var numOfAcceptedRequests;
|
||||
var selectedTab;
|
||||
var selectedTeenId;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var defaultImport2;
|
||||
var increment;
|
||||
if (familyCenterInitialized) {
|
||||
if (result) {
|
||||
current = env0_5.current;
|
||||
ageGroup = current.ageGroup;
|
||||
numOfAcceptedRequests = current.numOfAcceptedRequests;
|
||||
selectedTab = current.selectedTab;
|
||||
selectedTeenId = current.selectedTeenId;
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.FAMILY_CENTER_VIEWED, {is_considered_adult: ageGroup === 'adult',
|
||||
num_of_accepted_links: numOfAcceptedRequests, selected_teen_id: selectedTeenId,
|
||||
initial_page: FamilyCenterSubPageAnalyticsIds[selectedTab],
|
||||
source: FamilyCenterPageLocationAnalyticsIds.SETTINGS});
|
||||
defaultImport2 = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
increment = defaultImport2.increment;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.FAMILY_CENTER_VIEW;
|
||||
Reflect.apply(increment, defaultImport2, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun101946() { // fn#101946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13578:2030, offset: 0x02224b5e, size: 147 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_markDismissibleContentAsDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const FAMILY_CENTER_NEW_BADGE = DismissibleContent.FAMILY_CENTER_NEW_BADGE;
|
||||
const AUTO = ContentDismissActionType.AUTO;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[FAMILY_CENTER_NEW_BADGE, {dismissAction: AUTO, forceTrack: true}]);
|
||||
if (!isLoading && FamilyCenterStore.canRefetch()) {
|
||||
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).initialPageLoad();
|
||||
}
|
||||
}
|
||||
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
/* Metro module 13442; source: modules/user_settings/family_center/native/UserSettingsFamilyCenterParentalControls.tsx; dependencies: [57, 31, 27, 661, 5117, 33, 4501, 697, 1484, 6771, 6789, 7032, 5188, 13406, 13424, 1244, 2224, 9603, 13443, 13444, 8853, 5118, 6618, 13445, 9221, 8861, 2] */
|
||||
function _fun102223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:6, offset: 0x02232d8d, size: 375 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
const env0_8 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FamilyCenterSubPages;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {container: {'display': 'flex', 'flex': 1}};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
object3.segmentedControlContainer = object4;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.content = {paddingBottom: PX_16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/family_center/native/UserSettingsFamilyCenterParentalControls.tsx');
|
||||
exports.default = FamilyCenterParentalControlsSettings;
|
||||
}
|
||||
|
||||
function FamilyCenterParentalControlsSettings() { // fn#102224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:572, offset: 0x02232f04, size: 1161 bytes, params: 1, frame: 31
|
||||
var object4;
|
||||
var object3;
|
||||
var container;
|
||||
var items2;
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useStackNavigation();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const FAMILY_CENTER = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).FAMILY_CENTER;
|
||||
const analyticsLocations = defaultImport(FAMILY_CENTER).analyticsLocations;
|
||||
let binding = env0_4;
|
||||
const [property, env0_1] = env0_3(binding.useState(0), 2);
|
||||
const value6 = (require(7032) /* metro dependency 7032: useSettingNavigationRoute */).useSettingNavigationRoute();
|
||||
let params = value6.params;
|
||||
const r2 = (params == null ? value2 : params.selectedSubPage) ?? FamilyCenterSubPages.CONTENT_AND_SOCIAL;
|
||||
params = value6.params;
|
||||
const value7 = (params == null ? value2 : params.autoOpenCreate) === true;
|
||||
const value8 = (require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */).useIsFamilyCenterV3Enabled({location: 'FamilyCenterParentalControlsSettings'});
|
||||
var env0_4 = value8;
|
||||
const value9 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
|
||||
const id = value9 == null ? value2 : value9.id;
|
||||
const value10 = (importDefault(13424) /* metro dependency 13424: useUserIsTeenAgeGroup */)();
|
||||
binding = env0_4;
|
||||
const value11 = binding.useCallback(_fun102225, []);
|
||||
const env0_7 = binding.useRef(false);
|
||||
binding.useEffect(_fun102226, [value7, id, value3]);
|
||||
binding.useLayoutEffect(_fun102227, [value3, r2, value8, id, value10]);
|
||||
const r0 = value8 && r2 === FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
|
||||
object4 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object4.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['+o1pDZ']]);
|
||||
const CONTENT_AND_SOCIAL = FamilyCenterSubPages.CONTENT_AND_SOCIAL;
|
||||
object4.id = CONTENT_AND_SOCIAL;
|
||||
object4.page = ((Component) => <Component />)(importDefault(13443) /* metro dependency 13443: FamilyCenterParentalControlsContentAndSocial */);
|
||||
const items3 = [object4];
|
||||
object4 = {};
|
||||
string = intl.string;
|
||||
const OAuOHD = (require(1244) /* metro dependency 1244: indexNative */).t.OAuOHD;
|
||||
object4.label = Reflect.apply(string, intl, [OAuOHD]);
|
||||
const DATA_AND_PRIVACY = FamilyCenterSubPages.DATA_AND_PRIVACY;
|
||||
object4.id = DATA_AND_PRIVACY;
|
||||
object4.page = ((Component) => <Component />)(importDefault(13444) /* metro dependency 13444: FamilyCenterParentalControlsDataAndPrivacy */);
|
||||
items3[1] = object4;
|
||||
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
|
||||
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
|
||||
const Math = global.Math;
|
||||
const value13 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [{items: items3,
|
||||
onPageChange: onPageChange_102230, pageWidth: property, defaultIndex: Math.max(items3.findIndex(_fun102231),
|
||||
0)}]);
|
||||
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
object4 = {value: analyticsLocations};
|
||||
if (r0) {
|
||||
object4.children = <ScrollView style={styles.container}><SafeAreaPaddingView bottom style={styles.content}>{((Component) => <Component readOnly={value10} />)(importDefault(13445) /* metro dependency 13445: FamilyCenterParentalControlsScreenTime */)}</SafeAreaPaddingView></ScrollView>;
|
||||
} else {
|
||||
object3 = {};
|
||||
container = styles.container;
|
||||
object3.style = container;
|
||||
object3.onLayout = value11;
|
||||
items2 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value13} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
container = styles.container;
|
||||
items2[1] = <View style={container}><ScrollView><SafeAreaPaddingView bottom style={styles.content}>{((SegmentedControlPages) => <SegmentedControlPages state={value13} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</SafeAreaPaddingView></ScrollView></View>;
|
||||
object4.children = <View {...object3}>{items2}</View>;
|
||||
}
|
||||
return <AnalyticsLocationProvider {...object4} />;
|
||||
}
|
||||
|
||||
function _fun102226() { // fn#102226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:1179, offset: 0x022333b1, size: 114 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var navigate;
|
||||
var value4;
|
||||
if (result && id != null && !env0_7.current) {
|
||||
env0_7.current = true;
|
||||
binding = env0_0;
|
||||
binding.setParams({autoOpenCreate: false});
|
||||
navigate = binding.navigate;
|
||||
value4 = environment.__proto__;
|
||||
Reflect.apply(navigate, binding, [UserSettingsSections.FAMILY_CENTER_SCHEDULE_DOWNTIME, {teenId: id}]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102227() { // fn#102227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:1343, offset: 0x02233423, size: 176 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var binding;
|
||||
var value2;
|
||||
var setOptions;
|
||||
var object2;
|
||||
var value3;
|
||||
if (env0_4) {
|
||||
binding = env0_2;
|
||||
value2 = environment.__proto__;
|
||||
if (binding !== FamilyCenterSubPages.SCREEN_TIME_CONTROLS) {
|
||||
env0_0.setOptions({title: undefined, headerRight: undefined});
|
||||
} else if (id != null) {
|
||||
binding = env0_0;
|
||||
setOptions = binding.setOptions;
|
||||
object2 = {};
|
||||
value3 = undefined;
|
||||
object2.title = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP']);
|
||||
object2.headerRight = env0_6 ? value3 : _fun102228;
|
||||
Reflect.apply(setOptions, binding, [object2]);
|
||||
} else {
|
||||
env0_0.setOptions({title: undefined, headerRight: undefined});
|
||||
}
|
||||
} else {
|
||||
env0_0.setOptions({title: undefined, headerRight: undefined});
|
||||
}
|
||||
}
|
||||
|
||||
function FamilyCenterParentalControlsSettingsOnPageChange(a0) { // fn#102230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:1971, owner: FamilyCenterParentalControlsSettings.onPageChange, offset: 0x02233581, size: 57 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
|
||||
value.selectTab(env0_8[a0].id);
|
||||
}
|
||||
|
||||
function _fun102228(a0) { // fn#102228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:1469, offset: 0x022334d3, size: 129 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const HeaderTextButton = (require(9603) /* metro dependency 9603: HeaderShared */).HeaderTextButton;
|
||||
const headerTextButtonProps = {...a0};
|
||||
headerTextButtonProps['onPress'] = onPress_102229;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const OYkgVk = (require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk;
|
||||
headerTextButtonProps['label'] = Reflect.apply(string, intl, [OYkgVk]);
|
||||
return <HeaderTextButton {...headerTextButtonProps} />;
|
||||
}
|
||||
|
||||
function onPress_102229() { // fn#102229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13632:1514, offset: 0x02233554, size: 45 bytes, params: 1, frame: 14
|
||||
const binding = env2_0;
|
||||
const navigate = binding.navigate;
|
||||
const FAMILY_CENTER_SCHEDULE_DOWNTIME = UserSettingsSections.FAMILY_CENTER_SCHEDULE_DOWNTIME;
|
||||
return Reflect.apply(navigate, binding, [FAMILY_CENTER_SCHEDULE_DOWNTIME, {teenId: id}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user