88 lines
5.7 KiB
TypeScript
88 lines
5.7 KiB
TypeScript
/* Metro module 9929; source: modules/notifications/native/NotificationSurveyResponseActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948, 2] */
|
|
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import TextStyles from '../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
|
|
import Module09930 from '../../../by-id/module-09930.js'; /* Metro dependency 9930 */
|
|
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
|
|
|
|
function _fun77731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:6, offset: 0x01e08f94, size: 410 bytes, params: 8, frame: 25
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ReactNativeModule;
|
|
const env0_3 = value.View;
|
|
const env0_4 = value.Image;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const Fonts = value.Fonts;
|
|
const env0_5 = value.HelpdeskArticles;
|
|
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;
|
|
object = {};
|
|
const object2 = {};
|
|
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
|
let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
|
copyDataProperties(object2, TextStyles(DISPLAY_EXTRABOLD, INTERACTIVE_TEXT_ACTIVE, 16), undefined);
|
|
object2['marginTop'] = 8;
|
|
object2['marginBottom'] = 8;
|
|
object.title = object2;
|
|
INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
|
object.subtitle = {'color': null, 'textAlign': 'center', 'width': 343, color: INTERACTIVE_TEXT_ACTIVE};
|
|
object.view = {'paddingTop': 50, 'paddingBottom': 100, 'alignItems': 'center'};
|
|
object.rating = {'width': 116, 'height': 93};
|
|
const env0_8 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotificationSurveyResponseActionSheet.tsx');
|
|
exports.default = NotificationSurveyResponseActionSheet;
|
|
function onClose_77732() { // fn#77732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:517, offset: 0x01e08208, size: 37 bytes, params: 1, frame: 11
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
function NotificationSurveyResponseActionSheet({header}) { // fn#77733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:664, offset: 0x01e0912e, size: 499 bytes, params: 2, frame: 30
|
|
const styles = useStyles();
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const r5 = header != null && ((BottomSheetTitleHeader) => <BottomSheetTitleHeader title={header} trailing={((ActionSheetCloseButton) => <ActionSheetCloseButton onPress={onClose_77732} />)((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton)} />)((require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader);
|
|
const items2 = [
|
|
<Image style={styles.rating} source={Module09930} />,
|
|
];
|
|
const Text = (TextModule).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
items2[1] = (
|
|
<Text style={styles.title} variant="heading-md/bold">
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['d9+vQ8'])}
|
|
</Text>
|
|
);
|
|
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
|
|
const format = intl.format;
|
|
const WxD5QY = (require(1244) /* metro dependency 1244: indexNative */).t.WxD5QY;
|
|
const defaultImport = HelpdeskUtils;
|
|
const getArticleURL = defaultImport.getArticleURL;
|
|
const HIGHLIGHTS_NOTIFICATIONS = HelpdeskArticles.HIGHLIGHTS_NOTIFICATIONS;
|
|
items2[2] = (
|
|
<TextWithIOSLinkWorkaround style={styles.subtitle} variant="text-md/normal">
|
|
{Reflect.apply(format, intl, [WxD5QY, {helpUrl: Reflect.apply(getArticleURL, defaultImport,
|
|
[HIGHLIGHTS_NOTIFICATIONS])}])}
|
|
</TextWithIOSLinkWorkaround>
|
|
);
|
|
return (
|
|
<BottomSheet>
|
|
{r5}
|
|
<View style={styles.view}>
|
|
{items2}
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun77731, 9929, [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948,
|
|
2]) /* metro module 9929, dependencies: [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948, 2] */;
|