@enegelai/bot-widget 1.5.0 → 1.5.1
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/enegelaibot.umd.js +52 -52
- package/dist/index.es.js +242 -233
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Ma = Object.defineProperty;
|
|
|
2
2
|
var Ea = (a, t, c) => t in a ? Ma(a, t, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[t] = c;
|
|
3
3
|
var se = (a, t, c) => (Ea(a, typeof t != "symbol" ? t + "" : t, c), c);
|
|
4
4
|
import { css as U, LitElement as rt, html as w, svg as He } from "lit";
|
|
5
|
-
import { property as
|
|
5
|
+
import { property as k, customElement as Y, queryAll as Nt, query as De, eventOptions as xt } from "lit/decorators.js";
|
|
6
6
|
import { unsafeHTML as ke } from "lit-html/directives/unsafe-html.js";
|
|
7
7
|
import { when as ge } from "lit/directives/when.js";
|
|
8
8
|
import "@shoelace-style/shoelace/dist/themes/light.css";
|
|
@@ -90,8 +90,8 @@ class Ke extends EventTarget {
|
|
|
90
90
|
return this[i];
|
|
91
91
|
},
|
|
92
92
|
set(b) {
|
|
93
|
-
const
|
|
94
|
-
this[i] = b, f(b,
|
|
93
|
+
const C = this[c];
|
|
94
|
+
this[i] = b, f(b, C) === !0 && this.dispatchStateEvent(c, b, this);
|
|
95
95
|
},
|
|
96
96
|
configurable: !0,
|
|
97
97
|
enumerable: !0
|
|
@@ -150,8 +150,8 @@ const Yt = ({ finisher: a, descriptor: t }) => (c, i) => {
|
|
|
150
150
|
var n;
|
|
151
151
|
if (i === void 0) {
|
|
152
152
|
const f = (n = c.originalKey) !== null && n !== void 0 ? n : c.key, b = t != null ? { kind: "method", placement: "prototype", key: f, descriptor: t(c.key) } : { ...c, key: f };
|
|
153
|
-
return a != null && (b.finisher = function(
|
|
154
|
-
a(
|
|
153
|
+
return a != null && (b.finisher = function(C) {
|
|
154
|
+
a(C, f);
|
|
155
155
|
}), b;
|
|
156
156
|
}
|
|
157
157
|
{
|
|
@@ -194,10 +194,10 @@ function he(a) {
|
|
|
194
194
|
const L = f.initialValue;
|
|
195
195
|
f.initialValue = () => La(localStorage.getItem(n), b) ?? Ut(L), t.propertyMap.set(c, { ...f, ...a });
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const C = i == null ? void 0 : i.set, V = {
|
|
198
198
|
...i,
|
|
199
199
|
set: function(L) {
|
|
200
|
-
L !== void 0 && localStorage.setItem(n, b === Object || b === Array ? JSON.stringify(L) : L),
|
|
200
|
+
L !== void 0 && localStorage.setItem(n, b === Object || b === Array ? JSON.stringify(L) : L), C && C.call(this, L);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
Object.defineProperty(t.prototype, c, V);
|
|
@@ -221,8 +221,8 @@ var Gt = { exports: {} };
|
|
|
221
221
|
"warn",
|
|
222
222
|
"error"
|
|
223
223
|
];
|
|
224
|
-
function f(E,
|
|
225
|
-
var D = E[
|
|
224
|
+
function f(E, z) {
|
|
225
|
+
var D = E[z];
|
|
226
226
|
if (typeof D.bind == "function")
|
|
227
227
|
return D.bind(E);
|
|
228
228
|
try {
|
|
@@ -236,27 +236,27 @@ var Gt = { exports: {} };
|
|
|
236
236
|
function b() {
|
|
237
237
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function C(E) {
|
|
240
240
|
return E === "debug" && (E = "log"), typeof console === c ? !1 : E === "trace" && i ? b : console[E] !== void 0 ? f(console, E) : console.log !== void 0 ? f(console, "log") : t;
|
|
241
241
|
}
|
|
242
|
-
function S(E,
|
|
242
|
+
function S(E, z) {
|
|
243
243
|
for (var D = 0; D < n.length; D++) {
|
|
244
244
|
var $ = n[D];
|
|
245
|
-
this[$] = D < E ? t : this.methodFactory($, E,
|
|
245
|
+
this[$] = D < E ? t : this.methodFactory($, E, z);
|
|
246
246
|
}
|
|
247
247
|
this.log = this.debug;
|
|
248
248
|
}
|
|
249
|
-
function V(E,
|
|
249
|
+
function V(E, z, D) {
|
|
250
250
|
return function() {
|
|
251
|
-
typeof console !== c && (S.call(this,
|
|
251
|
+
typeof console !== c && (S.call(this, z, D), this[E].apply(this, arguments));
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function L(E,
|
|
255
|
-
return
|
|
254
|
+
function L(E, z, D) {
|
|
255
|
+
return C(E) || V.apply(this, arguments);
|
|
256
256
|
}
|
|
257
|
-
function T(E,
|
|
257
|
+
function T(E, z, D) {
|
|
258
258
|
var $ = this, le;
|
|
259
|
-
|
|
259
|
+
z = z ?? "WARN";
|
|
260
260
|
var ee = "loglevel";
|
|
261
261
|
typeof E == "string" ? ee += ":" + E : typeof E == "symbol" && (ee = void 0);
|
|
262
262
|
function lt(y) {
|
|
@@ -320,24 +320,24 @@ var Gt = { exports: {} };
|
|
|
320
320
|
} else
|
|
321
321
|
throw "log.setLevel() called with invalid level: " + y;
|
|
322
322
|
}, $.setDefaultLevel = function(y) {
|
|
323
|
-
|
|
323
|
+
z = y, Ie() || $.setLevel(y, !1);
|
|
324
324
|
}, $.resetLevel = function() {
|
|
325
|
-
$.setLevel(
|
|
325
|
+
$.setLevel(z, !1), Fe();
|
|
326
326
|
}, $.enableAll = function(y) {
|
|
327
327
|
$.setLevel($.levels.TRACE, y);
|
|
328
328
|
}, $.disableAll = function(y) {
|
|
329
329
|
$.setLevel($.levels.SILENT, y);
|
|
330
330
|
};
|
|
331
331
|
var Se = Ie();
|
|
332
|
-
Se == null && (Se =
|
|
332
|
+
Se == null && (Se = z), $.setLevel(Se, !1);
|
|
333
333
|
}
|
|
334
334
|
var A = new T(), F = {};
|
|
335
|
-
A.getLogger = function(
|
|
336
|
-
if (typeof
|
|
335
|
+
A.getLogger = function(z) {
|
|
336
|
+
if (typeof z != "symbol" && typeof z != "string" || z === "")
|
|
337
337
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
338
|
-
var D = F[
|
|
339
|
-
return D || (D = F[
|
|
340
|
-
|
|
338
|
+
var D = F[z];
|
|
339
|
+
return D || (D = F[z] = new T(
|
|
340
|
+
z,
|
|
341
341
|
A.getLevel(),
|
|
342
342
|
A.methodFactory
|
|
343
343
|
)), D;
|
|
@@ -523,10 +523,10 @@ let Be = class extends rt {
|
|
|
523
523
|
};
|
|
524
524
|
Be.styles = Jt;
|
|
525
525
|
kt([
|
|
526
|
-
|
|
526
|
+
k({ type: String })
|
|
527
527
|
], Be.prototype, "color", 2);
|
|
528
528
|
kt([
|
|
529
|
-
|
|
529
|
+
k({ type: String })
|
|
530
530
|
], Be.prototype, "svg", 2);
|
|
531
531
|
Be = kt([
|
|
532
532
|
Y("cb-icon")
|
|
@@ -536,9 +536,9 @@ let Ba = (a) => crypto.getRandomValues(new Uint8Array(a)), qa = (a, t, c) => {
|
|
|
536
536
|
return (f = t) => {
|
|
537
537
|
let b = "";
|
|
538
538
|
for (; ; ) {
|
|
539
|
-
let
|
|
539
|
+
let C = c(n), S = n;
|
|
540
540
|
for (; S--; )
|
|
541
|
-
if (b += a[
|
|
541
|
+
if (b += a[C[S] & i] || "", b.length === f)
|
|
542
542
|
return b;
|
|
543
543
|
}
|
|
544
544
|
};
|
|
@@ -677,12 +677,12 @@ class Na {
|
|
|
677
677
|
});
|
|
678
678
|
}*/
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function R(a) {
|
|
681
681
|
return a != null && typeof a == "object" && a["@@functional/placeholder"] === !0;
|
|
682
682
|
}
|
|
683
683
|
function Ee(a) {
|
|
684
684
|
return function t(c) {
|
|
685
|
-
return arguments.length === 0 ||
|
|
685
|
+
return arguments.length === 0 || R(c) ? t : a.apply(this, arguments);
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
function be(a) {
|
|
@@ -691,13 +691,13 @@ function be(a) {
|
|
|
691
691
|
case 0:
|
|
692
692
|
return t;
|
|
693
693
|
case 1:
|
|
694
|
-
return
|
|
694
|
+
return R(c) ? t : Ee(function(n) {
|
|
695
695
|
return a(c, n);
|
|
696
696
|
});
|
|
697
697
|
default:
|
|
698
|
-
return
|
|
698
|
+
return R(c) && R(i) ? t : R(c) ? Ee(function(n) {
|
|
699
699
|
return a(n, i);
|
|
700
|
-
}) :
|
|
700
|
+
}) : R(i) ? Ee(function(n) {
|
|
701
701
|
return a(c, n);
|
|
702
702
|
}) : a(c, i);
|
|
703
703
|
}
|
|
@@ -709,29 +709,29 @@ function Ua(a) {
|
|
|
709
709
|
case 0:
|
|
710
710
|
return t;
|
|
711
711
|
case 1:
|
|
712
|
-
return
|
|
712
|
+
return R(c) ? t : be(function(f, b) {
|
|
713
713
|
return a(c, f, b);
|
|
714
714
|
});
|
|
715
715
|
case 2:
|
|
716
|
-
return
|
|
716
|
+
return R(c) && R(i) ? t : R(c) ? be(function(f, b) {
|
|
717
717
|
return a(f, i, b);
|
|
718
|
-
}) :
|
|
718
|
+
}) : R(i) ? be(function(f, b) {
|
|
719
719
|
return a(c, f, b);
|
|
720
720
|
}) : Ee(function(f) {
|
|
721
721
|
return a(c, i, f);
|
|
722
722
|
});
|
|
723
723
|
default:
|
|
724
|
-
return
|
|
724
|
+
return R(c) && R(i) && R(n) ? t : R(c) && R(i) ? be(function(f, b) {
|
|
725
725
|
return a(f, b, n);
|
|
726
|
-
}) :
|
|
726
|
+
}) : R(c) && R(n) ? be(function(f, b) {
|
|
727
727
|
return a(f, i, b);
|
|
728
|
-
}) :
|
|
728
|
+
}) : R(i) && R(n) ? be(function(f, b) {
|
|
729
729
|
return a(c, f, b);
|
|
730
|
-
}) :
|
|
730
|
+
}) : R(c) ? Ee(function(f) {
|
|
731
731
|
return a(f, i, n);
|
|
732
|
-
}) :
|
|
732
|
+
}) : R(i) ? Ee(function(f) {
|
|
733
733
|
return a(c, f, n);
|
|
734
|
-
}) :
|
|
734
|
+
}) : R(n) ? Ee(function(f) {
|
|
735
735
|
return a(c, i, f);
|
|
736
736
|
}) : a(c, i, n);
|
|
737
737
|
}
|
|
@@ -776,8 +776,8 @@ var ic = Object.defineProperty, nc = Object.getOwnPropertyDescriptor, Z = (a, t,
|
|
|
776
776
|
(b = a[f]) && (n = (i ? b(t, c, n) : b(n)) || n);
|
|
777
777
|
return i && n && ic(t, c, n), n;
|
|
778
778
|
};
|
|
779
|
-
const
|
|
780
|
-
|
|
779
|
+
const q = ft.noConflict();
|
|
780
|
+
q.setLevel("info");
|
|
781
781
|
const oe = "cb_";
|
|
782
782
|
class W extends Ke {
|
|
783
783
|
constructor() {
|
|
@@ -785,8 +785,8 @@ class W extends Ke {
|
|
|
785
785
|
}
|
|
786
786
|
// this is called at startup
|
|
787
787
|
setSetting(t) {
|
|
788
|
-
|
|
789
|
-
|
|
788
|
+
q.info("appState: Startup: setSetting", t), this.setting = t, this.initBot().catch((c) => {
|
|
789
|
+
q.info(`Exception during bot initialization: ${c.message}`);
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
// set language
|
|
@@ -800,7 +800,7 @@ class W extends Ke {
|
|
|
800
800
|
async initBot() {
|
|
801
801
|
if (!this.botSettingsInitialized) {
|
|
802
802
|
const c = `${this.setting.url.startsWith("localhost") ? "http" : "https"}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}`;
|
|
803
|
-
|
|
803
|
+
q.info(`Getting bot settings at ${c} ...`);
|
|
804
804
|
let i = null, n = null;
|
|
805
805
|
try {
|
|
806
806
|
i = await fetch(c, {
|
|
@@ -808,13 +808,13 @@ class W extends Ke {
|
|
|
808
808
|
"Access-Control-Allow-Origin": "null",
|
|
809
809
|
"X-Enegel-Signature": this.setting.botId
|
|
810
810
|
}
|
|
811
|
-
}), !i.ok || i.status !== 200 ?
|
|
811
|
+
}), !i.ok || i.status !== 200 ? q.error(`Failed to get bot ${this.setting.botId} settings: ${i.status} ${i.statusText}`) : n = await i.json();
|
|
812
812
|
} catch (f) {
|
|
813
|
-
|
|
813
|
+
q.error(`Failed to get bot ${this.setting.botId} settings: ${f.message}`), n = null;
|
|
814
814
|
}
|
|
815
815
|
if (this.botSettingsInitialized = !0, this.botSettings = n, !n) {
|
|
816
|
-
if (
|
|
817
|
-
|
|
816
|
+
if (q.error(`Unable to retrieve bot settings - bot disabled. Retry in ${this.botSettingsRetryTimeout} seconds.`), this.disabled = !0, this.botSettingsRetryTimeout > 80) {
|
|
817
|
+
q.error("Failed to retrieve bot settings - bot disabled. Retries exhausted. Refresh page to attempt again.");
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
820
820
|
this.botSettingsInitialized = !1, setTimeout(async () => {
|
|
@@ -822,12 +822,12 @@ class W extends Ke {
|
|
|
822
822
|
}, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
|
|
825
|
+
q.info("Got bot settings - bot is enabled", n), this.disabled = !1, this.setting.welcomeMessage = (n == null ? void 0 : n.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (n == null ? void 0 : n.engageMessage) || "How can I help ?", this.setting.engageTimeout = (n == null ? void 0 : n.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in n ? n.splitMessagesAtBreak : !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
|
|
826
826
|
this.showEngagePopup();
|
|
827
827
|
}, this.setting.engageTimeout * 1e3);
|
|
828
828
|
}
|
|
829
|
-
this.connectWs === "true" && (
|
|
830
|
-
|
|
829
|
+
this.connectWs === "true" && (q.info("appState: connectWs is true"), this.getWsClient().catch((t) => {
|
|
830
|
+
q.error(`Exception during ws client startup: ${t.message}`);
|
|
831
831
|
}));
|
|
832
832
|
}
|
|
833
833
|
initConversation() {
|
|
@@ -856,7 +856,7 @@ class W extends Ke {
|
|
|
856
856
|
initStartupForm() {
|
|
857
857
|
const t = ut(null, ["startupForm"], this.botSettings);
|
|
858
858
|
if (!t || !(t != null && t.name)) {
|
|
859
|
-
|
|
859
|
+
q.info("Startup form not present");
|
|
860
860
|
return;
|
|
861
861
|
}
|
|
862
862
|
this.initForm(t);
|
|
@@ -867,20 +867,20 @@ class W extends Ke {
|
|
|
867
867
|
return;
|
|
868
868
|
const n = ut(null, ["fields"], t);
|
|
869
869
|
if (!Array.isArray(n) || n.length <= 0) {
|
|
870
|
-
|
|
870
|
+
q.info("form has no fields", t);
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
873
|
const f = `${oe}${this.setting.botId}.${this.conversationId}.form.${i}`, b = localStorage.getItem(f);
|
|
874
874
|
if (b) {
|
|
875
|
-
let
|
|
875
|
+
let C = null;
|
|
876
876
|
try {
|
|
877
|
-
|
|
877
|
+
C = JSON.parse(b);
|
|
878
878
|
} catch (S) {
|
|
879
|
-
|
|
879
|
+
q.error(`Failed to parse stored form data: ${S.message}`), C = null;
|
|
880
880
|
}
|
|
881
|
-
if (
|
|
882
|
-
this.sendFormData(i,
|
|
883
|
-
|
|
881
|
+
if (C) {
|
|
882
|
+
this.sendFormData(i, C).catch((S) => {
|
|
883
|
+
q.error(`Error when submitting form: ${S.message}`);
|
|
884
884
|
});
|
|
885
885
|
return;
|
|
886
886
|
}
|
|
@@ -893,11 +893,11 @@ class W extends Ke {
|
|
|
893
893
|
showEngagePopup() {
|
|
894
894
|
if (this.open)
|
|
895
895
|
return;
|
|
896
|
-
|
|
896
|
+
q.info("Engaging User !"), this.engage = !0;
|
|
897
897
|
const t = (f) => {
|
|
898
898
|
const b = new Uint8Array(f.length / 2);
|
|
899
|
-
for (let
|
|
900
|
-
b[
|
|
899
|
+
for (let C = 0; C < b.length; C++)
|
|
900
|
+
b[C] = parseInt(f.substr(C * 2, 2), 16);
|
|
901
901
|
return b;
|
|
902
902
|
};
|
|
903
903
|
let c = new Blob([t(cc)], { type: "application/octet-stream" });
|
|
@@ -911,7 +911,7 @@ class W extends Ke {
|
|
|
911
911
|
if (this.wsClient)
|
|
912
912
|
return this.wsClient;
|
|
913
913
|
const c = `${this.setting.url.startsWith("localhost") ? "ws" : "wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;
|
|
914
|
-
return
|
|
914
|
+
return q.info(`Initiating ws connection to ${c} ...`), this.wsClient = new Na({
|
|
915
915
|
url: c,
|
|
916
916
|
orgId: this.setting.orgId,
|
|
917
917
|
botId: this.setting.botId,
|
|
@@ -956,7 +956,7 @@ class W extends Ke {
|
|
|
956
956
|
break;
|
|
957
957
|
}
|
|
958
958
|
case "form": {
|
|
959
|
-
if (
|
|
959
|
+
if (q.info("Got form:", t), this.replyMessage && this.replyMessage.id) {
|
|
960
960
|
const i = ((c = this.replyMessage.data) == null ? void 0 : c.text) || "";
|
|
961
961
|
(this.replyMessage.isThinking || i.trim() === "") && (this.removeMessage(this.replyMessage.id), this.replyMessage = null);
|
|
962
962
|
}
|
|
@@ -984,7 +984,7 @@ class W extends Ke {
|
|
|
984
984
|
if (i !== -1) {
|
|
985
985
|
if (this.setting.splitMessagesAtBreak) {
|
|
986
986
|
const n = this.streamingResponseBuffer.substring(0, i).trim(), f = this.streamingResponseBuffer.substring(i + 4).trim();
|
|
987
|
-
|
|
987
|
+
q.info(`BREAK: Splitting the message: ${this.streamingResponseBuffer} >>> prev: ${n} next: ${f}`), this.replyMessage = this.updateMessage(this.replyMessage, n), this.replyMessage = { author: "assistant", type: "text", isThinking: !1, data: { text: "" } }, this.addMessage(this.replyMessage), c = f;
|
|
988
988
|
} else
|
|
989
989
|
c = this.streamingResponseBuffer;
|
|
990
990
|
this.streamingResponseBuffer = null, this.streamingResponseTagStartPos = 0;
|
|
@@ -1029,10 +1029,10 @@ class W extends Ke {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
async sendMessage(t) {
|
|
1032
|
-
t = this.formatMessage(t),
|
|
1032
|
+
t = this.formatMessage(t), q.info("Send Message:", t), this.messages = this.messages.concat([t]), this.lastConversationUpdate = Date.now();
|
|
1033
1033
|
const c = await this.getWsClient();
|
|
1034
1034
|
if (!c) {
|
|
1035
|
-
|
|
1035
|
+
q.error("Error - failed to obtain ws client"), this.replyMessage = null;
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
1038
|
c.sendMessage({
|
|
@@ -1075,7 +1075,7 @@ class W extends Ke {
|
|
|
1075
1075
|
// Submit current form data
|
|
1076
1076
|
async submitForm(t) {
|
|
1077
1077
|
if (!this.form) {
|
|
1078
|
-
|
|
1078
|
+
q.info("submitForm: No form is active - ignored");
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
1081
|
const c = `${oe}${this.setting.botId}.${this.conversationId}.form.${this.form.name}`;
|
|
@@ -1084,7 +1084,7 @@ class W extends Ke {
|
|
|
1084
1084
|
async sendFormData(t, c) {
|
|
1085
1085
|
const i = await this.getWsClient();
|
|
1086
1086
|
if (!i) {
|
|
1087
|
-
|
|
1087
|
+
q.error("Error - failed to obtain ws client");
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
1090
|
i.sendMessage({
|
|
@@ -1284,7 +1284,7 @@ class Q extends rt {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
fc([
|
|
1287
|
-
|
|
1287
|
+
k({ type: String })
|
|
1288
1288
|
], Q.prototype, "lang", 2);
|
|
1289
1289
|
const et = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/></svg>';
|
|
1290
1290
|
var dc = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, Kt = (a, t, c, i) => {
|
|
@@ -1335,7 +1335,7 @@ let tt = class extends Q {
|
|
|
1335
1335
|
};
|
|
1336
1336
|
tt.styles = sc;
|
|
1337
1337
|
Kt([
|
|
1338
|
-
|
|
1338
|
+
k({ type: String, attribute: "title" })
|
|
1339
1339
|
], tt.prototype, "title", 2);
|
|
1340
1340
|
tt = Kt([
|
|
1341
1341
|
Y("cb-header")
|
|
@@ -1553,12 +1553,12 @@ var Qt = { exports: {} };
|
|
|
1553
1553
|
return e && n(r.prototype, e), s && n(r, s), r;
|
|
1554
1554
|
}
|
|
1555
1555
|
var b = Date.now();
|
|
1556
|
-
function
|
|
1556
|
+
function C() {
|
|
1557
1557
|
var r = {}, e = !0, s = 0, o = arguments.length;
|
|
1558
1558
|
Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], s++);
|
|
1559
1559
|
for (var d = function(h) {
|
|
1560
1560
|
for (var u in h)
|
|
1561
|
-
Object.prototype.hasOwnProperty.call(h, u) && (e && Object.prototype.toString.call(h[u]) === "[object Object]" ? r[u] =
|
|
1561
|
+
Object.prototype.hasOwnProperty.call(h, u) && (e && Object.prototype.toString.call(h[u]) === "[object Object]" ? r[u] = C(!0, r[u], h[u]) : r[u] = h[u]);
|
|
1562
1562
|
}; s < o; s++) {
|
|
1563
1563
|
var l = arguments[s];
|
|
1564
1564
|
d(l);
|
|
@@ -1635,7 +1635,7 @@ var Qt = { exports: {} };
|
|
|
1635
1635
|
}), y(s) && s();
|
|
1636
1636
|
} });
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function z(r) {
|
|
1639
1639
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
1640
1640
|
if (e === "")
|
|
1641
1641
|
return r.style.webkitTransform = "", r.style.MozTransform = "", r.style.msTransform = "", r.style.OTransform = "", r.style.transform = "", !1;
|
|
@@ -1917,21 +1917,21 @@ var Qt = { exports: {} };
|
|
|
1917
1917
|
if (u.style[h] !== void 0)
|
|
1918
1918
|
return p[h];
|
|
1919
1919
|
}(), s = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, o = F(r, "gslide-media") ? r : r.querySelector(".gslide-media"), d = ce(o, ".ginner-container"), l = r.querySelector(".gslide-description");
|
|
1920
|
-
s > 769 && (o = d), T(o, "greset"),
|
|
1920
|
+
s > 769 && (o = d), T(o, "greset"), z(o, "translate3d(0, 0, 0)"), L(e, { onElement: o, once: !0, withCallback: function(h, u) {
|
|
1921
1921
|
A(o, "greset");
|
|
1922
1922
|
} }), o.style.opacity = "", l && (l.style.opacity = "");
|
|
1923
1923
|
}
|
|
1924
1924
|
function ha(r) {
|
|
1925
1925
|
if (r.events.hasOwnProperty("touch"))
|
|
1926
1926
|
return !1;
|
|
1927
|
-
var e, s, o, d = ee(), l = d.width, h = d.height, u = !1, p = null, v = null, g = null, m = !1, M = 1, _ = 1, j = !1,
|
|
1927
|
+
var e, s, o, d = ee(), l = d.width, h = d.height, u = !1, p = null, v = null, g = null, m = !1, M = 1, _ = 1, j = !1, H = !1, I = null, re = null, ae = null, ve = null, we = 0, _e = 0, je = !1, ht = !1, Te = {}, Me = {}, Ot = 0, Pt = 0, ka = document.getElementById("glightbox-slider"), Xe = document.querySelector(".goverlay"), Ca = new ba(ka, { touchStart: function(O) {
|
|
1928
1928
|
if (u = !0, (F(O.targetTouches[0].target, "ginner-container") || ce(O.targetTouches[0].target, ".gslide-desc") || O.targetTouches[0].target.nodeName.toLowerCase() == "a") && (u = !1), ce(O.targetTouches[0].target, ".gslide-inline") && !F(O.targetTouches[0].target.parentNode, "gslide-inline") && (u = !1), u) {
|
|
1929
1929
|
if (Me = O.targetTouches[0], Te.pageX = O.targetTouches[0].pageX, Te.pageY = O.targetTouches[0].pageY, Ot = O.targetTouches[0].clientX, Pt = O.targetTouches[0].clientY, p = r.activeSlide, v = p.querySelector(".gslide-media"), o = p.querySelector(".gslide-inline"), g = null, F(v, "gslide-image") && (g = v.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (v = p.querySelector(".ginner-container")), A(Xe, "greset"), O.pageX > 20 && O.pageX < window.innerWidth - 20)
|
|
1930
1930
|
return;
|
|
1931
1931
|
O.preventDefault();
|
|
1932
1932
|
}
|
|
1933
1933
|
}, touchMove: function(O) {
|
|
1934
|
-
if (u && (Me = O.targetTouches[0], !j && !
|
|
1934
|
+
if (u && (Me = O.targetTouches[0], !j && !H)) {
|
|
1935
1935
|
if (o && o.offsetHeight > h) {
|
|
1936
1936
|
var K = Te.pageX - Me.pageX;
|
|
1937
1937
|
if (Math.abs(K) <= 13)
|
|
@@ -1940,12 +1940,12 @@ var Qt = { exports: {} };
|
|
|
1940
1940
|
m = !0;
|
|
1941
1941
|
var xe, Ze = O.targetTouches[0].clientX, Sa = O.targetTouches[0].clientY, _a = Ot - Ze, Ta = Pt - Sa;
|
|
1942
1942
|
if (Math.abs(_a) > Math.abs(Ta) ? (je = !1, ht = !0) : (ht = !1, je = !0), e = Me.pageX - Te.pageX, we = 100 * e / l, s = Me.pageY - Te.pageY, _e = 100 * s / h, je && g && (xe = 1 - Math.abs(s) / h, Xe.style.opacity = xe, r.settings.touchFollowAxis && (we = 0)), ht && (xe = 1 - Math.abs(e) / l, v.style.opacity = xe, r.settings.touchFollowAxis && (_e = 0)), !g)
|
|
1943
|
-
return
|
|
1944
|
-
|
|
1943
|
+
return z(v, "translate3d(".concat(we, "%, 0, 0)"));
|
|
1944
|
+
z(v, "translate3d(".concat(we, "%, ").concat(_e, "%, 0)"));
|
|
1945
1945
|
}
|
|
1946
1946
|
}, touchEnd: function() {
|
|
1947
1947
|
if (u) {
|
|
1948
|
-
if (m = !1,
|
|
1948
|
+
if (m = !1, H || j)
|
|
1949
1949
|
return ae = I, void (ve = re);
|
|
1950
1950
|
var O = Math.abs(parseInt(_e)), K = Math.abs(parseInt(we));
|
|
1951
1951
|
if (!(O > 29 && g))
|
|
@@ -1963,18 +1963,18 @@ var Qt = { exports: {} };
|
|
|
1963
1963
|
return !1;
|
|
1964
1964
|
j = !0, g.scaleX = g.scaleY = M * O.zoom;
|
|
1965
1965
|
var K = M * O.zoom;
|
|
1966
|
-
if (
|
|
1967
|
-
return
|
|
1966
|
+
if (H = !0, K <= 1)
|
|
1967
|
+
return H = !1, K = 1, ve = null, ae = null, I = null, re = null, void g.setAttribute("style", "");
|
|
1968
1968
|
K > 4.5 && (K = 4.5), g.style.transform = "scale3d(".concat(K, ", ").concat(K, ", 1)"), _ = K;
|
|
1969
1969
|
}, pressMove: function(O) {
|
|
1970
|
-
if (
|
|
1970
|
+
if (H && !j) {
|
|
1971
1971
|
var K = Me.pageX - Te.pageX, xe = Me.pageY - Te.pageY;
|
|
1972
1972
|
ae && (K += ae), ve && (xe += ve), I = K, re = xe;
|
|
1973
1973
|
var Ze = "translate3d(".concat(K, "px, ").concat(xe, "px, 0)");
|
|
1974
|
-
_ && (Ze += " scale3d(".concat(_, ", ").concat(_, ", 1)")),
|
|
1974
|
+
_ && (Ze += " scale3d(".concat(_, ", ").concat(_, ", 1)")), z(g, Ze);
|
|
1975
1975
|
}
|
|
1976
1976
|
}, swipe: function(O) {
|
|
1977
|
-
if (!
|
|
1977
|
+
if (!H)
|
|
1978
1978
|
if (j)
|
|
1979
1979
|
j = !1;
|
|
1980
1980
|
else {
|
|
@@ -2115,7 +2115,7 @@ var Qt = { exports: {} };
|
|
|
2115
2115
|
}
|
|
2116
2116
|
var j = M || le('<div id="'.concat(h, '" data-plyr-provider="').concat(m, '" data-plyr-embed-id="').concat(g, '"></div>'));
|
|
2117
2117
|
T(v, "".concat(m, "-video gvideo")), v.appendChild(j), v.setAttribute("data-id", h), v.setAttribute("data-index", s);
|
|
2118
|
-
var
|
|
2118
|
+
var H = N(d.settings.plyr, "config") ? d.settings.plyr.config : {}, I = new Plyr("#" + h, H);
|
|
2119
2119
|
I.on("ready", function(re) {
|
|
2120
2120
|
p[h] = re.detail.plyr, y(o) && o();
|
|
2121
2121
|
}), Ie(function() {
|
|
@@ -2161,23 +2161,23 @@ var Qt = { exports: {} };
|
|
|
2161
2161
|
var va = function() {
|
|
2162
2162
|
function r() {
|
|
2163
2163
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2164
|
-
i(this, r), this.defaults = { href: "", sizes: "", srcset: "", title: "", type: "", videoProvider: "", description: "", alt: "", descPosition: "bottom", effect: "", width: "", height: "", content: !1, zoomable: !0, draggable: !0 }, Le(e) && (this.defaults =
|
|
2164
|
+
i(this, r), this.defaults = { href: "", sizes: "", srcset: "", title: "", type: "", videoProvider: "", description: "", alt: "", descPosition: "bottom", effect: "", width: "", height: "", content: !1, zoomable: !0, draggable: !0 }, Le(e) && (this.defaults = C(this.defaults, e));
|
|
2165
2165
|
}
|
|
2166
2166
|
return f(r, [{ key: "sourceType", value: function(e) {
|
|
2167
2167
|
var s = e;
|
|
2168
2168
|
return (e = e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || e.match(/vimeo\.com\/([0-9]*)/) || e.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : e.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : e.indexOf("#") > -1 && s.split("#").pop().trim() !== "" ? "inline" : e.indexOf("goajax=true") > -1 ? "ajax" : "external";
|
|
2169
2169
|
} }, { key: "parseConfig", value: function(e, s) {
|
|
2170
|
-
var o = this, d =
|
|
2170
|
+
var o = this, d = C({ descPosition: s.descPosition }, this.defaults);
|
|
2171
2171
|
if (Le(e) && !te(e)) {
|
|
2172
2172
|
N(e, "type") || (N(e, "content") && e.content ? e.type = "inline" : N(e, "href") && (e.type = this.sourceType(e.href)));
|
|
2173
|
-
var l =
|
|
2173
|
+
var l = C(d, e);
|
|
2174
2174
|
return this.setSize(l, s), l;
|
|
2175
2175
|
}
|
|
2176
2176
|
var h = "", u = e.getAttribute("data-glightbox"), p = e.nodeName.toLowerCase();
|
|
2177
|
-
if (p === "a" && (h = e.href), p === "img" && (h = e.src, d.alt = e.alt), d.href = h, S(d, function(j,
|
|
2178
|
-
N(s,
|
|
2179
|
-
var I = e.dataset[
|
|
2180
|
-
ne(I) || (d[
|
|
2177
|
+
if (p === "a" && (h = e.href), p === "img" && (h = e.src, d.alt = e.alt), d.href = h, S(d, function(j, H) {
|
|
2178
|
+
N(s, H) && H !== "width" && (d[H] = s[H]);
|
|
2179
|
+
var I = e.dataset[H];
|
|
2180
|
+
ne(I) || (d[H] = o.sanitizeValue(I));
|
|
2181
2181
|
}), d.content && (d.type = "inline"), !d.type && h && (d.type = this.sourceType(h)), ne(u)) {
|
|
2182
2182
|
if (!d.title && p == "a") {
|
|
2183
2183
|
var v = e.title;
|
|
@@ -2189,13 +2189,13 @@ var Qt = { exports: {} };
|
|
|
2189
2189
|
}
|
|
2190
2190
|
} else {
|
|
2191
2191
|
var m = [];
|
|
2192
|
-
S(d, function(j,
|
|
2193
|
-
m.push(";\\s?" +
|
|
2194
|
-
}), m = m.join("\\s?:|"), u.trim() !== "" && S(d, function(j,
|
|
2195
|
-
var I = u, re = new RegExp("s?" +
|
|
2192
|
+
S(d, function(j, H) {
|
|
2193
|
+
m.push(";\\s?" + H);
|
|
2194
|
+
}), m = m.join("\\s?:|"), u.trim() !== "" && S(d, function(j, H) {
|
|
2195
|
+
var I = u, re = new RegExp("s?" + H + "s?:s?(.*?)(" + m + "s?:|$)"), ae = I.match(re);
|
|
2196
2196
|
if (ae && ae.length && ae[1]) {
|
|
2197
2197
|
var ve = ae[1].trim().replace(/;\s*$/, "");
|
|
2198
|
-
d[
|
|
2198
|
+
d[H] = o.sanitizeValue(ve);
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
@@ -2232,10 +2232,10 @@ var Qt = { exports: {} };
|
|
|
2232
2232
|
return !1;
|
|
2233
2233
|
var d = this.instance.settings, l = this.slideConfig, h = Se();
|
|
2234
2234
|
y(d.beforeSlideLoad) && d.beforeSlideLoad({ index: this.index, slide: s, player: !1 });
|
|
2235
|
-
var u = l.type, p = l.descPosition, v = s.querySelector(".gslide-media"), g = s.querySelector(".gslide-title"), m = s.querySelector(".gslide-desc"), M = s.querySelector(".gdesc-inner"), _ = o, j = "gSlideTitle_" + this.index,
|
|
2235
|
+
var u = l.type, p = l.descPosition, v = s.querySelector(".gslide-media"), g = s.querySelector(".gslide-title"), m = s.querySelector(".gslide-desc"), M = s.querySelector(".gdesc-inner"), _ = o, j = "gSlideTitle_" + this.index, H = "gSlideDesc_" + this.index;
|
|
2236
2236
|
if (y(d.afterSlideLoad) && (_ = function() {
|
|
2237
2237
|
y(o) && o(), d.afterSlideLoad({ index: e.index, slide: s, player: e.instance.getSlidePlayerInstance(e.index) });
|
|
2238
|
-
}), l.title == "" && l.description == "" ? M && M.parentNode.parentNode.removeChild(M.parentNode) : (g && l.title !== "" ? (g.id = j, g.innerHTML = l.title) : g.parentNode.removeChild(g), m && l.description !== "" ? (m.id =
|
|
2238
|
+
}), l.title == "" && l.description == "" ? M && M.parentNode.parentNode.removeChild(M.parentNode) : (g && l.title !== "" ? (g.id = j, g.innerHTML = l.title) : g.parentNode.removeChild(g), m && l.description !== "" ? (m.id = H, h && d.moreLength > 0 ? (l.smallDescription = this.slideShortDesc(l.description, d.moreLength, d.moreText), m.innerHTML = l.smallDescription, this.descriptionEvents(m, l)) : m.innerHTML = l.description) : m.parentNode.removeChild(m), T(v.parentNode, "desc-".concat(p)), T(M.parentNode, "description-".concat(p))), T(v, "gslide-".concat(u)), T(s, "loaded"), u !== "video") {
|
|
2239
2239
|
if (u !== "external")
|
|
2240
2240
|
return u === "inline" ? (ma.apply(this.instance, [s, l, this.index, _]), void (l.draggable && new At({ dragEl: s.querySelector(".gslide-inline"), toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: s, instance: this.instance }))) : void (u !== "image" ? y(_) && _() : pa(s, l, this.index, function() {
|
|
2241
2241
|
var I = s.querySelector("img");
|
|
@@ -2302,7 +2302,7 @@ var Qt = { exports: {} };
|
|
|
2302
2302
|
</div>` }, xa = function() {
|
|
2303
2303
|
function r() {
|
|
2304
2304
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2305
|
-
i(this, r), this.customOptions = e, this.settings =
|
|
2305
|
+
i(this, r), this.customOptions = e, this.settings = C(wa, e), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
|
|
2306
2306
|
}
|
|
2307
2307
|
return f(r, [{ key: "init", value: function() {
|
|
2308
2308
|
var e = this, s = this.getSelector();
|
|
@@ -2372,7 +2372,7 @@ var Qt = { exports: {} };
|
|
|
2372
2372
|
} }, { key: "insertSlide", value: function() {
|
|
2373
2373
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
|
|
2374
2374
|
s < 0 && (s = this.elements.length);
|
|
2375
|
-
var o = new Ye(e, this, s), d = o.getConfig(), l =
|
|
2375
|
+
var o = new Ye(e, this, s), d = o.getConfig(), l = C({}, d), h = o.create(), u = this.elements.length - 1;
|
|
2376
2376
|
l.index = s, l.node = !1, l.instance = o, l.slideConfig = d, this.elements.splice(s, 0, l);
|
|
2377
2377
|
var p = null, v = null;
|
|
2378
2378
|
if (this.slidesContainer) {
|
|
@@ -2459,7 +2459,7 @@ var Qt = { exports: {} };
|
|
|
2459
2459
|
this.settings.elements = !1;
|
|
2460
2460
|
var o = [];
|
|
2461
2461
|
e && e.length && S(e, function(d, l) {
|
|
2462
|
-
var h = new Ye(d, s, l), u = h.getConfig(), p =
|
|
2462
|
+
var h = new Ye(d, s, l), u = h.getConfig(), p = C({}, u);
|
|
2463
2463
|
p.slideConfig = u, p.instance = h, p.index = l, o.push(p);
|
|
2464
2464
|
}), this.elements = o, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (S(this.elements, function() {
|
|
2465
2465
|
var d = le(s.settings.slideHTML);
|
|
@@ -2474,12 +2474,12 @@ var Qt = { exports: {} };
|
|
|
2474
2474
|
} }, { key: "getElements", value: function() {
|
|
2475
2475
|
var e = this, s = [];
|
|
2476
2476
|
this.elements = this.elements ? this.elements : [], !ne(this.settings.elements) && Ne(this.settings.elements) && this.settings.elements.length && S(this.settings.elements, function(d, l) {
|
|
2477
|
-
var h = new Ye(d, e, l), u = h.getConfig(), p =
|
|
2477
|
+
var h = new Ye(d, e, l), u = h.getConfig(), p = C({}, u);
|
|
2478
2478
|
p.node = !1, p.index = l, p.instance = h, p.slideConfig = u, s.push(p);
|
|
2479
2479
|
});
|
|
2480
2480
|
var o = !1;
|
|
2481
2481
|
return this.getSelector() && (o = document.querySelectorAll(this.getSelector())), o && S(o, function(d, l) {
|
|
2482
|
-
var h = new Ye(d, e, l), u = h.getConfig(), p =
|
|
2482
|
+
var h = new Ye(d, e, l), u = h.getConfig(), p = C({}, u);
|
|
2483
2483
|
p.node = d, p.index = l, p.instance = h, p.slideConfig = u, p.gallery = d.getAttribute("data-gallery"), s.push(p);
|
|
2484
2484
|
}), s;
|
|
2485
2485
|
} }, { key: "getGalleryElements", value: function(e, s) {
|
|
@@ -2546,7 +2546,7 @@ var Qt = { exports: {} };
|
|
|
2546
2546
|
var M = o.clientWidth, _ = o.clientHeight, j = M / _;
|
|
2547
2547
|
m = "".concat(M / j, ":").concat(_ / j);
|
|
2548
2548
|
}
|
|
2549
|
-
var
|
|
2549
|
+
var H = m.split(":"), I = this.settings.videosWidth, re = this.settings.videosWidth, ae = (re = Ue(I) || I.indexOf("px") !== -1 ? parseInt(I) : I.indexOf("vw") !== -1 ? h * parseInt(I) / 100 : I.indexOf("vh") !== -1 ? u * parseInt(I) / 100 : I.indexOf("%") !== -1 ? h * parseInt(I) / 100 : parseInt(o.clientWidth)) / (parseInt(H[0]) / parseInt(H[1]));
|
|
2550
2550
|
if (ae = Math.floor(ae), p && (u -= l.offsetHeight), re > h || ae > u || u < ae && h > re) {
|
|
2551
2551
|
var ve = o.offsetWidth, we = o.offsetHeight, _e = u / we, je = { width: ve * _e, height: we * _e };
|
|
2552
2552
|
o.parentNode.setAttribute("style", "max-width: ".concat(je.width, "px")), p && l.setAttribute("style", "max-width: ".concat(je.width, "px;"));
|
|
@@ -2710,7 +2710,7 @@ at.styles = U`
|
|
|
2710
2710
|
}
|
|
2711
2711
|
`;
|
|
2712
2712
|
ea([
|
|
2713
|
-
|
|
2713
|
+
k({ type: Array })
|
|
2714
2714
|
], at.prototype, "files", 2);
|
|
2715
2715
|
at = ea([
|
|
2716
2716
|
Y("cb-uploading")
|
|
@@ -2787,10 +2787,10 @@ qe.styles = U`
|
|
|
2787
2787
|
}
|
|
2788
2788
|
`;
|
|
2789
2789
|
Ct([
|
|
2790
|
-
|
|
2790
|
+
k({ type: String })
|
|
2791
2791
|
], qe.prototype, "url", 2);
|
|
2792
2792
|
Ct([
|
|
2793
|
-
|
|
2793
|
+
k({ type: Boolean })
|
|
2794
2794
|
], qe.prototype, "inverse", 2);
|
|
2795
2795
|
qe = Ct([
|
|
2796
2796
|
Y("cb-external-link")
|
|
@@ -2842,10 +2842,10 @@ let Re = class extends Q {
|
|
|
2842
2842
|
};
|
|
2843
2843
|
Re.styles = Sc;
|
|
2844
2844
|
St([
|
|
2845
|
-
|
|
2845
|
+
k({ type: String })
|
|
2846
2846
|
], Re.prototype, "filename", 2);
|
|
2847
2847
|
St([
|
|
2848
|
-
|
|
2848
|
+
k({ type: String })
|
|
2849
2849
|
], Re.prototype, "url", 2);
|
|
2850
2850
|
Re = St([
|
|
2851
2851
|
Y("cb-file")
|
|
@@ -4253,7 +4253,10 @@ let $e = class extends Q {
|
|
|
4253
4253
|
this.glightboxImages.forEach((t, c) => {
|
|
4254
4254
|
t.addEventListener("click", (i) => {
|
|
4255
4255
|
console.log(`Image clicked >>> ${c}`), i.preventDefault(), this.lightbox.openAt(c);
|
|
4256
|
-
}), a.push(
|
|
4256
|
+
}), "src" in t && a.push({
|
|
4257
|
+
href: t.src,
|
|
4258
|
+
type: "image"
|
|
4259
|
+
});
|
|
4257
4260
|
}), this.lightbox.setElements(a), console.log(`Added ${a.length} glightbox elements`);
|
|
4258
4261
|
}
|
|
4259
4262
|
get _isBot() {
|
|
@@ -4374,10 +4377,10 @@ let $e = class extends Q {
|
|
|
4374
4377
|
};
|
|
4375
4378
|
$e.styles = qc;
|
|
4376
4379
|
Ve([
|
|
4377
|
-
|
|
4380
|
+
k({ type: Object })
|
|
4378
4381
|
], $e.prototype, "message", 2);
|
|
4379
4382
|
Ve([
|
|
4380
|
-
|
|
4383
|
+
k({ type: String })
|
|
4381
4384
|
], $e.prototype, "type", 2);
|
|
4382
4385
|
Ve([
|
|
4383
4386
|
Nt(".code-block-header__copy")
|
|
@@ -4635,13 +4638,13 @@ let fe = class extends Q {
|
|
|
4635
4638
|
};
|
|
4636
4639
|
fe.styles = gc;
|
|
4637
4640
|
me([
|
|
4638
|
-
|
|
4641
|
+
k({ type: Array })
|
|
4639
4642
|
], fe.prototype, "messages", 2);
|
|
4640
4643
|
me([
|
|
4641
|
-
|
|
4644
|
+
k({ type: Array })
|
|
4642
4645
|
], fe.prototype, "actions", 2);
|
|
4643
4646
|
me([
|
|
4644
|
-
|
|
4647
|
+
k({ type: Object })
|
|
4645
4648
|
], fe.prototype, "form", 2);
|
|
4646
4649
|
me([
|
|
4647
4650
|
De("#cb-message-list-bottom-anchor")
|
|
@@ -4790,25 +4793,25 @@ let de = class extends Q {
|
|
|
4790
4793
|
};
|
|
4791
4794
|
de.styles = Uc;
|
|
4792
4795
|
ye([
|
|
4793
|
-
|
|
4796
|
+
k({ type: String, attribute: "placeholder" })
|
|
4794
4797
|
], de.prototype, "placeholder", 2);
|
|
4795
4798
|
ye([
|
|
4796
|
-
|
|
4799
|
+
k({ type: String, attribute: "send-button-label" })
|
|
4797
4800
|
], de.prototype, "sendButtonLabel", 2);
|
|
4798
4801
|
ye([
|
|
4799
|
-
|
|
4802
|
+
k({ type: Boolean, attribute: "enable-file-upload" })
|
|
4800
4803
|
], de.prototype, "enableFileUpload", 2);
|
|
4801
4804
|
ye([
|
|
4802
|
-
|
|
4805
|
+
k({ type: String })
|
|
4803
4806
|
], de.prototype, "value", 2);
|
|
4804
4807
|
ye([
|
|
4805
|
-
|
|
4808
|
+
k({ type: Boolean })
|
|
4806
4809
|
], de.prototype, "loading", 2);
|
|
4807
4810
|
ye([
|
|
4808
|
-
|
|
4811
|
+
k({ type: Boolean })
|
|
4809
4812
|
], de.prototype, "disabled", 2);
|
|
4810
4813
|
ye([
|
|
4811
|
-
|
|
4814
|
+
k({ type: String })
|
|
4812
4815
|
], de.prototype, "currentKey", 2);
|
|
4813
4816
|
ye([
|
|
4814
4817
|
De("sl-textarea")
|
|
@@ -4902,13 +4905,13 @@ let Oe = class extends Q {
|
|
|
4902
4905
|
};
|
|
4903
4906
|
Oe.styles = Gc;
|
|
4904
4907
|
dt([
|
|
4905
|
-
|
|
4908
|
+
k({ type: Boolean })
|
|
4906
4909
|
], Oe.prototype, "open", 2);
|
|
4907
4910
|
dt([
|
|
4908
|
-
|
|
4911
|
+
k({ type: String, attribute: "label" })
|
|
4909
4912
|
], Oe.prototype, "label", 2);
|
|
4910
4913
|
dt([
|
|
4911
|
-
|
|
4914
|
+
k({ type: Number })
|
|
4912
4915
|
], Oe.prototype, "zindex", 2);
|
|
4913
4916
|
Oe = dt([
|
|
4914
4917
|
Y("cb-dialog")
|
|
@@ -4961,7 +4964,7 @@ ct.styles = U`
|
|
|
4961
4964
|
}
|
|
4962
4965
|
`;
|
|
4963
4966
|
ta([
|
|
4964
|
-
|
|
4967
|
+
k({ type: Boolean })
|
|
4965
4968
|
], ct.prototype, "open", 2);
|
|
4966
4969
|
ct = ta([
|
|
4967
4970
|
Y("cb-clear-message-dialog")
|
|
@@ -5196,19 +5199,19 @@ let Ce = class extends Q {
|
|
|
5196
5199
|
};
|
|
5197
5200
|
Ce.styles = ti;
|
|
5198
5201
|
Pe([
|
|
5199
|
-
|
|
5202
|
+
k({ type: Boolean })
|
|
5200
5203
|
], Ce.prototype, "open", 2);
|
|
5201
5204
|
Pe([
|
|
5202
|
-
|
|
5205
|
+
k({ type: Object })
|
|
5203
5206
|
], Ce.prototype, "setting", 2);
|
|
5204
5207
|
Pe([
|
|
5205
|
-
|
|
5208
|
+
k({ type: Boolean })
|
|
5206
5209
|
], Ce.prototype, "clearMessageDialogOpen", 2);
|
|
5207
5210
|
Pe([
|
|
5208
5211
|
De("sl-dialog")
|
|
5209
5212
|
], Ce.prototype, "dialog", 2);
|
|
5210
5213
|
Pe([
|
|
5211
|
-
|
|
5214
|
+
k({ type: Boolean })
|
|
5212
5215
|
], Ce.prototype, "customRequest", 2);
|
|
5213
5216
|
Ce = Pe([
|
|
5214
5217
|
Y("cb-setting")
|
|
@@ -5360,7 +5363,7 @@ let it = class extends Q {
|
|
|
5360
5363
|
};
|
|
5361
5364
|
it.styles = ii;
|
|
5362
5365
|
aa([
|
|
5363
|
-
|
|
5366
|
+
k({ type: Boolean })
|
|
5364
5367
|
], it.prototype, "open", 2);
|
|
5365
5368
|
it = aa([
|
|
5366
5369
|
Y("cb-anchor")
|
|
@@ -5406,7 +5409,7 @@ let nt = class extends Q {
|
|
|
5406
5409
|
};
|
|
5407
5410
|
nt.styles = Jt;
|
|
5408
5411
|
ca([
|
|
5409
|
-
|
|
5412
|
+
k({ type: String })
|
|
5410
5413
|
], nt.prototype, "status", 2);
|
|
5411
5414
|
nt = ca([
|
|
5412
5415
|
Y("cb-status-icon")
|
|
@@ -5438,8 +5441,8 @@ vt = gi([
|
|
|
5438
5441
|
], vt);
|
|
5439
5442
|
class Dt extends Error {
|
|
5440
5443
|
constructor(t, c, i) {
|
|
5441
|
-
const n = t.status || t.status === 0 ? t.status : "", f = t.statusText || "", b = `${n} ${f}`.trim(),
|
|
5442
|
-
super(`Request failed with ${
|
|
5444
|
+
const n = t.status || t.status === 0 ? t.status : "", f = t.statusText || "", b = `${n} ${f}`.trim(), C = b ? `status code ${b}` : "an unknown error";
|
|
5445
|
+
super(`Request failed with ${C}`), Object.defineProperty(this, "response", {
|
|
5443
5446
|
enumerable: !0,
|
|
5444
5447
|
configurable: !0,
|
|
5445
5448
|
writable: !0,
|
|
@@ -5569,13 +5572,13 @@ class st {
|
|
|
5569
5572
|
if (i._options.timeout > pt)
|
|
5570
5573
|
throw new RangeError(`The \`timeout\` option cannot be greater than ${pt}`);
|
|
5571
5574
|
await Promise.resolve();
|
|
5572
|
-
let
|
|
5575
|
+
let C = await i._fetch();
|
|
5573
5576
|
for (const S of i._options.hooks.afterResponse) {
|
|
5574
|
-
const V = await S(i.request, i._options, i._decorateResponse(
|
|
5575
|
-
V instanceof globalThis.Response && (
|
|
5577
|
+
const V = await S(i.request, i._options, i._decorateResponse(C.clone()));
|
|
5578
|
+
V instanceof globalThis.Response && (C = V);
|
|
5576
5579
|
}
|
|
5577
|
-
if (i._decorateResponse(
|
|
5578
|
-
let S = new Dt(
|
|
5580
|
+
if (i._decorateResponse(C), !C.ok && i._options.throwHttpErrors) {
|
|
5581
|
+
let S = new Dt(C, i.request, i._options);
|
|
5579
5582
|
for (const V of i._options.hooks.beforeError)
|
|
5580
5583
|
S = await V(S);
|
|
5581
5584
|
throw S;
|
|
@@ -5585,21 +5588,21 @@ class st {
|
|
|
5585
5588
|
throw new TypeError("The `onDownloadProgress` option must be a function");
|
|
5586
5589
|
if (!vi)
|
|
5587
5590
|
throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");
|
|
5588
|
-
return i._stream(
|
|
5591
|
+
return i._stream(C.clone(), i._options.onDownloadProgress);
|
|
5589
5592
|
}
|
|
5590
|
-
return
|
|
5593
|
+
return C;
|
|
5591
5594
|
}, b = i._options.retry.methods.includes(i.request.method.toLowerCase()) ? i._retry(n) : n();
|
|
5592
|
-
for (const [
|
|
5593
|
-
b[
|
|
5595
|
+
for (const [C, S] of Object.entries(xi))
|
|
5596
|
+
b[C] = async () => {
|
|
5594
5597
|
i.request.headers.set("accept", i.request.headers.get("accept") || S);
|
|
5595
5598
|
const L = (await b).clone();
|
|
5596
|
-
if (
|
|
5599
|
+
if (C === "json") {
|
|
5597
5600
|
if (L.status === 204 || (await L.clone().arrayBuffer()).byteLength === 0)
|
|
5598
5601
|
return "";
|
|
5599
5602
|
if (c.parseJson)
|
|
5600
5603
|
return c.parseJson(await L.text());
|
|
5601
5604
|
}
|
|
5602
|
-
return L[
|
|
5605
|
+
return L[C]();
|
|
5603
5606
|
};
|
|
5604
5607
|
return b;
|
|
5605
5608
|
}
|
|
@@ -5735,7 +5738,7 @@ class st {
|
|
|
5735
5738
|
async start(f) {
|
|
5736
5739
|
const b = t.body.getReader();
|
|
5737
5740
|
c && c({ percent: 0, transferredBytes: 0, totalBytes: i }, new Uint8Array());
|
|
5738
|
-
async function
|
|
5741
|
+
async function C() {
|
|
5739
5742
|
const { done: S, value: V } = await b.read();
|
|
5740
5743
|
if (S) {
|
|
5741
5744
|
f.close();
|
|
@@ -5746,9 +5749,9 @@ class st {
|
|
|
5746
5749
|
const L = i === 0 ? 0 : n / i;
|
|
5747
5750
|
c({ percent: L, transferredBytes: n, totalBytes: i }, V);
|
|
5748
5751
|
}
|
|
5749
|
-
f.enqueue(V), await
|
|
5752
|
+
f.enqueue(V), await C();
|
|
5750
5753
|
}
|
|
5751
|
-
await
|
|
5754
|
+
await C();
|
|
5752
5755
|
}
|
|
5753
5756
|
}), {
|
|
5754
5757
|
status: t.status,
|
|
@@ -5772,17 +5775,17 @@ const wt = (a) => {
|
|
|
5772
5775
|
}
|
|
5773
5776
|
});
|
|
5774
5777
|
async function Li(a, t) {
|
|
5775
|
-
const { onmessage: c, onclose: i, ...n } = t, f = async (b,
|
|
5776
|
-
const { value: S, done: V } = await
|
|
5777
|
-
V ? (b.close(), i == null || i()) : (c == null || c(S), b.enqueue(S), f(b,
|
|
5778
|
+
const { onmessage: c, onclose: i, ...n } = t, f = async (b, C) => {
|
|
5779
|
+
const { value: S, done: V } = await C.read();
|
|
5780
|
+
V ? (b.close(), i == null || i()) : (c == null || c(S), b.enqueue(S), f(b, C));
|
|
5778
5781
|
};
|
|
5779
5782
|
return n.body && typeof n.body == "object" && (n.body = JSON.stringify(n.body)), console.log("Fetching:", n), fetch(a, n).then((b) => {
|
|
5780
|
-
const
|
|
5783
|
+
const C = b.body.getReader();
|
|
5781
5784
|
return new ReadableStream({
|
|
5782
5785
|
start(V) {
|
|
5783
5786
|
f(
|
|
5784
5787
|
V,
|
|
5785
|
-
|
|
5788
|
+
C
|
|
5786
5789
|
);
|
|
5787
5790
|
}
|
|
5788
5791
|
});
|
|
@@ -5809,14 +5812,14 @@ async function ji(a, t) {
|
|
|
5809
5812
|
};
|
|
5810
5813
|
}
|
|
5811
5814
|
}
|
|
5812
|
-
var Oi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor,
|
|
5815
|
+
var Oi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, B = (a, t, c, i) => {
|
|
5813
5816
|
for (var n = i > 1 ? void 0 : i ? Pi(t, c) : t, f = a.length - 1, b; f >= 0; f--)
|
|
5814
5817
|
(b = a[f]) && (n = (i ? b(t, c, n) : b(n)) || n);
|
|
5815
5818
|
return i && n && Oi(t, c, n), n;
|
|
5816
5819
|
};
|
|
5817
5820
|
const ze = ft.noConflict();
|
|
5818
5821
|
ze.setLevel("info");
|
|
5819
|
-
let
|
|
5822
|
+
let P = class extends Q {
|
|
5820
5823
|
constructor() {
|
|
5821
5824
|
super(...arguments), this.store = new Wt(this, x), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = ` <svg width="24" height="24" viewBox="0 0 40 40">
|
|
5822
5825
|
<path
|
|
@@ -5824,7 +5827,7 @@ let H = class extends Q {
|
|
|
5824
5827
|
fill="#E24D42"
|
|
5825
5828
|
></path>
|
|
5826
5829
|
</svg>
|
|
5827
|
-
`, this.botIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z" /></svg>', this.userIconSvg = '<svg fill="currentColor" viewBox="0 0 24 24" width="24" height="24"> <path d="M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4Z" /></svg>', this.systemIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg>', this.agentIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M18.72,14.76C19.07,13.91 19.26,13 19.26,12C19.26,11.28 19.15,10.59 18.96,9.95C18.31,10.1 17.63,10.18 16.92,10.18C13.86,10.18 11.15,8.67 9.5,6.34C8.61,8.5 6.91,10.26 4.77,11.22C4.73,11.47 4.73,11.74 4.73,12A7.27,7.27 0 0,0 12,19.27C13.05,19.27 14.06,19.04 14.97,18.63C15.54,19.72 15.8,20.26 15.78,20.26C14.14,20.81 12.87,21.08 12,21.08C9.58,21.08 7.27,20.13 5.57,18.42C4.53,17.38 3.76,16.11 3.33,14.73H2V10.18H3.09C3.93,6.04 7.6,2.92 12,2.92C14.4,2.92 16.71,3.87 18.42,5.58C19.69,6.84 20.54,8.45 20.89,10.18H22V14.67H22V14.69L22,14.73H21.94L18.38,18L13.08,17.4V15.73H17.91L18.72,14.76M9.27,11.77C9.57,11.77 9.86,11.89 10.07,12.11C10.28,12.32 10.4,12.61 10.4,12.91C10.4,13.21 10.28,13.5 10.07,13.71C9.86,13.92 9.57,14.04 9.27,14.04C8.64,14.04 8.13,13.54 8.13,12.91C8.13,12.28 8.64,11.77 9.27,11.77M14.72,11.77C15.35,11.77 15.85,12.28 15.85,12.91C15.85,13.54 15.35,14.04 14.72,14.04C14.09,14.04 13.58,13.54 13.58,12.91A1.14,1.14 0 0,1 14.72,11.77Z" /></svg>', this.stream = !1, this.customRequest = !1, this.enableFileUpload = !1, this.uploadFileUrl = "", this.open = !1, this.alwaysOpen = !1, this.prefilledFormFields = "{}", this.loading = !1, this.showSetting = !1, this.showAuthAlert = !1, this.fetchStream = Li;
|
|
5830
|
+
`, this.popupLogoSvg = "", this.popupLogoUrl = "", this.botIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z" /></svg>', this.userIconSvg = '<svg fill="currentColor" viewBox="0 0 24 24" width="24" height="24"> <path d="M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4Z" /></svg>', this.systemIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg>', this.agentIconSvg = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M18.72,14.76C19.07,13.91 19.26,13 19.26,12C19.26,11.28 19.15,10.59 18.96,9.95C18.31,10.1 17.63,10.18 16.92,10.18C13.86,10.18 11.15,8.67 9.5,6.34C8.61,8.5 6.91,10.26 4.77,11.22C4.73,11.47 4.73,11.74 4.73,12A7.27,7.27 0 0,0 12,19.27C13.05,19.27 14.06,19.04 14.97,18.63C15.54,19.72 15.8,20.26 15.78,20.26C14.14,20.81 12.87,21.08 12,21.08C9.58,21.08 7.27,20.13 5.57,18.42C4.53,17.38 3.76,16.11 3.33,14.73H2V10.18H3.09C3.93,6.04 7.6,2.92 12,2.92C14.4,2.92 16.71,3.87 18.42,5.58C19.69,6.84 20.54,8.45 20.89,10.18H22V14.67H22V14.69L22,14.73H21.94L18.38,18L13.08,17.4V15.73H17.91L18.72,14.76M9.27,11.77C9.57,11.77 9.86,11.89 10.07,12.11C10.28,12.32 10.4,12.61 10.4,12.91C10.4,13.21 10.28,13.5 10.07,13.71C9.86,13.92 9.57,14.04 9.27,14.04C8.64,14.04 8.13,13.54 8.13,12.91C8.13,12.28 8.64,11.77 9.27,11.77M14.72,11.77C15.35,11.77 15.85,12.28 15.85,12.91C15.85,13.54 15.35,14.04 14.72,14.04C14.09,14.04 13.58,13.54 13.58,12.91A1.14,1.14 0 0,1 14.72,11.77Z" /></svg>', this.stream = !1, this.customRequest = !1, this.enableFileUpload = !1, this.uploadFileUrl = "", this.open = !1, this.alwaysOpen = !1, this.prefilledFormFields = "{}", this.loading = !1, this.showSetting = !1, this.showAuthAlert = !1, this.fetchStream = Li;
|
|
5828
5831
|
}
|
|
5829
5832
|
//HTMLElement;
|
|
5830
5833
|
/**
|
|
@@ -5895,7 +5898,7 @@ let H = class extends Q {
|
|
|
5895
5898
|
_initSetting() {
|
|
5896
5899
|
ze.info("_initSetting");
|
|
5897
5900
|
const a = x.setting;
|
|
5898
|
-
a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, x.setSetting(a);
|
|
5901
|
+
a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, x.setSetting(a);
|
|
5899
5902
|
let t = {};
|
|
5900
5903
|
try {
|
|
5901
5904
|
t = JSON.parse(this.prefilledFormFields);
|
|
@@ -5968,76 +5971,82 @@ let H = class extends Q {
|
|
|
5968
5971
|
(t = this._messageList) == null || t.scrollToBottom();
|
|
5969
5972
|
}
|
|
5970
5973
|
};
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
],
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
],
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
],
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
],
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
],
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
],
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
],
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
],
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
],
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
],
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
],
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
],
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
],
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
],
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
],
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
],
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
],
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
],
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
],
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
],
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
],
|
|
6035
|
-
|
|
5974
|
+
P.styles = Pa;
|
|
5975
|
+
B([
|
|
5976
|
+
k({ type: Boolean, attribute: "display-license" })
|
|
5977
|
+
], P.prototype, "displayLicense", 2);
|
|
5978
|
+
B([
|
|
5979
|
+
k({ type: String, attribute: "name" })
|
|
5980
|
+
], P.prototype, "name", 2);
|
|
5981
|
+
B([
|
|
5982
|
+
k({ type: String, attribute: "org-id" })
|
|
5983
|
+
], P.prototype, "orgId", 2);
|
|
5984
|
+
B([
|
|
5985
|
+
k({ type: String, attribute: "bot-id" })
|
|
5986
|
+
], P.prototype, "botId", 2);
|
|
5987
|
+
B([
|
|
5988
|
+
k({ type: String, attribute: "url" })
|
|
5989
|
+
], P.prototype, "url", 2);
|
|
5990
|
+
B([
|
|
5991
|
+
k({ type: String, attribute: "logo-url" })
|
|
5992
|
+
], P.prototype, "logoUrl", 2);
|
|
5993
|
+
B([
|
|
5994
|
+
k({ type: String, attribute: "logo-svg" })
|
|
5995
|
+
], P.prototype, "logoSvg", 2);
|
|
5996
|
+
B([
|
|
5997
|
+
k({ type: String, attribute: "popup-logo-svg" })
|
|
5998
|
+
], P.prototype, "popupLogoSvg", 2);
|
|
5999
|
+
B([
|
|
6000
|
+
k({ type: String, attribute: "popup-logo-url" })
|
|
6001
|
+
], P.prototype, "popupLogoUrl", 2);
|
|
6002
|
+
B([
|
|
6003
|
+
k({ type: String, attribute: "bot-icon-svg" })
|
|
6004
|
+
], P.prototype, "botIconSvg", 2);
|
|
6005
|
+
B([
|
|
6006
|
+
k({ type: String, attribute: "user-icon-svg" })
|
|
6007
|
+
], P.prototype, "userIconSvg", 2);
|
|
6008
|
+
B([
|
|
6009
|
+
k({ type: String, attribute: "system-icon-svg" })
|
|
6010
|
+
], P.prototype, "systemIconSvg", 2);
|
|
6011
|
+
B([
|
|
6012
|
+
k({ type: String, attribute: "agent-icon-svg" })
|
|
6013
|
+
], P.prototype, "agentIconSvg", 2);
|
|
6014
|
+
B([
|
|
6015
|
+
k({ type: Boolean, attribute: "stream" })
|
|
6016
|
+
], P.prototype, "stream", 2);
|
|
6017
|
+
B([
|
|
6018
|
+
k({ type: Boolean, attribute: "custom-request" })
|
|
6019
|
+
], P.prototype, "customRequest", 2);
|
|
6020
|
+
B([
|
|
6021
|
+
k({ type: Boolean, attribute: "enable-file-upload" })
|
|
6022
|
+
], P.prototype, "enableFileUpload", 2);
|
|
6023
|
+
B([
|
|
6024
|
+
k({ type: String, attribute: "upload-file-url" })
|
|
6025
|
+
], P.prototype, "uploadFileUrl", 2);
|
|
6026
|
+
B([
|
|
6027
|
+
k({ type: Boolean, attribute: "open" })
|
|
6028
|
+
], P.prototype, "open", 2);
|
|
6029
|
+
B([
|
|
6030
|
+
k({ type: Boolean, attribute: "always-open" })
|
|
6031
|
+
], P.prototype, "alwaysOpen", 2);
|
|
6032
|
+
B([
|
|
6033
|
+
k({ type: String, attribute: "prefilled-form-fields" })
|
|
6034
|
+
], P.prototype, "prefilledFormFields", 2);
|
|
6035
|
+
B([
|
|
6036
|
+
k({ type: Boolean })
|
|
6037
|
+
], P.prototype, "loading", 2);
|
|
6038
|
+
B([
|
|
6039
|
+
k({ type: Boolean })
|
|
6040
|
+
], P.prototype, "showSetting", 2);
|
|
6041
|
+
B([
|
|
6042
|
+
k({ type: Boolean })
|
|
6043
|
+
], P.prototype, "showAuthAlert", 2);
|
|
6044
|
+
B([
|
|
6036
6045
|
De("cb-message-list")
|
|
6037
|
-
],
|
|
6038
|
-
|
|
6046
|
+
], P.prototype, "_messageList", 2);
|
|
6047
|
+
P = B([
|
|
6039
6048
|
Y("enegelai-bot")
|
|
6040
|
-
],
|
|
6049
|
+
], P);
|
|
6041
6050
|
export {
|
|
6042
|
-
|
|
6051
|
+
P as default
|
|
6043
6052
|
};
|