@paramms/chat-widget 1.0.32 → 1.0.33

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/dist/react.js CHANGED
@@ -1,205 +1,208 @@
1
- import { jsxs as M, jsx as p, Fragment as B } from "react/jsx-runtime";
2
- import { useState as F, useRef as j, useEffect as _ } from "react";
1
+ import { jsxs as W, jsx as p, Fragment as k } from "react/jsx-runtime";
2
+ import { useState as D, useRef as M, useEffect as z } from "react";
3
3
  import { mount as H } from "./index.js";
4
- function E({
5
- url: w,
6
- apiUrl: i,
4
+ function P({
5
+ url: g,
6
+ apiUrl: l,
7
7
  profileId: v,
8
- token: r,
9
- refreshToken: g,
10
- userId: e,
8
+ token: d,
9
+ refreshToken: w,
10
+ userId: n,
11
11
  userName: c,
12
- userEmail: d,
13
- userAvatar: s,
12
+ userEmail: s,
13
+ userAvatar: f,
14
14
  contextTitle: x,
15
- contextSubtitle: m,
16
- contextStatus: C,
15
+ contextSubtitle: y,
16
+ contextStatus: R,
17
17
  subjectId: t,
18
18
  accent: b,
19
- launcher: f,
20
- position: n,
21
- quickReplies: h,
22
- height: y = "100%",
23
- i18n: u,
24
- translateLang: R
19
+ launcher: h,
20
+ position: i,
21
+ quickReplies: u,
22
+ height: m = "100%",
23
+ i18n: a,
24
+ translateLang: C
25
25
  }) {
26
- const l = j(null), o = j(null);
27
- return _(() => {
28
- var a;
29
- if (l.current)
30
- return (a = o.current) == null || a.close(), o.current = H({
31
- el: l.current,
32
- url: w,
33
- ...i ? { apiUrl: i } : {},
26
+ const r = M(null), o = M(null);
27
+ return z(() => {
28
+ var e;
29
+ if (r.current)
30
+ return (e = o.current) == null || e.close(), o.current = H({
31
+ el: r.current,
32
+ url: g,
33
+ ...l ? { apiUrl: l } : {},
34
34
  profileId: v,
35
35
  ...t ? { subjectId: t } : {},
36
- ...r ? { token: r } : {},
37
- ...g ? { refreshToken: g } : {},
38
- ...e ? { userId: e } : {},
39
- ...e || c || d || s ? {
36
+ ...d ? { token: d } : {},
37
+ ...w ? { refreshToken: w } : {},
38
+ ...n ? { userId: n } : {},
39
+ ...n || c || s || f ? {
40
40
  user: {
41
41
  ...c ? { name: c } : {},
42
- ...d ? { email: d } : {},
43
- ...s ? { avatar: s } : {}
42
+ ...s ? { email: s } : {},
43
+ ...f ? { avatar: f } : {}
44
44
  }
45
45
  } : {},
46
46
  ...x ? {
47
47
  subject: {
48
48
  title: x,
49
- ...m ? { subtitle: m } : {},
50
- ...C ? { status: C } : {}
49
+ ...y ? { subtitle: y } : {},
50
+ ...R ? { status: R } : {}
51
51
  }
52
52
  } : {},
53
- ...h ? { quickReplies: h } : {},
53
+ ...u ? { quickReplies: u } : {},
54
54
  ...b ? { accent: b } : {},
55
- ...R ? { translateLang: R } : {},
56
- ...u ? { i18n: u } : {},
57
- ...f ? { launcher: f, position: n ?? "bottom-right" } : {}
55
+ ...C ? { translateLang: C } : {},
56
+ ...a ? { i18n: a } : {},
57
+ ...h ? { launcher: h, position: i ?? "bottom-right" } : {}
58
58
  }), () => {
59
- var W;
60
- (W = o.current) == null || W.close(), o.current = null;
59
+ var j;
60
+ (j = o.current) == null || j.close(), o.current = null;
61
61
  };
62
- }, [w, i, v, t, r, e, c, d, b, f, n, R]), /* @__PURE__ */ p(
62
+ }, [g, l, v, t, d, n, c, s, b, h, i, C]), /* @__PURE__ */ p(
63
63
  "div",
64
64
  {
65
- ref: l,
66
- style: f ? { width: 0, height: 0, overflow: "hidden" } : { width: "100%", height: y, minHeight: y === "100%" ? "480px" : void 0 }
65
+ ref: r,
66
+ style: h ? { width: 0, height: 0, overflow: "hidden" } : { width: "100%", height: m, minHeight: m === "100%" ? "480px" : void 0 }
67
67
  }
68
68
  );
69
69
  }
70
- const k = [
70
+ const O = [
71
71
  "Is this still available?",
72
72
  "Can I schedule a viewing?",
73
73
  "What is your best price?"
74
74
  ];
75
75
  function G({
76
- url: w,
77
- apiUrl: i,
76
+ url: g,
77
+ apiUrl: l,
78
78
  profileId: v,
79
- token: r,
80
- refreshToken: g,
81
- listingId: e,
79
+ token: d,
80
+ refreshToken: w,
81
+ listingId: n,
82
82
  listingTitle: c,
83
- listingMeta: d,
84
- listingPrice: s,
83
+ listingMeta: s,
84
+ listingPrice: f,
85
85
  listingStatus: x,
86
- userId: m,
87
- userName: C,
86
+ userId: y,
87
+ userName: R,
88
88
  userEmail: t,
89
89
  userAvatar: b,
90
- accent: f,
91
- launcher: n,
92
- position: h,
93
- quickReplies: y,
94
- height: u = "100%",
95
- i18n: R,
96
- translateLang: l
90
+ accent: h,
91
+ launcher: i,
92
+ position: u,
93
+ quickReplies: m,
94
+ height: a = "100%",
95
+ i18n: C,
96
+ translateLang: r
97
97
  }) {
98
- const o = j(null), a = j(null);
99
- return _(() => {
98
+ const o = M(null), e = M(null);
99
+ return z(() => {
100
100
  if (!o.current) return;
101
- let W = !1;
102
- const D = setTimeout(() => {
103
- var z;
104
- W || !o.current || ((z = a.current) == null || z.close(), a.current = H({
101
+ let j = !1;
102
+ const $ = setTimeout(() => {
103
+ var L;
104
+ j || !o.current || ((L = e.current) == null || L.close(), e.current = H({
105
105
  el: o.current,
106
- url: w,
107
- ...i ? { apiUrl: i } : {},
106
+ url: g,
107
+ ...l ? { apiUrl: l } : {},
108
108
  profileId: v,
109
- ...e ? { subjectId: `listing_${e}` } : {},
110
- ...r ? { token: r } : {},
111
- ...g ? { refreshToken: g } : {},
112
- ...m ? { userId: m } : {},
113
- ...m || C || t || b ? {
109
+ ...n ? { subjectId: `listing_${n}` } : {},
110
+ ...d ? { token: d } : {},
111
+ ...w ? { refreshToken: w } : {},
112
+ ...y ? { userId: y } : {},
113
+ ...y || R || t || b ? {
114
114
  user: {
115
- ...C ? { name: C } : {},
115
+ ...R ? { name: R } : {},
116
116
  ...t ? { email: t } : {},
117
117
  ...b ? { avatar: b } : {},
118
- ...e ? { meta: { listingId: e } } : {}
118
+ ...n ? { meta: { listingId: n } } : {}
119
119
  }
120
120
  } : {},
121
121
  ...c ? {
122
122
  subject: {
123
123
  title: c,
124
- ...d ? { subtitle: d } : {},
125
- ...s ? { tags: [`$${s.toLocaleString()}`] } : {},
124
+ ...s ? { subtitle: s } : {},
125
+ ...f ? { tags: [`$${f.toLocaleString()}`] } : {},
126
126
  ...x ? { status: x } : {}
127
127
  }
128
128
  } : {},
129
- quickReplies: y ?? k,
130
- ...f ? { accent: f } : {},
131
- ...l ? { translateLang: l } : {},
132
- ...R ? { i18n: R } : {},
133
- ...n ? { launcher: n, position: h ?? "bottom-right" } : {}
129
+ quickReplies: m ?? O,
130
+ ...h ? { accent: h } : {},
131
+ ...r ? { translateLang: r } : {},
132
+ ...C ? { i18n: C } : {},
133
+ ...i ? { launcher: i, position: u ?? "bottom-right" } : {}
134
134
  }));
135
135
  }, 0);
136
136
  return () => {
137
- var z;
138
- W = !0, clearTimeout(D), (z = a.current) == null || z.close(), a.current = null;
137
+ var L;
138
+ j = !0, clearTimeout($), (L = e.current) == null || L.close(), e.current = null;
139
139
  };
140
- }, [w, i, v, e, r, m, f, n, h, l]), /* @__PURE__ */ p(
140
+ }, [g, l, v, n, d, y, h, i, u, r]), /* @__PURE__ */ p(
141
141
  "div",
142
142
  {
143
143
  ref: o,
144
- style: n ? { width: 0, height: 0, overflow: "hidden" } : { width: "100%", height: u, minHeight: u === "100%" ? "480px" : void 0 }
144
+ style: i ? { width: 0, height: 0, overflow: "hidden" } : { width: "100%", height: a, minHeight: a === "100%" ? "480px" : void 0 }
145
145
  }
146
146
  );
147
147
  }
148
- function A({
149
- url: w,
150
- apiUrl: i,
148
+ function B({
149
+ url: g,
150
+ apiUrl: l,
151
151
  profileId: v,
152
- token: r,
153
- refreshToken: g,
154
- userId: e,
152
+ token: d,
153
+ refreshToken: w,
154
+ userId: n,
155
155
  userName: c,
156
- userEmail: d,
157
- accent: s,
156
+ userEmail: s,
157
+ accent: f,
158
158
  height: x = "100%",
159
- i18n: m,
160
- scope: C = "tenant"
159
+ i18n: y,
160
+ scope: R = "tenant"
161
161
  }) {
162
- const [t, b] = F(null), f = j(null), n = j(null), h = j(null), y = j(null);
163
- _(() => {
164
- if (!f.current) return;
165
- let R = !1;
166
- return import("./chatlist.js").then(({ mountChatList: l }) => {
167
- R || !f.current || (h.current = l({
168
- el: f.current,
169
- url: w,
170
- ...i ? { apiUrl: i } : {},
162
+ const [t, b] = D(null), h = M(null), i = M(null), u = M(null), m = M(null);
163
+ z(() => {
164
+ if (!h.current) return;
165
+ let r = !1;
166
+ return import("./chatlist.js").then(({ mountChatList: o }) => {
167
+ r || !h.current || (u.current = o({
168
+ el: h.current,
169
+ url: g,
170
+ ...l ? { apiUrl: l } : {},
171
171
  profileId: v,
172
- scope: C,
173
- onSelect: (o) => b(o),
172
+ scope: R,
173
+ onSelect: (e) => b(e),
174
174
  // Compose (✎) opens the chatroom's general support thread — without
175
175
  // this a user with no conversations yet had an empty list and no way
176
176
  // to ever start one, which is what made ChatApp feel broken.
177
177
  onNewChat: () => b({ id: "__new__", state: "open", updatedAt: Date.now() }),
178
- ...r ? { token: r } : {},
179
- ...e ? { userId: e } : {},
180
- ...s ? { accent: s } : {},
181
- ...m ? { i18n: m } : {}
178
+ ...d ? { token: d } : {},
179
+ ...n ? { userId: n } : {},
180
+ ...f ? { accent: f } : {},
181
+ ...y ? { i18n: y } : {}
182
182
  }));
183
183
  }), () => {
184
- var l;
185
- R = !0, (l = h.current) == null || l.close(), h.current = null;
184
+ var o;
185
+ r = !0, (o = u.current) == null || o.close(), u.current = null;
186
186
  };
187
- }, [w, i, v, r, e, C]), _(() => {
188
- var l;
189
- if (!n.current || !t) return;
190
- (l = y.current) == null || l.close(), y.current = H({
191
- el: n.current,
192
- url: w,
193
- ...i ? { apiUrl: i } : {},
187
+ }, [g, l, v, d, n, R]), z(() => {
188
+ var o;
189
+ if (!i.current || !t) return;
190
+ (o = m.current) == null || o.close(), m.current = H({
191
+ el: i.current,
192
+ url: g,
193
+ ...l ? { apiUrl: l } : {},
194
194
  profileId: t.profileId ?? v,
195
- ...t.subjectId ? { subjectId: t.subjectId } : {},
196
- ...r ? { token: r } : {},
197
- ...g ? { refreshToken: g } : {},
198
- ...e ? { userId: e } : {},
199
- ...e || c || d ? {
195
+ // DM rows open as direct conversations (kind + peer). Opening them via
196
+ // their dm:… subjectId only works for the participant that OWNS the
197
+ // thread key the other side would silently fork a duplicate.
198
+ ...t.kind === "direct" && t.peerId ? { kind: "direct", peerId: t.peerId } : t.subjectId ? { subjectId: t.subjectId } : {},
199
+ ...d ? { token: d } : {},
200
+ ...w ? { refreshToken: w } : {},
201
+ ...n ? { userId: n } : {},
202
+ ...n || c || s ? {
200
203
  user: {
201
204
  ...c ? { name: c } : {},
202
- ...d ? { email: d } : {}
205
+ ...s ? { email: s } : {}
203
206
  }
204
207
  } : {},
205
208
  ...t.subjectTitle ? {
@@ -208,29 +211,33 @@ function A({
208
211
  ...t.subjectMeta ? { subtitle: t.subjectMeta } : {}
209
212
  }
210
213
  } : {},
211
- ...s ? { accent: s } : {}
214
+ ...f ? { accent: f } : {}
212
215
  });
213
- const R = setInterval(() => {
214
- var o;
215
- return (o = h.current) == null ? void 0 : o.refresh();
216
+ const r = setInterval(() => {
217
+ var e;
218
+ return (e = u.current) == null ? void 0 : e.refresh();
216
219
  }, 2e4);
217
220
  return () => {
218
- var o, a;
219
- clearInterval(R), (o = y.current) == null || o.close(), y.current = null, (a = h.current) == null || a.refresh();
221
+ var e, j;
222
+ clearInterval(r), (e = m.current) == null || e.close(), m.current = null, (j = u.current) == null || j.refresh();
220
223
  };
221
224
  }, [t == null ? void 0 : t.id]);
222
- const u = typeof window < "u" && window.innerWidth < 768;
223
- return /* @__PURE__ */ M("div", { style: { display: "flex", width: "100%", height: x, minHeight: "400px", overflow: "hidden" }, children: [
225
+ const [a, C] = D(typeof window < "u" && window.innerWidth < 768);
226
+ return z(() => {
227
+ if (typeof window > "u" || !window.matchMedia) return;
228
+ const r = window.matchMedia("(max-width: 767px)"), o = (e) => C(e.matches);
229
+ return C(r.matches), r.addEventListener("change", o), () => r.removeEventListener("change", o);
230
+ }, []), /* @__PURE__ */ W("div", { style: { display: "flex", width: "100%", height: x, minHeight: "400px", overflow: "hidden" }, children: [
224
231
  /* @__PURE__ */ p("div", { style: {
225
- width: u ? "100%" : "360px",
226
- flex: u && t ? "none" : void 0,
227
- display: u && t ? "none" : "flex",
232
+ width: a ? "100%" : "360px",
233
+ flex: a && t ? "none" : void 0,
234
+ display: a && t ? "none" : "flex",
228
235
  flexDirection: "column",
229
- borderRight: u ? "none" : "1px solid #e8eaed",
236
+ borderRight: a ? "none" : "1px solid #e8eaed",
230
237
  minWidth: 0
231
- }, children: /* @__PURE__ */ p("div", { ref: f, style: { width: "100%", height: "100%" } }) }),
232
- t ? /* @__PURE__ */ M("div", { style: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, position: "relative" }, children: [
233
- u && /* @__PURE__ */ p(
238
+ }, children: /* @__PURE__ */ p("div", { ref: h, style: { width: "100%", height: "100%" } }) }),
239
+ t ? /* @__PURE__ */ W("div", { style: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, position: "relative" }, children: [
240
+ a && /* @__PURE__ */ p(
234
241
  "button",
235
242
  {
236
243
  onClick: () => b(null),
@@ -238,68 +245,68 @@ function A({
238
245
  children: "←"
239
246
  }
240
247
  ),
241
- /* @__PURE__ */ p("div", { ref: n, style: { width: "100%", height: "100%" } })
242
- ] }) : /* @__PURE__ */ p("div", { style: { flex: 1, display: u ? "none" : "flex", alignItems: "center", justifyContent: "center", color: "#9b9690", fontSize: 14 }, children: "Select a conversation" })
248
+ /* @__PURE__ */ p("div", { ref: i, style: { width: "100%", height: "100%" } })
249
+ ] }) : /* @__PURE__ */ p("div", { style: { flex: 1, display: a ? "none" : "flex", alignItems: "center", justifyContent: "center", color: "#9b9690", fontSize: 14 }, children: "Select a conversation" })
243
250
  ] });
244
251
  }
245
252
  function J({
246
- url: w,
247
- apiUrl: i,
253
+ url: g,
254
+ apiUrl: l,
248
255
  profileId: v,
249
- token: r,
250
- refreshToken: g,
251
- userId: e,
256
+ token: d,
257
+ refreshToken: w,
258
+ userId: n,
252
259
  userName: c,
253
- userEmail: d,
254
- scope: s,
260
+ userEmail: s,
261
+ scope: f,
255
262
  accent: x = "#4F63F5",
256
- floating: m = !0,
257
- position: C = "bottom-right",
263
+ floating: y = !0,
264
+ position: R = "bottom-right",
258
265
  label: t,
259
266
  panelWidth: b,
260
- panelHeight: f = "600px"
267
+ panelHeight: h = "600px"
261
268
  }) {
262
- const [n, h] = F(!1), y = j(null), u = C === "bottom-right", l = t ?? (m ? "💬" : "Messages");
263
- if (_(() => {
264
- const S = ($) => {
265
- $.key === "Escape" && h(!1);
269
+ const [i, u] = D(!1), m = M(null), a = R === "bottom-right", r = t ?? (y ? "💬" : "Messages");
270
+ if (z(() => {
271
+ const S = (F) => {
272
+ F.key === "Escape" && u(!1);
266
273
  };
267
274
  return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
268
- }, []), m) {
269
- const S = typeof window < "u" && window.innerWidth < 480, $ = S ? "100vw" : b ?? "420px", Y = S ? "100dvh" : f;
270
- return /* @__PURE__ */ M("div", { style: {
275
+ }, []), y) {
276
+ const S = typeof window < "u" && window.innerWidth < 480, F = S ? "100vw" : b ?? "420px", E = S ? "100dvh" : h;
277
+ return /* @__PURE__ */ W("div", { style: {
271
278
  position: "fixed",
272
- [u ? "right" : "left"]: "20px",
279
+ [a ? "right" : "left"]: "20px",
273
280
  bottom: "20px",
274
281
  zIndex: 9999,
275
282
  display: "flex",
276
283
  flexDirection: "column",
277
- alignItems: u ? "flex-end" : "flex-start",
284
+ alignItems: a ? "flex-end" : "flex-start",
278
285
  gap: "12px"
279
286
  }, children: [
280
287
  /* @__PURE__ */ p("div", { style: {
281
- width: $,
282
- height: Y,
288
+ width: F,
289
+ height: E,
283
290
  borderRadius: S ? "0" : "16px",
284
291
  overflow: "hidden",
285
292
  boxShadow: "0 8px 40px rgba(0,0,0,.18)",
286
293
  background: "#fff",
287
- display: n ? "flex" : "none",
294
+ display: i ? "flex" : "none",
288
295
  flexDirection: "column",
289
- transformOrigin: `bottom ${u ? "right" : "left"}`,
290
- animation: n ? "ocl-pop-in .18s ease" : "none"
296
+ transformOrigin: `bottom ${a ? "right" : "left"}`,
297
+ animation: i ? "ocl-pop-in .18s ease" : "none"
291
298
  }, children: /* @__PURE__ */ p(
292
- A,
299
+ B,
293
300
  {
294
- url: w,
295
- ...i ? { apiUrl: i } : {},
301
+ url: g,
302
+ ...l ? { apiUrl: l } : {},
296
303
  profileId: v,
297
- ...r ? { token: r } : {},
298
- ...g ? { refreshToken: g } : {},
299
- ...e ? { userId: e } : {},
304
+ ...d ? { token: d } : {},
305
+ ...w ? { refreshToken: w } : {},
306
+ ...n ? { userId: n } : {},
300
307
  ...c ? { userName: c } : {},
301
- ...d ? { userEmail: d } : {},
302
- ...s ? { scope: s } : {},
308
+ ...s ? { userEmail: s } : {},
309
+ ...f ? { scope: f } : {},
303
310
  accent: x,
304
311
  height: "100%"
305
312
  }
@@ -307,8 +314,8 @@ function J({
307
314
  /* @__PURE__ */ p(
308
315
  "button",
309
316
  {
310
- ref: y,
311
- onClick: () => h((L) => !L),
317
+ ref: m,
318
+ onClick: () => u((_) => !_),
312
319
  style: {
313
320
  width: "56px",
314
321
  height: "56px",
@@ -322,35 +329,35 @@ function J({
322
329
  boxShadow: "0 4px 16px rgba(0,0,0,.25)",
323
330
  transition: "transform .15s"
324
331
  },
325
- onMouseEnter: (L) => {
326
- L.target.style.transform = "scale(1.08)";
332
+ onMouseEnter: (_) => {
333
+ _.target.style.transform = "scale(1.08)";
327
334
  },
328
- onMouseLeave: (L) => {
329
- L.target.style.transform = "scale(1)";
335
+ onMouseLeave: (_) => {
336
+ _.target.style.transform = "scale(1)";
330
337
  },
331
- children: n ? "✕" : l
338
+ children: i ? "✕" : r
332
339
  }
333
340
  ),
334
341
  /* @__PURE__ */ p("style", { children: "@keyframes ocl-pop-in { from { opacity:0; transform:scale(.95) } to { opacity:1; transform:scale(1) } }" })
335
342
  ] });
336
343
  }
337
- const o = b ?? "420px", [a, W] = F(null), D = () => {
338
- !n && y.current && W(y.current.getBoundingClientRect()), h((S) => !S);
339
- }, z = a ? a.bottom + 8 : 0, O = a ? window.innerWidth - a.right : 0;
340
- return /* @__PURE__ */ M(B, { children: [
341
- /* @__PURE__ */ M(
344
+ const o = b ?? "420px", [e, j] = D(null), $ = () => {
345
+ !i && m.current && j(m.current.getBoundingClientRect()), u((S) => !S);
346
+ }, L = e ? e.bottom + 8 : 0, A = e ? window.innerWidth - e.right : 0;
347
+ return /* @__PURE__ */ W(k, { children: [
348
+ /* @__PURE__ */ W(
342
349
  "button",
343
350
  {
344
- ref: y,
345
- onClick: D,
351
+ ref: m,
352
+ onClick: $,
346
353
  style: {
347
354
  display: "inline-flex",
348
355
  alignItems: "center",
349
356
  gap: "6px",
350
357
  padding: "8px 16px",
351
358
  borderRadius: "8px",
352
- background: n ? x : "transparent",
353
- color: n ? "#fff" : x,
359
+ background: i ? x : "transparent",
360
+ color: i ? "#fff" : x,
354
361
  border: `2px solid ${x}`,
355
362
  fontSize: "14px",
356
363
  fontWeight: 600,
@@ -359,24 +366,24 @@ function J({
359
366
  },
360
367
  children: [
361
368
  "💬 ",
362
- l
369
+ r
363
370
  ]
364
371
  }
365
372
  ),
366
- n && a && /* @__PURE__ */ M(B, { children: [
373
+ i && e && /* @__PURE__ */ W(k, { children: [
367
374
  /* @__PURE__ */ p(
368
375
  "div",
369
376
  {
370
- onClick: () => h(!1),
377
+ onClick: () => u(!1),
371
378
  style: { position: "fixed", inset: 0, zIndex: 9998 }
372
379
  }
373
380
  ),
374
381
  /* @__PURE__ */ p("div", { style: {
375
382
  position: "fixed",
376
- top: z,
377
- right: O,
383
+ top: L,
384
+ right: A,
378
385
  width: o,
379
- height: f,
386
+ height: h,
380
387
  borderRadius: "16px",
381
388
  overflow: "hidden",
382
389
  boxShadow: "0 8px 40px rgba(0,0,0,.2)",
@@ -384,17 +391,17 @@ function J({
384
391
  zIndex: 9999,
385
392
  animation: "ocl-slide-in .18s ease"
386
393
  }, children: /* @__PURE__ */ p(
387
- A,
394
+ B,
388
395
  {
389
- url: w,
390
- ...i ? { apiUrl: i } : {},
396
+ url: g,
397
+ ...l ? { apiUrl: l } : {},
391
398
  profileId: v,
392
- ...r ? { token: r } : {},
393
- ...g ? { refreshToken: g } : {},
394
- ...e ? { userId: e } : {},
399
+ ...d ? { token: d } : {},
400
+ ...w ? { refreshToken: w } : {},
401
+ ...n ? { userId: n } : {},
395
402
  ...c ? { userName: c } : {},
396
- ...d ? { userEmail: d } : {},
397
- ...s ? { scope: s } : {},
403
+ ...s ? { userEmail: s } : {},
404
+ ...f ? { scope: f } : {},
398
405
  accent: x,
399
406
  height: "100%"
400
407
  }
@@ -404,9 +411,9 @@ function J({
404
411
  ] });
405
412
  }
406
413
  export {
407
- A as ChatApp,
414
+ B as ChatApp,
408
415
  J as ChatAppLauncher,
409
- E as ChatWidget,
416
+ P as ChatWidget,
410
417
  G as MarketplaceChat
411
418
  };
412
419
  //# sourceMappingURL=react.js.map