decord/source/18_ActivityIndicator.js

70 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 18
// Function ID: 19
// Name: ActivityIndicator
// Dependencies: [19, 21, 23, 108, 254]
// Module 18 (ActivityIndicator)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ViewDefault from "View" /* 108 */;
import get_hairlineWidthDefault from "get hairlineWidth" /* 254 */;
import { jsx } from "jsxProd" /* 21 */;
import { default as ProgressBarAndroid } from "ProgressBarAndroid" /* 23 */;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
class ActivityIndicator {
constructor(arg0) {
flag = global.animating;
if (flag === undefined) {
flag = true;
}
color = global.color;
if (color === undefined) {
color = null;
}
flag2 = global.hidesWhenStopped;
if (flag2 === undefined) {
flag2 = true;
}
({ size, onLayout } = global);
if (size === undefined) {
size = "small";
}
merged = Object.assign(global, Object.create(null));
if ("small" === size) {
tmp4 = closure_4;
sizeSmall = closure_4.sizeSmall;
str2 = "small";
} else {
str = "large";
if ("large" === size) {
tmp3 = closure_4;
sizeSmall = closure_4.sizeLarge;
str2 = "large";
} else {
sizeSmall = { height: null, width: null };
sizeSmall[0] = size;
sizeSmall[1] = size;
}
}
obj = { animating: flag, color, hidesWhenStopped: flag2 };
merged1 = Object.assign(merged);
obj.ref = global.ref;
obj.style = sizeSmall;
obj.size = str2;
obj1 = { onLayout, style: null, children: null };
tmp6 = require("View");
obj4 = require("get hairlineWidth");
obj1[1] = obj4.compose(closure_4.container, global.style);
obj2 = {};
merged2 = Object.assign(obj);
obj2.styleAttr = "Normal";
obj2.indeterminate = true;
2026-08-24 06:08:38 +00:00
obj1[2] = jsx(ProgressBarAndroid, obj2);
2026-07-29 08:29:29 +00:00
return jsx(tmp6, obj1);
}
}
ActivityIndicator.displayName = "ActivityIndicator";
2026-08-24 06:08:38 +00:00
let closure_4 = get_hairlineWidthDefault.create({ container: { alignItems: "center", justifyContent: "center" }, sizeSmall: { width: 20, height: 20 }, sizeLarge: { width: 36, height: 36 } });
2026-07-29 08:29:29 +00:00
export default ActivityIndicator;