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 "@material/web/button/text-button";
import "@material/web/dialog/dialog";
import { css, html, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import { preventDefault } from "../../../util/prevent_default.js";
import "./log-level-section.js";
let LogLevelDialog = class extends LitElement {
  _close() {
    this.shadowRoot.querySelector("md-dialog").close();
  }
  _handleClosed() {
    this.parentNode.removeChild(this);
  }
  _handleApplied() {
    this._close();
  }
  render() {
    return html`
            <md-dialog open @cancel=${preventDefault} @closed=${this._handleClosed}>
                <div slot="headline">Server Log Settings</div>
                <div slot="content">
                    <log-level-section @log-level-applied=${this._handleApplied}></log-level-section>
                </div>
                <div slot="actions">
                    <md-text-button @click=${this._close}>Close</md-text-button>
                </div>
            </md-dialog>
        `;
  }
};
LogLevelDialog.styles = css`
        md-dialog {
            min-width: 360px;
        }
    `;
LogLevelDialog = __decorateClass([
  customElement("log-level-dialog")
], LogLevelDialog);
export {
  LogLevelDialog
};
//# sourceMappingURL=log-level-dialog.js.map
