lr-chatbot 0.19.3 → 0.19.5
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/custom-elements.json +1 -1
- package/index.js +157 -166
- package/index.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"'/bff'","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"false","attribute":"opened","reflects":true},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized","reflects":true},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"field","name":"exitOverlay","type":{"text":"boolean"},"default":"false","attribute":"exitOverlay"},{"kind":"field","name":"deepChat","type":{"text":"DeepChat | undefined"},"privacy":"private"},{"kind":"field","name":"_closeClickCount","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"_isConversationDone","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_broadcastController","privacy":"private","default":"new BroadcastController<ChatbotBroadcastMessage>( this, LR_CHATBOT_BROADCAST_CHANNEL_ID )"},{"kind":"field","name":"_conversationHistoryTask","privacy":"private"},{"kind":"method","name":"getVersion"},{"kind":"method","name":"registerBroadcastMessages","privacy":"private"},{"kind":"method","name":"handleDeepChatLoad","privacy":"private","parameters":[{"name":"deepChat","optional":true,"type":{"text":"Element"}}]},{"kind":"method","name":"getCurrentConversationId","privacy":"private"},{"kind":"method","name":"createConversationHistoryTask","privacy":"private"},{"kind":"method","name":"tryGetConversationHistory","privacy":"private"},{"kind":"method","name":"setInitialMessages","privacy":"private"},{"kind":"method","name":"setDeepChatHistory","privacy":"private","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"setDeepChatTranslations","privacy":"private"},{"kind":"method","name":"setDeepChatStyle","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"endConversation","privacy":"private","parameters":[{"name":"conversationId","type":{"text":"string | null"}}]},{"kind":"method","name":"disableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"enableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"handleClosure","privacy":"private"},{"kind":"method","name":"handleReturnConversation","privacy":"private"},{"kind":"method","name":"clearConversation","privacy":"private"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"},{"kind":"method","name":"close"},{"kind":"method","name":"renderExitOverlay"},{"kind":"method","name":"renderChatPopin"},{"kind":"method","name":"renderMinimizedChat"},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"'/bff'","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"exitOverlay","type":{"text":"boolean"},"default":"false","fieldName":"exitOverlay"}],"superclass":{"name":"SuperElement","package":"@atlas/shared/client/ui/wc/internals/super/SuperElement"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}}]}]}
|
|
1
|
+
{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"'/bff'","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"false","attribute":"opened","reflects":true},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized","reflects":true},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"field","name":"exitOverlay","type":{"text":"boolean"},"default":"false","attribute":"exitOverlay"},{"kind":"field","name":"deepChat","type":{"text":"DeepChat | undefined"},"privacy":"private"},{"kind":"field","name":"_closeClickCount","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"_isConversationDone","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_broadcastController","privacy":"private","default":"new BroadcastController<ChatbotBroadcastMessage>( this, LR_CHATBOT_BROADCAST_CHANNEL_ID )"},{"kind":"field","name":"_conversationHistoryTask","privacy":"private"},{"kind":"method","name":"getVersion"},{"kind":"method","name":"registerBroadcastMessages","privacy":"private"},{"kind":"method","name":"handleDeepChatLoad","privacy":"private","parameters":[{"name":"deepChat","optional":true,"type":{"text":"Element"}}]},{"kind":"method","name":"getCurrentConversationId","privacy":"private"},{"kind":"method","name":"createConversationHistoryTask","privacy":"private"},{"kind":"method","name":"tryGetConversationHistory","privacy":"private"},{"kind":"method","name":"setInitialMessages","privacy":"private"},{"kind":"method","name":"setDeepChatHistory","privacy":"private","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"setDeepChatTranslations","privacy":"private"},{"kind":"method","name":"setDeepChatStyle","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"endConversation","privacy":"private","parameters":[{"name":"conversationId","type":{"text":"string | null"}}]},{"kind":"method","name":"disableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"enableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"handleClosure","privacy":"private"},{"kind":"method","name":"handleReturnConversation","privacy":"private"},{"kind":"method","name":"clearConversation","privacy":"private"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"},{"kind":"method","name":"close"},{"kind":"method","name":"renderExitOverlay"},{"kind":"method","name":"renderChatPopin"},{"kind":"method","name":"renderMinimizedChat"},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"'/bff'","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"exitOverlay","type":{"text":"boolean"},"default":"false","fieldName":"exitOverlay"}],"superclass":{"name":"SuperElement","package":"@atlas/shared/client/ui/wc/internals/super/SuperElement"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}}]},{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-conversation-rating/ChatbotConversationRating.ts","declarations":[{"kind":"class","description":"","name":"ChatbotConversationRating","members":[{"kind":"field","name":"messageContext","type":{"text":"ChatbotMessageContext | undefined"}},{"kind":"field","name":"score","type":{"text":"number | null"},"default":"null"},{"kind":"field","name":"label","type":{"text":"string"},"default":"''","attribute":"label"},{"kind":"field","name":"rating","type":{"text":"number"},"default":"0"},{"kind":"method","name":"handleSubmit","parameters":[{"name":"event","type":{"text":"SubmitEvent"}}]},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","fieldName":"label"}],"superclass":{"name":"SuperElement","package":"@atlas/shared/client/ui/wc/internals/super/SuperElement"},"tagName":"lr-chatbot-conversation-rating","customElement":true}],"exports":[{"kind":"js","name":"ChatbotConversationRating","declaration":{"name":"ChatbotConversationRating","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-conversation-rating/ChatbotConversationRating.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot-conversation-rating","declaration":{"name":"ChatbotConversationRating","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-conversation-rating/ChatbotConversationRating.ts"}}]},{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-escalation-pill/ChatbotEscalationPill.ts","declarations":[{"kind":"class","description":"","name":"ChatbotEscalationPill","members":[{"kind":"field","name":"channel","type":{"text":"string"},"default":"''","attribute":"channel"},{"kind":"field","name":"shouldGetSummary","type":{"text":"boolean"},"default":"false","attribute":"shouldGetSummary"},{"kind":"field","name":"messageContext","type":{"text":"ChatbotMessageContext | undefined"}},{"kind":"method","name":"getUrl","privacy":"private","parameters":[{"name":"message","optional":true,"type":{"text":"string"}}]},{"kind":"method","name":"handleClick"},{"kind":"method","name":"escalate","privacy":"private"}],"attributes":[{"name":"channel","type":{"text":"string"},"default":"''","fieldName":"channel"},{"name":"shouldGetSummary","type":{"text":"boolean"},"default":"false","fieldName":"shouldGetSummary"}],"superclass":{"name":"Pill","package":"@atlas/shared/client/ui/wc/components/pill"},"tagName":"lr-chatbot-escalation-pill","customElement":true}],"exports":[{"kind":"js","name":"ChatbotEscalationPill","declaration":{"name":"ChatbotEscalationPill","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-escalation-pill/ChatbotEscalationPill.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot-escalation-pill","declaration":{"name":"ChatbotEscalationPill","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-escalation-pill/ChatbotEscalationPill.ts"}}]},{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message/ChatbotMessage.ts","declarations":[{"kind":"class","description":"","name":"ChatbotMessage","members":[{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"''","attribute":"apiUrl"},{"kind":"field","name":"conversationId","type":{"text":"string"},"default":"''","attribute":"conversationId"},{"kind":"field","name":"messageId","type":{"text":"string"},"default":"''","attribute":"messageId"},{"kind":"field","name":"score","type":{"text":"number | undefined"},"attribute":"score"},{"kind":"field","name":"showEscalation","type":{"text":"boolean"},"default":"false","attribute":"showEscalation"},{"kind":"field","name":"showMessageRating","type":{"text":"boolean"},"default":"false","attribute":"showMessageRating"},{"kind":"field","name":"showConversationRating","type":{"text":"boolean"},"default":"false","attribute":"showConversationRating"},{"kind":"field","name":"messageContext","type":{"text":"ChatbotMessageContext"},"default":"{}"},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"conversationId","type":{"text":"string"},"default":"''","fieldName":"conversationId"},{"name":"messageId","type":{"text":"string"},"default":"''","fieldName":"messageId"},{"name":"score","type":{"text":"number | undefined"},"fieldName":"score"},{"name":"showEscalation","type":{"text":"boolean"},"default":"false","fieldName":"showEscalation"},{"name":"showMessageRating","type":{"text":"boolean"},"default":"false","fieldName":"showMessageRating"},{"name":"showConversationRating","type":{"text":"boolean"},"default":"false","fieldName":"showConversationRating"}],"superclass":{"name":"SuperElement","package":"@atlas/shared/client/ui/wc/internals/super/SuperElement"},"tagName":"lr-chatbot-message","customElement":true},{"kind":"function","name":"createChatbotMessageHtml","parameters":[{"name":"props","type":{"text":"ChatbotMessageProps"}}]}],"exports":[{"kind":"js","name":"ChatbotMessage","declaration":{"name":"ChatbotMessage","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message/ChatbotMessage.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot-message","declaration":{"name":"ChatbotMessage","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message/ChatbotMessage.ts"}},{"kind":"js","name":"createChatbotMessageHtml","declaration":{"name":"createChatbotMessageHtml","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message/ChatbotMessage.ts"}}]},{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message-rating/ChatbotMessageRating.ts","declarations":[{"kind":"class","description":"","name":"ChatbotMessageRating","members":[{"kind":"field","name":"messageContext","type":{"text":"ChatbotMessageContext | undefined"}},{"kind":"field","name":"upActive","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"downActive","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"score","type":{"text":"number | undefined"},"privacy":"private"},{"kind":"method","name":"toggleButton","parameters":[{"name":"e","type":{"text":"Event"}},{"name":"score","type":{"text":"number"}}]},{"kind":"method","name":"evaluateResponse","privacy":"private","parameters":[{"name":"score","type":{"text":"number"}}]},{"kind":"method","name":"renderElement"}],"superclass":{"name":"SuperElement","package":"@atlas/shared/client/ui/wc/internals/super/SuperElement"},"tagName":"lr-chatbot-message-rating","customElement":true}],"exports":[{"kind":"js","name":"ChatbotMessageRating","declaration":{"name":"ChatbotMessageRating","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message-rating/ChatbotMessageRating.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot-message-rating","declaration":{"name":"ChatbotMessageRating","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot-message-rating/ChatbotMessageRating.ts"}}]}]}
|
package/index.js
CHANGED
|
@@ -3708,7 +3708,7 @@ function nf(t) {
|
|
|
3708
3708
|
var r = t.headers.get("content-type");
|
|
3709
3709
|
if (!(r != null && r.startsWith(ts))) throw new Error("Expected content-type to be ".concat(ts, ", Actual: ").concat(r));
|
|
3710
3710
|
}
|
|
3711
|
-
var
|
|
3711
|
+
var ye = /* @__PURE__ */ function() {
|
|
3712
3712
|
function t() {
|
|
3713
3713
|
w(this, t);
|
|
3714
3714
|
}
|
|
@@ -3948,7 +3948,7 @@ var be = /* @__PURE__ */ function() {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
u.t0 = i;
|
|
3950
3950
|
case 5:
|
|
3951
|
-
l = u.t0, l.error ? (n.addNewErrorMessage("service", l.error), e.completionsHandlers.onFinish()) :
|
|
3951
|
+
l = u.t0, l.error ? (n.addNewErrorMessage("service", l.error), e.completionsHandlers.onFinish()) : ye.isSimulatable(e.stream, l) ? ye.simulate(n, e.streamHandlers, l) : (n.addNewMessage(l), e.completionsHandlers.onFinish());
|
|
3952
3952
|
case 7:
|
|
3953
3953
|
case "end":
|
|
3954
3954
|
return u.stop();
|
|
@@ -3962,7 +3962,7 @@ var be = /* @__PURE__ */ function() {
|
|
|
3962
3962
|
value: function(e, n) {
|
|
3963
3963
|
setTimeout(function() {
|
|
3964
3964
|
var i = t.getResponse(e);
|
|
3965
|
-
|
|
3965
|
+
ye.simulate(e, n, i);
|
|
3966
3966
|
}, 400);
|
|
3967
3967
|
}
|
|
3968
3968
|
}]);
|
|
@@ -4043,7 +4043,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4043
4043
|
}
|
|
4044
4044
|
throw Error(fe.INVALID_RESPONSE(h, "server", !!e.deepChat.responseInterceptor, p));
|
|
4045
4045
|
case 14:
|
|
4046
|
-
|
|
4046
|
+
ye.isSimulation(e.stream) ? (g = t.stream.bind(a, e, i, s), y = s[h.role || Z.AI_ROLE], ye.upsertWFiles(i, g, y, f)) : i.addNewMessage(f), b.next = 20;
|
|
4047
4047
|
break;
|
|
4048
4048
|
case 17:
|
|
4049
4049
|
b.prev = 17, b.t1 = b.catch(1), X.displayError(i, b.t1, "Error in server message");
|
|
@@ -4128,7 +4128,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4128
4128
|
if (typeof s == "string") {
|
|
4129
4129
|
var o, l = a.role || Z.AI_ROLE, c = i[l];
|
|
4130
4130
|
a.text === s || a.html === s ? (c == null || c.finaliseStreamedMessage(), delete i[l]) : ((o = i[l]) !== null && o !== void 0 || (i[l] = new vt(n)), i[l].upsertStreamedMessage(a));
|
|
4131
|
-
} else
|
|
4131
|
+
} else ye.simulate(n, e.streamHandlers, a);
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
4134
|
}]);
|
|
@@ -4164,7 +4164,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4164
4164
|
}
|
|
4165
4165
|
R.t0 = y;
|
|
4166
4166
|
case 8:
|
|
4167
|
-
_ = R.t0, X.validateResponseFormat(_) ? typeof _.error == "string" ? (console.error(_.error), s.addNewErrorMessage("service", _.error), i.completionsHandlers.onFinish()) :
|
|
4167
|
+
_ = R.t0, X.validateResponseFormat(_) ? typeof _.error == "string" ? (console.error(_.error), s.addNewErrorMessage("service", _.error), i.completionsHandlers.onFinish()) : ye.isSimulatable(i.stream, _) ? ye.simulate(s, i.streamHandlers, _) : (s.addNewMessage(_), i.completionsHandlers.onFinish()) : (console.error(fe.INVALID_RESPONSE(y, "server", !!i.deepChat.responseInterceptor, _)), s.addNewErrorMessage("service", "Error in server message"), i.completionsHandlers.onFinish());
|
|
4168
4168
|
case 10:
|
|
4169
4169
|
case "end":
|
|
4170
4170
|
return R.stop();
|
|
@@ -4225,7 +4225,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4225
4225
|
}
|
|
4226
4226
|
R.t0 = y;
|
|
4227
4227
|
case 7:
|
|
4228
|
-
_ = R.t0, X.validateResponseFormat(_) ? _.error ? (console.error(_.error), c.finaliseStreamedMessage(), i.addNewErrorMessage("service", _.error), e.streamHandlers.onClose(), o = !1) :
|
|
4228
|
+
_ = R.t0, X.validateResponseFormat(_) ? _.error ? (console.error(_.error), c.finaliseStreamedMessage(), i.addNewErrorMessage("service", _.error), e.streamHandlers.onClose(), o = !1) : ye.upsertWFiles(i, c.upsertStreamedMessage.bind(c), c, _) : console.error(fe.INVALID_RESPONSE(y, "server", !!e.deepChat.responseInterceptor, _));
|
|
4229
4229
|
case 9:
|
|
4230
4230
|
case "end":
|
|
4231
4231
|
return R.stop();
|
|
@@ -4284,7 +4284,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
R.t0 = f;
|
|
4286
4286
|
case 7:
|
|
4287
|
-
v = R.t0, X.validateResponseFormat(v) ? typeof v.error == "string" ? (console.error(v.error), n.isLastMessageError() || n.addNewErrorMessage("service", v.error)) :
|
|
4287
|
+
v = R.t0, X.validateResponseFormat(v) ? typeof v.error == "string" ? (console.error(v.error), n.isLastMessageError() || n.addNewErrorMessage("service", v.error)) : ye.isSimulation(e.stream) ? (b = sr.stream.bind(i, e, n, o.roleToStream), _ = o.roleToStream[f.role || Z.AI_ROLE], ye.upsertWFiles(n, b, _, f)) : n.addNewMessage(v) : (console.error(fe.INVALID_RESPONSE(f, "server", !!e.deepChat.responseInterceptor, v)), n.addNewErrorMessage("service", "Error in server message"));
|
|
4288
4288
|
case 9:
|
|
4289
4289
|
case "end":
|
|
4290
4290
|
return R.stop();
|
|
@@ -4396,7 +4396,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4396
4396
|
}
|
|
4397
4397
|
throw Error(fe.INVALID_RESPONSE(G, "response", !!i.deepChat.responseInterceptor, Oe));
|
|
4398
4398
|
case 15:
|
|
4399
|
-
K.makingAnotherRequest || (
|
|
4399
|
+
K.makingAnotherRequest || (ye.isSimulatable(i.stream, K) ? ye.simulate(s, i.streamHandlers, K) : (s.addNewMessage(K), y()));
|
|
4400
4400
|
case 16:
|
|
4401
4401
|
case "end":
|
|
4402
4402
|
return Y.stop();
|
|
@@ -4451,7 +4451,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4451
4451
|
case 11:
|
|
4452
4452
|
h = f.sent, h.timeoutMS ? setTimeout(function() {
|
|
4453
4453
|
t.executePollRequest(e, n, i, a);
|
|
4454
|
-
}, h.timeoutMS) :
|
|
4454
|
+
}, h.timeoutMS) : ye.isSimulatable(e.stream, h) ? ye.simulate(a, e.streamHandlers, h) : (a.addNewMessage(h), s());
|
|
4455
4455
|
case 13:
|
|
4456
4456
|
case "end":
|
|
4457
4457
|
return f.stop();
|
|
@@ -4686,7 +4686,7 @@ var yt = pu, sr = /* @__PURE__ */ function() {
|
|
|
4686
4686
|
return m().wrap(function(c) {
|
|
4687
4687
|
for (; ; ) switch (c.prev = c.next) {
|
|
4688
4688
|
case 0:
|
|
4689
|
-
return s = o.length > 2 && o[2] !== void 0 ? o[2] : !0, c.abrupt("return", this.stream && !
|
|
4689
|
+
return s = o.length > 2 && o[2] !== void 0 ? o[2] : !0, c.abrupt("return", this.stream && !ye.isSimulation(this.stream) ? ye.request(this, i, a, s) : ce.request(this, i, a, s));
|
|
4690
4690
|
case 2:
|
|
4691
4691
|
case "end":
|
|
4692
4692
|
return c.stop();
|
|
@@ -8687,7 +8687,7 @@ var Lt = is, Gr = /* @__PURE__ */ function(t) {
|
|
|
8687
8687
|
return m().wrap(function(o) {
|
|
8688
8688
|
for (; ; ) switch (o.prev = o.next) {
|
|
8689
8689
|
case 0:
|
|
8690
|
-
return a.stream = !0, this.waitingForStreamResponse = !0, o.next = 4,
|
|
8690
|
+
return a.stream = !0, this.waitingForStreamResponse = !0, o.next = 4, ye.request(this, a, this.messages, !0, !0);
|
|
8691
8691
|
case 4:
|
|
8692
8692
|
this.messageStream = o.sent;
|
|
8693
8693
|
case 5:
|
|
@@ -8941,7 +8941,7 @@ var Ff = Kr, $f = /* @__PURE__ */ function(t) {
|
|
|
8941
8941
|
}
|
|
8942
8942
|
throw new Error("Request settings have not been set up");
|
|
8943
8943
|
case 2:
|
|
8944
|
-
o = this.preprocessBody(this.rawBody, s), l = this.stream, l && (z(l) != "object" || !l.simulation) || o.stream ? (o.stream = !0,
|
|
8944
|
+
o = this.preprocessBody(this.rawBody, s), l = this.stream, l && (z(l) != "object" || !l.simulation) || o.stream ? (o.stream = !0, ye.request(this, o, a)) : ce.request(this, o, a);
|
|
8945
8945
|
case 4:
|
|
8946
8946
|
case "end":
|
|
8947
8947
|
return u.stop();
|
|
@@ -13297,7 +13297,7 @@ dn.elementStyles = [], dn.shadowRootOptions = { mode: "open" }, dn[Jn("elementPr
|
|
|
13297
13297
|
*/
|
|
13298
13298
|
const Zn = globalThis, pi = Zn.trustedTypes, ll = pi ? pi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ou = "$lit$", gt = `lit$${Math.random().toFixed(9).slice(2)}$`, Lu = "?" + gt, im = `<${Lu}>`, Ht = document, or = () => Ht.createComment(""), lr = (t) => t === null || typeof t != "object" && typeof t != "function", Iu = Array.isArray, am = (t) => Iu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", wa = `[
|
|
13299
13299
|
\f\r]`, Ln = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, cl = /-->/g, ul = />/g, Pt = RegExp(`>|${wa}(?:([^\\s"'>=/]+)(${wa}*=${wa}*(?:[^
|
|
13300
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dl = /'/g, hl = /"/g, Mu = /^(?:script|style|textarea|title)$/i, Pu = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }),
|
|
13300
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dl = /'/g, hl = /"/g, Mu = /^(?:script|style|textarea|title)$/i, Pu = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), be = Pu(1), st = Pu(2), _t = Symbol.for("lit-noChange"), se = Symbol.for("lit-nothing"), pl = /* @__PURE__ */ new WeakMap(), $t = Ht.createTreeWalker(Ht, 129);
|
|
13301
13301
|
function Fu(t, r) {
|
|
13302
13302
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
13303
13303
|
return ll !== void 0 ? ll.createHTML(r) : r;
|
|
@@ -20565,7 +20565,7 @@ const $d = Symbol.for(""), y3 = (t) => {
|
|
|
20565
20565
|
(r = Ac.get(d)) === void 0 && (s.raw = s, Ac.set(d, r = s)), e = o;
|
|
20566
20566
|
}
|
|
20567
20567
|
return t(r, ...e);
|
|
20568
|
-
}, an = b3(
|
|
20568
|
+
}, an = b3(be);
|
|
20569
20569
|
function w3(t, r) {
|
|
20570
20570
|
return function(e, n) {
|
|
20571
20571
|
const i = new CustomEvent(r, {
|
|
@@ -20589,12 +20589,119 @@ function k3(t) {
|
|
|
20589
20589
|
});
|
|
20590
20590
|
};
|
|
20591
20591
|
}
|
|
20592
|
-
|
|
20593
|
-
|
|
20594
|
-
|
|
20595
|
-
|
|
20592
|
+
const _3 = Re`
|
|
20593
|
+
@keyframes rotate360 {
|
|
20594
|
+
from {
|
|
20595
|
+
transform: rotate(0deg);
|
|
20596
|
+
}
|
|
20597
|
+
to {
|
|
20598
|
+
transform: rotate(360deg);
|
|
20599
|
+
}
|
|
20600
|
+
}
|
|
20601
|
+
|
|
20602
|
+
:host .spinner {
|
|
20603
|
+
vertical-align: middle;
|
|
20604
|
+
animation: rotate360 1s linear infinite;
|
|
20605
|
+
}
|
|
20606
|
+
`, S3 = Re`
|
|
20607
|
+
:host {
|
|
20608
|
+
display: inline-block;
|
|
20609
|
+
transition: fill 0.2s, stroke 0.2s;
|
|
20610
|
+
}
|
|
20611
|
+
|
|
20612
|
+
:host([size='small']) {
|
|
20613
|
+
width: 24px;
|
|
20614
|
+
height: 24px;
|
|
20615
|
+
}
|
|
20616
|
+
:host([size='medium']) {
|
|
20617
|
+
width: 32px;
|
|
20618
|
+
height: 32px;
|
|
20619
|
+
}
|
|
20620
|
+
:host([size='big']) {
|
|
20621
|
+
width: 48px;
|
|
20622
|
+
height: 48px;
|
|
20623
|
+
}
|
|
20624
|
+
:host([size='large']) {
|
|
20625
|
+
width: 64px;
|
|
20626
|
+
height: 64px;
|
|
20627
|
+
}
|
|
20628
|
+
|
|
20629
|
+
:host svg {
|
|
20630
|
+
width: 100%;
|
|
20631
|
+
height: 100%;
|
|
20632
|
+
}
|
|
20633
|
+
`;
|
|
20634
|
+
var C3 = Object.defineProperty, Nd = (t, r, e, n) => {
|
|
20635
|
+
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20636
|
+
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20637
|
+
return i && C3(r, e, i), i;
|
|
20596
20638
|
};
|
|
20597
20639
|
const oo = class oo extends me {
|
|
20640
|
+
constructor() {
|
|
20641
|
+
super(...arguments), this.size = "medium", this.viewBox = "0 0 32 32";
|
|
20642
|
+
}
|
|
20643
|
+
};
|
|
20644
|
+
oo.styles = [me.styles, S3];
|
|
20645
|
+
let fr = oo;
|
|
20646
|
+
Nd([
|
|
20647
|
+
J({ type: String, reflect: !0 })
|
|
20648
|
+
], fr.prototype, "size");
|
|
20649
|
+
Nd([
|
|
20650
|
+
J({ type: String })
|
|
20651
|
+
], fr.prototype, "viewBox");
|
|
20652
|
+
function ut(t, r) {
|
|
20653
|
+
class e extends fr {
|
|
20654
|
+
renderElement() {
|
|
20655
|
+
return be`<svg viewBox="${this.viewBox}" aria-hidden="true" fill="none" part="icon">${r}</svg> `;
|
|
20656
|
+
}
|
|
20657
|
+
}
|
|
20658
|
+
customElements.define(t, e);
|
|
20659
|
+
}
|
|
20660
|
+
var x3 = Object.defineProperty, E3 = Object.getOwnPropertyDescriptor, no = (t, r, e, n) => {
|
|
20661
|
+
for (var i = n > 1 ? void 0 : n ? E3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20662
|
+
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20663
|
+
return n && i && x3(r, e, i), i;
|
|
20664
|
+
};
|
|
20665
|
+
ut(
|
|
20666
|
+
"lr-icon-spinner",
|
|
20667
|
+
st`
|
|
20668
|
+
<path xmlns="http://www.w3.org/2000/svg" fillrule="evenodd" cliprule="evenodd" d="M25.2761 23.6127C27.0374 21.4666 28 18.7763 28 16H24C24 17.8508 23.3583 19.6444 22.1841 21.0751C21.0099 22.5059 19.376 23.4852 17.5607 23.8463C15.7454 24.2074 13.8611 23.9279 12.2288 23.0554C10.5965 22.1829 9.31726 20.7714 8.60897 19.0615C7.90068 17.3515 7.80721 15.4489 8.34448 13.6777C8.88175 11.9066 10.0165 10.3765 11.5554 9.34824C13.0944 8.31997 14.9422 7.85711 16.7841 8.03852C18.6261 8.21994 20.3481 9.0344 21.6569 10.3431L24.4853 7.51472C22.5222 5.5516 19.9391 4.3299 17.1762 4.05778C14.4133 3.78566 11.6415 4.47996 9.33316 6.02237C7.02478 7.56477 5.32263 9.85987 4.51672 12.5166C3.71081 15.1733 3.85102 18.0273 4.91345 20.5922C5.97588 23.1571 7.8948 25.2743 10.3432 26.5831C12.7917 27.8918 15.6182 28.311 18.3411 27.7694C21.064 27.2278 23.5149 25.7588 25.2761 23.6127Z" fill="url(#paint0_angular_406_11507)"></path>
|
|
20669
|
+
<defs xmlns="http://www.w3.org/2000/svg">
|
|
20670
|
+
<radialGradient id="paint0_angular_406_11507" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(16 16) rotate(0.1422) scale(12)">
|
|
20671
|
+
<stop offset="0.749495" stop-color="currentColor" stop-opacity="1"></stop>
|
|
20672
|
+
<stop offset="0.875" stop-color="currentColor" stop-opacity="0"></stop>
|
|
20673
|
+
</radialGradient>
|
|
20674
|
+
</defs>
|
|
20675
|
+
`
|
|
20676
|
+
);
|
|
20677
|
+
let mr = class extends me {
|
|
20678
|
+
constructor() {
|
|
20679
|
+
super(), this.size = "medium", this.dataCerberus = "spinner", this.size = "medium";
|
|
20680
|
+
}
|
|
20681
|
+
renderElement() {
|
|
20682
|
+
return be`<lr-icon-spinner
|
|
20683
|
+
size=${this.size}
|
|
20684
|
+
class="spinner"
|
|
20685
|
+
data-cerberus="${hn(this.dataCerberus)}"
|
|
20686
|
+
></lr-icon-spinner> `;
|
|
20687
|
+
}
|
|
20688
|
+
};
|
|
20689
|
+
mr.styles = [me.styles, _3];
|
|
20690
|
+
no([
|
|
20691
|
+
J({ type: String, reflect: !0 })
|
|
20692
|
+
], mr.prototype, "size", 2);
|
|
20693
|
+
no([
|
|
20694
|
+
J({ type: String })
|
|
20695
|
+
], mr.prototype, "dataCerberus", 2);
|
|
20696
|
+
mr = no([
|
|
20697
|
+
Pe("lr-spinner")
|
|
20698
|
+
], mr);
|
|
20699
|
+
var A3 = Object.defineProperty, T3 = Object.getOwnPropertyDescriptor, Ce = (t, r, e, n) => {
|
|
20700
|
+
for (var i = n > 1 ? void 0 : n ? T3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20701
|
+
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20702
|
+
return n && i && A3(r, e, i), i;
|
|
20703
|
+
};
|
|
20704
|
+
const lo = class lo extends me {
|
|
20598
20705
|
constructor() {
|
|
20599
20706
|
super(...arguments), this.label = "", this.disabled = !1, this.size = "medium", this.iconPosition = "left", this.type = "button", this.reversed = !1, this.target = "_self", this.loading = !1, this.textContent = "";
|
|
20600
20707
|
}
|
|
@@ -20645,8 +20752,8 @@ const oo = class oo extends me {
|
|
|
20645
20752
|
</button>`;
|
|
20646
20753
|
}
|
|
20647
20754
|
};
|
|
20648
|
-
|
|
20649
|
-
let we =
|
|
20755
|
+
lo.styles = [me.styles, pm];
|
|
20756
|
+
let we = lo;
|
|
20650
20757
|
Ce([
|
|
20651
20758
|
J({ type: String })
|
|
20652
20759
|
], we.prototype, "label", 2);
|
|
@@ -20704,120 +20811,6 @@ Ce([
|
|
|
20704
20811
|
xt = Ce([
|
|
20705
20812
|
Pe("lr-button")
|
|
20706
20813
|
], xt);
|
|
20707
|
-
const C3 = Re`
|
|
20708
|
-
@keyframes rotate360 {
|
|
20709
|
-
from {
|
|
20710
|
-
transform: rotate(0deg);
|
|
20711
|
-
}
|
|
20712
|
-
to {
|
|
20713
|
-
transform: rotate(360deg);
|
|
20714
|
-
}
|
|
20715
|
-
}
|
|
20716
|
-
|
|
20717
|
-
:host .spinner {
|
|
20718
|
-
vertical-align: middle;
|
|
20719
|
-
animation: rotate360 1s linear infinite;
|
|
20720
|
-
}
|
|
20721
|
-
`, x3 = Re`
|
|
20722
|
-
:host {
|
|
20723
|
-
display: inline-block;
|
|
20724
|
-
transition: fill 0.2s, stroke 0.2s;
|
|
20725
|
-
}
|
|
20726
|
-
|
|
20727
|
-
:host([size='small']) {
|
|
20728
|
-
width: 24px;
|
|
20729
|
-
height: 24px;
|
|
20730
|
-
}
|
|
20731
|
-
:host([size='medium']) {
|
|
20732
|
-
width: 32px;
|
|
20733
|
-
height: 32px;
|
|
20734
|
-
}
|
|
20735
|
-
:host([size='big']) {
|
|
20736
|
-
width: 48px;
|
|
20737
|
-
height: 48px;
|
|
20738
|
-
}
|
|
20739
|
-
:host([size='large']) {
|
|
20740
|
-
width: 64px;
|
|
20741
|
-
height: 64px;
|
|
20742
|
-
}
|
|
20743
|
-
|
|
20744
|
-
:host svg {
|
|
20745
|
-
width: 100%;
|
|
20746
|
-
height: 100%;
|
|
20747
|
-
}
|
|
20748
|
-
`;
|
|
20749
|
-
var E3 = Object.defineProperty, Nd = (t, r, e, n) => {
|
|
20750
|
-
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20751
|
-
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20752
|
-
return i && E3(r, e, i), i;
|
|
20753
|
-
};
|
|
20754
|
-
const lo = class lo extends me {
|
|
20755
|
-
constructor() {
|
|
20756
|
-
super(...arguments), this.size = "medium", this.viewBox = "0 0 32 32";
|
|
20757
|
-
}
|
|
20758
|
-
renderElement() {
|
|
20759
|
-
return ye`
|
|
20760
|
-
<svg viewBox="${this.viewBox}" aria-hidden="true" fill="none" part="icon">
|
|
20761
|
-
<slot></slot>
|
|
20762
|
-
</svg>
|
|
20763
|
-
`;
|
|
20764
|
-
}
|
|
20765
|
-
};
|
|
20766
|
-
lo.styles = [me.styles, x3];
|
|
20767
|
-
let fr = lo;
|
|
20768
|
-
Nd([
|
|
20769
|
-
J({ type: String, reflect: !0 })
|
|
20770
|
-
], fr.prototype, "size");
|
|
20771
|
-
Nd([
|
|
20772
|
-
J({ type: String })
|
|
20773
|
-
], fr.prototype, "viewBox");
|
|
20774
|
-
function ut(t, r) {
|
|
20775
|
-
class e extends fr {
|
|
20776
|
-
render() {
|
|
20777
|
-
return ye`<svg viewBox="${this.viewBox}" aria-hidden="true" fill="none" part="icon">${r}</svg> `;
|
|
20778
|
-
}
|
|
20779
|
-
}
|
|
20780
|
-
customElements.define(t, e);
|
|
20781
|
-
}
|
|
20782
|
-
var A3 = Object.defineProperty, T3 = Object.getOwnPropertyDescriptor, no = (t, r, e, n) => {
|
|
20783
|
-
for (var i = n > 1 ? void 0 : n ? T3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20784
|
-
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20785
|
-
return n && i && A3(r, e, i), i;
|
|
20786
|
-
};
|
|
20787
|
-
ut(
|
|
20788
|
-
"lr-icon-spinner",
|
|
20789
|
-
st`
|
|
20790
|
-
<path xmlns="http://www.w3.org/2000/svg" fillrule="evenodd" cliprule="evenodd" d="M25.2761 23.6127C27.0374 21.4666 28 18.7763 28 16H24C24 17.8508 23.3583 19.6444 22.1841 21.0751C21.0099 22.5059 19.376 23.4852 17.5607 23.8463C15.7454 24.2074 13.8611 23.9279 12.2288 23.0554C10.5965 22.1829 9.31726 20.7714 8.60897 19.0615C7.90068 17.3515 7.80721 15.4489 8.34448 13.6777C8.88175 11.9066 10.0165 10.3765 11.5554 9.34824C13.0944 8.31997 14.9422 7.85711 16.7841 8.03852C18.6261 8.21994 20.3481 9.0344 21.6569 10.3431L24.4853 7.51472C22.5222 5.5516 19.9391 4.3299 17.1762 4.05778C14.4133 3.78566 11.6415 4.47996 9.33316 6.02237C7.02478 7.56477 5.32263 9.85987 4.51672 12.5166C3.71081 15.1733 3.85102 18.0273 4.91345 20.5922C5.97588 23.1571 7.8948 25.2743 10.3432 26.5831C12.7917 27.8918 15.6182 28.311 18.3411 27.7694C21.064 27.2278 23.5149 25.7588 25.2761 23.6127Z" fill="url(#paint0_angular_406_11507)"></path>
|
|
20791
|
-
<defs xmlns="http://www.w3.org/2000/svg">
|
|
20792
|
-
<radialGradient id="paint0_angular_406_11507" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(16 16) rotate(0.1422) scale(12)">
|
|
20793
|
-
<stop offset="0.749495" stop-color="currentColor" stop-opacity="1"></stop>
|
|
20794
|
-
<stop offset="0.875" stop-color="currentColor" stop-opacity="0"></stop>
|
|
20795
|
-
</radialGradient>
|
|
20796
|
-
</defs>
|
|
20797
|
-
`
|
|
20798
|
-
);
|
|
20799
|
-
let mr = class extends me {
|
|
20800
|
-
constructor() {
|
|
20801
|
-
super(), this.size = "medium", this.dataCerberus = "spinner", this.size = "medium";
|
|
20802
|
-
}
|
|
20803
|
-
renderElement() {
|
|
20804
|
-
return ye`<lr-icon-spinner
|
|
20805
|
-
size=${this.size}
|
|
20806
|
-
class="spinner"
|
|
20807
|
-
data-cerberus="${hn(this.dataCerberus)}"
|
|
20808
|
-
></lr-icon-spinner> `;
|
|
20809
|
-
}
|
|
20810
|
-
};
|
|
20811
|
-
mr.styles = [me.styles, C3];
|
|
20812
|
-
no([
|
|
20813
|
-
J({ type: String, reflect: !0 })
|
|
20814
|
-
], mr.prototype, "size", 2);
|
|
20815
|
-
no([
|
|
20816
|
-
J({ type: String })
|
|
20817
|
-
], mr.prototype, "dataCerberus", 2);
|
|
20818
|
-
mr = no([
|
|
20819
|
-
Pe("lr-spinner")
|
|
20820
|
-
], mr);
|
|
20821
20814
|
const R3 = Re`
|
|
20822
20815
|
:host {
|
|
20823
20816
|
position: absolute;
|
|
@@ -20871,7 +20864,7 @@ let wn = class extends me {
|
|
|
20871
20864
|
super(...arguments), this.active = !0, this.blurring = !1;
|
|
20872
20865
|
}
|
|
20873
20866
|
renderElement() {
|
|
20874
|
-
return
|
|
20867
|
+
return be`
|
|
20875
20868
|
<div>
|
|
20876
20869
|
<slot></slot>
|
|
20877
20870
|
</div>
|
|
@@ -20898,7 +20891,7 @@ let Tc = class extends wn {
|
|
|
20898
20891
|
super(...arguments), this.active = !0;
|
|
20899
20892
|
}
|
|
20900
20893
|
renderElement() {
|
|
20901
|
-
return
|
|
20894
|
+
return be`<lr-spinner></lr-spinner> `;
|
|
20902
20895
|
}
|
|
20903
20896
|
};
|
|
20904
20897
|
Tc = P3([
|
|
@@ -22076,7 +22069,7 @@ let Sn = class extends _n {
|
|
|
22076
22069
|
super(...arguments), this.channel = "", this.shouldGetSummary = !1;
|
|
22077
22070
|
}
|
|
22078
22071
|
connectedCallback() {
|
|
22079
|
-
super.connectedCallback()
|
|
22072
|
+
super.connectedCallback();
|
|
22080
22073
|
}
|
|
22081
22074
|
getUrl(t) {
|
|
22082
22075
|
return Fe("chatbot:escalation.url", { context: this.channel, message: t });
|
|
@@ -22085,21 +22078,19 @@ let Sn = class extends _n {
|
|
|
22085
22078
|
super.handleClick(), await this.escalate();
|
|
22086
22079
|
}
|
|
22087
22080
|
async escalate() {
|
|
22088
|
-
var
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
this.loading = !1;
|
|
22098
|
-
}
|
|
22081
|
+
var e;
|
|
22082
|
+
let t = "";
|
|
22083
|
+
if (this.shouldGetSummary && (e = this.messageContext) != null && e.conversationId) {
|
|
22084
|
+
this.loading = !0;
|
|
22085
|
+
try {
|
|
22086
|
+
await io(200);
|
|
22087
|
+
} catch {
|
|
22088
|
+
} finally {
|
|
22089
|
+
this.loading = !1;
|
|
22099
22090
|
}
|
|
22100
|
-
const e = this.getUrl(r);
|
|
22101
|
-
e && window.open(e, "_blank");
|
|
22102
22091
|
}
|
|
22092
|
+
const r = this.getUrl(t);
|
|
22093
|
+
r && window.open(r, "_blank");
|
|
22103
22094
|
}
|
|
22104
22095
|
};
|
|
22105
22096
|
Sn.styles = [_n.styles, ew];
|
|
@@ -22203,7 +22194,7 @@ let zt = class extends me {
|
|
|
22203
22194
|
), await io(500);
|
|
22204
22195
|
}
|
|
22205
22196
|
renderElement() {
|
|
22206
|
-
return
|
|
22197
|
+
return be`
|
|
22207
22198
|
<lr-icon-button
|
|
22208
22199
|
size="small"
|
|
22209
22200
|
variant="tertiary-transparent"
|
|
@@ -22284,7 +22275,7 @@ let gr = class extends me {
|
|
|
22284
22275
|
super(...arguments), this.active = !1, this.size = "medium";
|
|
22285
22276
|
}
|
|
22286
22277
|
renderElement() {
|
|
22287
|
-
return
|
|
22278
|
+
return be`<lr-icon-star-filled size=${this.size}></lr-icon-star-filled>`;
|
|
22288
22279
|
}
|
|
22289
22280
|
};
|
|
22290
22281
|
gr.styles = [me.styles, fw];
|
|
@@ -22320,9 +22311,9 @@ let Et = class extends me {
|
|
|
22320
22311
|
this.value = t;
|
|
22321
22312
|
}
|
|
22322
22313
|
renderElement() {
|
|
22323
|
-
return
|
|
22314
|
+
return be`
|
|
22324
22315
|
${[...Array(5)].map(
|
|
22325
|
-
(t, r) =>
|
|
22316
|
+
(t, r) => be`
|
|
22326
22317
|
<lr-rating-element
|
|
22327
22318
|
size=${this.size}
|
|
22328
22319
|
.active=${r + 1 <= (this.hoveredRating ?? this.value)}
|
|
@@ -22388,7 +22379,7 @@ let Cn = class extends me {
|
|
|
22388
22379
|
}
|
|
22389
22380
|
}
|
|
22390
22381
|
renderElement() {
|
|
22391
|
-
return
|
|
22382
|
+
return be`
|
|
22392
22383
|
<form @submit="${this.handleSubmit}">
|
|
22393
22384
|
<p>${this.label}</p>
|
|
22394
22385
|
<lr-rating name="rating" size="small" value="${this.rating}" submitOnChange></lr-rating>
|
|
@@ -22429,17 +22420,17 @@ let Ke = class extends me {
|
|
|
22429
22420
|
};
|
|
22430
22421
|
}
|
|
22431
22422
|
renderElement() {
|
|
22432
|
-
return
|
|
22423
|
+
return be` <slot></slot>
|
|
22433
22424
|
|
|
22434
|
-
${this.showEscalation ?
|
|
22425
|
+
${this.showEscalation ? be`<div class="button-container">
|
|
22435
22426
|
${Z3(
|
|
22436
22427
|
Fe("chatbot:escalation.suggestions", {
|
|
22437
22428
|
context: K3() ? "mobile" : ""
|
|
22438
22429
|
})
|
|
22439
22430
|
)}
|
|
22440
22431
|
</div>` : se}
|
|
22441
|
-
${this.showMessageRating ?
|
|
22442
|
-
${this.showConversationRating ?
|
|
22432
|
+
${this.showMessageRating ? be`<lr-chatbot-message-rating></lr-chatbot-message-rating>` : se}
|
|
22433
|
+
${this.showConversationRating ? be`<lr-chatbot-conversation-rating></lr-chatbot-conversation-rating>` : se}`;
|
|
22443
22434
|
}
|
|
22444
22435
|
};
|
|
22445
22436
|
Ke.styles = [me.styles, J3];
|
|
@@ -22533,7 +22524,7 @@ let At = class extends me {
|
|
|
22533
22524
|
Bn(this, oi, t);
|
|
22534
22525
|
}
|
|
22535
22526
|
getVersion() {
|
|
22536
|
-
return "LR Chatbot - 0.19.
|
|
22527
|
+
return "LR Chatbot - 0.19.5";
|
|
22537
22528
|
}
|
|
22538
22529
|
async connectedCallback() {
|
|
22539
22530
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -22752,7 +22743,7 @@ let At = class extends me {
|
|
|
22752
22743
|
(this.opened || this.minimized) && (localStorage.removeItem(Ur), localStorage.removeItem(jn), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
|
|
22753
22744
|
}
|
|
22754
22745
|
renderExitOverlay() {
|
|
22755
|
-
return
|
|
22746
|
+
return be`
|
|
22756
22747
|
<div
|
|
22757
22748
|
${Hr({
|
|
22758
22749
|
in: Pc,
|
|
@@ -22772,7 +22763,7 @@ let At = class extends me {
|
|
|
22772
22763
|
`;
|
|
22773
22764
|
}
|
|
22774
22765
|
renderChatPopin() {
|
|
22775
|
-
return
|
|
22766
|
+
return be`
|
|
22776
22767
|
<div
|
|
22777
22768
|
id="chat-wrapper"
|
|
22778
22769
|
aria-hidden=${!this.opened}
|
|
@@ -22811,7 +22802,7 @@ let At = class extends me {
|
|
|
22811
22802
|
</div>
|
|
22812
22803
|
<div id="chat-wrapper-content">
|
|
22813
22804
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
22814
|
-
${this._conversationHistoryTask.status === Ia.PENDING ?
|
|
22805
|
+
${this._conversationHistoryTask.status === Ia.PENDING ? be`<lr-loading-overlay
|
|
22815
22806
|
${Hr({
|
|
22816
22807
|
in: Pc,
|
|
22817
22808
|
out: Mc
|
|
@@ -22823,7 +22814,7 @@ let At = class extends me {
|
|
|
22823
22814
|
`;
|
|
22824
22815
|
}
|
|
22825
22816
|
renderMinimizedChat() {
|
|
22826
|
-
return
|
|
22817
|
+
return be`
|
|
22827
22818
|
<div
|
|
22828
22819
|
id="chat-minimized"
|
|
22829
22820
|
@click=${this.open}
|
|
@@ -22842,7 +22833,7 @@ let At = class extends me {
|
|
|
22842
22833
|
`;
|
|
22843
22834
|
}
|
|
22844
22835
|
renderElement() {
|
|
22845
|
-
return
|
|
22836
|
+
return be`${this.renderChatPopin()}${this.minimized && !this.opened ? this.renderMinimizedChat() : se}`;
|
|
22846
22837
|
}
|
|
22847
22838
|
};
|
|
22848
22839
|
ri = /* @__PURE__ */ new WeakMap();
|