@inploi/plugin-chatbot 8.0.0 → 9.0.0
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/cdn/index.js +3 -3
- package/dist/chatbot-body-3f51cdbc.cjs +1 -0
- package/dist/{chatbot-body-9e11b859.js → chatbot-body-a533deae.js} +6 -6
- package/dist/components/chatbot-body.d.ts +3 -3
- package/dist/components/chatbot.d.ts +3 -3
- package/dist/{index-63ff7e92.js → index-03247696.js} +64 -64
- package/dist/{index-cf6d5344.cjs → index-db52f862.cjs} +3 -3
- package/dist/interpreter.d.ts +3 -3
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +4 -4
- package/dist/chatbot-body-a3863b40.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { endpoint as Yi, typed as eo, createPlugin as io,
|
|
1
|
+
import { endpoint as Yi, typed as eo, createPlugin as io, createTalentBankClient as ao } from "@inploi/sdk";
|
|
2
2
|
var zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function oo(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var ro = Array.isArray,
|
|
6
|
+
var ro = Array.isArray, Be = ro, no = typeof zt == "object" && zt && zt.Object === Object && zt, so = no, co = so, lo = typeof self == "object" && self && self.Object === Object && self, uo = co || lo || Function("return this")(), Le = uo, po = Le, ho = po.Symbol, Re = ho, ri = Re, qi = Object.prototype, fo = qi.hasOwnProperty, wo = qi.toString, xt = ri ? ri.toStringTag : void 0;
|
|
7
7
|
function vo(t) {
|
|
8
8
|
var e = fo.call(t, xt), i = t[xt];
|
|
9
9
|
try {
|
|
@@ -30,7 +30,7 @@ var To = Eo, Po = Ji, Oo = To, jo = "[object Symbol]";
|
|
|
30
30
|
function Io(t) {
|
|
31
31
|
return typeof t == "symbol" || Oo(t) && Po(t) == jo;
|
|
32
32
|
}
|
|
33
|
-
var Ue = Io, Do =
|
|
33
|
+
var Ue = Io, Do = Be, zo = Ue, No = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mo = /^\w*$/;
|
|
34
34
|
function Ao(t, e) {
|
|
35
35
|
if (Do(t))
|
|
36
36
|
return !1;
|
|
@@ -42,14 +42,14 @@ function Ho(t) {
|
|
|
42
42
|
var e = typeof t;
|
|
43
43
|
return t != null && (e == "object" || e == "function");
|
|
44
44
|
}
|
|
45
|
-
var Xi = Ho,
|
|
45
|
+
var Xi = Ho, Bo = Ji, Lo = Xi, Ro = "[object AsyncFunction]", Uo = "[object Function]", Vo = "[object GeneratorFunction]", Ko = "[object Proxy]";
|
|
46
46
|
function Wo(t) {
|
|
47
|
-
if (!
|
|
47
|
+
if (!Lo(t))
|
|
48
48
|
return !1;
|
|
49
|
-
var e =
|
|
49
|
+
var e = Bo(t);
|
|
50
50
|
return e == Uo || e == Vo || e == Ro || e == Ko;
|
|
51
51
|
}
|
|
52
|
-
var Go = Wo, Yo =
|
|
52
|
+
var Go = Wo, Yo = Le, qo = Yo["__core-js_shared__"], Jo = qo, re = Jo, ci = function() {
|
|
53
53
|
var t = /[^.]+$/.exec(re && re.keys && re.keys.IE_PROTO || "");
|
|
54
54
|
return t ? "Symbol(src)_1." + t : "";
|
|
55
55
|
}();
|
|
@@ -112,11 +112,11 @@ function Mr(t) {
|
|
|
112
112
|
return Dr ? e[t] !== void 0 : Nr.call(e, t);
|
|
113
113
|
}
|
|
114
114
|
var Ar = Mr, Fr = Xt, Hr = "__lodash_hash_undefined__";
|
|
115
|
-
function
|
|
115
|
+
function Br(t, e) {
|
|
116
116
|
var i = this.__data__;
|
|
117
117
|
return this.size += this.has(t) ? 0 : 1, i[t] = Fr && e === void 0 ? Hr : e, this;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
119
|
+
var Lr = Br, Rr = $r, Ur = Cr, Vr = Ir, Kr = Ar, Wr = Lr;
|
|
120
120
|
function wt(t) {
|
|
121
121
|
var e = -1, i = t == null ? 0 : t.length;
|
|
122
122
|
for (this.clear(); ++e < i; ) {
|
|
@@ -179,7 +179,7 @@ vt.prototype.delete = vn;
|
|
|
179
179
|
vt.prototype.get = gn;
|
|
180
180
|
vt.prototype.has = bn;
|
|
181
181
|
vt.prototype.set = _n;
|
|
182
|
-
var mn = vt, yn = Zi, xn =
|
|
182
|
+
var mn = vt, yn = Zi, xn = Le, kn = yn(xn, "Map"), $n = kn, di = Gr, Sn = mn, Cn = $n;
|
|
183
183
|
function En() {
|
|
184
184
|
this.size = 0, this.__data__ = {
|
|
185
185
|
hash: new di(),
|
|
@@ -207,15 +207,15 @@ function An(t) {
|
|
|
207
207
|
return Mn(this, t).get(t);
|
|
208
208
|
}
|
|
209
209
|
var Fn = An, Hn = Qt;
|
|
210
|
-
function
|
|
210
|
+
function Bn(t) {
|
|
211
211
|
return Hn(this, t).has(t);
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var Ln = Bn, Rn = Qt;
|
|
214
214
|
function Un(t, e) {
|
|
215
215
|
var i = Rn(this, t), a = i.size;
|
|
216
216
|
return i.set(t, e), this.size += i.size == a ? 0 : 1, this;
|
|
217
217
|
}
|
|
218
|
-
var Vn = Un, Kn = Tn, Wn = Nn, Gn = Fn, Yn =
|
|
218
|
+
var Vn = Un, Kn = Tn, Wn = Nn, Gn = Fn, Yn = Ln, qn = Vn;
|
|
219
219
|
function gt(t) {
|
|
220
220
|
var e = -1, i = t == null ? 0 : t.length;
|
|
221
221
|
for (this.clear(); ++e < i; ) {
|
|
@@ -260,7 +260,7 @@ function cs(t, e) {
|
|
|
260
260
|
o[i] = e(t[i], i, t);
|
|
261
261
|
return o;
|
|
262
262
|
}
|
|
263
|
-
var ls = cs, ui = Re, ds = ls, us =
|
|
263
|
+
var ls = cs, ui = Re, ds = ls, us = Be, ps = Ue, hs = 1 / 0, pi = ui ? ui.prototype : void 0, hi = pi ? pi.toString : void 0;
|
|
264
264
|
function ta(t) {
|
|
265
265
|
if (typeof t == "string")
|
|
266
266
|
return t;
|
|
@@ -275,7 +275,7 @@ var fs = ta, ws = fs;
|
|
|
275
275
|
function vs(t) {
|
|
276
276
|
return t == null ? "" : ws(t);
|
|
277
277
|
}
|
|
278
|
-
var gs = vs, bs =
|
|
278
|
+
var gs = vs, bs = Be, _s = Fo, ms = ss, ys = gs;
|
|
279
279
|
function xs(t, e) {
|
|
280
280
|
return bs(t) ? t : _s(t, e) ? [t] : ms(ys(t));
|
|
281
281
|
}
|
|
@@ -361,10 +361,10 @@ function Vt() {
|
|
|
361
361
|
Vt.__r = 0;
|
|
362
362
|
}
|
|
363
363
|
function ca(t, e, i, a, o, r, n, s, l, d, u) {
|
|
364
|
-
var c, w, v, f, g, z, x, b, _, y, E = 0, P = a && a.__k || ra,
|
|
364
|
+
var c, w, v, f, g, z, x, b, _, y, E = 0, P = a && a.__k || ra, B = P.length, L = B, I = e.length;
|
|
365
365
|
for (i.__k = [], c = 0; c < I; c++)
|
|
366
|
-
(f = i.__k[c] = (f = e[c]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? Ct(null, f, null, null, f) : te(f) ? Ct(V, { children: f }, null, null, null) : f.__b > 0 ? Ct(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null && (f.__ = i, f.__b = i.__b + 1, (b = Fs(f, P, x = c + E,
|
|
367
|
-
for (i.__e = z, c =
|
|
366
|
+
(f = i.__k[c] = (f = e[c]) == null || typeof f == "boolean" || typeof f == "function" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? Ct(null, f, null, null, f) : te(f) ? Ct(V, { children: f }, null, null, null) : f.__b > 0 ? Ct(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null && (f.__ = i, f.__b = i.__b + 1, (b = Fs(f, P, x = c + E, L)) === -1 ? v = pt : (v = P[b] || pt, P[b] = void 0, L--), Ke(t, f, v, o, r, n, s, l, d, u), g = f.__e, (w = f.ref) && v.ref != w && (v.ref && We(v.ref, null, f), u.push(w, f.__c || g, f)), g != null && (z == null && (z = g), y = !(_ = v === pt || v.__v === null) && b === x, _ ? b == -1 && E-- : b !== x && (b === x + 1 ? (E++, y = !0) : b > x ? L > I - x ? (E += b - x, y = !0) : E-- : E = b < x && b == x - 1 ? b - x : 0), x = c + E, y = y || b == c && !_, typeof f.type != "function" || b === x && v.__k !== f.__k ? typeof f.type == "function" || y ? f.__d !== void 0 ? (l = f.__d, f.__d = void 0) : l = g.nextSibling : l = da(t, g, l) : l = la(f, l, t), typeof i.type == "function" && (i.__d = l)));
|
|
367
|
+
for (i.__e = z, c = B; c--; )
|
|
368
368
|
P[c] != null && (typeof i.type == "function" && P[c].__e != null && P[c].__e == i.__d && (i.__d = P[c].__e.nextSibling), pa(P[c], P[c]));
|
|
369
369
|
}
|
|
370
370
|
function la(t, e, i) {
|
|
@@ -444,14 +444,14 @@ function gi(t) {
|
|
|
444
444
|
return this.l[t.type + !0](h.event ? h.event(t) : t);
|
|
445
445
|
}
|
|
446
446
|
function Ke(t, e, i, a, o, r, n, s, l, d) {
|
|
447
|
-
var u, c, w, v, f, g, z, x, b, _, y, E, P,
|
|
447
|
+
var u, c, w, v, f, g, z, x, b, _, y, E, P, B, L, I = e.type;
|
|
448
448
|
if (e.constructor !== void 0)
|
|
449
449
|
return null;
|
|
450
450
|
i.__h != null && (l = i.__h, s = e.__e = i.__e, e.__h = null, r = [s]), (u = h.__b) && u(e);
|
|
451
451
|
try {
|
|
452
452
|
t:
|
|
453
453
|
if (typeof I == "function") {
|
|
454
|
-
if (x = e.props, b = (u = I.contextType) && a[u.__c], _ = u ? b ? b.props.value : u.__ : a, i.__c ? z = (c = e.__c = i.__c).__ = c.__E : ("prototype" in I && I.prototype.render ? e.__c = c = new I(x, _) : (e.__c = c = new H(x, _), c.constructor = I, c.render =
|
|
454
|
+
if (x = e.props, b = (u = I.contextType) && a[u.__c], _ = u ? b ? b.props.value : u.__ : a, i.__c ? z = (c = e.__c = i.__c).__ = c.__E : ("prototype" in I && I.prototype.render ? e.__c = c = new I(x, _) : (e.__c = c = new H(x, _), c.constructor = I, c.render = Ls), b && b.sub(c), c.props = x, c.state || (c.state = {}), c.context = _, c.__n = a, w = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), I.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = W({}, c.__s)), W(c.__s, I.getDerivedStateFromProps(x, c.__s))), v = c.props, f = c.state, c.__v = e, w)
|
|
455
455
|
I.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
456
456
|
else {
|
|
457
457
|
if (I.getDerivedStateFromProps == null && x !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(x, _), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(x, c.__s, _) === !1 || e.__v === i.__v)) {
|
|
@@ -467,16 +467,16 @@ function Ke(t, e, i, a, o, r, n, s, l, d) {
|
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
if (c.context = _, c.props = x, c.__P = t, c.__e = !1, E = h.__r, P = 0, "prototype" in I && I.prototype.render) {
|
|
470
|
-
for (c.state = c.__s, c.__d = !1, E && E(e), u = c.render(c.props, c.state, c.context),
|
|
471
|
-
c.__h.push(c._sb[
|
|
470
|
+
for (c.state = c.__s, c.__d = !1, E && E(e), u = c.render(c.props, c.state, c.context), B = 0; B < c._sb.length; B++)
|
|
471
|
+
c.__h.push(c._sb[B]);
|
|
472
472
|
c._sb = [];
|
|
473
473
|
} else
|
|
474
474
|
do
|
|
475
475
|
c.__d = !1, E && E(e), u = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
476
476
|
while (c.__d && ++P < 25);
|
|
477
|
-
c.state = c.__s, c.getChildContext != null && (a = W(W({}, a), c.getChildContext())), w || c.getSnapshotBeforeUpdate == null || (g = c.getSnapshotBeforeUpdate(v, f)), ca(t, te(
|
|
477
|
+
c.state = c.__s, c.getChildContext != null && (a = W(W({}, a), c.getChildContext())), w || c.getSnapshotBeforeUpdate == null || (g = c.getSnapshotBeforeUpdate(v, f)), ca(t, te(L = u != null && u.type === V && u.key == null ? u.props.children : u) ? L : [L], e, i, a, o, r, n, s, l, d), c.base = e.__e, e.__h = null, c.__h.length && n.push(c), z && (c.__E = c.__ = null);
|
|
478
478
|
} else
|
|
479
|
-
r == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e =
|
|
479
|
+
r == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = Bs(i.__e, e, i, a, o, r, n, l, d);
|
|
480
480
|
(u = h.diffed) && u(e);
|
|
481
481
|
} catch (Dt) {
|
|
482
482
|
e.__v = null, (l || r != null) && (e.__e = s, e.__h = !!l, r[r.indexOf(s)] = null), h.__e(Dt, e, i);
|
|
@@ -495,7 +495,7 @@ function ua(t, e, i) {
|
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Bs(t, e, i, a, o, r, n, s, l) {
|
|
499
499
|
var d, u, c, w = i.props, v = e.props, f = e.type, g = 0;
|
|
500
500
|
if (f === "svg" && (o = !0), r != null) {
|
|
501
501
|
for (; g < r.length; g++)
|
|
@@ -550,7 +550,7 @@ function pa(t, e, i) {
|
|
|
550
550
|
a[o] && pa(a[o], e, i || typeof t.type != "function");
|
|
551
551
|
i || t.__e == null || na(t.__e), t.__ = t.__e = t.__d = void 0;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Ls(t, e, i) {
|
|
554
554
|
return this.constructor(t, i);
|
|
555
555
|
}
|
|
556
556
|
function st(t, e, i) {
|
|
@@ -1396,7 +1396,7 @@ class Gt {
|
|
|
1396
1396
|
function Hc(t) {
|
|
1397
1397
|
throw new Fc(t);
|
|
1398
1398
|
}
|
|
1399
|
-
var
|
|
1399
|
+
var Bc = ["other", "few", "many", "two", "one", "zero"], Mi = ({
|
|
1400
1400
|
terms: t,
|
|
1401
1401
|
overrides: e,
|
|
1402
1402
|
locale: i
|
|
@@ -1415,7 +1415,7 @@ var Lc = ["other", "few", "many", "two", "one", "zero"], Mi = ({
|
|
|
1415
1415
|
throw new Error(`Missing count for translation key “${r.toString()}”`);
|
|
1416
1416
|
let l = a.select(n.count);
|
|
1417
1417
|
if (!(l in s)) {
|
|
1418
|
-
const d =
|
|
1418
|
+
const d = Bc.find((u) => u in s);
|
|
1419
1419
|
if (!d)
|
|
1420
1420
|
throw new Error(`Missing plural rule for translation key “${r.toString()}”`);
|
|
1421
1421
|
l = d;
|
|
@@ -1430,12 +1430,12 @@ var Lc = ["other", "few", "many", "two", "one", "zero"], Mi = ({
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
return o;
|
|
1433
|
-
},
|
|
1433
|
+
}, Lc = 0;
|
|
1434
1434
|
function p(t, e, i, a, o, r) {
|
|
1435
1435
|
var n, s, l = {};
|
|
1436
1436
|
for (s in e)
|
|
1437
1437
|
s == "ref" ? n = e[s] : l[s] = e[s];
|
|
1438
|
-
var d = { type: t, props: l, key: i, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --
|
|
1438
|
+
var d = { type: t, props: l, key: i, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Lc, __source: o, __self: r };
|
|
1439
1439
|
if (typeof t == "function" && (n = t.defaultProps))
|
|
1440
1440
|
for (s in n)
|
|
1441
1441
|
l[s] === void 0 && (l[s] = n[s]);
|
|
@@ -1770,7 +1770,7 @@ function yt(t, e) {
|
|
|
1770
1770
|
function qt(t) {
|
|
1771
1771
|
ce && ce(), ce = t && t.S();
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Ba(t) {
|
|
1774
1774
|
var e = this, i = t.data, a = qc(i);
|
|
1775
1775
|
a.value = i;
|
|
1776
1776
|
var o = lt(function() {
|
|
@@ -1789,8 +1789,8 @@ function La(t) {
|
|
|
1789
1789
|
}, []);
|
|
1790
1790
|
return o.value;
|
|
1791
1791
|
}
|
|
1792
|
-
|
|
1793
|
-
Object.defineProperties(D.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
1792
|
+
Ba.displayName = "_st";
|
|
1793
|
+
Object.defineProperties(D.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ba }, props: { configurable: !0, get: function() {
|
|
1794
1794
|
return { data: this };
|
|
1795
1795
|
} }, __b: { configurable: !0, value: 1 } });
|
|
1796
1796
|
yt("__b", function(t, e) {
|
|
@@ -1958,7 +1958,7 @@ let Oe = {
|
|
|
1958
1958
|
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
|
1959
1959
|
}
|
|
1960
1960
|
};
|
|
1961
|
-
function
|
|
1961
|
+
function La(t) {
|
|
1962
1962
|
Oe = t(Oe);
|
|
1963
1963
|
}
|
|
1964
1964
|
function tl(t) {
|
|
@@ -1995,7 +1995,7 @@ function il(t, e, { blocked: i, upgrade: a, blocking: o, terminated: r } = {}) {
|
|
|
1995
1995
|
}), s;
|
|
1996
1996
|
}
|
|
1997
1997
|
const al = ["get", "getKey", "getAll", "getAllKeys", "count"], ol = ["put", "add", "delete", "clear"], de = /* @__PURE__ */ new Map();
|
|
1998
|
-
function
|
|
1998
|
+
function Bi(t, e) {
|
|
1999
1999
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
2000
2000
|
return;
|
|
2001
2001
|
if (de.get(e))
|
|
@@ -2016,17 +2016,17 @@ function Li(t, e) {
|
|
|
2016
2016
|
};
|
|
2017
2017
|
return de.set(e, r), r;
|
|
2018
2018
|
}
|
|
2019
|
-
|
|
2019
|
+
La((t) => ({
|
|
2020
2020
|
...t,
|
|
2021
|
-
get: (e, i, a) =>
|
|
2022
|
-
has: (e, i) => !!
|
|
2021
|
+
get: (e, i, a) => Bi(e, i) || t.get(e, i, a),
|
|
2022
|
+
has: (e, i) => !!Bi(e, i) || t.has(e, i)
|
|
2023
2023
|
}));
|
|
2024
|
-
const rl = ["continue", "continuePrimaryKey", "advance"],
|
|
2024
|
+
const rl = ["continue", "continuePrimaryKey", "advance"], Li = {}, Ie = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), nl = {
|
|
2025
2025
|
get(t, e) {
|
|
2026
2026
|
if (!rl.includes(e))
|
|
2027
2027
|
return t[e];
|
|
2028
|
-
let i =
|
|
2029
|
-
return i || (i =
|
|
2028
|
+
let i = Li[e];
|
|
2029
|
+
return i || (i = Li[e] = function(...a) {
|
|
2030
2030
|
Ie.set(this, Ra.get(this)[e](...a));
|
|
2031
2031
|
}), i;
|
|
2032
2032
|
}
|
|
@@ -2043,7 +2043,7 @@ async function* sl(...t) {
|
|
|
2043
2043
|
function Ri(t, e) {
|
|
2044
2044
|
return e === Symbol.asyncIterator && Te(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && Te(t, [IDBIndex, IDBObjectStore]);
|
|
2045
2045
|
}
|
|
2046
|
-
|
|
2046
|
+
La((t) => ({
|
|
2047
2047
|
...t,
|
|
2048
2048
|
get(e, i, a) {
|
|
2049
2049
|
return Ri(e, i) ? sl : t.get(e, i, a);
|
|
@@ -2061,12 +2061,12 @@ const Ht = typeof indexedDB > "u" ? void 0 : il("inploi-chatbot", 3, {
|
|
|
2061
2061
|
t.createObjectStore("state");
|
|
2062
2062
|
}
|
|
2063
2063
|
});
|
|
2064
|
-
let
|
|
2064
|
+
let Bt, ue, kt;
|
|
2065
2065
|
const Ui = () => {
|
|
2066
|
-
if (!
|
|
2066
|
+
if (!Bt)
|
|
2067
2067
|
return kt;
|
|
2068
|
-
const t =
|
|
2069
|
-
|
|
2068
|
+
const t = Bt;
|
|
2069
|
+
Bt = void 0;
|
|
2070
2070
|
const e = Ua(t), i = Ht == null ? void 0 : Ht.then((a) => a.put("state", t.data, e)).finally(() => {
|
|
2071
2071
|
kt === i && (kt = void 0);
|
|
2072
2072
|
});
|
|
@@ -2082,7 +2082,7 @@ const Ui = () => {
|
|
|
2082
2082
|
return (o = await Ht) == null ? void 0 : o.get("state", a);
|
|
2083
2083
|
},
|
|
2084
2084
|
setStateData: (t) => {
|
|
2085
|
-
|
|
2085
|
+
Bt = t, clearTimeout(ue), ue = setTimeout(() => void Ui(), 1e3);
|
|
2086
2086
|
},
|
|
2087
2087
|
flushStateData: () => (clearTimeout(ue), Ui() ?? Promise.resolve())
|
|
2088
2088
|
}, nd = (t) => ie(t).with(dt.number.lte(1e3), () => `${Math.round(t)}KB`).with(dt.number.lt(1e3 * 10), () => `${(t / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(t / 1e3)}MB`), sd = (t) => {
|
|
@@ -2121,7 +2121,7 @@ const dd = (t) => typeof t == "string", cl = (t) => {
|
|
|
2121
2121
|
}, (e) => e).otherwise(() => {
|
|
2122
2122
|
throw new Error("invalid submitter");
|
|
2123
2123
|
})
|
|
2124
|
-
),
|
|
2124
|
+
), Lt = (t, e, i, a = 0) => {
|
|
2125
2125
|
if (!e.nextId)
|
|
2126
2126
|
return i(e.id, {
|
|
2127
2127
|
stepsMade: a,
|
|
@@ -2138,7 +2138,7 @@ const dd = (t) => typeof t == "string", cl = (t) => {
|
|
|
2138
2138
|
};
|
|
2139
2139
|
const r = e.type === "if-block" ? e.branchId : void 0, n = t.find((d) => d.id === r), s = e.type.includes("question") ? 1 : 0;
|
|
2140
2140
|
if (n) {
|
|
2141
|
-
const d = s + Math.max(
|
|
2141
|
+
const d = s + Math.max(Lt(t, o, i, a + s).remainingSteps, Lt(t, n, i, a + s).remainingSteps);
|
|
2142
2142
|
return i(e.id, {
|
|
2143
2143
|
stepsMade: a,
|
|
2144
2144
|
remainingSteps: d
|
|
@@ -2147,7 +2147,7 @@ const dd = (t) => typeof t == "string", cl = (t) => {
|
|
|
2147
2147
|
remainingSteps: d
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
|
-
const l = s +
|
|
2150
|
+
const l = s + Lt(t, o, i, a + s).remainingSteps;
|
|
2151
2151
|
return i(e.id, {
|
|
2152
2152
|
stepsMade: a,
|
|
2153
2153
|
remainingSteps: l
|
|
@@ -2157,7 +2157,7 @@ const dd = (t) => typeof t == "string", cl = (t) => {
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}, ul = (t) => {
|
|
2159
2159
|
const e = {}, i = t.find((a) => a.isHead);
|
|
2160
|
-
return i &&
|
|
2160
|
+
return i && Lt(t, i, (a, o) => {
|
|
2161
2161
|
e[a] = o;
|
|
2162
2162
|
}), e;
|
|
2163
2163
|
}, Ua = (t) => [...t.flowKeys, t.id, t.version, ll(t.context)].join("/"), Z = at({
|
|
@@ -2498,7 +2498,7 @@ const dd = (t) => typeof t == "string", cl = (t) => {
|
|
|
2498
2498
|
};
|
|
2499
2499
|
function Ne() {
|
|
2500
2500
|
}
|
|
2501
|
-
const bl = Ca(() => import("./chatbot-body-
|
|
2501
|
+
const bl = Ca(() => import("./chatbot-body-a533deae.js").then((t) => t.ChatbotBody)), Va = Ye("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
2502
2502
|
variants: {
|
|
2503
2503
|
view: {
|
|
2504
2504
|
closed: "hidden",
|
|
@@ -2530,7 +2530,7 @@ const bl = Ca(() => import("./chatbot-body-9e11b859.js").then((t) => t.ChatbotBo
|
|
|
2530
2530
|
logger: t,
|
|
2531
2531
|
apiClient: e,
|
|
2532
2532
|
analytics: i,
|
|
2533
|
-
|
|
2533
|
+
talentBankClient: a,
|
|
2534
2534
|
params: o
|
|
2535
2535
|
}) => {
|
|
2536
2536
|
const {
|
|
@@ -2574,7 +2574,7 @@ const bl = Ca(() => import("./chatbot-body-9e11b859.js").then((t) => t.ChatbotBo
|
|
|
2574
2574
|
analytics: i,
|
|
2575
2575
|
apiClient: e,
|
|
2576
2576
|
logger: t,
|
|
2577
|
-
|
|
2577
|
+
talentBankClient: a
|
|
2578
2578
|
})
|
|
2579
2579
|
})).with({
|
|
2580
2580
|
state: "error"
|
|
@@ -2965,7 +2965,7 @@ function Hl(t) {
|
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
2967
|
// @__NO_SIDE_EFFECTS__
|
|
2968
|
-
function
|
|
2968
|
+
function Bl(t, e, i) {
|
|
2969
2969
|
return typeof t.fallback == "function" ? (
|
|
2970
2970
|
// @ts-expect-error
|
|
2971
2971
|
t.fallback(e, i)
|
|
@@ -3156,7 +3156,7 @@ function et(t, e) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
d.typed || (i.typed = !1), i.value[n] = d.value;
|
|
3158
3158
|
} else if (s.fallback !== void 0)
|
|
3159
|
-
i.value[n] = /* @__PURE__ */
|
|
3159
|
+
i.value[n] = /* @__PURE__ */ Bl(s);
|
|
3160
3160
|
else if (s.type !== "exact_optional" && s.type !== "optional" && s.type !== "nullish" && (j(this, "key", i, a, {
|
|
3161
3161
|
input: void 0,
|
|
3162
3162
|
expected: `"${n}"`,
|
|
@@ -3198,11 +3198,11 @@ function Q(t, e) {
|
|
|
3198
3198
|
};
|
|
3199
3199
|
}
|
|
3200
3200
|
// @__NO_SIDE_EFFECTS__
|
|
3201
|
-
function
|
|
3201
|
+
function Ll(t, e) {
|
|
3202
3202
|
return {
|
|
3203
3203
|
kind: "schema",
|
|
3204
3204
|
type: "picklist",
|
|
3205
|
-
reference:
|
|
3205
|
+
reference: Ll,
|
|
3206
3206
|
expects: /* @__PURE__ */ Ga(t.map(ct), "|"),
|
|
3207
3207
|
async: !1,
|
|
3208
3208
|
options: t,
|
|
@@ -3719,7 +3719,7 @@ ${i.concat(i).join(`
|
|
|
3719
3719
|
apiClient: o,
|
|
3720
3720
|
logger: n,
|
|
3721
3721
|
analytics: s,
|
|
3722
|
-
|
|
3722
|
+
talentBankClient: v,
|
|
3723
3723
|
params: {
|
|
3724
3724
|
theme: e,
|
|
3725
3725
|
terms: i,
|
|
@@ -3727,11 +3727,11 @@ ${i.concat(i).join(`
|
|
|
3727
3727
|
}
|
|
3728
3728
|
})]), y), a) {
|
|
3729
3729
|
const E = (P) => {
|
|
3730
|
-
var
|
|
3730
|
+
var L, I;
|
|
3731
3731
|
if (!f(b))
|
|
3732
3732
|
return;
|
|
3733
|
-
const
|
|
3734
|
-
|
|
3733
|
+
const B = (L = t.getChatbotElement()) == null ? void 0 : L.querySelector("dialog");
|
|
3734
|
+
B && ad({
|
|
3735
3735
|
instance: P({
|
|
3736
3736
|
rpcClient: r,
|
|
3737
3737
|
apiClient: o,
|
|
@@ -3740,7 +3740,7 @@ ${i.concat(i).join(`
|
|
|
3740
3740
|
}),
|
|
3741
3741
|
theme: e,
|
|
3742
3742
|
terms: ((I = a.params) == null ? void 0 : I.terms) ?? {},
|
|
3743
|
-
host:
|
|
3743
|
+
host: B
|
|
3744
3744
|
});
|
|
3745
3745
|
};
|
|
3746
3746
|
a.plugin instanceof Promise ? a.plugin.then(({
|
|
@@ -3926,7 +3926,7 @@ export {
|
|
|
3926
3926
|
Ze as u,
|
|
3927
3927
|
ud as v,
|
|
3928
3928
|
fd as w,
|
|
3929
|
-
|
|
3929
|
+
Ll as x,
|
|
3930
3930
|
_t as y,
|
|
3931
3931
|
dt as z
|
|
3932
3932
|
};
|