decord/source/__polyfill/09xxx/module_9849.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

197 lines
5.5 KiB
JavaScript

// Module ID: 9849
// Function ID: 9850
// Dependencies: [19, 17, 21, 9850, 9854]
// Module 9849
import colorToHex from "colorToHex" /* 9854 */;
import noop from "module_19" /* 19 */;
require = fn;
get_ActivityIndicator = fn(17);
({ Appearance: c2, Platform, Text } = get_ActivityIndicator);
const jsx = fn(21).jsx;
const DatePickerAndroid = fn(9850).DatePickerAndroid;
function getTheme(arg0) {
}
function getDividerColor(arg0) {
}
function getTextColor(arg0) {
}
function getButtonColor(arg0) {
}
function getTitle(arg0) {
}
export default noop.memo((theme) => {
const obj = {};
const merged = Object.assign(theme);
colorToHex;
if (typeof getTextColor === "function") {
if (typeof getTheme === "function") {
if (theme.theme) {
let str = theme.theme;
} else {
str = "auto";
if (React2) {
const colorScheme = obj2.getColorScheme();
let tmp11;
if (null !== colorScheme) {
tmp11 = colorScheme;
}
str = tmp11;
}
obj2 = React2;
}
let str2 = "white";
let str4 = "white";
if ("dark" !== str) {
let str6;
if ("light" === str) {
str6 = "black";
}
str4 = str6;
}
obj.textColor = tmp7(str4);
tmp4(9854);
if (typeof getDividerColor === "function") {
if (theme.dividerColor) {
let dividerColor = theme.dividerColor;
} else if (typeof tmp8 === "function") {
if (theme.theme) {
let str7 = theme.theme;
} else {
str7 = "auto";
if (React2) {
const colorScheme1 = obj3.getColorScheme();
let tmp17;
if (null !== colorScheme1) {
tmp17 = colorScheme1;
}
str7 = tmp17;
}
obj3 = React2;
}
dividerColor = str2;
if ("dark" !== str7) {
let str9;
if ("light" === str7) {
str9 = "black";
}
dividerColor = str9;
}
} else {
throw new TypeError("Trying to call a non-function");
}
obj.dividerColor = tmp13(dividerColor);
tmp4(9854);
if (typeof getButtonColor === "function") {
if (theme.buttonColor) {
str2 = theme.buttonColor;
} else if (typeof tmp8 === "function") {
if (theme.theme) {
let str10 = theme.theme;
} else {
str10 = "auto";
if (React2) {
const colorScheme2 = obj4.getColorScheme();
let tmp23;
if (null !== colorScheme2) {
tmp23 = colorScheme2;
}
str10 = tmp23;
}
obj4 = React2;
}
if ("dark" !== str10) {
let str12;
if ("light" === str10) {
str12 = "black";
}
str2 = str12;
}
} else {
throw new TypeError("Trying to call a non-function");
}
obj.buttonColor = tmp19(str2);
if (typeof tmp8 === "function") {
if (theme.theme) {
let str13 = theme.theme;
} else {
str13 = "auto";
if (React2) {
const colorScheme3 = obj5.getColorScheme();
let tmp26;
if (null !== colorScheme3) {
tmp26 = colorScheme3;
}
str13 = tmp26;
}
obj5 = React2;
}
obj.theme = str13;
if (typeof getTitle === "function") {
let title = theme.title;
let str14 = "";
let str15 = "";
if (null !== title) {
if (!title) {
let str16 = "Select date";
if ("time" === tmp28) {
str16 = "Select time";
}
title = str16;
}
str15 = title;
}
obj.title = str15;
let str18 = "Confirm";
if (theme.confirmText) {
str18 = theme.confirmText;
}
obj.confirmText = str18;
let str19 = "Cancel";
if (theme.cancelText) {
str19 = theme.cancelText;
}
obj.cancelText = str19;
let num = 1;
if (theme.minuteInterval) {
num = theme.minuteInterval;
}
obj.minuteInterval = num;
let str20 = "datetime";
if (theme.mode) {
str20 = theme.mode;
}
obj.mode = str20;
if (null != theme.timeZoneOffsetInMinutes) {
str14 = theme.timeZoneOffsetInMinutes.toString();
}
obj.timeZoneOffsetInMinutes = str14;
return tmp(tmp2, obj);
} else {
throw new TypeError("Trying to call a non-function");
}
} else {
throw new TypeError("Trying to call a non-function");
}
} else {
throw new TypeError("Trying to call a non-function");
}
} else {
throw new TypeError("Trying to call a non-function");
}
} else {
throw new TypeError("Trying to call a non-function");
}
} else {
throw new TypeError("Trying to call a non-function");
}
tmp = jsx;
tmp2 = DatePickerAndroid;
});