import { n as useTranslation } from "./i18n-DoP1NB7u.js";
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
import { t as Spinner } from "./spinner-DqB4SGUV.js";
import "./spinner-V_B4DFE1.js";
//#region src/shared/processing/transitionSpinner.tsx
/**
* Canonical "we're getting ready / processing" loader.
*
* Renders a container-filling `Spinner` with the unified `loadingCircle.hangOn`
* / `loadingCircle.validating` copy at `size="large"` so every cross-module
* transition looks identical to the user. Optional `spinnerConfig` overrides
* any of `title`, `subtitle`, or `size` for consumers that already exposed
* those. Pass `hideText` to render the spinner icon on its own.
*/
var TransitionSpinner = ({ spinnerConfig, className, hideText = false }) => {
	const { t } = useTranslation();
	return /* @__PURE__ */ u(Spinner, {
		title: hideText ? void 0 : spinnerConfig?.title ?? t("loadingCircle.hangOn"),
		subtitle: hideText ? void 0 : spinnerConfig?.subtitle ?? t("loadingCircle.validating"),
		size: spinnerConfig?.size ?? "large",
		fullScreen: true,
		className
	});
};
//#endregion
export { TransitionSpinner as t };
