93 lines
5.4 KiB
TypeScript
93 lines
5.4 KiB
TypeScript
/* Metro module 14072; source: modules/collectibles/native/PersonalizationDisclaimerActionSheet.tsx; dependencies: [31, 661, 33, 4501, 697, 3853, 1948, 6275, 4573, 1244, 6261, 4578, 6249, 4080, 2] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
import * as LinkExternalSmallIconModule from '../../../design/components/Icon/native/redesign/generated/LinkExternalSmallIcon.tsx'; /* Metro dependency 6249 */
|
|
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
|
|
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
|
|
function _fun106671(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14269:6, offset: 0x022e5e65, size: 276 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = JsxRuntimeModule;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
const PX_16 = (Native).space.PX_16;
|
|
object.container = {paddingHorizontal: PX_16};
|
|
const PX_8 = (Native).space.PX_8;
|
|
object.header = {'paddingVertical': null, 'alignSelf': 'center', 'textAlign': 'center', paddingVertical: PX_8};
|
|
const env0_7 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/native/PersonalizationDisclaimerActionSheet.tsx');
|
|
exports.default = _default_106672;
|
|
function _default_106672() { // fn#106672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14269:327, offset: 0x022e5f79, size: 500 bytes, params: 1, frame: 29
|
|
const styles = useStyles();
|
|
const value2 = ReactModule.useCallback(function() {
|
|
importDefault(dependencyMap[5]).openURL(importDefault(dependencyMap[6]).getArticleURL(HelpdeskArticles.DATA_USED_FOR_RECOMMENDED));
|
|
}, []);
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const Text = (TextModule).Text;
|
|
const intl = (IndexNativeModule).intl;
|
|
let string = intl.string;
|
|
const text = (
|
|
<Text
|
|
variant="heading-md/medium"
|
|
color="mobile-text-heading-primary"
|
|
accessibilityRole="header"
|
|
style={styles.header}
|
|
>
|
|
{Reflect.apply(string, intl, [(IndexNativeModule).t.euks4U])}
|
|
</Text>
|
|
);
|
|
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
|
|
const Button = (ButtonNativeModule).Button;
|
|
string = intl.string;
|
|
const hvVgAZ = (IndexNativeModule).t.hvVgAZ;
|
|
const LinkExternalSmallIcon = (LinkExternalSmallIconModule).LinkExternalSmallIcon;
|
|
const WHITE = (Native).colors.WHITE;
|
|
const button = (
|
|
<Button
|
|
size="lg"
|
|
text={Reflect.apply(string, intl, [hvVgAZ])}
|
|
onPress={value2}
|
|
icon={<LinkExternalSmallIcon color={WHITE} />}
|
|
iconPosition="end"
|
|
/>
|
|
);
|
|
string = intl.string;
|
|
const WAI6xu = (IndexNativeModule).t.WAI6xu;
|
|
return (
|
|
<BottomSheet contentStyles={styles.container}>
|
|
{text}
|
|
<ButtonGroup>
|
|
{button}
|
|
<Button
|
|
variant="tertiary"
|
|
size="lg"
|
|
text={Reflect.apply(string, intl, [WAI6xu])}
|
|
onPress={onPress_106674}
|
|
/>
|
|
</ButtonGroup>
|
|
</BottomSheet>
|
|
);
|
|
function _default_106672OnPress() { // fn#106674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14269:979, owner: _default_106672.onPress, offset: 0x022e61b4, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun106671, 14072, [31, 661, 33, 4501, 697, 3853, 1948, 6275, 4573, 1244, 6261, 4578, 6249, 4080,
|
|
2]) /* metro module 14072, dependencies: [31, 661, 33, 4501, 697, 3853, 1948, 6275, 4573, 1244, 6261, 4578, 6249, 4080, 2] */;
|