decord/source/modules/safety_common/native/URLCallout.tsx
2026-09-02 09:53:35 +00:00

39 lines
2 KiB
TypeScript

// Module ID: 13035
// Function ID: 13036
// Name: URLCallout
// Dependencies: [19, 17, 21, 4478, 709, 13036, 4474, 2]
// Exports: URLCallout
// Module 13035 (URLCallout)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import Text from "Text" /* 4474 */;
import useUrlParts from "useUrlParts" /* 13036 */;
import { ScrollView } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
require = arg1;
noopAll;
({ jsxs: c3, jsx: c4 } = jsxProd);
createCacheKey = { linkCalloutContainer: null, linkCalloutContainerText: null };
createCacheKey = { maxHeight: 300, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, width: "100%", borderRadius: ThemesDefault.radii.md };
createCacheKey[0] = createCacheKey;
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");
export const URLCallout = function URLCallout(url) {
const tmp = callback3();
let obj = useUrlParts;
const urlParts = obj.useUrlParts(url.url);
obj = { style: tmp.linkCalloutContainer, children: null };
({ protocol, hostname, theRestOfTheUrl } = urlParts);
obj = { style: tmp.linkCalloutContainerText, variant: "text-md/normal", children: null };
const items = [protocol, "//"];
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 })];
obj[2] = items1;
obj[1] = callback(Text.Text, obj);
return callback2(ScrollView, obj);
};