import { cV as u, Z as t, c2 as p, c3 as C, c_ as f, c$ as g, U as h, F as o, aa as I, ac as r, Y as d, bL as v, bS as F } from "./603b75d9.js";
import { SelectChildrenMap as b, SelectUIView as M, SelectPropertyView as V, baseSelectRefMethods as w } from "./0cdeb449.js";
import { useSelectInputValidate as x, SelectInputInvalidConfig as D } from "./00d44232.js";
import { PaddingControl as E } from "./d50792b8.js";
import { MarginControl as P } from "./f64a8554.js";
import { fixOldInputCompData as U } from "./41aba172.js";
import "react";
import "react-dom";
import "./f9847c56.js";
let a = function() {
  const c = {
    ...b,
    defaultValue: u("defaultValue", ["1", "2"]),
    value: u("value"),
    style: t(p, "style"),
    labelStyle: t(C, "labelStyle"),
    inputFieldStyle: t(f, "inputFieldStyle"),
    childrenInputFieldStyle: t(g, "childrenInputFieldStyle"),
    margin: P,
    padding: E
  };
  return new h(c, (e, s) => {
    var i, n;
    const S = new Set(e.options.map((l) => l.value)), [m, y] = x(e);
    return e.label({
      required: e.required,
      style: e.style,
      labelStyle: e.labelStyle,
      inputFieldStyle: e.inputFieldStyle,
      childrenInputFieldStyle: e.childrenInputFieldStyle,
      children: /* @__PURE__ */ o(M, {
        ...e,
        mode: "multiple",
        value: (n = (i = e.value.value).filter) == null ? void 0 : n.call(i, (l) => S.has(l)),
        onChange: y,
        dispatch: s
      }),
      ...m
    });
  }).setPropertyViewFn((e) => /* @__PURE__ */ o(V, {
    ...e
  })).setExposeMethodConfigs(w).build();
}();
a = F(a, U);
const _ = I(a, [new r("value", d("selectInput.valueDesc")), new r("inputValue", d("select.inputValueDesc")), D, ...v]);
export {
  _ as MultiSelectComp
};
