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