var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
import { css, LitElement, nothing, svg } from "lit";
import { customElement, property } from "lit/decorators.js";
let HaSvgIcon = class extends LitElement {
  render() {
    return svg`
    <svg
      viewBox=${this.viewBox ?? "0 0 24 24"}
      preserveAspectRatio="xMidYMid meet"
      focusable="false"
      aria-hidden="true"
    >
      <g>
        ${this.path ? svg`<path class="primary-path" d=${this.path}></path>` : nothing}
        ${this.secondaryPath ? svg`<path class="secondary-path" d=${this.secondaryPath}></path>` : nothing}
      </g>
    </svg>`;
  }
  static get styles() {
    return css`
            :host {
                display: var(--ha-icon-display, inline-flex);
                align-items: center;
                justify-content: center;
                position: relative;
                vertical-align: middle;
                fill: var(--icon-primary-color, currentcolor);
                width: var(--mdc-icon-size, 24px);
                height: var(--mdc-icon-size, 24px);
            }
            svg {
                width: 100%;
                height: 100%;
                pointer-events: none;
                display: block;
            }
            path.primary-path {
                opacity: var(--icon-primary-opactity, 1);
            }
            path.secondary-path {
                fill: var(--icon-secondary-color, currentcolor);
                opacity: var(--icon-secondary-opactity, 0.5);
            }
        `;
  }
};
__decorateClass([
  property()
], HaSvgIcon.prototype, "path", 2);
__decorateClass([
  property()
], HaSvgIcon.prototype, "secondaryPath", 2);
__decorateClass([
  property()
], HaSvgIcon.prototype, "viewBox", 2);
HaSvgIcon = __decorateClass([
  customElement("ha-svg-icon")
], HaSvgIcon);
export {
  HaSvgIcon
};
//# sourceMappingURL=ha-svg-icon.js.map
