"use strict";
const common_vendor = require("../../../common/vendor.js");
const allMessageTypeList = [
  common_vendor.qt.TYPES.MSG_TEXT,
  common_vendor.qt.TYPES.MSG_FILE,
  common_vendor.qt.TYPES.MSG_IMAGE,
  common_vendor.qt.TYPES.MSG_VIDEO,
  common_vendor.qt.TYPES.MSG_AUDIO,
  common_vendor.qt.TYPES.MSG_LOCATION,
  common_vendor.qt.TYPES.MSG_CUSTOM,
  common_vendor.qt.TYPES.MSG_MERGER
];
const searchMessageTypeList = {
  allMessage: {
    key: "allMessage",
    label: "全部",
    value: allMessageTypeList
  },
  textMessage: {
    key: "textMessage",
    label: "文本",
    value: [common_vendor.qt.TYPES.MSG_TEXT]
  },
  fileMessage: {
    key: "fileMessage",
    label: "文件",
    value: [common_vendor.qt.TYPES.MSG_FILE]
  },
  imageMessage: {
    key: "imageMessage",
    label: "图片/视频",
    value: [common_vendor.qt.TYPES.MSG_IMAGE, common_vendor.qt.TYPES.MSG_VIDEO]
  },
  otherMessage: {
    key: "otherMessage",
    label: "其他",
    value: [
      common_vendor.qt.TYPES.MSG_AUDIO,
      common_vendor.qt.TYPES.MSG_LOCATION,
      common_vendor.qt.TYPES.MSG_CUSTOM,
      common_vendor.qt.TYPES.MSG_MERGER
    ]
  }
};
Object.keys(searchMessageTypeList).filter(
  (key) => key !== "all"
);
const searchInGlobalDefaultType = searchMessageTypeList["allMessage"];
const searchInConversationDefaultType = searchMessageTypeList["textMessage"];
const searchMessageTypeDefault = {
  global: searchInGlobalDefaultType,
  conversation: searchInConversationDefaultType
};
const globalSearchTypeKeys = ["allMessage", "textMessage", "fileMessage", "otherMessage"];
const globalSearchTypeList = Object.keys(searchMessageTypeList).filter((key) => globalSearchTypeKeys == null ? void 0 : globalSearchTypeKeys.includes(key)).reduce((obj, key) => {
  obj[key] = searchMessageTypeList[key];
  return obj;
}, {});
const conversationSearchTypeKeys = [
  "textMessage",
  "fileMessage",
  "imageMessage",
  "otherMessage"
];
const conversationSearchTypeList = Object.keys(searchMessageTypeList).filter((key) => conversationSearchTypeKeys == null ? void 0 : conversationSearchTypeKeys.includes(key)).reduce((obj, key) => {
  obj[key] = searchMessageTypeList[key];
  return obj;
}, {});
exports.conversationSearchTypeList = conversationSearchTypeList;
exports.globalSearchTypeList = globalSearchTypeList;
exports.searchMessageTypeDefault = searchMessageTypeDefault;
exports.searchMessageTypeList = searchMessageTypeList;
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/TUIKit/components/TUISearch/search-type-list.js.map
