decord/source/design/components/Modal/native/StepModal.native.tsx

71 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13304
// Function ID: 13305
2026-07-20 16:05:17 +00:00
// Name: StepModal
2026-08-05 07:35:12 +00:00
// Dependencies: [32, 19, 17, 21, 4255, 5220, 1581, 11220, 13305, 2]
2026-07-20 16:05:17 +00:00
// Exports: StepModal
2026-08-05 07:35:12 +00:00
// Module 13304 (StepModal)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-21 22:01:30 +00:00
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { container: { height: "100%" }, stepContainer: null };
createCacheKey = { flexDirection: "column", alignItems: "center", justifyContent: "center", top: 0, left: 0, right: 0, height: require("NAV_BAR_HEIGHT").NAV_BAR_HEIGHT };
createCacheKey[1] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("design/components/Modal/native/StepModal.native.tsx");
2026-07-20 16:05:17 +00:00
export const StepModal = function StepModal(steps) {
steps = steps.steps;
const onWillFocus = steps.onWillFocus;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(steps, Object.create(null));
let dependencyMap;
const tmp2 = createCacheKey();
const tmp3 = onWillFocus(1581)();
const tmp4 = callback(React.useState(0), 2);
dependencyMap = tmp4[1];
2026-07-20 16:05:17 +00:00
const items = [onWillFocus, steps];
2026-07-29 08:29:29 +00:00
let obj = { style: tmp2.container, children: null };
2026-07-23 10:11:24 +00:00
callback = React.useCallback((route) => {
2026-07-29 08:29:29 +00:00
let num;
if (steps != null) {
num = steps.indexOf(tmp.name);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
closure_2(num);
2026-07-29 08:29:29 +00:00
if (onWillFocus != null) {
2026-07-20 16:05:17 +00:00
onWillFocus(route);
}
}, items);
obj = {};
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.onWillFocus = callback;
2026-08-05 07:35:12 +00:00
obj = { height: steps(5220).NAV_BAR_HEIGHT + tmp3.top };
2026-07-29 08:29:29 +00:00
obj.headerStyle = obj;
obj.hideTitle = true;
2026-08-05 07:35:12 +00:00
const items1 = [callback2(steps(11220).Modal, obj), ];
2026-07-29 08:29:29 +00:00
const obj1 = { style: items2, pointerEvents: "box-none", children: null };
items2 = [tmp2.stepContainer, { marginTop: tmp3.top }];
const obj2 = { currentStep: tmp4[0], totalSteps: null };
let num;
if (steps != null) {
num = steps.length;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj2[1] = num;
2026-08-05 07:35:12 +00:00
obj1[2] = callback2(steps(13305).ModalStepIndicator, obj2);
2026-07-29 08:29:29 +00:00
items1[1] = callback2(View, obj1);
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return closure_7(View, obj);
};