@bcc-code/vue-bcc-chat-ui 3.17.1 → 3.18.0

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.
@@ -3,7 +3,7 @@ var ES = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var cke = (e, t, n) => t in e ? uke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var Xn = (e, t, n) => cke(e, typeof t != "symbol" ? t + "" : t, n), CS = (e, t, n) => t.has(e) || ES("Cannot " + n);
6
+ var qn = (e, t, n) => cke(e, typeof t != "symbol" ? t + "" : t, n), CS = (e, t, n) => t.has(e) || ES("Cannot " + n);
7
7
  var Li = (e, t, n) => (CS(e, t, "read from private field"), n ? n.call(e) : t.get(e)), pS = (e, t, n) => t.has(e) ? ES("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
8
8
  var Ir = (e, t, n) => (CS(e, t, "access private method"), n);
9
9
  import { defineComponent as Qt, ref as ae, onBeforeMount as hr, watch as Vr, inject as Tn, onMounted as gr, onUpdated as _0, onBeforeUnmount as mr, nextTick as oo, computed as Hn, reactive as Np, onUnmounted as Uu, onBeforeUpdate as Oa, getCurrentInstance as f0, openBlock as U, createElementBlock as F, createCommentVNode as Ve, normalizeStyle as it, createBlock as vt, resolveDynamicComponent as wt, mergeProps as Ot, toHandlers as Nt, withCtx as ft, Fragment as mt, renderList as _t, createElementVNode as Se, resolveComponent as pn, createVNode as Nn, toDisplayString as Jn, withDirectives as mu, vShow as vu, createTextVNode as Dp, renderSlot as dke, createSlots as o0, normalizeProps as c0, normalizeClass as Js, KeepAlive as gke, pushScopeId as Kv, popScopeId as Qv, triggerRef as hke, unref as tr, provide as Eke, watchEffect as Cke } from "vue";
@@ -9402,7 +9402,7 @@ var te = {}, d = {}, Zv = { exports: {} };
9402
9402
  }]);
9403
9403
  });
9404
9404
  })(Zv);
9405
- var Z = Zv.exports, qv = {}, qn = {}, ol = {}, Wn = {};
9405
+ var Z = Zv.exports, qv = {}, Xn = {}, ol = {}, Wn = {};
9406
9406
  Object.defineProperty(Wn, "__esModule", { value: !0 });
9407
9407
  Wn.isFunction = void 0;
9408
9408
  function fke(e) {
@@ -9841,8 +9841,8 @@ function eA(e) {
9841
9841
  };
9842
9842
  }
9843
9843
  Ma.pipeFromArray = eA;
9844
- Object.defineProperty(qn, "__esModule", { value: !0 });
9845
- qn.Observable = void 0;
9844
+ Object.defineProperty(Xn, "__esModule", { value: !0 });
9845
+ Xn.Observable = void 0;
9846
9846
  var sp = ol, Fke = fr, zke = Zi, $ke = Ma, Vke = ai, NC = Wn, Yke = Xa, Hke = function() {
9847
9847
  function e(t) {
9848
9848
  t && (this._subscribe = t);
@@ -9903,7 +9903,7 @@ var sp = ol, Fke = fr, zke = Zi, $ke = Ma, Vke = ai, NC = Wn, Yke = Xa, Hke = fu
9903
9903
  return new e(t);
9904
9904
  }, e;
9905
9905
  }();
