import { defineComponent as r, mergeModels as s, useModel as m, computed as c, watch as p, createElementBlock as y, createCommentVNode as k, openBlock as b, createVNode as f, unref as d } from "vue";
import { useI18n as _ } from "vue-i18n";
import { a as g } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const W = { key: 0 }, h = /* @__PURE__ */ r({
  __name: "DateToCalendarWeekExtension",
  props: /* @__PURE__ */ s({
    attributeMap: {},
    destinationAttribute: {},
    sourceAttributes: {},
    etlAttributeSetMapId: {}
  }, {
    modelValue: {
      default: () => ({ startWeekday: "monday" })
    },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(t) {
    const e = m(t, "modelValue"), { t: a } = _(), u = c(() => [
      {
        value: "monday",
        title: a("datahub-plugin.etl.date-to-calendar-week.monday")
      },
      {
        value: "sunday",
        title: a("datahub-plugin.etl.date-to-calendar-week.sunday")
      }
    ]);
    return p(
      e,
      (o) => {
        o?.startWeekday || (e.value = { startWeekday: "monday" });
      },
      { immediate: !0 }
    ), (o, n) => e.value ? (b(), y("div", W, [
      f(d(g), {
        modelValue: e.value.startWeekday,
        "onUpdate:modelValue": n[0] || (n[0] = (i) => e.value.startWeekday = i),
        items: u.value,
        label: d(a)("datahub-plugin.etl.date-to-calendar-week.startWeekday"),
        "max-width": "567"
      }, null, 8, ["modelValue", "items", "label"])
    ])) : k("", !0);
  }
});
function l(t) {
  const e = t;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "datahub-plugin": {
          etl: {
            "date-to-calendar-week": {
              startWeekday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Start weekday" } },
              monday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Monday" } },
              sunday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sunday" } }
            }
          }
        }
      },
      "de-DE": {
        "datahub-plugin": {
          etl: {
            "date-to-calendar-week": {
              startWeekday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Start-Wochentag" } },
              monday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montag" } },
              sunday: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sonntag" } }
            }
          }
        }
      }
    }
  });
}
typeof l == "function" && l(h);
export {
  h as default
};
