import { c as t } from "../../chunks/runtime.js";
import { html as i } from "lit-html";
import { watch as r } from "@geoscene/core/core/reactiveUtils.js";
import { LitElement as s, noShadowRoot as a } from "@arcgis/lumina";
/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
class n extends s {
  constructor() {
    super(...arguments), this._showPrintAreaEnabled = !1;
  }
  static {
    this.properties = { _showPrintAreaEnabled: 16, viewModel: 0, messages: 0 };
  }
  static {
    this.shadowRootOptions = a;
  }
  loaded() {
    this.manager.onLifecycle(() => [
      r(() => [this.viewModel.showPrintAreaEnabled], () => {
        const { showPrintAreaEnabled: e } = this.viewModel;
        this._showPrintAreaEnabled = e;
      }, { initial: !0 })
    ]);
  }
  render() {
    return i`<calcite-label layout=inline><calcite-switch .checked=${this._showPrintAreaEnabled} @calciteSwitchChange=${(e) => {
      this.viewModel.showPrintAreaEnabled = !!e.currentTarget.checked;
    }}></calcite-switch>${this.messages.printPreview}</calcite-label>`;
  }
}
t("geoscene-print-preview-input", n);
export {
  n as PrintPreviewInput
};