This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,299 +1,309 @@
/* Metro module 13421; source: modules/parent_tools/ChangeSpendingLimitFormState.tsx; dependencies: [5, 57, 31, 5116, 13348, 566, 5138, 13350, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import FamilyCenterStore from './FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as PriceUtilsModule from '../../external/discord_common/js/shared/utils/PriceUtils.tsx'; /* Metro dependency 5138 */
import * as ParentalControlledUserSettingsModule from '../user_settings/family_center/ParentalControlledUserSettings.tsx'; /* Metro dependency 13348 */
import * as SpendingLimitUtilsModule from './SpendingLimitUtils.tsx'; /* Metro dependency 13350 */
function _fun102121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:6, offset: 0x0222ddd0, size: 165 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/ChangeSpendingLimitFormState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/ChangeSpendingLimitFormState.tsx');
exports.useChangeSpendingLimitFormState = useChangeSpendingLimitFormState;
}
function useChangeSpendingLimitFormState(a0) { // fn#102122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:257, offset: 0x0222de75, size: 681 bytes, params: 2, frame: 31
const env0_0 = a0;
const value2 = undefined;
const ParentalControlledSpendingLimit = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledSpendingLimit;
const value3 = ParentalControlledSpendingLimit.useControlledSetting(a0);
const spendingLimit = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getSpendingLimit();
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore], _fun102124);
const value5 = null;
const currency = value5 == value3 ? value2 : value3.currency;
const r3 = value5 != currency ? currency : value5 == spendingLimit ? value2 : spendingLimit.currency;
let r5 = value5 != r3 ? r3 : 'usd';
const value7 = r5.toLowerCase();
const env0_2 = value7;
const CurrencyExponents = (require(5138) /* metro dependency 5138: PriceUtils */).CurrencyExponents;
let property = CurrencyExponents[value7];
const value8 = 2;
const r10 = value5 != property ? property : value8;
const env0_3 = r10;
let binding = env0_4;
let useMemo = binding.useMemo;
const value9 = Reflect.apply(useMemo, binding, [_fun102125, [value7]]);
useMemo = binding.useMemo;
const getNextRenewalDateLabel = (require(13350) /* metro dependency 13350: SpendingLimitUtils */).getNextRenewalDateLabel;
const value10 = Reflect.apply(useMemo, binding, [getNextRenewalDateLabel, []]);
const value12 = env0_3(binding.useState(_fun102126), value8);
property = value12[0];
var env0_4 = value12[1];
let useCallback = binding.useCallback;
const value13 = Reflect.apply(useCallback, binding, [_fun102127, [r10]]);
const r6 = property === '' && value5 != value3;
const float = global.parseFloat(property);
const Number = global.Number;
const r15 = !Number.isNaN(float) && float >= 0;
r5 = r6 || r15;
const r7 = r15 ? global.Math.round(float * exponentiationOperator(10, r10, float)) : value5;
binding = env0_4;
const value20 = env0_3(binding.useState(false), value8);
const property2 = value20[0];
const env0_8 = value20[1];
useCallback = binding.useCallback;
let value = env0_2(_fun102129);
value = Reflect.apply(useCallback, binding, [value, [r5, r6, r7, a0, value7]]);
return {amountInput: property, handleAmountChange: value13, currency: value7, currencySymbol: value9, exponent: r10,
isClearingCap: r6, isOverspending: value5 != value4 && value4 > 0 && value5 != r7 && r7 <= value4, canSave: r5,
isSubmitting: property2, renewalDate: value10, monthlySpend: value4, save: value};
}
function _fun102124() { // fn#102124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:472, offset: 0x0222e133, size: 48 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = FamilyCenterStore.getMonthlyPurchases();
const value2 = null;
const total_amount = value2 == value ? undefined : value.total_amount;
return value2 != total_amount ? total_amount : value2;
}
function _fun102125() { // fn#102125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:726, offset: 0x0222e163, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(13350) /* metro dependency 13350: SpendingLimitUtils */).getCurrencySymbol(env0_2);
}
function _fun102126() { // fn#102126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:827, offset: 0x0222e190, size: 62 bytes, params: 1, frame: 14
var r0;
var String;
var value;
if (env0_1 == null) {
r0 = '';
} else {
String = global.String;
value = env0_1.amount / exponentiationOperator(10, env0_3, undefined);
value = String(value);
r0 = value;
}
return r0;
}
function _fun102127(a0) { // fn#102127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:907, offset: 0x0222e1ce, size: 58 bytes, params: 2, frame: 15
const binding = env0_4;
const spendingLimitUtilsModule = require(13350) /* metro dependency 13350: SpendingLimitUtils */;
return binding(spendingLimitUtilsModule.sanitizeAmountInput(a0, env0_3));
}
function* _fun102129() { // fn#102129, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:1106, offset: 0x0222e213, size: 250 bytes, params: 1, frame: 17
var binding;
var value3;
var binding2;
var property;
var value5;
var ParentalControlledSpendingLimit;
var updateControlledSetting;
var object2;
var value6;
var value7;
var value8;
var value9;
var binding3;
var value10;
var value11;
var value12;
var value13;
var error;
if (true) {
value = environment.__proto__;
if (env1_6) {
env1_8(true);
try {
} catch (error) {
env1_8(false);
throw error;
}
if (FamilyCenterStore) {
value9 = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding3 = env2_1;
} catch (error) {
env1_8(false);
throw error;
}
try {
property = binding3[4];
} catch (error) {
env1_8(false);
throw error;
}
try {
value10 = binding(property);
} catch (error) {
env1_8(false);
throw error;
}
try {
ParentalControlledSpendingLimit = value10.ParentalControlledSpendingLimit;
} catch (error) {
env1_8(false);
throw error;
}
try {
updateControlledSetting = ParentalControlledSpendingLimit.updateControlledSetting;
} catch (error) {
env1_8(false);
throw error;
}
try {
} catch (error) {
env1_8(false);
throw error;
}
try {
value11 = Reflect.apply(updateControlledSetting, ParentalControlledSpendingLimit, [require, null]);
} catch (error) {
env1_8(false);
throw error;
}
yield value11;
try {
value12 = undefined;
value13 = false;
} catch (error) {
env1_8(false);
throw error;
}
if (value13) {
env1_8(false);
return value12;
}
env1_8(false);
return undefined;
}
try {
binding = env1_7;
} catch (error) {
env1_8(false);
throw error;
}
try {
value3 = binding == null;
} catch (error) {
env1_8(false);
throw error;
}
if (value3) {
env1_8(false);
return undefined;
}
try {
binding = env2_0;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding2 = env2_1;
} catch (error) {
env1_8(false);
throw error;
}
try {
property = binding2[4];
} catch (error) {
env1_8(false);
throw error;
}
try {
value5 = binding(property);
} catch (error) {
env1_8(false);
throw error;
}
try {
ParentalControlledSpendingLimit = value5.ParentalControlledSpendingLimit;
} catch (error) {
env1_8(false);
throw error;
}
try {
updateControlledSetting = ParentalControlledSpendingLimit.updateControlledSetting;
} catch (error) {
env1_8(false);
throw error;
}
try {
} catch (error) {
env1_8(false);
throw error;
}
try {
object2 = {};
} catch (error) {
env1_8(false);
throw error;
}
try {
binding = env1_7;
} catch (error) {
env1_8(false);
throw error;
}
try {
object2.amount = binding;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding = env1_2;
} catch (error) {
env1_8(false);
throw error;
}
try {
object2.currency = binding;
} catch (error) {
env1_8(false);
throw error;
}
try {
value6 = Reflect.apply(updateControlledSetting, ParentalControlledSpendingLimit, [require, object2]);
} catch (error) {
env1_8(false);
throw error;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
env1_8(false);
throw error;
}
if (value8) {
env1_8(false);
return value7;
}
env1_8(false);
function useChangeSpendingLimitFormState(a0) { // fn#102122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:257, offset: 0x0222de75, size: 681 bytes, params: 2, frame: 31
const env0_0 = a0;
const value2 = undefined;
const ParentalControlledSpendingLimit = (ParentalControlledUserSettingsModule).ParentalControlledSpendingLimit;
const value3 = ParentalControlledSpendingLimit.useControlledSetting(a0);
const useStateFromStores = FluxModule.useStateFromStores;
const familyCenterStoreBinding = FamilyCenterStore;
const spendingLimit = Reflect.apply(useStateFromStores, FluxModule, [[familyCenterStoreBinding], function() {
return FamilyCenterStore.getSpendingLimit();
}]);
const value4 = FluxModule.useStateFromStores([familyCenterStoreBinding], _fun102124);
const value5 = null;
const currency = value5 == value3 ? value2 : value3.currency;
const r3 = value5 != currency ? currency : value5 == spendingLimit ? value2 : spendingLimit.currency;
let r5 = value5 != r3 ? r3 : 'usd';
const value7 = r5.toLowerCase();
const env0_2 = value7;
const CurrencyExponents = (PriceUtilsModule).CurrencyExponents;
let property = CurrencyExponents[value7];
const value8 = 2;
const r10 = value5 != property ? property : value8;
const env0_3 = r10;
let binding = env0_4;
let useMemo = binding.useMemo;
const value9 = Reflect.apply(useMemo, binding, [_fun102125, [value7]]);
useMemo = binding.useMemo;
const getNextRenewalDateLabel = (SpendingLimitUtilsModule).getNextRenewalDateLabel;
const value10 = Reflect.apply(useMemo, binding, [getNextRenewalDateLabel, []]);
const value12 = env0_3(binding.useState(_fun102126), value8);
property = value12[0];
var env0_4 = value12[1];
let useCallback = binding.useCallback;
const value13 = Reflect.apply(useCallback, binding, [_fun102127, [r10]]);
const r6 = property === '' && value5 != value3;
const float = global.parseFloat(property);
const Number = global.Number;
const r15 = !Number.isNaN(float) && float >= 0;
r5 = r6 || r15;
const r7 = r15 ? global.Math.round(float * exponentiationOperator(10, r10, float)) : value5;
binding = env0_4;
const value20 = env0_3(binding.useState(false), value8);
const property2 = value20[0];
const env0_8 = value20[1];
useCallback = binding.useCallback;
let value = env0_2(_fun102129);
value = Reflect.apply(useCallback, binding, [value, [r5, r6, r7, a0, value7]]);
return {amountInput: property, handleAmountChange: value13, currency: value7, currencySymbol: value9, exponent: r10,
isClearingCap: r6, isOverspending: value5 != value4 && value4 > 0 && value5 != r7 && r7 <= value4, canSave: r5,
isSubmitting: property2, renewalDate: value10, monthlySpend: value4, save: value};
function _fun102124() { // fn#102124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:472, offset: 0x0222e133, size: 48 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = FamilyCenterStore.getMonthlyPurchases();
const value2 = null;
const total_amount = value2 == value ? undefined : value.total_amount;
return value2 != total_amount ? total_amount : value2;
}
function _fun102125() { // fn#102125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:726, offset: 0x0222e163, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (SpendingLimitUtilsModule).getCurrencySymbol(env0_2);
}
function _fun102126() { // fn#102126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:827, offset: 0x0222e190, size: 62 bytes, params: 1, frame: 14
var r0;
var String;
var value;
if (env0_1 == null) {
r0 = '';
} else {
String = global.String;
value = env0_1.amount / exponentiationOperator(10, env0_3, undefined);
value = String(value);
r0 = value;
}
return r0;
}
function _fun102127(a0) { // fn#102127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:907, offset: 0x0222e1ce, size: 58 bytes, params: 2, frame: 15
const binding = env0_4;
return binding(SpendingLimitUtilsModule.sanitizeAmountInput(a0, env0_3));
}
function* _fun102129() { // fn#102129, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13611:1106, offset: 0x0222e213, size: 250 bytes, params: 1, frame: 17
var familyCenterStoreBinding;
var binding;
var value3;
var binding2;
var property;
var value5;
var ParentalControlledSpendingLimit;
var updateControlledSetting;
var object;
var value6;
var value7;
var value8;
var value9;
var binding3;
var value10;
var value11;
var value12;
var value13;
var error;
if (true) {
value = environment.__proto__;
if (env1_6) {
env1_8(true);
try {
familyCenterStoreBinding = FamilyCenterStore;
} catch (error) {
env1_8(false);
throw error;
}
if (familyCenterStoreBinding) {
value9 = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding3 = env2_1;
} catch (error) {
env1_8(false);
throw error;
}
try {
property = binding3[4];
} catch (error) {
env1_8(false);
throw error;
}
try {
value10 = binding(property);
} catch (error) {
env1_8(false);
throw error;
}
try {
ParentalControlledSpendingLimit = value10.ParentalControlledSpendingLimit;
} catch (error) {
env1_8(false);
throw error;
}
try {
updateControlledSetting = ParentalControlledSpendingLimit.updateControlledSetting;
} catch (error) {
env1_8(false);
throw error;
}
try {
} catch (error) {
env1_8(false);
throw error;
}
try {
value11 = Reflect.apply(updateControlledSetting, ParentalControlledSpendingLimit, [require, null]);
} catch (error) {
env1_8(false);
throw error;
}
yield value11;
try {
value12 = undefined;
value13 = false;
} catch (error) {
env1_8(false);
throw error;
}
if (value13) {
env1_8(false);
return value12;
}
env1_8(false);
return undefined;
}
try {
binding = env1_7;
} catch (error) {
env1_8(false);
throw error;
}
try {
value3 = binding == null;
} catch (error) {
env1_8(false);
throw error;
}
if (value3) {
env1_8(false);
return undefined;
}
try {
binding = env2_0;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding2 = env2_1;
} catch (error) {
env1_8(false);
throw error;
}
try {
property = binding2[4];
} catch (error) {
env1_8(false);
throw error;
}
try {
value5 = binding(property);
} catch (error) {
env1_8(false);
throw error;
}
try {
ParentalControlledSpendingLimit = value5.ParentalControlledSpendingLimit;
} catch (error) {
env1_8(false);
throw error;
}
try {
updateControlledSetting = ParentalControlledSpendingLimit.updateControlledSetting;
} catch (error) {
env1_8(false);
throw error;
}
try {
} catch (error) {
env1_8(false);
throw error;
}
try {
object = {};
} catch (error) {
env1_8(false);
throw error;
}
try {
binding = env1_7;
} catch (error) {
env1_8(false);
throw error;
}
try {
object.amount = binding;
} catch (error) {
env1_8(false);
throw error;
}
try {
binding = env1_2;
} catch (error) {
env1_8(false);
throw error;
}
try {
object.currency = binding;
} catch (error) {
env1_8(false);
throw error;
}
try {
value6 = Reflect.apply(updateControlledSetting, ParentalControlledSpendingLimit, [require, object]);
} catch (error) {
env1_8(false);
throw error;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
env1_8(false);
throw error;
}
if (value8) {
env1_8(false);
return value7;
}
env1_8(false);
}
}
}
}
}
global.__d(_fun102121, 13421, [5, 57, 31, 5116, 13348, 566, 5138, 13350,
2]) /* metro module 13421, dependencies: [5, 57, 31, 5116, 13348, 566, 5138, 13350, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2224; source: modules/parent_tools/FamilyCenter.messages.js; dependencies: [1247, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 1282, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22634(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:6, offset: 0x00f043fc, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22635, cs: cs_22637, da: da_22639, de: de_22641, el: el_22643};
object2['en-GB'] = _fun22645;
object2['es-419'] = _fun22647;
object2['es-ES'] = _fun22649;
object2.fi = fi_22651;
object2.fr = fr_22653;
object2.hi = hi_22655;
object2.hr = hr_22657;
object2.hu = hu_22659;
object2.it = it_22661;
object2.ja = ja_22663;
object2.ko = ko_22665;
object2.lt = lt_22667;
object2.nl = nl_22669;
object2.no = no_22671;
object2.pl = pl_22673;
object2['pt-BR'] = _fun22675;
object2.ro = ro_22677;
object2.ru = ru_22679;
object2['sv-SE'] = _fun22681;
object2.th = th_22683;
object2.tr = tr_22685;
object2.uk = uk_22687;
object2.vi = vi_22689;
object2['zh-CN'] = _fun22691;
object2['zh-TW'] = _fun22693;
object2['en-US'] = _fun22695;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenter.messages.js');
object = {bg: bg_22635, cs: cs_22637, da: da_22639, de: de_22641, el: el_22643};
object['en-GB'] = _fun22645;
object['es-419'] = _fun22647;
object['es-ES'] = _fun22649;
object.fi = fi_22651;
object.fr = fr_22653;
object.hi = hi_22655;
object.hr = hr_22657;
object.hu = hu_22659;
object.it = it_22661;
object.ja = ja_22663;
object.ko = ko_22665;
object.lt = lt_22667;
object.nl = nl_22669;
object.no = no_22671;
object.pl = pl_22673;
object['pt-BR'] = _fun22675;
object.ro = ro_22677;
object.ru = ru_22679;
object['sv-SE'] = _fun22681;
object.th = th_22683;
object.tr = tr_22685;
object.uk = uk_22687;
object.vi = vi_22689;
object['zh-CN'] = _fun22691;
object['zh-TW'] = _fun22693;
object['en-US'] = _fun22695;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenter.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22635() { // fn#22635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:102, offset: 0x00f045c1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2225) /* metro dependency 2225 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22637() { // fn#22637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:165, offset: 0x00f04602, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2226) /* metro dependency 2226 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22639() { // fn#22639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:228, offset: 0x00f04643, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2227) /* metro dependency 2227 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22641() { // fn#22641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:291, offset: 0x00f04684, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2228) /* metro dependency 2228 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22643() { // fn#22643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:354, offset: 0x00f046c5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2229) /* metro dependency 2229 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22645() { // fn#22645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:422, offset: 0x00f04706, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2230) /* metro dependency 2230 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22647() { // fn#22647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:491, offset: 0x00f04747, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2231) /* metro dependency 2231 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22649() { // fn#22649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:559, offset: 0x00f04788, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2232) /* metro dependency 2232 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22651() { // fn#22651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:622, offset: 0x00f047c9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2233) /* metro dependency 2233 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22653() { // fn#22653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:685, offset: 0x00f0480a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2234) /* metro dependency 2234 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22655() { // fn#22655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:749, offset: 0x00f0484b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2235) /* metro dependency 2235 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22657() { // fn#22657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:813, offset: 0x00f0488c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2236) /* metro dependency 2236 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22659() { // fn#22659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:877, offset: 0x00f048cd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2237) /* metro dependency 2237 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22661() { // fn#22661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:941, offset: 0x00f0490e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2238) /* metro dependency 2238 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22663() { // fn#22663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1005, offset: 0x00f0494f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2239) /* metro dependency 2239 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22665() { // fn#22665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1069, offset: 0x00f04990, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2240) /* metro dependency 2240 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22667() { // fn#22667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1133, offset: 0x00f049d1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2241) /* metro dependency 2241 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22669() { // fn#22669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1197, offset: 0x00f04a12, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2242) /* metro dependency 2242 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22671() { // fn#22671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1261, offset: 0x00f04a53, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2243) /* metro dependency 2243 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22673() { // fn#22673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1325, offset: 0x00f04a94, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2244) /* metro dependency 2244 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22675() { // fn#22675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1394, offset: 0x00f04ad5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2245) /* metro dependency 2245 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22677() { // fn#22677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1458, offset: 0x00f04b16, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2246) /* metro dependency 2246 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22679() { // fn#22679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1522, offset: 0x00f04b57, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2247) /* metro dependency 2247 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22681() { // fn#22681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1591, offset: 0x00f04b98, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2248) /* metro dependency 2248 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22683() { // fn#22683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1655, offset: 0x00f04bd9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2249) /* metro dependency 2249 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22685() { // fn#22685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1719, offset: 0x00f04c1a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2250) /* metro dependency 2250 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22687() { // fn#22687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1783, offset: 0x00f04c5b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2251) /* metro dependency 2251 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22689() { // fn#22689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1847, offset: 0x00f04c9c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2252) /* metro dependency 2252 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22691() { // fn#22691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1916, offset: 0x00f04cdd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2253) /* metro dependency 2253 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22693() { // fn#22693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1985, offset: 0x00f04d1e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2254) /* metro dependency 2254 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22695() { // fn#22695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:2054, offset: 0x00f04d5f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2255) /* metro dependency 2255 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22635() { // fn#22635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:102, offset: 0x00f045c1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2225) /* metro dependency 2225 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22637() { // fn#22637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:165, offset: 0x00f04602, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2226) /* metro dependency 2226 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22639() { // fn#22639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:228, offset: 0x00f04643, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2227) /* metro dependency 2227 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22641() { // fn#22641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:291, offset: 0x00f04684, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2228) /* metro dependency 2228 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22643() { // fn#22643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:354, offset: 0x00f046c5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2229) /* metro dependency 2229 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22645() { // fn#22645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:422, offset: 0x00f04706, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2230) /* metro dependency 2230 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22647() { // fn#22647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:491, offset: 0x00f04747, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2231) /* metro dependency 2231 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22649() { // fn#22649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:559, offset: 0x00f04788, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2232) /* metro dependency 2232 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22651() { // fn#22651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:622, offset: 0x00f047c9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2233) /* metro dependency 2233 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22653() { // fn#22653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:685, offset: 0x00f0480a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2234) /* metro dependency 2234 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22655() { // fn#22655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:749, offset: 0x00f0484b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2235) /* metro dependency 2235 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22657() { // fn#22657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:813, offset: 0x00f0488c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2236) /* metro dependency 2236 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22659() { // fn#22659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:877, offset: 0x00f048cd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2237) /* metro dependency 2237 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22661() { // fn#22661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:941, offset: 0x00f0490e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2238) /* metro dependency 2238 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22663() { // fn#22663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1005, offset: 0x00f0494f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2239) /* metro dependency 2239 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22665() { // fn#22665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1069, offset: 0x00f04990, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2240) /* metro dependency 2240 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22667() { // fn#22667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1133, offset: 0x00f049d1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2241) /* metro dependency 2241 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22669() { // fn#22669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1197, offset: 0x00f04a12, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2242) /* metro dependency 2242 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22671() { // fn#22671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1261, offset: 0x00f04a53, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2243) /* metro dependency 2243 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22673() { // fn#22673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1325, offset: 0x00f04a94, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2244) /* metro dependency 2244 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22675() { // fn#22675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1394, offset: 0x00f04ad5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2245) /* metro dependency 2245 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22677() { // fn#22677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1458, offset: 0x00f04b16, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2246) /* metro dependency 2246 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22679() { // fn#22679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1522, offset: 0x00f04b57, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2247) /* metro dependency 2247 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22681() { // fn#22681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1591, offset: 0x00f04b98, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2248) /* metro dependency 2248 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22683() { // fn#22683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1655, offset: 0x00f04bd9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2249) /* metro dependency 2249 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22685() { // fn#22685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1719, offset: 0x00f04c1a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2250) /* metro dependency 2250 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22687() { // fn#22687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1783, offset: 0x00f04c5b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2251) /* metro dependency 2251 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22689() { // fn#22689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1847, offset: 0x00f04c9c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2252) /* metro dependency 2252 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22691() { // fn#22691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1916, offset: 0x00f04cdd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2253) /* metro dependency 2253 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22693() { // fn#22693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:1985, offset: 0x00f04d1e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2254) /* metro dependency 2254 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22695() { // fn#22695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2351:2054, offset: 0x00f04d5f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2255) /* metro dependency 2255 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22634, 2224, [1247, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237,
2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255,
1282,
2]) /* metro module 2224, dependencies: [1247, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 1282, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,63 +1,68 @@
/* Metro module 13417; source: modules/parent_tools/FamilyCenterActivityGiftRowUtils.tsx; dependencies: [1244, 3381, 5137, 2224, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as Module03381Module from '../../by-id/module-03381.js'; /* Metro dependency 3381 */
function _fun102085(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13607:6, offset: 0x0222bd2e, size: 135 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const closure = formatGiftDate;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterActivityGiftRowUtils.tsx');
const formatGiftDate2 = formatGiftDate;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterActivityGiftRowUtils.tsx');
exports.getGiftRowDisplayInfo = function(a0) {
return {skuId: a0.sku_id, subscriptionPlanId: a0.subscription_plan_id, price: a0.price,
gifterUserId: a0.gifter_user_id, claimed: a0.claimed, offeredAt: a0.offered_at, claimedAt: a0.claimed_at};
};
exports.formatGiftDate = closure;
exports.formatGiftDate = formatGiftDate2;
exports.getGiftSubtext = getGiftSubtext;
}
function formatGiftDate(a0) { // fn#102086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13607:111, offset: 0x0222bdb5, size: 121 bytes, params: 2, frame: 16
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'month': 'short', 'day': 'numeric'});
const format = dateTimeFormat.format;
const moduleValue = require(3381) /* metro dependency 3381 */;
return Reflect.apply(format, dateTimeFormat, [moduleValue.parseISO(a0)]);
}
function getGiftSubtext({claimed, price, gifterName, offeredAt, claimedAt}) { // fn#102088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13607:560, offset: 0x0222be83, size: 361 bytes, params: 2, frame: 22
var r8;
var r0;
var moduleValue;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var gAG45y;
var object4;
var kDyllq;
var object5;
let value = null;
if (value != price) {
moduleValue = require(5137) /* metro dependency 5137: PriceUtils */;
r8 = moduleValue.formatPrice(price.amount, price.currency);
} else {
r8 = value;
function formatGiftDate(a0) { // fn#102086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13607:111, offset: 0x0222bdb5, size: 121 bytes, params: 2, frame: 16
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((IndexNativeModule).intl.currentLocale,
{'month': 'short', 'day': 'numeric'});
const format = dateTimeFormat.format;
return Reflect.apply(format, dateTimeFormat, [Module03381Module.parseISO(a0)]);
}
const items = [value == r8 ? value != r8 ? r8 : value : value != gifterName ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['o44n/1'],
{price: r8, username: gifterName}) : value != r8 ? r8 : value];
const formatToPlainString = intl.formatToPlainString;
const defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
if (claimed) {
kDyllq = defaultImport.kDyllq;
object5 = {};
object5.date = formatGiftDate(value == claimedAt ? offeredAt : claimedAt);
value = Reflect.apply(formatToPlainString, intl, [kDyllq, object5]);
r0 = value;
} else {
gAG45y = defaultImport.gAG45y;
object4 = {};
object4.date = formatGiftDate(offeredAt);
r0 = Reflect.apply(formatToPlainString, intl, [gAG45y, object4]);
function getGiftSubtext({claimed, price, gifterName, offeredAt, claimedAt}) { // fn#102088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13607:560, offset: 0x0222be83, size: 361 bytes, params: 2, frame: 22
var r8;
var r0;
var moduleValue;
const intl = (IndexNativeModule).intl;
var gAG45y;
var object;
var kDyllq;
var object2;
let value = null;
if (value != price) {
moduleValue = require(5137) /* metro dependency 5137: PriceUtils */;
r8 = moduleValue.formatPrice(price.amount, price.currency);
} else {
r8 = value;
}
const items2 = [value == r8 ? value != r8 ? r8 : value : value != gifterName ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['o44n/1'],
{price: r8, username: gifterName}) : value != r8 ? r8 : value];
const formatToPlainString = intl.formatToPlainString;
const defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
if (claimed) {
kDyllq = defaultImport.kDyllq;
object2 = {};
object2.date = formatGiftDate(value == claimedAt ? offeredAt : claimedAt);
value = Reflect.apply(formatToPlainString, intl, [kDyllq, object2]);
r0 = value;
} else {
gAG45y = defaultImport.gAG45y;
object = {};
object.date = formatGiftDate(offeredAt);
r0 = Reflect.apply(formatToPlainString, intl, [gAG45y, object]);
}
items2[1] = r0;
const filter = items2.filter;
const Boolean = global.Boolean;
return Reflect.apply(filter, items2, [Boolean]).join(' • ');
}
items[1] = r0;
const filter = items.filter;
const Boolean = global.Boolean;
return Reflect.apply(filter, items, [Boolean]).join(' • ');
}
global.__d(_fun102085, 13417, [1244, 3381, 5137, 2224,
2]) /* metro module 13417, dependencies: [1244, 3381, 5137, 2224, 2] */;
@@ -1,19 +1,21 @@
/* Metro module 13415; source: modules/parent_tools/FamilyCenterActivityPurchaseRowUtils.tsx; dependencies: [5126, 5127, 1880, 1904, 1244, 2224, 1423, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as PremiumConstantsModule from '../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as CollectiblesItemTypeModule from '../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
import * as AvatarDecorationRecordModule from '../collectibles/records/AvatarDecorationRecord.tsx'; /* Metro dependency 5126 */
import * as ProfileEffectRecordModule from '../collectibles/records/ProfileEffectRecord.tsx'; /* Metro dependency 5127 */
function _fun102071(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:6, offset: 0x0222b070, size: 277 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(5126) /* metro dependency 5126: AvatarDecorationRecord */).isAvatarDecorationRecord;
const env0_4 = (require(5127) /* metro dependency 5127: ProfileEffectRecord */).isProfileEffectRecord;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_5 = premiumConstantsModule.PremiumSubscriptionSKUs;
const env0_6 = premiumConstantsModule.SubscriptionPlanInfo;
const closure = getCollectibleTypeName;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterActivityPurchaseRowUtils.tsx');
const getCollectibleTypeName2 = getCollectibleTypeName;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterActivityPurchaseRowUtils.tsx');
exports.PREVIEW_SIZE = 40;
exports.NAMEPLATE_ASPECT_RATIO = 5.333333333333333;
exports.PROFILE_FRAME_ASPECT_RATIO = 0.66;
exports.getCollectibleTypeName = closure;
exports.getCollectibleTypeName = getCollectibleTypeName2;
exports.getAvatarDecorationPreviewUrl = getAvatarDecorationPreviewUrl;
exports.getProfileEffectPreviewUrl = getProfileEffectPreviewUrl;
exports.isGuildBoostSubscription = function(a0) {
@@ -23,88 +25,90 @@ function _fun102071(global, require, importDefault, importAll, module, exports,
return SubscriptionPlanInfo[a0]?.skuId === PremiumSubscriptionSKUs.GUILD;
};
exports.getPurchaseDisplayInfo = getPurchaseDisplayInfo;
}
function getCollectibleTypeName(a0) { // fn#102072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:249, offset: 0x0222b185, size: 496 bytes, params: 2, frame: 15
const intl = (IndexNativeModule).intl;
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
if (AVATAR_DECORATION === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).obi47v);
}
const PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (PROFILE_EFFECT === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RX8BMR);
}
const NAMEPLATE = CollectiblesItemType.NAMEPLATE;
if (NAMEPLATE === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).nNGEHk);
}
const BUNDLE = CollectiblesItemType.BUNDLE;
if (BUNDLE === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VS1fKo);
}
const PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (PROFILE_FRAME === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JiIY1l);
}
return '';
}
function getCollectibleTypeName(a0) { // fn#102072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:249, offset: 0x0222b185, size: 496 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
if (AVATAR_DECORATION === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).obi47v);
function getAvatarDecorationPreviewUrl(a0) { // fn#102073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1000, offset: 0x0222b375, size: 119 bytes, params: 2, frame: 14
var r0;
if (a0.items.length === 0) {
return null;
}
const property = a0.items[0];
var value;
if (isAvatarDecorationRecord(property)) {
value = require(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getAvatarDecorationURL({'avatarDecoration': null, 'size': 40, 'canAnimate': true,
avatarDecoration: {asset: property.asset}});
r0 = value;
} else {
r0 = null;
}
return r0;
}
const PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (PROFILE_EFFECT === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RX8BMR);
}
const NAMEPLATE = CollectiblesItemType.NAMEPLATE;
if (NAMEPLATE === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).nNGEHk);
}
const BUNDLE = CollectiblesItemType.BUNDLE;
if (BUNDLE === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VS1fKo);
}
const PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (PROFILE_FRAME === a0) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JiIY1l);
}
return '';
}
function getAvatarDecorationPreviewUrl(a0) { // fn#102073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1000, offset: 0x0222b375, size: 119 bytes, params: 2, frame: 14
var r0;
if (a0.items.length === 0) {
return null;
function getProfileEffectPreviewUrl(a0) { // fn#102074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1191, offset: 0x0222b3ec, size: 61 bytes, params: 2, frame: 11
if (a0.items.length === 0) {
return null;
}
const property = a0.items[0];
return isProfileEffectRecord(property) ? property.thumbnailPreviewSrc : null;
}
const property = a0.items[0];
var value;
if (isAvatarDecorationRecord(property)) {
value = require(1423) /* metro dependency 1423: AvatarUtils */;
value = value.getAvatarDecorationURL({'avatarDecoration': null, 'size': 40, 'canAnimate': true,
avatarDecoration: {asset: property.asset}});
r0 = value;
} else {
r0 = null;
}
return r0;
}
function getProfileEffectPreviewUrl(a0) { // fn#102074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1191, offset: 0x0222b3ec, size: 61 bytes, params: 2, frame: 11
if (a0.items.length === 0) {
return null;
}
const property = a0.items[0];
return isProfileEffectRecord(property) ? property.thumbnailPreviewSrc : null;
}
function getPurchaseDisplayInfo(a0, a1) { // fn#102076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1415, offset: 0x0222b45f, size: 108 bytes, params: 3, frame: 16
var name;
var r2;
var r3;
var value2;
var property;
const value = a1 != null;
if (a0 != null) {
name = a0.name;
r2 = getCollectibleTypeName(a0.type);
r3 = name;
} else {
value2 = undefined;
if (value) {
if (a1 != null) {
property = SubscriptionPlanInfo[a1];
name = property == null ? value2 : property.name;
r2 = value2;
r3 = name;
function getPurchaseDisplayInfo(a0, a1) { // fn#102076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13605:1415, offset: 0x0222b45f, size: 108 bytes, params: 3, frame: 16
var name;
var r2;
var r3;
var value2;
var property;
const value = a1 != null;
if (a0 != null) {
name = a0.name;
r2 = getCollectibleTypeName(a0.type);
r3 = name;
} else {
value2 = undefined;
if (value) {
if (a1 != null) {
property = SubscriptionPlanInfo[a1];
name = property == null ? value2 : property.name;
r2 = value2;
r3 = name;
} else {
r2 = value2;
r3 = value2;
}
} else {
r2 = value2;
r3 = value2;
}
} else {
r2 = value2;
r3 = value2;
}
return {displayName: r3, typeName: r2, isSubscription: value};
}
return {displayName: r3, typeName: r2, isSubscription: value};
}
global.__d(_fun102071, 13415, [5126, 5127, 1880, 1904, 1244, 2224, 1423,
2]) /* metro module 13415, dependencies: [5126, 5127, 1880, 1904, 1244, 2224, 1423, 2] */;
@@ -1,28 +1,33 @@
/* Metro module 13876; source: modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx; dependencies: [5116, 5118, 2] */
import FamilyCenterStore from './FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun105502(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14073:6, offset: 0x022bb0eb, size: 114 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx');
exports.prefetchFamilyCenterAgeGroupWhen = prefetchFamilyCenterAgeGroupWhen;
}
function prefetchFamilyCenterAgeGroupWhen(a0) { // fn#105503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14073:228, offset: 0x022bb15d, size: 105 bytes, params: 2, frame: 11
var r0;
let value = a0;
if (value) {
value = FamilyCenterStore.getAgeGroup();
value = value == null;
r0 = value;
} else {
r0 = value;
}
if (r0) {
if (!FamilyCenterStore.isLoading()) {
if (FamilyCenterStore.canRefetch()) {
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).initialPageLoad();
function prefetchFamilyCenterAgeGroupWhen(a0) { // fn#105503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14073:228, offset: 0x022bb15d, size: 105 bytes, params: 2, frame: 11
var r0;
var familyCenterStoreBinding;
let value = a0;
if (value) {
value = FamilyCenterStore.getAgeGroup();
value = value == null;
r0 = value;
} else {
r0 = value;
}
if (r0) {
if (!Reflect.apply(FamilyCenterStore.isLoading, familyCenterStoreBinding, [])) {
familyCenterStoreBinding = FamilyCenterStore;
if (familyCenterStoreBinding.canRefetch()) {
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).initialPageLoad();
}
}
}
}
}
global.__d(_fun105502, 13876, [5116, 5118, 2]) /* metro module 13876, dependencies: [5116, 5118, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 12632; source: modules/parent_tools/FamilyCenterConnectionPrereqExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun96906(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12822:6, offset: 0x0216b761, size: 145 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-family-center-connection-prereq', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterConnectionPrereqExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterConnectionPrereqExperiment.tsx');
exports.FamilyCenterConnectionPrereqExperiment = value;
}
global.__d(_fun96906, 12632, [1854, 2]) /* metro module 12632, dependencies: [1854, 2] */;
@@ -1,6 +1,10 @@
/* Metro module 5117; source: modules/parent_tools/FamilyCenterConstants.tsx; dependencies: [672, 484, 1244, 2224, 2] */
import FamilyCenterMessages from './FamilyCenter.messages.js'; /* Metro dependency 2224 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PathUtilsModule from '../../external/discord_common/js/shared/utils/PathUtils.tsx'; /* Metro dependency 484 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun44769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6, offset: 0x01178468, size: 2170 bytes, params: 8, frame: 42
var object5;
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
@@ -13,111 +17,110 @@ function _fun44769(global, require, importDefault, importAll, module, exports, d
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
MINUTE = Millis.MINUTE;
const value3 = 5 * MINUTE;
const pathUtilsModule = require(484) /* metro dependency 484: PathUtils */;
const wrapPaths = pathUtilsModule.wrapPaths;
const wrapPaths = PathUtilsModule.wrapPaths;
Object = global.Object;
const value6 = Reflect.apply(wrapPaths, pathUtilsModule,
const value6 = Reflect.apply(wrapPaths, PathUtilsModule,
[Object.freeze({'FAMILY_CENTER_SETTINGS': '/family-center/settings',
'FAMILY_CENTER_MY_FAMILY': '/family-center/my-family'}), [':', '?', '@']]);
object5 = {DM_MESSAGE_SEND: 1};
object5[1] = 'DM_MESSAGE_SEND';
object5.GDM_MESSAGE_SEND = 2;
object5[2] = 'GDM_MESSAGE_SEND';
object5.MESSAGE_REACT = 3;
object5[3] = 'MESSAGE_REACT';
object5.ADD_FRIEND = 4;
object5[4] = 'ADD_FRIEND';
object5.SEND_CALL = 5;
object5[5] = 'SEND_CALL';
object5.CALL_JOIN = 6;
object5[6] = 'CALL_JOIN';
object5.GUILD_JOIN = 7;
object5[7] = 'GUILD_JOIN';
object5.GUILD_MESSAGE_SEND = 8;
object5[8] = 'GUILD_MESSAGE_SEND';
object5.GUILD_VC_JOIN = 9;
object5[9] = 'GUILD_VC_JOIN';
object5.GUILD_VOICE_CHANNEL_LEAVE = 10;
object5[10] = 'GUILD_VOICE_CHANNEL_LEAVE';
object5.CALL_LEAVE = 11;
object5[11] = 'CALL_LEAVE';
object5.CALL_START = 12;
object5[12] = 'CALL_START';
object5.INVOICE_COMPLETE = 13;
object5[13] = 'INVOICE_COMPLETE';
const object7 = {PARENT: 1};
object7[1] = 'PARENT';
object7.CHILD = 2;
object7[2] = 'CHILD';
const object10 = {PENDING: 1};
object10[1] = 'PENDING';
object10.ACTIVE = 2;
object10[2] = 'ACTIVE';
object10.INACTIVE = 3;
object10[3] = 'INACTIVE';
object10.DECLINED = 4;
object10[4] = 'DECLINED';
object10.EXPIRED = 5;
object10[5] = 'EXPIRED';
const object11 = {USER_ADD: 1};
object11[1] = 'USER_ADD';
object11.GUILD_ADD = 2;
object11[2] = 'GUILD_ADD';
object11.USER_INTERACTION = 3;
object11[3] = 'USER_INTERACTION';
object11.GUILD_INTERACTION = 4;
object11[4] = 'GUILD_INTERACTION';
object11.USER_CALLED = 5;
object11[5] = 'USER_CALLED';
object11.TOTAL_VOICE_MINUTES = 6;
object11[6] = 'TOTAL_VOICE_MINUTES';
object11.PURCHASES = 7;
object11[7] = 'PURCHASES';
object11.GIFTS = 8;
object11[8] = 'GIFTS';
const object12 = {ACTIVITY: 0};
object12[0] = 'ACTIVITY';
object12.REQUESTS = 1;
object12[1] = 'REQUESTS';
object12.SETTINGS = 2;
object12[2] = 'SETTINGS';
object12.CONTENT_AND_SOCIAL = 3;
object12[3] = 'CONTENT_AND_SOCIAL';
object12.DATA_AND_PRIVACY = 4;
object12[4] = 'DATA_AND_PRIVACY';
object12.SCREEN_TIME_CONTROLS = 5;
object12[5] = 'SCREEN_TIME_CONTROLS';
const object13 = {SIDENAV: 0};
object13[0] = 'SIDENAV';
object13.SETTINGS = 1;
object13[1] = 'SETTINGS';
const object14 = {TabChange: 0};
object14[0] = 'TabChange';
object14.ShowQRCodeModal = 1;
object14[1] = 'ShowQRCodeModal';
object14.RevealQRCode = 2;
object14[2] = 'RevealQRCode';
object14.ScanQRCodeButton = 3;
object14[3] = 'ScanQRCodeButton';
object14.ScanQRCode = 4;
object14[4] = 'ScanQRCode';
object14.LoadMore = 5;
object14[5] = 'LoadMore';
object14.SelectTeen = 6;
object14[6] = 'SelectTeen';
object14.HideQRCode = 7;
object14[7] = 'HideQRCode';
object14.NufConsentGateLinkCodeError = 8;
object14[8] = 'NufConsentGateLinkCodeError';
object = {DM_MESSAGE_SEND: 1};
object[1] = 'DM_MESSAGE_SEND';
object.GDM_MESSAGE_SEND = 2;
object[2] = 'GDM_MESSAGE_SEND';
object.MESSAGE_REACT = 3;
object[3] = 'MESSAGE_REACT';
object.ADD_FRIEND = 4;
object[4] = 'ADD_FRIEND';
object.SEND_CALL = 5;
object[5] = 'SEND_CALL';
object.CALL_JOIN = 6;
object[6] = 'CALL_JOIN';
object.GUILD_JOIN = 7;
object[7] = 'GUILD_JOIN';
object.GUILD_MESSAGE_SEND = 8;
object[8] = 'GUILD_MESSAGE_SEND';
object.GUILD_VC_JOIN = 9;
object[9] = 'GUILD_VC_JOIN';
object.GUILD_VOICE_CHANNEL_LEAVE = 10;
object[10] = 'GUILD_VOICE_CHANNEL_LEAVE';
object.CALL_LEAVE = 11;
object[11] = 'CALL_LEAVE';
object.CALL_START = 12;
object[12] = 'CALL_START';
object.INVOICE_COMPLETE = 13;
object[13] = 'INVOICE_COMPLETE';
const object2 = {PARENT: 1};
object2[1] = 'PARENT';
object2.CHILD = 2;
object2[2] = 'CHILD';
const object3 = {PENDING: 1};
object3[1] = 'PENDING';
object3.ACTIVE = 2;
object3[2] = 'ACTIVE';
object3.INACTIVE = 3;
object3[3] = 'INACTIVE';
object3.DECLINED = 4;
object3[4] = 'DECLINED';
object3.EXPIRED = 5;
object3[5] = 'EXPIRED';
const object4 = {USER_ADD: 1};
object4[1] = 'USER_ADD';
object4.GUILD_ADD = 2;
object4[2] = 'GUILD_ADD';
object4.USER_INTERACTION = 3;
object4[3] = 'USER_INTERACTION';
object4.GUILD_INTERACTION = 4;
object4[4] = 'GUILD_INTERACTION';
object4.USER_CALLED = 5;
object4[5] = 'USER_CALLED';
object4.TOTAL_VOICE_MINUTES = 6;
object4[6] = 'TOTAL_VOICE_MINUTES';
object4.PURCHASES = 7;
object4[7] = 'PURCHASES';
object4.GIFTS = 8;
object4[8] = 'GIFTS';
const object6 = {ACTIVITY: 0};
object6[0] = 'ACTIVITY';
object6.REQUESTS = 1;
object6[1] = 'REQUESTS';
object6.SETTINGS = 2;
object6[2] = 'SETTINGS';
object6.CONTENT_AND_SOCIAL = 3;
object6[3] = 'CONTENT_AND_SOCIAL';
object6.DATA_AND_PRIVACY = 4;
object6[4] = 'DATA_AND_PRIVACY';
object6.SCREEN_TIME_CONTROLS = 5;
object6[5] = 'SCREEN_TIME_CONTROLS';
const object8 = {SIDENAV: 0};
object8[0] = 'SIDENAV';
object8.SETTINGS = 1;
object8[1] = 'SETTINGS';
const object9 = {TabChange: 0};
object9[0] = 'TabChange';
object9.ShowQRCodeModal = 1;
object9[1] = 'ShowQRCodeModal';
object9.RevealQRCode = 2;
object9[2] = 'RevealQRCode';
object9.ScanQRCodeButton = 3;
object9[3] = 'ScanQRCodeButton';
object9.ScanQRCode = 4;
object9[4] = 'ScanQRCode';
object9.LoadMore = 5;
object9[5] = 'LoadMore';
object9.SelectTeen = 6;
object9[6] = 'SelectTeen';
object9.HideQRCode = 7;
object9[7] = 'HideQRCode';
object9.NufConsentGateLinkCodeError = 8;
object9[8] = 'NufConsentGateLinkCodeError';
const Map = global.Map;
const USER_INTERACTION = object11.USER_INTERACTION;
const USER_CALLED = object11.USER_CALLED;
const USER_ADD = object11.USER_ADD;
const GUILD_ADD = object11.GUILD_ADD;
const GUILD_INTERACTION = object11.GUILD_INTERACTION;
const TOTAL_VOICE_MINUTES = object11.TOTAL_VOICE_MINUTES;
const PURCHASES = object11.PURCHASES;
const GIFTS = object11.GIFTS;
const USER_INTERACTION = object4.USER_INTERACTION;
const USER_CALLED = object4.USER_CALLED;
const USER_ADD = object4.USER_ADD;
const GUILD_ADD = object4.GUILD_ADD;
const GUILD_INTERACTION = object4.GUILD_INTERACTION;
const TOTAL_VOICE_MINUTES = object4.TOTAL_VOICE_MINUTES;
const PURCHASES = object4.PURCHASES;
const GIFTS = object4.GIFTS;
const map = new Map([[USER_INTERACTION, {priority: 100, tooltipHeader: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).kvTgWP);
}, tooltipDescription: tooltipDescription, sectionHeader: function(a0) {
@@ -168,51 +171,51 @@ function _fun44769(global, require, importDefault, importAll, module, exports, d
}, sectionDescription: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).nH8vlc);
}}]]);
const object15 = {CHECK: 0};
object15[0] = 'CHECK';
object15.X = 1;
object15[1] = 'X';
const object16 = {GENERIC_ERROR: 0};
object16[0] = 'GENERIC_ERROR';
object16.INELIGIBLE_FOR_FAMILY_CENTER = 1;
object16[1] = 'INELIGIBLE_FOR_FAMILY_CENTER';
object16.PENDING_REQUEST_EXISTS = 2;
object16[2] = 'PENDING_REQUEST_EXISTS';
object16.MAX_CONNECTIONS_REACHED = 3;
object16[3] = 'MAX_CONNECTIONS_REACHED';
const object17 = {};
let INELIGIBLE_FOR_FAMILY_CENTER = object16.INELIGIBLE_FOR_FAMILY_CENTER;
object17[290000] = INELIGIBLE_FOR_FAMILY_CENTER;
let MAX_CONNECTIONS_REACHED = object16.MAX_CONNECTIONS_REACHED;
object17[290002] = MAX_CONNECTIONS_REACHED;
let PENDING_REQUEST_EXISTS = object16.PENDING_REQUEST_EXISTS;
object17[290005] = PENDING_REQUEST_EXISTS;
const object22 = {};
const GENERIC_ERROR = object16.GENERIC_ERROR;
let X = object15.X;
object22[GENERIC_ERROR] = {header: function() {
const object18 = {CHECK: 0};
object18[0] = 'CHECK';
object18.X = 1;
object18[1] = 'X';
const object19 = {GENERIC_ERROR: 0};
object19[0] = 'GENERIC_ERROR';
object19.INELIGIBLE_FOR_FAMILY_CENTER = 1;
object19[1] = 'INELIGIBLE_FOR_FAMILY_CENTER';
object19.PENDING_REQUEST_EXISTS = 2;
object19[2] = 'PENDING_REQUEST_EXISTS';
object19.MAX_CONNECTIONS_REACHED = 3;
object19[3] = 'MAX_CONNECTIONS_REACHED';
const object20 = {};
let INELIGIBLE_FOR_FAMILY_CENTER = object19.INELIGIBLE_FOR_FAMILY_CENTER;
object20[290000] = INELIGIBLE_FOR_FAMILY_CENTER;
let MAX_CONNECTIONS_REACHED = object19.MAX_CONNECTIONS_REACHED;
object20[290002] = MAX_CONNECTIONS_REACHED;
let PENDING_REQUEST_EXISTS = object19.PENDING_REQUEST_EXISTS;
object20[290005] = PENDING_REQUEST_EXISTS;
const object21 = {};
const GENERIC_ERROR = object19.GENERIC_ERROR;
let X = object18.X;
object21[GENERIC_ERROR] = {header: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).nGX8Co);
}, description: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).Uss2dn);
}, icon: X};
PENDING_REQUEST_EXISTS = object16.PENDING_REQUEST_EXISTS;
const CHECK = object15.CHECK;
object22[PENDING_REQUEST_EXISTS] = {header: function() {
PENDING_REQUEST_EXISTS = object19.PENDING_REQUEST_EXISTS;
const CHECK = object18.CHECK;
object21[PENDING_REQUEST_EXISTS] = {header: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).tu0MRv);
}, description: description_44808, icon: CHECK};
MAX_CONNECTIONS_REACHED = object16.MAX_CONNECTIONS_REACHED;
X = object15.X;
object22[MAX_CONNECTIONS_REACHED] = {header: header_44809, description: description_44810, icon: X};
INELIGIBLE_FOR_FAMILY_CENTER = object16.INELIGIBLE_FOR_FAMILY_CENTER;
X = object15.X;
object22[INELIGIBLE_FOR_FAMILY_CENTER] = {header: function() {
MAX_CONNECTIONS_REACHED = object19.MAX_CONNECTIONS_REACHED;
X = object18.X;
object21[MAX_CONNECTIONS_REACHED] = {header: header_44809, description: description_44810, icon: X};
INELIGIBLE_FOR_FAMILY_CENTER = object19.INELIGIBLE_FOR_FAMILY_CENTER;
X = object18.X;
object21[INELIGIBLE_FOR_FAMILY_CENTER] = {header: function() {
return require(dependencyMap[2]).intl.string(importDefault(dependencyMap[3]).W9JLJh);
}, description: function() {
var intl = require(dependencyMap[2]).intl;
var On5iRI = importDefault(dependencyMap[3]).On5iRI;
return intl.format(On5iRI, {link: 'https://support.discord.com/hc/requests/new?ticket_form_id=360000029731'});
}, icon: X};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterConstants.tsx');
exports.RESTRICTED_HOURS_LAYER_KEY = 'RESTRICTED_HOURS_LAYER';
exports.FAMILY_CENTER_REFETCH_COOLDOWN = value;
exports.FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT = value2;
@@ -228,159 +231,189 @@ function _fun44769(global, require, importDefault, importAll, module, exports, d
exports.QR_CODE_AUTO_HIDE_TIMEOUT = value3;
exports.PLACEHOLDER_QR_CODE_URL = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
exports.FAMILY_CENTER_SUB_ROUTES = value6;
exports.TeenActionType = object5;
exports.UserLinkType = object7;
exports.UserLinkStatus = object10;
exports.TeenActionDisplayType = object11;
exports.TeenActionType = object;
exports.UserLinkType = object2;
exports.UserLinkStatus = object3;
exports.TeenActionDisplayType = object4;
exports.FamilyCenterSubPages = {ACTIVITY: 'ACTIVITY', REQUESTS: 'REQUESTS', SETTINGS: 'SETTINGS',
CONTENT_AND_SOCIAL: 'CONTENT_AND_SOCIAL', DATA_AND_PRIVACY: 'DATA_AND_PRIVACY',
SCREEN_TIME_CONTROLS: 'SCREEN_TIME_CONTROLS'};
exports.FamilyCenterSubPageAnalyticsIds = object12;
exports.FamilyCenterSubPageAnalyticsIds = object6;
exports.FamilyCenterPageLocation = {SIDENAV: 'SIDENAV', SETTINGS: 'SETTINGS'};
exports.FamilyCenterPageLocationAnalyticsIds = object13;
exports.FamilyCenterAction = object14;
exports.FamilyCenterPageLocationAnalyticsIds = object8;
exports.FamilyCenterAction = object9;
exports.ACTION_TO_TEXT = map;
exports.FamilyCenterIconType = object15;
exports.FamilyCenterFailureCode = object16;
exports.FAMILY_CENTER_ERROR_CODE_TO_FAILURE = object17;
exports.FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES = object22;
exports.FamilyCenterIconType = object18;
exports.FamilyCenterFailureCode = object19;
exports.FAMILY_CENTER_ERROR_CODE_TO_FAILURE = object20;
exports.FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES = object21;
exports.PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER = PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER;
exports.ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER = ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER;
function tooltipDescription(a0) { // fn#44771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2480, offset: 0x01178d24, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.w4wmnb]) : Reflect.apply(string, intl, [FamilyCenterMessages.foTzbd]);
}
function sectionDescription(a0) { // fn#44773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2655, offset: 0x01178d24, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.w4wmnb]) : Reflect.apply(string, intl, [FamilyCenterMessages.foTzbd]);
}
function timestampFormatter() { // fn#44774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2751, offset: 0x01178dc3, size: 141 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
object.today = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fLBUx7);
object.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cHHgxI);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).qvKjp8;
return object;
}
function tooltipDescription_44776(a0) { // fn#44776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2971, offset: 0x01178e92, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.aiAhnQ]) : Reflect.apply(string, intl, [FamilyCenterMessages['4ufgdz']]);
}
function sectionDescription_44778(a0) { // fn#44778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3149, offset: 0x01178e92, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.aiAhnQ]) : Reflect.apply(string, intl, [FamilyCenterMessages['4ufgdz']]);
}
function timestampFormatter_44779() { // fn#44779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3248, offset: 0x01178f31, size: 141 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const IHd5cZ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IHd5cZ;
object.today = Reflect.apply(string, intl, [IHd5cZ]);
object.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).wOsfxv);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oCk8c4;
return object;
}
function tooltipDescription_44781(a0) { // fn#44781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3465, offset: 0x01179000, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.BkVb1X]) : Reflect.apply(string, intl, [FamilyCenterMessages.mpHHfa]);
}
function sectionDescription_44783(a0) { // fn#44783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3640, offset: 0x01179000, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.BkVb1X]) : Reflect.apply(string, intl, [FamilyCenterMessages.mpHHfa]);
}
function timestampFormatter_44784() { // fn#44784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3736, offset: 0x0117909f, size: 141 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const JUHIYZ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JUHIYZ;
object.today = Reflect.apply(string, intl, [JUHIYZ]);
string = intl.string;
const GiswUW = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GiswUW;
object.yesterday = Reflect.apply(string, intl, [GiswUW]);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['fwQgE/'];
return object;
}
function tooltipDescription_44786(a0) { // fn#44786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3957, offset: 0x0117916e, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.LVNgTD]) : Reflect.apply(string, intl, [FamilyCenterMessages.TA8GFt]);
}
function sectionDescription_44788(a0) { // fn#44788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4132, offset: 0x0117916e, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.LVNgTD]) : Reflect.apply(string, intl, [FamilyCenterMessages.TA8GFt]);
}
function tooltipDescription_44790(a0) { // fn#44790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4319, offset: 0x0117924f, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.BLgIrk]) : Reflect.apply(string, intl, [FamilyCenterMessages.sSJauZ]);
}
function sectionDescription_44792(a0) { // fn#44792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4491, offset: 0x0117924f, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.BLgIrk]) : Reflect.apply(string, intl, [FamilyCenterMessages.sSJauZ]);
}
function tooltipDescription_44798(a0) { // fn#44798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4963, offset: 0x011793fe, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.cqIdqZ]) : Reflect.apply(string, intl, [FamilyCenterMessages['85PtWu']]);
}
function sectionDescription_44800(a0) { // fn#44800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:5139, offset: 0x011793fe, size: 83 bytes, params: 2, frame: 14
const intl = (IndexNativeModule).intl;
const string = intl.string;
return a0 ? Reflect.apply(string, intl, [FamilyCenterMessages.cqIdqZ]) : Reflect.apply(string, intl, [FamilyCenterMessages['85PtWu']]);
}
function description_44808({email}) { // fn#44808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6125, offset: 0x01179632, size: 155 bytes, params: 2, frame: 17
const intl = (IndexNativeModule).intl;
return email != null ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).xNEkdx,
{email: email}) : intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Xyjnwn);
}
function header_44809({isAdult}) { // fn#44809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6291, offset: 0x011796cd, size: 93 bytes, params: 2, frame: 15
const intl = (IndexNativeModule).intl;
const string = intl.string;
return isAdult ? Reflect.apply(string, intl, [FamilyCenterMessages.bS5x94]) : Reflect.apply(string, intl,
[FamilyCenterMessages.MzX4RP]);
}
function description_44810({isAdult}) { // fn#44810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6392, offset: 0x0117972a, size: 121 bytes, params: 2, frame: 16
const intl = (IndexNativeModule).intl;
const format = intl.format;
return isAdult ? Reflect.apply(format, intl, [FamilyCenterMessages.GKzqWi,
{link: 'https://support.discord.com/hc/articles/14155043715735'}]) : Reflect.apply(format, intl,
[FamilyCenterMessages['69F+eS'], {link: 'https://support.discord.com/hc/articles/14155060633623'}]);
}
function PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER() { // fn#44814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:8035, offset: 0x0117985b, size: 207 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const CJdoee = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).CJdoee;
object.seconds = Reflect.apply(string, intl, [CJdoee]);
const InzMn3 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).InzMn3;
object.minutes = InzMn3;
const ErkYCI = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ErkYCI;
object.hours = ErkYCI;
string = intl.string;
const GvfssA = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GvfssA;
object.yesterday = Reflect.apply(string, intl, [GvfssA]);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pWig18;
const MP3khg = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).MP3khg;
object.date = MP3khg;
return object;
}
function ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER() { // fn#44815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:8261, offset: 0x0117992a, size: 207 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const Bqsamd = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Bqsamd;
object.seconds = Reflect.apply(string, intl, [Bqsamd]);
object.minutes = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kX3wJg;
const J18GbG = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).J18GbG;
object.hours = J18GbG;
string = intl.string;
const Ln9zMn = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Ln9zMn;
object.yesterday = Reflect.apply(string, intl, [Ln9zMn]);
const WRtySz = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WRtySz;
object.days = WRtySz;
const Y3ZYtM = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Y3ZYtM;
object.date = Y3ZYtM;
return object;
}
}
function tooltipDescription(a0) { // fn#44771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2480, offset: 0x01178d24, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.w4wmnb]) : Reflect.apply(string, intl, [value.foTzbd]);
}
function timestampFormatter() { // fn#44774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2751, offset: 0x01178dc3, size: 141 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.today = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fLBUx7);
object2.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cHHgxI);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).qvKjp8;
return object2;
}
function tooltipDescription_44776(a0) { // fn#44776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:2971, offset: 0x01178e92, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.aiAhnQ]) : Reflect.apply(string, intl, [value['4ufgdz']]);
}
function timestampFormatter_44779() { // fn#44779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3248, offset: 0x01178f31, size: 141 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const IHd5cZ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IHd5cZ;
object2.today = Reflect.apply(string, intl, [IHd5cZ]);
object2.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).wOsfxv);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oCk8c4;
return object2;
}
function tooltipDescription_44781(a0) { // fn#44781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3465, offset: 0x01179000, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.BkVb1X]) : Reflect.apply(string, intl, [value.mpHHfa]);
}
function timestampFormatter_44784() { // fn#44784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3736, offset: 0x0117909f, size: 141 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JUHIYZ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JUHIYZ;
object2.today = Reflect.apply(string, intl, [JUHIYZ]);
string = intl.string;
const GiswUW = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GiswUW;
object2.yesterday = Reflect.apply(string, intl, [GiswUW]);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['fwQgE/'];
return object2;
}
function tooltipDescription_44786(a0) { // fn#44786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:3957, offset: 0x0117916e, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.LVNgTD]) : Reflect.apply(string, intl, [value.TA8GFt]);
}
function tooltipDescription_44790(a0) { // fn#44790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4319, offset: 0x0117924f, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.BLgIrk]) : Reflect.apply(string, intl, [value.sSJauZ]);
}
function tooltipDescription_44798(a0) { // fn#44798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:4963, offset: 0x011793fe, size: 83 bytes, params: 2, frame: 14
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return a0 ? Reflect.apply(string, intl, [value.cqIdqZ]) : Reflect.apply(string, intl, [value['85PtWu']]);
}
function description_44808({email}) { // fn#44808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6125, offset: 0x01179632, size: 155 bytes, params: 2, frame: 17
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return email != null ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).xNEkdx,
{email: email}) : intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Xyjnwn);
}
function header_44809({isAdult}) { // fn#44809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6291, offset: 0x011796cd, size: 93 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const familyCenterMessages = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return isAdult ? Reflect.apply(string, intl, [familyCenterMessages.bS5x94]) : Reflect.apply(string, intl,
[familyCenterMessages.MzX4RP]);
}
function description_44810({isAdult}) { // fn#44810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:6392, offset: 0x0117972a, size: 121 bytes, params: 2, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const familyCenterMessages = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return isAdult ? Reflect.apply(format, intl, [familyCenterMessages.GKzqWi,
{link: 'https://support.discord.com/hc/articles/14155043715735'}]) : Reflect.apply(format, intl,
[familyCenterMessages['69F+eS'], {link: 'https://support.discord.com/hc/articles/14155060633623'}]);
}
function PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER() { // fn#44814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:8035, offset: 0x0117985b, size: 207 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const CJdoee = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).CJdoee;
object2.seconds = Reflect.apply(string, intl, [CJdoee]);
const InzMn3 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).InzMn3;
object2.minutes = InzMn3;
const ErkYCI = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ErkYCI;
object2.hours = ErkYCI;
string = intl.string;
const GvfssA = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GvfssA;
object2.yesterday = Reflect.apply(string, intl, [GvfssA]);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pWig18;
const MP3khg = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).MP3khg;
object2.date = MP3khg;
return object2;
}
function ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER() { // fn#44815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5295:8261, offset: 0x0117992a, size: 207 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Bqsamd = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Bqsamd;
object2.seconds = Reflect.apply(string, intl, [Bqsamd]);
object2.minutes = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kX3wJg;
const J18GbG = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).J18GbG;
object2.hours = J18GbG;
string = intl.string;
const Ln9zMn = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Ln9zMn;
object2.yesterday = Reflect.apply(string, intl, [Ln9zMn]);
const WRtySz = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WRtySz;
object2.days = WRtySz;
const Y3ZYtM = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Y3ZYtM;
object2.date = Y3ZYtM;
return object2;
}
global.__d(_fun44769, 5117, [672, 484, 1244, 2224,
2]) /* metro module 5117, dependencies: [672, 484, 1244, 2224, 2] */;
@@ -1,16 +1,21 @@
/* Metro module 5119; source: modules/parent_tools/FamilyCenterControlledSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1350, 1314, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as UserSettingsUtilsModule from '../user_settings/UserSettingsUtils.tsx'; /* Metro dependency 1350 */
function _fun44876(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:6, offset: 0x0117afe8, size: 333 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let env0_8 = {};
let env0_9 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun44880(Store);
value.displayName = 'FamilyCenterControlledSettingsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -23,85 +28,111 @@ function _fun44876(global, require, importDefault, importAll, module, exports, d
env0_9 = {};
env0_7 = false;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterControlledSettingsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterControlledSettingsStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_44877() { // fn#44877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:148, offset: 0x0117b135, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_44877() { // fn#44877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:148, offset: 0x0117b135, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_44877_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_44877_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun44880(a0) { // fn#44880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:366, offset: 0x0117b193, size: 189 bytes, params: 2, frame: 16
const closure = FamilyCenterControlledSettingsStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getSettings', value: value_44882}, {key: 'getControlledSettings',
value: value_44883}, {key: 'hasSettingsForUser', value: value_44884}, {key: 'getConsents', value: value_44885},
{key: 'hasConsented', value: value_44886}, {key: 'isLoading', get: get_44887}]);
}
function _fun44880(a0) { // fn#44880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:366, offset: 0x0117b193, size: 189 bytes, params: 2, frame: 16
const FamilyCenterControlledSettingsStore2 = FamilyCenterControlledSettingsStore;
Inherits(FamilyCenterControlledSettingsStore2, a0);
return CreateClass(FamilyCenterControlledSettingsStore2, [{key: 'getSettings', value: value_44882},
{key: 'getControlledSettings', value: value_44883}, {key: 'hasSettingsForUser', value: value_44884},
{key: 'getConsents', value: value_44885}, {key: 'hasConsented', value: value_44886}, {key: 'isLoading',
get: get_44887}]);
function FamilyCenterControlledSettingsStore() { // fn#44881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:378, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, FamilyCenterControlledSettingsStore);
const value3 = env1_5(FamilyCenterControlledSettingsStore);
return env1_4(this, _isNativeReflectConstruct_44877() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_44882(a0) { // fn#44882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:772, offset: 0x00ff623a, size: 16 bytes, params: 2, frame: 2
return env1_8[a0];
}
function value_44883(a0) { // fn#44883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:833, offset: 0x00ff623a, size: 16 bytes, params: 2, frame: 2
return env1_8[a0];
}
function value_44884(a0) { // fn#44884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:891, offset: 0x0117b250, size: 22 bytes, params: 2, frame: 2
return env1_8[a0] != null;
}
function value_44885(a0) { // fn#44885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:948, offset: 0x010197cf, size: 16 bytes, params: 2, frame: 2
return env1_9[a0];
}
function value_44886(a0, a1) { // fn#44886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1000, offset: 0x0117b266, size: 60 bytes, params: 3, frame: 5
if (a0 == null) {
return false;
}
const value = environment.__proto__;
const property = env1_9[a0];
return property != null && (property[a1] != null && property[a1].consented);
}
function get_44887() { // fn#44887, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function FAMILY_CENTER_TEEN_SETTINGS_AND_CONSENTS_FETCH_SUCCESS({userId, settings, consents}) { // fn#44889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1367, offset: 0x0117b2af, size: 98 bytes, params: 2, frame: 16
var value;
var binding;
if (settings != null) {
binding = env0_8;
value = require(1350) /* metro dependency 1350: UserSettingsUtils */;
binding[userId] = value.b64ToPreloadedUserSettingsProto(settings);
}
if (consents != null) {
function FAMILY_CENTER_TEEN_SETTINGS_AND_CONSENTS_FETCH_SUCCESS({userId, settings, consents}) { // fn#44889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1367, offset: 0x0117b2af, size: 98 bytes, params: 2, frame: 16
var value;
var binding;
if (settings != null) {
binding = env0_8;
value = require(1350) /* metro dependency 1350: UserSettingsUtils */;
binding[userId] = value.b64ToPreloadedUserSettingsProto(settings);
}
if (consents != null) {
env0_9[userId] = consents;
}
}
function FAMILY_CENTER_TEEN_CONSENTS_UPDATE_SUCCESS({userId, consents}) { // fn#44890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1578, offset: 0x0117b311, size: 29 bytes, params: 2, frame: 3
env0_9[userId] = consents;
}
}
function FAMILY_CENTER_TEEN_CONSENTS_UPDATE_SUCCESS({userId, consents}) { // fn#44890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1578, offset: 0x0117b311, size: 29 bytes, params: 2, frame: 3
env0_9[userId] = consents;
}
function FAMILY_CENTER_TEEN_UPDATE_SETTINGS_SUCCESS({userId, settings}) { // fn#44891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1693, offset: 0x0117b32e, size: 108 bytes, params: 2, frame: 20
const value2 = (require(1350) /* metro dependency 1350: UserSettingsUtils */).b64ToPreloadedUserSettingsProto(settings);
const binding = env0_8;
const userSettingsUtilsModule = require(1350) /* metro dependency 1350: UserSettingsUtils */;
const mergeTopLevelFields = userSettingsUtilsModule.mergeTopLevelFields;
const PreloadedUserSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).PreloadedUserSettings;
binding[userId] = Reflect.apply(mergeTopLevelFields, userSettingsUtilsModule, [PreloadedUserSettings,
env0_8[userId], value2]);
}
function value_44884(a0) { // fn#44884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:891, offset: 0x0117b250, size: 22 bytes, params: 2, frame: 2
return env1_8[a0] != null;
}
function value_44886(a0, a1) { // fn#44886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1000, offset: 0x0117b266, size: 60 bytes, params: 3, frame: 5
if (a0 == null) {
return false;
function FAMILY_CENTER_TEEN_UPDATE_SETTINGS_SUCCESS({userId, settings}) { // fn#44891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5297:1693, offset: 0x0117b32e, size: 108 bytes, params: 2, frame: 20
const value2 = (UserSettingsUtilsModule).b64ToPreloadedUserSettingsProto(settings);
const binding = env0_8;
const mergeTopLevelFields = UserSettingsUtilsModule.mergeTopLevelFields;
const PreloadedUserSettings = (Preloaded_user_settingsModule).PreloadedUserSettings;
binding[userId] = Reflect.apply(mergeTopLevelFields, UserSettingsUtilsModule, [PreloadedUserSettings,
env0_8[userId], value2]);
}
const value = environment.__proto__;
const property = env1_9[a0];
return property != null && (property[a1] != null && property[a1].consented);
}
global.__d(_fun44876, 5119, [6, 7, 15, 17, 18, 1350, 1314, 566, 694,
2]) /* metro module 5119, dependencies: [6, 7, 15, 17, 18, 1350, 1314, 566, 694, 2] */;
@@ -1,79 +1,85 @@
/* Metro module 13351; source: modules/parent_tools/FamilyCenterControlledSettingsUtils.tsx; dependencies: [1314, 13348, 4844, 4842, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as SensitiveMediaExplicitRedactionSettingsUtilsModule from '../explicit_media_redaction/SensitiveMediaExplicitRedactionSettingsUtils.tsx'; /* Metro dependency 4842 */
import * as ParentalControlledUserSettingsModule from '../user_settings/family_center/ParentalControlledUserSettings.tsx'; /* Metro dependency 13348 */
function _fun101675(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:6, offset: 0x0221baf5, size: 177 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const closure = isSetAndNotDefault;
const closure2 = getGoreContentSettingOrDefault_101677;
const closure3 = resolveExplicitContentSettingWithDefaultsForTeen;
const closure4 = getExplicitContentSettingOrDefault_101679;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterControlledSettingsUtils.tsx');
exports.isSetAndNotDefault = closure;
exports.getGoreContentSettingOrDefault = closure2;
const isSetAndNotDefault2 = isSetAndNotDefault;
const getGoreContentSettingOrDefault_1016772 = getGoreContentSettingOrDefault_101677;
const resolveExplicitContentSettingWithDefaultsForTeen2 = resolveExplicitContentSettingWithDefaultsForTeen;
const getExplicitContentSettingOrDefault_1016792 = getExplicitContentSettingOrDefault_101679;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterControlledSettingsUtils.tsx');
exports.isSetAndNotDefault = isSetAndNotDefault2;
exports.getGoreContentSettingOrDefault = getGoreContentSettingOrDefault_1016772;
exports.updateGoreContentSetting = updateGoreContentSetting_101680;
exports.resolveExplicitContentSettingWithDefaultsForTeen = closure3;
exports.getExplicitContentSettingOrDefault = closure4;
exports.resolveExplicitContentSettingWithDefaultsForTeen = resolveExplicitContentSettingWithDefaultsForTeen2;
exports.getExplicitContentSettingOrDefault = getExplicitContentSettingOrDefault_1016792;
exports.updateExplicitContentSetting = updateExplicitContentSetting_101681;
}
function isSetAndNotDefault(a0) { // fn#101676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:115, offset: 0x0221bba6, size: 54 bytes, params: 2, frame: 13
return a0 != null && a0 !== (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION;
}
function getGoreContentSettingOrDefault_101677(a0) { // fn#101677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:228, offset: 0x0221bbdc, size: 224 bytes, params: 2, frame: 17
const ParentalControlledGoreContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledGoreContent;
const {goreContentNonFriendDm, goreContentFriendDm} = ParentalControlledGoreContent.getControlledSetting(a0) ?? ({});
const object2 = {};
object2.goreContentNonFriendDm = isSetAndNotDefault(goreContentNonFriendDm) ? goreContentNonFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({isDm: true});
object2.goreContentFriendDm = isSetAndNotDefault(goreContentFriendDm) ? goreContentFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({'isDm': true,
'isFriend': true});
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object2.goreContentGuilds = BLUR;
return object2;
}
function resolveExplicitContentSettingWithDefaultsForTeen({teenId, setting, isFriend}) { // fn#101678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:697, offset: 0x0221bcbc, size: 130 bytes, params: 2, frame: 16
isFriend = !(isFriend === undefined) && isFriend;
if (isSetAndNotDefault(setting)) {
return setting;
function isSetAndNotDefault(a0) { // fn#101676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:115, offset: 0x0221bba6, size: 54 bytes, params: 2, frame: 13
return a0 != null && a0 !== (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION;
}
const ParentalControlledLegacyExplicitContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledLegacyExplicitContent;
const controlledSetting = ParentalControlledLegacyExplicitContent.getControlledSetting(teenId);
const value = require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */;
return isFriend ? value.TEEN_EXPLICIT_CONTENT_FILTER_TO_EXPLICIT_CONTENT_REDACTION_FRIEND_DM[controlledSetting] : value.TEEN_EXPLICIT_CONTENT_FILTER_TO_EXPLICIT_CONTENT_REDACTION_NON_FRIEND_DM[controlledSetting];
}
function getExplicitContentSettingOrDefault_101679(a0) { // fn#101679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:1057, offset: 0x0221bd3e, size: 176 bytes, params: 2, frame: 18
const value2 = undefined;
const ParentalControlledExplicitContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledExplicitContent;
const controlledSetting = ParentalControlledExplicitContent.getControlledSetting(a0);
const object2 = {};
object2.explicitContentNonFriendDm = resolveExplicitContentSettingWithDefaultsForTeen({teenId: a0,
setting: controlledSetting == null ? value2 : controlledSetting.explicitContentNonFriendDm});
object2.explicitContentFriendDm = resolveExplicitContentSettingWithDefaultsForTeen({teenId: a0,
setting: controlledSetting == null ? value2 : controlledSetting.explicitContentFriendDm, isFriend: true});
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object2.explicitContentGuilds = BLUR;
return object2;
}
function getGoreContentSettingOrDefault_101677(a0) { // fn#101677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:228, offset: 0x0221bbdc, size: 224 bytes, params: 2, frame: 17
const ParentalControlledGoreContent = (ParentalControlledUserSettingsModule).ParentalControlledGoreContent;
const {goreContentNonFriendDm, goreContentFriendDm} = ParentalControlledGoreContent.getControlledSetting(a0) ?? ({});
const object = {};
object.goreContentNonFriendDm = isSetAndNotDefault(goreContentNonFriendDm) ? goreContentNonFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({isDm: true});
object.goreContentFriendDm = isSetAndNotDefault(goreContentFriendDm) ? goreContentFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({'isDm': true,
'isFriend': true});
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object.goreContentGuilds = BLUR;
return object;
}
function updateGoreContentSetting_101680(a0, a1) { // fn#101680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:1713, offset: 0x0221bdee, size: 76 bytes, params: 3, frame: 15
const goreContentSettingOrDefault_101677 = getGoreContentSettingOrDefault_101677(a0);
const ParentalControlledGoreContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledGoreContent;
const updateControlledSetting = ParentalControlledGoreContent.updateControlledSetting;
const object2 = {};
copyDataProperties(object2, a1, copyDataProperties(object2, goreContentSettingOrDefault_101677, undefined));
Reflect.apply(updateControlledSetting, ParentalControlledGoreContent, [a0, object2]);
}
function resolveExplicitContentSettingWithDefaultsForTeen({teenId, setting, isFriend}) { // fn#101678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:697, offset: 0x0221bcbc, size: 130 bytes, params: 2, frame: 16
isFriend = !(isFriend === undefined) && isFriend;
if (isSetAndNotDefault(setting)) {
return setting;
}
const ParentalControlledLegacyExplicitContent = (ParentalControlledUserSettingsModule).ParentalControlledLegacyExplicitContent;
const controlledSetting = ParentalControlledLegacyExplicitContent.getControlledSetting(teenId);
return isFriend ? SensitiveMediaExplicitRedactionSettingsUtilsModule.TEEN_EXPLICIT_CONTENT_FILTER_TO_EXPLICIT_CONTENT_REDACTION_FRIEND_DM[controlledSetting] : SensitiveMediaExplicitRedactionSettingsUtilsModule.TEEN_EXPLICIT_CONTENT_FILTER_TO_EXPLICIT_CONTENT_REDACTION_NON_FRIEND_DM[controlledSetting];
}
function getExplicitContentSettingOrDefault_101679(a0) { // fn#101679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:1057, offset: 0x0221bd3e, size: 176 bytes, params: 2, frame: 18
const value2 = undefined;
const ParentalControlledExplicitContent = (ParentalControlledUserSettingsModule).ParentalControlledExplicitContent;
const controlledSetting = ParentalControlledExplicitContent.getControlledSetting(a0);
const object = {};
object.explicitContentNonFriendDm = resolveExplicitContentSettingWithDefaultsForTeen({teenId: a0,
setting: controlledSetting == null ? value2 : controlledSetting.explicitContentNonFriendDm});
object.explicitContentFriendDm = resolveExplicitContentSettingWithDefaultsForTeen({teenId: a0,
setting: controlledSetting == null ? value2 : controlledSetting.explicitContentFriendDm, isFriend: true});
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object.explicitContentGuilds = BLUR;
return object;
}
function updateGoreContentSetting_101680(a0, a1) { // fn#101680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:1713, offset: 0x0221bdee, size: 76 bytes, params: 3, frame: 15
const goreContentSettingOrDefault_101677 = getGoreContentSettingOrDefault_101677(a0);
const ParentalControlledGoreContent = (ParentalControlledUserSettingsModule).ParentalControlledGoreContent;
const updateControlledSetting = ParentalControlledGoreContent.updateControlledSetting;
const object = {};
copyDataProperties(object, a1, copyDataProperties(object, goreContentSettingOrDefault_101677, undefined));
Reflect.apply(updateControlledSetting, ParentalControlledGoreContent, [a0, object]);
}
function updateExplicitContentSetting_101681(a0, a1) { // fn#101681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:2042, offset: 0x0221be3a, size: 76 bytes, params: 3, frame: 15
const explicitContentSettingOrDefault_101679 = getExplicitContentSettingOrDefault_101679(a0);
const ParentalControlledExplicitContent = (ParentalControlledUserSettingsModule).ParentalControlledExplicitContent;
const updateControlledSetting = ParentalControlledExplicitContent.updateControlledSetting;
const object = {};
copyDataProperties(object, a1, copyDataProperties(object, explicitContentSettingOrDefault_101679, undefined));
Reflect.apply(updateControlledSetting, ParentalControlledExplicitContent, [a0, object]);
}
function updateExplicitContentSetting_101681(a0, a1) { // fn#101681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13541:2042, offset: 0x0221be3a, size: 76 bytes, params: 3, frame: 15
const explicitContentSettingOrDefault_101679 = getExplicitContentSettingOrDefault_101679(a0);
const ParentalControlledExplicitContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledExplicitContent;
const updateControlledSetting = ParentalControlledExplicitContent.updateControlledSetting;
const object2 = {};
copyDataProperties(object2, a1, copyDataProperties(object2, explicitContentSettingOrDefault_101679, undefined));
Reflect.apply(updateControlledSetting, ParentalControlledExplicitContent, [a0, object2]);
}
global.__d(_fun101675, 13351, [1314, 13348, 4844, 4842,
2]) /* metro module 13351, dependencies: [1314, 13348, 4844, 4842, 2] */;
@@ -1,103 +1,106 @@
/* Metro module 12623; source: modules/parent_tools/FamilyCenterModalRequestRouting.tsx; dependencies: [5, 5117, 5118, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FamilyCenterConstantsModule from './FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun96855(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:6, offset: 0x02169c17, size: 238 bytes, params: 8, frame: 21
var object2;
const closure = getConnectionPrereqTarget;
const getConnectionPrereqTarget2 = getConnectionPrereqTarget;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const FamilyCenterFailureCode = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FamilyCenterFailureCode;
const FamilyCenterFailureCode = (FamilyCenterConstantsModule).FamilyCenterFailureCode;
Object = global.Object;
const value = Object.freeze({'PREREQ_LOADING': 'PREREQ_LOADING', 'CONFIRM_AGE': 'CONFIRM_AGE',
'VERIFYING': 'VERIFYING', 'REQUEST': 'REQUEST', 'SENT': 'SENT', 'ERROR': 'ERROR',
'INVALID_CODE': 'INVALID_CODE', 'MUST_BE_ADULT': 'MUST_BE_ADULT', 'TEEN_SCAN': 'TEEN_SCAN'});
object2 = {};
object = {};
const ERROR = value.ERROR;
object2.section = ERROR;
object.section = ERROR;
const GENERIC_ERROR = FamilyCenterFailureCode.GENERIC_ERROR;
object2.params = {failureCode: GENERIC_ERROR};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterModalRequestRouting.tsx');
object.params = {failureCode: GENERIC_ERROR};
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterModalRequestRouting.tsx');
exports.FamilyCenterModalRequestSections = value;
exports.getConnectionPrereqTarget = closure;
exports.getConnectionPrereqTarget = getConnectionPrereqTarget2;
exports.resolveConnectionPrereqTarget = function() {
return _resolveConnectionPrereqTarget.apply(this, arguments);
};
function getConnectionPrereqTarget(a0) { // fn#96856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:420, offset: 0x02169d05, size: 179 bytes, params: 2, frame: 4
return 'ready' in a0 ? {section: env0_3.REQUEST,
params: {teenIdentity: a0.teen_identity}} : 'invalid_link_code' in a0 ? {section: env0_3.INVALID_CODE} : 'verified_teen_blocked' in a0 ? {section: env0_3.MUST_BE_ADULT} : 'requires_adult_verification' in a0 ? {section: env0_3.CONFIRM_AGE} : env0_4;
}
function _resolveConnectionPrereqTarget() { // fn#96857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:697, offset: 0x02169db8, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun96859).apply(this, arguments);
function* _fun96859(a0, a1) { // fn#96859, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:780, offset: 0x02169df5, size: 90 bytes, params: 3, frame: 16
var binding;
var binding2;
var binding3;
var property;
var value3;
var getConnectionPrerequisites;
var value4;
var value5;
var value6;
var value7;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_5;
} catch (error) {
return env2_4;
}
try {
binding2 = env2_0;
} catch (error) {
return env2_4;
}
try {
binding3 = env2_1;
} catch (error) {
return env2_4;
}
try {
property = binding3[2];
} catch (error) {
return env2_4;
}
try {
value3 = binding2(property);
} catch (error) {
return env2_4;
}
try {
getConnectionPrerequisites = value3.getConnectionPrerequisites;
} catch (error) {
return env2_4;
}
try {
value4 = Reflect.apply(getConnectionPrerequisites, value3, [a0, a1]);
} catch (error) {
return env2_4;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return env2_4;
}
if (value6) {
return value5;
}
try {
value7 = binding(value5);
} catch (error) {
return env2_4;
}
return value7;
}
}
}
function getConnectionPrereqTarget(a0) { // fn#96856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:420, offset: 0x02169d05, size: 179 bytes, params: 2, frame: 4
return 'ready' in a0 ? {section: env0_3.REQUEST,
params: {teenIdentity: a0.teen_identity}} : 'invalid_link_code' in a0 ? {section: env0_3.INVALID_CODE} : 'verified_teen_blocked' in a0 ? {section: env0_3.MUST_BE_ADULT} : 'requires_adult_verification' in a0 ? {section: env0_3.CONFIRM_AGE} : env0_4;
}
function _resolveConnectionPrereqTarget() { // fn#96857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:697, offset: 0x02169db8, size: 50 bytes, params: 1, frame: 14
return env0_2(_fun96859).apply(this, arguments);
}
function* _fun96859(a0, a1) { // fn#96859, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12813:780, offset: 0x02169df5, size: 90 bytes, params: 3, frame: 16
var binding;
var binding2;
var binding3;
var property;
var value3;
var getConnectionPrerequisites;
var value4;
var value5;
var value6;
var value7;
var error;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
try {
binding = env2_5;
} catch (error) {
return env2_4;
}
try {
binding2 = env2_0;
} catch (error) {
return env2_4;
}
try {
binding3 = env2_1;
} catch (error) {
return env2_4;
}
try {
property = binding3[2];
} catch (error) {
return env2_4;
}
try {
value3 = binding2(property);
} catch (error) {
return env2_4;
}
try {
getConnectionPrerequisites = value3.getConnectionPrerequisites;
} catch (error) {
return env2_4;
}
try {
value4 = Reflect.apply(getConnectionPrerequisites, value3, [a0, a1]);
} catch (error) {
return env2_4;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
return env2_4;
}
if (value6) {
return value5;
}
try {
value7 = binding(value5);
} catch (error) {
return env2_4;
}
return value7;
}
global.__d(_fun96855, 12623, [5, 5117, 5118, 2]) /* metro module 12623, dependencies: [5, 5117, 5118, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,13 +1,16 @@
/* Metro module 12621; source: modules/parent_tools/FamilyCenterPendingConnectionStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun96792(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:6, offset: 0x02167425, size: 305 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun96796(PersistedStore);
value.displayName = 'FamilyCenterPendingConnectionStore';
value.persistKey = 'FamilyCenterPendingConnectionStore';
@@ -19,51 +22,69 @@ function _fun96792(global, require, importDefault, importAll, module, exports, d
}, LOGOUT: function() {
env0_5 = null;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterPendingConnectionStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterPendingConnectionStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_96793() { // fn#96793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:148, offset: 0x02167556, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_96793() { // fn#96793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:148, offset: 0x02167556, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_96793_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_96793_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun96796(a0) { // fn#96796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:358, offset: 0x021675b8, size: 124 bytes, params: 2, frame: 16
const closure = FamilyCenterPendingConnectionStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_96798}, {key: 'getState', value: value_96799},
{key: 'getPendingConnection', value: value_96800}]);
}
function _fun96796(a0) { // fn#96796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:358, offset: 0x021675b8, size: 124 bytes, params: 2, frame: 16
const FamilyCenterPendingConnectionStore2 = FamilyCenterPendingConnectionStore;
Inherits(FamilyCenterPendingConnectionStore2, a0);
return CreateClass(FamilyCenterPendingConnectionStore2, [{key: 'initialize', value: value_96798}, {key: 'getState',
value: value_96799}, {key: 'getPendingConnection', value: value_96800}]);
function FamilyCenterPendingConnectionStore() { // fn#96797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:370, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, FamilyCenterPendingConnectionStore);
const value3 = env1_3(FamilyCenterPendingConnectionStore);
return env1_2(this, _isNativeReflectConstruct_96793() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_96798(a0) { // fn#96798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:758, offset: 0x02167634, size: 26 bytes, params: 2, frame: 3
let value = a0;
const value2 = null;
const r1 = value2 != value ? value : value2;
value = environment.__proto__;
}
function value_96799() { // fn#96799, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_96800() { // fn#96800, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
}
function value_96798(a0) { // fn#96798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12811:758, offset: 0x02167634, size: 26 bytes, params: 2, frame: 3
let value = a0;
const value2 = null;
const r1 = value2 != value ? value : value2;
value = environment.__proto__;
}
global.__d(_fun96792, 12621, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 12621, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,4 +1,9 @@
/* Metro module 10909; source: modules/parent_tools/FamilyCenterRestrictedHoursUtils.tsx; dependencies: [1895, 1244, 2224, 2] */
import FamilyCenterMessages from './FamilyCenter.messages.js'; /* Metro dependency 2224 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UserModule from '../../external/discord_common/js/packages/protos/discord_protos/users/v1/user.tsx'; /* Metro dependency 1895 */
function _fun83587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:6, offset: 0x01f1f5b1, size: 593 bytes, params: 8, frame: 26
let env0_0 = require;
const _arrayLikeToArray_83590 = function(a0, a1) {
@@ -44,43 +49,43 @@ function _fun83587(global, require, importDefault, importAll, module, exports, d
}
return value;
};
const closure = formatTime_83591;
const closure2 = formatDays;
const formatTime_835912 = formatTime_83591;
const formatDays2 = formatDays;
const closure3 = function(a0) {
return 60 * a0.hours + a0.minutes;
};
const closure4 = getScheduleRuleDateRange;
const getScheduleRuleDateRange2 = getScheduleRuleDateRange;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const DayOfWeek = (require(1895) /* metro dependency 1895: user */).DayOfWeek;
const DayOfWeek = (UserModule).DayOfWeek;
const SUNDAY = DayOfWeek.SUNDAY;
items = [SUNDAY];
items2 = [SUNDAY];
const MONDAY = DayOfWeek.MONDAY;
items[1] = MONDAY;
items2[1] = MONDAY;
const TUESDAY = DayOfWeek.TUESDAY;
items[2] = TUESDAY;
items2[2] = TUESDAY;
const WEDNESDAY = DayOfWeek.WEDNESDAY;
items[3] = WEDNESDAY;
items2[3] = WEDNESDAY;
const THURSDAY = DayOfWeek.THURSDAY;
items[4] = THURSDAY;
items2[4] = THURSDAY;
const FRIDAY = DayOfWeek.FRIDAY;
items[5] = FRIDAY;
items2[5] = FRIDAY;
const SATURDAY = DayOfWeek.SATURDAY;
items[6] = SATURDAY;
items2[6] = SATURDAY;
let Set = global.Set;
let set = new Set(items.slice(1, 6));
let set = new Set(items2.slice(1, 6));
Set = global.Set;
set = new Set([items[0], items[6]]);
set = new Set([items2[0], items2[6]]);
Set = global.Set;
set = new Set(items);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterRestrictedHoursUtils.tsx');
exports.DAYS_ORDERED = items;
set = new Set(items2);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterRestrictedHoursUtils.tsx');
exports.DAYS_ORDERED = items2;
exports.getShortDayLabels = getShortDayLabels;
exports.formatTime = closure;
exports.formatDays = closure2;
exports.formatTime = formatTime_835912;
exports.formatDays = formatDays2;
exports.timeToMinutes = closure3;
exports.formatDuration = formatDuration_83600;
exports.getScheduleRuleDateRange = closure4;
exports.getScheduleRuleDateRange = getScheduleRuleDateRange2;
exports.formatRestrictedScheduleInAppSubtitle = formatRestrictedScheduleInAppSubtitle;
exports.sortRulesByStartTime = function(a0) {
return a0.slice().sort(_fun83603);
@@ -96,243 +101,272 @@ function _fun83587(global, require, importDefault, importAll, module, exports, d
items.forEach(_fun83606);
return {conflictingEntries: items};
};
}
function _createForOfIteratorHelperLoose_83588(a0, a1) { // fn#83588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:47, offset: 0x01f1f802, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_83588(a0, a1) { // fn#83588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:47, offset: 0x01f1f802, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun83589;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_83590(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun83589;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_83590(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_83590(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_83590(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun83589;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function formatTime_83591({hours, minutes}) { // fn#83591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1205, offset: 0x01f1f976, size: 148 bytes, params: 2, frame: 21
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'hour': 'numeric', 'minute': '2-digit'});
const format = dateTimeFormat.format;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(2025, 0, 1, hours, minutes);
return Reflect.apply(format, dateTimeFormat, [date instanceof Object ? date : value2]);
}
function setsEqual(a0, a1) { // fn#83592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1431, offset: 0x01f1fa0a, size: 91 bytes, params: 3, frame: 14
var value3;
var has;
var value4;
if (a0.size === a1.size) {
var value;
value = _createForOfIteratorHelperLoose_83588(a0);
var value2 = value();
var done = value2.done;
if (done) {
return true;
}
var r1 = value2;
loopExit2: while (true) {
value3 = r1.value;
has = a1.has;
if (Reflect.apply(has, a1, [value3])) {
value4 = value();
done = value4.done;
if (done) {
return true;
}
r1 = value4;
continue;
if (r5) {
}
break loopExit2;
return _fun83589;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun83589() { // fn#83589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:618, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
return false;
}
function formatDays(a0) { // fn#83593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1591, offset: 0x01f1fa65, size: 422 bytes, params: 2, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const Set = global.Set;
const set = new Set(a0);
if (setsEqual(set, env0_6)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).bPjqd1);
}
if (setsEqual(set, env0_4)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4dr9L9']);
}
if (setsEqual(set, env0_5)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6lTTJ+']);
}
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
let dateTimeFormat = new DateTimeFormat(intl.currentLocale, {weekday: 'short'});
dateTimeFormat = env0_3.map(_fun83594);
dateTimeFormat = dateTimeFormat.filter(function(a0) {
return a0 !== null;
});
return dateTimeFormat.join(', ');
}
function getScheduleRuleDateRange(a0) { // fn#83597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2058, offset: 0x01f1fc62, size: 100 bytes, params: 2, frame: 16
var r0;
var formatTime_83591Binding;
const startTime = a0.startTime;
let value = '';
if (startTime != null) {
if (a0.endTime != null) {
formatTime_83591Binding = formatTime_83591;
value = value + formatTime_83591Binding(a0.startTime) + ' – ' + formatTime_83591Binding(a0.endTime);
r0 = value;
function formatTime_83591({hours, minutes}) { // fn#83591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1205, offset: 0x01f1f976, size: 148 bytes, params: 2, frame: 21
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((IndexNativeModule).intl.currentLocale,
{'hour': 'numeric', 'minute': '2-digit'});
const format = dateTimeFormat.format;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(2025, 0, 1, hours, minutes);
return Reflect.apply(format, dateTimeFormat, [date instanceof Object ? date : value2]);
}
function setsEqual(a0, a1) { // fn#83592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1431, offset: 0x01f1fa0a, size: 91 bytes, params: 3, frame: 14
var value3;
var has;
var value4;
if (a0.size === a1.size) {
var value;
value = _createForOfIteratorHelperLoose_83588(a0);
var value2 = value();
var done = value2.done;
if (done) {
return true;
}
var r1 = value2;
loopExit2: while (true) {
value3 = r1.value;
has = a1.has;
if (Reflect.apply(has, a1, [value3])) {
value4 = value();
done = value4.done;
if (done) {
return true;
}
r1 = value4;
continue;
}
break loopExit2;
}
}
return false;
}
function formatDays(a0) { // fn#83593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1591, offset: 0x01f1fa65, size: 422 bytes, params: 2, frame: 16
const intl = (IndexNativeModule).intl;
const Set = global.Set;
const set = new Set(a0);
if (setsEqual(set, env0_6)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).bPjqd1);
}
if (setsEqual(set, env0_4)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4dr9L9']);
}
if (setsEqual(set, env0_5)) {
return intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6lTTJ+']);
}
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
let dateTimeFormat = new DateTimeFormat(intl.currentLocale, {weekday: 'short'});
dateTimeFormat = env0_3.map(_fun83594);
dateTimeFormat = dateTimeFormat.filter(function(a0) {
return a0 !== null;
});
return dateTimeFormat.join(', ');
function _fun83594(a0, a1) { // fn#83594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1917, offset: 0x01f1fc0b, size: 87 bytes, params: 3, frame: 18
var r0;
var format;
var Date;
var date;
var value;
let binding = env0_0;
if (binding.has(a0)) {
binding = env0_1;
format = binding.format;
Date = global.Date;
value = 5 + a1;
date = new Date(2025, 0);
date = Reflect.apply(format, binding, [date]);
r0 = date;
} else {
r0 = null;
}
return r0;
}
}
function getScheduleRuleDateRange(a0) { // fn#83597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2058, offset: 0x01f1fc62, size: 100 bytes, params: 2, frame: 16
var r0;
var formatTime_83591Binding;
const startTime = a0.startTime;
let value = '';
if (startTime != null) {
if (a0.endTime != null) {
formatTime_83591Binding = formatTime_83591;
value = value + formatTime_83591Binding(a0.startTime) + ' – ' + formatTime_83591Binding(a0.endTime);
r0 = value;
} else {
r0 = value;
}
} else {
r0 = value;
}
} else {
r0 = value;
return r0;
}
return r0;
}
function getShortDayLabels(a0) { // fn#83598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2329, offset: 0x01f1fcc6, size: 112 bytes, params: 2, frame: 15
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{weekday: a0});
return env0_3.map(_fun83599);
}
function getShortDayLabels(a0) { // fn#83598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2329, offset: 0x01f1fcc6, size: 112 bytes, params: 2, frame: 15
const Intl = global.Intl;
const DateTimeFormat = Intl.DateTimeFormat;
const dateTimeFormat = new DateTimeFormat((IndexNativeModule).intl.currentLocale,
{weekday: a0});
return env0_3.map(_fun83599);
function _fun83599(a0, a1) { // fn#83599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2444, offset: 0x01f1fd36, size: 65 bytes, params: 3, frame: 17
const binding = env0_0;
const format = binding.format;
const Date = global.Date;
const value = 5 + a1;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(2025, 0);
return Reflect.apply(format, binding, [date instanceof Object ? date : value2]);
}
function formatDuration_83600(a0) { // fn#83600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2584, offset: 0x01f1fd77, size: 146 bytes, params: 2, frame: 18
var r0;
var wcrXLM;
var object2;
let value = a0 / 60;
const Number = global.Number;
const isInteger2 = Number.isInteger(value);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
if (isInteger2) {
value = Reflect.apply(formatToPlainString, intl, [defaultImport.hFDcmZ, {hours: value}]);
r0 = value;
} else {
wcrXLM = defaultImport.wcrXLM;
object2 = {};
object2.hours = global.Math.floor(value);
value = Reflect.apply(formatToPlainString, intl, [wcrXLM, object2]);
r0 = value;
}
return r0;
}
function formatRestrictedScheduleInAppSubtitle(a0) { // fn#83601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2878, offset: 0x01f1fe09, size: 222 bytes, params: 2, frame: 19
if (a0.startTime == null) {
return null;
function formatDuration_83600(a0) { // fn#83600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2584, offset: 0x01f1fd77, size: 146 bytes, params: 2, frame: 18
var r0;
var wcrXLM;
var object;
let value = a0 / 60;
const Number = global.Number;
const isInteger2 = Number.isInteger(value);
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const defaultImport = FamilyCenterMessages;
if (isInteger2) {
value = Reflect.apply(formatToPlainString, intl, [defaultImport.hFDcmZ, {hours: value}]);
r0 = value;
} else {
wcrXLM = defaultImport.wcrXLM;
object = {};
object.hours = global.Math.floor(value);
value = Reflect.apply(formatToPlainString, intl, [wcrXLM, object]);
r0 = value;
}
return r0;
}
if (a0.endTime == null) {
return null;
function formatRestrictedScheduleInAppSubtitle(a0) { // fn#83601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2878, offset: 0x01f1fe09, size: 222 bytes, params: 2, frame: 19
if (a0.startTime == null) {
return null;
}
if (a0.endTime == null) {
return null;
}
const value2 = formatDays(a0.days);
const formatTime_83591Binding = formatTime_83591;
const value3 = formatTime_83591Binding(a0.startTime);
const value4 = formatTime_83591Binding(a0.endTime);
const timeToMinutesBinding = timeToMinutes;
const r4 = timeToMinutesBinding(a0.startTime) > timeToMinutesBinding(a0.endTime) ? (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).OxveI8 : (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['ERTn+E'];
const intl = (IndexNativeModule).intl;
return intl.formatToPlainString(r4, {days: value2, startTime: value3, endTime: value4});
}
const value2 = formatDays(a0.days);
const formatTime_83591Binding = formatTime_83591;
const value3 = formatTime_83591Binding(a0.startTime);
const value4 = formatTime_83591Binding(a0.endTime);
const timeToMinutesBinding = timeToMinutes;
const r4 = timeToMinutesBinding(a0.startTime) > timeToMinutesBinding(a0.endTime) ? (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).OxveI8 : (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['ERTn+E'];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.formatToPlainString(r4, {days: value2, startTime: value3, endTime: value4});
}
function sortRulesByStartTime(a0) { // fn#83602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3242, offset: 0x01f1fee7, size: 34 bytes, params: 2, frame: 11
return a0.slice().sort(_fun83603);
}
function sortRulesByStartTime(a0) { // fn#83602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3242, offset: 0x01f1fee7, size: 34 bytes, params: 2, frame: 11
return a0.slice().sort(_fun83603);
}
function computeOverlappingInfo(a0, a1, a2) { // fn#83605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3685, offset: 0x01f1ffd7, size: 64 bytes, params: 4, frame: 12
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const items2 = [];
items2.forEach(_fun83606);
return {conflictingEntries: items2};
}
function computeOverlappingInfo(a0, a1, a2) { // fn#83605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3685, offset: 0x01f1ffd7, size: 64 bytes, params: 4, frame: 12
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const items2 = [];
items2.forEach(_fun83606);
return {conflictingEntries: items2};
function _fun83606(a0, a1) { // fn#83606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3751, offset: 0x01f20017, size: 112 bytes, params: 3, frame: 14
var environment;
var value2;
var push;
var object;
let binding = a0;
if (binding.has(a0)) {
value2 = require.find(_fun83607);
if (value2 != null) {
binding = env0_3;
push = binding.push;
object = {};
object.dayLabel = importDefault[a1];
value = environment.__proto__;
object.timeRange = getScheduleRuleDateRange(value2);
Reflect.apply(push, binding, [object]);
}
}
function _fun83607({days}) { // fn#83607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3786, offset: 0x01f20087, size: 28 bytes, params: 2, frame: 11
return days.includes(env0_0);
}
function _fun83594(a0, a1) { // fn#83594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:1917, offset: 0x01f1fc0b, size: 87 bytes, params: 3, frame: 18
var r0;
var format;
var Date;
var date;
var value;
let binding = env0_0;
if (binding.has(a0)) {
binding = env0_1;
format = binding.format;
Date = global.Date;
value = 5 + a1;
date = new Date(2025, 0);
date = Reflect.apply(format, binding, [date]);
r0 = date;
} else {
r0 = null;
}
}
return r0;
}
function _fun83599(a0, a1) { // fn#83599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:2444, offset: 0x01f1fd36, size: 65 bytes, params: 3, frame: 17
const binding = env0_0;
const format = binding.format;
const Date = global.Date;
const value = 5 + a1;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(2025, 0);
return Reflect.apply(format, binding, [date instanceof Object ? date : value2]);
}
function _fun83603(a0, a1) { // fn#83603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3298, offset: 0x01f1ff09, size: 165 bytes, params: 3, frame: 9
@@ -349,27 +383,4 @@ function _fun83603(a0, a1) { // fn#83603, source: /ci/build/discord/discord/disc
return value4 - (value5 + ((startTime == null ? value : startTime.minutes) ?? value2));
}
function _fun83606(a0, a1) { // fn#83606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3751, offset: 0x01f20017, size: 112 bytes, params: 3, frame: 14
var environment;
var value2;
var push;
var object2;
let binding = a0;
if (binding.has(a0)) {
value2 = require.find(_fun83607);
if (value2 != null) {
binding = env0_3;
push = binding.push;
object2 = {};
object2.dayLabel = importDefault[a1];
value = environment.__proto__;
object2.timeRange = getScheduleRuleDateRange(value2);
Reflect.apply(push, binding, [object2]);
}
}
}
function _fun83607({days}) { // fn#83607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11095:3786, offset: 0x01f20087, size: 28 bytes, params: 2, frame: 11
return days.includes(env0_0);
}
global.__d(_fun83587, 10909, [1895, 1244, 2224, 2]) /* metro module 10909, dependencies: [1895, 1244, 2224, 2] */;
File diff suppressed because it is too large. Load diff
+193 -190
View File
@@ -1,19 +1,18 @@
/* Metro module 5187; source: modules/parent_tools/FamilyCenterUtils.tsx; dependencies: [5116, 5117, 1244, 2224, 3738, 5118, 2] */
import Module03738 from '../../by-id/module-03738.js'; /* Metro dependency 3738 */
import FamilyCenterStore from './FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import FamilyCenterActionCreators from './FamilyCenterActionCreators.tsx'; /* Metro dependency 5118 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as FamilyCenterConstantsModule from './FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun45681(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:6, offset: 0x01195221, size: 376 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_4 = familyCenterConstantsModule.ACTION_TO_TEXT;
const env0_5 = familyCenterConstantsModule.FAMILY_CENTER_ERROR_CODE_TO_FAILURE;
const env0_6 = familyCenterConstantsModule.FamilyCenterFailureCode;
const env0_7 = familyCenterConstantsModule.TeenActionDisplayType;
const env0_8 = familyCenterConstantsModule.UserLinkStatus;
const env0_9 = familyCenterConstantsModule.UserLinkType;
const closure = getActivityTypeTextConfigs;
const closure2 = hasActiveParentLinks;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterUtils.tsx');
const getActivityTypeTextConfigs2 = getActivityTypeTextConfigs;
const hasActiveParentLinks2 = hasActiveParentLinks;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterUtils.tsx');
exports.getEmptyActivityFormatter = getEmptyActivityFormatter;
exports.getActivityWindowTimestampFormatter = getActivityWindowTimestampFormatter;
exports.formatUserActivityTimestamp = formatUserActivityTimestamp;
@@ -31,7 +30,7 @@ function _fun45681(global, require, importDefault, importAll, module, exports, d
return FAMILY_CENTER_ERROR_CODE_TO_FAILURE[a0.code] ?? FamilyCenterFailureCode.GENERIC_ERROR;
};
exports.getSortedActivityTypeConfigs = getSortedActivityTypeConfigs;
exports.getActivityTypeTextConfigs = closure;
exports.getActivityTypeTextConfigs = getActivityTypeTextConfigs2;
exports.formatTotalTime = function(a0) {
var Math = global.Math;
var value = Math.floor(a0 / 60);
@@ -39,204 +38,208 @@ function _fun45681(global, require, importDefault, importAll, module, exports, d
return value > 0 ? '' + value + 'h ' + value2 + 'm' : '' + value2 + 'm';
};
exports.getOrFetchLinkedUsers = getOrFetchLinkedUsers;
exports.hasActiveParentLinks = closure2;
exports.hasActiveParentLinks = hasActiveParentLinks2;
exports.isParentallyControlled = function() {
return hasActiveParentLinks();
};
exports.getTopUserOrGuildDescription = getTopUserOrGuildDescription;
}
function getActivityTypeTextConfigs() { // fn#45682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:310, offset: 0x01195399, size: 37 bytes, params: 1, frame: 11
const Map = global.Map;
const value = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map(ACTION_TO_TEXT);
return map instanceof Object ? map : value;
}
function hasActiveParentLinks() { // fn#45683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:346, offset: 0x011953be, size: 55 bytes, params: 1, frame: 12
const Object = global.Object;
const values = Object.values;
const getLinkedUsers = FamilyCenterStore.getLinkedUsers;
return Reflect.apply(values, Object, [Reflect.apply(getLinkedUsers, FamilyCenterStore, [])]).some(_fun45684);
}
function getEmptyActivityFormatter() { // fn#45685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:548, offset: 0x01195428, size: 141 bytes, params: 1, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const VjIAQQ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VjIAQQ;
object2.today = Reflect.apply(string, intl, [VjIAQQ]);
object2.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['2a8xHY']);
const Xt6oND = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Xt6oND;
object2.days = Xt6oND;
return object2;
}
function getActivityWindowTimestampFormatter(a0) { // fn#45686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:705, offset: 0x011954b5, size: 241 bytes, params: 2, frame: 21
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
if (a0) {
object2.today = Reflect.apply(string, intl, [value['2AtcIs']]);
object2.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).stOECr);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).n8n5Ba;
} else {
object2.today = Reflect.apply(string, intl, [value.g1ZX6m]);
object2.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).s3qSVt);
object2.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).f1UJiC;
function getActivityTypeTextConfigs() { // fn#45682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:310, offset: 0x01195399, size: 37 bytes, params: 1, frame: 11
const Map = global.Map;
const value = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map(ACTION_TO_TEXT);
return map instanceof Object ? map : value;
}
return object2;
}
function formatUserActivityTimestamp(a0, a1, a2) { // fn#45687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:963, offset: 0x011955a6, size: 248 bytes, params: 4, frame: 21
var r0;
var intl;
var formatToPlainString;
var days;
var object2;
var Math;
let value = a2;
const value3 = (importDefault(3738) /* metro dependency 3738 */)();
const value5 = value3.diff((importDefault(3738) /* metro dependency 3738 */)(a0), 's');
const value6 = a1();
(importDefault(3738) /* metro dependency 3738 */)(a0).format('LL');
if (value5 < 86400) {
r0 = value6.today;
} else if (value5 < 172800) {
r0 = value6.yesterday;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
days = value6.days;
object2 = {};
Math = global.Math;
object2.days = Math.min(global.Math.floor(value5 / 86400), value ?? 999);
value = Reflect.apply(formatToPlainString, intl, [days, object2]);
r0 = value;
function hasActiveParentLinks() { // fn#45683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:346, offset: 0x011953be, size: 55 bytes, params: 1, frame: 12
const Object = global.Object;
const values = Object.values;
const familyCenterStoreBinding = FamilyCenterStore;
const getLinkedUsers = familyCenterStoreBinding.getLinkedUsers;
return Reflect.apply(values, Object, [Reflect.apply(getLinkedUsers, familyCenterStoreBinding, [])]).some(_fun45684);
function _fun45684(a0) { // fn#45684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:390, offset: 0x011953f5, size: 51 bytes, params: 2, frame: 4
const link_status = a0.link_status;
const value = environment.__proto__;
const ACTIVE = UserLinkStatus.ACTIVE;
return link_status === ACTIVE && a0.link_type === UserLinkType.PARENT;
}
}
return r0;
}
function formatLinkTimestamp(a0, a1) { // fn#45688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1186, offset: 0x0119569e, size: 442 bytes, params: 3, frame: 23
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
var object2;
var days;
var hours;
var minutes;
const value2 = (importDefault(3738) /* metro dependency 3738 */)();
const value4 = value2.diff((importDefault(3738) /* metro dependency 3738 */)(a0), 's');
const value5 = a1();
if (value4 < 60) {
r0 = value5.seconds;
} else if (value4 < 3600) {
formatToPlainString = intl.formatToPlainString;
minutes = value5.minutes;
object2 = {};
object2.count = global.Math.floor(value4 / 60);
r0 = Reflect.apply(formatToPlainString, intl, [minutes, object2]);
} else if (value4 < 86400) {
formatToPlainString = intl.formatToPlainString;
hours = value5.hours;
object2 = {};
object2.count = global.Math.floor(value4 / 3600);
r0 = Reflect.apply(formatToPlainString, intl, [hours, object2]);
} else if (value4 < 172800) {
r0 = value5.yesterday;
} else if (value4 < 604800) {
formatToPlainString = intl.formatToPlainString;
days = value5.days;
object2 = {};
object2.count = global.Math.floor(value4 / 86400);
r0 = Reflect.apply(formatToPlainString, intl, [days, object2]);
} else {
r0 = intl.formatToPlainString(value5.date,
{date: (importDefault(3738) /* metro dependency 3738 */)(a0).format('LL')});
function getEmptyActivityFormatter() { // fn#45685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:548, offset: 0x01195428, size: 141 bytes, params: 1, frame: 18
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const VjIAQQ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VjIAQQ;
object.today = Reflect.apply(string, intl, [VjIAQQ]);
object.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['2a8xHY']);
const Xt6oND = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Xt6oND;
object.days = Xt6oND;
return object;
}
return r0;
}
function isUserAction(a0) { // fn#45689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1592, offset: 0x01195858, size: 74 bytes, params: 2, frame: 5
const display_type = a0.display_type;
const USER_ADD = TeenActionDisplayType.USER_ADD;
let r0 = display_type === USER_ADD || a0.display_type === TeenActionDisplayType.USER_INTERACTION;
r0 = !r0 ? a0.display_type === TeenActionDisplayType.USER_CALLED : r0;
return r0;
}
function getActivityWindowTimestampFormatter(a0) { // fn#45686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:705, offset: 0x011954b5, size: 241 bytes, params: 2, frame: 21
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const value = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
if (a0) {
object.today = Reflect.apply(string, intl, [value['2AtcIs']]);
object.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).stOECr);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).n8n5Ba;
} else {
object.today = Reflect.apply(string, intl, [value.g1ZX6m]);
object.yesterday = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).s3qSVt);
object.days = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).f1UJiC;
}
return object;
}
function isGuildAction(a0) { // fn#45690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1708, offset: 0x011958a2, size: 51 bytes, params: 2, frame: 4
const display_type = a0.display_type;
const GUILD_ADD = TeenActionDisplayType.GUILD_ADD;
return display_type === GUILD_ADD || a0.display_type === TeenActionDisplayType.GUILD_INTERACTION;
}
function formatUserActivityTimestamp(a0, a1, a2) { // fn#45687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:963, offset: 0x011955a6, size: 248 bytes, params: 4, frame: 21
var r0;
var intl;
var formatToPlainString;
var days;
var object;
var Math;
let value = a2;
const value3 = (Module03738)();
const value5 = value3.diff((Module03738)(a0), 's');
const value6 = a1();
(Module03738)(a0).format('LL');
if (value5 < 86400) {
r0 = value6.today;
} else if (value5 < 172800) {
r0 = value6.yesterday;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
days = value6.days;
object = {};
Math = global.Math;
object.days = Math.min(global.Math.floor(value5 / 86400), value ?? 999);
value = Reflect.apply(formatToPlainString, intl, [days, object]);
r0 = value;
}
return r0;
}
function displayTypeFromString(a0) { // fn#45693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1884, offset: 0x0119590d, size: 77 bytes, params: 2, frame: 13
var r2;
var property;
var toString;
var value3;
const Object = global.Object;
const value = Object.values(TeenActionDisplayType);
let length = value.length;
const value2 = 0;
if (value2 < length) {
r2 = value2;
loopExit1: while (true) {
property = value[r2];
toString = property.toString;
if (Reflect.apply(toString, property, []) === a0) {
return property;
function formatLinkTimestamp(a0, a1) { // fn#45688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1186, offset: 0x0119569e, size: 442 bytes, params: 3, frame: 23
var r0;
const intl = (IndexNativeModule).intl;
var formatToPlainString;
var object;
var days;
var hours;
var minutes;
const value2 = (importDefault(3738) /* metro dependency 3738 */)();
const value4 = value2.diff((importDefault(3738) /* metro dependency 3738 */)(a0), 's');
const value5 = a1();
if (value4 < 60) {
r0 = value5.seconds;
} else if (value4 < 3600) {
formatToPlainString = intl.formatToPlainString;
minutes = value5.minutes;
object = {};
object.count = global.Math.floor(value4 / 60);
r0 = Reflect.apply(formatToPlainString, intl, [minutes, object]);
} else if (value4 < 86400) {
formatToPlainString = intl.formatToPlainString;
hours = value5.hours;
object = {};
object.count = global.Math.floor(value4 / 3600);
r0 = Reflect.apply(formatToPlainString, intl, [hours, object]);
} else if (value4 < 172800) {
r0 = value5.yesterday;
} else if (value4 < 604800) {
formatToPlainString = intl.formatToPlainString;
days = value5.days;
object = {};
object.count = global.Math.floor(value4 / 86400);
r0 = Reflect.apply(formatToPlainString, intl, [days, object]);
} else {
r0 = intl.formatToPlainString(value5.date,
{date: (importDefault(3738) /* metro dependency 3738 */)(a0).format('LL')});
}
return r0;
}
function isUserAction(a0) { // fn#45689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1592, offset: 0x01195858, size: 74 bytes, params: 2, frame: 5
const display_type = a0.display_type;
const USER_ADD = TeenActionDisplayType.USER_ADD;
let r0 = display_type === USER_ADD || a0.display_type === TeenActionDisplayType.USER_INTERACTION;
r0 = !r0 ? a0.display_type === TeenActionDisplayType.USER_CALLED : r0;
return r0;
}
function isGuildAction(a0) { // fn#45690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1708, offset: 0x011958a2, size: 51 bytes, params: 2, frame: 4
const display_type = a0.display_type;
const GUILD_ADD = TeenActionDisplayType.GUILD_ADD;
return display_type === GUILD_ADD || a0.display_type === TeenActionDisplayType.GUILD_INTERACTION;
}
function displayTypeFromString(a0) { // fn#45693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:1884, offset: 0x0119590d, size: 77 bytes, params: 2, frame: 13
var r2;
var property;
var toString;
var value3;
const Object = global.Object;
const value = Object.values(TeenActionDisplayType);
let length = value.length;
const value2 = 0;
if (value2 < length) {
r2 = value2;
loopExit1: while (true) {
property = value[r2];
toString = property.toString;
if (Reflect.apply(toString, property, []) === a0) {
return property;
}
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = value.length;
if (value3 < length) {
r2 = value3;
continue;
}
break loopExit1;
}
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = value.length;
if (value3 < length) {
r2 = value3;
continue;
}
break loopExit1;
}
}
}
function getSortedActivityTypeConfigs() { // fn#45695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2092, offset: 0x0119597f, size: 78 bytes, params: 1, frame: 12
var r0;
var Array;
var value;
if (getActivityTypeTextConfigs().size === 0) {
r0 = [];
} else {
Array = global.Array;
value = Array.from(value.entries());
value = value.sort(function(a0, a1) {
return a0[1].priority - a1[1].priority;
});
r0 = value;
function getSortedActivityTypeConfigs() { // fn#45695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2092, offset: 0x0119597f, size: 78 bytes, params: 1, frame: 12
var r0;
var Array;
var value;
if (getActivityTypeTextConfigs().size === 0) {
r0 = [];
} else {
Array = global.Array;
value = Array.from(value.entries());
value = value.sort(function(a0, a1) {
return a0[1].priority - a1[1].priority;
});
r0 = value;
}
return r0;
}
return r0;
}
function getOrFetchLinkedUsers() { // fn#45698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2387, offset: 0x01195a57, size: 72 bytes, params: 1, frame: 12
const getAreLinkedUsersProcessed = FamilyCenterStore.getAreLinkedUsersProcessed;
if (Reflect.apply(getAreLinkedUsersProcessed, FamilyCenterStore, [])) {
return FamilyCenterStore.getLinkedUsers();
function getOrFetchLinkedUsers() { // fn#45698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2387, offset: 0x01195a57, size: 72 bytes, params: 1, frame: 12
const familyCenterStoreBinding = FamilyCenterStore;
const getAreLinkedUsersProcessed = familyCenterStoreBinding.getAreLinkedUsersProcessed;
if (Reflect.apply(getAreLinkedUsersProcessed, familyCenterStoreBinding, [])) {
return FamilyCenterStore.getLinkedUsers();
}
(FamilyCenterActionCreators).fetchLinkedUsers();
}
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).fetchLinkedUsers();
}
function getTopUserOrGuildDescription(a0, a1) { // fn#45700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2607, offset: 0x01195a9f, size: 254 bytes, params: 3, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return a1 > 0 && a0 === 0 ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['L/Cj7S'],
{callCount: a1}) : a0 > 0 && a1 === 0 ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6X1F0i'],
{messageCount: a0}) : intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IYqGMG,
{messageCount: a0, callCount: a1});
}
function getTopUserOrGuildDescription(a0, a1) { // fn#45700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:2607, offset: 0x01195a9f, size: 254 bytes, params: 3, frame: 18
const intl = (IndexNativeModule).intl;
return a1 > 0 && a0 === 0 ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['L/Cj7S'],
{callCount: a1}) : a0 > 0 && a1 === 0 ? intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6X1F0i'],
{messageCount: a0}) : intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IYqGMG,
{messageCount: a0, callCount: a1});
}
function _fun45684(a0) { // fn#45684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5365:390, offset: 0x011953f5, size: 51 bytes, params: 2, frame: 4
const link_status = a0.link_status;
const value = environment.__proto__;
const ACTIVE = UserLinkStatus.ACTIVE;
return link_status === ACTIVE && a0.link_type === UserLinkType.PARENT;
}
global.__d(_fun45681, 5187, [5116, 5117, 1244, 2224, 3738, 5118,
2]) /* metro module 5187, dependencies: [5116, 5117, 1244, 2224, 3738, 5118, 2] */;
@@ -1,13 +1,29 @@
/* Metro module 5188; source: modules/parent_tools/FamilyCenterV3Experiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun45701(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5366:6, offset: 0x01195b9d, size: 183 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-01-family-center-v3',
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/FamilyCenterV3Experiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/FamilyCenterV3Experiment.tsx');
exports.default = value;
exports.getIsFamilyCenterV3Enabled = getIsFamilyCenterV3Enabled;
exports.useIsFamilyCenterV3Enabled = useIsFamilyCenterV3Enabled;
function getIsFamilyCenterV3Enabled({location}) { // fn#45702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5366:376, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
function useIsFamilyCenterV3Enabled({location}) { // fn#45703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5366:497, offset: 0x01195c7b, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun45701, 5188, [1854, 2]) /* metro module 5188, dependencies: [1854, 2] */;
@@ -1,75 +1,96 @@
/* Metro module 14316; source: modules/parent_tools/ParentalConsentStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun108366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:6, offset: 0x0231e6be, size: 309 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun108370(PersistedStore);
value.displayName = 'ParentalConsentStore';
value.persistKey = 'ParentalConsentStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{GUARDIAN_CONNECT_REQUIRED: GUARDIAN_CONNECT_REQUIRED, GUARDIAN_CONNECT_CLEARED: GUARDIAN_CONNECT_CLEARED,
NUF_COMPLETE: NUF_COMPLETE_108377});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/ParentalConsentStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/ParentalConsentStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_108367() { // fn#108367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:148, offset: 0x0231e7f3, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_108367() { // fn#108367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:148, offset: 0x0231e7f3, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_108367_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_108367_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun108370(a0) { // fn#108370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:356, offset: 0x0231e855, size: 124 bytes, params: 2, frame: 16
const closure = ParentalConsentStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: function(a0) {
var r1;
var value = undefined;
r1 = a0 == null ? value : a0.shouldShowGuardianConnect;
env1_5 = r1 != null && r1;
return value;
}}, {key: 'getShouldShowGuardianConnect', value: value_108373}, {key: 'getState', value: value_108374}]);
}
function GUARDIAN_CONNECT_REQUIRED({shouldShowGuardianConnect}) { // fn#108375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1046, offset: 0x0231e90a, size: 40 bytes, params: 2, frame: 10
result = shouldShowGuardianConnect === true;
env0_6.persist();
}
function GUARDIAN_CONNECT_CLEARED() { // fn#108376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1163, offset: 0x0231e932, size: 27 bytes, params: 1, frame: 9
env0_6.persist();
}
function value_108374() { // fn#108374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:850, offset: 0x0231e8fa, size: 16 bytes, params: 1, frame: 2
return {shouldShowGuardianConnect: env1_5};
function _fun108370(a0) { // fn#108370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:356, offset: 0x0231e855, size: 124 bytes, params: 2, frame: 16
const ParentalConsentStore2 = ParentalConsentStore;
Inherits(ParentalConsentStore2, a0);
return CreateClass(ParentalConsentStore2, [{key: 'initialize', value: function(a0) {
var r1;
var value = undefined;
r1 = a0 == null ? value : a0.shouldShowGuardianConnect;
env1_5 = r1 != null && r1;
return value;
}}, {key: 'getShouldShowGuardianConnect', value: value_108373}, {key: 'getState', value: value_108374}]);
function ParentalConsentStore() { // fn#108371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:368, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ParentalConsentStore);
const value3 = env1_3(ParentalConsentStore);
return env1_2(this, _isNativeReflectConstruct_108367() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_108373() { // fn#108373, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_108374() { // fn#108374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:850, offset: 0x0231e8fa, size: 16 bytes, params: 1, frame: 2
return {shouldShowGuardianConnect: env1_5};
}
}
function GUARDIAN_CONNECT_REQUIRED({shouldShowGuardianConnect}) { // fn#108375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1046, offset: 0x0231e90a, size: 40 bytes, params: 2, frame: 10
result = shouldShowGuardianConnect === true;
env0_6.persist();
}
function GUARDIAN_CONNECT_CLEARED() { // fn#108376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1163, offset: 0x0231e932, size: 27 bytes, params: 1, frame: 9
env0_6.persist();
}
function NUF_COMPLETE_108377() { // fn#108377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14513:1234, offset: 0x0231e932, size: 27 bytes, params: 1, frame: 9
env0_6.persist();
}
}
global.__d(_fun108366, 14316, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 14316, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,18 +1,42 @@
/* Metro module 15642; source: modules/parent_tools/RestrictedHoursActionCreators.native.tsx; dependencies: [5, 5080, 15643, 1962, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ModalActionCreators from '../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun119780(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15850:6, offset: 0x025193c4, size: 145 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = closeRestrictedHoursModal;
const closeRestrictedHoursModal2 = closeRestrictedHoursModal;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/RestrictedHoursActionCreators.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/RestrictedHoursActionCreators.native.tsx');
exports.openRestrictedHoursModal = openRestrictedHoursModal;
exports.closeRestrictedHoursModal = closure;
}
exports.closeRestrictedHoursModal = closeRestrictedHoursModal2;
function closeRestrictedHoursModal() { // fn#119781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15850:137, offset: 0x02087da8, size: 42 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey(env0_4);
}
function openRestrictedHoursModal() { // fn#119782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15850:318, offset: 0x02519455, size: 90 bytes, params: 1, frame: 18
const defaultImport = ModalActionCreators;
defaultImport.pushLazy(Module00005(_fun119784), {onClose: closeRestrictedHoursModal}, env0_4, {'animation': 'none',
'presentation': 'fullScreenModal'});
function* _fun119784() { // fn#119784, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15850:374, offset: 0x01712359, size: 74 bytes, params: 1, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
const binding2 = env2_2;
yield binding(binding2[3])(binding2[2], binding2.paths);
value = undefined;
if (false) {
return value;
}
return value.default;
}
}
function openRestrictedHoursModal() { // fn#119782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15850:318, offset: 0x02519455, size: 90 bytes, params: 1, frame: 18
const defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.pushLazy(env0_3(_fun119784), {onClose: closeRestrictedHoursModal}, env0_4, {'animation': 'none',
'presentation': 'fullScreenModal'});
}
global.__d(_fun119780, 15642, [5, 5080, 15643, 1962,
2]) /* metro module 15642, dependencies: [5, 5080, 15643, 1962, 2] */;
@@ -1,4 +1,18 @@
/* Metro module 15647; source: modules/parent_tools/RestrictedHoursManager.tsx; dependencies: [6, 7, 15, 17, 18, 10907, 1878, 5116, 1244, 2224, 1898, 10909, 694, 5188, 15642, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import FamilyCenterStore from './FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import NotificationSettingsStore from '../../stores/NotificationSettingsStore.tsx'; /* Metro dependency 10907 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FamilyCenterV3ExperimentModule from './FamilyCenterV3Experiment.tsx'; /* Metro dependency 5188 */
import * as RestrictedHoursActionCreatorsNativeModule from './RestrictedHoursActionCreators.native.tsx'; /* Metro dependency 15642 */
function _fun119810(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:6, offset: 0x0251a42a, size: 381 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = function() {
@@ -13,222 +27,222 @@ function _fun119810(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const notificationSettingsStore = importDefault(10907) /* metro dependency 10907: NotificationSettingsStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun119823(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/RestrictedHoursManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/RestrictedHoursManager.tsx');
exports.default = value;
exports.getCurrentRestrictedHoursState = closure;
}
function _isNativeReflectConstruct_119811() { // fn#119811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:178, offset: 0x0251a5a7, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_119811() { // fn#119811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:178, offset: 0x0251a5a7, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_119811_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_119811_isNativeReflectConstruct = function() {
return !!result;
})();
}
function dispatchWarningIfNeeded(a0) { // fn#119815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:485, offset: 0x0251a61c, size: 331 bytes, params: 2, frame: 25
var value3;
var JS_DAY_TO_DAY_OF_WEEK;
var date;
var property;
var moduleValue;
let rule = a0.rule;
const ruleId = rule.ruleId;
let startAtMs = a0.startAtMs;
if ('' + ruleId + ':' + startAtMs !== env0_14) {
rule = a0.rule;
startAtMs = a0.startAtMs;
value3 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0JlDg0']);
JS_DAY_TO_DAY_OF_WEEK = (require(1898) /* metro dependency 1898: FamilyCenterModels */).JS_DAY_TO_DAY_OF_WEEK;
date = new global.Date(startAtMs);
property = JS_DAY_TO_DAY_OF_WEEK[date.getDay()];
moduleValue = require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RESTRICTED_HOURS_WARNING',
title: value3,
subtitle: ('' + moduleValue.formatDays([property]) + ' ' + (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).getScheduleRuleDateRange(rule)).trim()});
function dispatchWarningIfNeeded(a0) { // fn#119815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:485, offset: 0x0251a61c, size: 331 bytes, params: 2, frame: 25
var value3;
var JS_DAY_TO_DAY_OF_WEEK;
var date;
var property;
var moduleValue;
let rule = a0.rule;
const ruleId = rule.ruleId;
let startAtMs = a0.startAtMs;
if ('' + ruleId + ':' + startAtMs !== env0_14) {
rule = a0.rule;
startAtMs = a0.startAtMs;
value3 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0JlDg0']);
JS_DAY_TO_DAY_OF_WEEK = (require(1898) /* metro dependency 1898: FamilyCenterModels */).JS_DAY_TO_DAY_OF_WEEK;
date = new global.Date(startAtMs);
property = JS_DAY_TO_DAY_OF_WEEK[date.getDay()];
moduleValue = require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RESTRICTED_HOURS_WARNING',
title: value3,
subtitle: ('' + moduleValue.formatDays([property]) + ' ' + (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).getScheduleRuleDateRange(rule)).trim()});
}
}
}
function scheduleUpcomingWarning() { // fn#119816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:877, offset: 0x0251a767, size: 435 bytes, params: 1, frame: 21
var restrictedSchedule;
var r6;
var r5;
var currentUser;
var nextStartInfo;
var minutesUntil;
var value8;
var value10;
const value2 = null;
if (value2 != env0_13) {
global.clearTimeout(env0_13);
}
let Date = global.Date;
let date = new Date();
const value5 = undefined;
const familyCenterV3ExperimentModule = require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */;
const getIsFamilyCenterV3Enabled = familyCenterV3ExperimentModule.getIsFamilyCenterV3Enabled;
let object2 = {location: 'RestrictedHoursManager'};
if (Reflect.apply(getIsFamilyCenterV3Enabled, familyCenterV3ExperimentModule, [object2])) {
if (NotificationSettingsStore.screenDowntimeReminder) {
currentUser = UserStore.getCurrentUser();
restrictedSchedule = value2 == currentUser ? value5 : currentUser.restrictedSchedule;
if (value2 == restrictedSchedule) {
r5 = value2;
} else {
nextStartInfo = restrictedSchedule.getNextStartInfo(date);
if (value2 == nextStartInfo) {
r6 = value2;
function scheduleUpcomingWarning() { // fn#119816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:877, offset: 0x0251a767, size: 435 bytes, params: 1, frame: 21
var restrictedSchedule;
var r6;
var r5;
var currentUser;
var nextStartInfo;
var minutesUntil;
var value8;
var value10;
const value2 = null;
if (value2 != env0_13) {
global.clearTimeout(env0_13);
}
let Date = global.Date;
let date = new Date();
const value5 = undefined;
const getIsFamilyCenterV3Enabled = FamilyCenterV3ExperimentModule.getIsFamilyCenterV3Enabled;
let object = {location: 'RestrictedHoursManager'};
if (Reflect.apply(getIsFamilyCenterV3Enabled, FamilyCenterV3ExperimentModule, [object])) {
if (NotificationSettingsStore.screenDowntimeReminder) {
currentUser = UserStore.getCurrentUser();
restrictedSchedule = value2 == currentUser ? value5 : currentUser.restrictedSchedule;
if (value2 == restrictedSchedule) {
r5 = value2;
} else {
object2 = {};
minutesUntil = nextStartInfo.minutesUntil;
object2.minutesUntil = minutesUntil;
Date = global.Date;
value8 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(date);
value10 = (date instanceof Object ? date : value8).setSeconds(0, 0);
minutesUntil = nextStartInfo.minutesUntil;
object2.startAtMs = value10 + 60 * minutesUntil * 1000;
object2.rule = nextStartInfo.rule;
r6 = object2;
nextStartInfo = restrictedSchedule.getNextStartInfo(date);
if (value2 == nextStartInfo) {
r6 = value2;
} else {
object = {};
minutesUntil = nextStartInfo.minutesUntil;
object.minutesUntil = minutesUntil;
Date = global.Date;
value8 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(date);
value10 = (date instanceof Object ? date : value8).setSeconds(0, 0);
minutesUntil = nextStartInfo.minutesUntil;
object.startAtMs = value10 + 60 * minutesUntil * 1000;
object.rule = nextStartInfo.rule;
r6 = object;
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value2;
}
} else {
r5 = value2;
}
} else {
r5 = value2;
if (value2 != r5) {
if (r5.minutesUntil <= 16) {
dispatchWarningIfNeeded(r5);
env0_13 = global.setTimeout(function() {
env1_13 = null;
scheduleUpcomingWarning();
}, 60000);
} else {
env0_13 = global.setTimeout(_fun119818, global.Math.max(0, 60 * (r5.minutesUntil - 16) * 1000));
}
}
return value5;
function _fun119818() { // fn#119818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:1559, offset: 0x0251a91a, size: 21 bytes, params: 1, frame: 9
scheduleUpcomingWarning();
}
}
if (value2 != r5) {
if (r5.minutesUntil <= 16) {
dispatchWarningIfNeeded(r5);
env0_13 = global.setTimeout(function() {
env1_13 = null;
scheduleUpcomingWarning();
}, 60000);
} else {
env0_13 = global.setTimeout(_fun119818, global.Math.max(0, 60 * (r5.minutesUntil - 16) * 1000));
function checkAndUpdateModal() { // fn#119819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:1603, offset: 0x0251a92f, size: 135 bytes, params: 1, frame: 14
var defaultImport;
var binding;
var moduleValue;
const currentRestrictedHoursState = getCurrentRestrictedHoursState();
if (currentRestrictedHoursState !== currentRestrictedHoursState2) {
currentRestrictedHoursState2 = currentRestrictedHoursState;
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport.dispatch({type: 'RESTRICTED_HOURS_STATE_CHANGE',
isInRestrictedHours: currentRestrictedHoursState2});
binding = currentRestrictedHoursState2;
moduleValue = require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */;
if (binding) {
moduleValue.openRestrictedHoursModal();
} else {
moduleValue.closeRestrictedHoursModal();
}
scheduleUpcomingWarning();
}
}
return value5;
}
function checkAndUpdateModal() { // fn#119819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:1603, offset: 0x0251a92f, size: 135 bytes, params: 1, frame: 14
var defaultImport;
var binding;
var moduleValue;
const currentRestrictedHoursState = getCurrentRestrictedHoursState();
if (currentRestrictedHoursState !== env0_11) {
env0_11 = currentRestrictedHoursState;
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport.dispatch({type: 'RESTRICTED_HOURS_STATE_CHANGE', isInRestrictedHours: env0_11});
binding = env0_11;
moduleValue = require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */;
if (binding) {
moduleValue.openRestrictedHoursModal();
} else {
moduleValue.closeRestrictedHoursModal();
function handleLogout_119820() { // fn#119820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:1867, offset: 0x0251a9b6, size: 92 bytes, params: 1, frame: 14
(Dispatcher).dispatch({'type': 'RESTRICTED_HOURS_STATE_CHANGE',
'isInRestrictedHours': false});
if (env0_13 != null) {
global.clearTimeout(env0_13);
}
scheduleUpcomingWarning();
}
function _fun119823(a0) { // fn#119823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2181, offset: 0x0251aa29, size: 97 bytes, params: 2, frame: 16
const RestrictedHoursManager2 = RestrictedHoursManager;
Inherits(RestrictedHoursManager2, a0);
return CreateClass(RestrictedHoursManager2, [{key: '_initialize', value: value_119825}, {key: '_terminate',
value: value_119826}]);
function RestrictedHoursManager(a0) { // fn#119824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2193, offset: 0x0251aa8a, size: 230 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, RestrictedHoursManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(RestrictedHoursManager);
binding = env1_5;
if (_isNativeReflectConstruct_119811()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
const Map = global.Map;
const map = new Map();
const set = map.set;
const userStoreBinding = UserStore;
const handleScheduleUpdateBinding = handleScheduleUpdate;
const value6 = Reflect.apply(set, map, [userStoreBinding, handleScheduleUpdateBinding]);
value.stores = value6.set(FamilyCenterStore, handleScheduleUpdateBinding);
value.actions = {POST_CONNECTION_OPEN: handleScheduleUpdateBinding,
CURRENT_USER_UPDATE: handleScheduleUpdateBinding,
NOTIFICATIONS_SET_SCREEN_DOWNTIME_REMINDER: handleScreenDowntimeReminderChanged, LOGOUT: handleLogout_119820};
return value;
}
function value_119825() { // fn#119825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2802, offset: 0x0251ab70, size: 143 bytes, params: 1, frame: 15
currentRestrictedHoursState = getCurrentRestrictedHoursState();
const defaultImport = Dispatcher;
defaultImport.dispatch({type: 'RESTRICTED_HOURS_STATE_CHANGE', isInRestrictedHours: currentRestrictedHoursState});
if (currentRestrictedHoursState) {
(require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */).openRestrictedHoursModal();
}
env1_12 = global.setInterval(checkAndUpdateModal, 60000);
scheduleUpcomingWarning();
}
function value_119826() { // fn#119826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:3058, offset: 0x0251abff, size: 111 bytes, params: 1, frame: 13
if (env1_12 != null) {
global.clearInterval(env1_12);
}
if (env1_13 != null) {
global.clearTimeout(env1_13);
}
(RestrictedHoursActionCreatorsNativeModule).closeRestrictedHoursModal();
}
}
}
function handleLogout_119820() { // fn#119820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:1867, offset: 0x0251a9b6, size: 92 bytes, params: 1, frame: 14
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'RESTRICTED_HOURS_STATE_CHANGE',
'isInRestrictedHours': false});
if (env0_13 != null) {
global.clearTimeout(env0_13);
}
}
function _fun119823(a0) { // fn#119823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2181, offset: 0x0251aa29, size: 97 bytes, params: 2, frame: 16
const closure = RestrictedHoursManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_119825}, {key: '_terminate', value: value_119826}]);
}
function RestrictedHoursManager(a0) { // fn#119824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2193, offset: 0x0251aa8a, size: 230 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, RestrictedHoursManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(RestrictedHoursManager);
binding = env1_5;
if (_isNativeReflectConstruct_119811()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
const Map = global.Map;
const map = new Map();
const set = map.set;
const handleScheduleUpdateBinding = handleScheduleUpdate;
value.stores = Reflect.apply(set, map, [UserStore, handleScheduleUpdateBinding]).set(FamilyCenterStore,
handleScheduleUpdateBinding);
value.actions = {POST_CONNECTION_OPEN: handleScheduleUpdateBinding,
CURRENT_USER_UPDATE: handleScheduleUpdateBinding,
NOTIFICATIONS_SET_SCREEN_DOWNTIME_REMINDER: handleScreenDowntimeReminderChanged, LOGOUT: handleLogout_119820};
return value;
}
function value_119825() { // fn#119825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:2802, offset: 0x0251ab70, size: 143 bytes, params: 1, frame: 15
env1_11 = getCurrentRestrictedHoursState();
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport.dispatch({type: 'RESTRICTED_HOURS_STATE_CHANGE', isInRestrictedHours: env1_11});
if (env1_11) {
(require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */).openRestrictedHoursModal();
}
env1_12 = global.setInterval(checkAndUpdateModal, 60000);
scheduleUpcomingWarning();
}
function value_119826() { // fn#119826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15855:3058, offset: 0x0251abff, size: 111 bytes, params: 1, frame: 13
if (env1_12 != null) {
global.clearInterval(env1_12);
}
if (env1_13 != null) {
global.clearTimeout(env1_13);
}
(require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */).closeRestrictedHoursModal();
}
global.__d(_fun119810, 15647, [6, 7, 15, 17, 18, 10907, 1878, 5116, 1244, 2224, 1898, 10909, 694, 5188, 15642, 4860,
2]) /* metro module 15647, dependencies: [6, 7, 15, 17, 18, 10907, 1878, 5116, 1244, 2224, 1898, 10909, 694, 5188, 15642, 4860, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13449; source: modules/parent_tools/RestrictedScheduleActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun102280(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:6, offset: 0x022359e3, size: 199 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/RestrictedScheduleActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/RestrictedScheduleActionCreators.tsx');
exports.addRestrictedScheduleRule = function() {
return _addRestrictedScheduleRule.apply(this, arguments);
};
@@ -15,80 +17,81 @@ function _fun102280(global, require, importDefault, importAll, module, exports,
exports.deleteRestrictedScheduleRule = function() {
return _deleteRestrictedScheduleRule.apply(this, arguments);
};
}
function _addRestrictedScheduleRule() { // fn#102281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:126, offset: 0x02235aaa, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun102283).apply(this, arguments);
}
function _updateRestrictedScheduleRule() { // fn#102284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:454, offset: 0x02235b8a, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun102286).apply(this, arguments);
}
function _deleteRestrictedScheduleRule() { // fn#102287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:794, offset: 0x02235c6e, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun102289).apply(this, arguments);
}
function* _fun102283(a0, a1) { // fn#102283, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:201, offset: 0x02235ae7, size: 163 bytes, params: 3, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const post = HTTP.post;
const object2 = {};
object2.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULE(a0);
object2.body = a1;
object2.rejectWithError = false;
yield Reflect.apply(post, HTTP, [object2]);
const value3 = undefined;
if (false) {
return value3;
}
const body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
return body;
}
function* _fun102286(a0, a1, a2) { // fn#102286, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:535, offset: 0x02235bc7, size: 167 bytes, params: 4, frame: 19
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const patch = HTTP.patch;
const object2 = {};
object2.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
object2.body = a2;
object2.rejectWithError = false;
yield Reflect.apply(patch, HTTP, [object2]);
const value3 = undefined;
if (false) {
return value3;
}
const body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
return body;
}
function* _fun102289(a0, a1) { // fn#102289, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:875, offset: 0x02235cab, size: 160 bytes, params: 3, frame: 19
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var del = HTTP.del;
var object2 = {};
object2.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
object2.rejectWithError = false;
yield Reflect.apply(del, HTTP, [object2]);
var value3 = undefined;
if (false) {
return value3;
function _addRestrictedScheduleRule() { // fn#102281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:126, offset: 0x02235aaa, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun102283).apply(this, arguments);
function* _fun102283(a0, a1) { // fn#102283, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:201, offset: 0x02235ae7, size: 163 bytes, params: 3, frame: 17
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const post = HTTP.post;
const object = {};
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULE(a0);
object.body = a1;
object.rejectWithError = false;
yield Reflect.apply(post, HTTP, [object]);
const value3 = undefined;
if (false) {
return value3;
}
const body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
return body;
}
var body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
}
function _updateRestrictedScheduleRule() { // fn#102284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:454, offset: 0x02235b8a, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun102286).apply(this, arguments);
function* _fun102286(a0, a1, a2) { // fn#102286, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:535, offset: 0x02235bc7, size: 167 bytes, params: 4, frame: 19
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[2]).HTTP;
const patch = HTTP.patch;
const object = {};
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
object.body = a2;
object.rejectWithError = false;
yield Reflect.apply(patch, HTTP, [object]);
const value3 = undefined;
if (false) {
return value3;
}
const body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
return body;
}
}
function _deleteRestrictedScheduleRule() { // fn#102287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:794, offset: 0x02235c6e, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun102289).apply(this, arguments);
function* _fun102289(a0, a1) { // fn#102289, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:875, offset: 0x02235cab, size: 160 bytes, params: 3, frame: 19
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[2]).HTTP;
var del = HTTP.del;
var object = {};
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
object.rejectWithError = false;
yield Reflect.apply(del, HTTP, [object]);
var value3 = undefined;
if (false) {
return value3;
}
var body = value3.body;
value = env2_1(env2_2[3]);
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
}
}
}
}
global.__d(_fun102280, 13449, [5, 661, 507, 694, 2]) /* metro module 13449, dependencies: [5, 661, 507, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,91 +1,97 @@
/* Metro module 13422; source: modules/parent_tools/SpendingLimitDisplay.tsx; dependencies: [1348, 5116, 1880, 566, 13350, 5137, 5138, 1244, 2224, 2] */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import FamilyCenterStore from './FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as PremiumConstantsModule from '../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as PriceUtilsModule from '../../utils/PriceUtils.tsx'; /* Metro dependency 5137 */
import * as PriceUtilsModule2 from '../../external/discord_common/js/shared/utils/PriceUtils.tsx'; /* Metro dependency 5138 */
import * as SpendingLimitUtilsModule from './SpendingLimitUtils.tsx'; /* Metro dependency 13350 */
function _fun102130(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:6, offset: 0x0222e30d, size: 199 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = getSpendingLimitDisplayState;
const getSpendingLimitDisplayState2 = getSpendingLimitDisplayState;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const env0_5 = (require(1880) /* metro dependency 1880: PremiumConstants */).SubscriptionIntervalTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/SpendingLimitDisplay.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/SpendingLimitDisplay.tsx');
exports.useSpendingLimitFromUserSettings = function() {
return require(dependencyMap[3]).useStateFromStores([UserSettingsProtoStore], _fun102133, undefined,
require(dependencyMap[4]).spendingLimitEqual);
};
exports.CLOSE_TO_LIMIT_THRESHOLD_MAJOR_UNITS = 10;
exports.getSpendingLimitDisplayState = closure;
exports.getSpendingLimitDisplayState = getSpendingLimitDisplayState2;
exports.useSpendingLimitDisplayState = useSpendingLimitDisplayState;
function getSpendingLimitDisplayState(a0, a1) { // fn#102131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:152, offset: 0x0222e3d4, size: 380 bytes, params: 3, frame: 23
var object;
var intl;
var formatToPlainString;
var object2;
if (a0 == null) {
return {kind: 'off'};
}
if (a0.amount === 0) {
return {kind: 'blocked'};
}
const currency = a0.currency;
const formatRate = PriceUtilsModule.formatRate;
const value2 = PriceUtilsModule.formatPrice(a0.amount, currency);
const MONTH = SubscriptionIntervalTypes.MONTH;
const value3 = Reflect.apply(formatRate, PriceUtilsModule, [value2, MONTH, 1]);
if (a1 >= a0.amount) {
return {kind: 'spent', monthlyText: value3};
}
const CurrencyExponents = (PriceUtilsModule2).CurrencyExponents;
let property = CurrencyExponents[a0.currency];
let r0 = property ?? 2;
const value5 = a0.amount - a1;
if (value5 <= 10 * exponentiationOperator(10, r0, undefined)) {
object = {kind: 'close-to-limit', monthlyText: value3};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+Q+bU1'];
object2 = {};
object2.amount = PriceUtilsModule.formatPrice(value5, currency);
object.remainingText = Reflect.apply(formatToPlainString, intl, [property, object2]);
r0 = object;
} else {
r0 = {kind: 'on', monthlyText: value3};
}
return r0;
}
function useSpendingLimitFromUserSettings() { // fn#102132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:769, offset: 0x0222e550, size: 83 bytes, params: 1, frame: 18
return (FluxModule).useStateFromStores([UserSettingsProtoStore], _fun102133,
undefined, (SpendingLimitUtilsModule).spendingLimitEqual);
function _fun102133() { // fn#102133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:852, offset: 0x0222e5a3, size: 104 bytes, params: 1, frame: 14
var r0;
var object;
let value = environment.__proto__;
const safetySettings = UserSettingsProtoStore.settings.safetySettings;
value = null;
const oneTimePurchaseLimit = value == safetySettings || value == safetySettings.spendingLimitSettings ? undefined : safetySettings.spendingLimitSettings.oneTimePurchaseLimit;
if (value == oneTimePurchaseLimit) {
r0 = value;
} else {
object = {};
object.amount = global.Number(oneTimePurchaseLimit.amount);
object.currency = oneTimePurchaseLimit.currency;
r0 = object;
}
return r0;
}
}
function useSpendingLimitDisplayState(a0) { // fn#102134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:1203, offset: 0x0222e60b, size: 101 bytes, params: 2, frame: 15
const value2 = undefined;
const monthlyPurchases = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getMonthlyPurchases();
});
return getSpendingLimitDisplayState(a0, (monthlyPurchases == null ? value2 : monthlyPurchases.total_amount) ?? 0);
}
}
function getSpendingLimitDisplayState(a0, a1) { // fn#102131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:152, offset: 0x0222e3d4, size: 380 bytes, params: 3, frame: 23
var object3;
var intl;
var formatToPlainString;
var object4;
if (a0 == null) {
return {kind: 'off'};
}
if (a0.amount === 0) {
return {kind: 'blocked'};
}
const currency = a0.currency;
const priceUtilsModule = require(5137) /* metro dependency 5137: PriceUtils */;
const formatRate = priceUtilsModule.formatRate;
const moduleValue2 = priceUtilsModule;
const value2 = moduleValue2.formatPrice(a0.amount, currency);
const MONTH = SubscriptionIntervalTypes.MONTH;
const value3 = Reflect.apply(formatRate, priceUtilsModule, [value2, MONTH, 1]);
if (a1 >= a0.amount) {
return {kind: 'spent', monthlyText: value3};
}
const CurrencyExponents = (require(5138) /* metro dependency 5138: PriceUtils */).CurrencyExponents;
let property = CurrencyExponents[a0.currency];
let r0 = property ?? 2;
const value5 = a0.amount - a1;
if (value5 <= 10 * exponentiationOperator(10, r0, undefined)) {
object3 = {kind: 'close-to-limit', monthlyText: value3};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+Q+bU1'];
object4 = {};
object4.amount = priceUtilsModule.formatPrice(value5, currency);
object3.remainingText = Reflect.apply(formatToPlainString, intl, [property, object4]);
r0 = object3;
} else {
r0 = {kind: 'on', monthlyText: value3};
}
return r0;
}
function useSpendingLimitFromUserSettings() { // fn#102132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:769, offset: 0x0222e550, size: 83 bytes, params: 1, frame: 18
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore], _fun102133,
undefined, (require(13350) /* metro dependency 13350: SpendingLimitUtils */).spendingLimitEqual);
}
function useSpendingLimitDisplayState(a0) { // fn#102134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:1203, offset: 0x0222e60b, size: 101 bytes, params: 2, frame: 15
const value2 = undefined;
const monthlyPurchases = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getMonthlyPurchases();
});
return getSpendingLimitDisplayState(a0, (monthlyPurchases == null ? value2 : monthlyPurchases.total_amount) ?? 0);
}
function _fun102133() { // fn#102133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13612:852, offset: 0x0222e5a3, size: 104 bytes, params: 1, frame: 14
var r0;
var object2;
let value = environment.__proto__;
const safetySettings = UserSettingsProtoStore.settings.safetySettings;
value = null;
const oneTimePurchaseLimit = value == safetySettings || value == safetySettings.spendingLimitSettings ? undefined : safetySettings.spendingLimitSettings.oneTimePurchaseLimit;
if (value == oneTimePurchaseLimit) {
r0 = value;
} else {
object2 = {};
object2.amount = global.Number(oneTimePurchaseLimit.amount);
object2.currency = oneTimePurchaseLimit.currency;
r0 = object2;
}
return r0;
}
global.__d(_fun102130, 13422, [1348, 5116, 1880, 566, 13350, 5137, 5138, 1244, 2224,
2]) /* metro module 13422, dependencies: [1348, 5116, 1880, 566, 13350, 5137, 5138, 1244, 2224, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 13350; source: modules/parent_tools/SpendingLimitUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun101669(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13540:6, offset: 0x0221b831, size: 126 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/SpendingLimitUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/SpendingLimitUtils.tsx');
exports.spendingLimitEqual = function(a0, a1) {
var r0;
var r1;
@@ -17,6 +19,50 @@ function _fun101669(global, require, importDefault, importAll, module, exports,
exports.getNextRenewalDateLabel = getNextRenewalDateLabel;
exports.getCurrencySymbol = getCurrencySymbol;
exports.sanitizeAmountInput = sanitizeAmountInput;
function getCurrencySymbol(a0) { // fn#101672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13540:557, offset: 0x0221b99e, size: 170 bytes, params: 2, frame: 17
var r1;
var Intl;
var NumberFormat;
var object;
var value2;
var prototype;
var value3;
var numberFormat;
var value4;
var value5;
var closure;
var value6;
var value7;
var error;
let value = undefined;
try {
Intl = global.Intl;
NumberFormat = Intl.NumberFormat;
object = {style: 'currency'};
value2 = a0.toUpperCase();
object.currency = value2;
prototype = NumberFormat.prototype;
value3 = Object.create(prototype, {constructor: {value: NumberFormat}});
numberFormat = new NumberFormat(value);
value4 = numberFormat instanceof Object ? numberFormat : value3;
value5 = value4.formatToParts(0);
closure = function(a0) {
return a0.type === 'currency';
};
value6 = value5.find(closure);
value7 = value6 == null;
r1 = value7 ? value : value6.value;
value = r1 != null;
if (!value) {
value = a0.toUpperCase();
r1 = value;
}
} catch (error) {
return a0.toUpperCase();
}
return r1;
}
}
function getNextRenewalDateLabel() { // fn#101671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13540:341, offset: 0x0221b8fe, size: 160 bytes, params: 1, frame: 17
@@ -36,50 +82,6 @@ function getNextRenewalDateLabel() { // fn#101671, source: /ci/build/discord/dis
return (dateTimeFormat instanceof Object ? dateTimeFormat : value4).format(date);
}
function getCurrencySymbol(a0) { // fn#101672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13540:557, offset: 0x0221b99e, size: 170 bytes, params: 2, frame: 17
var r1;
var Intl;
var NumberFormat;
var object2;
var value2;
var prototype;
var value3;
var numberFormat;
var value4;
var value5;
var closure;
var value6;
var value7;
var error;
let value = undefined;
try {
Intl = global.Intl;
NumberFormat = Intl.NumberFormat;
object2 = {style: 'currency'};
value2 = a0.toUpperCase();
object2.currency = value2;
prototype = NumberFormat.prototype;
value3 = Object.create(prototype, {constructor: {value: NumberFormat}});
numberFormat = new NumberFormat(value);
value4 = numberFormat instanceof Object ? numberFormat : value3;
value5 = value4.formatToParts(0);
closure = function(a0) {
return a0.type === 'currency';
};
value6 = value5.find(closure);
value7 = value6 == null;
r1 = value7 ? value : value6.value;
value = r1 != null;
if (!value) {
value = a0.toUpperCase();
r1 = value;
}
} catch (error) {
return a0.toUpperCase();
}
return r1;
}
function sanitizeAmountInput(a0, a1) { // fn#101674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13540:837, offset: 0x0221ba5a, size: 155 bytes, params: 3, frame: 20
var r0;
var property;
@@ -101,3 +103,4 @@ function sanitizeAmountInput(a0, a1) { // fn#101674, source: /ci/build/discord/d
return r0;
}
global.__d(_fun101669, 13350, [2]) /* metro module 13350, dependencies: [2] */;
@@ -1,10 +1,13 @@
/* Metro module 12627; source: modules/parent_tools/hooks/useAgeSpecificText.tsx; dependencies: [8171, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun96898(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12817:6, offset: 0x0216b534, size: 99 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useAgeSpecificText.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useAgeSpecificText.tsx');
exports.useAgeSpecificText = function(a0, a1) {
return importDefault(dependencyMap[0])() ? a1 : a0;
};
}
global.__d(_fun96898, 12627, [8171, 2]) /* metro module 12627, dependencies: [8171, 2] */;
@@ -1,66 +1,70 @@
/* Metro module 15799; source: modules/parent_tools/hooks/useConnectGuardianGate.tsx; dependencies: [57, 31, 5116, 566, 5118, 4594, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseMountEffect from '../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun121387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:6, offset: 0x02546e15, size: 153 bytes, params: 8, frame: 19
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 familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useConnectGuardianGate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useConnectGuardianGate.tsx');
exports.useConnectGuardianGate = useConnectGuardianGate;
}
function useConnectGuardianGate() { // fn#121388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:238, offset: 0x02546eae, size: 289 bytes, params: 1, frame: 23
const {linkCode,
expiresAt} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([FamilyCenterStore],
function() {
var object = {};
var familyCenterStoreBinding = FamilyCenterStore;
object.linkCode = familyCenterStoreBinding.getLinkCode();
object.expiresAt = familyCenterStoreBinding.getLinkCodeExpiresAt();
return object;
});
let useState = ReactModule.useState;
const value3 = Reflect.apply(useState, ReactModule, [false]);
const value4 = Module00057(value3, 2);
const property = value4[0];
const env0_0 = value4[1];
useState = ReactModule.useState;
const value5 = Module00057(Reflect.apply(useState, ReactModule, [false]), 2);
const property2 = value5[0];
const env0_1 = value5[1];
const env0_2 = ReactModule.useRef(0);
const value6 = ReactModule.useCallback(_fun121390, []);
(UseMountEffect)(value6);
return property ? {state: 'error'} : property2 ? linkCode == null ? {state: 'error'} : expiresAt != null ? {state: 'gate',
linkCode: linkCode, expiresAt: expiresAt, refresh: value6} : {state: 'error'} : {state: 'loading'};
function _fun121390() { // fn#121390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:524, offset: 0x02546ffa, size: 110 bytes, params: 1, frame: 13
var environment;
const binding = env0_2;
const current = binding.current;
const value2 = typeof current === 'bigint' ? current + 1n : +current + 1;
binding.current = value2;
value2(false);
let value = environment.__proto__;
value = require(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
value = value.getLinkCodeForCurrentUser();
value = value.then(_fun121391);
value.catch(_fun121392);
function _fun121391() { // fn#121391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:595, offset: 0x02547068, size: 51 bytes, params: 1, frame: 12
if (env0_0 === env1_2.current) {
env1_0(false);
env1_1(true);
}
}
function useConnectGuardianGate() { // fn#121388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:238, offset: 0x02546eae, size: 289 bytes, params: 1, frame: 23
const {linkCode,
expiresAt} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([FamilyCenterStore],
function() {
var object = {};
object.linkCode = FamilyCenterStore.getLinkCode();
object.expiresAt = FamilyCenterStore.getLinkCodeExpiresAt();
return object;
});
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const env0_0 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value5[0];
const env0_1 = value5[1];
const env0_2 = binding.useRef(0);
const value6 = binding.useCallback(_fun121390, []);
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(value6);
return property ? {state: 'error'} : property2 ? linkCode == null ? {state: 'error'} : expiresAt != null ? {state: 'gate',
linkCode: linkCode, expiresAt: expiresAt, refresh: value6} : {state: 'error'} : {state: 'loading'};
}
function _fun121392() { // fn#121392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:639, offset: 0x0254709b, size: 40 bytes, params: 1, frame: 11
if (env0_0 === env1_2.current) {
env1_0(true);
}
}
function _fun121390() { // fn#121390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:524, offset: 0x02546ffa, size: 110 bytes, params: 1, frame: 13
var environment;
const binding = env0_2;
const current = binding.current;
const value2 = typeof current === 'bigint' ? current + 1n : +current + 1;
binding.current = value2;
value2(false);
let value = environment.__proto__;
value = require(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
value = value.getLinkCodeForCurrentUser();
value = value.then(_fun121391);
value.catch(_fun121392);
}
}
function _fun121391() { // fn#121391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:595, offset: 0x02547068, size: 51 bytes, params: 1, frame: 12
if (env0_0 === env1_2.current) {
env1_0(false);
env1_1(true);
}
}
function _fun121392() { // fn#121392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16007:639, offset: 0x0254709b, size: 40 bytes, params: 1, frame: 11
if (env0_0 === env1_2.current) {
env1_0(true);
}
}
global.__d(_fun121387, 15799, [57, 31, 5116, 566, 5118, 4594,
2]) /* metro module 15799, dependencies: [57, 31, 5116, 566, 5118, 4594, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,4 +1,9 @@
/* Metro module 13407; source: modules/parent_tools/hooks/useFamilyCenterActivities.tsx; dependencies: [5116, 5117, 632, 5187, 5137, 2] */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun102029(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:6, offset: 0x02228ae7, size: 179 bytes, params: 8, frame: 19
let env0_0 = require;
const closure = function(a0) {
@@ -7,9 +12,7 @@ function _fun102029(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const env0_3 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).TeenActionDisplayType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useFamilyCenterActivities.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useFamilyCenterActivities.tsx');
exports.useActionsForDisplayType = function(a0) {
var env0_0 = a0;
return require(dependencyMap[2]).useStateFromStoresArray([FamilyCenterStore], _fun102033);
@@ -19,71 +22,73 @@ function _fun102029(global, require, importDefault, importAll, module, exports,
return require(dependencyMap[2]).useStateFromStores([FamilyCenterStore], _fun102035);
};
exports.useFormattedTotalForDisplayType = useFormattedTotalForDisplayType;
}
function useActionTotalsForDisplayType(a0) { // fn#102030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:138, offset: 0x02228b9a, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
_fun102031);
}
function useActionsForDisplayType(a0) { // fn#102032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:370, offset: 0x02228bf7, size: 67 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresArray([FamilyCenterStore],
_fun102033);
}
function useHasActionForAnyDisplayType() { // fn#102034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:582, offset: 0x02228c55, size: 59 bytes, params: 1, frame: 13
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
_fun102035);
}
function useFormattedTotalForDisplayType(a0) { // fn#102037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:761, offset: 0x02228cdc, size: 174 bytes, params: 2, frame: 18
var r1;
var totalSpendAmount;
var totalSpendCurrency;
var value;
const r2 = useActionTotalsForDisplayType(a0) ?? 0;
const TOTAL_VOICE_MINUTES = TeenActionDisplayType.TOTAL_VOICE_MINUTES;
if (a0 === TOTAL_VOICE_MINUTES) {
return (require(5187) /* metro dependency 5187: FamilyCenterUtils */).formatTotalTime(r2);
}
const PURCHASES = TeenActionDisplayType.PURCHASES;
if (a0 === PURCHASES) {
totalSpendAmount = FamilyCenterStore.getTotalSpendAmount();
totalSpendCurrency = FamilyCenterStore.getTotalSpendCurrency();
if (totalSpendAmount == null) {
r1 = r2;
} else if (totalSpendCurrency == null) {
r1 = r2;
} else {
value = require(5137) /* metro dependency 5137: PriceUtils */;
value = value.shortenAndFormatPrice(totalSpendAmount, totalSpendCurrency);
r1 = value;
function useActionTotalsForDisplayType(a0) { // fn#102030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:138, offset: 0x02228b9a, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (UseStateFromStoresModule).useStateFromStores([FamilyCenterStore],
_fun102031);
function _fun102031() { // fn#102031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:219, offset: 0x02228bdc, size: 27 bytes, params: 1, frame: 11
return FamilyCenterStore.getTotalForDisplayType(env0_0);
}
return r1;
}
return r2;
}
function _fun102031() { // fn#102031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:219, offset: 0x02228bdc, size: 27 bytes, params: 1, frame: 11
return FamilyCenterStore.getTotalForDisplayType(env0_0);
}
function useActionsForDisplayType(a0) { // fn#102032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:370, offset: 0x02228bf7, size: 67 bytes, params: 2, frame: 14
const env0_0 = a0;
return (UseStateFromStoresModule).useStateFromStoresArray([FamilyCenterStore],
_fun102033);
function _fun102033() { // fn#102033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:451, offset: 0x02228c3a, size: 27 bytes, params: 1, frame: 11
return FamilyCenterStore.getActionsForDisplayType(env0_0);
}
function _fun102033() { // fn#102033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:451, offset: 0x02228c3a, size: 27 bytes, params: 1, frame: 11
return FamilyCenterStore.getActionsForDisplayType(env0_0);
}
}
function _fun102035() { // fn#102035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:662, offset: 0x02228c90, size: 47 bytes, params: 1, frame: 11
var environment;
const Object = global.Object;
const values = Object.values;
const value = environment.__proto__;
return Reflect.apply(values, Object, [TeenActionDisplayType]).some(_fun102036);
}
function useHasActionForAnyDisplayType() { // fn#102034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:582, offset: 0x02228c55, size: 59 bytes, params: 1, frame: 13
return (UseStateFromStoresModule).useStateFromStores([FamilyCenterStore],
_fun102035);
function _fun102035() { // fn#102035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:662, offset: 0x02228c90, size: 47 bytes, params: 1, frame: 11
var environment;
const Object = global.Object;
const values = Object.values;
const value = environment.__proto__;
return Reflect.apply(values, Object, [TeenActionDisplayType]).some(_fun102036);
function _fun102036(a0) { // fn#102036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:689, offset: 0x02228cbf, size: 29 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return FamilyCenterStore.getTotalForDisplayType(a0) > 0;
}
}
}
function useFormattedTotalForDisplayType(a0) { // fn#102037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:761, offset: 0x02228cdc, size: 174 bytes, params: 2, frame: 18
var r1;
var totalSpendAmount;
var totalSpendCurrency;
var value;
const r2 = useActionTotalsForDisplayType(a0) ?? 0;
const TOTAL_VOICE_MINUTES = TeenActionDisplayType.TOTAL_VOICE_MINUTES;
if (a0 === TOTAL_VOICE_MINUTES) {
return (require(5187) /* metro dependency 5187: FamilyCenterUtils */).formatTotalTime(r2);
}
const PURCHASES = TeenActionDisplayType.PURCHASES;
if (a0 === PURCHASES) {
totalSpendAmount = FamilyCenterStore.getTotalSpendAmount();
totalSpendCurrency = FamilyCenterStore.getTotalSpendCurrency();
if (totalSpendAmount == null) {
r1 = r2;
} else if (totalSpendCurrency == null) {
r1 = r2;
} else {
value = require(5137) /* metro dependency 5137: PriceUtils */;
value = value.shortenAndFormatPrice(totalSpendAmount, totalSpendCurrency);
r1 = value;
}
return r1;
}
return r2;
}
function _fun102036(a0) { // fn#102036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:689, offset: 0x02228cbf, size: 29 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return FamilyCenterStore.getTotalForDisplayType(a0) > 0;
}
global.__d(_fun102029, 13407, [5116, 5117, 632, 5187, 5137,
2]) /* metro module 13407, dependencies: [5116, 5117, 632, 5187, 5137, 2] */;
@@ -1,35 +1,39 @@
/* Metro module 15644; source: modules/parent_tools/hooks/useFormattedEndTime.tsx; dependencies: [1878, 1244, 566, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun119804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15852:6, offset: 0x0251a1cd, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useFormattedEndTime.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useFormattedEndTime.tsx');
exports.default = function() {
return require(dependencyMap[2]).useStateFromStores([UserStore], _fun119806);
};
}
function useFormattedEndTime() { // fn#119805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15852:200, offset: 0x0251a23f, size: 59 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserStore], _fun119806);
function _fun119806() { // fn#119806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15852:270, offset: 0x0251a27a, size: 156 bytes, params: 1, frame: 16
var r0;
var dateTimeFormat;
const value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const value3 = null;
const r3 = value3 == currentUser || value3 == currentUser.restrictedSchedule ? undefined : currentUser.restrictedSchedule.getNextEndTime();
if (value3 == r3) {
r0 = value3;
} else {
dateTimeFormat = new global.Intl.DateTimeFormat((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'hour': 'numeric', 'minute': '2-digit', 'weekday': 'long'});
dateTimeFormat = dateTimeFormat.format(r3);
r0 = dateTimeFormat;
}
return r0;
}
function useFormattedEndTime() { // fn#119805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15852:200, offset: 0x0251a23f, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun119806);
}
function _fun119806() { // fn#119806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15852:270, offset: 0x0251a27a, size: 156 bytes, params: 1, frame: 16
var r0;
var dateTimeFormat;
const value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const value3 = null;
const r3 = value3 == currentUser || value3 == currentUser.restrictedSchedule ? undefined : currentUser.restrictedSchedule.getNextEndTime();
if (value3 == r3) {
r0 = value3;
} else {
dateTimeFormat = new global.Intl.DateTimeFormat((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'hour': 'numeric', 'minute': '2-digit', 'weekday': 'long'});
dateTimeFormat = dateTimeFormat.format(r3);
r0 = dateTimeFormat;
}
return r0;
}
global.__d(_fun119804, 15644, [1878, 1244, 566, 2]) /* metro module 15644, dependencies: [1878, 1244, 566, 2] */;
@@ -1,45 +1,50 @@
/* Metro module 9737; source: modules/parent_tools/hooks/useHelpLineVisibility.tsx; dependencies: [31, 1949, 5116, 8171, 632, 9738, 2] */
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import UseIsInAdultAgeGroup from './useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun76505(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:6, offset: 0x01dd1b0b, size: 250 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
let Set = global.Set;
let set = new Set(['US']);
Set = global.Set;
set = new Set(['en-US', 'es-ES']);
const closure = useShouldShowHelplineLink;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useHelpLineVisibility.tsx');
exports.useShouldShowHelplineLink = closure;
const useShouldShowHelplineLink2 = useShouldShowHelplineLink;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useHelpLineVisibility.tsx');
exports.useShouldShowHelplineLink = useShouldShowHelplineLink2;
exports.useShouldShowThroughlineLink = useShouldShowThroughlineLink;
}
function useShouldShowHelplineLink() { // fn#76506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:199, offset: 0x01dd1c05, size: 204 bytes, params: 1, frame: 20
const value2 = (UseIsInAdultAgeGroup)();
const userCountry = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getUserCountry();
});
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
ReactModule.useEffect(_fun76509, [userCountry]);
return !value2 && userCountry != null && env0_6.has(userCountry.alpha2) && env0_7.has(locale);
function _fun76509() { // fn#76509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:348, offset: 0x01dd1ce4, size: 52 bytes, params: 1, frame: 11
var value;
if (userCountry == null) {
value = environment.__proto__;
value = require(9738) /* metro dependency 9738: MessageRequestActionCreators */;
value.fetchUserCountryCode();
}
}
function useShouldShowHelplineLink() { // fn#76506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:199, offset: 0x01dd1c05, size: 204 bytes, params: 1, frame: 20
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const userCountry = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getUserCountry();
});
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
env0_3.useEffect(_fun76509, [userCountry]);
return !value2 && userCountry != null && env0_6.has(userCountry.alpha2) && env0_7.has(locale);
}
function useShouldShowThroughlineLink() { // fn#76510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:611, offset: 0x01dd1d18, size: 48 bytes, params: 1, frame: 12
return !(importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)() && !useShouldShowHelplineLink();
}
function _fun76509() { // fn#76509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:348, offset: 0x01dd1ce4, size: 52 bytes, params: 1, frame: 11
var value;
if (userCountry == null) {
value = environment.__proto__;
value = require(9738) /* metro dependency 9738: MessageRequestActionCreators */;
value.fetchUserCountryCode();
}
function useShouldShowThroughlineLink() { // fn#76510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9923:611, offset: 0x01dd1d18, size: 48 bytes, params: 1, frame: 12
return !(importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)() && !useShouldShowHelplineLink();
}
}
global.__d(_fun76505, 9737, [31, 1949, 5116, 8171, 632, 9738,
2]) /* metro module 9737, dependencies: [31, 1949, 5116, 8171, 632, 9738, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 8171; source: modules/parent_tools/hooks/useIsInAdultAgeGroup.tsx; dependencies: [5116, 566, 2] */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun65588(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8356:6, offset: 0x01bd3f8f, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useIsInAdultAgeGroup.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useIsInAdultAgeGroup.tsx');
exports.default = useIsInAdultAgeGroup;
function useIsInAdultAgeGroup() { // fn#65589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8356:201, offset: 0x01bd4001, size: 67 bytes, params: 1, frame: 13
const useStateFromStores = FluxModule.useStateFromStores;
return Reflect.apply(useStateFromStores, FluxModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
}]) === 'adult';
}
}
function useIsInAdultAgeGroup() { // fn#65589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8356:201, offset: 0x01bd4001, size: 67 bytes, params: 1, frame: 13
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
return Reflect.apply(useStateFromStores, fluxModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
}]) === 'adult';
}
global.__d(_fun65588, 8171, [5116, 566, 2]) /* metro module 8171, dependencies: [5116, 566, 2] */;
@@ -1,14 +1,18 @@
/* Metro module 15646; source: modules/parent_tools/hooks/useIsInRestrictedHours.tsx; dependencies: [1878, 5116, 566, 15647, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun119808(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15854:6, offset: 0x0251a35c, size: 130 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useIsInRestrictedHours.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useIsInRestrictedHours.tsx');
exports.default = function() {
return require(dependencyMap[2]).useStateFromStores([UserStore, FamilyCenterStore],
require(dependencyMap[3]).getCurrentRestrictedHoursState);
};
}
global.__d(_fun119808, 15646, [1878, 5116, 566, 15647,
2]) /* metro module 15646, dependencies: [1878, 5116, 566, 15647, 2] */;
@@ -1,13 +1,22 @@
/* Metro module 13347; source: modules/parent_tools/hooks/useParentalControlSettings.tsx; dependencies: [5, 31, 5119, 6263, 8172, 13348, 13351, 1314, 4844, 7004, 8170, 566, 5118, 6264, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import FamilyCenterControlledSettingsStore from '../FamilyCenterControlledSettingsStore.tsx'; /* Metro dependency 5119 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as Preloaded_user_settingsModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as ConstantsModule from '../../safety_common/Constants.tsx'; /* Metro dependency 6263 */
import * as UserSettingsUtilsModule from '../../../utils/UserSettingsUtils.tsx'; /* Metro dependency 7004 */
import * as UseUserLinksModule from './useUserLinks.tsx'; /* Metro dependency 8170 */
import * as UseSelectedTeenModule from './useSelectedTeen.tsx'; /* Metro dependency 8172 */
import * as ParentalControlledUserSettingsModule from '../../user_settings/family_center/ParentalControlledUserSettings.tsx'; /* Metro dependency 13348 */
import * as FamilyCenterControlledSettingsUtilsModule from '../FamilyCenterControlledSettingsUtils.tsx'; /* Metro dependency 13351 */
function _fun101624(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:6, offset: 0x0221a9b6, size: 242 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const familyCenterControlledSettingsStore = importDefault(5119) /* metro dependency 5119: FamilyCenterControlledSettingsStore */;
const env0_6 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useParentalControlSettings.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useParentalControlSettings.tsx');
exports.useParentalControlledExplicitContentSettings = useParentalControlledExplicitContentSettings;
exports.useParentalControlledGoreContentSettings = useParentalControlledGoreContentSettings;
exports.useDefaultGuildsRestricted = useDefaultGuildsRestricted;
@@ -16,236 +25,241 @@ function _fun101624(global, require, importDefault, importAll, module, exports,
exports.useParentalControlledConsent = function(a0) {
return {hasConsented: _fun101632(a0), updateConsent: _fun101634(a0)};
};
function useParentalControlledExplicitContentSettings() { // fn#101625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:291, offset: 0x0221aaa8, size: 294 bytes, params: 1, frame: 21
var r0;
var object;
var moduleValue2;
var resolveExplicitContentSettingWithDefaultsForTeen;
var moduleValue3;
const value2 = undefined;
const value3 = (UseSelectedTeenModule).useSelectedTeen();
const ParentalControlledExplicitContent = (ParentalControlledUserSettingsModule).ParentalControlledExplicitContent;
const useControlledSetting = ParentalControlledExplicitContent.useControlledSetting;
const value4 = null;
let id = value4 == value3 ? value2 : value3.id;
const value5 = Reflect.apply(useControlledSetting, ParentalControlledExplicitContent, [id]);
if (value4 == value3) {
r0 = value4;
} else {
object = {};
moduleValue2 = require(13351) /* metro dependency 13351: FamilyCenterControlledSettingsUtils */;
resolveExplicitContentSettingWithDefaultsForTeen = moduleValue2.resolveExplicitContentSettingWithDefaultsForTeen;
id = value4 == value3 ? value2 : value3.id;
object.explicitContentNonFriendDm = Reflect.apply(resolveExplicitContentSettingWithDefaultsForTeen,
moduleValue2,
[{teenId: id, setting: value4 == value5 ? value2 : value5.explicitContentNonFriendDm}]);
moduleValue3 = require(13351) /* metro dependency 13351: FamilyCenterControlledSettingsUtils */;
resolveExplicitContentSettingWithDefaultsForTeen = moduleValue3.resolveExplicitContentSettingWithDefaultsForTeen;
id = value4 == value3 ? value2 : value3.id;
object.explicitContentFriendDm = Reflect.apply(resolveExplicitContentSettingWithDefaultsForTeen, moduleValue3,
[{teenId: id, setting: value4 == value5 ? value2 : value5.explicitContentFriendDm, isFriend: true}]);
object.explicitContentGuilds = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction.BLUR;
r0 = object;
}
return r0;
}
function useParentalControlledGoreContentSettings() { // fn#101626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:878, offset: 0x0221abce, size: 308 bytes, params: 1, frame: 19
const value2 = undefined;
const value3 = (UseSelectedTeenModule).useSelectedTeen();
const ParentalControlledGoreContent = (ParentalControlledUserSettingsModule).ParentalControlledGoreContent;
const value4 = ParentalControlledGoreContent.useControlledSetting(value3 == null ? value2 : value3.id);
if (value3 == null) {
return null;
}
const {goreContentNonFriendDm, goreContentFriendDm} = value4 ?? ({});
const object = {};
object.goreContentNonFriendDm = FamilyCenterControlledSettingsUtilsModule.isSetAndNotDefault(goreContentNonFriendDm) ? goreContentNonFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({isDm: true});
object.goreContentFriendDm = FamilyCenterControlledSettingsUtilsModule.isSetAndNotDefault(goreContentFriendDm) ? goreContentFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({'isDm': true,
'isFriend': true});
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object.goreContentGuilds = BLUR;
return object;
}
function useDefaultGuildsRestricted() { // fn#101627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1417, offset: 0x0221ad02, size: 149 bytes, params: 1, frame: 17
const value2 = undefined;
const value3 = (UseSelectedTeenModule).useSelectedTeen();
const ParentalControlledDefaultGuildsRestricted = (ParentalControlledUserSettingsModule).ParentalControlledDefaultGuildsRestricted;
const value4 = ParentalControlledDefaultGuildsRestricted.useControlledSetting(value3 == null ? value2 : value3.id);
const ParentalControlledDefaultGuildsRestrictedV2 = (ParentalControlledUserSettingsModule).ParentalControlledDefaultGuildsRestrictedV2;
return ParentalControlledDefaultGuildsRestrictedV2.useControlledSetting(value3 == null ? value2 : value3.id) ?? (value4 && !!value4);
}
function useAllowFriendsFromMutualGuildsOnlyForTeen() { // fn#101628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1714, offset: 0x0221ad97, size: 134 bytes, params: 1, frame: 16
const value2 = undefined;
const value3 = (UseSelectedTeenModule).useSelectedTeen();
const ParentalControlledFriendSourceFlags = (ParentalControlledUserSettingsModule).ParentalControlledFriendSourceFlags;
const value = ReactModule.useMemo(_fun101629,
[ParentalControlledFriendSourceFlags.useControlledSetting(value3 == null ? value2 : value3.id)]);
return value.mutualGuilds && !value.all;
function _fun101629() { // fn#101629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1901, offset: 0x0221ae1d, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (UserSettingsUtilsModule).computeFlags(env0_0);
}
}
function useIsParentallyControlled() { // fn#101630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1994, offset: 0x0221ae4a, size: 37 bytes, params: 1, frame: 11
return (UseUserLinksModule).useHasActiveParentLinks();
}
function useParentalControlledConsent(a0) { // fn#101631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2105, offset: 0x0221ae6f, size: 47 bytes, params: 2, frame: 12
return {hasConsented: ((a0) => {
var env0_0 = a0;
var env0_1 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId();
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterControlledSettingsStore],
_fun101633);
})(a0), updateConsent: useUpdateParentalControlledConsent(a0)};
function useParentalControlledHasConsented(a0) { // fn#101632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2152, owner: useParentalControlledConsent.useParentalControlledHasConsented, offset: 0x0221ae9e, size: 92 bytes, params: 2, frame: 16
const env0_0 = a0;
const env0_1 = (UseSelectedTeenModule).useSelectedTeenId();
return (FluxModule).useStateFromStores([FamilyCenterControlledSettingsStore],
_fun101633);
function _fun101633() { // fn#101633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2272, offset: 0x0221aefa, size: 32 bytes, params: 1, frame: 13
const familyCenterControlledSettingsStoreBinding = FamilyCenterControlledSettingsStore;
return familyCenterControlledSettingsStoreBinding.hasConsented(env0_1, env0_0);
}
}
function useUpdateParentalControlledConsent(a0) { // fn#101634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2304, owner: useParentalControlledConsent.useUpdateParentalControlledConsent, offset: 0x0221af1a, size: 88 bytes, params: 2, frame: 15
var environment;
const env0_0 = a0;
const value = environment.__proto__;
return env1_4.useCallback(_fun101635(),
[(UseSelectedTeenModule).useSelectedTeenId(), a0]);
function _fun101635() { // fn#101635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2406, offset: 0x0221af72, size: 36 bytes, params: 1, frame: 12
const env0_0 = env2_3(_fun101637);
return _fun101638;
function* _fun101637(a0) { // fn#101637, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2426, offset: 0x0221afa1, size: 193 bytes, params: 2, frame: 19
var items3;
var items2;
var binding;
var binding2;
var property;
var value4;
var updateTeenConsents;
var value5;
var error;
var showFailedToast;
var GENERIC_ERROR;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
if (env2_1 == null) {
return undefined;
}
if (a0) {
binding = env2_0;
items3 = [binding];
} else {
items3 = [];
}
if (a0) {
items2 = [];
} else {
binding = env2_0;
items2 = [binding];
}
try {
binding = env4_1;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
binding2 = env4_2;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
property = binding2[12];
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
updateTeenConsents = value4.updateTeenConsents;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
binding = env2_1;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
value = Reflect.apply(updateTeenConsents, value4, [binding, items3, items2]);
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
return value5 ? value : undefined;
}
function _fun101638() { // fn#101638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2585, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
}
}
function useParentalControlledExplicitContentSettings() { // fn#101625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:291, offset: 0x0221aaa8, size: 294 bytes, params: 1, frame: 21
var r0;
var object2;
var moduleValue2;
var resolveExplicitContentSettingWithDefaultsForTeen;
var moduleValue3;
const value2 = undefined;
const value3 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeen();
const ParentalControlledExplicitContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledExplicitContent;
const useControlledSetting = ParentalControlledExplicitContent.useControlledSetting;
const value4 = null;
let id = value4 == value3 ? value2 : value3.id;
const value5 = Reflect.apply(useControlledSetting, ParentalControlledExplicitContent, [id]);
if (value4 == value3) {
r0 = value4;
} else {
object2 = {};
moduleValue2 = require(13351) /* metro dependency 13351: FamilyCenterControlledSettingsUtils */;
resolveExplicitContentSettingWithDefaultsForTeen = moduleValue2.resolveExplicitContentSettingWithDefaultsForTeen;
id = value4 == value3 ? value2 : value3.id;
object2.explicitContentNonFriendDm = Reflect.apply(resolveExplicitContentSettingWithDefaultsForTeen,
moduleValue2,
[{teenId: id, setting: value4 == value5 ? value2 : value5.explicitContentNonFriendDm}]);
moduleValue3 = require(13351) /* metro dependency 13351: FamilyCenterControlledSettingsUtils */;
resolveExplicitContentSettingWithDefaultsForTeen = moduleValue3.resolveExplicitContentSettingWithDefaultsForTeen;
id = value4 == value3 ? value2 : value3.id;
object2.explicitContentFriendDm = Reflect.apply(resolveExplicitContentSettingWithDefaultsForTeen, moduleValue3,
[{teenId: id, setting: value4 == value5 ? value2 : value5.explicitContentFriendDm, isFriend: true}]);
object2.explicitContentGuilds = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction.BLUR;
r0 = object2;
}
return r0;
}
function useParentalControlledGoreContentSettings() { // fn#101626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:878, offset: 0x0221abce, size: 308 bytes, params: 1, frame: 19
const value2 = undefined;
const value3 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeen();
const ParentalControlledGoreContent = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledGoreContent;
const value4 = ParentalControlledGoreContent.useControlledSetting(value3 == null ? value2 : value3.id);
if (value3 == null) {
return null;
}
const {goreContentNonFriendDm, goreContentFriendDm} = value4 ?? ({});
const object2 = {};
const familyCenterControlledSettingsUtilsModule = require(13351) /* metro dependency 13351: FamilyCenterControlledSettingsUtils */;
object2.goreContentNonFriendDm = familyCenterControlledSettingsUtilsModule.isSetAndNotDefault(goreContentNonFriendDm) ? goreContentNonFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({isDm: true});
const moduleValue4 = familyCenterControlledSettingsUtilsModule;
object2.goreContentFriendDm = moduleValue4.isSetAndNotDefault(goreContentFriendDm) ? goreContentFriendDm : (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaultsForTeen({'isDm': true,
'isFriend': true});
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
const BLUR = ExplicitContentRedaction.BLUR;
object2.goreContentGuilds = BLUR;
return object2;
}
function useDefaultGuildsRestricted() { // fn#101627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1417, offset: 0x0221ad02, size: 149 bytes, params: 1, frame: 17
const value2 = undefined;
const value3 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeen();
const ParentalControlledDefaultGuildsRestricted = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledDefaultGuildsRestricted;
const value4 = ParentalControlledDefaultGuildsRestricted.useControlledSetting(value3 == null ? value2 : value3.id);
const ParentalControlledDefaultGuildsRestrictedV2 = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledDefaultGuildsRestrictedV2;
return ParentalControlledDefaultGuildsRestrictedV2.useControlledSetting(value3 == null ? value2 : value3.id) ?? (value4 && !!value4);
}
function useAllowFriendsFromMutualGuildsOnlyForTeen() { // fn#101628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1714, offset: 0x0221ad97, size: 134 bytes, params: 1, frame: 16
const value2 = undefined;
const value3 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeen();
const ParentalControlledFriendSourceFlags = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledFriendSourceFlags;
const value = env0_4.useMemo(_fun101629,
[ParentalControlledFriendSourceFlags.useControlledSetting(value3 == null ? value2 : value3.id)]);
return value.mutualGuilds && !value.all;
}
function useIsParentallyControlled() { // fn#101630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1994, offset: 0x0221ae4a, size: 37 bytes, params: 1, frame: 11
return (require(8170) /* metro dependency 8170: useUserLinks */).useHasActiveParentLinks();
}
function useParentalControlledConsent(a0) { // fn#101631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2105, offset: 0x0221ae6f, size: 47 bytes, params: 2, frame: 12
return {hasConsented: ((a0) => {
var env0_0 = a0;
var env0_1 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId();
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterControlledSettingsStore],
_fun101633);
})(a0), updateConsent: useUpdateParentalControlledConsent(a0)};
}
function _fun101629() { // fn#101629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:1901, offset: 0x0221ae1d, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(7004) /* metro dependency 7004: UserSettingsUtils */).computeFlags(env0_0);
}
function useParentalControlledHasConsented(a0) { // fn#101632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2152, owner: useParentalControlledConsent.useParentalControlledHasConsented, offset: 0x0221ae9e, size: 92 bytes, params: 2, frame: 16
const env0_0 = a0;
const env0_1 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId();
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterControlledSettingsStore],
_fun101633);
}
function useUpdateParentalControlledConsent(a0) { // fn#101634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2304, owner: useParentalControlledConsent.useUpdateParentalControlledConsent, offset: 0x0221af1a, size: 88 bytes, params: 2, frame: 15
var environment;
const env0_0 = a0;
const value = environment.__proto__;
return env1_4.useCallback(_fun101635(),
[(require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId(), a0]);
}
function _fun101633() { // fn#101633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2272, offset: 0x0221aefa, size: 32 bytes, params: 1, frame: 13
return FamilyCenterControlledSettingsStore.hasConsented(env0_1, env0_0);
}
function _fun101635() { // fn#101635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2406, offset: 0x0221af72, size: 36 bytes, params: 1, frame: 12
const env0_0 = env2_3(_fun101637);
return _fun101638;
}
function* _fun101637(a0) { // fn#101637, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13537:2426, offset: 0x0221afa1, size: 193 bytes, params: 2, frame: 19
var items;
var items2;
var binding;
var binding2;
var property;
var value4;
var updateTeenConsents;
var value5;
var error;
var showFailedToast;
var GENERIC_ERROR;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
if (env2_1 == null) {
return undefined;
}
if (a0) {
binding = env2_0;
items = [binding];
} else {
items = [];
}
if (a0) {
items2 = [];
} else {
binding = env2_0;
items2 = [binding];
}
try {
binding = env4_1;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
binding2 = env4_2;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
property = binding2[12];
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
updateTeenConsents = value4.updateTeenConsents;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
binding = env2_1;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
try {
value = Reflect.apply(updateTeenConsents, value4, [binding, items, items2]);
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
binding = env4_1;
value = binding(env4_2[13]);
showFailedToast = value.showFailedToast;
GENERIC_ERROR = env4_6.GENERIC_ERROR;
Reflect.apply(showFailedToast, value, [GENERIC_ERROR]);
return undefined;
}
return value5 ? value : undefined;
}
global.__d(_fun101624, 13347, [5, 31, 5119, 6263, 8172, 13348, 13351, 1314, 4844, 7004, 8170, 566, 5118, 6264,
2]) /* metro module 13347, dependencies: [5, 31, 5119, 6263, 8172, 13348, 13351, 1314, 4844, 7004, 8170, 566, 5118, 6264, 2] */;
@@ -1,36 +1,50 @@
/* Metro module 13423; source: modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx; dependencies: [33, 4573, 1244, 2224, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun102136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13613:6, offset: 0x0222e683, size: 123 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useScheduleTimeControlsRowProps.tsx');
exports.default = useScheduleTimeControlsRowProps;
}
function useScheduleTimeControlsRowProps(a0) { // fn#102137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13613:216, offset: 0x0222e6fe, size: 358 bytes, params: 2, frame: 22
var value;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var string;
if (a0.length === 0) {
object2 = {};
object2.subLabel = <Text variant="text-xs/medium" color="text-muted">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fOBIZH)}</Text>;
object2.trailing = undefined;
} else {
value = a0.some(function(a0) {
return a0.enabled;
});
object2 = {};
var formatToPlainString = intl.formatToPlainString;
var XfwcpX = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).XfwcpX;
object2.subLabel = Reflect.apply(formatToPlainString, intl, [XfwcpX, {count: a0.length}]);
string = intl.string;
var defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
object2.trailing = <Text variant="text-sm/medium" color="text-muted">{value ? Reflect.apply(string, intl,
[defaultImport['8vDHRq']]) : Reflect.apply(string, intl, [defaultImport['4z9fN+']])}</Text>;
function useScheduleTimeControlsRowProps(a0) { // fn#102137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13613:216, offset: 0x0222e6fe, size: 358 bytes, params: 2, frame: 22
var value;
var object;
const intl = (IndexNativeModule).intl;
const Text = (TextModule).Text;
var string;
if (a0.length === 0) {
object = {};
object.subLabel = (
<Text variant="text-xs/medium" color="text-muted">
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fOBIZH)}
</Text>
);
object.trailing = undefined;
} else {
value = a0.some(function(a0) {
return a0.enabled;
});
object = {};
var formatToPlainString = intl.formatToPlainString;
var XfwcpX = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).XfwcpX;
object.subLabel = Reflect.apply(formatToPlainString, intl, [XfwcpX, {count: a0.length}]);
string = intl.string;
var defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
object.trailing = (
<Text variant="text-sm/medium" color="text-muted">
{value ? Reflect.apply(string, intl, [defaultImport['8vDHRq']]) : Reflect.apply(string, intl,
[defaultImport['4z9fN+']])}
</Text>
);
}
return object;
}
return object2;
}
global.__d(_fun102136, 13423, [33, 4573, 1244, 2224,
2]) /* metro module 13423, dependencies: [33, 4573, 1244, 2224, 2] */;
@@ -1,47 +1,64 @@
/* Metro module 13390; source: modules/parent_tools/hooks/useSelectedTab.tsx; dependencies: [5116, 5117, 661, 632, 5118, 683, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import FamilyCenterActionCreators from '../FamilyCenterActionCreators.tsx'; /* Metro dependency 5118 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun101951(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:6, offset: 0x02224cb5, size: 280 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_4 = familyCenterConstantsModule.FamilyCenterAction;
const FamilyCenterSubPages = familyCenterConstantsModule.FamilyCenterSubPages;
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
object2 = {};
const FamilyCenterSubPages = FamilyCenterConstantsModule.FamilyCenterSubPages;
object = {};
const ACTIVITY = FamilyCenterSubPages.ACTIVITY;
object2[ACTIVITY] = 'family_center_activity_tab';
object[ACTIVITY] = 'family_center_activity_tab';
const REQUESTS = FamilyCenterSubPages.REQUESTS;
object2[REQUESTS] = 'family_center_requests_tab';
object[REQUESTS] = 'family_center_requests_tab';
const SETTINGS = FamilyCenterSubPages.SETTINGS;
object2[SETTINGS] = 'family_center_settings_tab';
object[SETTINGS] = 'family_center_settings_tab';
const CONTENT_AND_SOCIAL = FamilyCenterSubPages.CONTENT_AND_SOCIAL;
object2[CONTENT_AND_SOCIAL] = 'family_center_content_and_social_panel';
object[CONTENT_AND_SOCIAL] = 'family_center_content_and_social_panel';
const DATA_AND_PRIVACY = FamilyCenterSubPages.DATA_AND_PRIVACY;
object2[DATA_AND_PRIVACY] = 'family_center_data_and_privacy_panel';
object[DATA_AND_PRIVACY] = 'family_center_data_and_privacy_panel';
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
object2[SCREEN_TIME_CONTROLS] = 'family_center_screen_time_controls_panel';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTab.tsx');
object[SCREEN_TIME_CONTROLS] = 'family_center_screen_time_controls_panel';
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTab.tsx');
exports.default = function() {
var object = {};
object.selectedTab = require(dependencyMap[3]).useStateFromStores([FamilyCenterStore], _fun101953);
object.handleTabChange = _fun101954;
return object;
};
exports.FAMILY_CENTER_TAB_ANALYTICS_LABELS = object2;
}
exports.FAMILY_CENTER_TAB_ANALYTICS_LABELS = object;
function _default_101952() { // fn#101952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:520, offset: 0x02224dcd, size: 80 bytes, params: 1, frame: 15
const useStateFromStores = UseStateFromStoresModule.useStateFromStores;
return {selectedTab: Reflect.apply(useStateFromStores, UseStateFromStoresModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getSelectedTab();
}]), handleTabChange: function(a0) {
importDefault(dependencyMap[4]).selectTab(a0);
var defaultImport2 = importDefault(dependencyMap[5]);
var FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
defaultImport2.track(FAMILY_CENTER_ACTION, {action: FamilyCenterAction.TabChange, tab: a0});
}};
function _fun101953() { // fn#101953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:570, offset: 0x02224e1d, size: 19 bytes, params: 1, frame: 9
return FamilyCenterStore.getSelectedTab();
}
function handleTabChange(a0) { // fn#101954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:611, owner: _default_101952.handleTabChange, offset: 0x02224e30, size: 95 bytes, params: 2, frame: 16
(FamilyCenterActionCreators).selectTab(a0);
const defaultImport2 = AnalyticsUtils;
const track = defaultImport2.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
const TabChange = FamilyCenterAction.TabChange;
Reflect.apply(track, defaultImport2, [FAMILY_CENTER_ACTION, {action: TabChange, tab: a0}]);
}
}
function _default_101952() { // fn#101952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13580:520, offset: 0x02224dcd, size: 80 bytes, params: 1, frame: 15
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStores = useStateFromStoresModule.useStateFromStores;
return {selectedTab: Reflect.apply(useStateFromStores, useStateFromStoresModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getSelectedTab();
}]), handleTabChange: function(a0) {
importDefault(dependencyMap[4]).selectTab(a0);
var defaultImport2 = importDefault(dependencyMap[5]);
var FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
defaultImport2.track(FAMILY_CENTER_ACTION, {action: FamilyCenterAction.TabChange, tab: a0});
}};
}
global.__d(_fun101951, 13390, [5116, 5117, 661, 632, 5118, 683,
2]) /* metro module 13390, dependencies: [5116, 5117, 661, 632, 5118, 683, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 8172; source: modules/parent_tools/hooks/useSelectedTeen.tsx; dependencies: [1878, 5116, 632, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun65591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:6, offset: 0x01bd4057, size: 143 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTeen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTeen.tsx');
exports.useSelectedTeen = function() {
var env0_0 = require(dependencyMap[2]).useStateFromStores([FamilyCenterStore], _fun65593);
return require(dependencyMap[2]).useStateFromStores([UserStore], _fun65594);
@@ -13,24 +15,33 @@ function _fun65591(global, require, importDefault, importAll, module, exports, d
exports.useSelectedTeenId = function() {
return require(dependencyMap[2]).useStateFromStores([FamilyCenterStore], _fun65596);
};
function useSelectedTeen() { // fn#65592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:214, offset: 0x01bd40e6, size: 102 bytes, params: 1, frame: 19
const env0_0 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getSelectedTeenId();
});
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore], _fun65594);
function _fun65593() { // fn#65593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:257, offset: 0x01bd414c, size: 19 bytes, params: 1, frame: 9
return FamilyCenterStore.getSelectedTeenId();
}
function _fun65594() { // fn#65594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:324, offset: 0x01bd415f, size: 39 bytes, params: 1, frame: 12
return selectedTeenId === null ? undefined : UserStore.getUser(selectedTeenId);
}
}
function useSelectedTeenId() { // fn#65595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:380, offset: 0x01bd4186, size: 59 bytes, params: 1, frame: 13
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getSelectedTeenId();
});
function _fun65596() { // fn#65596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:416, offset: 0x01bd414c, size: 19 bytes, params: 1, frame: 9
return FamilyCenterStore.getSelectedTeenId();
}
}
}
function useSelectedTeen() { // fn#65592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:214, offset: 0x01bd40e6, size: 102 bytes, params: 1, frame: 19
const env0_0 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getSelectedTeenId();
});
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore], _fun65594);
}
function useSelectedTeenId() { // fn#65595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:380, offset: 0x01bd4186, size: 59 bytes, params: 1, frame: 13
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getSelectedTeenId();
});
}
function _fun65594() { // fn#65594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8357:324, offset: 0x01bd415f, size: 39 bytes, params: 1, frame: 12
return selectedTeenId === null ? undefined : UserStore.getUser(selectedTeenId);
}
global.__d(_fun65591, 8172, [1878, 5116, 632, 2]) /* metro module 8172, dependencies: [1878, 5116, 632, 2] */;
@@ -1,12 +1,16 @@
/* Metro module 13406; source: modules/parent_tools/hooks/useSelectedTeenUser.tsx; dependencies: [1878, 5119, 5116, 8171, 632, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import FamilyCenterControlledSettingsStore from '../FamilyCenterControlledSettingsStore.tsx'; /* Metro dependency 5119 */
import UseIsInAdultAgeGroup from './useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
function _fun102022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:6, offset: 0x0222887a, size: 176 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterControlledSettingsStore = importDefault(5119) /* metro dependency 5119: FamilyCenterControlledSettingsStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTeenUser.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useSelectedTeenUser.tsx');
exports.useSelectedTeenUser = function() {
var env0_0 = importDefault(dependencyMap[3])();
return require(dependencyMap[4]).useStateFromStores([FamilyCenterStore, UserStore], _fun102024);
@@ -16,48 +20,50 @@ function _fun102022(global, require, importDefault, importAll, module, exports,
return require(dependencyMap[4]).useStateFromStores([UserStore], _fun102026);
};
exports.useShouldLoadSettingsForSelectedTeenUser = useShouldLoadSettingsForSelectedTeenUser;
}
function useSelectedTeenUser() { // fn#102023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:232, offset: 0x0222892a, size: 91 bytes, params: 1, frame: 15
const env0_0 = (UseIsInAdultAgeGroup)();
return (UseStateFromStoresModule).useStateFromStores([FamilyCenterStore,
UserStore], _fun102024);
function _fun102024() { // fn#102024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:294, offset: 0x02228985, size: 73 bytes, params: 1, frame: 12
var value;
if (env0_0 !== true) {
value = environment.__proto__;
return UserStore.getCurrentUser();
}
value = environment.__proto__;
const selectedTeenId = FamilyCenterStore.getSelectedTeenId();
return selectedTeenId === null ? undefined : UserStore.getUser(selectedTeenId);
}
function useSelectedTeenUser() { // fn#102023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:232, offset: 0x0222892a, size: 91 bytes, params: 1, frame: 15
const env0_0 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore,
UserStore], _fun102024);
}
function useTeenUserForId(a0) { // fn#102025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:422, offset: 0x022289ce, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore], _fun102026);
}
function useShouldLoadSettingsForSelectedTeenUser() { // fn#102027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:547, offset: 0x02228a35, size: 111 bytes, params: 1, frame: 15
const selectedTeenId = FamilyCenterStore.getSelectedTeenId();
const value = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([FamilyCenterControlledSettingsStore],
_fun102028);
return selectedTeenId !== null && (!value.hasLoadedSettings && !value.isLoading);
}
function _fun102024() { // fn#102024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:294, offset: 0x02228985, size: 73 bytes, params: 1, frame: 12
var value;
if (env0_0 !== true) {
value = environment.__proto__;
return UserStore.getCurrentUser();
}
value = environment.__proto__;
const selectedTeenId = FamilyCenterStore.getSelectedTeenId();
return selectedTeenId === null ? undefined : UserStore.getUser(selectedTeenId);
}
function _fun102026() { // fn#102026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:457, offset: 0x02228a10, size: 37 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = UserStore.getUser(env0_0);
if (value != null) {
return value;
function useTeenUserForId(a0) { // fn#102025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:422, offset: 0x022289ce, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (UseStateFromStoresModule).useStateFromStores([UserStore], _fun102026);
function _fun102026() { // fn#102026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:457, offset: 0x02228a10, size: 37 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = UserStore.getUser(env0_0);
if (value != null) {
return value;
}
}
}
function useShouldLoadSettingsForSelectedTeenUser() { // fn#102027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:547, offset: 0x02228a35, size: 111 bytes, params: 1, frame: 15
const selectedTeenId = FamilyCenterStore.getSelectedTeenId();
const value = (UseStateFromStoresModule).useStateFromStoresObject([FamilyCenterControlledSettingsStore],
_fun102028);
return selectedTeenId !== null && (!value.hasLoadedSettings && !value.isLoading);
function _fun102028() { // fn#102028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:620, offset: 0x02228aa4, size: 67 bytes, params: 1, frame: 13
const r1 = env0_0 != null && FamilyCenterControlledSettingsStore.hasSettingsForUser(env0_0);
const value = environment.__proto__;
return {hasLoadedSettings: r1, isLoading: FamilyCenterControlledSettingsStore.isLoading};
}
}
}
function _fun102028() { // fn#102028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13596:620, offset: 0x02228aa4, size: 67 bytes, params: 1, frame: 13
const r1 = env0_0 != null && FamilyCenterControlledSettingsStore.hasSettingsForUser(env0_0);
const value = environment.__proto__;
return {hasLoadedSettings: r1, isLoading: FamilyCenterControlledSettingsStore.isLoading};
}
global.__d(_fun102022, 13406, [1878, 5119, 5116, 8171, 632,
2]) /* metro module 13406, dependencies: [1878, 5119, 5116, 8171, 632, 2] */;
@@ -1,18 +1,25 @@
/* Metro module 13448; source: modules/parent_tools/hooks/useTimeValue.tsx; dependencies: [31, 2, 10909] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun102277(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:6, offset: 0x022358fa, size: 130 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useTimeValue.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useTimeValue.tsx');
exports.default = function({initial, defaultValue}) {
return initial.useState(_fun102279);
};
exports.timeToMinutes = (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).timeToMinutes;
function useTimeValue({initial, defaultValue}) { // fn#102278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:193, offset: 0x0223597c, size: 51 bytes, params: 2, frame: 11
return initial.useState(function() {
return initial != null ? {hours: initial.hours, minutes: initial.minutes} : defaultValue;
});
function _fun102279() { // fn#102279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:262, offset: 0x022359af, size: 52 bytes, params: 1, frame: 4
return initial != null ? {hours: initial.hours, minutes: initial.minutes} : defaultValue;
}
}
}
function useTimeValue({initial, defaultValue}) { // fn#102278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13638:193, offset: 0x0223597c, size: 51 bytes, params: 2, frame: 11
return initial.useState(function() {
return initial != null ? {hours: initial.hours, minutes: initial.minutes} : defaultValue;
});
}
global.__d(_fun102277, 13448, [31, 2, 10909]) /* metro module 13448, dependencies: [31, 2, 10909] */;
@@ -1,18 +1,25 @@
/* Metro module 13389; source: modules/parent_tools/hooks/useUserAgeGroup.tsx; dependencies: [5116, 566, 2] */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun101948(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13579:6, offset: 0x02224c08, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useUserAgeGroup.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useUserAgeGroup.tsx');
exports.default = function() {
return require(dependencyMap[1]).useStateFromStores([FamilyCenterStore], _fun101950);
};
function useUserAgeGroup() { // fn#101949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13579:196, offset: 0x02224c7a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
});
function _fun101950() { // fn#101950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13579:262, offset: 0x01bd4044, size: 19 bytes, params: 1, frame: 9
return FamilyCenterStore.getAgeGroup();
}
}
}
function useUserAgeGroup() { // fn#101949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13579:196, offset: 0x02224c7a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
});
}
global.__d(_fun101948, 13389, [5116, 566, 2]) /* metro module 13389, dependencies: [5116, 566, 2] */;
@@ -1,16 +1,25 @@
/* Metro module 11469; source: modules/parent_tools/hooks/useUserIsConsideredAdult.tsx; dependencies: [1878, 566, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun87809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11655:6, offset: 0x01fcc1f4, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useUserIsConsideredAdult.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useUserIsConsideredAdult.tsx');
exports.default = function() {
return require(dependencyMap[1]).useStateFromStores([UserStore], _fun87811);
};
function useUserIsConsideredAdult() { // fn#87810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11655:205, offset: 0x01fcc266, size: 59 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserStore], _fun87811);
function _fun87811() { // fn#87811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11655:280, offset: 0x01bd378a, size: 35 bytes, params: 1, frame: 10
const value = environment.__proto__;
return UserStore.getCurrentUser()?.nsfwAllowed;
}
}
}
function useUserIsConsideredAdult() { // fn#87810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11655:205, offset: 0x01fcc266, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun87811);
}
global.__d(_fun87809, 11469, [1878, 566, 2]) /* metro module 11469, dependencies: [1878, 566, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 13424; source: modules/parent_tools/hooks/useUserIsTeenAgeGroup.tsx; dependencies: [5116, 566, 2] */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun102139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13614:6, offset: 0x0222e864, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useUserIsTeenAgeGroup.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useUserIsTeenAgeGroup.tsx');
exports.default = useUserIsTeenAgeGroup;
function useUserIsTeenAgeGroup() { // fn#102140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13614:202, offset: 0x0222e8d6, size: 69 bytes, params: 1, frame: 13
const useStateFromStores = FluxModule.useStateFromStores;
return Reflect.apply(useStateFromStores, FluxModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
}]) === 'teen';
}
}
function useUserIsTeenAgeGroup() { // fn#102140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13614:202, offset: 0x0222e8d6, size: 69 bytes, params: 1, frame: 13
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
return Reflect.apply(useStateFromStores, fluxModule, [[FamilyCenterStore], function() {
return FamilyCenterStore.getAgeGroup();
}]) === 'teen';
}
global.__d(_fun102139, 13424, [5116, 566, 2]) /* metro module 13424, dependencies: [5116, 566, 2] */;
@@ -1,27 +1,24 @@
/* Metro module 8170; source: modules/parent_tools/hooks/useUserLinks.tsx; dependencies: [31, 1878, 5116, 5117, 632, 8171, 8172, 5187, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as UseSelectedTeenModule from './useSelectedTeen.tsx'; /* Metro dependency 8172 */
function _fun65555(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:6, offset: 0x01bd37ad, size: 392 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = useUserIdsForLinkStatus;
const useUserIdsForLinkStatus2 = useUserIdsForLinkStatus;
const closure2 = function() {
return useUserIdsForLinkStatus(UserLinkStatus.ACTIVE);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_6 = familyCenterConstantsModule.ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER;
const env0_7 = familyCenterConstantsModule.FAMILY_CENTER_REQUEST_QR_CODE_URL;
const env0_8 = familyCenterConstantsModule.MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS;
const env0_9 = familyCenterConstantsModule.MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const env0_10 = familyCenterConstantsModule.PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER;
const env0_11 = familyCenterConstantsModule.UserLinkStatus;
const env0_12 = familyCenterConstantsModule.UserLinkType;
const closure3 = useUsersForLinkStatus;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useUserLinks.tsx');
exports.useUserIdsForLinkStatus = closure;
exports.useUsersForLinkStatus = closure3;
const useUsersForLinkStatus2 = useUsersForLinkStatus;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/hooks/useUserLinks.tsx');
exports.useUserIdsForLinkStatus = useUserIdsForLinkStatus2;
exports.useUsersForLinkStatus = useUsersForLinkStatus2;
exports.useActiveLinkUserIds = closure2;
exports.useActiveLinkUsers = function() {
return useUsersForLinkStatus(UserLinkStatus.ACTIVE);
@@ -40,213 +37,218 @@ function _fun65555(global, require, importDefault, importAll, module, exports, d
};
exports.useActivityWindowTimeStamp = useActivityWindowTimeStamp;
exports.useLinkTimestampText = useLinkTimestampText;
}
function useUserIdsForLinkStatus(a0) { // fn#65556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:387, offset: 0x01bd3935, size: 104 bytes, params: 2, frame: 16
const env0_0 = a0;
return ReactModule.useMemo(_fun65558,
[(require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
}), a0]);
function _fun65558() { // fn#65558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:504, offset: 0x01bd39b0, size: 98 bytes, params: 1, frame: 12
const Object = global.Object;
let value = Object.values(linkedUsers);
value = value.filter(_fun65559);
value = value.sort(function(a0, a1) {
var Date = global.Date;
var value2 = new Date(a0.updated_at);
value2 = value2.getTime();
Date = global.Date;
var updated_at2 = a1.updated_at;
var value3 = Object.create(Date.prototype, {constructor: {value: Date}});
var value4 = new Date(updated_at2);
return value2 - (value4 instanceof Object ? value4 : value3).getTime();
});
value = value.map(function(a0) {
return a0.user_id;
});
return value.filter(function(a0) {
return a0 != null;
});
function _fun65559(a0) { // fn#65559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:533, offset: 0x01bd3a12, size: 31 bytes, params: 2, frame: 3
var r0;
var link_status;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__;
value = link_status === env1_0;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function useUserIdsForLinkStatus(a0) { // fn#65556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:387, offset: 0x01bd3935, size: 104 bytes, params: 2, frame: 16
const env0_0 = a0;
return env0_3.useMemo(_fun65558,
[(require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
}), a0]);
}
}
function useUsersForLinkStatus(a0) { // fn#65564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:721, offset: 0x01bd3aad, size: 93 bytes, params: 2, frame: 15
const env0_0 = useUserIdsForLinkStatus(a0);
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStoresArray = useStateFromStoresModule.useStateFromStoresArray;
return Reflect.apply(useStateFromStoresArray, useStateFromStoresModule, [[UserStore],
_fun65565]).filter(function(a0) {
return a0 != null;
});
}
function useHasActiveParentLinks() { // fn#65570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1318, offset: 0x01bd3b71, size: 93 bytes, params: 1, frame: 15
return env0_3.useMemo(_fun65572,
[(require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
})]);
}
function useUserQRLinkUrl() { // fn#65574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1550, offset: 0x01bd3c3c, size: 133 bytes, params: 1, frame: 19
const linkCode = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkCode();
});
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
const value2 = null;
return value2 == linkCode || value2 == currentUser ? value2 : FAMILY_CENTER_REQUEST_QR_CODE_URL(currentUser.id,
linkCode);
}
function usePendingRequestCount() { // fn#65578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1886, offset: 0x01bd3d11, size: 153 bytes, params: 1, frame: 19
var length;
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
const linkedUsers = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
});
let value = 0;
if (currentUser == null) {
length = value;
} else {
value = global.Object.values(linkedUsers);
length = value.filter(_fun65581).length;
}
return length;
}
function useActivityWindowTimeStamp(a0) { // fn#65583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2285, offset: 0x01bd3dfe, size: 182 bytes, params: 2, frame: 18
var r0;
var formatUserActivityTimestamp;
var Date;
var value4;
var date;
const env0_0 = a0;
var value;
const env0_1 = (require(8172) /* metro dependency 8172: useSelectedTeen */).useSelectedTeenId();
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
_fun65584);
const value3 = null;
if (value3 == value2) {
r0 = value3;
} else {
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
formatUserActivityTimestamp = value.formatUserActivityTimestamp;
Date = global.Date;
value4 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value2);
value = Reflect.apply(formatUserActivityTimestamp, value, [(date instanceof Object ? date : value4).getTime(),
_fun65585, 7]);
r0 = value;
function useUsersForLinkStatus(a0) { // fn#65564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:721, offset: 0x01bd3aad, size: 93 bytes, params: 2, frame: 15
const env0_0 = useUserIdsForLinkStatus(a0);
const useStateFromStoresArray = UseStateFromStoresModule.useStateFromStoresArray;
return Reflect.apply(useStateFromStoresArray, UseStateFromStoresModule, [[UserStore],
_fun65565]).filter(function(a0) {
return a0 != null;
});
function _fun65565() { // fn#65565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:802, offset: 0x01bd3b0a, size: 28 bytes, params: 1, frame: 11
return env0_0.map(function(a0) {
return UserStore.getUser(a0);
});
}
}
return r0;
}
function useLinkTimestampText(a0, a1) { // fn#65586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2551, offset: 0x01bd3ed9, size: 153 bytes, params: 3, frame: 16
var r0;
var moduleValue2;
const env0_0 = a0;
const linkTimestamp = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
_fun65587);
const value2 = null;
if (value2 != linkTimestamp) {
moduleValue2 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
r0 = moduleValue2.formatLinkTimestamp(global.Date.parse(linkTimestamp),
a1 === UserLinkStatus.PENDING ? PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER : ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER);
} else {
r0 = value2;
function useHasActiveParentLinks() { // fn#65570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1318, offset: 0x01bd3b71, size: 93 bytes, params: 1, frame: 15
return ReactModule.useMemo(_fun65572,
[(require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
})]);
function _fun65572() { // fn#65572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1434, offset: 0x01bd3bce, size: 47 bytes, params: 1, frame: 11
const Object = global.Object;
return Object.values(linkedUsers).some(_fun65573);
function _fun65573(a0) { // fn#65573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1461, offset: 0x01bd3bfd, size: 63 bytes, params: 2, frame: 4
var r0;
var link_status;
var link_type;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__.__proto__;
value = link_status === UserLinkStatus.ACTIVE;
r0 = value;
} else {
r0 = value;
}
if (r0) {
link_type = a0.link_type;
value = environment.__proto__.__proto__;
value = link_type === UserLinkType.PARENT;
r0 = value;
}
return r0;
}
}
}
return r0;
}
function _fun65558() { // fn#65558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:504, offset: 0x01bd39b0, size: 98 bytes, params: 1, frame: 12
const Object = global.Object;
let value = Object.values(linkedUsers);
value = value.filter(_fun65559);
value = value.sort(function(a0, a1) {
var Date = global.Date;
var value2 = new Date(a0.updated_at);
value2 = value2.getTime();
Date = global.Date;
var updated_at2 = a1.updated_at;
var value3 = Object.create(Date.prototype, {constructor: {value: Date}});
var value4 = new Date(updated_at2);
return value2 - (value4 instanceof Object ? value4 : value3).getTime();
});
value = value.map(function(a0) {
return a0.user_id;
});
return value.filter(function(a0) {
return a0 != null;
});
}
function _fun65565() { // fn#65565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:802, offset: 0x01bd3b0a, size: 28 bytes, params: 1, frame: 11
return env0_0.map(function(a0) {
return UserStore.getUser(a0);
});
}
function _fun65572() { // fn#65572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1434, offset: 0x01bd3bce, size: 47 bytes, params: 1, frame: 11
const Object = global.Object;
return Object.values(linkedUsers).some(_fun65573);
}
function _fun65581(a0) { // fn#65581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2084, offset: 0x01bd3daa, size: 64 bytes, params: 2, frame: 4
var r0;
var link_status;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__;
value = link_status === UserLinkStatus.PENDING;
r0 = value;
} else {
r0 = value;
function useUserQRLinkUrl() { // fn#65574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1550, offset: 0x01bd3c3c, size: 133 bytes, params: 1, frame: 19
const linkCode = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkCode();
});
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
const value2 = null;
return value2 == linkCode || value2 == currentUser ? value2 : FAMILY_CENTER_REQUEST_QR_CODE_URL(currentUser.id,
linkCode);
}
r0 = r0 && currentUser.id !== a0.requestor_id;
return r0;
}
function _fun65584() { // fn#65584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2392, offset: 0x01bd3eb4, size: 37 bytes, params: 1, frame: 10
var r0;
let value = null;
if (value == env0_1) {
r0 = value;
} else {
value = environment.__proto__;
value = FamilyCenterStore.getRangeStartTimestamp();
r0 = value;
function usePendingRequestCount() { // fn#65578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1886, offset: 0x01bd3d11, size: 153 bytes, params: 1, frame: 19
var length;
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
const linkedUsers = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getLinkedUsers();
});
let value = 0;
if (currentUser == null) {
length = value;
} else {
value = global.Object.values(linkedUsers);
length = value.filter(_fun65581).length;
}
return length;
function _fun65581(a0) { // fn#65581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2084, offset: 0x01bd3daa, size: 64 bytes, params: 2, frame: 4
var r0;
var link_status;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__;
value = link_status === UserLinkStatus.PENDING;
r0 = value;
} else {
r0 = value;
}
r0 = r0 && currentUser.id !== a0.requestor_id;
return r0;
}
}
return r0;
}
function _fun65587() { // fn#65587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2624, offset: 0x01bd3f72, size: 29 bytes, params: 1, frame: 11
return FamilyCenterStore.getLinkTimestamp(env0_0);
}
function useActivityWindowTimeStamp(a0) { // fn#65583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2285, offset: 0x01bd3dfe, size: 182 bytes, params: 2, frame: 18
var r0;
var formatUserActivityTimestamp;
var Date;
var value4;
var date;
const env0_0 = a0;
var value;
const env0_1 = (UseSelectedTeenModule).useSelectedTeenId();
const value2 = (UseStateFromStoresModule).useStateFromStores([FamilyCenterStore],
_fun65584);
const value3 = null;
if (value3 == value2) {
r0 = value3;
} else {
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
formatUserActivityTimestamp = value.formatUserActivityTimestamp;
Date = global.Date;
value4 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(value2);
value = Reflect.apply(formatUserActivityTimestamp, value, [(date instanceof Object ? date : value4).getTime(),
_fun65585, 7]);
r0 = value;
}
return r0;
function _fun65584() { // fn#65584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2392, offset: 0x01bd3eb4, size: 37 bytes, params: 1, frame: 10
var r0;
let value = null;
if (value == env0_1) {
r0 = value;
} else {
value = environment.__proto__;
value = FamilyCenterStore.getRangeStartTimestamp();
r0 = value;
}
return r0;
}
function _fun65585() { // fn#65585, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1
return env0_0;
}
function _fun65559(a0) { // fn#65559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:533, offset: 0x01bd3a12, size: 31 bytes, params: 2, frame: 3
var r0;
var link_status;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__;
value = link_status === env1_0;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function _fun65573(a0) { // fn#65573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:1461, offset: 0x01bd3bfd, size: 63 bytes, params: 2, frame: 4
var r0;
var link_status;
var link_type;
let value = a0 != null;
if (value) {
link_status = a0.link_status;
value = environment.__proto__.__proto__;
value = link_status === UserLinkStatus.ACTIVE;
r0 = value;
} else {
r0 = value;
}
if (r0) {
link_type = a0.link_type;
value = environment.__proto__.__proto__;
value = link_type === UserLinkType.PARENT;
r0 = value;
function useLinkTimestampText(a0, a1) { // fn#65586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2551, offset: 0x01bd3ed9, size: 153 bytes, params: 3, frame: 16
var r0;
var moduleValue2;
const env0_0 = a0;
const linkTimestamp = (UseStateFromStoresModule).useStateFromStores([FamilyCenterStore],
_fun65587);
const value2 = null;
if (value2 != linkTimestamp) {
moduleValue2 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
r0 = moduleValue2.formatLinkTimestamp(global.Date.parse(linkTimestamp),
a1 === UserLinkStatus.PENDING ? PENDING_LINK_REQUEST_TIMESTAMP_FORMATTER : ACCEPTED_LINK_REQUEST_TIMESTAMP_FORMATTER);
} else {
r0 = value2;
}
return r0;
function _fun65587() { // fn#65587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8355:2624, offset: 0x01bd3f72, size: 29 bytes, params: 1, frame: 11
return FamilyCenterStore.getLinkTimestamp(env0_0);
}
}
return r0;
}
global.__d(_fun65555, 8170, [31, 1878, 5116, 5117, 632, 8171, 8172, 5187,
2]) /* metro module 8170, dependencies: [31, 1878, 5116, 5117, 632, 8171, 8172, 5187, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,77 +1,103 @@
/* Metro module 15800; source: modules/parent_tools/native/ConnectGuardianCard.tsx; dependencies: [31, 27, 1878, 5117, 33, 4501, 697, 632, 8994, 7054, 1244, 2224, 4572, 9181, 4573, 4690, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import UseCountdown from '../../../hooks/useCountdown.tsx'; /* Metro dependency 7054 */
import UseStableCallback from '../../../hooks/useStableCallback.tsx'; /* Metro dependency 8994 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TimeUtilsModule from '../../../utils/native/TimeUtils.tsx'; /* Metro dependency 4690 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as QRCodeModule from '../../../components_native/QRCode.tsx'; /* Metro dependency 9181 */
function _fun121393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:6, offset: 0x025470c3, size: 341 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FAMILY_CENTER_REQUEST_QR_CODE_URL;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const object2 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.padding = PX_12;
object.borderWidth = 1;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.padding = PX_12;
object2.borderWidth = 1;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BORDER_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_NORMAL;
object.borderColor = BORDER_NORMAL;
const env0_9 = Reflect.apply(createStyles, value, [{card: object, countdown: {textAlign: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/ConnectGuardianCard.tsx');
object2.borderColor = BORDER_NORMAL;
const env0_9 = Reflect.apply(createStyles, value, [{card: object2, countdown: {textAlign: 'center'}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/ConnectGuardianCard.tsx');
exports.ConnectGuardianCard = ConnectGuardianCard;
}
function ConnectGuardianCard({linkCode, expiresAt, onRefresh}) { // fn#121394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:487, offset: 0x02547218, size: 562 bytes, params: 2, frame: 30
var environment;
let value = environment;
const styles = useStyles();
const value2 = (UseStateFromStoresModule).useStateFromStores([UserStore],
_fun121395);
const value3 = (UseStableCallback)(onRefresh);
const {days, hours, minutes, seconds} = (UseCountdown)(expiresAt);
ReactModule.useEffect(_fun121396, [expiresAt, value3]);
if (value2 == null) {
return null;
}
const value5 = FAMILY_CENTER_REQUEST_QR_CODE_URL(value2, linkCode);
const intl = (IndexNativeModule).intl;
const string = intl.string;
const RfkLDs = (FamilyCenterMessages).RfkLDs;
const value6 = Reflect.apply(string, intl, [RfkLDs]);
const Stack = (StackNativeModule).Stack;
const PX_8 = (Native).space.PX_8;
const QRCodeWithOverlay = (QRCodeModule).QRCodeWithOverlay;
const items2 = [
<QRCodeWithOverlay size={160} text={value5} />,
];
const Text = (TextModule).Text;
const getTimeFormat = (TimeUtilsModule).getTimeFormat;
value = Reflect.apply(getTimeFormat, value, [86400 * days + 3600 * hours + 60 * minutes + seconds]);
items2[1] = (
<Text style={styles.countdown} variant="text-xs/normal">
{'' + value6 + ' ' + value}
</Text>
);
return (
<View style={styles.card}>
<Stack align="center" spacing={PX_8}>
{items2}
</Stack>
</View>
);
function _fun121395() { // fn#121395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:598, offset: 0x0254744a, size: 34 bytes, params: 1, frame: 10
const value = environment.__proto__;
return UserStore.getCurrentUser()?.id;
}
function _fun121396() { // fn#121396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:745, offset: 0x0254746c, size: 79 bytes, params: 1, frame: 15
const expiresAtBinding = expiresAt;
const Date = global.Date;
const value2 = expiresAtBinding - Date.now();
if (value2 <= 0) {
env0_1();
return undefined;
}
const env0_0 = global.setTimeout(env0_1, value2);
return _fun121397;
function _fun121397() { // fn#121397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:809, offset: 0x016d7e7e, size: 24 bytes, params: 1, frame: 11
return global.clearTimeout(env0_0);
}
}
function ConnectGuardianCard({linkCode, expiresAt, onRefresh}) { // fn#121394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:487, offset: 0x02547218, size: 562 bytes, params: 2, frame: 30
var environment;
let value = environment;
const styles = useStyles();
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
_fun121395);
const value3 = (importDefault(8994) /* metro dependency 8994: useStableCallback */)(onRefresh);
const {days, hours, minutes, seconds} = (importDefault(7054) /* metro dependency 7054: useCountdown */)(expiresAt);
env0_3.useEffect(_fun121396, [expiresAt, value3]);
if (value2 == null) {
return null;
}
const value5 = FAMILY_CENTER_REQUEST_QR_CODE_URL(value2, linkCode);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const RfkLDs = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RfkLDs;
const value6 = Reflect.apply(string, intl, [RfkLDs]);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const QRCodeWithOverlay = (require(9181) /* metro dependency 9181: QRCode */).QRCodeWithOverlay;
const items2 = [<QRCodeWithOverlay size={160} text={value5} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const getTimeFormat = (require(4690) /* metro dependency 4690: TimeUtils */).getTimeFormat;
value = Reflect.apply(getTimeFormat, value, [86400 * days + 3600 * hours + 60 * minutes + seconds]);
items2[1] = <Text style={styles.countdown} variant="text-xs/normal">{'' + value6 + ' ' + value}</Text>;
return (
<View style={styles.card}>
<Stack align="center" spacing={PX_8}>
{items2}
</Stack>
</View>
);
}
function _fun121395() { // fn#121395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:598, offset: 0x0254744a, size: 34 bytes, params: 1, frame: 10
const value = environment.__proto__;
return UserStore.getCurrentUser()?.id;
}
function _fun121396() { // fn#121396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16008:745, offset: 0x0254746c, size: 79 bytes, params: 1, frame: 15
const expiresAtBinding = expiresAt;
const Date = global.Date;
const value2 = expiresAtBinding - Date.now();
if (value2 <= 0) {
env0_1();
return undefined;
}
const env0_0 = global.setTimeout(env0_1, value2);
return _fun121397;
}
global.__d(_fun121393, 15800, [31, 27, 1878, 5117, 33, 4501, 697, 632, 8994, 7054, 1244, 2224, 4572, 9181, 4573,
4690,
2]) /* metro module 15800, dependencies: [31, 27, 1878, 5117, 33, 4501, 697, 632, 8994, 7054, 1244, 2224, 4572, 9181, 4573, 4690, 2] */;
@@ -1,11 +1,20 @@
/* Metro module 13428; source: modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx; dependencies: [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278, 5080, 13434, 1962, 1305, 13436, 2] */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
function _fun102152(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:6, offset: 0x0222f755, size: 474 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
ReactModule;
let value = FamilyCenterConstantsModule;
const env0_4 = value.MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS;
const env0_5 = value.MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
value = require(33) /* metro dependency 33 */;
@@ -13,100 +22,116 @@ function _fun102152(global, require, importDefault, importAll, module, exports,
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
const object = {'display': 'flex', 'justifyContent': 'center'};
const object3 = {'display': 'flex', 'justifyContent': 'center'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.backgroundColor = BACKGROUND_BASE_LOW;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_8 = Reflect.apply(createStyles, value, [{container: {marginTop: 24}, content: object,
object3.backgroundColor = BACKGROUND_BASE_LOW;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_8 = Reflect.apply(createStyles, value, [{container: {marginTop: 24}, content: object3,
empty: {'padding': 20, 'alignSelf': 'center'}, header: {marginBottom: 10}}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object2 = {'backgroundColor': null, 'tintColor': null, 'borderRadius': null, 'alignItems': 'center',
const object4 = {'backgroundColor': null, 'tintColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center', 'height': 32, 'width': 32};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.tintColor = INTERACTIVE_TEXT_DEFAULT;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_9 = Reflect.apply(createStyles, value, [{actionButton: object2}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx');
object4.tintColor = INTERACTIVE_TEXT_DEFAULT;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_9 = Reflect.apply(createStyles, value, [{actionButton: object4}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx');
exports.default = FamilyCenterAcceptedLinks;
}
function FamilyCenterAcceptedLinkRow({otherUser}) { // fn#102153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:730, offset: 0x0222f92f, size: 320 bytes, params: 2, frame: 27
var r0;
var FamilyCenterLinkRow;
var object;
var PressableOpacity;
var intl;
var formatToPlainString;
var T7DUoU;
var object3;
const styles = useStyles();
if (otherUser === undefined) {
r0 = null;
} else {
FamilyCenterLinkRow = importDefault(13431) /* metro dependency 13431: FamilyCenterLinkRow */;
object = {otherUser: otherUser};
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
T7DUoU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).T7DUoU;
object3 = {};
object3.name = otherUser?.toString();
object.actions = (
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [T7DUoU, object3])}
onPress={onPress_102154}
style={styles.actionButton}
>
{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</PressableOpacity>
);
r0 = <FamilyCenterLinkRow {...object} />;
}
return r0;
function FamilyCenterAcceptedLinkRowOnPress() { // fn#102154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1015, owner: FamilyCenterAcceptedLinkRow.onPress, offset: 0x0222fa6f, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[15]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
function FamilyCenterAcceptedLinkRow({otherUser}) { // fn#102153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:730, offset: 0x0222f92f, size: 320 bytes, params: 2, frame: 27
var r0;
var FamilyCenterLinkRow;
var object2;
var PressableOpacity;
var intl;
var formatToPlainString;
var T7DUoU;
var object4;
const styles = useStyles();
if (otherUser === undefined) {
r0 = null;
} else {
FamilyCenterLinkRow = importDefault(13431) /* metro dependency 13431: FamilyCenterLinkRow */;
object2 = {otherUser: otherUser};
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
T7DUoU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).T7DUoU;
object4 = {};
object4.name = otherUser?.toString();
object2.actions = <PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(formatToPlainString,
intl, [T7DUoU,
object4])} onPress={onPress_102154} style={styles.actionButton}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</PressableOpacity>;
r0 = <FamilyCenterLinkRow {...object2} />;
}
return r0;
}
function FamilyCenterAcceptedLinks() { // fn#102155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1296, offset: 0x0222fac6, size: 484 bytes, params: 1, frame: 28
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value3 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUsers();
const r0 = value2 ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const object2 = {};
object2.count = value3.length;
object2.max = r0;
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value5 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule,
[intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+tnO34'],
object2),
intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['pu6/U0'],
object2)]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.container}>
<Text
style={styles.header}
variant="eyebrow"
color="text-default"
>
{value5}
</Text>
<View style={styles.content}>
{value3.length === 0 ? <View style={styles.empty}>{((Component) => <Component text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).C4ScLD)} />)(importDefault(13429) /* metro dependency 13429: FamilyCenterEmpty */)}</View> : value3.map(_fun102156)}
function FamilyCenterAcceptedLinks() { // fn#102155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1296, offset: 0x0222fac6, size: 484 bytes, params: 1, frame: 28
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
const value3 = (UseUserLinksModule).useActiveLinkUsers();
const r0 = value2 ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const object = {};
object.count = value3.length;
object.max = r0;
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
const value5 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule,
[intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+tnO34'],
object),
intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['pu6/U0'],
object)]);
const Text = (TextModule).Text;
return (
<View style={styles.container}>
<Text
style={styles.header}
variant="eyebrow"
color="text-default"
>
{value5}
</Text>
<View style={styles.content}>
{
value3.length === 0
? (
<View style={styles.empty}>
{((Component) => <Component text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).C4ScLD)} />)(importDefault(13429) /* metro dependency 13429: FamilyCenterEmpty */)}
</View>
)
: value3.map(_fun102156)
}
</View>
</View>
</View>
);
}
);
function _fun102156(a0) { // fn#102156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1819, offset: 0x0222fcaa, size: 61 bytes, params: 2, frame: 16
const value = environment.__proto__;
return <FamilyCenterAcceptedLinkRow otherUser={a0} key={'accepted-' + a0.id} />;
}
function FamilyCenterAcceptedLinkRowOnPress() { // fn#102154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1015, owner: FamilyCenterAcceptedLinkRow.onPress, offset: 0x0222fa6f, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[15]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
}
function _fun102156(a0) { // fn#102156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1819, offset: 0x0222fcaa, size: 61 bytes, params: 2, frame: 16
const value = environment.__proto__;
return <FamilyCenterAcceptedLinkRow otherUser={a0} key={'accepted-' + a0.id} />;
}
global.__d(_fun102152, 13428, [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278,
5080, 13434, 1962, 1305, 13436,
2]) /* metro module 13428, dependencies: [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278, 5080, 13434, 1962, 1305, 13436, 2] */;
@@ -1,11 +1,16 @@
/* Metro module 13392; source: modules/parent_tools/native/FamilyCenterActivityBanner.tsx; dependencies: [31, 27, 33, 4501, 8170, 8171, 13393, 697, 12627, 1244, 2224, 13396, 13397, 4573, 6766, 2] */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
function _fun101957(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13582:6, offset: 0x02225110, size: 422 bytes, params: 8, frame: 23
var object3;
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(33) /* metro dependency 33 */;
@@ -16,80 +21,111 @@ function _fun101957(global, require, importDefault, importAll, module, exports,
const env0_7 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexDirection': 'row'}}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
object3 = {};
const object4 = {'backgroundColor': null, 'marginTop': 16, 'padding': 24, 'alignItems': 'center',
object = {};
const object2 = {'backgroundColor': null, 'marginTop': 16, 'padding': 24, 'alignItems': 'center',
'borderRadius': null, 'elevation': 2};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.container = object4;
object2.backgroundColor = BACKGROUND_BASE_LOW;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.container = object2;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.art = {'maxWidth': 243, 'maxHeight': 119, marginBottom: PX_8};
object.art = {'maxWidth': 243, 'maxHeight': 119, marginBottom: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.header = {marginBottom: PX_8, textAlign: 'center'};
object3.description = {textAlign: 'center'};
const env0_8 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityBanner.tsx');
object.header = {marginBottom: PX_8, textAlign: 'center'};
object.description = {textAlign: 'center'};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityBanner.tsx');
exports.default = FamilyCenterActivityBanner;
}
function FamilyCenterActivityBannerButton() { // fn#101958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13582:233, offset: 0x022252b6, size: 175 bytes, params: 1, frame: 19
var r0;
var value;
const styles = useStyles();
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasActiveLinks();
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value4 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasMaxConnections();
const value5 = null;
if (value4) {
r0 = value5;
} else if (value3) {
if (value2) {
function FamilyCenterActivityBannerButton() { // fn#101958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13582:233, offset: 0x022252b6, size: 175 bytes, params: 1, frame: 19
var r0;
var value;
const styles = useStyles();
const value2 = (UseUserLinksModule).useHasActiveLinks();
const value3 = (UseIsInAdultAgeGroup)();
const value4 = (UseUserLinksModule).useHasMaxConnections();
const value5 = null;
if (value4) {
r0 = value5;
} else if (value3) {
if (value2) {
r0 = value5;
} else {
var viewBindingProps = {style: styles.container};
value = require(13393) /* metro dependency 13393: FamilyCenterBannerButton */;
value = (
<View {...viewBindingProps}>
{((Component) => <Component />)(value3 ? value.FamilyCenterParentQRCodeButton : value.FamilyCenterTeenQRCodeButton)}
</View>
);
r0 = value;
}
} else {
var viewBindingProps = {style: styles.container};
value = require(13393) /* metro dependency 13393: FamilyCenterBannerButton */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value3 ? value.FamilyCenterParentQRCodeButton : value.FamilyCenterTeenQRCodeButton)}</View>;
value = (
<View {...viewBindingProps}>
{((Component) => <Component />)(value3 ? value.FamilyCenterParentQRCodeButton : value.FamilyCenterTeenQRCodeButton)}
</View>
);
r0 = value;
}
} else {
var viewBindingProps = {style: styles.container};
value = require(13393) /* metro dependency 13393: FamilyCenterBannerButton */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value3 ? value.FamilyCenterParentQRCodeButton : value.FamilyCenterTeenQRCodeButton)}</View>;
r0 = value;
return r0;
}
function FamilyCenterActivityBanner() { // fn#101959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13582:936, offset: 0x02225365, size: 553 bytes, params: 1, frame: 27
const value2 = importDefault(dependencyMap[5])();
const styles = useStyles();
const value3 = require(dependencyMap[4]).useHasMaxConnections();
const moduleValue2 = require(dependencyMap[8]);
let useAgeSpecificText = moduleValue2.useAgeSpecificText;
const intl = require(dependencyMap[9]).intl;
const value5 = Reflect.apply(useAgeSpecificText, moduleValue2,
[intl.string(importDefault(dependencyMap[10])['T7GyW+']), intl.string(importDefault(dependencyMap[10]).goKE2b)]);
const moduleValue3 = require(dependencyMap[8]);
useAgeSpecificText = moduleValue3.useAgeSpecificText;
let format = intl.format;
const MXjDSv = importDefault(dependencyMap[10]).MXjDSv;
const value6 = Reflect.apply(format, intl, [MXjDSv,
{articleLink: 'https://support.discord.com/hc/articles/14155060633623'}]);
format = intl.format;
const EMCf6j = importDefault(dependencyMap[10]).EMCf6j;
const value7 = Reflect.apply(useAgeSpecificText, moduleValue3, [value6, Reflect.apply(format, intl, [EMCf6j,
{articleLink: 'https://support.discord.com/hc/articles/14155043715735'}])]);
const items2 = [
<Image source={importDefault(value2 ? dependencyMap[11] : dependencyMap[12])} style={styles.art} />,
];
const Text = require(dependencyMap[13]).Text;
items2[1] = (
<Text style={styles.header} variant="heading-lg/semibold">
{value5}
</Text>
);
const TextWithIOSLinkWorkaround = require(dependencyMap[14]).TextWithIOSLinkWorkaround;
items2[2] = (
<TextWithIOSLinkWorkaround
style={styles.description}
variant="text-sm/medium"
color="text-muted"
>
{value7}
</TextWithIOSLinkWorkaround>
);
items2[3] = (
value3
? null
: (
<FamilyCenterActivityBannerButton />
)
);
return (
<View style={styles.container}>
{items2}
</View>
);
}
return r0;
}
function FamilyCenterActivityBanner() { // fn#101959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13582:936, offset: 0x02225365, size: 553 bytes, params: 1, frame: 27
const value2 = importDefault(dependencyMap[5])();
const styles = useStyles();
const value3 = require(dependencyMap[4]).useHasMaxConnections();
const moduleValue2 = require(dependencyMap[8]);
let useAgeSpecificText = moduleValue2.useAgeSpecificText;
const intl = require(dependencyMap[9]).intl;
const value5 = Reflect.apply(useAgeSpecificText, moduleValue2,
[intl.string(importDefault(dependencyMap[10])['T7GyW+']), intl.string(importDefault(dependencyMap[10]).goKE2b)]);
const moduleValue3 = require(dependencyMap[8]);
useAgeSpecificText = moduleValue3.useAgeSpecificText;
let format = intl.format;
const MXjDSv = importDefault(dependencyMap[10]).MXjDSv;
const value6 = Reflect.apply(format, intl, [MXjDSv,
{articleLink: 'https://support.discord.com/hc/articles/14155060633623'}]);
format = intl.format;
const EMCf6j = importDefault(dependencyMap[10]).EMCf6j;
const value7 = Reflect.apply(useAgeSpecificText, moduleValue3, [value6, Reflect.apply(format, intl, [EMCf6j,
{articleLink: 'https://support.discord.com/hc/articles/14155043715735'}])]);
const items2 = [<Image source={importDefault(value2 ? dependencyMap[11] : dependencyMap[12])} style={styles.art} />];
const Text = require(dependencyMap[13]).Text;
items2[1] = <Text style={styles.header} variant="heading-lg/semibold">{value5}</Text>;
const TextWithIOSLinkWorkaround = require(dependencyMap[14]).TextWithIOSLinkWorkaround;
items2[2] = <TextWithIOSLinkWorkaround style={styles.description} variant="text-sm/medium" color="text-muted">{value7}</TextWithIOSLinkWorkaround>;
items2[3] = value3 ? null : <FamilyCenterActivityBannerButton />;
return (
<View style={styles.container}>
{items2}
</View>
);
}
global.__d(_fun101957, 13392, [31, 27, 33, 4501, 8170, 8171, 13393, 697, 12627, 1244, 2224, 13396, 13397, 4573,
6766,
2]) /* metro module 13392, dependencies: [31, 27, 33, 4501, 8170, 8171, 13393, 697, 12627, 1244, 2224, 13396, 13397, 4573, 6766, 2] */;
@@ -1,391 +1,475 @@
/* Metro module 13402; source: modules/parent_tools/native/FamilyCenterActivityCard.tsx; dependencies: [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403, 4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408, 13409, 13412, 13419, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import Module07548 from '../../../by-id/module-07548.js'; /* Metro dependency 7548 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import TouchableHitBox2 from '../../../design/void/TouchableHitBox/native/TouchableHitBox.tsx'; /* Metro dependency 8792 */
import FamilyCenterActivitySection from './FamilyCenterActivitySection.tsx'; /* Metro dependency 13412 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
import * as UseSelectedTeenUserModule from '../hooks/useSelectedTeenUser.tsx'; /* Metro dependency 13406 */
import * as UseFamilyCenterActivitiesModule from '../hooks/useFamilyCenterActivities.tsx'; /* Metro dependency 13407 */
function _fun101992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:6, offset: 0x02226c00, size: 1427 bytes, params: 8, frame: 30
var object3;
const env0_0 = require;
const closure = FamilyCenterActivityCardHeader;
const closure2 = FamilyCenterActivityCardAccountSelect;
const FamilyCenterActivityCardHeader2 = FamilyCenterActivityCardHeader;
const FamilyCenterActivityCardAccountSelect2 = FamilyCenterActivityCardAccountSelect;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_5 = familyCenterConstantsModule.FamilyCenterAction;
const env0_6 = familyCenterConstantsModule.TeenActionDisplayType;
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const value3 = require(33) /* metro dependency 33 */;
const env0_8 = value3.jsx;
const env0_9 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = createStylesModule.createStyles;
object3 = {container: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'}};
const object6 = {};
let value = ReactModule;
let createStyles = CreateStylesModule.createStyles;
object = {container: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'}};
const object2 = {};
const ICON_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.ICON_SUBTLE;
object6.color = ICON_SUBTLE;
object2.color = ICON_SUBTLE;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.width = PX_16;
object2.width = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.height = PX_16;
object3.icon = object6;
object2.height = PX_16;
object.icon = object2;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.text = {marginHorizontal: PX_4};
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object3]);
const value5 = createStylesModule;
createStyles = value5.createStyles;
object3 = {};
const object7 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'flex': 1};
object.text = {marginHorizontal: PX_4};
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
createStyles = CreateStylesModule.createStyles;
object = {};
const object4 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'flex': 1};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object7.padding = PX_12;
object4.padding = PX_12;
let BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object7.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object7.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object7.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.header = object7;
const object8 = {};
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
object4.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object4.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object4.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.header = object4;
const object5 = {};
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
const AvatarSizes = (NativeModule).AvatarSizes;
const NORMAL = AvatarSizes.NORMAL;
object8.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
object5.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object8.backgroundColor = BACKGROUND_SURFACE_HIGH;
object3.avatar = object8;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.avatar = object5;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.avatarContainer = {marginRight: PX_12, alignItems: 'flex-start'};
object.avatarContainer = {marginRight: PX_12, alignItems: 'flex-start'};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.userHeader = {'display': 'flex', 'flexDirection': 'column', 'width': '100%', paddingRight: PX_16};
object.userHeader = {'display': 'flex', 'flexDirection': 'column', 'width': '100%', paddingRight: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.nonSelectorHeader = {flex: 1, paddingRight: PX_16};
const env0_12 = Reflect.apply(createStyles, value5, [object3]);
object.nonSelectorHeader = {flex: 1, paddingRight: PX_16};
const env0_12 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(_fun102005);
value.displayName = 'FamilyCenterActivityCardAccount';
const value6 = createStylesModule;
createStyles = value6.createStyles;
object3 = {};
const object11 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start'};
createStyles = CreateStylesModule.createStyles;
object = {};
const object9 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start'};
BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object11.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object9.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object11, SHADOW_LOW, undefined);
object3.touch = object11;
const object12 = {};
copyDataProperties(object9, SHADOW_LOW, undefined);
object.touch = object9;
const object10 = {};
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object12.color = INTERACTIVE_TEXT_DEFAULT;
object10.color = INTERACTIVE_TEXT_DEFAULT;
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object12.width = PX_24;
object10.width = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object12.height = PX_24;
object12.transform = [{rotate: '90deg'}];
object10.height = PX_24;
object10.transform = [{rotate: '90deg'}];
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object12.marginHorizontal = PX_8;
object3.icon = object12;
const env0_14 = Reflect.apply(createStyles, value6, [object3]);
const value7 = createStylesModule;
createStyles = value7.createStyles;
object3 = {};
object10.marginHorizontal = PX_8;
object.icon = object10;
const env0_14 = Reflect.apply(createStyles, CreateStylesModule, [object]);
createStyles = CreateStylesModule.createStyles;
object = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.card = {marginTop: PX_16};
object.card = {marginTop: PX_16};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.preface = {display: 'flex', marginBottom: PX_12};
const object13 = {};
object.preface = {display: 'flex', marginBottom: PX_12};
const object14 = {};
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object13.backgroundColor = BACKGROUND_SURFACE_HIGH;
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.container = object13;
const object16 = {'padding': null, 'display': 'flex', 'flexDirection': 'column'};
object14.backgroundColor = BACKGROUND_SURFACE_HIGH;
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.container = object14;
const object15 = {'padding': null, 'display': 'flex', 'flexDirection': 'column'};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object16.padding = PX_16;
object15.padding = PX_16;
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object16.gap = PX_32;
object3.content = object16;
object15.gap = PX_32;
object.content = object15;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.totals = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', 'justifyContent': 'space-between',
object.totals = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', 'justifyContent': 'space-between',
gap: PX_8};
object3.first = {width: '100%'};
object3.other = {width: '48.5%'};
object.first = {width: '100%'};
object.other = {width: '48.5%'};
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object3.activities = {'display': 'flex', 'flexDirection': 'column', gap: PX_32};
object.activities = {'display': 'flex', 'flexDirection': 'column', gap: PX_32};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.settingsControls = {marginTop: PX_24};
const env0_15 = Reflect.apply(createStyles, value7, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityCard.tsx');
object.settingsControls = {marginTop: PX_24};
const env0_15 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityCard.tsx');
exports.default = FamilyCenterActivityCard;
exports.FamilyCenterActivityCardAccount = value;
exports.FamilyCenterActivityCardHeader = closure;
exports.FamilyCenterActivityCardAccountSelect = closure2;
}
function FamilyCenterActivityCardPrefaceText() { // fn#101993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:495, offset: 0x02227193, size: 610 bytes, params: 1, frame: 27
var r5;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
var object;
var icon;
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value3 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds();
const value5 = (require(8170) /* metro dependency 8170: useUserLinks */).useActivityWindowTimeStamp((require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityWindowTimestampFormatter(!!value2));
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value6 = intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tazvHQ,
{activeLinks: value3.length});
const string = intl.string;
const KrLnkE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).KrLnkE;
const value7 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule, [value6, Reflect.apply(string, intl,
[KrLnkE])]);
if (value2) {
r5 = null;
} else {
object = {};
icon = styles.icon;
object.color = icon.color;
object.source = importDefault(13403) /* metro dependency 13403 */;
icon = styles.icon;
object.style = icon;
r5 = <Icon {...object} />;
}
const items2 = [r5];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text style={styles.text} variant="text-xs/semibold" color="text-subtle">{value3.length > 1 && value2 ? value5 : value7}</Text>;
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
const object3 = {onPress: onPress_101994};
const iconProps = {color: styles.icon.color, source: importDefault(7548) /* metro dependency 7548 */};
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
const Sizes = Icon2.Sizes;
const EXTRA_SMALL = Sizes.EXTRA_SMALL;
iconProps.size = EXTRA_SMALL;
iconProps.style = styles.icon;
items2[2] = <TouchableHitBox {...object3}><Icon {...iconProps} /></TouchableHitBox>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function FamilyCenterHeaderSubText() { // fn#101995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1238, offset: 0x0222743d, size: 179 bytes, params: 1, frame: 19
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
if (value2 && (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds().length > 1) {
return null;
} else {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text variant="text-sm/medium" color="text-muted">
{(require(8170) /* metro dependency 8170: useUserLinks */).useActivityWindowTimeStamp((require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityWindowTimestampFormatter(!!value2))}
exports.FamilyCenterActivityCardHeader = FamilyCenterActivityCardHeader2;
exports.FamilyCenterActivityCardAccountSelect = FamilyCenterActivityCardAccountSelect2;
function FamilyCenterActivityCardPrefaceText() { // fn#101993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:495, offset: 0x02227193, size: 610 bytes, params: 1, frame: 27
var r5;
const Icon = (NativeModule).Icon;
var object2;
var icon;
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
const value3 = (UseUserLinksModule).useActiveLinkUserIds();
const value5 = (UseUserLinksModule).useActivityWindowTimeStamp((FamilyCenterUtilsModule).getActivityWindowTimestampFormatter(!!value2));
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
const value6 = intl.formatToPlainString((FamilyCenterMessages).tazvHQ,
{activeLinks: value3.length});
const string = intl.string;
const KrLnkE = (FamilyCenterMessages).KrLnkE;
const value7 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value6, Reflect.apply(string, intl,
[KrLnkE])]);
if (value2) {
r5 = null;
} else {
object2 = {};
icon = styles.icon;
object2.color = icon.color;
object2.source = importDefault(13403) /* metro dependency 13403 */;
icon = styles.icon;
object2.style = icon;
r5 = <Icon {...object2} />;
}
const items2 = [r5];
const Text = (TextModule).Text;
items2[1] = (
<Text
style={styles.text}
variant="text-xs/semibold"
color="text-subtle"
>
{value3.length > 1 && value2 ? value5 : value7}
</Text>
);
}
}
function FamilyCenterActivityCardHeader() { // fn#101996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2579, offset: 0x022274f0, size: 157 bytes, params: 1, frame: 18
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds();
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
return value4 === undefined ? null : value3 && value2.length !== 1 ? <FamilyCenterActivityCardAccountSelect /> : <View>{((Component) => <Component user={value4} />)(env0_13)}</View>;
}
function FamilyCenterActivityCardAccountSelect() { // fn#101997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3244, offset: 0x0222758d, size: 393 bytes, params: 1, frame: 26
var r0;
var TouchableHitBox;
var items2;
const styles = useStyles();
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUsers();
const value3 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
const useFamilyCenterActionsModule = require(12624) /* metro dependency 12624: useFamilyCenterActions */;
const useFamilyCenterActions = useFamilyCenterActionsModule.useFamilyCenterActions;
const env0_2 = Reflect.apply(useFamilyCenterActions, useFamilyCenterActionsModule, [{onSuccess: onSuccess_101998,
onError: function() {
return require(dependencyMap[25]).presentFailedToast(require(dependencyMap[11]).intl.string(importDefault(dependencyMap[12]).Wu8BK2));
}}]).selectTeenUser;
const env0_3Binding = env0_3.useMemo(_fun102000, [value2]);
if (value3 === undefined) {
r0 = null;
} else {
TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImportProps = {style: styles.touch, accessibilityRole: 'spinbutton', onPress: onPress_102002};
items2 = [((Component) => <Component user={value3} inSelector />)(env0_13)];
items2[1] = ((Icon) => <Icon style={styles.icon} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(10787) /* metro dependency 10787 */} />)((require(1305) /* metro dependency 1305: native */).Icon);
r0 = <View><TouchableHitBox {...defaultImportProps}>{items2}</TouchableHitBox></View>;
}
return r0;
}
function _fun102005({user, inSelector}) { // fn#102005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2151, offset: 0x02227982, size: 336 bytes, params: 2, frame: 25
const styles = useStyles();
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const r14 = inSelector ? AvatarSizes.SMALL : AvatarSizes.NORMAL;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const view = <View style={styles.avatarContainer}><Avatar avatarStyle={styles.avatar} user={user} guildId={undefined} disablePlaceholder avatarDecoration={user.avatarDecoration} size={r14} /></View>;
const userHeader = styles.userHeader;
return (
<View style={styles.header}>
{view}
<View style={[userHeader, inSelector ? undefined : styles.nonSelectorHeader]}>
{((Component) => <Component user={user} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */)}
<FamilyCenterHeaderSubText />
const TouchableHitBox = TouchableHitBox2;
const object4 = {onPress: onPress_101994};
const iconProps = {color: styles.icon.color, source: Module07548};
const Icon2 = (NativeModule).Icon;
const Sizes = Icon2.Sizes;
const EXTRA_SMALL = Sizes.EXTRA_SMALL;
iconProps.size = EXTRA_SMALL;
iconProps.style = styles.icon;
items2[2] = (
<TouchableHitBox {...object4}>
<Icon {...iconProps} />
</TouchableHitBox>
);
return (
<View style={styles.container}>
{items2}
</View>
</View>
);
}
);
function FamilyCenterActivityCardPrefaceTextOnPress() { // fn#101994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1071, owner: FamilyCenterActivityCardPrefaceText.onPress, offset: 0x022273f5, size: 72 bytes, params: 1, frame: 15
const value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[17]);
defaultImport.pushLazy(require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths));
}
function FamilyCenterActivityCard() { // fn#102006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:4867, offset: 0x02227ad2, size: 514 bytes, params: 1, frame: 33
const styles = useStyles();
const value2 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
const value3 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useHasActionForAnyDisplayType();
if (value2 === undefined) {
return null;
}
const sortedActivityTypeConfigs = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getSortedActivityTypeConfigs();
const items2 = [<View style={styles.preface}><FamilyCenterActivityCardPrefaceText /></View>];
items2[1] = <View style={styles.container}><FamilyCenterActivityCardHeader /><View style={styles.content}><View style={styles.totals}>{sortedActivityTypeConfigs.filter(_fun102007).map(_fun102008)}</View>{((Component) => <Component />)(importDefault(13409) /* metro dependency 13409: FamilyCenterTopActivity */)}{value3 ? <View style={styles.activities}>{sortedActivityTypeConfigs.map(_fun102009)}</View> : null}</View></View>;
items2[2] = <View style={styles.settingsControls}>{((Component) => <Component />)(importDefault(13419) /* metro dependency 13419: FamilyCenterSettingsControls */)}</View>;
return (
<View style={styles.card}>
{items2}
</View>
);
}
function FamilyCenterActivityCardPrefaceTextOnPress() { // fn#101994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1071, owner: FamilyCenterActivityCardPrefaceText.onPress, offset: 0x022273f5, size: 72 bytes, params: 1, frame: 15
const value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[17]);
defaultImport.pushLazy(require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths));
}
function FamilyCenterActivityCardAccountSelectOnSuccess() { // fn#101998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3412, owner: FamilyCenterActivityCardAccountSelect.onSuccess, offset: 0x02227716, size: 42 bytes, params: 1, frame: 12
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(env1_10);
}
function _fun102000() { // fn#102000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3553, offset: 0x02227797, size: 28 bytes, params: 1, frame: 11
return env0_0.map(_fun102001);
}
function FamilyCenterActivityCardAccountSelectOnPress() { // fn#102002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3751, owner: FamilyCenterActivityCardAccountSelect.onPress, offset: 0x02227823, size: 178 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[24]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[19])(dependencyMap[27], dependencyMap.paths);
const binding = env1_10;
const object2 = {};
const intl = require(dependencyMap[11]).intl;
object2.title = intl.string(importDefault(dependencyMap[12]).vORl9Q);
object2.items = env0_3;
object2.onItemSelect = onItemSelect_102003;
object2.selectedItem = env0_1.id;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value2, binding, object2]);
}
function _fun102007(a0) { // fn#102007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5309, offset: 0x02227cd4, size: 50 bytes, params: 2, frame: 5
const iterator = a0[Symbol.iterator]();
let item2 = iterator.next();
const item = item2.value;
item2 = item2.done ? undefined : iterator;
let value = undefined;
const value2 = item2 === value;
const r1 = value2 ? value : item;
if (!value2) {
item2.return();
function FamilyCenterHeaderSubText() { // fn#101995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1238, offset: 0x0222743d, size: 179 bytes, params: 1, frame: 19
const value2 = (UseIsInAdultAgeGroup)();
if (value2 && (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds().length > 1) {
return null;
} else {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text variant="text-sm/medium" color="text-muted">
{(require(8170) /* metro dependency 8170: useUserLinks */).useActivityWindowTimeStamp((require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityWindowTimestampFormatter(!!value2))}
</Text>
);
}
}
value = environment.__proto__;
const GIFTS = TeenActionDisplayType.GIFTS;
return r1 !== GIFTS;
}
function _fun102008(a0, a1) { // fn#102008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5335, offset: 0x02227d06, size: 175 bytes, params: 3, frame: 19
var r0;
var r1;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r6 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
r0 = item3;
r1 = value3;
function FamilyCenterActivityCardHeader() { // fn#101996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2579, offset: 0x022274f0, size: 157 bytes, params: 1, frame: 18
const value2 = (UseUserLinksModule).useActiveLinkUserIds();
const value3 = (UseIsInAdultAgeGroup)();
const value4 = (UseSelectedTeenUserModule).useSelectedTeenUser();
return (
value4 === undefined
? null
: (
value3 && value2.length !== 1
? (
<FamilyCenterActivityCardAccountSelect />
)
: (
<View>
{((Component) => <Component user={value4} />)(env0_13)}
</View>
)
)
);
}
if (!r1) {
r0.return();
}
return (
<View style={a1 === 0 ? styles.first : styles.other} key={'total-' + r6}>
{((Component) => <Component displayType={r6} />)(importDefault(13408) /* metro dependency 13408: FamilyCenterActivityTotal */)}
</View>
);
}
function _fun102009(a0) { // fn#102009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5492, offset: 0x02227db5, size: 114 bytes, params: 2, frame: 17
var r0;
var r1;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r6 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
r0 = item3;
r1 = value3;
function FamilyCenterActivityCardAccountSelect() { // fn#101997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3244, offset: 0x0222758d, size: 393 bytes, params: 1, frame: 26
var r0;
var TouchableHitBox;
var items2;
const styles = useStyles();
const value2 = (UseUserLinksModule).useActiveLinkUsers();
const value3 = (UseSelectedTeenUserModule).useSelectedTeenUser();
const useFamilyCenterActions = UseFamilyCenterActionsModule.useFamilyCenterActions;
const env0_2 = Reflect.apply(useFamilyCenterActions, UseFamilyCenterActionsModule, [{onSuccess: onSuccess_101998,
onError: function() {
return require(dependencyMap[25]).presentFailedToast(require(dependencyMap[11]).intl.string(importDefault(dependencyMap[12]).Wu8BK2));
}}]).selectTeenUser;
const env0_3Binding = env0_3.useMemo(_fun102000, [value2]);
if (value3 === undefined) {
r0 = null;
} else {
TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImportProps = {style: styles.touch, accessibilityRole: 'spinbutton', onPress: onPress_102002};
items2 = [
((Component) => <Component user={value3} inSelector />)(env0_13),
];
items2[1] = ((Icon) => <Icon style={styles.icon} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(10787) /* metro dependency 10787 */} />)((require(1305) /* metro dependency 1305: native */).Icon);
r0 = (
<View>
<TouchableHitBox {...defaultImportProps}>
{items2}
</TouchableHitBox>
</View>
);
}
return r0;
function FamilyCenterActivityCardAccountSelectOnSuccess() { // fn#101998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3412, owner: FamilyCenterActivityCardAccountSelect.onSuccess, offset: 0x02227716, size: 42 bytes, params: 1, frame: 12
return (ActionSheetActionCreators).hideActionSheet(env1_10);
}
function _fun102000() { // fn#102000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3553, offset: 0x02227797, size: 28 bytes, params: 1, frame: 11
return env0_0.map(_fun102001);
function _fun102001(a0) { // fn#102001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3564, offset: 0x022277b3, size: 112 bytes, params: 2, frame: 19
const object = {};
let value = environment.__proto__.__proto__;
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
value = value.getName(a0);
object.label = '' + value + ' (' + (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(a0) + ')';
object.value = a0.id;
return object;
}
}
function FamilyCenterActivityCardAccountSelectOnPress() { // fn#102002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3751, owner: FamilyCenterActivityCardAccountSelect.onPress, offset: 0x02227823, size: 178 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[24]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[19])(dependencyMap[27], dependencyMap.paths);
const binding = env1_10;
const object = {};
const intl = require(dependencyMap[11]).intl;
object.title = intl.string(importDefault(dependencyMap[12]).vORl9Q);
object.items = env0_3;
object.onItemSelect = onItemSelect_102003;
object.selectedItem = env0_1.id;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value2, binding, object]);
function onPressOnItemSelect_102003(a0) { // fn#102003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3853, owner: FamilyCenterActivityCardAccountSelect.onPress.onItemSelect, offset: 0x022278d5, size: 131 bytes, params: 2, frame: 14
var environment;
var r0;
var defaultImport;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = a0 !== env1_1.id;
r0 = value;
} else {
r0 = value;
}
if (r0) {
value = environment.__proto__;
selectTeenUser(a0);
value = environment.__proto__.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.FAMILY_CENTER_ACTION, {action: FamilyCenterAction.SelectTeen});
}
global.setImmediate(_fun102004);
function _fun102004() { // fn#102004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3970, offset: 0x02227958, size: 42 bytes, params: 1, frame: 12
(ActionSheetActionCreators).hideActionSheet(env3_10);
}
}
}
}
if (!r1) {
r0.return();
function _fun102005({user, inSelector}) { // fn#102005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2151, offset: 0x02227982, size: 336 bytes, params: 2, frame: 25
const styles = useStyles();
const AvatarSizes = (NativeModule).AvatarSizes;
const r14 = inSelector ? AvatarSizes.SMALL : AvatarSizes.NORMAL;
const Avatar = (NativeModule).Avatar;
const view = (
<View style={styles.avatarContainer}>
<Avatar
avatarStyle={styles.avatar}
user={user}
guildId={undefined}
disablePlaceholder
avatarDecoration={user.avatarDecoration}
size={r14}
/>
</View>
);
const userHeader = styles.userHeader;
return (
<View style={styles.header}>
{view}
<View style={[userHeader, inSelector ? undefined : styles.nonSelectorHeader]}>
{((Component) => <Component user={user} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */)}
<FamilyCenterHeaderSubText />
</View>
</View>
);
}
return ((Component) => <Component displayType={r6} key={'section-' + r6} />)(importDefault(13412) /* metro dependency 13412: FamilyCenterActivitySection */);
}
function _fun102001(a0) { // fn#102001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3564, offset: 0x022277b3, size: 112 bytes, params: 2, frame: 19
const object2 = {};
let value = environment.__proto__.__proto__;
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
value = value.getName(a0);
object2.label = '' + value + ' (' + (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(a0) + ')';
object2.value = a0.id;
return object2;
}
function FamilyCenterActivityCard() { // fn#102006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:4867, offset: 0x02227ad2, size: 514 bytes, params: 1, frame: 33
const styles = useStyles();
const value2 = (UseSelectedTeenUserModule).useSelectedTeenUser();
const value3 = (UseFamilyCenterActivitiesModule).useHasActionForAnyDisplayType();
if (value2 === undefined) {
return null;
}
const sortedActivityTypeConfigs = (FamilyCenterUtilsModule).getSortedActivityTypeConfigs();
const items2 = [
<View style={styles.preface}>
<FamilyCenterActivityCardPrefaceText />
</View>,
];
items2[1] = (
<View style={styles.container}>
<FamilyCenterActivityCardHeader />
<View style={styles.content}>
<View style={styles.totals}>
{sortedActivityTypeConfigs.filter(_fun102007).map(_fun102008)}
</View>
{((Component) => <Component />)(importDefault(13409) /* metro dependency 13409: FamilyCenterTopActivity */)}
{
value3
? (
<View style={styles.activities}>
{sortedActivityTypeConfigs.map(_fun102009)}
</View>
)
: null
}
</View>
</View>
);
items2[2] = (
<View style={styles.settingsControls}>
{((Component) => <Component />)(importDefault(13419) /* metro dependency 13419: FamilyCenterSettingsControls */)}
</View>
);
return (
<View style={styles.card}>
{items2}
</View>
);
function _fun102007(a0) { // fn#102007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5309, offset: 0x02227cd4, size: 50 bytes, params: 2, frame: 5
const iterator = a0[Symbol.iterator]();
let item2 = iterator.next();
const item = item2.value;
item2 = item2.done ? undefined : iterator;
let value = undefined;
const value2 = item2 === value;
const r1 = value2 ? value : item;
if (!value2) {
item2.return();
}
value = environment.__proto__;
const GIFTS = TeenActionDisplayType.GIFTS;
return r1 !== GIFTS;
}
function _fun102008(a0, a1) { // fn#102008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5335, offset: 0x02227d06, size: 175 bytes, params: 3, frame: 19
var r0;
var r1;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r6 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
r0 = item3;
r1 = value3;
}
if (!r1) {
r0.return();
}
return (
<View style={a1 === 0 ? styles.first : styles.other} key={'total-' + r6}>
{((Component) => <Component displayType={r6} />)(importDefault(13408) /* metro dependency 13408: FamilyCenterActivityTotal */)}
</View>
);
}
function _fun102009(a0) { // fn#102009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5492, offset: 0x02227db5, size: 114 bytes, params: 2, frame: 17
var r0;
var r1;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r6 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
r0 = item3;
r1 = value3;
}
if (!r1) {
r0.return();
}
return ((Component) => <Component displayType={r6} key={'section-' + r6} />)(FamilyCenterActivitySection);
}
function onPressOnItemSelect_102003(a0) { // fn#102003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3853, owner: FamilyCenterActivityCardAccountSelect.onPress.onItemSelect, offset: 0x022278d5, size: 131 bytes, params: 2, frame: 14
var environment;
var r0;
var defaultImport;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = a0 !== env1_1.id;
r0 = value;
} else {
r0 = value;
}
if (r0) {
value = environment.__proto__;
selectTeenUser(a0);
value = environment.__proto__.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.FAMILY_CENTER_ACTION, {action: FamilyCenterAction.SelectTeen});
}
global.setImmediate(_fun102004);
}
function _fun102004() { // fn#102004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3970, offset: 0x02227958, size: 42 bytes, params: 1, frame: 12
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(env3_10);
}
global.__d(_fun101992, 13402, [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403,
4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408,
13409, 13412, 13419,
2]) /* metro module 13402, dependencies: [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403, 4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408, 13409, 13412, 13419, 2] */;
@@ -1,107 +1,180 @@
/* Metro module 13418; source: modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx; dependencies: [31, 27, 33, 4501, 697, 8405, 13406, 13415, 13417, 3995, 13416, 4573, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseCollectiblesData from '../../collectibles/hooks/useCollectiblesData.tsx'; /* Metro dependency 8405 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseSelectedTeenUserModule from '../hooks/useSelectedTeenUser.tsx'; /* Metro dependency 13406 */
function _fun102089(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13608:6, offset: 0x0222bfec, size: 262 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center', 'borderBottomColor': null, 'borderBottomWidth': 1, 'paddingVertical': 12,
borderBottomColor: BORDER_SUBTLE}, textContainer: {'display': 'flex', 'flexDirection': 'column',
'flexShrink': 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx');
exports.default = FamilyCenterActivityGiftRow;
function FamilyCenterActivityGiftRow({skuId, subscriptionPlanId, price, gifterUserId, claimed, offeredAt, claimedAt}) { // fn#102090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13608:496, offset: 0x0222c0f2, size: 519 bytes, params: 2, frame: 27
var moduleValue3;
var getGiftSubtext;
var object;
var value6;
var items3;
const Text = (TextModule).Text;
var items2;
const styles = useStyles();
const product = (UseCollectiblesData)(skuId).product;
const value2 = (UseSelectedTeenUserModule).useTeenUserForId(gifterUserId);
const {displayName,
isSubscription} = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getPurchaseDisplayInfo(product ?? null,
subscriptionPlanId);
if (skuId == null) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object = {claimed: claimed, price: price};
object.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object.offeredAt = offeredAt;
object.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object]);
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{displayName}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value6}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (isSubscription) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object = {claimed: claimed, price: price};
object.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object.offeredAt = offeredAt;
object.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object]);
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{displayName}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value6}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (product != null) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object = {claimed: claimed, price: price};
object.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object.offeredAt = offeredAt;
object.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object]);
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{displayName}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value6}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
return null;
}
}
function FamilyCenterActivityGiftRow({skuId, subscriptionPlanId, price, gifterUserId, claimed, offeredAt, claimedAt}) { // fn#102090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13608:496, offset: 0x0222c0f2, size: 519 bytes, params: 2, frame: 27
var moduleValue3;
var getGiftSubtext;
var object2;
var value6;
var items3;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const styles = useStyles();
const product = (importDefault(8405) /* metro dependency 8405: useCollectiblesData */)(skuId).product;
const value2 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useTeenUserForId(gifterUserId);
const {displayName,
isSubscription} = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getPurchaseDisplayInfo(product ?? null,
subscriptionPlanId);
if (skuId == null) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object2 = {claimed: claimed, price: price};
object2.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object2.offeredAt = offeredAt;
object2.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object2]);
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{displayName}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value6}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (isSubscription) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object2 = {claimed: claimed, price: price};
object2.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object2.offeredAt = offeredAt;
object2.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object2]);
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{displayName}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value6}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (product != null) {
if (displayName == null) {
return null;
}
moduleValue3 = require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */;
getGiftSubtext = moduleValue3.getGiftSubtext;
object2 = {claimed: claimed, price: price};
object2.gifterName = value2 != null ? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2) : null;
object2.offeredAt = offeredAt;
object2.claimedAt = claimedAt;
value6 = Reflect.apply(getGiftSubtext, moduleValue3, [object2]);
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{displayName}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value6}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
return null;
}
global.__d(_fun102089, 13418, [31, 27, 33, 4501, 697, 8405, 13406, 13415, 13417, 3995, 13416, 4573,
2]) /* metro module 13418, dependencies: [31, 27, 33, 4501, 697, 8405, 13406, 13415, 13417, 3995, 13416, 4573, 2] */;
@@ -1,137 +1,201 @@
/* Metro module 13416; source: modules/parent_tools/native/FamilyCenterActivityItemPreview.tsx; dependencies: [31, 27, 33, 4501, 13415, 697, 8484, 8498, 10031, 10358, 7958, 7954, 1904, 1901, 2] */
import UseMaybeFetchProfileFrame from '../../collectibles/profile_frames/useMaybeFetchProfileFrame.tsx'; /* Metro dependency 8498 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NameplateUtilsModule from '../../collectibles/nameplates/native/NameplateUtils.tsx'; /* Metro dependency 8484 */
import * as ShopIconModule from '../../../design/components/Icon/native/redesign/generated/ShopIcon.tsx'; /* Metro dependency 10358 */
import * as FamilyCenterActivityPurchaseRowUtilsModule from '../FamilyCenterActivityPurchaseRowUtils.tsx'; /* Metro dependency 13415 */
function _fun102077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:6, offset: 0x0222b4cb, size: 665 bytes, params: 8, frame: 24
var object3;
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object5 = {};
const PREVIEW_SIZE = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).PREVIEW_SIZE;
object5.width = PREVIEW_SIZE;
object5.height = PREVIEW_SIZE;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object = {};
const object2 = {};
const PREVIEW_SIZE = (FamilyCenterActivityPurchaseRowUtilsModule).PREVIEW_SIZE;
object2.width = PREVIEW_SIZE;
object2.height = PREVIEW_SIZE;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.display = 'flex';
object5.alignItems = 'center';
object5.justifyContent = 'center';
object5.marginRight = 12;
object3.purchasePlaceholder = object5;
object3.avatarDecorationPreview = {width: PREVIEW_SIZE, height: PREVIEW_SIZE, marginRight: 12};
const object6 = {'width': null, 'height': null, 'marginRight': 12, 'borderRadius': null, 'overflow': 'hidden',
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.display = 'flex';
object2.alignItems = 'center';
object2.justifyContent = 'center';
object2.marginRight = 12;
object.purchasePlaceholder = object2;
object.avatarDecorationPreview = {width: PREVIEW_SIZE, height: PREVIEW_SIZE, marginRight: 12};
const object4 = {'width': null, 'height': null, 'marginRight': 12, 'borderRadius': null, 'overflow': 'hidden',
'position': 'relative'};
object6.width = PREVIEW_SIZE;
object6.height = PREVIEW_SIZE;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object3.nameplateContainer = object6;
const NAMEPLATE_ASPECT_RATIO = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).NAMEPLATE_ASPECT_RATIO;
object3.nameplatePreview = {'position': 'absolute', 'right': 0, width: PREVIEW_SIZE * NAMEPLATE_ASPECT_RATIO,
object4.width = PREVIEW_SIZE;
object4.height = PREVIEW_SIZE;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.nameplateContainer = object4;
const NAMEPLATE_ASPECT_RATIO = (FamilyCenterActivityPurchaseRowUtilsModule).NAMEPLATE_ASPECT_RATIO;
object.nameplatePreview = {'position': 'absolute', 'right': 0, width: PREVIEW_SIZE * NAMEPLATE_ASPECT_RATIO,
height: PREVIEW_SIZE};
object3.profileFrameContainer = {'width': null, 'height': null, 'marginRight': 12, 'alignItems': 'center',
object.profileFrameContainer = {'width': null, 'height': null, 'marginRight': 12, 'alignItems': 'center',
'justifyContent': 'center', width: PREVIEW_SIZE, height: PREVIEW_SIZE};
const env0_6 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityItemPreview.tsx');
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityItemPreview.tsx');
exports.default = FamilyCenterActivityItemPreview;
}
function AvatarDecorationPreviewImage({product, styles}) { // fn#102078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:964, offset: 0x0222b764, size: 105 bytes, params: 2, frame: 17
const avatarDecorationPreviewUrl = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getAvatarDecorationPreviewUrl(product);
return avatarDecorationPreviewUrl == null ? null : <Image source={{uri: avatarDecorationPreviewUrl}} style={styles.avatarDecorationPreview} fadeDuration={0} />;
}
function NameplatePreviewImage({nameplateData, styles}) { // fn#102079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1148, offset: 0x0222b7cd, size: 145 bytes, params: 2, frame: 19
const nameplateUtilsModule = require(8484) /* metro dependency 8484: NameplateUtils */;
const getNameplateAssets = nameplateUtilsModule.getNameplateAssets;
const staticImageUrl = Reflect.apply(getNameplateAssets, nameplateUtilsModule, [nameplateData]).staticImageUrl;
return staticImageUrl == null ? null : <View style={styles.nameplateContainer}><Image source={{uri: staticImageUrl}} style={styles.nameplatePreview} resizeMode="cover" fadeDuration={0} /></View>;
}
function ProfileEffectPreviewImage({product, styles}) { // fn#102080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1401, offset: 0x0222b85e, size: 105 bytes, params: 2, frame: 17
const profileEffectPreviewUrl = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getProfileEffectPreviewUrl(product);
return profileEffectPreviewUrl == null ? null : <Image source={{uri: profileEffectPreviewUrl}} style={styles.avatarDecorationPreview} fadeDuration={0} />;
}
function ProfileFramePreviewImage({product, styles}) { // fn#102081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1585, offset: 0x0222b8c7, size: 228 bytes, params: 2, frame: 22
var r0;
var ProfileFrameSamplePreview;
var object2;
const PREVIEW_SIZE = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).PREVIEW_SIZE;
const value2 = (importDefault(8498) /* metro dependency 8498: useMaybeFetchProfileFrame */)(product.skuId,
'FamilyCenterActivityItemPreview');
if (value2 == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.profileFrameContainer};
ProfileFrameSamplePreview = importDefault(10031) /* metro dependency 10031: ProfileFrameSamplePreview */;
r0 = <View {...viewBindingProps}><ProfileFrameSamplePreview profileFrame={value2} previewWidth={PREVIEW_SIZE * (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).PROFILE_FRAME_ASPECT_RATIO} previewHeight={PREVIEW_SIZE} profileBackgroundColor={(importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW} /></View>;
function AvatarDecorationPreviewImage({product, styles}) { // fn#102078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:964, offset: 0x0222b764, size: 105 bytes, params: 2, frame: 17
const avatarDecorationPreviewUrl = (FamilyCenterActivityPurchaseRowUtilsModule).getAvatarDecorationPreviewUrl(product);
return (
avatarDecorationPreviewUrl == null
? null
: (
<Image
source={{uri: avatarDecorationPreviewUrl}}
style={styles.avatarDecorationPreview}
fadeDuration={0}
/>
)
);
}
return r0;
}
function SubscriptionPreview({subscriptionPlanId, styles}) { // fn#102082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1944, offset: 0x0222b9ab, size: 264 bytes, params: 2, frame: 18
if (subscriptionPlanId == null) {
function NameplatePreviewImage({nameplateData, styles}) { // fn#102079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1148, offset: 0x0222b7cd, size: 145 bytes, params: 2, frame: 19
const getNameplateAssets = NameplateUtilsModule.getNameplateAssets;
const staticImageUrl = Reflect.apply(getNameplateAssets, NameplateUtilsModule, [nameplateData]).staticImageUrl;
return (
staticImageUrl == null
? null
: (
<View style={styles.nameplateContainer}>
<Image
source={{uri: staticImageUrl}}
style={styles.nameplatePreview}
resizeMode="cover"
fadeDuration={0}
/>
</View>
)
);
}
function ProfileEffectPreviewImage({product, styles}) { // fn#102080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1401, offset: 0x0222b85e, size: 105 bytes, params: 2, frame: 17
const profileEffectPreviewUrl = (FamilyCenterActivityPurchaseRowUtilsModule).getProfileEffectPreviewUrl(product);
return (
profileEffectPreviewUrl == null
? null
: (
<Image
source={{uri: profileEffectPreviewUrl}}
style={styles.avatarDecorationPreview}
fadeDuration={0}
/>
)
);
}
function ProfileFramePreviewImage({product, styles}) { // fn#102081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1585, offset: 0x0222b8c7, size: 228 bytes, params: 2, frame: 22
var r0;
var ProfileFrameSamplePreview;
var object;
const PREVIEW_SIZE = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).PREVIEW_SIZE;
const value2 = (UseMaybeFetchProfileFrame)(product.skuId,
'FamilyCenterActivityItemPreview');
if (value2 == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.profileFrameContainer};
ProfileFrameSamplePreview = importDefault(10031) /* metro dependency 10031: ProfileFrameSamplePreview */;
r0 = (
<View {...viewBindingProps}>
<ProfileFrameSamplePreview
profileFrame={value2}
previewWidth={PREVIEW_SIZE * (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).PROFILE_FRAME_ASPECT_RATIO}
previewHeight={PREVIEW_SIZE}
profileBackgroundColor={(importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW}
/>
</View>
);
}
return r0;
}
function SubscriptionPreview({subscriptionPlanId, styles}) { // fn#102082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:1944, offset: 0x0222b9ab, size: 264 bytes, params: 2, frame: 18
if (subscriptionPlanId == null) {
return (
<View style={styles.purchasePlaceholder}>
{((ShopIcon) => <ShopIcon size="custom" style={{'width': 20,
'height': 20}} />)((require(10358) /* metro dependency 10358: ShopIcon */).ShopIcon)}
</View>
);
}
return (
<View style={styles.purchasePlaceholder}>
{((ShopIcon) => <ShopIcon size="custom" style={{'width': 20,
'height': 20}} />)((require(10358) /* metro dependency 10358: ShopIcon */).ShopIcon)}
{((Component) => <Component size="custom" style={{'width': 20,
'height': 20}} />)((require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).isGuildBoostSubscription(subscriptionPlanId) ? (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon : (require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)}
</View>
);
}
return (
<View style={styles.purchasePlaceholder}>
{((Component) => <Component size="custom" style={{'width': 20,
'height': 20}} />)((require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).isGuildBoostSubscription(subscriptionPlanId) ? (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon : (require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)}
</View>
);
}
function CollectiblePreview({product, styles}) { // fn#102083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:2312, offset: 0x0222bab3, size: 511 bytes, params: 2, frame: 20
const ShopIcon = (require(10358) /* metro dependency 10358: ShopIcon */).ShopIcon;
var nameplateDataFromProductRecord;
let value = null;
if (value == product) {
value = environment;
} else {
var type = product.type;
var CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
var AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
if (AVATAR_DECORATION === type) {
return <AvatarDecorationPreviewImage product={product} styles={styles} />;
}
var NAMEPLATE = CollectiblesItemType.NAMEPLATE;
if (NAMEPLATE === type) {
nameplateDataFromProductRecord = (require(1901) /* metro dependency 1901: utils */).getNameplateDataFromProductRecord(product);
return value != nameplateDataFromProductRecord ? <NameplatePreviewImage nameplateData={nameplateDataFromProductRecord} styles={styles} /> : value;
}
var PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (PROFILE_EFFECT === type) {
return <ProfileEffectPreviewImage product={product} styles={styles} />;
}
var PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (PROFILE_FRAME === type) {
return <ProfileFramePreviewImage product={product} styles={styles} />;
function CollectiblePreview({product, styles}) { // fn#102083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:2312, offset: 0x0222bab3, size: 511 bytes, params: 2, frame: 20
const ShopIcon = (ShopIconModule).ShopIcon;
var nameplateDataFromProductRecord;
let value = null;
if (value == product) {
value = environment;
} else {
var type = product.type;
var CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
var AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
if (AVATAR_DECORATION === type) {
return <AvatarDecorationPreviewImage product={product} styles={styles} />;
}
var NAMEPLATE = CollectiblesItemType.NAMEPLATE;
if (NAMEPLATE === type) {
nameplateDataFromProductRecord = (require(1901) /* metro dependency 1901: utils */).getNameplateDataFromProductRecord(product);
return (
value != nameplateDataFromProductRecord
? (
<NameplatePreviewImage nameplateData={nameplateDataFromProductRecord} styles={styles} />
)
: value
);
}
var PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (PROFILE_EFFECT === type) {
return <ProfileEffectPreviewImage product={product} styles={styles} />;
}
var PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (PROFILE_FRAME === type) {
return <ProfileFramePreviewImage product={product} styles={styles} />;
}
}
return (
<View style={styles.purchasePlaceholder}>
<ShopIcon size="custom" style={{'width': 20, 'height': 20}} />
</View>
);
}
function FamilyCenterActivityItemPreview({displayName, product, isSubscription, subscriptionPlanId}) { // fn#102084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:3203, offset: 0x0222bcb2, size: 124 bytes, params: 2, frame: 20
const styles = useStyles();
return (
<View accessible accessibilityLabel={displayName}>
{
isSubscription
? (
<SubscriptionPreview subscriptionPlanId={subscriptionPlanId} styles={styles} />
)
: (
<CollectiblePreview product={product} styles={styles} />
)
}
</View>
);
}
return (
<View style={styles.purchasePlaceholder}>
<ShopIcon size="custom" style={{'width': 20, 'height': 20}} />
</View>
);
}
function FamilyCenterActivityItemPreview({displayName, product, isSubscription, subscriptionPlanId}) { // fn#102084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13606:3203, offset: 0x0222bcb2, size: 124 bytes, params: 2, frame: 20
const styles = useStyles();
return (
<View accessible accessibilityLabel={displayName}>
{isSubscription ? <SubscriptionPreview subscriptionPlanId={subscriptionPlanId} styles={styles} /> : <CollectiblePreview product={product} styles={styles} />}
</View>
);
}
global.__d(_fun102077, 13416, [31, 27, 33, 4501, 13415, 697, 8484, 8498, 10031, 10358, 7958, 7954, 1904, 1901,
2]) /* metro module 13416, dependencies: [31, 27, 33, 4501, 13415, 697, 8484, 8498, 10031, 10358, 7958, 7954, 1904, 1901, 2] */;
@@ -1,11 +1,16 @@
/* Metro module 13391; source: modules/parent_tools/native/FamilyCenterActivityPage.tsx; dependencies: [31, 27, 33, 4501, 697, 8170, 6618, 13392, 13398, 12626, 13402, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
function _fun101955(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13581:6, offset: 0x02224e8f, size: 313 bytes, params: 8, frame: 22
var object2;
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -14,51 +19,64 @@ function _fun101955(global, require, importDefault, importAll, module, exports,
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.scrollView = {flex: 1};
object = {};
object.scrollView = {flex: 1};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.dataConfirmation = {marginTop: PX_8};
const object3 = {};
object.dataConfirmation = {marginTop: PX_8};
const object4 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingHorizontal = PX_16;
object4.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingBottom = PX_16;
object2.container = object3;
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityPage.tsx');
object4.paddingBottom = PX_16;
object.container = object4;
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityPage.tsx');
exports.default = FamilyCenterActivityPage;
}
function FamilyCenterActivityPage() { // fn#101956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13581:457, offset: 0x02224fc8, size: 328 bytes, params: 1, frame: 29
var r8;
var jsxRuntimeEnv0_6Binding;
var items2;
var value;
const styles = useStyles();
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds();
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
if (value2.length === 0) {
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
items2 = [((Component) => <Component />)(importDefault(13392) /* metro dependency 13392: FamilyCenterActivityBanner */)];
items2[1] = ((Component) => <Component />)(importDefault(13398) /* metro dependency 13398: FamilyCenterFeatureRow */);
var viewBinding2Props = {style: styles.dataConfirmation};
value = importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */;
items2[2] = <View {...viewBinding2Props}>{((Component) => <Component source="activity-page" />)(value)}</View>;
value = <>{items2}</>;
r8 = value;
} else {
value = importDefault(13402) /* metro dependency 13402: FamilyCenterActivityCard */;
value = ((Component) => <Component />)(value);
r8 = value;
}
return (
<ScrollView style={styles.scrollView}>
<SafeAreaPaddingView bottom>
<View style={styles.container}>
{r8}
function FamilyCenterActivityPage() { // fn#101956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13581:457, offset: 0x02224fc8, size: 328 bytes, params: 1, frame: 29
var r8;
var jsxRuntimeEnv0_6Binding;
var items2;
var value;
const styles = useStyles();
const value2 = (UseUserLinksModule).useActiveLinkUserIds();
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
if (value2.length === 0) {
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
items2 = [
((Component) => <Component />)(importDefault(13392) /* metro dependency 13392: FamilyCenterActivityBanner */),
];
items2[1] = ((Component) => <Component />)(importDefault(13398) /* metro dependency 13398: FamilyCenterFeatureRow */);
var viewBinding2Props = {style: styles.dataConfirmation};
value = importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */;
items2[2] = (
<View {...viewBinding2Props}>
{((Component) => <Component source="activity-page" />)(value)}
</View>
</SafeAreaPaddingView>
</ScrollView>
);
);
value = (
<>
{items2}
</>
);
r8 = value;
} else {
value = importDefault(13402) /* metro dependency 13402: FamilyCenterActivityCard */;
value = ((Component) => <Component />)(value);
r8 = value;
}
return (
<ScrollView style={styles.scrollView}>
<SafeAreaPaddingView bottom>
<View style={styles.container}>
{r8}
</View>
</SafeAreaPaddingView>
</ScrollView>
);
}
}
global.__d(_fun101955, 13391, [31, 27, 33, 4501, 697, 8170, 6618, 13392, 13398, 12626, 13402,
2]) /* metro module 13391, dependencies: [31, 27, 33, 4501, 697, 8170, 6618, 13392, 13398, 12626, 13402, 2] */;
@@ -1,89 +1,161 @@
/* Metro module 13414; source: modules/parent_tools/native/FamilyCenterActivityPurchaseRow.tsx; dependencies: [31, 27, 33, 4501, 697, 8405, 13415, 5137, 13416, 4573, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseCollectiblesData from '../../collectibles/hooks/useCollectiblesData.tsx'; /* Metro dependency 8405 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun102069(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13604:6, offset: 0x0222ada3, size: 262 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center', 'borderBottomColor': null, 'borderBottomWidth': 1, 'paddingVertical': 12,
borderBottomColor: BORDER_SUBTLE}, textContainer: {'display': 'flex', 'flexDirection': 'column',
'flexShrink': 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityPurchaseRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityPurchaseRow.tsx');
exports.default = FamilyCenterActivityPurchaseRow;
function FamilyCenterActivityPurchaseRow({skuId, subscriptionPlanId, total, currency}) { // fn#102070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13604:500, offset: 0x0222aea9, size: 455 bytes, params: 2, frame: 27
var r16;
var value4;
var items3;
const Text = (TextModule).Text;
var items2;
const styles = useStyles();
const product = (UseCollectiblesData)(skuId).product;
const {displayName, typeName,
isSubscription} = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getPurchaseDisplayInfo(product ?? null,
subscriptionPlanId);
if (skuId == null) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{r16}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value4}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (isSubscription) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{r16}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value4}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (product != null) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [
((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */),
];
var viewBinding2Props = {style: styles.textContainer};
items2 = [
<Text
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{r16}
</Text>,
];
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{value4}
</Text>
);
items3[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
return null;
}
}
function FamilyCenterActivityPurchaseRow({skuId, subscriptionPlanId, total, currency}) { // fn#102070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13604:500, offset: 0x0222aea9, size: 455 bytes, params: 2, frame: 27
var r16;
var value4;
var items3;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const styles = useStyles();
const product = (importDefault(8405) /* metro dependency 8405: useCollectiblesData */)(skuId).product;
const {displayName, typeName,
isSubscription} = (require(13415) /* metro dependency 13415: FamilyCenterActivityPurchaseRowUtils */).getPurchaseDisplayInfo(product ?? null,
subscriptionPlanId);
if (skuId == null) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{r16}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value4}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (isSubscription) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{r16}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value4}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
if (product != null) {
if (displayName == null) {
return null;
}
value4 = (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(total, currency);
r16 = typeName == null ? displayName : '' + displayName + ' • ' + typeName;
var viewBindingProps = {style: styles.container};
items3 = [((Component) => <Component displayName={displayName} product={product ?? null} isSubscription={isSubscription} subscriptionPlanId={subscriptionPlanId} />)(importDefault(13416) /* metro dependency 13416: FamilyCenterActivityItemPreview */)];
var viewBinding2Props = {style: styles.textContainer};
items2 = [<Text variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{r16}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted">{value4}</Text>;
items3[1] = <View {...viewBinding2Props}>{items2}</View>;
return (
<View {...viewBindingProps}>
{items3}
</View>
);
}
return null;
}
global.__d(_fun102069, 13414, [31, 27, 33, 4501, 697, 8405, 13415, 5137, 13416, 4573,
2]) /* metro module 13414, dependencies: [31, 27, 33, 4501, 697, 8405, 13415, 5137, 13416, 4573, 2] */;
@@ -1,273 +1,364 @@
/* Metro module 13413; source: modules/parent_tools/native/FamilyCenterActivityRow.tsx; dependencies: [31, 27, 1878, 5116, 5117, 661, 33, 4501, 697, 1305, 44, 632, 21, 4573, 3995, 5187, 6819, 8642, 1244, 2224, 13414, 13417, 13418, 2] */
import SnowflakeUtils from '../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
function _fun102063(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:6, offset: 0x0222a338, size: 802 bytes, params: 8, frame: 27
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
const env0_6 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).ACTION_TO_TEXT;
const env0_7 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
const value2 = require(33) /* metro dependency 33 */;
const env0_8 = value2.jsx;
const env0_9 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = createStylesModule.createStyles;
object2 = {};
let value = ReactModule;
let createStyles = CreateStylesModule.createStyles;
object = {};
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.container = {'display': 'flex', 'flexDirection': 'row', 'borderBottomColor': null, 'borderBottomWidth': 1,
object.container = {'display': 'flex', 'flexDirection': 'row', 'borderBottomColor': null, 'borderBottomWidth': 1,
'paddingVertical': 12, borderBottomColor: BORDER_SUBTLE};
const object4 = {};
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const object3 = {};
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
const AvatarSizes = (NativeModule).AvatarSizes;
const NORMAL = AvatarSizes.NORMAL;
object4.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
object3.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.avatar = object4;
object2.avatarContainer = {'marginRight': 12, 'alignItems': 'flex-start'};
object2.textContainer = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 1};
object2.text = {'display': 'flex', 'flexDirection': 'row', 'flexShrink': 1};
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object2]);
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.avatar = object3;
object.avatarContainer = {'marginRight': 12, 'alignItems': 'flex-start'};
object.textContainer = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 1};
object.text = {'display': 'flex', 'flexDirection': 'row', 'flexShrink': 1};
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value.memo(_fun102064).displayName = 'FamilyCenterActivityRowUser';
const value5 = createStylesModule;
createStyles = value5.createStyles;
object2 = {};
createStyles = CreateStylesModule.createStyles;
object = {};
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.container = {'display': 'flex', 'alignItems': 'center', 'flexDirection': 'row', 'borderBottomColor': null,
object.container = {'display': 'flex', 'alignItems': 'center', 'flexDirection': 'row', 'borderBottomColor': null,
'borderBottomWidth': 1, 'paddingVertical': 12, borderBottomColor: BORDER_SUBTLE};
const object6 = {'borderRadius': null, 'borderColor': null, 'height': 40, 'width': 40, 'margin': 0,
const object5 = {'borderRadius': null, 'borderColor': null, 'height': 40, 'width': 40, 'margin': 0,
'backgroundColor': null, 'marginRight': 12};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object6.borderColor = BACKGROUND_BASE_LOW;
object5.borderColor = BACKGROUND_BASE_LOW;
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object6.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object2.avatar = object6;
object5.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object.avatar = object5;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object2.avatarText = {color: TEXT_DEFAULT};
object2.text = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 1};
object2.headerContainer = {'display': 'flex', 'flexDirection': 'row'};
object2.badge = {marginRight: 4};
object2.header = {paddingRight: 16};
object2.headerAndIconContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
const env0_12 = Reflect.apply(createStyles, value5, [object2]);
object.avatarText = {color: TEXT_DEFAULT};
object.text = {'display': 'flex', 'flexDirection': 'column', 'flexShrink': 1};
object.headerContainer = {'display': 'flex', 'flexDirection': 'row'};
object.badge = {marginRight: 4};
object.header = {paddingRight: 16};
object.headerAndIconContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
const env0_12 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(_fun102066);
value.displayName = 'FamilyCenterActivityRowGuild';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityRow.tsx');
exports.default = FamilyCenterActivityRow;
}
function _fun102064({action}) { // fn#102064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:696, offset: 0x0222a65a, size: 527 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = ACTION_TO_TEXT.get(action.display_type);
(Module00044)(value2, 'No text for action type');
const user = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getUser(action.entity_id);
});
if (user == null) {
return null;
}
const defaultImport2 = SnowflakeUtils;
const value3 = defaultImport2.extractTimestamp(action.event_id);
const Avatar = (NativeModule).Avatar;
const items3 = [
<View style={styles.avatarContainer}>
<Avatar
avatarStyle={styles.avatar}
user={user}
guildId={undefined}
disablePlaceholder
avatarDecoration={user.avatarDecoration}
/>
</View>,
];
const Text = (TextModule).Text;
let value = UserUtils;
value = (
<Text
style={styles.text}
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{value.getName(user)}
</Text>
);
const items2 = [value];
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
const formatUserActivityTimestamp = value.formatUserActivityTimestamp;
const Date = global.Date;
const value4 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(value3);
items2[1] = (
<Text variant="text-xs/medium" color="channels-default">
{Reflect.apply(formatUserActivityTimestamp, value, [(date instanceof Object ? date : value4).getTime(),
value2.timestampFormatter])}
</Text>
);
items3[1] = (
<View style={styles.textContainer}>
{items2}
</View>
);
return (
<View style={styles.container}>
{items3}
</View>
);
}
function _fun102064({action}) { // fn#102064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:696, offset: 0x0222a65a, size: 527 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = ACTION_TO_TEXT.get(action.display_type);
(importDefault(44) /* metro dependency 44 */)(value2, 'No text for action type');
const user = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getUser(action.entity_id);
});
if (user == null) {
function _fun102066({action}) { // fn#102066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:2186, offset: 0x0222a88a, size: 693 bytes, params: 2, frame: 32
var r7;
var intl;
const styles = useStyles();
const guild = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getGuild(action.entity_id);
});
const get = ACTION_TO_TEXT.get;
(Module00044)(Reflect.apply(get, ACTION_TO_TEXT, [action.display_type]),
'No text for action type');
if (guild === undefined) {
return null;
}
const features = guild.features;
const has = features.has;
const VERIFIED = GuildFeatures.VERIFIED;
const r12 = Reflect.apply(has, features, [VERIFIED]) || guild.features.has(GuildFeatures.PARTNERED);
const name = guild.name;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const NORMAL = GuildIconSizes.NORMAL;
const guildIcon = (
<GuildIcon
style={styles.avatar}
textStyle={styles.avatarText}
guild={guild}
size={NORMAL}
animate
/>
);
const r8 = (
r12
? ((Component) => <Component style={styles.badge} guild={guild} size={(importDefault(8642) /* metro dependency 8642: GuildBadge */).Sizes.SMALL} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */)
: null
);
const Text = (TextModule).Text;
const view = (
<View style={styles.headerContainer}>
<View style={styles.headerAndIconContainer}>
{r8}
<Text
style={styles.header}
variant="text-md/semibold"
color="interactive-text-active"
ellipsizeMode="tail"
lineClamp={1}
>
{name}
</Text>
</View>
</View>
);
if (guild.approximateMemberCount === undefined) {
r7 = null;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r7 = (
<Text variant="text-xs/medium" color="channels-default">
{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['5JmNgg'],
{members: guild.approximateMemberCount})}
</Text>
);
}
return (
<View style={styles.container}>
{guildIcon}
<View style={styles.text}>
{view}
{r7}
</View>
</View>
);
}
function FamilyCenterActivityRow({action}) { // fn#102068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:3268, offset: 0x0222ab60, size: 579 bytes, params: 2, frame: 24
var r0;
var moduleValue5;
var moduleValue6;
var familyCenterStoreBinding;
var value2;
var giftRowDisplayInfo;
var value4;
var value5;
var value;
const familyCenterUtilsModule = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (familyCenterUtilsModule.isUserAction(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value4 = familyCenterStoreBinding.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value2 = familyCenterStoreBinding.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{
(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action)
? ((Component) => <Component action={action} />)(env0_11)
: ((Component) => <Component action={action} />)(env0_13)
}
</View>
);
}
const moduleValue2 = familyCenterUtilsModule;
if (moduleValue2.isGuildAction(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value4 = familyCenterStoreBinding.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value2 = familyCenterStoreBinding.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{
(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action)
? ((Component) => <Component action={action} />)(env0_11)
: ((Component) => <Component action={action} />)(env0_13)
}
</View>
);
}
const moduleValue3 = familyCenterUtilsModule;
if (moduleValue3.isPurchase(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value4 = familyCenterStoreBinding.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value2 = familyCenterStoreBinding.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{
(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action)
? ((Component) => <Component action={action} />)(env0_11)
: ((Component) => <Component action={action} />)(env0_13)
}
</View>
);
}
const moduleValue4 = familyCenterUtilsModule;
if (moduleValue4.isGift(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value4 = familyCenterStoreBinding.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
familyCenterStoreBinding = FamilyCenterStore;
value2 = familyCenterStoreBinding.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{
(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action)
? ((Component) => <Component action={action} />)(env0_11)
: ((Component) => <Component action={action} />)(env0_13)
}
</View>
);
}
return null;
}
const defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
const value3 = defaultImport2.extractTimestamp(action.event_id);
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const items3 = [<View style={styles.avatarContainer}><Avatar avatarStyle={styles.avatar} user={user} guildId={undefined} disablePlaceholder avatarDecoration={user.avatarDecoration} /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let value = importDefault(3995) /* metro dependency 3995: UserUtils */;
value = <Text style={styles.text} variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{value.getName(user)}</Text>;
const items2 = [value];
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
const formatUserActivityTimestamp = value.formatUserActivityTimestamp;
const Date = global.Date;
const value4 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(value3);
items2[1] = <Text variant="text-xs/medium" color="channels-default">{Reflect.apply(formatUserActivityTimestamp,
value, [(date instanceof Object ? date : value4).getTime(), value2.timestampFormatter])}</Text>;
items3[1] = <View style={styles.textContainer}>{items2}</View>;
return (
<View style={styles.container}>
{items3}
</View>
);
}
function _fun102066({action}) { // fn#102066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:2186, offset: 0x0222a88a, size: 693 bytes, params: 2, frame: 32
var r7;
var intl;
const styles = useStyles();
const guild = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getGuild(action.entity_id);
});
const get = ACTION_TO_TEXT.get;
(importDefault(44) /* metro dependency 44 */)(Reflect.apply(get, ACTION_TO_TEXT, [action.display_type]),
'No text for action type');
if (guild === undefined) {
return null;
}
const features = guild.features;
const has = features.has;
const VERIFIED = GuildFeatures.VERIFIED;
const r12 = Reflect.apply(has, features, [VERIFIED]) || guild.features.has(GuildFeatures.PARTNERED);
const name = guild.name;
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const NORMAL = GuildIconSizes.NORMAL;
const guildIcon = <GuildIcon style={styles.avatar} textStyle={styles.avatarText} guild={guild} size={NORMAL} animate />;
const r8 = r12 ? ((Component) => <Component style={styles.badge} guild={guild} size={(importDefault(8642) /* metro dependency 8642: GuildBadge */).Sizes.SMALL} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */) : null;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const view = <View style={styles.headerContainer}><View style={styles.headerAndIconContainer}>{r8}<Text style={styles.header} variant="text-md/semibold" color="interactive-text-active" ellipsizeMode="tail" lineClamp={1}>{name}</Text></View></View>;
if (guild.approximateMemberCount === undefined) {
r7 = null;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r7 = <Text variant="text-xs/medium" color="channels-default">{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['5JmNgg'],
{members: guild.approximateMemberCount})}</Text>;
}
return (
<View style={styles.container}>
{guildIcon}
<View style={styles.text}>
{view}
{r7}
</View>
</View>
);
}
function FamilyCenterActivityRow({action}) { // fn#102068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13603:3268, offset: 0x0222ab60, size: 579 bytes, params: 2, frame: 24
var r0;
var moduleValue5;
var moduleValue6;
var value2;
var giftRowDisplayInfo;
var value4;
var value5;
var value;
const familyCenterUtilsModule = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (familyCenterUtilsModule.isUserAction(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
value4 = FamilyCenterStore.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
value2 = FamilyCenterStore.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action) ? ((Component) => <Component action={action} />)(env0_11) : ((Component) => <Component action={action} />)(env0_13)}
</View>
);
}
const moduleValue2 = familyCenterUtilsModule;
if (moduleValue2.isGuildAction(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
value4 = FamilyCenterStore.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
value2 = FamilyCenterStore.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action) ? ((Component) => <Component action={action} />)(env0_11) : ((Component) => <Component action={action} />)(env0_13)}
</View>
);
}
const moduleValue3 = familyCenterUtilsModule;
if (moduleValue3.isPurchase(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
value4 = FamilyCenterStore.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
value2 = FamilyCenterStore.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action) ? ((Component) => <Component action={action} />)(env0_11) : ((Component) => <Component action={action} />)(env0_13)}
</View>
);
}
const moduleValue4 = familyCenterUtilsModule;
if (moduleValue4.isGift(action)) {
moduleValue5 = familyCenterUtilsModule;
if (moduleValue5.isPurchase(action)) {
value4 = FamilyCenterStore.getPurchaseInfo(action.entity_id);
value5 = null;
if (value5 == value4) {
r0 = value5;
} else {
value = importDefault(13414) /* metro dependency 13414: FamilyCenterActivityPurchaseRow */;
value = ((Component) => <Component skuId={value4.sku_id} subscriptionPlanId={value4.subscription_plan_id} total={value4.total} currency={value4.currency} />)(value);
r0 = value;
}
return r0;
}
moduleValue6 = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
if (moduleValue6.isGift(action)) {
value2 = FamilyCenterStore.getGiftInfo(action.entity_id);
if (value2 == null) {
return null;
}
giftRowDisplayInfo = (require(13417) /* metro dependency 13417: FamilyCenterActivityGiftRowUtils */).getGiftRowDisplayInfo(value2);
return ((Component) => <Component skuId={giftRowDisplayInfo.skuId} subscriptionPlanId={giftRowDisplayInfo.subscriptionPlanId} price={giftRowDisplayInfo.price} gifterUserId={giftRowDisplayInfo.gifterUserId} claimed={giftRowDisplayInfo.claimed} offeredAt={giftRowDisplayInfo.offeredAt} claimedAt={giftRowDisplayInfo.claimedAt} />)(importDefault(13418) /* metro dependency 13418: FamilyCenterActivityGiftRow */);
}
return (
<View>
{(require(5187) /* metro dependency 5187: FamilyCenterUtils */).isUserAction(action) ? ((Component) => <Component action={action} />)(env0_11) : ((Component) => <Component action={action} />)(env0_13)}
</View>
);
}
return null;
}
global.__d(_fun102063, 13413, [31, 27, 1878, 5116, 5117, 661, 33, 4501, 697, 1305, 44, 632, 21, 4573, 3995, 5187,
6819, 8642, 1244, 2224, 13414, 13417, 13418,
2]) /* metro module 13413, dependencies: [31, 27, 1878, 5116, 5117, 661, 33, 4501, 697, 1305, 44, 632, 21, 4573, 3995, 5187, 6819, 8642, 1244, 2224, 13414, 13417, 13418, 2] */;
@@ -1,12 +1,21 @@
/* Metro module 13412; source: modules/parent_tools/native/FamilyCenterActivitySection.tsx; dependencies: [57, 31, 27, 5117, 33, 4501, 697, 8171, 5187, 13407, 4573, 12624, 1244, 2224, 13413, 5278, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import FamilyCenterActivityRow from './FamilyCenterActivityRow.tsx'; /* Metro dependency 13413 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
import * as UseFamilyCenterActivitiesModule from '../hooks/useFamilyCenterActivities.tsx'; /* Metro dependency 13407 */
function _fun102057(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:6, offset: 0x02229cc4, size: 505 bytes, params: 8, frame: 24
var object2;
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 */;
let value = ReactNativeModule;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.View;
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
@@ -17,88 +26,125 @@ function _fun102057(global, require, importDefault, importAll, module, exports,
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
object2 = {};
object = {};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.header = {marginBottom: PX_4};
object.header = {marginBottom: PX_4};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.description = {marginBottom: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
object.description = {marginBottom: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object3 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
object3.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const object4 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
object4.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object3.backgroundColor = BACKGROUND_MOD_SUBTLE;
object3.width = '60%';
object4.backgroundColor = BACKGROUND_MOD_SUBTLE;
object4.width = '60%';
const env0_12 = Reflect.apply(createStyles, value, [{container: {display: 'flex'},
loadMoreContainer: {'display': 'flex', 'flexDirection': 'row', 'flex': 1, 'alignItems': 'center',
'justifyContent': 'center', 'width': '100%'}, loadMore: object3, loadMoreButton: {paddingVertical: 4}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivitySection.tsx');
'justifyContent': 'center', 'width': '100%'}, loadMore: object4, loadMoreButton: {paddingVertical: 4}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivitySection.tsx');
exports.default = FamilyCenterActivitySection;
}
function FamilyCenterActivitySectionHeader({displayType}) { // fn#102058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:374, offset: 0x02229ebd, size: 385 bytes, params: 2, frame: 23
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const styles = useStyles();
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value5 = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityTypeTextConfigs().get(displayType);
const value6 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useActionsForDisplayType(displayType);
const value7 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useFormattedTotalForDisplayType(displayType);
const PURCHASES = TeenActionDisplayType.PURCHASES;
const r12 = value5?.sectionHeader(displayType !== PURCHASES ? value6.length : value7 !== null ? value7 : value6.length);
const r9 = value5?.sectionDescription === undefined ? null : value5?.sectionDescription(value3 != null && value3);
return (
<View>
<Text variant="text-sm/semibold" style={styles.header}>
{r12}
</Text>
{r9 === null ? null : <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{r9}</Text>}
</View>
);
}
function FamilyCenterActivitySection({displayType}) { // fn#102059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:1523, offset: 0x0222a03e, size: 655 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useActionsForDisplayType(displayType);
const value3 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useActionTotalsForDisplayType(displayType);
const {loadMore,
isMoreLoading} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({});
const binding = env0_4;
const useState = binding.useState;
const value6 = env0_3(Reflect.apply(useState, binding, [FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS]), 2);
let property = value6[0];
const env0_2 = value6[1];
const value7 = value2.slice(0, property);
const value8 = binding.useCallback(_fun102060, [loadMore, displayType]);
if (value2.length === 0) {
return null;
function FamilyCenterActivitySectionHeader({displayType}) { // fn#102058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:374, offset: 0x02229ebd, size: 385 bytes, params: 2, frame: 23
const Text = (TextModule).Text;
const styles = useStyles();
const value3 = (UseIsInAdultAgeGroup)();
const value5 = (FamilyCenterUtilsModule).getActivityTypeTextConfigs().get(displayType);
const value6 = (UseFamilyCenterActivitiesModule).useActionsForDisplayType(displayType);
const value7 = (UseFamilyCenterActivitiesModule).useFormattedTotalForDisplayType(displayType);
const PURCHASES = TeenActionDisplayType.PURCHASES;
const r12 = value5?.sectionHeader(displayType !== PURCHASES ? value6.length : value7 !== null ? value7 : value6.length);
const r9 = value5?.sectionDescription === undefined ? null : value5?.sectionDescription(value3 != null && value3);
return (
<View>
<Text variant="text-sm/semibold" style={styles.header}>
{r12}
</Text>
{
r9 === null
? null
: (
<Text
variant="text-sm/medium"
color="text-muted"
style={styles.description}
>
{r9}
</Text>
)
}
</View>
);
}
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7dMmJY'];
const Math = global.Math;
const value10 = Reflect.apply(formatToPlainString, intl, [property, {pageSize: Math.min(value3 - value7.length,
FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS)}]);
const items2 = [<FamilyCenterActivitySectionHeader displayType={displayType} />];
items2[1] = value7.map(_fun102062);
items2[2] = value7.length < value3 ? <View style={styles.loadMoreContainer}>{isMoreLoading ? <View style={styles.loadMore}><ActivityIndicator style={styles.loadMoreButton} animating color="#fff" size="small" /></View> : ((PressableOpacity) => <PressableOpacity style={styles.loadMore} accessibilityLabel={value10} accessibilityRole="button" onPress={value8}>{((Text) => <Text style={styles.loadMoreButton} variant="text-xs/semibold" color="always-white">{value10}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View> : null;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun102060() { // fn#102060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:1808, offset: 0x0222a2cd, size: 38 bytes, params: 1, frame: 12
env0_2(function(a0) {
return a0 + FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS;
});
loadMore(displayType);
}
function FamilyCenterActivitySection({displayType}) { // fn#102059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:1523, offset: 0x0222a03e, size: 655 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = (UseFamilyCenterActivitiesModule).useActionsForDisplayType(displayType);
const value3 = (UseFamilyCenterActivitiesModule).useActionTotalsForDisplayType(displayType);
const {loadMore,
isMoreLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({});
const useState = ReactModule.useState;
const value6 = Module00057(Reflect.apply(useState, ReactModule, [FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS]), 2);
let property = value6[0];
const env0_2 = value6[1];
const value7 = value2.slice(0, property);
const value8 = ReactModule.useCallback(_fun102060, [loadMore, displayType]);
if (value2.length === 0) {
return null;
}
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7dMmJY'];
const Math = global.Math;
const value10 = Reflect.apply(formatToPlainString, intl, [property, {pageSize: Math.min(value3 - value7.length,
FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS)}]);
const items2 = [
<FamilyCenterActivitySectionHeader displayType={displayType} />,
];
items2[1] = value7.map(_fun102062);
items2[2] = (
value7.length < value3
? (
<View style={styles.loadMoreContainer}>
{
isMoreLoading
? (
<View style={styles.loadMore}>
<ActivityIndicator
style={styles.loadMoreButton}
animating
color="#fff"
size="small"
/>
</View>
)
: ((PressableOpacity) => <PressableOpacity style={styles.loadMore} accessibilityLabel={value10} accessibilityRole="button" onPress={value8}>{((Text) => <Text style={styles.loadMoreButton} variant="text-xs/semibold" color="always-white">{value10}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)
}
</View>
)
: null
);
return (
<View style={styles.container}>
{items2}
</View>
);
function _fun102060() { // fn#102060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:1808, offset: 0x0222a2cd, size: 38 bytes, params: 1, frame: 12
env0_2(function(a0) {
return a0 + FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS;
});
loadMore(displayType);
}
function _fun102062(a0) { // fn#102062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:2061, offset: 0x0222a303, size: 53 bytes, params: 2, frame: 16
const value = environment.__proto__;
return ((Component) => <Component action={a0} key={a0.event_id} />)(FamilyCenterActivityRow);
}
}
function _fun102062(a0) { // fn#102062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13602:2061, offset: 0x0222a303, size: 53 bytes, params: 2, frame: 16
const value = environment.__proto__;
return ((Component) => <Component action={a0} key={a0.event_id} />)(importDefault(13413) /* metro dependency 13413: FamilyCenterActivityRow */);
}
global.__d(_fun102057, 13412, [57, 31, 27, 5117, 33, 4501, 697, 8171, 5187, 13407, 4573, 12624, 1244, 2224, 13413,
5278,
2]) /* metro module 13412, dependencies: [57, 31, 27, 5117, 33, 4501, 697, 8171, 5187, 13407, 4573, 12624, 1244, 2224, 13413, 5278, 2] */;
@@ -1,43 +1,51 @@
/* Metro module 13408; source: modules/parent_tools/native/FamilyCenterActivityTotal.tsx; dependencies: [31, 27, 33, 4501, 697, 13407, 5187, 4573, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseFamilyCenterActivitiesModule from '../hooks/useFamilyCenterActivities.tsx'; /* Metro dependency 13407 */
function _fun102038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13598:6, offset: 0x02228d8a, size: 291 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'display': 'flex', 'backgroundColor': null, 'padding': 12, 'justifyContent': 'center',
const object2 = {'display': 'flex', 'backgroundColor': null, 'padding': 12, 'justifyContent': 'center',
'alignItems': 'center'};
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const SHADOW_LEDGE = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LEDGE;
copyDataProperties(object, SHADOW_LEDGE, undefined);
const env0_5 = Reflect.apply(createStyles, value, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityTotal.tsx');
copyDataProperties(object2, SHADOW_LEDGE, undefined);
const env0_5 = Reflect.apply(createStyles, value, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityTotal.tsx');
exports.default = FamilyCenterActivityTotal;
function FamilyCenterActivityTotal({displayType}) { // fn#102039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13598:475, offset: 0x02228ead, size: 313 bytes, params: 2, frame: 24
const styles = useStyles();
const value3 = (UseFamilyCenterActivitiesModule).useActionTotalsForDisplayType(displayType);
const value4 = (UseFamilyCenterActivitiesModule).useFormattedTotalForDisplayType(displayType);
const r13 = value3 > 0 ? 'text-brand' : 'text-muted';
const r8 = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityTypeTextConfigs().get(displayType)?.tooltipHeader();
const Text = (TextModule).Text;
return (
<View style={styles.container}>
<Text variant="heading-xxl/medium" color={r13}>
{value4 ?? 0}
</Text>
<Text variant="text-sm/semibold">
{r8}
</Text>
</View>
);
}
}
function FamilyCenterActivityTotal({displayType}) { // fn#102039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13598:475, offset: 0x02228ead, size: 313 bytes, params: 2, frame: 24
const styles = useStyles();
const value3 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useActionTotalsForDisplayType(displayType);
const value4 = (require(13407) /* metro dependency 13407: useFamilyCenterActivities */).useFormattedTotalForDisplayType(displayType);
const r13 = value3 > 0 ? 'text-brand' : 'text-muted';
const r8 = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityTypeTextConfigs().get(displayType)?.tooltipHeader();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.container}>
<Text variant="heading-xxl/medium" color={r13}>
{value4 ?? 0}
</Text>
<Text variant="text-sm/semibold">
{r8}
</Text>
</View>
);
}
global.__d(_fun102038, 13408, [31, 27, 33, 4501, 697, 13407, 5187, 4573,
2]) /* metro module 13408, dependencies: [31, 27, 33, 4501, 697, 13407, 5187, 4573, 2] */;
@@ -1,58 +1,82 @@
/* Metro module 13435; source: modules/parent_tools/native/FamilyCenterAvatarPair.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 632, 1305, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun102179(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13625:6, offset: 0x02230d92, size: 299 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'backgroundColor': null, 'borderRadius': null, 'display': 'flex', 'flexDirection': 'row',
const object2 = {'backgroundColor': null, 'borderRadius': null, 'display': 'flex', 'flexDirection': 'row',
'justifyContent': 'space-between', 'alignItems': 'center', 'padding': 8};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_6 = Reflect.apply(createStyles, value, [{avatars: object, icon: {'height': 24, 'width': 24,
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_6 = Reflect.apply(createStyles, value, [{avatars: object2, icon: {'height': 24, 'width': 24,
'marginHorizontal': 16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterAvatarPair.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterAvatarPair.tsx');
exports.default = FamilyCenterAvatarPair;
}
function FamilyCenterAvatarPair({otherUser, iconSrc, iconStyles}) { // fn#102180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13625:520, offset: 0x02230ebd, size: 378 bytes, params: 2, frame: 26
var r0;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
var LARGE_48;
var avatarDecoration;
var items2;
var value;
const styles = useStyles();
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
if (currentUser === undefined) {
r0 = null;
} else if (otherUser === undefined) {
r0 = null;
} else {
var viewBindingProps = {style: styles.avatars};
LARGE_48 = AvatarSizes.LARGE_48;
avatarDecoration = currentUser.avatarDecoration;
value = <Avatar size={LARGE_48} user={currentUser} guildId={undefined} avatarDecoration={avatarDecoration} />;
items2 = [value];
items2[1] = ((Icon) => <Icon style={[styles.icon,
iconStyles]} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.EXTRA_SMALL} source={iconSrc} />)((require(1305) /* metro dependency 1305: native */).Icon);
LARGE_48 = AvatarSizes.LARGE_48;
avatarDecoration = otherUser.avatarDecoration;
items2[2] = <Avatar size={LARGE_48} user={otherUser} guildId={undefined} avatarDecoration={avatarDecoration} />;
value = <View {...viewBindingProps}>{items2}</View>;
r0 = value;
function FamilyCenterAvatarPair({otherUser, iconSrc, iconStyles}) { // fn#102180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13625:520, offset: 0x02230ebd, size: 378 bytes, params: 2, frame: 26
var r0;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
var LARGE_48;
var avatarDecoration;
var items2;
var value;
const styles = useStyles();
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
function() {
return UserStore.getCurrentUser();
});
if (currentUser === undefined) {
r0 = null;
} else if (otherUser === undefined) {
r0 = null;
} else {
var viewBindingProps = {style: styles.avatars};
LARGE_48 = AvatarSizes.LARGE_48;
avatarDecoration = currentUser.avatarDecoration;
value = (
<Avatar
size={LARGE_48}
user={currentUser}
guildId={undefined}
avatarDecoration={avatarDecoration}
/>
);
items2 = [value];
items2[1] = ((Icon) => <Icon style={[styles.icon,
iconStyles]} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.EXTRA_SMALL} source={iconSrc} />)((require(1305) /* metro dependency 1305: native */).Icon);
LARGE_48 = AvatarSizes.LARGE_48;
avatarDecoration = otherUser.avatarDecoration;
items2[2] = (
<Avatar
size={LARGE_48}
user={otherUser}
guildId={undefined}
avatarDecoration={avatarDecoration}
/>
);
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun102179, 13435, [31, 27, 1878, 33, 4501, 697, 632, 1305,
2]) /* metro module 13435, dependencies: [31, 27, 1878, 33, 4501, 697, 632, 1305, 2] */;
@@ -1,136 +1,160 @@
/* Metro module 13393; source: modules/parent_tools/native/FamilyCenterBannerButton.tsx; dependencies: [31, 27, 5117, 661, 4661, 33, 8170, 1244, 2224, 5080, 13394, 1962, 683, 1471, 12620, 1581, 4662, 12642, 4501, 4578, 13395, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NativePermissionConstantsModule from '../../native_permissions/NativePermissionConstants.tsx'; /* Metro dependency 4661 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as QrCodeIconModule from '../../../design/components/Icon/native/redesign/generated/QrCodeIcon.tsx'; /* Metro dependency 13395 */
function _fun101960(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:6, offset: 0x0222558e, size: 331 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = FamilyCenterBannerButton;
const FamilyCenterBannerButton2 = FamilyCenterBannerButton;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_4 = familyCenterConstantsModule.FAMILY_CENTER_LINK_REQUEST_REGEX;
const env0_5 = familyCenterConstantsModule.FamilyCenterAction;
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_7 = (require(4661) /* metro dependency 4661: NativePermissionConstants */).NativePermissionTypes;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({button: {'height': 50,
ReactModule;
const env0_9 = (CreateStylesModule).createStyles({button: {'height': 50,
'width': '100%', 'marginTop': 16}, art: {'width': 18, 'height': 18, 'marginRight': 6}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterBannerButton.tsx');
exports.default = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterBannerButton.tsx');
exports.default = FamilyCenterBannerButton2;
exports.FamilyCenterTeenQRCodeButton = FamilyCenterTeenQRCodeButton;
exports.FamilyCenterParentQRCodeButton = FamilyCenterParentQRCodeButton;
}
function FamilyCenterBannerButton({onPress, text, loading}) { // fn#101961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:375, offset: 0x022256d9, size: 193 bytes, params: 2, frame: 23
const styles = useStyles();
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const QrCodeIcon = (require(13395) /* metro dependency 13395: QrCodeIcon */).QrCodeIcon;
return (
<View style={styles.button}>
<Button
grow
shrink
size="md"
variant="primary"
text={text}
onPress={onPress}
loading={loading}
icon={<QrCodeIcon style={styles.art} size="custom" color="white" />}
iconPosition="start"
/>
</View>
);
}
function FamilyCenterTeenQRCodeButton() { // fn#101962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:829, offset: 0x0222579a, size: 126 bytes, params: 1, frame: 17
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasMaxConnections();
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return value2 ? null : <FamilyCenterBannerButton text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['8SLtqb'])} onPress={function() {
importDefault(dependencyMap[9]).pushLazy(require(dependencyMap[11])(dependencyMap[10], dependencyMap.paths));
importDefault(dependencyMap[12]).track(AnalyticEvents.FAMILY_CENTER_ACTION,
{action: FamilyCenterAction.ShowQRCodeModal});
}} />;
}
function FamilyCenterParentQRCodeButton() { // fn#101964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1154, offset: 0x02225891, size: 147 bytes, params: 1, frame: 19
const useUserLinksModule = require(8170) /* metro dependency 8170: useUserLinks */;
const useHasMaxConnections = useUserLinksModule.useHasMaxConnections;
if (Reflect.apply(useHasMaxConnections, useUserLinksModule, [])) {
return null;
function FamilyCenterBannerButton({onPress, text, loading}) { // fn#101961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:375, offset: 0x022256d9, size: 193 bytes, params: 2, frame: 23
const styles = useStyles();
const Button = (ButtonNativeModule).Button;
const QrCodeIcon = (QrCodeIconModule).QrCodeIcon;
return (
<View style={styles.button}>
<Button
grow
shrink
size="md"
variant="primary"
text={text}
onPress={onPress}
loading={loading}
icon={<QrCodeIcon
style={styles.art}
size="custom"
color="white"
/>}
iconPosition="start"
/>
</View>
);
}
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<FamilyCenterBannerButton
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).z4a9HP)}
onPress={onPress_101966}
/>
);
}
function handleQrCodeScanSucess(a0) { // fn#101965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1269, owner: FamilyCenterParentQRCodeButton.handleQrCodeScanSucess, offset: 0x02225924, size: 198 bytes, params: 2, frame: 18
var r1;
var defaultImport3;
const value = environment.__proto__;
const value2 = undefined;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
const value3 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
const value4 = null;
let r0 = value4 != value3 ? value3 : {};
const hostname = r0.hostname;
const pathname = r0.pathname;
if (value4 != hostname) {
if (value4 != pathname) {
defaultImport3 = importDefault(1471) /* metro dependency 1471: URLUtils */;
if (defaultImport3.isDiscordHostname(hostname)) {
if (value4 === pathname.match(FAMILY_CENTER_LINK_REQUEST_REGEX)) {
r1 = value4;
function FamilyCenterTeenQRCodeButton() { // fn#101962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:829, offset: 0x0222579a, size: 126 bytes, params: 1, frame: 17
const value2 = (UseUserLinksModule).useHasMaxConnections();
const intl = (IndexNativeModule).intl;
return (
value2
? null
: (
<FamilyCenterBannerButton
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['8SLtqb'])}
onPress={function() {
importDefault(dependencyMap[9]).pushLazy(require(dependencyMap[11])(dependencyMap[10], dependencyMap.paths));
importDefault(dependencyMap[12]).track(AnalyticEvents.FAMILY_CENTER_ACTION,
{action: FamilyCenterAction.ShowQRCodeModal});
}}
/>
)
);
}
function FamilyCenterParentQRCodeButton() { // fn#101964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1154, offset: 0x02225891, size: 147 bytes, params: 1, frame: 19
const useHasMaxConnections = UseUserLinksModule.useHasMaxConnections;
if (Reflect.apply(useHasMaxConnections, UseUserLinksModule, [])) {
return null;
}
const intl = (IndexNativeModule).intl;
return (
<FamilyCenterBannerButton
text={intl.string((FamilyCenterMessages).z4a9HP)}
onPress={onPress_101966}
/>
);
function handleQrCodeScanSucess(a0) { // fn#101965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1269, owner: FamilyCenterParentQRCodeButton.handleQrCodeScanSucess, offset: 0x02225924, size: 198 bytes, params: 2, frame: 18
var r1;
var defaultImport3;
const value = environment.__proto__;
const value2 = undefined;
(ModalActionCreators).pop();
const value3 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
const value4 = null;
let r0 = value4 != value3 ? value3 : {};
const hostname = r0.hostname;
const pathname = r0.pathname;
if (value4 != hostname) {
if (value4 != pathname) {
defaultImport3 = importDefault(1471) /* metro dependency 1471: URLUtils */;
if (defaultImport3.isDiscordHostname(hostname)) {
if (value4 === pathname.match(FAMILY_CENTER_LINK_REQUEST_REGEX)) {
r1 = value4;
} else {
(require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */).handleFamilyCenterQRCodeScan(pathname,
'FamilyCenterQRCodeScan');
r1 = value2;
}
r0 = r1;
} else {
r0 = value4;
}
} else {
(require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */).handleFamilyCenterQRCodeScan(pathname,
'FamilyCenterQRCodeScan');
r1 = value2;
r0 = value4;
}
r0 = r1;
} else {
r0 = value4;
}
} else {
r0 = value4;
return r0;
}
} else {
r0 = value4;
}
return r0;
}
function FamilyCenterParentQRCodeButtonOnPress() { // fn#101966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1601, owner: FamilyCenterParentQRCodeButton.onPress, offset: 0x022259ea, size: 161 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
const ScanQRCodeButton = FamilyCenterAction.ScanQRCodeButton;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION, {action: ScanQRCodeButton}]);
const r3 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest() ? NativePermissionTypes.HEADSET_CAMERA : NativePermissionTypes.CAMERA;
value = importDefault(4662) /* metro dependency 4662: NativePermissionUtils */;
value = value.requestPermission(r3);
value.then(_fun101967);
}
function FamilyCenterParentQRCodeButtonOnPress() { // fn#101966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1601, owner: FamilyCenterParentQRCodeButton.onPress, offset: 0x022259ea, size: 161 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
const ScanQRCodeButton = FamilyCenterAction.ScanQRCodeButton;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION, {action: ScanQRCodeButton}]);
const r3 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest() ? NativePermissionTypes.HEADSET_CAMERA : NativePermissionTypes.CAMERA;
value = importDefault(4662) /* metro dependency 4662: NativePermissionUtils */;
value = value.requestPermission(r3);
value.then(_fun101967);
function _fun101967(a0) { // fn#101967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1764, offset: 0x02225a8b, size: 102 bytes, params: 2, frame: 15
var value;
var defaultImport;
var pushLazy;
var value2;
if (a0) {
value = environment.__proto__.__proto__;
defaultImport = importDefault(dependencyMap[9]);
pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[11]);
value = value(dependencyMap[17], dependencyMap.paths);
value2 = environment.__proto__;
Reflect.apply(pushLazy, defaultImport, [value, {showHelp: false, onScanSuccess: handleQrCodeScanSucess}]);
}
}
}
function _fun101967(a0) { // fn#101967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13583:1764, offset: 0x02225a8b, size: 102 bytes, params: 2, frame: 15
var value;
var defaultImport;
var pushLazy;
var value2;
if (a0) {
value = environment.__proto__.__proto__;
defaultImport = importDefault(dependencyMap[9]);
pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[11]);
value = value(dependencyMap[17], dependencyMap.paths);
value2 = environment.__proto__;
Reflect.apply(pushLazy, defaultImport, [value, {showHelp: false, onScanSuccess: handleQrCodeScanSucess}]);
}
}
global.__d(_fun101960, 13393, [31, 27, 5117, 661, 4661, 33, 8170, 1244, 2224, 5080, 13394, 1962, 683, 1471, 12620,
1581, 4662, 12642, 4501, 4578, 13395,
2]) /* metro module 13393, dependencies: [31, 27, 5117, 661, 4661, 33, 8170, 1244, 2224, 5080, 13394, 1962, 683, 1471, 12620, 1581, 4662, 12642, 4501, 4578, 13395, 2] */;
@@ -1,179 +1,214 @@
/* Metro module 12626; source: modules/parent_tools/native/FamilyCenterDataConfirmation.tsx; dependencies: [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572, 4573, 6231, 6696, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UserPlusIconModule from '../../../design/components/Icon/native/redesign/generated/UserPlusIcon.tsx'; /* Metro dependency 4050 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ForumLockIconModule from '../../../design/components/Icon/native/redesign/generated/ForumLockIcon.tsx'; /* Metro dependency 6696 */
import * as GroupIconModule from '../../../design/components/Icon/native/redesign/generated/GroupIcon.tsx'; /* Metro dependency 6699 */
import * as SettingsIconModule from '../../../design/components/Icon/native/redesign/generated/SettingsIcon.tsx'; /* Metro dependency 7002 */
import * as FlagIconModule from '../../../design/components/Icon/native/redesign/generated/FlagIcon.tsx'; /* Metro dependency 8665 */
import * as ServerIconModule from '../../../design/components/Icon/native/redesign/generated/ServerIcon.tsx'; /* Metro dependency 9390 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
import * as PhoneIconModule from '../../../design/components/Icon/native/redesign/generated/PhoneIcon.tsx'; /* Metro dependency 12628 */
import * as CreditCardIconModule from '../../../design/components/Icon/native/redesign/generated/CreditCardIcon.tsx'; /* Metro dependency 12630 */
function _fun96894(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:6, offset: 0x0216aaff, size: 157 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 value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.Fragment;
const env0_5 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterDataConfirmation.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterDataConfirmation.tsx');
exports.default = FamilyCenterDataConfirmation;
}
function FamilyCenterDataConfirmation({source}) { // fn#96895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:249, offset: 0x0216ab9c, size: 2178 bytes, params: 2, frame: 38
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
var r6;
var Stack2;
let value = source === 'request-modal';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value3 = Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+yrQhd']]);
string = intl.string;
const WGz9Dc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WGz9Dc;
const value4 = Reflect.apply(string, intl, [WGz9Dc]);
let useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const value5 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value3, value4]);
const value7 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['TCzk/e']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['2OqtJJ']));
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
string = intl.string;
const ASf7XN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ASf7XN;
const value9 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [Reflect.apply(string, intl, [ASf7XN]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['82y87X'])]);
const value11 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0QDVFN']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1xBHHV']));
const value12 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['JvJ3P/']);
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const value13 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).l0ChgF);
string = intl.string;
const S2ss5X = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).S2ss5X;
const value14 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value13, Reflect.apply(string, intl, [S2ss5X])]);
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
string = intl.string;
const LDu4Uk = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LDu4Uk;
const value16 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [Reflect.apply(string, intl, [LDu4Uk]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fEgtLV)]);
const value17 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4SCALu']);
const value18 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oYf9P7);
const value20 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['dES/2r']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ep6mdN));
const value22 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['30+sih']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0cuLn1']));
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const value23 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tHTyRh);
string = intl.string;
const TeNlMb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).TeNlMb;
const value24 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value23, Reflect.apply(string, intl, [TeNlMb])]);
const value26 = UseAgeSpecificTextModule.useAgeSpecificText(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).wZejZr),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tdgcf1));
let object = {header: value12, description: value14};
const UserPlusIcon = (UserPlusIconModule).UserPlusIcon;
object.IconComponent = UserPlusIcon;
object.source = source;
const items4 = [object];
object = {header: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['44NEx6']),
description: value16};
const ServerIcon = (ServerIconModule).ServerIcon;
object.IconComponent = ServerIcon;
object.source = source;
items4[1] = object;
object = {header: value17, description: value18};
const GroupIcon = (GroupIconModule).GroupIcon;
object.IconComponent = GroupIcon;
object.source = source;
items4[2] = object;
object = {};
const intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl3.string;
const GNs2ZH = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GNs2ZH;
object.header = Reflect.apply(string, intl3, [GNs2ZH]);
const intl4 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl4.string;
const Ief2xc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Ief2xc;
object.description = Reflect.apply(string, intl4, [Ief2xc]);
const PhoneIcon = (PhoneIconModule).PhoneIcon;
object.IconComponent = PhoneIcon;
object.source = source;
const items2 = [object];
object = {};
const intl5 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl5.string;
const PjM3r5 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).PjM3r5;
object.header = Reflect.apply(string, intl5, [PjM3r5]);
object.description = value20;
const CreditCardIcon = (CreditCardIconModule).CreditCardIcon;
object.IconComponent = CreditCardIcon;
object.source = source;
items2[1] = object;
object = {header: value22, description: value24};
const FlagIcon = (FlagIconModule).FlagIcon;
object.IconComponent = FlagIcon;
object.source = source;
items2[2] = object;
object = {};
const intl6 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl6.string;
const UCuHM8 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).UCuHM8;
object.header = Reflect.apply(string, intl6, [UCuHM8]);
object.description = value26;
const SettingsIcon = (SettingsIconModule).SettingsIcon;
object.IconComponent = SettingsIcon;
object.source = source;
items2[3] = object;
const jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
const items3 = [];
arraySpread(items3, items2, arraySpread(items3, items4, 0, intl), intl);
const fragment = (
<>
{items3.map(_fun96896)}
</>
);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
if (value) {
Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = (
<Text
accessibilityRole="header"
variant="text-sm/semibold"
color="text-muted"
>
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['05xZPR'])}
</Text>
);
value = (
<Stack2 spacing={8}>
{value}
<TableRowGroup hasIcons>
{fragment}
</TableRowGroup>
</Stack2>
);
r6 = value;
} else {
r6 = (
<TableRowGroup title={value5} hasIcons>
{fragment}
</TableRowGroup>
);
}
const object4 = {header: value9, description: value11};
const ForumLockIcon = (ForumLockIconModule).ForumLockIcon;
object4.IconComponent = ForumLockIcon;
object4.source = source;
object4.negative = true;
return (
<Stack spacing={24}>
{r6}
<TableRowGroup title={value7} hasIcons>
{[object4].map(_fun96897)}
</TableRowGroup>
</Stack>
);
function _fun96896({header, description, IconComponent}) { // fn#96896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2189, offset: 0x0216b41e, size: 133 bytes, params: 2, frame: 21
const value = environment.__proto__;
const TableRow = (TableRowNativeModule).TableRow;
const TableRow2 = (TableRowNativeModule).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon variant={result ? 'default' : 'text-status-online'} IconComponent={IconComponent} />}
key={header}
/>
);
}
function _fun96897({header, description, IconComponent, negative}) { // fn#96897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2855, offset: 0x0216b4a3, size: 145 bytes, params: 2, frame: 22
const value = environment.__proto__;
const TableRow = (TableRowNativeModule).TableRow;
const TableRow2 = (TableRowNativeModule).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon
variant={result ? 'default' : negative === true ? 'text-status-dnd' : 'default'}
IconComponent={IconComponent}
/>}
key={header}
/>
);
}
function FamilyCenterDataConfirmation({source}) { // fn#96895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:249, offset: 0x0216ab9c, size: 2178 bytes, params: 2, frame: 38
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var r6;
var Stack2;
let value = source === 'request-modal';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value3 = Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+yrQhd']]);
string = intl.string;
const WGz9Dc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WGz9Dc;
const value4 = Reflect.apply(string, intl, [WGz9Dc]);
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
let useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const value5 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule, [value3, value4]);
const value7 = useAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['TCzk/e']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['2OqtJJ']));
const moduleValue3 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue3.useAgeSpecificText;
string = intl.string;
const ASf7XN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ASf7XN;
const value9 = Reflect.apply(useAgeSpecificText, moduleValue3, [Reflect.apply(string, intl, [ASf7XN]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['82y87X'])]);
const value11 = useAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0QDVFN']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1xBHHV']));
const value12 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['JvJ3P/']);
const moduleValue5 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue5.useAgeSpecificText;
const value13 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).l0ChgF);
string = intl.string;
const S2ss5X = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).S2ss5X;
const value14 = Reflect.apply(useAgeSpecificText, moduleValue5, [value13, Reflect.apply(string, intl, [S2ss5X])]);
const moduleValue6 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue6.useAgeSpecificText;
string = intl.string;
const LDu4Uk = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LDu4Uk;
const value16 = Reflect.apply(useAgeSpecificText, moduleValue6, [Reflect.apply(string, intl, [LDu4Uk]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).fEgtLV)]);
const value17 = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4SCALu']);
const value18 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oYf9P7);
const value20 = useAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['dES/2r']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ep6mdN));
const value22 = useAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['30+sih']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0cuLn1']));
const moduleValue9 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue9.useAgeSpecificText;
const value23 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tHTyRh);
string = intl.string;
const TeNlMb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).TeNlMb;
const value24 = Reflect.apply(useAgeSpecificText, moduleValue9, [value23, Reflect.apply(string, intl, [TeNlMb])]);
const value26 = useAgeSpecificTextModule.useAgeSpecificText(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).wZejZr),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).tdgcf1));
let object2 = {header: value12, description: value14};
const UserPlusIcon = (require(4050) /* metro dependency 4050: UserPlusIcon */).UserPlusIcon;
object2.IconComponent = UserPlusIcon;
object2.source = source;
const items4 = [object2];
object2 = {header: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['44NEx6']),
description: value16};
const ServerIcon = (require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon;
object2.IconComponent = ServerIcon;
object2.source = source;
items4[1] = object2;
object2 = {header: value17, description: value18};
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
object2.IconComponent = GroupIcon;
object2.source = source;
items4[2] = object2;
object2 = {};
const intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl3.string;
const GNs2ZH = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GNs2ZH;
object2.header = Reflect.apply(string, intl3, [GNs2ZH]);
const intl4 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl4.string;
const Ief2xc = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Ief2xc;
object2.description = Reflect.apply(string, intl4, [Ief2xc]);
const PhoneIcon = (require(12628) /* metro dependency 12628: PhoneIcon */).PhoneIcon;
object2.IconComponent = PhoneIcon;
object2.source = source;
const items2 = [object2];
object2 = {};
const intl5 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl5.string;
const PjM3r5 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).PjM3r5;
object2.header = Reflect.apply(string, intl5, [PjM3r5]);
object2.description = value20;
const CreditCardIcon = (require(12630) /* metro dependency 12630: CreditCardIcon */).CreditCardIcon;
object2.IconComponent = CreditCardIcon;
object2.source = source;
items2[1] = object2;
object2 = {header: value22, description: value24};
const FlagIcon = (require(8665) /* metro dependency 8665: FlagIcon */).FlagIcon;
object2.IconComponent = FlagIcon;
object2.source = source;
items2[2] = object2;
object2 = {};
const intl6 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl6.string;
const UCuHM8 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).UCuHM8;
object2.header = Reflect.apply(string, intl6, [UCuHM8]);
object2.description = value26;
const SettingsIcon = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
object2.IconComponent = SettingsIcon;
object2.source = source;
items2[3] = object2;
const jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
const items3 = [];
arraySpread(items3, items2, arraySpread(items3, items4, 0, intl), intl);
const fragment = <>{items3.map(_fun96896)}</>;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
if (value) {
Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = <Text accessibilityRole="header" variant="text-sm/semibold" color="text-muted">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['05xZPR'])}</Text>;
value = <Stack2 spacing={8}>{value}<TableRowGroup hasIcons>{fragment}</TableRowGroup></Stack2>;
r6 = value;
} else {
r6 = <TableRowGroup title={value5} hasIcons>{fragment}</TableRowGroup>;
}
const object3 = {header: value9, description: value11};
const ForumLockIcon = (require(6696) /* metro dependency 6696: ForumLockIcon */).ForumLockIcon;
object3.IconComponent = ForumLockIcon;
object3.source = source;
object3.negative = true;
return (
<Stack spacing={24}>
{r6}
<TableRowGroup title={value7} hasIcons>
{[object3].map(_fun96897)}
</TableRowGroup>
</Stack>
);
}
function _fun96896({header, description, IconComponent}) { // fn#96896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2189, offset: 0x0216b41e, size: 133 bytes, params: 2, frame: 21
const value = environment.__proto__;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon variant={result ? 'default' : 'text-status-online'} IconComponent={IconComponent} />}
key={header}
/>
);
}
function _fun96897({header, description, IconComponent, negative}) { // fn#96897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12816:2855, offset: 0x0216b4a3, size: 145 bytes, params: 2, frame: 22
const value = environment.__proto__;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon variant={result ? 'default' : negative === true ? 'text-status-dnd' : 'default'} IconComponent={IconComponent} />}
key={header}
/>
);
}
global.__d(_fun96894, 12626, [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572,
4573, 6231, 6696,
2]) /* metro module 12626, dependencies: [31, 33, 1244, 2224, 12627, 4050, 9390, 6699, 12628, 12630, 8665, 7002, 6238, 4572, 4573, 6231, 6696, 2] */;
@@ -1,32 +1,47 @@
/* Metro module 13429; source: modules/parent_tools/native/FamilyCenterEmpty.tsx; dependencies: [31, 27, 33, 4501, 13430, 4573, 2] */
import Module13430 from '../../../by-id/module-13430.js'; /* Metro dependency 13430 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun102157(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13619:6, offset: 0x0222fce7, size: 244 bytes, params: 8, frame: 19
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({art: {'marginBottom': 10,
const env0_7 = (CreateStylesModule).createStyles({art: {'marginBottom': 10,
'width': 243}, empty: {'display': 'flex', 'alignItems': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterEmpty.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterEmpty.tsx');
exports.default = FamilyCenterEmpty;
function FamilyCenterEmpty({text}) { // fn#102158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13619:354, offset: 0x0222fddb, size: 169 bytes, params: 2, frame: 22
const styles = useStyles();
const image = (
<Image
source={Module13430}
style={styles.art}
resizeMethod="scale"
/>
);
const Text = (TextModule).Text;
return (
<View style={styles.empty}>
{image}
<Text variant="text-sm/medium" color="text-muted">
{text}
</Text>
</View>
);
}
}
function FamilyCenterEmpty({text}) { // fn#102158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13619:354, offset: 0x0222fddb, size: 169 bytes, params: 2, frame: 22
const styles = useStyles();
const image = <Image source={importDefault(13430) /* metro dependency 13430 */} style={styles.art} resizeMethod="scale" />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.empty}>
{image}
<Text variant="text-sm/medium" color="text-muted">
{text}
</Text>
</View>
);
}
global.__d(_fun102157, 13429, [31, 27, 33, 4501, 13430, 4573,
2]) /* metro module 13429, dependencies: [31, 27, 33, 4501, 13430, 4573, 2] */;
@@ -1,73 +1,86 @@
/* Metro module 13398; source: modules/parent_tools/native/FamilyCenterFeatureRow.tsx; dependencies: [31, 27, 33, 4501, 697, 12627, 1244, 2224, 13399, 13400, 11843, 8999, 9178, 13395, 6231, 6238, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import Module13399 from '../../../by-id/module-13399.js'; /* Metro dependency 13399 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as EyeIconModule from '../../../design/components/Icon/native/redesign/generated/EyeIcon.tsx'; /* Metro dependency 8999 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
import * as QrCodeIconModule from '../../../design/components/Icon/native/redesign/generated/QrCodeIcon.tsx'; /* Metro dependency 13395 */
import * as ChatCheckIconModule from '../../../design/components/Icon/native/redesign/generated/ChatCheckIcon.tsx'; /* Metro dependency 13400 */
function _fun101985(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13588:6, offset: 0x02226699, size: 228 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{tableGroup: {marginTop: 20, marginBottom: PX_24}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterFeatureRow.tsx');
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const PX_24 = (Native).space.PX_24;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{tableGroup: {marginTop: 20, marginBottom: PX_24}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterFeatureRow.tsx');
exports.default = FamilyCenterFeatureRows;
function FamilyCenterFeatureRows() { // fn#101986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13588:317, offset: 0x0222677d, size: 759 bytes, params: 1, frame: 25
const styles = useStyles();
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value3 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule,
[intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).qITXhY),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).bmhCnL)]);
const value5 = UseAgeSpecificTextModule.useAgeSpecificText(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).t7SkFy),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['68zfxD']));
const value7 = UseAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+pi4Yt']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1xPTwE']));
let object = {icon: Module13399};
const ChatCheckIcon = (ChatCheckIconModule).ChatCheckIcon;
object.IconComponent = ChatCheckIcon;
object.header = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['001l3m']);
object.description = value3;
const items2 = [object];
object = {icon: importDefault(11843) /* metro dependency 11843 */};
const EyeIcon = (EyeIconModule).EyeIcon;
object.IconComponent = EyeIcon;
object.header = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).yipAeP);
object.description = value5;
items2[1] = object;
object = {icon: importDefault(9178) /* metro dependency 9178 */};
const QrCodeIcon = (QrCodeIconModule).QrCodeIcon;
object.IconComponent = QrCodeIcon;
object.header = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).hhOuMe);
object.description = value7;
items2[2] = object;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<View style={styles.tableGroup}>
<TableRowGroup
title={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6JkHSg'])}
hasIcons
>
{items2.map(_fun101987)}
</TableRowGroup>
</View>
);
function _fun101987({header, description, icon, IconComponent}) { // fn#101987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13588:1142, offset: 0x02226a74, size: 118 bytes, params: 2, frame: 22
const TableRow = (TableRowNativeModule).TableRow;
const TableRow2 = (TableRowNativeModule).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon source={icon} IconComponent={IconComponent} />}
key={header}
/>
);
}
}
}
function FamilyCenterFeatureRows() { // fn#101986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13588:317, offset: 0x0222677d, size: 759 bytes, params: 1, frame: 25
const styles = useStyles();
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value3 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule,
[intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).qITXhY),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).bmhCnL)]);
const value5 = useAgeSpecificTextModule.useAgeSpecificText(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).t7SkFy),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['68zfxD']));
const value7 = useAgeSpecificTextModule.useAgeSpecificText((require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+pi4Yt']),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1xPTwE']));
let object2 = {icon: importDefault(13399) /* metro dependency 13399 */};
const ChatCheckIcon = (require(13400) /* metro dependency 13400: ChatCheckIcon */).ChatCheckIcon;
object2.IconComponent = ChatCheckIcon;
object2.header = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['001l3m']);
object2.description = value3;
const items2 = [object2];
object2 = {icon: importDefault(11843) /* metro dependency 11843 */};
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
object2.IconComponent = EyeIcon;
object2.header = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).yipAeP);
object2.description = value5;
items2[1] = object2;
object2 = {icon: importDefault(9178) /* metro dependency 9178 */};
const QrCodeIcon = (require(13395) /* metro dependency 13395: QrCodeIcon */).QrCodeIcon;
object2.IconComponent = QrCodeIcon;
object2.header = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).hhOuMe);
object2.description = value7;
items2[2] = object2;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<View style={styles.tableGroup}>
<TableRowGroup
title={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6JkHSg'])}
hasIcons
>
{items2.map(_fun101987)}
</TableRowGroup>
</View>
);
}
function _fun101987({header, description, icon, IconComponent}) { // fn#101987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13588:1142, offset: 0x02226a74, size: 118 bytes, params: 2, frame: 22
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Icon = TableRow2.Icon;
return (
<TableRow
label={header}
subLabel={description}
icon={<Icon source={icon} IconComponent={IconComponent} />}
key={header}
/>
);
}
global.__d(_fun101985, 13398, [31, 27, 33, 4501, 697, 12627, 1244, 2224, 13399, 13400, 11843, 8999, 9178, 13395,
6231, 6238,
2]) /* metro module 13398, dependencies: [31, 27, 33, 4501, 697, 12627, 1244, 2224, 13399, 13400, 11843, 8999, 9178, 13395, 6231, 6238, 2] */;
@@ -1,32 +1,36 @@
/* Metro module 13431; source: modules/parent_tools/native/FamilyCenterLinkRow.tsx; dependencies: [31, 27, 5117, 33, 4501, 13432, 13433, 2] */
import FamilyCenterLinkWrapper from './FamilyCenterLinkWrapper.tsx'; /* Metro dependency 13432 */
import FamilyCenterRequestorDetails from './FamilyCenterRequestorDetails.tsx'; /* Metro dependency 13433 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun102160(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13621:6, offset: 0x0222feca, size: 233 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).UserLinkStatus;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({actionContainer: {'flexDirection': 'row',
ReactModule;
const env0_6 = (CreateStylesModule).createStyles({actionContainer: {'flexDirection': 'row',
'alignItems': 'center', 'justifyContent': 'flex-end', 'height': '100%'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkRow.tsx');
exports.default = FamilyCenterLinkRow;
function FamilyCenterLinkRow({otherUser, actions}) { // fn#102161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13621:390, offset: 0x0222ffb3, size: 156 bytes, params: 2, frame: 21
const styles = useStyles();
const id = otherUser.id;
const PENDING = UserLinkStatus.PENDING;
return (
<FamilyCenterLinkWrapper userId={id}>
<FamilyCenterRequestorDetails otherUser={otherUser} status={PENDING} />
<View style={styles.actionContainer}>
{actions}
</View>
</FamilyCenterLinkWrapper>
);
}
}
function FamilyCenterLinkRow({otherUser, actions}) { // fn#102161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13621:390, offset: 0x0222ffb3, size: 156 bytes, params: 2, frame: 21
const styles = useStyles();
const FamilyCenterLinkWrapper = importDefault(13432) /* metro dependency 13432: FamilyCenterLinkWrapper */;
const id = otherUser.id;
const FamilyCenterRequestorDetails = importDefault(13433) /* metro dependency 13433: FamilyCenterRequestorDetails */;
const PENDING = UserLinkStatus.PENDING;
return (
<FamilyCenterLinkWrapper userId={id}>
<FamilyCenterRequestorDetails otherUser={otherUser} status={PENDING} />
<View style={styles.actionContainer}>
{actions}
</View>
</FamilyCenterLinkWrapper>
);
}
global.__d(_fun102160, 13431, [31, 27, 5117, 33, 4501, 13432, 13433,
2]) /* metro module 13431, dependencies: [31, 27, 5117, 33, 4501, 13432, 13433, 2] */;
@@ -1,40 +1,47 @@
/* Metro module 13432; source: modules/parent_tools/native/FamilyCenterLinkWrapper.tsx; dependencies: [31, 33, 4501, 697, 6771, 5278, 8743, 2] */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import ShowUserProfileActionSheet from '../../user_profile/native/showUserProfileActionSheet.tsx'; /* Metro dependency 8743 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun102162(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13622:6, offset: 0x0223004f, size: 236 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'paddingTop': 14};
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'paddingTop': 14};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.paddingBottom = PX_12;
object2.paddingBottom = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.paddingHorizontal = PX_12;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkWrapper.tsx');
object2.paddingHorizontal = PX_12;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkWrapper.tsx');
exports.default = FamilyCenterLinkRowWrapper;
}
function FamilyCenterLinkRowWrapper({userId, children}) { // fn#102163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13622:396, offset: 0x0223013b, size: 136 bytes, params: 2, frame: 18
const styles = useStyles();
const env0_1 = (UseAnalyticsLocations)().analyticsLocations;
if (userId === undefined) {
return null;
} else {
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
return (
<PressableOpacity style={styles.container} onPress={onPress_102164}>
{children}
</PressableOpacity>
);
}
function FamilyCenterLinkRowWrapperOnPress() { // fn#102164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13622:573, owner: FamilyCenterLinkRowWrapper.onPress, offset: 0x022301c3, size: 68 bytes, params: 1, frame: 13
const value = environment.__proto__;
(ShowUserProfileActionSheet)({'userId': null, 'disableCalls': true,
'disableMessage': true, userId: userId, sourceAnalyticsLocations: analyticsLocations});
}
function FamilyCenterLinkRowWrapper({userId, children}) { // fn#102163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13622:396, offset: 0x0223013b, size: 136 bytes, params: 2, frame: 18
const styles = useStyles();
const env0_1 = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
if (userId === undefined) {
return null;
} else {
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
return (
<PressableOpacity style={styles.container} onPress={onPress_102164}>
{children}
</PressableOpacity>
);
}
}
function FamilyCenterLinkRowWrapperOnPress() { // fn#102164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13622:573, owner: FamilyCenterLinkRowWrapper.onPress, offset: 0x022301c3, size: 68 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({'userId': null, 'disableCalls': true,
'disableMessage': true, userId: userId, sourceAnalyticsLocations: analyticsLocations});
}
global.__d(_fun102162, 13432, [31, 33, 4501, 697, 6771, 5278, 8743,
2]) /* metro module 13432, dependencies: [31, 33, 4501, 697, 6771, 5278, 8743, 2] */;
@@ -1,11 +1,22 @@
/* Metro module 13426; source: modules/parent_tools/native/FamilyCenterLinkingBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 8171, 12627, 1244, 2224, 13427, 4573, 6766, 13393, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import Module13427 from '../../../by-id/module-13427.js'; /* Metro dependency 13427 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
import * as FamilyCenterBannerButtonModule from './FamilyCenterBannerButton.tsx'; /* Metro dependency 13393 */
function _fun102146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:6, offset: 0x0222ef21, size: 667 bytes, params: 8, frame: 24
var object3;
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(33) /* metro dependency 33 */;
@@ -13,136 +24,158 @@ function _fun102146(global, require, importDefault, importAll, module, exports,
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
object3 = {};
const object4 = {'backgroundColor': null, 'marginVertical': null, 'paddingTop': 0, 'alignItems': 'center',
object = {};
const object2 = {'backgroundColor': null, 'marginVertical': null, 'paddingTop': 0, 'alignItems': 'center',
'borderRadius': null, 'elevation': 2, 'overflow': 'hidden'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object2.backgroundColor = BACKGROUND_BASE_LOW;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.marginVertical = PX_16;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.container = object4;
object2.marginVertical = PX_16;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.container = object2;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.content = {padding: PX_16};
object.content = {padding: PX_16};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.art = {'width': '100%', 'height': 175, marginBottom: PX_12};
object.art = {'width': '100%', 'height': 175, marginBottom: PX_12};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.header = {marginBottom: PX_8};
const env0_7 = Reflect.apply(createStyles, value, [object3]);
object.header = {marginBottom: PX_8};
const env0_7 = Reflect.apply(createStyles, value, [object]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object5 = {};
const object6 = {};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.marginTop = PX_8;
object6.marginTop = PX_8;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object5.width = '100%';
const env0_8 = Reflect.apply(createStyles, value, [{container: object5}]);
object6.paddingHorizontal = PX_16;
object6.width = '100%';
const env0_8 = Reflect.apply(createStyles, value, [{container: object6}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object7 = {'display': 'flex', 'flexDirection': 'column', 'justifyContent': 'center', 'alignItems': 'center',
const object8 = {'display': 'flex', 'flexDirection': 'column', 'justifyContent': 'center', 'alignItems': 'center',
'overflow': 'hidden', 'width': 32, 'height': 32};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object7.backgroundColor = BACKGROUND_MOD_NORMAL;
object8.backgroundColor = BACKGROUND_MOD_NORMAL;
const env0_9 = Reflect.apply(createStyles, value, [{row: {'display': 'flex', 'flexDirection': 'row',
'alignItems': 'flex-start'}, gap: {marginBottom: 12}, circle: object7, rowContent: {'marginLeft': 12,
'alignItems': 'flex-start'}, gap: {marginBottom: 12}, circle: object8, rowContent: {'marginLeft': 12,
'flex': 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkingBanner.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterLinkingBanner.tsx');
exports.default = FamilyCenterLinkingBanner;
}
function FamilyCenterLinkingBannerParentContent() { // fn#102147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:641, offset: 0x0222f1bc, size: 450 bytes, params: 1, frame: 26
const styles = useStyles();
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<FamilyCenterLinkingInstructionsRow index={1} header={Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7xxAni']])} description={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1M9So2'])} />];
const familyCenterLinkingInstructionsRowBindingProps = {index: 2,
header: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['AXgx+a'])};
string = intl.string;
const GzMFnb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GzMFnb;
familyCenterLinkingInstructionsRowBindingProps.description = Reflect.apply(string, intl, [GzMFnb]);
items2[1] = <FamilyCenterLinkingInstructionsRow {...familyCenterLinkingInstructionsRowBindingProps} />;
string = intl.string;
const MZn1tG = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).MZn1tG;
items2[2] = <FamilyCenterLinkingInstructionsRow index={3} header={Reflect.apply(string, intl,
[MZn1tG])} description={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['8rLBxD'])} isLast />;
const FamilyCenterParentQRCodeButton = (require(13393) /* metro dependency 13393: FamilyCenterBannerButton */).FamilyCenterParentQRCodeButton;
items2[3] = <FamilyCenterParentQRCodeButton />;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function FamilyCenterLinkingBannerTeenContent() { // fn#102148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:1229, offset: 0x0222f37e, size: 61 bytes, params: 1, frame: 15
const FamilyCenterTeenQRCodeButton = (require(13393) /* metro dependency 13393: FamilyCenterBannerButton */).FamilyCenterTeenQRCodeButton;
return (
<View>
<FamilyCenterTeenQRCodeButton />
</View>
);
}
function FamilyCenterLinkingInstructionsRow({header, description, index, isLast}) { // fn#102149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:1709, offset: 0x0222f3bb, size: 318 bytes, params: 2, frame: 27
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.row}>
<View style={styles.circle}>
<Text variant="heading-md/semibold" color="text-brand">
{index}
</Text>
function FamilyCenterLinkingBannerParentContent() { // fn#102147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:641, offset: 0x0222f1bc, size: 450 bytes, params: 1, frame: 26
const styles = useStyles();
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [
<FamilyCenterLinkingInstructionsRow
index={1}
header={Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7xxAni']])}
description={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1M9So2'])}
/>,
];
const familyCenterLinkingInstructionsRowBindingProps = {index: 2,
header: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['AXgx+a'])};
string = intl.string;
const GzMFnb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GzMFnb;
familyCenterLinkingInstructionsRowBindingProps.description = Reflect.apply(string, intl, [GzMFnb]);
items2[1] = <FamilyCenterLinkingInstructionsRow {...familyCenterLinkingInstructionsRowBindingProps} />;
string = intl.string;
const MZn1tG = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).MZn1tG;
items2[2] = (
<FamilyCenterLinkingInstructionsRow
index={3}
header={Reflect.apply(string, intl, [MZn1tG])}
description={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['8rLBxD'])}
isLast
/>
);
const FamilyCenterParentQRCodeButton = (FamilyCenterBannerButtonModule).FamilyCenterParentQRCodeButton;
items2[3] = <FamilyCenterParentQRCodeButton />;
return (
<View style={styles.container}>
{items2}
</View>
<View style={[styles.rowContent, isLast ? null : styles.gap]}>
<Text variant="heading-sm/bold">
{header}
</Text>
<Text variant="text-sm/medium" color="text-muted">
{description}
</Text>
);
}
function FamilyCenterLinkingBannerTeenContent() { // fn#102148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:1229, offset: 0x0222f37e, size: 61 bytes, params: 1, frame: 15
const FamilyCenterTeenQRCodeButton = (FamilyCenterBannerButtonModule).FamilyCenterTeenQRCodeButton;
return (
<View>
<FamilyCenterTeenQRCodeButton />
</View>
</View>
);
}
);
}
function FamilyCenterLinkingBanner() { // fn#102150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:2237, offset: 0x0222f4f9, size: 534 bytes, params: 1, frame: 27
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
let useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value3 = Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).zUCWEL]);
string = intl.string;
const B0NPbp = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).B0NPbp;
const value4 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule, [value3, Reflect.apply(string, intl,
[B0NPbp])]);
const moduleValue2 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue2.useAgeSpecificText;
const value5 = intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).yMnoDl,
{link: 'https://support.discord.com/hc/articles/14155060633623'});
string = intl.string;
const JsAEDi = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JsAEDi;
const value6 = Reflect.apply(useAgeSpecificText, moduleValue2, [value5, Reflect.apply(string, intl, [JsAEDi])]);
const image = <Image source={importDefault(13427) /* metro dependency 13427 */} style={styles.art} resizeMethod="resize" />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text style={styles.header} variant="heading-lg/semibold">{value4}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
return (
<View style={styles.container}>
{image}
<View style={styles.content}>
{text}
<TextWithIOSLinkWorkaround variant="text-sm/medium" color="text-muted">
{value6}
</TextWithIOSLinkWorkaround>
function FamilyCenterLinkingInstructionsRow({header, description, index, isLast}) { // fn#102149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:1709, offset: 0x0222f3bb, size: 318 bytes, params: 2, frame: 27
const styles = useStyles();
const Text = (TextModule).Text;
return (
<View style={styles.row}>
<View style={styles.circle}>
<Text variant="heading-md/semibold" color="text-brand">
{index}
</Text>
</View>
<View style={[styles.rowContent, isLast ? null : styles.gap]}>
<Text variant="heading-sm/bold">
{header}
</Text>
<Text variant="text-sm/medium" color="text-muted">
{description}
</Text>
</View>
</View>
{((Component) => <Component />)(value2 ? FamilyCenterLinkingBannerParentContent : FamilyCenterLinkingBannerTeenContent)}
</View>
);
);
}
function FamilyCenterLinkingBanner() { // fn#102150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13616:2237, offset: 0x0222f4f9, size: 534 bytes, params: 1, frame: 27
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
let useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const value3 = Reflect.apply(string, intl,
[(FamilyCenterMessages).zUCWEL]);
string = intl.string;
const B0NPbp = (FamilyCenterMessages).B0NPbp;
const value4 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value3, Reflect.apply(string, intl,
[B0NPbp])]);
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const value5 = intl.format((FamilyCenterMessages).yMnoDl,
{link: 'https://support.discord.com/hc/articles/14155060633623'});
string = intl.string;
const JsAEDi = (FamilyCenterMessages).JsAEDi;
const value6 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value5, Reflect.apply(string, intl, [JsAEDi])]);
const image = (
<Image
source={Module13427}
style={styles.art}
resizeMethod="resize"
/>
);
const Text = (TextModule).Text;
const text = (
<Text style={styles.header} variant="heading-lg/semibold">
{value4}
</Text>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
return (
<View style={styles.container}>
{image}
<View style={styles.content}>
{text}
<TextWithIOSLinkWorkaround variant="text-sm/medium" color="text-muted">
{value6}
</TextWithIOSLinkWorkaround>
</View>
{((Component) => <Component />)(value2 ? FamilyCenterLinkingBannerParentContent : FamilyCenterLinkingBannerTeenContent)}
</View>
);
}
}
global.__d(_fun102146, 13426, [31, 27, 33, 4501, 697, 8171, 12627, 1244, 2224, 13427, 4573, 6766, 13393,
2]) /* metro module 13426, dependencies: [31, 27, 33, 4501, 697, 8171, 12627, 1244, 2224, 13427, 4573, 6766, 13393, 2] */;
@@ -1,132 +1,179 @@
/* Metro module 13438; source: modules/parent_tools/native/FamilyCenterModalAccept.tsx; dependencies: [31, 27, 33, 4501, 697, 5080, 3856, 1244, 12624, 6258, 6259, 13435, 4057, 4573, 2224, 13405, 12626, 10120, 6261, 4578, 5282, 10121, 2] */
import Module04057 from '../../../by-id/module-04057.js'; /* Metro dependency 4057 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import FamilyCenterAvatarPair from './FamilyCenterAvatarPair.tsx'; /* Metro dependency 13435 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
function _fun102190(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:6, offset: 0x022318bb, size: 396 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object4 = {};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.marginTop = PX_16;
object3.marginTop = PX_16;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.marginBottom = PX_4;
object2.headerText = object4;
object3.marginBottom = PX_4;
object.headerText = object3;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.icon = {transform: [{rotate: '45deg'}], tintColor: INTERACTIVE_TEXT_DEFAULT};
object.icon = {transform: [{rotate: '45deg'}], tintColor: INTERACTIVE_TEXT_DEFAULT};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.disclaimer = {marginTop: PX_12};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalAccept.tsx');
object.disclaimer = {marginTop: PX_12};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalAccept.tsx');
exports.default = FamilyCenterModalAccept;
function FamilyCenterModalAcceptScreen({otherUser}) { // fn#102191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:479, offset: 0x02231a47, size: 931 bytes, params: 2, frame: 37
const styles = useStyles();
const {acceptLinkRequest,
isAcceptLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({onSuccess: ReactModule.useCallback(_fun102192,
[]), onError: ReactModule.useCallback(_fun102193, [])});
const value5 = ReactModule.useCallback(function() {
acceptLinkRequest(otherUser.id);
}, [acceptLinkRequest, otherUser.id]);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const items3 = [
((Component) => <Component otherUser={otherUser} iconSrc={Module04057} iconStyles={styles.icon} />)(FamilyCenterAvatarPair),
];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
items3[1] = (
<Text style={styles.headerText} variant="text-lg/bold">
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).rlNJwZ)}
</Text>
);
items3[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const items2 = [
<View style={styles.header}>
{items3}
</View>,
];
items2[1] = ((Component) => <Component source="accept-modal" />)(importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */);
const format = intl.format;
const snlFqR = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).snlFqR;
const username = otherUser.username;
items2[2] = (
<Text
style={styles.disclaimer}
variant="text-xs/normal"
color="text-default"
>
{Reflect.apply(format, intl, [snlFqR, {username: username}])}
</Text>
);
const modalContent = (
<ModalContent>
{items2}
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="primary"
disabled={isAcceptLoading}
loading={isAcceptLoading}
text={(IndexNativeModule).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['wI/jo3'])}
onPress={value5}
/>
<Button
variant="tertiary"
text={intl.string((IndexNativeModule).t['ETE/oC'])}
onPress={(ModalActionCreators).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
function _fun102192() { // fn#102192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:560, offset: 0x02231dea, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function _fun102193() { // fn#102193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:602, offset: 0x02231e0f, size: 85 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
}
function FamilyCenterModalAccept({otherUser}) { // fn#102195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1705, offset: 0x02231e7d, size: 156 bytes, params: 2, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun102197(otherUser);
}, [otherUser]);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="ACCEPT"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun102196() { // fn#102196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1770, offset: 0x02231f19, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102198;
object2.render = _fun102199;
return {ACCEPT: object2};
})(otherUser);
function getScreens_102197(a0) { // fn#102197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1774, offset: 0x02231f32, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_102199;
return {ACCEPT: object2};
function getScreens_102197Render() { // fn#102199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1909, owner: getScreens_102197.render, offset: 0x02231fa4, size: 35 bytes, params: 1, frame: 13
return <FamilyCenterModalAcceptScreen otherUser={env0_0} />;
}
}
}
}
}
function FamilyCenterModalAcceptScreen({otherUser}) { // fn#102191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:479, offset: 0x02231a47, size: 931 bytes, params: 2, frame: 37
const styles = useStyles();
const {acceptLinkRequest,
isAcceptLoading} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: env0_3.useCallback(_fun102192,
[]), onError: env0_3.useCallback(_fun102193, [])});
const value5 = env0_3.useCallback(function() {
acceptLinkRequest(otherUser.id);
}, [acceptLinkRequest, otherUser.id]);
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const items3 = [((Component) => <Component otherUser={otherUser} iconSrc={importDefault(4057) /* metro dependency 4057 */} iconStyles={styles.icon} />)(importDefault(13435) /* metro dependency 13435: FamilyCenterAvatarPair */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items3[1] = <Text style={styles.headerText} variant="text-lg/bold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).rlNJwZ)}</Text>;
items3[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const items2 = [<View style={styles.header}>{items3}</View>];
items2[1] = ((Component) => <Component source="accept-modal" />)(importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */);
const format = intl.format;
const snlFqR = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).snlFqR;
const username = otherUser.username;
items2[2] = <Text style={styles.disclaimer} variant="text-xs/normal" color="text-default">{Reflect.apply(format,
intl, [snlFqR, {username: username}])}</Text>;
const modalContent = <ModalContent>{items2}</ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="primary"
disabled={isAcceptLoading}
loading={isAcceptLoading}
text={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['wI/jo3'])}
onPress={value5}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
}
function FamilyCenterModalAccept({otherUser}) { // fn#102195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1705, offset: 0x02231e7d, size: 156 bytes, params: 2, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun102197(otherUser);
}, [otherUser]);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="ACCEPT"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun102192() { // fn#102192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:560, offset: 0x02231dea, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function _fun102193() { // fn#102193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:602, offset: 0x02231e0f, size: 85 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
function _fun102196() { // fn#102196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1770, offset: 0x02231f19, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102198;
object2.render = _fun102199;
return {ACCEPT: object2};
})(otherUser);
}
function getScreens_102197(a0) { // fn#102197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13628:1774, offset: 0x02231f32, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_102199;
return {ACCEPT: object};
function getScreens_102197HeaderTitle() { // fn#102198, owner: getScreens_102197.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102190, 13438, [31, 27, 33, 4501, 697, 5080, 3856, 1244, 12624, 6258, 6259, 13435, 4057, 4573, 2224,
13405, 12626, 10120, 6261, 4578, 5282, 10121,
2]) /* metro module 13438, dependencies: [31, 27, 33, 4501, 697, 5080, 3856, 1244, 12624, 6258, 6259, 13435, 4057, 4573, 2224, 13405, 12626, 10120, 6261, 4578, 5282, 10121, 2] */;
@@ -1,111 +1,167 @@
/* Metro module 13440; source: modules/parent_tools/native/FamilyCenterModalCancel.tsx; dependencies: [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160, 4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121, 2] */
import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import FamilyCenterAvatarPair from './FamilyCenterAvatarPair.tsx'; /* Metro dependency 13435 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
function _fun102210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:6, offset: 0x022326f3, size: 309 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object4 = {};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.marginTop = PX_16;
object3.marginTop = PX_16;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.marginBottom = PX_4;
object2.headerText = object4;
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalCancel.tsx');
object3.marginBottom = PX_4;
object.headerText = object3;
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalCancel.tsx');
exports.default = FamilyCenterModalCancel;
function FamilyCenterModalCancelScreen({otherUser}) { // fn#102211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:350, offset: 0x02232828, size: 801 bytes, params: 2, frame: 35
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
const {cancelLinkRequest,
isCancelLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({onSuccess: ReactModule.useCallback(_fun102212,
[]), onError: ReactModule.useCallback(_fun102213, [])});
const value6 = ReactModule.useCallback(function() {
cancelLinkRequest(otherUser.id);
}, [cancelLinkRequest, otherUser.id]);
(Module00044)(value2,
'FamilyCenterCancelModal should only be rendered for parents.');
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const items2 = [
((Component) => <Component otherUser={otherUser} iconSrc={Module08160} />)(FamilyCenterAvatarPair),
];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const HynllX = (FamilyCenterMessages).HynllX;
items2[1] = (
<Text style={styles.headerText} variant="text-lg/bold">
{Reflect.apply(string, intl, [HynllX])}
</Text>
);
items2[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const modalContent = (
<ModalContent>
<View style={styles.header}>
{items2}
</View>
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={isCancelLoading}
loading={isCancelLoading}
text={intl.string((FamilyCenterMessages).mK40bk)}
onPress={value6}
/>
<Button
variant="tertiary"
text={intl.string((FamilyCenterMessages).czincX)}
onPress={(ModalActionCreators).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
function _fun102212() { // fn#102212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:443, offset: 0x020acfc4, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function _fun102213() { // fn#102213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:485, offset: 0x02232577, size: 85 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
}
function FamilyCenterModalCancel({otherUser}) { // fn#102215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1453, offset: 0x02232b49, size: 156 bytes, params: 2, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun102217(otherUser);
}, [otherUser]);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="CANCEL"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun102216() { // fn#102216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1518, offset: 0x02232be5, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102218;
object2.render = _fun102219;
return {CANCEL: object2};
})(otherUser);
function getScreens_102217(a0) { // fn#102217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1522, offset: 0x02232bfe, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_102219;
return {CANCEL: object2};
function getScreens_102217Render() { // fn#102219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1657, owner: getScreens_102217.render, offset: 0x02231fa4, size: 35 bytes, params: 1, frame: 13
return <FamilyCenterModalCancelScreen otherUser={env0_0} />;
}
}
}
}
}
function FamilyCenterModalCancelScreen({otherUser}) { // fn#102211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:350, offset: 0x02232828, size: 801 bytes, params: 2, frame: 35
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const {cancelLinkRequest,
isCancelLoading} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: env0_3.useCallback(_fun102212,
[]), onError: env0_3.useCallback(_fun102213, [])});
const value6 = env0_3.useCallback(function() {
cancelLinkRequest(otherUser.id);
}, [cancelLinkRequest, otherUser.id]);
(importDefault(44) /* metro dependency 44 */)(value2,
'FamilyCenterCancelModal should only be rendered for parents.');
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const items2 = [((Component) => <Component otherUser={otherUser} iconSrc={importDefault(8160) /* metro dependency 8160 */} />)(importDefault(13435) /* metro dependency 13435: FamilyCenterAvatarPair */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const HynllX = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).HynllX;
items2[1] = <Text style={styles.headerText} variant="text-lg/bold">{Reflect.apply(string, intl, [HynllX])}</Text>;
items2[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const modalContent = <ModalContent><View style={styles.header}>{items2}</View></ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={isCancelLoading}
loading={isCancelLoading}
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).mK40bk)}
onPress={value6}
/>
<Button
variant="tertiary"
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).czincX)}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
}
function FamilyCenterModalCancel({otherUser}) { // fn#102215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1453, offset: 0x02232b49, size: 156 bytes, params: 2, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun102217(otherUser);
}, [otherUser]);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="CANCEL"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun102216() { // fn#102216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1518, offset: 0x02232be5, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102218;
object2.render = _fun102219;
return {CANCEL: object2};
})(otherUser);
}
function getScreens_102217(a0) { // fn#102217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13630:1522, offset: 0x02232bfe, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_102219;
return {CANCEL: object};
function getScreens_102217HeaderTitle() { // fn#102218, owner: getScreens_102217.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102210, 13440, [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160,
4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121,
2]) /* metro module 13440, dependencies: [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160, 4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121, 2] */;
@@ -1,222 +1,269 @@
/* Metro module 13404; source: modules/parent_tools/native/FamilyCenterModalDataTooltip.tsx; dependencies: [31, 27, 5117, 33, 6682, 12628, 3858, 12324, 6684, 12630, 4076, 10112, 4501, 697, 4573, 12627, 1244, 2224, 8171, 5187, 6258, 6259, 10120, 4578, 5080, 5282, 10121, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as FriendsIconModule from '../../../design/components/Icon/native/redesign/generated/FriendsIcon.tsx'; /* Metro dependency 3858 */
import * as ClockIconModule from '../../../design/components/Icon/native/redesign/generated/ClockIcon.tsx'; /* Metro dependency 4076 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ChatIconModule from '../../../design/components/Icon/native/redesign/generated/ChatIcon.tsx'; /* Metro dependency 6682 */
import * as ThreadIconModule from '../../../design/components/Icon/native/redesign/generated/ThreadIcon.tsx'; /* Metro dependency 6684 */
import * as GiftIconModule from '../../../design/components/Icon/native/redesign/generated/GiftIcon.tsx'; /* Metro dependency 10112 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as ServerGridIconModule from '../../../design/components/Icon/native/redesign/generated/ServerGridIcon.tsx'; /* Metro dependency 12324 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
import * as PhoneIconModule from '../../../design/components/Icon/native/redesign/generated/PhoneIcon.tsx'; /* Metro dependency 12628 */
import * as CreditCardIconModule from '../../../design/components/Icon/native/redesign/generated/CreditCardIcon.tsx'; /* Metro dependency 12630 */
function _fun102011(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:6, offset: 0x02227e6d, size: 886 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const TeenActionDisplayType = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).TeenActionDisplayType;
let value = require(33) /* metro dependency 33 */;
const TeenActionDisplayType = (FamilyCenterConstantsModule).TeenActionDisplayType;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
object3 = {};
object = {};
const USER_INTERACTION = TeenActionDisplayType.USER_INTERACTION;
const ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
object3[USER_INTERACTION] = ChatIcon;
const ChatIcon = (ChatIconModule).ChatIcon;
object[USER_INTERACTION] = ChatIcon;
const USER_CALLED = TeenActionDisplayType.USER_CALLED;
const PhoneIcon = (require(12628) /* metro dependency 12628: PhoneIcon */).PhoneIcon;
object3[USER_CALLED] = PhoneIcon;
const PhoneIcon = (PhoneIconModule).PhoneIcon;
object[USER_CALLED] = PhoneIcon;
const USER_ADD = TeenActionDisplayType.USER_ADD;
const FriendsIcon = (require(3858) /* metro dependency 3858: FriendsIcon */).FriendsIcon;
object3[USER_ADD] = FriendsIcon;
const FriendsIcon = (FriendsIconModule).FriendsIcon;
object[USER_ADD] = FriendsIcon;
const GUILD_ADD = TeenActionDisplayType.GUILD_ADD;
const ServerGridIcon = (require(12324) /* metro dependency 12324: ServerGridIcon */).ServerGridIcon;
object3[GUILD_ADD] = ServerGridIcon;
const ServerGridIcon = (ServerGridIconModule).ServerGridIcon;
object[GUILD_ADD] = ServerGridIcon;
const GUILD_INTERACTION = TeenActionDisplayType.GUILD_INTERACTION;
const ThreadIcon = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
object3[GUILD_INTERACTION] = ThreadIcon;
const ThreadIcon = (ThreadIconModule).ThreadIcon;
object[GUILD_INTERACTION] = ThreadIcon;
const PURCHASES = TeenActionDisplayType.PURCHASES;
const CreditCardIcon = (require(12630) /* metro dependency 12630: CreditCardIcon */).CreditCardIcon;
object3[PURCHASES] = CreditCardIcon;
const CreditCardIcon = (CreditCardIconModule).CreditCardIcon;
object[PURCHASES] = CreditCardIcon;
const TOTAL_VOICE_MINUTES = TeenActionDisplayType.TOTAL_VOICE_MINUTES;
const ClockIcon = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
object3[TOTAL_VOICE_MINUTES] = ClockIcon;
const ClockIcon = (ClockIconModule).ClockIcon;
object[TOTAL_VOICE_MINUTES] = ClockIcon;
const GIFTS = TeenActionDisplayType.GIFTS;
const GiftIcon = (require(10112) /* metro dependency 10112: GiftIcon */).GiftIcon;
object3[GIFTS] = GiftIcon;
const GiftIcon = (GiftIconModule).GiftIcon;
object[GIFTS] = GiftIcon;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
object3 = {};
const object5 = {'display': 'flex', 'flexDirection': 'row', 'width': '100%', 'alignItems': 'center'};
object = {};
const object2 = {'display': 'flex', 'flexDirection': 'row', 'width': '100%', 'alignItems': 'center'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.marginBottom = PX_8;
object2.marginBottom = PX_8;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingVertical = PX_12;
object2.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingHorizontal = PX_12;
object2.paddingHorizontal = PX_12;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.row = object5;
object3.content = {flexShrink: 1};
const object6 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'width': 40, 'height': 40,
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.row = object2;
object.content = {flexShrink: 1};
const object4 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'width': 40, 'height': 40,
'backgroundColor': null, 'borderRadius': null, 'flexShrink': 0};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object6.backgroundColor = BACKGROUND_BASE_LOWEST;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.marginRight = PX_12;
object3.iconContainer = object6;
object4.marginRight = PX_12;
object.iconContainer = object4;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.header = {marginBottom: PX_4};
object.header = {marginBottom: PX_4};
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
object3.icon = {tintColor: TEXT_BRAND};
const env0_8 = Reflect.apply(createStyles, value, [object3]);
object.icon = {tintColor: TEXT_BRAND};
const env0_8 = Reflect.apply(createStyles, value, [object]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
object3 = {};
object = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.container = {'display': 'flex', 'alignItems': 'center', 'paddingHorizontal': null, 'width': '100%',
object.container = {'display': 'flex', 'alignItems': 'center', 'paddingHorizontal': null, 'width': '100%',
paddingHorizontal: PX_16};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.groupHeader = {marginBottom: PX_24};
const env0_10 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDataTooltip.tsx');
object.groupHeader = {marginBottom: PX_24};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDataTooltip.tsx');
exports.default = FamilyCenterModalDataTooltip;
}
function FamilyCenterModalDataTooltipScreen() { // fn#102012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:1653, offset: 0x022281e3, size: 519 bytes, params: 1, frame: 31
const styles = useStyles();
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value2 = Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).n6LOrh]);
string = intl.string;
const JNLpDZ = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JNLpDZ;
const value3 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule, [value2, Reflect.apply(string, intl,
[JNLpDZ])]);
const env0_0 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const sortedActivityTypeConfigs = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getSortedActivityTypeConfigs();
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text style={styles.groupHeader} variant="text-lg/bold" color="mobile-text-heading-primary">{value3}</Text>];
items2[1] = sortedActivityTypeConfigs.map(_fun102013);
const modalContent = <ModalContent><View style={styles.container}>{items2}</View></ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<Button
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
function FamilyCenterModalDataTooltipScreen() { // fn#102012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:1653, offset: 0x022281e3, size: 519 bytes, params: 1, frame: 31
const styles = useStyles();
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const value2 = Reflect.apply(string, intl,
[(FamilyCenterMessages).n6LOrh]);
string = intl.string;
const JNLpDZ = (FamilyCenterMessages).JNLpDZ;
const value3 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value2, Reflect.apply(string, intl,
[JNLpDZ])]);
const env0_0 = (UseIsInAdultAgeGroup)();
const sortedActivityTypeConfigs = (FamilyCenterUtilsModule).getSortedActivityTypeConfigs();
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Text = (TextModule).Text;
const items2 = [
<Text
style={styles.groupHeader}
variant="text-lg/bold"
color="mobile-text-heading-primary"
>
{value3}
</Text>,
];
items2[1] = sortedActivityTypeConfigs.map(_fun102013);
const modalContent = (
<ModalContent>
<View style={styles.container}>
{items2}
</View>
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const Button = (ButtonNativeModule).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<Button
variant="primary"
text={intl.string((IndexNativeModule).t['NX+WJN'])}
onPress={(ModalActionCreators).pop}
/>
</ModalFooter>
</ModalScreen>
);
function _fun102013(a0) { // fn#102013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2095, offset: 0x022283ea, size: 148 bytes, params: 2, frame: 20
var r0;
var r1;
var r7;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
r7 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value3;
r7 = value;
} else {
r0 = item3;
r1 = value3;
r7 = item;
}
}
if (!r1) {
r0.return();
}
return (
<Row_102014
IconComponent={env1_7[r3]}
header={r7.tooltipHeader()}
description={r7.tooltipDescription(env0_0 ?? value)}
key={r3}
/>
</ModalFooter>
</ModalScreen>
);
}
function Row_102014({header, description, IconComponent}) { // fn#102014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:1114, offset: 0x0222847e, size: 273 bytes, params: 2, frame: 27
const styles = useStyles();
const view = <View style={styles.iconContainer}><IconComponent style={styles.icon} /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.row}>
{view}
<View style={styles.content}>
<Text
style={styles.header}
variant="text-sm/bold"
color="mobile-text-heading-primary"
>
{header}
</Text>
<Text variant="text-xs/medium" color="text-default">
{description}
</Text>
</View>
</View>
);
}
function FamilyCenterModalDataTooltip() { // fn#102015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2468, offset: 0x0222858f, size: 141 bytes, params: 1, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun102017();
}, []);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="DATA_TOOLTIP"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun102013(a0) { // fn#102013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2095, offset: 0x022283ea, size: 148 bytes, params: 2, frame: 20
var r0;
var r1;
var r7;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
r7 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value3;
r7 = value;
} else {
r0 = item3;
r1 = value3;
r7 = item;
);
}
}
if (!r1) {
r0.return();
function Row_102014({header, description, IconComponent}) { // fn#102014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:1114, offset: 0x0222847e, size: 273 bytes, params: 2, frame: 27
const styles = useStyles();
const view = (
<View style={styles.iconContainer}>
<IconComponent style={styles.icon} />
</View>
);
const Text = (TextModule).Text;
return (
<View style={styles.row}>
{view}
<View style={styles.content}>
<Text
style={styles.header}
variant="text-sm/bold"
color="mobile-text-heading-primary"
>
{header}
</Text>
<Text variant="text-xs/medium" color="text-default">
{description}
</Text>
</View>
</View>
);
}
return (
<Row_102014
IconComponent={env1_7[r3]}
header={r7.tooltipHeader()}
description={r7.tooltipDescription(env0_0 ?? value)}
key={r3}
/>
);
function FamilyCenterModalDataTooltip() { // fn#102015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2468, offset: 0x0222858f, size: 141 bytes, params: 1, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun102017();
}, []);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="DATA_TOOLTIP"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun102016() { // fn#102016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2525, offset: 0x0222861c, size: 17 bytes, params: 1, frame: 9
return (() => {
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102018;
object2.render = _fun102019;
return {DATA_TOOLTIP: object2};
})();
function getScreens_102017() { // fn#102017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2529, offset: 0x0222862d, size: 109 bytes, params: 1, frame: 17
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_102019;
return {DATA_TOOLTIP: object2};
function getScreens_102017Render() { // fn#102019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2670, owner: getScreens_102017.render, offset: 0x0222869a, size: 23 bytes, params: 1, frame: 13
return <FamilyCenterModalDataTooltipScreen />;
}
}
}
}
}
function _fun102016() { // fn#102016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2525, offset: 0x0222861c, size: 17 bytes, params: 1, frame: 9
return (() => {
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102018;
object2.render = _fun102019;
return {DATA_TOOLTIP: object2};
})();
}
function getScreens_102017() { // fn#102017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2529, offset: 0x0222862d, size: 109 bytes, params: 1, frame: 17
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_102019;
return {DATA_TOOLTIP: object};
}
function getScreens_102017Render() { // fn#102019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13594:2670, owner: getScreens_102017.render, offset: 0x0222869a, size: 23 bytes, params: 1, frame: 13
return <FamilyCenterModalDataTooltipScreen />;
function getScreens_102017HeaderTitle() { // fn#102018, owner: getScreens_102017.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102011, 13404, [31, 27, 5117, 33, 6682, 12628, 3858, 12324, 6684, 12630, 4076, 10112, 4501, 697,
4573, 12627, 1244, 2224, 8171, 5187, 6258, 6259, 10120, 4578, 5080, 5282, 10121,
2]) /* metro module 13404, dependencies: [31, 27, 5117, 33, 6682, 12628, 3858, 12324, 6684, 12630, 4076, 10112, 4501, 697, 4573, 12627, 1244, 2224, 8171, 5187, 6258, 6259, 10120, 4578, 5080, 5282, 10121, 2] */;
@@ -1,125 +1,195 @@
/* Metro module 13439; source: modules/parent_tools/native/FamilyCenterModalDecline.tsx; dependencies: [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160, 4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121, 2] */
import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import FamilyCenterAvatarPair from './FamilyCenterAvatarPair.tsx'; /* Metro dependency 13435 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
function _fun102200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:6, offset: 0x02231fc7, size: 418 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object5 = {};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.marginTop = PX_16;
object3.marginTop = PX_16;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object5.marginBottom = PX_4;
object2.headerText = object5;
const object6 = {};
object3.marginBottom = PX_4;
object.headerText = object3;
const object4 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.padding = PX_24;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object4.padding = PX_24;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.body = object6;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.body = object4;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.noticeHeader = {marginBottom: PX_4};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDecline.tsx');
object.noticeHeader = {marginBottom: PX_4};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDecline.tsx');
exports.default = FamilyCenterModalDecline;
function FamilyCenterModalDeclineScreen({otherUser}) { // fn#102201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:517, offset: 0x02232169, size: 1038 bytes, params: 2, frame: 37
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
const {declineLinkRequest,
isDeclineLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({onSuccess: ReactModule.useCallback(_fun102202,
[]), onError: ReactModule.useCallback(_fun102203, [])});
const value6 = ReactModule.useCallback(function() {
declineLinkRequest(otherUser.id);
}, [declineLinkRequest, otherUser.id]);
(Module00044)(!value2,
'FamilyCenterDeclineLinkModal should only be rendered for teens.');
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const items2 = [
((Component) => <Component otherUser={otherUser} iconSrc={Module08160} />)(FamilyCenterAvatarPair),
];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
items2[1] = (
<Text style={styles.headerText} variant="text-lg/bold">
{Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).teIRCR])}
</Text>
);
items2[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const view = (
<View style={styles.header}>
{items2}
</View>
);
const text = (
<Text
style={styles.noticeHeader}
variant="eyebrow"
color="mobile-text-heading-primary"
>
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cXgKMD)}
</Text>
);
string = intl.string;
const LcM8BS = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LcM8BS;
const modalContent = (
<ModalContent>
{view}
<View style={styles.body}>
{text}
<Text variant="text-sm/normal" color="text-default">
{Reflect.apply(string, intl, [LcM8BS])}
</Text>
</View>
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={isDeclineLoading}
loading={isDeclineLoading}
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).dKxFcn)}
onPress={value6}
/>
<Button
variant="tertiary"
text={intl.string((IndexNativeModule).t['ETE/oC'])}
onPress={(ModalActionCreators).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
function _fun102202() { // fn#102202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:611, offset: 0x020acfc4, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function _fun102203() { // fn#102203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:653, offset: 0x02232577, size: 85 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
}
}
function FamilyCenterModalDecline({otherUser}) { // fn#102205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1916, offset: 0x022325cc, size: 156 bytes, params: 2, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun102207(otherUser);
}, [otherUser]);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="DECLINE"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun102206() { // fn#102206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1982, offset: 0x02232668, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102208;
object2.render = _fun102209;
return {DECLINE: object2};
})(otherUser);
function getScreens_102207(a0) { // fn#102207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1986, offset: 0x02232681, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_102209;
return {DECLINE: object2};
function getScreens_102207Render() { // fn#102209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:2122, owner: getScreens_102207.render, offset: 0x02231fa4, size: 35 bytes, params: 1, frame: 13
return <FamilyCenterModalDeclineScreen otherUser={env0_0} />;
}
}
}
}
}
function FamilyCenterModalDeclineScreen({otherUser}) { // fn#102201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:517, offset: 0x02232169, size: 1038 bytes, params: 2, frame: 37
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const {declineLinkRequest,
isDeclineLoading} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: env0_3.useCallback(_fun102202,
[]), onError: env0_3.useCallback(_fun102203, [])});
const value6 = env0_3.useCallback(function() {
declineLinkRequest(otherUser.id);
}, [declineLinkRequest, otherUser.id]);
(importDefault(44) /* metro dependency 44 */)(!value2,
'FamilyCenterDeclineLinkModal should only be rendered for teens.');
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const items2 = [((Component) => <Component otherUser={otherUser} iconSrc={importDefault(8160) /* metro dependency 8160 */} />)(importDefault(13435) /* metro dependency 13435: FamilyCenterAvatarPair */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <Text style={styles.headerText} variant="text-lg/bold">{Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).teIRCR])}</Text>;
items2[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const view = <View style={styles.header}>{items2}</View>;
const text = <Text style={styles.noticeHeader} variant="eyebrow" color="mobile-text-heading-primary">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cXgKMD)}</Text>;
string = intl.string;
const LcM8BS = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LcM8BS;
const modalContent = <ModalContent>{view}<View style={styles.body}>{text}<Text variant="text-sm/normal" color="text-default">{Reflect.apply(string,
intl, [LcM8BS])}</Text></View></ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={isDeclineLoading}
loading={isDeclineLoading}
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).dKxFcn)}
onPress={value6}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
}
function FamilyCenterModalDecline({otherUser}) { // fn#102205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1916, offset: 0x022325cc, size: 156 bytes, params: 2, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun102207(otherUser);
}, [otherUser]);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="DECLINE"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun102206() { // fn#102206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1982, offset: 0x02232668, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102208;
object2.render = _fun102209;
return {DECLINE: object2};
})(otherUser);
}
function getScreens_102207(a0) { // fn#102207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13629:1986, offset: 0x02232681, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_102209;
return {DECLINE: object};
function getScreens_102207HeaderTitle() { // fn#102208, owner: getScreens_102207.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102200, 13439, [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160,
4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121,
2]) /* metro module 13439, dependencies: [31, 27, 33, 4501, 697, 8171, 5080, 3856, 1244, 12624, 44, 6258, 6259, 13435, 8160, 4573, 2224, 13405, 10120, 6261, 4578, 5282, 10121, 2] */;
@@ -1,169 +1,223 @@
/* Metro module 13434; source: modules/parent_tools/native/FamilyCenterModalDisconnect.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 5080, 8171, 3856, 1244, 12624, 12627, 2224, 6258, 6259, 13435, 8160, 4573, 13405, 6238, 1305, 10120, 6261, 4578, 5282, 10121, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import FamilyCenterAvatarPair from './FamilyCenterAvatarPair.tsx'; /* Metro dependency 13435 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
function _fun102167(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:6, offset: 0x0223048a, size: 434 bytes, params: 8, frame: 22
var object2;
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 env0_5 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object5 = {};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.marginTop = PX_16;
object3.marginTop = PX_16;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object5.marginBottom = PX_4;
object2.headerText = object5;
const object6 = {};
object3.marginBottom = PX_4;
object.headerText = object3;
const object4 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.padding = PX_24;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object4.padding = PX_24;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.body = object6;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.body = object4;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.noticeHeader = {marginBottom: PX_4};
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDisconnect.tsx');
object.noticeHeader = {marginBottom: PX_4};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalDisconnect.tsx');
exports.default = FamilyCenterModalDisconnect;
function FamilyCenterModalDisconnectScreen({otherUser}) { // fn#102168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:527, offset: 0x0223063c, size: 1399 bytes, params: 2, frame: 44
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun102169, []);
const value3 = (UseIsInAdultAgeGroup)();
const [property, env0_1] = Module00057(ReactModule.useState(false), 2);
const {disconnectLinkRequest,
isDisconnectLoading} = (UseFamilyCenterActionsModule).useFamilyCenterActions({onSuccess: value2,
onError: ReactModule.useCallback(_fun102170, [])});
let useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const VJaHUb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VJaHUb;
const value9 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [Reflect.apply(string, intl, [VJaHUb]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['/MYCee'])]);
useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const value10 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).f1SUeW);
string = intl.string;
const EvMGLT = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).EvMGLT;
const value11 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value10, Reflect.apply(string, intl, [EvMGLT])]);
const value12 = ReactModule.useCallback(function() {
disconnectLinkRequest(otherUser.id);
}, [disconnectLinkRequest, otherUser.id]);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const items3 = [
((Component) => <Component otherUser={otherUser} iconSrc={Module08160} />)(FamilyCenterAvatarPair),
];
const Text = (TextModule).Text;
const format = intl.format;
const property2 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['NMSTb/'];
const object2 = {};
const String = global.String;
object2.isAdult = String(value3);
items3[1] = (
<Text style={styles.headerText} variant="text-lg/bold">
{Reflect.apply(format, intl, [property2, object2])}
</Text>
);
items3[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const items2 = [
<View style={styles.header}>
{items3}
</View>,
];
string = intl.string;
const VKblNt = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VKblNt;
items2[1] = (
<View style={styles.body}>
<Text
style={styles.noticeHeader}
variant="eyebrow"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [VKblNt])}
</Text>
<Text variant="text-sm/normal" color="text-default">
{value11}
</Text>
</View>
);
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {disabled: isDisconnectLoading, onPress: onPress_102172,
label: <Text variant="text-xs/semibold">{value9}</Text>};
const Checkbox = (NativeModule).Checkbox;
tableRowProps.icon = <Checkbox selected={property} />;
items2[2] = <TableRow {...tableRowProps} />;
const modalContent = (
<ModalContent>
{items2}
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={property ? isDisconnectLoading : !property}
loading={isDisconnectLoading}
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['c5L+sl'])}
onPress={value12}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
function _fun102169() { // fn#102169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:612, offset: 0x020acfc4, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function _fun102170() { // fn#102170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:706, offset: 0x02230bb3, size: 99 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
env0_1(false);
}
function FamilyCenterModalDisconnectScreenOnPress() { // fn#102172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:1743, owner: FamilyCenterModalDisconnectScreen.onPress, offset: 0x02230c2f, size: 25 bytes, params: 1, frame: 11
env0_1(function(a0) {
return !a0;
});
}
}
function FamilyCenterModalDisconnect({otherUser}) { // fn#102174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2275, offset: 0x02230c48, size: 156 bytes, params: 2, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun102176(otherUser);
}, [otherUser]);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="DISCONNECT"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun102175() { // fn#102175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2344, offset: 0x02230ce4, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102177;
object2.render = _fun102178;
return {DISCONNECT: object2};
})(otherUser);
function getScreens_102176(a0) { // fn#102176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2348, offset: 0x02230cfd, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_102178;
return {DISCONNECT: object2};
function getScreens_102176Render() { // fn#102178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2487, owner: getScreens_102176.render, offset: 0x02230d6f, size: 35 bytes, params: 1, frame: 13
return <FamilyCenterModalDisconnectScreen otherUser={env0_0} />;
}
}
}
}
}
function FamilyCenterModalDisconnectScreen({otherUser}) { // fn#102168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:527, offset: 0x0223063c, size: 1399 bytes, params: 2, frame: 44
const styles = useStyles();
const value2 = env0_4.useCallback(_fun102169, []);
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const [property, env0_1] = env0_3(env0_4.useState(false), 2);
const {disconnectLinkRequest,
isDisconnectLoading} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: value2,
onError: env0_4.useCallback(_fun102170, [])});
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
let useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const VJaHUb = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VJaHUb;
const value9 = Reflect.apply(useAgeSpecificText, useAgeSpecificTextModule, [Reflect.apply(string, intl, [VJaHUb]),
intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['/MYCee'])]);
const moduleValue3 = useAgeSpecificTextModule;
useAgeSpecificText = moduleValue3.useAgeSpecificText;
const value10 = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).f1SUeW);
string = intl.string;
const EvMGLT = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).EvMGLT;
const value11 = Reflect.apply(useAgeSpecificText, moduleValue3, [value10, Reflect.apply(string, intl, [EvMGLT])]);
const value12 = env0_4.useCallback(function() {
disconnectLinkRequest(otherUser.id);
}, [disconnectLinkRequest, otherUser.id]);
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const items3 = [((Component) => <Component otherUser={otherUser} iconSrc={importDefault(8160) /* metro dependency 8160 */} />)(importDefault(13435) /* metro dependency 13435: FamilyCenterAvatarPair */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const format = intl.format;
const property2 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['NMSTb/'];
const object = {};
const String = global.String;
object.isAdult = String(value3);
items3[1] = <Text style={styles.headerText} variant="text-lg/bold">{Reflect.apply(format, intl, [property2,
object])}</Text>;
items3[2] = ((Component) => <Component user={otherUser} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */);
const items2 = [<View style={styles.header}>{items3}</View>];
string = intl.string;
const VKblNt = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VKblNt;
items2[1] = <View style={styles.body}><Text style={styles.noticeHeader} variant="eyebrow" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [VKblNt])}</Text><Text variant="text-sm/normal" color="text-default">{value11}</Text></View>;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {disabled: isDisconnectLoading, onPress: onPress_102172,
label: <Text variant="text-xs/semibold">{value9}</Text>};
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
tableRowProps.icon = <Checkbox selected={property} />;
items2[2] = <TableRow {...tableRowProps} />;
const modalContent = <ModalContent>{items2}</ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="destructive"
disabled={property ? isDisconnectLoading : !property}
loading={isDisconnectLoading}
text={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['c5L+sl'])}
onPress={value12}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
}
function FamilyCenterModalDisconnect({otherUser}) { // fn#102174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2275, offset: 0x02230c48, size: 156 bytes, params: 2, frame: 18
const value2 = env0_4.useMemo(function() {
return _fun102176(otherUser);
}, [otherUser]);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="DISCONNECT"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun102170() { // fn#102170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:706, offset: 0x02230bb3, size: 99 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = value.presentFailedToast;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
Reflect.apply(presentFailedToast, value, [Reflect.apply(string, intl, [R0RpRX])]);
env0_1(false);
}
function FamilyCenterModalDisconnectScreenOnPress() { // fn#102172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:1743, owner: FamilyCenterModalDisconnectScreen.onPress, offset: 0x02230c2f, size: 25 bytes, params: 1, frame: 11
env0_1(function(a0) {
return !a0;
});
}
function _fun102175() { // fn#102175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2344, offset: 0x02230ce4, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun102177;
object2.render = _fun102178;
return {DISCONNECT: object2};
})(otherUser);
}
function getScreens_102176(a0) { // fn#102176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2348, offset: 0x02230cfd, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_102178;
return {DISCONNECT: object};
}
function getScreens_102176Render() { // fn#102178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13624:2487, owner: getScreens_102176.render, offset: 0x02230d6f, size: 35 bytes, params: 1, frame: 13
return <FamilyCenterModalDisconnectScreen otherUser={env0_0} />;
function getScreens_102176HeaderTitle() { // fn#102177, owner: getScreens_102176.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102167, 13434, [57, 31, 27, 33, 4501, 697, 5080, 8171, 3856, 1244, 12624, 12627, 2224, 6258, 6259,
13435, 8160, 4573, 13405, 6238, 1305, 10120, 6261, 4578, 5282, 10121,
2]) /* metro module 13434, dependencies: [57, 31, 27, 33, 4501, 697, 5080, 8171, 3856, 1244, 12624, 12627, 2224, 6258, 6259, 13435, 8160, 4573, 13405, 6238, 1305, 10120, 6261, 4578, 5282, 10121, 2] */;
@@ -1,202 +1,283 @@
/* Metro module 13394; source: modules/parent_tools/native/FamilyCenterModalQRCode.tsx; dependencies: [57, 31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 3856, 1244, 5080, 12624, 44, 4594, 683, 6258, 6259, 1305, 11785, 4573, 2224, 6766, 5278, 9181, 10120, 6261, 4578, 5282, 10121, 2] */
import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import Module11785 from '../../../by-id/module-11785.js'; /* Metro dependency 11785 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ToastUtilsModule from '../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as QRCodeModule from '../../../components_native/QRCode.tsx'; /* Metro dependency 9181 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
function _fun101968(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:6, offset: 0x02225af1, size: 563 bytes, params: 8, frame: 24
var object2;
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 env0_5 = (require(27) /* metro dependency 27 */).View;
let value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
let value = FamilyCenterConstantsModule;
const env0_6 = value.FamilyCenterAction;
const env0_7 = value.PLACEHOLDER_QR_CODE_URL;
const env0_8 = value.QR_CODE_AUTO_HIDE_TIMEOUT;
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const MESSAGE_MENTIONED_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MESSAGE_MENTIONED_BACKGROUND_DEFAULT;
object2.noticeContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
object.noticeContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
'justifyContent': 'center', 'backgroundColor': null, 'padding': 12, 'marginBottom': 24, 'marginHorizontal': -16,
backgroundColor: MESSAGE_MENTIONED_BACKGROUND_DEFAULT};
const object4 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null,
const object3 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null,
'marginRight': 8, 'width': 18, 'height': 18};
let STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
object4.backgroundColor = STATUS_WARNING;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.noticeIconCircle = object4;
object3.backgroundColor = STATUS_WARNING;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.noticeIconCircle = object3;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.noticeIcon = {'width': 11, 'height': 11, tintColor: BACKGROUND_BASE_LOW};
object.noticeIcon = {'width': 11, 'height': 11, tintColor: BACKGROUND_BASE_LOW};
STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
object2.noticeText = {color: STATUS_WARNING};
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'textAlign': 'center',
object.noticeText = {color: STATUS_WARNING};
object.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'textAlign': 'center',
'marginBottom': 16};
object2.headerText = {marginBottom: 4};
object2.description = {textAlign: 'center'};
object2.reminder = {'marginTop': 16, 'textAlign': 'center'};
object2.qrCode = {'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center'};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalQRCode.tsx');
object.headerText = {marginBottom: 4};
object.description = {textAlign: 'center'};
object.reminder = {'marginTop': 16, 'textAlign': 'center'};
object.qrCode = {'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center'};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalQRCode.tsx');
exports.default = FamilyCenterModalQRCode;
}
function FamilyCenterModalQRCodeScreen() { // fn#101969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1124, offset: 0x02225d24, size: 1502 bytes, params: 1, frame: 40
const styles = useStyles();
const value2 = (UseIsInAdultAgeGroup)();
const [property, env0_1] = Module00057(getLinkCode.useState(false), 2);
const value5 = (UseUserLinksModule).usePendingRequestCount();
const value6 = getLinkCode.useRef(value5);
const value8 = (UseFamilyCenterActionsModule).useFamilyCenterActions({onError: getLinkCode.useCallback(_fun101970,
[])});
var getLinkCode = value8.getLinkCode;
const isGetLinkCodeLoading = value8.isGetLinkCodeLoading;
const value9 = (UseUserLinksModule).useUserQRLinkUrl();
(Module00044)(!value2, 'FamilyCenterQRCodeModal should only be rendered for teens.');
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
getLinkCode();
});
getLinkCode.useEffect(_fun101972, [value6, value5]);
const value10 = getLinkCode.useCallback(_fun101973, [property]);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Icon = (NativeModule).Icon;
const view = (
<View style={styles.noticeIconCircle}>
<Icon style={styles.noticeIcon} source={Module11785} />
</View>
);
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [
<View style={styles.noticeContainer}>
{view}
<Text style={styles.noticeText} variant="text-sm/semibold">
{Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iHYMAz])}
</Text>
</View>,
];
string = intl.string;
const AVTZaN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).AVTZaN;
const text = (
<Text
style={styles.headerText}
variant="text-lg/bold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [AVTZaN])}
</Text>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const format = intl.format;
const LyyCsE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LyyCsE;
items2[1] = (
<View style={styles.header}>
{text}
<TextWithIOSLinkWorkaround
style={styles.description}
variant="text-sm/normal"
color="text-default"
>
{Reflect.apply(format, intl, [LyyCsE,
{link: 'https://support.discord.com/hc/articles/14155060633623'}])}
</TextWithIOSLinkWorkaround>
</View>
);
const PressableOpacity = (PressablesModule).PressableOpacity;
const QRCodeWithOverlay = (QRCodeModule).QRCodeWithOverlay;
const r11 = property ? isGetLinkCodeLoading ? PLACEHOLDER_QR_CODE_URL : value9 ?? PLACEHOLDER_QR_CODE_URL : PLACEHOLDER_QR_CODE_URL;
const QRCodeOverlaySizes = (QRCodeModule).QRCodeOverlaySizes;
const SIZE_60 = QRCodeOverlaySizes.SIZE_60;
items2[2] = (
<PressableOpacity
style={styles.qrCode}
onPress={value10}
activeOpacity={0.6}
>
<QRCodeWithOverlay
size={237}
text={r11}
overlaySize={SIZE_60}
blur={!property}
/>
</PressableOpacity>
);
items2[3] = (
<Text
style={styles.reminder}
variant="text-xs/semibold"
color="text-default"
>
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).goDyoe)}
</Text>
);
const modalContent = (
<ModalContent>
{items2}
</ModalContent>
);
const ModalFooter = (ModalFooterNativeModule).ModalFooter;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
string = intl.string;
const defaultImport3 = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="primary"
disabled={isGetLinkCodeLoading}
loading={isGetLinkCodeLoading}
text={property ? Reflect.apply(string, intl, [defaultImport3.wg2xwQ]) : Reflect.apply(string,
intl, [defaultImport3['10dX6U']])}
onPress={value10}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
function _fun101970() { // fn#101970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1293, offset: 0x02226302, size: 111 bytes, params: 1, frame: 17
const value = environment.__proto__;
const presentFailedToast = ToastUtilsModule.presentFailedToast;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const R0RpRX = (IndexNativeModule).t.R0RpRX;
Reflect.apply(presentFailedToast, ToastUtilsModule, [Reflect.apply(string, intl, [R0RpRX])]);
(ModalActionCreators).pop();
}
function FamilyCenterModalQRCodeScreen() { // fn#101969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1124, offset: 0x02225d24, size: 1502 bytes, params: 1, frame: 40
const styles = useStyles();
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const [property, env0_1] = env0_3(env0_4.useState(false), 2);
const value5 = (require(8170) /* metro dependency 8170: useUserLinks */).usePendingRequestCount();
const value6 = env0_4.useRef(value5);
const value8 = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onError: env0_4.useCallback(_fun101970,
[])});
var env0_4 = value8.getLinkCode;
const isGetLinkCodeLoading = value8.isGetLinkCodeLoading;
const value9 = (require(8170) /* metro dependency 8170: useUserLinks */).useUserQRLinkUrl();
(importDefault(44) /* metro dependency 44 */)(!value2, 'FamilyCenterQRCodeModal should only be rendered for teens.');
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
getLinkCode();
});
env0_4.useEffect(_fun101972, [value6, value5]);
const value10 = env0_4.useCallback(_fun101973, [property]);
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const view = <View style={styles.noticeIconCircle}><Icon style={styles.noticeIcon} source={importDefault(11785) /* metro dependency 11785 */} /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<View style={styles.noticeContainer}>{view}<Text style={styles.noticeText} variant="text-sm/semibold">{Reflect.apply(string,
intl, [(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iHYMAz])}</Text></View>];
string = intl.string;
const AVTZaN = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).AVTZaN;
const text = <Text style={styles.headerText} variant="text-lg/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [AVTZaN])}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const LyyCsE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).LyyCsE;
items2[1] = <View style={styles.header}>{text}<TextWithIOSLinkWorkaround style={styles.description} variant="text-sm/normal" color="text-default">{Reflect.apply(format,
intl, [LyyCsE,
{link: 'https://support.discord.com/hc/articles/14155060633623'}])}</TextWithIOSLinkWorkaround></View>;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const QRCodeWithOverlay = (require(9181) /* metro dependency 9181: QRCode */).QRCodeWithOverlay;
const r11 = property ? isGetLinkCodeLoading ? PLACEHOLDER_QR_CODE_URL : value9 ?? PLACEHOLDER_QR_CODE_URL : PLACEHOLDER_QR_CODE_URL;
const QRCodeOverlaySizes = (require(9181) /* metro dependency 9181: QRCode */).QRCodeOverlaySizes;
const SIZE_60 = QRCodeOverlaySizes.SIZE_60;
items2[2] = <PressableOpacity style={styles.qrCode} onPress={value10} activeOpacity={0.6}><QRCodeWithOverlay size={237} text={r11} overlaySize={SIZE_60} blur={!property} /></PressableOpacity>;
items2[3] = <Text style={styles.reminder} variant="text-xs/semibold" color="text-default">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).goDyoe)}</Text>;
const modalContent = <ModalContent>{items2}</ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const defaultImport3 = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
<ButtonGroup>
<Button
variant="primary"
disabled={isGetLinkCodeLoading}
loading={isGetLinkCodeLoading}
text={property ? Reflect.apply(string, intl, [defaultImport3.wg2xwQ]) : Reflect.apply(string,
intl, [defaultImport3['10dX6U']])}
onPress={value10}
/>
<Button
variant="tertiary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
/>
</ButtonGroup>
</ModalFooter>
</ModalScreen>
);
}
function _fun101972() { // fn#101972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1614, offset: 0x02226371, size: 59 bytes, params: 1, frame: 11
var value;
if (env0_2 > Module00057.current) {
value = environment.__proto__;
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
value.pop();
}
}
function FamilyCenterModalQRCode() { // fn#101976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3313, offset: 0x02226465, size: 139 bytes, params: 1, frame: 18
const value2 = env0_4.useMemo(function() {
return _fun101978();
}, []);
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Modal
initialRouteName="QR_CODE"
screens={value2}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun101973() { // fn#101973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1677, offset: 0x022263ac, size: 60 bytes, params: 1, frame: 14
var environment;
var setTimeout;
env0_1(_fun101974);
if (!env0_0) {
setTimeout = global.setTimeout;
value = environment.__proto__;
setTimeout(_fun101975, QR_CODE_AUTO_HIDE_TIMEOUT);
}
function _fun101974(a0) { // fn#101974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1685, offset: 0x022263e8, size: 88 bytes, params: 2, frame: 16
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION,
{action: env1_0 ? FamilyCenterAction.HideQRCode : FamilyCenterAction.RevealQRCode}]);
return !a0;
}
function _fun101970() { // fn#101970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1293, offset: 0x02226302, size: 111 bytes, params: 1, frame: 17
const value = environment.__proto__;
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
const presentFailedToast = toastUtilsModule.presentFailedToast;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const R0RpRX = (require(1244) /* metro dependency 1244: indexNative */).t.R0RpRX;
Reflect.apply(presentFailedToast, toastUtilsModule, [Reflect.apply(string, intl, [R0RpRX])]);
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function _fun101975() { // fn#101975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1788, offset: 0x02226440, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
(ModalActionCreators).pop();
}
}
function _fun101972() { // fn#101972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1614, offset: 0x02226371, size: 59 bytes, params: 1, frame: 11
var value;
if (env0_2 > env0_3.current) {
value = environment.__proto__;
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
value.pop();
}
}
function _fun101973() { // fn#101973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1677, offset: 0x022263ac, size: 60 bytes, params: 1, frame: 14
var environment;
var setTimeout;
env0_1(_fun101974);
if (!env0_0) {
setTimeout = global.setTimeout;
value = environment.__proto__;
setTimeout(_fun101975, QR_CODE_AUTO_HIDE_TIMEOUT);
function FamilyCenterModalQRCode() { // fn#101976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3313, offset: 0x02226465, size: 139 bytes, params: 1, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun101978();
}, []);
const Modal = (ModalNativeModule).Modal;
const intl = (IndexNativeModule).intl;
return (
<Modal
initialRouteName="QR_CODE"
screens={value2}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun101977() { // fn#101977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3365, offset: 0x022264f0, size: 17 bytes, params: 1, frame: 9
return (() => {
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun101979;
object2.render = _fun101980;
return {QR_CODE: object2};
})();
function getScreens_101978() { // fn#101978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3369, offset: 0x02226501, size: 107 bytes, params: 1, frame: 17
const object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = function() {
return null;
};
object2.render = render_101980;
return {QR_CODE: object2};
function getScreens_101978Render() { // fn#101980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3505, owner: getScreens_101978.render, offset: 0x0222656c, size: 23 bytes, params: 1, frame: 13
return <FamilyCenterModalQRCodeScreen />;
}
}
}
}
}
function _fun101977() { // fn#101977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3365, offset: 0x022264f0, size: 17 bytes, params: 1, frame: 9
return (() => {
var object2 = {headerShown: true};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object2.headerTitle = _fun101979;
object2.render = _fun101980;
return {QR_CODE: object2};
})();
}
function _fun101974(a0) { // fn#101974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1685, offset: 0x022263e8, size: 88 bytes, params: 2, frame: 16
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION,
{action: env1_0 ? FamilyCenterAction.HideQRCode : FamilyCenterAction.RevealQRCode}]);
return !a0;
}
function _fun101975() { // fn#101975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:1788, offset: 0x02226440, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function getScreens_101978() { // fn#101978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3369, offset: 0x02226501, size: 107 bytes, params: 1, frame: 17
const object = {headerShown: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
object.headerTitle = function() {
return null;
};
object.render = render_101980;
return {QR_CODE: object};
}
function getScreens_101978Render() { // fn#101980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13584:3505, owner: getScreens_101978.render, offset: 0x0222656c, size: 23 bytes, params: 1, frame: 13
return <FamilyCenterModalQRCodeScreen />;
function getScreens_101978HeaderTitle() { // fn#101979, owner: getScreens_101978.headerTitle, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun101968, 13394, [57, 31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 3856, 1244, 5080, 12624, 44, 4594,
683, 6258, 6259, 1305, 11785, 4573, 2224, 6766, 5278, 9181, 10120, 6261, 4578, 5282, 10121,
2]) /* metro module 13394, dependencies: [57, 31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 3856, 1244, 5080, 12624, 44, 4594, 683, 6258, 6259, 1305, 11785, 4573, 2224, 6766, 5278, 9181, 10120, 6261, 4578, 5282, 10121, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,61 +1,63 @@
/* Metro module 12620; source: modules/parent_tools/native/FamilyCenterNativeUtils.tsx; dependencies: [12621, 5117, 661, 683, 5118, 5080, 12622, 1962, 2] */
import FamilyCenterPendingConnectionStore from '../FamilyCenterPendingConnectionStore.tsx'; /* Metro dependency 12621 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
function _fun96789(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12810:6, offset: 0x021671ed, size: 199 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterPendingConnectionStore = importDefault(12621) /* metro dependency 12621: FamilyCenterPendingConnectionStore */;
const familyCenterConstantsModule = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_4 = familyCenterConstantsModule.FAMILY_CENTER_LINK_REQUEST_REGEX;
const env0_5 = familyCenterConstantsModule.FamilyCenterAction;
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterNativeUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterNativeUtils.tsx');
exports.FAMILY_CENTER_REQUEST_MODAL_KEY = 'family-center-request-modal';
exports.handleFamilyCenterQRCodeScan = handleFamilyCenterQRCodeScan;
exports.resumeFamilyCenterConnection = resumeFamilyCenterConnection;
}
function handleFamilyCenterQRCodeScan(a0, a1) { // fn#96790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12810:389, offset: 0x021672b4, size: 219 bytes, params: 3, frame: 22
const value2 = a0.match(FAMILY_CENTER_LINK_REQUEST_REGEX);
if (value2 === null) {
return null;
}
const property = value2[1];
const property2 = value2[2];
const defaultImport = importDefault(dependencyMap[3]);
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
const ScanQRCode = FamilyCenterAction.ScanQRCode;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION, {action: ScanQRCode, selected_teen_id: property,
source: a1}]);
importDefault(dependencyMap[4]).setPendingConnection(property, property2);
const defaultImport3 = importDefault(dependencyMap[5]);
const pushLazy = defaultImport3.pushLazy;
let value = require(dependencyMap[7]);
value = value(dependencyMap[6], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport3, [value, {userId: property, linkCode: property2},
'family-center-request-modal']);
}
function resumeFamilyCenterConnection() { // fn#96791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12810:674, offset: 0x0216738f, size: 150 bytes, params: 1, frame: 20
var r0;
var defaultImport2;
var pushLazy;
var value;
const pendingConnection = FamilyCenterPendingConnectionStore.getPendingConnection();
const value3 = pendingConnection != null;
if (value3) {
importDefault(dependencyMap[5]).popWithKey('family-center-request-modal');
defaultImport2 = importDefault(dependencyMap[5]);
pushLazy = defaultImport2.pushLazy;
value = require(dependencyMap[7]);
function handleFamilyCenterQRCodeScan(a0, a1) { // fn#96790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12810:389, offset: 0x021672b4, size: 219 bytes, params: 3, frame: 22
const value2 = a0.match(FAMILY_CENTER_LINK_REQUEST_REGEX);
if (value2 === null) {
return null;
}
const property = value2[1];
const property2 = value2[2];
const defaultImport = importDefault(dependencyMap[3]);
const track = defaultImport.track;
const FAMILY_CENTER_ACTION = AnalyticEvents.FAMILY_CENTER_ACTION;
const ScanQRCode = FamilyCenterAction.ScanQRCode;
Reflect.apply(track, defaultImport, [FAMILY_CENTER_ACTION, {action: ScanQRCode, selected_teen_id: property,
source: a1}]);
importDefault(dependencyMap[4]).setPendingConnection(property, property2);
const defaultImport3 = importDefault(dependencyMap[5]);
const pushLazy = defaultImport3.pushLazy;
let value = require(dependencyMap[7]);
value = value(dependencyMap[6], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport2, [value, {userId: pendingConnection.teenId,
linkCode: pendingConnection.linkCode}, 'family-center-request-modal']);
value = true;
r0 = value;
} else {
r0 = value3;
Reflect.apply(pushLazy, defaultImport3, [value, {userId: property, linkCode: property2},
'family-center-request-modal']);
}
return r0;
function resumeFamilyCenterConnection() { // fn#96791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12810:674, offset: 0x0216738f, size: 150 bytes, params: 1, frame: 20
var r0;
var defaultImport2;
var pushLazy;
var value;
const pendingConnection = FamilyCenterPendingConnectionStore.getPendingConnection();
const value3 = pendingConnection != null;
if (value3) {
importDefault(dependencyMap[5]).popWithKey('family-center-request-modal');
defaultImport2 = importDefault(dependencyMap[5]);
pushLazy = defaultImport2.pushLazy;
value = require(dependencyMap[7]);
value = value(dependencyMap[6], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport2, [value, {userId: pendingConnection.teenId,
linkCode: pendingConnection.linkCode}, 'family-center-request-modal']);
value = true;
r0 = value;
} else {
r0 = value3;
}
return r0;
}
}
global.__d(_fun96789, 12620, [12621, 5117, 661, 683, 5118, 5080, 12622, 1962,
2]) /* metro module 12620, dependencies: [12621, 5117, 661, 683, 5118, 5080, 12622, 1962, 2] */;
@@ -1,50 +1,58 @@
/* Metro module 13443; source: modules/parent_tools/native/FamilyCenterParentalControlsContentAndSocial.tsx; dependencies: [31, 27, 661, 8224, 33, 9692, 1244, 1948, 13170, 2] */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import SettingLayout from '../../settings/native/renderer/SettingLayout.tsx'; /* Metro dependency 13170 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SettingsConstantsModule from '../../user_settings/core/native/SettingsConstants.tsx'; /* Metro dependency 8224 */
import * as SettingBuildersModule from '../../settings/native/renderer/SettingBuilders.tsx'; /* Metro dependency 9692 */
function _fun102232(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13633:6, offset: 0x022335ba, size: 203 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(27) /* metro dependency 27 */).View;
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_5 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsContentAndSocial.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsContentAndSocial.tsx');
exports.default = FamilyCenterParentalControlsContentAndSocial;
function FamilyCenterParentalControlsContentAndSocial() { // fn#102233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13633:304, offset: 0x02233685, size: 396 bytes, params: 1, frame: 27
const createList = SettingBuildersModule.createList;
const object2 = {};
const PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS = MobileSetting.PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS;
object2.settings = [PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS];
const intl = (IndexNativeModule).intl;
const format = intl.format;
const dliU4j = (IndexNativeModule).t.dliU4j;
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const EXPLICIT_MEDIA_REDACTION = HelpdeskArticles.EXPLICIT_MEDIA_REDACTION;
object2.subLabel = Reflect.apply(format, intl, [dliU4j, {learnMoreLink: Reflect.apply(getArticleURL, defaultImport,
[EXPLICIT_MEDIA_REDACTION])}]);
const items2 = [object2];
let string = intl.string;
const MeYuqs = (IndexNativeModule).t.MeYuqs;
const PARENTAL_CONTROLS_DIRECT_MESSAGES = MobileSetting.PARENTAL_CONTROLS_DIRECT_MESSAGES;
const PARENTAL_CONTROLS_MESSAGE_REQUESTS = MobileSetting.PARENTAL_CONTROLS_MESSAGE_REQUESTS;
items2[1] = {label: Reflect.apply(string, intl, [MeYuqs]), settings: [PARENTAL_CONTROLS_DIRECT_MESSAGES,
PARENTAL_CONTROLS_MESSAGE_REQUESTS]};
string = intl.string;
const XlGG9c = (IndexNativeModule).t.XlGG9c;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS;
items2[2] = {label: Reflect.apply(string, intl, [XlGG9c]), settings: [PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE,
PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS, PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS]};
return (
<View>
{((Component) => <Component node={Reflect.apply(createList, SettingBuildersModule,
[{sections: items2}])} />)(SettingLayout)}
</View>
);
}
}
function FamilyCenterParentalControlsContentAndSocial() { // fn#102233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13633:304, offset: 0x02233685, size: 396 bytes, params: 1, frame: 27
const settingBuildersModule = require(9692) /* metro dependency 9692: SettingBuilders */;
const createList = settingBuildersModule.createList;
const object = {};
const PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS = MobileSetting.PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS;
object.settings = [PARENTAL_CONTROLS_SENSITIVE_CONTENT_FILTERS];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const dliU4j = (require(1244) /* metro dependency 1244: indexNative */).t.dliU4j;
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const EXPLICIT_MEDIA_REDACTION = HelpdeskArticles.EXPLICIT_MEDIA_REDACTION;
object.subLabel = Reflect.apply(format, intl, [dliU4j, {learnMoreLink: Reflect.apply(getArticleURL, defaultImport,
[EXPLICIT_MEDIA_REDACTION])}]);
const items2 = [object];
let string = intl.string;
const MeYuqs = (require(1244) /* metro dependency 1244: indexNative */).t.MeYuqs;
const PARENTAL_CONTROLS_DIRECT_MESSAGES = MobileSetting.PARENTAL_CONTROLS_DIRECT_MESSAGES;
const PARENTAL_CONTROLS_MESSAGE_REQUESTS = MobileSetting.PARENTAL_CONTROLS_MESSAGE_REQUESTS;
items2[1] = {label: Reflect.apply(string, intl, [MeYuqs]), settings: [PARENTAL_CONTROLS_DIRECT_MESSAGES,
PARENTAL_CONTROLS_MESSAGE_REQUESTS]};
string = intl.string;
const XlGG9c = (require(1244) /* metro dependency 1244: indexNative */).t.XlGG9c;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS;
const PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS = MobileSetting.PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS;
items2[2] = {label: Reflect.apply(string, intl, [XlGG9c]), settings: [PARENTAL_CONTROLS_FRIEND_REQUESTS_EVERYONE,
PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_FRIENDS, PARENTAL_CONTROLS_FRIEND_REQUESTS_MUTUAL_GUILDS]};
return (
<View>
{((Component) => <Component node={Reflect.apply(createList, settingBuildersModule,
[{sections: items2}])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */)}
</View>
);
}
global.__d(_fun102232, 13443, [31, 27, 661, 8224, 33, 9692, 1244, 1948, 13170,
2]) /* metro module 13443, dependencies: [31, 27, 661, 8224, 33, 9692, 1244, 1948, 13170, 2] */;
@@ -1,74 +1,82 @@
/* Metro module 13444; source: modules/parent_tools/native/FamilyCenterParentalControlsDataAndPrivacy.tsx; dependencies: [31, 661, 8224, 33, 1244, 2224, 1948, 9692, 13170, 2] */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import SettingLayout from '../../settings/native/renderer/SettingLayout.tsx'; /* Metro dependency 13170 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SettingsConstantsModule from '../../user_settings/core/native/SettingsConstants.tsx'; /* Metro dependency 8224 */
import * as SettingBuildersModule from '../../settings/native/renderer/SettingBuilders.tsx'; /* Metro dependency 9692 */
function _fun102234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:6, offset: 0x02233811, size: 186 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(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_5 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsDataAndPrivacy.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsDataAndPrivacy.tsx');
exports.default = FamilyCenterParentalControlsDataAndPrivacy;
function FamilyCenterParentalControlsDataAndPrivacy() { // fn#102235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:289, offset: 0x022338cb, size: 102 bytes, params: 1, frame: 15
return ((Component) => <Component node={ReactModule.useMemo(_fun102237, [ReactModule.useMemo(_fun102236,
[])])} />)(SettingLayout);
function _fun102236() { // fn#102236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:360, offset: 0x02233931, size: 460 bytes, params: 1, frame: 27
let object = {};
let value = environment.__proto__;
const PARENTAL_CONTROLS_DATA_USAGE_STATISTICS = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_STATISTICS;
object.settings = [PARENTAL_CONTROLS_DATA_USAGE_STATISTICS];
const intl = (IndexNativeModule).intl;
let format = intl.format;
const Z5yJZy = (FamilyCenterMessages).Z5yJZy;
const defaultImport = HelpdeskUtils;
let getArticleURL = defaultImport.getArticleURL;
const DATA_PRIVACY_CONTROLS = HelpdeskArticles.DATA_PRIVACY_CONTROLS;
object.subLabel = Reflect.apply(format, intl, [Z5yJZy, {helpdeskArticle: Reflect.apply(getArticleURL, defaultImport,
[DATA_PRIVACY_CONTROLS])}]);
const items2 = [object];
object = {};
const PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION;
object.settings = [PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION];
format = intl.format;
const Imp6Ns = (FamilyCenterMessages).Imp6Ns;
value = defaultImport;
getArticleURL = value.getArticleURL;
const DATA_USED_FOR_RECOMMENDED = HelpdeskArticles.DATA_USED_FOR_RECOMMENDED;
object.subLabel = Reflect.apply(format, intl, [Imp6Ns, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[DATA_USED_FOR_RECOMMENDED])}]);
items2[1] = object;
object = {};
const PARENTAL_CONTROLS_DATA_USAGE_QUESTS = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_QUESTS;
object.settings = [PARENTAL_CONTROLS_DATA_USAGE_QUESTS];
format = intl.format;
const cnCK6b = (FamilyCenterMessages).cnCK6b;
value = defaultImport;
getArticleURL = value.getArticleURL;
let QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
object.subLabel = Reflect.apply(format, intl, [cnCK6b, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[QUESTS_PRIVACY_CONTROLS])}]);
items2[2] = object;
object = {};
const PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P;
object.settings = [PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P];
format = intl.format;
const property = (FamilyCenterMessages)['6mK5Pz'];
value = defaultImport;
getArticleURL = value.getArticleURL;
QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
object.subLabel = Reflect.apply(format, intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[QUESTS_PRIVACY_CONTROLS])}]);
items2[3] = object;
return items2;
}
function _fun102237() { // fn#102237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:1055, offset: 0x02233afd, size: 52 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (SettingBuildersModule).createList({sections: env0_0});
}
}
}
function FamilyCenterParentalControlsDataAndPrivacy() { // fn#102235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:289, offset: 0x022338cb, size: 102 bytes, params: 1, frame: 15
const binding = env0_3;
return ((Component) => <Component node={binding.useMemo(_fun102237, [binding.useMemo(_fun102236,
[])])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
}
function _fun102236() { // fn#102236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:360, offset: 0x02233931, size: 460 bytes, params: 1, frame: 27
let object2 = {};
let value = environment.__proto__;
const PARENTAL_CONTROLS_DATA_USAGE_STATISTICS = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_STATISTICS;
object2.settings = [PARENTAL_CONTROLS_DATA_USAGE_STATISTICS];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let format = intl.format;
const Z5yJZy = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Z5yJZy;
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
let getArticleURL = defaultImport.getArticleURL;
const DATA_PRIVACY_CONTROLS = HelpdeskArticles.DATA_PRIVACY_CONTROLS;
object2.subLabel = Reflect.apply(format, intl, [Z5yJZy, {helpdeskArticle: Reflect.apply(getArticleURL,
defaultImport, [DATA_PRIVACY_CONTROLS])}]);
const items2 = [object2];
object2 = {};
const PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION;
object2.settings = [PARENTAL_CONTROLS_DATA_USAGE_PERSONALIZATION];
format = intl.format;
const Imp6Ns = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Imp6Ns;
value = defaultImport;
getArticleURL = value.getArticleURL;
const DATA_USED_FOR_RECOMMENDED = HelpdeskArticles.DATA_USED_FOR_RECOMMENDED;
object2.subLabel = Reflect.apply(format, intl, [Imp6Ns, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[DATA_USED_FOR_RECOMMENDED])}]);
items2[1] = object2;
object2 = {};
const PARENTAL_CONTROLS_DATA_USAGE_QUESTS = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_QUESTS;
object2.settings = [PARENTAL_CONTROLS_DATA_USAGE_QUESTS];
format = intl.format;
const cnCK6b = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).cnCK6b;
value = defaultImport;
getArticleURL = value.getArticleURL;
let QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
object2.subLabel = Reflect.apply(format, intl, [cnCK6b, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[QUESTS_PRIVACY_CONTROLS])}]);
items2[2] = object2;
object2 = {};
const PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P = MobileSetting.PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P;
object2.settings = [PARENTAL_CONTROLS_DATA_USAGE_QUESTS_3P];
format = intl.format;
const property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6mK5Pz'];
value = defaultImport;
getArticleURL = value.getArticleURL;
QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
object2.subLabel = Reflect.apply(format, intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL, value,
[QUESTS_PRIVACY_CONTROLS])}]);
items2[3] = object2;
return items2;
}
function _fun102237() { // fn#102237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13634:1055, offset: 0x02233afd, size: 52 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (require(9692) /* metro dependency 9692: SettingBuilders */).createList({sections: env0_0});
}
global.__d(_fun102234, 13444, [31, 661, 8224, 33, 1244, 2224, 1948, 9692, 13170,
2]) /* metro module 13444, dependencies: [31, 661, 8224, 33, 1244, 2224, 1948, 9692, 13170, 2] */;
@@ -1,96 +1,116 @@
/* Metro module 13445; source: modules/parent_tools/native/FamilyCenterParentalControlsScreenTime.tsx; dependencies: [27, 661, 33, 4501, 697, 10909, 6238, 4573, 1244, 2224, 13406, 1484, 6231, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as FamilyCenterRestrictedHoursUtilsModule from '../FamilyCenterRestrictedHoursUtils.tsx'; /* Metro dependency 10909 */
import * as UseSelectedTeenUserModule from '../hooks/useSelectedTeenUser.tsx'; /* Metro dependency 13406 */
function _fun102238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:6, offset: 0x02233b31, size: 300 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.header = {paddingTop: PX_24};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object2.container = object4;
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsScreenTime.tsx');
exports.default = FamilyCenterParentalControlsScreenTime;
}
function ScheduleRuleRow({rule, teenId, navigation, readOnly}) { // fn#102239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:308, offset: 0x02233c5d, size: 302 bytes, params: 2, frame: 24
readOnly = !(readOnly === undefined) && readOnly;
const scheduleRuleDateRange = (require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).getScheduleRuleDateRange(rule);
const familyCenterRestrictedHoursUtilsModule = require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */;
const value5 = familyCenterRestrictedHoursUtilsModule.formatDays(rule.days);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const enabled = rule.enabled;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const defaultImport = importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */;
return (
<TableRow
label={scheduleRuleDateRange}
subLabel={value5}
trailing={<Text variant="text-sm/medium" color="text-subtle">{enabled ? Reflect.apply(string, intl,
[defaultImport['8vDHRq']]) : Reflect.apply(string, intl, [defaultImport['4z9fN+']])}</Text>}
arrow={!readOnly}
onPress={readOnly ? undefined : _fun102240}
/>
);
}
function FamilyCenterParentalControlsScreenTime({readOnly}) { // fn#102241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:881, offset: 0x02233dca, size: 413 bytes, params: 2, frame: 26
var r0;
var Text;
var intl;
if (readOnly !== undefined) {
}
const styles = useStyles();
const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
if (value4?.id == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.container};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'variant': 'text-sm/semibold', 'color': 'text-subtle', style: styles.header};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <View {...viewBindingProps}><Text {...textProps}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['72CmJd'])}</Text>{((TableRowGroup) => <TableRowGroup hasIcons={false}>{(require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).sortRulesByStartTime((value4 == null || value4.restrictedSchedule == null ? undefined : value4.restrictedSchedule.rules) ?? []).map(_fun102242)}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}</View>;
}
return r0;
}
function _fun102240() { // fn#102240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:691, offset: 0x02233d8b, size: 63 bytes, params: 1, frame: 15
const value = environment;
const navigationBinding = navigation;
const navigate = navigationBinding.navigate;
const FAMILY_CENTER_SCHEDULE_DOWNTIME = UserSettingsSections.FAMILY_CENTER_SCHEDULE_DOWNTIME;
object = {};
const PX_24 = (Native).space.PX_24;
object.header = {paddingTop: PX_24};
const object3 = {};
object3.teenId = teenId;
const object4 = {};
copyDataProperties(object4, rule, value);
object3.rule = object4;
return Reflect.apply(navigate, navigationBinding, [FAMILY_CENTER_SCHEDULE_DOWNTIME, object3]);
}
const PX_16 = (Native).space.PX_16;
object3.paddingHorizontal = PX_16;
const PX_8 = (Native).space.PX_8;
object3.gap = PX_8;
object.container = object3;
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterParentalControlsScreenTime.tsx');
exports.default = FamilyCenterParentalControlsScreenTime;
function ScheduleRuleRow({rule, teenId, navigation, readOnly}) { // fn#102239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:308, offset: 0x02233c5d, size: 302 bytes, params: 2, frame: 24
readOnly = !(readOnly === undefined) && readOnly;
const scheduleRuleDateRange = (FamilyCenterRestrictedHoursUtilsModule).getScheduleRuleDateRange(rule);
const value5 = FamilyCenterRestrictedHoursUtilsModule.formatDays(rule.days);
const TableRow = (TableRowNativeModule).TableRow;
const Text = (TextModule).Text;
const enabled = rule.enabled;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const defaultImport = FamilyCenterMessages;
return (
<TableRow
label={scheduleRuleDateRange}
subLabel={value5}
trailing={<Text variant="text-sm/medium" color="text-subtle">
{enabled ? Reflect.apply(string, intl, [defaultImport['8vDHRq']]) : Reflect.apply(string, intl,
[defaultImport['4z9fN+']])}
</Text>}
arrow={!readOnly}
onPress={readOnly ? undefined : _fun102240}
/>
);
function _fun102240() { // fn#102240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:691, offset: 0x02233d8b, size: 63 bytes, params: 1, frame: 15
const value = environment;
const navigationBinding = navigation;
const navigate = navigationBinding.navigate;
const FAMILY_CENTER_SCHEDULE_DOWNTIME = UserSettingsSections.FAMILY_CENTER_SCHEDULE_DOWNTIME;
const object = {};
object.teenId = teenId;
const object2 = {};
copyDataProperties(object2, rule, value);
object.rule = object2;
return Reflect.apply(navigate, navigationBinding, [FAMILY_CENTER_SCHEDULE_DOWNTIME, object]);
}
}
function FamilyCenterParentalControlsScreenTime({readOnly}) { // fn#102241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:881, offset: 0x02233dca, size: 413 bytes, params: 2, frame: 26
var r0;
var Text;
var intl;
if (readOnly !== undefined) {
}
const styles = useStyles();
const value4 = (UseSelectedTeenUserModule).useSelectedTeenUser();
const env0_1 = (UseNavigationNativeModule).useNavigation();
if (value4?.id == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.container};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'variant': 'text-sm/semibold', 'color': 'text-subtle', style: styles.header};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = (
<View {...viewBindingProps}>
<Text {...textProps}>
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['72CmJd'])}
</Text>
{((TableRowGroup) => <TableRowGroup hasIcons={false}>{(require(10909) /* metro dependency 10909: FamilyCenterRestrictedHoursUtils */).sortRulesByStartTime((value4 == null || value4.restrictedSchedule == null ? undefined : value4.restrictedSchedule.rules) ?? []).map(_fun102242)}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}
</View>
);
}
return r0;
function _fun102242(a0) { // fn#102242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:1383, offset: 0x02233f67, size: 68 bytes, params: 2, frame: 16
return (
<ScheduleRuleRow
rule={a0}
teenId={id}
navigation={env0_1}
readOnly={readOnly}
key={a0.ruleId}
/>
);
}
}
function _fun102242(a0) { // fn#102242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13635:1383, offset: 0x02233f67, size: 68 bytes, params: 2, frame: 16
return (
<ScheduleRuleRow
rule={a0}
teenId={id}
navigation={env0_1}
readOnly={readOnly}
key={a0.ruleId}
/>
);
}
global.__d(_fun102238, 13445, [27, 661, 33, 4501, 697, 10909, 6238, 4573, 1244, 2224, 13406, 1484, 6231,
2]) /* metro module 13445, dependencies: [27, 661, 33, 4501, 697, 10909, 6238, 4573, 1244, 2224, 13406, 1484, 6231, 2] */;
@@ -1,148 +1,194 @@
/* Metro module 13437; source: modules/parent_tools/native/FamilyCenterPendingLinks.tsx; dependencies: [31, 27, 5117, 33, 4501, 697, 8170, 12627, 1244, 2224, 4573, 8171, 5278, 5080, 13438, 1962, 1305, 8096, 13439, 13436, 13440, 13431, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
import FamilyCenterLinkRow from './FamilyCenterLinkRow.tsx'; /* Metro dependency 13431 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
function _fun102183(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:6, offset: 0x0223107d, size: 486 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).UserLinkStatus;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
const object4 = {'display': 'flex', 'justifyContent': 'center'};
const object3 = {'display': 'flex', 'justifyContent': 'center'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_8 = Reflect.apply(createStyles, value, [{container: {marginTop: 24}, content: object4,
object3.backgroundColor = BACKGROUND_BASE_LOW;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_8 = Reflect.apply(createStyles, value, [{container: {marginTop: 24}, content: object3,
header: {marginBottom: 10}}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
object2 = {};
const object6 = {'backgroundColor': null, 'tintColor': null, 'borderRadius': null, 'alignItems': 'center',
object = {};
const object5 = {'backgroundColor': null, 'tintColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center', 'height': 32, 'width': 32};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object6.tintColor = INTERACTIVE_TEXT_DEFAULT;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.actionButton = object6;
object5.tintColor = INTERACTIVE_TEXT_DEFAULT;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.actionButton = object5;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.actionButtonFirst = {marginRight: PX_8};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterPendingLinks.tsx');
object.actionButtonFirst = {marginRight: PX_8};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterPendingLinks.tsx');
exports.default = FamilyCenterPendingLinks;
}
function FamilyCenterPendingLinkRow({otherUser}) { // fn#102184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:687, offset: 0x02231263, size: 941 bytes, params: 2, frame: 28
var r9;
var r4;
var jsxRuntimeEnv0_7Binding;
var value5;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
var jc1Ip7;
var object;
var items2;
var property;
var object2;
var oUpA6X;
var object4;
const styles = useStyles();
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
const value4 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasMaxConnections();
if (otherUser === undefined) {
return null;
}
if (value3) {
formatToPlainString = intl.formatToPlainString;
oUpA6X = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oUpA6X;
object4 = {};
object4.name = otherUser?.toString();
r4 = <PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(formatToPlainString, intl,
[oUpA6X,
object4])} onPress={onPress_102185} style={styles.actionButton}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</PressableOpacity>;
} else {
jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
value5 = null;
if (value4) {
r9 = value5;
} else {
formatToPlainString = intl.formatToPlainString;
jc1Ip7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).jc1Ip7;
object = {};
object.name = value5 == otherUser ? undefined : otherUser.toString();
r9 = <PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(formatToPlainString,
intl,
[jc1Ip7, object])} onPress={onPress_102186} style={[styles.actionButton,
styles.actionButtonFirst]}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(8096) /* metro dependency 8096 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</PressableOpacity>;
function FamilyCenterPendingLinkRow({otherUser}) { // fn#102184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:687, offset: 0x02231263, size: 941 bytes, params: 2, frame: 28
var r9;
var r4;
var jsxRuntimeEnv0_7Binding;
var value5;
const PressableOpacity = (PressablesModule).PressableOpacity;
const intl = (IndexNativeModule).intl;
var formatToPlainString;
var jc1Ip7;
var object3;
var items2;
var property;
var object5;
var oUpA6X;
var object6;
const styles = useStyles();
const value3 = (UseIsInAdultAgeGroup)();
const value4 = (UseUserLinksModule).useHasMaxConnections();
if (otherUser === undefined) {
return null;
}
items2 = [r9];
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4GtllP'];
object2 = {};
object2.name = value5 == otherUser ? undefined : otherUser.toString();
items2[1] = <PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(formatToPlainString,
intl, [property,
object2])} onPress={onPress_102187} style={styles.actionButton}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</PressableOpacity>;
r4 = <>{items2}</>;
if (value3) {
formatToPlainString = intl.formatToPlainString;
oUpA6X = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).oUpA6X;
object6 = {};
object6.name = otherUser?.toString();
r4 = (
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [oUpA6X, object6])}
onPress={onPress_102185}
style={styles.actionButton}
>
{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</PressableOpacity>
);
} else {
jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
value5 = null;
if (value4) {
r9 = value5;
} else {
formatToPlainString = intl.formatToPlainString;
jc1Ip7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).jc1Ip7;
object3 = {};
object3.name = value5 == otherUser ? undefined : otherUser.toString();
r9 = (
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [jc1Ip7, object3])}
onPress={onPress_102186}
style={[styles.actionButton, styles.actionButtonFirst]}
>
{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(8096) /* metro dependency 8096 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</PressableOpacity>
);
}
items2 = [r9];
formatToPlainString = intl.formatToPlainString;
property = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['4GtllP'];
object5 = {};
object5.name = value5 == otherUser ? undefined : otherUser.toString();
items2[1] = (
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [property, object5])}
onPress={onPress_102187}
style={styles.actionButton}
>
{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} disableColor source={importDefault(13436) /* metro dependency 13436 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</PressableOpacity>
);
r4 = (
<>
{items2}
</>
);
}
return ((Component) => <Component otherUser={otherUser} actions={r4} />)(FamilyCenterLinkRow);
function FamilyCenterPendingLinkRowOnPress() { // fn#102185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:995, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x02231610, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[20], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
function FamilyCenterPendingLinkRowOnPress_102186() { // fn#102186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:1361, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x02231667, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[14], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
function FamilyCenterPendingLinkRowOnPress_102187() { // fn#102187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:1730, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x022316be, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[18], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
}
return ((Component) => <Component otherUser={otherUser} actions={r4} />)(importDefault(13431) /* metro dependency 13431: FamilyCenterLinkRow */);
}
function FamilyCenterPendingLinks() { // fn#102188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:2054, offset: 0x02231715, size: 361 bytes, params: 1, frame: 25
const styles = useStyles();
const useUserLinksModule = require(8170) /* metro dependency 8170: useUserLinks */;
const useUsersForLinkStatus = useUserLinksModule.useUsersForLinkStatus;
const PENDING = UserLinkStatus.PENDING;
const value2 = Reflect.apply(useUsersForLinkStatus, useUserLinksModule, [PENDING]);
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let formatToPlainString = intl.formatToPlainString;
const IkAgkG = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IkAgkG;
const value3 = Reflect.apply(formatToPlainString, intl, [IkAgkG, {count: value2.length}]);
formatToPlainString = intl.formatToPlainString;
const Q8XnAa = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Q8XnAa;
({}).count = value2.length;
return value2.length === 0 ? null : <View style={styles.container}>{((Text) => <Text style={styles.header} variant="eyebrow" color="text-default">{Reflect.apply(useAgeSpecificText,
useAgeSpecificTextModule, [value3, Reflect.apply(formatToPlainString, intl, [Q8XnAa,
viewBindingProps])])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}<View style={styles.content}>{value2.map(_fun102189)}</View></View>;
}
function FamilyCenterPendingLinks() { // fn#102188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:2054, offset: 0x02231715, size: 361 bytes, params: 1, frame: 25
const styles = useStyles();
const useUsersForLinkStatus = UseUserLinksModule.useUsersForLinkStatus;
const PENDING = UserLinkStatus.PENDING;
const value2 = Reflect.apply(useUsersForLinkStatus, UseUserLinksModule, [PENDING]);
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
let formatToPlainString = intl.formatToPlainString;
const IkAgkG = (FamilyCenterMessages).IkAgkG;
const value3 = Reflect.apply(formatToPlainString, intl, [IkAgkG, {count: value2.length}]);
formatToPlainString = intl.formatToPlainString;
const Q8XnAa = (FamilyCenterMessages).Q8XnAa;
({}).count = value2.length;
return (
value2.length === 0
? null
: (
<View style={styles.container}>
{((Text) => <Text style={styles.header} variant="eyebrow" color="text-default">{Reflect.apply(useAgeSpecificText,
UseAgeSpecificTextModule, [value3, Reflect.apply(formatToPlainString, intl, [Q8XnAa,
viewBindingProps])])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
<View style={styles.content}>
{value2.map(_fun102189)}
</View>
</View>
)
);
function _fun102189(a0) { // fn#102189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:2484, offset: 0x0223187e, size: 61 bytes, params: 2, frame: 16
const value = environment.__proto__;
return <FamilyCenterPendingLinkRow otherUser={a0} key={'pending-' + a0.id} />;
}
function FamilyCenterPendingLinkRowOnPress() { // fn#102185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:995, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x02231610, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[20], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
}
function FamilyCenterPendingLinkRowOnPress_102186() { // fn#102186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:1361, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x02231667, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[14], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
function FamilyCenterPendingLinkRowOnPress_102187() { // fn#102187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:1730, owner: FamilyCenterPendingLinkRow.onPress, offset: 0x022316be, size: 87 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[13]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[15]);
value = value(dependencyMap[18], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]);
}
function _fun102189(a0) { // fn#102189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13627:2484, offset: 0x0223187e, size: 61 bytes, params: 2, frame: 16
const value = environment.__proto__;
return <FamilyCenterPendingLinkRow otherUser={a0} key={'pending-' + a0.id} />;
}
global.__d(_fun102183, 13437, [31, 27, 5117, 33, 4501, 697, 8170, 12627, 1244, 2224, 4573, 8171, 5278, 5080, 13438,
1962, 1305, 8096, 13439, 13436, 13440, 13431,
2]) /* metro module 13437, dependencies: [31, 27, 5117, 33, 4501, 697, 8170, 12627, 1244, 2224, 4573, 8171, 5278, 5080, 13438, 1962, 1305, 8096, 13439, 13436, 13440, 13431, 2] */;
@@ -1,56 +1,74 @@
/* Metro module 13433; source: modules/parent_tools/native/FamilyCenterRequestorDetails.tsx; dependencies: [31, 27, 33, 4501, 1305, 697, 8170, 13405, 4573, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import FamilyCenterUsernameHeader from './FamilyCenterUsernameHeader.tsx'; /* Metro dependency 13405 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
function _fun102165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13623:6, offset: 0x02230207, size: 366 bytes, params: 8, frame: 24
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {container: {'display': 'flex', 'flexDirection': 'row', 'flexGrow': 1, 'flexShrink': 1}};
const object5 = {};
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
object = {container: {'display': 'flex', 'flexDirection': 'row', 'flexGrow': 1, 'flexShrink': 1}};
const object2 = {};
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
const AvatarSizes = (NativeModule).AvatarSizes;
const NORMAL = AvatarSizes.NORMAL;
object5.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object4.avatar = object5;
const object6 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingLeft = PX_12;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.paddingRight = PX_4;
object6.flexGrow = 1;
object6.flexShrink = 1;
object4.detailsContainer = object6;
const env0_6 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterRequestorDetails.tsx');
object2.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.avatar = object2;
const object3 = {};
const PX_12 = (Native).space.PX_12;
object3.paddingLeft = PX_12;
const PX_4 = (Native).space.PX_4;
object3.paddingRight = PX_4;
object3.flexGrow = 1;
object3.flexShrink = 1;
object.detailsContainer = object3;
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterRequestorDetails.tsx');
exports.default = FamilyCenterRequestorDetails;
}
function FamilyCenterRequestorDetails({otherUser, status}) { // fn#102166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13623:585, offset: 0x02230375, size: 277 bytes, params: 2, frame: 23
const styles = useStyles();
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useLinkTimestampText(otherUser.id, status);
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const avatar = <Avatar avatarStyle={styles.avatar} user={otherUser} guildId={undefined} disablePlaceholder avatarDecoration={otherUser.avatarDecoration} />;
let value = importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */;
value = ((Component) => <Component user={otherUser} />)(value);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.container}>
{avatar}
<View style={styles.detailsContainer}>
{value}
<Text variant="text-xs/semibold" color="text-muted">
{value2}
</Text>
function FamilyCenterRequestorDetails({otherUser, status}) { // fn#102166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13623:585, offset: 0x02230375, size: 277 bytes, params: 2, frame: 23
const styles = useStyles();
const value2 = (UseUserLinksModule).useLinkTimestampText(otherUser.id, status);
const Avatar = (NativeModule).Avatar;
const avatar = (
<Avatar
avatarStyle={styles.avatar}
user={otherUser}
guildId={undefined}
disablePlaceholder
avatarDecoration={otherUser.avatarDecoration}
/>
);
let value = FamilyCenterUsernameHeader;
value = ((Component) => <Component user={otherUser} />)(value);
const Text = (TextModule).Text;
return (
<View style={styles.container}>
{avatar}
<View style={styles.detailsContainer}>
{value}
<Text variant="text-xs/semibold" color="text-muted">
{value2}
</Text>
</View>
</View>
</View>
);
);
}
}
global.__d(_fun102165, 13433, [31, 27, 33, 4501, 1305, 697, 8170, 13405, 4573,
2]) /* metro module 13433, dependencies: [31, 27, 33, 4501, 1305, 697, 8170, 13405, 4573, 2] */;
@@ -1,93 +1,123 @@
/* Metro module 13425; source: modules/parent_tools/native/FamilyCenterRequestsPage.tsx; dependencies: [31, 27, 5117, 9734, 33, 4501, 697, 8170, 8171, 12627, 1244, 2224, 4573, 9737, 6766, 6618, 13426, 13428, 13437, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import FamilyCenterLinkingBanner from './FamilyCenterLinkingBanner.tsx'; /* Metro dependency 13426 */
import FamilyCenterAcceptedLinks from './FamilyCenterAcceptedLinks.tsx'; /* Metro dependency 13428 */
import FamilyCenterPendingLinks from './FamilyCenterPendingLinks.tsx'; /* Metro dependency 13437 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as ConstantsModule from '../../self_mod/Constants.tsx'; /* Metro dependency 9734 */
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
function _fun102142(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:6, offset: 0x0222e91b, size: 558 bytes, params: 8, frame: 25
var object3;
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.ScrollView;
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
const env0_5 = value.MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS;
const env0_6 = value.MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const env0_7 = (require(9734) /* metro dependency 9734: Constants */).THROUGHLINE_URL;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
const object4 = {display: 'flex'};
const object2 = {display: 'flex'};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.paddingTop = PX_12;
object2.paddingTop = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.marginTop = PX_12;
object2.marginTop = PX_12;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderTopColor = BORDER_SUBTLE;
object4.borderTopWidth = 1;
const env0_10 = Reflect.apply(createStyles, value, [{container: object4}]);
object2.borderTopColor = BORDER_SUBTLE;
object2.borderTopWidth = 1;
const env0_10 = Reflect.apply(createStyles, value, [{container: object2}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
object3 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.container = {display: 'flex', marginTop: PX_16};
object.container = {display: 'flex', marginTop: PX_16};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.supportHeader = {marginBottom: PX_4};
const env0_11 = Reflect.apply(createStyles, value, [object3]);
object.supportHeader = {marginBottom: PX_4};
const env0_11 = Reflect.apply(createStyles, value, [object]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object5 = {};
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object6.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingBottom = PX_16;
const env0_13 = Reflect.apply(createStyles, value, [{scrollView: {flex: 1}, container: object5}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterRequestsPage.tsx');
object6.paddingBottom = PX_16;
const env0_13 = Reflect.apply(createStyles, value, [{scrollView: {flex: 1}, container: object6}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterRequestsPage.tsx');
exports.default = FamilyCenterRequestsPage;
function FamilyCenterMaxConnectionsBlurb() { // fn#102143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:460, offset: 0x0222eb49, size: 305 bytes, params: 1, frame: 26
const styles = useStyles();
const value2 = (UseUserLinksModule).useHasMaxConnections();
const r11 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)() ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
const intl = (IndexNativeModule).intl;
let formatToPlainString = intl.formatToPlainString;
const value3 = Reflect.apply(formatToPlainString, intl,
[(FamilyCenterMessages)['1/PzIj'], {maxConnections: r11}]);
formatToPlainString = intl.formatToPlainString;
const RcTgiE = (FamilyCenterMessages).RcTgiE;
return (
value2
? (
<View style={styles.container}>
{((Text) => <Text variant="text-xxs/medium" color="text-muted">{Reflect.apply(useAgeSpecificText,
UseAgeSpecificTextModule, [value3, Reflect.apply(formatToPlainString, intl, [RcTgiE,
{maxConnections: r11}])])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</View>
)
: null
);
}
function FamilyCenterHelpLineInfo() { // fn#102144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1018, offset: 0x0222ec7a, size: 425 bytes, params: 1, frame: 25
const intl = (IndexNativeModule).intl;
const styles = useStyles();
const r9 = (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowHelplineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['KOwsf/'],
{helpLink: 'https://support.discord.com/hc/articles/7925648993943-Crisis-Text-Line'}) : (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowThroughlineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6tsC8u'],
{helpLink: THROUGHLINE_URL}) : null;
const value7 = null;
return (
value7 == r9
? value7
: (
<View style={styles.container}>
{((Text) => <Text style={styles.supportHeader} variant="heading-sm/semibold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7/tVhv'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
{((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-xs/medium" color="text-muted">{r9}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)}
</View>
)
);
}
function FamilyCenterRequestsPage() { // fn#102145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1814, offset: 0x0222ee23, size: 254 bytes, params: 1, frame: 26
const styles = useStyles();
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
return (
<ScrollView style={styles.scrollView}>
<SafeAreaPaddingView bottom>
<View style={styles.container}>
{((Component) => <Component />)(FamilyCenterLinkingBanner)}
{((Component) => <Component />)(FamilyCenterAcceptedLinks)}
{((Component) => <Component />)(FamilyCenterPendingLinks)}
<FamilyCenterMaxConnectionsBlurb />
<FamilyCenterHelpLineInfo />
</View>
</SafeAreaPaddingView>
</ScrollView>
);
}
}
function FamilyCenterMaxConnectionsBlurb() { // fn#102143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:460, offset: 0x0222eb49, size: 305 bytes, params: 1, frame: 26
const styles = useStyles();
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasMaxConnections();
const r11 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)() ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let formatToPlainString = intl.formatToPlainString;
const value3 = Reflect.apply(formatToPlainString, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1/PzIj'], {maxConnections: r11}]);
formatToPlainString = intl.formatToPlainString;
const RcTgiE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RcTgiE;
return value2 ? <View style={styles.container}>{((Text) => <Text variant="text-xxs/medium" color="text-muted">{Reflect.apply(useAgeSpecificText,
useAgeSpecificTextModule, [value3, Reflect.apply(formatToPlainString, intl, [RcTgiE,
{maxConnections: r11}])])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View> : null;
}
function FamilyCenterHelpLineInfo() { // fn#102144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1018, offset: 0x0222ec7a, size: 425 bytes, params: 1, frame: 25
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r9 = (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowHelplineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['KOwsf/'],
{helpLink: 'https://support.discord.com/hc/articles/7925648993943-Crisis-Text-Line'}) : (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowThroughlineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6tsC8u'],
{helpLink: THROUGHLINE_URL}) : null;
const value7 = null;
return value7 == r9 ? value7 : <View style={styles.container}>{((Text) => <Text style={styles.supportHeader} variant="heading-sm/semibold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7/tVhv'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}{((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-xs/medium" color="text-muted">{r9}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)}</View>;
}
function FamilyCenterRequestsPage() { // fn#102145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1814, offset: 0x0222ee23, size: 254 bytes, params: 1, frame: 26
const styles = useStyles();
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
return (
<ScrollView style={styles.scrollView}>
<SafeAreaPaddingView bottom>
<View style={styles.container}>
{((Component) => <Component />)(importDefault(13426) /* metro dependency 13426: FamilyCenterLinkingBanner */)}
{((Component) => <Component />)(importDefault(13428) /* metro dependency 13428: FamilyCenterAcceptedLinks */)}
{((Component) => <Component />)(importDefault(13437) /* metro dependency 13437: FamilyCenterPendingLinks */)}
<FamilyCenterMaxConnectionsBlurb />
<FamilyCenterHelpLineInfo />
</View>
</SafeAreaPaddingView>
</ScrollView>
);
}
global.__d(_fun102142, 13425, [31, 27, 5117, 9734, 33, 4501, 697, 8170, 8171, 12627, 1244, 2224, 4573, 9737, 6766,
6618, 13426, 13428, 13437,
2]) /* metro module 13425, dependencies: [31, 27, 5117, 9734, 33, 4501, 697, 8170, 8171, 12627, 1244, 2224, 4573, 9737, 6766, 6618, 13426, 13428, 13437, 2] */;
@@ -1,299 +1,370 @@
/* Metro module 13419; source: modules/parent_tools/native/FamilyCenterSettingsControls.tsx; dependencies: [31, 27, 5117, 661, 33, 4501, 697, 4573, 1244, 2224, 5080, 13420, 1962, 13422, 6238, 8170, 13406, 5188, 1484, 13423, 4572, 6231, 4578, 5177, 4603, 13348, 5118, 13424, 2] */
import ChannelActionCreators from '../../../actions/ChannelActionCreators.tsx'; /* Metro dependency 4603 */
import UseScheduleTimeControlsRowProps from '../hooks/useScheduleTimeControlsRowProps.tsx'; /* Metro dependency 13423 */
import UseUserIsTeenAgeGroup from '../hooks/useUserIsTeenAgeGroup.tsx'; /* Metro dependency 13424 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
import * as LayerActionCreatorsModule from '../../../actions/LayerActionCreators.tsx'; /* Metro dependency 5177 */
import * as FamilyCenterV3ExperimentModule from '../FamilyCenterV3Experiment.tsx'; /* Metro dependency 5188 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
import * as ParentalControlledUserSettingsModule from '../../user_settings/family_center/ParentalControlledUserSettings.tsx'; /* Metro dependency 13348 */
import * as UseSelectedTeenUserModule from '../hooks/useSelectedTeenUser.tsx'; /* Metro dependency 13406 */
import * as SpendingLimitDisplayModule from '../SpendingLimitDisplay.tsx'; /* Metro dependency 13422 */
function _fun102091(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:6, offset: 0x0222c2f9, size: 464 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).FamilyCenterSubPages;
const env0_6 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.teenControlsContainer = {gap: PX_16};
object.teenControlsContainer = {gap: PX_16};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.controlledSettingsHeader = {gap: PX_4};
object.controlledSettingsHeader = {gap: PX_4};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.parentalControlsContainer = {gap: PX_4};
object.parentalControlsContainer = {gap: PX_4};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.controlsGroup = {marginTop: PX_8};
object.controlsGroup = {marginTop: PX_8};
const ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
object2.subLabelWarning = {color: ICON_FEEDBACK_WARNING};
object.subLabelWarning = {color: ICON_FEEDBACK_WARNING};
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
object2.subLabelCritical = {color: TEXT_FEEDBACK_CRITICAL};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterSettingsControls.tsx');
object.subLabelCritical = {color: TEXT_FEEDBACK_CRITICAL};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterSettingsControls.tsx');
exports.default = FamilyCenterSettingsControls;
}
function SpendingLimitRow({cap, teenId}) { // fn#102092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:575, offset: 0x0222c4c9, size: 221 bytes, params: 2, frame: 22
const styles = useStyles();
const {trailing,
subLabel} = getSpendingLimitRowProps((require(13422) /* metro dependency 13422: SpendingLimitDisplay */).useSpendingLimitDisplayState(cap),
styles);
const value5 = teenId == null;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<TableRow
label={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).gMeekL)}
trailing={trailing}
subLabel={subLabel}
onPress={value5 ? undefined : _fun102096}
arrow={!value5}
disabled={value5}
/>
);
}
function FamilyCenterSettingsTeenControls() { // fn#102097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:1793, offset: 0x0222c869, size: 907 bytes, params: 1, frame: 36
var r5;
var TableRowGroup;
var items3;
var TableRow;
var object9;
var length;
const value2 = undefined;
const styles = useStyles();
const value3 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds();
const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
const value5 = (require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */).useIsFamilyCenterV3Enabled({location: 'FamilyCenterSettingsControls'});
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const r6 = (value4 == null || value4.restrictedSchedule == null ? value2 : value4.restrictedSchedule.rules) ?? [];
const value6 = (require(13422) /* metro dependency 13422: SpendingLimitDisplay */).useSpendingLimitFromUserSettings();
const {subLabel,
trailing} = (importDefault(13423) /* metro dependency 13423: useScheduleTimeControlsRowProps */)(r6);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const text = <Text variant="text-sm/semibold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ahKIJO)}</Text>;
const format = intl.format;
const X9rW0j = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).X9rW0j;
const stack = <Stack2 style={styles.controlledSettingsHeader}>{text}<Text variant="text-sm/medium" color="text-muted">{Reflect.apply(format,
intl, [X9rW0j, {openSettingsHook: openSettingsHook}])}</Text></Stack2>;
if (value5) {
var viewBindingProps = {style: styles.controlsGroup};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items3 = [<SpendingLimitRow cap={value6} />];
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
var tableRowProps = {label: intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP']),
subLabel: subLabel, trailing: trailing};
length = r6.length;
tableRowProps.onPress = length > 0 ? _fun102100 : value2;
length = r6.length;
tableRowProps.arrow = length > 0;
items3[1] = <TableRow {...tableRowProps} />;
r5 = <View {...viewBindingProps}><TableRowGroup hasIcons={false}>{items3}</TableRowGroup></View>;
} else {
r5 = value5;
}
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<Stack style={styles.teenControlsContainer}>
{stack}
{r5}
<Button
text={intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).w0JA3P,
{count: value3.length})}
onPress={onPress_102101}
shrink
grow={false}
variant="secondary"
size="sm"
function SpendingLimitRow({cap, teenId}) { // fn#102092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:575, offset: 0x0222c4c9, size: 221 bytes, params: 2, frame: 22
const styles = useStyles();
const {trailing,
subLabel} = getSpendingLimitRowProps((SpendingLimitDisplayModule).useSpendingLimitDisplayState(cap),
styles);
const value5 = teenId == null;
const TableRow = (TableRowNativeModule).TableRow;
const intl = (IndexNativeModule).intl;
return (
<TableRow
label={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).gMeekL)}
trailing={trailing}
subLabel={subLabel}
onPress={value5 ? undefined : _fun102096}
arrow={!value5}
disabled={value5}
/>
</Stack>
);
}
);
function getSpendingLimitRowProps(a0, a1) { // fn#102093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:608, owner: SpendingLimitRow.getSpendingLimitRowProps, offset: 0x0222c5a6, size: 467 bytes, params: 3, frame: 23
var environment;
var object;
var value;
const intl = (IndexNativeModule).intl;
const getSpendingLimitRowPropsRenderTrailing2 = getSpendingLimitRowPropsRenderTrailing;
const renderSubLabel2 = renderSubLabel;
const kind = a0.kind;
if (kind === 'off') {
object = {};
value = environment.__proto__;
object.trailing = getSpendingLimitRowPropsRenderTrailing2(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).YEnpaj));
return object;
}
if (kind === 'on') {
object = {};
object.trailing = getSpendingLimitRowPropsRenderTrailing2(a0.monthlyText);
return object;
}
if (kind === 'close-to-limit') {
object = {};
object.trailing = getSpendingLimitRowPropsRenderTrailing2(a0.monthlyText);
object.subLabel = renderSubLabel2(a0.remainingText, a1.subLabelWarning);
return object;
}
if (kind === 'spent') {
object = {};
object.trailing = getSpendingLimitRowPropsRenderTrailing2(a0.monthlyText);
value = environment.__proto__;
value = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Q2msVQ);
object.subLabel = renderSubLabel2(value, a1.subLabelCritical);
return object;
}
if (kind === 'blocked') {
object = {};
value = environment.__proto__;
object.trailing = getSpendingLimitRowPropsRenderTrailing2(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kGFuGn));
value = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).FUu2b0);
object.subLabel = renderSubLabel2(value, a1.subLabelCritical);
return object;
}
function getSpendingLimitRowPropsRenderTrailing(a0) { // fn#102094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:666, owner: SpendingLimitRow.getSpendingLimitRowProps.renderTrailing, offset: 0x0222c779, size: 63 bytes, params: 2, frame: 14
const Text = (TextModule).Text;
return (
<Text variant="text-sm/normal" color="text-muted">
{a0}
</Text>
);
}
function FamilyCenterSettingsParentalControls() { // fn#102102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3263, offset: 0x0222cce8, size: 1009 bytes, params: 1, frame: 38
const value2 = undefined;
const styles = useStyles();
const value3 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useSelectedTeenUser();
const value4 = (require(13406) /* metro dependency 13406: useSelectedTeenUser */).useShouldLoadSettingsForSelectedTeenUser();
const value5 = (require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */).useIsFamilyCenterV3Enabled({location: 'FamilyCenterSettingsControls'});
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const r1 = (value3 == null || value3.restrictedSchedule == null ? value2 : value3.restrictedSchedule.rules) ?? [];
const env0_3 = r1;
const ParentalControlledSpendingLimit = (require(13348) /* metro dependency 13348: ParentalControlledUserSettings */).ParentalControlledSpendingLimit;
const value6 = ParentalControlledSpendingLimit.useControlledSetting(value3 == null ? value2 : value3.id);
env0_3.useEffect(_fun102103, [value3 == null ? value2 : value3.id, value4]);
const {subLabel,
trailing} = (importDefault(13423) /* metro dependency 13423: useScheduleTimeControlsRowProps */)(r1);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items3 = [<Text variant="text-sm/semibold">{Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ahKIJO])}</Text>];
string = intl.string;
const Sv236e = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Sv236e;
items3[1] = <Text variant="text-sm/medium" color="text-muted">{Reflect.apply(string, intl, [Sv236e])}</Text>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const items2 = [<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+o1pDZ'])} onPress={function() {
return handleSettingsClick(FamilyCenterSubPages.CONTENT_AND_SOCIAL);
}} arrow />];
string = intl.string;
const OAuOHD = (require(1244) /* metro dependency 1244: indexNative */).t.OAuOHD;
items2[1] = <TableRow label={Reflect.apply(string, intl, [OAuOHD])} onPress={function() {
return handleSettingsClick(FamilyCenterSubPages.DATA_AND_PRIVACY);
}} arrow />;
items2[2] = value5 && (value3 == null ? value2 : value3.id) != null && <SpendingLimitRow cap={value6} teenId={value3.id} />;
items2[3] = value5 && (value3 == null ? value2 : value3.id) != null && <TableRow label={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP'])} subLabel={subLabel} trailing={trailing} onPress={onPress_102107} arrow />;
items3[2] = <View style={styles.controlsGroup}><TableRowGroup hasIcons={false}>{items2}</TableRowGroup></View>;
return (
<Stack style={styles.parentalControlsContainer}>
{items3}
</Stack>
);
}
function renderSubLabel(a0, a1) { // fn#102095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:757, owner: SpendingLimitRow.getSpendingLimitRowProps.renderSubLabel, offset: 0x0222c7b8, size: 68 bytes, params: 3, frame: 14
const Text = (TextModule).Text;
return (
<Text variant="text-sm/normal" style={a1}>
{a0}
</Text>
);
}
function FamilyCenterSettingsControls() { // fn#102108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:4976, offset: 0x0222d201, size: 111 bytes, params: 1, frame: 17
const value2 = (importDefault(13424) /* metro dependency 13424: useUserIsTeenAgeGroup */)();
const useUserLinksModule = require(8170) /* metro dependency 8170: useUserLinks */;
const useActiveLinkUserIds = useUserLinksModule.useActiveLinkUserIds;
return Reflect.apply(useActiveLinkUserIds, useUserLinksModule,
[]).length === 0 ? null : <View>{((Component) => <Component />)(value2 ? FamilyCenterSettingsTeenControls : FamilyCenterSettingsParentalControls)}</View>;
}
}
function _fun102096() { // fn#102096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:1596, offset: 0x0222c7fc, size: 109 bytes, params: 1, frame: 18
const teenIdBinding = teenId;
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[10]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[12]);
value = value(dependencyMap[11], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {teenId: teenIdBinding}, undefined, {animation: 'slide_from_right'}]);
}
function getSpendingLimitRowProps(a0, a1) { // fn#102093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:608, owner: SpendingLimitRow.getSpendingLimitRowProps, offset: 0x0222c5a6, size: 467 bytes, params: 3, frame: 23
var environment;
var object2;
var value;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const closure = getSpendingLimitRowPropsRenderTrailing;
const closure2 = renderSubLabel;
const kind = a0.kind;
if (kind === 'off') {
object2 = {};
value = environment.__proto__;
object2.trailing = closure(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).YEnpaj));
return object2;
}
if (kind === 'on') {
object2 = {};
object2.trailing = closure(a0.monthlyText);
return object2;
function FamilyCenterSettingsTeenControls() { // fn#102097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:1793, offset: 0x0222c869, size: 907 bytes, params: 1, frame: 36
var r5;
var TableRowGroup;
var items3;
var TableRow;
var object;
var length;
const value2 = undefined;
const styles = useStyles();
const value3 = (UseUserLinksModule).useActiveLinkUserIds();
const value4 = (UseSelectedTeenUserModule).useSelectedTeenUser();
const value5 = (FamilyCenterV3ExperimentModule).useIsFamilyCenterV3Enabled({location: 'FamilyCenterSettingsControls'});
const env0_1 = (UseNavigationNativeModule).useNavigation();
const r6 = (value4 == null || value4.restrictedSchedule == null ? value2 : value4.restrictedSchedule.rules) ?? [];
const value6 = (SpendingLimitDisplayModule).useSpendingLimitFromUserSettings();
const {subLabel,
trailing} = (UseScheduleTimeControlsRowProps)(r6);
const Stack = (StackNativeModule).Stack;
const Stack2 = (StackNativeModule).Stack;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const text = (
<Text variant="text-sm/semibold">
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ahKIJO)}
</Text>
);
const format = intl.format;
const X9rW0j = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).X9rW0j;
const stack = (
<Stack2 style={styles.controlledSettingsHeader}>
{text}
<Text variant="text-sm/medium" color="text-muted">
{Reflect.apply(format, intl, [X9rW0j, {openSettingsHook: openSettingsHook}])}
</Text>
</Stack2>
);
if (value5) {
var viewBindingProps = {style: styles.controlsGroup};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items3 = [
<SpendingLimitRow cap={value6} />,
];
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
var tableRowProps = {label: intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP']),
subLabel: subLabel, trailing: trailing};
length = r6.length;
tableRowProps.onPress = length > 0 ? _fun102100 : value2;
length = r6.length;
tableRowProps.arrow = length > 0;
items3[1] = <TableRow {...tableRowProps} />;
r5 = (
<View {...viewBindingProps}>
<TableRowGroup hasIcons={false}>
{items3}
</TableRowGroup>
</View>
);
} else {
r5 = value5;
}
const Button = (ButtonNativeModule).Button;
return (
<Stack style={styles.teenControlsContainer}>
{stack}
{r5}
<Button
text={intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).w0JA3P,
{count: value3.length})}
onPress={onPress_102101}
shrink
grow={false}
variant="secondary"
size="sm"
/>
</Stack>
);
function handleOpenSettings() { // fn#102098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2124, owner: FamilyCenterSettingsTeenControls.handleOpenSettings, offset: 0x0222cbf4, size: 35 bytes, params: 1, frame: 11
const binding = env0_1;
const navigate = binding.navigate;
const CONTENT_AND_SOCIAL = UserSettingsSections.CONTENT_AND_SOCIAL;
Reflect.apply(navigate, binding, [CONTENT_AND_SOCIAL]);
}
function openSettingsHook(a0, a1) { // fn#102099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2541, owner: FamilyCenterSettingsTeenControls.openSettingsHook, offset: 0x0222cc17, size: 78 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/medium"
color="text-link"
onPress={handleOpenSettings}
key={a1}
>
{a0}
</Text>
);
}
function _fun102100() { // fn#102100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2878, offset: 0x0222cc65, size: 53 bytes, params: 1, frame: 14
const binding = env0_1;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: SCREEN_TIME_CONTROLS}]);
}
function FamilyCenterSettingsTeenControlsOnPress() { // fn#102101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3100, owner: FamilyCenterSettingsTeenControls.onPress, offset: 0x0222cc9a, size: 78 bytes, params: 1, frame: 13
const value = environment.__proto__;
(LayerActionCreatorsModule).popLayer();
(ChannelActionCreators).openPrivateChannel({recipientIds: env0_0});
}
}
if (kind === 'close-to-limit') {
object2 = {};
object2.trailing = closure(a0.monthlyText);
object2.subLabel = closure2(a0.remainingText, a1.subLabelWarning);
return object2;
function FamilyCenterSettingsParentalControls() { // fn#102102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3263, offset: 0x0222cce8, size: 1009 bytes, params: 1, frame: 38
const value2 = undefined;
const styles = useStyles();
const value3 = (UseSelectedTeenUserModule).useSelectedTeenUser();
const value4 = (UseSelectedTeenUserModule).useShouldLoadSettingsForSelectedTeenUser();
const value5 = (FamilyCenterV3ExperimentModule).useIsFamilyCenterV3Enabled({location: 'FamilyCenterSettingsControls'});
const env0_2 = (UseNavigationNativeModule).useNavigation();
const r1 = (value3 == null || value3.restrictedSchedule == null ? value2 : value3.restrictedSchedule.rules) ?? [];
const env0_3 = r1;
const ParentalControlledSpendingLimit = (ParentalControlledUserSettingsModule).ParentalControlledSpendingLimit;
const value6 = ParentalControlledSpendingLimit.useControlledSetting(value3 == null ? value2 : value3.id);
env0_3.useEffect(_fun102103, [value3 == null ? value2 : value3.id, value4]);
const {subLabel,
trailing} = (UseScheduleTimeControlsRowProps)(r1);
const Stack = (StackNativeModule).Stack;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items3 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl,
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ahKIJO])}
</Text>,
];
string = intl.string;
const Sv236e = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Sv236e;
items3[1] = (
<Text variant="text-sm/medium" color="text-muted">
{Reflect.apply(string, intl, [Sv236e])}
</Text>
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const TableRow = (TableRowNativeModule).TableRow;
const items2 = [
<TableRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+o1pDZ'])}
onPress={function() {
return handleSettingsClick(FamilyCenterSubPages.CONTENT_AND_SOCIAL);
}}
arrow
/>,
];
string = intl.string;
const OAuOHD = (require(1244) /* metro dependency 1244: indexNative */).t.OAuOHD;
items2[1] = (
<TableRow
label={Reflect.apply(string, intl, [OAuOHD])}
onPress={function() {
return handleSettingsClick(FamilyCenterSubPages.DATA_AND_PRIVACY);
}}
arrow
/>
);
items2[2] = value5 && (value3 == null ? value2 : value3.id) != null && <SpendingLimitRow cap={value6} teenId={value3.id} />;
items2[3] = value5 && (value3 == null ? value2 : value3.id) != null && <TableRow label={intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1Op+NP'])} subLabel={subLabel} trailing={trailing} onPress={onPress_102107} arrow />;
items3[2] = (
<View style={styles.controlsGroup}>
<TableRowGroup hasIcons={false}>
{items2}
</TableRowGroup>
</View>
);
return (
<Stack style={styles.parentalControlsContainer}>
{items3}
</Stack>
);
function _fun102103() { // fn#102103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3647, offset: 0x0222d0d9, size: 88 bytes, params: 1, frame: 13
var value4;
var defaultImport;
const value2 = undefined;
if ((env0_0 == null ? value2 : env0_0.id) != null && env0_1) {
value4 = environment.__proto__;
defaultImport = importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
defaultImport.fetchTeenSettingsAndConsents(env0_0.id);
}
return value2;
}
function handleSettingsClick(a0) { // fn#102104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3779, owner: FamilyCenterSettingsParentalControls.handleSettingsClick, offset: 0x0222d131, size: 46 bytes, params: 2, frame: 14
const binding = env0_2;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: a0}]);
}
function FamilyCenterSettingsParentalControlsOnPress_102107() { // fn#102107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:4701, owner: FamilyCenterSettingsParentalControls.onPress, offset: 0x0222d199, size: 104 bytes, params: 1, frame: 18
const binding = env0_2;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: SCREEN_TIME_CONTROLS,
autoOpenCreate: env0_3.length === 0 && env0_0?.id != null}]);
}
}
if (kind === 'spent') {
object2 = {};
object2.trailing = closure(a0.monthlyText);
value = environment.__proto__;
value = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Q2msVQ);
object2.subLabel = closure2(value, a1.subLabelCritical);
return object2;
}
if (kind === 'blocked') {
object2 = {};
value = environment.__proto__;
object2.trailing = closure(intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kGFuGn));
value = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).FUu2b0);
object2.subLabel = closure2(value, a1.subLabelCritical);
return object2;
function FamilyCenterSettingsControls() { // fn#102108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:4976, offset: 0x0222d201, size: 111 bytes, params: 1, frame: 17
const value2 = (UseUserIsTeenAgeGroup)();
const useActiveLinkUserIds = UseUserLinksModule.useActiveLinkUserIds;
return (
Reflect.apply(useActiveLinkUserIds, UseUserLinksModule, []).length === 0
? null
: (
<View>
{((Component) => <Component />)(value2 ? FamilyCenterSettingsTeenControls : FamilyCenterSettingsParentalControls)}
</View>
)
);
}
}
function _fun102096() { // fn#102096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:1596, offset: 0x0222c7fc, size: 109 bytes, params: 1, frame: 18
const teenIdBinding = teenId;
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[10]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[12]);
value = value(dependencyMap[11], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {teenId: teenIdBinding}, undefined, {animation: 'slide_from_right'}]);
}
function handleOpenSettings() { // fn#102098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2124, owner: FamilyCenterSettingsTeenControls.handleOpenSettings, offset: 0x0222cbf4, size: 35 bytes, params: 1, frame: 11
const binding = env0_1;
const navigate = binding.navigate;
const CONTENT_AND_SOCIAL = UserSettingsSections.CONTENT_AND_SOCIAL;
Reflect.apply(navigate, binding, [CONTENT_AND_SOCIAL]);
}
function openSettingsHook(a0, a1) { // fn#102099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2541, owner: FamilyCenterSettingsTeenControls.openSettingsHook, offset: 0x0222cc17, size: 78 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/medium"
color="text-link"
onPress={handleOpenSettings}
key={a1}
>
{a0}
</Text>
);
}
function _fun102100() { // fn#102100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:2878, offset: 0x0222cc65, size: 53 bytes, params: 1, frame: 14
const binding = env0_1;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: SCREEN_TIME_CONTROLS}]);
}
function FamilyCenterSettingsTeenControlsOnPress() { // fn#102101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3100, owner: FamilyCenterSettingsTeenControls.onPress, offset: 0x0222cc9a, 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});
}
function _fun102103() { // fn#102103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3647, offset: 0x0222d0d9, size: 88 bytes, params: 1, frame: 13
var value4;
var defaultImport;
const value2 = undefined;
if ((env0_0 == null ? value2 : env0_0.id) != null && env0_1) {
value4 = environment.__proto__;
defaultImport = importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
defaultImport.fetchTeenSettingsAndConsents(env0_0.id);
}
return value2;
}
function handleSettingsClick(a0) { // fn#102104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:3779, owner: FamilyCenterSettingsParentalControls.handleSettingsClick, offset: 0x0222d131, size: 46 bytes, params: 2, frame: 14
const binding = env0_2;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: a0}]);
}
function FamilyCenterSettingsParentalControlsOnPress_102107() { // fn#102107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:4701, owner: FamilyCenterSettingsParentalControls.onPress, offset: 0x0222d199, size: 104 bytes, params: 1, frame: 18
const binding = env0_2;
const navigate = binding.navigate;
const FAMILY_CENTER_PARENTAL_CONTROLS = UserSettingsSections.FAMILY_CENTER_PARENTAL_CONTROLS;
const SCREEN_TIME_CONTROLS = FamilyCenterSubPages.SCREEN_TIME_CONTROLS;
Reflect.apply(navigate, binding, [FAMILY_CENTER_PARENTAL_CONTROLS, {selectedSubPage: SCREEN_TIME_CONTROLS,
autoOpenCreate: env0_3.length === 0 && env0_0?.id != null}]);
}
function getSpendingLimitRowPropsRenderTrailing(a0) { // fn#102094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:666, owner: SpendingLimitRow.getSpendingLimitRowProps.renderTrailing, offset: 0x0222c779, size: 63 bytes, params: 2, frame: 14
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text variant="text-sm/normal" color="text-muted">
{a0}
</Text>
);
}
function renderSubLabel(a0, a1) { // fn#102095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13609:757, owner: SpendingLimitRow.getSpendingLimitRowProps.renderSubLabel, offset: 0x0222c7b8, size: 68 bytes, params: 3, frame: 14
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text variant="text-sm/normal" style={a1}>
{a0}
</Text>
);
}
global.__d(_fun102091, 13419, [31, 27, 5117, 661, 33, 4501, 697, 4573, 1244, 2224, 5080, 13420, 1962, 13422, 6238,
8170, 13406, 5188, 1484, 13423, 4572, 6231, 4578, 5177, 4603, 13348, 5118, 13424,
2]) /* metro module 13419, dependencies: [31, 27, 5117, 661, 33, 4501, 697, 4573, 1244, 2224, 5080, 13420, 1962, 13422, 6238, 8170, 13406, 5188, 1484, 13423, 4572, 6231, 4578, 5177, 4603, 13348, 5118, 13424, 2] */;
@@ -1,118 +1,75 @@
/* Metro module 13409; source: modules/parent_tools/native/FamilyCenterTopActivity.tsx; dependencies: [31, 27, 1878, 5116, 33, 4501, 697, 632, 4080, 13410, 1962, 13411, 8792, 1244, 2224, 4573, 1305, 6819, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun102040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:6, offset: 0x02228fe6, size: 496 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.container = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', gap: PX_8};
object2.section = {flex: 1};
const object3 = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'flexWrap': 'wrap'};
object.container = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', gap: PX_8};
object.section = {flex: 1};
const object4 = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'flexWrap': 'wrap'};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.gap = PX_4;
object4.gap = PX_4;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.paddingTop = PX_12;
object4.paddingTop = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.paddingBottom = PX_12;
object2.avatarList = object3;
object2.touchableHitBox = {'width': '100%', 'alignItems': 'flex-start'};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object4.paddingBottom = PX_12;
object.avatarList = object4;
object.touchableHitBox = {'width': '100%', 'alignItems': 'flex-start'};
const object5 = {};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object6.borderColor = BACKGROUND_BASE_LOW;
object5.borderColor = BACKGROUND_BASE_LOW;
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object6.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object2.guildAvatar = object6;
object2.guildAvatarText = {fontSize: 12};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopActivity.tsx');
object5.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object.guildAvatar = object5;
object.guildAvatarText = {fontSize: 12};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopActivity.tsx');
exports.default = _default_102041;
}
function _default_102041() { // fn#102041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:692, offset: 0x022291d6, size: 806 bytes, params: 1, frame: 36
var r6;
var r0;
var value5;
var defaultImport;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
var BxbvS7;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
var value8;
var defaultImport2;
var Lq9Set;
var value;
const styles = useStyles();
const topUserActivities = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getTopUserActivities();
});
const topGuildActivities = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
function() {
return FamilyCenterStore.getTopGuildActivities();
});
const binding = env0_3;
const value2 = binding.useCallback(_fun102044, [topUserActivities]);
const value3 = binding.useCallback(_fun102045, [topGuildActivities]);
let length = topUserActivities.length;
if (length !== 0) {
var viewBindingProps = {style: styles.container};
length = topUserActivities.length;
value5 = length > 0;
if (value5) {
var viewBinding2Props = {style: styles.section};
defaultImport = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImportProps = {style: styles.touchableHitBox, onPress: value2, accessibilityRole: 'button'};
string = intl.string;
BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [BxbvS7]);
string = intl.string;
BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
r6 = <View {...viewBinding2Props}>{((Component) => <Component {...defaultImportProps}><Text variant="text-sm/semibold">{Reflect.apply(string,
intl,
[BxbvS7])}</Text><View style={styles.avatarList}>{topUserActivities.map(_fun102046)}</View></Component>)(defaultImport)}</View>;
} else {
r6 = value5;
}
items2 = [r6];
length = topGuildActivities.length;
value8 = length > 0;
if (value8) {
var viewBinding3Props = {style: styles.section};
defaultImport2 = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImport2Props = {style: styles.touchableHitBox, onPress: value3, accessibilityRole: 'button'};
string = intl.string;
Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
defaultImport2Props.accessibilityLabel = Reflect.apply(string, intl, [Lq9Set]);
string = intl.string;
Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
value = <Text variant="text-sm/semibold">{Reflect.apply(string, intl, [Lq9Set])}</Text>;
value = <View {...viewBinding3Props}>{((Component) => <Component {...defaultImport2Props}>{value}<View style={styles.avatarList}>{topGuildActivities.map(_fun102047)}</View></Component>)(defaultImport2)}</View>;
r6 = value;
} else {
r6 = value8;
}
items2[1] = r6;
value = <View {...viewBindingProps}>{items2}</View>;
r0 = value;
} else {
length = topGuildActivities.length;
if (length === 0) {
r0 = null;
} else {
function _default_102041() { // fn#102041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:692, offset: 0x022291d6, size: 806 bytes, params: 1, frame: 36
var r6;
var r0;
var value5;
var defaultImport;
const intl = (IndexNativeModule).intl;
var string;
var BxbvS7;
const Text = (TextModule).Text;
var items2;
var value8;
var defaultImport2;
var Lq9Set;
var value;
const styles = useStyles();
const useStateFromStores = UseStateFromStoresModule.useStateFromStores;
const familyCenterStoreBinding = FamilyCenterStore;
const topUserActivities = Reflect.apply(useStateFromStores, UseStateFromStoresModule, [[familyCenterStoreBinding],
function() {
return FamilyCenterStore.getTopUserActivities();
}]);
const topGuildActivities = UseStateFromStoresModule.useStateFromStores([familyCenterStoreBinding], function() {
return FamilyCenterStore.getTopGuildActivities();
});
const value2 = ReactModule.useCallback(_fun102044, [topUserActivities]);
const value3 = ReactModule.useCallback(_fun102045, [topGuildActivities]);
let length = topUserActivities.length;
if (length !== 0) {
var viewBindingProps = {style: styles.container};
length = topUserActivities.length;
value5 = length > 0;
@@ -125,12 +82,15 @@ function _default_102041() { // fn#102041, source: /ci/build/discord/discord/dis
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [BxbvS7]);
string = intl.string;
BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
r6 = <View {...viewBinding2Props}>{((Component) => <Component {...defaultImportProps}><Text variant="text-sm/semibold">{Reflect.apply(string,
intl,
[BxbvS7])}</Text><View style={styles.avatarList}>{topUserActivities.map(_fun102046)}</View></Component>)(defaultImport)}</View>;
r6 = (
<View {...viewBinding2Props}>
{((Component) => <Component {...defaultImportProps}><Text variant="text-sm/semibold">{Reflect.apply(string,
intl,
[BxbvS7])}</Text><View style={styles.avatarList}>{topUserActivities.map(_fun102046)}</View></Component>)(defaultImport)}
</View>
);
} else {
r6 = value5;
}
@@ -146,70 +106,158 @@ function _default_102041() { // fn#102041, source: /ci/build/discord/discord/dis
defaultImport2Props.accessibilityLabel = Reflect.apply(string, intl, [Lq9Set]);
string = intl.string;
Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
value = <Text variant="text-sm/semibold">{Reflect.apply(string, intl, [Lq9Set])}</Text>;
value = <View {...viewBinding3Props}>{((Component) => <Component {...defaultImport2Props}>{value}<View style={styles.avatarList}>{topGuildActivities.map(_fun102047)}</View></Component>)(defaultImport2)}</View>;
value = (
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [Lq9Set])}
</Text>
);
value = (
<View {...viewBinding3Props}>
{((Component) => <Component {...defaultImport2Props}>{value}<View style={styles.avatarList}>{topGuildActivities.map(_fun102047)}</View></Component>)(defaultImport2)}
</View>
);
r6 = value;
} else {
r6 = value8;
}
items2[1] = r6;
value = <View {...viewBindingProps}>{items2}</View>;
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
} else {
length = topGuildActivities.length;
if (length === 0) {
r0 = null;
} else {
var viewBindingProps = {style: styles.container};
length = topUserActivities.length;
value5 = length > 0;
if (value5) {
var viewBinding2Props = {style: styles.section};
defaultImport = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImportProps = {style: styles.touchableHitBox, onPress: value2, accessibilityRole: 'button'};
string = intl.string;
BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [BxbvS7]);
string = intl.string;
BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
r6 = (
<View {...viewBinding2Props}>
{((Component) => <Component {...defaultImportProps}><Text variant="text-sm/semibold">{Reflect.apply(string,
intl,
[BxbvS7])}</Text><View style={styles.avatarList}>{topUserActivities.map(_fun102046)}</View></Component>)(defaultImport)}
</View>
);
} else {
r6 = value5;
}
items2 = [r6];
length = topGuildActivities.length;
value8 = length > 0;
if (value8) {
var viewBinding3Props = {style: styles.section};
defaultImport2 = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
var defaultImport2Props = {style: styles.touchableHitBox, onPress: value3, accessibilityRole: 'button'};
string = intl.string;
Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
defaultImport2Props.accessibilityLabel = Reflect.apply(string, intl, [Lq9Set]);
string = intl.string;
Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
value = (
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [Lq9Set])}
</Text>
);
value = (
<View {...viewBinding3Props}>
{((Component) => <Component {...defaultImport2Props}>{value}<View style={styles.avatarList}>{topGuildActivities.map(_fun102047)}</View></Component>)(defaultImport2)}
</View>
);
r6 = value;
} else {
r6 = value8;
}
items2[1] = r6;
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
}
}
return r0;
function _fun102044() { // fn#102044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:855, offset: 0x02229526, size: 94 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[10]);
value = value(dependencyMap[9], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'FamilyCenterTopUsers', {topUserActivities: topUserActivities}]);
}
function _fun102045() { // fn#102045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:970, offset: 0x02229584, size: 94 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[10]);
value = value(dependencyMap[11], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'FamilyCenterTopServers', {topGuildActivities: topGuildActivities}]);
}
function _fun102046({user_id}) { // fn#102046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:1459, offset: 0x022295e2, size: 117 bytes, params: 2, frame: 20
const value = environment.__proto__;
const user = UserStore.getUser(user_id);
if (user == null) {
return null;
} else {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={user}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL}
guildId={undefined}
key={user.id}
/>
);
}
}
function _fun102047(a0) { // fn#102047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:1915, offset: 0x02229657, size: 138 bytes, params: 2, frame: 21
var r0;
var GuildIcon;
var stylesBinding;
const value = environment.__proto__;
const guild = FamilyCenterStore.getGuild(a0.guild_id);
const value3 = null;
if (value3 == guild) {
r0 = value3;
} else {
GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
stylesBinding = styles;
r0 = (
<GuildIcon
style={stylesBinding.guildAvatar}
textStyle={stylesBinding.guildAvatarText}
guild={guild}
size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.SMALL}
key={guild.id}
/>
);
}
return r0;
}
}
return r0;
}
function _fun102044() { // fn#102044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:855, offset: 0x02229526, size: 94 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[10]);
value = value(dependencyMap[9], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'FamilyCenterTopUsers', {topUserActivities: topUserActivities}]);
}
function _fun102045() { // fn#102045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:970, offset: 0x02229584, size: 94 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[10]);
value = value(dependencyMap[11], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'FamilyCenterTopServers', {topGuildActivities: topGuildActivities}]);
}
function _fun102046({user_id}) { // fn#102046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:1459, offset: 0x022295e2, size: 117 bytes, params: 2, frame: 20
const value = environment.__proto__;
const user = UserStore.getUser(user_id);
if (user == null) {
return null;
} else {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={user}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL}
guildId={undefined}
key={user.id}
/>
);
}
}
function _fun102047(a0) { // fn#102047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13599:1915, offset: 0x02229657, size: 138 bytes, params: 2, frame: 21
var r0;
var GuildIcon;
var stylesBinding;
const value = environment.__proto__;
const guild = FamilyCenterStore.getGuild(a0.guild_id);
const value3 = null;
if (value3 == guild) {
r0 = value3;
} else {
GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
stylesBinding = styles;
r0 = <GuildIcon style={stylesBinding.guildAvatar} textStyle={stylesBinding.guildAvatarText} guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.SMALL} key={guild.id} />;
}
return r0;
}
global.__d(_fun102040, 13409, [31, 27, 1878, 5116, 33, 4501, 697, 632, 4080, 13410, 1962, 13411, 8792, 1244, 2224,
4573, 1305, 6819,
2]) /* metro module 13409, dependencies: [31, 27, 1878, 5116, 33, 4501, 697, 632, 4080, 13410, 1962, 13411, 8792, 1244, 2224, 4573, 1305, 6819, 2] */;
@@ -1,65 +1,82 @@
/* Metro module 13411; source: modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx; dependencies: [5116, 33, 4501, 697, 566, 5187, 6238, 6819, 6805, 4573, 1244, 2224, 6231, 2] */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import FamilyCenterStore from '../FamilyCenterStore.tsx'; /* Metro dependency 5116 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
function _fun102052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:6, offset: 0x022299b1, size: 284 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const object2 = {};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.borderColor = BACKGROUND_BASE_LOW;
object2.borderColor = BACKGROUND_BASE_LOW;
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object.backgroundColor = BACKGROUND_BASE_LOWEST;
const env0_6 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, guildIcon: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx');
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
const env0_6 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, guildIcon: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopServersBottomSheet.tsx');
exports.default = FamilyCenterTopGuildsBottomSheet;
}
function GuildRow({guildActivity}) { // fn#102053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:330, offset: 0x02229acd, size: 227 bytes, params: 2, frame: 20
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore], function() {
return FamilyCenterStore.getGuild(guildActivity.guild_id);
});
if (guild == null) {
return null;
function GuildRow({guildActivity}) { // fn#102053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:330, offset: 0x02229acd, size: 227 bytes, params: 2, frame: 20
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([FamilyCenterStore], function() {
return FamilyCenterStore.getGuild(guildActivity.guild_id);
});
if (guild == null) {
return null;
}
const topUserOrGuildDescription = (FamilyCenterUtilsModule).getTopUserOrGuildDescription(guildActivity.messages_sent,
guildActivity.call_count);
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
label={guild.name}
subLabel={topUserOrGuildDescription}
icon={((Component) => <Component guild={guild} style={styles.guildIcon} />)(GuildIcon)}
/>
);
}
const topUserOrGuildDescription = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getTopUserOrGuildDescription(guildActivity.messages_sent,
guildActivity.call_count);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
label={guild.name}
subLabel={topUserOrGuildDescription}
icon={((Component) => <Component guild={guild} style={styles.guildIcon} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}
/>
);
}
function FamilyCenterTopGuildsBottomSheet({topGuildActivities}) { // fn#102055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:743, offset: 0x02229bb0, size: 239 bytes, params: 2, frame: 24
const styles = useStyles();
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Lq9Set = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Lq9Set;
const text = <Text variant="text-md/bold" style={styles.header}>{Reflect.apply(string, intl, [Lq9Set])}</Text>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<ActionSheet>
{text}
<TableRowGroup hasIcons>
{topGuildActivities.map(_fun102056)}
</TableRowGroup>
</ActionSheet>
);
}
function FamilyCenterTopGuildsBottomSheet({topGuildActivities}) { // fn#102055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:743, offset: 0x02229bb0, size: 239 bytes, params: 2, frame: 24
const styles = useStyles();
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Lq9Set = (FamilyCenterMessages).Lq9Set;
const text = (
<Text variant="text-md/bold" style={styles.header}>
{Reflect.apply(string, intl, [Lq9Set])}
</Text>
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<ActionSheet>
{text}
<TableRowGroup hasIcons>
{topGuildActivities.map(_fun102056)}
</TableRowGroup>
</ActionSheet>
);
function _fun102056(a0) { // fn#102056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:1016, offset: 0x02229c9f, size: 37 bytes, params: 2, frame: 15
return <GuildRow guildActivity={a0} key={a0.guild_id} />;
}
}
function _fun102056(a0) { // fn#102056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13601:1016, offset: 0x02229c9f, size: 37 bytes, params: 2, frame: 15
return <GuildRow guildActivity={a0} key={a0.guild_id} />;
}
global.__d(_fun102052, 13411, [5116, 33, 4501, 697, 566, 5187, 6238, 6819, 6805, 4573, 1244, 2224, 6231,
2]) /* metro module 13411, dependencies: [5116, 33, 4501, 697, 566, 5187, 6238, 6819, 6805, 4573, 1244, 2224, 6231, 2] */;
@@ -1,58 +1,82 @@
/* Metro module 13410; source: modules/parent_tools/native/FamilyCenterTopUsersBottomSheet.tsx; dependencies: [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
function _fun102048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:6, offset: 0x022296e1, size: 216 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopUsersBottomSheet.tsx');
ReactModule;
const env0_6 = (CreateStylesModule).createStyles({header: {textAlign: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopUsersBottomSheet.tsx');
exports.default = FamilyCenterTopUsersBottomSheet;
}
function UserRow_102049({userActivity}) { // fn#102049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:195, offset: 0x022297b9, size: 227 bytes, params: 2, frame: 21
const getUser = UserStore.getUser;
const user_id = userActivity.user_id;
const value2 = Reflect.apply(getUser, UserStore, [user_id]);
if (value2 == null) {
return null;
function UserRow_102049({userActivity}) { // fn#102049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:195, offset: 0x022297b9, size: 227 bytes, params: 2, frame: 21
const userStoreBinding = UserStore;
const getUser = userStoreBinding.getUser;
const user_id = userActivity.user_id;
const value2 = Reflect.apply(getUser, userStoreBinding, [user_id]);
if (value2 == null) {
return null;
}
const topUserOrGuildDescription = (FamilyCenterUtilsModule).getTopUserOrGuildDescription(userActivity.dms_sent,
userActivity.call_count);
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {label: (UserUtils).getName(value2),
subLabel: topUserOrGuildDescription};
const Avatar = (NativeModule).Avatar;
const AvatarSizes = (NativeModule).AvatarSizes;
const SMALL = AvatarSizes.SMALL;
tableRowProps.icon = (
<Avatar
size={SMALL}
user={value2}
guildId={undefined}
/>
);
return <TableRow {...tableRowProps} />;
}
const topUserOrGuildDescription = (require(5187) /* metro dependency 5187: FamilyCenterUtils */).getTopUserOrGuildDescription(userActivity.dms_sent,
userActivity.call_count);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {label: (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(value2),
subLabel: topUserOrGuildDescription};
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const SMALL = AvatarSizes.SMALL;
tableRowProps.icon = <Avatar size={SMALL} user={value2} guildId={undefined} />;
return <TableRow {...tableRowProps} />;
}
function FamilyCenterTopUsersBottomSheet({topUserActivities}) { // fn#102050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:599, offset: 0x0222989c, size: 239 bytes, params: 2, frame: 24
const styles = useStyles();
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const BxbvS7 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BxbvS7;
const text = <Text variant="text-md/bold" style={styles.header}>{Reflect.apply(string, intl, [BxbvS7])}</Text>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<ActionSheet>
{text}
<TableRowGroup hasIcons>
{topUserActivities.map(_fun102051)}
</TableRowGroup>
</ActionSheet>
);
}
function FamilyCenterTopUsersBottomSheet({topUserActivities}) { // fn#102050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:599, offset: 0x0222989c, size: 239 bytes, params: 2, frame: 24
const styles = useStyles();
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const BxbvS7 = (FamilyCenterMessages).BxbvS7;
const text = (
<Text variant="text-md/bold" style={styles.header}>
{Reflect.apply(string, intl, [BxbvS7])}
</Text>
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<ActionSheet>
{text}
<TableRowGroup hasIcons>
{topUserActivities.map(_fun102051)}
</TableRowGroup>
</ActionSheet>
);
function _fun102051(a0) { // fn#102051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:870, offset: 0x0222998b, size: 38 bytes, params: 2, frame: 15
const user_id = a0.user_id;
return <UserRow_102049 userActivity={a0} key={user_id} />;
}
}
function _fun102051(a0) { // fn#102051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:870, offset: 0x0222998b, size: 38 bytes, params: 2, frame: 15
const user_id = a0.user_id;
return <UserRow_102049 userActivity={a0} key={user_id} />;
}
global.__d(_fun102048, 13410, [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231,
2]) /* metro module 13410, dependencies: [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231, 2] */;
@@ -1,42 +1,48 @@
/* Metro module 13405; source: modules/parent_tools/native/FamilyCenterUsernameHeader.tsx; dependencies: [31, 27, 33, 4501, 3995, 4573, 2] */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun102020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13595:6, offset: 0x022286b1, size: 210 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {justifyContent: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterUsernameHeader.tsx');
ReactModule;
const env0_6 = (CreateStylesModule).createStyles({container: {justifyContent: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterUsernameHeader.tsx');
exports.default = FamilyCenterUsernameHeader;
}
function FamilyCenterUsernameHeader({user}) { // fn#102021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13595:310, offset: 0x02228783, size: 247 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = (importDefault(3995) /* metro dependency 3995: UserUtils */).useName(user);
const value4 = ' (@' + (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(user,
{decoration: 'never'}) + ')';
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.container}>
<Text
variant="text-md/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{value2}
<Text2
variant="text-md/medium"
color="text-muted"
function FamilyCenterUsernameHeader({user}) { // fn#102021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13595:310, offset: 0x02228783, size: 247 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = (UserUtils).useName(user);
const value4 = ' (@' + (UserUtils).getUserTag(user,
{decoration: 'never'}) + ')';
const Text = (TextModule).Text;
const Text2 = (TextModule).Text;
return (
<View style={styles.container}>
<Text
variant="text-md/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{value4}
</Text2>
</Text>
</View>
);
{value2}
<Text2
variant="text-md/medium"
color="text-muted"
lineClamp={1}
>
{value4}
</Text2>
</Text>
</View>
);
}
}
global.__d(_fun102020, 13405, [31, 27, 33, 4501, 3995, 4573,
2]) /* metro module 13405, dependencies: [31, 27, 33, 4501, 3995, 4573, 2] */;
@@ -1,251 +1,331 @@
/* Metro module 15643; source: modules/parent_tools/native/RestrictedHoursModal.tsx; dependencies: [57, 31, 27, 1878, 33, 4501, 697, 5461, 1585, 15644, 566, 4017, 4504, 1244, 2224, 6258, 15645, 3868, 4573, 5280, 15646, 5076, 15642, 4571, 10121, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import UseFormattedEndTime from '../hooks/useFormattedEndTime.tsx'; /* Metro dependency 15644 */
import UseIsInRestrictedHours from '../hooks/useIsInRestrictedHours.tsx'; /* Metro dependency 15646 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
function _fun119785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:6, offset: 0x025194ba, size: 634 bytes, params: 8, frame: 28
var object2;
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 */;
let value = ReactNativeModule;
const StyleSheet = value.StyleSheet;
const env0_5 = value.View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.container = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center', paddingHorizontal: PX_24};
const object6 = {};
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
object6['zIndex'] = 0;
object6['backgroundColor'] = 'rgb(0, 3, 40)';
object2.backgroundFill = object6;
const object7 = {};
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
object7['zIndex'] = 1;
object2.assetLayers = object7;
const object8 = {};
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
object2.sunbeamGradient = object8;
object2.riveContainer = {'width': '100%', 'maxWidth': 523, 'height': 300};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.content = {'alignItems': 'center', 'width': '100%', 'gap': null, 'zIndex': 2, gap: PX_16};
object2.description = {textAlign: 'center'};
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object2.footer = {'position': 'absolute', 'bottom': null, 'alignSelf': 'center', 'zIndex': 2, bottom: PX_32};
const object10 = {};
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
object10['zIndex'] = 10;
object10['justifyContent'] = 'center';
object10['alignItems'] = 'center';
object10['backgroundColor'] = 'rgb(0, 3, 40)';
object2.logoutBlockingLayer = object10;
const env0_10 = Reflect.apply(createStyles, value, [object2]);
object2 = {MAIN: 'main'};
object2 = {code: 'function RestrictedHoursModalTsx1(){const{backgroundOpacity}=this.__closure;return{opacity:backgroundOpacity.get()};}'};
object2 = {code: 'function RestrictedHoursModalTsx2(){const{gradientOpacity}=this.__closure;return{opacity:gradientOpacity.get()};}'};
object2 = {code: 'function RestrictedHoursModalTsx3(){const{contentOpacity,contentScale}=this.__closure;return{opacity:contentOpacity.get(),transform:[{scale:contentScale.get()}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/RestrictedHoursModal.tsx');
object = {};
const PX_24 = (Native).space.PX_24;
object.container = {'flex': 1, 'justifyContent': 'center', 'alignItems': 'center', paddingHorizontal: PX_24};
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['zIndex'] = 0;
object3['backgroundColor'] = 'rgb(0, 3, 40)';
object.backgroundFill = object3;
const object4 = {};
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
object4['zIndex'] = 1;
object.assetLayers = object4;
const object5 = {};
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
object.sunbeamGradient = object5;
object.riveContainer = {'width': '100%', 'maxWidth': 523, 'height': 300};
const PX_16 = (Native).space.PX_16;
object.content = {'alignItems': 'center', 'width': '100%', 'gap': null, 'zIndex': 2, gap: PX_16};
object.description = {textAlign: 'center'};
const PX_32 = (Native).space.PX_32;
object.footer = {'position': 'absolute', 'bottom': null, 'alignSelf': 'center', 'zIndex': 2, bottom: PX_32};
const object9 = {};
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
object9['zIndex'] = 10;
object9['justifyContent'] = 'center';
object9['alignItems'] = 'center';
object9['backgroundColor'] = 'rgb(0, 3, 40)';
object.logoutBlockingLayer = object9;
const env0_10 = Reflect.apply(createStyles, value, [object]);
object = {MAIN: 'main'};
object = {code: 'function RestrictedHoursModalTsx1(){const{backgroundOpacity}=this.__closure;return{opacity:backgroundOpacity.get()};}'};
object = {code: 'function RestrictedHoursModalTsx2(){const{gradientOpacity}=this.__closure;return{opacity:gradientOpacity.get()};}'};
object = {code: 'function RestrictedHoursModalTsx3(){const{contentOpacity,contentScale}=this.__closure;return{opacity:contentOpacity.get(),transform:[{scale:contentScale.get()}]};}'};
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/RestrictedHoursModal.tsx');
exports.default = RestrictedHoursModal;
}
function RestrictedHoursLogoutBlockingLayer({visible}) { // fn#119786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:898, offset: 0x02519734, size: 119 bytes, params: 2, frame: 18
const styles = useStyles();
return visible ? <View style={styles.logoutBlockingLayer} pointerEvents="auto" accessibilityLiveRegion="polite">{((ActivityIndicator) => <ActivityIndicator size="large" />)((require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator)}</View> : null;
}
function RestrictedHoursScreen({onLogin, logoutRequestInFlight}) { // fn#119787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1554, offset: 0x025197ab, size: 1290 bytes, params: 2, frame: 35
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const {top, bottom} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const value3 = (importDefault(15644) /* metro dependency 15644: useFormattedEndTime */)();
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun119788);
const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value6 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value7 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0.9);
value8.useEffect(_fun119789, [value5, value6, value7, value8]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = RestrictedHoursScreenM;
closure.__closure = {backgroundOpacity: value5};
closure.__workletHash = 17073775693336;
closure.__initData = env0_12;
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue7 = reanimatedRexportModule;
useAnimatedStyle = moduleValue7.useAnimatedStyle;
closure = RestrictedHoursScreenO;
closure.__closure = {gradientOpacity: value6};
closure.__workletHash = 16592270370139;
closure.__initData = env0_13;
const value10 = Reflect.apply(useAnimatedStyle, moduleValue7, [closure]);
const moduleValue8 = reanimatedRexportModule;
useAnimatedStyle = moduleValue8.useAnimatedStyle;
closure = RestrictedHoursScreenZ;
closure.__closure = {contentOpacity: value7, contentScale: value8};
closure.__workletHash = 15616799997783;
closure.__initData = env0_14;
const value11 = Reflect.apply(useAnimatedStyle, moduleValue8, [closure]);
const r24 = value3 != null ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VfqJvY,
{endTime: value3}) : intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).abikhN);
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
object2 = {backgroundColor: env0_9};
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items5 = [styles.container];
items5[1] = {paddingTop: top, paddingBottom: bottom};
items5[2] = value9;
const items2 = [<View style={styles.backgroundFill} pointerEvents="none" />];
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items3 = [styles.assetLayers, value10];
const Image = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).Image;
items2[1] = <View3 style={items3} pointerEvents="none"><Image source={require(15645) /* metro dependency 15645 */} resizeMode="cover" style={styles.sunbeamGradient} /></View3>;
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items4 = [styles.content, value11];
const TeenScreenTimeRive = (require(3868) /* metro dependency 3868: native */).TeenScreenTimeRive;
const view = <View style={styles.riveContainer}><TeenScreenTimeRive artboard="Teen Screen Time Illo" stateMachine="State Machine 1" /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[2] = <View4 style={items4}>{view}<Text variant="text-lg/medium" color="text-overlay-light" style={styles.description}>{r24}</Text></View4>;
items2[3] = <View style={styles.footer}><Text variant="text-sm/medium" color="text-subtle" style={styles.description}>{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iqeKDz,
{username: value4, loginHook: loginHook})}</Text></View>;
return (
<ModalScreen {...object2}>
<View2 style={items5}>
{items2}
</View2>
<RestrictedHoursLogoutBlockingLayer visible={logoutRequestInFlight} />
</ModalScreen>
);
}
function RestrictedHoursModal() { // fn#119794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:3988, offset: 0x02519f18, size: 294 bytes, params: 1, frame: 20
const value2 = (importDefault(15646) /* metro dependency 15646: useIsInRestrictedHours */)();
const env0_1 = env0_4.useRef(false);
const env0_2 = env0_4.useRef(true);
env0_4.useEffect(_fun119795, []);
const [property, env0_3] = env0_3Binding(env0_4.useState(false), 2);
const value6 = RestrictedHoursModalUseScreens(env0_4.useCallback(_fun119800, []), property);
env0_4.useEffect(_fun119802, [value2]);
(importDefault(4571) /* metro dependency 4571: useBackPressHandler */)(function() {
return true;
});
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const MAIN = env0_11.MAIN;
return <Modal screens={value6} initialRouteName={MAIN} />;
}
function _fun119788() { // fn#119788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1710, offset: 0x02519cb5, size: 49 bytes, params: 1, frame: 11
const value = environment.__proto__;
const username = UserStore.getCurrentUser()?.username;
return username ?? '';
}
function _fun119789() { // fn#119789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1925, offset: 0x02519ce6, size: 484 bytes, params: 1, frame: 31
let binding = env0_1;
let set = binding.set;
const timingModule = require(4504) /* metro dependency 4504: timing */;
let withTiming = timingModule.withTiming;
let object2 = {duration: 3000};
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
object2.easing = Easing.bezier(0.24, 0.27, 0.58, 1);
Reflect.apply(set, binding, [Reflect.apply(withTiming, timingModule, [1, object2])]);
binding = env0_2;
set = binding.set;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let withDelay = reanimatedRexportModule.withDelay;
const moduleValue3 = timingModule;
withTiming = moduleValue3.withTiming;
object2 = {duration: 1500};
object2.easing = Easing.bezier(0, 0, 1, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, reanimatedRexportModule, [1500, Reflect.apply(withTiming,
moduleValue3, [1, object2])])]);
binding = env0_3;
set = binding.set;
const moduleValue4 = reanimatedRexportModule;
withDelay = moduleValue4.withDelay;
const moduleValue5 = timingModule;
withTiming = moduleValue5.withTiming;
object2 = {duration: 1000};
object2.easing = Easing.bezier(0.1, 0.24, 0.32, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, moduleValue4, [2000, Reflect.apply(withTiming, moduleValue5,
[1, object2])])]);
binding = env0_4;
set = binding.set;
const value = reanimatedRexportModule;
withDelay = value.withDelay;
const moduleValue6 = timingModule;
withTiming = moduleValue6.withTiming;
object2 = {duration: 1000};
object2.easing = Easing.bezier(0.1, 0.24, 0.32, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, value, [2000, Reflect.apply(withTiming, moduleValue6, [1,
object2])])]);
}
function loginHook(a0, a1) { // fn#119793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:3737, owner: RestrictedHoursScreen.loginHook, offset: 0x02519eca, size: 78 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/normal"
color="text-link"
onPress={onLogin}
key={a1}
>
{a0}
</Text>
);
}
function _fun119795() { // fn#119795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4080, offset: 0x0251a03e, size: 26 bytes, params: 1, frame: 2
env0_2.current = true;
return _fun119796;
}
function RestrictedHoursModalUseScreens(a0, a1) { // fn#119797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4169, owner: RestrictedHoursModal.useScreens, offset: 0x0251a058, size: 74 bytes, params: 3, frame: 15
var environment;
const env0_0 = a0;
const env0_1 = a1;
const value = environment.__proto__;
return (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun119798, [a0, a1]);
}
function _fun119800() { // fn#119800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4379, offset: 0x0251a100, size: 102 bytes, params: 1, frame: 12
var environment;
var value;
if (!env0_1.current) {
env0_1.current = true;
env0_3(true);
value = environment.__proto__;
value = importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */;
value = value.logout('restricted_hours');
value.finally(_fun119801);
function RestrictedHoursLogoutBlockingLayer({visible}) { // fn#119786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:898, offset: 0x02519734, size: 119 bytes, params: 2, frame: 18
const styles = useStyles();
return (
visible
? (
<View
style={styles.logoutBlockingLayer}
pointerEvents="auto"
accessibilityLiveRegion="polite"
>
{((ActivityIndicator) => <ActivityIndicator size="large" />)((require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator)}
</View>
)
: null
);
}
}
function _fun119802() { // fn#119802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4530, offset: 0x0251a190, size: 61 bytes, params: 1, frame: 11
var value;
if (!(env0_0 || env0_1.current)) {
value = environment.__proto__;
value = require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */;
value.closeRestrictedHoursModal();
function RestrictedHoursScreen({onLogin, logoutRequestInFlight}) { // fn#119787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1554, offset: 0x025197ab, size: 1290 bytes, params: 2, frame: 35
const intl = (IndexNativeModule).intl;
const styles = useStyles();
const {top, bottom} = (UseSafeAreaInsetsNative)();
const value3 = (UseFormattedEndTime)();
const value4 = (FluxModule).useStateFromStores([UserStore], _fun119788);
const value5 = (ReanimatedRexportModule).useSharedValue(0);
const value6 = (ReanimatedRexportModule).useSharedValue(0);
const value7 = (ReanimatedRexportModule).useSharedValue(0);
const value8 = (ReanimatedRexportModule).useSharedValue(0.9);
value8.useEffect(_fun119789, [value5, value6, value7, value8]);
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = RestrictedHoursScreenM;
closure.__closure = {backgroundOpacity: value5};
closure.__workletHash = 17073775693336;
closure.__initData = env0_12;
const value9 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = RestrictedHoursScreenO;
closure.__closure = {gradientOpacity: value6};
closure.__workletHash = 16592270370139;
closure.__initData = env0_13;
const value10 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = RestrictedHoursScreenZ;
closure.__closure = {contentOpacity: value7, contentScale: value8};
closure.__workletHash = 15616799997783;
closure.__initData = env0_14;
const value11 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const r24 = value3 != null ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).VfqJvY,
{endTime: value3}) : intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).abikhN);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
object = {backgroundColor: env0_9};
const View2 = (ReanimatedRexport).View;
const items5 = [styles.container];
items5[1] = {paddingTop: top, paddingBottom: bottom};
items5[2] = value9;
const items2 = [
<View style={styles.backgroundFill} pointerEvents="none" />,
];
const View3 = (ReanimatedRexport).View;
const items3 = [styles.assetLayers, value10];
const Image = (ReanimatedRexport).Image;
items2[1] = (
<View3 style={items3} pointerEvents="none">
<Image
source={require(15645) /* metro dependency 15645 */}
resizeMode="cover"
style={styles.sunbeamGradient}
/>
</View3>
);
const View4 = (ReanimatedRexport).View;
const items4 = [styles.content, value11];
const TeenScreenTimeRive = (NativeModule).TeenScreenTimeRive;
const view = (
<View style={styles.riveContainer}>
<TeenScreenTimeRive artboard="Teen Screen Time Illo" stateMachine="State Machine 1" />
</View>
);
const Text = (TextModule).Text;
items2[2] = (
<View4 style={items4}>
{view}
<Text
variant="text-lg/medium"
color="text-overlay-light"
style={styles.description}
>
{r24}
</Text>
</View4>
);
items2[3] = (
<View style={styles.footer}>
<Text
variant="text-sm/medium"
color="text-subtle"
style={styles.description}
>
{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).iqeKDz,
{username: value4, loginHook: loginHook_119793})}
</Text>
</View>
);
return (
<ModalScreen {...object}>
<View2 style={items5}>
{items2}
</View2>
<RestrictedHoursLogoutBlockingLayer visible={logoutRequestInFlight} />
</ModalScreen>
);
function _fun119788() { // fn#119788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1710, offset: 0x02519cb5, size: 49 bytes, params: 1, frame: 11
const value = environment.__proto__;
const username = UserStore.getCurrentUser()?.username;
return username ?? '';
}
function _fun119789() { // fn#119789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:1925, offset: 0x02519ce6, size: 484 bytes, params: 1, frame: 31
let binding = env0_1;
let set = binding.set;
let withTiming = TimingModule.withTiming;
let object = {duration: 3000};
const Easing = (ReanimatedRexportModule).Easing;
object.easing = Easing.bezier(0.24, 0.27, 0.58, 1);
Reflect.apply(set, binding, [Reflect.apply(withTiming, TimingModule, [1, object])]);
binding = env0_2;
set = binding.set;
let withDelay = ReanimatedRexportModule.withDelay;
withTiming = TimingModule.withTiming;
object = {duration: 1500};
object.easing = Easing.bezier(0, 0, 1, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, ReanimatedRexportModule, [1500, Reflect.apply(withTiming,
TimingModule, [1, object])])]);
binding = Module00057;
set = binding.set;
withDelay = ReanimatedRexportModule.withDelay;
withTiming = TimingModule.withTiming;
object = {duration: 1000};
object.easing = Easing.bezier(0.1, 0.24, 0.32, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, ReanimatedRexportModule, [2000, Reflect.apply(withTiming, TimingModule,
[1, object])])]);
binding = ReactModule;
set = binding.set;
withDelay = ReanimatedRexportModule.withDelay;
withTiming = TimingModule.withTiming;
object = {duration: 1000};
object.easing = Easing.bezier(0.1, 0.24, 0.32, 1);
Reflect.apply(set, binding, [Reflect.apply(withDelay, ReanimatedRexportModule, [2000, Reflect.apply(withTiming, TimingModule, [1,
object])])]);
}
function RestrictedHoursScreenM() { // fn#119790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:2411, owner: RestrictedHoursScreen.M, offset: 0x01c1ea9c, size: 24 bytes, params: 1, frame: 10
const object = {};
object.opacity = env0_1.get();
return object;
}
function RestrictedHoursScreenO() { // fn#119791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:2549, owner: RestrictedHoursScreen.O, offset: 0x0202cb77, size: 24 bytes, params: 1, frame: 10
const object = {};
object.opacity = env0_2.get();
return object;
}
function RestrictedHoursScreenZ() { // fn#119792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:2685, owner: RestrictedHoursScreen.z, offset: 0x0202d22a, size: 56 bytes, params: 1, frame: 11
const object = {};
object.opacity = Module00057.get();
const object2 = {};
object2.scale = ReactModule.get();
object.transform = [object2];
return object;
}
function RestrictedHoursScreenLoginHook(a0, a1) { // fn#119793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:3737, owner: RestrictedHoursScreen.loginHook, offset: 0x02519eca, size: 78 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/normal"
color="text-link"
onPress={onLogin}
key={a1}
>
{a0}
</Text>
);
}
}
}
function _fun119798() { // fn#119798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4231, offset: 0x0251a0a2, size: 50 bytes, params: 1, frame: 4
const MAIN = env2_11.MAIN;
return {[MAIN]: {'headerShown': false, 'gestureEnabled': false, render: render_119799}};
}
function RestrictedHoursModal() { // fn#119794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:3988, offset: 0x02519f18, size: 294 bytes, params: 1, frame: 20
const value2 = (UseIsInRestrictedHours)();
const env0_1 = ReactModule.useRef(false);
const env0_2 = ReactModule.useRef(true);
ReactModule.useEffect(_fun119795, []);
const [property, env0_3] = env0_3Binding(ReactModule.useState(false), 2);
const value6 = RestrictedHoursModalUseScreens(ReactModule.useCallback(_fun119800, []), property);
ReactModule.useEffect(_fun119802, [value2]);
(importDefault(4571) /* metro dependency 4571: useBackPressHandler */)(function() {
return true;
});
const Modal = (ModalNativeModule).Modal;
const MAIN = env0_11.MAIN;
return <Modal screens={value6} initialRouteName={MAIN} />;
function _fun119795() { // fn#119795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4080, offset: 0x0251a03e, size: 26 bytes, params: 1, frame: 2
env0_2.current = true;
return _fun119796;
function _fun119796() { // fn#119796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4098, offset: 0x00e64dab, size: 19 bytes, params: 1, frame: 2
env1_2.current = false;
}
}
function RestrictedHoursModalUseScreens(a0, a1) { // fn#119797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4169, owner: RestrictedHoursModal.useScreens, offset: 0x0251a058, size: 74 bytes, params: 3, frame: 15
var environment;
const env0_0 = a0;
const env0_1 = a1;
const value = environment.__proto__;
return (NavigatorNativeModule).useNavigatorScreens(_fun119798, [a0, a1]);
function _fun119798() { // fn#119798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4231, offset: 0x0251a0a2, size: 50 bytes, params: 1, frame: 4
const MAIN = env2_11.MAIN;
return {[MAIN]: {'headerShown': false, 'gestureEnabled': false, render: render_119799}};
function render_119799() { // fn#119799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4287, offset: 0x0251a0d4, size: 44 bytes, params: 1, frame: 14
return <RestrictedHoursScreen onLogin={env1_0} logoutRequestInFlight={require} />;
}
}
}
function _fun119800() { // fn#119800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4379, offset: 0x0251a100, size: 102 bytes, params: 1, frame: 12
var environment;
var value;
if (!env0_1.current) {
env0_1.current = true;
env0_3(true);
value = environment.__proto__;
value = importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */;
value = value.logout('restricted_hours');
value.finally(_fun119801);
}
function _fun119801() { // fn#119801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4460, offset: 0x0251a166, size: 42 bytes, params: 1, frame: 11
if (env1_2.current) {
env1_1.current = false;
env1_3(false);
}
}
}
function _fun119802() { // fn#119802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4530, offset: 0x0251a190, size: 61 bytes, params: 1, frame: 11
var value;
if (!(env0_0 || env0_1.current)) {
value = environment.__proto__;
value = require(15642) /* metro dependency 15642: RestrictedHoursActionCreatorsNative */;
value.closeRestrictedHoursModal();
}
}
function _fun119801() { // fn#119801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4460, offset: 0x0251a166, size: 42 bytes, params: 1, frame: 11
if (env1_2.current) {
env1_1.current = false;
env1_3(false);
}
}
function render_119799() { // fn#119799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15851:4287, offset: 0x0251a0d4, size: 44 bytes, params: 1, frame: 14
return <RestrictedHoursScreen onLogin={env1_0} logoutRequestInFlight={require} />;
}
global.__d(_fun119785, 15643, [57, 31, 27, 1878, 33, 4501, 697, 5461, 1585, 15644, 566, 4017, 4504, 1244, 2224,
6258, 15645, 3868, 4573, 5280, 15646, 5076, 15642, 4571, 10121,
2]) /* metro module 15643, dependencies: [57, 31, 27, 1878, 33, 4501, 697, 5461, 1585, 15644, 566, 4017, 4504, 1244, 2224, 6258, 15645, 3868, 4573, 5280, 15646, 5076, 15642, 4571, 10121, 2] */;
File diff suppressed because it is too large. Load diff