2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 13879
|
|
|
|
|
// Function ID: 13880
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: migration
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [19, 21, 4845, 576, 4579, 4554, 1930, 1177, 2]
|
2026-07-24 07:16:23 +00:00
|
|
|
// Exports: IntlLink
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 13879 (migration)
|
2026-09-10 05:38:07 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import _modDef1930 from "module_1930" /* 1930 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import LinkingDefault from "Linking" /* 4554 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
|
|
|
|
const jsx = fn(21).jsx;
|
2026-10-01 06:55:13 +00:00
|
|
|
const createStyles = fn(4845);
|
2026-09-10 05:38:07 +00:00
|
|
|
let closure_5 = createStyles.createStyles((arg0) => {
|
|
|
|
|
const link = { color: nativeDefault.colors.TEXT_LINK, textDecorationLine: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = "none";
|
|
|
|
|
if (arg0) {
|
|
|
|
|
str = "underline";
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
link.textDecorationLine = str;
|
2026-07-29 08:29:29 +00:00
|
|
|
return { link };
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("intl/native/migration.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const IntlLink = function IntlLink(children) {
|
|
|
|
|
const target = children.target;
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof target === "string") {
|
2026-09-11 10:30:06 +00:00
|
|
|
let fn = function k() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = LinkingDefault;
|
2026-09-26 08:31:33 +00:00
|
|
|
return obj.openURL(_modDef1930.sanitizeUrl(target));
|
2026-07-24 07:16:23 +00:00
|
|
|
};
|
2026-09-11 10:30:06 +00:00
|
|
|
let str = "link";
|
2026-07-24 07:16:23 +00:00
|
|
|
} else {
|
2026-09-11 10:30:06 +00:00
|
|
|
str = "link";
|
2026-07-24 07:16:23 +00:00
|
|
|
fn = target;
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof target === "object") {
|
2026-09-11 10:30:06 +00:00
|
|
|
str = "link";
|
2026-07-24 07:16:23 +00:00
|
|
|
fn = target;
|
|
|
|
|
if (null != target.onClick) {
|
2026-09-11 10:30:06 +00:00
|
|
|
({ accessibilityRole, onClick } = target);
|
|
|
|
|
if (accessibilityRole == null) {
|
|
|
|
|
accessibilityRole = "link";
|
|
|
|
|
}
|
|
|
|
|
str = accessibilityRole;
|
|
|
|
|
fn = onClick;
|
2026-07-24 07:16:23 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp = target;
|
2026-10-01 06:55:13 +00:00
|
|
|
const tmp3 = closure_5(noop.useContext(target(4579).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
|
|
|
|
|
return jsx(tmp(1177).LegacyText, { accessible: true, accessibilityRole: str, onPress: fn, style: closure_5(noop.useContext(target(4579).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
|
2026-07-24 07:16:23 +00:00
|
|
|
};
|