"use strict";
const common_vendor = require("../../../../common/vendor.js");
const TUIKit_utils_env = require("../../../utils/env.js");
if (!Math) {
  (Transfer + Dialog)();
}
const Dialog = () => "../Dialog/index.js";
const Transfer = () => "../Transfer/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  props: {
    isRadio: {
      type: Boolean,
      default: false
    },
    isNeedSearch: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ""
    },
    userList: {
      type: Array,
      default: () => []
    },
    total: {
      type: Number,
      default: 0
    }
  },
  emits: ["complete", "search", "getMore"],
  setup(__props, { emit: __emit }) {
    const emits = __emit;
    const props = __props;
    const reset = () => {
      emits("complete", []);
    };
    const submit = (dataList) => {
      emits("complete", dataList);
    };
    const handleSearchUser = (userID) => {
      emits("search", userID);
    };
    const handleGetMore = () => {
      emits("getMore");
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o$1(handleGetMore),
        b: common_vendor.o$1(handleSearchUser),
        c: common_vendor.o$1(submit),
        d: common_vendor.o$1(reset),
        e: common_vendor.p({
          isSearch: props.isNeedSearch,
          title: props.title,
          list: props.userList,
          isH5: !common_vendor.unref(TUIKit_utils_env.isPC),
          isRadio: props.isRadio,
          total: props.total
        }),
        f: common_vendor.o$1(reset),
        g: common_vendor.p({
          show: true,
          isH5: !common_vendor.unref(TUIKit_utils_env.isPC),
          isHeaderShow: false,
          isFooterShow: false,
          background: false
        })
      };
    };
  }
});
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/SelectUser/index.js.map
