"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 TimeFormatLocalization_exports = {};
__export(TimeFormatLocalization_exports, {
  TimeFormatLocalization: () => TimeFormatLocalization
});
module.exports = __toCommonJS(TimeFormatLocalization_exports);
var import_MatterDefinition = require("../MatterDefinition.js");
var import_elements = require("../../elements/index.js");
/**
 * @license
 * Copyright 2022-2024 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const TimeFormatLocalization = (0, import_elements.ClusterElement)({
  name: "TimeFormatLocalization",
  id: 44,
  classification: "node",
  pics: "LTIME",
  details: "Nodes should be expected to be deployed to any and all regions of the world. These global regions may have differing preferences for how dates and times are conveyed. As such, Nodes that visually or audibly convey time information need a mechanism by which they can be configured to use a user\u2019s preferred format.\nThis cluster supports an interface to a Node. It provides attributes for determining and configuring time and date formatting information that a Node shall utilize when conveying values to a user.",
  xref: { document: "core", section: "11.4" },
  children: [
    (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
    (0, import_elements.AttributeElement)({
      name: "FeatureMap",
      id: 65532,
      type: "FeatureMap",
      xref: { document: "core", section: "11.4.4" },
      children: [(0, import_elements.FieldElement)({
        name: "CALFMT",
        constraint: "0",
        description: "CalendarFormat",
        details: "The Node can be configured to use different calendar formats when conveying values to a user."
      })]
    }),
    (0, import_elements.AttributeElement)({
      name: "HourFormat",
      id: 0,
      type: "HourFormatEnum",
      access: "RW VM",
      conformance: "M",
      quality: "N",
      details: "Indicates the format that the Node is currently configured to use when conveying the hour unit of time.\nIf not UseActiveLocale, this value shall take priority over any unit implied through the ActiveLocale attribute.\nIf UseActiveLocale, any unit implied through the ActiveLocale attribute is used as the hour format, and if ActiveLocale is not present, the hour format is unknown.",
      xref: { document: "core", section: "11.4.6.1" }
    }),
    (0, import_elements.AttributeElement)({
      name: "ActiveCalendarType",
      id: 1,
      type: "CalendarTypeEnum",
      access: "RW VM",
      conformance: "CALFMT",
      constraint: "in supportedCalendarTypes",
      quality: "N",
      details: "Indicates the calendar format that the Node is currently configured to use when conveying dates.\nIf not UseActiveLocale, this value shall take priority over any unit implied through the ActiveLocale attribute.\nIf UseActiveLocale, any unit implied through the ActiveLocale attribute is used as the calendar type, and if ActiveLocale is not present, the calendar type is unknown.",
      xref: { document: "core", section: "11.4.6.2" }
    }),
    (0, import_elements.AttributeElement)({
      name: "SupportedCalendarTypes",
      id: 2,
      type: "list",
      access: "R V",
      conformance: "CALFMT",
      constraint: "desc",
      quality: "F",
      details: "Indicates a list of CalendarTypeEnum values that are supported by the Node. The list shall NOT contain any duplicate entries. The ordering of items within the list SHOULD NOT express any meaning. The maximum length of the SupportedCalendarTypes list shall be equivalent to the number of enumerations within CalendarTypeEnum.",
      xref: { document: "core", section: "11.4.6.3" },
      children: [(0, import_elements.FieldElement)({ name: "entry", type: "CalendarTypeEnum" })]
    }),
    (0, import_elements.DatatypeElement)({
      name: "HourFormatEnum",
      type: "enum8",
      xref: { document: "core", section: "11.4.5.1" },
      children: [
        (0, import_elements.FieldElement)({ name: "12Hr", id: 0, conformance: "M", description: "Time conveyed with a 12-hour clock" }),
        (0, import_elements.FieldElement)({ name: "24Hr", id: 1, conformance: "M", description: "Time conveyed with a 24-hour clock" }),
        (0, import_elements.FieldElement)({ name: "UseActiveLocale", id: 255, conformance: "M", description: "Use active locale clock" })
      ]
    }),
    (0, import_elements.DatatypeElement)({
      name: "CalendarTypeEnum",
      type: "enum8",
      xref: { document: "core", section: "11.4.5.2" },
      children: [
        (0, import_elements.FieldElement)({
          name: "Buddhist",
          id: 0,
          conformance: "O.a+",
          description: "Dates conveyed using the Buddhist calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Chinese",
          id: 1,
          conformance: "O.a+",
          description: "Dates conveyed using the Chinese calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Coptic",
          id: 2,
          conformance: "O.a+",
          description: "Dates conveyed using the Coptic calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Ethiopian",
          id: 3,
          conformance: "O.a+",
          description: "Dates conveyed using the Ethiopian calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Gregorian",
          id: 4,
          conformance: "O.a+",
          description: "Dates conveyed using the Gregorian calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Hebrew",
          id: 5,
          conformance: "O.a+",
          description: "Dates conveyed using the Hebrew calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Indian",
          id: 6,
          conformance: "O.a+",
          description: "Dates conveyed using the Indian calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Islamic",
          id: 7,
          conformance: "O.a+",
          description: "Dates conveyed using the Islamic calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Japanese",
          id: 8,
          conformance: "O.a+",
          description: "Dates conveyed using the Japanese calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Korean",
          id: 9,
          conformance: "O.a+",
          description: "Dates conveyed using the Korean calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Persian",
          id: 10,
          conformance: "O.a+",
          description: "Dates conveyed using the Persian calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "Taiwanese",
          id: 11,
          conformance: "O.a+",
          description: "Dates conveyed using the Taiwanese calendar"
        }),
        (0, import_elements.FieldElement)({
          name: "UseActiveLocale",
          id: 255,
          conformance: "O.a+",
          description: "calendar implied from active locale"
        })
      ]
    })
  ]
});
import_MatterDefinition.MatterDefinition.children.push(TimeFormatLocalization);
//# sourceMappingURL=TimeFormatLocalization.js.map
