import { defineComponent as a, inject as r, computed as s, resolveComponent as n, openBlock as d, createBlock as _, withCtx as m, createVNode as p, unref as u, createElementVNode as f, toDisplayString as g } from "vue";
const h = { class: "lc-main-title" }, v = /* @__PURE__ */ a({
  __name: "title",
  setup(C) {
    const t = r("context");
    function o() {
      t.choosedManager.set(void 0);
    }
    const c = s(() => {
      let e = t.codeManager.getCode().name;
      return e ? (t.codeManager.dirty.value && (e = e + "---Modified"), e) : "Name is not set";
    });
    return (e, k) => {
      const i = n("lc-icon"), l = n("el-link");
      return d(), _(l, {
        type: "default",
        underline: !1,
        onClick: o
      }, {
        default: m(() => [
          p(i, {
            icon: u(t).codeManager.getCode().icon,
            size: "medium",
            style: { color: "var(--el-color-white)", "margin-right": "4px" }
          }, null, 8, ["icon"]),
          f("span", h, g(c.value), 1)
        ]),
        _: 1
      });
    };
  }
});
export {
  v as default
};
//# sourceMappingURL=title-a862a01b.mjs.map
