var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/saasDevice/deviceProfile/types.ts
var types_exports = {};
__export(types_exports, {
  DEVICE_STATUSES: () => DEVICE_STATUSES,
  validateI18nRequired: () => validateI18nRequired
});
module.exports = __toCommonJS(types_exports);
var DEVICE_STATUSES = [
  {
    value: "active",
    labelKey: "pisell2.saas.device-profile.status.active",
    tagColor: "success"
  },
  {
    value: "inactive",
    labelKey: "pisell2.saas.device-profile.status.inactive"
  }
];
var validateI18nRequired = (message) => (_rule, value) => {
  var _a;
  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 ? void 0 : value.original) === "string" && ((_a = value == null ? void 0 : value.original) == null ? void 0 : _a.trim()) !== "";
  return filled || original ? Promise.resolve() : Promise.reject(new Error(message));
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  DEVICE_STATUSES,
  validateI18nRequired
});
