decord/source/design/components/Coachmark/native/AnimatedCoachmark.native.tsx

56 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9352
// Function ID: 9353
2026-07-20 16:05:17 +00:00
// Name: renderTooltipItem
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 17, 21, 4119, 9353, 1356, 9311, 9312, 2]
2026-07-20 16:05:17 +00:00
// Exports: AnimatedCoachmark
2026-08-24 06:08:38 +00:00
// Module 9352 (renderTooltipItem)
import _modDef4119 from "module_4119" /* 4119 */;
import AnimatedRenderItemDefault from "AnimatedRenderItem" /* 9312 */;
import Coachmark from "Coachmark" /* 9353 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { StyleSheet } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
function renderTooltipItem(arg0, enterExitAnimatedStyles) {
let obj = { style: items, pointerEvents: "box-none", children: null };
items = [enterExitAnimatedStyles, StyleSheet.absoluteFill];
let tmpResult = null;
2026-07-20 16:05:17 +00:00
if (null != arg0) {
obj = {};
const merged = Object.assign(arg0);
2026-07-29 08:29:29 +00:00
obj.enterExitAnimatedStyles = enterExitAnimatedStyles;
2026-08-24 06:08:38 +00:00
tmpResult = tmp(Coachmark.CoachmarkContainer, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = tmpResult;
2026-08-24 06:08:38 +00:00
return jsx(_modDef4119.View, { style: items, pointerEvents: "box-none", children: null });
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("design/components/Coachmark/native/AnimatedCoachmark.native.tsx");
2026-07-20 16:05:17 +00:00
export const AnimatedCoachmark = function AnimatedCoachmark(visible) {
visible = visible.visible;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(visible, Object.create(null));
2026-08-24 06:08:38 +00:00
importDefault = undefined;
2026-07-29 08:29:29 +00:00
[tmp3, c1] = callback(React.useState(visible), 2);
2026-08-24 06:08:38 +00:00
let obj = visible(9311);
2026-07-20 16:05:17 +00:00
const result = obj.tooltipEnterExitAnimation(merged.position);
const items = [visible];
const effect = React.useEffect(() => {
2026-07-29 08:29:29 +00:00
_undefined(visible);
2026-07-20 16:05:17 +00:00
}, items);
2026-08-11 06:20:06 +00:00
obj = { useReducedMotion: React.useContext(visible(1356).AccessibilityPreferencesContext).reducedMotion.enabled, item: null, entering: null, exiting: null, renderItem: null };
2026-07-20 16:05:17 +00:00
let tmp8;
2026-07-29 08:29:29 +00:00
const tmp2 = callback(React.useState(visible), 2);
const tmp6 = jsx;
if (tmp3) {
2026-07-20 16:05:17 +00:00
tmp8 = merged;
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp8;
obj[2] = result;
obj[3] = result;
obj[4] = renderTooltipItem;
2026-08-24 06:08:38 +00:00
return tmp6(AnimatedRenderItemDefault, obj);
2026-07-20 16:05:17 +00:00
};