import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2019-2026 GoodData Corporation
import { useIntl } from "react-intl";
import { ConfirmDialogBase, Overlay, OverlayController, OverlayControllerProvider, UiSkeleton, useId, } from "@gooddata/sdk-ui-kit";
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../constants/zIndex.js";
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
export function DefaultLoadingScheduledEmailDialog({ scheduledExportToEdit, onCancel, }) {
    const intl = useIntl();
    const titleElementId = useId();
    return (_jsx(_Fragment, { children: _jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog", isPositive: true, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: scheduledExportToEdit
                        ? intl.formatMessage({ id: `dialogs.schedule.email.save` })
                        : intl.formatMessage({ id: `dialogs.schedule.email.create` }), footerLeftRenderer: () => (_jsx("div", { className: "gd-notifications-channels-dialog-footer-link", children: _jsx(UiSkeleton, { itemHeight: 32, itemWidth: 100 }) })), isSubmitDisabled: true, submitOnEnterKey: false, onCancel: onCancel, headline: undefined, headerLeftButtonRenderer: () => (_jsx("div", { className: "gd-notifications-channels-dialog-header", children: _jsx(UiSkeleton, { itemHeight: 29, itemWidth: [29, "100%"], itemsCount: 2, direction: "row" }) })), accessibilityConfig: { titleElementId }, children: [
                        _jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.email.accessibilityTitle" }) }), _jsxs("div", { className: "gd-notifications-channel-dialog-content-wrapper", children: [
                                _jsx("div", { className: "gd-divider-with-margin" }), _jsx(UiSkeleton, { itemHeight: 50, itemsCount: 3 })
                            ] })
                    ] }) }) }) }));
}
//# sourceMappingURL=DefaultLoadingScheduledEmailDialog.js.map