try {
	let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
	n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d6f038d7-be25-4bee-ab9c-bd32353b0a57", e._sentryDebugIdIdentifier = "sentry-dbid-d6f038d7-be25-4bee-ab9c-bd32353b0a57");
} catch (e) {}
import { r as Loader } from "./Button-BDEdGXnd.js";
import cx from "classnames";
import { jsx, jsxs } from "preact/jsx-runtime";
var LoaderWrapper_module_default = {
	"loader-wrapper-loader": "adyen-kyc-loader-wrapper-loader",
	loaderWrapperLoader: "adyen-kyc-loader-wrapper-loader",
	"loader-wrapper-loader-active": "adyen-kyc-loader-wrapper-loader-active",
	loaderWrapperLoaderActive: "adyen-kyc-loader-wrapper-loader-active"
};
//#endregion
//#region src/components/ui/atoms/LoaderWrapper/LoaderWrapper.tsx
var LoaderWrapper = ({ children, status, formOpacityWhenLoading = 0, loaderSize = "medium", showSpinner = true, className }) => {
	const opacitySyle = status === "loading" ? { opacity: formOpacityWhenLoading } : { opacity: 1 };
	const showLoader = status === "loading" && showSpinner;
	const loaderWrapperClass = cx(LoaderWrapper_module_default.loaderWrapperLoader, { [LoaderWrapper_module_default.loaderWrapperLoaderActive]: showLoader });
	return /* @__PURE__ */ jsxs("div", {
		className: cx(LoaderWrapper_module_default.loaderWrapper, className),
		style: { position: "relative" },
		children: [showLoader && /* @__PURE__ */ jsx("div", {
			className: loaderWrapperClass,
			children: /* @__PURE__ */ jsx(Loader, { size: loaderSize })
		}), /* @__PURE__ */ jsx("div", {
			className: LoaderWrapper_module_default.loaderWrapperForm,
			style: opacitySyle,
			children
		})]
	});
};
//#endregion
export { LoaderWrapper as t };
