{"version":3,"file":"ESPRMMatterDevice.cjs","sources":["../../src/ESPRMMatterDevice.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n  ESPRMDevice,\n  ESPRMDeviceInterface,\n  ESPRMNode,\n} from \"@espressif/rainmaker-base-sdk\";\nimport { ESPRMMatterDeviceParam } from \"./ESPRMMatterDeviceParam\";\nimport { parseHexId } from \"./services/ESPRMMatterHelpers/TransformMatterNodeDetails/MatterParamCommon\";\n\n/**\n * Matter endpoint device — extends {@link ESPRMDevice} for endpoint-mapped devices (e.g. `0x1`).\n */\nexport class ESPRMMatterDevice extends ESPRMDevice {\n  /** Parsed endpoint id from device `type` / `name` (hex, e.g. `0x1` → 1). */\n  endpointId?: number;\n\n  constructor(data: ESPRMDeviceInterface, nodeRef: ESPRMNode) {\n    super(data, nodeRef);\n    this.endpointId = parseHexId(this.type) ?? parseHexId(this.name);\n  }\n\n  declare params?: ESPRMMatterDeviceParam[];\n  declare primaryParam?: ESPRMMatterDeviceParam;\n}\n"],"names":["ESPRMDevice","parseHexId"],"mappings":";;;;;AAAA;;;;AAIG;AAUH;;AAEG;AACG,MAAO,iBAAkB,SAAQA,4BAAW,CAAA;;AAEhD,IAAA,UAAU;IAEV,WAAA,CAAY,IAA0B,EAAE,OAAkB,EAAA;AACxD,QAAA,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC;AACpB,QAAA,IAAI,CAAC,UAAU,GAAGC,4BAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAIA,4BAAU,CAAC,IAAI,CAAC,IAAI,CAAC;IAClE;AAID;;;;"}