//#region src/utils/image.ts
var ImageProvider = /* @__PURE__ */ function(ImageProvider$1) {
	ImageProvider$1["Picsum"] = "picsum";
	ImageProvider$1["Dummy"] = "dummy";
	return ImageProvider$1;
}(ImageProvider || {});
var ImageType = /* @__PURE__ */ function(ImageType$1) {
	ImageType$1["Avatar"] = "avatar";
	ImageType$1["Random"] = "random";
	return ImageType$1;
}(ImageType || {});
/**
* Generates a random image URL based on the specified provider and type.
*
* @param provider - The image provider to use (e.g., Unsplash, Picsum, Dummy)
* @param type - The type of image to generate (Avatar or Random)
* @returns A URL string pointing to a random image
*
* @example
* ```ts
* getRandomImageUrl(ImageProvider.Picsum, ImageType.Random) // 'https://picsum.photos/800/600?random=123'
* getRandomImageUrl(ImageProvider.Dummy, ImageType.Avatar) // 'https://dummyimage.com/200x200/000/fff&text=Avatar'
* ```
*/
function getRandomImageUrl(provider, type) {
	switch (provider) {
		case ImageProvider.Picsum: if (type === ImageType.Avatar) return `https://picsum.photos/200/200?random=${Math.floor(Math.random() * 1e3)}`;
		else return `https://picsum.photos/800/600?random=${Math.floor(Math.random() * 1e3)}`;
		case ImageProvider.Dummy: if (type === ImageType.Avatar) return `https://dummyimage.com/200x200/000/fff&text=Avatar`;
		else return `https://dummyimage.com/800x600/000/fff&text=Random`;
		default: throw new Error(`Provider not supported: ${provider}`);
	}
}
/**
* Generates a random image URL for avatar images based on the specified provider.
*
* @param provider - The image provider to use (e.g., Unsplash, Picsum, Dummy)
* @returns A URL string pointing to a random avatar image
*
* @example
* ```ts
* getAvatarImageUrl(ImageProvider.Picsum) // 'https://picsum.photos/200/200?random=123'
* getAvatarImageUrl(ImageProvider.Dummy) // 'https://dummyimage.com/200x200/000/fff&text=Avatar'
* ```
*/
function getAvatarImageUrl(provider = ImageProvider.Picsum) {
	return getRandomImageUrl(provider, ImageType.Avatar);
}

//#endregion
export { getAvatarImageUrl, getRandomImageUrl };
//# sourceMappingURL=image.mjs.map