@94ai/nf-popup-lazy-select 5.0.7 → 5.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -699,7 +699,42 @@ function Focus(ref) {
699
699
  }
700
700
  };
701
701
  }
702
- const defaultLang = {
702
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
703
+ function getDefaultExportFromCjs(x) {
704
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
705
+ }
706
+ function getAugmentedNamespace(n) {
707
+ if (n.__esModule)
708
+ return n;
709
+ var f = n.default;
710
+ if (typeof f == "function") {
711
+ var a = function a2() {
712
+ if (this instanceof a2) {
713
+ return Reflect.construct(f, arguments, this.constructor);
714
+ }
715
+ return f.apply(this, arguments);
716
+ };
717
+ a.prototype = f.prototype;
718
+ } else
719
+ a = {};
720
+ Object.defineProperty(a, "__esModule", {
721
+ value: true
722
+ });
723
+ Object.keys(n).forEach(function(k) {
724
+ var d = Object.getOwnPropertyDescriptor(n, k);
725
+ Object.defineProperty(a, k, d.get ? d : {
726
+ enumerable: true,
727
+ get: function() {
728
+ return n[k];
729
+ }
730
+ });
731
+ });
732
+ return a;
733
+ }
734
+ var locale = {};
735
+ var zhCN = {};
736
+ zhCN.__esModule = true;
737
+ zhCN.default = {
703
738
  el: {
704
739
  colorpicker: {
705
740
  confirm: "确定",
@@ -895,17 +930,86 @@ deepmerge.all = function deepmergeAll(array, optionsArgument) {
895
930
  });
896
931
  };
897
932
  var deepmerge_1 = deepmerge;
898
- const hasOwnProperty = Object.prototype.hasOwnProperty;
899
- function hasOwn(obj, key) {
900
- return hasOwnProperty.call(obj, key);
933
+ const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
934
+ __proto__: null,
935
+ default: deepmerge_1
936
+ }, Symbol.toStringTag, { value: "Module" }));
937
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(es);
938
+ var format$2 = {};
939
+ var util = {};
940
+ var types = {};
941
+ types.__esModule = true;
942
+ types.isString = isString;
943
+ types.isObject = isObject;
944
+ types.isHtmlElement = isHtmlElement;
945
+ function isString(obj) {
946
+ return Object.prototype.toString.call(obj) === "[object String]";
947
+ }
948
+ function isObject(obj) {
949
+ return Object.prototype.toString.call(obj) === "[object Object]";
950
+ }
951
+ function isHtmlElement(node) {
952
+ return node && node.nodeType === Node.ELEMENT_NODE;
953
+ }
954
+ types.isFunction = function isFunction(functionToCheck) {
955
+ var getType = {};
956
+ return functionToCheck && getType.toString.call(functionToCheck) === "[object Function]";
957
+ };
958
+ types.isUndefined = function isUndefined(val) {
959
+ return val === void 0;
960
+ };
961
+ types.isDefined = function isDefined(val) {
962
+ return val !== void 0 && val !== null;
963
+ };
964
+ util.__esModule = true;
965
+ util.isEmpty = util.isEqual = util.arrayEquals = util.looseEqual = util.capitalize = util.kebabCase = util.autoprefixer = util.isFirefox = util.isEdge = util.isIE = util.coerceTruthyValueToArray = util.arrayFind = util.arrayFindIndex = util.escapeRegexpString = util.valueEquals = util.generateId = util.getValueByPath = void 0;
966
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
967
+ return typeof obj;
968
+ } : function(obj) {
969
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
970
+ };
971
+ util.noop = noop;
972
+ util.hasOwn = hasOwn$1;
973
+ util.toObject = toObject;
974
+ util.getPropByPath = getPropByPath;
975
+ util.rafThrottle = rafThrottle;
976
+ util.objToArray = objToArray;
977
+ var _vue$1 = Vue;
978
+ var _vue2$1 = _interopRequireDefault$1(_vue$1);
979
+ var _types = types;
980
+ function _interopRequireDefault$1(obj) {
981
+ return obj && obj.__esModule ? obj : {
982
+ default: obj
983
+ };
984
+ }
985
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
986
+ function noop() {
987
+ }
988
+ function hasOwn$1(obj, key) {
989
+ return hasOwnProperty$1.call(obj, key);
990
+ }
991
+ function extend(to, _from) {
992
+ for (var key in _from) {
993
+ to[key] = _from[key];
994
+ }
995
+ return to;
901
996
  }
