@cimulate/copilot-widget 1.33.0 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/messaging.d.ts +4 -0
- package/dist/messaging.es.js +291 -291
- package/dist/messaging.umd.js +10 -10
- package/package.json +1 -1
package/dist/messaging.es.js
CHANGED
|
@@ -104,16 +104,16 @@ function yA() {
|
|
|
104
104
|
O.constructor = N, S(O, w.prototype), O.isPureReactComponent = !0;
|
|
105
105
|
var $ = Array.isArray, G = Object.prototype.hasOwnProperty, D = { current: null }, V = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
106
106
|
function J(M, Z, P) {
|
|
107
|
-
var xe,
|
|
108
|
-
if (Z != null) for (xe in Z.ref !== void 0 && (
|
|
107
|
+
var xe, ke = {}, he = null, Ae = null;
|
|
108
|
+
if (Z != null) for (xe in Z.ref !== void 0 && (Ae = Z.ref), Z.key !== void 0 && (he = "" + Z.key), Z) G.call(Z, xe) && !V.hasOwnProperty(xe) && (ke[xe] = Z[xe]);
|
|
109
109
|
var Fe = arguments.length - 2;
|
|
110
|
-
if (Fe === 1)
|
|
110
|
+
if (Fe === 1) ke.children = P;
|
|
111
111
|
else if (1 < Fe) {
|
|
112
|
-
for (var qe = Array(Fe),
|
|
113
|
-
|
|
112
|
+
for (var qe = Array(Fe), Qe = 0; Qe < Fe; Qe++) qe[Qe] = arguments[Qe + 2];
|
|
113
|
+
ke.children = qe;
|
|
114
114
|
}
|
|
115
|
-
if (M && M.defaultProps) for (xe in Fe = M.defaultProps, Fe)
|
|
116
|
-
return { $$typeof: e, type: M, key:
|
|
115
|
+
if (M && M.defaultProps) for (xe in Fe = M.defaultProps, Fe) ke[xe] === void 0 && (ke[xe] = Fe[xe]);
|
|
116
|
+
return { $$typeof: e, type: M, key: he, ref: Ae, props: ke, _owner: D.current };
|
|
117
117
|
}
|
|
118
118
|
function se(M, Z) {
|
|
119
119
|
return { $$typeof: e, type: M.type, key: Z, ref: M.ref, props: M.props, _owner: M._owner };
|
|
@@ -131,40 +131,40 @@ function yA() {
|
|
|
131
131
|
function le(M, Z) {
|
|
132
132
|
return typeof M == "object" && M !== null && M.key != null ? ie("" + M.key) : Z.toString(36);
|
|
133
133
|
}
|
|
134
|
-
function fe(M, Z, P, xe,
|
|
135
|
-
var
|
|
136
|
-
(
|
|
137
|
-
var
|
|
138
|
-
if (M === null)
|
|
139
|
-
else switch (
|
|
134
|
+
function fe(M, Z, P, xe, ke) {
|
|
135
|
+
var he = typeof M;
|
|
136
|
+
(he === "undefined" || he === "boolean") && (M = null);
|
|
137
|
+
var Ae = !1;
|
|
138
|
+
if (M === null) Ae = !0;
|
|
139
|
+
else switch (he) {
|
|
140
140
|
case "string":
|
|
141
141
|
case "number":
|
|
142
|
-
|
|
142
|
+
Ae = !0;
|
|
143
143
|
break;
|
|
144
144
|
case "object":
|
|
145
145
|
switch (M.$$typeof) {
|
|
146
146
|
case e:
|
|
147
147
|
case t:
|
|
148
|
-
|
|
148
|
+
Ae = !0;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (
|
|
152
|
-
return
|
|
153
|
-
})) :
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
var qe = xe + le(
|
|
157
|
-
|
|
151
|
+
if (Ae) return Ae = M, ke = ke(Ae), M = xe === "" ? "." + le(Ae, 0) : xe, $(ke) ? (P = "", M != null && (P = M.replace(te, "$&/") + "/"), fe(ke, Z, P, "", function(Qe) {
|
|
152
|
+
return Qe;
|
|
153
|
+
})) : ke != null && (H(ke) && (ke = se(ke, P + (!ke.key || Ae && Ae.key === ke.key ? "" : ("" + ke.key).replace(te, "$&/") + "/") + M)), Z.push(ke)), 1;
|
|
154
|
+
if (Ae = 0, xe = xe === "" ? "." : xe + ":", $(M)) for (var Fe = 0; Fe < M.length; Fe++) {
|
|
155
|
+
he = M[Fe];
|
|
156
|
+
var qe = xe + le(he, Fe);
|
|
157
|
+
Ae += fe(he, Z, P, qe, ke);
|
|
158
158
|
}
|
|
159
|
-
else if (qe = _(M), typeof qe == "function") for (M = qe.call(M), Fe = 0; !(
|
|
160
|
-
else if (
|
|
161
|
-
return
|
|
159
|
+
else if (qe = _(M), typeof qe == "function") for (M = qe.call(M), Fe = 0; !(he = M.next()).done; ) he = he.value, qe = xe + le(he, Fe++), Ae += fe(he, Z, P, qe, ke);
|
|
160
|
+
else if (he === "object") throw Z = String(M), Error("Objects are not valid as a React child (found: " + (Z === "[object Object]" ? "object with keys {" + Object.keys(M).join(", ") + "}" : Z) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
|
+
return Ae;
|
|
162
162
|
}
|
|
163
163
|
function ue(M, Z, P) {
|
|
164
164
|
if (M == null) return M;
|
|
165
|
-
var xe = [],
|
|
166
|
-
return fe(M, xe, "", "", function(
|
|
167
|
-
return Z.call(P,
|
|
165
|
+
var xe = [], ke = 0;
|
|
166
|
+
return fe(M, xe, "", "", function(he) {
|
|
167
|
+
return Z.call(P, he, ke++);
|
|
168
168
|
}), xe;
|
|
169
169
|
}
|
|
170
170
|
function ve(M) {
|
|
@@ -201,19 +201,19 @@ function yA() {
|
|
|
201
201
|
return M;
|
|
202
202
|
} }, et.Component = w, et.Fragment = n, et.Profiler = s, et.PureComponent = N, et.StrictMode = r, et.Suspense = d, et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, et.act = C, et.cloneElement = function(M, Z, P) {
|
|
203
203
|
if (M == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + M + ".");
|
|
204
|
-
var xe = S({}, M.props),
|
|
204
|
+
var xe = S({}, M.props), ke = M.key, he = M.ref, Ae = M._owner;
|
|
205
205
|
if (Z != null) {
|
|
206
|
-
if (Z.ref !== void 0 && (
|
|
206
|
+
if (Z.ref !== void 0 && (he = Z.ref, Ae = D.current), Z.key !== void 0 && (ke = "" + Z.key), M.type && M.type.defaultProps) var Fe = M.type.defaultProps;
|
|
207
207
|
for (qe in Z) G.call(Z, qe) && !V.hasOwnProperty(qe) && (xe[qe] = Z[qe] === void 0 && Fe !== void 0 ? Fe[qe] : Z[qe]);
|
|
208
208
|
}
|
|
209
209
|
var qe = arguments.length - 2;
|
|
210
210
|
if (qe === 1) xe.children = P;
|
|
211
211
|
else if (1 < qe) {
|
|
212
212
|
Fe = Array(qe);
|
|
213
|
-
for (var
|
|
213
|
+
for (var Qe = 0; Qe < qe; Qe++) Fe[Qe] = arguments[Qe + 2];
|
|
214
214
|
xe.children = Fe;
|
|
215
215
|
}
|
|
216
|
-
return { $$typeof: e, type: M.type, key:
|
|
216
|
+
return { $$typeof: e, type: M.type, key: ke, ref: he, props: xe, _owner: Ae };
|
|
217
217
|
}, et.createContext = function(M) {
|
|
218
218
|
return M = { $$typeof: u, _currentValue: M, _currentValue2: M, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, M.Provider = { $$typeof: a, _context: M }, M.Consumer = M;
|
|
219
219
|
}, et.createElement = J, et.createFactory = function(M) {
|
|
@@ -5206,7 +5206,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5206
5206
|
maxContentLength: fe,
|
|
5207
5207
|
maxBodyLength: ue
|
|
5208
5208
|
} = w_(v);
|
|
5209
|
-
const ve = Y.isNumber(fe) && fe > -1, de = Y.isNumber(ue) && ue > -1, W = (
|
|
5209
|
+
const ve = Y.isNumber(fe) && fe > -1, de = Y.isNumber(ue) && ue > -1, W = (he) => Y.hasOwnProp(v, he) ? v[he] : void 0;
|
|
5210
5210
|
let oe = s || fetch;
|
|
5211
5211
|
H = H ? (H + "").toLowerCase() : "text";
|
|
5212
5212
|
let C = wN(
|
|
@@ -5217,36 +5217,36 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5217
5217
|
C.unsubscribe();
|
|
5218
5218
|
});
|
|
5219
5219
|
let P, xe = null;
|
|
5220
|
-
const
|
|
5220
|
+
const ke = () => new Ie(
|
|
5221
5221
|
"Request body larger than maxBodyLength limit",
|
|
5222
5222
|
Ie.ERR_BAD_REQUEST,
|
|
5223
5223
|
v,
|
|
5224
5224
|
M
|
|
5225
5225
|
);
|
|
5226
5226
|
try {
|
|
5227
|
-
let
|
|
5228
|
-
const
|
|
5229
|
-
if (
|
|
5230
|
-
const He = Y.getSafeProp(
|
|
5231
|
-
|
|
5227
|
+
let he;
|
|
5228
|
+
const Ae = W("auth");
|
|
5229
|
+
if (Ae) {
|
|
5230
|
+
const He = Y.getSafeProp(Ae, "username") || "", Ne = Y.getSafeProp(Ae, "password") || "";
|
|
5231
|
+
he = {
|
|
5232
5232
|
username: He,
|
|
5233
5233
|
password: Ne
|
|
5234
5234
|
};
|
|
5235
5235
|
}
|
|
5236
5236
|
if (RN(N)) {
|
|
5237
5237
|
const He = new URL(N, Jt.origin);
|
|
5238
|
-
if (!
|
|
5238
|
+
if (!he && (He.username || He.password)) {
|
|
5239
5239
|
const Ne = mE(He.username), Ye = mE(He.password);
|
|
5240
|
-
|
|
5240
|
+
he = {
|
|
5241
5241
|
username: Ne,
|
|
5242
5242
|
password: Ye
|
|
5243
5243
|
};
|
|
5244
5244
|
}
|
|
5245
5245
|
(He.username || He.password) && (He.username = "", He.password = "", N = He.href);
|
|
5246
5246
|
}
|
|
5247
|
-
if (
|
|
5247
|
+
if (he && (ie.delete("authorization"), ie.set(
|
|
5248
5248
|
"Authorization",
|
|
5249
|
-
"Basic " + btoa(PN((
|
|
5249
|
+
"Basic " + btoa(PN((he.username || "") + ":" + (he.password || "")))
|
|
5250
5250
|
)), ve && typeof N == "string" && N.startsWith("data:") && kN(N) > fe)
|
|
5251
5251
|
throw new Ie(
|
|
5252
5252
|
"maxContentLength size of " + fe + " exceeded",
|
|
@@ -5257,14 +5257,14 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5257
5257
|
if (de && O !== "get" && O !== "head") {
|
|
5258
5258
|
const He = yield x($);
|
|
5259
5259
|
if (typeof He == "number" && isFinite(He) && (P = He, He > ue))
|
|
5260
|
-
throw
|
|
5260
|
+
throw ke();
|
|
5261
5261
|
}
|
|
5262
5262
|
const Fe = de && (Y.isReadableStream($) || Y.isStream($)), qe = (He, Ne, Ye) => hE(
|
|
5263
5263
|
He,
|
|
5264
5264
|
pE,
|
|
5265
5265
|
(Ze) => {
|
|
5266
5266
|
if (de && Ze > ue)
|
|
5267
|
-
throw xe =
|
|
5267
|
+
throw xe = ke();
|
|
5268
5268
|
Ne && Ne(Ze);
|
|
5269
5269
|
},
|
|
5270
5270
|
Ye
|
|
@@ -5294,7 +5294,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5294
5294
|
M
|
|
5295
5295
|
);
|
|
5296
5296
|
Y.isString(te) || (te = te ? "include" : "omit");
|
|
5297
|
-
const
|
|
5297
|
+
const Qe = d && "credentials" in a.prototype;
|
|
5298
5298
|
if (Y.isFormData($)) {
|
|
5299
5299
|
const He = ie.getContentType();
|
|
5300
5300
|
He && /^multipart\/form-data/i.test(He) && !/boundary=/i.test(He) && ie.delete("content-type");
|
|
@@ -5306,7 +5306,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5306
5306
|
headers: m_(ie.normalize()),
|
|
5307
5307
|
body: $,
|
|
5308
5308
|
duplex: "half",
|
|
5309
|
-
credentials:
|
|
5309
|
+
credentials: Qe ? te : void 0
|
|
5310
5310
|
});
|
|
5311
5311
|
M = d && new a(N, ft);
|
|
5312
5312
|
let Ct = yield d ? oe(M, le) : oe(N, ft);
|
|
@@ -5374,38 +5374,38 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5374
5374
|
request: M
|
|
5375
5375
|
});
|
|
5376
5376
|
});
|
|
5377
|
-
} catch (
|
|
5377
|
+
} catch (he) {
|
|
5378
5378
|
if (Z && Z(), C && C.aborted && C.reason instanceof Ie) {
|
|
5379
|
-
const
|
|
5380
|
-
throw
|
|
5379
|
+
const Ae = C.reason;
|
|
5380
|
+
throw Ae.config = v, M && (Ae.request = M), he !== Ae && Object.defineProperty(Ae, "cause", {
|
|
5381
5381
|
__proto__: null,
|
|
5382
|
-
value:
|
|
5382
|
+
value: he,
|
|
5383
5383
|
writable: !0,
|
|
5384
5384
|
enumerable: !1,
|
|
5385
5385
|
configurable: !0
|
|
5386
|
-
}),
|
|
5386
|
+
}), Ae;
|
|
5387
5387
|
}
|
|
5388
5388
|
if (xe)
|
|
5389
5389
|
throw M && !xe.request && (xe.request = M), xe;
|
|
5390
|
-
if (
|
|
5391
|
-
throw M && !
|
|
5392
|
-
if (
|
|
5393
|
-
const
|
|
5390
|
+
if (he instanceof Ie)
|
|
5391
|
+
throw M && !he.request && (he.request = M), he;
|
|
5392
|
+
if (he && he.name === "TypeError" && /Load failed|fetch/i.test(he.message)) {
|
|
5393
|
+
const Ae = new Ie(
|
|
5394
5394
|
"Network Error",
|
|
5395
5395
|
Ie.ERR_NETWORK,
|
|
5396
5396
|
v,
|
|
5397
5397
|
M,
|
|
5398
|
-
|
|
5398
|
+
he && he.response
|
|
5399
5399
|
);
|
|
5400
|
-
throw Object.defineProperty(
|
|
5400
|
+
throw Object.defineProperty(Ae, "cause", {
|
|
5401
5401
|
__proto__: null,
|
|
5402
|
-
value:
|
|
5402
|
+
value: he.cause || he,
|
|
5403
5403
|
writable: !0,
|
|
5404
5404
|
enumerable: !1,
|
|
5405
5405
|
configurable: !0
|
|
5406
|
-
}),
|
|
5406
|
+
}), Ae;
|
|
5407
5407
|
}
|
|
5408
|
-
throw Ie.from(
|
|
5408
|
+
throw Ie.from(he, he && he.code, v, M, he && he.response);
|
|
5409
5409
|
}
|
|
5410
5410
|
});
|
|
5411
5411
|
}, DN = /* @__PURE__ */ new Map(), C_ = (e) => {
|
|
@@ -6049,22 +6049,22 @@ const VN = {
|
|
|
6049
6049
|
R.useEffect(() => {
|
|
6050
6050
|
M || !P || P.config || P.getConfig();
|
|
6051
6051
|
}, [P, M]);
|
|
6052
|
-
const
|
|
6053
|
-
const qe = (y == null ? void 0 : y.placeholder) || p,
|
|
6052
|
+
const ke = R.useMemo(() => ww(ie), [ie]), he = R.useMemo(() => {
|
|
6053
|
+
const qe = (y == null ? void 0 : y.placeholder) || p, Qe = (y == null ? void 0 : y.buttonLabel) || _;
|
|
6054
6054
|
let ft = "icon";
|
|
6055
6055
|
return y != null && y.buttonType ? ft = y.buttonType : _ && (ft = "text"), ce(j({}, y || {}), {
|
|
6056
6056
|
placeholder: qe,
|
|
6057
|
-
buttonLabel:
|
|
6057
|
+
buttonLabel: Qe,
|
|
6058
6058
|
buttonType: ft
|
|
6059
6059
|
});
|
|
6060
|
-
}, [y, p, _]),
|
|
6060
|
+
}, [y, p, _]), Ae = R.useMemo(() => ce(j({}, r || {}), {
|
|
6061
6061
|
logoUrl: t || (r == null ? void 0 : r.logoUrl),
|
|
6062
6062
|
headerText: (r == null ? void 0 : r.headerText) || n || VN[e != null ? e : "copilot"]
|
|
6063
6063
|
}), [r, t, n, e]), Fe = R.useMemo(
|
|
6064
6064
|
() => ({
|
|
6065
6065
|
configModule: P,
|
|
6066
6066
|
mode: e != null ? e : "copilot",
|
|
6067
|
-
headerConfig:
|
|
6067
|
+
headerConfig: Ae,
|
|
6068
6068
|
entryMessage: a,
|
|
6069
6069
|
staticQuestions: W || [],
|
|
6070
6070
|
staticQuestionsStrategy: oe,
|
|
@@ -6074,9 +6074,9 @@ const VN = {
|
|
|
6074
6074
|
disclaimerMarkdown: d,
|
|
6075
6075
|
clientContext: f,
|
|
6076
6076
|
baseCatalogParams: m,
|
|
6077
|
-
themeVariables:
|
|
6077
|
+
themeVariables: ke,
|
|
6078
6078
|
logger: xe,
|
|
6079
|
-
searchConfig:
|
|
6079
|
+
searchConfig: he,
|
|
6080
6080
|
suggestionButtonConfig: S,
|
|
6081
6081
|
progressStepsLimit: x,
|
|
6082
6082
|
messageAlignment: w,
|
|
@@ -6097,7 +6097,7 @@ const VN = {
|
|
|
6097
6097
|
[
|
|
6098
6098
|
P,
|
|
6099
6099
|
e,
|
|
6100
|
-
|
|
6100
|
+
Ae,
|
|
6101
6101
|
a,
|
|
6102
6102
|
W,
|
|
6103
6103
|
oe,
|
|
@@ -6107,7 +6107,7 @@ const VN = {
|
|
|
6107
6107
|
l,
|
|
6108
6108
|
d,
|
|
6109
6109
|
u,
|
|
6110
|
-
|
|
6110
|
+
he,
|
|
6111
6111
|
S,
|
|
6112
6112
|
w,
|
|
6113
6113
|
v,
|
|
@@ -6119,7 +6119,7 @@ const VN = {
|
|
|
6119
6119
|
de,
|
|
6120
6120
|
G,
|
|
6121
6121
|
xe,
|
|
6122
|
-
|
|
6122
|
+
ke,
|
|
6123
6123
|
$,
|
|
6124
6124
|
le,
|
|
6125
6125
|
Z
|
|
@@ -7004,18 +7004,18 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7004
7004
|
esDeveloperName: n,
|
|
7005
7005
|
routingAttributes: r,
|
|
7006
7006
|
conversationHistory: _
|
|
7007
|
-
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null), M = R.useRef(null), Z = R.useRef(0), P = R.useRef(!1), xe = R.useRef(0),
|
|
7007
|
+
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null), M = R.useRef(null), Z = R.useRef(0), P = R.useRef(!1), xe = R.useRef(0), ke = R.useRef(0), he = R.useRef(
|
|
7008
7008
|
() => Promise.reject(new Error("Messaging is unavailable"))
|
|
7009
|
-
),
|
|
7009
|
+
), Ae = R.useRef([]), Fe = R.useRef(null), qe = R.useCallback(() => {
|
|
7010
7010
|
x({
|
|
7011
7011
|
type: "SET_CART_UPDATING",
|
|
7012
|
-
isUpdating:
|
|
7012
|
+
isUpdating: Ae.current.some(AO)
|
|
7013
7013
|
});
|
|
7014
|
-
}, []),
|
|
7014
|
+
}, []), Qe = R.useCallback(
|
|
7015
7015
|
(re, we) => {
|
|
7016
|
-
we.outcome === "timeout" ? (re.timedOut = !0,
|
|
7016
|
+
we.outcome === "timeout" ? (re.timedOut = !0, Ae.current = Ae.current.filter(
|
|
7017
7017
|
(Ce) => Ce === re || !Ce.timedOut
|
|
7018
|
-
)) :
|
|
7018
|
+
)) : Ae.current = Ae.current.filter((Ce) => Ce !== re), clearTimeout(re.timeoutId), qe(), re.resolve(we);
|
|
7019
7019
|
},
|
|
7020
7020
|
[qe]
|
|
7021
7021
|
);
|
|
@@ -7051,8 +7051,8 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7051
7051
|
tokensBeforeFlush: ve.current,
|
|
7052
7052
|
streamedFinalOnly: ve.current === 0
|
|
7053
7053
|
}), ve.current = 0;
|
|
7054
|
-
const
|
|
7055
|
-
x({ type: "FLUSH_STREAMING", message: Le, replaceMessageId: vt }), (kr = se.current) == null || kr.call(se, Le),
|
|
7054
|
+
const Je = Ta(Ae.current), vt = Je == null ? void 0 : Je.options.reconcileMessageId;
|
|
7055
|
+
x({ type: "FLUSH_STREAMING", message: Le, replaceMessageId: vt }), (kr = se.current) == null || kr.call(se, Le), Je && Qe(Je, { outcome: "success" });
|
|
7056
7056
|
const { messagingSessionId: Bt } = Ee, dr = Bt ? XN(Ee.content) : null;
|
|
7057
7057
|
Bt && dr && ((Pr = te.current) == null || Pr.call(te, {
|
|
7058
7058
|
agentSessionId: Bt,
|
|
@@ -7061,15 +7061,15 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7061
7061
|
}));
|
|
7062
7062
|
}), re.on("streaming_token", (Ee) => {
|
|
7063
7063
|
var Le;
|
|
7064
|
-
if (!((Le = Ta(
|
|
7064
|
+
if (!((Le = Ta(Ae.current)) != null && Le.options.silent)) {
|
|
7065
7065
|
if (ve.current += 1, p != null && p.isDevelopment) {
|
|
7066
|
-
const
|
|
7067
|
-
|
|
7066
|
+
const Je = L_(Ee.token);
|
|
7067
|
+
Je ? Je.index === Ai ? p.debug("🦜 streaming_token → markdown fallback", {
|
|
7068
7068
|
token: Ee.token
|
|
7069
7069
|
}) : p.debug("🦜 streaming_token parsed", {
|
|
7070
|
-
type:
|
|
7071
|
-
index:
|
|
7072
|
-
outputName:
|
|
7070
|
+
type: Je.type,
|
|
7071
|
+
index: Je.index,
|
|
7072
|
+
outputName: Je.type === "tool_results" ? Je.output_name : void 0
|
|
7073
7073
|
}) : p.debug("🦜 streaming_token dropped (empty or unrecognized payload shape)", {
|
|
7074
7074
|
token: Ee.token
|
|
7075
7075
|
});
|
|
@@ -7078,23 +7078,23 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7078
7078
|
}
|
|
7079
7079
|
}), re.on("typing_started", () => {
|
|
7080
7080
|
var Ee;
|
|
7081
|
-
(Ee = Ta(
|
|
7081
|
+
(Ee = Ta(Ae.current)) != null && Ee.options.silent || x({ type: "SET_AGENT_TYPING", isTyping: !0 });
|
|
7082
7082
|
}), re.on("typing_stopped", () => {
|
|
7083
7083
|
var Ee;
|
|
7084
|
-
(Ee = Ta(
|
|
7084
|
+
(Ee = Ta(Ae.current)) != null && Ee.options.silent || x({ type: "SET_AGENT_TYPING", isTyping: !1 });
|
|
7085
7085
|
}), re.on("progress_indicator", (Ee) => {
|
|
7086
7086
|
var Le;
|
|
7087
|
-
(Le = Ta(
|
|
7087
|
+
(Le = Ta(Ae.current)) != null && Le.options.silent || x({ type: "ADD_PROGRESS_STEP", message: Ee.message });
|
|
7088
7088
|
}), re.on("routing_result", (Ee) => {
|
|
7089
7089
|
var Le;
|
|
7090
7090
|
if (x({ type: "SET_ROUTING_RESULT", result: Ee }), !Ee.isSuccessful) {
|
|
7091
|
-
const
|
|
7091
|
+
const Je = `Routing failed: ${Ee.failureType || "unknown"}`;
|
|
7092
7092
|
x({
|
|
7093
7093
|
type: "SET_ERROR",
|
|
7094
7094
|
error: xE({
|
|
7095
7095
|
code: "ROUTING_FAILED"
|
|
7096
7096
|
})
|
|
7097
|
-
}), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Le = H.current) == null || Le.call(H,
|
|
7097
|
+
}), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Le = H.current) == null || Le.call(H, Je);
|
|
7098
7098
|
}
|
|
7099
7099
|
}), re.on("participant_changed", (Ee) => {
|
|
7100
7100
|
if (Ee.participant.name === "Automated Process") return;
|
|
@@ -7129,8 +7129,8 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7129
7129
|
throw _a;
|
|
7130
7130
|
}, Ce = (Ee) => Ee === xe.current, Oe = (Ee) => Be(null, null, function* () {
|
|
7131
7131
|
v(!1);
|
|
7132
|
-
let Le = V.getStoredConnectOptions(),
|
|
7133
|
-
Le || (Le = yield V.getPeerConnectOptions(), we(Ee),
|
|
7132
|
+
let Le = V.getStoredConnectOptions(), Je = !1;
|
|
7133
|
+
Le || (Le = yield V.getPeerConnectOptions(), we(Ee), Je = !!Le);
|
|
7134
7134
|
let vt = !1;
|
|
7135
7135
|
try {
|
|
7136
7136
|
if (yield re.connect(Le != null ? Le : void 0), !Ce(Ee))
|
|
@@ -7138,7 +7138,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7138
7138
|
vt = !!(Le != null && Le.lastEventId);
|
|
7139
7139
|
} catch (dr) {
|
|
7140
7140
|
if (we(Ee), Le && ih(dr)) {
|
|
7141
|
-
if (p == null || p.log("Stored token expired on connect — falling back to fresh connect"),
|
|
7141
|
+
if (p == null || p.log("Stored token expired on connect — falling back to fresh connect"), Je || V.clearPersistedConversation(), yield re.connect(), !Ce(Ee))
|
|
7142
7142
|
throw re.disconnect(), _a;
|
|
7143
7143
|
vt = !1;
|
|
7144
7144
|
} else
|
|
@@ -7160,15 +7160,15 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7160
7160
|
x({ type: "SET_CONVERSATION_ID", id: Bt.conversationId }), Bt.resumed && x({ type: "LOAD_HISTORY", messages: Bt.restoredMessages }), v(!0), x({ type: "SET_LOADING", isLoading: !1 });
|
|
7161
7161
|
});
|
|
7162
7162
|
return C.current = Oe, () => {
|
|
7163
|
-
xe.current += 1,
|
|
7163
|
+
xe.current += 1, ke.current += 1, re.disconnect(), re.off(), J.current = null, C.current = null, M.current = null, P.current = !1;
|
|
7164
7164
|
};
|
|
7165
|
-
}, [e, t, n, s,
|
|
7165
|
+
}, [e, t, n, s, Qe]);
|
|
7166
7166
|
const ft = R.useCallback(() => {
|
|
7167
7167
|
if (P.current) return Promise.resolve();
|
|
7168
7168
|
if (M.current)
|
|
7169
7169
|
return Z.current === xe.current ? M.current : M.current.catch((Oe) => {
|
|
7170
7170
|
if (Oe !== _a) throw Oe;
|
|
7171
|
-
}).then(() =>
|
|
7171
|
+
}).then(() => he.current());
|
|
7172
7172
|
const re = C.current;
|
|
7173
7173
|
if (!re) return Promise.reject(new Error("Messaging is unavailable"));
|
|
7174
7174
|
x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" });
|
|
@@ -7187,7 +7187,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7187
7187
|
});
|
|
7188
7188
|
return M.current = Ce, Ce;
|
|
7189
7189
|
}, []);
|
|
7190
|
-
|
|
7190
|
+
he.current = ft, R.useEffect(() => {
|
|
7191
7191
|
y && ft().catch(() => {
|
|
7192
7192
|
});
|
|
7193
7193
|
}, [y, e, t, n, s, ft]);
|
|
@@ -7239,11 +7239,11 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7239
7239
|
options: re.options,
|
|
7240
7240
|
message: Ee
|
|
7241
7241
|
}
|
|
7242
|
-
}), (Ce = H.current) == null || Ce.call(H, Oe instanceof Error ? Oe.message : String(Oe)),
|
|
7242
|
+
}), (Ce = H.current) == null || Ce.call(H, Oe instanceof Error ? Oe.message : String(Oe)), Qe(re, { outcome: "failure", message: Ee });
|
|
7243
7243
|
}
|
|
7244
7244
|
}
|
|
7245
7245
|
}),
|
|
7246
|
-
[
|
|
7246
|
+
[Qe]
|
|
7247
7247
|
), dn = R.useCallback(
|
|
7248
7248
|
(re) => Be(null, null, function* () {
|
|
7249
7249
|
var Ce;
|
|
@@ -7272,13 +7272,13 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7272
7272
|
p == null || p.log("🦜 recoverExpiredSession: new conversation created", { conversationId: Oe }), x({ type: "SET_CONVERSATION_ID", id: Oe }), x({ type: "SET_CONNECTION_STATUS", status: "connected" }), V.persistConversationId(Oe), re && (yield Zt(re));
|
|
7273
7273
|
} catch (Oe) {
|
|
7274
7274
|
const Ee = Oe instanceof Error ? Oe.message : String(Oe);
|
|
7275
|
-
x({ type: "SET_ERROR", error: Ei(Oe) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Ce = H.current) == null || Ce.call(H, Ee), re &&
|
|
7275
|
+
x({ type: "SET_ERROR", error: Ei(Oe) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Ce = H.current) == null || Ce.call(H, Ee), re && Qe(re, { outcome: "failure", message: Ei(Oe) });
|
|
7276
7276
|
} finally {
|
|
7277
7277
|
le.current = !1, fe.current = !1;
|
|
7278
7278
|
}
|
|
7279
7279
|
}
|
|
7280
7280
|
}),
|
|
7281
|
-
[r, V, Ct, Zt, p,
|
|
7281
|
+
[r, V, Ct, Zt, p, Qe]
|
|
7282
7282
|
), Nt = R.useRef(dn);
|
|
7283
7283
|
Nt.current = dn;
|
|
7284
7284
|
const He = R.useCallback(() => Be(null, null, function* () {
|
|
@@ -7326,19 +7326,19 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7326
7326
|
}), [V, p]);
|
|
7327
7327
|
R.useEffect(() => {
|
|
7328
7328
|
const re = () => {
|
|
7329
|
-
const
|
|
7330
|
-
|
|
7329
|
+
const Je = Date.now();
|
|
7330
|
+
Je - W.current < SO || (W.current = Je, Ne.current());
|
|
7331
7331
|
}, we = () => {
|
|
7332
7332
|
if (document.visibilityState === "hidden") {
|
|
7333
7333
|
de.current = Date.now();
|
|
7334
7334
|
return;
|
|
7335
7335
|
}
|
|
7336
|
-
const
|
|
7337
|
-
if (!
|
|
7336
|
+
const Je = J.current;
|
|
7337
|
+
if (!Je) return;
|
|
7338
7338
|
const vt = de.current ? Date.now() - de.current : 0;
|
|
7339
|
-
de.current = 0, (ue.current || !
|
|
7340
|
-
}, Ce = (
|
|
7341
|
-
|
|
7339
|
+
de.current = 0, (ue.current || !Je.isConnected || vt > _O) && re();
|
|
7340
|
+
}, Ce = (Je) => {
|
|
7341
|
+
Je.persisted && re();
|
|
7342
7342
|
}, Oe = () => {
|
|
7343
7343
|
de.current = Date.now();
|
|
7344
7344
|
}, Ee = () => re(), Le = () => re();
|
|
@@ -7351,7 +7351,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7351
7351
|
var Oe;
|
|
7352
7352
|
const Ce = J.current;
|
|
7353
7353
|
if (!Ce) {
|
|
7354
|
-
|
|
7354
|
+
Qe(re, { outcome: "failure", message: "Messaging is unavailable" });
|
|
7355
7355
|
return;
|
|
7356
7356
|
}
|
|
7357
7357
|
if (ue.current) {
|
|
@@ -7366,10 +7366,10 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7366
7366
|
return;
|
|
7367
7367
|
}
|
|
7368
7368
|
const Le = Ei(Ee);
|
|
7369
|
-
x({ type: "SET_SEND_ERROR", error: we(Le) }), (Oe = H.current) == null || Oe.call(H, Ee instanceof Error ? Ee.message : String(Ee)),
|
|
7369
|
+
x({ type: "SET_SEND_ERROR", error: we(Le) }), (Oe = H.current) == null || Oe.call(H, Ee instanceof Error ? Ee.message : String(Ee)), Qe(re, { outcome: "failure", message: Le });
|
|
7370
7370
|
}
|
|
7371
7371
|
}),
|
|
7372
|
-
[
|
|
7372
|
+
[Qe]
|
|
7373
7373
|
), ct = R.useCallback((re) => Be(null, null, function* () {
|
|
7374
7374
|
const we = oe.current;
|
|
7375
7375
|
we && (yield we), yield re();
|
|
@@ -7386,9 +7386,9 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7386
7386
|
options: Ce,
|
|
7387
7387
|
resolve: Oe,
|
|
7388
7388
|
timeoutId: setTimeout(() => {
|
|
7389
|
-
x({ type: "SET_LOADING", isLoading: !1 }),
|
|
7389
|
+
x({ type: "SET_LOADING", isLoading: !1 }), Qe(Le, { outcome: "timeout" });
|
|
7390
7390
|
}, bO)
|
|
7391
|
-
}),
|
|
7391
|
+
}), Ae.current.push(Le), qe(), x({ type: "CLEAR_SEND_ERROR" }), Ce.silent || (x({
|
|
7392
7392
|
type: "ADD_MESSAGE",
|
|
7393
7393
|
message: {
|
|
7394
7394
|
id: crypto.randomUUID(),
|
|
@@ -7397,20 +7397,20 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7397
7397
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
7398
7398
|
}
|
|
7399
7399
|
}), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_PROGRESS_MESSAGE", message: "" })), ct(
|
|
7400
|
-
() => Ze(Le, (
|
|
7400
|
+
() => Ze(Le, (Je) => ({ text: re, displayContent: we, options: Ce, message: Je }))
|
|
7401
7401
|
);
|
|
7402
7402
|
}),
|
|
7403
|
-
[Ze, ct,
|
|
7403
|
+
[Ze, ct, Qe, qe]
|
|
7404
7404
|
), gn = R.useCallback(
|
|
7405
7405
|
(re, we) => {
|
|
7406
7406
|
if (!re.trim()) return Promise.resolve({ outcome: "failure", message: "Message is empty" });
|
|
7407
|
-
const Ce =
|
|
7408
|
-
const
|
|
7407
|
+
const Ce = ke.current, Oe = () => {
|
|
7408
|
+
const Je = () => Ce !== ke.current ? Promise.resolve({
|
|
7409
7409
|
outcome: "failure",
|
|
7410
7410
|
message: "Message cancelled"
|
|
7411
7411
|
}) : Ot(re, we == null ? void 0 : we.displayContent, we);
|
|
7412
|
-
return P.current ?
|
|
7413
|
-
|
|
7412
|
+
return P.current ? Je() : ft().then(
|
|
7413
|
+
Je,
|
|
7414
7414
|
(vt) => ({ outcome: "failure", message: Ei(vt) })
|
|
7415
7415
|
);
|
|
7416
7416
|
}, Ee = Fe.current ? Fe.current.then(Oe) : Oe(), Le = Ee.then(() => {
|
|
@@ -7423,9 +7423,9 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7423
7423
|
), ki = R.useCallback(
|
|
7424
7424
|
(re) => {
|
|
7425
7425
|
if (!J.current) return;
|
|
7426
|
-
const we =
|
|
7426
|
+
const we = ke.current, { prompt: Ce, display: Oe } = wO(re);
|
|
7427
7427
|
ft().then(() => {
|
|
7428
|
-
if (we ===
|
|
7428
|
+
if (we === ke.current)
|
|
7429
7429
|
return Ot(Ce, Oe);
|
|
7430
7430
|
}).catch(() => {
|
|
7431
7431
|
});
|
|
@@ -7450,18 +7450,18 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7450
7450
|
const re = J.current;
|
|
7451
7451
|
if (!re) return Promise.resolve();
|
|
7452
7452
|
if (!P.current)
|
|
7453
|
-
return xe.current += 1,
|
|
7454
|
-
const we = ++
|
|
7455
|
-
return ue.current = !1, O(!1), V.clearPersistedConversation(), x({ type: "RESET" }), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re.endConversation().then(() => we !==
|
|
7456
|
-
return !Ce || we !==
|
|
7453
|
+
return xe.current += 1, ke.current += 1, re.disconnect(), V.clearPersistedConversation(), x({ type: "RESET" }), Promise.resolve();
|
|
7454
|
+
const we = ++ke.current;
|
|
7455
|
+
return ue.current = !1, O(!1), V.clearPersistedConversation(), x({ type: "RESET" }), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re.endConversation().then(() => we !== ke.current || J.current !== re ? null : (re.disconnect(), re.connect().then(() => re))).then((Ce) => Be(null, null, function* () {
|
|
7456
|
+
return !Ce || we !== ke.current || (yield V.persistContinuationToken(
|
|
7457
7457
|
Ce,
|
|
7458
|
-
() => we ===
|
|
7459
|
-
), we !==
|
|
7458
|
+
() => we === ke.current && J.current === Ce
|
|
7459
|
+
), we !== ke.current || J.current !== Ce) ? null : re.createConversation(yield ic({ routingAttributes: r }));
|
|
7460
7460
|
})).then((Ce) => {
|
|
7461
|
-
!Ce || we !==
|
|
7461
|
+
!Ce || we !== ke.current || J.current !== re || (x({ type: "SET_CONVERSATION_ID", id: Ce }), x({ type: "SET_CONNECTION_STATUS", status: "connected" }), V.persistConversationId(Ce));
|
|
7462
7462
|
}).catch((Ce) => {
|
|
7463
7463
|
var Oe;
|
|
7464
|
-
we !==
|
|
7464
|
+
we !== ke.current || J.current !== re || (x({ type: "SET_ERROR", error: Ei(Ce) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Oe = H.current) == null || Oe.call(H, Ce.message));
|
|
7465
7465
|
});
|
|
7466
7466
|
}, [r, V]);
|
|
7467
7467
|
CO({
|
|
@@ -8360,9 +8360,9 @@ function eI() {
|
|
|
8360
8360
|
if (C !== oe) {
|
|
8361
8361
|
W[0] = C;
|
|
8362
8362
|
e: for (var M = 0, Z = W.length, P = Z >>> 1; M < P; ) {
|
|
8363
|
-
var xe = 2 * (M + 1) - 1,
|
|
8364
|
-
if (0 > s(
|
|
8365
|
-
else if (
|
|
8363
|
+
var xe = 2 * (M + 1) - 1, ke = W[xe], he = xe + 1, Ae = W[he];
|
|
8364
|
+
if (0 > s(ke, C)) he < Z && 0 > s(Ae, ke) ? (W[M] = Ae, W[he] = C, M = he) : (W[M] = ke, W[xe] = C, M = xe);
|
|
8365
|
+
else if (he < Z && 0 > s(Ae, C)) W[M] = Ae, W[he] = C, M = he;
|
|
8366
8366
|
else break e;
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
@@ -8710,7 +8710,7 @@ function nI() {
|
|
|
8710
8710
|
}
|
|
8711
8711
|
return (i = i ? i.displayName || i.name : "") ? Z(i) : "";
|
|
8712
8712
|
}
|
|
8713
|
-
function
|
|
8713
|
+
function ke(i) {
|
|
8714
8714
|
switch (i.tag) {
|
|
8715
8715
|
case 5:
|
|
8716
8716
|
return Z(i.type);
|
|
@@ -8732,7 +8732,7 @@ function nI() {
|
|
|
8732
8732
|
return "";
|
|
8733
8733
|
}
|
|
8734
8734
|
}
|
|
8735
|
-
function
|
|
8735
|
+
function he(i) {
|
|
8736
8736
|
if (i == null) return null;
|
|
8737
8737
|
if (typeof i == "function") return i.displayName || i.name || null;
|
|
8738
8738
|
if (typeof i == "string") return i;
|
|
@@ -8759,17 +8759,17 @@ function nI() {
|
|
|
8759
8759
|
var o = i.render;
|
|
8760
8760
|
return i = i.displayName, i || (i = o.displayName || o.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
8761
8761
|
case ue:
|
|
8762
|
-
return o = i.displayName || null, o !== null ? o :
|
|
8762
|
+
return o = i.displayName || null, o !== null ? o : he(i.type) || "Memo";
|
|
8763
8763
|
case ve:
|
|
8764
8764
|
o = i._payload, i = i._init;
|
|
8765
8765
|
try {
|
|
8766
|
-
return
|
|
8766
|
+
return he(i(o));
|
|
8767
8767
|
} catch (c) {
|
|
8768
8768
|
}
|
|
8769
8769
|
}
|
|
8770
8770
|
return null;
|
|
8771
8771
|
}
|
|
8772
|
-
function
|
|
8772
|
+
function Ae(i) {
|
|
8773
8773
|
var o = i.type;
|
|
8774
8774
|
switch (i.tag) {
|
|
8775
8775
|
case 24:
|
|
@@ -8793,7 +8793,7 @@ function nI() {
|
|
|
8793
8793
|
case 6:
|
|
8794
8794
|
return "Text";
|
|
8795
8795
|
case 16:
|
|
8796
|
-
return
|
|
8796
|
+
return he(o);
|
|
8797
8797
|
case 8:
|
|
8798
8798
|
return o === J ? "StrictMode" : "Mode";
|
|
8799
8799
|
case 22:
|
|
@@ -8836,7 +8836,7 @@ function nI() {
|
|
|
8836
8836
|
var o = i.type;
|
|
8837
8837
|
return (i = i.nodeName) && i.toLowerCase() === "input" && (o === "checkbox" || o === "radio");
|
|
8838
8838
|
}
|
|
8839
|
-
function
|
|
8839
|
+
function Qe(i) {
|
|
8840
8840
|
var o = qe(i) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(i.constructor.prototype, o), h = "" + i[o];
|
|
8841
8841
|
if (!i.hasOwnProperty(o) && typeof c != "undefined" && typeof c.get == "function" && typeof c.set == "function") {
|
|
8842
8842
|
var E = c.get, T = c.set;
|
|
@@ -8854,7 +8854,7 @@ function nI() {
|
|
|
8854
8854
|
}
|
|
8855
8855
|
}
|
|
8856
8856
|
function ft(i) {
|
|
8857
|
-
i._valueTracker || (i._valueTracker =
|
|
8857
|
+
i._valueTracker || (i._valueTracker = Qe(i));
|
|
8858
8858
|
}
|
|
8859
8859
|
function Ct(i) {
|
|
8860
8860
|
if (!i) return !1;
|
|
@@ -9054,7 +9054,7 @@ function nI() {
|
|
|
9054
9054
|
if (o.style != null && typeof o.style != "object") throw Error(n(62));
|
|
9055
9055
|
}
|
|
9056
9056
|
}
|
|
9057
|
-
function
|
|
9057
|
+
function Je(i, o) {
|
|
9058
9058
|
if (i.indexOf("-") === -1) return typeof o.is == "string";
|
|
9059
9059
|
switch (i) {
|
|
9060
9060
|
case "annotation-xml":
|
|
@@ -10067,25 +10067,25 @@ function nI() {
|
|
|
10067
10067
|
l0(function() {
|
|
10068
10068
|
var ee = T, ge = Bt(c), ye = [];
|
|
10069
10069
|
e: {
|
|
10070
|
-
var
|
|
10071
|
-
if (
|
|
10072
|
-
var
|
|
10070
|
+
var pe = eg.get(i);
|
|
10071
|
+
if (pe !== void 0) {
|
|
10072
|
+
var Pe = gd, De = i;
|
|
10073
10073
|
switch (i) {
|
|
10074
10074
|
case "keypress":
|
|
10075
10075
|
if (wu(c) === 0) break e;
|
|
10076
10076
|
case "keydown":
|
|
10077
10077
|
case "keyup":
|
|
10078
|
-
|
|
10078
|
+
Pe = tv;
|
|
10079
10079
|
break;
|
|
10080
10080
|
case "focusin":
|
|
10081
|
-
De = "focus",
|
|
10081
|
+
De = "focus", Pe = Td;
|
|
10082
10082
|
break;
|
|
10083
10083
|
case "focusout":
|
|
10084
|
-
De = "blur",
|
|
10084
|
+
De = "blur", Pe = Td;
|
|
10085
10085
|
break;
|
|
10086
10086
|
case "beforeblur":
|
|
10087
10087
|
case "afterblur":
|
|
10088
|
-
|
|
10088
|
+
Pe = Td;
|
|
10089
10089
|
break;
|
|
10090
10090
|
case "click":
|
|
10091
10091
|
if (c.button === 2) break e;
|
|
@@ -10097,7 +10097,7 @@ function nI() {
|
|
|
10097
10097
|
case "mouseout":
|
|
10098
10098
|
case "mouseover":
|
|
10099
10099
|
case "contextmenu":
|
|
10100
|
-
|
|
10100
|
+
Pe = I0;
|
|
10101
10101
|
break;
|
|
10102
10102
|
case "drag":
|
|
10103
10103
|
case "dragend":
|
|
@@ -10107,32 +10107,32 @@ function nI() {
|
|
|
10107
10107
|
case "dragover":
|
|
10108
10108
|
case "dragstart":
|
|
10109
10109
|
case "drop":
|
|
10110
|
-
|
|
10110
|
+
Pe = zx;
|
|
10111
10111
|
break;
|
|
10112
10112
|
case "touchcancel":
|
|
10113
10113
|
case "touchend":
|
|
10114
10114
|
case "touchmove":
|
|
10115
10115
|
case "touchstart":
|
|
10116
|
-
|
|
10116
|
+
Pe = iv;
|
|
10117
10117
|
break;
|
|
10118
10118
|
case K0:
|
|
10119
10119
|
case Q0:
|
|
10120
10120
|
case J0:
|
|
10121
|
-
|
|
10121
|
+
Pe = Yx;
|
|
10122
10122
|
break;
|
|
10123
10123
|
case Z0:
|
|
10124
|
-
|
|
10124
|
+
Pe = ov;
|
|
10125
10125
|
break;
|
|
10126
10126
|
case "scroll":
|
|
10127
|
-
|
|
10127
|
+
Pe = jx;
|
|
10128
10128
|
break;
|
|
10129
10129
|
case "wheel":
|
|
10130
|
-
|
|
10130
|
+
Pe = uv;
|
|
10131
10131
|
break;
|
|
10132
10132
|
case "copy":
|
|
10133
10133
|
case "cut":
|
|
10134
10134
|
case "paste":
|
|
10135
|
-
|
|
10135
|
+
Pe = Gx;
|
|
10136
10136
|
break;
|
|
10137
10137
|
case "gotpointercapture":
|
|
10138
10138
|
case "lostpointercapture":
|
|
@@ -10142,9 +10142,9 @@ function nI() {
|
|
|
10142
10142
|
case "pointerout":
|
|
10143
10143
|
case "pointerover":
|
|
10144
10144
|
case "pointerup":
|
|
10145
|
-
|
|
10145
|
+
Pe = P0;
|
|
10146
10146
|
}
|
|
10147
|
-
var Me = (o & 4) !== 0, Pt = !Me && i === "scroll", X = Me ?
|
|
10147
|
+
var Me = (o & 4) !== 0, Pt = !Me && i === "scroll", X = Me ? pe !== null ? pe + "Capture" : null : pe;
|
|
10148
10148
|
Me = [];
|
|
10149
10149
|
for (var q = ee, Q; q !== null; ) {
|
|
10150
10150
|
Q = q;
|
|
@@ -10152,15 +10152,15 @@ function nI() {
|
|
|
10152
10152
|
if (Q.tag === 5 && Se !== null && (Q = Se, X !== null && (Se = Lo(q, X), Se != null && Me.push(Zo(q, Se, Q)))), Pt) break;
|
|
10153
10153
|
q = q.return;
|
|
10154
10154
|
}
|
|
10155
|
-
0 < Me.length && (
|
|
10155
|
+
0 < Me.length && (pe = new Pe(pe, De, null, c, ge), ye.push({ event: pe, listeners: Me }));
|
|
10156
10156
|
}
|
|
10157
10157
|
}
|
|
10158
10158
|
if ((o & 7) === 0) {
|
|
10159
10159
|
e: {
|
|
10160
|
-
if (
|
|
10161
|
-
if ((
|
|
10162
|
-
if (Me = I0, Se = "onMouseLeave", X = "onMouseEnter", q = "mouse", (i === "pointerout" || i === "pointerover") && (Me = P0, Se = "onPointerLeave", X = "onPointerEnter", q = "pointer"), Pt =
|
|
10163
|
-
for (Me =
|
|
10160
|
+
if (pe = i === "mouseover" || i === "pointerover", Pe = i === "mouseout" || i === "pointerout", pe && c !== vt && (De = c.relatedTarget || c.fromElement) && (Di(De) || De[Rr])) break e;
|
|
10161
|
+
if ((Pe || pe) && (pe = ge.window === ge ? ge : (pe = ge.ownerDocument) ? pe.defaultView || pe.parentWindow : window, Pe ? (De = c.relatedTarget || c.toElement, Pe = ee, De = De ? Di(De) : null, De !== null && (Pt = Li(De), De !== Pt || De.tag !== 5 && De.tag !== 6) && (De = null)) : (Pe = null, De = ee), Pe !== De)) {
|
|
10162
|
+
if (Me = I0, Se = "onMouseLeave", X = "onMouseEnter", q = "mouse", (i === "pointerout" || i === "pointerover") && (Me = P0, Se = "onPointerLeave", X = "onPointerEnter", q = "pointer"), Pt = Pe == null ? pe : Ns(Pe), Q = De == null ? pe : Ns(De), pe = new Me(Se, q + "leave", Pe, c, ge), pe.target = Pt, pe.relatedTarget = Q, Se = null, Di(ge) === ee && (Me = new Me(X, q + "enter", De, c, ge), Me.target = Q, Me.relatedTarget = Pt, Se = Me), Pt = Se, Pe && De) t: {
|
|
10163
|
+
for (Me = Pe, X = De, q = 0, Q = Me; Q; Q = ws(Q)) q++;
|
|
10164
10164
|
for (Q = 0, Se = X; Se; Se = ws(Se)) Q++;
|
|
10165
10165
|
for (; 0 < q - Q; ) Me = ws(Me), q--;
|
|
10166
10166
|
for (; 0 < Q - q; ) X = ws(X), Q--;
|
|
@@ -10171,22 +10171,22 @@ function nI() {
|
|
|
10171
10171
|
Me = null;
|
|
10172
10172
|
}
|
|
10173
10173
|
else Me = null;
|
|
10174
|
-
|
|
10174
|
+
Pe !== null && sg(ye, pe, Pe, Me, !1), De !== null && Pt !== null && sg(ye, Pt, De, Me, !0);
|
|
10175
10175
|
}
|
|
10176
10176
|
}
|
|
10177
10177
|
e: {
|
|
10178
|
-
if (
|
|
10179
|
-
else if (B0(
|
|
10178
|
+
if (pe = ee ? Ns(ee) : window, Pe = pe.nodeName && pe.nodeName.toLowerCase(), Pe === "select" || Pe === "input" && pe.type === "file") var Ue = mv;
|
|
10179
|
+
else if (B0(pe)) if (H0) Ue = Tv;
|
|
10180
10180
|
else {
|
|
10181
10181
|
Ue = Ev;
|
|
10182
10182
|
var $e = gv;
|
|
10183
10183
|
}
|
|
10184
|
-
else (
|
|
10184
|
+
else (Pe = pe.nodeName) && Pe.toLowerCase() === "input" && (pe.type === "checkbox" || pe.type === "radio") && (Ue = yv);
|
|
10185
10185
|
if (Ue && (Ue = Ue(i, ee))) {
|
|
10186
10186
|
U0(ye, Ue, c, ge);
|
|
10187
10187
|
break e;
|
|
10188
10188
|
}
|
|
10189
|
-
$e && $e(i,
|
|
10189
|
+
$e && $e(i, pe, ee), i === "focusout" && ($e = pe._wrapperState) && $e.controlled && pe.type === "number" && Ze(pe, "number", pe.value);
|
|
10190
10190
|
}
|
|
10191
10191
|
switch ($e = ee ? Ns(ee) : window, i) {
|
|
10192
10192
|
case "focusin":
|
|
@@ -10377,7 +10377,7 @@ function nI() {
|
|
|
10377
10377
|
var h = i.stateNode;
|
|
10378
10378
|
if (o = o.childContextTypes, typeof h.getChildContext != "function") return c;
|
|
10379
10379
|
h = h.getChildContext();
|
|
10380
|
-
for (var E in h) if (!(E in o)) throw Error(n(108,
|
|
10380
|
+
for (var E in h) if (!(E in o)) throw Error(n(108, Ae(i) || "Unknown", E));
|
|
10381
10381
|
return C({}, c, h);
|
|
10382
10382
|
}
|
|
10383
10383
|
function Bu(i) {
|
|
@@ -10601,7 +10601,7 @@ function nI() {
|
|
|
10601
10601
|
}
|
|
10602
10602
|
return null;
|
|
10603
10603
|
}
|
|
10604
|
-
function
|
|
10604
|
+
function pe(X, q, Q, Se) {
|
|
10605
10605
|
var Ue = q !== null ? q.key : null;
|
|
10606
10606
|
if (typeof Q == "string" && Q !== "" || typeof Q == "number") return Ue !== null ? null : F(X, q, "" + Q, Se);
|
|
10607
10607
|
if (typeof Q == "object" && Q !== null) {
|
|
@@ -10611,7 +10611,7 @@ function nI() {
|
|
|
10611
10611
|
case D:
|
|
10612
10612
|
return Q.key === Ue ? ee(X, q, Q, Se) : null;
|
|
10613
10613
|
case ve:
|
|
10614
|
-
return Ue = Q._init,
|
|
10614
|
+
return Ue = Q._init, pe(
|
|
10615
10615
|
X,
|
|
10616
10616
|
q,
|
|
10617
10617
|
Ue(Q._payload),
|
|
@@ -10623,7 +10623,7 @@ function nI() {
|
|
|
10623
10623
|
}
|
|
10624
10624
|
return null;
|
|
10625
10625
|
}
|
|
10626
|
-
function
|
|
10626
|
+
function Pe(X, q, Q, Se, Ue) {
|
|
10627
10627
|
if (typeof Se == "string" && Se !== "" || typeof Se == "number") return X = X.get(Q) || null, F(q, X, "" + Se, Ue);
|
|
10628
10628
|
if (typeof Se == "object" && Se !== null) {
|
|
10629
10629
|
switch (Se.$$typeof) {
|
|
@@ -10633,7 +10633,7 @@ function nI() {
|
|
|
10633
10633
|
return X = X.get(Se.key === null ? Q : Se.key) || null, ee(q, X, Se, Ue);
|
|
10634
10634
|
case ve:
|
|
10635
10635
|
var $e = Se._init;
|
|
10636
|
-
return
|
|
10636
|
+
return Pe(X, q, Q, $e(Se._payload), Ue);
|
|
10637
10637
|
}
|
|
10638
10638
|
if (ct(Se) || oe(Se)) return X = X.get(Q) || null, ge(q, X, Se, Ue, null);
|
|
10639
10639
|
zu(q, Se);
|
|
@@ -10643,7 +10643,7 @@ function nI() {
|
|
|
10643
10643
|
function De(X, q, Q, Se) {
|
|
10644
10644
|
for (var Ue = null, $e = null, ze = q, We = q = 0, qt = null; ze !== null && We < Q.length; We++) {
|
|
10645
10645
|
ze.index > We ? (qt = ze, ze = null) : qt = ze.sibling;
|
|
10646
|
-
var at =
|
|
10646
|
+
var at = pe(X, ze, Q[We], Se);
|
|
10647
10647
|
if (at === null) {
|
|
10648
10648
|
ze === null && (ze = qt);
|
|
10649
10649
|
break;
|
|
@@ -10655,7 +10655,7 @@ function nI() {
|
|
|
10655
10655
|
for (; We < Q.length; We++) ze = ye(X, Q[We], Se), ze !== null && (q = T(ze, q, We), $e === null ? Ue = ze : $e.sibling = ze, $e = ze);
|
|
10656
10656
|
return St && Bi(X, We), Ue;
|
|
10657
10657
|
}
|
|
10658
|
-
for (ze = h(X, ze); We < Q.length; We++) qt =
|
|
10658
|
+
for (ze = h(X, ze); We < Q.length; We++) qt = Pe(ze, X, We, Q[We], Se), qt !== null && (i && qt.alternate !== null && ze.delete(qt.key === null ? We : qt.key), q = T(qt, q, We), $e === null ? Ue = qt : $e.sibling = qt, $e = qt);
|
|
10659
10659
|
return i && ze.forEach(function(mi) {
|
|
10660
10660
|
return o(X, mi);
|
|
10661
10661
|
}), St && Bi(X, We), Ue;
|
|
@@ -10666,7 +10666,7 @@ function nI() {
|
|
|
10666
10666
|
if (Q = Ue.call(Q), Q == null) throw Error(n(151));
|
|
10667
10667
|
for (var $e = Ue = null, ze = q, We = q = 0, qt = null, at = Q.next(); ze !== null && !at.done; We++, at = Q.next()) {
|
|
10668
10668
|
ze.index > We ? (qt = ze, ze = null) : qt = ze.sibling;
|
|
10669
|
-
var mi =
|
|
10669
|
+
var mi = pe(X, ze, at.value, Se);
|
|
10670
10670
|
if (mi === null) {
|
|
10671
10671
|
ze === null && (ze = qt);
|
|
10672
10672
|
break;
|
|
@@ -10681,7 +10681,7 @@ function nI() {
|
|
|
10681
10681
|
for (; !at.done; We++, at = Q.next()) at = ye(X, at.value, Se), at !== null && (q = T(at, q, We), $e === null ? Ue = at : $e.sibling = at, $e = at);
|
|
10682
10682
|
return St && Bi(X, We), Ue;
|
|
10683
10683
|
}
|
|
10684
|
-
for (ze = h(X, ze); !at.done; We++, at = Q.next()) at =
|
|
10684
|
+
for (ze = h(X, ze); !at.done; We++, at = Q.next()) at = Pe(ze, X, We, at.value, Se), at !== null && (i && at.alternate !== null && ze.delete(at.key === null ? We : at.key), q = T(at, q, We), $e === null ? Ue = at : $e.sibling = at, $e = at);
|
|
10685
10685
|
return i && ze.forEach(function(hA) {
|
|
10686
10686
|
return o(X, hA);
|
|
10687
10687
|
}), St && Bi(X, We), Ue;
|
|
@@ -10833,10 +10833,10 @@ function nI() {
|
|
|
10833
10833
|
var ye = E.baseState;
|
|
10834
10834
|
A = 0, ge = ee = z = null, F = T;
|
|
10835
10835
|
do {
|
|
10836
|
-
var
|
|
10837
|
-
if ((h &
|
|
10836
|
+
var pe = F.lane, Pe = F.eventTime;
|
|
10837
|
+
if ((h & pe) === pe) {
|
|
10838
10838
|
ge !== null && (ge = ge.next = {
|
|
10839
|
-
eventTime:
|
|
10839
|
+
eventTime: Pe,
|
|
10840
10840
|
lane: 0,
|
|
10841
10841
|
tag: F.tag,
|
|
10842
10842
|
payload: F.payload,
|
|
@@ -10845,10 +10845,10 @@ function nI() {
|
|
|
10845
10845
|
});
|
|
10846
10846
|
e: {
|
|
10847
10847
|
var De = i, Me = F;
|
|
10848
|
-
switch (
|
|
10848
|
+
switch (pe = o, Pe = c, Me.tag) {
|
|
10849
10849
|
case 1:
|
|
10850
10850
|
if (De = Me.payload, typeof De == "function") {
|
|
10851
|
-
ye = De.call(
|
|
10851
|
+
ye = De.call(Pe, ye, pe);
|
|
10852
10852
|
break e;
|
|
10853
10853
|
}
|
|
10854
10854
|
ye = De;
|
|
@@ -10856,18 +10856,18 @@ function nI() {
|
|
|
10856
10856
|
case 3:
|
|
10857
10857
|
De.flags = De.flags & -65537 | 128;
|
|
10858
10858
|
case 0:
|
|
10859
|
-
if (De = Me.payload,
|
|
10860
|
-
ye = C({}, ye,
|
|
10859
|
+
if (De = Me.payload, pe = typeof De == "function" ? De.call(Pe, ye, pe) : De, pe == null) break e;
|
|
10860
|
+
ye = C({}, ye, pe);
|
|
10861
10861
|
break e;
|
|
10862
10862
|
case 2:
|
|
10863
10863
|
ai = !0;
|
|
10864
10864
|
}
|
|
10865
10865
|
}
|
|
10866
|
-
F.callback !== null && F.lane !== 0 && (i.flags |= 64,
|
|
10867
|
-
} else
|
|
10866
|
+
F.callback !== null && F.lane !== 0 && (i.flags |= 64, pe = E.effects, pe === null ? E.effects = [F] : pe.push(F));
|
|
10867
|
+
} else Pe = { eventTime: Pe, lane: pe, tag: F.tag, payload: F.payload, callback: F.callback, next: null }, ge === null ? (ee = ge = Pe, z = ye) : ge = ge.next = Pe, A |= pe;
|
|
10868
10868
|
if (F = F.next, F === null) {
|
|
10869
10869
|
if (F = E.shared.pending, F === null) break;
|
|
10870
|
-
|
|
10870
|
+
pe = F, F = pe.next, pe.next = null, E.lastBaseUpdate = pe, E.shared.pending = null;
|
|
10871
10871
|
}
|
|
10872
10872
|
} while (!0);
|
|
10873
10873
|
if (ge === null && (z = ye), E.baseState = z, E.firstBaseUpdate = ee, E.lastBaseUpdate = ge, o = E.shared.interleaved, o !== null) {
|
|
@@ -11330,7 +11330,7 @@ function nI() {
|
|
|
11330
11330
|
try {
|
|
11331
11331
|
var c = "", h = o;
|
|
11332
11332
|
do
|
|
11333
|
-
c +=
|
|
11333
|
+
c += ke(h), h = h.return;
|
|
11334
11334
|
while (h);
|
|
11335
11335
|
var E = c;
|
|
11336
11336
|
} catch (T) {
|
|
@@ -11457,14 +11457,14 @@ Error generating stack: ` + T.message + `
|
|
|
11457
11457
|
typeof ee == "object" && ee !== null ? ee = jn(ee) : (ee = yn(c) ? Mi : en.current, ee = Is(o, ee));
|
|
11458
11458
|
var ge = c.getDerivedStateFromProps, ye = typeof ge == "function" || typeof A.getSnapshotBeforeUpdate == "function";
|
|
11459
11459
|
ye || typeof A.UNSAFE_componentWillReceiveProps != "function" && typeof A.componentWillReceiveProps != "function" || (F !== h || z !== ee) && Xg(o, A, h, ee), ai = !1;
|
|
11460
|
-
var
|
|
11461
|
-
A.state =
|
|
11460
|
+
var pe = o.memoizedState;
|
|
11461
|
+
A.state = pe, Wu(o, h, A, E), z = o.memoizedState, F !== h || pe !== z || En.current || ai ? (typeof ge == "function" && (cf(o, c, ge, h), z = o.memoizedState), (F = ai || Wg(o, c, F, h, pe, z, ee)) ? (ye || typeof A.UNSAFE_componentWillMount != "function" && typeof A.componentWillMount != "function" || (typeof A.componentWillMount == "function" && A.componentWillMount(), typeof A.UNSAFE_componentWillMount == "function" && A.UNSAFE_componentWillMount()), typeof A.componentDidMount == "function" && (o.flags |= 4194308)) : (typeof A.componentDidMount == "function" && (o.flags |= 4194308), o.memoizedProps = h, o.memoizedState = z), A.props = h, A.state = z, A.context = ee, h = F) : (typeof A.componentDidMount == "function" && (o.flags |= 4194308), h = !1);
|
|
11462
11462
|
} else {
|
|
11463
|
-
A = o.stateNode, bg(i, o), F = o.memoizedProps, ee = o.type === o.elementType ? F : Jn(o.type, F), A.props = ee, ye = o.pendingProps,
|
|
11464
|
-
var
|
|
11465
|
-
(ge = typeof
|
|
11463
|
+
A = o.stateNode, bg(i, o), F = o.memoizedProps, ee = o.type === o.elementType ? F : Jn(o.type, F), A.props = ee, ye = o.pendingProps, pe = A.context, z = c.contextType, typeof z == "object" && z !== null ? z = jn(z) : (z = yn(c) ? Mi : en.current, z = Is(o, z));
|
|
11464
|
+
var Pe = c.getDerivedStateFromProps;
|
|
11465
|
+
(ge = typeof Pe == "function" || typeof A.getSnapshotBeforeUpdate == "function") || typeof A.UNSAFE_componentWillReceiveProps != "function" && typeof A.componentWillReceiveProps != "function" || (F !== ye || pe !== z) && Xg(o, A, h, z), ai = !1, pe = o.memoizedState, A.state = pe, Wu(o, h, A, E);
|
|
11466
11466
|
var De = o.memoizedState;
|
|
11467
|
-
F !== ye ||
|
|
11467
|
+
F !== ye || pe !== De || En.current || ai ? (typeof Pe == "function" && (cf(o, c, Pe, h), De = o.memoizedState), (ee = ai || Wg(o, c, ee, h, pe, De, z) || !1) ? (ge || typeof A.UNSAFE_componentWillUpdate != "function" && typeof A.componentWillUpdate != "function" || (typeof A.componentWillUpdate == "function" && A.componentWillUpdate(h, De, z), typeof A.UNSAFE_componentWillUpdate == "function" && A.UNSAFE_componentWillUpdate(h, De, z)), typeof A.componentDidUpdate == "function" && (o.flags |= 4), typeof A.getSnapshotBeforeUpdate == "function" && (o.flags |= 1024)) : (typeof A.componentDidUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 4), typeof A.getSnapshotBeforeUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 1024), o.memoizedProps = h, o.memoizedState = De), A.props = h, A.state = De, A.context = z, h = ee) : (typeof A.componentDidUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 4), typeof A.getSnapshotBeforeUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 1024), h = !1);
|
|
11468
11468
|
}
|
|
11469
11469
|
return mf(i, o, c, h, T, E);
|
|
11470
11470
|
}
|
|
@@ -11828,7 +11828,7 @@ Error generating stack: ` + T.message + `
|
|
|
11828
11828
|
} else {
|
|
11829
11829
|
A = E.nodeType === 9 ? E : E.ownerDocument, i === "http://www.w3.org/1999/xhtml" && (i = ae(c)), i === "http://www.w3.org/1999/xhtml" ? c === "script" ? (i = A.createElement("div"), i.innerHTML = "<script><\/script>", i = i.removeChild(i.firstChild)) : typeof h.is == "string" ? i = A.createElement(c, { is: h.is }) : (i = A.createElement(c), c === "select" && (A = i, h.multiple ? A.multiple = !0 : h.size && (A.size = h.size))) : i = A.createElementNS(i, c), i[hr] = o, i[ea] = h, f1(i, o, !1, !1), o.stateNode = i;
|
|
11830
11830
|
e: {
|
|
11831
|
-
switch (A =
|
|
11831
|
+
switch (A = Je(c, h), c) {
|
|
11832
11832
|
case "dialog":
|
|
11833
11833
|
yt("cancel", i), yt("close", i), E = h;
|
|
11834
11834
|
break;
|
|
@@ -12045,16 +12045,16 @@ Error generating stack: ` + T.message + `
|
|
|
12045
12045
|
c = null;
|
|
12046
12046
|
break e;
|
|
12047
12047
|
}
|
|
12048
|
-
var A = 0, F = -1, z = -1, ee = 0, ge = 0, ye = i,
|
|
12048
|
+
var A = 0, F = -1, z = -1, ee = 0, ge = 0, ye = i, pe = null;
|
|
12049
12049
|
t: for (; ; ) {
|
|
12050
|
-
for (var
|
|
12051
|
-
|
|
12050
|
+
for (var Pe; ye !== c || E !== 0 && ye.nodeType !== 3 || (F = A + E), ye !== T || h !== 0 && ye.nodeType !== 3 || (z = A + h), ye.nodeType === 3 && (A += ye.nodeValue.length), (Pe = ye.firstChild) !== null; )
|
|
12051
|
+
pe = ye, ye = Pe;
|
|
12052
12052
|
for (; ; ) {
|
|
12053
12053
|
if (ye === i) break t;
|
|
12054
|
-
if (
|
|
12055
|
-
ye =
|
|
12054
|
+
if (pe === c && ++ee === E && (F = A), pe === T && ++ge === h && (z = A), (Pe = ye.nextSibling) !== null) break;
|
|
12055
|
+
ye = pe, pe = ye.parentNode;
|
|
12056
12056
|
}
|
|
12057
|
-
ye =
|
|
12057
|
+
ye = Pe;
|
|
12058
12058
|
}
|
|
12059
12059
|
c = F === -1 || z === -1 ? null : { start: F, end: z };
|
|
12060
12060
|
} else c = null;
|
|
@@ -12291,8 +12291,8 @@ Error generating stack: ` + T.message + `
|
|
|
12291
12291
|
if (h & 4 && (E = i.stateNode, E != null)) {
|
|
12292
12292
|
var T = i.memoizedProps, A = c !== null ? c.memoizedProps : T, F = i.type, z = i.updateQueue;
|
|
12293
12293
|
if (i.updateQueue = null, z !== null) try {
|
|
12294
|
-
F === "input" && T.type === "radio" && T.name != null && He(E, T),
|
|
12295
|
-
var ee =
|
|
12294
|
+
F === "input" && T.type === "radio" && T.name != null && He(E, T), Je(F, A);
|
|
12295
|
+
var ee = Je(F, T);
|
|
12296
12296
|
for (A = 0; A < z.length; A += 2) {
|
|
12297
12297
|
var ge = z[A], ye = z[A + 1];
|
|
12298
12298
|
ge === "style" ? Oe(E, ye) : ge === "dangerouslySetInnerHTML" ? Ke(E, ye) : ge === "children" ? rt(E, ye) : O(E, ge, ye, ee);
|
|
@@ -12305,10 +12305,10 @@ Error generating stack: ` + T.message + `
|
|
|
12305
12305
|
Pi(E, T);
|
|
12306
12306
|
break;
|
|
12307
12307
|
case "select":
|
|
12308
|
-
var
|
|
12308
|
+
var pe = E._wrapperState.wasMultiple;
|
|
12309
12309
|
E._wrapperState.wasMultiple = !!T.multiple;
|
|
12310
|
-
var
|
|
12311
|
-
|
|
12310
|
+
var Pe = T.value;
|
|
12311
|
+
Pe != null ? Ot(E, !!T.multiple, Pe, !1) : pe !== !!T.multiple && (T.defaultValue != null ? Ot(
|
|
12312
12312
|
E,
|
|
12313
12313
|
!!T.multiple,
|
|
12314
12314
|
T.defaultValue,
|
|
@@ -12349,18 +12349,18 @@ Error generating stack: ` + T.message + `
|
|
|
12349
12349
|
if (ge = c !== null && c.memoizedState !== null, i.mode & 1 ? (rn = (ee = rn) || ge, er(o, i), rn = ee) : er(o, i), gr(i), h & 8192) {
|
|
12350
12350
|
if (ee = i.memoizedState !== null, (i.stateNode.isHidden = ee) && !ge && (i.mode & 1) !== 0) for (Re = i, ge = i.child; ge !== null; ) {
|
|
12351
12351
|
for (ye = Re = ge; Re !== null; ) {
|
|
12352
|
-
switch (
|
|
12352
|
+
switch (pe = Re, Pe = pe.child, pe.tag) {
|
|
12353
12353
|
case 0:
|
|
12354
12354
|
case 11:
|
|
12355
12355
|
case 14:
|
|
12356
12356
|
case 15:
|
|
12357
|
-
da(4,
|
|
12357
|
+
da(4, pe, pe.return);
|
|
12358
12358
|
break;
|
|
12359
12359
|
case 1:
|
|
12360
|
-
Us(
|
|
12361
|
-
var De =
|
|
12360
|
+
Us(pe, pe.return);
|
|
12361
|
+
var De = pe.stateNode;
|
|
12362
12362
|
if (typeof De.componentWillUnmount == "function") {
|
|
12363
|
-
h =
|
|
12363
|
+
h = pe, c = pe.return;
|
|
12364
12364
|
try {
|
|
12365
12365
|
o = h, De.props = o.memoizedProps, De.state = o.memoizedState, De.componentWillUnmount();
|
|
12366
12366
|
} catch (Me) {
|
|
@@ -12369,15 +12369,15 @@ Error generating stack: ` + T.message + `
|
|
|
12369
12369
|
}
|
|
12370
12370
|
break;
|
|
12371
12371
|
case 5:
|
|
12372
|
-
Us(
|
|
12372
|
+
Us(pe, pe.return);
|
|
12373
12373
|
break;
|
|
12374
12374
|
case 22:
|
|
12375
|
-
if (
|
|
12375
|
+
if (pe.memoizedState !== null) {
|
|
12376
12376
|
v1(ye);
|
|
12377
12377
|
continue;
|
|
12378
12378
|
}
|
|
12379
12379
|
}
|
|
12380
|
-
|
|
12380
|
+
Pe !== null ? (Pe.return = pe, Re = Pe) : v1(ye);
|
|
12381
12381
|
}
|
|
12382
12382
|
ge = ge.sibling;
|
|
12383
12383
|
}
|
|
@@ -12559,8 +12559,8 @@ Error generating stack: ` + T.message + `
|
|
|
12559
12559
|
throw Error(n(163));
|
|
12560
12560
|
}
|
|
12561
12561
|
rn || o.flags & 512 && bf(o);
|
|
12562
|
-
} catch (
|
|
12563
|
-
It(o, o.return,
|
|
12562
|
+
} catch (pe) {
|
|
12563
|
+
It(o, o.return, pe);
|
|
12564
12564
|
}
|
|
12565
12565
|
}
|
|
12566
12566
|
if (o === i) {
|
|
@@ -12898,12 +12898,12 @@ Error generating stack: ` + T.message + `
|
|
|
12898
12898
|
if (o = Qt, F.flags |= 32768, z !== null && typeof z == "object" && typeof z.then == "function") {
|
|
12899
12899
|
var ee = z, ge = F, ye = ge.tag;
|
|
12900
12900
|
if ((ge.mode & 1) === 0 && (ye === 0 || ye === 11 || ye === 15)) {
|
|
12901
|
-
var
|
|
12902
|
-
|
|
12901
|
+
var pe = ge.alternate;
|
|
12902
|
+
pe ? (ge.updateQueue = pe.updateQueue, ge.memoizedState = pe.memoizedState, ge.lanes = pe.lanes) : (ge.updateQueue = null, ge.memoizedState = null);
|
|
12903
12903
|
}
|
|
12904
|
-
var
|
|
12905
|
-
if (
|
|
12906
|
-
|
|
12904
|
+
var Pe = Zg(A);
|
|
12905
|
+
if (Pe !== null) {
|
|
12906
|
+
Pe.flags &= -257, e1(Pe, A, F, T, o), Pe.mode & 1 && Jg(T, ee, o), o = Pe, z = ee;
|
|
12907
12907
|
var De = o.updateQueue;
|
|
12908
12908
|
if (De === null) {
|
|
12909
12909
|
var Me = /* @__PURE__ */ new Set();
|
|
@@ -13074,16 +13074,16 @@ Error generating stack: ` + T.message + `
|
|
|
13074
13074
|
if (ye !== null) ye.return = ge, Re = ye;
|
|
13075
13075
|
else for (; Re !== null; ) {
|
|
13076
13076
|
ge = Re;
|
|
13077
|
-
var
|
|
13077
|
+
var pe = ge.sibling, Pe = ge.return;
|
|
13078
13078
|
if (g1(ge), ge === ee) {
|
|
13079
13079
|
Re = null;
|
|
13080
13080
|
break;
|
|
13081
13081
|
}
|
|
13082
|
-
if (
|
|
13083
|
-
|
|
13082
|
+
if (pe !== null) {
|
|
13083
|
+
pe.return = Pe, Re = pe;
|
|
13084
13084
|
break;
|
|
13085
13085
|
}
|
|
13086
|
-
Re =
|
|
13086
|
+
Re = Pe;
|
|
13087
13087
|
}
|
|
13088
13088
|
}
|
|
13089
13089
|
}
|
|
@@ -17043,8 +17043,8 @@ function d3(e, t, n) {
|
|
|
17043
17043
|
}
|
|
17044
17044
|
function w(P) {
|
|
17045
17045
|
if (P === null || P === 47 || P === 62 || mt(P)) {
|
|
17046
|
-
const xe = P === 47,
|
|
17047
|
-
return !xe && !a && ty.includes(
|
|
17046
|
+
const xe = P === 47, ke = u.toLowerCase();
|
|
17047
|
+
return !xe && !a && ty.includes(ke) ? (s = 1, r.interrupt ? t(P) : te(P)) : o3.includes(u.toLowerCase()) ? (s = 6, xe ? (e.consume(P), v) : r.interrupt ? t(P) : te(P)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : a ? N(P) : O(P));
|
|
17048
17048
|
}
|
|
17049
17049
|
return P === 45 || on(P) ? (e.consume(P), u += String.fromCharCode(P), w) : n(P);
|
|
17050
17050
|
}
|
|
@@ -17839,39 +17839,39 @@ function nP(e, t, n) {
|
|
|
17839
17839
|
fe
|
|
17840
17840
|
])
|
|
17841
17841
|
) : M(fe);
|
|
17842
|
-
function M(
|
|
17843
|
-
return
|
|
17844
|
-
function
|
|
17845
|
-
const qe = Fe !== null &&
|
|
17842
|
+
function M(he) {
|
|
17843
|
+
return Ae;
|
|
17844
|
+
function Ae(Fe) {
|
|
17845
|
+
const qe = Fe !== null && he[Fe], Qe = Fe !== null && he.null, ft = [
|
|
17846
17846
|
// To do: add more extension tests.
|
|
17847
17847
|
/* c8 ignore next 2 */
|
|
17848
17848
|
...Array.isArray(qe) ? qe : qe ? [qe] : [],
|
|
17849
|
-
...Array.isArray(
|
|
17849
|
+
...Array.isArray(Qe) ? Qe : Qe ? [Qe] : []
|
|
17850
17850
|
];
|
|
17851
17851
|
return Z(ft)(Fe);
|
|
17852
17852
|
}
|
|
17853
17853
|
}
|
|
17854
|
-
function Z(
|
|
17855
|
-
return de =
|
|
17854
|
+
function Z(he) {
|
|
17855
|
+
return de = he, W = 0, he.length === 0 ? ve : P(he[W]);
|
|
17856
17856
|
}
|
|
17857
|
-
function P(
|
|
17858
|
-
return
|
|
17859
|
-
function
|
|
17860
|
-
return C = se(), oe =
|
|
17857
|
+
function P(he) {
|
|
17858
|
+
return Ae;
|
|
17859
|
+
function Ae(Fe) {
|
|
17860
|
+
return C = se(), oe = he, he.partial || (f.currentConstruct = he), he.name && f.parser.constructs.disable.null.includes(he.name) ? ke() : he.tokenize.call(
|
|
17861
17861
|
// If we do have fields, create an object w/ `context` as its
|
|
17862
17862
|
// prototype.
|
|
17863
17863
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
17864
17864
|
te ? Object.assign(Object.create(f), te) : f,
|
|
17865
17865
|
d,
|
|
17866
17866
|
xe,
|
|
17867
|
-
|
|
17867
|
+
ke
|
|
17868
17868
|
)(Fe);
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
|
-
function xe(
|
|
17871
|
+
function xe(he) {
|
|
17872
17872
|
return ie(oe, C), ue;
|
|
17873
17873
|
}
|
|
17874
|
-
function
|
|
17874
|
+
function ke(he) {
|
|
17875
17875
|
return C.restore(), ++W < de.length ? P(de[W]) : ve;
|
|
17876
17876
|
}
|
|
17877
17877
|
}
|
|
@@ -18036,7 +18036,7 @@ function fP(e) {
|
|
|
18036
18036
|
autolinkProtocol: se,
|
|
18037
18037
|
autolinkEmail: se,
|
|
18038
18038
|
atxHeading: a(Nt),
|
|
18039
|
-
blockQuote: a(
|
|
18039
|
+
blockQuote: a(Qe),
|
|
18040
18040
|
characterEscape: se,
|
|
18041
18041
|
characterReference: se,
|
|
18042
18042
|
codeFenced: a(ft),
|
|
@@ -18082,10 +18082,10 @@ function fP(e) {
|
|
|
18082
18082
|
autolinkProtocol: Fe,
|
|
18083
18083
|
blockQuote: d(),
|
|
18084
18084
|
characterEscapeValue: H,
|
|
18085
|
-
characterReferenceMarkerHexadecimal:
|
|
18086
|
-
characterReferenceMarkerNumeric:
|
|
18087
|
-
characterReferenceValue:
|
|
18088
|
-
characterReference:
|
|
18085
|
+
characterReferenceMarkerHexadecimal: ke,
|
|
18086
|
+
characterReferenceMarkerNumeric: ke,
|
|
18087
|
+
characterReferenceValue: he,
|
|
18088
|
+
characterReference: Ae,
|
|
18089
18089
|
codeFenced: d(w),
|
|
18090
18090
|
codeFencedFence: x,
|
|
18091
18091
|
codeFencedFenceInfo: y,
|
|
@@ -18204,25 +18204,25 @@ function fP(e) {
|
|
|
18204
18204
|
}
|
|
18205
18205
|
if (!rt && Le[0] === "enter" && Le[1].type === "listItemPrefix" || rt === -1 && Le[0] === "exit" && (Le[1].type === "listUnordered" || Le[1].type === "listOrdered")) {
|
|
18206
18206
|
if (we) {
|
|
18207
|
-
let
|
|
18208
|
-
for (Ce = void 0;
|
|
18209
|
-
const vt = ae[
|
|
18207
|
+
let Je = Ke;
|
|
18208
|
+
for (Ce = void 0; Je--; ) {
|
|
18209
|
+
const vt = ae[Je];
|
|
18210
18210
|
if (vt[1].type === "lineEnding" || vt[1].type === "lineEndingBlank") {
|
|
18211
18211
|
if (vt[0] === "exit") continue;
|
|
18212
|
-
Ce && (ae[Ce][1].type = "lineEndingBlank", re = !0), vt[1].type = "lineEnding", Ce =
|
|
18212
|
+
Ce && (ae[Ce][1].type = "lineEndingBlank", re = !0), vt[1].type = "lineEnding", Ce = Je;
|
|
18213
18213
|
} else if (!(vt[1].type === "linePrefix" || vt[1].type === "blockQuotePrefix" || vt[1].type === "blockQuotePrefixWhitespace" || vt[1].type === "blockQuoteMarker" || vt[1].type === "listItemIndent")) break;
|
|
18214
18214
|
}
|
|
18215
18215
|
Oe && (!Ce || Oe < Ce) && (we._spread = !0), we.end = Object.assign({}, Ce ? ae[Ce][1].start : Le[1].end), ae.splice(Ce || Ke, 0, ["exit", we, Le[2]]), Ke++, je++;
|
|
18216
18216
|
}
|
|
18217
18217
|
if (Le[1].type === "listItemPrefix") {
|
|
18218
|
-
const
|
|
18218
|
+
const Je = {
|
|
18219
18219
|
type: "listItem",
|
|
18220
18220
|
_spread: !1,
|
|
18221
18221
|
start: Object.assign({}, Le[1].start),
|
|
18222
18222
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
18223
18223
|
end: void 0
|
|
18224
18224
|
};
|
|
18225
|
-
we =
|
|
18225
|
+
we = Je, ae.splice(Ke, 0, ["enter", Je, Le[2]]), Ke++, je++, Oe = void 0, Ee = !0;
|
|
18226
18226
|
}
|
|
18227
18227
|
}
|
|
18228
18228
|
}
|
|
@@ -18408,17 +18408,17 @@ function fP(e) {
|
|
|
18408
18408
|
const be = this.resume(), je = this.stack[this.stack.length - 1];
|
|
18409
18409
|
je.label = be, je.identifier = sr(this.sliceSerialize(ae)).toLowerCase(), this.data.referenceType = "full";
|
|
18410
18410
|
}
|
|
18411
|
-
function
|
|
18411
|
+
function ke(ae) {
|
|
18412
18412
|
this.data.characterReferenceType = ae.type;
|
|
18413
18413
|
}
|
|
18414
|
-
function
|
|
18414
|
+
function he(ae) {
|
|
18415
18415
|
const be = this.sliceSerialize(ae), je = this.data.characterReferenceType;
|
|
18416
18416
|
let Ke;
|
|
18417
18417
|
je ? (Ke = SS(be, je === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ke = am(be);
|
|
18418
18418
|
const rt = this.stack[this.stack.length - 1];
|
|
18419
18419
|
rt.value += Ke;
|
|
18420
18420
|
}
|
|
18421
|
-
function
|
|
18421
|
+
function Ae(ae) {
|
|
18422
18422
|
const be = this.stack.pop();
|
|
18423
18423
|
be.position.end = yi(ae.end);
|
|
18424
18424
|
}
|
|
@@ -18432,7 +18432,7 @@ function fP(e) {
|
|
|
18432
18432
|
const be = this.stack[this.stack.length - 1];
|
|
18433
18433
|
be.url = "mailto:" + this.sliceSerialize(ae);
|
|
18434
18434
|
}
|
|
18435
|
-
function
|
|
18435
|
+
function Qe() {
|
|
18436
18436
|
return {
|
|
18437
18437
|
type: "blockquote",
|
|
18438
18438
|
children: []
|
|
@@ -28481,23 +28481,23 @@ function Gc(e, t = {}) {
|
|
|
28481
28481
|
}, []);
|
|
28482
28482
|
const se = () => "ref" in D ? D.ref.current : D.get(), H = (de) => {
|
|
28483
28483
|
queueMicrotask(() => {
|
|
28484
|
-
var P, xe,
|
|
28484
|
+
var P, xe, ke, he, Ae;
|
|
28485
28485
|
if (J.current !== Qs.Started) return;
|
|
28486
28486
|
p.current = _.current, _.current = de;
|
|
28487
28487
|
let W = se();
|
|
28488
28488
|
const oe = (
|
|
28489
28489
|
// @ts-ignore
|
|
28490
|
-
(
|
|
28490
|
+
(ke = (P = e.states[W].on) == null ? void 0 : P[de.type]) != null ? ke : (
|
|
28491
28491
|
// @ts-ignore
|
|
28492
28492
|
(xe = e.on) == null ? void 0 : xe[de.type]
|
|
28493
28493
|
)
|
|
28494
28494
|
), C = $(oe);
|
|
28495
28495
|
if (!C) return;
|
|
28496
28496
|
m.current = C;
|
|
28497
|
-
const M = (
|
|
28497
|
+
const M = (he = C.target) != null ? he : W;
|
|
28498
28498
|
r("transition", de.type, C.target || W, `(${C.actions})`);
|
|
28499
28499
|
const Z = M !== W;
|
|
28500
|
-
Z ? Eo.flushSync(() => D.set(M)) : C.reenter && !Z ? D.invoke(W, W) : v((
|
|
28500
|
+
Z ? Eo.flushSync(() => D.set(M)) : C.reenter && !Z ? D.invoke(W, W) : v((Ae = C.actions) != null ? Ae : []);
|
|
28501
28501
|
});
|
|
28502
28502
|
};
|
|
28503
28503
|
return (ve = e.watch) == null || ve.call(e, w()), {
|
|
@@ -36691,8 +36691,8 @@ const x7 = ({
|
|
|
36691
36691
|
openLinksInNewTab: n,
|
|
36692
36692
|
isCartMgmtSupported: r = !1
|
|
36693
36693
|
}) => {
|
|
36694
|
-
var
|
|
36695
|
-
const { addToCart: s, sendMessage: a, loading: u } = Bn(), { overrides: l, isInitialized: d } = ko(), f = Po(), m = e.data, p = (
|
|
36694
|
+
var Qe, ft, Ct, Zt, dn, Nt, He;
|
|
36695
|
+
const { addToCart: s, sendMessage: a, loading: u } = Bn(), { overrides: l, isInitialized: d } = ko(), f = Po(), m = e.data, p = (Qe = m.vattr) != null ? Qe : [], [_, y] = R.useState(
|
|
36696
36696
|
() => F7(m)
|
|
36697
36697
|
), S = L7(m.vmat, _), x = (Ct = (ft = m.quantity) == null ? void 0 : ft.minQuantity) != null ? Ct : 1, w = (dn = (Zt = m.quantity) == null ? void 0 : Zt.maxQuantity) != null ? dn : Number.POSITIVE_INFINITY, v = (He = (Nt = m.quantity) == null ? void 0 : Nt.increment) != null ? He : 1, [N, O] = R.useState(x), [$, G] = R.useState(!1), D = R.useRef(!1);
|
|
36698
36698
|
R.useEffect(() => {
|
|
@@ -36760,11 +36760,11 @@ const x7 = ({
|
|
|
36760
36760
|
quantity: N,
|
|
36761
36761
|
variants: Ye
|
|
36762
36762
|
});
|
|
36763
|
-
}, P = !S || N - v < x, xe = !S || N + v > w,
|
|
36763
|
+
}, P = !S || N - v < x, xe = !S || N + v > w, ke = (Ne) => {
|
|
36764
36764
|
var Ze;
|
|
36765
36765
|
const Ye = _[Ne.id];
|
|
36766
36766
|
return (Ze = Ne.opts.find((ct) => ct.val === Ye)) == null ? void 0 : Ze.name;
|
|
36767
|
-
},
|
|
36767
|
+
}, he = () => O((Ne) => Math.max(x, Ne - v)), Ae = () => O((Ne) => Math.min(w, Ne + v)), Fe = (Ne) => /* @__PURE__ */ b.jsxs(
|
|
36768
36768
|
"div",
|
|
36769
36769
|
{
|
|
36770
36770
|
className: B(t, `${I}-msg-pdp__variant`),
|
|
@@ -36778,7 +36778,7 @@ const x7 = ({
|
|
|
36778
36778
|
children: Ne.lbl || Ne.id
|
|
36779
36779
|
}
|
|
36780
36780
|
),
|
|
36781
|
-
|
|
36781
|
+
ke(Ne) && /* @__PURE__ */ b.jsx("span", { className: B(t, `${I}-msg-pdp__variant-value`), children: ke(Ne) })
|
|
36782
36782
|
] }),
|
|
36783
36783
|
/* @__PURE__ */ b.jsx(
|
|
36784
36784
|
"div",
|
|
@@ -36829,7 +36829,7 @@ const x7 = ({
|
|
|
36829
36829
|
children: Ne.lbl || "Color"
|
|
36830
36830
|
}
|
|
36831
36831
|
),
|
|
36832
|
-
|
|
36832
|
+
ke(Ne) && /* @__PURE__ */ b.jsx("span", { className: B(t, `${I}-msg-pdp__variant-value`), children: ke(Ne) })
|
|
36833
36833
|
] }),
|
|
36834
36834
|
/* @__PURE__ */ b.jsx(
|
|
36835
36835
|
"div",
|
|
@@ -36975,7 +36975,7 @@ const x7 = ({
|
|
|
36975
36975
|
ariaLabel: "Decrease quantity",
|
|
36976
36976
|
icon: /* @__PURE__ */ b.jsx(cI, {}),
|
|
36977
36977
|
disabled: P,
|
|
36978
|
-
onClick:
|
|
36978
|
+
onClick: he
|
|
36979
36979
|
}
|
|
36980
36980
|
),
|
|
36981
36981
|
/* @__PURE__ */ b.jsx(
|
|
@@ -36992,7 +36992,7 @@ const x7 = ({
|
|
|
36992
36992
|
ariaLabel: "Increase quantity",
|
|
36993
36993
|
icon: /* @__PURE__ */ b.jsx(dI, {}),
|
|
36994
36994
|
disabled: xe,
|
|
36995
|
-
onClick:
|
|
36995
|
+
onClick: Ae
|
|
36996
36996
|
}
|
|
36997
36997
|
)
|
|
36998
36998
|
] })
|
|
@@ -37159,14 +37159,14 @@ const x7 = ({
|
|
|
37159
37159
|
[e.response]
|
|
37160
37160
|
);
|
|
37161
37161
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: y.map((S, x) => {
|
|
37162
|
-
var w, v, N, O, $, G, D, V, J, se, H, ie, te, le, fe, ue, ve, de, W, oe, C, M, Z, P, xe;
|
|
37162
|
+
var w, v, N, O, $, G, D, V, J, se, H, ie, te, le, fe, ue, ve, de, W, oe, C, M, Z, P, xe, ke;
|
|
37163
37163
|
switch (S.type) {
|
|
37164
37164
|
case "markdown": {
|
|
37165
|
-
const
|
|
37166
|
-
return S.index === Ai && M_(
|
|
37165
|
+
const he = (v = (w = S.data) == null ? void 0 : w.content) != null ? v : "";
|
|
37166
|
+
return S.index === Ai && M_(he) ? null : /* @__PURE__ */ b.jsx(
|
|
37167
37167
|
Io,
|
|
37168
37168
|
{
|
|
37169
|
-
text:
|
|
37169
|
+
text: he,
|
|
37170
37170
|
globalClassName: n,
|
|
37171
37171
|
openLinksInNewTab: r,
|
|
37172
37172
|
showIsLoading: !1
|
|
@@ -37212,11 +37212,11 @@ const x7 = ({
|
|
|
37212
37212
|
`${S.type}-${(le = S.index) != null ? le : x}`
|
|
37213
37213
|
);
|
|
37214
37214
|
case "cart": {
|
|
37215
|
-
const
|
|
37216
|
-
return
|
|
37215
|
+
const he = (ve = (ue = (fe = S.data) == null ? void 0 : fe.cart) == null ? void 0 : ue.cartSummary) == null ? void 0 : ve.cartDetails;
|
|
37216
|
+
return he ? /* @__PURE__ */ b.jsx(
|
|
37217
37217
|
A7,
|
|
37218
37218
|
{
|
|
37219
|
-
cart:
|
|
37219
|
+
cart: he,
|
|
37220
37220
|
messageId: t,
|
|
37221
37221
|
productsToHighlight: S.data.products_to_highlight,
|
|
37222
37222
|
globalClassName: n,
|
|
@@ -37226,7 +37226,7 @@ const x7 = ({
|
|
|
37226
37226
|
) : null;
|
|
37227
37227
|
}
|
|
37228
37228
|
case "order_confirmation": {
|
|
37229
|
-
const Ae = (
|
|
37229
|
+
const he = S.data, Ae = (C = (W = he == null ? void 0 : he.order) == null ? void 0 : W.orderDetails) != null ? C : (oe = he == null ? void 0 : he.data) == null ? void 0 : oe.orderConfirmation;
|
|
37230
37230
|
return Ae ? /* @__PURE__ */ b.jsx(
|
|
37231
37231
|
N7,
|
|
37232
37232
|
{
|
|
@@ -37235,30 +37235,30 @@ const x7 = ({
|
|
|
37235
37235
|
openLinksInNewTab: r,
|
|
37236
37236
|
isWidgetStandalone: s
|
|
37237
37237
|
},
|
|
37238
|
-
`${S.type}-${(
|
|
37238
|
+
`${S.type}-${(M = S.index) != null ? M : x}`
|
|
37239
37239
|
) : null;
|
|
37240
37240
|
}
|
|
37241
37241
|
case "tool_results": {
|
|
37242
|
-
const
|
|
37243
|
-
if (!
|
|
37244
|
-
return f != null && f.isDevelopment && (
|
|
37245
|
-
`🦜 tool_results "${
|
|
37246
|
-
{ registeredKeys: Object.keys(m), payload:
|
|
37242
|
+
const he = S.data, Ae = S.output_name, Fe = p && Ae && Object.prototype.hasOwnProperty.call(m, Ae) ? m[Ae] : void 0, qe = typeof Fe == "string" ? Fe : void 0;
|
|
37243
|
+
if (!qe || !Ae)
|
|
37244
|
+
return f != null && f.isDevelopment && (Ae ? f.warn(
|
|
37245
|
+
`🦜 tool_results "${Ae}" rendered nothing — no override registered for that key. Register one in the overrides map: { "${Ae}": "<your-tag-name>" }.`,
|
|
37246
|
+
{ registeredKeys: Object.keys(m), payload: he }
|
|
37247
37247
|
) : f.warn("🦜 tool_results block has no output_name — nothing to route on", {
|
|
37248
|
-
payload:
|
|
37248
|
+
payload: he
|
|
37249
37249
|
})), null;
|
|
37250
|
-
const
|
|
37251
|
-
name:
|
|
37252
|
-
payload:
|
|
37250
|
+
const Qe = {
|
|
37251
|
+
name: Ae,
|
|
37252
|
+
payload: he,
|
|
37253
37253
|
api: _
|
|
37254
37254
|
};
|
|
37255
37255
|
return /* @__PURE__ */ b.jsx(
|
|
37256
37256
|
a7,
|
|
37257
37257
|
{
|
|
37258
|
-
overrideName:
|
|
37259
|
-
children: /* @__PURE__ */ b.jsx(Ro, { tagName:
|
|
37258
|
+
overrideName: Ae,
|
|
37259
|
+
children: /* @__PURE__ */ b.jsx(Ro, { tagName: qe, props: Qe, label: `toolResult:${Ae}` })
|
|
37260
37260
|
},
|
|
37261
|
-
`${S.type}-${
|
|
37261
|
+
`${S.type}-${Ae}-${(Z = S.index) != null ? Z : x}`
|
|
37262
37262
|
);
|
|
37263
37263
|
}
|
|
37264
37264
|
case "suggestions":
|
|
@@ -37266,12 +37266,12 @@ const x7 = ({
|
|
|
37266
37266
|
$9,
|
|
37267
37267
|
{
|
|
37268
37268
|
disabled: u || l,
|
|
37269
|
-
suggestions: (
|
|
37269
|
+
suggestions: (xe = (P = S.data) == null ? void 0 : P.display_text) != null ? xe : [],
|
|
37270
37270
|
globalClassName: n,
|
|
37271
37271
|
isWidgetStandalone: s,
|
|
37272
37272
|
onSuggestionClick: a
|
|
37273
37273
|
}
|
|
37274
|
-
) }, `${S.type}-${(
|
|
37274
|
+
) }, `${S.type}-${(ke = S.index) != null ? ke : x}`);
|
|
37275
37275
|
default:
|
|
37276
37276
|
return null;
|
|
37277
37277
|
}
|