Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user