require("./chunk-9hOWP6kD.cjs");
let react = require("react");
//#region src/providers/PortalTenantClientProvider.tsx
const PortalTenantClientContext = (0, react.createContext)(null);
const PortalTenantClientProvider = PortalTenantClientContext.Provider;
/**
* Returns the portal-tenant FetchClient from context.
* Must be used within a FluidProvider.
*/
function usePortalTenantClient() {
	const client = (0, react.use)(PortalTenantClientContext);
	if (!client) throw new Error("usePortalTenantClient must be used within a FluidProvider");
	return client;
}
//#endregion
//#region src/account/query-keys.ts
const accountKeys = {
	all: ["portalTenant", "account"],
	detail: (userId) => [...accountKeys.all, userId]
};
const storeKeys = {
	countries: (languageIso) => languageIso ? ["bff-store-countries", languageIso] : ["bff-store-countries"],
	languages: () => ["bff-store-languages"]
};
const payKeys = {
	addresses: {
		all: ["portalTenant", "addresses"],
		list: (userId) => [...payKeys.addresses.all, userId]
	},
	paymentMethods: {
		all: ["portalTenant", "paymentMethods"],
		list: (userId) => [...payKeys.paymentMethods.all, userId]
	},
	pointsLedgers: {
		all: ["portalTenant", "pointsLedgers"],
		list: (userId) => [...payKeys.pointsLedgers.all, userId]
	}
};
//#endregion
Object.defineProperty(exports, "PortalTenantClientProvider", {
	enumerable: true,
	get: function() {
		return PortalTenantClientProvider;
	}
});
Object.defineProperty(exports, "accountKeys", {
	enumerable: true,
	get: function() {
		return accountKeys;
	}
});
Object.defineProperty(exports, "payKeys", {
	enumerable: true,
	get: function() {
		return payKeys;
	}
});
Object.defineProperty(exports, "storeKeys", {
	enumerable: true,
	get: function() {
		return storeKeys;
	}
});
Object.defineProperty(exports, "usePortalTenantClient", {
	enumerable: true,
	get: function() {
		return usePortalTenantClient;
	}
});

//# sourceMappingURL=query-keys-p6qddudR.cjs.map