@inploi/plugin-chatbot 4.0.1 → 4.0.3
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-5aef126c.js → chatbot-body-4157a64b.js} +703 -714
- package/dist/chatbot-body-faf3f35a.cjs +1 -0
- package/dist/i18n.d.ts +60 -0
- package/dist/{index-b245b94e.js → index-432cb092.js} +66 -56
- package/dist/index-fc252b7c.cjs +5 -0
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +3 -3
- package/dist/chatbot-body-1f8351bb.cjs +0 -1
- package/dist/index-4d7a0e94.cjs +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Be = (t, e, a) => (
|
|
1
|
+
var Lr = Object.defineProperty;
|
|
2
|
+
var Hr = (t, e, a) => e in t ? Lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
+
var Be = (t, e, a) => (Hr(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import { createPlugin as Br } from "@inploi/sdk";
|
|
5
5
|
var zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function Rr(t) {
|
|
@@ -73,13 +73,13 @@ function Fi(t) {
|
|
|
73
73
|
}
|
|
74
74
|
return "";
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var Li = Fi, Hi = Ii, Bi = Ai, Ri = Fa, Ui = Li, Vi = /[\\^$.*+?()[\]{}|]/g, Ki = /^\[object .+?Constructor\]$/, qi = Function.prototype, Wi = Object.prototype, Gi = qi.toString, Yi = Wi.hasOwnProperty, Xi = RegExp(
|
|
77
77
|
"^" + Gi.call(Yi).replace(Vi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
78
78
|
);
|
|
79
79
|
function Zi(t) {
|
|
80
80
|
if (!Ri(t) || Bi(t))
|
|
81
81
|
return !1;
|
|
82
|
-
var e =
|
|
82
|
+
var e = Hi(t) ? Xi : Ki;
|
|
83
83
|
return e.test(Ui(t));
|
|
84
84
|
}
|
|
85
85
|
var Ji = Zi;
|
|
@@ -91,7 +91,7 @@ function ro(t, e) {
|
|
|
91
91
|
var a = ao(t, e);
|
|
92
92
|
return eo(a) ? a : void 0;
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var La = ro, io = La, oo = io(Object, "create"), Wt = oo, qe = Wt;
|
|
95
95
|
function no() {
|
|
96
96
|
this.__data__ = qe ? qe(null) : {}, this.size = 0;
|
|
97
97
|
}
|
|
@@ -147,13 +147,13 @@ function Mo(t, e) {
|
|
|
147
147
|
return a;
|
|
148
148
|
return -1;
|
|
149
149
|
}
|
|
150
|
-
var Gt = Mo, Fo = Gt,
|
|
150
|
+
var Gt = Mo, Fo = Gt, Lo = Array.prototype, Ho = Lo.splice;
|
|
151
151
|
function Bo(t) {
|
|
152
152
|
var e = this.__data__, a = Fo(e, t);
|
|
153
153
|
if (a < 0)
|
|
154
154
|
return !1;
|
|
155
155
|
var r = e.length - 1;
|
|
156
|
-
return a == r ? e.pop() :
|
|
156
|
+
return a == r ? e.pop() : Ho.call(e, a, 1), --this.size, !0;
|
|
157
157
|
}
|
|
158
158
|
var Ro = Bo, Uo = Gt;
|
|
159
159
|
function Vo(t) {
|
|
@@ -182,7 +182,7 @@ ht.prototype.delete = Qo;
|
|
|
182
182
|
ht.prototype.get = tn;
|
|
183
183
|
ht.prototype.has = en;
|
|
184
184
|
ht.prototype.set = an;
|
|
185
|
-
var rn = ht, on =
|
|
185
|
+
var rn = ht, on = La, nn = Ce, sn = on(nn, "Map"), cn = sn, We = To, ln = rn, dn = cn;
|
|
186
186
|
function un() {
|
|
187
187
|
this.size = 0, this.__data__ = {
|
|
188
188
|
hash: new We(),
|
|
@@ -231,7 +231,7 @@ ft.prototype.delete = In;
|
|
|
231
231
|
ft.prototype.get = Tn;
|
|
232
232
|
ft.prototype.has = jn;
|
|
233
233
|
ft.prototype.set = zn;
|
|
234
|
-
var Dn = ft,
|
|
234
|
+
var Dn = ft, Ha = Dn, An = "Expected a function";
|
|
235
235
|
function Oe(t, e) {
|
|
236
236
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
237
237
|
throw new TypeError(An);
|
|
@@ -242,17 +242,17 @@ function Oe(t, e) {
|
|
|
242
242
|
var n = t.apply(this, r);
|
|
243
243
|
return a.cache = i.set(o, n) || i, n;
|
|
244
244
|
};
|
|
245
|
-
return a.cache = new (Oe.Cache ||
|
|
245
|
+
return a.cache = new (Oe.Cache || Ha)(), a;
|
|
246
246
|
}
|
|
247
|
-
Oe.Cache =
|
|
247
|
+
Oe.Cache = Ha;
|
|
248
248
|
var Nn = Oe, Mn = Nn, Fn = 500;
|
|
249
|
-
function
|
|
249
|
+
function Ln(t) {
|
|
250
250
|
var e = Mn(t, function(r) {
|
|
251
251
|
return a.size === Fn && a.clear(), r;
|
|
252
252
|
}), a = e.cache;
|
|
253
253
|
return e;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var Hn = Ln, Bn = Hn, Rn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Un = /\\(\\)?/g, Vn = Bn(function(t) {
|
|
256
256
|
var e = [];
|
|
257
257
|
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Rn, function(a, r, o, i) {
|
|
258
258
|
e.push(o ? i.replace(Un, "$1") : r || a);
|
|
@@ -332,16 +332,16 @@ function ys() {
|
|
|
332
332
|
function M(t) {
|
|
333
333
|
return t.children;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function L(t, e) {
|
|
336
336
|
this.props = t, this.context = e;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ht(t, e) {
|
|
339
339
|
if (e == null)
|
|
340
|
-
return t.__ ?
|
|
340
|
+
return t.__ ? Ht(t.__, t.__.__k.indexOf(t) + 1) : null;
|
|
341
341
|
for (var a; e < t.__k.length; e++)
|
|
342
342
|
if ((a = t.__k[e]) != null && a.__e != null)
|
|
343
343
|
return a.__e;
|
|
344
|
-
return typeof t.type == "function" ?
|
|
344
|
+
return typeof t.type == "function" ? Ht(t) : null;
|
|
345
345
|
}
|
|
346
346
|
function Ga(t) {
|
|
347
347
|
var e, a;
|
|
@@ -360,7 +360,7 @@ function ue(t) {
|
|
|
360
360
|
function Bt() {
|
|
361
361
|
var t, e, a, r, o, i, n, c, l;
|
|
362
362
|
for (rt.sort(de); t = rt.shift(); )
|
|
363
|
-
t.__d && (e = rt.length, r = void 0, o = void 0, i = void 0, c = (n = (a = t).__v).__e, (l = a.__P) && (r = [], o = [], (i = R({}, n)).__v = n.__v + 1, Ie(l, n, i, a.__n, l.ownerSVGElement !== void 0, n.__h != null ? [c] : null, r, c ??
|
|
363
|
+
t.__d && (e = rt.length, r = void 0, o = void 0, i = void 0, c = (n = (a = t).__v).__e, (l = a.__P) && (r = [], o = [], (i = R({}, n)).__v = n.__v + 1, Ie(l, n, i, a.__n, l.ownerSVGElement !== void 0, n.__h != null ? [c] : null, r, c ?? Ht(n), n.__h, o), Ja(r, n, o), n.__e != c && Ga(n)), rt.length > e && rt.sort(de));
|
|
364
364
|
Bt.__r = 0;
|
|
365
365
|
}
|
|
366
366
|
function Ya(t, e, a, r, o, i, n, c, l, d, u) {
|
|
@@ -454,7 +454,7 @@ function Ie(t, e, a, r, o, i, n, c, l, d) {
|
|
|
454
454
|
try {
|
|
455
455
|
t:
|
|
456
456
|
if (typeof O == "function") {
|
|
457
|
-
if (v = e.props, $ = (u = O.contextType) && r[u.__c], N = u ? $ ? $.props.value : u.__ : r, a.__c ? m = (s = e.__c = a.__c).__ = s.__E : ("prototype" in O && O.prototype.render ? e.__c = s = new O(v, N) : (e.__c = s = new
|
|
457
|
+
if (v = e.props, $ = (u = O.contextType) && r[u.__c], N = u ? $ ? $.props.value : u.__ : r, a.__c ? m = (s = e.__c = a.__c).__ = s.__E : ("prototype" in O && O.prototype.render ? e.__c = s = new O(v, N) : (e.__c = s = new L(v, N), s.constructor = O, s.render = Ss), $ && $.sub(s), s.props = v, s.state || (s.state = {}), s.context = N, s.__n = r, h = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), O.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = R({}, s.__s)), R(s.__s, O.getDerivedStateFromProps(v, s.__s))), g = s.props, p = s.state, s.__v = e, h)
|
|
458
458
|
O.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
|
|
459
459
|
else {
|
|
460
460
|
if (O.getDerivedStateFromProps == null && v !== g && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, N), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, N) === !1 || e.__v === a.__v)) {
|
|
@@ -523,7 +523,7 @@ function $s(t, e, a, r, o, i, n, c, l) {
|
|
|
523
523
|
}
|
|
524
524
|
if (ks(t, g, h, o, c), s)
|
|
525
525
|
e.__k = [];
|
|
526
|
-
else if (Ya(t, Xt(b = e.props.children) ? b : [b], e, a, r, o && p !== "foreignObject", i, n, i ? i[0] : a.__k &&
|
|
526
|
+
else if (Ya(t, Xt(b = e.props.children) ? b : [b], e, a, r, o && p !== "foreignObject", i, n, i ? i[0] : a.__k && Ht(a, 0), c, l), i != null)
|
|
527
527
|
for (b = i.length; b--; )
|
|
528
528
|
i[b] != null && Wa(i[b]);
|
|
529
529
|
c || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || p === "progress" && !b || p === "option" && b !== h.value) && Rt(t, "value", b, h.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Rt(t, "checked", b, h.checked, !1));
|
|
@@ -602,12 +602,12 @@ Pt = qa.slice, w = { __e: function(t, e, a, r) {
|
|
|
602
602
|
throw t;
|
|
603
603
|
} }, Ra = 0, Ua = function(t) {
|
|
604
604
|
return t != null && t.constructor === void 0;
|
|
605
|
-
},
|
|
605
|
+
}, L.prototype.setState = function(t, e) {
|
|
606
606
|
var a;
|
|
607
607
|
a = this.__s != null && this.__s !== this.state ? this.__s : this.__s = R({}, this.state), typeof t == "function" && (t = t(R({}, a), this.props)), t && R(a, t), t != null && this.__v && (e && this._sb.push(e), ue(this));
|
|
608
|
-
},
|
|
608
|
+
}, L.prototype.forceUpdate = function(t) {
|
|
609
609
|
this.__v && (this.__e = !0, t && this.__h.push(t), ue(this));
|
|
610
|
-
},
|
|
610
|
+
}, L.prototype.render = M, rt = [], Va = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, de = function(t, e) {
|
|
611
611
|
return t.__v.__b - e.__v.__b;
|
|
612
612
|
}, Bt.__r = 0, Ka = 0;
|
|
613
613
|
var je = class extends Error {
|
|
@@ -1269,7 +1269,7 @@ function ze(t) {
|
|
|
1269
1269
|
return { current: t };
|
|
1270
1270
|
}, []);
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Ls(t, e, a) {
|
|
1273
1273
|
ut = 6, It(function() {
|
|
1274
1274
|
return typeof t == "function" ? (t(e()), function() {
|
|
1275
1275
|
return t(null);
|
|
@@ -1282,7 +1282,7 @@ function gt(t, e) {
|
|
|
1282
1282
|
var a = wt(Y++, 7);
|
|
1283
1283
|
return De(a.__H, e) ? (a.__V = t(), a.i = e, a.__h = t, a.__V) : a.__;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Hs(t, e) {
|
|
1286
1286
|
return ut = 8, gt(function() {
|
|
1287
1287
|
return t;
|
|
1288
1288
|
}, e);
|
|
@@ -1403,7 +1403,7 @@ function Ks(t, e) {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
1405
1405
|
}
|
|
1406
|
-
(fe.prototype = new
|
|
1406
|
+
(fe.prototype = new L()).isPureReactComponent = !0, fe.prototype.shouldComponentUpdate = function(t, e) {
|
|
1407
1407
|
return he(this.props, t) || he(this.state, e);
|
|
1408
1408
|
};
|
|
1409
1409
|
var ha = w.__b;
|
|
@@ -1477,7 +1477,7 @@ function mt() {
|
|
|
1477
1477
|
w.unmount = function(t) {
|
|
1478
1478
|
var e = t.__c;
|
|
1479
1479
|
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), wa && wa(t);
|
|
1480
|
-
}, (kt.prototype = new
|
|
1480
|
+
}, (kt.prototype = new L()).__c = function(t, e) {
|
|
1481
1481
|
var a = e.__c, r = this;
|
|
1482
1482
|
r.t == null && (r.t = []), r.t.push(a);
|
|
1483
1483
|
var o = vr(r.__v), i = !1, n = function() {
|
|
@@ -1540,7 +1540,7 @@ function Js(t, e) {
|
|
|
1540
1540
|
var a = A(Zs, { __v: t, i: e });
|
|
1541
1541
|
return a.containerInfo = e, a;
|
|
1542
1542
|
}
|
|
1543
|
-
(mt.prototype = new
|
|
1543
|
+
(mt.prototype = new L()).__a = function(t) {
|
|
1544
1544
|
var e = this, a = vr(e.__v), r = e.o.get(t);
|
|
1545
1545
|
return r[0]++, function(o) {
|
|
1546
1546
|
var i = function() {
|
|
@@ -1570,8 +1570,8 @@ function ic(t, e, a) {
|
|
|
1570
1570
|
function oc(t, e, a) {
|
|
1571
1571
|
return tr(t, e), typeof a == "function" && a(), t ? t.__c : null;
|
|
1572
1572
|
}
|
|
1573
|
-
|
|
1574
|
-
Object.defineProperty(
|
|
1573
|
+
L.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1574
|
+
Object.defineProperty(L.prototype, t, { configurable: !0, get: function() {
|
|
1575
1575
|
return this["UNSAFE_" + t];
|
|
1576
1576
|
}, set: function(e) {
|
|
1577
1577
|
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
@@ -1662,7 +1662,7 @@ function yc(t, e) {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
}, [t]), a;
|
|
1664
1664
|
}
|
|
1665
|
-
var
|
|
1665
|
+
var Ll = { useState: dr, useId: Rs, useReducer: ur, useEffect: pr, useLayoutEffect: It, useInsertionEffect: mc, useTransition: _c, useDeferredValue: vc, useSyncExternalStore: yc, startTransition: xr, useRef: ze, useImperativeHandle: Ls, useMemo: gt, useCallback: Hs, useContext: hr, useDebugValue: Bs, version: "17.0.2", Children: Gs, render: ic, hydrate: oc, unmountComponentAtNode: hc, createPortal: Js, createElement: A, createContext: er, createFactory: uc, cloneElement: pc, createRef: ys, Fragment: M, isValidElement: yr, findDOMNode: fc, Component: L, PureComponent: fe, memo: Ks, forwardRef: Ws, flushSync: gc, unstable_batchedUpdates: wc, StrictMode: bc, Suspense: kt, SuspenseList: mt, lazy: _r, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: dc };
|
|
1666
1666
|
const T = Symbol.for("@ts-pattern/matcher"), kr = Symbol.for("@ts-pattern/isVariadic"), Ut = "@ts-pattern/anonymous-select-key", we = (t) => !!(t && typeof t == "object"), Ft = (t) => t && !!t[T], C = (t, e, a) => {
|
|
1667
1667
|
if (Ft(t)) {
|
|
1668
1668
|
const r = t[T](), { matched: o, selections: i } = r.match(e);
|
|
@@ -1771,7 +1771,7 @@ function Ct(...t) {
|
|
|
1771
1771
|
}), selections: o };
|
|
1772
1772
|
}, getSelectionKeys: () => [e ?? Ut].concat(a === void 0 ? [] : D(a)) }) });
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function H(t) {
|
|
1775
1775
|
return typeof t == "number";
|
|
1776
1776
|
}
|
|
1777
1777
|
function et(t) {
|
|
@@ -1794,7 +1794,7 @@ const Sr = P(_(function(t) {
|
|
|
1794
1794
|
}, regex: (e) => {
|
|
1795
1795
|
return at(x(t, (a = e, _((r) => et(r) && !!r.match(a)))));
|
|
1796
1796
|
var a;
|
|
1797
|
-
} }), Cc = at(_(et)), B = (t) => Object.assign(P(t), { between: (e, a) => B(x(t, ((r, o) => _((i) =>
|
|
1797
|
+
} }), Cc = at(_(et)), B = (t) => Object.assign(P(t), { between: (e, a) => B(x(t, ((r, o) => _((i) => H(i) && r <= i && o >= i))(e, a))), lt: (e) => B(x(t, ((a) => _((r) => H(r) && r < a))(e))), gt: (e) => B(x(t, ((a) => _((r) => H(r) && r > a))(e))), lte: (e) => B(x(t, ((a) => _((r) => H(r) && r <= a))(e))), gte: (e) => B(x(t, ((a) => _((r) => H(r) && r >= a))(e))), int: () => B(x(t, _((e) => H(e) && Number.isInteger(e)))), finite: () => B(x(t, _((e) => H(e) && Number.isFinite(e)))), positive: () => B(x(t, _((e) => H(e) && e > 0))), negative: () => B(x(t, _((e) => H(e) && e < 0))) }), Ec = B(_(H)), q = (t) => Object.assign(P(t), { between: (e, a) => q(x(t, ((r, o) => _((i) => K(i) && r <= i && o >= i))(e, a))), lt: (e) => q(x(t, ((a) => _((r) => K(r) && r < a))(e))), gt: (e) => q(x(t, ((a) => _((r) => K(r) && r > a))(e))), lte: (e) => q(x(t, ((a) => _((r) => K(r) && r <= a))(e))), gte: (e) => q(x(t, ((a) => _((r) => K(r) && r >= a))(e))), positive: () => q(x(t, _((e) => K(e) && e > 0))), negative: () => q(x(t, _((e) => K(e) && e < 0))) }), Pc = q(_(K)), Oc = P(_(function(t) {
|
|
1798
1798
|
return typeof t == "boolean";
|
|
1799
1799
|
})), Ic = P(_(function(t) {
|
|
1800
1800
|
return typeof t == "symbol";
|
|
@@ -2004,6 +2004,14 @@ const {
|
|
|
2004
2004
|
back: "Back",
|
|
2005
2005
|
search: "Search",
|
|
2006
2006
|
unknown_error: "An error occurred",
|
|
2007
|
+
line1: "Line 1",
|
|
2008
|
+
line2: "Line 2",
|
|
2009
|
+
line3: "Line 3",
|
|
2010
|
+
city: "City",
|
|
2011
|
+
state: "State",
|
|
2012
|
+
postcode: "Postcode",
|
|
2013
|
+
country: "Country",
|
|
2014
|
+
select_country: "Select a country",
|
|
2007
2015
|
validation_max_chars: "Please enter no more than {{count}} characters",
|
|
2008
2016
|
validation_min_chars: "Please enter {{count}} or more characters",
|
|
2009
2017
|
validation_phone: "Please enter a valid phone number",
|
|
@@ -2017,7 +2025,9 @@ const {
|
|
|
2017
2025
|
validation_file_max: {
|
|
2018
2026
|
one: "Please only upload one file",
|
|
2019
2027
|
other: "Please only upload up to {{count}} files"
|
|
2020
|
-
}
|
|
2028
|
+
},
|
|
2029
|
+
validation_email: "That doesn’t look like a valid email address",
|
|
2030
|
+
validation_url: "That doesn’t look like a valid URL"
|
|
2021
2031
|
});
|
|
2022
2032
|
function Er(t, e) {
|
|
2023
2033
|
if (!t)
|
|
@@ -2076,7 +2086,7 @@ E.prototype.U = function(t) {
|
|
|
2076
2086
|
};
|
|
2077
2087
|
E.prototype.subscribe = function(t) {
|
|
2078
2088
|
var e = this;
|
|
2079
|
-
return
|
|
2089
|
+
return He(function() {
|
|
2080
2090
|
var a = e.value, r = 32 & this.f;
|
|
2081
2091
|
this.f &= -33;
|
|
2082
2092
|
try {
|
|
@@ -2205,21 +2215,21 @@ function jr(t) {
|
|
|
2205
2215
|
try {
|
|
2206
2216
|
e();
|
|
2207
2217
|
} catch (r) {
|
|
2208
|
-
throw t.f &= -2, t.f |= 8,
|
|
2218
|
+
throw t.f &= -2, t.f |= 8, Le(t), r;
|
|
2209
2219
|
} finally {
|
|
2210
2220
|
k = a, Fe();
|
|
2211
2221
|
}
|
|
2212
2222
|
}
|
|
2213
2223
|
}
|
|
2214
|
-
function
|
|
2224
|
+
function Le(t) {
|
|
2215
2225
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2216
2226
|
e.S.U(e);
|
|
2217
2227
|
t.x = void 0, t.s = void 0, jr(t);
|
|
2218
2228
|
}
|
|
2219
|
-
function
|
|
2229
|
+
function Lc(t) {
|
|
2220
2230
|
if (k !== this)
|
|
2221
2231
|
throw new Error("Out-of-order effect");
|
|
2222
|
-
Tr(this), k = t, this.f &= -2, 8 & this.f &&
|
|
2232
|
+
Tr(this), k = t, this.f &= -2, 8 & this.f && Le(this), Fe();
|
|
2223
2233
|
}
|
|
2224
2234
|
function Tt(t) {
|
|
2225
2235
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -2238,15 +2248,15 @@ Tt.prototype.c = function() {
|
|
|
2238
2248
|
Tt.prototype.S = function() {
|
|
2239
2249
|
1 & this.f && Zt(), this.f |= 1, this.f &= -9, jr(this), Ir(this), lt++;
|
|
2240
2250
|
var t = k;
|
|
2241
|
-
return k = this,
|
|
2251
|
+
return k = this, Lc.bind(this, t);
|
|
2242
2252
|
};
|
|
2243
2253
|
Tt.prototype.N = function() {
|
|
2244
2254
|
2 & this.f || (this.f |= 2, this.o = $t, $t = this);
|
|
2245
2255
|
};
|
|
2246
2256
|
Tt.prototype.d = function() {
|
|
2247
|
-
this.f |= 8, 1 & this.f ||
|
|
2257
|
+
this.f |= 8, 1 & this.f || Le(this);
|
|
2248
2258
|
};
|
|
2249
|
-
function
|
|
2259
|
+
function He(t) {
|
|
2250
2260
|
var e = new Tt(t);
|
|
2251
2261
|
try {
|
|
2252
2262
|
e.c();
|
|
@@ -2302,7 +2312,7 @@ bt("__r", function(t, e) {
|
|
|
2302
2312
|
var a, r = e.__c;
|
|
2303
2313
|
r && (r.__$f &= -2, (a = r.__$u) === void 0 && (r.__$u = a = function(o) {
|
|
2304
2314
|
var i;
|
|
2305
|
-
return
|
|
2315
|
+
return He(function() {
|
|
2306
2316
|
i = this;
|
|
2307
2317
|
}), i.c = function() {
|
|
2308
2318
|
r.__$f |= 1, r.setState({});
|
|
@@ -2328,17 +2338,17 @@ bt("diffed", function(t, e) {
|
|
|
2328
2338
|
a.U = i = {};
|
|
2329
2339
|
for (var l in r) {
|
|
2330
2340
|
var d = i[l], u = r[l];
|
|
2331
|
-
d === void 0 ? (d =
|
|
2341
|
+
d === void 0 ? (d = Hc(a, l, u, o), i[l] = d) : d.o(u, o);
|
|
2332
2342
|
}
|
|
2333
2343
|
}
|
|
2334
2344
|
}
|
|
2335
2345
|
t(e);
|
|
2336
2346
|
});
|
|
2337
|
-
function
|
|
2347
|
+
function Hc(t, e, a, r) {
|
|
2338
2348
|
var o = e in t && t.ownerSVGElement === void 0, i = Et(a);
|
|
2339
2349
|
return { o: function(n, c) {
|
|
2340
2350
|
i.value = n, r = c;
|
|
2341
|
-
}, d:
|
|
2351
|
+
}, d: He(function() {
|
|
2342
2352
|
var n = i.value.value;
|
|
2343
2353
|
r[e] !== n && (r[e] = n, o ? t[e] = n : n ? t.setAttribute(e, n) : t.removeAttribute(e));
|
|
2344
2354
|
}) };
|
|
@@ -2368,7 +2378,7 @@ bt("unmount", function(t, e) {
|
|
|
2368
2378
|
bt("__h", function(t, e, a, r) {
|
|
2369
2379
|
(r < 3 || r === 9) && (e.__$f |= 2), t(e, a, r);
|
|
2370
2380
|
});
|
|
2371
|
-
|
|
2381
|
+
L.prototype.shouldComponentUpdate = function(t, e) {
|
|
2372
2382
|
var a = this.__$u;
|
|
2373
2383
|
if (!(a && a.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
|
|
2374
2384
|
return !0;
|
|
@@ -2545,7 +2555,7 @@ Dr((t) => ({
|
|
|
2545
2555
|
return Ea(e, a) || t.has(e, a);
|
|
2546
2556
|
}
|
|
2547
2557
|
}));
|
|
2548
|
-
const
|
|
2558
|
+
const Hl = (t) => Me(t).with(nt.number.lte(1e3), () => `${Math.round(t)}KB`).with(nt.number.lt(1e3 * 10), () => `${(t / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(t / 1e3)}MB`), Bl = (t) => {
|
|
2549
2559
|
const e = t.find((a) => a.isHead);
|
|
2550
2560
|
if (!e)
|
|
2551
2561
|
throw new Error("No head node found");
|
|
@@ -2603,7 +2613,7 @@ const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "rando
|
|
|
2603
2613
|
const e = Ia(t);
|
|
2604
2614
|
return (a = await Oa) == null ? void 0 : a.put("state", t.data, e);
|
|
2605
2615
|
}, 1e3)
|
|
2606
|
-
},
|
|
2616
|
+
}, Lt = (t, e, a, r = 0) => {
|
|
2607
2617
|
if (!e.nextId)
|
|
2608
2618
|
return a(e.id, {
|
|
2609
2619
|
stepsMade: r,
|
|
@@ -2620,7 +2630,7 @@ const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "rando
|
|
|
2620
2630
|
};
|
|
2621
2631
|
const i = e.type === "if-block" ? e.branchId : void 0, n = t.find((d) => d.id === i), c = e.type.includes("question") ? 1 : 0;
|
|
2622
2632
|
if (n) {
|
|
2623
|
-
const d = c + Math.max(
|
|
2633
|
+
const d = c + Math.max(Lt(t, o, a, r + c).remainingSteps, Lt(t, n, a, r + c).remainingSteps);
|
|
2624
2634
|
return a(e.id, {
|
|
2625
2635
|
stepsMade: r,
|
|
2626
2636
|
remainingSteps: d
|
|
@@ -2629,7 +2639,7 @@ const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "rando
|
|
|
2629
2639
|
remainingSteps: d
|
|
2630
2640
|
};
|
|
2631
2641
|
}
|
|
2632
|
-
const l = c +
|
|
2642
|
+
const l = c + Lt(t, o, a, r + c).remainingSteps;
|
|
2633
2643
|
return a(e.id, {
|
|
2634
2644
|
stepsMade: r,
|
|
2635
2645
|
remainingSteps: l
|
|
@@ -2639,7 +2649,7 @@ const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "rando
|
|
|
2639
2649
|
};
|
|
2640
2650
|
}, al = (t) => {
|
|
2641
2651
|
const e = {}, a = t.find((r) => r.isHead);
|
|
2642
|
-
return a &&
|
|
2652
|
+
return a && Lt(t, a, (r, o) => {
|
|
2643
2653
|
e[r] = o;
|
|
2644
2654
|
}), e;
|
|
2645
2655
|
}, Ia = (t) => [...t.flowKeys, t.id, t.version].join("/"), W = Et({
|
|
@@ -2974,7 +2984,7 @@ const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "rando
|
|
|
2974
2984
|
};
|
|
2975
2985
|
function oe() {
|
|
2976
2986
|
}
|
|
2977
|
-
const cl = _r(() => import("./chatbot-body-
|
|
2987
|
+
const cl = _r(() => import("./chatbot-body-4157a64b.js").then((t) => t.ChatbotBody)), ja = Fs("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
2978
2988
|
variants: {
|
|
2979
2989
|
view: {
|
|
2980
2990
|
closed: "hidden",
|
|
@@ -3465,7 +3475,7 @@ export {
|
|
|
3465
3475
|
ra as B,
|
|
3466
3476
|
Cl as C,
|
|
3467
3477
|
Ul as D,
|
|
3468
|
-
|
|
3478
|
+
Ll as E,
|
|
3469
3479
|
gt as F,
|
|
3470
3480
|
El as G,
|
|
3471
3481
|
Il as H,
|
|
@@ -3495,7 +3505,7 @@ export {
|
|
|
3495
3505
|
dr as h,
|
|
3496
3506
|
Kl as i,
|
|
3497
3507
|
Et as j,
|
|
3498
|
-
|
|
3508
|
+
Hl as k,
|
|
3499
3509
|
Fs as l,
|
|
3500
3510
|
it as m,
|
|
3501
3511
|
Is as n,
|