import { c as i } from "../../chunks/runtime.js";
import { usePropertyChange as s } from "@arcgis/lumina/controllers";
import o from "@geoscene/core/widgets/CoordinateConversion.js";
import { LitElement as n, createEvent as r, noShadowRoot as a } from "@arcgis/lumina";
import { m as d } from "../../chunks/useWidget.js";
import { css as h } from "@lit/reactive-element/css-tag.js";
/*! 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 */
const l = h`@layer{geoscene-coordinate-conversion{display:block}}`, g = d(o);
class c extends n {
  constructor() {
    super(...arguments), this.widget = g(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.conversions = this.widget.conversions, this.currentLocation = this.widget.currentLocation, this.formats = this.widget.formats, this.goToOverride = this.widget.goToOverride, this.headingLevel = this.widget.headingLevel, this.hideCaptureButton = this.widget.visibleElements.captureButton, this.hideInputButton = this.widget.visibleElements.inputButton, this.hideExpandButton = this.widget.visibleElements.expandButton, this.hideSettingsButton = this.widget.visibleElements.settingsButton, this.icon = this.widget.icon, this.label = this.widget.label, this.locationSymbol = this.widget.locationSymbol, this.mode = this.widget.mode, this.multipleConversionsDisabled = this.widget.multipleConversions, this.orientation = this.widget.orientation, this.position = "bottom-left", this.state = this.viewModel.state, this.storageDisabled = this.widget.storageEnabled, this.storageType = this.widget.storageType, this.geoscenePropertyChange = s()("currentLocation", "state"), this.geosceneReady = r();
  }
  static {
    this.properties = { autoDestroyDisabled: 5, conversions: 0, currentLocation: 0, formats: 0, goToOverride: 0, headingLevel: 9, hideCaptureButton: 5, hideInputButton: 5, hideExpandButton: 5, hideSettingsButton: 5, icon: 1, label: 1, locationSymbol: 0, mode: 1, multipleConversionsDisabled: 5, orientation: 1, position: 1, referenceElement: 1, state: 3, storageDisabled: 5, storageType: 1 };
  }
  static {
    this.shadowRootOptions = a;
  }
  static {
    this.styles = l;
  }
  async destroy() {
    await this.manager.destroy();
  }
  async reverseConvert(t, e) {
    return await this.widget?.reverseConvert(t, e);
  }
}
i("geoscene-coordinate-conversion", c);
export {
  c as GeosceneCoordinateConversion
};