import { defineComponent as u, mergeModels as a, useModel as d, createElementBlock as m, openBlock as s, createVNode as c, createBlock as p, createCommentVNode as v, unref as t } from "vue";
import { useI18n as f } from "vue-i18n";
import { ag as C, d as b } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const _ = /* @__PURE__ */ u({
  __name: "BasePriceToReferenceUnitConfiguration",
  props: /* @__PURE__ */ a({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(n) {
    const e = d(n, "modelValue"), { t: l } = f();
    return (h, o) => (s(), m("div", null, [
      c(t(C), {
        modelValue: e.value.useAutoConversion,
        "onUpdate:modelValue": o[0] || (o[0] = (r) => e.value.useAutoConversion = r),
        label: t(l)("pim.etl.BasePriceToReferenceUnit.useAutoConversion")
      }, null, 8, ["modelValue", "label"]),
      e.value.useAutoConversion ? (s(), p(t(b), {
        key: 0,
        modelValue: e.value.autoConversionThreshold,
        "onUpdate:modelValue": o[1] || (o[1] = (r) => e.value.autoConversionThreshold = r),
        label: t(l)("pim.etl.BasePriceToReferenceUnit.autoConversionThreshold"),
        class: "mt-4",
        "persistent-placeholder": ""
      }, null, 8, ["modelValue", "label"])) : v("", !0)
    ]));
  }
});
function i(n) {
  const e = n;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        pim: {
          etl: {
            BasePriceToReferenceUnit: {
              useAutoConversion: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Use auto conversion" } },
              autoConversionThreshold: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Use conversion threshold" } }
            }
          }
        }
      },
      "de-DE": {
        pim: {
          etl: {
            BasePriceToReferenceUnit: {
              useAutoConversion: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Auto-Konvertierung verwenden" } },
              autoConversionThreshold: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Konvertierungsschwellenwert verwenden" } }
            }
          }
        }
      }
    }
  });
}
typeof i == "function" && i(_);
export {
  _ as default
};