9906
- qn.Observable = Hke;
9906
+ Xn.Observable = Hke;
9907
9907
  function yS(e) {
9908
9908
  var t;
9909
9909
  return (t = e ?? Vke.config.Promise) !== null && t !== void 0 ? t : Promise;
@@ -10037,7 +10037,7 @@ var rUe = $e && $e.__extends || /* @__PURE__ */ function() {
10037
10037
  }();
10038
10038
  Object.defineProperty(qi, "__esModule", { value: !0 });
10039
10039
  qi.ConnectableObservable = void 0;
10040
- var oUe = qn, _S = fr, aUe = Gu, iUe = Xt, sUe = Ft, lUe = function(e) {
10040
+ var oUe = Xn, _S = fr, aUe = Gu, iUe = Xt, sUe = Ft, lUe = function(e) {
10041
10041
  rUe(t, e);
10042
10042
  function t(n, r) {
10043
10043
  var o = e.call(this) || this;
@@ -10133,7 +10133,7 @@ var xp = {};
10133
10133
  })(xp);
10134
10134
  Object.defineProperty(O0, "__esModule", { value: !0 });
10135
10135
  O0.animationFrames = void 0;
10136
- var uUe = qn, cUe = rA, fS = xp;
10136
+ var uUe = Xn, cUe = rA, fS = xp;
10137
10137
  function dUe(e) {
10138
10138
  return e ? oA(e) : gUe;
10139
10139
  }
@@ -10193,7 +10193,7 @@ var aA = $e && $e.__extends || /* @__PURE__ */ function() {
10193
10193
  };
10194
10194
  Object.defineProperty(Sr, "__esModule", { value: !0 });
10195
10195
  Sr.AnonymousSubject = Sr.Subject = void 0;
10196
- var MS = qn, lp = fr, CUe = ju, pUe = ko, DC = Xa, iA = function(e) {
10196
+ var MS = Xn, lp = fr, CUe = ju, pUe = ko, DC = Xa, iA = function(e) {
10197
10197
  aA(t, e);
10198
10198
  function t() {
10199
10199
  var n = e.call(this) || this;
@@ -11000,7 +11000,7 @@ qs.VirtualAction = hA;
11000
11000
  var U0 = {}, _o = {};
11001
11001
  (function(e) {
11002
11002
  Object.defineProperty(e, "__esModule", { value: !0 }), e.empty = e.EMPTY = void 0;
11003
- var t = qn;
11003
+ var t = Xn;
11004
11004
  e.EMPTY = new t.Observable(function(o) {
11005
11005
  return o.complete();
11006
11006
  });
@@ -11342,7 +11342,7 @@ var D5e = $e && $e.__awaiter || function(e, t, n, r) {
11342
11342
  };
11343
11343
  Object.defineProperty(Cn, "__esModule", { value: !0 });
11344
11344
  Cn.fromReadableStreamLike = Cn.fromAsyncIterable = Cn.fromIterable = Cn.fromPromise = Cn.fromArrayLike = Cn.fromInteropObservable = Cn.innerFrom = void 0;
11345
- var w5e = ll, x5e = Vu, ul = qn, k5e = Yu, U5e = Hu, P5e = Wu, B5e = Ku, CA = ei, G5e = Wn, j5e = Bu, F5e = Zi;
11345
+ var w5e = ll, x5e = Vu, ul = Xn, k5e = Yu, U5e = Hu, P5e = Wu, B5e = Ku, CA = ei, G5e = Wn, j5e = Bu, F5e = Zi;
11346
11346
  function z5e(e) {
11347
11347
  if (e instanceof ul.Observable)
11348
11348
  return e;
@@ -11525,7 +11525,7 @@ B0.schedulePromise = rPe;
11525
11525
  var G0 = {};
11526
11526
  Object.defineProperty(G0, "__esModule", { value: !0 });
11527
11527
  G0.scheduleArray = void 0;
11528
- var oPe = qn;
11528
+ var oPe = Xn;
11529
11529
  function aPe(e, t) {
11530
11530
  return new oPe.Observable(function(n) {
11531
11531
  var r = 0;
@@ -11538,7 +11538,7 @@ G0.scheduleArray = aPe;
11538
11538
  var Qu = {};
11539
11539
  Object.defineProperty(Qu, "__esModule", { value: !0 });
11540
11540
  Qu.scheduleIterable = void 0;
11541
- var iPe = qn, sPe = Yi, lPe = Wn, LS = Po;
11541
+ var iPe = Xn, sPe = Yi, lPe = Wn, LS = Po;
11542
11542
  function uPe(e, t) {
11543
11543
  return new iPe.Observable(function(n) {
11544
11544
  var r;
@@ -11562,7 +11562,7 @@ Qu.scheduleIterable = uPe;
11562
11562
  var Ju = {};
11563
11563
  Object.defineProperty(Ju, "__esModule", { value: !0 });
11564
11564
  Ju.scheduleAsyncIterable = void 0;
11565
- var cPe = qn, wS = Po;
11565
+ var cPe = Xn, wS = Po;
11566
11566
  function dPe(e, t) {
11567
11567
  if (!e)
11568
11568
  throw new Error("Iterable cannot be null");
@@ -11627,7 +11627,7 @@ sl.of = xPe;
11627
11627
  var Zu = {};
11628
11628
  Object.defineProperty(Zu, "__esModule", { value: !0 });
11629
11629
  Zu.throwError = void 0;
11630
- var kPe = qn, UPe = Wn;
11630
+ var kPe = Xn, UPe = Wn;
11631
11631
  function PPe(e, t) {
11632
11632
  var n = UPe.isFunction(e) ? e : function() {
11633
11633
  return e;
@@ -11684,7 +11684,7 @@ Zu.throwError = PPe;
11684
11684
  var F0 = {};
11685
11685
  Object.defineProperty(F0, "__esModule", { value: !0 });
11686
11686
  F0.isObservable = void 0;
11687
- var BPe = qn, xS = Wn;
11687
+ var BPe = Xn, xS = Wn;
11688
11688
  function GPe(e) {
11689
11689
  return !!e && (e instanceof BPe.Observable || xS.isFunction(e.lift) && xS.isFunction(e.subscribe));
11690
11690
  }
@@ -11878,7 +11878,7 @@ var a8e = $e && $e.__read || function(e, t) {
11878
11878
  };
11879
11879
  Object.defineProperty(tc, "__esModule", { value: !0 });
11880
11880
  tc.bindCallbackInternals = void 0;
11881
- var i8e = Xi, s8e = qn, l8e = ts, u8e = aa, c8e = es, d8e = il;
11881
+ var i8e = Xi, s8e = Xn, l8e = ts, u8e = aa, c8e = es, d8e = il;
11882
11882
  function dp(e, t, n, r) {
11883
11883
  if (n)
11884
11884
  if (i8e.isScheduler(n))
@@ -11973,7 +11973,7 @@ function T8e(e, t) {
11973
11973
  rc.createObject = T8e;
11974
11974
  Object.defineProperty(ti, "__esModule", { value: !0 });
11975
11975
  ti.combineLatestInit = ti.combineLatest = void 0;
11976
- var y8e = qn, _8e = nc, IA = Uo, TA = Or, f8e = aa, US = Tr, M8e = rc, O8e = Xt, b8e = Po;
11976
+ var y8e = Xn, _8e = nc, IA = Uo, TA = Or, f8e = aa, US = Tr, M8e = rc, O8e = Xt, b8e = Po;
11977
11977
  function N8e() {
11978
11978
  for (var e = [], t = 0; t < arguments.length; t++)
11979
11979
  e[t] = arguments[t];
@@ -12086,7 +12086,7 @@ ns.concat = H8e;
12086
12086
  var H0 = {}, os = {};
12087
12087
  Object.defineProperty(os, "__esModule", { value: !0 });
12088
12088
  os.defer = void 0;
12089
- var W8e = qn, K8e = Cn;
12089
+ var W8e = Xn, K8e = Cn;
12090
12090
  function Q8e(e) {
12091
12091
  return new W8e.Observable(function(t) {
12092
12092
  K8e.innerFrom(e()).subscribe(t);
@@ -12095,7 +12095,7 @@ function Q8e(e) {
12095
12095
  os.defer = Q8e;
12096
12096
  Object.defineProperty(H0, "__esModule", { value: !0 });
12097
12097
  H0.connectable = void 0;
12098
- var J8e = Sr, Z8e = qn, q8e = os, X8e = {
12098
+ var J8e = Sr, Z8e = Xn, q8e = os, X8e = {
12099
12099
  connector: function() {
12100
12100
  return new J8e.Subject();
12101
12101
  },
@@ -12118,7 +12118,7 @@ H0.connectable = e6e;
12118
12118
  var W0 = {};
12119
12119
  Object.defineProperty(W0, "__esModule", { value: !0 });
12120
12120
  W0.forkJoin = void 0;
12121
- var t6e = qn, n6e = nc, r6e = Cn, o6e = Tr, a6e = Xt, i6e = aa, s6e = rc;
12121
+ var t6e = Xn, n6e = nc, r6e = Cn, o6e = Tr, a6e = Xt, i6e = aa, s6e = rc;
12122
12122
  function l6e() {
12123
12123
  for (var e = [], t = 0; t < arguments.length; t++)
12124
12124
  e[t] = arguments[t];
@@ -12162,7 +12162,7 @@ var K0 = {}, u6e = $e && $e.__read || function(e, t) {
12162
12162
  };
12163
12163
  Object.defineProperty(K0, "__esModule", { value: !0 });
12164
12164
  K0.fromEvent = void 0;
12165
- var c6e = Cn, d6e = qn, g6e = Bo, h6e = ll, Hi = Wn, E6e = aa, C6e = ["addListener", "removeListener"], p6e = ["addEventListener", "removeEventListener"], S6e = ["on", "off"];
12165
+ var c6e = Cn, d6e = Xn, g6e = Bo, h6e = ll, Hi = Wn, E6e = aa, C6e = ["addListener", "removeListener"], p6e = ["addEventListener", "removeEventListener"], S6e = ["on", "off"];
12166
12166
  function gp(e, t, n, r) {
12167
12167
  if (Hi.isFunction(n) && (r = n, n = void 0), r)
12168
12168
  return gp(e, t, n).pipe(E6e.mapOneOrManyArgs(r));
@@ -12208,7 +12208,7 @@ function A6e(e) {
12208
12208
  var Q0 = {};
12209
12209
  Object.defineProperty(Q0, "__esModule", { value: !0 });
12210
12210
  Q0.fromEventPattern = void 0;
12211
- var I6e = qn, T6e = Wn, y6e = aa;
12211
+ var I6e = Xn, T6e = Wn, y6e = aa;
12212
12212
  function fA(e, t, n) {
12213
12213
  return n ? fA(e, t).pipe(y6e.mapOneOrManyArgs(n)) : new I6e.Observable(function(r) {
12214
12214
  var o = function() {
@@ -12323,7 +12323,7 @@ Z0.iif = D6e;
12323
12323
  var oc = {}, sa = {};
12324
12324
  Object.defineProperty(sa, "__esModule", { value: !0 });
12325
12325
  sa.timer = void 0;
12326
- var R6e = qn, L6e = io, w6e = Xi, x6e = cl;
12326
+ var R6e = Xn, L6e = io, w6e = Xi, x6e = cl;
12327
12327
  function k6e(e, t, n) {
12328
12328
  e === void 0 && (e = 0), n === void 0 && (n = L6e.async);
12329
12329
  var r = -1;
@@ -12358,7 +12358,7 @@ q0.merge = $6e;
12358
12358
  var hp = {};
12359
12359
  (function(e) {
12360
12360
  Object.defineProperty(e, "__esModule", { value: !0 }), e.never = e.NEVER = void 0;
12361
- var t = qn, n = Mr;
12361
+ var t = Xn, n = Mr;
12362
12362
  e.NEVER = new t.Observable(n.noop);
12363
12363
  function r() {
12364
12364
  return e.NEVER;
@@ -12470,7 +12470,7 @@ ng.partition = cBe;
12470
12470
  var Wi = {};
12471
12471
  Object.defineProperty(Wi, "__esModule", { value: !0 });
12472
12472
  Wi.raceInit = Wi.race = void 0;
12473
- var dBe = qn, MA = Cn, gBe = ba, hBe = Xt;
12473
+ var dBe = Xn, MA = Cn, gBe = ba, hBe = Xt;
12474
12474
  function EBe() {
12475
12475
  for (var e = [], t = 0; t < arguments.length; t++)
12476
12476
  e[t] = arguments[t];
@@ -12496,7 +12496,7 @@ Wi.raceInit = OA;
12496
12496
  var og = {};
12497
12497
  Object.defineProperty(og, "__esModule", { value: !0 });
12498
12498
  og.range = void 0;
12499
- var CBe = qn, pBe = _o;
12499
+ var CBe = Xn, pBe = _o;
12500
12500
  function SBe(e, t, n) {
12501
12501
  if (t == null && (t = e, e = 0), t <= 0)
12502
12502
  return pBe.EMPTY;
@@ -12516,7 +12516,7 @@ og.range = SBe;
12516
12516
  var ag = {};
12517
12517
  Object.defineProperty(ag, "__esModule", { value: !0 });
12518
12518
  ag.using = void 0;
12519
- var mBe = qn, vBe = Cn, ABe = _o;
12519
+ var mBe = Xn, vBe = Cn, ABe = _o;
12520
12520
  function IBe(e, t) {
12521
12521
  return new mBe.Observable(function(n) {
12522
12522
  var r = e(), o = t(r), i = o ? vBe.innerFrom(o) : ABe.EMPTY;
@@ -12549,7 +12549,7 @@ var hl = {}, TBe = $e && $e.__read || function(e, t) {
12549
12549
  };
12550
12550
  Object.defineProperty(hl, "__esModule", { value: !0 });
12551
12551
  hl.zip = void 0;
12552
- var _Be = qn, fBe = Cn, MBe = ba, OBe = _o, bBe = Xt, NBe = Tr;
12552
+ var _Be = Xn, fBe = Cn, MBe = ba, OBe = _o, bBe = Xt, NBe = Tr;
12553
12553
  function DBe() {
12554
12554
  for (var e = [], t = 0; t < arguments.length; t++)
12555
12555
  e[t] = arguments[t];
@@ -13059,7 +13059,7 @@ Sg.concatWith = e9e;
13059
13059
  var El = {}, vg = {};
13060
13060
  Object.defineProperty(vg, "__esModule", { value: !0 });
13061
13061
  vg.fromSubscribable = void 0;
13062
- var t9e = qn;
13062
+ var t9e = Xn;
13063
13063
  function n9e(e) {
13064
13064
  return new t9e.Observable(function(t) {
13065
13065
  return e.subscribe(t);
@@ -13459,7 +13459,7 @@ xg.first = Fje;
13459
13459
  var kg = {};
13460
13460
  Object.defineProperty(kg, "__esModule", { value: !0 });
13461
13461
  kg.groupBy = void 0;
13462
- var zje = qn, $je = Cn, Vje = Sr, Yje = Ft, sm = Xt;
13462
+ var zje = Xn, $je = Cn, Vje = Sr, Yje = Ft, sm = Xt;
13463
13463
  function Hje(e, t, n, r) {
13464
13464
  return Yje.operate(function(o, i) {
13465
13465
  var a;
@@ -14754,7 +14754,7 @@ Nh.zipWith = G$e;
14754
14754
  for (var ur in lo) ur !== "default" && !Object.prototype.hasOwnProperty.call(br, ur) && t(br, lo, ur);
14755
14755
  };
14756
14756
  Object.defineProperty(e, "__esModule", { value: !0 }), e.interval = e.iif = e.generate = e.fromEventPattern = e.fromEvent = e.from = e.forkJoin = e.empty = e.defer = e.connectable = e.concat = e.combineLatest = e.bindNodeCallback = e.bindCallback = e.UnsubscriptionError = e.TimeoutError = e.SequenceError = e.ObjectUnsubscribedError = e.NotFoundError = e.EmptyError = e.ArgumentOutOfRangeError = e.firstValueFrom = e.lastValueFrom = e.isObservable = e.identity = e.noop = e.pipe = e.NotificationKind = e.Notification = e.Subscriber = e.Subscription = e.Scheduler = e.VirtualAction = e.VirtualTimeScheduler = e.animationFrameScheduler = e.animationFrame = e.queueScheduler = e.queue = e.asyncScheduler = e.async = e.asapScheduler = e.asap = e.AsyncSubject = e.ReplaySubject = e.BehaviorSubject = e.Subject = e.animationFrames = e.observable = e.ConnectableObservable = e.Observable = void 0, e.filter = e.expand = e.exhaustMap = e.exhaustAll = e.exhaust = e.every = e.endWith = e.elementAt = e.distinctUntilKeyChanged = e.distinctUntilChanged = e.distinct = e.dematerialize = e.delayWhen = e.delay = e.defaultIfEmpty = e.debounceTime = e.debounce = e.count = e.connect = e.concatWith = e.concatMapTo = e.concatMap = e.concatAll = e.combineLatestWith = e.combineLatestAll = e.combineAll = e.catchError = e.bufferWhen = e.bufferToggle = e.bufferTime = e.bufferCount = e.buffer = e.auditTime = e.audit = e.config = e.NEVER = e.EMPTY = e.scheduled = e.zip = e.using = e.timer = e.throwError = e.range = e.race = e.partition = e.pairs = e.onErrorResumeNext = e.of = e.never = e.merge = void 0, e.switchMapTo = e.switchMap = e.switchAll = e.subscribeOn = e.startWith = e.skipWhile = e.skipUntil = e.skipLast = e.skip = e.single = e.shareReplay = e.share = e.sequenceEqual = e.scan = e.sampleTime = e.sample = e.refCount = e.retryWhen = e.retry = e.repeatWhen = e.repeat = e.reduce = e.raceWith = e.publishReplay = e.publishLast = e.publishBehavior = e.publish = e.pluck = e.pairwise = e.observeOn = e.multicast = e.min = e.mergeWith = e.mergeScan = e.mergeMapTo = e.mergeMap = e.flatMap = e.mergeAll = e.max = e.materialize = e.mapTo = e.map = e.last = e.isEmpty = e.ignoreElements = e.groupBy = e.first = e.findIndex = e.find = e.finalize = void 0, e.zipWith = e.zipAll = e.withLatestFrom = e.windowWhen = e.windowToggle = e.windowTime = e.windowCount = e.window = e.toArray = e.timestamp = e.timeoutWith = e.timeout = e.timeInterval = e.throwIfEmpty = e.throttleTime = e.throttle = e.tap = e.takeWhile = e.takeUntil = e.takeLast = e.take = e.switchScan = void 0;
14757
- var r = qn;
14757
+ var r = Xn;
14758
14758
  Object.defineProperty(e, "Observable", { enumerable: !0, get: function() {
14759
14759
  return r.Observable;
14760
14760
  } });
@@ -73977,8 +73977,8 @@ const Bit = async (e) => {
73977
73977
  class jit extends Pr {
73978
73978
  constructor(n, { configuration: r }) {
73979
73979
  super(n);
73980
- Xn(this, "configuration");
73981
- Xn(this, "newDataSource");
73980
+ qn(this, "configuration");
73981
+ qn(this, "newDataSource");
73982
73982
  this.newDataSource = n, this.configuration = r;
73983
73983
  }
73984
73984
  getBccReplyOption(n) {
@@ -74009,9 +74009,9 @@ class jit extends Pr {
74009
74009
  }
74010
74010
  class Fit {
74011
74011
  constructor(t) {
74012
- Xn(this, "style");
74013
- Xn(this, "optionIconURL");
74014
- Xn(this, "optionStyle");
74012
+ qn(this, "style");
74013
+ qn(this, "optionIconURL");
74014
+ qn(this, "optionStyle");
74015
74015
  this.style = t.style, this.optionIconURL = t.optionIconURL, this.optionStyle = t.optionStyle;
74016
74016
  }
74017
74017
  getReplyPreviewStyle() {
@@ -74030,7 +74030,7 @@ function zit(e) {
74030
74030
  class $it extends so {
74031
74031
  constructor({ configuration: n } = { configuration: new Fit({}) }) {
74032
74032
  super();
74033
- Xn(this, "configuration");
74033
+ qn(this, "configuration");
74034
74034
  this.configuration = n;
74035
74035
  }
74036
74036
  enable() {
@@ -74252,7 +74252,7 @@ var kn, Sp, $s, mp, s0, vp, l0, Ap, Ip, Tp, yp;
74252
74252
  class tst {
74253
74253
  constructor(t = "cometchat") {
74254
74254
  pS(this, kn);
74255
- Xn(this, "storePrefix");
74255
+ qn(this, "storePrefix");
74256
74256
  this.storePrefix = t;
74257
74257
  }
74258
74258
  getGroupMessages(t, n) {
@@ -74399,11 +74399,11 @@ async function lst() {
74399
74399
  return du ? await du : (du = ust(), Du.value = await du, du = void 0, Du.value);
74400
74400
  }
74401
74401
  function Gh(e, t) {
74402
- var r, o, i, a, u, c, l, g;
74403
- if (!(e != null && e.getSender()) || t && ((o = (r = t.value) == null ? void 0 : r.getMetadata()) != null && o.isChannel))
74402
+ var o, i, a, u, c, l, g, C, v, p;
74403
+ if (!(e != null && e.getSender()) || t && ((i = (o = t.value) == null ? void 0 : o.getMetadata()) != null && i.isChannel))
74404
74404
  return "";
74405
- let n = (u = (a = (i = e.getData().entities) == null ? void 0 : i.receiver) == null ? void 0 : a.entity) == null ? void 0 : u.scope;
74406
- return (c = e == null ? void 0 : e.getData().metadata) != null && c.senderDisplayName && (n == "moderator" || n == "admin" || n === void 0) ? (l = e == null ? void 0 : e.getData().metadata) == null ? void 0 : l.senderDisplayName : (g = e == null ? void 0 : e.getSender()) == null ? void 0 : g.getName();
74405
+ let n = (c = (u = (a = e.getData().entities) == null ? void 0 : a.receiver) == null ? void 0 : u.entity) == null ? void 0 : c.scope, r = (l = e.getReceiver().getMetadata()) == null ? void 0 : l.systemDisplayName;
74406
+ return e instanceof Z.CometChat.Action && (r = (g = e.getActionFor().getMetadata()) == null ? void 0 : g.systemDisplayName), (C = e == null ? void 0 : e.getData().metadata) != null && C.senderDisplayName && (n == "moderator" || n === void 0) ? (v = e == null ? void 0 : e.getData().metadata) == null ? void 0 : v.senderDisplayName : r && (e instanceof Z.CometChat.Action || n == "admin") ? r : (p = e == null ? void 0 : e.getSender()) == null ? void 0 : p.getName();
74407
74407
  }
74408
74408
  async function ust() {
74409
74409
  if (!await Xp())
@@ -74434,26 +74434,31 @@ async function ust() {
74434
74434
  }));
74435
74435
  }
74436
74436
  function eS(e, t = !1, n = !0) {
74437
+ var r;
74437
74438
  if (!e) return "";
74438
74439
  if ((e == null ? void 0 : e.getDeletedAt()) != null) return "(" + d.localize("MESSAGE_IS_DELETED") + ")";
74439
74440
  if (e instanceof Z.CometChat.TextMessage)
74440
74441
  return e.getText();
74441
74442
  if (e instanceof Z.CometChat.MediaMessage) {
74442
- let r, o = n ? e.getAttachment().getName() : "";
74443
+ let o, i = n ? e.getAttachment().getName() : "";
74443
74444
  switch (e.getType()) {
74444
74445
  case "media":
74445
- return r = t ? "🖼️ " : "", r + (e.getCaption() || o || "Media message");
74446
+ return o = t ? "🖼️ " : "", o + (e.getCaption() || i || "Media message");
74446
74447
  case d.CometChatUIKitConstants.MessageTypes.image:
74447
- return r = t ? "🖼️ " : "", r + (e.getCaption() || "Photo");
74448
+ return o = t ? "🖼️ " : "", o + (e.getCaption() || "Photo");
74448
74449
  case d.CometChatUIKitConstants.MessageTypes.video:
74449
- return r = t ? "🎥 " : "", r + (e.getCaption() || o || "Video");
74450
+ return o = t ? "🎥 " : "", o + (e.getCaption() || i || "Video");
74450
74451
  case d.CometChatUIKitConstants.MessageTypes.audio:
74451
- return r = t ? "🎤 " : "", r + (o || "Audio message");
74452
+ return o = t ? "🎤 " : "", o + (i || "Audio message");
74452
74453
  case d.CometChatUIKitConstants.MessageTypes.file:
74453
- return r = t ? "📄 " : "", r + (e.getCaption() || o || "File");
74454
+ return o = t ? "📄 " : "", o + (e.getCaption() || i || "File");
74454
74455
  }
74455
74456
  }
74456
- return e instanceof Z.CometChat.Action ? e.getMessage() : "Custom message";
74457
+ if (e instanceof Z.CometChat.Action) {
74458
+ let o = (r = e.getActionFor().getMetadata()) == null ? void 0 : r.systemDisplayName, i = e.getMessage();
74459
+ return o != null && (i = i.replace(e.getActionBy().getName(), o)), i;
74460
+ }
74461
+ return "Custom message";
74457
74462
  }
74458
74463
  function Ru(e) {
74459
74464
  return e && e.startsWith("https://data-eu.cometchat.io/") && (e = `${ta().chatApiBaseUrl}/file-proxy?uri=${e}`), e;
@@ -78068,17 +78073,17 @@ var Cct = dT();
78068
78073
  class gT extends te.BaseStyle {
78069
78074
  constructor(n, r) {
78070
78075
  super({});
78071
- Xn(this, "titleFont");
78072
- Xn(this, "titleColor");
78073
- Xn(this, "subtitleFont");
78074
- Xn(this, "subtitleColor");
78075
- Xn(this, "closeButtonIconTint");
78076
- Xn(this, "barLeftPosition");
78077
- Xn(this, "barWidth");
78078
- Xn(this, "barBackground");
78079
- Xn(this, "barOpacity");
78080
- Xn(this, "previewWrapperPadding");
78081
- Xn(this, "previewWrapperOpacity");
78076
+ qn(this, "titleFont");
78077
+ qn(this, "titleColor");
78078
+ qn(this, "subtitleFont");
78079
+ qn(this, "subtitleColor");
78080
+ qn(this, "closeButtonIconTint");
78081
+ qn(this, "barLeftPosition");
78082
+ qn(this, "barWidth");
78083
+ qn(this, "barBackground");
78084
+ qn(this, "barOpacity");
78085
+ qn(this, "previewWrapperPadding");
78086
+ qn(this, "previewWrapperOpacity");
78082
78087
  this.border = `1px solid ${r.palette.getAccent200()}`, this.borderRadius = "12px", this.background = r.palette.getBackground(), this.titleFont = d.fontHelper(r.typography.subtitle1), this.titleColor = r.palette.getAccent(), this.subtitleFont = d.fontHelper(r.typography.subtitle2), this.subtitleColor = r.palette.getAccent600(), this.closeButtonIconTint = r.palette.getAccent500(), this.barLeftPosition = "3px", this.barWidth = "3px", this.barBackground = r.palette.getAccent(), this.barOpacity = "0.5", Object.assign(this, n);
78083
78088
  }
78084
78089
  }
@@ -79371,9 +79376,11 @@ const adt = /* @__PURE__ */ _ke(tdt), idt = { class: "cc__imageviewer__full-scre
79371
79376
  }), Rdt = /* @__PURE__ */ Da(Ddt, [["__scopeId", "data-v-c653dd5e"]]);
79372
79377
  class Ldt extends Pr {
79373
79378
  constructor(n) {
79379
+ var r;
79374
79380
  super(n);
79375
- Xn(this, "newDataSource");
79376
- this.newDataSource = n;
79381
+ qn(this, "newDataSource");
79382
+ qn(this, "mainDataSource");
79383
+ for (this.newDataSource = n, this.mainDataSource = st.getDataSource(); (r = this.mainDataSource) != null && r.dataSource; ) this.mainDataSource = this.mainDataSource.dataSource;
79377
79384
  }
79378
79385
  getMessageOptions(n, r, o, i) {
79379
79386
  return super.getMessageOptions(n, r, o, i).filter(
@@ -79406,6 +79413,26 @@ class Ldt extends Pr {
79406
79413
  }
79407
79414
  };
79408
79415
  }
79416
+ getGroupActionTemplate(n) {
79417
+ const r = super.getGroupActionTemplate(n);
79418
+ return r.contentView = (o) => this.getGroupActionBubble(o, n), r;
79419
+ }
79420
+ getGroupActionBubble(n, r) {
79421
+ var u;
79422
+ let o = this.mainDataSource.getActionMessage(n), i = (u = n.getActionFor().getMetadata()) == null ? void 0 : u.systemDisplayName;
79423
+ i != null && (o = o.replace(n.getActionBy().getName(), i));
79424
+ let a = {
79425
+ textFont: d.fontHelper(r.typography.subtitle2),
79426
+ textColor: r.palette.getAccent()
79427
+ };
79428
+ return {
79429
+ componentName: "CometChatTextBubble",
79430
+ props: {
79431
+ text: o,
79432
+ textStyle: a
79433
+ }
79434
+ };
79435
+ }
79409
79436
  checkIfOptionExist(n, r) {
79410
79437
  return n.some((o) => o.id === r);
79411
79438
  }
@@ -79522,9 +79549,9 @@ const Vi = ae(new d.CometChatTheme({
79522
79549
  class kdt extends Pr {
79523
79550
  constructor(n) {
79524
79551
  super(n);
79525
- Xn(this, "newDataSource");
79526
- Xn(this, "captionedAttachmentInput");
79527
- Xn(this, "chatInstance");
79552
+ qn(this, "newDataSource");
79553
+ qn(this, "captionedAttachmentInput");
79554
+ qn(this, "chatInstance");
79528
79555
  this.newDataSource = n, this.captionedAttachmentInput = document.createElement("input"), this.captionedAttachmentInput.style.display = "none", this.captionedAttachmentInput.type = "file", this.captionedAttachmentInput.accept = "image/*", this.captionedAttachmentInput.addEventListener("change", (r) => this.changeHandler(r));
79529
79556
  }
79530
79557
  getCaptionedImageAttachmentAction(n) {
@@ -80155,11 +80182,11 @@ const _a = {
80155
80182
  });
80156
80183
  class xi {
80157
80184
  constructor() {
80158
- Xn(this, "html");
80159
- Xn(this, "componentName");
80160
- Xn(this, "props");
80161
- Xn(this, "slots");
80162
- Xn(this, "listeners");
80185
+ qn(this, "html");
80186
+ qn(this, "componentName");
80187
+ qn(this, "props");
80188
+ qn(this, "slots");
80189
+ qn(this, "listeners");
80163
80190
  }
80164
80191
  }
80165
80192
  const qdt = Qt({
@@ -80507,7 +80534,7 @@ const d0t = /* @__PURE__ */ Qt({
80507
80534
  var p, S;
80508
80535
  if (v === d.MessageStatus.inprogress) {
80509
80536
  let T = (C == null ? void 0 : C.getMetadata()) || {}, I = (p = r.value) == null ? void 0 : p.getScope();
80510
- o.value.replyToMessage && (T.replyToMessageId = (S = o.value.replyToMessage) == null ? void 0 : S.getId(), o.value.replyToMessage = null), t.senderDisplayName && (I == "moderator" || I == "admin") && (T.senderDisplayName = t.senderDisplayName), C == null || C.setMetadata(T);
80537
+ o.value.replyToMessage && (T.replyToMessageId = (S = o.value.replyToMessage) == null ? void 0 : S.getId(), o.value.replyToMessage = null), t.senderDisplayName && I == "moderator" && (T.senderDisplayName = t.senderDisplayName), C == null || C.setMetadata(T);
80511
80538
  }
80512
80539
  });
80513
80540
  Cke(() => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bcc-code/vue-bcc-chat-ui",
3
3
  "author": "bcc-code",
4
4
  "license": "Apache-2.0",
5
- "version": "3.17.1",
5
+ "version": "3.18.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -58,7 +58,7 @@ const onMessageSend = CometChatMessageEvents.ccMessageSent.subscribe(({ message,
58
58
  chatInstance.value.replyToMessage = null;
59
59
  }
60
60
 
61
- if (props.senderDisplayName && (scope == "moderator" || scope == "admin")) {
61
+ if (props.senderDisplayName && scope == "moderator") {
62
62
  metadata.senderDisplayName = props.senderDisplayName
63
63
  }
64
64