decord/beta/source/utils/getDeprecatedModalData.tsx
github-actions 19e52f659f chore: update source for beta 347.11
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-26 17:57:22 +00:00

65 lines
1.8 KiB
TypeScript

// Module ID: 4993
// Function ID: 4994
// Name: getDeprecatedModalData
// Dependencies: [4780, 1074, 2]
// Exports: default
// Module 4993 (getDeprecatedModalData)
import AccessibilityStore from "AccessibilityStore" /* 4780 */;
const ModalAnimation = fn(1074).ModalAnimation;
const size = fn(2);
const result = size.fileFinishedImporting("utils/getDeprecatedModalData.tsx");
export default function getDeprecatedModalData(modal, key, props) {
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.animation = animation;
let flag = key.shouldPersistUnderModals;
if (flag == null) {
flag = false;
}
obj.shouldPersistUnderModals = flag;
obj.props = props;
let backdropStyle = key.backdropStyle;
if (backdropStyle == null) {
backdropStyle = null;
}
obj.backdropStyle = backdropStyle;
let flag2 = key.backdropInstant;
if (flag2 == null) {
flag2 = false;
}
obj.backdropInstant = flag2;
let flag3 = key.disableAnimation;
if (flag3 == null) {
flag3 = false;
}
obj.disableAnimation = flag3;
const closable = key.closable;
let closable2 = typeof closable !== "boolean";
if (typeof closable === "boolean") {
closable2 = key.closable;
}
obj.closable = closable2;
let str2 = key.label;
if (str2 == null) {
str2 = "";
}
obj.label = str2;
obj.callbacks = {};
return obj;
}
};