"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = require("vue");
var _iconsVue = require("@ant-design/icons-vue/lib/icons");
require("./type");
const getAllowClear = allowClear => {
  let mergedAllowClear;
  if (typeof allowClear === 'object' && allowClear.clearIcon) {
    mergedAllowClear = allowClear;
  } else if (allowClear) {
    mergedAllowClear = {
      clearIcon: (0, _vue.createVNode)(_iconsVue.CloseCircleFilled, null, null)
    };
  }
  return mergedAllowClear;
};
var _default = exports.default = getAllowClear;