import { defineComponent as u, mergeModels as c, useModel as f, watch as _, createBlock as h, openBlock as e, unref as n, withCtx as y, createElementBlock as o, toDisplayString as l, Fragment as k, renderList as g } from "vue";
import { useI18n as b } from "vue-i18n";
import "pinia";
import "./start-BYfL32Oe.mjs";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import "./IsActiveStatusCell-DlvB6_E-.mjs";
import "@vuelidate/validators";
import "./MultiLangScopeEditorsList.vue_vue_type_script_setup_true_lang-CWQeDnSm.mjs";
import "./DatahubDataTypeCompletenessRenderer.vue_vue_type_script_setup_true_lang-Btvu_WeF.mjs";
import "./topBarRoutes-0VuQ_i6D.mjs";
import "./VariantToVariantExtension-WcLvPNqG.mjs";
import { _ as v } from "./DatahubDataComplexValue.vue_vue_type_script_setup_true_lang-CDTiMGxi.mjs";
import "./DatahubDataTypeVariantValueEditor-f1gR3QCx.mjs";
import { b as m } from "./link-value.json_vue_type_i18n_index_0_src_true_lang-BN-qknjZ.mjs";
const B = { key: 0 }, V = { key: 1 }, C = ["href"], D = /* @__PURE__ */ u({
  __name: "ChannelsDataTypeLinkValueEditor",
  props: /* @__PURE__ */ c({
    modelValue: {},
    readOnly: { type: Boolean },
    attribute: {},
    massEditing: { type: Boolean },
    label: {},
    fieldName: {},
    dataTypeInstance: {},
    loading: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(p) {
    const t = f(p, "modelValue"), { t: s } = b();
    return _(
      t,
      (r) => {
        r || (t.value = []);
      },
      { immediate: !0 }
    ), (r, E) => (e(), h(n(v), { header: r.label }, {
      default: y(() => {
        var a;
        return [
          (a = t.value) != null && a.length ? (e(), o("div", V, [
            (e(!0), o(k, null, g(t.value, (i, d) => (e(), o("a", {
              key: d,
              href: i,
              target: "_blank",
              rel: "noreferrer noopener"
            }, l(i), 9, C))), 128))
          ])) : (e(), o("div", B, l(n(s)("channels-ui.link-value.NoLinks")), 1))
        ];
      }),
      _: 1
    }, 8, ["header"]));
  }
});
typeof m == "function" && m(D);
export {
  D as default
};
