const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-CElYpi97.cjs');

//#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 = require_updateAuthFromVerifyResponse.getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
	if (!walletProvider) throw new require_updateAuthFromVerifyResponse.NoWalletProviderFoundError({ walletProviderKey });
	return walletProvider;
};

//#endregion
Object.defineProperty(exports, 'getVerifiedCredentialForWalletAccount', {
  enumerable: true,
  get: function () {
    return getVerifiedCredentialForWalletAccount;
  }
});
Object.defineProperty(exports, 'getWalletProviderByKey', {
  enumerable: true,
  get: function () {
    return getWalletProviderByKey;
  }
});
//# sourceMappingURL=getWalletProviderByKey-CP9Te5Sz.cjs.map