@2uinc/frontend-component-xpert-chatbot 1.31.1-beta.1 → 1.31.1-beta.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/dist/lib/index.min.js +95 -83
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -13308,89 +13308,101 @@ function bi({ submitEventExternal: e }) {
|
|
13308
13308
|
}, Tt = (Pt = a == null ? void 0 : a.animatedGraduate) == null ? void 0 : Pt.enabled, Ot = o != null && o.enabled ? h ? (Ze = o == null ? void 0 : o.style) == null ? void 0 : Ze.mobile : o == null ? void 0 : o.style : null;
|
13309
13309
|
return (
|
13310
13310
|
// do not remove this class as it's needed to turn off chatbot
|
13311
|
-
/* @__PURE__ */ k.jsxs(
|
13312
|
-
|
13313
|
-
|
13314
|
-
{
|
13315
|
-
|
13316
|
-
|
13317
|
-
|
13318
|
-
|
13319
|
-
|
13320
|
-
|
13321
|
-
|
13322
|
-
|
13323
|
-
|
13324
|
-
|
13325
|
-
|
13326
|
-
|
13327
|
-
|
13328
|
-
|
13329
|
-
|
13330
|
-
|
13331
|
-
|
13332
|
-
|
13333
|
-
|
13334
|
-
|
13335
|
-
|
13336
|
-
|
13337
|
-
|
13338
|
-
|
13339
|
-
|
13340
|
-
|
13341
|
-
|
13342
|
-
|
13343
|
-
|
13344
|
-
|
13345
|
-
|
13346
|
-
|
13347
|
-
|
13348
|
-
|
13349
|
-
|
13350
|
-
|
13351
|
-
|
13352
|
-
|
13353
|
-
|
13354
|
-
|
13355
|
-
|
13356
|
-
|
13357
|
-
|
13358
|
-
|
13359
|
-
|
13360
|
-
|
13361
|
-
|
13362
|
-
|
13363
|
-
|
13364
|
-
|
13365
|
-
|
13366
|
-
|
13367
|
-
|
13368
|
-
|
13369
|
-
|
13370
|
-
|
13371
|
-
|
13372
|
-
|
13373
|
-
|
13374
|
-
|
13375
|
-
|
13376
|
-
|
13377
|
-
|
13378
|
-
|
13379
|
-
|
13380
|
-
|
13381
|
-
|
13382
|
-
|
13383
|
-
|
13384
|
-
|
13385
|
-
|
13386
|
-
|
13387
|
-
|
13388
|
-
|
13389
|
-
|
13390
|
-
|
13391
|
-
|
13392
|
-
|
13393
|
-
|
13311
|
+
/* @__PURE__ */ k.jsxs(
|
13312
|
+
"div",
|
13313
|
+
{
|
13314
|
+
className: `xpert-chatbot${u ? "" : "--inline"}`,
|
13315
|
+
style: {
|
13316
|
+
position: "fixed",
|
13317
|
+
bottom: h ? "4.5rem" : ".5rem",
|
13318
|
+
right: "1.5rem",
|
13319
|
+
textAlign: "right"
|
13320
|
+
},
|
13321
|
+
children: [
|
13322
|
+
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
|
13323
|
+
Sl,
|
13324
|
+
{
|
13325
|
+
showMessage: !N,
|
13326
|
+
style: Ot,
|
13327
|
+
onClose: Te,
|
13328
|
+
onClick: he,
|
13329
|
+
cookieName: `${i}-proactive-message-xpert-chatbot`,
|
13330
|
+
children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
|
13331
|
+
(o == null ? void 0 : o.textPrefix) && /* @__PURE__ */ k.jsx(
|
13332
|
+
"span",
|
13333
|
+
{
|
13334
|
+
style: {
|
13335
|
+
paddingRight: o != null && o.showEmoji ? "0" : "0.3rem"
|
13336
|
+
},
|
13337
|
+
children: (o == null ? void 0 : o.textPrefix) ?? ""
|
13338
|
+
}
|
13339
|
+
),
|
13340
|
+
(o == null ? void 0 : o.showEmoji) && /* @__PURE__ */ k.jsx(
|
13341
|
+
"span",
|
13342
|
+
{
|
13343
|
+
role: "img",
|
13344
|
+
"aria-label": "Hand wave emoji",
|
13345
|
+
className: "xpert-chatbot-proactive-message__wave",
|
13346
|
+
style: {
|
13347
|
+
padding: o != null && o.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
|
13348
|
+
},
|
13349
|
+
children: "👋"
|
13350
|
+
}
|
13351
|
+
),
|
13352
|
+
/* @__PURE__ */ k.jsx("span", { children: (o == null ? void 0 : o.text) ?? "" })
|
13353
|
+
] }) })
|
13354
|
+
}
|
13355
|
+
),
|
13356
|
+
Tt && u && /* @__PURE__ */ k.jsx(
|
13357
|
+
qr,
|
13358
|
+
{
|
13359
|
+
handleFloatingActionButtonClick: pe
|
13360
|
+
}
|
13361
|
+
),
|
13362
|
+
!Tt && u && /* @__PURE__ */ k.jsx(
|
13363
|
+
Ur,
|
13364
|
+
{
|
13365
|
+
handleFloatingActionButtonClick: pe
|
13366
|
+
}
|
13367
|
+
),
|
13368
|
+
u && /* @__PURE__ */ k.jsx(l0, {}),
|
13369
|
+
N && !U && /* @__PURE__ */ k.jsx(Co, { isMounted: S, children: /* @__PURE__ */ k.jsx(
|
13370
|
+
"div",
|
13371
|
+
{
|
13372
|
+
ref: H,
|
13373
|
+
style: { display: "flex", flexDirection: "column", height: "100%" },
|
13374
|
+
children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
13375
|
+
u && /* @__PURE__ */ k.jsx(
|
13376
|
+
kl,
|
13377
|
+
{
|
13378
|
+
onClose: Fe,
|
13379
|
+
handleResizeButtonClick: xe,
|
13380
|
+
isMounted: S,
|
13381
|
+
setIsMounted: O
|
13382
|
+
}
|
13383
|
+
),
|
13384
|
+
/* @__PURE__ */ k.jsx(o0, {}),
|
13385
|
+
v === ut.XPERT && /* @__PURE__ */ k.jsx(
|
13386
|
+
oi,
|
13387
|
+
{
|
13388
|
+
handleChange: Xe,
|
13389
|
+
handleFeedbackThumbSelection: Bt,
|
13390
|
+
handleMessageLinkClicked: w,
|
13391
|
+
handleSend: de,
|
13392
|
+
inputRef: j,
|
13393
|
+
isTestUser: m,
|
13394
|
+
setLiveChatOpen: M,
|
13395
|
+
submitEvent: W,
|
13396
|
+
userInput: B
|
13397
|
+
}
|
13398
|
+
),
|
13399
|
+
v === ut.LIVECHAT && /* @__PURE__ */ k.jsx(yi, {})
|
13400
|
+
] })
|
13401
|
+
}
|
13402
|
+
) })
|
13403
|
+
]
|
13404
|
+
}
|
13405
|
+
)
|
13394
13406
|
);
|
13395
13407
|
}
|
13396
13408
|
bi.propTypes = {
|