//#region src/plus/saasDevice/deviceProfile/types.ts
const DEVICE_STATUSES = [{
	value: "active",
	labelKey: "pisell2.saas.device-profile.status.active",
	tagColor: "success"
}, {
	value: "inactive",
	labelKey: "pisell2.saas.device-profile.status.inactive"
}];
const validateI18nRequired = (message) => (_rule, value) => {
	var _value$original;
	if (!value) return Promise.reject(new Error(message));
	const filled = Object.entries(value).some(([k, v]) => k !== "original" && typeof v === "string" && v.trim() !== "");
	if (typeof value === "string") return Promise.resolve();
	const original = typeof (value === null || value === void 0 ? void 0 : value.original) === "string" && (value === null || value === void 0 || (_value$original = value.original) === null || _value$original === void 0 ? void 0 : _value$original.trim()) !== "";
	return filled || original ? Promise.resolve() : Promise.reject(new Error(message));
};
//#endregion
export { DEVICE_STATUSES, validateI18nRequired };
