76 lines
4.3 KiB
TypeScript
76 lines
4.3 KiB
TypeScript
/* Metro module 8805; source: modules/people/strangers/native/AcceptRequestConfirmationModal.tsx; dependencies: [31, 27, 33, 4501, 697, 4596, 1244, 4647, 4573, 2] */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import Alert from '../../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
|
|
import AlertActionCreators from '../../../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
|
|
function _fun68850(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:6, offset: 0x01c5efc3, size: 251 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_8 = (Native).space.PX_8;
|
|
const env0_6 = Reflect.apply(createStyles, value, [{bodyText: {'textAlign': 'center', 'alignItems': 'center',
|
|
gap: PX_8}, text: {textAlign: 'center'}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/people/strangers/native/AcceptRequestConfirmationModal.tsx');
|
|
exports.default = AcceptRequestConfirmationModal;
|
|
function AcceptRequestConfirmationModal({onCancel, onConfirm}) { // fn#68851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:277, offset: 0x01c5f0be, size: 425 bytes, params: 2, frame: 26
|
|
const styles = useStyles();
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const MMlhsr = (require(1244) /* metro dependency 1244: indexNative */).t.MMlhsr;
|
|
object.confirmText = Reflect.apply(string, intl, [MMlhsr]);
|
|
object.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
|
object.onConfirm = onConfirm_68852;
|
|
object.onCancel = onCancel;
|
|
const Text = (TextModule).Text;
|
|
let text = styles.text;
|
|
const text2 = (
|
|
<Text
|
|
variant="heading-lg/bold"
|
|
color="text-strong"
|
|
style={text}
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eJzSDT)}
|
|
</Text>
|
|
);
|
|
text = styles.text;
|
|
string = intl.string;
|
|
const GB4jUw = (require(1244) /* metro dependency 1244: indexNative */).t.GB4jUw;
|
|
return (
|
|
<Alert {...object}>
|
|
<View style={styles.bodyText}>
|
|
{text2}
|
|
<Text
|
|
variant="text-md/medium"
|
|
color="text-subtle"
|
|
style={text}
|
|
>
|
|
{Reflect.apply(string, intl, [GB4jUw])}
|
|
</Text>
|
|
</View>
|
|
</Alert>
|
|
);
|
|
function AcceptRequestConfirmationModalOnConfirm() { // fn#68852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8990:483, owner: AcceptRequestConfirmationModal.onConfirm, offset: 0x01c5f267, size: 48 bytes, params: 1, frame: 12
|
|
onConfirm();
|
|
const value = environment.__proto__;
|
|
(AlertActionCreators).close();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68850, 8805, [31, 27, 33, 4501, 697, 4596, 1244, 4647, 4573,
|
|
2]) /* metro module 8805, dependencies: [31, 27, 33, 4501, 697, 4596, 1244, 4647, 4573, 2] */;
|