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