import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025 GoodData Corporation
import { BackendProvider, OrganizationProvider, WorkspaceProvider, buildDashboardUrl, buildWidgetUrl, } from "@gooddata/sdk-ui";
import { ToastsCenterContextProvider } from "@gooddata/sdk-ui-kit";
import { AutomationsCore } from "./AutomationsCore.js";
import { DEFAULT_MAX_HEIGHT, DEFAULT_PAGE_SIZE, defaultAvailableFilters, defaultColumnDefinitions, } from "./constants.js";
import { FilterOptionsProvider } from "./filters/FilterOptionsContext.js";
import { UserProvider } from "./UserContext.js";
import { defaultEditAutomation } from "./utils.js";
import { InternalIntlWrapper } from "../internal/utils/internalIntlProvider.js";
/**
 * Internal component for displaying automations.
 *
 * @internal
 */
export function Automations({ backend, scope, workspace, organization, locale = "en-US", timezone = "UTC", selectedColumnDefinitions = defaultColumnDefinitions[scope], preselectedFilters = {}, availableFilters = defaultAvailableFilters[scope], maxHeight = DEFAULT_MAX_HEIGHT, pageSize = DEFAULT_PAGE_SIZE, type = "schedule", tableVariant = "regular", isMobileView = false, enableBulkActions = true, externalInvalidationId, renderToolbarCustomElement, dashboardUrlBuilder = buildDashboardUrl, widgetUrlBuilder = buildWidgetUrl, editAutomation = defaultEditAutomation, onLoad, }) {
    return (_jsx(BackendProvider, { backend: backend, children: _jsx(OrganizationProvider, { organization: organization, children: _jsx(WorkspaceProvider, { workspace: workspace, children: _jsx(UserProvider, { scope: scope, children: _jsx(FilterOptionsProvider, { scope: scope, children: _jsx(InternalIntlWrapper, { locale: locale, children: _jsx(ToastsCenterContextProvider, { children: _jsx(AutomationsCore, { selectedColumnDefinitions: selectedColumnDefinitions, preselectedFilters: preselectedFilters, availableFilters: availableFilters, type: type, scope: scope, timezone: timezone, maxHeight: maxHeight, pageSize: pageSize, tableVariant: tableVariant, isMobileView: isMobileView, enableBulkActions: enableBulkActions, dashboardUrlBuilder: dashboardUrlBuilder, widgetUrlBuilder: widgetUrlBuilder, editAutomation: editAutomation, onLoad: onLoad, externalInvalidationId: externalInvalidationId, renderToolbarCustomElement: renderToolbarCustomElement, locale: locale }) }) }) }) }) }) }) }));
}
//# sourceMappingURL=Automations.js.map