// Module ID: 10662 // Function ID: 10663 // Name: migration // Dependencies: [19, 21, 5090, 587, 558, 576, 4794, 4763, 1948, 1200, 2] // Module 10662 (migration) import Fragment from "Fragment" /* 21 */; import nativeDefault from "native" /* 587 */; import _modDef1948 from "module_1948" /* 1948 */; import LinkingDefault from "Linking" /* 4763 */; import react from "react" /* 19 */; import createStyles from "createStyles" /* 5090 */; import ReactCompilerGating from "ReactCompilerGating" /* 558 */; import size from "module_2" /* 2 */; const jsx = Fragment.jsx; let closure_5 = createStyles.createStyles((arg0) => { let str; const link = { color: nativeDefault.colors.TEXT_LINK, textDecorationLine: str }; str = "none"; const tmp = arg0; if (tmp) { str = "underline"; } return { link }; }); const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function IntlLink(target) { let accessibilityRole; let onClick; let str; let tmp5; const tmp = target; let obj = target(576); const cResult = obj.c(7); target = target.target; const children = target.children; const tmp4 = closure_5(react.useContext(target(4794).AccessibilityPreferencesContext).alwaysShowLinkDecorations); if (typeof target === "string") { let tmp6; if (cResult[0] !== target) { const fn = function s() { const openURL = LinkingDefault.openURL; LinkingDefault; const obj = _modDef1948; return openURL(obj.sanitizeUrl(target)); }; cResult[0] = target; cResult[1] = fn; tmp6 = fn; } else { tmp6 = cResult[1]; } str = "link"; tmp5 = tmp6; } else { str = "link"; tmp5 = target; if (typeof target === "object") { str = "link"; tmp5 = target; if (null != target.onClick) { ({ accessibilityRole, onClick } = target); if (accessibilityRole == null) { accessibilityRole = "link"; } str = accessibilityRole; tmp5 = onClick; } } } if (cResult[2] === str) { if (cResult[3] === children) { if (cResult[4] === tmp5) { let tmp7; if (cResult[5] === tmp4.link) { tmp7 = cResult[6]; } return tmp7; } } } const tmp8 = jsx(tmp(1200).LegacyText, { accessible: true, accessibilityRole: str, onPress: tmp5, style: tmp4.link, children }); cResult[2] = str; cResult[3] = children; cResult[4] = tmp5; cResult[5] = tmp4.link; cResult[6] = tmp8; tmp7 = tmp8; }) : (function IntlLink(target) { let accessibilityRole; let fn; let onClick; let str; target = target.target; const children = target.children; const tmp = target; const tmp3 = closure_5(react.useContext(target(4794).AccessibilityPreferencesContext).alwaysShowLinkDecorations); if (typeof target === "string") { fn = function y() { const openURL = LinkingDefault.openURL; LinkingDefault; const obj = _modDef1948; return openURL(obj.sanitizeUrl(target)); }; 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; } } } return jsx(tmp(1200).LegacyText, { accessible: true, accessibilityRole: str, onPress: fn, style: tmp3.link, children }); }); const result = size.fileFinishedImporting("intl/native/migration.tsx"); export const IntlLink = tmp2;