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] = "26fca1c2-2528-493e-87eb-244f07302c1d", e._sentryDebugIdIdentifier = "sentry-dbid-26fca1c2-2528-493e-87eb-244f07302c1d");
} catch (e) {}
import { n as addResourceBundles, r as useTranslation } from "./translation-Br5wIPO-.js";
import { r as Loader } from "./Button-BDEdGXnd.js";
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-Dm6g0wmt.js";
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-CCXvMgfE.js";
import { C as EntityTypes } from "./processCapabilities-CDSEJpB8.js";
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-COcJt47f.js";
import { t as useNavigate } from "./useNavigate-CY9kkcIi.js";
import { t as PayoutDetailsDropinMultiForm } from "./PayoutDetailsDropinMultiForm-Bm-PbnDN.js";
import { jsx } from "preact/jsx-runtime";
import { useParams } from "wouter-preact";
//#region src/components/BankAccount/pages/PayoutDetailsPage.tsx
function PayoutDetailsPage({ transferInstrumentId: transferInstrumentIdProp, setTransferInstrumentId: setTransferInstrumentIdProp, taskType, openBankingPartnerConfigId, onSubmit, handleHomeClick }) {
	const routeParams = useParams();
	const navigate = useNavigate();
	const transferInstrumentId = transferInstrumentIdProp ?? routeParams.transferInstrumentId;
	const setTransferInstrumentId = setTransferInstrumentIdProp ?? ((id) => navigate.replace(taskType, { transferInstrumentId: id }));
	const { i18n } = useTranslation();
	const { data: rootLe } = useLegalEntity(ROOT_LE);
	const capabilityProblems = useCapabilityProblems();
	addResourceBundles(i18n, [{
		ns: "banking",
		importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
			"../language/bg-BG.json": () => import("./bg-BG-C12I_ehJ.js"),
			"../language/cs-CZ.json": () => import("./cs-CZ-TiWySd9u.js"),
			"../language/da-DK.json": () => import("./da-DK-DtPE4OIu.js"),
			"../language/de-DE.json": () => import("./de-DE-CnB43wjo.js"),
			"../language/el-GR.json": () => import("./el-GR-DJJbbbY3.js"),
			"../language/en-US.json": () => import("./en-US-BxBNcm3S.js"),
			"../language/es-ES.json": () => import("./es-ES-FQbC3B0S.js"),
			"../language/et-EE.json": () => import("./et-EE-DrQLDWH2.js"),
			"../language/fi-FI.json": () => import("./fi-FI-CqM2eaKi.js"),
			"../language/fr-FR.json": () => import("./fr-FR-CqvZpq5B.js"),
			"../language/hr-HR.json": () => import("./hr-HR-C_7O4gxx.js"),
			"../language/hu-HU.json": () => import("./hu-HU-DORWpwoE.js"),
			"../language/it-IT.json": () => import("./it-IT-CW0ZFuCZ.js"),
			"../language/ja-JP.json": () => import("./ja-JP-BllN9kcD.js"),
			"../language/lt-LT.json": () => import("./lt-LT-DZvEoBgI.js"),
			"../language/lv-LV.json": () => import("./lv-LV-DPQ4Tm3o.js"),
			"../language/nl-NL.json": () => import("./nl-NL-Br1QBepE.js"),
			"../language/no-NO.json": () => import("./no-NO-BSrcMnDk.js"),
			"../language/pl-PL.json": () => import("./pl-PL-CxlgXMRg.js"),
			"../language/pt-BR.json": () => import("./pt-BR-kU7AfzPy.js"),
			"../language/pt-PT.json": () => import("./pt-PT-hj7CUska.js"),
			"../language/ro-RO.json": () => import("./ro-RO-CmHNsQpo.js"),
			"../language/sk-SK.json": () => import("./sk-SK-CtsgM8bj.js"),
			"../language/sl-SI.json": () => import("./sl-SI-DywGyzEa.js"),
			"../language/sv-SE.json": () => import("./sv-SE-BN0dUpwI.js")
		}), `../language/${lang}.json`, 3)
	}]);
	if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
	return /* @__PURE__ */ jsx(PayoutDetailsDropinMultiForm, {
		taskType,
		currentTransferInstrumentId: transferInstrumentId,
		setCurrentTransferInstrumentId: setTransferInstrumentId,
		legalEntityResponse: rootLe,
		problems: capabilityProblems && transferInstrumentId ? getProblemsForEntity(capabilityProblems, EntityTypes.BANK_ACCOUNT, transferInstrumentId) : void 0,
		onSubmit,
		handleHomeClick,
		navigateBackToTaskList: handleHomeClick,
		openBankingPartnerConfigId
	});
}
//#endregion
export { PayoutDetailsPage };
