decord/source/modules/conversations/components/native/ConversationCoachmark.tsx

76 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10131
// Function ID: 78393
2026-07-20 16:05:17 +00:00
// Name: NewBadge
2026-07-24 07:16:23 +00:00
// Dependencies: [57, 31, 27, 1345, 33, 1334, 4130, 689, 4126, 1212, 5802, 8608, 2]
2026-07-20 16:05:17 +00:00
// Exports: ConversationCoachmark
2026-07-24 07:16:23 +00:00
// Module 10131 (NewBadge)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { View } from "get ActivityIndicator";
import { ContentDismissActionType } from "ContentDismissActionType";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
2026-07-20 16:05:17 +00:00
function NewBadge() {
2026-07-23 10:11:24 +00:00
let obj = { style: _createForOfIteratorHelperLoose().badge };
obj = { variant: "text-sm/bold", color: "text-default" };
const intl = require(1212) /* getSystemLocale */.intl;
obj.children = intl.string(require(1212) /* getSystemLocale */.t.c2GSIl);
obj.children = jsx(require(4126) /* Text */.Text, { variant: "text-sm/bold", color: "text-default" });
return <View variant="text-sm/bold" color="text-default" />;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const TOPICAL_NAVIGATION_HEADER_COACHMARK = require("DismissibleContent").DismissibleContent.TOPICAL_NAVIGATION_HEADER_COACHMARK;
let items = [TOPICAL_NAVIGATION_HEADER_COACHMARK];
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BRAND, paddingVertical: 2, paddingHorizontal: require("_createForOfIteratorHelperLoose").space.PX_8, borderRadius: require("_createForOfIteratorHelperLoose").radii.round };
_createForOfIteratorHelperLoose.badge = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.coachmarkWrapper = { marginRight: require("_createForOfIteratorHelperLoose").space.PX_12 };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const obj1 = { marginRight: require("_createForOfIteratorHelperLoose").space.PX_12 };
const result = require("get ActivityIndicator").fileFinishedImporting("modules/conversations/components/native/ConversationCoachmark.tsx");
2026-07-20 16:05:17 +00:00
export const ConversationCoachmark = function ConversationCoachmark(arg0) {
let children;
let isLast;
({ children, isLast } = arg0);
const ref = React.useRef(null);
2026-07-23 10:11:24 +00:00
let obj = first(5802);
2026-07-20 16:05:17 +00:00
const tmp3 = callback(obj.useSelectedDismissibleContent(items), 2);
2026-07-23 10:11:24 +00:00
first = tmp3[0];
2026-07-20 16:05:17 +00:00
const dependencyMap = tmp5;
2026-07-23 10:11:24 +00:00
items = [tmp3[1], first];
2026-07-20 16:05:17 +00:00
const memo = React.useMemo(() => {
const obj = {};
const intl = first(tmp5[9]).intl;
obj.title = intl.string(first(tmp5[9]).t.UcQjDe);
const intl2 = first(tmp5[9]).intl;
obj.description = intl2.string(first(tmp5[9]).t.QeJIbA);
obj.position = "bottom";
2026-07-23 10:11:24 +00:00
obj.visible = first === outer1_7;
2026-07-20 16:05:17 +00:00
obj.onDismiss = function onDismiss() {
2026-07-23 10:11:24 +00:00
outer1_1(outer2_5.USER_DISMISS);
2026-07-20 16:05:17 +00:00
};
obj.renderImgComponent = function renderImgComponent() {
2026-07-23 10:11:24 +00:00
return outer2_6(outer2_10, {});
2026-07-20 16:05:17 +00:00
};
return obj;
}, items);
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-24 07:16:23 +00:00
const coachmark = first(8608).useCoachmark(ref, memo);
2026-07-20 16:05:17 +00:00
const items1 = [tmp3[1]];
obj = {};
let coachmarkWrapper;
2026-07-23 10:11:24 +00:00
callback = React.useCallback(() => {
tmp5(outer1_5.USER_DISMISS);
2026-07-20 16:05:17 +00:00
}, items1);
if (!isLast) {
coachmarkWrapper = tmp.coachmarkWrapper;
}
obj.style = coachmarkWrapper;
obj = { ref, children: children(callback) };
2026-07-23 10:11:24 +00:00
obj.children = <View ref={ref}>{children(callback)}</View>;
return <View ref={ref}>{children(callback)}</View>;
2026-07-20 16:05:17 +00:00
};