import { proxyExports as s } from "@arcgis/lumina/controllers";
import { AccessorController as i } from "@arcgis/lumina/controllers/accessor";
import { isEsriInternalEnv as n } from "@arcgis/components-utils";
import { V as m } from "./useView.js";
import { watch as p } from "@geoscene/core/core/reactiveUtils.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 v = (t, o) => (e) => a(e, t);
class r extends i {
  #o = void 0;
  constructor(o, e) {
    super(o, e), new m(this.component);
  }
  hostLoad() {
    this.#o = p(
      () => this.component.el.view,
      (o) => {
        this.instance.view = o, this.instance.map = o?.map;
      },
      { sync: !0, initial: !0 }
    );
  }
  hostDestroy() {
    this.#o?.remove(), super.hostDestroy();
  }
}
process.env.NODE_ENV !== "production" && n() && (r.devOnly$allowedPropNameMismatches = /* @__PURE__ */ new Set(["manager", "el", "swipePosition"]));
const a = s(r);
export {
  v as m
};