902
- const getValueByPath = function(object, prop) {
997
+ function toObject(arr) {
998
+ var res = {};
999
+ for (var i = 0; i < arr.length; i++) {
1000
+ if (arr[i]) {
1001
+ extend(res, arr[i]);
1002
+ }
1003
+ }
1004
+ return res;
1005
+ }
1006
+ util.getValueByPath = function getValueByPath(object, prop) {
903
1007
  prop = prop || "";
904
- const paths = prop.split(".");
905
- let current = object;
906
- let result = null;
907
- for (let i = 0, j = paths.length; i < j; i++) {
908
- const path = paths[i];
1008
+ var paths = prop.split(".");
1009
+ var current = object;
1010
+ var result = null;
1011
+ for (var i = 0, j = paths.length; i < j; i++) {
1012
+ var path = paths[i];
909
1013
  if (!current)
910
1014
  break;
911
1015
  if (i === j - 1) {
@@ -916,7 +1020,35 @@ const getValueByPath = function(object, prop) {
916
1020
  }
917
1021
  return result;
918
1022
  };
919
- const valueEquals = (a, b) => {
1023
+ function getPropByPath(obj, path, strict) {
1024
+ var tempObj = obj;
1025
+ path = path.replace(/\[(\w+)\]/g, ".$1");
1026
+ path = path.replace(/^\./, "");
1027
+ var keyArr = path.split(".");
1028
+ var i = 0;
1029
+ for (var len = keyArr.length; i < len - 1; ++i) {
1030
+ if (!tempObj && !strict)
1031
+ break;
1032
+ var key = keyArr[i];
1033
+ if (key in tempObj) {
1034
+ tempObj = tempObj[key];
1035
+ } else {
1036
+ if (strict) {
1037
+ throw new Error("please transfer a valid prop path to form item!");
1038
+ }
1039
+ break;
1040
+ }
1041
+ }
1042
+ return {
1043
+ o: tempObj,
1044
+ k: keyArr[i],
1045
+ v: tempObj ? tempObj[keyArr[i]] : null
1046
+ };
1047
+ }
1048
+ util.generateId = function generateId() {
1049
+ return Math.floor(Math.random() * 1e4);
1050
+ };
1051
+ util.valueEquals = function valueEquals(a, b) {
920
1052
  if (a === b)
921
1053
  return true;
922
1054
  if (!(a instanceof Array))
@@ -925,33 +1057,169 @@ const valueEquals = (a, b) => {
925
1057
  return false;
926
1058
  if (a.length !== b.length)
927
1059
  return false;
928
- for (let i = 0; i !== a.length; ++i) {
1060
+ for (var i = 0; i !== a.length; ++i) {
929
1061
  if (a[i] !== b[i])
930
1062
  return false;
931
1063
  }
932
1064
  return true;
933
1065
  };
934
- const isIE = function() {
935
- return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));
1066
+ util.escapeRegexpString = function escapeRegexpString() {
1067
+ var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1068
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
936
1069
  };
937
- const isEdge = function() {
938
- return !Vue.prototype.$isServer && navigator.userAgent.indexOf("Edge") > -1;
1070
+ var arrayFindIndex = util.arrayFindIndex = function arrayFindIndex2(arr, pred) {
1071
+ for (var i = 0; i !== arr.length; ++i) {
1072
+ if (pred(arr[i])) {
1073
+ return i;
1074
+ }
1075
+ }
1076
+ return -1;
939
1077
  };
940
- const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
941
- function Format(Vue2) {
942
- function template(string, ...args) {
943
- if (args.length === 1 && typeof args[0] === "object") {
1078
+ util.arrayFind = function arrayFind(arr, pred) {
1079
+ var idx = arrayFindIndex(arr, pred);
1080
+ return idx !== -1 ? arr[idx] : void 0;
1081
+ };
1082
+ util.coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
1083
+ if (Array.isArray(val)) {
1084
+ return val;
1085
+ } else if (val) {
1086
+ return [val];
1087
+ } else {
1088
+ return [];
1089
+ }
1090
+ };
1091
+ util.isIE = function isIE() {
1092
+ return !_vue2$1.default.prototype.$isServer && !isNaN(Number(document.documentMode));
1093
+ };
1094
+ util.isEdge = function isEdge() {
1095
+ return !_vue2$1.default.prototype.$isServer && navigator.userAgent.indexOf("Edge") > -1;
1096
+ };
1097
+ util.isFirefox = function isFirefox() {
1098
+ return !_vue2$1.default.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
1099
+ };
1100
+ util.autoprefixer = function autoprefixer(style) {
1101
+ if ((typeof style === "undefined" ? "undefined" : _typeof$1(style)) !== "object")
1102
+ return style;
1103
+ var rules = ["transform", "transition", "animation"];
1104
+ var prefixes = ["ms-", "webkit-"];
1105
+ rules.forEach(function(rule) {
1106
+ var value = style[rule];
1107
+ if (rule && value) {
1108
+ prefixes.forEach(function(prefix) {
1109
+ style[prefix + rule] = value;
1110
+ });
1111
+ }
1112
+ });
1113
+ return style;
1114
+ };
1115
+ util.kebabCase = function kebabCase(str) {
1116
+ var hyphenateRE = /([^-])([A-Z])/g;
1117
+ return str.replace(hyphenateRE, "$1-$2").replace(hyphenateRE, "$1-$2").toLowerCase();
1118
+ };
1119
+ util.capitalize = function capitalize(str) {
1120
+ if (!(0, _types.isString)(str))
1121
+ return str;
1122
+ return str.charAt(0).toUpperCase() + str.slice(1);
1123
+ };
1124
+ var looseEqual = util.looseEqual = function looseEqual2(a, b) {
1125
+ var isObjectA = (0, _types.isObject)(a);
1126
+ var isObjectB = (0, _types.isObject)(b);
1127
+ if (isObjectA && isObjectB) {
1128
+ return JSON.stringify(a) === JSON.stringify(b);
1129
+ } else if (!isObjectA && !isObjectB) {
1130
+ return String(a) === String(b);
1131
+ } else {
1132
+ return false;
1133
+ }
1134
+ };
1135
+ var arrayEquals = util.arrayEquals = function arrayEquals2(arrayA, arrayB) {
1136
+ arrayA = arrayA || [];
1137
+ arrayB = arrayB || [];
1138
+ if (arrayA.length !== arrayB.length) {
1139
+ return false;
1140
+ }
1141
+ for (var i = 0; i < arrayA.length; i++) {
1142
+ if (!looseEqual(arrayA[i], arrayB[i])) {
1143
+ return false;
1144
+ }
1145
+ }
1146
+ return true;
1147
+ };
1148
+ util.isEqual = function isEqual(value1, value2) {
1149
+ if (Array.isArray(value1) && Array.isArray(value2)) {
1150
+ return arrayEquals(value1, value2);
1151
+ }
1152
+ return looseEqual(value1, value2);
1153
+ };
1154
+ var isEmpty = util.isEmpty = function isEmpty2(val) {
1155
+ if (val == null)
1156
+ return true;
1157
+ if (typeof val === "boolean")
1158
+ return false;
1159
+ if (typeof val === "number")
1160
+ return !val;
1161
+ if (val instanceof Error)
1162
+ return val.message === "";
1163
+ switch (Object.prototype.toString.call(val)) {
1164
+ case "[object String]":
1165
+ case "[object Array]":
1166
+ return !val.length;
1167
+ case "[object File]":
1168
+ case "[object Map]":
1169
+ case "[object Set]": {
1170
+ return !val.size;
1171
+ }
1172
+ case "[object Object]": {
1173
+ return !Object.keys(val).length;
1174
+ }
1175
+ }
1176
+ return false;
1177
+ };
1178
+ function rafThrottle(fn) {
1179
+ var locked = false;
1180
+ return function() {
1181
+ var _this = this;
1182
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1183
+ args[_key] = arguments[_key];
1184
+ }
1185
+ if (locked)
1186
+ return;
1187
+ locked = true;
1188
+ window.requestAnimationFrame(function(_) {
1189
+ fn.apply(_this, args);
1190
+ locked = false;
1191
+ });
1192
+ };
1193
+ }
1194
+ function objToArray(obj) {
1195
+ if (Array.isArray(obj)) {
1196
+ return obj;
1197
+ }
1198
+ return isEmpty(obj) ? [] : [obj];
1199
+ }
1200
+ format$2.__esModule = true;
1201
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
1202
+ return typeof obj;
1203
+ } : function(obj) {
1204
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1205
+ };
1206
+ format$2.default = function(Vue2) {
1207
+ function template(string) {
1208
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1209
+ args[_key - 1] = arguments[_key];
1210
+ }
1211
+ if (args.length === 1 && _typeof(args[0]) === "object") {
944
1212
  args = args[0];
945
1213
  }
946
1214
  if (!args || !args.hasOwnProperty) {
947
1215
  args = {};
948
1216
  }
949
- return string.replace(RE_NARGS, (match, prefix, i, index) => {
950
- let result;
1217
+ return string.replace(RE_NARGS$1, function(match, prefix, i, index) {
1218
+ var result = void 0;
951
1219
  if (string[index - 1] === "{" && string[index + match.length] === "}") {
952
1220
  return i;
953
1221
  } else {
954
- result = hasOwn(args, i) ? args[i] : null;
1222
+ result = (0, _util.hasOwn)(args, i) ? args[i] : null;
955
1223
  if (result === null || result === void 0) {
956
1224
  return "";
957
1225
  }
@@ -960,50 +1228,78 @@ function Format(Vue2) {
960
1228
  });
961
1229
  }
962
1230
  return template;
1231
+ };
1232
+ var _util = util;
1233
+ var RE_NARGS$1 = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1234
+ locale.__esModule = true;
1235
+ locale.i18n = locale.use = locale.t = void 0;
1236
+ var _zhCN = zhCN;
1237
+ var _zhCN2 = _interopRequireDefault(_zhCN);
1238
+ var _vue = Vue;
1239
+ var _vue2 = _interopRequireDefault(_vue);
1240
+ var _deepmerge = require$$2;
1241
+ var _deepmerge2 = _interopRequireDefault(_deepmerge);
1242
+ var _format = format$2;
1243
+ var _format2 = _interopRequireDefault(_format);
1244
+ function _interopRequireDefault(obj) {
1245
+ return obj && obj.__esModule ? obj : {
1246
+ default: obj
1247
+ };
963
1248
  }
964
- const format = Format();
965
- let lang = defaultLang;
966
- let merged = false;
967
- let i18nHandler = function() {
968
- const vuei18n = Object.getPrototypeOf(this || Vue).$t;
969
- if (typeof vuei18n === "function" && !!Vue.locale) {
970
- if (!merged) {
971
- merged = true;
972
- Vue.locale(Vue.config.lang, deepmerge_1(lang, Vue.locale(Vue.config.lang) || {}, {
1249
+ var format$1 = (0, _format2.default)(_vue2.default);
1250
+ var lang$1 = _zhCN2.default;
1251
+ var merged$1 = false;
1252
+ var i18nHandler$1 = function i18nHandler() {
1253
+ var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;
1254
+ if (typeof vuei18n === "function" && !!_vue2.default.locale) {
1255
+ if (!merged$1) {
1256
+ merged$1 = true;
1257
+ _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang$1, _vue2.default.locale(_vue2.default.config.lang) || {}, {
973
1258
  clone: true
974
1259
  }));
975
1260
  }
976
1261
  return vuei18n.apply(this, arguments);
977
1262
  }
978
1263
  };
979
- const t = function(path, options) {
980
- let value = i18nHandler.apply(this, arguments);
1264
+ var t$1 = locale.t = function t(path, options) {
1265
+ var value = i18nHandler$1.apply(this, arguments);
981
1266
  if (value !== null && value !== void 0)
982
1267
  return value;
983
- const array = path.split(".");
984
- let current = lang;
985
- for (let i = 0, j = array.length; i < j; i++) {
986
- const property = array[i];
1268
+ var array = path.split(".");
1269
+ var current = lang$1;
1270
+ for (var i = 0, j = array.length; i < j; i++) {
1271
+ var property = array[i];
987
1272
  value = current[property];
988
1273
  if (i === j - 1)
989
- return format(value, options);
1274
+ return format$1(value, options);
990
1275
  if (!value)
991
1276
  return "";
992
1277
  current = value;
993
1278
  }
994
1279
  return "";
995
1280
  };
996
- const Locale = {
1281
+ var use = locale.use = function use2(l) {
1282
+ lang$1 = l || lang$1;
1283
+ };
1284
+ var i18n = locale.i18n = function i18n2(fn) {
1285
+ i18nHandler$1 = fn || i18nHandler$1;
1286
+ };
1287
+ locale.default = {
1288
+ use,
1289
+ t: t$1,
1290
+ i18n
1291
+ };
1292
+ var _locale = locale;
1293
+ var _default = {
997
1294
  methods: {
998
- t(...args) {
999
- return t.apply(this, args);
1295
+ t: function t2() {
1296
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1297
+ args[_key] = arguments[_key];
1298
+ }
1299
+ return _locale.t.apply(this, args);
1000
1300
  }
1001
1301
  }
1002
1302
  };
1003
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1004
- function getDefaultExportFromCjs(x) {
1005
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1006
- }
1007
1303
  var throttle$1 = function(delay, noTrailing, callback, debounceMode) {
1008
1304
  var timeoutID;
1009
1305
  var lastExec = 0;
@@ -1071,6 +1367,224 @@ const removeResizeListener = function(element, fn) {
1071
1367
  element.__ro__.disconnect();
1072
1368
  }
1073
1369
  };
1370
+ const defaultLang = {
1371
+ el: {
1372
+ colorpicker: {
1373
+ confirm: "确定",
1374
+ clear: "清空"
1375
+ },
1376
+ datepicker: {
1377
+ now: "此刻",
1378
+ today: "今天",
1379
+ cancel: "取消",
1380
+ clear: "清空",
1381
+ confirm: "确定",
1382
+ selectDate: "选择日期",
1383
+ selectTime: "选择时间",
1384
+ startDate: "开始日期",
1385
+ startTime: "开始时间",
1386
+ endDate: "结束日期",
1387
+ endTime: "结束时间",
1388
+ prevYear: "前一年",
1389
+ nextYear: "后一年",
1390
+ prevMonth: "上个月",
1391
+ nextMonth: "下个月",
1392
+ year: "年",
1393
+ month1: "1 月",
1394
+ month2: "2 月",
1395
+ month3: "3 月",
1396
+ month4: "4 月",
1397
+ month5: "5 月",
1398
+ month6: "6 月",
1399
+ month7: "7 月",
1400
+ month8: "8 月",
1401
+ month9: "9 月",
1402
+ month10: "10 月",
1403
+ month11: "11 月",
1404
+ month12: "12 月",
1405
+ // week: '周次',
1406
+ weeks: {
1407
+ sun: "日",
1408
+ mon: "一",
1409
+ tue: "二",
1410
+ wed: "三",
1411
+ thu: "四",
1412
+ fri: "五",
1413
+ sat: "六"
1414
+ },
1415
+ months: {
1416
+ jan: "一月",
1417
+ feb: "二月",
1418
+ mar: "三月",
1419
+ apr: "四月",
1420
+ may: "五月",
1421
+ jun: "六月",
1422
+ jul: "七月",
1423
+ aug: "八月",
1424
+ sep: "九月",
1425
+ oct: "十月",
1426
+ nov: "十一月",
1427
+ dec: "十二月"
1428
+ }
1429
+ },
1430
+ select: {
1431
+ loading: "加载中",
1432
+ noMatch: "无匹配数据",
1433
+ noData: "无数据",
1434
+ placeholder: "请选择"
1435
+ },
1436
+ cascader: {
1437
+ noMatch: "无匹配数据",
1438
+ loading: "加载中",
1439
+ placeholder: "请选择",
1440
+ noData: "暂无数据"
1441
+ },
1442
+ pagination: {
1443
+ goto: "前往",
1444
+ pagesize: "条/页",
1445
+ total: "共 {total} 条",
1446
+ pageClassifier: "页"
1447
+ },
1448
+ messagebox: {
1449
+ title: "提示",
1450
+ confirm: "确定",
1451
+ cancel: "取消",
1452
+ error: "输入的数据不合法!"
1453
+ },
1454
+ upload: {
1455
+ deleteTip: "按 delete 键可删除",
1456
+ delete: "删除",
1457
+ preview: "查看图片",
1458
+ continue: "继续上传"
1459
+ },
1460
+ table: {
1461
+ emptyText: "暂无数据",
1462
+ confirmFilter: "筛选",
1463
+ resetFilter: "重置",
1464
+ clearFilter: "全部",
1465
+ sumText: "合计"
1466
+ },
1467
+ tree: {
1468
+ emptyText: "暂无数据"
1469
+ },
1470
+ transfer: {
1471
+ noMatch: "无匹配数据",
1472
+ noData: "无数据",
1473
+ titles: ["列表 1", "列表 2"],
1474
+ filterPlaceholder: "请输入搜索内容",
1475
+ noCheckedFormat: "共 {total} 项",
1476
+ hasCheckedFormat: "已选 {checked}/{total} 项"
1477
+ },
1478
+ image: {
1479
+ error: "加载失败"
1480
+ },
1481
+ pageHeader: {
1482
+ title: "返回"
1483
+ },
1484
+ popconfirm: {
1485
+ confirmButtonText: "确定",
1486
+ cancelButtonText: "取消"
1487
+ }
1488
+ }
1489
+ };
1490
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
1491
+ function hasOwn(obj, key) {
1492
+ return hasOwnProperty.call(obj, key);
1493
+ }
1494
+ const getValueByPath2 = function(object, prop) {
1495
+ prop = prop || "";
1496
+ const paths = prop.split(".");
1497
+ let current = object;
1498
+ let result = null;
1499
+ for (let i = 0, j = paths.length; i < j; i++) {
1500
+ const path = paths[i];
1501
+ if (!current)
1502
+ break;
1503
+ if (i === j - 1) {
1504
+ result = current[path];
1505
+ break;
1506
+ }
1507
+ current = current[path];
1508
+ }
1509
+ return result;
1510
+ };
1511
+ const valueEquals2 = (a, b) => {
1512
+ if (a === b)
1513
+ return true;
1514
+ if (!(a instanceof Array))
1515
+ return false;
1516
+ if (!(b instanceof Array))
1517
+ return false;
1518
+ if (a.length !== b.length)
1519
+ return false;
1520
+ for (let i = 0; i !== a.length; ++i) {
1521
+ if (a[i] !== b[i])
1522
+ return false;
1523
+ }
1524
+ return true;
1525
+ };
1526
+ const isIE2 = function() {
1527
+ return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));
1528
+ };
1529
+ const isEdge2 = function() {
1530
+ return !Vue.prototype.$isServer && navigator.userAgent.indexOf("Edge") > -1;
1531
+ };
1532
+ const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1533
+ function Format(Vue2) {
1534
+ function template(string, ...args) {
1535
+ if (args.length === 1 && typeof args[0] === "object") {
1536
+ args = args[0];
1537
+ }
1538
+ if (!args || !args.hasOwnProperty) {
1539
+ args = {};
1540
+ }
1541
+ return string.replace(RE_NARGS, (match, prefix, i, index) => {
1542
+ let result;
1543
+ if (string[index - 1] === "{" && string[index + match.length] === "}") {
1544
+ return i;
1545
+ } else {
1546
+ result = hasOwn(args, i) ? args[i] : null;
1547
+ if (result === null || result === void 0) {
1548
+ return "";
1549
+ }
1550
+ return result;
1551
+ }
1552
+ });
1553
+ }
1554
+ return template;
1555
+ }
1556
+ const format = Format();
1557
+ let lang = defaultLang;
1558
+ let merged = false;
1559
+ let i18nHandler2 = function() {
1560
+ const vuei18n = Object.getPrototypeOf(this || Vue).$t;
1561
+ if (typeof vuei18n === "function" && !!Vue.locale) {
1562
+ if (!merged) {
1563
+ merged = true;
1564
+ Vue.locale(Vue.config.lang, deepmerge_1(lang, Vue.locale(Vue.config.lang) || {}, {
1565
+ clone: true
1566
+ }));
1567
+ }
1568
+ return vuei18n.apply(this, arguments);
1569
+ }
1570
+ };
1571
+ const t3 = function(path, options) {
1572
+ let value = i18nHandler2.apply(this, arguments);
1573
+ if (value !== null && value !== void 0)
1574
+ return value;
1575
+ const array = path.split(".");
1576
+ let current = lang;
1577
+ for (let i = 0, j = array.length; i < j; i++) {
1578
+ const property = array[i];
1579
+ value = current[property];
1580
+ if (i === j - 1)
1581
+ return format(value, options);
1582
+ if (!value)
1583
+ return "";
1584
+ current = value;
1585
+ }
1586
+ return "";
1587
+ };
1074
1588
  function scrollIntoView(container, selected) {
1075
1589
  if (Vue.prototype.$isServer)
1076
1590
  return;
@@ -1656,7 +2170,7 @@ var popper$1 = { exports: {} };
1656
2170
  modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
1657
2171
  }
1658
2172
  modifiersToRun.forEach((function(modifier) {
1659
- if (isFunction(modifier)) {
2173
+ if (isFunction2(modifier)) {
1660
2174
  data = modifier.call(this, data);
1661
2175
  }
1662
2176
  }).bind(this));
@@ -1968,7 +2482,7 @@ var popper$1 = { exports: {} };
1968
2482
  element.style[prop] = styles[prop] + unit;
1969
2483
  });
1970
2484
  }
1971
- function isFunction(functionToCheck) {
2485
+ function isFunction2(functionToCheck) {
1972
2486
  var getType = {};
1973
2487
  return functionToCheck && getType.toString.call(functionToCheck) === "[object Function]";
1974
2488
  }
@@ -1985,8 +2499,8 @@ var popper$1 = { exports: {} };
1985
2499
  }
1986
2500
  function getBoundingClientRect(element) {
1987
2501
  var rect = element.getBoundingClientRect();
1988
- var isIE2 = navigator.userAgent.indexOf("MSIE") != -1;
1989
- var rectTop = isIE2 && element.tagName === "HTML" ? -element.scrollTop : rect.top;
2502
+ var isIE3 = navigator.userAgent.indexOf("MSIE") != -1;
2503
+ var rectTop = isIE3 && element.tagName === "HTML" ? -element.scrollTop : rect.top;
1990
2504
  return {
1991
2505
  left: rect.left,
1992
2506
  top: rectTop,
@@ -2299,7 +2813,7 @@ var _sfc_staticRenderFns$1 = [];
2299
2813
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
2300
2814
  const SelectMenu = __component__$1.exports;
2301
2815
  const _sfc_main = {
2302
- mixins: [Emitter, Locale, Focus("reference"), NavigationMixin],
2816
+ mixins: [Emitter, _default, Focus("reference"), NavigationMixin],
2303
2817
  name: "ElSelect",
2304
2818
  componentName: "ElSelect",
2305
2819
  inject: {
@@ -2320,7 +2834,7 @@ const _sfc_main = {
2320
2834
  return (this.elFormItem || {}).elFormItemSize;
2321
2835
  },
2322
2836
  readonly() {
2323
- return !this.filterable || this.multiple || !isIE() && !isEdge() && !this.visible;
2837
+ return !this.filterable || this.multiple || !isIE2() && !isEdge2() && !this.visible;
2324
2838
  },
2325
2839
  showClose() {
2326
2840
  let hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== void 0 && this.value !== null && this.value !== "";
@@ -2410,7 +2924,7 @@ const _sfc_main = {
2410
2924
  placeholder: {
2411
2925
  type: String,
2412
2926
  default() {
2413
- return t("el.select.placeholder");
2927
+ return t3("el.select.placeholder");
2414
2928
  }
2415
2929
  },
2416
2930
  defaultFirstOption: Boolean,
@@ -2476,7 +2990,7 @@ const _sfc_main = {
2476
2990
  if (this.filterable && !this.multiple) {
2477
2991
  this.inputLength = 20;
2478
2992
  }
2479
- if (!valueEquals(val, oldVal)) {
2993
+ if (!valueEquals2(val, oldVal)) {
2480
2994
  this.dispatch("ElFormItem", "el.form.change", val);
2481
2995
  }
2482
2996
  },
@@ -2614,26 +3128,26 @@ const _sfc_main = {
2614
3128
  this.$nextTick(() => this.scrollToOption(this.selected));
2615
3129
  },
2616
3130
  emitChange(val) {
2617
- if (!valueEquals(this.value, val)) {
3131
+ if (!valueEquals2(this.value, val)) {
2618
3132
  this.$emit("change", val);
2619
3133
  }
2620
3134
  },
2621
3135
  getOption(value) {
2622
3136
  let option;
2623
- const isObject = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
3137
+ const isObject2 = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
2624
3138
  const isNull = Object.prototype.toString.call(value).toLowerCase() === "[object null]";
2625
- const isUndefined = Object.prototype.toString.call(value).toLowerCase() === "[object undefined]";
3139
+ const isUndefined2 = Object.prototype.toString.call(value).toLowerCase() === "[object undefined]";
2626
3140
  for (let i = this.cachedOptions.length - 1; i >= 0; i--) {
2627
3141
  const cachedOption = this.cachedOptions[i];
2628
- const isEqual = isObject ? getValueByPath(cachedOption.value, this.valueKey) === getValueByPath(value, this.valueKey) : cachedOption.value === value;
2629
- if (isEqual) {
3142
+ const isEqual2 = isObject2 ? getValueByPath2(cachedOption.value, this.valueKey) === getValueByPath2(value, this.valueKey) : cachedOption.value === value;
3143
+ if (isEqual2) {
2630
3144
  option = cachedOption;
2631
3145
  break;
2632
3146
  }
2633
3147
  }
2634
3148
  if (option)
2635
3149
  return option;
2636
- const label = !isObject && !isNull && !isUndefined ? value : "";
3150
+ const label = !isObject2 && !isNull && !isUndefined2 ? value : "";
2637
3151
  let newOption = {
2638
3152
  value,
2639
3153
  currentLabel: label
@@ -2809,14 +3323,14 @@ const _sfc_main = {
2809
3323
  }
2810
3324
  },
2811
3325
  getValueIndex(arr = [], value) {
2812
- const isObject = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
2813
- if (!isObject) {
3326
+ const isObject2 = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
3327
+ if (!isObject2) {
2814
3328
  return arr.indexOf(value);
2815
3329
  } else {
2816
3330
  const valueKey = this.valueKey;
2817
3331
  let index = -1;
2818
3332
  arr.some((item, i) => {
2819
- if (getValueByPath(item, valueKey) === getValueByPath(value, valueKey)) {
3333
+ if (getValueByPath2(item, valueKey) === getValueByPath2(value, valueKey)) {
2820
3334
  index = i;
2821
3335
  return true;
2822
3336
  }
@@ -2909,7 +3423,7 @@ const _sfc_main = {
2909
3423
  if (Object.prototype.toString.call(item.value).toLowerCase() !== "[object object]") {
2910
3424
  return item.value;
2911
3425
  } else {
2912
- return getValueByPath(item.value, this.valueKey);
3426
+ return getValueByPath2(item.value, this.valueKey);
2913
3427
  }
2914
3428
  }
2915
3429
  },