decord/source/utils/getDeprecatedModalData.tsx
2026-08-26 06:04:24 +00:00

64 lines
1.7 KiB
TypeScript

// Module ID: 4677
// Function ID: 4678
// Name: getDeprecatedModalData
// Dependencies: [4436, 676, 2]
// Exports: default
// Module 4677 (getDeprecatedModalData)
import closure_0 from "maybeApplyNoTextColorForLightCustomTheme" /* 4436 */;
import { ModalAnimation } from "ME" /* 676 */;
const result = require("set").fileFinishedImporting("utils/getDeprecatedModalData.tsx");
export default function getDeprecatedModalData(modal, key) {
let tmp = arg3;
if (arg3 === undefined) {
tmp = null;
}
let str = key.key;
if (str == null) {
str = tmp;
}
if (str == null) {
str = "modal";
}
const obj = { key: str, modal, animation: null, shouldPersistUnderModals: null, props: null, backdropStyle: null, backdropInstant: null, disableAnimation: null, closable: null, label: null, callbacks: null };
const animation = key.animation;
if (animation != null) {
obj[2] = animation;
let flag = key.shouldPersistUnderModals;
if (flag == null) {
flag = false;
}
obj[3] = flag;
obj[4] = arg2;
let backdropStyle = key.backdropStyle;
if (backdropStyle == null) {
backdropStyle = null;
}
obj[5] = backdropStyle;
let flag2 = key.backdropInstant;
if (flag2 == null) {
flag2 = false;
}
obj[6] = flag2;
let flag3 = key.disableAnimation;
if (flag3 == null) {
flag3 = false;
}
obj[7] = flag3;
const closable = key.closable;
let closable2 = typeof closable !== "boolean";
if (typeof closable === "boolean") {
closable2 = key.closable;
}
obj[8] = closable2;
let str2 = key.label;
if (str2 == null) {
str2 = "";
}
obj[9] = str2;
obj[10] = {};
return obj;
}
};