const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DFowphoV.cjs');
const require_InvalidParamError = require('./InvalidParamError-Cs4ZMEj4.cjs');
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");

//#region src/errors/NotWaasWalletAccountError.ts
var NotWaasWalletAccountError = class extends require_InvalidParamError.BaseError {
	constructor({ walletAddress }) {
		super({
			cause: null,
			code: "not_waas_wallet_account_error",
			docsUrl: null,
			name: "NotWaasWalletAccountError",
			shortMessage: `Wallet account ${walletAddress} is not a Dynamic WaaS wallet account`
		});
	}
};

//#endregion
//#region src/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.ts
/**
* Checks if Dynamic WaaS (Wallet as a Service) is enabled for the current project.
*
* This function examines the project settings to determine if Dynamic WaaS is
* enabled in the Dynamic Dashboard or not.
*
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
* @returns True if Dynamic WaaS is enabled, false otherwise.
* @notInstrumented
*/
const isDynamicWaasEnabled = (client = require_InvalidParamError.getDefaultClient()) => {
	const projectSettings = client.projectSettings;
	require_InvalidParamError.assertDefined(projectSettings, "Project settings are not available");
	return projectSettings.sdk.embeddedWallets?.defaultWalletVersion === _dynamic_labs_sdk_api_core.EmbeddedWalletVersionEnum.V3;
};

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