2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 13324
|
|
|
|
|
// Function ID: 13325
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: IntlLink
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [19, 21, 4255, 712, 3974, 3952, 3954, 1297, 2]
|
2026-07-24 07:16:23 +00:00
|
|
|
// Exports: IntlLink
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 13324 (IntlLink)
|
2026-07-29 08:29:29 +00:00
|
|
|
import noop from "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { jsx } from "jsxProd";
|
2026-07-29 08:29:29 +00:00
|
|
|
import createCacheKey from "createCacheKey";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_5 = createCacheKey.createStyles((arg0) => {
|
|
|
|
|
const link = { color: importDefault(712).colors.TEXT_LINK, textDecorationLine: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let str = "none";
|
|
|
|
|
if (arg0) {
|
|
|
|
|
str = "underline";
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
link[1] = str;
|
|
|
|
|
return { link };
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = require("createCacheKey").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-07-24 07:16:23 +00:00
|
|
|
let fn = () => {
|
|
|
|
|
const obj = outer1_1(outer1_2[5]);
|
|
|
|
|
return obj.openURL(outer1_1(outer1_2[6]).sanitizeUrl(target));
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
fn = target;
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof target === "object") {
|
2026-07-24 07:16:23 +00:00
|
|
|
fn = target;
|
|
|
|
|
if (null != target.onClick) {
|
|
|
|
|
fn = target.onClick;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp = target;
|
2026-08-05 07:35:12 +00:00
|
|
|
const tmp3 = callback(React.useContext(target(3974).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
|
|
|
|
|
return jsx(tmp(1297).LegacyText, { accessible: true, accessibilityRole: "link", onPress: fn, style: callback(React.useContext(target(3974).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
|
2026-07-24 07:16:23 +00:00
|
|
|
};
|