import { defineComponent as n, mergeModels as l, useModel as u, watch as r, createBlock as s, openBlock as d } from "vue";
import { _ as m } from "./DatahubDataTypeEditor.vue_vue_type_script_setup_true_lang-WxvRaHzL.mjs";
const b = /* @__PURE__ */ n({
  __name: "ConstToXExtension",
  props: /* @__PURE__ */ l({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(o) {
    const t = u(o, "modelValue");
    return t.value || (t.value = {}), r(
      () => {
        var e;
        return (e = t.value) == null ? void 0 : e.constValue;
      },
      (e, a) => {
        e !== a && (t.value = {
          ...t.value,
          value: e
        });
      },
      { immediate: !0 }
    ), (e, a) => (d(), s(m, {
      modelValue: t.value.constValue,
      "onUpdate:modelValue": a[0] || (a[0] = (i) => t.value.constValue = i),
      attribute: e.destinationAttribute,
      "data-type-instance": e.destinationAttribute.dataTypeInstance,
      label: String(e.destinationAttribute.id)
    }, null, 8, ["modelValue", "attribute", "data-type-instance", "label"]));
  }
});
export {
  b as default
};
