import { defineComponent as d, mergeModels as u, useModel as c, watch as f, createBlock as _, openBlock as e, unref as n, withCtx as h, createElementBlock as o, toDisplayString as i, Fragment as y, renderList as k } from "vue";
import { useI18n as g } from "vue-i18n";
import "pinia";
import "./start-CE9SawgU.js";
import "./header-Bn1EKnBE.js";
import "@vuelidate/validators";
import "./TreeView.vue_vue_type_style_index_0_scoped_0bd14ef7_lang-CZieIjgg.js";
import "./DatahubDataTypeCompletenessRenderer.vue_vue_type_script_setup_true_lang-5buor0oX.js";
import "./topBarRoutes-CBd5qLxn.js";
import "./IsActiveStatusCell-xz7XnAYP.js";
import "./VariantToVariantExtension-DUC3WSrH.js";
import { _ as B } from "./DatahubDataComplexValue.vue_vue_type_script_setup_true_lang-CDA1jFcx.js";
import "./DatahubDataTypeVariantValueEditor-9WYNJneN.js";
import "./dataTypes-DocW2t0g.js";
import { b as l } from "./link-value.json_vue_type_i18n_index_0_src_true_lang-Dr1AN4WJ.js";
const b = { key: 0 }, v = { key: 1 }, V = ["href"], C = /* @__PURE__ */ d({
  __name: "ChannelsDataTypeLinkValueEditor",
  props: /* @__PURE__ */ u({
    modelValue: {},
    readOnly: { type: Boolean },
    attribute: {},
    massEditing: { type: Boolean },
    label: {},
    fieldName: {},
    dataTypeInstance: {},
    loading: { type: Boolean },
    succeeded: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(m) {
    const t = c(m, "modelValue"), { t: p } = g();
    return f(
      t,
      (r) => {
        r || (t.value = []);
      },
      { immediate: !0 }
    ), (r, D) => (e(), _(n(B), { header: r.label }, {
      default: h(() => [
        t.value?.length ? (e(), o("div", v, [
          (e(!0), o(y, null, k(t.value, (a, s) => (e(), o("a", {
            key: s,
            href: a,
            target: "_blank",
            rel: "noreferrer noopener"
          }, i(a), 9, V))), 128))
        ])) : (e(), o("div", b, i(n(p)("channels-ui.link-value.NoLinks")), 1))
      ]),
      _: 1
    }, 8, ["header"]));
  }
});
typeof l == "function" && l(C);
export {
  C as default
};
