91 lines
5.3 KiB
TypeScript
91 lines
5.3 KiB
TypeScript
/* Metro module 13270; source: modules/safety_common/native/SafetySettingsNotice.tsx; dependencies: [31, 27, 6263, 33, 4501, 697, 13271, 4068, 4573, 1244, 2] */
|
|
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as CircleInformationIconModule from '../../../design/components/Icon/native/redesign/generated/CircleInformationIcon.tsx'; /* Metro dependency 4068 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 6263 */
|
|
|
|
function _fun101188(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:6, offset: 0x0220ac5a, size: 364 bytes, params: 8, frame: 23
|
|
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;
|
|
const object2 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object2.gap = PX_8;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object2.padding = PX_8;
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
|
object2.borderColor = TEXT_LINK;
|
|
object2.borderWidth = 1;
|
|
const BACKGROUND_FEEDBACK_INFO = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_INFO;
|
|
object2.backgroundColor = BACKGROUND_FEEDBACK_INFO;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{blockedIgnoredRedirect: object2}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/safety_common/native/SafetySettingsNotice.tsx');
|
|
exports.default = SafetySettingsNotice;
|
|
function SafetySettingsNotice({label, labelHook, noticeType, count}) { // fn#101189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:576, offset: 0x0220adc6, size: 369 bytes, params: 2, frame: 25
|
|
const intl = (IndexNativeModule).intl;
|
|
const styles = useStyles();
|
|
const binding = env0_2;
|
|
binding.useEffect(function() {
|
|
require(dependencyMap[6]).trackSafetySettingsNoticeAnalytics(noticeType, SafetySettingsNoticeAction.VIEWED);
|
|
}, [noticeType]);
|
|
var env0_2 = binding.useCallback(function() {
|
|
labelHook();
|
|
require(dependencyMap[6]).trackSafetySettingsNoticeAnalytics(noticeType, SafetySettingsNoticeAction.LEARN_MORE);
|
|
}, [noticeType, labelHook]);
|
|
const CircleInformationIcon = (CircleInformationIconModule).CircleInformationIcon;
|
|
const circleInformationIcon = <CircleInformationIcon color="text-link" />;
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<View style={styles.blockedIgnoredRedirect}>
|
|
{circleInformationIcon}
|
|
<Text style={{flexShrink: 1}} variant="heading-sm/medium">
|
|
{count != null ? intl.format(label, {hook: hook_101192, count: count}) : intl.format(label,
|
|
{hook: hook})}
|
|
</Text>
|
|
</View>
|
|
);
|
|
function SafetySettingsNoticeHook(a0) { // fn#101192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:1054, owner: SafetySettingsNotice.hook, offset: 0x0220afaf, size: 74 bytes, params: 2, frame: 14
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<Text
|
|
role="link"
|
|
variant="heading-sm/medium"
|
|
color="text-link"
|
|
onPress={env0_2}
|
|
>
|
|
{a0}
|
|
</Text>
|
|
);
|
|
}
|
|
|
|
function SafetySettingsNoticeHook_101193(a0) { // fn#101193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:1192, owner: SafetySettingsNotice.hook, offset: 0x0220afaf, size: 74 bytes, params: 2, frame: 14
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<Text
|
|
role="link"
|
|
variant="heading-sm/medium"
|
|
color="text-link"
|
|
onPress={env0_2}
|
|
>
|
|
{a0}
|
|
</Text>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun101188, 13270, [31, 27, 6263, 33, 4501, 697, 13271, 4068, 4573, 1244,
|
|
2]) /* metro module 13270, dependencies: [31, 27, 6263, 33, 4501, 697, 13271, 4068, 4573, 1244, 2] */;
|