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

69 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13596
// Function ID: 13597
2026-07-20 16:05:17 +00:00
// Name: StepModal
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 17, 21, 4668, 6401, 1629, 11154, 13597, 2]
2026-07-20 16:05:17 +00:00
// Exports: StepModal
2026-08-24 06:08:38 +00:00
// Module 13596 (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" /* 4668 */;
2026-07-21 22:01:30 +00:00
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;
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
const result = require("set").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));
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
const tmp2 = callback3();
2026-08-15 05:55:55 +00:00
const tmp3 = onWillFocus(1629)();
2026-07-29 08:29:29 +00:00
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-24 06:08:38 +00:00
obj = { height: steps(6401).NAV_BAR_HEIGHT + tmp3.top };
2026-07-29 08:29:29 +00:00
obj.headerStyle = obj;
obj.hideTitle = true;
2026-08-24 06:08:38 +00:00
const items1 = [callback2(steps(11154).Modal, obj), ];
obj1 = { style: items2, pointerEvents: "box-none", children: null };
2026-07-29 08:29:29 +00:00
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-24 06:08:38 +00:00
obj1[2] = callback2(steps(13597).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);
};