import { Fancybox } from "@fancyapps/ui";
import { userSlideType } from "@fancyapps/ui/types/Carousel/types";
import { OptionsType } from "@fancyapps/ui/types/Fancybox/options";
+import { getPageOverlayContainer } from "WoltLabSuite/Core/Helper/PageOverlay";
const LOCALES = ["cs", "de", "en", "es", "fr", "it", "lv", "pl", "sk"];
async function getDefaultConfig(): Promise<Partial<OptionsType>> {
return {
l10n: await getLocalization(),
+ parentEl: getPageOverlayContainer(),
Html: {
videoAutoplay: false,
},
return result;
};
})();
-define(["require", "exports", "@fancyapps/ui"], function (require, exports, ui_1) {
+define(["require", "exports", "@fancyapps/ui", "WoltLabSuite/Core/Helper/PageOverlay"], function (require, exports, ui_1, PageOverlay_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setup = setup;
async function getDefaultConfig() {
return {
l10n: await getLocalization(),
+ parentEl: (0, PageOverlay_1.getPageOverlayContainer)(),
Html: {
videoAutoplay: false,
},