@polyv/chat-ui 2.0.0-rc-20250925.1 → 2.0.0-rc-20250925.2

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.
package/index.d.ts CHANGED
@@ -352,6 +352,11 @@ export declare interface MessageConfig {
352
352
  * @default ''
353
353
  */
354
354
  introductionText?: string;
355
+ /**
356
+ * 是否显示聊天室空数据提示
357
+ * @default false
358
+ */
359
+ showEmptyTips?: boolean;
355
360
  /**
356
361
  * 需要隐藏的消息来源
357
362
  * @default []
package/index.es.js CHANGED
@@ -959,12 +959,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
959
959
  return this.direction === "vertical" ? this.translateY : this.translateX;
960
960
  }, isSlideForbidden: function() {
961
961
  return this.forbidSlideSingle && this.renderItemList.length === 1;
962
+ }, renderItemListCount: function() {
963
+ return this.renderItemList.length;
962
964
  } }, watch: { activeIndex: function() {
963
965
  var f = this.getSlideIndex();
964
966
  this.slideIndex !== f && (this.$emit("update:slideIndex", f), this.$emit("change", f));
965
967
  }, slideIndex: function() {
966
968
  var f = this.getSlideIndex();
967
969
  this.slideIndex !== f && this.slideTo(this.slideIndex);
970
+ }, renderItemListCount: function() {
971
+ this.checkSlideIndex();
968
972
  } }, mounted: function() {
969
973
  this.setWrapSize(), this.slideTo(this.slideIndex, !1), this.isAutoPlay && this.startAutoPlay(), window.addEventListener("resize", this.handleWindowReszie), Object(n.bind)(this.$el, this.handleWindowReszie);
970
974
  }, beforeDestroy: function() {
@@ -1007,6 +1011,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1007
1011
  var w = y.isClone, x = y.slideIndex;
1008
1012
  w || x !== f || (_ = b);
1009
1013
  }), this.slideToActive(_, h);
1014
+ }, checkSlideIndex: function() {
1015
+ var f = this.activeIndex;
1016
+ f > this.renderItemList.length - 1 && (f = this.renderItemList.length - 1, this.slideToActive(f));
1010
1017
  }, setTranslate: function(f) {
1011
1018
  this.direction !== "vertical" ? this.translateX = f : this.translateY = f;
1012
1019
  }, getItemSize: function() {
@@ -1059,7 +1066,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1059
1066
  var h, v, _, y = arguments[0], b = this.getRenderItems(this.$slots.default, f), w = b.renderVNodes, x = b.renderItemList;
1060
1067
  if (this.$slots.prevArrow && (h = y("div", { class: "plv-carousel__prev-arrow", on: { click: this.slidePrev } }, [this.$slots.prevArrow])), this.$slots.nextArrow && (v = y("div", { class: "plv-carousel__next-arrow", on: { click: this.slideNext } }, [this.$slots.nextArrow])), this.$slots.indicator || this.$scopedSlots.indicator) {
1061
1068
  var C = this.activeIndex, S = x[C];
1062
- _ = y(a.a, { attrs: { slotName: "indicator", scopedData: { count: this.getSlideCount(this.$slots.default), slideIndex: S.slideIndex, slideTo: this.slideTo }, target: this, className: "plv-carousel__indicator" } });
1069
+ S && (_ = y(a.a, { attrs: { slotName: "indicator", scopedData: { count: this.getSlideCount(this.$slots.default), slideIndex: S.slideIndex, slideTo: this.slideTo }, target: this, className: "plv-carousel__indicator" } }));
1063
1070
  }
1064
1071
  var Q = { transform: "translate(".concat(this.translateX, "px, ").concat(this.translateY, "px)") };
1065
1072
  switch (this.useTransition && (Q.transition = "300ms"), this.direction) {
@@ -4481,7 +4488,7 @@ var N0 = function(r) {
4481
4488
  return t.d(i, "a", i), i;
4482
4489
  }, t.o = function(n, i) {
4483
4490
  return Object.prototype.hasOwnProperty.call(n, i);
4484
- }, t.p = "", t(t.s = 457);
4491
+ }, t.p = "", t(t.s = 458);
4485
4492
  }({ 0: function(r, e, t) {
4486
4493
  function n(i, o, s, a, l, c, d, f) {
4487
4494
  var h, v = typeof i == "function" ? i.options : i;
@@ -4695,11 +4702,11 @@ var N0 = function(r) {
4695
4702
  }) : O.files && A.push.apply(A, i()(O.files)), A;
4696
4703
  }
4697
4704
  }, 10: function(r, e, t) {
4698
- var n = t(27);
4705
+ var n = t(28);
4699
4706
  r.exports = function(i, o, s) {
4700
4707
  return (o = n(o)) in i ? Object.defineProperty(i, o, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : i[o] = s, i;
4701
4708
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
4702
- }, 101: function(r, e, t) {
4709
+ }, 103: function(r, e, t) {
4703
4710
  }, 11: function(r, e, t) {
4704
4711
  t.d(e, "d", function() {
4705
4712
  return h;
@@ -4812,7 +4819,7 @@ var N0 = function(r) {
4812
4819
  t.r(e);
4813
4820
  var n = t(12), i = { name: "plv-icon", props: { icon: String, tag: { type: String, default: "span" } }, computed: { iconClass: function() {
4814
4821
  return Object(n.a)(this.icon);
4815
- } } }, o = (t(55), t(0)), s = Object(o.a)(i, function() {
4822
+ } } }, o = (t(57), t(0)), s = Object(o.a)(i, function() {
4816
4823
  var a = this.$createElement;
4817
4824
  return (this._self._c || a)(this.tag, this._g({ tag: "component", class: ["plv-admin-icon", this.iconClass, "plv-icon"] }, this.$listeners));
4818
4825
  }, [], !1, null, null, null).exports;
@@ -4820,7 +4827,7 @@ var N0 = function(r) {
4820
4827
  a.component(s.name, s);
4821
4828
  }, e.default = s;
4822
4829
  }, 133: function(r, e, t) {
4823
- t(101);
4830
+ t(103);
4824
4831
  }, 14: function(r, e, t) {
4825
4832
  function n(a) {
4826
4833
  return a || typeof navigator == "undefined" || (a = navigator.userAgent), a;
@@ -4859,7 +4866,7 @@ var N0 = function(r) {
4859
4866
  if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
4860
4867
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
4861
4868
  }, 18: function(r, e, t) {
4862
- var n = t(27);
4869
+ var n = t(28);
4863
4870
  function i(o, s) {
4864
4871
  for (var a = 0; a < s.length; a++) {
4865
4872
  var l = s[a];
@@ -4874,7 +4881,7 @@ var N0 = function(r) {
4874
4881
  this.v = t, this.k = n;
4875
4882
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
4876
4883
  }, 2: function(r, e, t) {
4877
- var n = t(30)();
4884
+ var n = t(31)();
4878
4885
  r.exports = n;
4879
4886
  try {
4880
4887
  regeneratorRuntime = n;
@@ -5004,7 +5011,7 @@ var N0 = function(r) {
5004
5011
  }, !0);
5005
5012
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
5006
5013
  }, 230: function(r, e, t) {
5007
- r.exports = t(597);
5014
+ r.exports = t(599);
5008
5015
  }, 24: function(r, e) {
5009
5016
  r.exports = function(t, n) {
5010
5017
  (n == null || n > t.length) && (n = t.length);
@@ -5020,7 +5027,7 @@ var N0 = function(r) {
5020
5027
  return s === "Object" && i.constructor && (s = i.constructor.name), s === "Map" || s === "Set" ? Array.from(i) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? n(i, o) : void 0;
5021
5028
  }
5022
5029
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
5023
- }, 27: function(r, e, t) {
5030
+ }, 28: function(r, e, t) {
5024
5031
  var n = t(4).default, i = t(35);
5025
5032
  r.exports = function(o) {
5026
5033
  var s = i(o, "string");
@@ -5302,8 +5309,8 @@ var N0 = function(r) {
5302
5309
  this.getCompConfig(d)[f] = h;
5303
5310
  } }]);
5304
5311
  }())({ configKey: "@@polyv-ui-admin-config" });
5305
- }, 30: function(r, e, t) {
5306
- var n = t(19), i = t(20), o = t(31), s = t(22), a = t(23), l = t(32), c = t(33);
5312
+ }, 31: function(r, e, t) {
5313
+ var n = t(19), i = t(20), o = t(32), s = t(22), a = t(23), l = t(33), c = t(34);
5307
5314
  function d() {
5308
5315
  var f = i(), h = f.m(d), v = (Object.getPrototypeOf ? Object.getPrototypeOf(h) : h.__proto__).constructor;
5309
5316
  function _(w) {
@@ -5350,7 +5357,7 @@ var N0 = function(r) {
5350
5357
  }, r.exports.__esModule = !0, r.exports.default = r.exports)();
5351
5358
  }
5352
5359
  r.exports = d, r.exports.__esModule = !0, r.exports.default = r.exports;
5353
- }, 31: function(r, e, t) {
5360
+ }, 32: function(r, e, t) {
5354
5361
  var n = t(22);
5355
5362
  r.exports = function(i, o, s, a, l) {
5356
5363
  var c = n(i, o, s, a, l);
@@ -5358,7 +5365,7 @@ var N0 = function(r) {
5358
5365
  return d.done ? d.value : c.next();
5359
5366
  });
5360
5367
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
5361
- }, 32: function(r, e) {
5368
+ }, 33: function(r, e) {
5362
5369
  r.exports = function(t) {
5363
5370
  var n = Object(t), i = [];
5364
5371
  for (var o in n) i.unshift(o);
@@ -5367,7 +5374,7 @@ var N0 = function(r) {
5367
5374
  return s.done = !0, s;
5368
5375
  };
5369
5376
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
5370
- }, 33: function(r, e, t) {
5377
+ }, 34: function(r, e, t) {
5371
5378
  var n = t(4).default;
5372
5379
  r.exports = function(i) {
5373
5380
  if (i != null) {
@@ -5392,7 +5399,6 @@ var N0 = function(r) {
5392
5399
  }
5393
5400
  return (o === "string" ? String : Number)(i);
5394
5401
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
5395
- }, 36: function(r, e, t) {
5396
5402
  }, 363: function(r, e, t) {
5397
5403
  var n, i, o = t(4);
5398
5404
  (function(s, a) {
@@ -7513,6 +7519,7 @@ var N0 = function(r) {
7513
7519
  }, 364: function(r, e, t) {
7514
7520
  }, 365: function(r, e, t) {
7515
7521
  }, 366: function(r, e, t) {
7522
+ }, 37: function(r, e, t) {
7516
7523
  }, 4: function(r, e) {
7517
7524
  function t(n) {
7518
7525
  return r.exports = t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
@@ -7741,12 +7748,12 @@ var N0 = function(r) {
7741
7748
  return S;
7742
7749
  } }), a;
7743
7750
  }) == "function" ? n.call(e, t, e, r) : n) === void 0 || (r.exports = i);
7744
- }, 42: function(r, e, t) {
7751
+ }, 43: function(r, e, t) {
7745
7752
  var n = t(24);
7746
7753
  r.exports = function(i) {
7747
7754
  if (Array.isArray(i)) return n(i);
7748
7755
  }, r.exports.__esModule = !0, r.exports.default = r.exports;
7749
- }, 43: function(r, e) {
7756
+ }, 44: function(r, e) {
7750
7757
  r.exports = function() {
7751
7758
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
7752
7759
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
@@ -7768,9 +7775,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7768
7775
  var i = arguments[0];
7769
7776
  return i(this.tagName, { class: this.className }, [this.renderSlot(this.$createElement, this.scopedData)]);
7770
7777
  } };
7771
- }, 457: function(r, e, t) {
7778
+ }, 458: function(r, e, t) {
7772
7779
  t.r(e);
7773
- var n = t(10), i = t.n(n), o = t(4), s = t.n(o), a = t(14), l = t(299), c = (t(596), t(70)), d = t(1), f = { mixins: [{ data: function() {
7780
+ var n = t(10), i = t.n(n), o = t(4), s = t.n(o), a = t(14), l = t(299), c = (t(598), t(73)), d = t(1), f = { mixins: [{ data: function() {
7774
7781
  return { momentumStartDiffX: 0, momentumStartDiffY: 0, momentumStartTime: void 0, momentumTimeThreshold: 300, momentumMoveThreshold: 15, momentumTransitionDuration: 0, momentumBezier: "" };
7775
7782
  }, methods: { onMomentumStart: function() {
7776
7783
  this.stopMomentum(), this.momentumTransitionDuration = 0, this.momentumStartDiffX = this.centerDiffX, this.momentumStartDiffY = this.centerDiffY, this.momentumStartTime = Date.now(), this.momentumBezier = "";
@@ -7970,14 +7977,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7970
7977
  return { x: O, y: A };
7971
7978
  }, handleResize: function() {
7972
7979
  this.init();
7973
- } } }, w = (t(601), t(0)), x = Object(w.a)(b, function() {
7980
+ } } }, w = (t(603), t(0)), x = Object(w.a)(b, function() {
7974
7981
  var M = this, $ = M.$createElement, O = M._self._c || $;
7975
7982
  return O("div", { ref: "zoomWrap", class: ["plv-image-preview__zoom-wrap", M.disabledSwiper ? "swiper-no-swiping" : ""], attrs: { draggable: "false", onselectstart: "return false;", ondragstart: "return false;" }, on: { click: function(A) {
7976
7983
  return M.$emit("click-wrap");
7977
7984
  } } }, [O("plv-loading", { ref: "loading", attrs: { value: !M.isLoaded && !M.isLoadError, "force-size": 26, background: "none" } }), M._v(" "), M.isLoadError ? M._e() : O("div", { ref: "zoomContent", staticClass: "plv-image-preview__zoom-wrap__content", style: M.contentStyle, on: { click: function(A) {
7978
7985
  return A.stopPropagation(), M.handleClick(A);
7979
7986
  }, mousedown: M.handleMouseDown, mousemove: M.handleMouseMove, mouseup: M.handleMouseEnd, mouseout: M.handleMouseEnd, touchstart: M.handleTouchStart, touchmove: M.handleTouchMove, touchend: M.handleTouchEnd, touchcancel: M.handleTouchEnd } }, [O("img", { directives: [{ name: "show", rawName: "v-show", value: M.isLoaded, expression: "isLoaded" }], staticClass: "plv-image-preview__zoom-wrap__img", style: { width: M.defaultWidth + "px", height: M.defaultHeight + "px" }, attrs: { src: M.url } })]), M._v(" "), M.isLoadError ? O("div", { staticClass: "plv-image-preview__zoom-wrap__error" }) : M._e()], 1);
7980
- }, [], !1, null, null, null).exports, C = t(13), S = t(51), Q = { components: { PlvIcon: C.default, PlvTooltip: S.default }, props: { totalPage: { type: Number, default: 1 }, currentIndex: { type: Number, default: 0 }, scaleText: { type: String, default: "100%" } } }, k = (t(602), Object(w.a)(Q, function() {
7987
+ }, [], !1, null, null, null).exports, C = t(13), S = t(51), Q = { components: { PlvIcon: C.default, PlvTooltip: S.default }, props: { totalPage: { type: Number, default: 1 }, currentIndex: { type: Number, default: 0 }, scaleText: { type: String, default: "100%" } } }, k = (t(604), Object(w.a)(Q, function() {
7981
7988
  var M = this, $ = M.$createElement, O = M._self._c || $;
7982
7989
  return O("div", { staticClass: "plv-image-preview__control" }, [M.totalPage > 1 ? O("div", { staticClass: "plv-image-preview__control__btn plv-image-preview__control__btn--prev", class: { "plv-image-preview__control__btn--disabled": M.currentIndex === 0 }, attrs: { title: "上一页" }, on: { click: function(A) {
7983
7990
  return M.$emit("click-prev");
@@ -8096,7 +8103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8096
8103
  }, 500);
8097
8104
  }, handleResize: function() {
8098
8105
  this.initZoomWrap();
8099
- } } }, U = (t(603), Object(w.a)(D, function() {
8106
+ } } }, U = (t(605), Object(w.a)(D, function() {
8100
8107
  var M = this, $ = M.$createElement, O = M._self._c || $;
8101
8108
  return O("div", { directives: [{ name: "show", rawName: "v-show", value: M.visible, expression: "visible" }], staticClass: "plv-image-preview", style: M.wrapStyle, on: { mousemove: M.showControl } }, [O("swiper", { ref: "swiper", staticClass: "plv-image-preview__swiper-wrap", attrs: { options: M.swiperOptions }, on: { slideChange: M.onSlideChange, transitionEnd: M.onTransitionEnd } }, M._l(M.imgList, function(A, z) {
8102
8109
  return O("swiper-slide", { key: z, staticClass: "plv-image-preview__swiper-slide" }, [O("zoom-wrap", { ref: "zoomWrap", refInFor: !0, attrs: { index: z, url: A.url }, on: { "click-wrap": M.handleClickWrap, close: M.close, "toast-scale": M.toastScale } })], 1);
@@ -8242,15 +8249,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8242
8249
  var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
8243
8250
  d.a.setConfig("Tooltip", "hoverOpenDelay", x.hoverOpenDelay || 0), d.a.setConfig("Tooltip", "hoverCloseDelay", x.hoverCloseDelay || 300), w.component(f.name, f), w.prototype.$tooltipScript = b;
8244
8251
  }, f.tooltipScript = b, e.default = f;
8245
- }, 55: function(r, e, t) {
8246
- t(36);
8252
+ }, 57: function(r, e, t) {
8253
+ t(37);
8247
8254
  }, 58: function(r, e, t) {
8248
8255
  t.r(e);
8249
8256
  var n = t(41), i = t.n(n);
8250
8257
  e.default = i.a;
8251
- }, 596: function(r, e, t) {
8252
- }, 597: function(r, e, t) {
8253
- var n = t(598), i = t(599), o = 10, s = 40, a = 800;
8258
+ }, 598: function(r, e, t) {
8259
+ }, 599: function(r, e, t) {
8260
+ var n = t(600), i = t(601), o = 10, s = 40, a = 800;
8254
8261
  function l(c) {
8255
8262
  var d = 0, f = 0, h = 0, v = 0;
8256
8263
  return "detail" in c && (f = c.detail), "wheelDelta" in c && (f = -c.wheelDelta / 120), "wheelDeltaY" in c && (f = -c.wheelDeltaY / 120), "wheelDeltaX" in c && (d = -c.wheelDeltaX / 120), "axis" in c && c.axis === c.HORIZONTAL_AXIS && (d = f, f = 0), h = d * o, v = f * o, "deltaY" in c && (v = c.deltaY), "deltaX" in c && (h = c.deltaX), (h || v) && c.deltaMode && (c.deltaMode == 1 ? (h *= s, v *= s) : (h *= a, v *= a)), h && !d && (d = h < 1 ? -1 : 1), v && !f && (f = v < 1 ? -1 : 1), { spinX: d, spinY: f, pixelX: h, pixelY: v };
@@ -8258,7 +8265,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8258
8265
  l.getEventType = function() {
8259
8266
  return n.firefox() ? "DOMMouseScroll" : i("wheel") ? "wheel" : "mousewheel";
8260
8267
  }, r.exports = l;
8261
- }, 598: function(r, e) {
8268
+ }, 6: function(r, e, t) {
8269
+ var n = t(43), i = t(40), o = t(25), s = t(44);
8270
+ r.exports = function(a) {
8271
+ return n(a) || i(a) || o(a) || s();
8272
+ }, r.exports.__esModule = !0, r.exports.default = r.exports;
8273
+ }, 600: function(r, e) {
8262
8274
  var t, n, i, o, s, a, l, c, d, f, h, v, _, y, b, w = !1;
8263
8275
  function x() {
8264
8276
  if (!w) {
@@ -8312,8 +8324,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8312
8324
  return x() || _;
8313
8325
  } };
8314
8326
  r.exports = C;
8315
- }, 599: function(r, e, t) {
8316
- var n, i = t(600);
8327
+ }, 601: function(r, e, t) {
8328
+ var n, i = t(602);
8317
8329
  i.canUseDOM && (n = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0), r.exports = function(o, s) {
8318
8330
  if (!i.canUseDOM || s && !("addEventListener" in document)) return !1;
8319
8331
  var a = "on" + o, l = a in document;
@@ -8323,22 +8335,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8323
8335
  }
8324
8336
  return !l && n && o === "wheel" && (l = document.implementation.hasFeature("Events.wheel", "3.0")), l;
8325
8337
  };
8326
- }, 6: function(r, e, t) {
8327
- var n = t(42), i = t(40), o = t(25), s = t(43);
8328
- r.exports = function(a) {
8329
- return n(a) || i(a) || o(a) || s();
8330
- }, r.exports.__esModule = !0, r.exports.default = r.exports;
8331
- }, 600: function(r, e, t) {
8338
+ }, 602: function(r, e, t) {
8332
8339
  var n = !(typeof window == "undefined" || !window.document || !window.document.createElement), i = { canUseDOM: n, canUseWorkers: typeof Worker != "undefined", canUseEventListeners: n && !(!window.addEventListener && !window.attachEvent), canUseViewport: n && !!window.screen, isInWorker: !n };
8333
8340
  r.exports = i;
8334
- }, 601: function(r, e, t) {
8341
+ }, 603: function(r, e, t) {
8335
8342
  t(364);
8336
- }, 602: function(r, e, t) {
8343
+ }, 604: function(r, e, t) {
8337
8344
  t(365);
8338
- }, 603: function(r, e, t) {
8345
+ }, 605: function(r, e, t) {
8339
8346
  t(366);
8340
8347
  }, 63: function(r, e, t) {
8341
- }, 70: function(r, e, t) {
8348
+ }, 73: function(r, e, t) {
8342
8349
  t.r(e);
8343
8350
  var n = t(15), i = { name: "plv-loading", data: function() {
8344
8351
  return { visible: !1, size: null };
@@ -15112,6 +15119,7 @@ const $8 = L8.exports, ke = {
15112
15119
  Ke(tc, r);
15113
15120
  }, _n = () => We(tc), O8 = {
15114
15121
  introductionText: "",
15122
+ showEmptyTips: !1,
15115
15123
  hideSources: [],
15116
15124
  hideMessage: {},
15117
15125
  showMessageTime: !0,
@@ -18852,26 +18860,36 @@ var Lh = function() {
18852
18860
  $h
18853
18861
  );
18854
18862
  const Dh = Oh.exports, Ah = (r) => {
18855
- const { historyData: e } = r, { messageConfig: t } = Re(), { $t: n } = we(), { createVueInstance: i, getVueInstanceElem: o } = xt();
18856
- return {
18857
- renderItems: (f) => {
18858
- const h = [];
18859
- return f.forEach((v, _) => {
18860
- let y = f[_ - 1], b = !1;
18861
- if (t.value.showMessageTime) {
18862
- const S = e.getHistoryData();
18863
- let Q = -1;
18864
- y || (Q = e.findHistoryIndex(v.id), Q !== -1 && (y = S[Q - 1])), b = y && v.time - y.time > df;
18863
+ const { historyData: e } = r, { messageConfig: t } = Re(), { $t: n } = we(), { createVueInstance: i, getVueInstanceElem: o } = xt(), s = (f) => {
18864
+ const h = [];
18865
+ return f.forEach((v, _) => {
18866
+ let y = f[_ - 1], b = !1;
18867
+ if (t.value.showMessageTime) {
18868
+ const S = e.getHistoryData();
18869
+ let Q = -1;
18870
+ y || (Q = e.findHistoryIndex(v.id), Q !== -1 && (y = S[Q - 1])), b = y && v.time - y.time > df;
18871
+ }
18872
+ const x = i(Dh, {
18873
+ props: {
18874
+ chatMsg: v,
18875
+ showMsgTime: b
18865
18876
  }
18866
- const x = i(Dh, {
18867
- props: {
18868
- chatMsg: v,
18869
- showMsgTime: b
18870
- }
18871
- }), C = o(x);
18872
- C.__vueVm = x, h.push(C);
18873
- }), h;
18874
- },
18877
+ }), C = o(x);
18878
+ C.__vueVm = x, h.push(C);
18879
+ }), h;
18880
+ }, a = (f) => {
18881
+ const h = e.getHistoryData();
18882
+ if (f === Ie.Head && h.length >= Rt) {
18883
+ const v = document.createElement("div");
18884
+ return v.className = "plv-chat-message-list__tips", v.textContent = n("chat.noMore"), v;
18885
+ }
18886
+ };
18887
+ let l;
18888
+ return t.value.showEmptyTips && (l = () => {
18889
+ const f = document.createElement("div");
18890
+ return f.className = "plv-chat-message-list__tips", f.textContent = n("chat.empty"), f;
18891
+ }), {
18892
+ renderItems: s,
18875
18893
  renderLoading: () => {
18876
18894
  const f = document.createElement("div");
18877
18895
  return f.className = "plv-chat-message-list__loading", f;
@@ -18880,17 +18898,8 @@ const Dh = Oh.exports, Ah = (r) => {
18880
18898
  const f = document.createElement("div");
18881
18899
  return f.className = "plv-chat-message-list__tips", f.textContent = n("chat.loadError"), f;
18882
18900
  },
18883
- renderBoundary: (f) => {
18884
- const h = e.getHistoryData();
18885
- if (f === Ie.Head && h.length >= Rt) {
18886
- const v = document.createElement("div");
18887
- return v.className = "plv-chat-message-list__tips", v.textContent = n("chat.noMore"), v;
18888
- }
18889
- },
18890
- renderEmpty: () => {
18891
- const f = document.createElement("div");
18892
- return f.className = "plv-chat-message-list__tips", f.textContent = n("chat.empty"), f;
18893
- }
18901
+ renderBoundary: a,
18902
+ renderEmpty: l
18894
18903
  };
18895
18904
  }, Rh = (r) => {
18896
18905
  let n = [];
@@ -22430,8 +22439,8 @@ const l_ = Xg.exports, c_ = "PolyvChatUI";
22430
22439
  console.log(
22431
22440
  "%c@polyv/chat-ui",
22432
22441
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
22433
- "[version: 2.0.0-rc-20250925.1]",
22434
- "[buildTime: 2025-09-25 03:16:35]"
22442
+ "[version: 2.0.0-rc-20250925.2]",
22443
+ "[buildTime: 2025-09-25 10:27:12]"
22435
22444
  );
22436
22445
  export {
22437
22446
  lg as BanList,