Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,68 @@
|
||||
/* Metro module 13270; source: modules/safety_common/native/SafetySettingsNotice.tsx; dependencies: [31, 27, 6263, 33, 4501, 697, 13271, 4068, 4573, 1244, 2] */
|
||||
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});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(6263) /* metro dependency 6263: Constants */).SafetySettingsNoticeAction;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.gap = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.padding = PX_8;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
||||
object.borderColor = TEXT_LINK;
|
||||
object.borderWidth = 1;
|
||||
const BACKGROUND_FEEDBACK_INFO = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_INFO;
|
||||
object.backgroundColor = BACKGROUND_FEEDBACK_INFO;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{blockedIgnoredRedirect: object}]);
|
||||
(require(2) /* metro dependency 2 */).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 = (require(1244) /* metro dependency 1244: indexNative */).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 = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
const circleInformationIcon = <CircleInformationIcon color="text-link" />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).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 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
role="link"
|
||||
variant="heading-sm/medium"
|
||||
color="text-link"
|
||||
onPress={env0_2}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 10197; source: modules/safety_common/native/URLCallout.tsx; dependencies: [31, 27, 33, 4501, 697, 10198, 4573, 2] */
|
||||
function _fun79314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10383:6, offset: 0x01e4d401, size: 328 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).ScrollView;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsxs;
|
||||
const env0_4 = value.jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'maxHeight': 300, 'backgroundColor': null, 'width': '100%'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.linkCalloutContainer = object5;
|
||||
const object6 = {};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.padding = PX_8;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.paddingVertical = PX_12;
|
||||
object6.textAlign = 'center';
|
||||
object4.linkCalloutContainerText = object6;
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/native/URLCallout.tsx');
|
||||
exports.URLCallout = URLCallout;
|
||||
}
|
||||
|
||||
function URLCallout({url}) { // fn#79315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10383:512, offset: 0x01e4d549, size: 303 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const {protocol, hostname,
|
||||
theRestOfTheUrl} = (require(10198) /* metro dependency 10198: SharedStateUtils */).useUrlParts(url);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text2 variant="text-md/normal" color="text-muted">{protocol}{'//'}</Text2>];
|
||||
const Text3 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text3 variant="text-md/semibold" color="text-default">{hostname}</Text3>;
|
||||
const Text4 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text4 variant="text-md/normal" color="text-muted">{theRestOfTheUrl}</Text4>;
|
||||
return (
|
||||
<ScrollView style={styles.linkCalloutContainer}>
|
||||
<Text style={styles.linkCalloutContainerText} variant="text-md/normal">
|
||||
{items2}
|
||||
</Text>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user