import { defineComponent as b, mergeModels as c, useModel as s, watch as p, createElementBlock as i, openBlock as r, Fragment as f, renderList as g, createVNode as v, unref as d } from "vue";
import { useI18n as y } from "vue-i18n";
import { e as M } from "./start-CE9SawgU.js";
import "pinia";
import "./header-Bn1EKnBE.js";
const R = /* @__PURE__ */ b({
  __name: "RMAUserRestrictionSettings",
  props: /* @__PURE__ */ c({
    modelValue: {},
    data: {},
    options: {},
    settings: {},
    loading: { type: Boolean },
    readonly: { type: Boolean },
    isDefault: { type: Boolean }
  }, {
    modelValue: { default: () => [] },
    modelModifiers: {},
    valid: { type: Boolean, default: !0 },
    validModifiers: {}
  }),
  emits: ["update:modelValue", "update:valid"],
  setup(t) {
    const e = s(t, "modelValue");
    s(t, "valid");
    const { t: u } = y(), m = [
      "single_draft_rma",
      "disable_address_edit",
      "disable_multiple_addresses",
      "enable_rma_cancellable",
      "enable_rma_completed_edit"
    ];
    return p(
      e,
      (l) => {
        l || (e.value = []);
      },
      { immediate: !0 }
    ), (l, n) => (r(), i("div", null, [
      (r(), i(f, null, g(m, (a) => v(d(M), {
        key: a,
        modelValue: e.value,
        "onUpdate:modelValue": n[0] || (n[0] = (_) => e.value = _),
        label: d(u)(`rma-plugin.user-restriction-settings.${a}`),
        value: a,
        readonly: l.readonly
      }, null, 8, ["modelValue", "label", "value", "readonly"])), 64))
    ]));
  }
});
function o(t) {
  const e = t;
  e.__i18n = e.__i18n || [], e.__i18n.push({
    locale: "",
    resource: {
      "en-US": {
        "rma-plugin": {
          "user-restriction-settings": {
            single_draft_rma: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restrict to single draft RMA" } },
            disable_address_edit: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Disable address edit" } },
            disable_multiple_addresses: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Disable multiple addresses" } },
            enable_rma_cancellable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Enable RMA cancelable" } },
            enable_rma_completed_edit: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Enable RMA completed edit" } }
          }
        }
      },
      "de-DE": {
        "rma-plugin": {
          "user-restriction-settings": {
            single_draft_rma: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Auf eine einzelne Retourenanmeldung im Entwurfs-Status beschränken" } },
            disable_address_edit: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Adressbearbeitung sperren" } },
            disable_multiple_addresses: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mehrere Adressen sperren" } },
            enable_rma_cancellable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Stornierung von Retourenanmeldungen zulassen" } },
            enable_rma_completed_edit: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bearbeitung abgeschlossener Retourenanmeldungen zulassen" } }
          }
        }
      }
    }
  });
}
typeof o == "function" && o(R);
export {
  R as default
};
