import { defineComponent as l, resolveComponent as m, openBlock as t, createElementBlock as n, Fragment as r, createElementVNode as c, unref as o, renderList as d, createBlock as p, mergeProps as a, withCtx as h, resolveDynamicComponent as u, createCommentVNode as x, createVNode as _ } from "vue";
import { a7 as k, an as f, ao as C, ap as g, aq as y } from "./index-691eb34d.js";
import "lodash-es";
import "axios";
import "@vueuse/core";
import "vue-i18n";
const v = `.kapix-tooltips-container{width:100%;height:100%;min-width:0;min-height:0;z-index:10001;position:absolute;top:0;left:0;pointer-events:none}.kapix-tooltips-container>.outer-style{pointer-events:auto}.kapix-tooltip{min-width:100px;min-height:80px}
`, O = ["id"], L = /* @__PURE__ */ l({
  __name: "KapixTooltipsContainer",
  setup(T) {
    return k("KapixTooltipsContainer", v), (w, N) => {
      const s = m("tippy");
      return t(), n(r, null, [
        c("div", {
          id: o(f),
          ref: (e) => o(C)(e),
          class: "kapix-tooltips-container"
        }, [
          (t(!0), n(r, null, d(o(g).instances, (e) => (t(), p(s, a({
            key: e.id,
            ref_for: !0,
            ref: (i) => e.tippy = i,
            theme: "no",
            "max-width": "100%",
            distance: 0,
            interactive: "",
            visible: ""
          }, e.options, {
            "hide-on-click": e.options.hideOnClick != null ? e.options.hideOnClick : !0
          }), {
            default: h(() => [
              e.visible ? (t(), p(u(e.component), a({
                key: 0,
                seo: !1
              }, e.context, {
                class: ["kapix-tooltip", e.options.modal && "modal"],
                onUpdate: (i) => e.context && Object.assign(e.context, i)
              }), null, 16, ["class", "onUpdate"])) : x("", !0)
            ]),
            _: 2
          }, 1040, ["hide-on-click"]))), 128))
        ], 8, O),
        _(o(y))
      ], 64);
    };
  }
});
export {
  L as default
};
