decord/source/9684_Custom.js

140 lines
4.1 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9684
2026-07-27 11:26:19 +00:00
// Function ID: 75408
2026-07-20 16:05:17 +00:00
// Name: Custom
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 9685]
2026-07-20 16:05:17 +00:00
// Exports: Custom
2026-07-25 08:10:48 +00:00
// Module 9684 (Custom)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
export const Custom = function Custom(activeDotStyle) {
2026-07-23 10:11:24 +00:00
let View;
let closure_6;
let closure_7;
let closure_8;
let closure_9;
2026-07-20 16:05:17 +00:00
let horizontal;
activeDotStyle = activeDotStyle.activeDotStyle;
const dotStyle = activeDotStyle.dotStyle;
2026-07-23 10:11:24 +00:00
({ progress: View, horizontal } = activeDotStyle);
2026-07-20 16:05:17 +00:00
const jsx = tmp;
const data = activeDotStyle.data;
const size = activeDotStyle.size;
({ renderItem: closure_6, onPress: closure_7, customReanimatedStyle: closure_8, carouselName: closure_9 } = activeDotStyle);
if ("string" !== typeof size) {
let width;
if (null != dotStyle) {
width = dotStyle.width;
}
if ("string" !== typeof width) {
let height;
if (null != dotStyle) {
height = dotStyle.height;
}
if ("string" !== typeof height) {
let width1;
if (null != activeDotStyle) {
width1 = activeDotStyle.width;
}
if ("string" !== typeof width1) {
let height1;
if (null != activeDotStyle) {
height1 = activeDotStyle.height;
}
if ("string" !== typeof height1) {
let num = 0;
if (null != size) {
num = size;
}
let width2;
if (null != dotStyle) {
width2 = dotStyle.width;
}
let num2 = 0;
if (null != width2) {
num2 = width2;
}
let width3;
if (null != activeDotStyle) {
width3 = activeDotStyle.width;
}
let num3 = 0;
if (null != width3) {
num3 = width3;
}
let num4 = 0;
const bound = Math.max(num, num2, num3);
if (null != size) {
num4 = size;
}
let height2;
if (null != dotStyle) {
height2 = dotStyle.height;
}
let num5 = 0;
if (null != height2) {
num5 = height2;
}
let height3;
if (null != activeDotStyle) {
height3 = activeDotStyle.height;
}
let num6 = 0;
if (null != height3) {
num6 = height3;
}
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { justifyContent: "space-between", alignSelf: "center", minWidth: bound, minHeight: Math.max(num4, num5, num6) };
2026-07-20 16:05:17 +00:00
const items = [obj, , ];
obj = {};
if (tmp) {
obj.flexDirection = "row";
let tmp14 = obj;
} else {
obj.flexDirection = "column";
tmp14 = obj;
}
items[1] = tmp14;
items[2] = tmp2;
obj.style = items;
obj.children = data.map((arg0, index) => {
2026-07-23 10:11:24 +00:00
let closure_0 = index;
2026-07-20 16:05:17 +00:00
const obj = {
index,
size,
count: data.length,
dotStyle,
animValue: closure_2,
2026-07-23 10:11:24 +00:00
horizontal: !closure_3,
activeDotStyle: closure_0,
2026-07-20 16:05:17 +00:00
customReanimatedStyle: closure_8,
onPress() {
let tmp;
2026-07-23 10:11:24 +00:00
if (null != outer1_7) {
tmp = outer1_7(closure_0);
2026-07-20 16:05:17 +00:00
}
return tmp;
},
accessibilityLabel: "Slide " + index + 1 + " of " + data.length + " - " + closure_9
};
let tmp2;
if (null != callback) {
tmp2 = callback(arg0, index);
}
obj.children = tmp2;
2026-07-23 10:11:24 +00:00
return closure_3(activeDotStyle(dotStyle[3]).PaginationItem, obj, index);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
return <View />;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
const error = new Error("size/width/height must be a number");
throw error;
};