import { defineComponent as l, useModel as n, ref as p, createBlock as u, openBlock as d, unref as s, mergeProps as c } from "vue";
import { useI18n as f } 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 { a as V } from "./topBarRoutes-CBd5qLxn.js";
import "./IsActiveStatusCell-xz7XnAYP.js";
import "./VariantToVariantExtension-DUC3WSrH.js";
import "./DatahubDataTypeVariantValueEditor-9WYNJneN.js";
import "./dataTypes-DocW2t0g.js";
import { o as k } from "./OfferRelationController-Cq7UOeZi.js";
import { b as i } from "./product-relation.json_vue_type_i18n_index_0_src_true_lang-BU5WW0ow.js";
const _ = /* @__PURE__ */ l({
  __name: "ChannelsDataTypeOfferRelationValueEditor",
  props: {
    modelValue: {},
    modelModifiers: {}
  },
  emits: ["update:modelValue"],
  setup(r) {
    const t = n(r, "modelValue"), { t: o } = f(), a = p({
      listEndpoint: k.listNotAssociatedEntities,
      addButtonCaption: o("pim-plugin.product-relation.addProduct"),
      itemTitle: "sku",
      notAssociatedEntitiesParams: {
        // connectionId: @todo check its value should case from
        // const connectionId = Polymer.Path.get(this.entity, 'connectionId');
      },
      columns: [
        {
          id: "id",
          header: "common.id"
        },
        {
          id: "sku",
          header: o("pim-plugin.product-relation.sku")
        },
        {
          id: "attributeSetName",
          header: o("pim-plugin.product-relation.attributeSet")
        }
      ]
    });
    return (b, e) => (d(), u(s(V), c({
      modelValue: t.value,
      "onUpdate:modelValue": e[0] || (e[0] = (m) => t.value = m)
    }, a.value), null, 16, ["modelValue"]));
  }
});
typeof i == "function" && i(_);
export {
  _ as default
};
