import { cJ as n, bB as o, cO as f, bO as C, U as g, V as r, bn as b, bo as u, a0 as s, bp as y, bA as v } from "./684d2f28.js";
import { SelectChildrenMap as h, SelectUIView as V, SelectPropertyView as w, baseSelectRefMethods as M } from "./f9c25fbe.js";
import { useSelectInputValidate as I, SelectInputInvalidConfig as x } from "./1312a48b.js";
import { PaddingControl as D } from "./2d5fc5ff.js";
import { MarginControl as O } from "./0f3d7a1a.js";
import { fixOldInputCompData as B } from "./0c4ef413.js";
import "react";
import "react-dom";
import "./00dac55d.js";
import "./d6402597.js";
let l = function() {
  const m = {
    ...h,
    defaultValue: n("defaultValue", ["1", "2"]),
    value: n("value"),
    style: o(f),
    labelStyle: o(C),
    margin: O,
    padding: D
  };
  return new g(m, (e, c) => {
    var a, i;
    const d = new Set(e.options.map((t) => t.value)), [p, S] = I(e);
    return e.label({
      required: e.required,
      style: e.style,
      labelStyle: e.labelStyle,
      children: /* @__PURE__ */ r(V, {
        ...e,
        mode: "multiple",
        value: (i = (a = e.value.value).filter) == null ? void 0 : i.call(a, (t) => d.has(t)),
        onChange: S,
        dispatch: c
      }),
      ...p
    });
  }).setPropertyViewFn((e) => /* @__PURE__ */ r(w, {
    ...e
  })).setExposeMethodConfigs(M).build();
}();
l = v(l, B);
const R = b(l, [new u("value", s("selectInput.valueDesc")), new u("inputValue", s("select.inputValueDesc")), x, ...y]);
export {
  R as MultiSelectComp
};
