import { A as useAppDefinitionApi, c as transformThemes, o as buildThemeDefinition, s as getActiveThemeId } from "../FluidThemeProvider-D_O4NV2b.mjs";
import { t as useAccount } from "../use-account-CVCEuI6e.mjs";
import "../use-optional-store-DzThbXJh.mjs";
import { _ as createCompanyQueryKey, a as isErrorResult, c as selectProperty, d as useAppDefinition, f as toRawManifest, g as toScreenDefinition, h as normalizeComponentTree, l as useFluidTheme, m as toNavigationItem, n as getProperty, o as isIdle, p as transformManifestToRepAppData, r as hasData, s as isLoading, u as APP_DEFINITION_QUERY_KEY, v as useCompanyScopedQueryKey } from "../hook-types-JekiyYyT.mjs";
import { a as usePortalTenantClient } from "../query-keys-oPgLh6FY.mjs";
import { _ as extractPropertyValues, g as applyPropertyValues, h as PROPERTY_FIELD_TYPES, v as groupPropertyFields, y as isPropertyFieldType } from "../registries-BZVov8GL.mjs";
import { t as useStore } from "../use-store-DfuRLjKx.mjs";
import { n as useAppNavigation, t as AppNavigationProvider } from "../AppNavigationContext-DQcQSWd1.mjs";
import { c as sourceWidgetPackagesToManifests, i as isSourceWidgetPackage, n as defineWidgetPackage, t as defineWidget } from "../authoring-BLhdAWs4.mjs";
//#region src/widgets/authoring-condition.ts
const APP_DATA_QUERY_KEY = ["fluid", "app"];
const PROFILE_QUERY_KEY = ["fluid", "profile"];
const useFluidApp = createRuntimeOnlyExport("useFluidApp");
const useFluidProfile = createRuntimeOnlyExport("useFluidProfile");
const useLogout = createRuntimeOnlyExport("useLogout");
const useCompanySwitch = createRuntimeOnlyExport("useCompanySwitch");
function createRuntimeOnlyExport(name) {
	return function runtimeOnlyPortalSdkExport() {
		throw new Error(`${name} cannot run while the Fluid widget authoring condition is active. Runtime widget bundles receive the host SDK from window.FluidShared.PortalSdk.`);
	};
}
//#endregion
export { APP_DATA_QUERY_KEY, APP_DEFINITION_QUERY_KEY, AppNavigationProvider, PROFILE_QUERY_KEY, PROPERTY_FIELD_TYPES, applyPropertyValues, buildThemeDefinition, createCompanyQueryKey, defineWidget, defineWidgetPackage, extractPropertyValues, getActiveThemeId, getProperty, groupPropertyFields, hasData, isErrorResult, isIdle, isLoading, isPropertyFieldType, isSourceWidgetPackage, normalizeComponentTree, selectProperty, sourceWidgetPackagesToManifests, toNavigationItem, toRawManifest, toScreenDefinition, transformManifestToRepAppData, transformThemes, useAccount, useAppDefinition, useAppDefinitionApi, useAppNavigation, useCompanyScopedQueryKey, useCompanySwitch, useFluidApp, useFluidProfile, useFluidTheme, useLogout, usePortalTenantClient, useStore };

//# sourceMappingURL=authoring-condition.mjs.map