import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
//#region src/components/pisellInformationEntry/utils.ts
/**
* 判断设备是否包含摄像头
*/
const hasCamera = function() {
	var _ref = _asyncToGenerator(function* () {
		try {
			return (yield navigator.mediaDevices.enumerateDevices()).some((device) => device.kind === "videoinput");
		} catch (error) {
			console.error("Error accessing media devices:", error);
			return false;
		}
	});
	return function hasCamera() {
		return _ref.apply(this, arguments);
	};
}();
//#endregion
export { hasCamera };
