@enegelai/bot-widget 1.16.7 → 1.17.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 +43 -43
- package/dist/index.es.js +248 -238
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css as J, LitElement as Fe, html as u, nothing as Ae, svg as pe } from "lit";
|
|
2
|
-
import { property as x, customElement as
|
|
2
|
+
import { property as x, customElement as K, query as xe, state as Va, queryAll as Na, eventOptions as na } from "lit/decorators.js";
|
|
3
3
|
import { when as W } from "lit/directives/when.js";
|
|
4
4
|
import { unsafeHTML as G } from "lit-html/directives/unsafe-html.js";
|
|
5
5
|
import { registerIconLibrary as qi } from "@shoelace-style/shoelace";
|
|
@@ -230,38 +230,38 @@ function Wi() {
|
|
|
230
230
|
return v(M) || w.apply(this, arguments);
|
|
231
231
|
}
|
|
232
232
|
function P(M, L) {
|
|
233
|
-
var C = this,
|
|
233
|
+
var C = this, Z, U, X, te = "loglevel";
|
|
234
234
|
typeof M == "string" ? te += ":" + M : typeof M == "symbol" && (te = void 0);
|
|
235
|
-
function He(
|
|
236
|
-
var
|
|
235
|
+
function He(H) {
|
|
236
|
+
var N = (s[H] || "silent").toUpperCase();
|
|
237
237
|
if (!(typeof window === t || !te)) {
|
|
238
238
|
try {
|
|
239
|
-
window.localStorage[te] =
|
|
239
|
+
window.localStorage[te] = N;
|
|
240
240
|
return;
|
|
241
241
|
} catch {
|
|
242
242
|
}
|
|
243
243
|
try {
|
|
244
|
-
window.document.cookie = encodeURIComponent(te) + "=" +
|
|
244
|
+
window.document.cookie = encodeURIComponent(te) + "=" + N + ";";
|
|
245
245
|
} catch {
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
function ae() {
|
|
250
|
-
var
|
|
250
|
+
var H;
|
|
251
251
|
if (!(typeof window === t || !te)) {
|
|
252
252
|
try {
|
|
253
|
-
|
|
253
|
+
H = window.localStorage[te];
|
|
254
254
|
} catch {
|
|
255
255
|
}
|
|
256
|
-
if (typeof
|
|
256
|
+
if (typeof H === t)
|
|
257
257
|
try {
|
|
258
|
-
var
|
|
259
|
-
Pe !== -1 && (
|
|
260
|
-
|
|
258
|
+
var N = window.document.cookie, $e = encodeURIComponent(te), Pe = N.indexOf($e + "=");
|
|
259
|
+
Pe !== -1 && (H = /^([^;]+)/.exec(
|
|
260
|
+
N.slice(Pe + $e.length + 1)
|
|
261
261
|
)[1]);
|
|
262
262
|
} catch {
|
|
263
263
|
}
|
|
264
|
-
return C.levels[
|
|
264
|
+
return C.levels[H] === void 0 && (H = void 0), H;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
function he() {
|
|
@@ -276,11 +276,11 @@ function Wi() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function ge(
|
|
280
|
-
var
|
|
281
|
-
if (typeof
|
|
282
|
-
return
|
|
283
|
-
throw new TypeError("log.setLevel() called with invalid level: " +
|
|
279
|
+
function ge(H) {
|
|
280
|
+
var N = H;
|
|
281
|
+
if (typeof N == "string" && C.levels[N.toUpperCase()] !== void 0 && (N = C.levels[N.toUpperCase()]), typeof N == "number" && N >= 0 && N <= C.levels.SILENT)
|
|
282
|
+
return N;
|
|
283
|
+
throw new TypeError("log.setLevel() called with invalid level: " + H);
|
|
284
284
|
}
|
|
285
285
|
C.name = M, C.levels = {
|
|
286
286
|
TRACE: 0,
|
|
@@ -290,26 +290,26 @@ function Wi() {
|
|
|
290
290
|
ERROR: 4,
|
|
291
291
|
SILENT: 5
|
|
292
292
|
}, C.methodFactory = L || _, C.getLevel = function() {
|
|
293
|
-
return X ?? U ??
|
|
294
|
-
}, C.setLevel = function(
|
|
295
|
-
return X = ge(
|
|
296
|
-
}, C.setDefaultLevel = function(
|
|
297
|
-
U = ge(
|
|
293
|
+
return X ?? U ?? Z;
|
|
294
|
+
}, C.setLevel = function(H, N) {
|
|
295
|
+
return X = ge(H), N !== !1 && He(X), k.call(C);
|
|
296
|
+
}, C.setDefaultLevel = function(H) {
|
|
297
|
+
U = ge(H), ae() || C.setLevel(H, !1);
|
|
298
298
|
}, C.resetLevel = function() {
|
|
299
299
|
X = null, he(), k.call(C);
|
|
300
|
-
}, C.enableAll = function(
|
|
301
|
-
C.setLevel(C.levels.TRACE,
|
|
302
|
-
}, C.disableAll = function(
|
|
303
|
-
C.setLevel(C.levels.SILENT,
|
|
300
|
+
}, C.enableAll = function(H) {
|
|
301
|
+
C.setLevel(C.levels.TRACE, H);
|
|
302
|
+
}, C.disableAll = function(H) {
|
|
303
|
+
C.setLevel(C.levels.SILENT, H);
|
|
304
304
|
}, C.rebuild = function() {
|
|
305
|
-
if (o !== C && (
|
|
306
|
-
for (var
|
|
307
|
-
r[
|
|
308
|
-
},
|
|
305
|
+
if (o !== C && (Z = ge(o.getLevel())), k.call(C), o === C)
|
|
306
|
+
for (var H in r)
|
|
307
|
+
r[H].rebuild();
|
|
308
|
+
}, Z = ge(
|
|
309
309
|
o ? o.getLevel() : "WARN"
|
|
310
310
|
);
|
|
311
|
-
var
|
|
312
|
-
|
|
311
|
+
var j = ae();
|
|
312
|
+
j != null && (X = ge(j)), k.call(C);
|
|
313
313
|
}
|
|
314
314
|
o = new P(), o.getLogger = function(L) {
|
|
315
315
|
if (typeof L != "symbol" && typeof L != "string" || L === "")
|
|
@@ -684,9 +684,9 @@ ra([
|
|
|
684
684
|
x({ type: String })
|
|
685
685
|
], ut.prototype, "svg", 2);
|
|
686
686
|
ut = ra([
|
|
687
|
-
|
|
687
|
+
K("cb-icon")
|
|
688
688
|
], ut);
|
|
689
|
-
let
|
|
689
|
+
let Ki = (a) => crypto.getRandomValues(new Uint8Array(a)), Zi = (a, e, t) => {
|
|
690
690
|
let i = (2 << Math.log2(a.length - 1)) - 1, s = -~(1.6 * i * e / a.length);
|
|
691
691
|
return (r = e) => {
|
|
692
692
|
let o = "";
|
|
@@ -696,7 +696,7 @@ let Zi = (a) => crypto.getRandomValues(new Uint8Array(a)), Ki = (a, e, t) => {
|
|
|
696
696
|
if (o += a[f[p] & i] || "", o.length >= r) return o;
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
|
-
}, Qi = (a, e = 21) =>
|
|
699
|
+
}, Qi = (a, e = 21) => Zi(a, e | 0, Ki);
|
|
700
700
|
const es = Qi("1234567890abcdefghijklmnopqrstuvwxyz", 10);
|
|
701
701
|
function fe(a = 10) {
|
|
702
702
|
return es(a);
|
|
@@ -722,7 +722,11 @@ function Xa(a = !0, e = null) {
|
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
function Vt(a) {
|
|
725
|
-
|
|
725
|
+
if (!a || typeof a != "string")
|
|
726
|
+
return "";
|
|
727
|
+
const e = "__AMP__TOKEN__";
|
|
728
|
+
let i = a.replace(/https?:\/\/[^\s<]+/g, (s) => s.replace(/&/g, e)).replace(/&(?!lt;|gt;)/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
729
|
+
return i = i.replace(/<br\s*\/?>/gi, "<br>"), i = i.replace(new RegExp(e, "g"), "&"), i;
|
|
726
730
|
}
|
|
727
731
|
const se = Je.noConflict();
|
|
728
732
|
se.setLevel("info");
|
|
@@ -926,7 +930,7 @@ class is {
|
|
|
926
930
|
}
|
|
927
931
|
}
|
|
928
932
|
}
|
|
929
|
-
class
|
|
933
|
+
class Ke {
|
|
930
934
|
/**
|
|
931
935
|
* Converts Float32Array of amplitude data to ArrayBuffer in Int16Array format
|
|
932
936
|
* @param {Float32Array} float32Array
|
|
@@ -1021,7 +1025,7 @@ class Ze {
|
|
|
1021
1025
|
};
|
|
1022
1026
|
}
|
|
1023
1027
|
}
|
|
1024
|
-
globalThis.WavPacker =
|
|
1028
|
+
globalThis.WavPacker = Ke;
|
|
1025
1029
|
const Ca = [
|
|
1026
1030
|
4186.01,
|
|
1027
1031
|
4434.92,
|
|
@@ -1074,10 +1078,10 @@ class lt {
|
|
|
1074
1078
|
if (s === "music" || s === "voice") {
|
|
1075
1079
|
const E = s === "voice" ? Aa : We, M = Array(E.length).fill(r);
|
|
1076
1080
|
for (let L = 0; L < i.length; L++) {
|
|
1077
|
-
const C = L * p,
|
|
1081
|
+
const C = L * p, Z = i[L];
|
|
1078
1082
|
for (let U = E.length - 1; U >= 0; U--)
|
|
1079
1083
|
if (C > E[U]) {
|
|
1080
|
-
M[U] = Math.max(M[U],
|
|
1084
|
+
M[U] = Math.max(M[U], Z);
|
|
1081
1085
|
break;
|
|
1082
1086
|
}
|
|
1083
1087
|
}
|
|
@@ -1550,8 +1554,8 @@ class Ya {
|
|
|
1550
1554
|
const p = navigator.userAgent || "", v = /iP(hone|ad|od)/.test(p), k = /CriOS/.test(p), w = /FxiOS/.test(p), _ = /EdgiOS/.test(p), P = /Safari/.test(p) && !/Chrome|Chromium|Edg/.test(p);
|
|
1551
1555
|
this._isSafariMobile = v && P && !k && !w && !_;
|
|
1552
1556
|
const E = !!(navigator.userAgentData && typeof navigator.userAgentData.mobile == "boolean" && navigator.userAgentData.mobile), M = /Android|iPhone|iPod|Mobile/.test(p), L = (() => {
|
|
1553
|
-
const
|
|
1554
|
-
return /iPad/.test(p) ||
|
|
1557
|
+
const Z = navigator.platform || "";
|
|
1558
|
+
return /iPad/.test(p) || Z === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
1555
1559
|
})(), C = E || M || L;
|
|
1556
1560
|
this._firstTurnRampInMs = s ?? (this._isSafariMobile ? 140 : 0), this._primeMs = r ?? (this._isSafariMobile ? 220 : 0), this._requireGestureToUnlock = o != null ? !!o : !!this._isSafariMobile, this._enableLoopbackRef = f != null ? !!f : !!C, this.context = null, this.analyser = null, this._worklet = null, this._audibleGain = null, this._renderDest = null, this._pcSend = null, this._pcRecv = null, this._firstTurn = !0, this._unlocked = !this._requireGestureToUnlock, this.trackSampleOffsets = {}, this.interruptedTrackIds = {}, this._onGestureUnlock = this._onGestureUnlock.bind(this);
|
|
1557
1561
|
}
|
|
@@ -1955,13 +1959,13 @@ class gs {
|
|
|
1955
1959
|
throw new Error('Must specify "fromSampleRate" when reading from Float32Array, In16Array or Array');
|
|
1956
1960
|
if (i < 3e3)
|
|
1957
1961
|
throw new Error('Minimum "fromSampleRate" is 3000 (3kHz)');
|
|
1958
|
-
w || (w =
|
|
1962
|
+
w || (w = Ke.floatTo16BitPCM(k));
|
|
1959
1963
|
const _ = {
|
|
1960
1964
|
bitsPerSample: 16,
|
|
1961
1965
|
channels: [k],
|
|
1962
1966
|
data: w
|
|
1963
1967
|
};
|
|
1964
|
-
o = new
|
|
1968
|
+
o = new Ke().pack(i, _).blob, r = await o.arrayBuffer();
|
|
1965
1969
|
}
|
|
1966
1970
|
const f = await s.decodeAudioData(r), p = f.getChannelData(0), v = URL.createObjectURL(o);
|
|
1967
1971
|
return {
|
|
@@ -2134,8 +2138,8 @@ class gs {
|
|
|
2134
2138
|
if (this._chunkProcessorSize) {
|
|
2135
2139
|
const w = this._chunkProcessorBuffer;
|
|
2136
2140
|
this._chunkProcessorBuffer = {
|
|
2137
|
-
raw:
|
|
2138
|
-
mono:
|
|
2141
|
+
raw: Ke.mergeBuffers(w.raw, k.raw),
|
|
2142
|
+
mono: Ke.mergeBuffers(w.mono, k.mono)
|
|
2139
2143
|
}, this._chunkProcessorBuffer.mono.byteLength >= this._chunkProcessorSize && (this._chunkProcessor(this._chunkProcessorBuffer), this._chunkProcessorBuffer = {
|
|
2140
2144
|
raw: new ArrayBuffer(0),
|
|
2141
2145
|
mono: new ArrayBuffer(0)
|
|
@@ -2221,7 +2225,7 @@ use only for debugging`), o.connect(t.destination)), this.source = i, this.node
|
|
|
2221
2225
|
throw new Error("Currently recording: please call .pause() first, or call .save(true) to force");
|
|
2222
2226
|
this.log("Exporting ...");
|
|
2223
2227
|
const t = await this._event("export");
|
|
2224
|
-
return new
|
|
2228
|
+
return new Ke().pack(this.sampleRate, t.audio);
|
|
2225
2229
|
}
|
|
2226
2230
|
/**
|
|
2227
2231
|
* Ends the current recording session and saves the result
|
|
@@ -2233,7 +2237,7 @@ use only for debugging`), o.connect(t.destination)), this.source = i, this.node
|
|
|
2233
2237
|
const e = this.processor;
|
|
2234
2238
|
this.log("Stopping ..."), await this._event("stop"), this.recording = !1, this.stream.getTracks().forEach((o) => o.stop()), this.log("Exporting ...");
|
|
2235
2239
|
const i = await this._event("export", {}, e);
|
|
2236
|
-
return this.processor.disconnect(), this.source.disconnect(), this.node.disconnect(), this.analyser.disconnect(), this.stream = null, this.processor = null, this.source = null, this.node = null, new
|
|
2240
|
+
return this.processor.disconnect(), this.source.disconnect(), this.node.disconnect(), this.analyser.disconnect(), this.stream = null, this.processor = null, this.source = null, this.node = null, new Ke().pack(this.sampleRate, i.audio);
|
|
2237
2241
|
}
|
|
2238
2242
|
/**
|
|
2239
2243
|
* Performs a full cleanup of WavRecorder instance
|
|
@@ -2586,13 +2590,13 @@ class ys {
|
|
|
2586
2590
|
this.guardRemain > 0 && this.guardRemain--;
|
|
2587
2591
|
const M = e[E] / 32768, L = M * M;
|
|
2588
2592
|
f = f + (1 - this.alphaFast) * (L - f), p = p + (1 - this.alphaSlow) * (L - p), this.vadEnabled && (f / (p + _) >= P ? v < this.vadAttackSamples && v++ : v = 0, v >= this.vadAttackSamples ? (w = !0, k = this.vadHangSamples) : k > 0 ? (w = !0, k--) : w = !1), w && this._shieldActive && (this._shieldActive = !1, this.target = 1, o = this.escapeAttackSamples, r = o > 0 ? (1 - s) / o : 0);
|
|
2589
|
-
let C = 1,
|
|
2593
|
+
let C = 1, Z = 0, U = !1;
|
|
2590
2594
|
if (this.duckActive) {
|
|
2591
2595
|
const te = this.guardRemain > 0;
|
|
2592
|
-
te && this._shieldActive && !w ? (U = this._shieldHardMute, C = this._shieldHardMute ? 0 : this._shieldFloor,
|
|
2596
|
+
te && this._shieldActive && !w ? (U = this._shieldHardMute, C = this._shieldHardMute ? 0 : this._shieldFloor, Z = this.attackSamples, this.guardRemain === 0 && (this._shieldActive = !1, this._shieldHardMute = !1)) : w ? (C = 1, Z = this.escapeAttackSamples) : te ? (C = this.floor, Z = this.attackSamples) : (C = 1, Z = this.releaseSamples);
|
|
2593
2597
|
} else
|
|
2594
|
-
C = 1,
|
|
2595
|
-
Math.abs(C - this.target) > 1e-4 && (this.target = C, o =
|
|
2598
|
+
C = 1, Z = this.releaseSamples;
|
|
2599
|
+
Math.abs(C - this.target) > 1e-4 && (this.target = C, o = Z, r = o > 0 ? (C - s) / o : 0, o === 0 && (s = C)), o > 0 && (s += r, o--, o === 0 && (s = this.target, r = 0));
|
|
2596
2600
|
let X;
|
|
2597
2601
|
U && !w ? X = 0 : (X = e[E] * s, X > 32767 ? X = 32767 : X < -32768 && (X = -32768)), i[E] = X | 0;
|
|
2598
2602
|
}
|
|
@@ -2697,19 +2701,19 @@ class vs {
|
|
|
2697
2701
|
E += he * he;
|
|
2698
2702
|
}
|
|
2699
2703
|
E = Math.sqrt(E) + 1e-12;
|
|
2700
|
-
const M = this.sr / this.ds, L = (this.baseLatencySec + this.outputLatencySec) * 1e3 + this.latencyCompMs, C = Math.max(0, Math.round(L * M / 1e3)),
|
|
2704
|
+
const M = this.sr / this.ds, L = (this.baseLatencySec + this.outputLatencySec) * 1e3 + this.latencyCompMs, C = Math.max(0, Math.round(L * M / 1e3)), Z = Math.max(1, Math.round(this.windowMs * M / 1e3));
|
|
2701
2705
|
let U = 0, X = k;
|
|
2702
|
-
C > 0 && (U = Math.max(0, Math.min(k, C -
|
|
2706
|
+
C > 0 && (U = Math.max(0, Math.min(k, C - Z)), X = Math.max(U, Math.min(k, C + Z)));
|
|
2703
2707
|
const te = Math.max(1, Math.floor(this.hop / this.ds));
|
|
2704
2708
|
let He = -1;
|
|
2705
2709
|
for (let ae = U; ae <= X; ae += te) {
|
|
2706
2710
|
let he = 0, ge = 0;
|
|
2707
|
-
for (let
|
|
2708
|
-
const $e = _[
|
|
2711
|
+
for (let N = 0; N < o; N++) {
|
|
2712
|
+
const $e = _[N], Pe = P[ae + N];
|
|
2709
2713
|
he += $e * Pe, ge += Pe * Pe;
|
|
2710
2714
|
}
|
|
2711
|
-
const
|
|
2712
|
-
if (
|
|
2715
|
+
const j = E * (Math.sqrt(ge) + 1e-12), H = j > 0 ? he / j : 0;
|
|
2716
|
+
if (H > He && (He = H), He > Math.min(0.98, this.threshold + 0.25)) break;
|
|
2713
2717
|
}
|
|
2714
2718
|
if (He >= this.threshold) {
|
|
2715
2719
|
if (this._holdRemain = Math.max(this._holdRemain, Math.round(this.holdMs * this.sr / 1e3)), this.mode === "drop") return null;
|
|
@@ -3382,7 +3386,7 @@ st([
|
|
|
3382
3386
|
x({ type: String })
|
|
3383
3387
|
], qe.prototype, "ariaLive", 2);
|
|
3384
3388
|
qe = st([
|
|
3385
|
-
|
|
3389
|
+
K("cb-toast")
|
|
3386
3390
|
], qe);
|
|
3387
3391
|
function Q(a) {
|
|
3388
3392
|
return a != null && typeof a == "object" && a["@@functional/placeholder"] === !0;
|
|
@@ -3392,7 +3396,7 @@ function tt(a) {
|
|
|
3392
3396
|
return arguments.length === 0 || Q(t) ? e : a.apply(this, arguments);
|
|
3393
3397
|
};
|
|
3394
3398
|
}
|
|
3395
|
-
function
|
|
3399
|
+
function Ze(a) {
|
|
3396
3400
|
return function e(t, i) {
|
|
3397
3401
|
switch (arguments.length) {
|
|
3398
3402
|
case 0:
|
|
@@ -3416,23 +3420,23 @@ function Cs(a) {
|
|
|
3416
3420
|
case 0:
|
|
3417
3421
|
return e;
|
|
3418
3422
|
case 1:
|
|
3419
|
-
return Q(t) ? e :
|
|
3423
|
+
return Q(t) ? e : Ze(function(r, o) {
|
|
3420
3424
|
return a(t, r, o);
|
|
3421
3425
|
});
|
|
3422
3426
|
case 2:
|
|
3423
|
-
return Q(t) && Q(i) ? e : Q(t) ?
|
|
3427
|
+
return Q(t) && Q(i) ? e : Q(t) ? Ze(function(r, o) {
|
|
3424
3428
|
return a(r, i, o);
|
|
3425
|
-
}) : Q(i) ?
|
|
3429
|
+
}) : Q(i) ? Ze(function(r, o) {
|
|
3426
3430
|
return a(t, r, o);
|
|
3427
3431
|
}) : tt(function(r) {
|
|
3428
3432
|
return a(t, i, r);
|
|
3429
3433
|
});
|
|
3430
3434
|
default:
|
|
3431
|
-
return Q(t) && Q(i) && Q(s) ? e : Q(t) && Q(i) ?
|
|
3435
|
+
return Q(t) && Q(i) && Q(s) ? e : Q(t) && Q(i) ? Ze(function(r, o) {
|
|
3432
3436
|
return a(r, o, s);
|
|
3433
|
-
}) : Q(t) && Q(s) ?
|
|
3437
|
+
}) : Q(t) && Q(s) ? Ze(function(r, o) {
|
|
3434
3438
|
return a(r, i, o);
|
|
3435
|
-
}) : Q(i) && Q(s) ?
|
|
3439
|
+
}) : Q(i) && Q(s) ? Ze(function(r, o) {
|
|
3436
3440
|
return a(t, r, o);
|
|
3437
3441
|
}) : Q(t) ? tt(function(r) {
|
|
3438
3442
|
return a(r, i, s);
|
|
@@ -3451,7 +3455,7 @@ function Ms(a, e) {
|
|
|
3451
3455
|
var t = a < 0 ? e.length + a : a;
|
|
3452
3456
|
return e[t];
|
|
3453
3457
|
}
|
|
3454
|
-
var Ts = /* @__PURE__ */
|
|
3458
|
+
var Ts = /* @__PURE__ */ Ze(function(e, t) {
|
|
3455
3459
|
return t == null || t !== t ? e : t;
|
|
3456
3460
|
});
|
|
3457
3461
|
function Is(a, e) {
|
|
@@ -3481,8 +3485,10 @@ class R extends Jt {
|
|
|
3481
3485
|
}
|
|
3482
3486
|
// this is called at startup
|
|
3483
3487
|
setSetting(e) {
|
|
3484
|
-
T.info("appState: Startup: setSetting", e)
|
|
3485
|
-
|
|
3488
|
+
T.info("appState: Startup: setSetting", e);
|
|
3489
|
+
const t = this.setting;
|
|
3490
|
+
!!t && (t.orgId !== e.orgId || t.botId !== e.botId || t.url !== e.url || t.version !== e.version) && (this.botSettingsInitialized = !1, this.botSettings = null, this.botSettingsRetryTimeout = 5, this.disabled = !1), this.setting = e, this.initBot().catch((s) => {
|
|
3491
|
+
T.info(`Exception during bot initialization: ${s.message}`);
|
|
3486
3492
|
});
|
|
3487
3493
|
}
|
|
3488
3494
|
// set language
|
|
@@ -3496,22 +3502,22 @@ class R extends Jt {
|
|
|
3496
3502
|
// todo Form disappears on refresh !!!
|
|
3497
3503
|
async initBot() {
|
|
3498
3504
|
if (!this.botSettingsInitialized) {
|
|
3499
|
-
const
|
|
3500
|
-
T.info(`Getting bot settings at ${
|
|
3501
|
-
let
|
|
3505
|
+
const t = this.setting.url.startsWith("localhost") ? "http" : "https", i = this.setting.version && this.setting.version !== "current" ? `?version=${encodeURIComponent(this.setting.version)}` : "", s = `${t}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}${i}`;
|
|
3506
|
+
T.info(`Getting bot settings at ${s} ...`);
|
|
3507
|
+
let r = null, o = null;
|
|
3502
3508
|
try {
|
|
3503
|
-
|
|
3509
|
+
r = await fetch(s, {
|
|
3504
3510
|
//mode: 'no-cors',
|
|
3505
3511
|
headers: {
|
|
3506
3512
|
"Access-Control-Allow-Origin": "null",
|
|
3507
3513
|
"X-Enegel-Signature": this.setting.botId
|
|
3508
3514
|
//"ngrok-skip-browser-warning": "1",
|
|
3509
3515
|
}
|
|
3510
|
-
}), !
|
|
3511
|
-
} catch (
|
|
3512
|
-
T.error(`Failed to get bot ${this.setting.botId} settings: ${
|
|
3516
|
+
}), !r.ok || r.status !== 200 ? T.error(`Failed to get bot ${this.setting.botId} settings: ${r.status} ${r.statusText}`) : o = await r.json();
|
|
3517
|
+
} catch (f) {
|
|
3518
|
+
T.error(`Failed to get bot ${this.setting.botId} settings: ${f.message}`), o = null;
|
|
3513
3519
|
}
|
|
3514
|
-
if (this.botSettingsInitialized = !0, this.botSettings =
|
|
3520
|
+
if (this.botSettingsInitialized = !0, this.botSettings = o, !o) {
|
|
3515
3521
|
if (T.error(`Unable to retrieve bot settings - bot disabled. Retry in ${this.botSettingsRetryTimeout} seconds.`), this.disabled = !0, this.botSettingsRetryTimeout > 80) {
|
|
3516
3522
|
T.error("Failed to retrieve bot settings - bot disabled. Retries exhausted. Refresh page to attempt again.");
|
|
3517
3523
|
return;
|
|
@@ -3521,7 +3527,7 @@ class R extends Jt {
|
|
|
3521
3527
|
}, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
|
|
3522
3528
|
return;
|
|
3523
3529
|
}
|
|
3524
|
-
T.info("Got bot settings - bot is enabled",
|
|
3530
|
+
T.info("Got bot settings - bot is enabled", o), this.disabled = !1, this.setting.welcomeMessage = o?.welcomeMessage || "How can I help ?", this.setting.disclaimerMessage = o?.disclaimerMessage && o.disclaimerMessage !== "" ? o.disclaimerMessage : null, this.setting.engageMessage = o?.engageMessage || "How can I help ?", this.setting.engageTimeout = o?.engageTimeout || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in o ? o.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in o ? o.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in o ? o.uploadImages : !1, this.setting.newConversationTimeoutInSec = o?.newConversationTimeoutInSec || 86400, this.setting.enableNotificationSound = "enableNotificationSound" in o ? o.enableNotificationSound : !0, this.setting.botAdvancedSettings = o?.botAdvancedSettings ?? {}, this.setting.startFeedbackFromMessage = "startFeedbackFromMessage" in this.setting.botAdvancedSettings ? this.setting.botAdvancedSettings.startFeedbackFromMessage : 1, this.setting.enableMultiModalConnection = this.setting.botAdvancedSettings?.enableMultiModalConnection ?? !1, this.setting.enablePassContextOnConnect = this.setting.botAdvancedSettings?.enablePassContextOnConnect ?? !1, this.setting.enableShowFullDisclaimerMessage = this.setting.botAdvancedSettings?.enableShowFullDisclaimerMessage ?? !1, this.setting.fileUploadEnabledExtensions = this.setting.botAdvancedSettings?.fileUploadEnabledExtensions || ".jpeg,.jpg,.png,.pdf,.txt,.har,.zip,.mov,.mp4,.mp3", this.setting.fileUploadMaxFileSizeMB = this.setting.botAdvancedSettings?.fileUploadMaxFileSizeMB || 30, this.setting.enableAgentDisconnectedMessage = this.setting.botAdvancedSettings?.enableAgentDisconnectedMessage ?? !1, this.setting.showNewConversationOnAgentDisconnected = this.setting.botAdvancedSettings?.showNewConversationOnAgentDisconnected ?? !1, this.setting.enableMultiModalConnection ? this.setting.enableAudio = !0 : this.setting.enableAudio = !1, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
|
|
3525
3531
|
this.showEngagePopup();
|
|
3526
3532
|
}, this.setting.engageTimeout * 1e3);
|
|
3527
3533
|
}
|
|
@@ -3802,7 +3808,7 @@ class R extends Jt {
|
|
|
3802
3808
|
return this.wsClient;
|
|
3803
3809
|
let t = `${this.setting.url.startsWith("localhost") ? "ws" : "wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;
|
|
3804
3810
|
const i = new URL(t);
|
|
3805
|
-
if (this.setting.enableMultiModalConnection && (i.searchParams.set("multiModal", "true"), T.info("MultiModal connection enabled - adding multiModal=true parameter")), this.setting.enablePassContextOnConnect && this.context && typeof this.context == "object")
|
|
3811
|
+
if (this.setting.version && this.setting.version !== "current" && i.searchParams.set("version", this.setting.version), this.setting.enableMultiModalConnection && (i.searchParams.set("multiModal", "true"), T.info("MultiModal connection enabled - adding multiModal=true parameter")), this.setting.enablePassContextOnConnect && this.context && typeof this.context == "object")
|
|
3806
3812
|
try {
|
|
3807
3813
|
const s = JSON.stringify(this.context);
|
|
3808
3814
|
i.searchParams.set("context", s), T.info("Adding context to connect URL");
|
|
@@ -4413,6 +4419,7 @@ O([
|
|
|
4413
4419
|
orgId: null,
|
|
4414
4420
|
botId: null,
|
|
4415
4421
|
url: null,
|
|
4422
|
+
version: "current",
|
|
4416
4423
|
welcomeMessage: null,
|
|
4417
4424
|
disclaimerMessage: null,
|
|
4418
4425
|
enableShowFullDisclaimerMessage: !1,
|
|
@@ -4606,7 +4613,7 @@ class re extends Fe {
|
|
|
4606
4613
|
zs([
|
|
4607
4614
|
x({ type: String })
|
|
4608
4615
|
], re.prototype, "lang");
|
|
4609
|
-
var Os = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor,
|
|
4616
|
+
var Os = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, Ka = (a, e, t, i) => {
|
|
4610
4617
|
for (var s = i > 1 ? void 0 : i ? Bs(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
4611
4618
|
(o = a[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
4612
4619
|
return i && s && Os(e, t, s), s;
|
|
@@ -4675,11 +4682,11 @@ let Ot = class extends re {
|
|
|
4675
4682
|
}
|
|
4676
4683
|
};
|
|
4677
4684
|
Ot.styles = Ls;
|
|
4678
|
-
|
|
4685
|
+
Ka([
|
|
4679
4686
|
x({ type: String, attribute: "title" })
|
|
4680
4687
|
], Ot.prototype, "title", 2);
|
|
4681
|
-
Ot =
|
|
4682
|
-
|
|
4688
|
+
Ot = Ka([
|
|
4689
|
+
K("cb-header")
|
|
4683
4690
|
], Ot);
|
|
4684
4691
|
const Ds = J`
|
|
4685
4692
|
${ke}
|
|
@@ -4701,7 +4708,7 @@ var Fs = Object.getOwnPropertyDescriptor, js = (a, e, t, i) => {
|
|
|
4701
4708
|
(o = a[r]) && (s = o(s) || s);
|
|
4702
4709
|
return s;
|
|
4703
4710
|
};
|
|
4704
|
-
let
|
|
4711
|
+
let Kt = class extends re {
|
|
4705
4712
|
constructor() {
|
|
4706
4713
|
super(...arguments), this.year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
4707
4714
|
}
|
|
@@ -4736,10 +4743,10 @@ let Zt = class extends re {
|
|
|
4736
4743
|
`;
|
|
4737
4744
|
}
|
|
4738
4745
|
};
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
],
|
|
4746
|
+
Kt.styles = Ds;
|
|
4747
|
+
Kt = js([
|
|
4748
|
+
K("cb-footer")
|
|
4749
|
+
], Kt);
|
|
4743
4750
|
const Hs = J`
|
|
4744
4751
|
${ke}
|
|
4745
4752
|
|
|
@@ -4941,7 +4948,7 @@ const Hs = J`
|
|
|
4941
4948
|
background-size: 100%;
|
|
4942
4949
|
transition: background 0s;
|
|
4943
4950
|
}
|
|
4944
|
-
`,
|
|
4951
|
+
`, Za = J`
|
|
4945
4952
|
:host {
|
|
4946
4953
|
--primary-color: var(--sl-color-primary-600);
|
|
4947
4954
|
}
|
|
@@ -5283,7 +5290,7 @@ je([
|
|
|
5283
5290
|
x({ type: Number })
|
|
5284
5291
|
], gt.prototype, "minWidth", 2);
|
|
5285
5292
|
gt = je([
|
|
5286
|
-
|
|
5293
|
+
K("cb-split-menu")
|
|
5287
5294
|
], gt);
|
|
5288
5295
|
let Ge = class extends Fe {
|
|
5289
5296
|
constructor() {
|
|
@@ -5387,7 +5394,7 @@ je([
|
|
|
5387
5394
|
xe(".split-btn")
|
|
5388
5395
|
], Ge.prototype, "_btn", 2);
|
|
5389
5396
|
Ge = je([
|
|
5390
|
-
|
|
5397
|
+
K("cb-split-button")
|
|
5391
5398
|
], Ge);
|
|
5392
5399
|
var Us = Object.defineProperty, Ws = Object.getOwnPropertyDescriptor, wt = (a, e, t, i) => {
|
|
5393
5400
|
for (var s = i > 1 ? void 0 : i ? Ws(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
@@ -5506,12 +5513,12 @@ let Me = class extends Fe {
|
|
|
5506
5513
|
if (!i) return Ae;
|
|
5507
5514
|
const U = u`<img class="card__image" src=${i} alt=${s ?? e ?? "Image"} draggable="false" />`;
|
|
5508
5515
|
return p ? u`<a class="card__image-link" href=${o} target=${f || "_blank"} rel="noopener noreferrer" draggable="false" aria-label=${e ? `Open: ${e}` : "Open"}>${U}</a>` : U;
|
|
5509
|
-
},
|
|
5516
|
+
}, Z = () => e ? p && !i ? u`<h3 class="card__title"><a class="card__title-link" href=${o} target=${f || "_blank"} rel="noopener noreferrer" draggable="false">${e}</a></h3>` : u`<h3 class="card__title">${e}</h3>` : Ae;
|
|
5510
5517
|
return u`
|
|
5511
5518
|
<div class="card" role="group" aria-label=${e ? `Card: ${e}` : "Card"}>
|
|
5512
5519
|
${C()}
|
|
5513
5520
|
<div class="card__content">
|
|
5514
|
-
${
|
|
5521
|
+
${Z()}
|
|
5515
5522
|
${t ? u`<div class="card__subtitle">${t}</div>` : Ae}
|
|
5516
5523
|
${w || _ ? u`
|
|
5517
5524
|
<div class=${P}>
|
|
@@ -5725,7 +5732,7 @@ let Me = class extends Fe {
|
|
|
5725
5732
|
await o.json(), Tt.info("c7o: cart/add.js - cart updated"), Tt.info("c7o: reloading window after cart update"), window.location.reload();
|
|
5726
5733
|
}
|
|
5727
5734
|
};
|
|
5728
|
-
Me.styles = [Gs,
|
|
5735
|
+
Me.styles = [Gs, Za, Qa];
|
|
5729
5736
|
Me.DRAG_THRESHOLD_PX = 10;
|
|
5730
5737
|
wt([
|
|
5731
5738
|
x({ type: Object })
|
|
@@ -5740,7 +5747,7 @@ wt([
|
|
|
5740
5747
|
Va()
|
|
5741
5748
|
], Me.prototype, "_canNext", 2);
|
|
5742
5749
|
Me = wt([
|
|
5743
|
-
|
|
5750
|
+
K("cb-block")
|
|
5744
5751
|
], Me);
|
|
5745
5752
|
var Xs = Object.defineProperty, Ys = Object.getOwnPropertyDescriptor, ei = (a, e, t, i) => {
|
|
5746
5753
|
for (var s = i > 1 ? void 0 : i ? Ys(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
@@ -5774,10 +5781,10 @@ ei([
|
|
|
5774
5781
|
x({ type: Array })
|
|
5775
5782
|
], Bt.prototype, "blocks", 2);
|
|
5776
5783
|
Bt = ei([
|
|
5777
|
-
|
|
5784
|
+
K("cb-blocks")
|
|
5778
5785
|
], Bt);
|
|
5779
5786
|
var Rt = { exports: {} }, Js = Rt.exports, Pa;
|
|
5780
|
-
function
|
|
5787
|
+
function Ks() {
|
|
5781
5788
|
return Pa || (Pa = 1, (function(a, e) {
|
|
5782
5789
|
(function(t, i) {
|
|
5783
5790
|
a.exports = i();
|
|
@@ -5827,7 +5834,7 @@ function Zs() {
|
|
|
5827
5834
|
return n;
|
|
5828
5835
|
}
|
|
5829
5836
|
function v(n, c) {
|
|
5830
|
-
if ((
|
|
5837
|
+
if ((N(n) || n === window || n === document) && (n = [n]), Pe(n) || Ve(n) || (n = [n]), ua(n) != 0) {
|
|
5831
5838
|
if (Pe(n) && !Ve(n)) for (var l = n.length, d = 0; d < l && c.call(n[d], n[d], d, n) !== !1; d++) ;
|
|
5832
5839
|
else if (Ve(n)) {
|
|
5833
5840
|
for (var h in n) if (ie(n, h) && c.call(n[h], n[h], h, n) === !1) break;
|
|
@@ -5843,9 +5850,9 @@ function Zs() {
|
|
|
5843
5850
|
function w(n) {
|
|
5844
5851
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = c.onElement, d = c.withCallback, h = c.avoidDuplicate, m = h === void 0 || h, g = c.once, y = g !== void 0 && g, A = c.useCapture, S = A !== void 0 && A, I = arguments.length > 2 ? arguments[2] : void 0, $ = l || [];
|
|
5845
5852
|
function B(q) {
|
|
5846
|
-
|
|
5853
|
+
j(d) && d.call(I, q, this), y && B.destroy();
|
|
5847
5854
|
}
|
|
5848
|
-
return
|
|
5855
|
+
return H($) && ($ = document.querySelectorAll($)), B.destroy = function() {
|
|
5849
5856
|
v($, (function(q) {
|
|
5850
5857
|
var D = k(q, n, B);
|
|
5851
5858
|
D.found && D.all.splice(D.evt, 1), q.removeEventListener && q.removeEventListener(n, B, S);
|
|
@@ -5877,14 +5884,14 @@ function Zs() {
|
|
|
5877
5884
|
function L(n) {
|
|
5878
5885
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
5879
5886
|
if (!n || c === "") return !1;
|
|
5880
|
-
if (c === "none") return
|
|
5887
|
+
if (c === "none") return j(l) && l(), !1;
|
|
5881
5888
|
var d = He(), h = c.split(" ");
|
|
5882
5889
|
v(h, (function(m) {
|
|
5883
5890
|
_(n, "g" + m);
|
|
5884
5891
|
})), w(d, { onElement: n, avoidDuplicate: !1, once: !0, withCallback: function(m, g) {
|
|
5885
5892
|
v(h, (function(y) {
|
|
5886
5893
|
P(g, "g" + y);
|
|
5887
|
-
})),
|
|
5894
|
+
})), j(l) && l();
|
|
5888
5895
|
} });
|
|
5889
5896
|
}
|
|
5890
5897
|
function C(n) {
|
|
@@ -5892,7 +5899,7 @@ function Zs() {
|
|
|
5892
5899
|
if (c === "") return n.style.webkitTransform = "", n.style.MozTransform = "", n.style.msTransform = "", n.style.OTransform = "", n.style.transform = "", !1;
|
|
5893
5900
|
n.style.webkitTransform = c, n.style.MozTransform = c, n.style.msTransform = c, n.style.OTransform = c, n.style.transform = c;
|
|
5894
5901
|
}
|
|
5895
|
-
function
|
|
5902
|
+
function Z(n) {
|
|
5896
5903
|
n.style.display = "block";
|
|
5897
5904
|
}
|
|
5898
5905
|
function U(n) {
|
|
@@ -5922,17 +5929,17 @@ function Zs() {
|
|
|
5922
5929
|
}
|
|
5923
5930
|
function he(n, c, l) {
|
|
5924
5931
|
if (be(n)) console.error("Inject assets error");
|
|
5925
|
-
else if (
|
|
5932
|
+
else if (j(c) && (l = c, c = !1), H(c) && c in window) j(l) && l();
|
|
5926
5933
|
else {
|
|
5927
5934
|
var d;
|
|
5928
5935
|
if (n.indexOf(".css") !== -1) {
|
|
5929
|
-
if ((d = document.querySelectorAll('link[href="' + n + '"]')) && d.length > 0) return void (
|
|
5936
|
+
if ((d = document.querySelectorAll('link[href="' + n + '"]')) && d.length > 0) return void (j(l) && l());
|
|
5930
5937
|
var h = document.getElementsByTagName("head")[0], m = h.querySelectorAll('link[rel="stylesheet"]'), g = document.createElement("link");
|
|
5931
|
-
return g.rel = "stylesheet", g.type = "text/css", g.href = n, g.media = "all", m ? h.insertBefore(g, m[0]) : h.appendChild(g), void (
|
|
5938
|
+
return g.rel = "stylesheet", g.type = "text/css", g.href = n, g.media = "all", m ? h.insertBefore(g, m[0]) : h.appendChild(g), void (j(l) && l());
|
|
5932
5939
|
}
|
|
5933
5940
|
if ((d = document.querySelectorAll('script[src="' + n + '"]')) && d.length > 0) {
|
|
5934
|
-
if (
|
|
5935
|
-
if (
|
|
5941
|
+
if (j(l)) {
|
|
5942
|
+
if (H(c)) return ae((function() {
|
|
5936
5943
|
return window[c] !== void 0;
|
|
5937
5944
|
}), (function() {
|
|
5938
5945
|
l();
|
|
@@ -5942,8 +5949,8 @@ function Zs() {
|
|
|
5942
5949
|
} else {
|
|
5943
5950
|
var y = document.createElement("script");
|
|
5944
5951
|
y.type = "text/javascript", y.src = n, y.onload = function() {
|
|
5945
|
-
if (
|
|
5946
|
-
if (
|
|
5952
|
+
if (j(l)) {
|
|
5953
|
+
if (H(c)) return ae((function() {
|
|
5947
5954
|
return window[c] !== void 0;
|
|
5948
5955
|
}), (function() {
|
|
5949
5956
|
l();
|
|
@@ -5957,13 +5964,13 @@ function Zs() {
|
|
|
5957
5964
|
function ge() {
|
|
5958
5965
|
return "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
|
|
5959
5966
|
}
|
|
5960
|
-
function
|
|
5967
|
+
function j(n) {
|
|
5961
5968
|
return typeof n == "function";
|
|
5962
5969
|
}
|
|
5963
|
-
function
|
|
5970
|
+
function H(n) {
|
|
5964
5971
|
return typeof n == "string";
|
|
5965
5972
|
}
|
|
5966
|
-
function
|
|
5973
|
+
function N(n) {
|
|
5967
5974
|
return !(!n || !n.nodeType || n.nodeType != 1);
|
|
5968
5975
|
}
|
|
5969
5976
|
function $e(n) {
|
|
@@ -5973,7 +5980,7 @@ function Zs() {
|
|
|
5973
5980
|
return n && n.length && isFinite(n.length);
|
|
5974
5981
|
}
|
|
5975
5982
|
function Ve(n) {
|
|
5976
|
-
return o(n) === "object" && n != null && !
|
|
5983
|
+
return o(n) === "object" && n != null && !j(n) && !$e(n);
|
|
5977
5984
|
}
|
|
5978
5985
|
function be(n) {
|
|
5979
5986
|
return n == null;
|
|
@@ -6131,7 +6138,7 @@ function Zs() {
|
|
|
6131
6138
|
function ki(n, c, l, d) {
|
|
6132
6139
|
var h = n.querySelector(".gslide-media"), m = new Image(), g = "gSlideTitle_" + l, y = "gSlideDesc_" + l;
|
|
6133
6140
|
m.addEventListener("load", (function() {
|
|
6134
|
-
|
|
6141
|
+
j(d) && d();
|
|
6135
6142
|
}), !1), m.src = c.href, c.sizes != "" && c.srcset != "" && (m.sizes = c.sizes, m.srcset = c.srcset), m.alt = "", be(c.alt) || c.alt === "" || (m.alt = c.alt), c.title !== "" && m.setAttribute("aria-labelledby", g), c.description !== "" && m.setAttribute("aria-describedby", y), c.hasOwnProperty("_hasCustomWidth") && c._hasCustomWidth && (m.style.width = c.width), c.hasOwnProperty("_hasCustomHeight") && c._hasCustomHeight && (m.style.height = c.height), h.insertBefore(m, h.firstChild);
|
|
6136
6143
|
}
|
|
6137
6144
|
function _i(n, c, l, d) {
|
|
@@ -6150,7 +6157,7 @@ function Zs() {
|
|
|
6150
6157
|
_(S, "".concat($, "-video gvideo")), S.appendChild(D), S.setAttribute("data-id", g), S.setAttribute("data-index", l);
|
|
6151
6158
|
var ee = ie(h.settings.plyr, "config") ? h.settings.plyr.config : {}, me = new Plyr("#" + g, ee);
|
|
6152
6159
|
me.on("ready", (function(ue) {
|
|
6153
|
-
A[g] = ue.detail.plyr,
|
|
6160
|
+
A[g] = ue.detail.plyr, j(d) && d();
|
|
6154
6161
|
})), ae((function() {
|
|
6155
6162
|
return n.querySelector("iframe") && n.querySelector("iframe").dataset.ready == "true";
|
|
6156
6163
|
}), (function() {
|
|
@@ -6164,7 +6171,7 @@ function Zs() {
|
|
|
6164
6171
|
}
|
|
6165
6172
|
function Si(n, c, l, d) {
|
|
6166
6173
|
var h, m = this, g = n.querySelector(".gslide-media"), y = !(!ie(c, "href") || !c.href) && c.href.split("#").pop().trim(), A = !(!ie(c, "content") || !c.content) && c.content;
|
|
6167
|
-
if (A && (
|
|
6174
|
+
if (A && (H(A) && (h = X('<div class="ginlined-content">'.concat(A, "</div>"))), N(A))) {
|
|
6168
6175
|
A.style.display == "none" && (A.style.display = "block");
|
|
6169
6176
|
var S = document.createElement("div");
|
|
6170
6177
|
S.className = "ginlined-content", S.appendChild(A), h = S;
|
|
@@ -6178,13 +6185,13 @@ function Zs() {
|
|
|
6178
6185
|
if (!h) return console.error("Unable to append inline slide content", c), !1;
|
|
6179
6186
|
g.style.height = c.height, g.style.width = c.width, g.appendChild(h), this.events["inlineclose" + y] = w("click", { onElement: g.querySelectorAll(".gtrigger-close"), withCallback: function(B) {
|
|
6180
6187
|
B.preventDefault(), m.close();
|
|
6181
|
-
} }),
|
|
6188
|
+
} }), j(d) && d();
|
|
6182
6189
|
}
|
|
6183
6190
|
function Ci(n, c, l, d) {
|
|
6184
6191
|
var h = n.querySelector(".gslide-media"), m = (function(g) {
|
|
6185
6192
|
var y = g.url, A = g.allow, S = g.callback, I = g.appendTo, $ = document.createElement("iframe");
|
|
6186
6193
|
return $.className = "vimeo-video gvideo", $.src = y, $.style.width = "100%", $.style.height = "100%", A && $.setAttribute("allow", A), $.onload = function() {
|
|
6187
|
-
$.onload = null, _($, "node-ready"),
|
|
6194
|
+
$.onload = null, _($, "node-ready"), j(S) && S();
|
|
6188
6195
|
}, I && I.appendChild($), $;
|
|
6189
6196
|
})({ url: c.href, callback: d });
|
|
6190
6197
|
h.parentNode.style.maxWidth = c.width, h.parentNode.style.height = c.height, h.appendChild(m);
|
|
@@ -6197,7 +6204,7 @@ function Zs() {
|
|
|
6197
6204
|
return (n = n.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : n.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || n.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || n.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || n.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/) || n.match(/vimeo\.com\/([0-9]*)/) || n.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : n.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : n.indexOf("#") > -1 && c.split("#").pop().trim() !== "" ? "inline" : n.indexOf("goajax=true") > -1 ? "ajax" : "external";
|
|
6198
6205
|
} }, { key: "parseConfig", value: function(n, c) {
|
|
6199
6206
|
var l = this, d = p({ descPosition: c.descPosition }, this.defaults);
|
|
6200
|
-
if (Ve(n) && !
|
|
6207
|
+
if (Ve(n) && !N(n)) {
|
|
6201
6208
|
ie(n, "type") || (ie(n, "content") && n.content ? n.type = "inline" : ie(n, "href") && (n.type = this.sourceType(n.href)));
|
|
6202
6209
|
var h = p(d, n);
|
|
6203
6210
|
return this.setSize(h, c), h;
|
|
@@ -6255,16 +6262,16 @@ function Zs() {
|
|
|
6255
6262
|
var n = this, c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, l = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
6256
6263
|
if (E(c, "loaded")) return !1;
|
|
6257
6264
|
var d = this.instance.settings, h = this.slideConfig, m = ge();
|
|
6258
|
-
|
|
6265
|
+
j(d.beforeSlideLoad) && d.beforeSlideLoad({ index: this.index, slide: c, player: !1 });
|
|
6259
6266
|
var g = h.type, y = h.descPosition, A = c.querySelector(".gslide-media"), S = c.querySelector(".gslide-title"), I = c.querySelector(".gslide-desc"), $ = c.querySelector(".gdesc-inner"), B = l, q = "gSlideTitle_" + this.index, D = "gSlideDesc_" + this.index;
|
|
6260
|
-
if (
|
|
6261
|
-
|
|
6267
|
+
if (j(d.afterSlideLoad) && (B = function() {
|
|
6268
|
+
j(l) && l(), d.afterSlideLoad({ index: n.index, slide: c, player: n.instance.getSlidePlayerInstance(n.index) });
|
|
6262
6269
|
}), h.title == "" && h.description == "" ? $ && $.parentNode.parentNode.removeChild($.parentNode) : (S && h.title !== "" ? (S.id = q, S.innerHTML = h.title) : S.parentNode.removeChild(S), I && h.description !== "" ? (I.id = D, m && d.moreLength > 0 ? (h.smallDescription = this.slideShortDesc(h.description, d.moreLength, d.moreText), I.innerHTML = h.smallDescription, this.descriptionEvents(I, h)) : I.innerHTML = h.description) : I.parentNode.removeChild(I), _(A.parentNode, "desc-".concat(y)), _($.parentNode, "description-".concat(y))), _(A, "gslide-".concat(g)), _(c, "loaded"), g !== "video") {
|
|
6263
|
-
if (g !== "external") return g === "inline" ? (Si.apply(this.instance, [c, h, this.index, B]), void (h.draggable && new ga({ dragEl: c.querySelector(".gslide-inline"), toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: this.instance }))) : void (g !== "image" ?
|
|
6270
|
+
if (g !== "external") return g === "inline" ? (Si.apply(this.instance, [c, h, this.index, B]), void (h.draggable && new ga({ dragEl: c.querySelector(".gslide-inline"), toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: this.instance }))) : void (g !== "image" ? j(B) && B() : ki(c, h, this.index, (function() {
|
|
6264
6271
|
var ee = c.querySelector("img");
|
|
6265
6272
|
h.draggable && new ga({ dragEl: ee, toleranceX: d.dragToleranceX, toleranceY: d.dragToleranceY, slide: c, instance: n.instance }), h.zoomable && ee.naturalWidth > ee.offsetWidth && (_(ee, "zoomable"), new xi(ee, c, (function() {
|
|
6266
6273
|
n.instance.resize();
|
|
6267
|
-
}))),
|
|
6274
|
+
}))), j(B) && B();
|
|
6268
6275
|
})));
|
|
6269
6276
|
Ci.apply(this, [c, h, this.index, B]);
|
|
6270
6277
|
} else _i.apply(this.instance, [c, h, this.index, B]);
|
|
@@ -6292,7 +6299,7 @@ function Zs() {
|
|
|
6292
6299
|
} }, { key: "create", value: function() {
|
|
6293
6300
|
return X(this.instance.settings.slideHTML);
|
|
6294
6301
|
} }, { key: "getConfig", value: function() {
|
|
6295
|
-
|
|
6302
|
+
N(this.element) || this.element.hasOwnProperty("draggable") || (this.element.draggable = this.instance.settings.draggable);
|
|
6296
6303
|
var n = new Ai(this.instance.settings.slideExtraAttributes);
|
|
6297
6304
|
return this.slideConfig = n.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
6298
6305
|
} }]);
|
|
@@ -6496,7 +6503,7 @@ function Zs() {
|
|
|
6496
6503
|
if (this.elements.length === 0) return !1;
|
|
6497
6504
|
this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
|
|
6498
6505
|
var l = xt(c) ? c : this.settings.startAt;
|
|
6499
|
-
if (
|
|
6506
|
+
if (N(n)) {
|
|
6500
6507
|
var d = n.getAttribute("data-gallery");
|
|
6501
6508
|
d && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, d)), be(l) && (l = this.getElementIndex(n)) < 0 && (l = 0);
|
|
6502
6509
|
}
|
|
@@ -6506,19 +6513,19 @@ function Zs() {
|
|
|
6506
6513
|
var g = document.createElement("style");
|
|
6507
6514
|
g.type = "text/css", g.className = "gcss-styles", g.innerText = ".gscrollbar-fixer {margin-right: ".concat(m, "px}"), document.head.appendChild(g), _(h, "gscrollbar-fixer");
|
|
6508
6515
|
}
|
|
6509
|
-
_(h, "glightbox-open"), _(wa, "glightbox-open"), ya && (_(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(l, !0), this.elements.length === 1 ? (_(this.prevButton, "glightbox-button-hidden"), _(this.nextButton, "glightbox-button-hidden")) : (P(this.prevButton, "glightbox-button-hidden"), P(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"),
|
|
6516
|
+
_(h, "glightbox-open"), _(wa, "glightbox-open"), ya && (_(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(l, !0), this.elements.length === 1 ? (_(this.prevButton, "glightbox-button-hidden"), _(this.nextButton, "glightbox-button-hidden")) : (P(this.prevButton, "glightbox-button-hidden"), P(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), j(this.settings.onOpen) && this.settings.onOpen(), va && this.settings.touchNavigation && Ei(this), this.settings.keyboardNavigation && wi(this);
|
|
6510
6517
|
} }, { key: "openAt", value: function() {
|
|
6511
6518
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
6512
6519
|
this.open(null, n);
|
|
6513
6520
|
} }, { key: "showSlide", value: function() {
|
|
6514
6521
|
var n = this, c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, l = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
6515
|
-
|
|
6522
|
+
Z(this.loader), this.index = parseInt(c);
|
|
6516
6523
|
var d = this.slidesContainer.querySelector(".current");
|
|
6517
6524
|
d && P(d, "current"), this.slideAnimateOut();
|
|
6518
6525
|
var h = this.slidesContainer.querySelectorAll(".gslide")[c];
|
|
6519
6526
|
if (E(h, "loaded")) this.slideAnimateIn(h, l), U(this.loader);
|
|
6520
6527
|
else {
|
|
6521
|
-
|
|
6528
|
+
Z(this.loader);
|
|
6522
6529
|
var m = this.elements[c], g = { index: this.index, slide: h, slideNode: h, slideConfig: m.slideConfig, slideIndex: this.index, trigger: m.node, player: null };
|
|
6523
6530
|
this.trigger("slide_before_load", g), m.instance.setContent(h, (function() {
|
|
6524
6531
|
U(n.loader), n.resize(), n.slideAnimateIn(h, l), n.trigger("slide_after_load", g);
|
|
@@ -6560,21 +6567,21 @@ function Zs() {
|
|
|
6560
6567
|
}
|
|
6561
6568
|
(this.settings.preload && this.index == 0 && c == 0 || this.index - 1 == c || this.index + 1 == c) && this.preloadSlide(c), this.index === 0 && c === 0 && (this.index = 1), this.updateNavigationClasses(), y = this.slidesContainer.querySelectorAll(".gslide")[c], A = this.getSlidePlayerInstance(c), h.slideNode = y;
|
|
6562
6569
|
}
|
|
6563
|
-
this.trigger("slide_inserted", { index: c, slide: y, slideNode: y, slideConfig: d, slideIndex: c, trigger: null, player: A }),
|
|
6570
|
+
this.trigger("slide_inserted", { index: c, slide: y, slideNode: y, slideConfig: d, slideIndex: c, trigger: null, player: A }), j(this.settings.slideInserted) && this.settings.slideInserted({ index: c, slide: y, player: A });
|
|
6564
6571
|
} }, { key: "removeSlide", value: function() {
|
|
6565
6572
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
|
|
6566
6573
|
if (n < 0 || n > this.elements.length - 1) return !1;
|
|
6567
6574
|
var c = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[n];
|
|
6568
|
-
c && (this.getActiveSlideIndex() == n && (n == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), c.parentNode.removeChild(c)), this.elements.splice(n, 1), this.trigger("slide_removed", n),
|
|
6575
|
+
c && (this.getActiveSlideIndex() == n && (n == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), c.parentNode.removeChild(c)), this.elements.splice(n, 1), this.trigger("slide_removed", n), j(this.settings.slideRemoved) && this.settings.slideRemoved(n);
|
|
6569
6576
|
} }, { key: "slideAnimateIn", value: function(n, c) {
|
|
6570
6577
|
var l = this, d = n.querySelector(".gslide-media"), h = n.querySelector(".gslide-description"), m = { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlide, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, g = { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideConfig: this.elements[this.index].slideConfig, slideIndex: this.index, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) };
|
|
6571
6578
|
if (d.offsetWidth > 0 && h && (U(h), h.style.display = ""), P(n, this.effectsClasses), c) L(n, this.settings.cssEfects[this.settings.openEffect].in, (function() {
|
|
6572
|
-
l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }),
|
|
6579
|
+
l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), j(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
|
|
6573
6580
|
}));
|
|
6574
6581
|
else {
|
|
6575
6582
|
var y = this.settings.slideEffect, A = y !== "none" ? this.settings.cssEfects[y].in : y;
|
|
6576
6583
|
this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (A = this.settings.cssEfects.slideBack.in), L(n, A, (function() {
|
|
6577
|
-
l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }),
|
|
6584
|
+
l.settings.autoplayVideos && l.slidePlayerPlay(n), l.trigger("slide_changed", { prev: m, current: g }), j(l.settings.afterSlideChange) && l.settings.afterSlideChange.apply(l, [m, g]);
|
|
6578
6585
|
}));
|
|
6579
6586
|
}
|
|
6580
6587
|
setTimeout((function() {
|
|
@@ -6585,7 +6592,7 @@ function Zs() {
|
|
|
6585
6592
|
var n = this.prevActiveSlide;
|
|
6586
6593
|
P(n, this.effectsClasses), _(n, "prev");
|
|
6587
6594
|
var c = this.settings.slideEffect, l = c !== "none" ? this.settings.cssEfects[c].out : c;
|
|
6588
|
-
this.slidePlayerPause(n), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }),
|
|
6595
|
+
this.slidePlayerPause(n), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: be(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), j(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (l = this.settings.cssEfects.slideBack.out), L(n, l, (function() {
|
|
6589
6596
|
var d = n.querySelector(".ginner-container"), h = n.querySelector(".gslide-media"), m = n.querySelector(".gslide-description");
|
|
6590
6597
|
d.style.transform = "", h.style.transform = "", P(h, "greset"), h.style.opacity = "", m && (m.style.opacity = ""), P(n, "prev");
|
|
6591
6598
|
}));
|
|
@@ -6595,7 +6602,7 @@ function Zs() {
|
|
|
6595
6602
|
var c = "gvideo" + n, l = this.getAllPlayers();
|
|
6596
6603
|
return !(!ie(l, c) || !l[c]) && l[c];
|
|
6597
6604
|
} }, { key: "stopSlideVideo", value: function(n) {
|
|
6598
|
-
if (
|
|
6605
|
+
if (N(n)) {
|
|
6599
6606
|
var c = n.querySelector(".gvideo-wrapper");
|
|
6600
6607
|
c && (n = c.getAttribute("data-index"));
|
|
6601
6608
|
}
|
|
@@ -6603,14 +6610,14 @@ function Zs() {
|
|
|
6603
6610
|
var l = this.getSlidePlayerInstance(n);
|
|
6604
6611
|
l && l.playing && l.pause();
|
|
6605
6612
|
} }, { key: "slidePlayerPause", value: function(n) {
|
|
6606
|
-
if (
|
|
6613
|
+
if (N(n)) {
|
|
6607
6614
|
var c = n.querySelector(".gvideo-wrapper");
|
|
6608
6615
|
c && (n = c.getAttribute("data-index"));
|
|
6609
6616
|
}
|
|
6610
6617
|
var l = this.getSlidePlayerInstance(n);
|
|
6611
6618
|
l && l.playing && l.pause();
|
|
6612
6619
|
} }, { key: "playSlideVideo", value: function(n) {
|
|
6613
|
-
if (
|
|
6620
|
+
if (N(n)) {
|
|
6614
6621
|
var c = n.querySelector(".gvideo-wrapper");
|
|
6615
6622
|
c && (n = c.getAttribute("data-index"));
|
|
6616
6623
|
}
|
|
@@ -6620,7 +6627,7 @@ function Zs() {
|
|
|
6620
6627
|
} }, { key: "slidePlayerPlay", value: function(n) {
|
|
6621
6628
|
var c;
|
|
6622
6629
|
if (!ya || (c = this.settings.plyr.config) !== null && c !== void 0 && c.muted) {
|
|
6623
|
-
if (
|
|
6630
|
+
if (N(n)) {
|
|
6624
6631
|
var l = n.querySelector(".gvideo-wrapper");
|
|
6625
6632
|
l && (n = l.getAttribute("data-index"));
|
|
6626
6633
|
}
|
|
@@ -6749,7 +6756,7 @@ function Zs() {
|
|
|
6749
6756
|
n.events = null;
|
|
6750
6757
|
}
|
|
6751
6758
|
var d = document.body;
|
|
6752
|
-
P(wa, "glightbox-open"), P(d, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), n.modal.parentNode.removeChild(n.modal), n.trigger("close"),
|
|
6759
|
+
P(wa, "glightbox-open"), P(d, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), n.modal.parentNode.removeChild(n.modal), n.trigger("close"), j(n.settings.onClose) && n.settings.onClose();
|
|
6753
6760
|
var h = document.querySelector(".gcss-styles");
|
|
6754
6761
|
h && h.parentNode.removeChild(h), n.lightboxOpen = !1, n.closing = null;
|
|
6755
6762
|
}));
|
|
@@ -6757,7 +6764,7 @@ function Zs() {
|
|
|
6757
6764
|
this.close(), this.clearAllEvents(), this.baseEvents && this.baseEvents.destroy();
|
|
6758
6765
|
} }, { key: "on", value: function(n, c) {
|
|
6759
6766
|
var l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
6760
|
-
if (!n || !
|
|
6767
|
+
if (!n || !j(c)) throw new TypeError("Event name and callback must be defined");
|
|
6761
6768
|
this.apiEvents.push({ evt: n, once: l, callback: c });
|
|
6762
6769
|
} }, { key: "once", value: function(n, c) {
|
|
6763
6770
|
this.on(n, c, !0);
|
|
@@ -6781,19 +6788,19 @@ function Zs() {
|
|
|
6781
6788
|
}));
|
|
6782
6789
|
})(Rt)), Rt.exports;
|
|
6783
6790
|
}
|
|
6784
|
-
var
|
|
6785
|
-
const Qs = /* @__PURE__ */ Wa(
|
|
6791
|
+
var Zs = Ks();
|
|
6792
|
+
const Qs = /* @__PURE__ */ Wa(Zs);
|
|
6786
6793
|
var en = Object.getOwnPropertyDescriptor, tn = (a, e, t, i) => {
|
|
6787
6794
|
for (var s = i > 1 ? void 0 : i ? en(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
6788
6795
|
(o = a[r]) && (s = o(s) || s);
|
|
6789
6796
|
return s;
|
|
6790
6797
|
};
|
|
6791
|
-
let
|
|
6798
|
+
let Zt = class extends Fe {
|
|
6792
6799
|
render() {
|
|
6793
6800
|
return u` <div class="cb-thinking"><span></span><span></span><span></span></div>`;
|
|
6794
6801
|
}
|
|
6795
6802
|
};
|
|
6796
|
-
|
|
6803
|
+
Zt.styles = J`
|
|
6797
6804
|
.cb-thinking {
|
|
6798
6805
|
text-align: center;
|
|
6799
6806
|
}
|
|
@@ -6831,9 +6838,9 @@ Kt.styles = J`
|
|
|
6831
6838
|
}
|
|
6832
6839
|
}
|
|
6833
6840
|
`;
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
],
|
|
6841
|
+
Zt = tn([
|
|
6842
|
+
K("cb-thinking")
|
|
6843
|
+
], Zt);
|
|
6837
6844
|
var an = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, ti = (a, e, t, i) => {
|
|
6838
6845
|
for (var s = i > 1 ? void 0 : i ? sn(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
6839
6846
|
(o = a[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
@@ -6877,7 +6884,7 @@ ti([
|
|
|
6877
6884
|
x({ type: Array })
|
|
6878
6885
|
], qt.prototype, "files", 2);
|
|
6879
6886
|
qt = ti([
|
|
6880
|
-
|
|
6887
|
+
K("cb-uploading")
|
|
6881
6888
|
], qt);
|
|
6882
6889
|
const nn = J`
|
|
6883
6890
|
${ke}
|
|
@@ -6957,7 +6964,7 @@ ca([
|
|
|
6957
6964
|
x({ type: Boolean })
|
|
6958
6965
|
], mt.prototype, "inverse", 2);
|
|
6959
6966
|
mt = ca([
|
|
6960
|
-
|
|
6967
|
+
K("cb-external-link")
|
|
6961
6968
|
], mt);
|
|
6962
6969
|
const cn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983l-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"/></svg>', ln = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173q.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38a.57.57 0 0 1-.238.241a.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181q.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084q0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592a1.1 1.1 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"/></svg>', dn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459q.609 0 1.005.234t.589.68q.195.445.196 1.075q0 .634-.196 1.084q-.197.451-.595.689q-.396.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562q.279 0 .484-.082a.8.8 0 0 0 .334-.252a1.1 1.1 0 0 0 .196-.422q.067-.252.067-.592a2.1 2.1 0 0 0-.117-.753a.9.9 0 0 0-.354-.454q-.238-.152-.61-.152"/></svg>', fn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823q.195.162.478.252q.284.091.665.091q.507 0 .859-.158q.354-.158.539-.44q.187-.284.187-.656q0-.336-.134-.56a1 1 0 0 0-.375-.357a2 2 0 0 0-.566-.21l-.621-.144a1 1 0 0 1-.404-.176a.37.37 0 0 1-.144-.299q0-.234.185-.384q.188-.152.512-.152q.214 0 .37.068a.6.6 0 0 1 .246.181a.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.2-.566a1.2 1.2 0 0 0-.5-.41a1.8 1.8 0 0 0-.78-.152q-.439 0-.776.15q-.337.149-.527.421q-.19.273-.19.639q0 .302.122.524q.124.223.352.367q.228.143.539.213l.618.144q.31.073.463.193a.39.39 0 0 1 .152.326a.5.5 0 0 1-.085.29a.56.56 0 0 1-.255.193q-.167.07-.413.07q-.175 0-.32-.04a.8.8 0 0 1-.248-.115a.58.58 0 0 1-.255-.384zM.806 13.693q0-.373.102-.633a.87.87 0 0 1 .302-.399a.8.8 0 0 1 .475-.137q.225 0 .398.097a.7.7 0 0 1 .272.26a.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964a1.4 1.4 0 0 0-.489-.272a1.8 1.8 0 0 0-.606-.097q-.534 0-.911.223q-.375.222-.572.632q-.195.41-.196.979v.498q0 .568.193.976q.197.407.572.626q.375.217.914.217q.439 0 .785-.164t.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.8.8 0 0 1-.118.363a.7.7 0 0 1-.272.25a.9.9 0 0 1-.401.087a.85.85 0 0 1-.478-.132a.83.83 0 0 1-.299-.392a1.7 1.7 0 0 1-.102-.627zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879z"/></svg>', hn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173q.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38a.57.57 0 0 1-.238.241a.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181q.185.183.185.522m2.817-1.333h-1.6v3.999h.791v-1.342h.803q.43 0 .732-.173q.305-.175.463-.474q.162-.302.161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38a.57.57 0 0 1-.238.241a.8.8 0 0 1-.375.082H4.15V12.48h.66q.327 0 .512.181q.185.183.185.522m2.767-.67v3.336H7.48v-3.337H6.346v-.662h3.065v.662z"/></svg>', bn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-7.839 9.166v.522q0 .384-.117.641a.86.86 0 0 1-.322.387a.9.9 0 0 1-.469.126a.9.9 0 0 1-.471-.126a.87.87 0 0 1-.32-.386a1.55 1.55 0 0 1-.117-.642v-.522q0-.386.117-.641a.87.87 0 0 1 .32-.387a.87.87 0 0 1 .471-.129q.264 0 .469.13a.86.86 0 0 1 .322.386q.117.255.117.641m.803.519v-.513q0-.565-.205-.972a1.46 1.46 0 0 0-.589-.63q-.381-.22-.917-.22q-.533 0-.92.22a1.44 1.44 0 0 0-.589.627q-.204.406-.205.975v.513q0 .563.205.973q.205.406.59.627q.386.216.92.216q.535 0 .916-.216q.383-.22.59-.627q.204-.41.204-.973M0 11.926v4h1.459q.603 0 .999-.238a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084q0-.63-.196-1.075a1.43 1.43 0 0 0-.59-.68q-.395-.234-1.004-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592a1.1 1.1 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.3 1.3 0 0 1-.483.082H.79V12.57Zm7.422.483a1.7 1.7 0 0 0-.103.633v.495q0 .369.103.627a.83.83 0 0 0 .298.393a.85.85 0 0 0 .478.131a.9.9 0 0 0 .401-.088a.7.7 0 0 0 .273-.248a.8.8 0 0 0 .117-.364h.765v.076a1.27 1.27 0 0 1-.226.674q-.205.29-.55.454a1.8 1.8 0 0 1-.786.164q-.54 0-.914-.216a1.4 1.4 0 0 1-.571-.627q-.194-.408-.194-.976v-.498q0-.568.197-.978q.195-.411.571-.633q.378-.223.911-.223q.328 0 .607.097q.28.093.489.272a1.33 1.33 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38a.7.7 0 0 0-.273-.261a.8.8 0 0 0-.398-.097a.8.8 0 0 0-.475.138a.87.87 0 0 0-.301.398"/></svg>', un = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-6.839 9.688v-.522a1.5 1.5 0 0 0-.117-.641a.86.86 0 0 0-.322-.387a.86.86 0 0 0-.469-.129a.87.87 0 0 0-.471.13a.87.87 0 0 0-.32.386a1.5 1.5 0 0 0-.117.641v.522q0 .384.117.641a.87.87 0 0 0 .32.387a.9.9 0 0 0 .471.126a.9.9 0 0 0 .469-.126a.86.86 0 0 0 .322-.386a1.55 1.55 0 0 0 .117-.642m.803-.516v.513q0 .563-.205.973a1.47 1.47 0 0 1-.589.627q-.381.216-.917.216a1.86 1.86 0 0 1-.92-.216a1.46 1.46 0 0 1-.589-.627a2.15 2.15 0 0 1-.205-.973v-.513q0-.569.205-.975q.205-.411.59-.627q.386-.22.92-.22q.535 0 .916.22q.383.219.59.63q.204.406.204.972M1 15.925v-3.999h1.459q.609 0 1.005.235q.396.233.589.68q.196.445.196 1.074q0 .634-.196 1.084q-.197.451-.595.689q-.396.237-.999.237zm1.354-3.354H1.79v2.707h.563q.277 0 .483-.082a.8.8 0 0 0 .334-.252q.132-.17.196-.422a2.3 2.3 0 0 0 .068-.592q0-.45-.118-.753a.9.9 0 0 0-.354-.454q-.237-.152-.61-.152Zm6.756 1.116q0-.373.103-.633a.87.87 0 0 1 .301-.398a.8.8 0 0 1 .475-.138q.225 0 .398.097a.7.7 0 0 1 .273.26a.85.85 0 0 1 .12.381h.765v-.073a1.33 1.33 0 0 0-.466-.964a1.4 1.4 0 0 0-.49-.272a1.8 1.8 0 0 0-.606-.097q-.534 0-.911.223q-.375.222-.571.633q-.197.41-.197.978v.498q0 .568.194.976q.195.406.571.627q.375.216.914.216q.44 0 .785-.164t.551-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.765a.8.8 0 0 1-.117.364a.7.7 0 0 1-.273.248a.9.9 0 0 1-.401.088a.85.85 0 0 1-.478-.131a.83.83 0 0 1-.298-.393a1.7 1.7 0 0 1-.103-.627zm5.092-1.76h.894l-1.275 2.006l1.254 1.992h-.908l-.85-1.415h-.035l-.852 1.415h-.862l1.24-2.015l-1.228-1.984h.932l.832 1.439h.035z"/></svg>';
|
|
6963
6970
|
var pn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, la = (a, e, t, i) => {
|
|
@@ -7011,7 +7018,7 @@ la([
|
|
|
7011
7018
|
x({ type: String })
|
|
7012
7019
|
], yt.prototype, "url", 2);
|
|
7013
7020
|
yt = la([
|
|
7014
|
-
|
|
7021
|
+
K("cb-file")
|
|
7015
7022
|
], yt);
|
|
7016
7023
|
const mn = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/></g></svg>', Ra = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"/></svg>', ai = '<svg viewBox="0 0 24 24" width="1.2em" height="1.2em" ><path fill="currentColor" d="M5 9v12H1V9zm4 12a2 2 0 0 1-2-2V9c0-.55.22-1.05.59-1.41L14.17 1l1.06 1.06c.27.27.44.64.44 1.05l-.03.32L14.69 8H21a2 2 0 0 1 2 2v2c0 .26-.05.5-.14.73l-3.02 7.05C19.54 20.5 18.83 21 18 21zm0-2h9.03L21 12v-2h-8.79l1.13-5.32L9 9.03z"/></svg>', ii = '<svg viewBox="0 0 24 24" width="1.2em" height="1.2em" ><path fill="currentColor" d="M19 15V3h4v12zM15 3a2 2 0 0 1 2 2v10c0 .55-.22 1.05-.59 1.41L9.83 23l-1.06-1.06c-.27-.27-.44-.64-.44-1.06l.03-.31l.95-4.57H3a2 2 0 0 1-2-2v-2c0-.26.05-.5.14-.73l3.02-7.05C4.46 3.5 5.17 3 6 3zm0 2H5.97L3 12v2h8.78l-1.13 5.32L15 14.97z"/></svg>', yn = J`
|
|
7017
7024
|
pre code.hljs {
|
|
@@ -8776,7 +8783,7 @@ nt([
|
|
|
8776
8783
|
Na("img")
|
|
8777
8784
|
], De.prototype, "glightboxImages", 2);
|
|
8778
8785
|
De = nt([
|
|
8779
|
-
|
|
8786
|
+
K("cb-message")
|
|
8780
8787
|
], De);
|
|
8781
8788
|
var _n = Object.defineProperty, Sn = Object.getOwnPropertyDescriptor, Te = (a, e, t, i) => {
|
|
8782
8789
|
for (var s = i > 1 ? void 0 : i ? Sn(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
@@ -9124,7 +9131,7 @@ Te([
|
|
|
9124
9131
|
na({ capture: !1, passive: !0 })
|
|
9125
9132
|
], ye.prototype, "invokeHubspotMeetingAction", 1);
|
|
9126
9133
|
ye = Te([
|
|
9127
|
-
|
|
9134
|
+
K("cb-message-list")
|
|
9128
9135
|
], ye);
|
|
9129
9136
|
const Cn = J`
|
|
9130
9137
|
${ke}
|
|
@@ -9316,7 +9323,7 @@ Ie([
|
|
|
9316
9323
|
xe("sl-textarea")
|
|
9317
9324
|
], ve.prototype, "inputElement", 2);
|
|
9318
9325
|
ve = Ie([
|
|
9319
|
-
|
|
9326
|
+
K("cb-user-input")
|
|
9320
9327
|
], ve);
|
|
9321
9328
|
const Tn = J`
|
|
9322
9329
|
${ke}
|
|
@@ -9596,7 +9603,7 @@ Ee([
|
|
|
9596
9603
|
xe("sl-textarea")
|
|
9597
9604
|
], we.prototype, "inputElement", 2);
|
|
9598
9605
|
we = Ee([
|
|
9599
|
-
|
|
9606
|
+
K("cb-user-input-mm")
|
|
9600
9607
|
], we);
|
|
9601
9608
|
const oi = '<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>', Ln = J`
|
|
9602
9609
|
${ke}
|
|
@@ -9693,7 +9700,7 @@ Nt([
|
|
|
9693
9700
|
x({ type: Number })
|
|
9694
9701
|
], ct.prototype, "zindex", 2);
|
|
9695
9702
|
ct = Nt([
|
|
9696
|
-
|
|
9703
|
+
K("cb-dialog")
|
|
9697
9704
|
], ct);
|
|
9698
9705
|
var On = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, ci = (a, e, t, i) => {
|
|
9699
9706
|
for (var s = i > 1 ? void 0 : i ? Bn(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
@@ -9746,7 +9753,7 @@ ci([
|
|
|
9746
9753
|
x({ type: Boolean })
|
|
9747
9754
|
], Dt.prototype, "open", 2);
|
|
9748
9755
|
Dt = ci([
|
|
9749
|
-
|
|
9756
|
+
K("cb-clear-message-dialog")
|
|
9750
9757
|
], Dt);
|
|
9751
9758
|
const qn = J`
|
|
9752
9759
|
:host {
|
|
@@ -9949,7 +9956,7 @@ dt([
|
|
|
9949
9956
|
x({ type: Boolean })
|
|
9950
9957
|
], Xe.prototype, "customRequest", 2);
|
|
9951
9958
|
Xe = dt([
|
|
9952
|
-
|
|
9959
|
+
K("cb-setting")
|
|
9953
9960
|
], Xe);
|
|
9954
9961
|
const jn = J`
|
|
9955
9962
|
${ke}
|
|
@@ -9977,7 +9984,7 @@ const jn = J`
|
|
|
9977
9984
|
|
|
9978
9985
|
transition: all 0.3s ease-in-out;
|
|
9979
9986
|
|
|
9980
|
-
z-index:
|
|
9987
|
+
z-index: 99999;
|
|
9981
9988
|
}
|
|
9982
9989
|
|
|
9983
9990
|
.cb-anchor-icon {
|
|
@@ -10137,7 +10144,7 @@ li([
|
|
|
10137
10144
|
x({ type: Boolean })
|
|
10138
10145
|
], Ft.prototype, "open", 2);
|
|
10139
10146
|
Ft = li([
|
|
10140
|
-
|
|
10147
|
+
K("cb-anchor")
|
|
10141
10148
|
], Ft);
|
|
10142
10149
|
const Nn = J`
|
|
10143
10150
|
${ke}
|
|
@@ -10183,9 +10190,9 @@ di([
|
|
|
10183
10190
|
x({ type: String })
|
|
10184
10191
|
], jt.prototype, "status", 2);
|
|
10185
10192
|
jt = di([
|
|
10186
|
-
|
|
10193
|
+
K("cb-status-icon")
|
|
10187
10194
|
], jt);
|
|
10188
|
-
var Jn = Object.getOwnPropertyDescriptor,
|
|
10195
|
+
var Jn = Object.getOwnPropertyDescriptor, Kn = (a, e, t, i) => {
|
|
10189
10196
|
for (var s = i > 1 ? void 0 : i ? Jn(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
10190
10197
|
(o = a[r]) && (s = o(s) || s);
|
|
10191
10198
|
return s;
|
|
@@ -10207,10 +10214,10 @@ let ea = class extends re {
|
|
|
10207
10214
|
}
|
|
10208
10215
|
};
|
|
10209
10216
|
ea.styles = Nn;
|
|
10210
|
-
ea =
|
|
10211
|
-
|
|
10217
|
+
ea = Kn([
|
|
10218
|
+
K("cb-auth-alert")
|
|
10212
10219
|
], ea);
|
|
10213
|
-
const
|
|
10220
|
+
const Zn = J`
|
|
10214
10221
|
sl-dialog::part(base) {
|
|
10215
10222
|
z-index: 1000;
|
|
10216
10223
|
}
|
|
@@ -10363,7 +10370,7 @@ let Ye = class extends re {
|
|
|
10363
10370
|
this._comments.value = "", await b.submitFeedback(a, e, t);
|
|
10364
10371
|
}
|
|
10365
10372
|
};
|
|
10366
|
-
Ye.styles =
|
|
10373
|
+
Ye.styles = Zn;
|
|
10367
10374
|
ft([
|
|
10368
10375
|
x({ type: Number })
|
|
10369
10376
|
], Ye.prototype, "zindex", 2);
|
|
@@ -10380,7 +10387,7 @@ ft([
|
|
|
10380
10387
|
xe("#cb-feedback-email-el")
|
|
10381
10388
|
], Ye.prototype, "_email", 2);
|
|
10382
10389
|
Ye = ft([
|
|
10383
|
-
|
|
10390
|
+
K("cb-dialog-feedback")
|
|
10384
10391
|
], Ye);
|
|
10385
10392
|
const ar = J`
|
|
10386
10393
|
${ke}
|
|
@@ -11034,7 +11041,7 @@ let ta = class extends re {
|
|
|
11034
11041
|
};
|
|
11035
11042
|
ta.styles = ar;
|
|
11036
11043
|
ta = cr([
|
|
11037
|
-
|
|
11044
|
+
K("cb-audio-controls")
|
|
11038
11045
|
], ta);
|
|
11039
11046
|
class aa extends Error {
|
|
11040
11047
|
response;
|
|
@@ -11568,16 +11575,16 @@ async function Rr(a, e) {
|
|
|
11568
11575
|
}).text()
|
|
11569
11576
|
);
|
|
11570
11577
|
}
|
|
11571
|
-
var zr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor,
|
|
11578
|
+
var zr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, V = (a, e, t, i) => {
|
|
11572
11579
|
for (var s = i > 1 ? void 0 : i ? Or(e, t) : e, r = a.length - 1, o; r >= 0; r--)
|
|
11573
11580
|
(o = a[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
11574
11581
|
return i && s && zr(e, t, s), s;
|
|
11575
11582
|
};
|
|
11576
11583
|
const Be = Je.noConflict();
|
|
11577
11584
|
Be.setLevel("info");
|
|
11578
|
-
let
|
|
11585
|
+
let F = class extends re {
|
|
11579
11586
|
constructor() {
|
|
11580
|
-
super(...arguments), this.store = new it(this, b), 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 203 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11587
|
+
super(...arguments), this.store = new it(this, b), this.displayLicense = !1, this.name = "ChatBot", this.orgId = "", this.botId = "", this.version = "current", this.url = "ws://localhost:3070", this.logoUrl = "", this.logoSvg = `<svg width="24" height="24" viewBox="0 0 203 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11581
11588
|
<path d="M100.438 0C155.665 0 200.438 44.7723 200.438 100C200.438 155.228 155.665 200 100.438 200C45.2098 200 0.4375 155.228 0.4375 100C0.4375 44.7723 45.2098 0 100.438 0ZM130.093 60.6063C120.409 60.6063 115.205 61.458 109.344 65.0325C100.122 70.6592 95.629 80.1958 94.2273 93.877C94.1468 94.5544 93.8048 97.2571 93.4091 100.349C93.3152 101.06 93.2281 101.771 93.1409 102.455C92.7318 105.573 92.3093 108.739 92.0142 110.408C90.8808 117.041 89.2914 123.761 83.8927 126.759C83.6915 126.873 83.4702 126.967 83.2556 127.067C78.6013 129.093 72.2905 128.898 72.2905 128.898C72.2905 128.898 69.1988 128.885 69.1787 128.885C69.172 128.885 69.1921 128.885 69.1921 128.898L68.1057 143.632C87.7824 143.666 93.0537 139.213 93.0537 139.213C102.275 133.586 106.768 124.049 108.17 110.368C108.251 109.677 108.593 106.894 109.002 103.735C109.096 103.004 109.196 102.273 109.283 101.576C109.679 98.5246 110.095 95.4798 110.383 93.8435C111.517 87.2108 113.106 80.4842 118.505 77.4931C118.706 77.3791 118.921 77.2852 119.135 77.1846C123.756 75.1727 130.107 75.3471 130.107 75.3471C132.494 75.3269 133.219 75.4007 133.286 75.4074L134.292 60.6264C132.783 60.6264 130.107 60.6264 130.107 60.6264L130.093 60.6063Z" fill="#010101" style="fill:#010101;fill:color(display-p3 0.0039 0.0039 0.0039);fill-opacity:1;"/>
|
|
11582
11589
|
</svg>`, this.closeSvg = '<svg viewBox="0 0 16 16" width="1.4em" height="1.4em"><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"></path></svg>', this.logoSvgGradient = `<svg width="28" height="28" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11583
11590
|
<g clip-path="url(#clip0_830_884)">
|
|
@@ -11731,7 +11738,7 @@ let H = class extends re {
|
|
|
11731
11738
|
_initSetting() {
|
|
11732
11739
|
Be.info("_initSetting");
|
|
11733
11740
|
const a = b.setting;
|
|
11734
|
-
a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.closeSvg = this.closeSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, a.infoIconSvg = this.infoIconSvg, a.anchorOpenSvg = this.anchorOpenSvg, a.anchorCloseSvg = this.anchorCloseSvg, a.sendIconSvg = this.sendIconSvg, a.attachIconSvg = this.attachIconSvg, b.setSetting(a);
|
|
11741
|
+
a.orgId = this.orgId, a.botId = this.botId, a.url = this.url, a.version = this.version || "current", a.logoUrl = this.logoUrl, a.logoSvg = this.logoSvg, a.closeSvg = this.closeSvg, a.popupLogoSvg = this.popupLogoSvg, a.popupLogoUrl = this.popupLogoUrl, a.botIconSvg = this.botIconSvg, a.userIconSvg = this.userIconSvg, a.systemIconSvg = this.systemIconSvg, a.agentIconSvg = this.agentIconSvg, a.infoIconSvg = this.infoIconSvg, a.anchorOpenSvg = this.anchorOpenSvg, a.anchorCloseSvg = this.anchorCloseSvg, a.sendIconSvg = this.sendIconSvg, a.attachIconSvg = this.attachIconSvg, b.setSetting(a);
|
|
11735
11742
|
let e = {};
|
|
11736
11743
|
try {
|
|
11737
11744
|
e = JSON.parse(this.prefilledFormFields);
|
|
@@ -11893,100 +11900,103 @@ let H = class extends re {
|
|
|
11893
11900
|
this._messageList?.scrollToBottom();
|
|
11894
11901
|
}
|
|
11895
11902
|
};
|
|
11896
|
-
|
|
11897
|
-
|
|
11903
|
+
F.styles = [Xi, Za];
|
|
11904
|
+
V([
|
|
11898
11905
|
x({ type: Boolean, attribute: "display-license" })
|
|
11899
|
-
],
|
|
11900
|
-
|
|
11906
|
+
], F.prototype, "displayLicense", 2);
|
|
11907
|
+
V([
|
|
11901
11908
|
x({ type: String, attribute: "name" })
|
|
11902
|
-
],
|
|
11903
|
-
|
|
11909
|
+
], F.prototype, "name", 2);
|
|
11910
|
+
V([
|
|
11904
11911
|
x({ type: String, attribute: "org-id" })
|
|
11905
|
-
],
|
|
11906
|
-
|
|
11912
|
+
], F.prototype, "orgId", 2);
|
|
11913
|
+
V([
|
|
11907
11914
|
x({ type: String, attribute: "bot-id" })
|
|
11908
|
-
],
|
|
11909
|
-
|
|
11915
|
+
], F.prototype, "botId", 2);
|
|
11916
|
+
V([
|
|
11917
|
+
x({ type: String, attribute: "version" })
|
|
11918
|
+
], F.prototype, "version", 2);
|
|
11919
|
+
V([
|
|
11910
11920
|
x({ type: String, attribute: "url" })
|
|
11911
|
-
],
|
|
11912
|
-
|
|
11921
|
+
], F.prototype, "url", 2);
|
|
11922
|
+
V([
|
|
11913
11923
|
x({ type: String, attribute: "logo-url" })
|
|
11914
|
-
],
|
|
11915
|
-
|
|
11924
|
+
], F.prototype, "logoUrl", 2);
|
|
11925
|
+
V([
|
|
11916
11926
|
x({ type: String, attribute: "logo-svg" })
|
|
11917
|
-
],
|
|
11918
|
-
|
|
11927
|
+
], F.prototype, "logoSvg", 2);
|
|
11928
|
+
V([
|
|
11919
11929
|
x({ type: String, attribute: "close-svg" })
|
|
11920
|
-
],
|
|
11921
|
-
|
|
11930
|
+
], F.prototype, "closeSvg", 2);
|
|
11931
|
+
V([
|
|
11922
11932
|
x({ type: String, attribute: "popup-logo-svg" })
|
|
11923
|
-
],
|
|
11924
|
-
|
|
11933
|
+
], F.prototype, "popupLogoSvg", 2);
|
|
11934
|
+
V([
|
|
11925
11935
|
x({ type: String, attribute: "popup-logo-url" })
|
|
11926
|
-
],
|
|
11927
|
-
|
|
11936
|
+
], F.prototype, "popupLogoUrl", 2);
|
|
11937
|
+
V([
|
|
11928
11938
|
x({ type: String, attribute: "bot-icon-svg" })
|
|
11929
|
-
],
|
|
11930
|
-
|
|
11939
|
+
], F.prototype, "botIconSvg", 2);
|
|
11940
|
+
V([
|
|
11931
11941
|
x({ type: String, attribute: "user-icon-svg" })
|
|
11932
|
-
],
|
|
11933
|
-
|
|
11942
|
+
], F.prototype, "userIconSvg", 2);
|
|
11943
|
+
V([
|
|
11934
11944
|
x({ type: String, attribute: "system-icon-svg" })
|
|
11935
|
-
],
|
|
11936
|
-
|
|
11945
|
+
], F.prototype, "systemIconSvg", 2);
|
|
11946
|
+
V([
|
|
11937
11947
|
x({ type: String, attribute: "agent-icon-svg" })
|
|
11938
|
-
],
|
|
11939
|
-
|
|
11948
|
+
], F.prototype, "agentIconSvg", 2);
|
|
11949
|
+
V([
|
|
11940
11950
|
x({ type: String, attribute: "info-icon-svg" })
|
|
11941
|
-
],
|
|
11942
|
-
|
|
11951
|
+
], F.prototype, "infoIconSvg", 2);
|
|
11952
|
+
V([
|
|
11943
11953
|
x({ type: String, attribute: "anchor-open-svg" })
|
|
11944
|
-
],
|
|
11945
|
-
|
|
11954
|
+
], F.prototype, "anchorOpenSvg", 2);
|
|
11955
|
+
V([
|
|
11946
11956
|
x({ type: String, attribute: "anchor-close-svg" })
|
|
11947
|
-
],
|
|
11948
|
-
|
|
11957
|
+
], F.prototype, "anchorCloseSvg", 2);
|
|
11958
|
+
V([
|
|
11949
11959
|
x({ type: String, attribute: "send-icon-svg" })
|
|
11950
|
-
],
|
|
11951
|
-
|
|
11960
|
+
], F.prototype, "sendIconSvg", 2);
|
|
11961
|
+
V([
|
|
11952
11962
|
x({ type: String, attribute: "attach-icon-svg" })
|
|
11953
|
-
],
|
|
11954
|
-
|
|
11963
|
+
], F.prototype, "attachIconSvg", 2);
|
|
11964
|
+
V([
|
|
11955
11965
|
x({ type: Boolean, attribute: "stream" })
|
|
11956
|
-
],
|
|
11957
|
-
|
|
11966
|
+
], F.prototype, "stream", 2);
|
|
11967
|
+
V([
|
|
11958
11968
|
x({ type: Boolean, attribute: "custom-request" })
|
|
11959
|
-
],
|
|
11960
|
-
|
|
11969
|
+
], F.prototype, "customRequest", 2);
|
|
11970
|
+
V([
|
|
11961
11971
|
x({ type: Boolean, attribute: "enable-file-upload" })
|
|
11962
|
-
],
|
|
11963
|
-
|
|
11972
|
+
], F.prototype, "enableFileUpload", 2);
|
|
11973
|
+
V([
|
|
11964
11974
|
x({ type: String, attribute: "upload-file-url" })
|
|
11965
|
-
],
|
|
11966
|
-
|
|
11975
|
+
], F.prototype, "uploadFileUrl", 2);
|
|
11976
|
+
V([
|
|
11967
11977
|
x({ type: Boolean, attribute: "open" })
|
|
11968
|
-
],
|
|
11969
|
-
|
|
11978
|
+
], F.prototype, "open", 2);
|
|
11979
|
+
V([
|
|
11970
11980
|
x({ type: Boolean, attribute: "always-open" })
|
|
11971
|
-
],
|
|
11972
|
-
|
|
11981
|
+
], F.prototype, "alwaysOpen", 2);
|
|
11982
|
+
V([
|
|
11973
11983
|
x({ type: String, attribute: "prefilled-form-fields" })
|
|
11974
|
-
],
|
|
11975
|
-
|
|
11984
|
+
], F.prototype, "prefilledFormFields", 2);
|
|
11985
|
+
V([
|
|
11976
11986
|
x({ type: Boolean })
|
|
11977
|
-
],
|
|
11978
|
-
|
|
11987
|
+
], F.prototype, "loading", 2);
|
|
11988
|
+
V([
|
|
11979
11989
|
x({ type: Boolean })
|
|
11980
|
-
],
|
|
11981
|
-
|
|
11990
|
+
], F.prototype, "showSetting", 2);
|
|
11991
|
+
V([
|
|
11982
11992
|
x({ type: Boolean })
|
|
11983
|
-
],
|
|
11984
|
-
|
|
11993
|
+
], F.prototype, "showAuthAlert", 2);
|
|
11994
|
+
V([
|
|
11985
11995
|
xe("cb-message-list")
|
|
11986
|
-
],
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
],
|
|
11996
|
+
], F.prototype, "_messageList", 2);
|
|
11997
|
+
F = V([
|
|
11998
|
+
K("enegelai-bot")
|
|
11999
|
+
], F);
|
|
11990
12000
|
export {
|
|
11991
|
-
|
|
12001
|
+
F as default
|
|
11992
12002
|
};
|