186 lines
10 KiB
TypeScript
186 lines
10 KiB
TypeScript
/* Metro module 11389; source: modules/group_dm/native/ChatGDMUpsellActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277, 4573, 10227, 4056, 2] */
|
|
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import FastImage from '../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
|
|
import Module11390 from '../../../by-id/module-11390.js'; /* Metro dependency 11390 */
|
|
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 Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
|
|
import * as DismissibleContentUnsafeUtilsModule from '../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
|
|
import * as LinkIconModule from '../../../design/components/Icon/native/redesign/generated/LinkIcon.tsx'; /* Metro dependency 4056 */
|
|
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 BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
|
|
import * as TimerIconModule from '../../../design/components/Icon/native/redesign/generated/TimerIcon.tsx'; /* Metro dependency 10227 */
|
|
|
|
function _fun87303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:6, offset: 0x01fb75db, size: 525 bytes, params: 8, frame: 24
|
|
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_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.title = {marginBottom: PX_4, textAlign: 'center'};
|
|
const object3 = {};
|
|
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
|
object3.backgroundColor = BACKGROUND_BASE_LOW;
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.padding = PX_16;
|
|
object.footer = object3;
|
|
object.body = {textAlign: 'center'};
|
|
const object5 = {};
|
|
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.marginVertical = PX_16;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.padding = PX_16;
|
|
object.noticeContainer = object5;
|
|
object.innerContainer = {'flexDirection': 'row', 'alignItems': 'center', 'paddingBottom': 16};
|
|
object.secondInnerContainer = {'flexDirection': 'row', 'alignItems': 'center'};
|
|
object.text = {flex: 1};
|
|
object.titleImage = {'padding': 16, 'justifyContent': 'center', 'alignItems': 'center'};
|
|
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
|
object.item = {'backgroundColor': null, 'marginRight': 16, 'height': 40, 'width': 40, 'borderRadius': 20,
|
|
'alignItems': 'center', 'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_STRONG};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.button = {paddingTop: PX_16};
|
|
const env0_7 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/ChatGDMUpsellActionSheet.tsx');
|
|
exports.default = ChatGDMUpsellActionSheet;
|
|
function ChatGDMUpsellActionSheet({onClick}) { // fn#87304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:968, offset: 0x01fb77e8, size: 1111 bytes, params: 2, frame: 32
|
|
const styles = useStyles();
|
|
const bottom = (UseSafeAreaInsetsNative)().bottom;
|
|
const value2 = ReactModule.useCallback(_fun87305, [onClick]);
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const bottomSheetProps = {'showGradient': true, 'scrollable': true, 'startExpanded': true,
|
|
header: <View style={styles.titleImage}>{((Component) => <Component source={Module11390} resizeMode="contain" />)(FastImage)}</View>};
|
|
const items2 = [styles.footer];
|
|
items2[1] = {padding: 16, paddingBottom: bottom + 16};
|
|
const Button = (ButtonNativeModule).Button;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
bottomSheetProps.footer = (
|
|
<View style={items2}>
|
|
<Button
|
|
text={Reflect.apply(string, intl,
|
|
[(require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']])}
|
|
onPress={value2}
|
|
/>
|
|
<View style={styles.button}>
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
|
onPress={onPress_87306}
|
|
variant="tertiary"
|
|
/>
|
|
</View>
|
|
</View>
|
|
);
|
|
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
|
|
const Text = (TextModule).Text;
|
|
const items3 = [
|
|
<Text
|
|
style={styles.title}
|
|
variant="heading-lg/extrabold"
|
|
accessibilityRole="header"
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bkqux/'])}
|
|
</Text>,
|
|
];
|
|
string = intl.string;
|
|
const N6TdqN = (require(1244) /* metro dependency 1244: indexNative */).t.N6TdqN;
|
|
items3[1] = (
|
|
<Text
|
|
style={styles.body}
|
|
variant="text-md/medium"
|
|
color="text-muted"
|
|
>
|
|
{Reflect.apply(string, intl, [N6TdqN])}
|
|
</Text>
|
|
);
|
|
let item = styles.item;
|
|
const TimerIcon = (TimerIconModule).TimerIcon;
|
|
view = (
|
|
<View style={item}>
|
|
<TimerIcon size="sm" />
|
|
</View>
|
|
);
|
|
let text = styles.text;
|
|
string = intl.string;
|
|
const Fq3DJb = (require(1244) /* metro dependency 1244: indexNative */).t.Fq3DJb;
|
|
view = (
|
|
<View style={styles.innerContainer}>
|
|
{view}
|
|
<Text
|
|
style={text}
|
|
variant="text-sm/medium"
|
|
color="text-default"
|
|
>
|
|
{Reflect.apply(string, intl, [Fq3DJb])}
|
|
</Text>
|
|
</View>
|
|
);
|
|
const items5 = [view];
|
|
item = styles.item;
|
|
const LinkIcon = (LinkIconModule).LinkIcon;
|
|
view = (
|
|
<View style={item}>
|
|
<LinkIcon size="sm" />
|
|
</View>
|
|
);
|
|
text = styles.text;
|
|
string = intl.string;
|
|
const XKbf2G = (require(1244) /* metro dependency 1244: indexNative */).t.XKbf2G;
|
|
items5[1] = (
|
|
<View style={styles.secondInnerContainer}>
|
|
{view}
|
|
<Text
|
|
style={text}
|
|
variant="text-sm/medium"
|
|
color="text-default"
|
|
>
|
|
{Reflect.apply(string, intl, [XKbf2G])}
|
|
</Text>
|
|
</View>
|
|
);
|
|
items3[2] = (
|
|
<View style={styles.noticeContainer}>
|
|
{items5}
|
|
</View>
|
|
);
|
|
return (
|
|
<BottomSheet {...bottomSheetProps}>
|
|
<BottomSheetScrollView>
|
|
{items3}
|
|
</BottomSheetScrollView>
|
|
</BottomSheet>
|
|
);
|
|
function _fun87305() { // fn#87305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1061, offset: 0x01fb7c3f, size: 99 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
const UNSAFE_markDismissibleContentAsDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed;
|
|
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
|
|
const GDM_INVITE_REMINDER = DismissibleContent.GDM_INVITE_REMINDER;
|
|
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, DismissibleContentUnsafeUtilsModule, [GDM_INVITE_REMINDER]);
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
onClick();
|
|
}
|
|
|
|
function ChatGDMUpsellActionSheetOnPress() { // fn#87306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1624, owner: ChatGDMUpsellActionSheet.onPress, offset: 0x01fb7ca2, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun87303, 11389, [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277,
|
|
4573, 10227, 4056,
|
|
2]) /* metro module 11389, dependencies: [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277, 4573, 10227, 4056, 2] */;
|