import { defineComponent as d, mergeModels as m, useModel as p, watch as f, createElementBlock as b, createCommentVNode as g, openBlock as y, createVNode as a, unref as t } from "vue";
import { useI18n as C } from "vue-i18n";
import { k as s, n as _, ag as v, o as x } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
import { p as V } from "./PricingController-CCrwzhY9.js";
const k = {
  key: 0,
  class: "extension-config d-flex flex-wrap align-center"
}, c = /* @__PURE__ */ d({
  __name: "PriceToFloatConfiguration",
  props: /* @__PURE__ */ m({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(i) {
    const e = p(i, "modelValue"), { t: n } = C();
    return f(
      e,
      (l) => {
        l || (e.value = {
          country: "",
          currency: "",
          isGross: !1
        });
      },
      { immediate: !0 }
    ), (l, o) => e.value ? (y(), b("div", k, [
      a(t(s), {
        data: t(_).getCountriesCached,
        text: e.value.country || "",
        label: t(n)("pim.etl.PriceToFloatConfiguration.country"),
        "item-title": "name",
        "item-value": "code3digit",
        block: "",
        search: "",
        select: "",
        "prepend-text": "",
        "page-size": "",
        onChange: o[0] || (o[0] = (r) => e.value.country = r.code3digit)
      }, null, 8, ["data", "text", "label"]),
      a(t(s), {
        data: t(V).listCurrencies,
        text: e.value.currency || "",
        label: t(n)("pim.etl.PriceToFloatConfiguration.currency"),
        "item-title": "currency",
        "item-value": "currency",
        block: "",
        "prepend-text": "",
        select: "",
        "page-size": "",
        onChange: o[1] || (o[1] = (r) => e.value.currency = r.currency)
      }, null, 8, ["data", "text", "label"]),
      a(t(v), {
        modelValue: e.value.isGross,
        "onUpdate:modelValue": o[2] || (o[2] = (r) => e.value.isGross = r),
        label: t(n)("pim.etl.PriceToFloatConfiguration.destIsGross")
      }, null, 8, ["modelValue", "label"])
    ])) : g("", !0);
  }
});
function u(i) {
  const e = i;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        pim: {
          etl: {
            PriceToFloatConfiguration: {
              country: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Country" } },
              currency: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Currency" } },
              destIsGross: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Destination attribute gross" } }
            }
          }
        }
      },
      "de-DE": {
        pim: {
          etl: {
            PriceToFloatConfiguration: {
              country: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Land" } },
              currency: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Währung" } },
              destIsGross: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zielattribut brutto" } }
            }
          }
        }
      }
    }
  });
}
typeof u == "function" && u(c);
const M = /* @__PURE__ */ x(c, [["__scopeId", "data-v-d7992cab"]]);
export {
  M as default
};
