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