decord/source/design/components/Coachmark/native/AnimatedCoachmark.native.tsx
2026-08-25 06:04:03 +00:00

55 lines
2.1 KiB
TypeScript

// Module ID: 8808
// Function ID: 8809
// Name: renderTooltipItem
// Dependencies: [32, 19, 17, 21, 4120, 8809, 1356, 8805, 8806, 2]
// Exports: AnimatedCoachmark
// Module 8808 (renderTooltipItem)
import _modDef4120 from "module_4120" /* 4120 */;
import AnimatedRenderItemDefault from "AnimatedRenderItem" /* 8806 */;
import Coachmark from "Coachmark" /* 8809 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { StyleSheet } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
function renderTooltipItem(arg0, enterExitAnimatedStyles) {
let obj = { style: items, pointerEvents: "box-none", children: null };
items = [enterExitAnimatedStyles, StyleSheet.absoluteFill];
let tmpResult = null;
if (null != arg0) {
obj = {};
const merged = Object.assign(arg0);
obj.enterExitAnimatedStyles = enterExitAnimatedStyles;
tmpResult = tmp(Coachmark.CoachmarkContainer, obj);
}
obj[2] = tmpResult;
return jsx(_modDef4120.View, { style: items, pointerEvents: "box-none", children: null });
}
let result = require("set").fileFinishedImporting("design/components/Coachmark/native/AnimatedCoachmark.native.tsx");
export const AnimatedCoachmark = function AnimatedCoachmark(visible) {
visible = visible.visible;
const merged = Object.assign(visible, Object.create(null));
importDefault = undefined;
[tmp3, c1] = callback(React.useState(visible), 2);
let obj = visible(8805);
const result = obj.tooltipEnterExitAnimation(merged.position);
const items = [visible];
const effect = React.useEffect(() => {
_undefined(visible);
}, items);
obj = { useReducedMotion: React.useContext(visible(1356).AccessibilityPreferencesContext).reducedMotion.enabled, item: null, entering: null, exiting: null, renderItem: null };
let tmp8;
const tmp2 = callback(React.useState(visible), 2);
const tmp6 = jsx;
if (tmp3) {
tmp8 = merged;
}
obj[1] = tmp8;
obj[2] = result;
obj[3] = result;
obj[4] = renderTooltipItem;
return tmp6(AnimatedRenderItemDefault, obj);
};