import { defineComponent as i, createElementBlock as u, createCommentVNode as m, openBlock as p, Fragment as c, createVNode as n, unref as d, withCtx as t, createElementVNode as b, createTextVNode as a } from "vue";
import { L as f, b as s, I as V, d as g, m as I, e as k, _ as C } from "./index-CVEvAPNs.js";
import { u as L } from "./index-BFe8XjpO.js";
import { _ as N } from "./_description.vue_vue_type_script_setup_true_lang-COx4EYgl.js";
const y = /* @__PURE__ */ i({
  __name: "code",
  props: {
    content: {},
    disabled: { type: Boolean }
  },
  setup(r) {
    return L(r.content, "code", { code: "", lang: "" }), (e, o) => e.content.code ? (p(), u(c, { key: 0 }, [
      n(d(f), { background: "var(--lab-input-field)" }, {
        default: t(() => [
          n(d(s), null, {
            default: t(() => [
              n(d(V), {
                icon: d(I),
                disabled: e.disabled,
                placeholder: "Sprache",
                list: Object.keys(d(g)),
                modelValue: e.content.code.lang,
                "onUpdate:modelValue": o[0] || (o[0] = (l) => e.content.code.lang = l)
              }, null, 8, ["icon", "disabled", "list", "modelValue"])
            ]),
            _: 1
          }),
          n(d(s), null, {
            default: t(() => [
              b("pre", null, [
                o[3] || (o[3] = a("          ")),
                n(k, {
                  modelValue: e.content.code.code,
                  "onUpdate:modelValue": o[1] || (o[1] = (l) => e.content.code.code = l),
                  rows: "5",
                  placeholder: "Code hier einfügen",
                  disabled: e.disabled
                }, null, 8, ["modelValue", "disabled"]),
                o[4] || (o[4] = a(`
        `))
              ])
            ]),
            _: 1
          })
        ]),
        _: 1
      }),
      n(d(N), {
        modelValue: e.content.description,
        "onUpdate:modelValue": o[2] || (o[2] = (l) => e.content.description = l),
        disabled: e.disabled
      }, null, 8, ["modelValue", "disabled"])
    ], 64)) : m("", !0);
  }
}), E = /* @__PURE__ */ C(y, [["__scopeId", "data-v-b488213f"]]);
export {
  E as default
};
