decord/source/modules/safety_common/native/URLCallout.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

38 lines
2 KiB
TypeScript

// Module ID: 13043
// Function ID: 13044
// Name: URLCallout
// Dependencies: [19, 17, 21, 4606, 576, 13044, 4602, 2]
// Exports: URLCallout
// Module 13043 (URLCallout)
import nativeDefault from "native" /* 576 */;
import Text_Text from "Text/Text" /* 4602 */;
import SharedStateUtils from "SharedStateUtils" /* 13044 */;
import noop from "module_19" /* 19 */;
require = fn;
const ScrollView = fn(17).ScrollView;
const jsxProd = fn(21);
({ jsxs: c3, jsx: closure_4 } = jsxProd);
const createStyles = fn(4606);
let obj2 = { linkCalloutContainer: { maxHeight: 300, backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, width: "100%", borderRadius: nativeDefault.radii.md }, linkCalloutContainerText: null };
let obj3 = { maxHeight: 300, backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, width: "100%", borderRadius: nativeDefault.radii.md };
obj2.linkCalloutContainerText = { padding: nativeDefault.space.PX_8, paddingVertical: nativeDefault.space.PX_12, textAlign: "center" };
let closure_5 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/safety_common/native/URLCallout.tsx");
export const URLCallout = function URLCallout(url) {
const tmp = closure_5();
const urlParts = SharedStateUtils.useUrlParts(url.url);
const obj2 = { style: tmp.linkCalloutContainer, children: null };
({ protocol, hostname, theRestOfTheUrl } = urlParts);
const obj3 = { style: tmp.linkCalloutContainerText, variant: "text-md/normal", children: null };
const obj4 = { variant: "text-md/normal", color: "text-muted", children: null };
const items = [protocol, "//"];
obj4.children = items;
const items1 = [React3(Text_Text.Text, obj4), React4(Text_Text.Text, { variant: "text-md/semibold", color: "text-default", children: hostname }), React4(Text_Text.Text, { variant: "text-md/normal", color: "text-muted", children: theRestOfTheUrl })];
obj3.children = items1;
obj2.children = React3(Text_Text.Text, obj3);
return React4(ScrollView, obj2);
};