"use strict";
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);
var SmokeCoAlarmServer_exports = {};
__export(SmokeCoAlarmServer_exports, {
  SmokeCoAlarmBaseServer: () => SmokeCoAlarmBaseServer,
  SmokeCoAlarmServer: () => SmokeCoAlarmServer
});
module.exports = __toCommonJS(SmokeCoAlarmServer_exports);
var import_types = require("@matter/types");
var import_smoke_co_alarm = require("@matter/types/clusters/smoke-co-alarm");
var import_SmokeCoAlarmBehavior = require("./SmokeCoAlarmBehavior.js");
/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const SmokeCoAlarmBase = import_SmokeCoAlarmBehavior.SmokeCoAlarmBehavior.with(import_smoke_co_alarm.SmokeCoAlarm.Feature.SmokeAlarm, import_smoke_co_alarm.SmokeCoAlarm.Feature.CoAlarm);
class SmokeCoAlarmBaseServer extends SmokeCoAlarmBase {
  initialize() {
    if (this.state.expressedState === void 0) {
      this.state.expressedState = import_smoke_co_alarm.SmokeCoAlarm.ExpressedState.Normal;
    }
    if (this.features.smokeAlarm && this.state.smokeState === void 0) {
      this.state.smokeState = import_smoke_co_alarm.SmokeCoAlarm.AlarmState.Normal;
    }
    if (this.features.coAlarm && this.state.coState === void 0) {
      this.state.coState = import_smoke_co_alarm.SmokeCoAlarm.AlarmState.Normal;
    }
    if (this.state.batteryAlert === void 0) {
      this.state.batteryAlert = import_smoke_co_alarm.SmokeCoAlarm.AlarmState.Normal;
    }
    if (this.state.testInProgress === void 0) {
      this.state.testInProgress = false;
    }
    if (this.state.hardwareFaultAlert === void 0) {
      this.state.hardwareFaultAlert = false;
    }
    if (this.state.endOfServiceAlert === void 0) {
      this.state.endOfServiceAlert = import_smoke_co_alarm.SmokeCoAlarm.EndOfService.Normal;
    }
  }
}
class SmokeCoAlarmServer extends SmokeCoAlarmBaseServer.for((0, import_types.ClusterType)(import_smoke_co_alarm.SmokeCoAlarm.Base)) {
}
//# sourceMappingURL=SmokeCoAlarmServer.js.map
