Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,676 @@
|
||||
/* Metro module 13420; source: modules/parent_tools/native/ChangeSpendingLimitModal.tsx; dependencies: [5, 31, 27, 33, 4501, 697, 8129, 4573, 1244, 2224, 13421, 3857, 4073, 5080, 3856, 5137, 6258, 6259, 4572, 7981, 10120, 6261, 4578, 5282, 10121, 2] */
|
||||
function _fun102109(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:6, offset: 0x0222d270, size: 449 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
|
||||
const INPUT_FIELD_RADIUS_LG = (importDefault(697) /* metro dependency 697: native */).modules.mobile.INPUT_FIELD_RADIUS_LG;
|
||||
object4['borderRadius'] = INPUT_FIELD_RADIUS_LG;
|
||||
object4['borderWidth'] = 1;
|
||||
let ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
|
||||
object4['borderColor'] = ICON_FEEDBACK_WARNING;
|
||||
const BACKGROUND_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_WARNING;
|
||||
object4['backgroundColor'] = BACKGROUND_FEEDBACK_WARNING;
|
||||
object3.warningOverlay = object4;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.warningRow = {'flexDirection': 'row', 'gap': null, 'alignItems': 'flex-start', gap: PX_8};
|
||||
ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
|
||||
object3.warningText = {flex: 1, color: ICON_FEEDBACK_WARNING};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/ChangeSpendingLimitModal.tsx');
|
||||
exports.default = ChangeSpendingLimitModal;
|
||||
}
|
||||
|
||||
function renderMonthlySpendLine(a0, a1, a2, a3) { // fn#102110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:568, offset: 0x0222d431, size: 388 bytes, params: 5, frame: 25
|
||||
var r1;
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
if (a1) {
|
||||
var viewBindingProps = {style: a3.warningRow};
|
||||
items2 = [((WarningIcon) => <WarningIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING} />)((require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon)];
|
||||
items2[1] = <Text variant="text-sm/normal" style={a3.warningText}>{intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).Tk6x4X,
|
||||
|
||||
|
||||
{amount: a0, date: a2})}</Text>;
|
||||
r1 = <View {...viewBindingProps}>{items2}</View>;
|
||||
} else {
|
||||
r1 = <Text variant="text-sm/normal" color="text-muted">{intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pfAlRY,
|
||||
|
||||
|
||||
{amount: a0})}</Text>;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ChangeSpendingLimitScreen({teenId}) { // fn#102111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:1016, offset: 0x0222d5b5, size: 1295 bytes, params: 2, frame: 54
|
||||
var r11;
|
||||
var object;
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(13421) /* metro dependency 13421: ChangeSpendingLimitFormState */).useChangeSpendingLimitFormState(teenId);
|
||||
const amountInput = value3.amountInput;
|
||||
const handleAmountChange = value3.handleAmountChange;
|
||||
const currency = value3.currency;
|
||||
const currencySymbol = value3.currencySymbol;
|
||||
const exponent = value3.exponent;
|
||||
const isClearingCap = value3.isClearingCap;
|
||||
const isOverspending = value3.isOverspending;
|
||||
const canSave = value3.canSave;
|
||||
const isSubmitting = value3.isSubmitting;
|
||||
const renewalDate = value3.renewalDate;
|
||||
const monthlySpend = value3.monthlySpend;
|
||||
const env0_0 = value3.save;
|
||||
const value4 = _fun102112();
|
||||
const r22 = monthlySpend != null && monthlySpend > 0 ? (require(5137) /* metro dependency 5137: PriceUtils */).formatPrice(monthlySpend,
|
||||
currency) : null;
|
||||
const value7 = amountInput.length > 0;
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const IFguF2 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).IFguF2;
|
||||
const text = <Text variant="text-sm/normal">{Reflect.apply(string, intl, [IFguF2])}</Text>;
|
||||
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const items2 = [<Text variant="text-sm/semibold" color="text-subtle">{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1fHSu2'])}</Text>];
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const textInputProps = {accessibilityLabel: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1fHSu2']),
|
||||
value: amountInput, onChange: handleAmountChange, leadingText: value7 ? currencySymbol : undefined};
|
||||
string = intl.string;
|
||||
const DjSv82 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).DjSv82;
|
||||
textInputProps.placeholder = Reflect.apply(string, intl, [DjSv82]);
|
||||
textInputProps.keyboardType = exponent > 0 ? 'decimal-pad' : 'number-pad';
|
||||
textInputProps.isClearable = true;
|
||||
items2[1] = <View><TextInput {...textInputProps} />{isOverspending ? <View style={styles.warningOverlay} pointerEvents="none" /> : null}</View>;
|
||||
items2[2] = renderMonthlySpendLine(r22, isOverspending, renewalDate, styles);
|
||||
const modalContent = <ModalContent><Stack spacing={PX_16}>{text}<Stack2 spacing={PX_8}>{items2}</Stack2></Stack></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;
|
||||
if (isClearingCap) {
|
||||
object2 = {variant: 'destructive'};
|
||||
object2.text = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).JZDGJ8);
|
||||
object2.onPress = value4;
|
||||
object2.disabled = isSubmitting;
|
||||
object2.loading = isSubmitting;
|
||||
r11 = object2;
|
||||
} else {
|
||||
object = {};
|
||||
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+']);
|
||||
object.onPress = value4;
|
||||
object.disabled = canSave ? isSubmitting : !canSave;
|
||||
object.loading = isSubmitting;
|
||||
r11 = object;
|
||||
}
|
||||
return (
|
||||
<ModalScreen>
|
||||
{modalContent}
|
||||
<ModalFooter>
|
||||
<ButtonGroup>
|
||||
<Button {...r11} />
|
||||
<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 ChangeSpendingLimitModal({teenId}) { // fn#102116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:2944, offset: 0x0222dc17, size: 158 bytes, params: 2, frame: 18
|
||||
const value2 = env0_4.useMemo(function() {
|
||||
return _fun102118(teenId);
|
||||
}, [teenId]);
|
||||
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Modal
|
||||
initialRouteName="CHANGE_SPENDING_LIMIT"
|
||||
screens={value2}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102112() { // fn#102112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:1313, offset: 0x0222dac4, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun102114);
|
||||
return _fun102115;
|
||||
}
|
||||
|
||||
function _fun102117() { // fn#102117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:3007, offset: 0x0222dcb5, 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 = _fun102119;
|
||||
object2.render = _fun102120;
|
||||
return {CHANGE_SPENDING_LIMIT: object2};
|
||||
})(teenId);
|
||||
}
|
||||
|
||||
function* _fun102114() { // fn#102114, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:1333, offset: 0x0222daf3, size: 292 bytes, params: 1, frame: 20
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var open;
|
||||
var object2;
|
||||
var binding3;
|
||||
var intl;
|
||||
var string;
|
||||
var CircleCheckIcon;
|
||||
var pop;
|
||||
var error;
|
||||
var binding4;
|
||||
var value5;
|
||||
var presentFailedToast;
|
||||
var Wu8BK2;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = require();
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
open = value4.open;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.key = 'SPENDING_CONTROLS_CHANGED';
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_0;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding3(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
intl = value.intl;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
string = intl.string;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[9];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = value['2WKfG1'];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(string, intl, [property]);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.content = value;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding3(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
CircleCheckIcon = value.CircleCheckIcon;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.IconComponent = CircleCheckIcon;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.iconColor = 'status-positive';
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(open, value4, [object2]);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[13];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
pop = value.pop;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(pop, value, []);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value5 = binding(binding4[14]);
|
||||
presentFailedToast = value5.presentFailedToast;
|
||||
intl = binding(binding4[8]).intl;
|
||||
string = intl.string;
|
||||
binding = env3_1;
|
||||
Wu8BK2 = binding(binding4[9]).Wu8BK2;
|
||||
Reflect.apply(presentFailedToast, value5, [Reflect.apply(string, intl, [Wu8BK2])]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getScreens_102118(a0) { // fn#102118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:3011, offset: 0x0222dcce, size: 116 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 = headerTitle_102119;
|
||||
object.render = render_102120;
|
||||
return {CHANGE_SPENDING_LIMIT: object};
|
||||
}
|
||||
|
||||
function getScreens_102118HeaderTitle() { // fn#102119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:3146, owner: getScreens_102118.headerTitle, offset: 0x0222dd42, size: 107 bytes, params: 1, frame: 18
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Text variant="text-md/semibold">
|
||||
{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).xMRO6A)}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_102118Render() { // fn#102120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13610:3247, owner: getScreens_102118.render, offset: 0x0222ddad, size: 35 bytes, params: 1, frame: 13
|
||||
return <ChangeSpendingLimitScreen teenId={env0_0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {};
|
||||
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;
|
||||
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');
|
||||
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 = (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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
const object = {'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,
|
||||
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',
|
||||
'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;
|
||||
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');
|
||||
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 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)}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
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',
|
||||
'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;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.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');
|
||||
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) {
|
||||
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>;
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,391 @@
|
||||
/* 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] */
|
||||
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 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 = {};
|
||||
const ICON_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.ICON_SUBTLE;
|
||||
object6.color = ICON_SUBTLE;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.width = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.height = PX_16;
|
||||
object3.icon = object6;
|
||||
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};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object7.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;
|
||||
const NORMAL = AvatarSizes.NORMAL;
|
||||
object8.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;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.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};
|
||||
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]);
|
||||
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'};
|
||||
BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
||||
object11.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 = {};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object12.color = INTERACTIVE_TEXT_DEFAULT;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object12.width = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object12.height = PX_24;
|
||||
object12.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 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.card = {marginTop: PX_16};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.preface = {display: 'flex', marginBottom: PX_12};
|
||||
const object13 = {};
|
||||
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'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object16.padding = PX_16;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object16.gap = PX_32;
|
||||
object3.content = object16;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.totals = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', 'justifyContent': 'space-between',
|
||||
gap: PX_8};
|
||||
object3.first = {width: '100%'};
|
||||
object3.other = {width: '48.5%'};
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object3.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');
|
||||
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))}
|
||||
</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 />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
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} />)(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 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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 13418; source: modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx; dependencies: [31, 27, 33, 4501, 697, 8405, 13406, 13415, 13417, 3995, 13416, 4573, 2] */
|
||||
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 */;
|
||||
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 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');
|
||||
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 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
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',
|
||||
'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,
|
||||
height: PREVIEW_SIZE};
|
||||
object3.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');
|
||||
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>;
|
||||
}
|
||||
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}>
|
||||
{((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} />;
|
||||
}
|
||||
}
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 13391; source: modules/parent_tools/native/FamilyCenterActivityPage.tsx; dependencies: [31, 27, 33, 4501, 697, 8170, 6618, 13392, 13398, 12626, 13402, 2] */
|
||||
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 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.ScrollView;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.scrollView = {flex: 1};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.dataConfirmation = {marginTop: PX_8};
|
||||
const object3 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.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');
|
||||
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}
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 13414; source: modules/parent_tools/native/FamilyCenterActivityPurchaseRow.tsx; dependencies: [31, 27, 33, 4501, 697, 8405, 13415, 5137, 13416, 4573, 2] */
|
||||
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 */;
|
||||
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 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');
|
||||
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 = (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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
/* 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] */
|
||||
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 BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.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 NORMAL = AvatarSizes.NORMAL;
|
||||
object4.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]);
|
||||
value.memo(_fun102064).displayName = 'FamilyCenterActivityRowUser';
|
||||
const value5 = createStylesModule;
|
||||
createStyles = value5.createStyles;
|
||||
object2 = {};
|
||||
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.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,
|
||||
'backgroundColor': null, 'marginRight': 12};
|
||||
object6.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;
|
||||
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
|
||||
object2.avatar = object6;
|
||||
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]);
|
||||
value = value.memo(_fun102066);
|
||||
value.displayName = 'FamilyCenterActivityRowGuild';
|
||||
(require(2) /* metro dependency 2 */).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);
|
||||
(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) {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_5 = value.ActivityIndicator;
|
||||
const env0_6 = value.View;
|
||||
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
|
||||
const env0_7 = value.FAMILY_CENTER_ITEMS_SHOWN_INCREMENTS;
|
||||
const env0_8 = value.TeenActionDisplayType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.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]);
|
||||
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 BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object3.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object3.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');
|
||||
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;
|
||||
}
|
||||
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 _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 */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 13408; source: modules/parent_tools/native/FamilyCenterActivityTotal.tsx; dependencies: [31, 27, 33, 4501, 697, 13407, 5187, 4573, 2] */
|
||||
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 */;
|
||||
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',
|
||||
'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;
|
||||
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');
|
||||
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 = (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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* Metro module 13435; source: modules/parent_tools/native/FamilyCenterAvatarPair.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 632, 1305, 2] */
|
||||
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 */;
|
||||
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',
|
||||
'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,
|
||||
'marginHorizontal': 16}}]);
|
||||
(require(2) /* metro dependency 2 */).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;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
/* 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] */
|
||||
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 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,
|
||||
'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;
|
||||
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;
|
||||
}
|
||||
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;
|
||||
} else {
|
||||
(require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */).handleFamilyCenterQRCodeScan(pathname,
|
||||
|
||||
|
||||
|
||||
'FamilyCenterQRCodeScan');
|
||||
r1 = value2;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
} 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 _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}]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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 = (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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 13429; source: modules/parent_tools/native/FamilyCenterEmpty.tsx; dependencies: [31, 27, 33, 4501, 13430, 4573, 2] */
|
||||
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 */;
|
||||
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,
|
||||
'width': 243}, empty: {'display': 'flex', 'alignItems': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).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={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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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 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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 13431; source: modules/parent_tools/native/FamilyCenterLinkRow.tsx; dependencies: [31, 27, 5117, 33, 4501, 13432, 13433, 2] */
|
||||
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',
|
||||
'alignItems': 'center', 'justifyContent': 'flex-end', 'height': '100%'}});
|
||||
(require(2) /* metro dependency 2 */).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 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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 13432; source: modules/parent_tools/native/FamilyCenterLinkWrapper.tsx; dependencies: [31, 33, 4501, 697, 6771, 5278, 8743, 2] */
|
||||
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};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.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');
|
||||
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 = (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});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'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;
|
||||
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;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.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};
|
||||
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]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
const object5 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.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}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
const object7 = {'display': 'flex', 'flexDirection': 'column', 'justifyContent': 'center', 'alignItems': 'center',
|
||||
'overflow': 'hidden', 'width': 32, 'height': 32};
|
||||
object7.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;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [{row: {'display': 'flex', 'flexDirection': 'row',
|
||||
'alignItems': 'flex-start'}, gap: {marginBottom: 12}, circle: object7, rowContent: {'marginLeft': 12,
|
||||
'flex': 1}}]);
|
||||
(require(2) /* metro dependency 2 */).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>
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
||||
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>
|
||||
</View>
|
||||
{((Component) => <Component />)(value2 ? FamilyCenterLinkingBannerParentContent : FamilyCenterLinkingBannerTeenContent)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginTop = PX_16;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.marginBottom = PX_4;
|
||||
object2.headerText = object4;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.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');
|
||||
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} = (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};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.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');
|
||||
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 = (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};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,222 @@
|
||||
/* 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] */
|
||||
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 env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
object3 = {};
|
||||
const USER_INTERACTION = TeenActionDisplayType.USER_INTERACTION;
|
||||
const ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
||||
object3[USER_INTERACTION] = ChatIcon;
|
||||
const USER_CALLED = TeenActionDisplayType.USER_CALLED;
|
||||
const PhoneIcon = (require(12628) /* metro dependency 12628: PhoneIcon */).PhoneIcon;
|
||||
object3[USER_CALLED] = PhoneIcon;
|
||||
const USER_ADD = TeenActionDisplayType.USER_ADD;
|
||||
const FriendsIcon = (require(3858) /* metro dependency 3858: FriendsIcon */).FriendsIcon;
|
||||
object3[USER_ADD] = FriendsIcon;
|
||||
const GUILD_ADD = TeenActionDisplayType.GUILD_ADD;
|
||||
const ServerGridIcon = (require(12324) /* metro dependency 12324: ServerGridIcon */).ServerGridIcon;
|
||||
object3[GUILD_ADD] = ServerGridIcon;
|
||||
const GUILD_INTERACTION = TeenActionDisplayType.GUILD_INTERACTION;
|
||||
const ThreadIcon = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
||||
object3[GUILD_INTERACTION] = ThreadIcon;
|
||||
const PURCHASES = TeenActionDisplayType.PURCHASES;
|
||||
const CreditCardIcon = (require(12630) /* metro dependency 12630: CreditCardIcon */).CreditCardIcon;
|
||||
object3[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 GIFTS = TeenActionDisplayType.GIFTS;
|
||||
const GiftIcon = (require(10112) /* metro dependency 10112: GiftIcon */).GiftIcon;
|
||||
object3[GIFTS] = GiftIcon;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {'display': 'flex', 'flexDirection': 'row', 'width': '100%', 'alignItems': 'center'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.marginBottom = PX_8;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.paddingVertical = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.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,
|
||||
'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;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.marginRight = PX_12;
|
||||
object3.iconContainer = object6;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.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]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.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');
|
||||
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}
|
||||
/>
|
||||
</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();
|
||||
}
|
||||
return (
|
||||
<Row_102014
|
||||
IconComponent={env1_7[r3]}
|
||||
header={r7.tooltipHeader()}
|
||||
description={r7.tooltipDescription(env0_0 ?? value)}
|
||||
key={r3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
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 />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
|
||||
const object5 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginTop = PX_16;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.marginBottom = PX_4;
|
||||
object2.headerText = object5;
|
||||
const object6 = {};
|
||||
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;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object2.body = object6;
|
||||
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');
|
||||
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 = (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};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.header = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_16};
|
||||
const object5 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginTop = PX_16;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.marginBottom = PX_4;
|
||||
object2.headerText = object5;
|
||||
const object6 = {};
|
||||
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;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object2.body = object6;
|
||||
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');
|
||||
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 = 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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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 = {};
|
||||
const MESSAGE_MENTIONED_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MESSAGE_MENTIONED_BACKGROUND_DEFAULT;
|
||||
object2.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,
|
||||
'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;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.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',
|
||||
'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');
|
||||
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 = (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 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 _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 _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 _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 />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,742 @@
|
||||
/* Metro module 12622; source: modules/parent_tools/native/FamilyCenterModalRequest.tsx; dependencies: [5, 31, 27, 1878, 5117, 33, 4501, 697, 1484, 632, 5118, 12623, 5187, 12624, 6258, 6259, 1305, 1423, 1244, 2224, 4573, 12625, 12626, 10120, 6261, 4578, 5080, 5473, 8171, 44, 11365, 8160, 5461, 6266, 1909, 5263, 5074, 4813, 12620, 5282, 12632, 10121, 2] */
|
||||
function _fun96804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6, offset: 0x02167681, size: 1610 bytes, params: 8, frame: 29
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = FamilyCenterModalRequestConfirm;
|
||||
const closure2 = FamilyCenterModalRequestSuccess;
|
||||
const closure3 = FamilyCenterModalRequestError;
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.Image;
|
||||
const env0_6 = value.View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
|
||||
const env0_8 = value.FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT;
|
||||
const env0_9 = value.FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES;
|
||||
const env0_10 = value.FamilyCenterFailureCode;
|
||||
const env0_11 = value.FamilyCenterIconType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginBottom = PX_16;
|
||||
object3.headerText = object5;
|
||||
object3.art = {'width': 165, 'height': 119};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.connectionHeader = {alignItems: 'center', marginBottom: PX_16};
|
||||
const object7 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'alignSelf': 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.padding = PX_8;
|
||||
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object7.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object7.marginBottom = PX_24;
|
||||
object3.headerIcons = object7;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.ellipseGroup = {flexDirection: 'row', marginHorizontal: PX_12};
|
||||
const object8 = {'width': 4, 'height': 4, 'marginHorizontal': 2};
|
||||
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
|
||||
object8.backgroundColor = ICON_MUTED;
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.ellipse = object8;
|
||||
object3.title = {textAlign: 'center'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.teenName = {marginTop: PX_4, textAlign: 'center'};
|
||||
const object10 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.marginTop = PX_8;
|
||||
object10.textAlign = 'center';
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object10.paddingHorizontal = PX_16;
|
||||
object3.consent = object10;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object3]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.content = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center',
|
||||
paddingHorizontal: PX_16};
|
||||
object3.textWrapper = {alignItems: 'center'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.header = {marginBottom: PX_8};
|
||||
object3.description = {textAlign: 'center'};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.illustration = {'position': 'absolute', 'bottom': '100%', 'left': 0, 'right': 0, 'alignItems': 'center',
|
||||
paddingBottom: PX_24};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object3]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object3 = {header: {'marginBottom': 8, 'textAlign': 'center'}};
|
||||
object3.description = {textAlign: 'center'};
|
||||
const object11 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height': 64, 'width': 64,
|
||||
'borderRadius': null, 'backgroundColor': null, 'marginBottom': 24};
|
||||
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object11.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.ring = object11;
|
||||
const object12 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height': 48, 'width': 48};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
||||
object12.backgroundColor = STATUS_POSITIVE;
|
||||
object3.iconContainer = object12;
|
||||
STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
||||
object3.positive = {backgroundColor: STATUS_POSITIVE};
|
||||
const BACKGROUND_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_CRITICAL;
|
||||
object3.negative = {backgroundColor: BACKGROUND_FEEDBACK_CRITICAL};
|
||||
const env0_17 = Reflect.apply(createStyles, value, [object3]);
|
||||
const env0_18 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'justifyContent': 'center', 'alignItems': 'center'}});
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const env0_19 = Reflect.apply(createStyles, value, [{content: {'flex': 1, 'flexDirection': 'column',
|
||||
'alignItems': 'center', 'justifyContent': 'center', 'paddingHorizontal': 32}, title: {textAlign: 'center',
|
||||
marginBottom: PX_8}, description: {textAlign: 'center'}}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object3 = {content: {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'paddingHorizontal': 32}};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.art = {'width': 165, 'height': 119, marginBottom: PX_24};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.title = {textAlign: 'center', marginBottom: PX_8};
|
||||
object3.description = {textAlign: 'center'};
|
||||
const env0_20 = Reflect.apply(createStyles, value, [object3]);
|
||||
object3 = {headerShown: true};
|
||||
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object3.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalRequest.tsx');
|
||||
exports.default = FamilyCenterRequestModal;
|
||||
exports.FamilyCenterModalRequestConfirm = closure;
|
||||
exports.FamilyCenterModalRequestSuccess = closure2;
|
||||
exports.FamilyCenterModalRequestError = closure3;
|
||||
}
|
||||
|
||||
function FamilyCenterModalRequestConfirm({userId, linkCode, teenIdentity}) { // fn#96805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1178, offset: 0x02167ccb, size: 1841 bytes, params: 2, frame: 43
|
||||
var r30;
|
||||
var r8;
|
||||
var jsxRuntimeEnv0_14Binding;
|
||||
var items5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
var LARGE;
|
||||
var formatToPlainString;
|
||||
var kFj4h1;
|
||||
var items2;
|
||||
var ellipse;
|
||||
var items3;
|
||||
var object14;
|
||||
var global_name;
|
||||
var items4;
|
||||
var format;
|
||||
var yiUJNU;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const {requestLink,
|
||||
isRequestingLink} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: env0_4.useCallback(_fun96807,
|
||||
[value3]), onError: env0_4.useCallback(_fun96808, [value3])});
|
||||
const value7 = env0_4.useCallback(function() {
|
||||
requestLink(userId, linkCode);
|
||||
}, [requestLink, userId, linkCode]);
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
||||
if (teenIdentity != null) {
|
||||
var viewBindingProps = {style: styles.connectionHeader};
|
||||
var viewBinding2Props = {style: styles.headerIcons};
|
||||
var avatarProps = {source: currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser) : undefined};
|
||||
LARGE = AvatarSizes.LARGE;
|
||||
avatarProps.size = LARGE;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
kFj4h1 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kFj4h1;
|
||||
r30 = currentUser?.globalName ?? currentUser?.username ?? '';
|
||||
avatarProps.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [kFj4h1, {name: r30}]);
|
||||
items2 = [<Avatar {...avatarProps} />];
|
||||
var viewBinding3Props = {style: styles.ellipseGroup};
|
||||
ellipse = styles.ellipse;
|
||||
items3 = [<View style={ellipse} />];
|
||||
ellipse = styles.ellipse;
|
||||
items3[1] = <View style={ellipse} />;
|
||||
ellipse = styles.ellipse;
|
||||
items3[2] = <View style={ellipse} />;
|
||||
items2[1] = <View {...viewBinding3Props}>{items3}</View>;
|
||||
var avatarProps2 = {source: (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource({id: teenIdentity.id,
|
||||
|
||||
avatar: teenIdentity.avatar, discriminator: '0'})};
|
||||
LARGE = AvatarSizes.LARGE;
|
||||
avatarProps2.size = LARGE;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
kFj4h1 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kFj4h1;
|
||||
global_name = teenIdentity.global_name;
|
||||
r30 = global_name ?? teenIdentity.username;
|
||||
avatarProps2.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [kFj4h1, {name: r30}]);
|
||||
items2[2] = <Avatar {...avatarProps2} />;
|
||||
items4 = [<View {...viewBinding2Props}>{items2}</View>];
|
||||
items4[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).sMmIbm)}</Text>;
|
||||
global_name = teenIdentity.global_name;
|
||||
items4[2] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.teenName}>{global_name ?? teenIdentity.username}</Text>;
|
||||
var textProps2 = {'variant': 'text-sm/medium', 'color': 'text-muted', style: styles.consent};
|
||||
format = intl.format;
|
||||
yiUJNU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).yiUJNU;
|
||||
global_name = teenIdentity.global_name;
|
||||
items4[3] = <Text {...textProps2}>{Reflect.apply(format, intl, [yiUJNU,
|
||||
{username: global_name ?? teenIdentity.username}])}</Text>;
|
||||
r8 = <View {...viewBindingProps}>{items4}</View>;
|
||||
} else {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items5 = [<Image style={styles.art} source={importDefault(12625) /* metro dependency 12625 */} />];
|
||||
items5[1] = <Text style={styles.headerText} variant="text-lg/bold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GH11eI)}</Text>;
|
||||
r8 = <>{items5}</>;
|
||||
}
|
||||
const modalContent = <ModalContent>{r8}{((Component) => <Component source="request-modal" />)(importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */)}</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;
|
||||
const string = intl.string;
|
||||
const ISg34l = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ISg34l;
|
||||
return (
|
||||
<ModalScreen>
|
||||
{modalContent}
|
||||
<ModalFooter>
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
variant="primary"
|
||||
size="lg"
|
||||
disabled={isRequestingLink}
|
||||
loading={isRequestingLink}
|
||||
text={Reflect.apply(string, intl, [ISg34l])}
|
||||
onPress={value7}
|
||||
/>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="lg"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
||||
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
|
||||
/>
|
||||
</ButtonGroup>
|
||||
</ModalFooter>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterModalRequestSuccess() { // fn#96810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:3903, offset: 0x021684c1, size: 718 bytes, params: 1, frame: 40
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value3 = env0_4.useCallback(_fun96812, []);
|
||||
if (currentUser === null) {
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
||||
const EnvelopeSpotIllustration = (require(5473) /* metro dependency 5473: native */).EnvelopeSpotIllustration;
|
||||
const items2 = [<View style={styles.illustration}><EnvelopeSpotIllustration scale={0.7} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const EpwfZl = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).EpwfZl;
|
||||
items2[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.header}>{Reflect.apply(string,
|
||||
intl, [EpwfZl])}</Text>;
|
||||
items2[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).dVtWId,
|
||||
{email: currentUser == null ? value2 : currentUser.email})}</Text>;
|
||||
const modalContent = <ModalContent><View style={styles.content}><View style={styles.textWrapper}>{items2}</View></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
|
||||
size="lg"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
onPress={value3}
|
||||
/>
|
||||
</ModalFooter>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterModalRequestError({failureCode}) { // fn#96813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:5341, offset: 0x021687b4, size: 856 bytes, params: 2, frame: 34
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
|
||||
const nativeModule = require(1305) /* metro dependency 1305: native */;
|
||||
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
|
||||
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
|
||||
const value4 = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
|
||||
const value5 = env0_4.useCallback(_fun96815, []);
|
||||
(importDefault(44) /* metro dependency 44 */)(currentUser != null, 'User must be logged in to see this modal.');
|
||||
const property = FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES[failureCode];
|
||||
object2 = {isAdult: value3 ?? undefined, email: currentUser.email ?? undefined};
|
||||
const value6 = property.header(object2);
|
||||
const value7 = property.description(object2);
|
||||
const icon = property.icon;
|
||||
let CHECK = FamilyCenterIconType.CHECK;
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
||||
const items4 = [styles.ring, value4];
|
||||
const items2 = [styles.iconContainer];
|
||||
items2[1] = icon === CHECK ? styles.positive : styles.negative;
|
||||
CHECK = FamilyCenterIconType.CHECK;
|
||||
const items3 = [<View style={items4}><View style={items2}>{icon === CHECK ? <nativeModule.Icon source={importDefault(11365) /* metro dependency 11365 */} color="#FFF" /> : <nativeModule.Icon source={importDefault(8160) /* metro dependency 8160 */} color="#FFF" />}</View></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items3[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.header}>{value6}</Text>;
|
||||
items3[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{value7}</Text>;
|
||||
const modalContent = <ModalContent>{items3}</ModalContent>;
|
||||
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<ModalScreen>
|
||||
{modalContent}
|
||||
<ModalFooter>
|
||||
<Button
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
onPress={value5}
|
||||
/>
|
||||
</ModalFooter>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterPrereqLoading({userId, linkCode}) { // fn#96816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6483, offset: 0x02168b0c, size: 192 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
env0_4.useEffect(function() {
|
||||
var env0_0 = false;
|
||||
_fun96818()();
|
||||
return _fun96822;
|
||||
}, []);
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ActivityIndicator = (require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator;
|
||||
return (
|
||||
<ModalScreen>
|
||||
<View style={styles.container}>
|
||||
<ActivityIndicator />
|
||||
</View>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterPrereqScreen({title, description, primaryButton}) { // fn#96823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:7293, offset: 0x02168cf9, size: 315 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view = <View style={styles.content}><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{title}</Text><Text variant="text-sm/medium" color="text-muted" style={styles.description}>{description}</Text></View>;
|
||||
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<ModalScreen>
|
||||
{view}
|
||||
<ModalFooter>
|
||||
<Button text={primaryButton.text} onPress={primaryButton.onPress} />
|
||||
</ModalFooter>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function useNavigateToVerifyingOnPending() { // fn#96824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8029, offset: 0x02168e34, size: 152 bytes, params: 1, frame: 18
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
_fun96825);
|
||||
env0_4.useEffect(_fun96826, [value3, (importDefault(6266) /* metro dependency 6266: usePrevious */)(value3),
|
||||
value2]);
|
||||
}
|
||||
|
||||
function FamilyCenterConfirmAgeScreen() { // fn#96827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8407, offset: 0x02168f80, size: 662 bytes, params: 1, frame: 34
|
||||
const styles = useStyles();
|
||||
useNavigateToVerifyingOnPending();
|
||||
const value2 = env0_4.useCallback(function() {
|
||||
var defaultImport = importDefault(dependencyMap[35]);
|
||||
var object = {};
|
||||
object.entryPoint = require(dependencyMap[36]).AgeVerificationModalEntryPoint.FAMILY_CENTER_CONNECTION;
|
||||
defaultImport.showAgeVerificationGetStartedModal(object);
|
||||
}, []);
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const items2 = [<Image style={styles.art} source={importDefault(12625) /* metro dependency 12625 */} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pQQMJ7)}</Text>;
|
||||
items2[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0o3yg8'],
|
||||
{link: 'https://support.discord.com/hc/articles/14155060633623'})}</Text>;
|
||||
const view = <View style={styles.content}>{items2}</View>;
|
||||
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>
|
||||
{view}
|
||||
<ModalFooter>
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
variant="primary"
|
||||
text={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['3oUE4o'])}
|
||||
onPress={value2}
|
||||
/>
|
||||
<Button
|
||||
variant="tertiary"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF)}
|
||||
onPress={onPress_96829}
|
||||
/>
|
||||
</ButtonGroup>
|
||||
</ModalFooter>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterVerifyingScreen() { // fn#96830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9377, offset: 0x02169284, size: 304 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value3 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useIsAgeVerified();
|
||||
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
_fun96831);
|
||||
const env0_3 = env0_4.useRef(false);
|
||||
env0_4.useEffect(_fun96832, [value3, value4, value2]);
|
||||
env0_4.useEffect(function() {
|
||||
var env0_0 = global.setTimeout(_fun96834, FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT);
|
||||
return _fun96835;
|
||||
}, [value2]);
|
||||
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
||||
const ActivityIndicator = (require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator;
|
||||
return (
|
||||
<ModalScreen>
|
||||
<View style={styles.container}>
|
||||
<ActivityIndicator />
|
||||
</View>
|
||||
</ModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterPrereqInvalidCodeScreen() { // fn#96836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10248, offset: 0x0216952a, size: 208 bytes, params: 1, frame: 21
|
||||
const object3 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object3.title = Reflect.apply(string, intl,
|
||||
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ewSb6o]);
|
||||
object3.description = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).jcUN2F);
|
||||
const object4 = {};
|
||||
string = intl.string;
|
||||
const WAI6xu = (require(1244) /* metro dependency 1244: indexNative */).t.WAI6xu;
|
||||
object4.text = Reflect.apply(string, intl, [WAI6xu]);
|
||||
object4.onPress = (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop;
|
||||
object3.primaryButton = object4;
|
||||
return <FamilyCenterPrereqScreen {...object3} />;
|
||||
}
|
||||
|
||||
function FamilyCenterPrereqMustBeAdultScreen() { // fn#96837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10508, offset: 0x021695fa, size: 259 bytes, params: 1, frame: 23
|
||||
useNavigateToVerifyingOnPending();
|
||||
const value2 = env0_4.useCallback(function() {
|
||||
var defaultImport = importDefault(dependencyMap[35]);
|
||||
var object = {};
|
||||
object.entryPoint = require(dependencyMap[36]).AgeVerificationModalEntryPoint.FAMILY_CENTER_CONNECTION;
|
||||
defaultImport.showAgeVerificationGetStartedModal(object);
|
||||
}, []);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const BQFHXW = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BQFHXW;
|
||||
const format = intl.format;
|
||||
const WDjaKn = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WDjaKn;
|
||||
let object = {};
|
||||
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN']);
|
||||
object.onPress = (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop;
|
||||
return (
|
||||
<FamilyCenterPrereqScreen
|
||||
title={Reflect.apply(string, intl, [BQFHXW])}
|
||||
description={Reflect.apply(format, intl, [WDjaKn, {link: {onClick: value2}}])}
|
||||
primaryButton={object}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function FamilyCenterRequestModal({userId, linkCode}) { // fn#96840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11179, offset: 0x021696fd, size: 293 bytes, params: 2, frame: 19
|
||||
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
|
||||
const FamilyCenterConnectionPrereqExperiment = (require(12632) /* metro dependency 12632: FamilyCenterConnectionPrereqExperiment */).FamilyCenterConnectionPrereqExperiment;
|
||||
const useConfig = FamilyCenterConnectionPrereqExperiment.useConfig;
|
||||
const enabled = Reflect.apply(useConfig, FamilyCenterConnectionPrereqExperiment,
|
||||
[{location: 'FamilyCenterRequestModal'}]).enabled;
|
||||
const value3 = env0_4.useMemo(function() {
|
||||
return _fun96842(userId, linkCode);
|
||||
}, [linkCode, userId]);
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
const r5 = enabled ? FamilyCenterModalRequestSections.PREREQ_LOADING : value2 ? FamilyCenterModalRequestSections.REQUEST : FamilyCenterModalRequestSections.TEEN_SCAN;
|
||||
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Modal
|
||||
initialRouteName={r5}
|
||||
screens={value3}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun96807() { // fn#96807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1379, offset: 0x021683fc, size: 82 bytes, params: 1, frame: 14
|
||||
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).clearPendingConnection();
|
||||
const binding = env0_2;
|
||||
const push = binding.push;
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
const SENT = FamilyCenterModalRequestSections.SENT;
|
||||
Reflect.apply(push, binding, [SENT]);
|
||||
}
|
||||
|
||||
function _fun96808(a0) { // fn#96808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1497, offset: 0x0216844e, size: 90 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
|
||||
value = value.getFailureCodeForAPIError(a0);
|
||||
const binding = env0_2;
|
||||
const push = binding.push;
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
||||
Reflect.apply(push, binding, [ERROR, {failureCode: value}]);
|
||||
}
|
||||
|
||||
function _fun96812() { // fn#96812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:4032, offset: 0x0216878f, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function _fun96817() { // fn#96817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6597, offset: 0x02168bcc, size: 34 bytes, params: 1, frame: 10
|
||||
_fun96818()();
|
||||
return function() {
|
||||
env0_0 = true;
|
||||
};
|
||||
}
|
||||
|
||||
function _fun96825() { // fn#96825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8136, offset: 0x02168ecc, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return UserStore.getCurrentUser()?.ageVerificationStatus;
|
||||
}
|
||||
|
||||
function _fun96826() { // fn#96826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8244, offset: 0x02168eef, size: 145 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var value5;
|
||||
var replace;
|
||||
let r1 = env0_2 != null && env0_2 !== env0_1 && env0_1 != null;
|
||||
if (r1) {
|
||||
binding = env0_1;
|
||||
value5 = environment.__proto__;
|
||||
r1 = binding !== (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
|
||||
}
|
||||
if (r1) {
|
||||
binding = env0_0;
|
||||
replace = binding.replace;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(replace, binding,
|
||||
[(require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections.VERIFYING]);
|
||||
}
|
||||
}
|
||||
|
||||
function FamilyCenterConfirmAgeScreenOnPress() { // fn#96829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9348, owner: FamilyCenterConfirmAgeScreen.onPress, offset: 0x0216925f, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function _fun96832() { // fn#96832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9632, offset: 0x021693b4, size: 255 bytes, params: 1, frame: 17
|
||||
var binding;
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
if (env0_1) {
|
||||
if (env0_3.current) {
|
||||
return undefined;
|
||||
}
|
||||
env0_3.current = true;
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */;
|
||||
if (!moduleValue.resumeFamilyCenterConnection()) {
|
||||
binding = env0_0;
|
||||
binding.replace(FamilyCenterModalRequestSections.ERROR,
|
||||
{failureCode: FamilyCenterFailureCode.GENERIC_ERROR});
|
||||
}
|
||||
} else {
|
||||
binding = env0_2;
|
||||
var AgeVerificationStatusUkAndAusOnly = (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly;
|
||||
var UNVERIFIED = AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
|
||||
if (binding === UNVERIFIED) {
|
||||
binding = env0_0;
|
||||
binding.replace(FamilyCenterModalRequestSections.ERROR,
|
||||
{failureCode: FamilyCenterFailureCode.GENERIC_ERROR});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun96833() { // fn#96833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9991, offset: 0x021694b3, size: 45 bytes, params: 1, frame: 14
|
||||
const env0_0 = global.setTimeout(_fun96834, FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT);
|
||||
return _fun96835;
|
||||
}
|
||||
|
||||
function _fun96841() { // fn#96841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11375, offset: 0x02169822, size: 30 bytes, params: 1, frame: 13
|
||||
return getScreens_96842(userId, linkCode);
|
||||
}
|
||||
|
||||
function _fun96818() { // fn#96818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6613, offset: 0x02168bee, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_3(_fun96820);
|
||||
return _fun96821;
|
||||
}
|
||||
|
||||
function _fun96834() { // fn#96834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10014, offset: 0x021694e0, size: 74 bytes, params: 1, frame: 15
|
||||
const binding = env1_0;
|
||||
const replace = binding.replace;
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
||||
const GENERIC_ERROR = FamilyCenterFailureCode.GENERIC_ERROR;
|
||||
Reflect.apply(replace, binding, [ERROR, {failureCode: GENERIC_ERROR}]);
|
||||
}
|
||||
|
||||
function getScreens_96842(a0, a1) { // fn#96842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11379, offset: 0x02169840, size: 682 bytes, params: 3, frame: 25
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const object11 = {};
|
||||
const value = environment.__proto__.__proto__;
|
||||
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
||||
const PREREQ_LOADING = FamilyCenterModalRequestSections.PREREQ_LOADING;
|
||||
const object12 = {};
|
||||
const binding = env2_21;
|
||||
copyDataProperties(object12, binding, undefined);
|
||||
object12['render'] = getScreens_96842Render;
|
||||
object11[PREREQ_LOADING] = object12;
|
||||
const CONFIRM_AGE = FamilyCenterModalRequestSections.CONFIRM_AGE;
|
||||
const object13 = {};
|
||||
copyDataProperties(object13, binding, undefined);
|
||||
object13['render'] = getScreens_96842Render_96844;
|
||||
object11[CONFIRM_AGE] = object13;
|
||||
const VERIFYING = FamilyCenterModalRequestSections.VERIFYING;
|
||||
const object14 = {};
|
||||
copyDataProperties(object14, binding, undefined);
|
||||
object14['render'] = getScreens_96842Render_96845;
|
||||
object11[VERIFYING] = object14;
|
||||
const REQUEST = FamilyCenterModalRequestSections.REQUEST;
|
||||
const object15 = {};
|
||||
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
||||
object15.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object15.headerShown = true;
|
||||
object15.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
object15.render = render_96847;
|
||||
object11[REQUEST] = object15;
|
||||
const INVALID_CODE = FamilyCenterModalRequestSections.INVALID_CODE;
|
||||
const object16 = {};
|
||||
copyDataProperties(object16, binding, navigatorHeaderNativeModule);
|
||||
object16['render'] = getScreens_96842Render_96848;
|
||||
object11[INVALID_CODE] = object16;
|
||||
const MUST_BE_ADULT = FamilyCenterModalRequestSections.MUST_BE_ADULT;
|
||||
const object17 = {};
|
||||
copyDataProperties(object17, binding, navigatorHeaderNativeModule);
|
||||
object17['render'] = getScreens_96842Render_96849;
|
||||
object11[MUST_BE_ADULT] = object17;
|
||||
const SENT = FamilyCenterModalRequestSections.SENT;
|
||||
const object18 = {headerShown: true};
|
||||
object18.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object18.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
object18.render = render_96851;
|
||||
object11[SENT] = object18;
|
||||
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
||||
const object19 = {headerShown: true};
|
||||
object19.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object19.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
object19.render = render_96853;
|
||||
object11[ERROR] = object19;
|
||||
const TEEN_SCAN = FamilyCenterModalRequestSections.TEEN_SCAN;
|
||||
const object20 = {fullscreen: true};
|
||||
object20.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object20.render = render_96854;
|
||||
object11[TEEN_SCAN] = object20;
|
||||
return object11;
|
||||
}
|
||||
|
||||
function* _fun96820() { // fn#96820, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6633, offset: 0x02168c1d, size: 220 bytes, params: 1, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
var value3 = env4_0(env4_2[11]);
|
||||
yield value3.resolveConnectionPrereqTarget(require, importDefault);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (!userId) {
|
||||
if (value5.section === env4_0(env4_2[11]).FamilyCenterModalRequestSections.ERROR) {
|
||||
dependencyMap.replace(value5.section, value5.params);
|
||||
} else if (value5.section === env4_0(env4_2[11]).FamilyCenterModalRequestSections.REQUEST) {
|
||||
dependencyMap.replace(value5.section, value5.params);
|
||||
} else {
|
||||
dependencyMap.replace(value5.section);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getScreens_96842Render() { // fn#96843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11483, owner: getScreens_96842.render, offset: 0x02169aea, size: 43 bytes, params: 1, frame: 14
|
||||
return <FamilyCenterPrereqLoading userId={env0_0} linkCode={require} />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96844() { // fn#96844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11608, owner: getScreens_96842.render, offset: 0x02169b15, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenterConfirmAgeScreen />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96845() { // fn#96845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11715, owner: getScreens_96842.render, offset: 0x02169b2c, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenterVerifyingScreen />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96847(a0) { // fn#96847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11905, owner: getScreens_96842.render, offset: 0x02169b43, size: 68 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (
|
||||
<FamilyCenterModalRequestConfirm
|
||||
userId={env0_0}
|
||||
linkCode={require}
|
||||
teenIdentity={a0?.teenIdentity}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96848() { // fn#96848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12079, owner: getScreens_96842.render, offset: 0x02169b87, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenterPrereqInvalidCodeScreen />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96849() { // fn#96849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12197, owner: getScreens_96842.render, offset: 0x02169b9e, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenterPrereqMustBeAdultScreen />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96851() { // fn#96851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12392, owner: getScreens_96842.render, offset: 0x02169bb5, size: 23 bytes, params: 1, frame: 13
|
||||
return <FamilyCenterModalRequestSuccess />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96853({failureCode}) { // fn#96853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12584, owner: getScreens_96842.render, offset: 0x02169bcc, size: 37 bytes, params: 2, frame: 13
|
||||
return <FamilyCenterModalRequestError failureCode={failureCode} />;
|
||||
}
|
||||
|
||||
function getScreens_96842Render_96854() { // fn#96854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12784, owner: getScreens_96842.render, offset: 0x02169bf1, size: 38 bytes, params: 1, frame: 13
|
||||
const INELIGIBLE_FOR_FAMILY_CENTER = FamilyCenterFailureCode.INELIGIBLE_FOR_FAMILY_CENTER;
|
||||
return <FamilyCenterModalRequestError failureCode={INELIGIBLE_FOR_FAMILY_CENTER} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 12620; source: modules/parent_tools/native/FamilyCenterNativeUtils.tsx; dependencies: [12621, 5117, 661, 683, 5118, 5080, 12622, 1962, 2] */
|
||||
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');
|
||||
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]);
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 13443; source: modules/parent_tools/native/FamilyCenterParentalControlsContentAndSocial.tsx; dependencies: [31, 27, 661, 8224, 33, 9692, 1244, 1948, 13170, 2] */
|
||||
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');
|
||||
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 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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 13444; source: modules/parent_tools/native/FamilyCenterParentalControlsDataAndPrivacy.tsx; dependencies: [31, 661, 8224, 33, 1244, 2224, 1948, 9692, 13170, 2] */
|
||||
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');
|
||||
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
|
||||
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});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
const object3 = {};
|
||||
object3.teenId = teenId;
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, rule, value);
|
||||
object3.rule = object4;
|
||||
return Reflect.apply(navigate, navigationBinding, [FAMILY_CENTER_SCHEDULE_DOWNTIME, object3]);
|
||||
}
|
||||
|
||||
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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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 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,
|
||||
header: {marginBottom: 10}}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const object6 = {'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;
|
||||
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;
|
||||
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');
|
||||
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>;
|
||||
}
|
||||
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}</>;
|
||||
}
|
||||
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 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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 13433; source: modules/parent_tools/native/FamilyCenterRequestorDetails.tsx; dependencies: [31, 27, 33, 4501, 1305, 697, 8170, 13405, 4573, 2] */
|
||||
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 */;
|
||||
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;
|
||||
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');
|
||||
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>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingTop = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.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}]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.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]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
const object5 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.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');
|
||||
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 = (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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,299 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.teenControlsContainer = {gap: PX_16};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.controlledSettingsHeader = {gap: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.parentalControlsContainer = {gap: PX_4};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.controlsGroup = {marginTop: PX_8};
|
||||
const ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
|
||||
object2.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');
|
||||
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"
|
||||
/>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
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 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 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;
|
||||
}
|
||||
if (kind === 'close-to-limit') {
|
||||
object2 = {};
|
||||
object2.trailing = closure(a0.monthlyText);
|
||||
object2.subLabel = closure2(a0.remainingText, a1.subLabelWarning);
|
||||
return object2;
|
||||
}
|
||||
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 _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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
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'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.gap = PX_4;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.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;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object6.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');
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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 BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object.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');
|
||||
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;
|
||||
}
|
||||
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 _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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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;
|
||||
}
|
||||
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 _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} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 13405; source: modules/parent_tools/native/FamilyCenterUsernameHeader.tsx; dependencies: [31, 27, 33, 4501, 3995, 4573, 2] */
|
||||
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');
|
||||
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"
|
||||
lineClamp={1}
|
||||
>
|
||||
{value4}
|
||||
</Text2>
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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');
|
||||
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 _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 _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 _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} />;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user