import { defineComponent as p, mergeModels as u, useModel as d, computed as g, watch as f, createElementBlock as P, createCommentVNode as b, openBlock as _, createVNode as s, unref as o } from "vue";
import { useI18n as C } from "vue-i18n";
import { k as y, n as v, a as M, o as S } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const k = {
  key: 0,
  class: "extension-config d-flex flex-wrap align-center"
}, c = /* @__PURE__ */ p({
  __name: "PriceToSimplePriceConfiguration",
  props: /* @__PURE__ */ u({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(n) {
    const e = d(n, "modelValue"), { t: i } = C(), m = g(() => [
      {
        value: "all",
        title: i("pim.etl.PriceToSimplePriceConfiguration.considerAllPrices")
      },
      {
        value: "promotions",
        title: i("pim.etl.PriceToSimplePriceConfiguration.considerOnlyPromotions")
      },
      {
        value: "no_promotions",
        title: i("pim.etl.PriceToSimplePriceConfiguration.ignorePromotions")
      }
    ]);
    return f(
      e,
      (l) => {
        l || (e.value = { country: "", mappingMode: "" });
      },
      { immediate: !0 }
    ), (l, t) => e.value ? (_(), P("div", k, [
      s(o(y), {
        data: o(v).getCountriesCached,
        text: e.value.country || "",
        label: o(i)("pim.etl.PriceToSimplePriceConfiguration.country"),
        "item-title": "name",
        "item-value": "code3digit",
        block: "",
        "prepend-text": "",
        search: "",
        select: "",
        "page-size": "",
        onChange: t[0] || (t[0] = (r) => e.value.country = r.code3digit)
      }, null, 8, ["data", "text", "label"]),
      s(o(M), {
        modelValue: e.value.mappingMode,
        "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.mappingMode = r),
        items: m.value,
        label: o(i)("pim.etl.PriceToSimplePriceConfiguration.mappingMode")
      }, null, 8, ["modelValue", "items", "label"])
    ])) : b("", !0);
  }
});
function a(n) {
  const e = n;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        pim: {
          etl: {
            PriceToSimplePriceConfiguration: {
              country: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Country" } },
              mappingMode: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mapping mode" } },
              considerAllPrices: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Consider all prices" } },
              considerOnlyPromotions: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Consider only promotions" } },
              ignorePromotions: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ignore promotions" } }
            }
          }
        }
      },
      "de-DE": {
        pim: {
          etl: {
            PriceToSimplePriceConfiguration: {
              country: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Land" } },
              mappingMode: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zuordnungsmodus" } },
              considerAllPrices: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alle Preise berücksichtigen" } },
              considerOnlyPromotions: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nur Aktionspreise berücksichtigen" } },
              ignorePromotions: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aktionspreise ignorieren" } }
            }
          }
        }
      }
    }
  });
}
typeof a == "function" && a(c);
const I = /* @__PURE__ */ S(c, [["__scopeId", "data-v-2c2a2124"]]);
export {
  I as default
};
