Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
// Module ID: 13675
|
|
// Function ID: 13676
|
|
// Name: migration
|
|
// Dependencies: [19, 21, 4836, 576, 4550, 4525, 1930, 1177, 2]
|
|
// Exports: IntlLink
|
|
|
|
// Module 13675 (migration)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import _modDef1930 from "module_1930" /* 1930 */;
|
|
import LinkingDefault from "Linking" /* 4525 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4836);
|
|
let closure_5 = createStyles.createStyles((arg0) => {
|
|
const link = { color: nativeDefault.colors.TEXT_LINK, textDecorationLine: null };
|
|
let str = "none";
|
|
if (arg0) {
|
|
str = "underline";
|
|
}
|
|
link.textDecorationLine = str;
|
|
return { link };
|
|
});
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("intl/native/migration.tsx");
|
|
|
|
export const IntlLink = function IntlLink(children) {
|
|
const target = children.target;
|
|
if (typeof target === "string") {
|
|
let fn = function k() {
|
|
const obj = LinkingDefault;
|
|
return obj.openURL(_modDef1930.sanitizeUrl(target));
|
|
};
|
|
let str = "link";
|
|
} else {
|
|
str = "link";
|
|
fn = target;
|
|
if (typeof target === "object") {
|
|
str = "link";
|
|
fn = target;
|
|
if (null != target.onClick) {
|
|
({ accessibilityRole, onClick } = target);
|
|
if (accessibilityRole == null) {
|
|
accessibilityRole = "link";
|
|
}
|
|
str = accessibilityRole;
|
|
fn = onClick;
|
|
}
|
|
}
|
|
}
|
|
const tmp = target;
|
|
const tmp3 = closure_5(noop.useContext(target(4550).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
|
|
return jsx(tmp(1177).LegacyText, { accessible: true, accessibilityRole: str, onPress: fn, style: closure_5(noop.useContext(target(4550).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
|
|
};
|