decord/source/utils/getDeprecatedModalData.tsx

66 lines
1.8 KiB
TypeScript
Raw Normal View History

// Module ID: 4843
// Function ID: 4844
2026-07-20 16:05:17 +00:00
// Name: getDeprecatedModalData
// Dependencies: [4630, 1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 4843 (getDeprecatedModalData)
import AccessibilityStore from "AccessibilityStore" /* 4630 */;
2026-07-23 10:11:24 +00:00
const ModalAnimation = fn(1074).ModalAnimation;
const size = fn(2);
const result = size.fileFinishedImporting("utils/getDeprecatedModalData.tsx");
2026-07-20 16:05:17 +00:00
export default function getDeprecatedModalData(modal, key, props) {
2026-07-20 16:05:17 +00:00
let tmp = arg3;
if (arg3 === undefined) {
tmp = null;
}
2026-07-29 08:29:29 +00:00
let str = key.key;
if (str == null) {
2026-07-20 16:05:17 +00:00
str = tmp;
}
2026-07-29 08:29:29 +00:00
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 };
2026-07-20 16:05:17 +00:00
const animation = key.animation;
2026-07-29 08:29:29 +00:00
if (animation != null) {
obj.animation = animation;
2026-07-29 08:29:29 +00:00
let flag = key.shouldPersistUnderModals;
if (flag == null) {
flag = false;
}
obj.shouldPersistUnderModals = flag;
obj.props = props;
2026-07-29 08:29:29 +00:00
let backdropStyle = key.backdropStyle;
if (backdropStyle == null) {
backdropStyle = null;
}
obj.backdropStyle = backdropStyle;
2026-07-29 08:29:29 +00:00
let flag2 = key.backdropInstant;
if (flag2 == null) {
flag2 = false;
}
obj.backdropInstant = flag2;
2026-07-29 08:29:29 +00:00
let flag3 = key.disableAnimation;
if (flag3 == null) {
flag3 = false;
}
obj.disableAnimation = flag3;
2026-07-29 08:29:29 +00:00
const closable = key.closable;
2026-08-04 21:03:28 +00:00
let closable2 = typeof closable !== "boolean";
if (typeof closable === "boolean") {
2026-07-29 08:29:29 +00:00
closable2 = key.closable;
2026-07-20 16:05:17 +00:00
}
obj.closable = closable2;
2026-07-29 08:29:29 +00:00
let str2 = key.label;
if (str2 == null) {
str2 = "";
2026-07-20 16:05:17 +00:00
}
obj.label = str2;
obj.callbacks = {};
2026-07-20 16:05:17 +00:00
return obj;
}
};