// Module ID: 17033 // Function ID: 17034 // Name: VibegrationsNativeMarkdown // Dependencies: [19, 17, 21, 580, 4758, 558, 568, 17034, 4754, 4748, 17035, 2] // Module 17033 (VibegrationsNativeMarkdown) import c from "c" /* 568 */; import nativeDefault from "native" /* 580 */; import MarkupUtilsDefault from "MarkupUtils" /* 4748 */; import Text_Text from "Text/Text" /* 4754 */; import VibegrationsMarkdownBlocks from "VibegrationsMarkdownBlocks" /* 17034 */; import useVibegrationsRevealedText from "useVibegrationsRevealedText" /* 17035 */; import noop from "module_19" /* 19 */; require = fn; const View = fn(17).View; const jsxProd = fn(21); ({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd); const VIBEGRATIONS_MARKUP_OPTIONS = { allowList: true, allowHeading: true, allowLinks: true }; let obj2 = {}; const merged = Object.assign(VIBEGRATIONS_MARKUP_OPTIONS); obj2.allowList = false; const PX_16 = nativeDefault.space.PX_16; const createStyles = fn(4758); const obj4 = { blocks: { gap: nativeDefault.space.PX_8 }, list: null, item: null, marker: null, itemText: null }; let obj5 = { gap: nativeDefault.space.PX_8 }; obj4.list = { gap: nativeDefault.space.PX_4 }; obj4.item = { flexDirection: "row", alignItems: "flex-start" }; let obj6 = { gap: nativeDefault.space.PX_4 }; obj4.marker = { minWidth: nativeDefault.space.PX_20, marginRight: nativeDefault.space.PX_4 }; obj4.itemText = { flex: 1 }; let closure_10 = createStyles.createStyles(obj4); let ReactCompilerGating = fn(558); let tmp4 = ReactCompilerGating.isReactCompilerEnabled() ? ((source) => { const cResult = require("c").c(16); source = source.source; let tmp4 = closure_10(); _require = tmp4; if (cResult[0] !== source) { const splitMarkdownBlocksResult = require("VibegrationsMarkdownBlocks").splitMarkdownBlocks(source); cResult[0] = source; cResult[1] = splitMarkdownBlocksResult; marker = splitMarkdownBlocksResult; const tmpResult = require("VibegrationsMarkdownBlocks"); } else { marker = cResult[1]; } if (cResult[2] === marker) { if (cResult[3] === tmp4.item) { if (cResult[4] === tmp4.itemText) { if (cResult[5] === tmp4.list) { if (cResult[6] === tmp4.marker) { if (cResult[13] === tmp4.blocks) { if (cResult[14] === tmp7) { const tmp11 = cResult[15]; } return tmp11; } obj2 = { style: tmp6, children: cResult[7] }; cResult[13] = tmp4.blocks; cResult[14] = cResult[7]; cResult[15] = closure_5(View, obj2); class T { constructor(arg0, arg1) { if ("text" === source.kind) { tmp5 = jsx; tmp6 = closure_0; tmp7 = closure_2; obj1 = { variant: "text-md/normal", color: "text-default", children: null }; tmp8 = closure_1; obj3 = closure_1(closure_2[9]); tmp9 = closure_7; flag = true; obj1.children = obj3.parse(source.text, true, closure_7); tmp4 = jsx(closure_0(closure_2[8]).Text, obj1, arg1); } else { tmp = jsx; tmp2 = View; obj = { style: null, accessibilityRole: "list", children: null }; tmp3 = closure_0; obj.style = closure_0.list; items = source.items; obj.children = items.map(() => { ... }); tmp4 = jsx(View, obj, arg1); } return tmp4; } } const tmp14 = closure_5(View, obj2); } } } } } if (cResult[8] === tmp4.item) { if (cResult[9] === tmp4.itemText) { if (cResult[10] === tmp4.list) { if (cResult[11] === tmp4.marker) { let tmp8 = cResult[12]; } const mapped = marker.map(tmp8); cResult[2] = marker; cResult[3] = tmp4.item; cResult[4] = tmp4.itemText; ({ list: tmp3[5], marker } = tmp4); cResult[6] = marker; class T { constructor(arg0, arg1) { if ("text" === source.kind) { tmp5 = jsx; tmp6 = closure_0; tmp7 = closure_2; obj1 = { variant: "text-md/normal", color: "text-default", children: null }; tmp8 = closure_1; obj3 = closure_1(closure_2[9]); tmp9 = closure_7; flag = true; obj1.children = obj3.parse(source.text, true, closure_7); tmp4 = jsx(closure_0(closure_2[8]).Text, obj1, arg1); } else { tmp = jsx; tmp2 = View; obj = { style: null, accessibilityRole: "list", children: null }; tmp3 = closure_0; obj.style = closure_0.list; items = source.items; obj.children = items.map(() => { ... }); tmp4 = jsx(View, obj, arg1); } return tmp4; } } } } } class T { constructor(arg0, arg1) { if ("text" === source.kind) { tmp5 = jsx; tmp6 = closure_0; tmp7 = closure_2; obj1 = { variant: "text-md/normal", color: "text-default", children: null }; tmp8 = closure_1; obj3 = closure_1(closure_2[9]); tmp9 = closure_7; flag = true; obj1.children = obj3.parse(source.text, true, closure_7); tmp4 = jsx(closure_0(closure_2[8]).Text, obj1, arg1); } else { tmp = jsx; tmp2 = View; obj = { style: null, accessibilityRole: "list", children: null }; tmp3 = closure_0; obj.style = closure_0.list; items = source.items; obj.children = items.map(() => { ... }); tmp4 = jsx(View, obj, arg1); } return tmp4; } } cResult[8] = tmp4.item; cResult[9] = tmp4.itemText; cResult[10] = tmp4.list; cResult[11] = tmp4.marker; cResult[12] = T; tmp8 = T; }) : ((source) => { source = source.source; const tmp = closure_10(); const list = tmp; let items = [source]; const memo = noop.useMemo(() => VibegrationsMarkdownBlocks.splitMarkdownBlocks(source), items); return closure_5(View, { style: tmp.blocks, children: memo.map((kind, index) => { if ("text" === kind.kind) { obj2 = { variant: "text-md/normal", color: "text-default", children: MarkupUtilsDefault.parse(kind.text, true, obj) }; let tmp4 = hasOwnProperty(Text_Text.Text, obj2, index); } else { obj = { style: list.list, accessibilityRole: "list", children: null }; let items = kind.items; obj.children = items.map((children, index) => { const obj = { style: null, children: null }; const items = [list.item, { paddingLeft: children.depth * PX_16 }]; obj.style = items; const obj3 = { style: list.marker, children: closure_2_5(source(4754).Text, { variant: "text-md/normal", color: "text-default", children: children.marker }) }; const items1 = [closure_2_5(View, obj3), ]; const obj5 = { style: list.itemText, children: null }; const obj6 = { variant: "text-md/normal", color: "text-default", children: closure_1(4748).parse(children.text, true, obj2) }; obj5.children = closure_2_5(source(4754).Text, obj6); items1[1] = closure_2_5(View, obj5); obj.children = items1; return closure_2_6(View, obj, index); }); tmp4 = hasOwnProperty(View, obj, index); } return tmp4; }) }); }); let closure_11 = tmp4; ReactCompilerGating = fn(558); const obj7 = { minWidth: nativeDefault.space.PX_20, marginRight: nativeDefault.space.PX_4 }; const size = fn(2); const result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsNativeMarkdown.tsx"); export default tmp4; export { VIBEGRATIONS_MARKUP_OPTIONS }; export const VibegrationsRevealedMarkdown = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => { const cResult = c.c(4); ({ streaming, source } = arg0); if (cResult[0] !== streaming) { obj2 = { streaming }; cResult[0] = streaming; cResult[1] = obj2; let tmp4 = obj2; } else { tmp4 = cResult[1]; } const text = useVibegrationsRevealedText.useVibegrationsRevealedText(source, tmp4).text; if (cResult[2] !== text) { const obj3 = { source: text }; const tmp8 = hasOwnProperty(closure_11, obj3); cResult[2] = text; cResult[3] = tmp8; let tmp5 = tmp8; } else { tmp5 = cResult[3]; } return tmp5; }) : ((arg0) => { ({ source, streaming } = arg0); return hasOwnProperty(closure_11, { source: useVibegrationsRevealedText.useVibegrationsRevealedText(source, { streaming }).text }); });