Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,148 @@
|
||||
/* Metro module 15627; source: i18n/native/updateRules.tsx; dependencies: [31, 661, 33, 3875, 3860, 697, 3853, 3855, 1305, 2] */
|
||||
function _fun119684(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:6, offset: 0x02515927, size: 235 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = I18nLink;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {};
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object2.strong = {fontFamily: PRIMARY_SEMIBOLD};
|
||||
object2.italic = {fontStyle: 'italic'};
|
||||
object2.underline = {textDecorationLine: 'underline'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('i18n/native/updateRules.tsx');
|
||||
exports.default = updateRules_119688;
|
||||
exports.I18nLink = closure;
|
||||
}
|
||||
|
||||
function I18nLink({node, output, state}) { // fn#119685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:250, offset: 0x02515a12, size: 334 bytes, params: 2, frame: 22
|
||||
var property;
|
||||
const object2 = {};
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext;
|
||||
const alwaysShowLinkDecorations = Reflect.apply(useContext, binding,
|
||||
[AccessibilityPreferencesContext]).alwaysShowLinkDecorations;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
||||
const value3 = env0_3.useMemo(_fun119686, [Reflect.apply(useToken, useTokenModule, [TEXT_LINK]),
|
||||
alwaysShowLinkDecorations]);
|
||||
if (node.context != null) {
|
||||
property = node.context[node.target];
|
||||
if (property) {
|
||||
if (property.onClick) {
|
||||
object2.onClick = property.onClick;
|
||||
} else {
|
||||
object2.onClick = property;
|
||||
}
|
||||
} else {
|
||||
object2.onClick = property;
|
||||
}
|
||||
}
|
||||
if (object2.onClick == null) {
|
||||
object2.onClick = onClick_119687;
|
||||
}
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText
|
||||
accessible
|
||||
accessibilityRole="link"
|
||||
onPress={object2.onClick}
|
||||
style={value3}
|
||||
>
|
||||
{output(node.content, state)}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRules_119688(a0) { // fn#119688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:870, offset: 0x02515bcd, size: 176 bytes, params: 2, frame: 14
|
||||
let object2 = {};
|
||||
copyDataProperties(object2, a0.paragraph, undefined);
|
||||
let closure = updateRules_119688React;
|
||||
object2['react'] = closure;
|
||||
a0.paragraph = object2;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0.strong, closure);
|
||||
closure = updateRules_119688React_119690;
|
||||
object2['react'] = closure;
|
||||
a0.strong = object2;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0.em, closure);
|
||||
closure = updateRules_119688React_119691;
|
||||
object2['react'] = closure;
|
||||
a0.em = object2;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0.u, closure);
|
||||
closure = updateRules_119688React_119692;
|
||||
object2['react'] = closure;
|
||||
a0.u = object2;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, a0.link, closure);
|
||||
object2['react'] = updateRules_119688React_119693;
|
||||
a0.link = object2;
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun119686() { // fn#119686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:444, offset: 0x02515b60, size: 35 bytes, params: 1, frame: 3
|
||||
return {color: env0_2, textDecorationLine: alwaysShowLinkDecorations ? 'underline' : 'none'};
|
||||
}
|
||||
|
||||
function I18nLinkOnClick() { // fn#119687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:634, owner: I18nLink.onClick, offset: 0x02515b83, size: 74 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
const openURL = value.openURL;
|
||||
const defaultImport = importDefault(3855) /* metro dependency 3855 */;
|
||||
return Reflect.apply(openURL, value, [defaultImport.sanitizeUrl(node.target)]);
|
||||
}
|
||||
|
||||
function updateRules_119688React(a0, a1, a2) { // fn#119689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:935, owner: updateRules_119688.react, offset: 0x02515c7d, size: 75 bytes, params: 4, frame: 17
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRules_119688React_119690(a0, a1, a2) { // fn#119690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:1042, owner: updateRules_119688.react, offset: 0x02515cc8, size: 89 bytes, params: 4, frame: 17
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={env1_5.strong} key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRules_119688React_119691(a0, a1, a2) { // fn#119691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:1156, owner: updateRules_119688.react, offset: 0x02515d21, size: 89 bytes, params: 4, frame: 17
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={env1_5.italic} key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRules_119688React_119692(a0, a1, a2) { // fn#119692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:1268, owner: updateRules_119688.react, offset: 0x02515d7a, size: 89 bytes, params: 4, frame: 17
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={env1_5.underline} key={a2.key}>
|
||||
{a1(a0.content, a2)}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
|
||||
function updateRules_119688React_119693(a0, a1, a2) { // fn#119693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15835:1389, owner: updateRules_119688.react, offset: 0x02515dd3, size: 52 bytes, params: 4, frame: 15
|
||||
return (
|
||||
<I18nLink
|
||||
node={a0}
|
||||
output={a1}
|
||||
state={a2}
|
||||
key={a2.key}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user