import { defineComponent as a, computed as p, resolveDirective as c, withDirectives as m, openBlock as d, createElementBlock as u, unref as i, createTextVNode as _, toDisplayString as f } from "vue";
import { useI18n as z } from "vue-i18n";
import { a7 as g } from "./index-1a460434.js";
import "lodash-es";
import "axios";
import "@vueuse/core";
const k = `.ka-in-progress-link{cursor:pointer;transition:.2s color ease-in}.ka-in-progress-link:hover{color:#0062ff}
`, v = ["href"], y = /* @__PURE__ */ a({
  __name: "KapixInProgress",
  props: {
    component: {},
    editable: { type: Boolean }
  },
  setup(r) {
    g("KapixInProgress", k);
    const e = r, o = p(() => {
      var t;
      return `https://discord.gg/maaVa8BCzv?tags=${e.editable ? e.component : (t = e.component) == null ? void 0 : t.slice(0, -5)}`;
    }), { t: n } = z({
      inheritLocale: !0,
      useScope: "local"
    });
    return (t, h) => {
      const l = c("tippy");
      return m((d(), u("a", {
        class: "ka-in-progress-link",
        href: i(o),
        target: "_blank"
      }, [
        _(f(i(n)("message")), 1)
      ], 8, v)), [
        [l, { content: i(n)("tooltip", [t.component, i(n)(t.editable ? "editable" : "display", t.editable ? "input mode" : "display mode")]) || t.component }]
      ]);
    };
  }
});
function s(r) {
  r.__i18n = r.__i18n || [], r.__i18n.push({
    locale: "",
    resource: {
      en: {
        message: (e) => {
          const { normalize: o } = e;
          return o(["In progress"]);
        },
        tooltip: (e) => {
          const { normalize: o, interpolate: n, list: t } = e;
          return o(["Click to vote and speedup the development of ", n(t(0)), " component in ", n(t(1))]);
        },
        editable: (e) => {
          const { normalize: o } = e;
          return o(["input mode"]);
        },
        display: (e) => {
          const { normalize: o } = e;
          return o(["display mode"]);
        }
      },
      fr: {
        message: (e) => {
          const { normalize: o } = e;
          return o(["En développement, Cliquez pour voter"]);
        },
        tooltip: (e) => {
          const { normalize: o, interpolate: n, list: t } = e;
          return o(["Cliquez pour voter et accélérer le développement du composant ", n(t(0)), " en ", n(t(1))]);
        },
        editable: (e) => {
          const { normalize: o } = e;
          return o(["mode de saisie"]);
        },
        display: (e) => {
          const { normalize: o } = e;
          return o(["mode affichage"]);
        }
      }
    }
  });
}
typeof s == "function" && s(y);
export {
  y as default
};
