@desivocal/agents-cdn 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dv-agent.es.js +161 -160
- package/dist/dv-agent.umd.js +18 -18
- package/package.json +1 -1
package/dist/dv-agent.es.js
CHANGED
|
@@ -25,8 +25,8 @@ function cz() {
|
|
|
25
25
|
}, enqueueReplaceState: function() {
|
|
26
26
|
}, enqueueSetState: function() {
|
|
27
27
|
} }, M = Object.assign, D = {};
|
|
28
|
-
function U(W, me,
|
|
29
|
-
this.props = W, this.context = me, this.refs = D, this.updater =
|
|
28
|
+
function U(W, me, tt) {
|
|
29
|
+
this.props = W, this.context = me, this.refs = D, this.updater = tt || P;
|
|
30
30
|
}
|
|
31
31
|
U.prototype.isReactComponent = {}, U.prototype.setState = function(W, me) {
|
|
32
32
|
if (typeof W != "object" && typeof W != "function" && W != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
@@ -37,17 +37,17 @@ function cz() {
|
|
|
37
37
|
function N() {
|
|
38
38
|
}
|
|
39
39
|
N.prototype = U.prototype;
|
|
40
|
-
function Q(W, me,
|
|
41
|
-
this.props = W, this.context = me, this.refs = D, this.updater =
|
|
40
|
+
function Q(W, me, tt) {
|
|
41
|
+
this.props = W, this.context = me, this.refs = D, this.updater = tt || P;
|
|
42
42
|
}
|
|
43
43
|
var Y = Q.prototype = new N();
|
|
44
44
|
Y.constructor = Q, M(Y, U.prototype), Y.isPureReactComponent = !0;
|
|
45
45
|
var j = Array.isArray, I = Object.prototype.hasOwnProperty, B = { current: null }, te = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
46
|
-
function X(W, me,
|
|
46
|
+
function X(W, me, tt) {
|
|
47
47
|
var pt, mt = {}, Tt = null, at = null;
|
|
48
48
|
if (me != null) for (pt in me.ref !== void 0 && (at = me.ref), me.key !== void 0 && (Tt = "" + me.key), me) I.call(me, pt) && !te.hasOwnProperty(pt) && (mt[pt] = me[pt]);
|
|
49
49
|
var st = arguments.length - 2;
|
|
50
|
-
if (st === 1) mt.children =
|
|
50
|
+
if (st === 1) mt.children = tt;
|
|
51
51
|
else if (1 < st) {
|
|
52
52
|
for (var wt = Array(st), Wt = 0; Wt < st; Wt++) wt[Wt] = arguments[Wt + 2];
|
|
53
53
|
mt.children = wt;
|
|
@@ -63,15 +63,15 @@ function cz() {
|
|
|
63
63
|
}
|
|
64
64
|
function Se(W) {
|
|
65
65
|
var me = { "=": "=0", ":": "=2" };
|
|
66
|
-
return "$" + W.replace(/[=:]/g, function(
|
|
67
|
-
return me[
|
|
66
|
+
return "$" + W.replace(/[=:]/g, function(tt) {
|
|
67
|
+
return me[tt];
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
var ye = /\/+/g;
|
|
71
71
|
function Ze(W, me) {
|
|
72
72
|
return typeof W == "object" && W !== null && W.key != null ? Se("" + W.key) : me.toString(36);
|
|
73
73
|
}
|
|
74
|
-
function Ue(W, me,
|
|
74
|
+
function Ue(W, me, tt, pt, mt) {
|
|
75
75
|
var Tt = typeof W;
|
|
76
76
|
(Tt === "undefined" || Tt === "boolean") && (W = null);
|
|
77
77
|
var at = !1;
|
|
@@ -88,32 +88,32 @@ function cz() {
|
|
|
88
88
|
at = !0;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
if (at) return at = W, mt = mt(at), W = pt === "" ? "." + Ze(at, 0) : pt, j(mt) ? (
|
|
91
|
+
if (at) return at = W, mt = mt(at), W = pt === "" ? "." + Ze(at, 0) : pt, j(mt) ? (tt = "", W != null && (tt = W.replace(ye, "$&/") + "/"), Ue(mt, me, tt, "", function(Wt) {
|
|
92
92
|
return Wt;
|
|
93
|
-
})) : mt != null && (be(mt) && (mt = Re(mt,
|
|
93
|
+
})) : mt != null && (be(mt) && (mt = Re(mt, tt + (!mt.key || at && at.key === mt.key ? "" : ("" + mt.key).replace(ye, "$&/") + "/") + W)), me.push(mt)), 1;
|
|
94
94
|
if (at = 0, pt = pt === "" ? "." : pt + ":", j(W)) for (var st = 0; st < W.length; st++) {
|
|
95
95
|
Tt = W[st];
|
|
96
96
|
var wt = pt + Ze(Tt, st);
|
|
97
|
-
at += Ue(Tt, me,
|
|
97
|
+
at += Ue(Tt, me, tt, wt, mt);
|
|
98
98
|
}
|
|
99
|
-
else if (wt = w(W), typeof wt == "function") for (W = wt.call(W), st = 0; !(Tt = W.next()).done; ) Tt = Tt.value, wt = pt + Ze(Tt, st++), at += Ue(Tt, me,
|
|
99
|
+
else if (wt = w(W), typeof wt == "function") for (W = wt.call(W), st = 0; !(Tt = W.next()).done; ) Tt = Tt.value, wt = pt + Ze(Tt, st++), at += Ue(Tt, me, tt, wt, mt);
|
|
100
100
|
else if (Tt === "object") throw me = String(W), Error("Objects are not valid as a React child (found: " + (me === "[object Object]" ? "object with keys {" + Object.keys(W).join(", ") + "}" : me) + "). If you meant to render a collection of children, use an array instead.");
|
|
101
101
|
return at;
|
|
102
102
|
}
|
|
103
|
-
function Mt(W, me,
|
|
103
|
+
function Mt(W, me, tt) {
|
|
104
104
|
if (W == null) return W;
|
|
105
105
|
var pt = [], mt = 0;
|
|
106
106
|
return Ue(W, pt, "", "", function(Tt) {
|
|
107
|
-
return me.call(
|
|
107
|
+
return me.call(tt, Tt, mt++);
|
|
108
108
|
}), pt;
|
|
109
109
|
}
|
|
110
110
|
function ht(W) {
|
|
111
111
|
if (W._status === -1) {
|
|
112
112
|
var me = W._result;
|
|
113
|
-
me = me(), me.then(function(
|
|
114
|
-
(W._status === 0 || W._status === -1) && (W._status = 1, W._result =
|
|
115
|
-
}, function(
|
|
116
|
-
(W._status === 0 || W._status === -1) && (W._status = 2, W._result =
|
|
113
|
+
me = me(), me.then(function(tt) {
|
|
114
|
+
(W._status === 0 || W._status === -1) && (W._status = 1, W._result = tt);
|
|
115
|
+
}, function(tt) {
|
|
116
|
+
(W._status === 0 || W._status === -1) && (W._status = 2, W._result = tt);
|
|
117
117
|
}), W._status === -1 && (W._status = 0, W._result = me);
|
|
118
118
|
}
|
|
119
119
|
if (W._status === 1) return W._result.default;
|
|
@@ -123,10 +123,10 @@ function cz() {
|
|
|
123
123
|
function Oe() {
|
|
124
124
|
throw Error("act(...) is not supported in production builds of React.");
|
|
125
125
|
}
|
|
126
|
-
return $t.Children = { map: Mt, forEach: function(W, me,
|
|
126
|
+
return $t.Children = { map: Mt, forEach: function(W, me, tt) {
|
|
127
127
|
Mt(W, function() {
|
|
128
128
|
me.apply(this, arguments);
|
|
129
|
-
},
|
|
129
|
+
}, tt);
|
|
130
130
|
}, count: function(W) {
|
|
131
131
|
var me = 0;
|
|
132
132
|
return Mt(W, function() {
|
|
@@ -139,7 +139,7 @@ function cz() {
|
|
|
139
139
|
}, only: function(W) {
|
|
140
140
|
if (!be(W)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
141
141
|
return W;
|
|
142
|
-
} }, $t.Component = U, $t.Fragment = r, $t.Profiler = o, $t.PureComponent = Q, $t.StrictMode = a, $t.Suspense = g, $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ae, $t.act = Oe, $t.cloneElement = function(W, me,
|
|
142
|
+
} }, $t.Component = U, $t.Fragment = r, $t.Profiler = o, $t.PureComponent = Q, $t.StrictMode = a, $t.Suspense = g, $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ae, $t.act = Oe, $t.cloneElement = function(W, me, tt) {
|
|
143
143
|
if (W == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + W + ".");
|
|
144
144
|
var pt = M({}, W.props), mt = W.key, Tt = W.ref, at = W._owner;
|
|
145
145
|
if (me != null) {
|
|
@@ -147,7 +147,7 @@ function cz() {
|
|
|
147
147
|
for (wt in me) I.call(me, wt) && !te.hasOwnProperty(wt) && (pt[wt] = me[wt] === void 0 && st !== void 0 ? st[wt] : me[wt]);
|
|
148
148
|
}
|
|
149
149
|
var wt = arguments.length - 2;
|
|
150
|
-
if (wt === 1) pt.children =
|
|
150
|
+
if (wt === 1) pt.children = tt;
|
|
151
151
|
else if (1 < wt) {
|
|
152
152
|
st = Array(wt);
|
|
153
153
|
for (var Wt = 0; Wt < wt; Wt++) st[Wt] = arguments[Wt + 2];
|
|
@@ -186,22 +186,22 @@ function cz() {
|
|
|
186
186
|
return Ke.current.useEffect(W, me);
|
|
187
187
|
}, $t.useId = function() {
|
|
188
188
|
return Ke.current.useId();
|
|
189
|
-
}, $t.useImperativeHandle = function(W, me,
|
|
190
|
-
return Ke.current.useImperativeHandle(W, me,
|
|
189
|
+
}, $t.useImperativeHandle = function(W, me, tt) {
|
|
190
|
+
return Ke.current.useImperativeHandle(W, me, tt);
|
|
191
191
|
}, $t.useInsertionEffect = function(W, me) {
|
|
192
192
|
return Ke.current.useInsertionEffect(W, me);
|
|
193
193
|
}, $t.useLayoutEffect = function(W, me) {
|
|
194
194
|
return Ke.current.useLayoutEffect(W, me);
|
|
195
195
|
}, $t.useMemo = function(W, me) {
|
|
196
196
|
return Ke.current.useMemo(W, me);
|
|
197
|
-
}, $t.useReducer = function(W, me,
|
|
198
|
-
return Ke.current.useReducer(W, me,
|
|
197
|
+
}, $t.useReducer = function(W, me, tt) {
|
|
198
|
+
return Ke.current.useReducer(W, me, tt);
|
|
199
199
|
}, $t.useRef = function(W) {
|
|
200
200
|
return Ke.current.useRef(W);
|
|
201
201
|
}, $t.useState = function(W) {
|
|
202
202
|
return Ke.current.useState(W);
|
|
203
|
-
}, $t.useSyncExternalStore = function(W, me,
|
|
204
|
-
return Ke.current.useSyncExternalStore(W, me,
|
|
203
|
+
}, $t.useSyncExternalStore = function(W, me, tt) {
|
|
204
|
+
return Ke.current.useSyncExternalStore(W, me, tt);
|
|
205
205
|
}, $t.useTransition = function() {
|
|
206
206
|
return Ke.current.useTransition();
|
|
207
207
|
}, $t.version = "18.3.1", $t;
|
|
@@ -360,7 +360,7 @@ function dz() {
|
|
|
360
360
|
enqueueSetState: function(_, V, re, le) {
|
|
361
361
|
W(_, "setState");
|
|
362
362
|
}
|
|
363
|
-
},
|
|
363
|
+
}, tt = Object.assign, pt = {};
|
|
364
364
|
Object.freeze(pt);
|
|
365
365
|
function mt(_, V, re) {
|
|
366
366
|
this.props = _, this.context = V, this.refs = pt, this.updater = re || me;
|
|
@@ -393,7 +393,7 @@ function dz() {
|
|
|
393
393
|
this.props = _, this.context = V, this.refs = pt, this.updater = re || me;
|
|
394
394
|
}
|
|
395
395
|
var zn = Wt.prototype = new wt();
|
|
396
|
-
zn.constructor = Wt,
|
|
396
|
+
zn.constructor = Wt, tt(zn, mt.prototype), zn.isPureReactComponent = !0;
|
|
397
397
|
function Zn() {
|
|
398
398
|
var _ = {
|
|
399
399
|
current: null
|
|
@@ -588,7 +588,7 @@ function dz() {
|
|
|
588
588
|
function On(_, V, re) {
|
|
589
589
|
if (_ == null)
|
|
590
590
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + _ + ".");
|
|
591
|
-
var le, De =
|
|
591
|
+
var le, De = tt({}, _.props), Ye = _.key, He = _.ref, vt = _._self, Lt = _._source, un = _._owner;
|
|
592
592
|
if (V != null) {
|
|
593
593
|
Fr(V) && (He = V.ref, un = te.current), _i(V) && (ni(V.key), Ye = "" + V.key);
|
|
594
594
|
var yn;
|
|
@@ -1026,25 +1026,25 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1026
1026
|
writable: !0
|
|
1027
1027
|
};
|
|
1028
1028
|
Object.defineProperties(console, {
|
|
1029
|
-
log:
|
|
1029
|
+
log: tt({}, _, {
|
|
1030
1030
|
value: ho
|
|
1031
1031
|
}),
|
|
1032
|
-
info:
|
|
1032
|
+
info: tt({}, _, {
|
|
1033
1033
|
value: Di
|
|
1034
1034
|
}),
|
|
1035
|
-
warn:
|
|
1035
|
+
warn: tt({}, _, {
|
|
1036
1036
|
value: Lc
|
|
1037
1037
|
}),
|
|
1038
|
-
error:
|
|
1038
|
+
error: tt({}, _, {
|
|
1039
1039
|
value: di
|
|
1040
1040
|
}),
|
|
1041
|
-
group:
|
|
1041
|
+
group: tt({}, _, {
|
|
1042
1042
|
value: Nc
|
|
1043
1043
|
}),
|
|
1044
|
-
groupCollapsed:
|
|
1044
|
+
groupCollapsed: tt({}, _, {
|
|
1045
1045
|
value: hf
|
|
1046
1046
|
}),
|
|
1047
|
-
groupEnd:
|
|
1047
|
+
groupEnd: tt({}, _, {
|
|
1048
1048
|
value: pf
|
|
1049
1049
|
})
|
|
1050
1050
|
});
|
|
@@ -1608,14 +1608,14 @@ function mz() {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
return null;
|
|
1610
1610
|
}
|
|
1611
|
-
var Mt = Object.assign, ht = 0, Ke, ce, Ae, Oe, W, me,
|
|
1611
|
+
var Mt = Object.assign, ht = 0, Ke, ce, Ae, Oe, W, me, tt;
|
|
1612
1612
|
function pt() {
|
|
1613
1613
|
}
|
|
1614
1614
|
pt.__reactDisabledLog = !0;
|
|
1615
1615
|
function mt() {
|
|
1616
1616
|
{
|
|
1617
1617
|
if (ht === 0) {
|
|
1618
|
-
Ke = console.log, ce = console.info, Ae = console.warn, Oe = console.error, W = console.group, me = console.groupCollapsed,
|
|
1618
|
+
Ke = console.log, ce = console.info, Ae = console.warn, Oe = console.error, W = console.group, me = console.groupCollapsed, tt = console.groupEnd;
|
|
1619
1619
|
var z = {
|
|
1620
1620
|
configurable: !0,
|
|
1621
1621
|
enumerable: !0,
|
|
@@ -1663,7 +1663,7 @@ function mz() {
|
|
|
1663
1663
|
value: me
|
|
1664
1664
|
}),
|
|
1665
1665
|
groupEnd: Mt({}, z, {
|
|
1666
|
-
value:
|
|
1666
|
+
value: tt
|
|
1667
1667
|
})
|
|
1668
1668
|
});
|
|
1669
1669
|
}
|
|
@@ -2108,7 +2108,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2108
2108
|
}
|
|
2109
2109
|
var gz = {};
|
|
2110
2110
|
gz.NODE_ENV === "production" ? Cw.exports = pz() : Cw.exports = mz();
|
|
2111
|
-
var
|
|
2111
|
+
var et = Cw.exports, Gg = {}, Ew = { exports: {} }, Da = {}, cS = { exports: {} }, jE = {};
|
|
2112
2112
|
/**
|
|
2113
2113
|
* @license React
|
|
2114
2114
|
* scheduler.production.min.js
|
|
@@ -2138,7 +2138,7 @@ function vz() {
|
|
|
2138
2138
|
var Ae = ce[0], Oe = ce.pop();
|
|
2139
2139
|
if (Oe !== Ae) {
|
|
2140
2140
|
ce[0] = Oe;
|
|
2141
|
-
e: for (var W = 0, me = ce.length,
|
|
2141
|
+
e: for (var W = 0, me = ce.length, tt = me >>> 1; W < tt; ) {
|
|
2142
2142
|
var pt = 2 * (W + 1) - 1, mt = ce[pt], Tt = pt + 1, at = ce[Tt];
|
|
2143
2143
|
if (0 > o(mt, Oe)) Tt < me && 0 > o(at, mt) ? (ce[W] = at, ce[Tt] = Oe, W = Tt) : (ce[W] = mt, ce[pt] = Oe, W = pt);
|
|
2144
2144
|
else if (Tt < me && 0 > o(at, Oe)) ce[W] = at, ce[Tt] = Oe, W = Tt;
|
|
@@ -2192,12 +2192,12 @@ function vz() {
|
|
|
2192
2192
|
} else a(g);
|
|
2193
2193
|
E = r(g);
|
|
2194
2194
|
}
|
|
2195
|
-
if (E !== null) var
|
|
2195
|
+
if (E !== null) var tt = !0;
|
|
2196
2196
|
else {
|
|
2197
2197
|
var pt = r(v);
|
|
2198
|
-
pt !== null && Ke(j, pt.startTime - Ae),
|
|
2198
|
+
pt !== null && Ke(j, pt.startTime - Ae), tt = !1;
|
|
2199
2199
|
}
|
|
2200
|
-
return
|
|
2200
|
+
return tt;
|
|
2201
2201
|
} finally {
|
|
2202
2202
|
E = null, w = Oe, P = !1;
|
|
2203
2203
|
}
|
|
@@ -2402,13 +2402,13 @@ function yz() {
|
|
|
2402
2402
|
function me(Le) {
|
|
2403
2403
|
if (Ke = !1, W(Le), !ht)
|
|
2404
2404
|
if (c(be) !== null)
|
|
2405
|
-
ht = !0, cr(
|
|
2405
|
+
ht = !0, cr(tt);
|
|
2406
2406
|
else {
|
|
2407
2407
|
var ct = c(Se);
|
|
2408
2408
|
ct !== null && Fr(me, ct.startTime - Le);
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function tt(Le, ct) {
|
|
2412
2412
|
ht = !1, Ke && (Ke = !1, _i()), Mt = !0;
|
|
2413
2413
|
var Ot = Ue;
|
|
2414
2414
|
try {
|
|
@@ -2520,12 +2520,12 @@ function yz() {
|
|
|
2520
2520
|
expirationTime: Pr,
|
|
2521
2521
|
sortIndex: -1
|
|
2522
2522
|
};
|
|
2523
|
-
return On > rn ? (_n.sortIndex = On, o(Se, _n), c(be) === null && _n === c(Se) && (Ke ? _i() : Ke = !0, Fr(me, On - rn))) : (_n.sortIndex = Pr, o(be, _n), !ht && !Mt && (ht = !0, cr(
|
|
2523
|
+
return On > rn ? (_n.sortIndex = On, o(Se, _n), c(be) === null && _n === c(Se) && (Ke ? _i() : Ke = !0, Fr(me, On - rn))) : (_n.sortIndex = Pr, o(be, _n), !ht && !Mt && (ht = !0, cr(tt))), _n;
|
|
2524
2524
|
}
|
|
2525
2525
|
function wt() {
|
|
2526
2526
|
}
|
|
2527
2527
|
function Wt() {
|
|
2528
|
-
!ht && !Mt && (ht = !0, cr(
|
|
2528
|
+
!ht && !Mt && (ht = !0, cr(tt));
|
|
2529
2529
|
}
|
|
2530
2530
|
function zn() {
|
|
2531
2531
|
return c(be);
|
|
@@ -2719,10 +2719,10 @@ function bz() {
|
|
|
2719
2719
|
return `
|
|
2720
2720
|
` + W + s;
|
|
2721
2721
|
}
|
|
2722
|
-
var
|
|
2722
|
+
var tt = !1;
|
|
2723
2723
|
function pt(s, u) {
|
|
2724
|
-
if (!s ||
|
|
2725
|
-
|
|
2724
|
+
if (!s || tt) return "";
|
|
2725
|
+
tt = !0;
|
|
2726
2726
|
var p = Error.prepareStackTrace;
|
|
2727
2727
|
Error.prepareStackTrace = void 0;
|
|
2728
2728
|
try {
|
|
@@ -2771,7 +2771,7 @@ function bz() {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
2773
|
} finally {
|
|
2774
|
-
|
|
2774
|
+
tt = !1, Error.prepareStackTrace = p;
|
|
2775
2775
|
}
|
|
2776
2776
|
return (s = s ? s.displayName || s.name : "") ? me(s) : "";
|
|
2777
2777
|
}
|
|
@@ -4209,34 +4209,34 @@ function bz() {
|
|
|
4209
4209
|
case "pointerup":
|
|
4210
4210
|
$e = yf;
|
|
4211
4211
|
}
|
|
4212
|
-
var
|
|
4213
|
-
|
|
4212
|
+
var nt = (u & 4) !== 0, ar = !nt && s === "scroll", J = nt ? Ee !== null ? Ee + "Capture" : null : Ee;
|
|
4213
|
+
nt = [];
|
|
4214
4214
|
for (var G = ae, ne; G !== null; ) {
|
|
4215
4215
|
ne = G;
|
|
4216
4216
|
var Pe = ne.stateNode;
|
|
4217
|
-
if (ne.tag === 5 && Pe !== null && (ne = Pe, J !== null && (Pe = es(G, J), Pe != null &&
|
|
4217
|
+
if (ne.tag === 5 && Pe !== null && (ne = Pe, J !== null && (Pe = es(G, J), Pe != null && nt.push(Tl(G, Pe, ne)))), ar) break;
|
|
4218
4218
|
G = G.return;
|
|
4219
4219
|
}
|
|
4220
|
-
0 <
|
|
4220
|
+
0 < nt.length && (Ee = new $e(Ee, Qe, null, p, we), xe.push({ event: Ee, listeners: nt }));
|
|
4221
4221
|
}
|
|
4222
4222
|
}
|
|
4223
4223
|
if (!(u & 7)) {
|
|
4224
4224
|
e: {
|
|
4225
4225
|
if (Ee = s === "mouseover" || s === "pointerover", $e = s === "mouseout" || s === "pointerout", Ee && p !== Pr && (Qe = p.relatedTarget || p.fromElement) && (bu(Qe) || Qe[Fs])) break e;
|
|
4226
4226
|
if (($e || Ee) && (Ee = we.window === we ? we : (Ee = we.ownerDocument) ? Ee.defaultView || Ee.parentWindow : window, $e ? (Qe = p.relatedTarget || p.toElement, $e = ae, Qe = Qe ? bu(Qe) : null, Qe !== null && (ar = ze(Qe), Qe !== ar || Qe.tag !== 5 && Qe.tag !== 6) && (Qe = null)) : ($e = null, Qe = ae), $e !== Qe)) {
|
|
4227
|
-
if (
|
|
4228
|
-
for (
|
|
4227
|
+
if (nt = tr, Pe = "onMouseLeave", J = "onMouseEnter", G = "mouse", (s === "pointerout" || s === "pointerover") && (nt = yf, Pe = "onPointerLeave", J = "onPointerEnter", G = "pointer"), ar = $e == null ? Ee : ot($e), ne = Qe == null ? Ee : ot(Qe), Ee = new nt(Pe, G + "leave", $e, p, we), Ee.target = ar, Ee.relatedTarget = ne, Pe = null, bu(we) === ae && (nt = new nt(J, G + "enter", Qe, p, we), nt.target = ne, nt.relatedTarget = ar, Pe = nt), ar = Pe, $e && Qe) t: {
|
|
4228
|
+
for (nt = $e, J = Qe, G = 0, ne = nt; ne; ne = gu(ne)) G++;
|
|
4229
4229
|
for (ne = 0, Pe = J; Pe; Pe = gu(Pe)) ne++;
|
|
4230
|
-
for (; 0 < G - ne; )
|
|
4230
|
+
for (; 0 < G - ne; ) nt = gu(nt), G--;
|
|
4231
4231
|
for (; 0 < ne - G; ) J = gu(J), ne--;
|
|
4232
4232
|
for (; G--; ) {
|
|
4233
|
-
if (
|
|
4234
|
-
|
|
4233
|
+
if (nt === J || J !== null && nt === J.alternate) break t;
|
|
4234
|
+
nt = gu(nt), J = gu(J);
|
|
4235
4235
|
}
|
|
4236
|
-
|
|
4236
|
+
nt = null;
|
|
4237
4237
|
}
|
|
4238
|
-
else
|
|
4239
|
-
$e !== null && wf(xe, Ee, $e,
|
|
4238
|
+
else nt = null;
|
|
4239
|
+
$e !== null && wf(xe, Ee, $e, nt, !1), Qe !== null && ar !== null && wf(xe, ar, Qe, nt, !0);
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
e: {
|
|
@@ -4725,7 +4725,7 @@ function bz() {
|
|
|
4725
4725
|
return u(J, jo);
|
|
4726
4726
|
}), Nn && Ro(J, bt), rt;
|
|
4727
4727
|
}
|
|
4728
|
-
function
|
|
4728
|
+
function nt(J, G, ne, Pe) {
|
|
4729
4729
|
var rt = Ae(ne);
|
|
4730
4730
|
if (typeof rt != "function") throw Error(r(150));
|
|
4731
4731
|
if (ne = rt.call(ne), ne == null) throw Error(r(151));
|
|
@@ -4795,7 +4795,7 @@ function bz() {
|
|
|
4795
4795
|
return Xe = ne._init, ar(J, G, Xe(ne._payload), Pe);
|
|
4796
4796
|
}
|
|
4797
4797
|
if (Hn(ne)) return Qe(J, G, ne, Pe);
|
|
4798
|
-
if (Ae(ne)) return
|
|
4798
|
+
if (Ae(ne)) return nt(J, G, ne, Pe);
|
|
4799
4799
|
xl(J, ne);
|
|
4800
4800
|
}
|
|
4801
4801
|
return typeof ne == "string" && ne !== "" || typeof ne == "number" ? (ne = "" + ne, G !== null && G.tag === 6 ? (p(J, G.sibling), G = T(G, ne), G.return = J, J = G) : (p(J, G), G = ju(ne, J.mode, Pe), G.return = J, J = G), O(J)) : p(J, G);
|
|
@@ -4909,10 +4909,10 @@ function bz() {
|
|
|
4909
4909
|
next: null
|
|
4910
4910
|
});
|
|
4911
4911
|
e: {
|
|
4912
|
-
var Qe = s,
|
|
4913
|
-
switch (Ee = u, $e = p,
|
|
4912
|
+
var Qe = s, nt = F;
|
|
4913
|
+
switch (Ee = u, $e = p, nt.tag) {
|
|
4914
4914
|
case 1:
|
|
4915
|
-
if (Qe =
|
|
4915
|
+
if (Qe = nt.payload, typeof Qe == "function") {
|
|
4916
4916
|
xe = Qe.call($e, xe, Ee);
|
|
4917
4917
|
break e;
|
|
4918
4918
|
}
|
|
@@ -4921,7 +4921,7 @@ function bz() {
|
|
|
4921
4921
|
case 3:
|
|
4922
4922
|
Qe.flags = Qe.flags & -65537 | 128;
|
|
4923
4923
|
case 0:
|
|
4924
|
-
if (Qe =
|
|
4924
|
+
if (Qe = nt.payload, Ee = typeof Qe == "function" ? Qe.call($e, xe, Ee) : Qe, Ee == null) break e;
|
|
4925
4925
|
xe = Oe({}, xe, Ee);
|
|
4926
4926
|
break e;
|
|
4927
4927
|
case 2:
|
|
@@ -6139,7 +6139,7 @@ Error generating stack: ` + k.message + `
|
|
|
6139
6139
|
break;
|
|
6140
6140
|
case 1:
|
|
6141
6141
|
if (Qe !== null) {
|
|
6142
|
-
var
|
|
6142
|
+
var nt = Qe.memoizedProps, ar = Qe.memoizedState, J = u.stateNode, G = J.getSnapshotBeforeUpdate(u.elementType === u.type ? nt : Fi(u.type, nt), ar);
|
|
6143
6143
|
J.__reactInternalSnapshotBeforeUpdate = G;
|
|
6144
6144
|
}
|
|
6145
6145
|
break;
|
|
@@ -6339,13 +6339,13 @@ Error generating stack: ` + k.message + `
|
|
|
6339
6339
|
if (Ga(u, s), Ka(s), y & 4) {
|
|
6340
6340
|
try {
|
|
6341
6341
|
Ul(3, s, s.return), lh(3, s);
|
|
6342
|
-
} catch (
|
|
6343
|
-
Xn(s, s.return,
|
|
6342
|
+
} catch (nt) {
|
|
6343
|
+
Xn(s, s.return, nt);
|
|
6344
6344
|
}
|
|
6345
6345
|
try {
|
|
6346
6346
|
Ul(5, s, s.return);
|
|
6347
|
-
} catch (
|
|
6348
|
-
Xn(s, s.return,
|
|
6347
|
+
} catch (nt) {
|
|
6348
|
+
Xn(s, s.return, nt);
|
|
6349
6349
|
}
|
|
6350
6350
|
}
|
|
6351
6351
|
break;
|
|
@@ -6357,8 +6357,8 @@ Error generating stack: ` + k.message + `
|
|
|
6357
6357
|
var T = s.stateNode;
|
|
6358
6358
|
try {
|
|
6359
6359
|
Yi(T, "");
|
|
6360
|
-
} catch (
|
|
6361
|
-
Xn(s, s.return,
|
|
6360
|
+
} catch (nt) {
|
|
6361
|
+
Xn(s, s.return, nt);
|
|
6362
6362
|
}
|
|
6363
6363
|
}
|
|
6364
6364
|
if (y & 4 && (T = s.stateNode, T != null)) {
|
|
@@ -6389,8 +6389,8 @@ Error generating stack: ` + k.message + `
|
|
|
6389
6389
|
) : Kn(T, !!k.multiple, k.multiple ? [] : "", !1));
|
|
6390
6390
|
}
|
|
6391
6391
|
T[ed] = k;
|
|
6392
|
-
} catch (
|
|
6393
|
-
Xn(s, s.return,
|
|
6392
|
+
} catch (nt) {
|
|
6393
|
+
Xn(s, s.return, nt);
|
|
6394
6394
|
}
|
|
6395
6395
|
}
|
|
6396
6396
|
break;
|
|
@@ -6400,16 +6400,16 @@ Error generating stack: ` + k.message + `
|
|
|
6400
6400
|
T = s.stateNode, k = s.memoizedProps;
|
|
6401
6401
|
try {
|
|
6402
6402
|
T.nodeValue = k;
|
|
6403
|
-
} catch (
|
|
6404
|
-
Xn(s, s.return,
|
|
6403
|
+
} catch (nt) {
|
|
6404
|
+
Xn(s, s.return, nt);
|
|
6405
6405
|
}
|
|
6406
6406
|
}
|
|
6407
6407
|
break;
|
|
6408
6408
|
case 3:
|
|
6409
6409
|
if (Ga(u, s), Ka(s), y & 4 && p !== null && p.memoizedState.isDehydrated) try {
|
|
6410
6410
|
pa(u.containerInfo);
|
|
6411
|
-
} catch (
|
|
6412
|
-
Xn(s, s.return,
|
|
6411
|
+
} catch (nt) {
|
|
6412
|
+
Xn(s, s.return, nt);
|
|
6413
6413
|
}
|
|
6414
6414
|
break;
|
|
6415
6415
|
case 4:
|
|
@@ -6436,8 +6436,8 @@ Error generating stack: ` + k.message + `
|
|
|
6436
6436
|
y = Ee, p = Ee.return;
|
|
6437
6437
|
try {
|
|
6438
6438
|
u = y, Qe.props = u.memoizedProps, Qe.state = u.memoizedState, Qe.componentWillUnmount();
|
|
6439
|
-
} catch (
|
|
6440
|
-
Xn(y, p,
|
|
6439
|
+
} catch (nt) {
|
|
6440
|
+
Xn(y, p, nt);
|
|
6441
6441
|
}
|
|
6442
6442
|
}
|
|
6443
6443
|
break;
|
|
@@ -6460,15 +6460,15 @@ Error generating stack: ` + k.message + `
|
|
|
6460
6460
|
we = xe;
|
|
6461
6461
|
try {
|
|
6462
6462
|
T = xe.stateNode, ae ? (k = T.style, typeof k.setProperty == "function" ? k.setProperty("display", "none", "important") : k.display = "none") : (F = xe.stateNode, $ = xe.memoizedProps.style, O = $ != null && $.hasOwnProperty("display") ? $.display : null, F.style.display = Ot("display", O));
|
|
6463
|
-
} catch (
|
|
6464
|
-
Xn(s, s.return,
|
|
6463
|
+
} catch (nt) {
|
|
6464
|
+
Xn(s, s.return, nt);
|
|
6465
6465
|
}
|
|
6466
6466
|
}
|
|
6467
6467
|
} else if (xe.tag === 6) {
|
|
6468
6468
|
if (we === null) try {
|
|
6469
6469
|
xe.stateNode.nodeValue = ae ? "" : xe.memoizedProps;
|
|
6470
|
-
} catch (
|
|
6471
|
-
Xn(s, s.return,
|
|
6470
|
+
} catch (nt) {
|
|
6471
|
+
Xn(s, s.return, nt);
|
|
6472
6472
|
}
|
|
6473
6473
|
} else if ((xe.tag !== 22 && xe.tag !== 23 || xe.memoizedState === null || xe === s) && xe.child !== null) {
|
|
6474
6474
|
xe.child.return = xe, xe = xe.child;
|
|
@@ -6979,8 +6979,8 @@ Error generating stack: ` + k.message + `
|
|
|
6979
6979
|
$e.flags &= -257, fy($e, O, F, k, u), $e.mode & 1 && gm(k, ae, u), u = $e, $ = ae;
|
|
6980
6980
|
var Qe = u.updateQueue;
|
|
6981
6981
|
if (Qe === null) {
|
|
6982
|
-
var
|
|
6983
|
-
|
|
6982
|
+
var nt = /* @__PURE__ */ new Set();
|
|
6983
|
+
nt.add($), u.updateQueue = nt;
|
|
6984
6984
|
} else Qe.add($);
|
|
6985
6985
|
break e;
|
|
6986
6986
|
} else {
|
|
@@ -7160,13 +7160,13 @@ Error generating stack: ` + k.message + `
|
|
|
7160
7160
|
}
|
|
7161
7161
|
var Qe = k.alternate;
|
|
7162
7162
|
if (Qe !== null) {
|
|
7163
|
-
var
|
|
7164
|
-
if (
|
|
7163
|
+
var nt = Qe.child;
|
|
7164
|
+
if (nt !== null) {
|
|
7165
7165
|
Qe.child = null;
|
|
7166
7166
|
do {
|
|
7167
|
-
var ar =
|
|
7168
|
-
|
|
7169
|
-
} while (
|
|
7167
|
+
var ar = nt.sibling;
|
|
7168
|
+
nt.sibling = null, nt = ar;
|
|
7169
|
+
} while (nt !== null);
|
|
7170
7170
|
}
|
|
7171
7171
|
}
|
|
7172
7172
|
Ge = k;
|
|
@@ -7808,7 +7808,7 @@ function Sz() {
|
|
|
7808
7808
|
b.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, b);
|
|
7809
7809
|
}
|
|
7810
7810
|
}
|
|
7811
|
-
var v = 0, S = 1, E = 2, w = 3, P = 4, M = 5, D = 6, U = 7, N = 8, Q = 9, Y = 10, j = 11, I = 12, B = 13, te = 14, X = 15, Re = 16, be = 17, Se = 18, ye = 19, Ze = 21, Ue = 22, Mt = 23, ht = 24, Ke = 25, ce = !0, Ae = !1, Oe = !1, W = !1, me = !1,
|
|
7811
|
+
var v = 0, S = 1, E = 2, w = 3, P = 4, M = 5, D = 6, U = 7, N = 8, Q = 9, Y = 10, j = 11, I = 12, B = 13, te = 14, X = 15, Re = 16, be = 17, Se = 18, ye = 19, Ze = 21, Ue = 22, Mt = 23, ht = 24, Ke = 25, ce = !0, Ae = !1, Oe = !1, W = !1, me = !1, tt = !0, pt = !0, mt = !0, Tt = !0, at = /* @__PURE__ */ new Set(), st = {}, wt = {};
|
|
7812
7812
|
function Wt(t, i) {
|
|
7813
7813
|
zn(t, i), zn(t + "Capture", i);
|
|
7814
7814
|
}
|
|
@@ -11951,7 +11951,7 @@ Check the render method of \`` + t + "`." : "";
|
|
|
11951
11951
|
var i = t.nodeName;
|
|
11952
11952
|
return i && i.toLowerCase() === "input" && (t.type === "checkbox" || t.type === "radio");
|
|
11953
11953
|
}
|
|
11954
|
-
function
|
|
11954
|
+
function nt(t, i) {
|
|
11955
11955
|
if (t === "click")
|
|
11956
11956
|
return O(i);
|
|
11957
11957
|
}
|
|
@@ -11965,7 +11965,7 @@ Check the render method of \`` + t + "`." : "";
|
|
|
11965
11965
|
}
|
|
11966
11966
|
function G(t, i, l, h, m, b, C) {
|
|
11967
11967
|
var R = l ? Oh(l) : window, x, A;
|
|
11968
|
-
if (y(R) ? x = F : Wl(R) ? $ ? x = ar : (x = $e, A = Ee) : Qe(R) && (x =
|
|
11968
|
+
if (y(R) ? x = F : Wl(R) ? $ ? x = ar : (x = $e, A = Ee) : Qe(R) && (x = nt), x) {
|
|
11969
11969
|
var L = x(i, l);
|
|
11970
11970
|
if (L) {
|
|
11971
11971
|
s(t, L, h, m);
|
|
@@ -14204,7 +14204,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, m)
|
|
|
14204
14204
|
function ng(t, i, l) {
|
|
14205
14205
|
var h = l.ref;
|
|
14206
14206
|
if (h !== null && typeof h != "function" && typeof h != "object") {
|
|
14207
|
-
if ((t.mode & _t ||
|
|
14207
|
+
if ((t.mode & _t || tt) && // We warn in ReactElement.js if owner and self are equal for string refs
|
|
14208
14208
|
// because these cannot be automatically converted to an arrow function
|
|
14209
14209
|
// using a codemod. Therefore, we don't have to warn about string refs again.
|
|
14210
14210
|
!(l._owner && l._self && l._owner.stateNode !== l._self) && // Will already throw with "Function components cannot have string refs"
|
|
@@ -38792,17 +38792,17 @@ function z6() {
|
|
|
38792
38792
|
function me() {
|
|
38793
38793
|
var at = D();
|
|
38794
38794
|
if (W(at))
|
|
38795
|
-
return
|
|
38795
|
+
return tt(at);
|
|
38796
38796
|
ye = setTimeout(me, Oe(at));
|
|
38797
38797
|
}
|
|
38798
|
-
function
|
|
38798
|
+
function tt(at) {
|
|
38799
38799
|
return ye = void 0, Ke && X ? ce(at) : (X = Re = void 0, Se);
|
|
38800
38800
|
}
|
|
38801
38801
|
function pt() {
|
|
38802
38802
|
ye !== void 0 && clearTimeout(ye), Ue = 0, X = Ze = Re = ye = void 0;
|
|
38803
38803
|
}
|
|
38804
38804
|
function mt() {
|
|
38805
|
-
return ye === void 0 ? Se :
|
|
38805
|
+
return ye === void 0 ? Se : tt(D());
|
|
38806
38806
|
}
|
|
38807
38807
|
function Tt() {
|
|
38808
38808
|
var at = D(), st = W(at);
|
|
@@ -39221,7 +39221,7 @@ function d8({ preloadedFeatures: n, createVisualElement: e, useRender: r, useVis
|
|
|
39221
39221
|
const U = p8(w);
|
|
39222
39222
|
E = U.MeasureLayout, M.visualElement = u8(o, D, w, e, U.ProjectionNode);
|
|
39223
39223
|
}
|
|
39224
|
-
return
|
|
39224
|
+
return et.jsxs(gT.Provider, { value: M, children: [E && M.visualElement ? et.jsx(E, { visualElement: M.visualElement, ...w }) : null, r(o, v, s8(D, M.visualElement, S), D, P, M.visualElement)] });
|
|
39225
39225
|
}
|
|
39226
39226
|
f.displayName = `motion.${typeof o == "string" ? o : `create(${(d = (c = o.displayName) !== null && c !== void 0 ? c : o.name) !== null && d !== void 0 ? d : ""})`}`;
|
|
39227
39227
|
const g = oe.forwardRef(f);
|
|
@@ -42353,7 +42353,7 @@ class mW extends oe.Component {
|
|
|
42353
42353
|
}
|
|
42354
42354
|
function tI(n) {
|
|
42355
42355
|
const [e, r] = W6(), a = oe.useContext(FL);
|
|
42356
|
-
return
|
|
42356
|
+
return et.jsx(mW, { ...n, layoutGroup: a, switchLayoutGroup: oe.useContext(WL), isPresent: e, safeToRemove: r });
|
|
42357
42357
|
}
|
|
42358
42358
|
const gW = {
|
|
42359
42359
|
borderRadius: {
|
|
@@ -43776,9 +43776,9 @@ var hI = oe.forwardRef((n, e) => {
|
|
|
43776
43776
|
const { children: r, ...a } = n, o = oe.Children.toArray(r), c = o.find(Lq);
|
|
43777
43777
|
if (c) {
|
|
43778
43778
|
const d = c.props.children, f = o.map((g) => g === c ? oe.Children.count(d) > 1 ? oe.Children.only(null) : oe.isValidElement(d) ? d.props.children : null : g);
|
|
43779
|
-
return /* @__PURE__ */
|
|
43779
|
+
return /* @__PURE__ */ et.jsx(_0, { ...a, ref: e, children: oe.isValidElement(d) ? oe.cloneElement(d, void 0, f) : null });
|
|
43780
43780
|
}
|
|
43781
|
-
return /* @__PURE__ */
|
|
43781
|
+
return /* @__PURE__ */ et.jsx(_0, { ...a, ref: e, children: r });
|
|
43782
43782
|
});
|
|
43783
43783
|
hI.displayName = "Slot";
|
|
43784
43784
|
var _0 = oe.forwardRef((n, e) => {
|
|
@@ -43794,7 +43794,7 @@ var _0 = oe.forwardRef((n, e) => {
|
|
|
43794
43794
|
return oe.Children.count(r) > 1 ? oe.Children.only(null) : null;
|
|
43795
43795
|
});
|
|
43796
43796
|
_0.displayName = "SlotClone";
|
|
43797
|
-
var Aq = ({ children: n }) => /* @__PURE__ */
|
|
43797
|
+
var Aq = ({ children: n }) => /* @__PURE__ */ et.jsx(et.Fragment, { children: n });
|
|
43798
43798
|
function Lq(n) {
|
|
43799
43799
|
return oe.isValidElement(n) && n.type === Aq;
|
|
43800
43800
|
}
|
|
@@ -46172,15 +46172,15 @@ const v7 = Uq(
|
|
|
46172
46172
|
}
|
|
46173
46173
|
), tf = oe.forwardRef(({ className: n, variant: e, size: r, asChild: a = !1, ...o }, c) => {
|
|
46174
46174
|
const d = a ? hI : "button";
|
|
46175
|
-
return /* @__PURE__ */
|
|
46175
|
+
return /* @__PURE__ */ et.jsx(d, { className: Xo(v7({ variant: e, size: r, className: n })), ref: c, ...o });
|
|
46176
46176
|
});
|
|
46177
46177
|
tf.displayName = "Button";
|
|
46178
|
-
const y7 = ({ onAgreeClick: n, onCancelClick: e }) => /* @__PURE__ */
|
|
46179
|
-
/* @__PURE__ */
|
|
46180
|
-
/* @__PURE__ */
|
|
46181
|
-
/* @__PURE__ */
|
|
46182
|
-
/* @__PURE__ */
|
|
46183
|
-
/* @__PURE__ */
|
|
46178
|
+
const y7 = ({ onAgreeClick: n, onCancelClick: e }) => /* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-p-2 ringg_ai-rounded-lg ringg_ai-bg-white ringg_ai-transition-all ringg_ai-duration-300 ringg_ai-ease-in-out", children: [
|
|
46179
|
+
/* @__PURE__ */ et.jsx("h2", { className: "ringg_ai-text-2xl ringg_ai-font-bold ringg_ai-mb-4 ringg_ai-text-gray-800", children: "Terms and Conditions" }),
|
|
46180
|
+
/* @__PURE__ */ et.jsx("p", { className: "ringg_ai-mb-8 ringg_ai-text-gray-700", children: 'By clicking "Agree," and each time I interact with this AI agent, I consent to the recording, storage, and sharing of my communications with third-party service providers, as described in the Privacy Policy. If you do not wish to have your conversations recorded, please refrain from using this service.' }),
|
|
46181
|
+
/* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-flex ringg_ai-justify-end ringg_ai-gap-2 ringg_ai-mt-4", children: [
|
|
46182
|
+
/* @__PURE__ */ et.jsx(tf, { variant: "outline", className: "ringg_ai-rounded-full ringg_ai-border-2 ringg_ai-border-gray-300 ringg_ai-text-gray-600 hover:ringg_ai-text-gray-700", onClick: e, children: "Cancel" }),
|
|
46183
|
+
/* @__PURE__ */ et.jsx(tf, { className: "ringg_ai-rounded-full ringg_ai-text-white", onClick: n, children: "Agree" })
|
|
46184
46184
|
] })
|
|
46185
46185
|
] }), TI = typeof window < "u" ? oe.useLayoutEffect : oe.useEffect;
|
|
46186
46186
|
function lM(n) {
|
|
@@ -46265,8 +46265,8 @@ function b7(n, e, r = {}) {
|
|
|
46265
46265
|
return cM("storage", E), cM("local-storage", E), [f, v, S];
|
|
46266
46266
|
}
|
|
46267
46267
|
const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, variables: a, buttons: o, xApiKey: c, mode: d = "prod" } }) => {
|
|
46268
|
-
var
|
|
46269
|
-
const [f, g] = oe.useState(!1), [v, S] = oe.useState(!1), E = oe.createRef(), [w, P] = oe.useState(!1), [M, D] = oe.useState(!1), [U, N] = b7("ringg_ai_show__terms", !0), [Q, Y] = oe.useState({ hasError: !1, message: "" }), [j, I] = oe.useState("unknown"), B = { bottom: ((pt = (
|
|
46268
|
+
var tt, pt, mt, Tt, at, st, wt, Wt, zn, Zn;
|
|
46269
|
+
const [f, g] = oe.useState(!1), [v, S] = oe.useState(!1), E = oe.createRef(), [w, P] = oe.useState(!1), [M, D] = oe.useState(!1), [U, N] = b7("ringg_ai_show__terms", !0), [Q, Y] = oe.useState({ hasError: !1, message: "" }), [j, I] = oe.useState("unknown"), B = { bottom: ((pt = (tt = o == null ? void 0 : o.modalTrigger) == null ? void 0 : tt.styles) == null ? void 0 : pt.top) || "2%", right: ((Tt = (mt = o == null ? void 0 : o.modalTrigger) == null ? void 0 : mt.styles) == null ? void 0 : Tt.bottom) || "2%" }, { chatMessages: te } = L6(), X = j6(), Re = P6(), [be, Se] = oe.useState([]), [ye] = oe.useState(/* @__PURE__ */ new Map()), Ze = d0(X.audioTrack || void 0), Ue = d0({ publication: Re.microphoneTrack, source: ve.Source.Microphone, participant: Re.localParticipant }), Mt = async () => {
|
|
46270
46270
|
try {
|
|
46271
46271
|
if (navigator.permissions && navigator.permissions.query) {
|
|
46272
46272
|
const ft = await navigator.permissions.query({ name: "microphone" });
|
|
@@ -46353,8 +46353,8 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46353
46353
|
};
|
|
46354
46354
|
}, [Ae, n]), oe.useEffect(() => {
|
|
46355
46355
|
E.current && (E.current.scrollTop += E.current.scrollHeight);
|
|
46356
|
-
}, [E, be]), /* @__PURE__ */
|
|
46357
|
-
!w && /* @__PURE__ */
|
|
46356
|
+
}, [E, be]), /* @__PURE__ */ et.jsxs(et.Fragment, { children: [
|
|
46357
|
+
!w && /* @__PURE__ */ et.jsx(
|
|
46358
46358
|
tf,
|
|
46359
46359
|
{
|
|
46360
46360
|
size: "icon",
|
|
@@ -46362,10 +46362,10 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46362
46362
|
onClick: () => P(!0),
|
|
46363
46363
|
style: { position: "fixed", ...B, ...(st = o == null ? void 0 : o.modalTrigger) == null ? void 0 : st.styles },
|
|
46364
46364
|
className: Xo("!ringg_ai-z-[9999] !ringg_ai-h-14 !ringg_ai-w-14 !ringg_ai-rounded-full", v && "ringg_ai-bg-gradient-to-br ringg_ai-from-green-300 ringg_ai-to-green-600", "ringg_ai-trigger-btn"),
|
|
46365
|
-
children: /* @__PURE__ */
|
|
46365
|
+
children: /* @__PURE__ */ et.jsx(nM, { className: "!ringg_ai-size-5", color: "#ffffff", strokeWidth: 2.5, absoluteStrokeWidth: !0 })
|
|
46366
46366
|
}
|
|
46367
46367
|
),
|
|
46368
|
-
w && /* @__PURE__ */
|
|
46368
|
+
w && /* @__PURE__ */ et.jsxs(
|
|
46369
46369
|
Cq.div,
|
|
46370
46370
|
{
|
|
46371
46371
|
animate: { y: 0, opacity: 1 },
|
|
@@ -46373,9 +46373,9 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46373
46373
|
initial: { y: 200, opacity: 0.5 },
|
|
46374
46374
|
transition: { duration: 0.15, ease: "anticipate" },
|
|
46375
46375
|
style: { position: "fixed", ...B },
|
|
46376
|
-
className: "ringg_ai-relative ringg_ai-p-4 ringg_ai-bg-white ringg_ai-rounded-2xl ringg_ai-shadow-xl ringg_ai-animate-fade-in ringg_ai-transition-all ringg_ai-w-[95vw] md:ringg_ai-w-[360px] ringg_ai-border-t",
|
|
46376
|
+
className: "!ringg_ai-z-[9999] ringg_ai-relative ringg_ai-p-4 ringg_ai-bg-white ringg_ai-rounded-2xl ringg_ai-shadow-xl ringg_ai-animate-fade-in ringg_ai-transition-all ringg_ai-w-[95vw] md:ringg_ai-w-[360px] ringg_ai-border-t",
|
|
46377
46377
|
children: [
|
|
46378
|
-
/* @__PURE__ */
|
|
46378
|
+
/* @__PURE__ */ et.jsx(
|
|
46379
46379
|
tf,
|
|
46380
46380
|
{
|
|
46381
46381
|
size: "icon",
|
|
@@ -46383,26 +46383,26 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46383
46383
|
"aria-label": "Close widget",
|
|
46384
46384
|
onClick: () => P(!1),
|
|
46385
46385
|
className: "ringg_ai-absolute ringg_ai-top-2 ringg_ai-right-2 !ringg_ai-rounded-full ringg_ai-text-gray-500 hover:ringg_ai-text-gray-700",
|
|
46386
|
-
children: /* @__PURE__ */
|
|
46386
|
+
children: /* @__PURE__ */ et.jsx(Oq, { size: 20 })
|
|
46387
46387
|
}
|
|
46388
46388
|
),
|
|
46389
|
-
U ? /* @__PURE__ */
|
|
46390
|
-
/* @__PURE__ */
|
|
46391
|
-
/* @__PURE__ */
|
|
46389
|
+
U ? /* @__PURE__ */ et.jsx(y7, { onAgreeClick: Oe, onCancelClick: W }) : /* @__PURE__ */ et.jsx(et.Fragment, { children: /* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-flex ringg_ai-flex-col", children: [
|
|
46390
|
+
/* @__PURE__ */ et.jsx("div", { className: "ringg_ai-flex ringg_ai-items-center ringg_ai-justify-between ringg_ai-p-2 ringg_ai-py-0 ringg_ai-rounded-lg ringg_ai-bg-white", children: /* @__PURE__ */ et.jsxs("div", { className: Xo("ringg_ai-flex ringg_ai-items-center ringg_ai-gap-4 ringg_ai-pointer-events-none"), children: [
|
|
46391
|
+
/* @__PURE__ */ et.jsx(
|
|
46392
46392
|
"div",
|
|
46393
46393
|
{
|
|
46394
46394
|
className: Xo(
|
|
46395
46395
|
"ringg_ai-rounded-full ringg_ai-bg-gradient-to-br ringg_ai-flex ringg_ai-items-center ringg_ai-justify-center",
|
|
46396
46396
|
f ? "ringg_ai-w-14 ringg_ai-h-14 ringg_ai-from-yellow-300 ringg_ai-to-yellow-600" : v ? "ringg_ai-w-12 ringg_ai-h-12 ringg_ai-from-green-300 ringg_ai-to-green-600" : "ringg_ai-w-14 ringg_ai-h-14 ringg_ai-from-teal-300 ringg_ai-to-teal-600"
|
|
46397
46397
|
),
|
|
46398
|
-
children: /* @__PURE__ */
|
|
46398
|
+
children: /* @__PURE__ */ et.jsx(
|
|
46399
46399
|
"div",
|
|
46400
46400
|
{
|
|
46401
46401
|
className: Xo(
|
|
46402
46402
|
"ringg_ai-rounded-full ringg_ai-bg-gradient-to-tl ringg_ai-flex ringg_ai-items-center ringg_ai-justify-center ringg_ai-overflow-hidden",
|
|
46403
46403
|
f ? "ringg_ai-w-12 ringg_ai-h-12 ringg_ai-from-yellow-400/80 ringg_ai-to-yellow-600/50" : v ? "ringg_ai-w-10 ringg_ai-h-10 ringg_ai-from-green-400/80 ringg_ai-to-green-600/50" : "ringg_ai-w-12 ringg_ai-h-12 ringg_ai-from-teal-400/80 ringg_ai-to-teal-600/50"
|
|
46404
46404
|
),
|
|
46405
|
-
children: /* @__PURE__ */
|
|
46405
|
+
children: /* @__PURE__ */ et.jsx(
|
|
46406
46406
|
"div",
|
|
46407
46407
|
{
|
|
46408
46408
|
className: Xo(
|
|
@@ -46415,27 +46415,28 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46415
46415
|
)
|
|
46416
46416
|
}
|
|
46417
46417
|
),
|
|
46418
|
-
/* @__PURE__ */
|
|
46419
|
-
/* @__PURE__ */
|
|
46420
|
-
v && /* @__PURE__ */
|
|
46421
|
-
f && /* @__PURE__ */
|
|
46418
|
+
/* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-flex ringg_ai-flex-col", children: [
|
|
46419
|
+
/* @__PURE__ */ et.jsx("h3", { className: "ringg_ai-text-lg ringg_ai-font-semibold ringg_ai-text-gray-800", children: e }),
|
|
46420
|
+
v && /* @__PURE__ */ et.jsx("p", { className: "ringg_ai-text-sm ringg_ai-text-green-500", children: "Call in progress" }),
|
|
46421
|
+
f && /* @__PURE__ */ et.jsx("p", { className: "ringg_ai-text-sm ringg_ai-text-yellow-500", children: "Connecting..." })
|
|
46422
46422
|
] })
|
|
46423
46423
|
] }) }),
|
|
46424
|
-
|
|
46424
|
+
v && /* @__PURE__ */ et.jsx("hr", { className: "ringg_ai-mt-4" }),
|
|
46425
|
+
(be == null ? void 0 : be.length) > 0 && v && /* @__PURE__ */ et.jsx("div", { ref: E, className: "!ringg_ai-shadow-none ringg_ai-max-h-96 ringg_ai-overflow-y-scroll ringg_ai-mt-2 ringg_ai-flex ringg_ai-flex-col ringg_ai-gap-4 ringg_ai-p-4 ringg_ai-bg-white ringg_ai-rounded-lg", children: be.sort((ft, nn) => new Date(ft.timestamp).getTime() - new Date(nn.timestamp).getTime()).map((ft, nn) => {
|
|
46425
46426
|
const pn = me(ft.name);
|
|
46426
|
-
return /* @__PURE__ */
|
|
46427
|
-
/* @__PURE__ */
|
|
46427
|
+
return /* @__PURE__ */ et.jsxs("div", { className: Xo("ringg_ai-flex ringg_ai-flex-col ringg_ai-items-start ringg_ai-gap-1 ringg_ai-justify-start", pn ? "ringg_ai-flex-row" : "ringg_ai-flex-row-reverse"), children: [
|
|
46428
|
+
/* @__PURE__ */ et.jsx(
|
|
46428
46429
|
"div",
|
|
46429
46430
|
{
|
|
46430
46431
|
className: `ringg_ai-flex ringg_ai-items-center ringg_ai-justify-start ringg_ai-gap-2 ringg_ai-bg-gray-100 ringg_ai-p-4 ringg_ai-rounded-xl ringg_ai-max-w-[75%] ${pn ? "ringg_ai-mr-auto ringg_ai-text-left ringg_ai-rounded-bl-none" : "ringg_ai-ml-auto ringg_ai-text-right ringg_ai-rounded-br-none"}`,
|
|
46431
|
-
children: /* @__PURE__ */
|
|
46432
|
-
/* @__PURE__ */
|
|
46433
|
-
/* @__PURE__ */
|
|
46432
|
+
children: /* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-flex ringg_ai-flex-col ringg_ai-gap-2.5", children: [
|
|
46433
|
+
/* @__PURE__ */ et.jsx("p", { className: "ringg_ai-text-sm", children: ft.message }),
|
|
46434
|
+
/* @__PURE__ */ et.jsx("span", { className: "ringg_ai-text-xs", children: g7(ft.timestamp, "formatted") })
|
|
46434
46435
|
] })
|
|
46435
46436
|
},
|
|
46436
46437
|
`${ft.name}__${nn}`
|
|
46437
46438
|
),
|
|
46438
|
-
/* @__PURE__ */
|
|
46439
|
+
/* @__PURE__ */ et.jsxs(
|
|
46439
46440
|
"div",
|
|
46440
46441
|
{
|
|
46441
46442
|
className: Xo(
|
|
@@ -46443,16 +46444,16 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46443
46444
|
pn ? "ringg_ai-flex-row ringg_ai-text-left ringg_ai-ml-1" : "ringg_ai-flex-row-reverse ringg_ai-text-right ringg_ai-mr-1"
|
|
46444
46445
|
),
|
|
46445
46446
|
children: [
|
|
46446
|
-
pn ? /* @__PURE__ */
|
|
46447
|
+
pn ? /* @__PURE__ */ et.jsx(Rq, { className: "!ringg_ai-size-[0.9rem]", color: "#000" }) : /* @__PURE__ */ et.jsx(Dq, { className: "!ringg_ai-size-[0.8rem]", color: "#000" }),
|
|
46447
46448
|
pn ? "Agent" : "You"
|
|
46448
46449
|
]
|
|
46449
46450
|
}
|
|
46450
46451
|
)
|
|
46451
46452
|
] }, ft.timestamp);
|
|
46452
46453
|
}) }),
|
|
46453
|
-
/* @__PURE__ */
|
|
46454
|
-
/* @__PURE__ */
|
|
46455
|
-
v && /* @__PURE__ */
|
|
46454
|
+
/* @__PURE__ */ et.jsx("hr", { className: "ringg_ai-mt-4" }),
|
|
46455
|
+
/* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-flex ringg_ai-gap-2 ringg_ai-items-center ringg_ai-justify-between ringg_ai-px-2 ringg_ai-py-4 ringg_ai-bg-white", children: [
|
|
46456
|
+
v && /* @__PURE__ */ et.jsx(
|
|
46456
46457
|
tf,
|
|
46457
46458
|
{
|
|
46458
46459
|
size: "icon",
|
|
@@ -46463,10 +46464,10 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46463
46464
|
"ringg_ai-bg-gray-200 hover:ringg_ai-bg-gray-200 !ringg_ai-rounded-full ringg_ai-h-12 !ringg_ai-w-12 ringg_ai-flex ringg_ai-items-center ringg_ai-justify-center ringg_ai-gap-2",
|
|
46464
46465
|
!M && "!ringg_ai-bg-[#dc362e]/20 hover:!ringg_ai-bg-[#dc362e]/25"
|
|
46465
46466
|
),
|
|
46466
|
-
children: M ? /* @__PURE__ */
|
|
46467
|
+
children: M ? /* @__PURE__ */ et.jsx(Pq, { className: "ringg_ai-text-black ringg_ai-h-4 ringg_ai-w-4" }) : /* @__PURE__ */ et.jsx(_q, { className: "ringg_ai-text-[#dc362e] ringg_ai-h-4 ringg_ai-w-4" })
|
|
46467
46468
|
}
|
|
46468
46469
|
),
|
|
46469
|
-
/* @__PURE__ */
|
|
46470
|
+
/* @__PURE__ */ et.jsx(
|
|
46470
46471
|
tf,
|
|
46471
46472
|
{
|
|
46472
46473
|
style: (Wt = o == null ? void 0 : o.call) == null ? void 0 : Wt.styles,
|
|
@@ -46477,37 +46478,37 @@ const S7 = ({ room: n, config: { title: e = "Ringg AI Support", agentId: r, vari
|
|
|
46477
46478
|
"ringg_ai-call-btn",
|
|
46478
46479
|
v ? "ringg_ai-w-fit" : "ringg_ai-w-full"
|
|
46479
46480
|
),
|
|
46480
|
-
children: f ? /* @__PURE__ */
|
|
46481
|
-
/* @__PURE__ */
|
|
46482
|
-
/* @__PURE__ */
|
|
46483
|
-
] }) : /* @__PURE__ */
|
|
46484
|
-
/* @__PURE__ */
|
|
46481
|
+
children: f ? /* @__PURE__ */ et.jsxs(et.Fragment, { children: [
|
|
46482
|
+
/* @__PURE__ */ et.jsx(xq, { className: "ringg_ai-h-4 ringg_ai-w-4 ringg_ai-animate-spin" }),
|
|
46483
|
+
/* @__PURE__ */ et.jsx("span", { children: "Connecting..." })
|
|
46484
|
+
] }) : /* @__PURE__ */ et.jsxs(et.Fragment, { children: [
|
|
46485
|
+
/* @__PURE__ */ et.jsx(nM, { className: "ringg_ai-h-4 ringg_ai-w-4" }),
|
|
46485
46486
|
v ? ((zn = o == null ? void 0 : o.call) == null ? void 0 : zn.textDuringCall) || "End Call" : ((Zn = o == null ? void 0 : o.call) == null ? void 0 : Zn.textBeforeCall) || "Start Call"
|
|
46486
46487
|
] })
|
|
46487
46488
|
}
|
|
46488
46489
|
)
|
|
46489
46490
|
] }),
|
|
46490
|
-
Q.hasError && /* @__PURE__ */
|
|
46491
|
-
/* @__PURE__ */
|
|
46491
|
+
Q.hasError && /* @__PURE__ */ et.jsx("div", { className: "ringg_ai-text-center ringg_ai-text-red-500 -ringg_ai-mt-2 ringg_ai-text-sm ringg_ai-px-2 ringg_ai-mb-2", children: Q.message }),
|
|
46492
|
+
/* @__PURE__ */ et.jsxs("div", { className: "ringg_ai-text-center ringg_ai-text-xs ringg_ai-text-gray-500 -ringg_ai-my-1", children: [
|
|
46492
46493
|
"Powered by ",
|
|
46493
|
-
/* @__PURE__ */
|
|
46494
|
+
/* @__PURE__ */ et.jsx("span", { className: "ringg_ai-underline ringg_ai-cursor-pointer", onClick: () => window.open("https://www.ringg.ai/", "_blank"), children: "Ringg AI" })
|
|
46494
46495
|
] })
|
|
46495
46496
|
] }) })
|
|
46496
46497
|
]
|
|
46497
46498
|
}
|
|
46498
46499
|
),
|
|
46499
|
-
/* @__PURE__ */
|
|
46500
|
+
/* @__PURE__ */ et.jsx(H6, {})
|
|
46500
46501
|
] });
|
|
46501
46502
|
}, T7 = ({ config: n }) => {
|
|
46502
46503
|
const [e] = oe.useState(() => new Cp({ dynacast: !0, adaptiveStream: !0 }));
|
|
46503
|
-
return /* @__PURE__ */
|
|
46504
|
+
return /* @__PURE__ */ et.jsx(J0.Provider, { value: e, children: /* @__PURE__ */ et.jsx(S7, { config: n, room: e }) });
|
|
46504
46505
|
};
|
|
46505
46506
|
(function(n, e) {
|
|
46506
46507
|
function r(a) {
|
|
46507
46508
|
var d;
|
|
46508
46509
|
const o = e.createElement("div");
|
|
46509
46510
|
o.id = "ringg_ai_container", a.refId ? (d = e.getElementById(a.refId)) == null || d.appendChild(o) : e.body.appendChild(o), Gg.createRoot(o).render(
|
|
46510
|
-
/* @__PURE__ */
|
|
46511
|
+
/* @__PURE__ */ et.jsx(hz.StrictMode, { children: /* @__PURE__ */ et.jsx(T7, { config: a }) })
|
|
46511
46512
|
);
|
|
46512
46513
|
}
|
|
46513
46514
|
n.loadAgent = r;
|