"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var ClimateControlScheduleCC_validateArgs_exports = {};
__export(ClimateControlScheduleCC_validateArgs_exports, {
  validateArgs_ClimateControlScheduleCCAPI_get: () => validateArgs_ClimateControlScheduleCCAPI_get,
  validateArgs_ClimateControlScheduleCCAPI_set: () => validateArgs_ClimateControlScheduleCCAPI_set,
  validateArgs_ClimateControlScheduleCCAPI_setOverride: () => validateArgs_ClimateControlScheduleCCAPI_setOverride
});
module.exports = __toCommonJS(ClimateControlScheduleCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_ClimateControlScheduleCCAPI_set() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function set(weekday, switchPoints) {
        v.assert(v.enum({ kind: "parameter", name: "weekday" }, "Weekday", [0, 1, 2, 3, 4, 5, 6, 7])(weekday), v.array({ kind: "parameter", name: "switchPoints" }, "Switchpoint", v.object({ kind: "item", name: "switchPoints" }, "Switchpoint", { "hour": v.primitive({ kind: "property", name: "hour" }, "number"), "minute": v.primitive({ kind: "property", name: "minute" }, "number"), "state": v.optional({ kind: "property", name: "state" }, v.oneOf({ kind: "property", name: "state" }, void 0, v.primitive({ kind: "property", name: "state" }, "number"), v.literal({ kind: "property", name: "state" }, "Frost Protection"), v.literal({ kind: "property", name: "state" }, "Energy Saving"), v.literal({ kind: "property", name: "state" }, "Unused"))) }))(switchPoints));
        return __decoratedMethod.call(this, weekday, switchPoints);
      }, "set");
    }
  };
}
__name(validateArgs_ClimateControlScheduleCCAPI_set, "validateArgs_ClimateControlScheduleCCAPI_set");
function validateArgs_ClimateControlScheduleCCAPI_get() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function get(weekday) {
        v.assert(v.enum({ kind: "parameter", name: "weekday" }, "Weekday", [0, 1, 2, 3, 4, 5, 6, 7])(weekday));
        return __decoratedMethod.call(this, weekday);
      }, "get");
    }
  };
}
__name(validateArgs_ClimateControlScheduleCCAPI_get, "validateArgs_ClimateControlScheduleCCAPI_get");
function validateArgs_ClimateControlScheduleCCAPI_setOverride() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setOverride(type, state) {
        v.assert(v.enum({ kind: "parameter", name: "type" }, "ScheduleOverrideType", [0, 1, 2])(type), v.oneOf({ kind: "parameter", name: "state" }, "SetbackState", v.primitive({ kind: "parameter", name: "state" }, "number"), v.literal({ kind: "parameter", name: "state" }, "Frost Protection"), v.literal({ kind: "parameter", name: "state" }, "Energy Saving"), v.literal({ kind: "parameter", name: "state" }, "Unused"))(state));
        return __decoratedMethod.call(this, type, state);
      }, "setOverride");
    }
  };
}
__name(validateArgs_ClimateControlScheduleCCAPI_setOverride, "validateArgs_ClimateControlScheduleCCAPI_setOverride");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_ClimateControlScheduleCCAPI_get,
  validateArgs_ClimateControlScheduleCCAPI_set,
  validateArgs_ClimateControlScheduleCCAPI_setOverride
});
//# sourceMappingURL=ClimateControlScheduleCC._validateArgs.js.map
