decord/source/design/components/Modal/native/StepModal.native.tsx
2026-08-31 15:47:37 +00:00

68 lines
2.3 KiB
TypeScript

// Module ID: 13784
// Function ID: 13785
// Name: StepModal
// Dependencies: [32, 19, 17, 21, 4448, 5460, 1628, 11468, 13785, 2]
// Exports: StepModal
// Module 13784 (StepModal)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4448 */;
const require = arg1;
({ 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;
let closure_8 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("design/components/Modal/native/StepModal.native.tsx");
export const StepModal = function StepModal(steps) {
steps = steps.steps;
const onWillFocus = steps.onWillFocus;
const merged = Object.assign(steps, Object.create(null));
dependencyMap = undefined;
const tmp2 = callback3();
const tmp3 = onWillFocus(1628)();
const tmp4 = callback(React.useState(0), 2);
dependencyMap = tmp4[1];
const items = [onWillFocus, steps];
let obj = { style: tmp2.container, children: null };
callback = React.useCallback((route) => {
let num;
if (steps != null) {
num = steps.indexOf(tmp.name);
}
if (num == null) {
num = 0;
}
closure_2(num);
if (onWillFocus != null) {
onWillFocus(route);
}
}, items);
obj = {};
const merged1 = Object.assign(merged);
obj.onWillFocus = callback;
obj = { height: steps(5460).NAV_BAR_HEIGHT + tmp3.top };
obj.headerStyle = obj;
obj.hideTitle = true;
const items1 = [callback2(steps(11468).Modal, obj), ];
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;
}
if (num == null) {
num = 0;
}
obj2[1] = num;
obj1[2] = callback2(steps(13785).ModalStepIndicator, obj2);
items1[1] = callback2(View, obj1);
obj[1] = items1;
return closure_7(View, obj);
};