import { A as NoWalletProviderFoundError, f as getWalletProviders } from "./updateAuthFromVerifyResponse-azIi_3FB.esm.js";

//#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
/** @notInstrumented */
const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
	return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
};

//#endregion
//#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
/** @notInstrumented */
const getWalletProviderByKey = ({ walletProviderKey }, client) => {
	const walletProvider = getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
	if (!walletProvider) throw new NoWalletProviderFoundError({ walletProviderKey });
	return walletProvider;
};

//#endregion
export { getVerifiedCredentialForWalletAccount as n, getWalletProviderByKey as t };
//# sourceMappingURL=getWalletProviderByKey-lQVfIGFi.esm.js.map