decord/source/modules/safety_common/native/URLCallout.tsx

40 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 12472
// Function ID: 12473
2026-07-20 16:05:17 +00:00
// Name: URLCallout
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 12473, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: URLCallout
2026-08-24 06:08:38 +00:00
// Module 12472 (URLCallout)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import Text from "Text" /* 4739 */;
import useUrlParts from "useUrlParts" /* 12473 */;
import { ScrollView } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsxs: c3, jsx: c4 } = jsxProd);
createCacheKey = { linkCalloutContainer: null, linkCalloutContainerText: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { maxHeight: 300, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, width: "100%", borderRadius: ThemesDefault.radii.md };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { padding: ThemesDefault.space.PX_8, paddingVertical: ThemesDefault.space.PX_12, textAlign: "center" };
let closure_5 = createCacheKey.createStyles(createCacheKey);
const obj1 = { padding: ThemesDefault.space.PX_8, paddingVertical: ThemesDefault.space.PX_12, textAlign: "center" };
const result = require("set").fileFinishedImporting("modules/safety_common/native/URLCallout.tsx");
2026-07-20 16:05:17 +00:00
export const URLCallout = function URLCallout(url) {
2026-08-24 06:08:38 +00:00
const tmp = callback3();
let obj = useUrlParts;
2026-07-20 16:05:17 +00:00
const urlParts = obj.useUrlParts(url.url);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.linkCalloutContainer, children: null };
2026-07-20 16:05:17 +00:00
({ protocol, hostname, theRestOfTheUrl } = urlParts);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.linkCalloutContainerText, variant: "text-md/normal", children: null };
2026-07-20 16:05:17 +00:00
const items = [protocol, "//"];
2026-08-24 06:08:38 +00:00
const items1 = [callback(Text.Text, { variant: "text-md/normal", color: "text-muted", children: items }), callback2(Text.Text, { variant: "text-md/semibold", color: "text-default", children: hostname }), callback2(Text.Text, { variant: "text-md/normal", color: "text-muted", children: theRestOfTheUrl })];
2026-07-29 08:29:29 +00:00
obj[2] = items1;
2026-08-24 06:08:38 +00:00
obj[1] = callback(Text.Text, obj);
2026-07-20 16:05:17 +00:00
return callback2(ScrollView, obj);
};