@botpress/webchat 4.4.5 → 4.4.6
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/.turbo/turbo-build.log +6 -6
- package/dist/index.js +828 -823
- package/dist/index.umd.cjs +26 -26
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5679,12 +5679,12 @@ const ww = (e) => {
|
|
|
5679
5679
|
} catch {
|
|
5680
5680
|
return !1;
|
|
5681
5681
|
}
|
|
5682
|
-
}, xw = ["audio", "file", "image", "video"], Sw = (e) => xw.includes(e), kw = "The Client ID is required to initialize the webchat.",
|
|
5682
|
+
}, xw = ["audio", "file", "image", "video"], Sw = (e) => xw.includes(e), kw = "The Client ID is required to initialize the webchat.", ML = "The API url is required to initialize the webchat.", NL = "The Bot ID is required to initialize the webchat.", PL = "No config URL provided.", Ew = `Invalid API URL.
|
|
5683
5683
|
Please use a valid API URL.`, Cw = `Invalid Client ID.
|
|
5684
5684
|
Please use a valid Botpress Client ID.`, Aw = `Invalid URL.
|
|
5685
|
-
Please make sure your client ID and API URL are valid`,
|
|
5686
|
-
Please make sure your config URL is valid`,
|
|
5687
|
-
Please make sure your config file is valid`,
|
|
5685
|
+
Please make sure your client ID and API URL are valid`, LL = `Invalid config URL.
|
|
5686
|
+
Please make sure your config URL is valid`, _L = `Invalid webchat configuration.
|
|
5687
|
+
Please make sure your config file is valid`, FL = "Access denied to configuration file. Please check your credentials or your configuration URL and try again.", Tw = `This bot has temporarily paused.
|
|
5688
5688
|
Please check back later.`, Iw = `This bot has temporarily paused.
|
|
5689
5689
|
Please check back later.`, cp = "Something went wrong. To fix it, please clear your browser's local and session storage and then refresh the page", ws = "Please check your internet connection and refresh the page.", Ow = `You've been disconnected from the conversation.
|
|
5690
5690
|
Please refresh the page.`, Rw = `Unable to process the message.
|
|
@@ -15615,7 +15615,12 @@ const $T = [
|
|
|
15615
15615
|
const zT = [
|
|
15616
15616
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
15617
15617
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
15618
|
-
], Om = we("x", zT)
|
|
15618
|
+
], Om = we("x", zT);
|
|
15619
|
+
function HT() {
|
|
15620
|
+
const e = this.data();
|
|
15621
|
+
e.micromarkExtensions ?? (e.micromarkExtensions = []), e.micromarkExtensions.push({ disable: { null: ["codeIndented"] } });
|
|
15622
|
+
}
|
|
15623
|
+
const UT = ({ text: e }) => {
|
|
15619
15624
|
const {
|
|
15620
15625
|
message: {
|
|
15621
15626
|
blocks: { text: t }
|
|
@@ -15677,7 +15682,7 @@ const zT = [
|
|
|
15677
15682
|
br: ({ node: s, ...a }) => /* @__PURE__ */ T("br", { ...a, ...t.lineBreak }),
|
|
15678
15683
|
pre: ({ node: s, ...a }) => {
|
|
15679
15684
|
var m, p;
|
|
15680
|
-
const l = s == null ? void 0 : s.children[0], u =
|
|
15685
|
+
const l = s == null ? void 0 : s.children[0], u = jT(((p = (m = l == null ? void 0 : l.properties) == null ? void 0 : m.className) == null ? void 0 : p[0]) || ""), [f, c] = Te(!1), h = Se(null), d = () => {
|
|
15681
15686
|
if (!h.current) return;
|
|
15682
15687
|
const g = h.current.textContent || "";
|
|
15683
15688
|
navigator.clipboard.writeText(g).then(() => {
|
|
@@ -15703,15 +15708,15 @@ const zT = [
|
|
|
15703
15708
|
tr: ({ node: s, ...a }) => /* @__PURE__ */ T("tr", { ...a, ...t.tableRow }),
|
|
15704
15709
|
td: ({ node: s, ...a }) => /* @__PURE__ */ T("td", { ...a, ...t.tableData })
|
|
15705
15710
|
},
|
|
15706
|
-
remarkPlugins: [TA, kE],
|
|
15711
|
+
remarkPlugins: [HT, TA, kE],
|
|
15707
15712
|
children: e
|
|
15708
15713
|
}
|
|
15709
15714
|
);
|
|
15710
|
-
},
|
|
15715
|
+
}, jT = (e) => {
|
|
15711
15716
|
if (!e) return "";
|
|
15712
15717
|
const t = e.match(/language-(\w+)/);
|
|
15713
15718
|
return t ? t[1] : "";
|
|
15714
|
-
},
|
|
15719
|
+
}, VT = {}, Ef = (e) => {
|
|
15715
15720
|
let t;
|
|
15716
15721
|
const n = /* @__PURE__ */ new Set(), r = (l, u) => {
|
|
15717
15722
|
const f = typeof l == "function" ? l(t) : l;
|
|
@@ -15720,12 +15725,12 @@ const zT = [
|
|
|
15720
15725
|
t = u ?? typeof f != "object" ? f : Object.assign({}, t, f), n.forEach((h) => h(t, c));
|
|
15721
15726
|
}
|
|
15722
15727
|
}, i = () => t, a = { setState: r, getState: i, subscribe: (l) => (n.add(l), () => n.delete(l)), destroy: () => {
|
|
15723
|
-
(
|
|
15728
|
+
(VT ? "production" : void 0) !== "production" && console.warn(
|
|
15724
15729
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
15725
15730
|
), n.clear();
|
|
15726
15731
|
} };
|
|
15727
15732
|
return t = e(r, i, a), a;
|
|
15728
|
-
},
|
|
15733
|
+
}, WT = (e) => e ? Ef(e) : Ef;
|
|
15729
15734
|
var Ya = { exports: {} }, _s = {}, Fi = { exports: {} }, Fs = {};
|
|
15730
15735
|
/**
|
|
15731
15736
|
* @license React
|
|
@@ -15737,7 +15742,7 @@ var Ya = { exports: {} }, _s = {}, Fi = { exports: {} }, Fs = {};
|
|
|
15737
15742
|
* LICENSE file in the root directory of this source tree.
|
|
15738
15743
|
*/
|
|
15739
15744
|
var Cf;
|
|
15740
|
-
function
|
|
15745
|
+
function qT() {
|
|
15741
15746
|
if (Cf) return Fs;
|
|
15742
15747
|
Cf = 1;
|
|
15743
15748
|
var e = yt;
|
|
@@ -15782,7 +15787,7 @@ var $s = {};
|
|
|
15782
15787
|
* LICENSE file in the root directory of this source tree.
|
|
15783
15788
|
*/
|
|
15784
15789
|
var Af;
|
|
15785
|
-
function
|
|
15790
|
+
function YT() {
|
|
15786
15791
|
return Af || (Af = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15787
15792
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
15788
15793
|
var e = yt, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -15854,7 +15859,7 @@ function qT() {
|
|
|
15854
15859
|
}
|
|
15855
15860
|
var Tf;
|
|
15856
15861
|
function Rm() {
|
|
15857
|
-
return Tf || (Tf = 1, process.env.NODE_ENV === "production" ? Fi.exports =
|
|
15862
|
+
return Tf || (Tf = 1, process.env.NODE_ENV === "production" ? Fi.exports = qT() : Fi.exports = YT()), Fi.exports;
|
|
15858
15863
|
}
|
|
15859
15864
|
/**
|
|
15860
15865
|
* @license React
|
|
@@ -15866,7 +15871,7 @@ function Rm() {
|
|
|
15866
15871
|
* LICENSE file in the root directory of this source tree.
|
|
15867
15872
|
*/
|
|
15868
15873
|
var If;
|
|
15869
|
-
function
|
|
15874
|
+
function KT() {
|
|
15870
15875
|
if (If) return _s;
|
|
15871
15876
|
If = 1;
|
|
15872
15877
|
var e = yt, t = Rm();
|
|
@@ -15917,7 +15922,7 @@ var Bs = {};
|
|
|
15917
15922
|
* LICENSE file in the root directory of this source tree.
|
|
15918
15923
|
*/
|
|
15919
15924
|
var Of;
|
|
15920
|
-
function
|
|
15925
|
+
function GT() {
|
|
15921
15926
|
return Of || (Of = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15922
15927
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
15923
15928
|
var e = yt, t = Rm();
|
|
@@ -15962,15 +15967,15 @@ function KT() {
|
|
|
15962
15967
|
Bs.useSyncExternalStoreWithSelector = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
15963
15968
|
}()), Bs;
|
|
15964
15969
|
}
|
|
15965
|
-
process.env.NODE_ENV === "production" ? Ya.exports =
|
|
15966
|
-
var
|
|
15967
|
-
const
|
|
15970
|
+
process.env.NODE_ENV === "production" ? Ya.exports = KT() : Ya.exports = GT();
|
|
15971
|
+
var QT = Ya.exports;
|
|
15972
|
+
const ZT = /* @__PURE__ */ Fn(QT), Dm = {}, { useSyncExternalStoreWithSelector: JT } = ZT;
|
|
15968
15973
|
let Rf = !1;
|
|
15969
|
-
function
|
|
15974
|
+
function XT(e, t = e.getState, n) {
|
|
15970
15975
|
(Dm ? "production" : void 0) !== "production" && n && !Rf && (console.warn(
|
|
15971
15976
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
15972
15977
|
), Rf = !0);
|
|
15973
|
-
const r =
|
|
15978
|
+
const r = JT(
|
|
15974
15979
|
e.subscribe,
|
|
15975
15980
|
e.getState,
|
|
15976
15981
|
e.getServerState || e.getState,
|
|
@@ -15979,18 +15984,18 @@ function JT(e, t = e.getState, n) {
|
|
|
15979
15984
|
);
|
|
15980
15985
|
return nh(r), r;
|
|
15981
15986
|
}
|
|
15982
|
-
const
|
|
15987
|
+
const eI = (e) => {
|
|
15983
15988
|
(Dm ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
|
|
15984
15989
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
15985
15990
|
);
|
|
15986
|
-
const t = typeof e == "function" ?
|
|
15991
|
+
const t = typeof e == "function" ? WT(e) : e, n = (r, i) => XT(t, r, i);
|
|
15987
15992
|
return Object.assign(n, t), n;
|
|
15988
|
-
}, kn = (e) =>
|
|
15993
|
+
}, kn = (e) => eI, so = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Ka = /* @__PURE__ */ new Map(), $i = (e) => {
|
|
15989
15994
|
const t = Ka.get(e);
|
|
15990
15995
|
return t ? Object.fromEntries(
|
|
15991
15996
|
Object.entries(t.stores).map(([n, r]) => [n, r.getState()])
|
|
15992
15997
|
) : {};
|
|
15993
|
-
},
|
|
15998
|
+
}, tI = (e, t, n) => {
|
|
15994
15999
|
if (e === void 0)
|
|
15995
16000
|
return {
|
|
15996
16001
|
type: "untracked",
|
|
@@ -16004,7 +16009,7 @@ const XT = (e) => {
|
|
|
16004
16009
|
stores: {}
|
|
16005
16010
|
};
|
|
16006
16011
|
return Ka.set(n.name, i), { type: "tracked", store: e, ...i };
|
|
16007
|
-
},
|
|
16012
|
+
}, nI = (e, t = {}) => (n, r, i) => {
|
|
16008
16013
|
const { enabled: o, anonymousActionType: s, store: a, ...l } = t;
|
|
16009
16014
|
let u;
|
|
16010
16015
|
try {
|
|
@@ -16015,7 +16020,7 @@ const XT = (e) => {
|
|
|
16015
16020
|
return (so ? "production" : void 0) !== "production" && o && console.warn(
|
|
16016
16021
|
"[zustand devtools middleware] Please install/enable Redux devtools extension"
|
|
16017
16022
|
), e(n, r, i);
|
|
16018
|
-
const { connection: f, ...c } =
|
|
16023
|
+
const { connection: f, ...c } = tI(a, u, l);
|
|
16019
16024
|
let h = !0;
|
|
16020
16025
|
i.setState = (p, g, v) => {
|
|
16021
16026
|
const y = n(p, g);
|
|
@@ -16131,7 +16136,7 @@ const XT = (e) => {
|
|
|
16131
16136
|
return;
|
|
16132
16137
|
}
|
|
16133
16138
|
}), m;
|
|
16134
|
-
}, wr =
|
|
16139
|
+
}, wr = nI, zs = (e, t) => {
|
|
16135
16140
|
let n;
|
|
16136
16141
|
try {
|
|
16137
16142
|
n = JSON.parse(e);
|
|
@@ -16184,7 +16189,7 @@ const ei = (e) => (t) => {
|
|
|
16184
16189
|
}
|
|
16185
16190
|
};
|
|
16186
16191
|
}
|
|
16187
|
-
},
|
|
16192
|
+
}, rI = (e, t) => (n, r, i) => {
|
|
16188
16193
|
let o = {
|
|
16189
16194
|
getStorage: () => localStorage,
|
|
16190
16195
|
serialize: JSON.stringify,
|
|
@@ -16290,7 +16295,7 @@ const ei = (e) => (t) => {
|
|
|
16290
16295
|
l.delete(g);
|
|
16291
16296
|
})
|
|
16292
16297
|
}, p(), m || d;
|
|
16293
|
-
},
|
|
16298
|
+
}, iI = (e, t) => (n, r, i) => {
|
|
16294
16299
|
let o = {
|
|
16295
16300
|
storage: Ko(() => localStorage),
|
|
16296
16301
|
partialize: (p) => p,
|
|
@@ -16385,9 +16390,9 @@ const ei = (e) => (t) => {
|
|
|
16385
16390
|
l.delete(p);
|
|
16386
16391
|
})
|
|
16387
16392
|
}, o.skipHydration || m(), d || h;
|
|
16388
|
-
},
|
|
16393
|
+
}, oI = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((so ? "production" : void 0) !== "production" && console.warn(
|
|
16389
16394
|
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
16390
|
-
),
|
|
16395
|
+
), rI(e, t)) : iI(e, t), Go = oI, sI = (e, t) => kn()(
|
|
16391
16396
|
wr(
|
|
16392
16397
|
Go(
|
|
16393
16398
|
(n) => ({
|
|
@@ -16408,8 +16413,8 @@ const ei = (e) => (t) => {
|
|
|
16408
16413
|
)
|
|
16409
16414
|
), Hs = {}, Mm = (e, t, n) => {
|
|
16410
16415
|
const i = `${t || "bp-webchat"}-message-history-${e}`;
|
|
16411
|
-
return Hs[i] || (Hs[i] =
|
|
16412
|
-
},
|
|
16416
|
+
return Hs[i] || (Hs[i] = sI(i, n)), Hs[i];
|
|
16417
|
+
}, aI = (e) => kn()(
|
|
16413
16418
|
wr(
|
|
16414
16419
|
(t) => ({
|
|
16415
16420
|
messages: [],
|
|
@@ -16443,8 +16448,8 @@ const ei = (e) => (t) => {
|
|
|
16443
16448
|
)
|
|
16444
16449
|
), Us = {}, Nm = (e) => {
|
|
16445
16450
|
const t = `messages-${e}`;
|
|
16446
|
-
return Us[t] || (Us[t] =
|
|
16447
|
-
},
|
|
16451
|
+
return Us[t] || (Us[t] = aI(t)), Us[t];
|
|
16452
|
+
}, lI = (e, t) => kn()(
|
|
16448
16453
|
wr(
|
|
16449
16454
|
Go(
|
|
16450
16455
|
(n) => ({
|
|
@@ -16470,9 +16475,9 @@ const ei = (e) => (t) => {
|
|
|
16470
16475
|
}
|
|
16471
16476
|
)
|
|
16472
16477
|
)
|
|
16473
|
-
), js = {},
|
|
16478
|
+
), js = {}, uI = (e = "bp-webchat", t) => {
|
|
16474
16479
|
const n = `${e}-client`;
|
|
16475
|
-
return js[n] || (js[n] =
|
|
16480
|
+
return js[n] || (js[n] = lI(n, t)), js[n];
|
|
16476
16481
|
}, ti = kn()(
|
|
16477
16482
|
wr(
|
|
16478
16483
|
(e) => ({
|
|
@@ -16484,14 +16489,14 @@ const ei = (e) => (t) => {
|
|
|
16484
16489
|
}),
|
|
16485
16490
|
{ name: "webchatStore" }
|
|
16486
16491
|
)
|
|
16487
|
-
),
|
|
16492
|
+
), cI = 8, fI = (e) => kn()(
|
|
16488
16493
|
Go(
|
|
16489
16494
|
(t, n) => ({
|
|
16490
16495
|
files: [],
|
|
16491
16496
|
setFiles: (r) => t({ files: r }),
|
|
16492
16497
|
upsertFile: (r) => t(({ files: i }) => ({ files: i.some((a) => a.name === r.name) ? i.map((a) => a.name === r.name ? { ...a, ...r } : a) : [...i, { ...r }] })),
|
|
16493
16498
|
uploadFile: async (r, i) => {
|
|
16494
|
-
if (n().files.length ===
|
|
16499
|
+
if (n().files.length === cI) return;
|
|
16495
16500
|
const o = r.name.lastIndexOf("."), s = o > 0 && o < r.name.length - 1, a = s ? r.name.substring(0, o) : r.name, l = s ? r.name.substring(o) : "", u = yw(a, n().files, (h) => h.name), f = u + l, c = new File([r], f, { type: r.type });
|
|
16496
16501
|
n().upsertFile({
|
|
16497
16502
|
name: u,
|
|
@@ -16527,8 +16532,8 @@ const ei = (e) => (t) => {
|
|
|
16527
16532
|
)
|
|
16528
16533
|
), Vs = {}, Pm = (e, t) => {
|
|
16529
16534
|
const r = `${t || "bp-webchat"}-composer-files-${e}`;
|
|
16530
|
-
return Vs[r] || (Vs[r] =
|
|
16531
|
-
},
|
|
16535
|
+
return Vs[r] || (Vs[r] = fI(r)), Vs[r];
|
|
16536
|
+
}, dI = (e) => kn()(
|
|
16532
16537
|
wr(
|
|
16533
16538
|
(t) => ({
|
|
16534
16539
|
participants: [],
|
|
@@ -16541,8 +16546,8 @@ const ei = (e) => (t) => {
|
|
|
16541
16546
|
)
|
|
16542
16547
|
), Ws = {}, Lm = (e) => {
|
|
16543
16548
|
const t = `participants-${e}`;
|
|
16544
|
-
return Ws[t] || (Ws[t] =
|
|
16545
|
-
},
|
|
16549
|
+
return Ws[t] || (Ws[t] = dI(t)), Ws[t];
|
|
16550
|
+
}, hI = (e) => kn()(
|
|
16546
16551
|
wr(
|
|
16547
16552
|
Go(
|
|
16548
16553
|
(t, n) => ({
|
|
@@ -16553,10 +16558,10 @@ const ei = (e) => (t) => {
|
|
|
16553
16558
|
{ name: e }
|
|
16554
16559
|
)
|
|
16555
16560
|
)
|
|
16556
|
-
), qs = {},
|
|
16561
|
+
), qs = {}, pI = (e = "bp-webchat") => {
|
|
16557
16562
|
const t = `${e}-sound`;
|
|
16558
|
-
return qs[t] || (qs[t] =
|
|
16559
|
-
},
|
|
16563
|
+
return qs[t] || (qs[t] = hI(t)), qs[t];
|
|
16564
|
+
}, mI = ({ text: e, buttonValue: t, variant: n, groupId: r, reusable: i, sendMessage: o, isReadOnly: s, ...a }) => {
|
|
16560
16565
|
const l = ti((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d, m] = Te(!1), {
|
|
16561
16566
|
message: {
|
|
16562
16567
|
blocks: { button: p }
|
|
@@ -16594,7 +16599,7 @@ const ei = (e) => (t) => {
|
|
|
16594
16599
|
}
|
|
16595
16600
|
) : /* @__PURE__ */ T("button", { ...v, style: s ? { pointerEvents: "none" } : void 0, disabled: y, children: e });
|
|
16596
16601
|
}, _m = Po(null);
|
|
16597
|
-
function
|
|
16602
|
+
function gI() {
|
|
16598
16603
|
const e = Lo(_m);
|
|
16599
16604
|
if (!e)
|
|
16600
16605
|
throw new Error("useMessageContext must be used within a Message");
|
|
@@ -16663,7 +16668,7 @@ const Bm = rt(
|
|
|
16663
16668
|
description: "Please provide feedback to help us improve.",
|
|
16664
16669
|
confirmButtonText: "Send feedback",
|
|
16665
16670
|
cancelButtonText: "Cancel",
|
|
16666
|
-
Content:
|
|
16671
|
+
Content: yI
|
|
16667
16672
|
});
|
|
16668
16673
|
u(i, { value: "negative", comment: g });
|
|
16669
16674
|
}
|
|
@@ -16689,7 +16694,7 @@ const Bm = rt(
|
|
|
16689
16694
|
}
|
|
16690
16695
|
);
|
|
16691
16696
|
Bm.displayName = "Bubble";
|
|
16692
|
-
const
|
|
16697
|
+
const yI = ({ setValue: e }) => {
|
|
16693
16698
|
const {
|
|
16694
16699
|
modal: {
|
|
16695
16700
|
dialog: { content: t }
|
|
@@ -16831,7 +16836,7 @@ function Ga(e, t, n) {
|
|
|
16831
16836
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
16832
16837
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
16833
16838
|
}
|
|
16834
|
-
function
|
|
16839
|
+
function vI() {
|
|
16835
16840
|
var e = Se(!1), t = Me(function() {
|
|
16836
16841
|
return e.current;
|
|
16837
16842
|
}, []);
|
|
@@ -16841,9 +16846,9 @@ function yI() {
|
|
|
16841
16846
|
};
|
|
16842
16847
|
}, []), t;
|
|
16843
16848
|
}
|
|
16844
|
-
function
|
|
16849
|
+
function bI(e, t, n) {
|
|
16845
16850
|
t === void 0 && (t = []), n === void 0 && (n = { loading: !1 });
|
|
16846
|
-
var r = Se(0), i =
|
|
16851
|
+
var r = Se(0), i = vI(), o = Te(n), s = o[0], a = o[1], l = Me(function() {
|
|
16847
16852
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
16848
16853
|
u[f] = arguments[f];
|
|
16849
16854
|
var c = ++r.current;
|
|
@@ -16857,9 +16862,9 @@ function vI(e, t, n) {
|
|
|
16857
16862
|
}, t);
|
|
16858
16863
|
return [s, l];
|
|
16859
16864
|
}
|
|
16860
|
-
function
|
|
16865
|
+
function wI(e, t) {
|
|
16861
16866
|
t === void 0 && (t = []);
|
|
16862
|
-
var n =
|
|
16867
|
+
var n = bI(e, t, {
|
|
16863
16868
|
loading: !0
|
|
16864
16869
|
}), r = n[0], i = n[1];
|
|
16865
16870
|
return _e(function() {
|
|
@@ -16868,19 +16873,19 @@ function bI(e, t) {
|
|
|
16868
16873
|
}
|
|
16869
16874
|
const Um = rt(
|
|
16870
16875
|
({ url: e, type: t, orientation: n = "auto", ...r }, i) => {
|
|
16871
|
-
const o = bv(), { setIsLoading: s } =
|
|
16876
|
+
const o = bv(), { setIsLoading: s } = gI(), [a, l] = Te(n === "auto" ? "square" : n), [u, f] = Te("initial"), {
|
|
16872
16877
|
message: {
|
|
16873
16878
|
blocks: { image: c }
|
|
16874
16879
|
}
|
|
16875
16880
|
} = ge;
|
|
16876
16881
|
return hr(() => (s((h) => [...h, o]), () => {
|
|
16877
16882
|
s((h) => h.filter((d) => d !== o));
|
|
16878
|
-
}), [o, s]),
|
|
16883
|
+
}), [o, s]), wI(async () => {
|
|
16879
16884
|
if (!e) return;
|
|
16880
16885
|
const h = new Image();
|
|
16881
16886
|
try {
|
|
16882
16887
|
const { width: d, height: m } = await Uv(e);
|
|
16883
|
-
n === "auto" && l(
|
|
16888
|
+
n === "auto" && l(xI(d, m)), h.onload = () => {
|
|
16884
16889
|
f("loaded"), s((p) => p.filter((g) => g !== o));
|
|
16885
16890
|
}, h.onerror = () => {
|
|
16886
16891
|
f("error"), l("square"), s((p) => p.filter((g) => g !== o));
|
|
@@ -16906,7 +16911,7 @@ const Um = rt(
|
|
|
16906
16911
|
}
|
|
16907
16912
|
);
|
|
16908
16913
|
Um.displayName = "Image";
|
|
16909
|
-
function
|
|
16914
|
+
function xI(e, t) {
|
|
16910
16915
|
const n = {
|
|
16911
16916
|
square: 1,
|
|
16912
16917
|
portrait: 0.75,
|
|
@@ -17038,13 +17043,13 @@ const Ym = rt(
|
|
|
17038
17043
|
}
|
|
17039
17044
|
);
|
|
17040
17045
|
Ym.displayName = "Row";
|
|
17041
|
-
function
|
|
17046
|
+
function SI(e) {
|
|
17042
17047
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
17043
17048
|
}
|
|
17044
17049
|
function Mf(e) {
|
|
17045
|
-
return
|
|
17050
|
+
return SI(e) || Array.isArray(e);
|
|
17046
17051
|
}
|
|
17047
|
-
function
|
|
17052
|
+
function kI() {
|
|
17048
17053
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
17049
17054
|
}
|
|
17050
17055
|
function lu(e, t) {
|
|
@@ -17059,7 +17064,7 @@ function lu(e, t) {
|
|
|
17059
17064
|
function Nf(e) {
|
|
17060
17065
|
return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
|
|
17061
17066
|
}
|
|
17062
|
-
function
|
|
17067
|
+
function EI(e, t) {
|
|
17063
17068
|
if (e.length !== t.length) return !1;
|
|
17064
17069
|
const n = Nf(e), r = Nf(t);
|
|
17065
17070
|
return n.every((i, o) => {
|
|
@@ -17088,12 +17093,12 @@ function cu(e) {
|
|
|
17088
17093
|
function qr(e, t) {
|
|
17089
17094
|
return Ue(e - t);
|
|
17090
17095
|
}
|
|
17091
|
-
function
|
|
17096
|
+
function CI(e, t) {
|
|
17092
17097
|
if (e === 0 || t === 0 || Ue(e) <= Ue(t)) return 0;
|
|
17093
17098
|
const n = qr(Ue(e), Ue(t));
|
|
17094
17099
|
return Ue(n / e);
|
|
17095
17100
|
}
|
|
17096
|
-
function
|
|
17101
|
+
function AI(e) {
|
|
17097
17102
|
return Math.round(e * 100) / 100;
|
|
17098
17103
|
}
|
|
17099
17104
|
function ni(e) {
|
|
@@ -17123,7 +17128,7 @@ function Km(e, t) {
|
|
|
17123
17128
|
function Za(e, t) {
|
|
17124
17129
|
return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent;
|
|
17125
17130
|
}
|
|
17126
|
-
function
|
|
17131
|
+
function TI(e, t) {
|
|
17127
17132
|
const n = {
|
|
17128
17133
|
start: r,
|
|
17129
17134
|
center: i,
|
|
@@ -17168,7 +17173,7 @@ function ii() {
|
|
|
17168
17173
|
};
|
|
17169
17174
|
return r;
|
|
17170
17175
|
}
|
|
17171
|
-
function
|
|
17176
|
+
function II(e, t, n, r) {
|
|
17172
17177
|
const i = ii(), o = 1e3 / 60;
|
|
17173
17178
|
let s = null, a = 0, l = 0;
|
|
17174
17179
|
function u() {
|
|
@@ -17206,7 +17211,7 @@ function TI(e, t, n, r) {
|
|
|
17206
17211
|
render: r
|
|
17207
17212
|
};
|
|
17208
17213
|
}
|
|
17209
|
-
function
|
|
17214
|
+
function OI(e, t) {
|
|
17210
17215
|
const n = t === "rtl", r = e === "y", i = r ? "y" : "x", o = r ? "x" : "y", s = !r && n ? -1 : 1, a = f(), l = c();
|
|
17211
17216
|
function u(m) {
|
|
17212
17217
|
const {
|
|
@@ -17289,7 +17294,7 @@ function Gm(e, t, n) {
|
|
|
17289
17294
|
};
|
|
17290
17295
|
return c;
|
|
17291
17296
|
}
|
|
17292
|
-
function
|
|
17297
|
+
function RI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
17293
17298
|
const {
|
|
17294
17299
|
cross: w,
|
|
17295
17300
|
direction: C
|
|
@@ -17344,7 +17349,7 @@ function OI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17344
17349
|
Z > p && (B = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(C(fe)), F.preventDefault();
|
|
17345
17350
|
}
|
|
17346
17351
|
function J(F) {
|
|
17347
|
-
const pe = f.byDistance(0, !1).index !== c.get(), Ie = o.pointerUp(F) * j(), Z = q(C(Ie), pe), le =
|
|
17352
|
+
const pe = f.byDistance(0, !1).index !== c.get(), Ie = o.pointerUp(F) * j(), Z = q(C(Ie), pe), le = CI(Ie, Z), fe = $ - 10 * le, ce = v + le / 50;
|
|
17348
17353
|
H = !1, D = !1, R.clear(), u.useDuration(fe).useFriction(ce), l.distance(Z, !m), V = !1, h.emit("pointerUp");
|
|
17349
17354
|
}
|
|
17350
17355
|
function ie(F) {
|
|
@@ -17359,7 +17364,7 @@ function OI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17359
17364
|
pointerDown: K
|
|
17360
17365
|
};
|
|
17361
17366
|
}
|
|
17362
|
-
function
|
|
17367
|
+
function DI(e, t) {
|
|
17363
17368
|
let r, i;
|
|
17364
17369
|
function o(c) {
|
|
17365
17370
|
return c.timeStamp;
|
|
@@ -17387,7 +17392,7 @@ function RI(e, t) {
|
|
|
17387
17392
|
readPoint: s
|
|
17388
17393
|
};
|
|
17389
17394
|
}
|
|
17390
|
-
function
|
|
17395
|
+
function MI() {
|
|
17391
17396
|
function e(n) {
|
|
17392
17397
|
const {
|
|
17393
17398
|
offsetTop: r,
|
|
@@ -17408,7 +17413,7 @@ function DI() {
|
|
|
17408
17413
|
measure: e
|
|
17409
17414
|
};
|
|
17410
17415
|
}
|
|
17411
|
-
function
|
|
17416
|
+
function NI(e) {
|
|
17412
17417
|
function t(r) {
|
|
17413
17418
|
return e * (r / 100);
|
|
17414
17419
|
}
|
|
@@ -17416,7 +17421,7 @@ function MI(e) {
|
|
|
17416
17421
|
measure: t
|
|
17417
17422
|
};
|
|
17418
17423
|
}
|
|
17419
|
-
function
|
|
17424
|
+
function PI(e, t, n, r, i, o, s) {
|
|
17420
17425
|
const a = [e].concat(r);
|
|
17421
17426
|
let l, u, f = [], c = !1;
|
|
17422
17427
|
function h(g) {
|
|
@@ -17449,7 +17454,7 @@ function NI(e, t, n, r, i, o, s) {
|
|
|
17449
17454
|
destroy: m
|
|
17450
17455
|
};
|
|
17451
17456
|
}
|
|
17452
|
-
function
|
|
17457
|
+
function LI(e, t, n, r, i, o) {
|
|
17453
17458
|
let s = 0, a = 0, l = i, u = o, f = e.get(), c = 0;
|
|
17454
17459
|
function h() {
|
|
17455
17460
|
const k = r.get() - e.get(), I = !l;
|
|
@@ -17494,7 +17499,7 @@ function PI(e, t, n, r, i, o) {
|
|
|
17494
17499
|
};
|
|
17495
17500
|
return S;
|
|
17496
17501
|
}
|
|
17497
|
-
function
|
|
17502
|
+
function _I(e, t, n, r, i) {
|
|
17498
17503
|
const o = i.measure(10), s = i.measure(50), a = Pn(0.1, 0.99);
|
|
17499
17504
|
let l = !1;
|
|
17500
17505
|
function u() {
|
|
@@ -17514,7 +17519,7 @@ function LI(e, t, n, r, i) {
|
|
|
17514
17519
|
toggleActive: c
|
|
17515
17520
|
};
|
|
17516
17521
|
}
|
|
17517
|
-
function
|
|
17522
|
+
function FI(e, t, n, r, i) {
|
|
17518
17523
|
const o = Pn(-t + e, 0), s = c(), a = f(), l = h();
|
|
17519
17524
|
function u(m, p) {
|
|
17520
17525
|
return qr(m, p) <= 1;
|
|
@@ -17546,13 +17551,13 @@ function _I(e, t, n, r, i) {
|
|
|
17546
17551
|
scrollContainLimit: a
|
|
17547
17552
|
};
|
|
17548
17553
|
}
|
|
17549
|
-
function
|
|
17554
|
+
function $I(e, t, n) {
|
|
17550
17555
|
const r = t[0], i = n ? r - e : zt(t);
|
|
17551
17556
|
return {
|
|
17552
17557
|
limit: Pn(i, r)
|
|
17553
17558
|
};
|
|
17554
17559
|
}
|
|
17555
|
-
function
|
|
17560
|
+
function BI(e, t, n, r) {
|
|
17556
17561
|
const o = t.min + 0.1, s = t.max + 0.1, {
|
|
17557
17562
|
reachedMin: a,
|
|
17558
17563
|
reachedMax: l
|
|
@@ -17569,7 +17574,7 @@ function $I(e, t, n, r) {
|
|
|
17569
17574
|
loop: f
|
|
17570
17575
|
};
|
|
17571
17576
|
}
|
|
17572
|
-
function
|
|
17577
|
+
function zI(e) {
|
|
17573
17578
|
const {
|
|
17574
17579
|
max: t,
|
|
17575
17580
|
length: n
|
|
@@ -17582,7 +17587,7 @@ function BI(e) {
|
|
|
17582
17587
|
get: r
|
|
17583
17588
|
};
|
|
17584
17589
|
}
|
|
17585
|
-
function
|
|
17590
|
+
function HI(e, t, n, r, i) {
|
|
17586
17591
|
const {
|
|
17587
17592
|
startEdge: o,
|
|
17588
17593
|
endEdge: s
|
|
@@ -17603,7 +17608,7 @@ function zI(e, t, n, r, i) {
|
|
|
17603
17608
|
snapsAligned: f
|
|
17604
17609
|
};
|
|
17605
17610
|
}
|
|
17606
|
-
function
|
|
17611
|
+
function UI(e, t, n, r, i, o) {
|
|
17607
17612
|
const {
|
|
17608
17613
|
groupSlides: s
|
|
17609
17614
|
} = i, {
|
|
@@ -17629,7 +17634,7 @@ function HI(e, t, n, r, i, o) {
|
|
|
17629
17634
|
slideRegistry: u
|
|
17630
17635
|
};
|
|
17631
17636
|
}
|
|
17632
|
-
function
|
|
17637
|
+
function jI(e, t, n, r, i) {
|
|
17633
17638
|
const {
|
|
17634
17639
|
reachedAny: o,
|
|
17635
17640
|
removeOffset: s,
|
|
@@ -17685,7 +17690,7 @@ function UI(e, t, n, r, i) {
|
|
|
17685
17690
|
shortcut: f
|
|
17686
17691
|
};
|
|
17687
17692
|
}
|
|
17688
|
-
function
|
|
17693
|
+
function VI(e, t, n, r, i, o, s) {
|
|
17689
17694
|
function a(c) {
|
|
17690
17695
|
const h = c.distance, d = c.index !== t.get();
|
|
17691
17696
|
o.add(h), h && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), d && (n.set(t.get()), t.set(c.index), s.emit("select"));
|
|
@@ -17703,7 +17708,7 @@ function jI(e, t, n, r, i, o, s) {
|
|
|
17703
17708
|
index: u
|
|
17704
17709
|
};
|
|
17705
17710
|
}
|
|
17706
|
-
function
|
|
17711
|
+
function WI(e, t, n, r, i, o, s, a) {
|
|
17707
17712
|
const l = {
|
|
17708
17713
|
passive: !0,
|
|
17709
17714
|
capture: !0
|
|
@@ -17765,7 +17770,7 @@ function Qm(e, t) {
|
|
|
17765
17770
|
}
|
|
17766
17771
|
function l(h) {
|
|
17767
17772
|
if (o) return;
|
|
17768
|
-
const d =
|
|
17773
|
+
const d = AI(e.direction(h));
|
|
17769
17774
|
d !== i && (r.transform = n(d), i = d);
|
|
17770
17775
|
}
|
|
17771
17776
|
function u(h) {
|
|
@@ -17780,7 +17785,7 @@ function Qm(e, t) {
|
|
|
17780
17785
|
toggleActive: u
|
|
17781
17786
|
};
|
|
17782
17787
|
}
|
|
17783
|
-
function
|
|
17788
|
+
function qI(e, t, n, r, i, o, s, a, l) {
|
|
17784
17789
|
const f = ni(i), c = ni(i).reverse(), h = v().concat(y());
|
|
17785
17790
|
function d(I, R) {
|
|
17786
17791
|
return I.reduce((N, A) => N - i[A], R);
|
|
@@ -17843,7 +17848,7 @@ function WI(e, t, n, r, i, o, s, a, l) {
|
|
|
17843
17848
|
loopPoints: h
|
|
17844
17849
|
};
|
|
17845
17850
|
}
|
|
17846
|
-
function
|
|
17851
|
+
function YI(e, t, n) {
|
|
17847
17852
|
let r, i = !1;
|
|
17848
17853
|
function o(l) {
|
|
17849
17854
|
if (!n) return;
|
|
@@ -17868,7 +17873,7 @@ function qI(e, t, n) {
|
|
|
17868
17873
|
destroy: s
|
|
17869
17874
|
};
|
|
17870
17875
|
}
|
|
17871
|
-
function
|
|
17876
|
+
function KI(e, t, n, r) {
|
|
17872
17877
|
const i = {};
|
|
17873
17878
|
let o = null, s = null, a, l = !1;
|
|
17874
17879
|
function u() {
|
|
@@ -17905,7 +17910,7 @@ function YI(e, t, n, r) {
|
|
|
17905
17910
|
get: h
|
|
17906
17911
|
};
|
|
17907
17912
|
}
|
|
17908
|
-
function
|
|
17913
|
+
function GI(e, t, n, r, i, o) {
|
|
17909
17914
|
const {
|
|
17910
17915
|
measureSize: s,
|
|
17911
17916
|
startEdge: a,
|
|
@@ -17934,7 +17939,7 @@ function KI(e, t, n, r, i, o) {
|
|
|
17934
17939
|
endGap: c
|
|
17935
17940
|
};
|
|
17936
17941
|
}
|
|
17937
|
-
function
|
|
17942
|
+
function QI(e, t, n, r, i, o, s, a, l) {
|
|
17938
17943
|
const {
|
|
17939
17944
|
startEdge: u,
|
|
17940
17945
|
endEdge: f,
|
|
@@ -17959,7 +17964,7 @@ function GI(e, t, n, r, i, o, s, a, l) {
|
|
|
17959
17964
|
groupSlides: p
|
|
17960
17965
|
};
|
|
17961
17966
|
}
|
|
17962
|
-
function
|
|
17967
|
+
function ZI(e, t, n, r, i, o, s) {
|
|
17963
17968
|
const {
|
|
17964
17969
|
align: a,
|
|
17965
17970
|
axis: l,
|
|
@@ -17977,20 +17982,20 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
17977
17982
|
watchSlides: C,
|
|
17978
17983
|
watchDrag: S,
|
|
17979
17984
|
watchFocus: k
|
|
17980
|
-
} = o, I = 2, R =
|
|
17985
|
+
} = o, I = 2, R = MI(), N = R.measure(t), A = n.map(R.measure), O = OI(l, u), $ = O.measureSize(N), P = NI($), L = TI(a, $), _ = !c && !!y, D = c || !!y, {
|
|
17981
17986
|
slideSizes: H,
|
|
17982
17987
|
slideSizesWithGaps: B,
|
|
17983
17988
|
startGap: V,
|
|
17984
17989
|
endGap: b
|
|
17985
|
-
} =
|
|
17990
|
+
} = GI(O, N, A, n, D, i), M = QI(O, $, g, c, N, A, V, b, I), {
|
|
17986
17991
|
snaps: U,
|
|
17987
17992
|
snapsAligned: x
|
|
17988
|
-
} =
|
|
17993
|
+
} = HI(O, L, N, A, M), j = -zt(U) + zt(B), {
|
|
17989
17994
|
snapsContained: q,
|
|
17990
17995
|
scrollContainLimit: W
|
|
17991
|
-
} =
|
|
17996
|
+
} = FI($, j, x, y, I), G = _ ? q : x, {
|
|
17992
17997
|
limit: J
|
|
17993
|
-
} =
|
|
17998
|
+
} = $I(j, G, c), ie = Gm(yi(G), f, c), K = ie.clone(), ee = ni(n), F = ({
|
|
17994
17999
|
dragHandler: de,
|
|
17995
18000
|
scrollBody: qe,
|
|
17996
18001
|
scrollBounds: Ge,
|
|
@@ -18019,9 +18024,9 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18019
18024
|
Bu && lt.stop();
|
|
18020
18025
|
const yv = Ge.get() * _u + Et.get() * (1 - _u);
|
|
18021
18026
|
et.set(yv), Lu && (Nt.loop(de.direction()), Qe.loop()), qe.to(et.get()), Bu && Ai.emit("settle"), $u || Ai.emit("scroll");
|
|
18022
|
-
}, pe =
|
|
18027
|
+
}, pe = II(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Z = G[ie.get()], le = $r(Z), fe = $r(Z), ce = $r(Z), Ce = $r(Z), $e = LI(le, ce, fe, Ce, h, Ie), Oe = jI(c, G, j, J, Ce), je = VI(pe, ie, K, $e, Oe, Ce, s), X = zI(J), oe = ii(), z = KI(t, n, s, p), {
|
|
18023
18028
|
slideRegistry: Y
|
|
18024
|
-
} =
|
|
18029
|
+
} = UI(_, y, G, W, M, ee), re = WI(e, n, Y, je, $e, oe, s, k), se = {
|
|
18025
18030
|
ownerDocument: r,
|
|
18026
18031
|
ownerWindow: i,
|
|
18027
18032
|
eventHandler: s,
|
|
@@ -18029,7 +18034,7 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18029
18034
|
slideRects: A,
|
|
18030
18035
|
animation: pe,
|
|
18031
18036
|
axis: O,
|
|
18032
|
-
dragHandler:
|
|
18037
|
+
dragHandler: RI(O, e, r, i, Ce, DI(O, i), le, pe, je, $e, Oe, ie, s, P, d, m, v, Ie, S),
|
|
18033
18038
|
eventStore: oe,
|
|
18034
18039
|
percentOfView: P,
|
|
18035
18040
|
index: ie,
|
|
@@ -18039,18 +18044,18 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18039
18044
|
offsetLocation: ce,
|
|
18040
18045
|
previousLocation: fe,
|
|
18041
18046
|
options: o,
|
|
18042
|
-
resizeHandler:
|
|
18047
|
+
resizeHandler: PI(t, s, i, n, O, w, R),
|
|
18043
18048
|
scrollBody: $e,
|
|
18044
|
-
scrollBounds:
|
|
18045
|
-
scrollLooper:
|
|
18049
|
+
scrollBounds: _I(J, ce, Ce, $e, P),
|
|
18050
|
+
scrollLooper: BI(j, J, ce, [le, ce, fe, Ce]),
|
|
18046
18051
|
scrollProgress: X,
|
|
18047
18052
|
scrollSnapList: G.map(X.get),
|
|
18048
18053
|
scrollSnaps: G,
|
|
18049
18054
|
scrollTarget: Oe,
|
|
18050
18055
|
scrollTo: je,
|
|
18051
|
-
slideLooper:
|
|
18056
|
+
slideLooper: qI(O, $, j, H, B, U, G, ce, n),
|
|
18052
18057
|
slideFocus: re,
|
|
18053
|
-
slidesHandler:
|
|
18058
|
+
slidesHandler: YI(t, s, C),
|
|
18054
18059
|
slidesInView: z,
|
|
18055
18060
|
slideIndexes: ee,
|
|
18056
18061
|
slideRegistry: Y,
|
|
@@ -18060,7 +18065,7 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18060
18065
|
};
|
|
18061
18066
|
return se;
|
|
18062
18067
|
}
|
|
18063
|
-
function
|
|
18068
|
+
function JI() {
|
|
18064
18069
|
let e = {}, t;
|
|
18065
18070
|
function n(u) {
|
|
18066
18071
|
t = u;
|
|
@@ -18089,7 +18094,7 @@ function ZI() {
|
|
|
18089
18094
|
};
|
|
18090
18095
|
return l;
|
|
18091
18096
|
}
|
|
18092
|
-
const
|
|
18097
|
+
const XI = {
|
|
18093
18098
|
align: "center",
|
|
18094
18099
|
axis: "x",
|
|
18095
18100
|
container: null,
|
|
@@ -18111,7 +18116,7 @@ const JI = {
|
|
|
18111
18116
|
watchSlides: !0,
|
|
18112
18117
|
watchFocus: !0
|
|
18113
18118
|
};
|
|
18114
|
-
function
|
|
18119
|
+
function eO(e) {
|
|
18115
18120
|
function t(o, s) {
|
|
18116
18121
|
return Km(o, s || {});
|
|
18117
18122
|
}
|
|
@@ -18128,7 +18133,7 @@ function XI(e) {
|
|
|
18128
18133
|
optionsMediaQueries: r
|
|
18129
18134
|
};
|
|
18130
18135
|
}
|
|
18131
|
-
function
|
|
18136
|
+
function tO(e) {
|
|
18132
18137
|
let t = [];
|
|
18133
18138
|
function n(o, s) {
|
|
18134
18139
|
return t = s.filter(({
|
|
@@ -18146,7 +18151,7 @@ function eO(e) {
|
|
|
18146
18151
|
};
|
|
18147
18152
|
}
|
|
18148
18153
|
function So(e, t, n) {
|
|
18149
|
-
const r = e.ownerDocument, i = r.defaultView, o =
|
|
18154
|
+
const r = e.ownerDocument, i = r.defaultView, o = eO(i), s = tO(o), a = ii(), l = JI(), {
|
|
18150
18155
|
mergeOptions: u,
|
|
18151
18156
|
optionsAtMedia: f,
|
|
18152
18157
|
optionsMediaQueries: c
|
|
@@ -18155,7 +18160,7 @@ function So(e, t, n) {
|
|
|
18155
18160
|
off: d,
|
|
18156
18161
|
emit: m
|
|
18157
18162
|
} = l, p = O;
|
|
18158
|
-
let g = !1, v, y = u(
|
|
18163
|
+
let g = !1, v, y = u(XI, So.globalOptions), w = u(y), C = [], S, k, I;
|
|
18159
18164
|
function R() {
|
|
18160
18165
|
const {
|
|
18161
18166
|
container: ee,
|
|
@@ -18166,7 +18171,7 @@ function So(e, t, n) {
|
|
|
18166
18171
|
I = [].slice.call(pe || k.children);
|
|
18167
18172
|
}
|
|
18168
18173
|
function N(ee) {
|
|
18169
|
-
const F =
|
|
18174
|
+
const F = ZI(e, k, I, r, i, ee, l);
|
|
18170
18175
|
if (ee.loop && !F.slideLooper.canLoop()) {
|
|
18171
18176
|
const te = Object.assign({}, ee, {
|
|
18172
18177
|
loop: !1
|
|
@@ -18275,9 +18280,9 @@ function du(e = {}, t = []) {
|
|
|
18275
18280
|
return _e(() => {
|
|
18276
18281
|
lu(n.current, e) || (n.current = e, l());
|
|
18277
18282
|
}, [e, l]), _e(() => {
|
|
18278
|
-
|
|
18283
|
+
EI(r.current, t) || (r.current = t, l());
|
|
18279
18284
|
}, [t, l]), _e(() => {
|
|
18280
|
-
if (
|
|
18285
|
+
if (kI() && s) {
|
|
18281
18286
|
So.globalOptions = du.globalOptions;
|
|
18282
18287
|
const u = So(s, n.current, r.current);
|
|
18283
18288
|
return o(u), () => u.destroy();
|
|
@@ -18329,7 +18334,7 @@ function vi(e) {
|
|
|
18329
18334
|
var t;
|
|
18330
18335
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
18331
18336
|
}
|
|
18332
|
-
function
|
|
18337
|
+
function nO(e) {
|
|
18333
18338
|
var t;
|
|
18334
18339
|
return (t = (Xm(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
18335
18340
|
}
|
|
@@ -18345,13 +18350,13 @@ function lr(e) {
|
|
|
18345
18350
|
function Ja(e) {
|
|
18346
18351
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof vi(e).ShadowRoot;
|
|
18347
18352
|
}
|
|
18348
|
-
function
|
|
18353
|
+
function rO(e) {
|
|
18349
18354
|
return ["html", "body", "#document"].includes(Jm(e));
|
|
18350
18355
|
}
|
|
18351
|
-
function
|
|
18356
|
+
function iO(e) {
|
|
18352
18357
|
return vi(e).getComputedStyle(e);
|
|
18353
18358
|
}
|
|
18354
|
-
function
|
|
18359
|
+
function oO(e) {
|
|
18355
18360
|
if (Jm(e) === "html")
|
|
18356
18361
|
return e;
|
|
18357
18362
|
const t = (
|
|
@@ -18359,7 +18364,7 @@ function iO(e) {
|
|
|
18359
18364
|
e.assignedSlot || // DOM Element detected.
|
|
18360
18365
|
e.parentNode || // ShadowRoot detected.
|
|
18361
18366
|
Ja(e) && e.host || // Fallback.
|
|
18362
|
-
|
|
18367
|
+
nO(e)
|
|
18363
18368
|
);
|
|
18364
18369
|
return Ja(t) ? t.host : t;
|
|
18365
18370
|
}
|
|
@@ -18391,7 +18396,7 @@ function eg() {
|
|
|
18391
18396
|
const e = navigator.userAgentData;
|
|
18392
18397
|
return e != null && e.platform ? e.platform : navigator.platform;
|
|
18393
18398
|
}
|
|
18394
|
-
function
|
|
18399
|
+
function sO() {
|
|
18395
18400
|
const e = navigator.userAgentData;
|
|
18396
18401
|
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
18397
18402
|
let {
|
|
@@ -18405,7 +18410,7 @@ function tg(e) {
|
|
|
18405
18410
|
if (e.mozInputSource === 0 && e.isTrusted)
|
|
18406
18411
|
return !0;
|
|
18407
18412
|
const t = /Android/i;
|
|
18408
|
-
return (t.test(eg()) || t.test(
|
|
18413
|
+
return (t.test(eg()) || t.test(sO())) && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
18409
18414
|
}
|
|
18410
18415
|
function ng(e) {
|
|
18411
18416
|
return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType !== "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
@@ -18414,16 +18419,16 @@ function ng(e) {
|
|
|
18414
18419
|
function rg() {
|
|
18415
18420
|
return /apple/i.test(navigator.vendor);
|
|
18416
18421
|
}
|
|
18417
|
-
function
|
|
18422
|
+
function aO() {
|
|
18418
18423
|
return eg().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
18419
18424
|
}
|
|
18420
18425
|
function Ff(e, t) {
|
|
18421
18426
|
return ["mouse", "pen"].includes(e);
|
|
18422
18427
|
}
|
|
18423
|
-
function
|
|
18428
|
+
function lO(e) {
|
|
18424
18429
|
return "nativeEvent" in e;
|
|
18425
18430
|
}
|
|
18426
|
-
function
|
|
18431
|
+
function uO(e) {
|
|
18427
18432
|
return e.matches("html,body");
|
|
18428
18433
|
}
|
|
18429
18434
|
function Ft(e) {
|
|
@@ -18440,9 +18445,9 @@ function Ys(e, t) {
|
|
|
18440
18445
|
function ig(e) {
|
|
18441
18446
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
18442
18447
|
}
|
|
18443
|
-
const
|
|
18448
|
+
const cO = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
18444
18449
|
function og(e) {
|
|
18445
|
-
return lr(e) && e.matches(
|
|
18450
|
+
return lr(e) && e.matches(cO);
|
|
18446
18451
|
}
|
|
18447
18452
|
function nt(e) {
|
|
18448
18453
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -18466,17 +18471,17 @@ function hu(e) {
|
|
|
18466
18471
|
function sg(e) {
|
|
18467
18472
|
return e === "x" ? "y" : "x";
|
|
18468
18473
|
}
|
|
18469
|
-
function
|
|
18474
|
+
function fO(e) {
|
|
18470
18475
|
return e === "y" ? "height" : "width";
|
|
18471
18476
|
}
|
|
18472
|
-
const
|
|
18477
|
+
const dO = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
18473
18478
|
function wi(e) {
|
|
18474
|
-
return
|
|
18479
|
+
return dO.has(bi(e)) ? "y" : "x";
|
|
18475
18480
|
}
|
|
18476
|
-
function
|
|
18481
|
+
function hO(e) {
|
|
18477
18482
|
return sg(wi(e));
|
|
18478
18483
|
}
|
|
18479
|
-
function
|
|
18484
|
+
function pO(e) {
|
|
18480
18485
|
return {
|
|
18481
18486
|
top: 0,
|
|
18482
18487
|
right: 0,
|
|
@@ -18485,8 +18490,8 @@ function hO(e) {
|
|
|
18485
18490
|
...e
|
|
18486
18491
|
};
|
|
18487
18492
|
}
|
|
18488
|
-
function
|
|
18489
|
-
return typeof e != "number" ?
|
|
18493
|
+
function mO(e) {
|
|
18494
|
+
return typeof e != "number" ? pO(e) : {
|
|
18490
18495
|
top: e,
|
|
18491
18496
|
right: e,
|
|
18492
18497
|
bottom: e,
|
|
@@ -18516,7 +18521,7 @@ function Bf(e, t, n) {
|
|
|
18516
18521
|
reference: r,
|
|
18517
18522
|
floating: i
|
|
18518
18523
|
} = e;
|
|
18519
|
-
const o = wi(t), s =
|
|
18524
|
+
const o = wi(t), s = hO(t), a = fO(s), l = bi(t), u = o === "y", f = r.x + r.width / 2 - i.width / 2, c = r.y + r.height / 2 - i.height / 2, h = r[a] / 2 - i[a] / 2;
|
|
18520
18525
|
let d;
|
|
18521
18526
|
switch (l) {
|
|
18522
18527
|
case "top":
|
|
@@ -18559,7 +18564,7 @@ function Bf(e, t, n) {
|
|
|
18559
18564
|
}
|
|
18560
18565
|
return d;
|
|
18561
18566
|
}
|
|
18562
|
-
const
|
|
18567
|
+
const gO = async (e, t, n) => {
|
|
18563
18568
|
const {
|
|
18564
18569
|
placement: r = "bottom",
|
|
18565
18570
|
strategy: i = "absolute",
|
|
@@ -18636,7 +18641,7 @@ async function ag(e, t) {
|
|
|
18636
18641
|
elementContext: c = "floating",
|
|
18637
18642
|
altBoundary: h = !1,
|
|
18638
18643
|
padding: d = 0
|
|
18639
|
-
} = Zo(t, e), m =
|
|
18644
|
+
} = Zo(t, e), m = mO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v = Eo(await o.getClippingRect({
|
|
18640
18645
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(g))) == null || n ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
|
|
18641
18646
|
boundary: u,
|
|
18642
18647
|
rootBoundary: f,
|
|
@@ -18665,13 +18670,13 @@ async function ag(e, t) {
|
|
|
18665
18670
|
right: (S.right - v.right + m.right) / C.x
|
|
18666
18671
|
};
|
|
18667
18672
|
}
|
|
18668
|
-
const
|
|
18669
|
-
async function
|
|
18673
|
+
const yO = /* @__PURE__ */ new Set(["left", "top"]);
|
|
18674
|
+
async function vO(e, t) {
|
|
18670
18675
|
const {
|
|
18671
18676
|
placement: n,
|
|
18672
18677
|
platform: r,
|
|
18673
18678
|
elements: i
|
|
18674
|
-
} = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = bi(n), a = hu(n), l = wi(n) === "y", u =
|
|
18679
|
+
} = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = bi(n), a = hu(n), l = wi(n) === "y", u = yO.has(s) ? -1 : 1, f = o && l ? -1 : 1, c = Zo(t, e);
|
|
18675
18680
|
let {
|
|
18676
18681
|
mainAxis: h,
|
|
18677
18682
|
crossAxis: d,
|
|
@@ -18693,7 +18698,7 @@ async function yO(e, t) {
|
|
|
18693
18698
|
y: d * f
|
|
18694
18699
|
};
|
|
18695
18700
|
}
|
|
18696
|
-
const
|
|
18701
|
+
const bO = function(e) {
|
|
18697
18702
|
return e === void 0 && (e = 0), {
|
|
18698
18703
|
name: "offset",
|
|
18699
18704
|
options: e,
|
|
@@ -18704,7 +18709,7 @@ const vO = function(e) {
|
|
|
18704
18709
|
y: o,
|
|
18705
18710
|
placement: s,
|
|
18706
18711
|
middlewareData: a
|
|
18707
|
-
} = t, l = await
|
|
18712
|
+
} = t, l = await vO(t, e);
|
|
18708
18713
|
return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
18709
18714
|
x: i + l.x,
|
|
18710
18715
|
y: o + l.y,
|
|
@@ -18715,7 +18720,7 @@ const vO = function(e) {
|
|
|
18715
18720
|
};
|
|
18716
18721
|
}
|
|
18717
18722
|
};
|
|
18718
|
-
},
|
|
18723
|
+
}, wO = function(e) {
|
|
18719
18724
|
return e === void 0 && (e = {}), {
|
|
18720
18725
|
name: "shift",
|
|
18721
18726
|
options: e,
|
|
@@ -18771,7 +18776,7 @@ const vO = function(e) {
|
|
|
18771
18776
|
};
|
|
18772
18777
|
}
|
|
18773
18778
|
};
|
|
18774
|
-
},
|
|
18779
|
+
}, xO = function(e) {
|
|
18775
18780
|
return e === void 0 && (e = {}), {
|
|
18776
18781
|
name: "size",
|
|
18777
18782
|
options: e,
|
|
@@ -18838,7 +18843,7 @@ function Gt(e) {
|
|
|
18838
18843
|
function zf(e) {
|
|
18839
18844
|
return !Jo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof kt(e).ShadowRoot;
|
|
18840
18845
|
}
|
|
18841
|
-
const
|
|
18846
|
+
const SO = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
18842
18847
|
function xi(e) {
|
|
18843
18848
|
const {
|
|
18844
18849
|
overflow: t,
|
|
@@ -18846,15 +18851,15 @@ function xi(e) {
|
|
|
18846
18851
|
overflowY: r,
|
|
18847
18852
|
display: i
|
|
18848
18853
|
} = jt(e);
|
|
18849
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
18854
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !SO.has(i);
|
|
18850
18855
|
}
|
|
18851
|
-
const
|
|
18852
|
-
function
|
|
18853
|
-
return
|
|
18856
|
+
const kO = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
18857
|
+
function EO(e) {
|
|
18858
|
+
return kO.has(kr(e));
|
|
18854
18859
|
}
|
|
18855
|
-
const
|
|
18860
|
+
const CO = [":popover-open", ":modal"];
|
|
18856
18861
|
function Xo(e) {
|
|
18857
|
-
return
|
|
18862
|
+
return CO.some((t) => {
|
|
18858
18863
|
try {
|
|
18859
18864
|
return e.matches(t);
|
|
18860
18865
|
} catch {
|
|
@@ -18862,12 +18867,12 @@ function Xo(e) {
|
|
|
18862
18867
|
}
|
|
18863
18868
|
});
|
|
18864
18869
|
}
|
|
18865
|
-
const
|
|
18870
|
+
const AO = ["transform", "translate", "scale", "rotate", "perspective"], TO = ["transform", "translate", "scale", "rotate", "perspective", "filter"], IO = ["paint", "layout", "strict", "content"];
|
|
18866
18871
|
function pu(e) {
|
|
18867
18872
|
const t = mu(), n = Ut(e) ? jt(e) : e;
|
|
18868
|
-
return
|
|
18873
|
+
return AO.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || TO.some((r) => (n.willChange || "").includes(r)) || IO.some((r) => (n.contain || "").includes(r));
|
|
18869
18874
|
}
|
|
18870
|
-
function
|
|
18875
|
+
function OO(e) {
|
|
18871
18876
|
let t = bn(e);
|
|
18872
18877
|
for (; Gt(t) && !cr(t); ) {
|
|
18873
18878
|
if (pu(t))
|
|
@@ -18881,9 +18886,9 @@ function IO(e) {
|
|
|
18881
18886
|
function mu() {
|
|
18882
18887
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
18883
18888
|
}
|
|
18884
|
-
const
|
|
18889
|
+
const RO = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
18885
18890
|
function cr(e) {
|
|
18886
|
-
return
|
|
18891
|
+
return RO.has(kr(e));
|
|
18887
18892
|
}
|
|
18888
18893
|
function jt(e) {
|
|
18889
18894
|
return kt(e).getComputedStyle(e);
|
|
@@ -18954,15 +18959,15 @@ function Xn(e) {
|
|
|
18954
18959
|
y: a
|
|
18955
18960
|
};
|
|
18956
18961
|
}
|
|
18957
|
-
const
|
|
18962
|
+
const DO = /* @__PURE__ */ Kt(0);
|
|
18958
18963
|
function fg(e) {
|
|
18959
18964
|
const t = kt(e);
|
|
18960
|
-
return !mu() || !t.visualViewport ?
|
|
18965
|
+
return !mu() || !t.visualViewport ? DO : {
|
|
18961
18966
|
x: t.visualViewport.offsetLeft,
|
|
18962
18967
|
y: t.visualViewport.offsetTop
|
|
18963
18968
|
};
|
|
18964
18969
|
}
|
|
18965
|
-
function
|
|
18970
|
+
function MO(e, t, n) {
|
|
18966
18971
|
return t === void 0 && (t = !1), !n || t && n !== kt(e) ? !1 : t;
|
|
18967
18972
|
}
|
|
18968
18973
|
function Ln(e, t, n, r) {
|
|
@@ -18970,7 +18975,7 @@ function Ln(e, t, n, r) {
|
|
|
18970
18975
|
const i = e.getBoundingClientRect(), o = gu(e);
|
|
18971
18976
|
let s = Kt(1);
|
|
18972
18977
|
t && (r ? Ut(r) && (s = Xn(r)) : s = Xn(e));
|
|
18973
|
-
const a =
|
|
18978
|
+
const a = MO(o, n, r) ? fg(o) : Kt(0);
|
|
18974
18979
|
let l = (i.left + a.x) / s.x, u = (i.top + a.y) / s.y, f = i.width / s.x, c = i.height / s.y;
|
|
18975
18980
|
if (o) {
|
|
18976
18981
|
const h = kt(o), d = r && Ut(r) ? kt(r) : r;
|
|
@@ -18998,7 +19003,7 @@ function dg(e, t) {
|
|
|
18998
19003
|
y: i
|
|
18999
19004
|
};
|
|
19000
19005
|
}
|
|
19001
|
-
function
|
|
19006
|
+
function NO(e) {
|
|
19002
19007
|
let {
|
|
19003
19008
|
elements: t,
|
|
19004
19009
|
rect: n,
|
|
@@ -19025,10 +19030,10 @@ function MO(e) {
|
|
|
19025
19030
|
y: n.y * u.y - l.scrollTop * u.y + f.y + h.y
|
|
19026
19031
|
};
|
|
19027
19032
|
}
|
|
19028
|
-
function
|
|
19033
|
+
function PO(e) {
|
|
19029
19034
|
return Array.from(e.getClientRects());
|
|
19030
19035
|
}
|
|
19031
|
-
function
|
|
19036
|
+
function LO(e) {
|
|
19032
19037
|
const t = Zt(e), n = es(e), r = e.ownerDocument.body, i = wt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = wt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
19033
19038
|
let s = -n.scrollLeft + ts(e);
|
|
19034
19039
|
const a = -n.scrollTop;
|
|
@@ -19040,7 +19045,7 @@ function PO(e) {
|
|
|
19040
19045
|
};
|
|
19041
19046
|
}
|
|
19042
19047
|
const Hf = 25;
|
|
19043
|
-
function
|
|
19048
|
+
function _O(e, t) {
|
|
19044
19049
|
const n = kt(e), r = Zt(e), i = n.visualViewport;
|
|
19045
19050
|
let o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
19046
19051
|
if (i) {
|
|
@@ -19060,8 +19065,8 @@ function LO(e, t) {
|
|
|
19060
19065
|
y: l
|
|
19061
19066
|
};
|
|
19062
19067
|
}
|
|
19063
|
-
const
|
|
19064
|
-
function
|
|
19068
|
+
const FO = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
19069
|
+
function $O(e, t) {
|
|
19065
19070
|
const n = Ln(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = Gt(e) ? Xn(e) : Kt(1), s = e.clientWidth * o.x, a = e.clientHeight * o.y, l = i * o.x, u = r * o.y;
|
|
19066
19071
|
return {
|
|
19067
19072
|
width: s,
|
|
@@ -19073,11 +19078,11 @@ function FO(e, t) {
|
|
|
19073
19078
|
function Uf(e, t, n) {
|
|
19074
19079
|
let r;
|
|
19075
19080
|
if (t === "viewport")
|
|
19076
|
-
r =
|
|
19081
|
+
r = _O(e, n);
|
|
19077
19082
|
else if (t === "document")
|
|
19078
|
-
r =
|
|
19083
|
+
r = LO(Zt(e));
|
|
19079
19084
|
else if (Ut(t))
|
|
19080
|
-
r =
|
|
19085
|
+
r = $O(t, n);
|
|
19081
19086
|
else {
|
|
19082
19087
|
const i = fg(e);
|
|
19083
19088
|
r = {
|
|
@@ -19093,7 +19098,7 @@ function hg(e, t) {
|
|
|
19093
19098
|
const n = bn(e);
|
|
19094
19099
|
return n === t || !Ut(n) || cr(n) ? !1 : jt(n).position === "fixed" || hg(n, t);
|
|
19095
19100
|
}
|
|
19096
|
-
function
|
|
19101
|
+
function BO(e, t) {
|
|
19097
19102
|
const n = t.get(e);
|
|
19098
19103
|
if (n)
|
|
19099
19104
|
return n;
|
|
@@ -19102,18 +19107,18 @@ function $O(e, t) {
|
|
|
19102
19107
|
let s = o ? bn(e) : e;
|
|
19103
19108
|
for (; Ut(s) && !cr(s); ) {
|
|
19104
19109
|
const a = jt(s), l = pu(s);
|
|
19105
|
-
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i &&
|
|
19110
|
+
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && FO.has(i.position) || xi(s) && !l && hg(e, s)) ? r = r.filter((f) => f !== s) : i = a, s = bn(s);
|
|
19106
19111
|
}
|
|
19107
19112
|
return t.set(e, r), r;
|
|
19108
19113
|
}
|
|
19109
|
-
function
|
|
19114
|
+
function zO(e) {
|
|
19110
19115
|
let {
|
|
19111
19116
|
element: t,
|
|
19112
19117
|
boundary: n,
|
|
19113
19118
|
rootBoundary: r,
|
|
19114
19119
|
strategy: i
|
|
19115
19120
|
} = e;
|
|
19116
|
-
const s = [...n === "clippingAncestors" ? Xo(t) ? [] :
|
|
19121
|
+
const s = [...n === "clippingAncestors" ? Xo(t) ? [] : BO(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((u, f) => {
|
|
19117
19122
|
const c = Uf(t, f, i);
|
|
19118
19123
|
return u.top = wt(c.top, u.top), u.right = ur(c.right, u.right), u.bottom = ur(c.bottom, u.bottom), u.left = wt(c.left, u.left), u;
|
|
19119
19124
|
}, Uf(t, a, i));
|
|
@@ -19124,7 +19129,7 @@ function BO(e) {
|
|
|
19124
19129
|
y: l.top
|
|
19125
19130
|
};
|
|
19126
19131
|
}
|
|
19127
|
-
function
|
|
19132
|
+
function HO(e) {
|
|
19128
19133
|
const {
|
|
19129
19134
|
width: t,
|
|
19130
19135
|
height: n
|
|
@@ -19134,7 +19139,7 @@ function zO(e) {
|
|
|
19134
19139
|
height: n
|
|
19135
19140
|
};
|
|
19136
19141
|
}
|
|
19137
|
-
function
|
|
19142
|
+
function UO(e, t, n) {
|
|
19138
19143
|
const r = Gt(t), i = Zt(t), o = n === "fixed", s = Ln(e, !0, o, t);
|
|
19139
19144
|
let a = {
|
|
19140
19145
|
scrollLeft: 0,
|
|
@@ -19183,14 +19188,14 @@ function pg(e, t) {
|
|
|
19183
19188
|
return n;
|
|
19184
19189
|
}
|
|
19185
19190
|
let r = jf(e, t);
|
|
19186
|
-
for (; r &&
|
|
19191
|
+
for (; r && EO(r) && Ks(r); )
|
|
19187
19192
|
r = jf(r, t);
|
|
19188
|
-
return r && cr(r) && Ks(r) && !pu(r) ? n : r ||
|
|
19193
|
+
return r && cr(r) && Ks(r) && !pu(r) ? n : r || OO(e) || n;
|
|
19189
19194
|
}
|
|
19190
|
-
const
|
|
19195
|
+
const jO = async function(e) {
|
|
19191
19196
|
const t = this.getOffsetParent || pg, n = this.getDimensions, r = await n(e.floating);
|
|
19192
19197
|
return {
|
|
19193
|
-
reference:
|
|
19198
|
+
reference: UO(e.reference, await t(e.floating), e.strategy),
|
|
19194
19199
|
floating: {
|
|
19195
19200
|
x: 0,
|
|
19196
19201
|
y: 0,
|
|
@@ -19199,25 +19204,25 @@ const UO = async function(e) {
|
|
|
19199
19204
|
}
|
|
19200
19205
|
};
|
|
19201
19206
|
};
|
|
19202
|
-
function
|
|
19207
|
+
function VO(e) {
|
|
19203
19208
|
return jt(e).direction === "rtl";
|
|
19204
19209
|
}
|
|
19205
|
-
const
|
|
19206
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
19210
|
+
const WO = {
|
|
19211
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: NO,
|
|
19207
19212
|
getDocumentElement: Zt,
|
|
19208
|
-
getClippingRect:
|
|
19213
|
+
getClippingRect: zO,
|
|
19209
19214
|
getOffsetParent: pg,
|
|
19210
|
-
getElementRects:
|
|
19211
|
-
getClientRects:
|
|
19212
|
-
getDimensions:
|
|
19215
|
+
getElementRects: jO,
|
|
19216
|
+
getClientRects: PO,
|
|
19217
|
+
getDimensions: HO,
|
|
19213
19218
|
getScale: Xn,
|
|
19214
19219
|
isElement: Ut,
|
|
19215
|
-
isRTL:
|
|
19220
|
+
isRTL: VO
|
|
19216
19221
|
};
|
|
19217
19222
|
function mg(e, t) {
|
|
19218
19223
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
19219
19224
|
}
|
|
19220
|
-
function
|
|
19225
|
+
function qO(e, t) {
|
|
19221
19226
|
let n = null, r;
|
|
19222
19227
|
const i = Zt(e);
|
|
19223
19228
|
function o() {
|
|
@@ -19263,7 +19268,7 @@ function WO(e, t) {
|
|
|
19263
19268
|
}
|
|
19264
19269
|
return s(!0), o;
|
|
19265
19270
|
}
|
|
19266
|
-
function
|
|
19271
|
+
function YO(e, t, n, r) {
|
|
19267
19272
|
r === void 0 && (r = {});
|
|
19268
19273
|
const {
|
|
19269
19274
|
ancestorScroll: i = !0,
|
|
@@ -19277,7 +19282,7 @@ function qO(e, t, n, r) {
|
|
|
19277
19282
|
passive: !0
|
|
19278
19283
|
}), o && v.addEventListener("resize", n);
|
|
19279
19284
|
});
|
|
19280
|
-
const c = u && a ?
|
|
19285
|
+
const c = u && a ? qO(u, n) : null;
|
|
19281
19286
|
let h = -1, d = null;
|
|
19282
19287
|
s && (d = new ResizeObserver((v) => {
|
|
19283
19288
|
let [y] = v;
|
|
@@ -19299,21 +19304,21 @@ function qO(e, t, n, r) {
|
|
|
19299
19304
|
}), c == null || c(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(m);
|
|
19300
19305
|
};
|
|
19301
19306
|
}
|
|
19302
|
-
const
|
|
19307
|
+
const KO = bO, GO = wO, QO = xO, ZO = (e, t, n) => {
|
|
19303
19308
|
const r = /* @__PURE__ */ new Map(), i = {
|
|
19304
|
-
platform:
|
|
19309
|
+
platform: WO,
|
|
19305
19310
|
...n
|
|
19306
19311
|
}, o = {
|
|
19307
19312
|
...i.platform,
|
|
19308
19313
|
_c: r
|
|
19309
19314
|
};
|
|
19310
|
-
return
|
|
19315
|
+
return gO(e, t, {
|
|
19311
19316
|
...i,
|
|
19312
19317
|
platform: o
|
|
19313
19318
|
});
|
|
19314
19319
|
};
|
|
19315
|
-
var
|
|
19316
|
-
}, ao =
|
|
19320
|
+
var JO = typeof document < "u", XO = function() {
|
|
19321
|
+
}, ao = JO ? hr : XO;
|
|
19317
19322
|
function Co(e, t) {
|
|
19318
19323
|
if (e === t)
|
|
19319
19324
|
return !0;
|
|
@@ -19357,7 +19362,7 @@ function Gs(e) {
|
|
|
19357
19362
|
t.current = e;
|
|
19358
19363
|
}), t;
|
|
19359
19364
|
}
|
|
19360
|
-
function
|
|
19365
|
+
function eR(e) {
|
|
19361
19366
|
e === void 0 && (e = {});
|
|
19362
19367
|
const {
|
|
19363
19368
|
placement: t = "bottom",
|
|
@@ -19392,7 +19397,7 @@ function XO(e) {
|
|
|
19392
19397
|
strategy: n,
|
|
19393
19398
|
middleware: h
|
|
19394
19399
|
};
|
|
19395
|
-
O.current && (B.platform = O.current),
|
|
19400
|
+
O.current && (B.platform = O.current), ZO(k.current, I.current, B).then((V) => {
|
|
19396
19401
|
const b = {
|
|
19397
19402
|
...V,
|
|
19398
19403
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -19459,21 +19464,21 @@ function XO(e) {
|
|
|
19459
19464
|
floatingStyles: H
|
|
19460
19465
|
}), [f, P, _, D, H]);
|
|
19461
19466
|
}
|
|
19462
|
-
const
|
|
19463
|
-
...YO(e),
|
|
19464
|
-
options: [e, t]
|
|
19465
|
-
}), tR = (e, t) => ({
|
|
19467
|
+
const tR = (e, t) => ({
|
|
19466
19468
|
...KO(e),
|
|
19467
19469
|
options: [e, t]
|
|
19468
19470
|
}), nR = (e, t) => ({
|
|
19469
19471
|
...GO(e),
|
|
19470
19472
|
options: [e, t]
|
|
19473
|
+
}), rR = (e, t) => ({
|
|
19474
|
+
...QO(e),
|
|
19475
|
+
options: [e, t]
|
|
19471
19476
|
});
|
|
19472
19477
|
/*!
|
|
19473
19478
|
* tabbable 6.3.0
|
|
19474
19479
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
19475
19480
|
*/
|
|
19476
|
-
var
|
|
19481
|
+
var iR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], el = /* @__PURE__ */ iR.join(","), yg = typeof Element > "u", oi = yg ? function() {
|
|
19477
19482
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ao = !yg && Element.prototype.getRootNode ? function(e) {
|
|
19478
19483
|
var t;
|
|
19479
19484
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -19484,10 +19489,10 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19484
19489
|
n === void 0 && (n = !0);
|
|
19485
19490
|
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", s = o || n && t && si(t.parentNode);
|
|
19486
19491
|
return s;
|
|
19487
|
-
},
|
|
19492
|
+
}, oR = function(t) {
|
|
19488
19493
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
19489
19494
|
return r === "" || r === "true";
|
|
19490
|
-
},
|
|
19495
|
+
}, sR = function(t, n, r) {
|
|
19491
19496
|
if (si(t))
|
|
19492
19497
|
return [];
|
|
19493
19498
|
var i = Array.prototype.slice.apply(t.querySelectorAll(el));
|
|
@@ -19523,26 +19528,26 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19523
19528
|
}, bg = function(t) {
|
|
19524
19529
|
if (!t)
|
|
19525
19530
|
throw new Error("No node provided");
|
|
19526
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
19527
|
-
},
|
|
19531
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || oR(t)) && !vg(t) ? 0 : t.tabIndex;
|
|
19532
|
+
}, aR = function(t, n) {
|
|
19528
19533
|
var r = bg(t);
|
|
19529
19534
|
return r < 0 && n && !vg(t) ? 0 : r;
|
|
19530
|
-
},
|
|
19535
|
+
}, lR = function(t, n) {
|
|
19531
19536
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
19532
19537
|
}, wg = function(t) {
|
|
19533
19538
|
return t.tagName === "INPUT";
|
|
19534
|
-
}, lR = function(t) {
|
|
19535
|
-
return wg(t) && t.type === "hidden";
|
|
19536
19539
|
}, uR = function(t) {
|
|
19540
|
+
return wg(t) && t.type === "hidden";
|
|
19541
|
+
}, cR = function(t) {
|
|
19537
19542
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
19538
19543
|
return r.tagName === "SUMMARY";
|
|
19539
19544
|
});
|
|
19540
19545
|
return n;
|
|
19541
|
-
},
|
|
19546
|
+
}, fR = function(t, n) {
|
|
19542
19547
|
for (var r = 0; r < t.length; r++)
|
|
19543
19548
|
if (t[r].checked && t[r].form === n)
|
|
19544
19549
|
return t[r];
|
|
19545
|
-
},
|
|
19550
|
+
}, dR = function(t) {
|
|
19546
19551
|
if (!t.name)
|
|
19547
19552
|
return !0;
|
|
19548
19553
|
var n = t.form || Ao(t), r = function(a) {
|
|
@@ -19556,13 +19561,13 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19556
19561
|
} catch (s) {
|
|
19557
19562
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
19558
19563
|
}
|
|
19559
|
-
var o =
|
|
19564
|
+
var o = fR(i, t.form);
|
|
19560
19565
|
return !o || o === t;
|
|
19561
|
-
}, dR = function(t) {
|
|
19562
|
-
return wg(t) && t.type === "radio";
|
|
19563
19566
|
}, hR = function(t) {
|
|
19564
|
-
return
|
|
19567
|
+
return wg(t) && t.type === "radio";
|
|
19565
19568
|
}, pR = function(t) {
|
|
19569
|
+
return hR(t) && !dR(t);
|
|
19570
|
+
}, mR = function(t) {
|
|
19566
19571
|
var n, r = t && Ao(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1;
|
|
19567
19572
|
if (r && r !== t) {
|
|
19568
19573
|
var s, a, l;
|
|
@@ -19575,7 +19580,7 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19575
19580
|
}, Wf = function(t) {
|
|
19576
19581
|
var n = t.getBoundingClientRect(), r = n.width, i = n.height;
|
|
19577
19582
|
return r === 0 && i === 0;
|
|
19578
|
-
},
|
|
19583
|
+
}, gR = function(t, n) {
|
|
19579
19584
|
var r = n.displayCheck, i = n.getShadowRoot;
|
|
19580
19585
|
if (r === "full-native" && "checkVisibility" in t) {
|
|
19581
19586
|
var o = t.checkVisibility({
|
|
@@ -19610,14 +19615,14 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19610
19615
|
}
|
|
19611
19616
|
t = l;
|
|
19612
19617
|
}
|
|
19613
|
-
if (
|
|
19618
|
+
if (mR(t))
|
|
19614
19619
|
return !t.getClientRects().length;
|
|
19615
19620
|
if (r !== "legacy-full")
|
|
19616
19621
|
return !0;
|
|
19617
19622
|
} else if (r === "non-zero-area")
|
|
19618
19623
|
return Wf(t);
|
|
19619
19624
|
return !1;
|
|
19620
|
-
},
|
|
19625
|
+
}, yR = function(t) {
|
|
19621
19626
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
19622
19627
|
for (var n = t.parentElement; n; ) {
|
|
19623
19628
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -19631,21 +19636,21 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19631
19636
|
n = n.parentElement;
|
|
19632
19637
|
}
|
|
19633
19638
|
return !1;
|
|
19634
|
-
},
|
|
19639
|
+
}, vR = function(t, n) {
|
|
19635
19640
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
19636
19641
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
19637
19642
|
// note related to `candidateSelectors`)
|
|
19638
|
-
si(n) ||
|
|
19639
|
-
|
|
19643
|
+
si(n) || uR(n) || gR(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
19644
|
+
cR(n) || yR(n));
|
|
19640
19645
|
}, qf = function(t, n) {
|
|
19641
|
-
return !(
|
|
19642
|
-
},
|
|
19646
|
+
return !(pR(n) || bg(n) < 0 || !vR(t, n));
|
|
19647
|
+
}, bR = function(t) {
|
|
19643
19648
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
19644
19649
|
return !!(isNaN(n) || n >= 0);
|
|
19645
19650
|
}, xg = function(t) {
|
|
19646
19651
|
var n = [], r = [];
|
|
19647
19652
|
return t.forEach(function(i, o) {
|
|
19648
|
-
var s = !!i.scopeParent, a = s ? i.scopeParent : i, l =
|
|
19653
|
+
var s = !!i.scopeParent, a = s ? i.scopeParent : i, l = aR(a, s), u = s ? xg(i.candidates) : a;
|
|
19649
19654
|
l === 0 ? s ? n.push.apply(n, u) : n.push(a) : r.push({
|
|
19650
19655
|
documentOrder: o,
|
|
19651
19656
|
tabIndex: l,
|
|
@@ -19653,7 +19658,7 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19653
19658
|
isScope: s,
|
|
19654
19659
|
content: u
|
|
19655
19660
|
});
|
|
19656
|
-
}), r.sort(
|
|
19661
|
+
}), r.sort(lR).reduce(function(i, o) {
|
|
19657
19662
|
return o.isScope ? i.push.apply(i, o.content) : i.push(o.content), i;
|
|
19658
19663
|
}, []).concat(n);
|
|
19659
19664
|
}, yu = function(t, n) {
|
|
@@ -19663,8 +19668,8 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19663
19668
|
filter: qf.bind(null, n),
|
|
19664
19669
|
flatten: !1,
|
|
19665
19670
|
getShadowRoot: n.getShadowRoot,
|
|
19666
|
-
shadowRootFilter:
|
|
19667
|
-
}) : r =
|
|
19671
|
+
shadowRootFilter: bR
|
|
19672
|
+
}) : r = sR(t, n.includeContainer, qf.bind(null, n)), xg(r);
|
|
19668
19673
|
};
|
|
19669
19674
|
const vu = "ArrowUp", ns = "ArrowDown", fr = "ArrowLeft", Si = "ArrowRight";
|
|
19670
19675
|
function zi(e, t, n) {
|
|
@@ -19700,7 +19705,7 @@ function it(e, t) {
|
|
|
19700
19705
|
} while (a >= 0 && a <= s.length - 1 && (i ? i.includes(a) : s[a] == null || (l = s[a]) != null && l.hasAttribute("disabled") || ((u = s[a]) == null ? void 0 : u.getAttribute("aria-disabled")) === "true"));
|
|
19701
19706
|
return a;
|
|
19702
19707
|
}
|
|
19703
|
-
function
|
|
19708
|
+
function wR(e, t) {
|
|
19704
19709
|
let {
|
|
19705
19710
|
event: n,
|
|
19706
19711
|
orientation: r,
|
|
@@ -19791,9 +19796,9 @@ function To() {
|
|
|
19791
19796
|
return e;
|
|
19792
19797
|
}, To.apply(this, arguments);
|
|
19793
19798
|
}
|
|
19794
|
-
let Zs = !1,
|
|
19795
|
-
const Gf = () => "floating-ui-" +
|
|
19796
|
-
function
|
|
19799
|
+
let Zs = !1, xR = 0;
|
|
19800
|
+
const Gf = () => "floating-ui-" + xR++;
|
|
19801
|
+
function SR() {
|
|
19797
19802
|
const [e, t] = E.useState(() => Zs ? Gf() : void 0);
|
|
19798
19803
|
return Xe(() => {
|
|
19799
19804
|
e == null && t(Gf());
|
|
@@ -19801,8 +19806,8 @@ function xR() {
|
|
|
19801
19806
|
Zs || (Zs = !0);
|
|
19802
19807
|
}, []), e;
|
|
19803
19808
|
}
|
|
19804
|
-
const
|
|
19805
|
-
function
|
|
19809
|
+
const kR = E.useId, bu = kR || SR;
|
|
19810
|
+
function ER() {
|
|
19806
19811
|
const e = /* @__PURE__ */ new Map();
|
|
19807
19812
|
return {
|
|
19808
19813
|
emit(t, n) {
|
|
@@ -19818,10 +19823,10 @@ function kR() {
|
|
|
19818
19823
|
}
|
|
19819
19824
|
};
|
|
19820
19825
|
}
|
|
19821
|
-
const
|
|
19826
|
+
const CR = /* @__PURE__ */ E.createContext(null), AR = /* @__PURE__ */ E.createContext(null), Sg = () => {
|
|
19822
19827
|
var e;
|
|
19823
|
-
return ((e = E.useContext(
|
|
19824
|
-
}, rs = () => E.useContext(
|
|
19828
|
+
return ((e = E.useContext(CR)) == null ? void 0 : e.id) || null;
|
|
19829
|
+
}, rs = () => E.useContext(AR);
|
|
19825
19830
|
function ai(e) {
|
|
19826
19831
|
return "data-floating-ui-" + e;
|
|
19827
19832
|
}
|
|
@@ -19831,7 +19836,7 @@ function gn(e) {
|
|
|
19831
19836
|
t.current = e;
|
|
19832
19837
|
}), t;
|
|
19833
19838
|
}
|
|
19834
|
-
function
|
|
19839
|
+
function TR(e, t) {
|
|
19835
19840
|
var n;
|
|
19836
19841
|
let r = [], i = (n = e.find((o) => o.id === t)) == null ? void 0 : n.parentId;
|
|
19837
19842
|
for (; i; ) {
|
|
@@ -19855,7 +19860,7 @@ function er(e, t) {
|
|
|
19855
19860
|
}), n = n.concat(r);
|
|
19856
19861
|
return n;
|
|
19857
19862
|
}
|
|
19858
|
-
function
|
|
19863
|
+
function IR(e, t) {
|
|
19859
19864
|
let n, r = -1;
|
|
19860
19865
|
function i(o, s) {
|
|
19861
19866
|
s > r && (n = o, r = s), er(e, o).forEach((l) => {
|
|
@@ -19865,14 +19870,14 @@ function TR(e, t) {
|
|
|
19865
19870
|
return i(t, 0), e.find((o) => o.id === n);
|
|
19866
19871
|
}
|
|
19867
19872
|
let Un = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), Ui = {}, Js = 0;
|
|
19868
|
-
const
|
|
19873
|
+
const OR = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, kg = (e) => e && (e.host || kg(e.parentNode)), RR = (e, t) => t.map((n) => {
|
|
19869
19874
|
if (e.contains(n))
|
|
19870
19875
|
return n;
|
|
19871
19876
|
const r = kg(n);
|
|
19872
19877
|
return e.contains(r) ? r : null;
|
|
19873
19878
|
}).filter((n) => n != null);
|
|
19874
|
-
function
|
|
19875
|
-
const i = "data-floating-ui-inert", o = r ? "inert" : n ? "aria-hidden" : null, s =
|
|
19879
|
+
function DR(e, t, n, r) {
|
|
19880
|
+
const i = "data-floating-ui-inert", o = r ? "inert" : n ? "aria-hidden" : null, s = RR(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), u = [];
|
|
19876
19881
|
Ui[i] || (Ui[i] = /* @__PURE__ */ new WeakMap());
|
|
19877
19882
|
const f = Ui[i];
|
|
19878
19883
|
s.forEach(c), h(t), a.clear();
|
|
@@ -19899,7 +19904,7 @@ function RR(e, t, n, r) {
|
|
|
19899
19904
|
function Qf(e, t, n) {
|
|
19900
19905
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
19901
19906
|
const r = Ft(e[0]).body;
|
|
19902
|
-
return
|
|
19907
|
+
return DR(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n);
|
|
19903
19908
|
}
|
|
19904
19909
|
const wu = () => ({
|
|
19905
19910
|
getShadowRoot: !0,
|
|
@@ -19926,12 +19931,12 @@ function Kr(e, t) {
|
|
|
19926
19931
|
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
19927
19932
|
return !r || !pt(n, r);
|
|
19928
19933
|
}
|
|
19929
|
-
function
|
|
19934
|
+
function MR(e) {
|
|
19930
19935
|
yu(e, wu()).forEach((n) => {
|
|
19931
19936
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
19932
19937
|
});
|
|
19933
19938
|
}
|
|
19934
|
-
function
|
|
19939
|
+
function NR(e) {
|
|
19935
19940
|
e.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
19936
19941
|
const r = n.dataset.tabindex;
|
|
19937
19942
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
@@ -19950,9 +19955,9 @@ const xu = {
|
|
|
19950
19955
|
top: 0,
|
|
19951
19956
|
left: 0
|
|
19952
19957
|
};
|
|
19953
|
-
let
|
|
19958
|
+
let PR;
|
|
19954
19959
|
function Zf(e) {
|
|
19955
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
19960
|
+
e.key === "Tab" && (e.target, clearTimeout(PR));
|
|
19956
19961
|
}
|
|
19957
19962
|
const Io = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
19958
19963
|
const [r, i] = E.useState();
|
|
@@ -19970,7 +19975,7 @@ const Io = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
19970
19975
|
};
|
|
19971
19976
|
return /* @__PURE__ */ E.createElement("span", To({}, t, o));
|
|
19972
19977
|
}), Tg = /* @__PURE__ */ E.createContext(null);
|
|
19973
|
-
function
|
|
19978
|
+
function LR(e) {
|
|
19974
19979
|
let {
|
|
19975
19980
|
id: t,
|
|
19976
19981
|
root: n
|
|
@@ -20005,14 +20010,14 @@ function PR(e) {
|
|
|
20005
20010
|
}
|
|
20006
20011
|
}, [a]), r;
|
|
20007
20012
|
}
|
|
20008
|
-
function
|
|
20013
|
+
function _R(e) {
|
|
20009
20014
|
let {
|
|
20010
20015
|
children: t,
|
|
20011
20016
|
id: n,
|
|
20012
20017
|
root: r = null,
|
|
20013
20018
|
preserveTabOrder: i = !0
|
|
20014
20019
|
} = e;
|
|
20015
|
-
const o =
|
|
20020
|
+
const o = LR({
|
|
20016
20021
|
id: n,
|
|
20017
20022
|
root: r
|
|
20018
20023
|
}), [s, a] = E.useState(null), l = E.useRef(null), u = E.useRef(null), f = E.useRef(null), c = E.useRef(null), h = (
|
|
@@ -20026,7 +20031,7 @@ function LR(e) {
|
|
|
20026
20031
|
if (!o || !i || s != null && s.modal)
|
|
20027
20032
|
return;
|
|
20028
20033
|
function d(m) {
|
|
20029
|
-
o && Kr(m) && (m.type === "focusin" ?
|
|
20034
|
+
o && Kr(m) && (m.type === "focusin" ? NR : MR)(o);
|
|
20030
20035
|
}
|
|
20031
20036
|
return o.addEventListener("focusin", d, !0), o.addEventListener("focusout", d, !0), () => {
|
|
20032
20037
|
o.removeEventListener("focusin", d, !0), o.removeEventListener("focusout", d, !0);
|
|
@@ -20070,7 +20075,7 @@ function LR(e) {
|
|
|
20070
20075
|
}
|
|
20071
20076
|
}));
|
|
20072
20077
|
}
|
|
20073
|
-
const Ig = () => E.useContext(Tg),
|
|
20078
|
+
const Ig = () => E.useContext(Tg), FR = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
20074
20079
|
return /* @__PURE__ */ E.createElement("button", To({}, t, {
|
|
20075
20080
|
type: "button",
|
|
20076
20081
|
ref: n,
|
|
@@ -20078,7 +20083,7 @@ const Ig = () => E.useContext(Tg), _R = /* @__PURE__ */ E.forwardRef(function(t,
|
|
|
20078
20083
|
style: xu
|
|
20079
20084
|
}));
|
|
20080
20085
|
});
|
|
20081
|
-
function
|
|
20086
|
+
function $R(e) {
|
|
20082
20087
|
const {
|
|
20083
20088
|
context: t,
|
|
20084
20089
|
children: n,
|
|
@@ -20101,7 +20106,7 @@ function FR(e) {
|
|
|
20101
20106
|
domReference: v,
|
|
20102
20107
|
floating: y
|
|
20103
20108
|
}
|
|
20104
|
-
} = t, w =
|
|
20109
|
+
} = t, w = OR() ? o : !0, C = gn(i), S = gn(s), k = gn(a), I = rs(), R = Ig(), N = typeof s == "number" && s < 0, A = E.useRef(null), O = E.useRef(null), $ = E.useRef(!1), P = E.useRef(null), L = E.useRef(!1), _ = R != null, D = v && v.getAttribute("role") === "combobox" && og(v) && N, H = E.useCallback(function(M) {
|
|
20105
20110
|
return M === void 0 && (M = y), M ? yu(M, wu()) : [];
|
|
20106
20111
|
}, [y]), B = E.useCallback((M) => {
|
|
20107
20112
|
const U = H(M);
|
|
@@ -20133,7 +20138,7 @@ function FR(e) {
|
|
|
20133
20138
|
const q = !(pt(v, j) || pt(y, j) || pt(j, y) || pt(R == null ? void 0 : R.portalNode, j) || j != null && j.hasAttribute(ai("focus-guard")) || I && (er(I.nodesRef.current, d).find((W) => {
|
|
20134
20139
|
var G, J;
|
|
20135
20140
|
return pt((G = W.context) == null ? void 0 : G.elements.floating, j) || pt((J = W.context) == null ? void 0 : J.elements.domReference, j);
|
|
20136
|
-
}) ||
|
|
20141
|
+
}) || TR(I.nodesRef.current, d).find((W) => {
|
|
20137
20142
|
var G, J;
|
|
20138
20143
|
return ((G = W.context) == null ? void 0 : G.elements.floating) === j || ((J = W.context) == null ? void 0 : J.elements.domReference) === j;
|
|
20139
20144
|
})));
|
|
@@ -20220,7 +20225,7 @@ function FR(e) {
|
|
|
20220
20225
|
}
|
|
20221
20226
|
}, [r, y, h, C, H, N]);
|
|
20222
20227
|
function V(M) {
|
|
20223
|
-
return r || !u || !l ? null : /* @__PURE__ */ E.createElement(
|
|
20228
|
+
return r || !u || !l ? null : /* @__PURE__ */ E.createElement(FR, {
|
|
20224
20229
|
ref: M === "start" ? A : O,
|
|
20225
20230
|
onClick: (U) => m(!1, U.nativeEvent)
|
|
20226
20231
|
}, typeof u == "string" ? u : "Dismiss");
|
|
@@ -20265,7 +20270,7 @@ function Jf(e) {
|
|
|
20265
20270
|
function Xf(e) {
|
|
20266
20271
|
return og(e);
|
|
20267
20272
|
}
|
|
20268
|
-
function
|
|
20273
|
+
function BR(e, t) {
|
|
20269
20274
|
t === void 0 && (t = {});
|
|
20270
20275
|
const {
|
|
20271
20276
|
open: n,
|
|
@@ -20305,13 +20310,13 @@ function $R(e, t) {
|
|
|
20305
20310
|
}
|
|
20306
20311
|
} : {}, [s, i, a, u, f, o, l, n, r]);
|
|
20307
20312
|
}
|
|
20308
|
-
const
|
|
20313
|
+
const zR = E.useInsertionEffect, HR = zR || ((e) => e());
|
|
20309
20314
|
function yn(e) {
|
|
20310
20315
|
const t = E.useRef(() => {
|
|
20311
20316
|
if (process.env.NODE_ENV !== "production")
|
|
20312
20317
|
throw new Error("Cannot call an event handler while rendering.");
|
|
20313
20318
|
});
|
|
20314
|
-
return
|
|
20319
|
+
return HR(() => {
|
|
20315
20320
|
t.current = e;
|
|
20316
20321
|
}), E.useCallback(function() {
|
|
20317
20322
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
|
|
@@ -20319,22 +20324,22 @@ function yn(e) {
|
|
|
20319
20324
|
return t.current == null ? void 0 : t.current(...r);
|
|
20320
20325
|
}, []);
|
|
20321
20326
|
}
|
|
20322
|
-
const
|
|
20327
|
+
const UR = {
|
|
20323
20328
|
pointerdown: "onPointerDown",
|
|
20324
20329
|
mousedown: "onMouseDown",
|
|
20325
20330
|
click: "onClick"
|
|
20326
|
-
},
|
|
20331
|
+
}, jR = {
|
|
20327
20332
|
pointerdown: "onPointerDownCapture",
|
|
20328
20333
|
mousedown: "onMouseDownCapture",
|
|
20329
20334
|
click: "onClickCapture"
|
|
20330
|
-
},
|
|
20335
|
+
}, VR = (e) => {
|
|
20331
20336
|
var t, n;
|
|
20332
20337
|
return {
|
|
20333
20338
|
escapeKeyBubbles: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
20334
20339
|
outsidePressBubbles: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0
|
|
20335
20340
|
};
|
|
20336
20341
|
};
|
|
20337
|
-
function
|
|
20342
|
+
function WR(e, t) {
|
|
20338
20343
|
t === void 0 && (t = {});
|
|
20339
20344
|
const {
|
|
20340
20345
|
open: n,
|
|
@@ -20359,7 +20364,7 @@ function VR(e, t) {
|
|
|
20359
20364
|
} = t, y = rs(), w = Sg() != null, C = yn(typeof h == "function" ? h : () => !1), S = typeof h == "function" ? C : h, k = E.useRef(!1), {
|
|
20360
20365
|
escapeKeyBubbles: I,
|
|
20361
20366
|
outsidePressBubbles: R
|
|
20362
|
-
} =
|
|
20367
|
+
} = VR(v), N = yn((O) => {
|
|
20363
20368
|
if (!n || !f || !c || O.key !== "Escape")
|
|
20364
20369
|
return;
|
|
20365
20370
|
const $ = y ? er(y.nodesRef.current, o) : [];
|
|
@@ -20381,20 +20386,20 @@ function VR(e, t) {
|
|
|
20381
20386
|
preventScroll: !1
|
|
20382
20387
|
}
|
|
20383
20388
|
}
|
|
20384
|
-
}), r(!1,
|
|
20389
|
+
}), r(!1, lO(O) ? O.nativeEvent : O);
|
|
20385
20390
|
}), A = yn((O) => {
|
|
20386
20391
|
const $ = k.current;
|
|
20387
20392
|
if (k.current = !1, $ || typeof S == "function" && !S(O))
|
|
20388
20393
|
return;
|
|
20389
20394
|
const P = ig(O), L = "[" + ai("inert") + "]", _ = Ft(l).querySelectorAll(L);
|
|
20390
20395
|
let D = Ot(P) ? P : null;
|
|
20391
|
-
for (; D && !
|
|
20392
|
-
const V =
|
|
20396
|
+
for (; D && !rO(D); ) {
|
|
20397
|
+
const V = oO(D);
|
|
20393
20398
|
if (V === Ft(l).body || !Ot(V))
|
|
20394
20399
|
break;
|
|
20395
20400
|
D = V;
|
|
20396
20401
|
}
|
|
20397
|
-
if (_.length && Ot(P) && !
|
|
20402
|
+
if (_.length && Ot(P) && !uO(P) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
20398
20403
|
!pt(P, l) && // If the target root element contains none of the markers, then the
|
|
20399
20404
|
// element was injected after the floating element rendered.
|
|
20400
20405
|
Array.from(_).every((V) => !pt(D, V)))
|
|
@@ -20402,7 +20407,7 @@ function VR(e, t) {
|
|
|
20402
20407
|
if (lr(P) && l) {
|
|
20403
20408
|
const V = P.clientWidth > 0 && P.scrollWidth > P.clientWidth, b = P.clientHeight > 0 && P.scrollHeight > P.clientHeight;
|
|
20404
20409
|
let M = b && O.offsetX > P.clientWidth;
|
|
20405
|
-
if (b &&
|
|
20410
|
+
if (b && iO(P).direction === "rtl" && (M = O.offsetX <= P.offsetWidth - P.clientWidth), M || V && O.offsetY > P.clientHeight)
|
|
20406
20411
|
return;
|
|
20407
20412
|
}
|
|
20408
20413
|
const H = y && er(y.nodesRef.current, o).some((V) => {
|
|
@@ -20459,7 +20464,7 @@ function VR(e, t) {
|
|
|
20459
20464
|
}, [S, d]), E.useMemo(() => f ? {
|
|
20460
20465
|
reference: {
|
|
20461
20466
|
onKeyDown: N,
|
|
20462
|
-
[
|
|
20467
|
+
[UR[p]]: (O) => {
|
|
20463
20468
|
m && (i.emit("dismiss", {
|
|
20464
20469
|
type: "referencePress",
|
|
20465
20470
|
data: {
|
|
@@ -20470,7 +20475,7 @@ function VR(e, t) {
|
|
|
20470
20475
|
},
|
|
20471
20476
|
floating: {
|
|
20472
20477
|
onKeyDown: N,
|
|
20473
|
-
[
|
|
20478
|
+
[jR[d]]: () => {
|
|
20474
20479
|
k.current = !0;
|
|
20475
20480
|
}
|
|
20476
20481
|
}
|
|
@@ -20478,7 +20483,7 @@ function VR(e, t) {
|
|
|
20478
20483
|
}
|
|
20479
20484
|
let nl;
|
|
20480
20485
|
process.env.NODE_ENV !== "production" && (nl = /* @__PURE__ */ new Set());
|
|
20481
|
-
function
|
|
20486
|
+
function qR(e) {
|
|
20482
20487
|
var t;
|
|
20483
20488
|
e === void 0 && (e = {});
|
|
20484
20489
|
const {
|
|
@@ -20497,9 +20502,9 @@ function WR(e) {
|
|
|
20497
20502
|
}
|
|
20498
20503
|
}
|
|
20499
20504
|
}
|
|
20500
|
-
const [l, u] = E.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, c =
|
|
20505
|
+
const [l, u] = E.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, c = eR(e), h = rs(), d = yn((I, R) => {
|
|
20501
20506
|
I && (p.current.openEvent = R), r == null || r(I, R);
|
|
20502
|
-
}), m = E.useRef(null), p = E.useRef({}), g = E.useState(() =>
|
|
20507
|
+
}), m = E.useRef(null), p = E.useRef({}), g = E.useState(() => ER())[0], v = bu(), y = E.useCallback((I) => {
|
|
20503
20508
|
const R = Ot(I) ? {
|
|
20504
20509
|
getBoundingClientRect: () => I.getBoundingClientRect(),
|
|
20505
20510
|
contextElement: I
|
|
@@ -20562,7 +20567,7 @@ function Xs(e, t, n) {
|
|
|
20562
20567
|
}), i), {})
|
|
20563
20568
|
};
|
|
20564
20569
|
}
|
|
20565
|
-
function
|
|
20570
|
+
function YR(e) {
|
|
20566
20571
|
e === void 0 && (e = []);
|
|
20567
20572
|
const t = e, n = E.useCallback(
|
|
20568
20573
|
(o) => Xs(o, e, "reference"),
|
|
@@ -20604,13 +20609,13 @@ function td(e, t) {
|
|
|
20604
20609
|
function ea(e, t, n) {
|
|
20605
20610
|
return is(t, e === ns, n ? e === fr : e === Si) || e === "Enter" || e == " " || e === "";
|
|
20606
20611
|
}
|
|
20607
|
-
function
|
|
20612
|
+
function KR(e, t, n) {
|
|
20608
20613
|
return is(t, n ? e === fr : e === Si, e === ns);
|
|
20609
20614
|
}
|
|
20610
20615
|
function nd(e, t, n) {
|
|
20611
20616
|
return is(t, n ? e === Si : e === fr, e === vu);
|
|
20612
20617
|
}
|
|
20613
|
-
function
|
|
20618
|
+
function GR(e, t) {
|
|
20614
20619
|
const {
|
|
20615
20620
|
open: n,
|
|
20616
20621
|
onOpenChange: r,
|
|
@@ -20654,7 +20659,7 @@ function KR(e, t) {
|
|
|
20654
20659
|
// subsequent calls. `preventScroll` is supported in modern Safari,
|
|
20655
20660
|
// so we can use that instead.
|
|
20656
20661
|
// iOS Safari must be async or the first item will not be focused.
|
|
20657
|
-
sync:
|
|
20662
|
+
sync: aO() && rg() ? ed || B.current : !1
|
|
20658
20663
|
}), requestAnimationFrame(() => {
|
|
20659
20664
|
const pe = U.current;
|
|
20660
20665
|
pe && te && (F || !_.current) && (te.scrollIntoView == null || te.scrollIntoView(typeof pe == "boolean" ? {
|
|
@@ -20757,7 +20762,7 @@ function KR(e, t) {
|
|
|
20757
20762
|
return;
|
|
20758
20763
|
}
|
|
20759
20764
|
const le = P.current, fe = Qs(a, K), ce = Yf(a, K);
|
|
20760
|
-
if (Z.key === "Home" && (nt(Z), P.current = fe, O(P.current)), Z.key === "End" && (nt(Z), P.current = ce, O(P.current)), !(k > 1 && (P.current =
|
|
20765
|
+
if (Z.key === "Home" && (nt(Z), P.current = fe, O(P.current)), Z.key === "End" && (nt(Z), P.current = ce, O(P.current)), !(k > 1 && (P.current = wR(a, {
|
|
20761
20766
|
event: Z,
|
|
20762
20767
|
orientation: S,
|
|
20763
20768
|
loop: d,
|
|
@@ -20803,9 +20808,9 @@ function KR(e, t) {
|
|
|
20803
20808
|
...pe,
|
|
20804
20809
|
onKeyDown(Z) {
|
|
20805
20810
|
_.current = !1;
|
|
20806
|
-
const le = Z.key.indexOf("Arrow") === 0, fe =
|
|
20811
|
+
const le = Z.key.indexOf("Arrow") === 0, fe = KR(Z.key, S, p), ce = nd(Z.key, S, p), Ce = td(Z.key, S), $e = (m ? fe : Ce) || Z.key === "Enter" || Z.key.trim() === "";
|
|
20807
20812
|
if (g && n) {
|
|
20808
|
-
const oe = A == null ? void 0 : A.nodesRef.current.find((Y) => Y.parentId == null), z = A && oe ?
|
|
20813
|
+
const oe = A == null ? void 0 : A.nodesRef.current.find((Y) => Y.parentId == null), z = A && oe ? IR(A.nodesRef.current, oe.id) : null;
|
|
20809
20814
|
if (le && z && R) {
|
|
20810
20815
|
const Y = new KeyboardEvent("keydown", {
|
|
20811
20816
|
key: Z.key,
|
|
@@ -20851,7 +20856,7 @@ function KR(e, t) {
|
|
|
20851
20856
|
};
|
|
20852
20857
|
}, [o, i, x, q, b, M, a, f, S, p, g, n, J, m, c, w, h, k, d, v, O, r, ie, A, R]);
|
|
20853
20858
|
}
|
|
20854
|
-
function
|
|
20859
|
+
function QR(e, t) {
|
|
20855
20860
|
t === void 0 && (t = {});
|
|
20856
20861
|
const {
|
|
20857
20862
|
open: n,
|
|
@@ -20891,7 +20896,7 @@ function GR(e, t) {
|
|
|
20891
20896
|
} : {};
|
|
20892
20897
|
}, [i, o, n, r, s]);
|
|
20893
20898
|
}
|
|
20894
|
-
function
|
|
20899
|
+
function ZR(e, t) {
|
|
20895
20900
|
var n;
|
|
20896
20901
|
const {
|
|
20897
20902
|
open: r,
|
|
@@ -20952,7 +20957,7 @@ function QR(e, t) {
|
|
|
20952
20957
|
};
|
|
20953
20958
|
}, [u, r, i, o, c, S, C, y, w]);
|
|
20954
20959
|
}
|
|
20955
|
-
const
|
|
20960
|
+
const JR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
20956
20961
|
var _, D, H, B, V;
|
|
20957
20962
|
const i = ti((b) => b.messageContainerRef), o = ti((b) => b.portalContainer), [s, a] = E.useState(!1), [l, u] = E.useState(null), [f, c] = E.useState(null), {
|
|
20958
20963
|
message: {
|
|
@@ -20963,19 +20968,19 @@ const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
20963
20968
|
{}
|
|
20964
20969
|
), m = d ? Object.keys(d) : [], p = (b) => {
|
|
20965
20970
|
a(f !== null && !t ? !1 : b);
|
|
20966
|
-
}, { refs: g, floatingStyles: v, context: y } =
|
|
20971
|
+
}, { refs: g, floatingStyles: v, context: y } = qR({
|
|
20967
20972
|
placement: "bottom-start",
|
|
20968
20973
|
open: s,
|
|
20969
20974
|
onOpenChange: p,
|
|
20970
|
-
whileElementsMounted:
|
|
20975
|
+
whileElementsMounted: YO,
|
|
20971
20976
|
middleware: [
|
|
20972
|
-
|
|
20973
|
-
|
|
20977
|
+
tR(5),
|
|
20978
|
+
nR({
|
|
20974
20979
|
padding: 10,
|
|
20975
20980
|
boundary: (i == null ? void 0 : i.current) ?? void 0,
|
|
20976
20981
|
crossAxis: !0
|
|
20977
20982
|
}),
|
|
20978
|
-
|
|
20983
|
+
rR({
|
|
20979
20984
|
apply({ rects: b, elements: M, availableHeight: U }) {
|
|
20980
20985
|
Object.assign(M.floating.style, {
|
|
20981
20986
|
maxHeight: `${U}px`,
|
|
@@ -20985,14 +20990,14 @@ const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
20985
20990
|
padding: 10
|
|
20986
20991
|
})
|
|
20987
20992
|
]
|
|
20988
|
-
}), w = E.useRef([]), C = E.useRef(m), S = E.useRef(!1), k =
|
|
20993
|
+
}), w = E.useRef([]), C = E.useRef(m), S = E.useRef(!1), k = BR(y, { event: "mousedown" }), I = WR(y), R = QR(y, { role: "listbox" }), N = GR(y, {
|
|
20989
20994
|
listRef: w,
|
|
20990
20995
|
activeIndex: l,
|
|
20991
20996
|
selectedIndex: f,
|
|
20992
20997
|
onNavigate: u,
|
|
20993
20998
|
// This is a large list, allow looping.
|
|
20994
20999
|
loop: !0
|
|
20995
|
-
}), A =
|
|
21000
|
+
}), A = ZR(y, {
|
|
20996
21001
|
listRef: C,
|
|
20997
21002
|
activeIndex: l,
|
|
20998
21003
|
selectedIndex: f,
|
|
@@ -21000,7 +21005,7 @@ const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21000
21005
|
onTypingChange(b) {
|
|
21001
21006
|
S.current = b;
|
|
21002
21007
|
}
|
|
21003
|
-
}), { getReferenceProps: O, getFloatingProps: $, getItemProps: P } =
|
|
21008
|
+
}), { getReferenceProps: O, getFloatingProps: $, getItemProps: P } = YR([
|
|
21004
21009
|
I,
|
|
21005
21010
|
R,
|
|
21006
21011
|
N,
|
|
@@ -21031,7 +21036,7 @@ const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21031
21036
|
]
|
|
21032
21037
|
}
|
|
21033
21038
|
),
|
|
21034
|
-
s && /* @__PURE__ */ T(
|
|
21039
|
+
s && /* @__PURE__ */ T(_R, { root: o ?? void 0, children: /* @__PURE__ */ T($R, { context: y, modal: !1, children: /* @__PURE__ */ T(
|
|
21035
21040
|
"div",
|
|
21036
21041
|
{
|
|
21037
21042
|
ref: g.setFloating,
|
|
@@ -21092,7 +21097,7 @@ const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
|
21092
21097
|
);
|
|
21093
21098
|
});
|
|
21094
21099
|
Og.displayName = "File";
|
|
21095
|
-
const
|
|
21100
|
+
const XR = kn()((e, t) => ({
|
|
21096
21101
|
components: {},
|
|
21097
21102
|
getCustomComponent: async (n) => {
|
|
21098
21103
|
const r = t().components[n];
|
|
@@ -21103,29 +21108,29 @@ const JR = kn()((e, t) => ({
|
|
|
21103
21108
|
}
|
|
21104
21109
|
}));
|
|
21105
21110
|
globalThis.React = yt;
|
|
21106
|
-
const
|
|
21107
|
-
const i =
|
|
21111
|
+
const eD = ({ url: e, name: t, data: n, ...r }) => {
|
|
21112
|
+
const i = XR((u) => u.getCustomComponent), [o, s] = Te(null), [a, l] = Te(null);
|
|
21108
21113
|
return _e(() => {
|
|
21109
21114
|
i(e).then(s).catch((u) => {
|
|
21110
21115
|
l(u.message);
|
|
21111
21116
|
});
|
|
21112
21117
|
}, [e]), a ? /* @__PURE__ */ T("div", { style: { color: "red" }, children: a }) : o ? /* @__PURE__ */ T(o, { ...n, ...r }) : null;
|
|
21113
|
-
},
|
|
21118
|
+
}, tD = {
|
|
21114
21119
|
audio: Vm,
|
|
21115
21120
|
bubble: Bm,
|
|
21116
|
-
button:
|
|
21121
|
+
button: mI,
|
|
21117
21122
|
carousel: Zm,
|
|
21118
21123
|
column: qm,
|
|
21119
|
-
dropdown:
|
|
21124
|
+
dropdown: JR,
|
|
21120
21125
|
file: Og,
|
|
21121
21126
|
image: Um,
|
|
21122
21127
|
location: Wm,
|
|
21123
21128
|
row: Ym,
|
|
21124
|
-
text:
|
|
21129
|
+
text: UT,
|
|
21125
21130
|
video: jm,
|
|
21126
|
-
custom:
|
|
21131
|
+
custom: eD
|
|
21127
21132
|
}, dr = ({ block: e, renderers: t, ...n }) => {
|
|
21128
|
-
const r = (t == null ? void 0 : t[e.type]) ??
|
|
21133
|
+
const r = (t == null ? void 0 : t[e.type]) ?? tD[e.type], i = { ...n, ...e };
|
|
21129
21134
|
return /* @__PURE__ */ T(r, { ...i });
|
|
21130
21135
|
};
|
|
21131
21136
|
function Rg(e) {
|
|
@@ -21141,7 +21146,7 @@ function Er() {
|
|
|
21141
21146
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Rg(e)) && (r && (r += " "), r += t);
|
|
21142
21147
|
return r;
|
|
21143
21148
|
}
|
|
21144
|
-
const
|
|
21149
|
+
const nD = ({ disabled: e, onFileSelected: t }) => {
|
|
21145
21150
|
const n = Se(null), { uploadButton: r } = ge.composer, i = () => {
|
|
21146
21151
|
n.current && n.current.click();
|
|
21147
21152
|
}, o = (s) => {
|
|
@@ -21174,7 +21179,7 @@ const tD = ({ disabled: e, onFileSelected: t }) => {
|
|
|
21174
21179
|
}
|
|
21175
21180
|
)
|
|
21176
21181
|
] });
|
|
21177
|
-
},
|
|
21182
|
+
}, rD = ({ name: e, type: t, instance: n, status: r, removeFile: i }) => {
|
|
21178
21183
|
const { loader: o, fileIcon: s, removeIcon: a, errorIcon: l, previewImage: u } = ge.composer.fileWidget, f = ["PNG", "JPEG", "JPG"].includes(Vi(n.name));
|
|
21179
21184
|
return r === "loading" ? /* @__PURE__ */ T(ji, { name: e, status: r, removeButton: /* @__PURE__ */ T("div", { ...o }), extension: Vi(n.name), children: /* @__PURE__ */ T("div", { ...s.container, children: /* @__PURE__ */ T(ta, { type: t, ...s.icon }) }) }) : r === "error" ? /* @__PURE__ */ T(
|
|
21180
21185
|
ji,
|
|
@@ -21238,7 +21243,7 @@ function rl() {
|
|
|
21238
21243
|
return e;
|
|
21239
21244
|
}, rl.apply(null, arguments);
|
|
21240
21245
|
}
|
|
21241
|
-
function
|
|
21246
|
+
function iD(e, t) {
|
|
21242
21247
|
if (e == null) return {};
|
|
21243
21248
|
var n = {};
|
|
21244
21249
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -21247,9 +21252,9 @@ function rD(e, t) {
|
|
|
21247
21252
|
}
|
|
21248
21253
|
return n;
|
|
21249
21254
|
}
|
|
21250
|
-
var
|
|
21255
|
+
var oD = hr, sD = function(t) {
|
|
21251
21256
|
var n = yt.useRef(t);
|
|
21252
|
-
return
|
|
21257
|
+
return oD(function() {
|
|
21253
21258
|
n.current = t;
|
|
21254
21259
|
}), n;
|
|
21255
21260
|
}, id = function(t, n) {
|
|
@@ -21258,7 +21263,7 @@ var iD = hr, oD = function(t) {
|
|
|
21258
21263
|
return;
|
|
21259
21264
|
}
|
|
21260
21265
|
t.current = n;
|
|
21261
|
-
},
|
|
21266
|
+
}, aD = function(t, n) {
|
|
21262
21267
|
var r = yt.useRef();
|
|
21263
21268
|
return yt.useCallback(function(i) {
|
|
21264
21269
|
t.current = i, r.current && id(r.current, null), r.current = n, n && id(n, i);
|
|
@@ -21273,15 +21278,15 @@ var iD = hr, oD = function(t) {
|
|
|
21273
21278
|
"z-index": "-1000",
|
|
21274
21279
|
top: "0",
|
|
21275
21280
|
right: "0"
|
|
21276
|
-
},
|
|
21281
|
+
}, lD = function(t) {
|
|
21277
21282
|
Object.keys(od).forEach(function(n) {
|
|
21278
21283
|
t.style.setProperty(n, od[n], "important");
|
|
21279
21284
|
});
|
|
21280
|
-
}, sd =
|
|
21285
|
+
}, sd = lD, ut = null, ad = function(t, n) {
|
|
21281
21286
|
var r = t.scrollHeight;
|
|
21282
21287
|
return n.sizingStyle.boxSizing === "border-box" ? r + n.borderSize : r - n.paddingSize;
|
|
21283
21288
|
};
|
|
21284
|
-
function
|
|
21289
|
+
function uD(e, t, n, r) {
|
|
21285
21290
|
n === void 0 && (n = 1), r === void 0 && (r = 1 / 0), ut || (ut = document.createElement("textarea"), ut.setAttribute("tabindex", "-1"), ut.setAttribute("aria-hidden", "true"), sd(ut)), ut.parentNode === null && document.body.appendChild(ut);
|
|
21286
21291
|
var i = e.paddingSize, o = e.borderSize, s = e.sizingStyle, a = s.boxSizing;
|
|
21287
21292
|
Object.keys(s).forEach(function(h) {
|
|
@@ -21296,11 +21301,11 @@ function lD(e, t, n, r) {
|
|
|
21296
21301
|
return a === "border-box" && (c = c + i + o), l = Math.min(c, l), [l, u];
|
|
21297
21302
|
}
|
|
21298
21303
|
var ld = function() {
|
|
21299
|
-
},
|
|
21304
|
+
}, cD = function(t, n) {
|
|
21300
21305
|
return t.reduce(function(r, i) {
|
|
21301
21306
|
return r[i] = n[i], r;
|
|
21302
21307
|
}, {});
|
|
21303
|
-
},
|
|
21308
|
+
}, fD = [
|
|
21304
21309
|
"borderBottomWidth",
|
|
21305
21310
|
"borderLeftWidth",
|
|
21306
21311
|
"borderRightWidth",
|
|
@@ -21324,23 +21329,23 @@ var ld = function() {
|
|
|
21324
21329
|
"textTransform",
|
|
21325
21330
|
"width",
|
|
21326
21331
|
"wordBreak"
|
|
21327
|
-
],
|
|
21332
|
+
], dD = !!document.documentElement.currentStyle, hD = function(t) {
|
|
21328
21333
|
var n = window.getComputedStyle(t);
|
|
21329
21334
|
if (n === null)
|
|
21330
21335
|
return null;
|
|
21331
|
-
var r =
|
|
21336
|
+
var r = cD(fD, n), i = r.boxSizing;
|
|
21332
21337
|
if (i === "")
|
|
21333
21338
|
return null;
|
|
21334
|
-
|
|
21339
|
+
dD && i === "border-box" && (r.width = parseFloat(r.width) + parseFloat(r.borderRightWidth) + parseFloat(r.borderLeftWidth) + parseFloat(r.paddingRight) + parseFloat(r.paddingLeft) + "px");
|
|
21335
21340
|
var o = parseFloat(r.paddingBottom) + parseFloat(r.paddingTop), s = parseFloat(r.borderBottomWidth) + parseFloat(r.borderTopWidth);
|
|
21336
21341
|
return {
|
|
21337
21342
|
sizingStyle: r,
|
|
21338
21343
|
paddingSize: o,
|
|
21339
21344
|
borderSize: s
|
|
21340
21345
|
};
|
|
21341
|
-
},
|
|
21346
|
+
}, pD = hD;
|
|
21342
21347
|
function Dg(e, t, n) {
|
|
21343
|
-
var r =
|
|
21348
|
+
var r = sD(n);
|
|
21344
21349
|
E.useLayoutEffect(function() {
|
|
21345
21350
|
var i = function(s) {
|
|
21346
21351
|
return r.current(s);
|
|
@@ -21351,16 +21356,16 @@ function Dg(e, t, n) {
|
|
|
21351
21356
|
};
|
|
21352
21357
|
}, []);
|
|
21353
21358
|
}
|
|
21354
|
-
var
|
|
21359
|
+
var mD = function(t) {
|
|
21355
21360
|
Dg(window, "resize", t);
|
|
21356
|
-
},
|
|
21361
|
+
}, gD = function(t) {
|
|
21357
21362
|
Dg(document.fonts, "loadingdone", t);
|
|
21358
|
-
},
|
|
21359
|
-
var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? ld : s, l = t.onHeightChange, u = l === void 0 ? ld : l, f =
|
|
21360
|
-
var w = h.current, C = r && p.current ? p.current :
|
|
21363
|
+
}, yD = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], vD = function(t, n) {
|
|
21364
|
+
var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? ld : s, l = t.onHeightChange, u = l === void 0 ? ld : l, f = iD(t, yD), c = f.value !== void 0, h = E.useRef(null), d = aD(h, n), m = E.useRef(0), p = E.useRef(), g = function() {
|
|
21365
|
+
var w = h.current, C = r && p.current ? p.current : pD(w);
|
|
21361
21366
|
if (C) {
|
|
21362
21367
|
p.current = C;
|
|
21363
|
-
var S =
|
|
21368
|
+
var S = uD(C, w.value || w.placeholder || "x", o, i), k = S[0], I = S[1];
|
|
21364
21369
|
m.current !== k && (m.current = k, w.style.setProperty("height", k + "px", "important"), u(k, {
|
|
21365
21370
|
rowHeight: I
|
|
21366
21371
|
}));
|
|
@@ -21368,12 +21373,12 @@ var pD = function(t) {
|
|
|
21368
21373
|
}, v = function(w) {
|
|
21369
21374
|
c || g(), a(w);
|
|
21370
21375
|
};
|
|
21371
|
-
return E.useLayoutEffect(g),
|
|
21376
|
+
return E.useLayoutEffect(g), mD(g), gD(g), /* @__PURE__ */ E.createElement("textarea", rl({}, f, {
|
|
21372
21377
|
onChange: v,
|
|
21373
21378
|
ref: d
|
|
21374
21379
|
}));
|
|
21375
|
-
},
|
|
21376
|
-
const
|
|
21380
|
+
}, bD = /* @__PURE__ */ E.forwardRef(vD);
|
|
21381
|
+
const wD = ({
|
|
21377
21382
|
inputRef: e,
|
|
21378
21383
|
composerPlaceholder: t,
|
|
21379
21384
|
composerDisabled: n,
|
|
@@ -21389,7 +21394,7 @@ const bD = ({
|
|
|
21389
21394
|
}) => {
|
|
21390
21395
|
const d = Mm(f || "default", c)((C) => C.messageHistory), [m, p] = Te(""), [g, v] = Te(!1), { input: y } = ge.composer;
|
|
21391
21396
|
return /* @__PURE__ */ T(
|
|
21392
|
-
|
|
21397
|
+
bD,
|
|
21393
21398
|
{
|
|
21394
21399
|
...y,
|
|
21395
21400
|
"aria-label": "Message Input",
|
|
@@ -21430,7 +21435,7 @@ const bD = ({
|
|
|
21430
21435
|
}
|
|
21431
21436
|
}
|
|
21432
21437
|
);
|
|
21433
|
-
},
|
|
21438
|
+
}, xD = ({ disabled: e, setTextInput: t }) => {
|
|
21434
21439
|
const [n, r] = Te(!1), i = Se(null), { voiceButton: o } = ge.composer, s = window.SpeechRecognition || window.webkitSpeechRecognition, a = () => {
|
|
21435
21440
|
i.current || (i.current = new s());
|
|
21436
21441
|
const l = i.current;
|
|
@@ -21453,7 +21458,7 @@ const bD = ({
|
|
|
21453
21458
|
onClick: a
|
|
21454
21459
|
}
|
|
21455
21460
|
);
|
|
21456
|
-
},
|
|
21461
|
+
}, SD = _o(
|
|
21457
21462
|
rt(
|
|
21458
21463
|
({
|
|
21459
21464
|
className: e,
|
|
@@ -21506,7 +21511,7 @@ const bD = ({
|
|
|
21506
21511
|
...m,
|
|
21507
21512
|
children: [
|
|
21508
21513
|
d,
|
|
21509
|
-
R.length > 0 && /* @__PURE__ */ T("div", { ...g == null ? void 0 : g.fileContainer, children: R.map((D) => /* @__PURE__ */ T(
|
|
21514
|
+
R.length > 0 && /* @__PURE__ */ T("div", { ...g == null ? void 0 : g.fileContainer, children: R.map((D) => /* @__PURE__ */ T(rD, { ...D, removeFile: A }, D.name)) }),
|
|
21510
21515
|
/* @__PURE__ */ ae(
|
|
21511
21516
|
"div",
|
|
21512
21517
|
{
|
|
@@ -21516,7 +21521,7 @@ const bD = ({
|
|
|
21516
21521
|
},
|
|
21517
21522
|
children: [
|
|
21518
21523
|
i && /* @__PURE__ */ T(
|
|
21519
|
-
|
|
21524
|
+
nD,
|
|
21520
21525
|
{
|
|
21521
21526
|
disabled: v,
|
|
21522
21527
|
onFileSelected: (D) => {
|
|
@@ -21525,7 +21530,7 @@ const bD = ({
|
|
|
21525
21530
|
}
|
|
21526
21531
|
),
|
|
21527
21532
|
/* @__PURE__ */ T(
|
|
21528
|
-
|
|
21533
|
+
wD,
|
|
21529
21534
|
{
|
|
21530
21535
|
inputRef: t,
|
|
21531
21536
|
composerPlaceholder: a,
|
|
@@ -21556,7 +21561,7 @@ const bD = ({
|
|
|
21556
21561
|
onClick: () => _()
|
|
21557
21562
|
}
|
|
21558
21563
|
),
|
|
21559
|
-
/* @__PURE__ */ T(
|
|
21564
|
+
/* @__PURE__ */ T(xD, { disabled: L, setTextInput: w })
|
|
21560
21565
|
] })
|
|
21561
21566
|
]
|
|
21562
21567
|
}
|
|
@@ -21589,7 +21594,7 @@ var il = { exports: {} }, Wi = { exports: {} }, Re = {};
|
|
|
21589
21594
|
* LICENSE file in the root directory of this source tree.
|
|
21590
21595
|
*/
|
|
21591
21596
|
var ud;
|
|
21592
|
-
function
|
|
21597
|
+
function kD() {
|
|
21593
21598
|
if (ud) return Re;
|
|
21594
21599
|
ud = 1;
|
|
21595
21600
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
@@ -21664,7 +21669,7 @@ var De = {};
|
|
|
21664
21669
|
* LICENSE file in the root directory of this source tree.
|
|
21665
21670
|
*/
|
|
21666
21671
|
var cd;
|
|
21667
|
-
function
|
|
21672
|
+
function ED() {
|
|
21668
21673
|
return cd || (cd = 1, process.env.NODE_ENV !== "production" && function() {
|
|
21669
21674
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
21670
21675
|
function w(F) {
|
|
@@ -21748,7 +21753,7 @@ function kD() {
|
|
|
21748
21753
|
}
|
|
21749
21754
|
var fd;
|
|
21750
21755
|
function Mg() {
|
|
21751
|
-
return fd || (fd = 1, process.env.NODE_ENV === "production" ? Wi.exports =
|
|
21756
|
+
return fd || (fd = 1, process.env.NODE_ENV === "production" ? Wi.exports = kD() : Wi.exports = ED()), Wi.exports;
|
|
21752
21757
|
}
|
|
21753
21758
|
/*
|
|
21754
21759
|
object-assign
|
|
@@ -21756,7 +21761,7 @@ object-assign
|
|
|
21756
21761
|
@license MIT
|
|
21757
21762
|
*/
|
|
21758
21763
|
var na, dd;
|
|
21759
|
-
function
|
|
21764
|
+
function CD() {
|
|
21760
21765
|
if (dd) return na;
|
|
21761
21766
|
dd = 1;
|
|
21762
21767
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
@@ -21813,7 +21818,7 @@ function Ng() {
|
|
|
21813
21818
|
return pd || (pd = 1, ia = Function.call.bind(Object.prototype.hasOwnProperty)), ia;
|
|
21814
21819
|
}
|
|
21815
21820
|
var oa, md;
|
|
21816
|
-
function
|
|
21821
|
+
function AD() {
|
|
21817
21822
|
if (md) return oa;
|
|
21818
21823
|
md = 1;
|
|
21819
21824
|
var e = function() {
|
|
@@ -21862,10 +21867,10 @@ function CD() {
|
|
|
21862
21867
|
}, oa = i, oa;
|
|
21863
21868
|
}
|
|
21864
21869
|
var sa, gd;
|
|
21865
|
-
function
|
|
21870
|
+
function TD() {
|
|
21866
21871
|
if (gd) return sa;
|
|
21867
21872
|
gd = 1;
|
|
21868
|
-
var e = Mg(), t =
|
|
21873
|
+
var e = Mg(), t = CD(), n = Su(), r = Ng(), i = AD(), o = function() {
|
|
21869
21874
|
};
|
|
21870
21875
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
21871
21876
|
var l = "Warning: " + a;
|
|
@@ -22183,7 +22188,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
22183
22188
|
}, sa;
|
|
22184
22189
|
}
|
|
22185
22190
|
var aa, yd;
|
|
22186
|
-
function
|
|
22191
|
+
function ID() {
|
|
22187
22192
|
if (yd) return aa;
|
|
22188
22193
|
yd = 1;
|
|
22189
22194
|
var e = Su();
|
|
@@ -22231,13 +22236,13 @@ function TD() {
|
|
|
22231
22236
|
}, aa;
|
|
22232
22237
|
}
|
|
22233
22238
|
if (process.env.NODE_ENV !== "production") {
|
|
22234
|
-
var
|
|
22235
|
-
il.exports =
|
|
22239
|
+
var OD = Mg(), RD = !0;
|
|
22240
|
+
il.exports = TD()(OD.isElement, RD);
|
|
22236
22241
|
} else
|
|
22237
|
-
il.exports =
|
|
22238
|
-
var
|
|
22239
|
-
const Ne = /* @__PURE__ */ Fn(
|
|
22240
|
-
var
|
|
22242
|
+
il.exports = ID()();
|
|
22243
|
+
var DD = il.exports;
|
|
22244
|
+
const Ne = /* @__PURE__ */ Fn(DD);
|
|
22245
|
+
var MD = /* @__PURE__ */ new Map([
|
|
22241
22246
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
22242
22247
|
["aac", "audio/aac"],
|
|
22243
22248
|
["abw", "application/x-abiword"],
|
|
@@ -22322,7 +22327,7 @@ var DD = /* @__PURE__ */ new Map([
|
|
|
22322
22327
|
["msg", "application/vnd.ms-outlook"]
|
|
22323
22328
|
]);
|
|
22324
22329
|
function ki(e, t) {
|
|
22325
|
-
var n =
|
|
22330
|
+
var n = ND(e);
|
|
22326
22331
|
if (typeof n.path != "string") {
|
|
22327
22332
|
var r = e.webkitRelativePath;
|
|
22328
22333
|
Object.defineProperty(n, "path", {
|
|
@@ -22334,10 +22339,10 @@ function ki(e, t) {
|
|
|
22334
22339
|
}
|
|
22335
22340
|
return n;
|
|
22336
22341
|
}
|
|
22337
|
-
function
|
|
22342
|
+
function ND(e) {
|
|
22338
22343
|
var t = e.name, n = t && t.lastIndexOf(".") !== -1;
|
|
22339
22344
|
if (n && !e.type) {
|
|
22340
|
-
var r = t.split(".").pop().toLowerCase(), i =
|
|
22345
|
+
var r = t.split(".").pop().toLowerCase(), i = MD.get(r);
|
|
22341
22346
|
i && Object.defineProperty(e, "type", {
|
|
22342
22347
|
value: i,
|
|
22343
22348
|
writable: !1,
|
|
@@ -22347,36 +22352,36 @@ function MD(e) {
|
|
|
22347
22352
|
}
|
|
22348
22353
|
return e;
|
|
22349
22354
|
}
|
|
22350
|
-
var
|
|
22355
|
+
var PD = [
|
|
22351
22356
|
// Thumbnail cache files for macOS and Windows
|
|
22352
22357
|
".DS_Store",
|
|
22353
22358
|
"Thumbs.db"
|
|
22354
22359
|
// Windows
|
|
22355
22360
|
];
|
|
22356
|
-
function
|
|
22361
|
+
function LD(e) {
|
|
22357
22362
|
return xr(this, void 0, void 0, function() {
|
|
22358
22363
|
return Sr(this, function(t) {
|
|
22359
|
-
return Oo(e) &&
|
|
22364
|
+
return Oo(e) && _D(e.dataTransfer) ? [2, zD(e.dataTransfer, e.type)] : FD(e) ? [2, $D(e)] : Array.isArray(e) && e.every(function(n) {
|
|
22360
22365
|
return "getFile" in n && typeof n.getFile == "function";
|
|
22361
|
-
}) ? [2,
|
|
22366
|
+
}) ? [2, BD(e)] : [2, []];
|
|
22362
22367
|
});
|
|
22363
22368
|
});
|
|
22364
22369
|
}
|
|
22365
|
-
function
|
|
22370
|
+
function _D(e) {
|
|
22366
22371
|
return Oo(e);
|
|
22367
22372
|
}
|
|
22368
|
-
function
|
|
22373
|
+
function FD(e) {
|
|
22369
22374
|
return Oo(e) && Oo(e.target);
|
|
22370
22375
|
}
|
|
22371
22376
|
function Oo(e) {
|
|
22372
22377
|
return typeof e == "object" && e !== null;
|
|
22373
22378
|
}
|
|
22374
|
-
function
|
|
22379
|
+
function $D(e) {
|
|
22375
22380
|
return ol(e.target.files).map(function(t) {
|
|
22376
22381
|
return ki(t);
|
|
22377
22382
|
});
|
|
22378
22383
|
}
|
|
22379
|
-
function
|
|
22384
|
+
function BD(e) {
|
|
22380
22385
|
return xr(this, void 0, void 0, function() {
|
|
22381
22386
|
var t;
|
|
22382
22387
|
return Sr(this, function(n) {
|
|
@@ -22393,7 +22398,7 @@ function $D(e) {
|
|
|
22393
22398
|
});
|
|
22394
22399
|
});
|
|
22395
22400
|
}
|
|
22396
|
-
function
|
|
22401
|
+
function zD(e, t) {
|
|
22397
22402
|
return xr(this, void 0, void 0, function() {
|
|
22398
22403
|
var n, r;
|
|
22399
22404
|
return Sr(this, function(i) {
|
|
@@ -22401,7 +22406,7 @@ function BD(e, t) {
|
|
|
22401
22406
|
case 0:
|
|
22402
22407
|
return e.items ? (n = ol(e.items).filter(function(o) {
|
|
22403
22408
|
return o.kind === "file";
|
|
22404
|
-
}), t !== "drop" ? [2, n] : [4, Promise.all(n.map(
|
|
22409
|
+
}), t !== "drop" ? [2, n] : [4, Promise.all(n.map(HD))]) : [3, 2];
|
|
22405
22410
|
case 1:
|
|
22406
22411
|
return r = i.sent(), [2, vd(Pg(r))];
|
|
22407
22412
|
case 2:
|
|
@@ -22414,7 +22419,7 @@ function BD(e, t) {
|
|
|
22414
22419
|
}
|
|
22415
22420
|
function vd(e) {
|
|
22416
22421
|
return e.filter(function(t) {
|
|
22417
|
-
return
|
|
22422
|
+
return PD.indexOf(t.name) === -1;
|
|
22418
22423
|
});
|
|
22419
22424
|
}
|
|
22420
22425
|
function ol(e) {
|
|
@@ -22426,7 +22431,7 @@ function ol(e) {
|
|
|
22426
22431
|
}
|
|
22427
22432
|
return t;
|
|
22428
22433
|
}
|
|
22429
|
-
function
|
|
22434
|
+
function HD(e) {
|
|
22430
22435
|
if (typeof e.webkitGetAsEntry != "function")
|
|
22431
22436
|
return bd(e);
|
|
22432
22437
|
var t = e.webkitGetAsEntry();
|
|
@@ -22444,10 +22449,10 @@ function bd(e) {
|
|
|
22444
22449
|
var n = ki(t);
|
|
22445
22450
|
return Promise.resolve(n);
|
|
22446
22451
|
}
|
|
22447
|
-
function
|
|
22452
|
+
function UD(e) {
|
|
22448
22453
|
return xr(this, void 0, void 0, function() {
|
|
22449
22454
|
return Sr(this, function(t) {
|
|
22450
|
-
return [2, e.isDirectory ? Lg(e) :
|
|
22455
|
+
return [2, e.isDirectory ? Lg(e) : jD(e)];
|
|
22451
22456
|
});
|
|
22452
22457
|
});
|
|
22453
22458
|
}
|
|
@@ -22474,7 +22479,7 @@ function Lg(e) {
|
|
|
22474
22479
|
case 4:
|
|
22475
22480
|
return [3, 6];
|
|
22476
22481
|
case 5:
|
|
22477
|
-
f = Promise.all(a.map(
|
|
22482
|
+
f = Promise.all(a.map(UD)), i.push(f), o(), c.label = 6;
|
|
22478
22483
|
case 6:
|
|
22479
22484
|
return [
|
|
22480
22485
|
2
|
|
@@ -22490,7 +22495,7 @@ function Lg(e) {
|
|
|
22490
22495
|
o();
|
|
22491
22496
|
});
|
|
22492
22497
|
}
|
|
22493
|
-
function
|
|
22498
|
+
function jD(e) {
|
|
22494
22499
|
return xr(this, void 0, void 0, function() {
|
|
22495
22500
|
return Sr(this, function(t) {
|
|
22496
22501
|
return [2, new Promise(function(n, r) {
|
|
@@ -22504,7 +22509,7 @@ function UD(e) {
|
|
|
22504
22509
|
});
|
|
22505
22510
|
});
|
|
22506
22511
|
}
|
|
22507
|
-
var
|
|
22512
|
+
var VD = function(e, t) {
|
|
22508
22513
|
if (e && t) {
|
|
22509
22514
|
var n = Array.isArray(t) ? t : t.split(",");
|
|
22510
22515
|
if (n.length === 0)
|
|
@@ -22518,16 +22523,16 @@ var jD = function(e, t) {
|
|
|
22518
22523
|
return !0;
|
|
22519
22524
|
};
|
|
22520
22525
|
function wd(e) {
|
|
22521
|
-
return
|
|
22526
|
+
return YD(e) || qD(e) || Fg(e) || WD();
|
|
22522
22527
|
}
|
|
22523
|
-
function
|
|
22528
|
+
function WD() {
|
|
22524
22529
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22525
22530
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
22526
22531
|
}
|
|
22527
|
-
function
|
|
22532
|
+
function qD(e) {
|
|
22528
22533
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
22529
22534
|
}
|
|
22530
|
-
function
|
|
22535
|
+
function YD(e) {
|
|
22531
22536
|
if (Array.isArray(e)) return sl(e);
|
|
22532
22537
|
}
|
|
22533
22538
|
function xd(e, t) {
|
|
@@ -22555,9 +22560,9 @@ function _g(e, t, n) {
|
|
|
22555
22560
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
22556
22561
|
}
|
|
22557
22562
|
function li(e, t) {
|
|
22558
|
-
return
|
|
22563
|
+
return QD(e) || GD(e, t) || Fg(e, t) || KD();
|
|
22559
22564
|
}
|
|
22560
|
-
function
|
|
22565
|
+
function KD() {
|
|
22561
22566
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22562
22567
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
22563
22568
|
}
|
|
@@ -22575,7 +22580,7 @@ function sl(e, t) {
|
|
|
22575
22580
|
r[n] = e[n];
|
|
22576
22581
|
return r;
|
|
22577
22582
|
}
|
|
22578
|
-
function
|
|
22583
|
+
function GD(e, t) {
|
|
22579
22584
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
22580
22585
|
if (n != null) {
|
|
22581
22586
|
var r = [], i = !0, o = !1, s, a;
|
|
@@ -22594,33 +22599,33 @@ function KD(e, t) {
|
|
|
22594
22599
|
return r;
|
|
22595
22600
|
}
|
|
22596
22601
|
}
|
|
22597
|
-
function
|
|
22602
|
+
function QD(e) {
|
|
22598
22603
|
if (Array.isArray(e)) return e;
|
|
22599
22604
|
}
|
|
22600
|
-
var
|
|
22605
|
+
var ZD = "file-invalid-type", JD = "file-too-large", XD = "file-too-small", eM = "too-many-files", tM = function(t) {
|
|
22601
22606
|
t = Array.isArray(t) && t.length === 1 ? t[0] : t;
|
|
22602
22607
|
var n = Array.isArray(t) ? "one of ".concat(t.join(", ")) : t;
|
|
22603
22608
|
return {
|
|
22604
|
-
code:
|
|
22609
|
+
code: ZD,
|
|
22605
22610
|
message: "File type must be ".concat(n)
|
|
22606
22611
|
};
|
|
22607
22612
|
}, kd = function(t) {
|
|
22608
22613
|
return {
|
|
22609
|
-
code:
|
|
22614
|
+
code: JD,
|
|
22610
22615
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
22611
22616
|
};
|
|
22612
22617
|
}, Ed = function(t) {
|
|
22613
22618
|
return {
|
|
22614
|
-
code:
|
|
22619
|
+
code: XD,
|
|
22615
22620
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
22616
22621
|
};
|
|
22617
|
-
},
|
|
22618
|
-
code:
|
|
22622
|
+
}, nM = {
|
|
22623
|
+
code: eM,
|
|
22619
22624
|
message: "Too many files"
|
|
22620
22625
|
};
|
|
22621
22626
|
function $g(e, t) {
|
|
22622
|
-
var n = e.type === "application/x-moz-file" ||
|
|
22623
|
-
return [n, n ? null :
|
|
22627
|
+
var n = e.type === "application/x-moz-file" || VD(e, t);
|
|
22628
|
+
return [n, n ? null : tM(t)];
|
|
22624
22629
|
}
|
|
22625
22630
|
function Bg(e, t, n) {
|
|
22626
22631
|
if (On(e.size))
|
|
@@ -22636,7 +22641,7 @@ function Bg(e, t, n) {
|
|
|
22636
22641
|
function On(e) {
|
|
22637
22642
|
return e != null;
|
|
22638
22643
|
}
|
|
22639
|
-
function
|
|
22644
|
+
function rM(e) {
|
|
22640
22645
|
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, o = e.multiple, s = e.maxFiles, a = e.validator;
|
|
22641
22646
|
return !o && t.length > 1 || o && s >= 1 && t.length > s ? !1 : t.every(function(l) {
|
|
22642
22647
|
var u = $g(l, n), f = li(u, 1), c = f[0], h = Bg(l, r, i), d = li(h, 1), m = d[0], p = a ? a(l) : null;
|
|
@@ -22654,15 +22659,15 @@ function qi(e) {
|
|
|
22654
22659
|
function Cd(e) {
|
|
22655
22660
|
e.preventDefault();
|
|
22656
22661
|
}
|
|
22657
|
-
function
|
|
22662
|
+
function iM(e) {
|
|
22658
22663
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
22659
22664
|
}
|
|
22660
|
-
function
|
|
22665
|
+
function oM(e) {
|
|
22661
22666
|
return e.indexOf("Edge/") !== -1;
|
|
22662
22667
|
}
|
|
22663
|
-
function
|
|
22668
|
+
function sM() {
|
|
22664
22669
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
22665
|
-
return
|
|
22670
|
+
return iM(e) || oM(e);
|
|
22666
22671
|
}
|
|
22667
22672
|
function Wt() {
|
|
22668
22673
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -22675,10 +22680,10 @@ function Wt() {
|
|
|
22675
22680
|
});
|
|
22676
22681
|
};
|
|
22677
22682
|
}
|
|
22678
|
-
function
|
|
22683
|
+
function aM() {
|
|
22679
22684
|
return "showOpenFilePicker" in window;
|
|
22680
22685
|
}
|
|
22681
|
-
function
|
|
22686
|
+
function lM(e) {
|
|
22682
22687
|
if (On(e)) {
|
|
22683
22688
|
var t = Object.entries(e).filter(function(n) {
|
|
22684
22689
|
var r = li(n, 2), i = r[0], o = r[1], s = !0;
|
|
@@ -22695,7 +22700,7 @@ function aM(e) {
|
|
|
22695
22700
|
}
|
|
22696
22701
|
return e;
|
|
22697
22702
|
}
|
|
22698
|
-
function
|
|
22703
|
+
function uM(e) {
|
|
22699
22704
|
if (On(e))
|
|
22700
22705
|
return Object.entries(e).reduce(function(t, n) {
|
|
22701
22706
|
var r = li(n, 2), i = r[0], o = r[1];
|
|
@@ -22704,10 +22709,10 @@ function lM(e) {
|
|
|
22704
22709
|
return zg(t) || Hg(t);
|
|
22705
22710
|
}).join(",");
|
|
22706
22711
|
}
|
|
22707
|
-
function
|
|
22712
|
+
function cM(e) {
|
|
22708
22713
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
22709
22714
|
}
|
|
22710
|
-
function
|
|
22715
|
+
function fM(e) {
|
|
22711
22716
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
22712
22717
|
}
|
|
22713
22718
|
function zg(e) {
|
|
@@ -22716,24 +22721,24 @@ function zg(e) {
|
|
|
22716
22721
|
function Hg(e) {
|
|
22717
22722
|
return /^.*\.[\w]+$/.test(e);
|
|
22718
22723
|
}
|
|
22719
|
-
var
|
|
22720
|
-
function
|
|
22721
|
-
return
|
|
22724
|
+
var dM = ["children"], hM = ["open"], pM = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], mM = ["refKey", "onChange", "onClick"];
|
|
22725
|
+
function gM(e) {
|
|
22726
|
+
return bM(e) || vM(e) || Ug(e) || yM();
|
|
22722
22727
|
}
|
|
22723
|
-
function
|
|
22728
|
+
function yM() {
|
|
22724
22729
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22725
22730
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
22726
22731
|
}
|
|
22727
|
-
function
|
|
22732
|
+
function vM(e) {
|
|
22728
22733
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
22729
22734
|
}
|
|
22730
|
-
function
|
|
22735
|
+
function bM(e) {
|
|
22731
22736
|
if (Array.isArray(e)) return al(e);
|
|
22732
22737
|
}
|
|
22733
22738
|
function la(e, t) {
|
|
22734
|
-
return
|
|
22739
|
+
return SM(e) || xM(e, t) || Ug(e, t) || wM();
|
|
22735
22740
|
}
|
|
22736
|
-
function
|
|
22741
|
+
function wM() {
|
|
22737
22742
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22738
22743
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
22739
22744
|
}
|
|
@@ -22751,7 +22756,7 @@ function al(e, t) {
|
|
|
22751
22756
|
r[n] = e[n];
|
|
22752
22757
|
return r;
|
|
22753
22758
|
}
|
|
22754
|
-
function
|
|
22759
|
+
function xM(e, t) {
|
|
22755
22760
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
22756
22761
|
if (n != null) {
|
|
22757
22762
|
var r = [], i = !0, o = !1, s, a;
|
|
@@ -22770,7 +22775,7 @@ function wM(e, t) {
|
|
|
22770
22775
|
return r;
|
|
22771
22776
|
}
|
|
22772
22777
|
}
|
|
22773
|
-
function
|
|
22778
|
+
function SM(e) {
|
|
22774
22779
|
if (Array.isArray(e)) return e;
|
|
22775
22780
|
}
|
|
22776
22781
|
function Ad(e, t) {
|
|
@@ -22799,7 +22804,7 @@ function ll(e, t, n) {
|
|
|
22799
22804
|
}
|
|
22800
22805
|
function Do(e, t) {
|
|
22801
22806
|
if (e == null) return {};
|
|
22802
|
-
var n =
|
|
22807
|
+
var n = kM(e, t), r, i;
|
|
22803
22808
|
if (Object.getOwnPropertySymbols) {
|
|
22804
22809
|
var o = Object.getOwnPropertySymbols(e);
|
|
22805
22810
|
for (i = 0; i < o.length; i++)
|
|
@@ -22807,7 +22812,7 @@ function Do(e, t) {
|
|
|
22807
22812
|
}
|
|
22808
22813
|
return n;
|
|
22809
22814
|
}
|
|
22810
|
-
function
|
|
22815
|
+
function kM(e, t) {
|
|
22811
22816
|
if (e == null) return {};
|
|
22812
22817
|
var n = {}, r = Object.keys(e), i, o;
|
|
22813
22818
|
for (o = 0; o < r.length; o++)
|
|
@@ -22815,7 +22820,7 @@ function SM(e, t) {
|
|
|
22815
22820
|
return n;
|
|
22816
22821
|
}
|
|
22817
22822
|
var ku = /* @__PURE__ */ rt(function(e, t) {
|
|
22818
|
-
var n = e.children, r = Do(e,
|
|
22823
|
+
var n = e.children, r = Do(e, dM), i = Vg(r), o = i.open, s = Do(i, hM);
|
|
22819
22824
|
return xv(t, function() {
|
|
22820
22825
|
return {
|
|
22821
22826
|
open: o
|
|
@@ -22827,7 +22832,7 @@ var ku = /* @__PURE__ */ rt(function(e, t) {
|
|
|
22827
22832
|
ku.displayName = "Dropzone";
|
|
22828
22833
|
var jg = {
|
|
22829
22834
|
disabled: !1,
|
|
22830
|
-
getFilesFromEvent:
|
|
22835
|
+
getFilesFromEvent: LD,
|
|
22831
22836
|
maxSize: 1 / 0,
|
|
22832
22837
|
minSize: 0,
|
|
22833
22838
|
multiple: !0,
|
|
@@ -23021,14 +23026,14 @@ var ul = {
|
|
|
23021
23026
|
};
|
|
23022
23027
|
function Vg() {
|
|
23023
23028
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ze(ze({}, jg), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, c = t.onDragOver, h = t.onDrop, d = t.onDropAccepted, m = t.onDropRejected, p = t.onFileDialogCancel, g = t.onFileDialogOpen, v = t.useFsAccessApi, y = t.autoFocus, w = t.preventDropOnDocument, C = t.noClick, S = t.noKeyboard, k = t.noDrag, I = t.noDragEventsBubbling, R = t.onError, N = t.validator, A = ct(function() {
|
|
23024
|
-
return
|
|
23029
|
+
return uM(n);
|
|
23025
23030
|
}, [n]), O = ct(function() {
|
|
23026
|
-
return
|
|
23031
|
+
return lM(n);
|
|
23027
23032
|
}, [n]), $ = ct(function() {
|
|
23028
23033
|
return typeof g == "function" ? g : Td;
|
|
23029
23034
|
}, [g]), P = ct(function() {
|
|
23030
23035
|
return typeof p == "function" ? p : Td;
|
|
23031
|
-
}, [p]), L = Se(null), _ = Se(null), D = wv(
|
|
23036
|
+
}, [p]), L = Se(null), _ = Se(null), D = wv(EM, ul), H = la(D, 2), B = H[0], V = H[1], b = B.isFocused, M = B.isFileDialogActive, U = Se(typeof window < "u" && window.isSecureContext && v && aM()), x = function() {
|
|
23032
23037
|
!U.current && M && setTimeout(function() {
|
|
23033
23038
|
if (_.current) {
|
|
23034
23039
|
var oe = _.current.files;
|
|
@@ -23057,9 +23062,9 @@ function Vg() {
|
|
|
23057
23062
|
var W = Me(function(X) {
|
|
23058
23063
|
R ? R(X) : console.error(X);
|
|
23059
23064
|
}, [R]), G = Me(function(X) {
|
|
23060
|
-
X.preventDefault(), X.persist(), Ce(X), j.current = [].concat(
|
|
23065
|
+
X.preventDefault(), X.persist(), Ce(X), j.current = [].concat(gM(j.current), [X.target]), qi(X) && Promise.resolve(i(X)).then(function(oe) {
|
|
23061
23066
|
if (!(Ro(X) && !I)) {
|
|
23062
|
-
var z = oe.length, Y = z > 0 &&
|
|
23067
|
+
var z = oe.length, Y = z > 0 && rM({
|
|
23063
23068
|
files: oe,
|
|
23064
23069
|
accept: A,
|
|
23065
23070
|
minSize: s,
|
|
@@ -23116,7 +23121,7 @@ function Vg() {
|
|
|
23116
23121
|
}), (!a && z.length > 1 || a && l >= 1 && z.length > l) && (z.forEach(function(re) {
|
|
23117
23122
|
Y.push({
|
|
23118
23123
|
file: re,
|
|
23119
|
-
errors: [
|
|
23124
|
+
errors: [nM]
|
|
23120
23125
|
});
|
|
23121
23126
|
}), z.splice(0)), V({
|
|
23122
23127
|
acceptedFiles: z,
|
|
@@ -23147,9 +23152,9 @@ function Vg() {
|
|
|
23147
23152
|
type: "closeDialog"
|
|
23148
23153
|
});
|
|
23149
23154
|
}).catch(function(oe) {
|
|
23150
|
-
|
|
23155
|
+
cM(oe) ? (P(oe), V({
|
|
23151
23156
|
type: "closeDialog"
|
|
23152
|
-
})) :
|
|
23157
|
+
})) : fM(oe) ? (U.current = !1, _.current ? (_.current.value = null, _.current.click()) : W(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : W(oe);
|
|
23153
23158
|
});
|
|
23154
23159
|
return;
|
|
23155
23160
|
}
|
|
@@ -23167,7 +23172,7 @@ function Vg() {
|
|
|
23167
23172
|
type: "blur"
|
|
23168
23173
|
});
|
|
23169
23174
|
}, []), Z = Me(function() {
|
|
23170
|
-
C || (
|
|
23175
|
+
C || (sM() ? setTimeout(F, 0) : F());
|
|
23171
23176
|
}, [C, F]), le = function(oe) {
|
|
23172
23177
|
return r ? null : oe;
|
|
23173
23178
|
}, fe = function(oe) {
|
|
@@ -23178,7 +23183,7 @@ function Vg() {
|
|
|
23178
23183
|
I && oe.stopPropagation();
|
|
23179
23184
|
}, $e = ct(function() {
|
|
23180
23185
|
return function() {
|
|
23181
|
-
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.role, re = X.onKeyDown, se = X.onFocus, de = X.onBlur, qe = X.onClick, Ge = X.onDragEnter, et = X.onDragOver, Et = X.onDragLeave, Nt = X.onDrop, Qe = Do(X,
|
|
23186
|
+
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.role, re = X.onKeyDown, se = X.onFocus, de = X.onBlur, qe = X.onClick, Ge = X.onDragEnter, et = X.onDragOver, Et = X.onDragLeave, Nt = X.onDrop, Qe = Do(X, pM);
|
|
23182
23187
|
return ze(ze(ll({
|
|
23183
23188
|
onKeyDown: fe(Wt(re, te)),
|
|
23184
23189
|
onFocus: fe(Wt(se, pe)),
|
|
@@ -23197,7 +23202,7 @@ function Vg() {
|
|
|
23197
23202
|
X.stopPropagation();
|
|
23198
23203
|
}, []), je = ct(function() {
|
|
23199
23204
|
return function() {
|
|
23200
|
-
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.onChange, re = X.onClick, se = Do(X,
|
|
23205
|
+
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.onChange, re = X.onClick, se = Do(X, mM), de = ll({
|
|
23201
23206
|
accept: A,
|
|
23202
23207
|
multiple: a,
|
|
23203
23208
|
type: "file",
|
|
@@ -23220,7 +23225,7 @@ function Vg() {
|
|
|
23220
23225
|
open: le(F)
|
|
23221
23226
|
});
|
|
23222
23227
|
}
|
|
23223
|
-
function
|
|
23228
|
+
function EM(e, t) {
|
|
23224
23229
|
switch (t.type) {
|
|
23225
23230
|
case "focus":
|
|
23226
23231
|
return ze(ze({}, e), {}, {
|
|
@@ -23257,7 +23262,7 @@ function kM(e, t) {
|
|
|
23257
23262
|
}
|
|
23258
23263
|
function Td() {
|
|
23259
23264
|
}
|
|
23260
|
-
const
|
|
23265
|
+
const CM = ({ children: e }) => {
|
|
23261
23266
|
const t = Se(null), [n, r] = Te({ open: !1 }), i = ({
|
|
23262
23267
|
title: s,
|
|
23263
23268
|
description: a,
|
|
@@ -23316,14 +23321,14 @@ const EM = ({ children: e }) => {
|
|
|
23316
23321
|
]
|
|
23317
23322
|
}
|
|
23318
23323
|
);
|
|
23319
|
-
},
|
|
23324
|
+
}, AM = (e, t) => {
|
|
23320
23325
|
const n = e.replace(/\s+/g, "+");
|
|
23321
23326
|
if (!e.replace(/[^a-zA-Z0-9\s\-_]/g, "").trim()) return;
|
|
23322
23327
|
const i = t.filter((l) => /^\d+$/.test(l)).join(";"), o = `https://fonts.googleapis.com/css2?family=${n}:wght@${i}&display=swap`;
|
|
23323
23328
|
if (document.querySelector(`link[href="${o}"]`)) return;
|
|
23324
23329
|
const a = document.createElement("link");
|
|
23325
23330
|
a.rel = "stylesheet", a.href = o, document.head.appendChild(a);
|
|
23326
|
-
},
|
|
23331
|
+
}, TM = ({
|
|
23327
23332
|
color: e,
|
|
23328
23333
|
fontFamily: t,
|
|
23329
23334
|
radius: n,
|
|
@@ -23333,7 +23338,7 @@ const EM = ({ children: e }) => {
|
|
|
23333
23338
|
additionalStylesheetUrl: s
|
|
23334
23339
|
}) => {
|
|
23335
23340
|
ct(() => {
|
|
23336
|
-
t &&
|
|
23341
|
+
t && AM(t, ["100", "200", "300", "400", "500", "600", "700", "800"]);
|
|
23337
23342
|
}, [t]);
|
|
23338
23343
|
const a = ct(
|
|
23339
23344
|
() => vw({ color: e, fontFamily: t, radius: n, themeMode: r, variant: i, headerVariant: o }),
|
|
@@ -23355,31 +23360,31 @@ const EM = ({ children: e }) => {
|
|
|
23355
23360
|
] });
|
|
23356
23361
|
};
|
|
23357
23362
|
let Yi;
|
|
23358
|
-
const
|
|
23359
|
-
function
|
|
23363
|
+
const IM = new Uint8Array(16);
|
|
23364
|
+
function OM() {
|
|
23360
23365
|
if (!Yi && (Yi = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Yi))
|
|
23361
23366
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
23362
|
-
return Yi(
|
|
23367
|
+
return Yi(IM);
|
|
23363
23368
|
}
|
|
23364
23369
|
const tt = [];
|
|
23365
23370
|
for (let e = 0; e < 256; ++e)
|
|
23366
23371
|
tt.push((e + 256).toString(16).slice(1));
|
|
23367
|
-
function
|
|
23372
|
+
function RM(e, t = 0) {
|
|
23368
23373
|
return tt[e[t + 0]] + tt[e[t + 1]] + tt[e[t + 2]] + tt[e[t + 3]] + "-" + tt[e[t + 4]] + tt[e[t + 5]] + "-" + tt[e[t + 6]] + tt[e[t + 7]] + "-" + tt[e[t + 8]] + tt[e[t + 9]] + "-" + tt[e[t + 10]] + tt[e[t + 11]] + tt[e[t + 12]] + tt[e[t + 13]] + tt[e[t + 14]] + tt[e[t + 15]];
|
|
23369
23374
|
}
|
|
23370
|
-
const
|
|
23371
|
-
randomUUID:
|
|
23375
|
+
const DM = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Id = {
|
|
23376
|
+
randomUUID: DM
|
|
23372
23377
|
};
|
|
23373
|
-
function
|
|
23378
|
+
function MM(e, t, n) {
|
|
23374
23379
|
if (Id.randomUUID && !e)
|
|
23375
23380
|
return Id.randomUUID();
|
|
23376
23381
|
e = e || {};
|
|
23377
|
-
const r = e.random || (e.rng ||
|
|
23378
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
23382
|
+
const r = e.random || (e.rng || OM)();
|
|
23383
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, RM(r);
|
|
23379
23384
|
}
|
|
23380
23385
|
function Gr(e) {
|
|
23381
23386
|
var s;
|
|
23382
|
-
const { metadata: t, conversationId: n, userId: r } = e, { payload: i, disableInput: o } =
|
|
23387
|
+
const { metadata: t, conversationId: n, userId: r } = e, { payload: i, disableInput: o } = NM(e.payload);
|
|
23383
23388
|
return {
|
|
23384
23389
|
id: e.id,
|
|
23385
23390
|
conversationId: n,
|
|
@@ -23391,18 +23396,18 @@ function Gr(e) {
|
|
|
23391
23396
|
metadata: t
|
|
23392
23397
|
};
|
|
23393
23398
|
}
|
|
23394
|
-
const
|
|
23399
|
+
const NM = (e) => {
|
|
23395
23400
|
switch (e.type) {
|
|
23396
23401
|
case "audio":
|
|
23397
23402
|
return Wg(e);
|
|
23398
23403
|
case "card":
|
|
23399
|
-
return NM(e);
|
|
23400
|
-
case "carousel":
|
|
23401
23404
|
return PM(e);
|
|
23402
|
-
case "
|
|
23405
|
+
case "carousel":
|
|
23403
23406
|
return LM(e);
|
|
23404
|
-
case "
|
|
23407
|
+
case "choice":
|
|
23405
23408
|
return _M(e);
|
|
23409
|
+
case "dropdown":
|
|
23410
|
+
return FM(e);
|
|
23406
23411
|
case "file":
|
|
23407
23412
|
return qg(e);
|
|
23408
23413
|
case "image":
|
|
@@ -23416,7 +23421,7 @@ const MM = (e) => {
|
|
|
23416
23421
|
case "video":
|
|
23417
23422
|
return Zg(e);
|
|
23418
23423
|
case "bloc":
|
|
23419
|
-
return
|
|
23424
|
+
return $M(e);
|
|
23420
23425
|
case "custom":
|
|
23421
23426
|
return { payload: e };
|
|
23422
23427
|
default: {
|
|
@@ -23429,15 +23434,15 @@ const MM = (e) => {
|
|
|
23429
23434
|
type: "bubble"
|
|
23430
23435
|
}), Wg = (e) => ({
|
|
23431
23436
|
payload: { type: "audio", url: e.audioUrl }
|
|
23432
|
-
}), NM = (e) => ({
|
|
23433
|
-
payload: Ei(Jg(e))
|
|
23434
23437
|
}), PM = (e) => ({
|
|
23438
|
+
payload: Ei(Jg(e))
|
|
23439
|
+
}), LM = (e) => ({
|
|
23435
23440
|
payload: {
|
|
23436
23441
|
type: "carousel",
|
|
23437
23442
|
blocks: e.items.map((t) => Jg({ ...t }))
|
|
23438
23443
|
}
|
|
23439
|
-
}),
|
|
23440
|
-
const t = e.options.map((o) => ({ title: o.label, value: o.value })), n = e.text, r =
|
|
23444
|
+
}), _M = (e) => {
|
|
23445
|
+
const t = e.options.map((o) => ({ title: o.label, value: o.value })), n = e.text, r = MM(), i = Ei({
|
|
23441
23446
|
type: "text",
|
|
23442
23447
|
text: n
|
|
23443
23448
|
});
|
|
@@ -23463,7 +23468,7 @@ const MM = (e) => {
|
|
|
23463
23468
|
]
|
|
23464
23469
|
}
|
|
23465
23470
|
};
|
|
23466
|
-
},
|
|
23471
|
+
}, FM = (e) => {
|
|
23467
23472
|
const t = e.options.map((i) => ({ label: i.label, value: i.value })), n = e.text, r = [
|
|
23468
23473
|
{
|
|
23469
23474
|
type: "dropdown",
|
|
@@ -23502,7 +23507,7 @@ const MM = (e) => {
|
|
|
23502
23507
|
payload: Ei({ type: "text", text: e.text, value: e.value })
|
|
23503
23508
|
}), Zg = (e) => ({
|
|
23504
23509
|
payload: { type: "video", url: e.videoUrl }
|
|
23505
|
-
}),
|
|
23510
|
+
}), $M = (e) => ({ payload: {
|
|
23506
23511
|
type: "column",
|
|
23507
23512
|
blocks: e.items.map((n) => {
|
|
23508
23513
|
switch (n.type) {
|
|
@@ -23573,10 +23578,10 @@ const MM = (e) => {
|
|
|
23573
23578
|
blocks: [...o]
|
|
23574
23579
|
};
|
|
23575
23580
|
};
|
|
23576
|
-
var
|
|
23581
|
+
var BM = Object.defineProperty, zM = (e, t, n) => t in e ? BM(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, HM = (e, t, n) => zM(e, t + "", n), UM = async (e, t) => {
|
|
23577
23582
|
let n = typeof t == "function" ? await t(e) : t;
|
|
23578
23583
|
if (n) return e.scheme === "bearer" ? `Bearer ${n}` : e.scheme === "basic" ? `Basic ${btoa(n)}` : n;
|
|
23579
|
-
},
|
|
23584
|
+
}, jM = { bodySerializer: (e) => JSON.stringify(e, (t, n) => typeof n == "bigint" ? n.toString() : n) }, VM = (e) => {
|
|
23580
23585
|
switch (e) {
|
|
23581
23586
|
case "label":
|
|
23582
23587
|
return ".";
|
|
@@ -23587,7 +23592,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23587
23592
|
default:
|
|
23588
23593
|
return "&";
|
|
23589
23594
|
}
|
|
23590
|
-
},
|
|
23595
|
+
}, WM = (e) => {
|
|
23591
23596
|
switch (e) {
|
|
23592
23597
|
case "form":
|
|
23593
23598
|
return ",";
|
|
@@ -23598,7 +23603,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23598
23603
|
default:
|
|
23599
23604
|
return ",";
|
|
23600
23605
|
}
|
|
23601
|
-
},
|
|
23606
|
+
}, qM = (e) => {
|
|
23602
23607
|
switch (e) {
|
|
23603
23608
|
case "label":
|
|
23604
23609
|
return ".";
|
|
@@ -23611,7 +23616,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23611
23616
|
}
|
|
23612
23617
|
}, Xg = ({ allowReserved: e, explode: t, name: n, style: r, value: i }) => {
|
|
23613
23618
|
if (!t) {
|
|
23614
|
-
let a = (e ? i : i.map((l) => encodeURIComponent(l))).join(
|
|
23619
|
+
let a = (e ? i : i.map((l) => encodeURIComponent(l))).join(WM(r));
|
|
23615
23620
|
switch (r) {
|
|
23616
23621
|
case "label":
|
|
23617
23622
|
return `.${a}`;
|
|
@@ -23623,7 +23628,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23623
23628
|
return `${n}=${a}`;
|
|
23624
23629
|
}
|
|
23625
23630
|
}
|
|
23626
|
-
let o =
|
|
23631
|
+
let o = VM(r), s = i.map((a) => r === "label" || r === "simple" ? e ? a : encodeURIComponent(a) : os({ allowReserved: e, name: n, value: a })).join(o);
|
|
23627
23632
|
return r === "label" || r === "matrix" ? o + s : s;
|
|
23628
23633
|
}, os = ({ allowReserved: e, name: t, value: n }) => {
|
|
23629
23634
|
if (n == null) return "";
|
|
@@ -23648,10 +23653,10 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23648
23653
|
return l;
|
|
23649
23654
|
}
|
|
23650
23655
|
}
|
|
23651
|
-
let o =
|
|
23656
|
+
let o = qM(r), s = Object.entries(i).map(([a, l]) => os({ allowReserved: e, name: r === "deepObject" ? `${n}[${a}]` : a, value: l })).join(o);
|
|
23652
23657
|
return r === "label" || r === "matrix" ? o + s : s;
|
|
23653
|
-
},
|
|
23654
|
-
let n = t, r = t.match(
|
|
23658
|
+
}, YM = /\{[^{}]+\}/g, KM = ({ path: e, url: t }) => {
|
|
23659
|
+
let n = t, r = t.match(YM);
|
|
23655
23660
|
if (r) for (let i of r) {
|
|
23656
23661
|
let o = !1, s = i.substring(1, i.length - 1), a = "simple";
|
|
23657
23662
|
s.endsWith("*") && (o = !0, s = s.substring(0, s.length - 1)), s.startsWith(".") ? (s = s.substring(1), a = "label") : s.startsWith(";") && (s = s.substring(1), a = "matrix");
|
|
@@ -23690,7 +23695,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23690
23695
|
}
|
|
23691
23696
|
}
|
|
23692
23697
|
return i.join("&");
|
|
23693
|
-
},
|
|
23698
|
+
}, GM = (e) => {
|
|
23694
23699
|
var t;
|
|
23695
23700
|
if (!e) return "stream";
|
|
23696
23701
|
let n = (t = e.split(";")[0]) == null ? void 0 : t.trim();
|
|
@@ -23700,9 +23705,9 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23700
23705
|
if (["application/", "audio/", "image/", "video/"].some((r) => n.startsWith(r))) return "blob";
|
|
23701
23706
|
if (n.startsWith("text/")) return "text";
|
|
23702
23707
|
}
|
|
23703
|
-
},
|
|
23708
|
+
}, QM = async ({ security: e, ...t }) => {
|
|
23704
23709
|
for (let n of e) {
|
|
23705
|
-
let r = await
|
|
23710
|
+
let r = await UM(n, t.auth);
|
|
23706
23711
|
if (!r) continue;
|
|
23707
23712
|
let i = n.name ?? "Authorization";
|
|
23708
23713
|
switch (n.in) {
|
|
@@ -23719,9 +23724,9 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23719
23724
|
}
|
|
23720
23725
|
return;
|
|
23721
23726
|
}
|
|
23722
|
-
}, Od = (e) =>
|
|
23727
|
+
}, Od = (e) => ZM({ baseUrl: e.baseUrl, path: e.path, query: e.query, querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : ty(e.querySerializer), url: e.url }), ZM = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
|
|
23723
23728
|
let o = i.startsWith("/") ? i : `/${i}`, s = (e ?? "") + o;
|
|
23724
|
-
t && (s =
|
|
23729
|
+
t && (s = KM({ path: t, url: s }));
|
|
23725
23730
|
let a = n ? r(n) : "";
|
|
23726
23731
|
return a.startsWith("?") && (a = a.substring(1)), a && (s += `?${a}`), s;
|
|
23727
23732
|
}, Rd = (e, t) => {
|
|
@@ -23740,7 +23745,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23740
23745
|
return t;
|
|
23741
23746
|
}, ua = class {
|
|
23742
23747
|
constructor() {
|
|
23743
|
-
|
|
23748
|
+
HM(this, "_fns"), this._fns = [];
|
|
23744
23749
|
}
|
|
23745
23750
|
clear() {
|
|
23746
23751
|
this._fns = [];
|
|
@@ -23755,10 +23760,10 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23755
23760
|
use(t) {
|
|
23756
23761
|
this._fns = [...this._fns, t];
|
|
23757
23762
|
}
|
|
23758
|
-
},
|
|
23759
|
-
let t = Rd(ry(), e), n = () => ({ ...t }), r = (s) => (t = Rd(t, s), n()), i =
|
|
23763
|
+
}, JM = () => ({ error: new ua(), request: new ua(), response: new ua() }), XM = /* @__PURE__ */ ty({ allowReserved: !1, array: { explode: !0, style: "form" }, object: { explode: !0, style: "deepObject" } }), eN = { "Content-Type": "application/json" }, ry = (e = {}) => ({ ...jM, headers: eN, parseAs: "auto", querySerializer: XM, ...e }), tN = (e = {}) => {
|
|
23764
|
+
let t = Rd(ry(), e), n = () => ({ ...t }), r = (s) => (t = Rd(t, s), n()), i = JM(), o = async (s) => {
|
|
23760
23765
|
let a = { ...t, ...s, fetch: s.fetch ?? t.fetch ?? globalThis.fetch, headers: ny(t.headers, s.headers) };
|
|
23761
|
-
a.security && await
|
|
23766
|
+
a.security && await QM({ ...a, security: a.security }), a.body && a.bodySerializer && (a.body = a.bodySerializer(a.body)), (a.body === void 0 || a.body === "") && a.headers.delete("Content-Type");
|
|
23762
23767
|
let l = Od(a), u = { redirect: "follow", ...a }, f = new Request(l, u);
|
|
23763
23768
|
for (let g of i.request._fns) f = await g(f, a);
|
|
23764
23769
|
let c = a.fetch, h = await c(f);
|
|
@@ -23766,7 +23771,7 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23766
23771
|
let d = { request: f, response: h };
|
|
23767
23772
|
if (h.ok) {
|
|
23768
23773
|
if (h.status === 204 || h.headers.get("Content-Length") === "0") return { data: {}, ...d };
|
|
23769
|
-
let g = (a.parseAs === "auto" ?
|
|
23774
|
+
let g = (a.parseAs === "auto" ? GM(h.headers.get("Content-Type")) : a.parseAs) ?? "json";
|
|
23770
23775
|
if (g === "stream") return { data: h.body, ...d };
|
|
23771
23776
|
let v = await h[g]();
|
|
23772
23777
|
return g === "json" && (a.responseValidator && await a.responseValidator(v), a.responseTransformer && (v = await a.responseTransformer(v))), { data: v, ...d };
|
|
@@ -23782,8 +23787,8 @@ var $M = Object.defineProperty, BM = (e, t, n) => t in e ? $M(e, t, { enumerable
|
|
|
23782
23787
|
return { error: p, ...d };
|
|
23783
23788
|
};
|
|
23784
23789
|
return { buildUrl: Od, connect: (s) => o({ ...s, method: "CONNECT" }), delete: (s) => o({ ...s, method: "DELETE" }), get: (s) => o({ ...s, method: "GET" }), getConfig: n, head: (s) => o({ ...s, method: "HEAD" }), interceptors: i, options: (s) => o({ ...s, method: "OPTIONS" }), patch: (s) => o({ ...s, method: "PATCH" }), post: (s) => o({ ...s, method: "POST" }), put: (s) => o({ ...s, method: "PUT" }), request: o, setConfig: r, trace: (s) => o({ ...s, method: "TRACE" }) };
|
|
23785
|
-
},
|
|
23786
|
-
const
|
|
23790
|
+
}, nN = tN, rN = ry;
|
|
23791
|
+
const iN = (e) => ({
|
|
23787
23792
|
...e,
|
|
23788
23793
|
withCredentials: !0,
|
|
23789
23794
|
timeout: 6e4,
|
|
@@ -23792,104 +23797,104 @@ const rN = (e) => ({
|
|
|
23792
23797
|
throwOnError: !0,
|
|
23793
23798
|
parseAs: "json"
|
|
23794
23799
|
// We do not always have the content type header in each request so we parse as json by default
|
|
23795
|
-
}), Fe = /* @__PURE__ */
|
|
23800
|
+
}), Fe = /* @__PURE__ */ nN(/* @__PURE__ */ iN(/* @__PURE__ */ rN({
|
|
23796
23801
|
baseUrl: "https://webchat.botpress.cloud/"
|
|
23797
|
-
}))),
|
|
23802
|
+
}))), oN = (e) => (e.client ?? Fe).delete({
|
|
23798
23803
|
url: "/conversations/{id}",
|
|
23799
23804
|
...e
|
|
23800
|
-
}),
|
|
23805
|
+
}), sN = (e) => (e.client ?? Fe).get({
|
|
23801
23806
|
url: "/conversations/{id}",
|
|
23802
23807
|
...e
|
|
23803
|
-
}),
|
|
23808
|
+
}), aN = (e) => (e.client ?? Fe).get({
|
|
23804
23809
|
url: "/conversations",
|
|
23805
23810
|
...e
|
|
23806
|
-
}),
|
|
23811
|
+
}), lN = (e) => (e.client ?? Fe).post({
|
|
23807
23812
|
url: "/conversations",
|
|
23808
23813
|
...e,
|
|
23809
23814
|
headers: {
|
|
23810
23815
|
"Content-Type": "application/json",
|
|
23811
23816
|
...e == null ? void 0 : e.headers
|
|
23812
23817
|
}
|
|
23813
|
-
}),
|
|
23818
|
+
}), uN = (e) => (e.client ?? Fe).get({
|
|
23814
23819
|
url: "/conversations/{id}/messages",
|
|
23815
23820
|
...e
|
|
23816
|
-
}),
|
|
23821
|
+
}), cN = (e) => (e.client ?? Fe).get({
|
|
23817
23822
|
url: "/conversations/{id}/participants",
|
|
23818
23823
|
...e
|
|
23819
|
-
}),
|
|
23824
|
+
}), fN = (e) => (e.client ?? Fe).post({
|
|
23820
23825
|
url: "/conversations/{id}/participants",
|
|
23821
23826
|
...e,
|
|
23822
23827
|
headers: {
|
|
23823
23828
|
"Content-Type": "application/json",
|
|
23824
23829
|
...e == null ? void 0 : e.headers
|
|
23825
23830
|
}
|
|
23826
|
-
}),
|
|
23831
|
+
}), dN = (e) => (e.client ?? Fe).delete({
|
|
23827
23832
|
url: "/conversations/{id}/participants/{userId}",
|
|
23828
23833
|
...e
|
|
23829
|
-
}),
|
|
23834
|
+
}), hN = (e) => (e.client ?? Fe).get({
|
|
23830
23835
|
url: "/conversations/{id}/participants/{userId}",
|
|
23831
23836
|
...e
|
|
23832
|
-
}),
|
|
23837
|
+
}), pN = (e) => (e.client ?? Fe).delete({
|
|
23833
23838
|
url: "/messages/{id}",
|
|
23834
23839
|
...e
|
|
23835
|
-
}),
|
|
23840
|
+
}), mN = (e) => (e.client ?? Fe).get({
|
|
23836
23841
|
url: "/messages/{id}",
|
|
23837
23842
|
...e
|
|
23838
|
-
}),
|
|
23843
|
+
}), gN = (e) => (e.client ?? Fe).put({
|
|
23839
23844
|
url: "/messages/{id}",
|
|
23840
23845
|
...e,
|
|
23841
23846
|
headers: {
|
|
23842
23847
|
"Content-Type": "application/json",
|
|
23843
23848
|
...e == null ? void 0 : e.headers
|
|
23844
23849
|
}
|
|
23845
|
-
}),
|
|
23850
|
+
}), yN = (e) => (e.client ?? Fe).post({
|
|
23846
23851
|
url: "/messages",
|
|
23847
23852
|
...e,
|
|
23848
23853
|
headers: {
|
|
23849
23854
|
"Content-Type": "application/json",
|
|
23850
23855
|
...e == null ? void 0 : e.headers
|
|
23851
23856
|
}
|
|
23852
|
-
}),
|
|
23857
|
+
}), vN = (e) => (e.client ?? Fe).delete({
|
|
23853
23858
|
url: "/messages/{id}/feedback",
|
|
23854
23859
|
...e
|
|
23855
|
-
}),
|
|
23860
|
+
}), bN = (e) => (e.client ?? Fe).put({
|
|
23856
23861
|
url: "/messages/{id}/feedback",
|
|
23857
23862
|
...e,
|
|
23858
23863
|
headers: {
|
|
23859
23864
|
"Content-Type": "application/json",
|
|
23860
23865
|
...e == null ? void 0 : e.headers
|
|
23861
23866
|
}
|
|
23862
|
-
}),
|
|
23867
|
+
}), wN = (e) => (e.client ?? Fe).delete({
|
|
23863
23868
|
url: "/users/me",
|
|
23864
23869
|
...e
|
|
23865
|
-
}),
|
|
23870
|
+
}), xN = (e) => (e.client ?? Fe).get({
|
|
23866
23871
|
url: "/users/me",
|
|
23867
23872
|
...e
|
|
23868
|
-
}),
|
|
23873
|
+
}), SN = (e) => (e.client ?? Fe).put({
|
|
23869
23874
|
url: "/users/me",
|
|
23870
23875
|
...e,
|
|
23871
23876
|
headers: {
|
|
23872
23877
|
"Content-Type": "application/json",
|
|
23873
23878
|
...e == null ? void 0 : e.headers
|
|
23874
23879
|
}
|
|
23875
|
-
}),
|
|
23880
|
+
}), kN = (e) => ((e == null ? void 0 : e.client) ?? Fe).post({
|
|
23876
23881
|
url: "/users/key",
|
|
23877
23882
|
...e,
|
|
23878
23883
|
headers: {
|
|
23879
23884
|
"Content-Type": "application/json",
|
|
23880
23885
|
...e == null ? void 0 : e.headers
|
|
23881
23886
|
}
|
|
23882
|
-
}),
|
|
23887
|
+
}), EN = (e) => (e.client ?? Fe).get({
|
|
23883
23888
|
url: "/events/{id}",
|
|
23884
23889
|
...e
|
|
23885
|
-
}),
|
|
23890
|
+
}), CN = (e) => (e.client ?? Fe).post({
|
|
23886
23891
|
url: "/events",
|
|
23887
23892
|
...e,
|
|
23888
23893
|
headers: {
|
|
23889
23894
|
"Content-Type": "application/json",
|
|
23890
23895
|
...e == null ? void 0 : e.headers
|
|
23891
23896
|
}
|
|
23892
|
-
}),
|
|
23897
|
+
}), AN = (e) => (e.client ?? Fe).post({
|
|
23893
23898
|
url: "/files",
|
|
23894
23899
|
...e,
|
|
23895
23900
|
headers: {
|
|
@@ -23904,7 +23909,7 @@ let Dd = class extends Error {
|
|
|
23904
23909
|
};
|
|
23905
23910
|
function ca(e) {
|
|
23906
23911
|
}
|
|
23907
|
-
function
|
|
23912
|
+
function TN(e) {
|
|
23908
23913
|
if (typeof e == "function")
|
|
23909
23914
|
throw new TypeError(
|
|
23910
23915
|
"`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
|
|
@@ -23912,7 +23917,7 @@ function AN(e) {
|
|
|
23912
23917
|
const { onEvent: t = ca, onError: n = ca, onRetry: r = ca, onComment: i } = e;
|
|
23913
23918
|
let o = "", s = !0, a, l = "", u = "";
|
|
23914
23919
|
function f(p) {
|
|
23915
|
-
const g = s ? p.replace(/^\xEF\xBB\xBF/, "") : p, [v, y] =
|
|
23920
|
+
const g = s ? p.replace(/^\xEF\xBB\xBF/, "") : p, [v, y] = IN(`${o}${g}`);
|
|
23916
23921
|
for (const w of v)
|
|
23917
23922
|
c(w);
|
|
23918
23923
|
o = y, s = !1;
|
|
@@ -23980,7 +23985,7 @@ function AN(e) {
|
|
|
23980
23985
|
}
|
|
23981
23986
|
return { feed: f, reset: m };
|
|
23982
23987
|
}
|
|
23983
|
-
function
|
|
23988
|
+
function IN(e) {
|
|
23984
23989
|
const t = [];
|
|
23985
23990
|
let n = "", r = 0;
|
|
23986
23991
|
for (; r < e.length; ) {
|
|
@@ -24040,7 +24045,7 @@ class Md extends Event {
|
|
|
24040
24045
|
return t(Nd(this), n);
|
|
24041
24046
|
}
|
|
24042
24047
|
}
|
|
24043
|
-
function
|
|
24048
|
+
function ON(e) {
|
|
24044
24049
|
const t = globalThis.DOMException;
|
|
24045
24050
|
return typeof t == "function" ? new t(e, "SyntaxError") : new SyntaxError(e);
|
|
24046
24051
|
}
|
|
@@ -24112,13 +24117,13 @@ class uo extends EventTarget {
|
|
|
24112
24117
|
if (t instanceof URL)
|
|
24113
24118
|
Be(this, Rn, t);
|
|
24114
24119
|
else if (typeof t == "string")
|
|
24115
|
-
Be(this, Rn, new URL(t,
|
|
24120
|
+
Be(this, Rn, new URL(t, RN()));
|
|
24116
24121
|
else
|
|
24117
24122
|
throw new Error("Invalid URL");
|
|
24118
24123
|
} catch {
|
|
24119
|
-
throw
|
|
24124
|
+
throw ON("An invalid or illegal string was specified");
|
|
24120
24125
|
}
|
|
24121
|
-
Be(this, Kn,
|
|
24126
|
+
Be(this, Kn, TN({
|
|
24122
24127
|
onEvent: ye(this, pl),
|
|
24123
24128
|
onRetry: ye(this, ml)
|
|
24124
24129
|
})), Be(this, mt, this.CONNECTING), Be(this, Qr, 3e3), Be(this, Mo, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), Be(this, lo, (i = n == null ? void 0 : n.withCredentials) != null ? i : !1), Xt(this, _t, fl).call(this);
|
|
@@ -24261,11 +24266,11 @@ uo.OPEN = 1, /**
|
|
|
24261
24266
|
* @public
|
|
24262
24267
|
*/
|
|
24263
24268
|
uo.CLOSED = 2;
|
|
24264
|
-
function
|
|
24269
|
+
function RN() {
|
|
24265
24270
|
const e = "document" in globalThis ? globalThis.document : void 0;
|
|
24266
24271
|
return e && typeof e == "object" && "baseURI" in e && typeof e.baseURI == "string" ? e.baseURI : void 0;
|
|
24267
24272
|
}
|
|
24268
|
-
async function
|
|
24273
|
+
async function DN(e) {
|
|
24269
24274
|
var t;
|
|
24270
24275
|
const n = await e.clone().json();
|
|
24271
24276
|
if ((t = n == null ? void 0 : n.id) != null && t.startsWith("err_")) {
|
|
@@ -24286,9 +24291,9 @@ const oy = () => {
|
|
|
24286
24291
|
var r, i;
|
|
24287
24292
|
(r = e[t]) == null || r.forEach((o) => o(n)), (i = e["*"]) == null || i.forEach((o) => o({ type: t, payload: n }));
|
|
24288
24293
|
} };
|
|
24289
|
-
}, Ve = (e) => e.data, sy = 10, ay = 3e3,
|
|
24294
|
+
}, Ve = (e) => e.data, sy = 10, ay = 3e3, MN = "60000", NN = {
|
|
24290
24295
|
throwOnError: !0
|
|
24291
|
-
},
|
|
24296
|
+
}, PN = ({
|
|
24292
24297
|
conversationId: e,
|
|
24293
24298
|
userToken: t,
|
|
24294
24299
|
clientId: n,
|
|
@@ -24310,7 +24315,7 @@ const oy = () => {
|
|
|
24310
24315
|
});
|
|
24311
24316
|
};
|
|
24312
24317
|
return l(), a.on;
|
|
24313
|
-
},
|
|
24318
|
+
}, LN = ({
|
|
24314
24319
|
userKey: e,
|
|
24315
24320
|
clientId: t,
|
|
24316
24321
|
apiUrl: n,
|
|
@@ -24321,37 +24326,37 @@ const oy = () => {
|
|
|
24321
24326
|
"x-user-key": e,
|
|
24322
24327
|
...r
|
|
24323
24328
|
}, s = `${n || Fe.getConfig().baseUrl}/${t}`, a = {
|
|
24324
|
-
...
|
|
24329
|
+
...NN,
|
|
24325
24330
|
baseUrl: s
|
|
24326
24331
|
};
|
|
24327
|
-
return Fe.interceptors.response._fns.length === 0 && Fe.interceptors.response.use(
|
|
24328
|
-
createConversation: () =>
|
|
24329
|
-
getConversation: ({ conversationId: l }) =>
|
|
24330
|
-
deleteConversation: ({ conversationId: l }) =>
|
|
24331
|
-
listConversations: ({ nextToken: l }) =>
|
|
24332
|
-
listConversationMessages: ({ conversationId: l, nextToken: u }) =>
|
|
24332
|
+
return Fe.interceptors.response._fns.length === 0 && Fe.interceptors.response.use(DN), {
|
|
24333
|
+
createConversation: () => lN({ ...a, headers: o, body: {} }).then(Ve),
|
|
24334
|
+
getConversation: ({ conversationId: l }) => sN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24335
|
+
deleteConversation: ({ conversationId: l }) => oN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24336
|
+
listConversations: ({ nextToken: l }) => aN({ ...a, headers: o, query: { nextToken: l } }).then(Ve),
|
|
24337
|
+
listConversationMessages: ({ conversationId: l, nextToken: u }) => uN({
|
|
24333
24338
|
...a,
|
|
24334
24339
|
headers: o,
|
|
24335
24340
|
path: { id: l },
|
|
24336
24341
|
query: { nextToken: u }
|
|
24337
24342
|
}).then(Ve),
|
|
24338
|
-
addParticipant: ({ conversationId: l, userId: u }) =>
|
|
24339
|
-
removeParticipant: ({ conversationId: l, userId: u }) =>
|
|
24340
|
-
getParticipant: ({ conversationId: l, userId: u }) =>
|
|
24341
|
-
listParticipants: ({ conversationId: l, nextToken: u }) =>
|
|
24342
|
-
createMessage: (l) =>
|
|
24343
|
-
updateMessage: ({ messageId: l, ...u }) =>
|
|
24344
|
-
getMessage: ({ messageId: l }) =>
|
|
24345
|
-
deleteMessage: ({ messageId: l }) =>
|
|
24346
|
-
createFile: (l) =>
|
|
24347
|
-
getUser: () =>
|
|
24348
|
-
updateUser: (l) =>
|
|
24349
|
-
deleteUser: () =>
|
|
24350
|
-
createEvent: (l) =>
|
|
24351
|
-
getEvent: ({ eventId: l }) =>
|
|
24352
|
-
addMessageFeedback: ({ messageId: l, ...u }) =>
|
|
24353
|
-
removeMessageFeedback: ({ messageId: l }) =>
|
|
24354
|
-
generateUserKey: ({ adminSecret: l, ...u }) =>
|
|
24343
|
+
addParticipant: ({ conversationId: l, userId: u }) => fN({ ...a, headers: o, path: { id: l }, body: { userId: u } }).then(Ve),
|
|
24344
|
+
removeParticipant: ({ conversationId: l, userId: u }) => dN({ ...a, headers: o, path: { id: l, userId: u } }).then(Ve),
|
|
24345
|
+
getParticipant: ({ conversationId: l, userId: u }) => hN({ ...a, headers: o, path: { id: l, userId: u } }).then(Ve),
|
|
24346
|
+
listParticipants: ({ conversationId: l, nextToken: u }) => cN({ ...a, headers: o, path: { id: l }, query: { nextToken: u } }).then(Ve),
|
|
24347
|
+
createMessage: (l) => yN({ ...a, headers: o, body: l }).then(Ve),
|
|
24348
|
+
updateMessage: ({ messageId: l, ...u }) => gN({ ...a, headers: o, path: { id: l }, body: u }).then(Ve),
|
|
24349
|
+
getMessage: ({ messageId: l }) => mN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24350
|
+
deleteMessage: ({ messageId: l }) => pN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24351
|
+
createFile: (l) => AN({ ...a, headers: o, body: l }).then(Ve),
|
|
24352
|
+
getUser: () => xN({ ...a, headers: o }).then(Ve),
|
|
24353
|
+
updateUser: (l) => SN({ ...a, headers: o, body: l }).then(Ve),
|
|
24354
|
+
deleteUser: () => wN({ ...a, headers: o }).then(Ve),
|
|
24355
|
+
createEvent: (l) => CN({ ...a, headers: o, body: l }).then(Ve),
|
|
24356
|
+
getEvent: ({ eventId: l }) => EN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24357
|
+
addMessageFeedback: ({ messageId: l, ...u }) => bN({ ...a, headers: o, path: { id: l }, body: u }).then(Ve),
|
|
24358
|
+
removeMessageFeedback: ({ messageId: l }) => vN({ ...a, headers: o, path: { id: l } }).then(Ve),
|
|
24359
|
+
generateUserKey: ({ adminSecret: l, ...u }) => kN({ ...a, headers: { "x-admin-secret": l }, body: u }).then(Ve),
|
|
24355
24360
|
listenConversation: ({ conversationId: l }) => {
|
|
24356
24361
|
let u = 0, f = null;
|
|
24357
24362
|
const c = oy(), h = () => {
|
|
@@ -24379,10 +24384,10 @@ const oy = () => {
|
|
|
24379
24384
|
headers: {
|
|
24380
24385
|
...r == null ? void 0 : r.headers,
|
|
24381
24386
|
...t,
|
|
24382
|
-
timeout:
|
|
24387
|
+
timeout: MN
|
|
24383
24388
|
}
|
|
24384
24389
|
})
|
|
24385
|
-
}),
|
|
24390
|
+
}), _N = async ({
|
|
24386
24391
|
apiUrl: e,
|
|
24387
24392
|
clientId: t,
|
|
24388
24393
|
adminSecret: n,
|
|
@@ -24391,14 +24396,14 @@ const oy = () => {
|
|
|
24391
24396
|
conversationId: o,
|
|
24392
24397
|
userToken: s
|
|
24393
24398
|
}) => new Promise((a) => {
|
|
24394
|
-
const l =
|
|
24399
|
+
const l = PN({
|
|
24395
24400
|
apiUrl: e,
|
|
24396
24401
|
clientId: t,
|
|
24397
24402
|
userToken: s,
|
|
24398
24403
|
conversationId: o,
|
|
24399
24404
|
adminSecret: n
|
|
24400
24405
|
}), u = l("init", ({ conversation: f, messages: c, participants: h, user: d }) => {
|
|
24401
|
-
const m =
|
|
24406
|
+
const m = LN({
|
|
24402
24407
|
clientId: t,
|
|
24403
24408
|
apiUrl: e,
|
|
24404
24409
|
userKey: d.userKey,
|
|
@@ -24425,34 +24430,34 @@ const oy = () => {
|
|
|
24425
24430
|
}
|
|
24426
24431
|
});
|
|
24427
24432
|
});
|
|
24428
|
-
}),
|
|
24433
|
+
}), FN = {
|
|
24429
24434
|
webchat: "#9C27B0",
|
|
24430
24435
|
client: "#2196F3",
|
|
24431
24436
|
store: "#4CAF50",
|
|
24432
24437
|
events: "#00BCD4"
|
|
24433
|
-
},
|
|
24438
|
+
}, $N = {
|
|
24434
24439
|
debug: "#9E9E9E",
|
|
24435
24440
|
info: "#2196F3",
|
|
24436
24441
|
warn: "#FF9800",
|
|
24437
24442
|
error: "#F44336"
|
|
24438
24443
|
};
|
|
24439
24444
|
let cy = !1, vl = null, fy = Date.now();
|
|
24440
|
-
const
|
|
24445
|
+
const zL = (e) => {
|
|
24441
24446
|
cy = e, fy = Date.now();
|
|
24442
|
-
},
|
|
24447
|
+
}, HL = (e) => {
|
|
24443
24448
|
vl = e;
|
|
24444
|
-
},
|
|
24449
|
+
}, BN = () => {
|
|
24445
24450
|
const e = Date.now() - fy, t = Math.floor(e / 1e3), n = e % 1e3;
|
|
24446
24451
|
return `+${t}.${n.toString().padStart(3, "0")}s`;
|
|
24447
|
-
},
|
|
24448
|
-
const t =
|
|
24452
|
+
}, zN = (e) => e === void 0 ? "undefined" : e === null ? "null" : e instanceof Error ? { error: e.message, stack: e.stack } : e, Ki = (e) => {
|
|
24453
|
+
const t = FN[e] || "#666", n = (r, ...i) => {
|
|
24449
24454
|
if (!cy && r !== "warn" && r !== "error") return;
|
|
24450
|
-
const o =
|
|
24455
|
+
const o = BN(), s = `%c[bp:${e}]%c ${o} %c${r.toUpperCase()}%c`, a = [
|
|
24451
24456
|
`color: ${t}; font-weight: bold;`,
|
|
24452
24457
|
"color: #999; font-size: 10px;",
|
|
24453
|
-
`color: ${
|
|
24458
|
+
`color: ${$N[r]}; font-weight: bold;`,
|
|
24454
24459
|
"color: inherit;"
|
|
24455
|
-
], l = i.map(
|
|
24460
|
+
], l = i.map(zN);
|
|
24456
24461
|
if (console[r](s, ...a, ...l), vl) {
|
|
24457
24462
|
const [u, f] = i;
|
|
24458
24463
|
vl(`debug:${e}:${r}`, {
|
|
@@ -24503,7 +24508,7 @@ function hy({
|
|
|
24503
24508
|
playNotificationSound: s,
|
|
24504
24509
|
...a
|
|
24505
24510
|
}) {
|
|
24506
|
-
const l =
|
|
24511
|
+
const l = uI(n, r), u = l((O) => O.conversationId), f = l((O) => O.user), c = l((O) => O.setConversationId), h = l((O) => O.setUser), { state: d, setState: m } = Ld(), { state: p, setState: g } = Ld(), v = ct(() => dh(), []), [y, w] = Te("connecting"), [C, S] = Te(void 0), [k, I] = Te(void 0), R = Se(null), N = Bw(
|
|
24507
24512
|
a.conversationId,
|
|
24508
24513
|
a.userToken,
|
|
24509
24514
|
u,
|
|
@@ -24527,7 +24532,7 @@ function hy({
|
|
|
24527
24532
|
const A = async ({ conversationId: O, userToken: $ }) => {
|
|
24528
24533
|
var j;
|
|
24529
24534
|
(j = R.current) == null || j.call(R), I(void 0), m(!1), g(!1), w("connecting");
|
|
24530
|
-
const { on: P, conversation: L, messages: _, participants: D, user: H, client: B, onCleanup: V } = await
|
|
24535
|
+
const { on: P, conversation: L, messages: _, participants: D, user: H, client: B, onCleanup: V } = await _N({
|
|
24531
24536
|
apiUrl: e,
|
|
24532
24537
|
clientId: t,
|
|
24533
24538
|
clientHeaders: o,
|
|
@@ -24605,7 +24610,7 @@ function Cu() {
|
|
|
24605
24610
|
throw new Error("useWebchatContext must be used inside <WebchatProvider>");
|
|
24606
24611
|
return e;
|
|
24607
24612
|
}
|
|
24608
|
-
function
|
|
24613
|
+
function HN({
|
|
24609
24614
|
clientId: e,
|
|
24610
24615
|
apiUrl: t,
|
|
24611
24616
|
storageKey: n,
|
|
@@ -24685,24 +24690,24 @@ const my = ({
|
|
|
24685
24690
|
"Drop files to upload",
|
|
24686
24691
|
/* @__PURE__ */ T(qA, { style: { width: "50px" } })
|
|
24687
24692
|
] }),
|
|
24688
|
-
/* @__PURE__ */ T(
|
|
24693
|
+
/* @__PURE__ */ T(CM, { children: e })
|
|
24689
24694
|
] });
|
|
24690
24695
|
};
|
|
24691
24696
|
my.displayName = "Container";
|
|
24692
|
-
const
|
|
24697
|
+
const UN = rt(
|
|
24693
24698
|
({ onClick: e, imgUrl: t, ...n }, r) => {
|
|
24694
24699
|
const { fab: i } = ge, { container: o, icon: s, image: a } = i ?? {};
|
|
24695
24700
|
return t ? /* @__PURE__ */ T("img", { src: t, role: "button", tabIndex: 0, ...a, draggable: "false", onClick: e }) : /* @__PURE__ */ T("div", { ...n, ...o, ref: r, onClick: e, children: /* @__PURE__ */ T("div", { ...s }) });
|
|
24696
24701
|
}
|
|
24697
24702
|
);
|
|
24698
|
-
|
|
24703
|
+
UN.displayName = "Fab";
|
|
24699
24704
|
function on(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
24700
24705
|
return function(i) {
|
|
24701
24706
|
if (e == null || e(i), n === !1 || !i.defaultPrevented)
|
|
24702
24707
|
return t == null ? void 0 : t(i);
|
|
24703
24708
|
};
|
|
24704
24709
|
}
|
|
24705
|
-
function
|
|
24710
|
+
function jN(e, t) {
|
|
24706
24711
|
const n = E.createContext(t), r = (o) => {
|
|
24707
24712
|
const { children: s, ...a } = o, l = E.useMemo(() => a, Object.values(a));
|
|
24708
24713
|
return /* @__PURE__ */ T(n.Provider, { value: l, children: s });
|
|
@@ -24746,9 +24751,9 @@ function gy(e, t = []) {
|
|
|
24746
24751
|
);
|
|
24747
24752
|
};
|
|
24748
24753
|
};
|
|
24749
|
-
return i.scopeName = e, [r,
|
|
24754
|
+
return i.scopeName = e, [r, VN(i, ...t)];
|
|
24750
24755
|
}
|
|
24751
|
-
function
|
|
24756
|
+
function VN(...e) {
|
|
24752
24757
|
const t = e[0];
|
|
24753
24758
|
if (e.length === 1) return t;
|
|
24754
24759
|
const n = () => {
|
|
@@ -24766,7 +24771,7 @@ function jN(...e) {
|
|
|
24766
24771
|
};
|
|
24767
24772
|
return n.scopeName = t.scopeName, n;
|
|
24768
24773
|
}
|
|
24769
|
-
var
|
|
24774
|
+
var WN = E[" useInsertionEffect ".trim().toString()] || vn;
|
|
24770
24775
|
function yy({
|
|
24771
24776
|
prop: e,
|
|
24772
24777
|
defaultProp: t,
|
|
@@ -24774,7 +24779,7 @@ function yy({
|
|
|
24774
24779
|
},
|
|
24775
24780
|
caller: r
|
|
24776
24781
|
}) {
|
|
24777
|
-
const [i, o, s] =
|
|
24782
|
+
const [i, o, s] = qN({
|
|
24778
24783
|
defaultProp: t,
|
|
24779
24784
|
onChange: n
|
|
24780
24785
|
}), a = e !== void 0, l = a ? e : i;
|
|
@@ -24791,7 +24796,7 @@ function yy({
|
|
|
24791
24796
|
(f) => {
|
|
24792
24797
|
var c;
|
|
24793
24798
|
if (a) {
|
|
24794
|
-
const h =
|
|
24799
|
+
const h = YN(f) ? f(e) : f;
|
|
24795
24800
|
h !== e && ((c = s.current) == null || c.call(s, h));
|
|
24796
24801
|
} else
|
|
24797
24802
|
o(f);
|
|
@@ -24800,25 +24805,25 @@ function yy({
|
|
|
24800
24805
|
);
|
|
24801
24806
|
return [l, u];
|
|
24802
24807
|
}
|
|
24803
|
-
function
|
|
24808
|
+
function qN({
|
|
24804
24809
|
defaultProp: e,
|
|
24805
24810
|
onChange: t
|
|
24806
24811
|
}) {
|
|
24807
24812
|
const [n, r] = E.useState(e), i = E.useRef(n), o = E.useRef(t);
|
|
24808
|
-
return
|
|
24813
|
+
return WN(() => {
|
|
24809
24814
|
o.current = t;
|
|
24810
24815
|
}, [t]), E.useEffect(() => {
|
|
24811
24816
|
var s;
|
|
24812
24817
|
i.current !== n && ((s = o.current) == null || s.call(o, n), i.current = n);
|
|
24813
24818
|
}, [n, i]), [n, r, o];
|
|
24814
24819
|
}
|
|
24815
|
-
function
|
|
24820
|
+
function YN(e) {
|
|
24816
24821
|
return typeof e == "function";
|
|
24817
24822
|
}
|
|
24818
24823
|
// @__NO_SIDE_EFFECTS__
|
|
24819
24824
|
function vy(e) {
|
|
24820
|
-
const t = /* @__PURE__ */
|
|
24821
|
-
const { children: o, ...s } = r, a = E.Children.toArray(o), l = a.find(
|
|
24825
|
+
const t = /* @__PURE__ */ KN(e), n = E.forwardRef((r, i) => {
|
|
24826
|
+
const { children: o, ...s } = r, a = E.Children.toArray(o), l = a.find(QN);
|
|
24822
24827
|
if (l) {
|
|
24823
24828
|
const u = l.props.children, f = a.map((c) => c === l ? E.Children.count(u) > 1 ? E.Children.only(null) : E.isValidElement(u) ? u.props.children : null : c);
|
|
24824
24829
|
return /* @__PURE__ */ T(t, { ...s, ref: i, children: E.isValidElement(u) ? E.cloneElement(u, void 0, f) : null });
|
|
@@ -24828,22 +24833,22 @@ function vy(e) {
|
|
|
24828
24833
|
return n.displayName = `${e}.Slot`, n;
|
|
24829
24834
|
}
|
|
24830
24835
|
// @__NO_SIDE_EFFECTS__
|
|
24831
|
-
function
|
|
24836
|
+
function KN(e) {
|
|
24832
24837
|
const t = E.forwardRef((n, r) => {
|
|
24833
24838
|
const { children: i, ...o } = n;
|
|
24834
24839
|
if (E.isValidElement(i)) {
|
|
24835
|
-
const s =
|
|
24840
|
+
const s = JN(i), a = ZN(o, i.props);
|
|
24836
24841
|
return i.type !== E.Fragment && (a.ref = r ? Ol(r, s) : s), E.cloneElement(i, a);
|
|
24837
24842
|
}
|
|
24838
24843
|
return E.Children.count(i) > 1 ? E.Children.only(null) : null;
|
|
24839
24844
|
});
|
|
24840
24845
|
return t.displayName = `${e}.SlotClone`, t;
|
|
24841
24846
|
}
|
|
24842
|
-
var
|
|
24843
|
-
function
|
|
24844
|
-
return E.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
24847
|
+
var GN = Symbol("radix.slottable");
|
|
24848
|
+
function QN(e) {
|
|
24849
|
+
return E.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === GN;
|
|
24845
24850
|
}
|
|
24846
|
-
function
|
|
24851
|
+
function ZN(e, t) {
|
|
24847
24852
|
const n = { ...t };
|
|
24848
24853
|
for (const r in t) {
|
|
24849
24854
|
const i = e[r], o = t[r];
|
|
@@ -24854,12 +24859,12 @@ function QN(e, t) {
|
|
|
24854
24859
|
}
|
|
24855
24860
|
return { ...e, ...n };
|
|
24856
24861
|
}
|
|
24857
|
-
function
|
|
24862
|
+
function JN(e) {
|
|
24858
24863
|
var r, i;
|
|
24859
24864
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
24860
24865
|
return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
24861
24866
|
}
|
|
24862
|
-
var
|
|
24867
|
+
var XN = [
|
|
24863
24868
|
"a",
|
|
24864
24869
|
"button",
|
|
24865
24870
|
"div",
|
|
@@ -24877,26 +24882,26 @@ var JN = [
|
|
|
24877
24882
|
"span",
|
|
24878
24883
|
"svg",
|
|
24879
24884
|
"ul"
|
|
24880
|
-
], Vt =
|
|
24885
|
+
], Vt = XN.reduce((e, t) => {
|
|
24881
24886
|
const n = /* @__PURE__ */ vy(`Primitive.${t}`), r = E.forwardRef((i, o) => {
|
|
24882
24887
|
const { asChild: s, ...a } = i, l = s ? n : t;
|
|
24883
24888
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ T(l, { ...a, ref: o });
|
|
24884
24889
|
});
|
|
24885
24890
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
24886
24891
|
}, {});
|
|
24887
|
-
function
|
|
24892
|
+
function e2(e, t) {
|
|
24888
24893
|
e && rh.flushSync(() => e.dispatchEvent(t));
|
|
24889
24894
|
}
|
|
24890
|
-
function
|
|
24895
|
+
function t2(e, t) {
|
|
24891
24896
|
return E.useReducer((n, r) => t[n][r] ?? n, e);
|
|
24892
24897
|
}
|
|
24893
24898
|
var ss = (e) => {
|
|
24894
|
-
const { present: t, children: n } = e, r =
|
|
24899
|
+
const { present: t, children: n } = e, r = n2(t), i = typeof n == "function" ? n({ present: r.isPresent }) : E.Children.only(n), o = xn(r.ref, r2(i));
|
|
24895
24900
|
return typeof n == "function" || r.isPresent ? E.cloneElement(i, { ref: o }) : null;
|
|
24896
24901
|
};
|
|
24897
24902
|
ss.displayName = "Presence";
|
|
24898
|
-
function
|
|
24899
|
-
const [t, n] = E.useState(), r = E.useRef(null), i = E.useRef(e), o = E.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] =
|
|
24903
|
+
function n2(e) {
|
|
24904
|
+
const [t, n] = E.useState(), r = E.useRef(null), i = E.useRef(e), o = E.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = t2(s, {
|
|
24900
24905
|
mounted: {
|
|
24901
24906
|
UNMOUNT: "unmounted",
|
|
24902
24907
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -24947,20 +24952,20 @@ function t2(e) {
|
|
|
24947
24952
|
function Gi(e) {
|
|
24948
24953
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
24949
24954
|
}
|
|
24950
|
-
function
|
|
24955
|
+
function r2(e) {
|
|
24951
24956
|
var r, i;
|
|
24952
24957
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
24953
24958
|
return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
24954
24959
|
}
|
|
24955
|
-
var
|
|
24956
|
-
}),
|
|
24960
|
+
var i2 = E[" useId ".trim().toString()] || (() => {
|
|
24961
|
+
}), o2 = 0;
|
|
24957
24962
|
function co(e) {
|
|
24958
|
-
const [t, n] = E.useState(
|
|
24963
|
+
const [t, n] = E.useState(i2());
|
|
24959
24964
|
return vn(() => {
|
|
24960
|
-
n((r) => r ?? String(
|
|
24965
|
+
n((r) => r ?? String(o2++));
|
|
24961
24966
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
24962
24967
|
}
|
|
24963
|
-
var as = "Collapsible", [
|
|
24968
|
+
var as = "Collapsible", [s2] = gy(as), [a2, Au] = s2(as), by = E.forwardRef(
|
|
24964
24969
|
(e, t) => {
|
|
24965
24970
|
const {
|
|
24966
24971
|
__scopeCollapsible: n,
|
|
@@ -24976,7 +24981,7 @@ var as = "Collapsible", [o2] = gy(as), [s2, Au] = o2(as), by = E.forwardRef(
|
|
|
24976
24981
|
caller: as
|
|
24977
24982
|
});
|
|
24978
24983
|
return /* @__PURE__ */ T(
|
|
24979
|
-
|
|
24984
|
+
a2,
|
|
24980
24985
|
{
|
|
24981
24986
|
scope: n,
|
|
24982
24987
|
disabled: o,
|
|
@@ -25020,11 +25025,11 @@ xy.displayName = wy;
|
|
|
25020
25025
|
var Tu = "CollapsibleContent", Sy = E.forwardRef(
|
|
25021
25026
|
(e, t) => {
|
|
25022
25027
|
const { forceMount: n, ...r } = e, i = Au(Tu, e.__scopeCollapsible);
|
|
25023
|
-
return /* @__PURE__ */ T(ss, { present: n || i.open, children: ({ present: o }) => /* @__PURE__ */ T(
|
|
25028
|
+
return /* @__PURE__ */ T(ss, { present: n || i.open, children: ({ present: o }) => /* @__PURE__ */ T(l2, { ...r, ref: t, present: o }) });
|
|
25024
25029
|
}
|
|
25025
25030
|
);
|
|
25026
25031
|
Sy.displayName = Tu;
|
|
25027
|
-
var
|
|
25032
|
+
var l2 = E.forwardRef((e, t) => {
|
|
25028
25033
|
const { __scopeCollapsible: n, present: r, children: i, ...o } = e, s = Au(Tu, n), [a, l] = E.useState(r), u = E.useRef(null), f = xn(t, u), c = E.useRef(0), h = c.current, d = E.useRef(0), m = d.current, p = s.open || a, g = E.useRef(p), v = E.useRef(void 0);
|
|
25029
25034
|
return E.useEffect(() => {
|
|
25030
25035
|
const y = requestAnimationFrame(() => g.current = !1);
|
|
@@ -25060,7 +25065,7 @@ var a2 = E.forwardRef((e, t) => {
|
|
|
25060
25065
|
function Iu(e) {
|
|
25061
25066
|
return e ? "open" : "closed";
|
|
25062
25067
|
}
|
|
25063
|
-
var
|
|
25068
|
+
var u2 = by, c2 = Sy;
|
|
25064
25069
|
const ky = ({ restartConversation: e, ...t }) => {
|
|
25065
25070
|
var o, s;
|
|
25066
25071
|
const { header: n } = ge, { showInputModal: r } = $m(), i = async (a) => {
|
|
@@ -25100,7 +25105,7 @@ const ky = ({ restartConversation: e, ...t }) => {
|
|
|
25100
25105
|
}
|
|
25101
25106
|
}
|
|
25102
25107
|
);
|
|
25103
|
-
},
|
|
25108
|
+
}, f2 = ({ onClick: e, ...t }) => {
|
|
25104
25109
|
const { header: n } = ge, r = (i) => {
|
|
25105
25110
|
i.stopPropagation(), e == null || e();
|
|
25106
25111
|
};
|
|
@@ -25138,7 +25143,7 @@ const ky = ({ restartConversation: e, ...t }) => {
|
|
|
25138
25143
|
/* @__PURE__ */ T(o, { ...(p = (m = i.expandedContent) == null ? void 0 : m.descriptionItems) == null ? void 0 : p.icon }),
|
|
25139
25144
|
/* @__PURE__ */ T("p", { ...(v = (g = i.expandedContent) == null ? void 0 : g.descriptionItems) == null ? void 0 : v.text, children: t })
|
|
25140
25145
|
] }) : null;
|
|
25141
|
-
},
|
|
25146
|
+
}, d2 = ({ soundOn: e, toggleSound: t }) => {
|
|
25142
25147
|
const n = (o) => {
|
|
25143
25148
|
o.stopPropagation(), t == null || t();
|
|
25144
25149
|
}, { header: r } = ge, i = e ? Im : FT;
|
|
@@ -25156,7 +25161,7 @@ const ky = ({ restartConversation: e, ...t }) => {
|
|
|
25156
25161
|
children: /* @__PURE__ */ T(i, { size: 16 })
|
|
25157
25162
|
}
|
|
25158
25163
|
);
|
|
25159
|
-
},
|
|
25164
|
+
}, h2 = ({
|
|
25160
25165
|
defaultOpen: e,
|
|
25161
25166
|
closeWindow: t,
|
|
25162
25167
|
configuration: n,
|
|
@@ -25171,7 +25176,7 @@ const ky = ({ restartConversation: e, ...t }) => {
|
|
|
25171
25176
|
var p, g, v, y, w, C, S, k, I, R, N, A, O, $, P, L, _, D, H, B, V, b, M, U;
|
|
25172
25177
|
const { header: f } = ge, [c, h] = Te(e), d = !!((p = n.email) != null && p.title) || !!((g = n.phone) != null && g.title) || !!((v = n.website) != null && v.title) || !!((y = n.termsOfService) != null && y.link) || !!((w = n.privacyPolicy) != null && w.link), m = d && !o;
|
|
25173
25178
|
return /* @__PURE__ */ ae(
|
|
25174
|
-
|
|
25179
|
+
u2,
|
|
25175
25180
|
{
|
|
25176
25181
|
open: m ? c : !1,
|
|
25177
25182
|
onOpenChange: m ? h : void 0,
|
|
@@ -25180,17 +25185,17 @@ const ky = ({ restartConversation: e, ...t }) => {
|
|
|
25180
25185
|
...u,
|
|
25181
25186
|
children: [
|
|
25182
25187
|
/* @__PURE__ */ ae(xy, { "aria-label": "Expand Header Button", ...f.content.container, children: [
|
|
25183
|
-
/* @__PURE__ */ T("div", { ...f.content.conversationHistory, children: i && !c && /* @__PURE__ */ T(
|
|
25188
|
+
/* @__PURE__ */ T("div", { ...f.content.conversationHistory, children: i && !c && /* @__PURE__ */ T(f2, { onClick: i }) }),
|
|
25184
25189
|
/* @__PURE__ */ T(sr, { userId: l, src: n.botAvatar, ...f.content.avatar, children: n.botName || "Bot" }),
|
|
25185
25190
|
/* @__PURE__ */ T("h2", { ...f.content.title, children: n.botName || "Bot" }),
|
|
25186
25191
|
n.botDescription && /* @__PURE__ */ T("p", { ...f.content.description, children: n.botDescription }),
|
|
25187
25192
|
/* @__PURE__ */ ae("div", { ...f.content.actions.container, children: [
|
|
25188
|
-
n.soundEnabled && s !== void 0 && a && /* @__PURE__ */ T(
|
|
25193
|
+
n.soundEnabled && s !== void 0 && a && /* @__PURE__ */ T(d2, { soundOn: s, toggleSound: a }),
|
|
25189
25194
|
r && /* @__PURE__ */ T(ky, { restartConversation: r }),
|
|
25190
25195
|
t && /* @__PURE__ */ T(Ou, { onClick: t })
|
|
25191
25196
|
] })
|
|
25192
25197
|
] }),
|
|
25193
|
-
d && /* @__PURE__ */ ae(
|
|
25198
|
+
d && /* @__PURE__ */ ae(c2, { ...f.expandedContent.container, children: [
|
|
25194
25199
|
/* @__PURE__ */ ae("div", { "data-links": "", ...f.expandedContent.group, children: [
|
|
25195
25200
|
/* @__PURE__ */ T(
|
|
25196
25201
|
Pr,
|
|
@@ -25323,7 +25328,7 @@ const _d = _o(
|
|
|
25323
25328
|
] })
|
|
25324
25329
|
] });
|
|
25325
25330
|
};
|
|
25326
|
-
function
|
|
25331
|
+
function p2({ botAvatar: e, botDescription: t, botName: n }) {
|
|
25327
25332
|
const {
|
|
25328
25333
|
messageList: { marquee: r }
|
|
25329
25334
|
} = ge;
|
|
@@ -25336,12 +25341,12 @@ function h2({ botAvatar: e, botDescription: t, botName: n }) {
|
|
|
25336
25341
|
] });
|
|
25337
25342
|
}
|
|
25338
25343
|
let Ru = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
25339
|
-
const
|
|
25340
|
-
function
|
|
25341
|
-
const n = t.nearBottomThreshold ??
|
|
25344
|
+
const m2 = 70, g2 = 300;
|
|
25345
|
+
function y2(e, t = {}) {
|
|
25346
|
+
const n = t.nearBottomThreshold ?? m2, [r, i] = Te(!0), o = Se(null), s = Se(0), a = Se(!0), l = Se(!1), u = Se(!1), f = Se(0), c = Me(
|
|
25342
25347
|
(y) => y.scrollHeight - y.clientHeight - y.scrollTop < n,
|
|
25343
25348
|
[n]
|
|
25344
|
-
), h = Me((y, w =
|
|
25349
|
+
), h = Me((y, w = g2) => {
|
|
25345
25350
|
cancelAnimationFrame(f.current);
|
|
25346
25351
|
const C = y.scrollTop, S = performance.now(), k = () => {
|
|
25347
25352
|
const I = performance.now() - S, R = Math.min(I / w, 1), N = 1 - Math.pow(1 - R, 3), A = y.scrollHeight - y.clientHeight;
|
|
@@ -25414,7 +25419,7 @@ function g2(e, t = {}) {
|
|
|
25414
25419
|
return C.observe(y), () => C.disconnect();
|
|
25415
25420
|
}, []), _e(() => () => cancelAnimationFrame(f.current), []), { scrollRef: v, isAtBottom: r, scrollToBottom: d };
|
|
25416
25421
|
}
|
|
25417
|
-
const
|
|
25422
|
+
const v2 = {
|
|
25418
25423
|
height: "100%",
|
|
25419
25424
|
width: "100%",
|
|
25420
25425
|
overflowY: "auto",
|
|
@@ -25444,7 +25449,7 @@ const y2 = {
|
|
|
25444
25449
|
var $;
|
|
25445
25450
|
const O = v.filter((P) => P.direction === "outgoing" && P.status !== "pending");
|
|
25446
25451
|
return ($ = O[O.length - 1]) == null ? void 0 : $.id;
|
|
25447
|
-
}, [v]), w = v[v.length - 1], C = (w == null ? void 0 : w.id) ?? "", S = `${v.length}:${C}:${n}`, { scrollRef: k, isAtBottom: I, scrollToBottom: R } =
|
|
25452
|
+
}, [v]), w = v[v.length - 1], C = (w == null ? void 0 : w.id) ?? "", S = `${v.length}:${C}:${n}`, { scrollRef: k, isAtBottom: I, scrollToBottom: R } = y2(S);
|
|
25448
25453
|
_e(() => {
|
|
25449
25454
|
(w == null ? void 0 : w.direction) === "outgoing" && R();
|
|
25450
25455
|
}, [C]);
|
|
@@ -25455,9 +25460,9 @@ const y2 = {
|
|
|
25455
25460
|
return m;
|
|
25456
25461
|
};
|
|
25457
25462
|
return /* @__PURE__ */ ae("div", { ...p, className: Er(g.container.className, e), children: [
|
|
25458
|
-
/* @__PURE__ */ T("div", { ref: k, style:
|
|
25463
|
+
/* @__PURE__ */ T("div", { ref: k, style: v2, children: /* @__PURE__ */ ae("div", { className: g.viewPort.className, children: [
|
|
25459
25464
|
r && /* @__PURE__ */ T("span", { ...g.headerMessage, children: r }),
|
|
25460
|
-
f && /* @__PURE__ */ T(
|
|
25465
|
+
f && /* @__PURE__ */ T(p2, { botAvatar: o, botDescription: s, botName: a }),
|
|
25461
25466
|
v.map((O) => {
|
|
25462
25467
|
var $;
|
|
25463
25468
|
return /* @__PURE__ */ T(
|
|
@@ -25500,11 +25505,11 @@ const Ay = ({ className: e, ...t }) => {
|
|
|
25500
25505
|
const { className: n } = ge.loader;
|
|
25501
25506
|
return /* @__PURE__ */ T("div", { ...t, className: Er(e, n) });
|
|
25502
25507
|
};
|
|
25503
|
-
function
|
|
25508
|
+
function b2({ error: e, restartConversation: t, closeWindow: n }) {
|
|
25504
25509
|
let r, i;
|
|
25505
25510
|
const { error: o } = ge;
|
|
25506
25511
|
return e.type === "configuration" ? (r = "Configuration error", i = /* @__PURE__ */ T(gT, { ...o.icon })) : e.type === "bot" ? (r = "Bot error", i = /* @__PURE__ */ T(kf, { ...o.icon })) : e.type === "network" ? (r = "Network error", i = /* @__PURE__ */ T(BT, { ...o.icon })) : e.type === "disconnected" ? (r = "Disconnected", i = /* @__PURE__ */ T(RT, { ...o.icon })) : (r = "Unexpected error", i = /* @__PURE__ */ T(kf, { ...o.icon })), /* @__PURE__ */ T(
|
|
25507
|
-
|
|
25512
|
+
w2,
|
|
25508
25513
|
{
|
|
25509
25514
|
error: e,
|
|
25510
25515
|
title: r,
|
|
@@ -25514,7 +25519,7 @@ function v2({ error: e, restartConversation: t, closeWindow: n }) {
|
|
|
25514
25519
|
}
|
|
25515
25520
|
);
|
|
25516
25521
|
}
|
|
25517
|
-
function
|
|
25522
|
+
function w2({ error: e, title: t, icon: n, restartConversation: r, closeWindow: i }) {
|
|
25518
25523
|
const { error: o } = ge;
|
|
25519
25524
|
return /* @__PURE__ */ ae("div", { ...o.container, children: [
|
|
25520
25525
|
/* @__PURE__ */ ae("div", { ...o.header.container, children: [
|
|
@@ -25539,7 +25544,7 @@ function b2({ error: e, title: t, icon: n, restartConversation: r, closeWindow:
|
|
|
25539
25544
|
] });
|
|
25540
25545
|
}
|
|
25541
25546
|
const Lr = dy.webchat;
|
|
25542
|
-
async function
|
|
25547
|
+
async function x2(e, t) {
|
|
25543
25548
|
const { userId: n, conversationId: r, userToken: i, openConversation: o, setClientState: s, setError: a, emitter: l } = t;
|
|
25544
25549
|
Lr.warn("handleWebchatError", {
|
|
25545
25550
|
userId: n,
|
|
@@ -25574,19 +25579,19 @@ async function w2(e, t) {
|
|
|
25574
25579
|
Lr.error("recovery failed", { error: c, userId: n, conversationId: r }), a(Ho(c)), s("error"), l.emit("error", c);
|
|
25575
25580
|
}
|
|
25576
25581
|
}
|
|
25577
|
-
function
|
|
25582
|
+
function S2(e, t) {
|
|
25578
25583
|
return async (...n) => {
|
|
25579
25584
|
try {
|
|
25580
25585
|
return await e(...n);
|
|
25581
25586
|
} catch (r) {
|
|
25582
|
-
await
|
|
25587
|
+
await x2(Ho(r), t);
|
|
25583
25588
|
}
|
|
25584
25589
|
};
|
|
25585
25590
|
}
|
|
25586
25591
|
function Ty(e, t) {
|
|
25587
25592
|
const n = {};
|
|
25588
25593
|
for (const [r, i] of Object.entries(e))
|
|
25589
|
-
n[r] =
|
|
25594
|
+
n[r] = S2(i, t);
|
|
25590
25595
|
return n;
|
|
25591
25596
|
}
|
|
25592
25597
|
function Iy({ client: e, conversationId: t }) {
|
|
@@ -25707,15 +25712,15 @@ function Dy({ client: e, conversationId: t }) {
|
|
|
25707
25712
|
removeParticipant: s
|
|
25708
25713
|
};
|
|
25709
25714
|
}
|
|
25710
|
-
const
|
|
25715
|
+
const k2 = {
|
|
25711
25716
|
// Optimized OGG file (4.4KB instead of 124KB WAV)
|
|
25712
25717
|
chatMessageNotification: new URL("data:audio/ogg;base64,T2dnUwACAAAAAAAAAAAVJAEzAAAAAOU+A6UBHgF2b3JiaXMAAAAAASJWAAD/////AH0AAP////+pAU9nZ1MAAAAAAAAAAAAAFSQBMwEAAAD3T/UfDpz////////////////FA3ZvcmJpcwwAAABMYXZmNjEuNy4xMDAEAAAAHwAAAGVuY29kZXI9TGF2YzYxLjE5LjEwMSBsaWJ2b3JiaXMrAAAAZW5jb2RlZF9ieT1BZG9iZSBQcmVtaWVyZSBQcm8gMjAyNS4wIChNYWNpbhcAAAB0aW1lX3JlZmVyZW5jZT0xMjExMDQwMA8AAABkYXRlPTIwMjUtMDgtMDUBBXZvcmJpcyJCQ1YBAEAAABhCECoFrWOOOsgVIYwZoqBCyinHHULQIaMkQ4g6xjXHGGNHuWSKQsmB0JBVAABAAACkHFdQckkt55xzoxhXzHHoIOecc+UgZ8xxCSXnnHOOOeeSco4x55xzoxhXDnIpLeecc4EUR4pxpxjnnHOkHEeKcagY55xzbTG3knLOOeecc+Ygh1JyrjXnnHOkGGcOcgsl55xzxiBnzHHrIOecc4w1t9RyzjnnnHPOOeecc84555xzjDHnnHPOOeecc24x5xZzrjnnnHPOOeccc84555xzIDRkFQCQAACgoSiK4igOEBqyCgDIAAAQQHEUR5EUS7Ecy9EkDQgNWQUAAAEACAAAoEiGpEiKpViOZmmeJnqiKJqiKquyacqyLMuy67ouEBqyCgBIAABQURTFcBQHCA1ZBQBkAAAIYCiKoziO5FiSpVmeB4SGrAIAgAAABAAAUAxHsRRN8STP8jzP8zzP8zzP8zzP8zzP8zzP8zwNCA1ZBQAgAAAAgihkGANCQ1YBAEAAAAghGhlDnVISXAoWQhwRQx1CzkOppYPgKYUlY9JTrEEIIXzvPffee++B0JBVAAAQAABhFDiIgcckCCGEYhQnRHGmIAghhOUkWMp56CQI3YMQQrice8u59957IDRkFQAACADAIIQQQgghhBBCCCmklFJIKaaYYoopxxxzzDHHIIMMMuigk046yaSSTjrKJKOOUmsptRRTTLHlFmOttdacc69BKWOMMcYYY4wxxhhjjDHGGCMIDVkFAIAAABAGGWSQQQghhBRSSCmmmHLMMcccA0JDVgEAgAAAAgAAABxFUiRHciRHkiTJkixJkzzLszzLszxN1ERNFVXVVW3X9m1f9m3f1WXf9mXb1WVdlmXdtW1d1l1d13Vd13Vd13Vd13Vd13Vd14HQkFUAgAQAgI7kOI7kOI7kSI6kSAoQGrIKAJABABAAgKM4iuNIjuRYjiVZkiZplmd5lqd5mqiJHhAasgoAAAQAEAAAAAAAgKIoiqM4jiRZlqZpnqd6oiiaqqqKpqmqqmqapmmapmmapmmapmmapmmapmmapmmapmmapmmapmmapmkCoSGrAAAJAAAdx3EcR3Ecx3EkR5IkIDRkFQAgAwAgAABDURxFcizHkjRLszzL00TP9FxRNnVTV20gNGQVAAAIACAAAAAAAADHczzHczzJkzzLczzHkzxJ0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRN0zRNA0JDVgIAZAAAEJOQSk6xV0YpxiS0XiqkFJPUe6iYYkw67alCBikHuYdKIaWg094ypZBSDHunmELIGOqhg5AxhbDX2nPPvfceCA1ZEQBEAQAAxiDGEGPIMSYlgxIxxyRkUiLnnJROSialpFZazKSEmEqLkXNOSiclk1JaC6llkkprJaYCAAACHAAAAiyEQkNWBABRAACIMUgppBRSSjGnmENKKceUY0gp5ZxyTjnHmHQQKucYdA5KpJRyjjmnnHMSMgeVcw5CJp0AAIAABwCAAAuh0JAVAUCcAACAkHOKMQgRYxBCCSmFUFKqnJPSQUmpg5JSSanFklKMlXNSOgkpdRJSKinFWFKKLaRUY2kt19JSjS3GnFuMvYaUYi2p1Vpaq7nFWHOLNffIOUqdlNY6Ka2l1mpNrdXaSWktpNZiaS3G1mLNKcacMymthZZiK6nF2GLLNbWYc2kt1xRjzynGnmusucecgzCt1ZxayznFmHvMseeYcw+Sc5Q6Ka11UlpLrdWaWqs1k9Jaaa3GkFqLLcacW4sxZ1JaLKnFWFqKMcWYc4st19BarinGnFOLOcdag5Kx9l5aqznFmHuKreeYczA2x547SrmW1nourfVecy5C1tyLaC3n1GoPKsaec87B2NyDEK3lnGrsPcXYe+45GNtz8K3W4FvNRcicg9C5+KZ7MEbV2oPMtQiZcxA66CJ08Ml4lGoureVcWus91hp8zTkI0VruKcbeU4u9156bsL0HIVrLPcXYg4ox+JpzMDrnYlStwcecg5C1FqF7L0rnIJSqtQeZa1Ay1yJ08MXooIsvAABgwAEAIMCEMlBoyIoAIE4AgEHIOaUYhEopCKGElEIoKVWMSciYg5IxJ6WUUloIJbWKMQiZY1Iyx6SEEloqJbQSSmmplNJaKKW1llqMKbUWQymphVJaK6W0llqqMbVWY8SYlMw5KZljUkoprZVSWqsck5IxKKmDkEopKcVSUouVc1Iy6Kh0EEoqqcRUUmmtpNJSKaXFklJsKcVUW4u1hlJaLKnEVlJqMbVUW4sx14gxKRlzUjLnpJRSUiultJY5J6WDjkrmoKSSUmulpBQz5qR0DkrKIKNSUootpRJTKKW1klJspaTWWoy1ptRaLSW1VlJqsZQSW4sx1xZLTZ2U1koqMYZSWmsx5ppaizGUElspKcaSSmytxZpbbDmGUlosqcRWSmqx1ZZja7Hm1FKNKbWaW2y5xpRTj7X2nFqrNbVUY2ux5lhbb7XWnDsprYVSWislxZhai7HFWHMoJbaSUmylpBhbbLm2FmMPobRYSmqxpBJjazHmGFuOqbVaW2y5ptRirbX2HFtuPaUWa4ux5tJSjTXX3mNNORUAADDgAAAQYEIZKDRkJQAQBQAAGMMYYxAapZxzTkqDlHPOScmcgxBCSplzEEJIKXNOQkotZc5BSKm1UEpKrcUWSkmptRYLAAAocAAACLBBU2JxgEJDVgIAUQAAiDFKMQahMUYp5yA0xijFGIRKKcack1ApxZhzUDLHnINQSuaccxBKCSGUUkpKIYRSSkmpAACAAgcAgAAbNCUWByg0ZEUAEAUAABhjnDPOIQqdpc5SJKmj1lFrKKUaS4ydxlZ767nTGnttuTeUSo2p1o5ry7nV3mlNPbccCwAAO3AAADuwEAoNWQkA5AEAEMYoxZhzzhmFGHPOOecMUow555xzijHnnIMQQsWYc85BCCFzzjkIoYSSOecchBBK6JyDUEoppXTOQQihlFI65yCEUkopnXMQSimllAIAgAocAAACbBTZnGAkqNCQlQBAHgAAYAxCzklprWHMOQgt1dgwxhyUlGKLnIOQUou5RsxBSCnGoDsoKbUYbPCdhJRaizkHk1KLNefeg0iptZqDzj3VVnPPvfecYqw1595zLwAAd8EBAOzARpHNCUaCCg1ZCQDkAQAQCCnFmHPOGaUYc8w554xSjDHmnHOKMcacc85BxRhjzjkHIWPMOecghJAx5pxzEELonHMOQgghdM45ByGEEDrnoIMQQgidcxBCCCGEAgCAChwAAAJsFNmcYCSo0JCVAEA4AAAAIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEELonHPOOeecc84555xzzjnnnHPOOScAyLfCAcD/wcYZVpLOCkeDCw1ZCQCEAwAACkEopWIQSiklkk46KZ2TUEopkYNSSumklFJKCaWUUkoIpZRSSggdlFJCKaWUUkoppZRSSimllFI6KaWUUkoppZTKOSmlk1JKKaVEzkkpIZRSSimlhFJKKaWUUkoppZRSSimllFJKKaWEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQCALgbHAAgEmycYSXprHA0uNCQlQBASAAAoBRzjkoIKZSQUqiYoo5CKSmkUkoKEWPOSeochVBSKKmDyjkIpaSUQiohdc5BByWFkFIJIZWOOugolFBSKiWU0jkopYQUSkoplZBCSKl0lFIoJZWUQiohlVJKSCWVEEoKnaRUSgqppFRSCJ10kEInJaSSSgqpk5RSKiWllEpKJXRSQioppRBCSqmUEEpIKaVOUkmppBRCKCGFlFJKJaWSSkohlVRCCaWklFIooaRUUkoppZJSKQAA4MABACDACDrJqLIIG0248AAUGrISACADAECUdNZpp0kiCDFFmScNKcYgtaQswxBTkonxFGOMOShGQw4x5JQYF0oIoYNiPCaVQ8pQUbm31DkFxRZjfO+xFwEAAAgCAASEBAAYICiYAQAGBwgjBwIdAQQObQCAgQiZCQwKocFBJgA8QERIBQCJCYrShS4IIYJ0EWTxwIUTN5644YQObRAAAAAAABAA8AEAkFAAERHRzFVYXGBkaGxwdHh8gIQEAAAAAAAIAHwAACQiQERENHMVFhcYGRobHB0eHyAhAQAAAAAAAAAAQEBAAAAAAAAgAAAAQEBPZ2dTAASuMwAAAAAAABUkATMCAAAACYS6sR4BAUQxGR89NxobGiEkKCknJiYmJSUhISEaFgwBAQEAAnyfvULHAlAEJgh2vpgQBMHIyMjIyNhIQOjz+ePz58+fL89xAwYBAFaH//3//7/xNw0MBoNB6qlPfWrUKQng+/0FABAAhLEjKuHFBwA4AHC9Fx4Oh7EwDEOgvnJ3RtV+Op0+nU6n5cyzEwAoltTpwed5dgVKMPoru90zNHGA7F0CP98BAAAAAHl9ePviAgCW+3rugPIDwC6BbWoTAFEAAADh5GpCCACgc+0zxlAAVKddkjDsA14GDoJtf7R+NkE4W23hI5mF3d74iVGvzg9PpA4cCQs66joePTmOfhgl7vNZzYzQADDyz30FAGSvVUZ6wJ4MAKbCGeb4+v5NLIdK3YvrLkCu98uV//FpXQNyKAKAV7r186fTktcJJgjAlVp1fUmaGgtrdAAuDXYJSPs/AAAAAHDnAeHxciEUAB76CvfarGjDzIjALoEd+/0EAAAAQNYeMrkBAF6ZKm8xuw94NtgloHDUCAAAAIAMJ5Qz2iUAvjhKL8lkfmA6wi6BWfNHgiAAAABq4eeqGgCg8+LAAXQAfhgqz2RKHzAVYJeAynEAIQEAALwq6tFbIQAEEIIO8iULngMAXhgajrw3D5iFWhe7BLZNrwCVKAAA0t2TfT8mADx0aMfS4CULeACvA14YWnasNht80ZpdAhv8BEiiAADgcbm4jo0JANAVCTRV6JqQS0OTADoAXhg6zWy+AZ3GsiDRAYJzgiQAAICnb9FLAQAUNQFd44AioMNJICUAfhi67ZRjA2IMSHTAJK0KkgAAAG7W0uLlEgC6KnQdDkgBlAAdJAB+GHpL40hATAASHSC5CZIAAAAGZ3J60ioBoKsBTQKE5KFJIJFAAp4Y+jp7cg4qINEBi+MASQAAAM8rmdZcAKApwFhNPHQkQEBRQwIAnhj6OZ8KIBwDiQ4Q9ApIFAAAQHRFd6FEALA0NaApQAegnPrDA54Y+nN+AYAIJDoAfgIkCgAAcLRlPVsLALqmKqFpHIwUwQEJCwCeKPpzEQA8kOgAyTlBAgAAgPnK3q8jAWAuJFBYOsbAAgCeKPolEQA8rMFCohQAAMxD2BdSAJYFdNThKcCkBQCOgwKeGPpzEQA8rEEhCQAAoCz4MRGA41gaQMBRjACexHugAACeGPqFCAAeugQAAHryFgBdRYGFhGeow8x7AJ4Y+iURADyIigIAliFAAcYWCQC11gGeGPolEQA8UAAAABoODg4=", import.meta.url).href
|
|
25713
25718
|
};
|
|
25714
25719
|
function My({ storageKey: e, soundEnabled: t }) {
|
|
25715
|
-
const n =
|
|
25720
|
+
const n = pI(e || "bp-webchat"), r = n((u) => u.soundOn), i = n((u) => u.toggleSound), o = Se(null), s = Se(t ?? !1), a = Se(r);
|
|
25716
25721
|
_e(() => {
|
|
25717
25722
|
try {
|
|
25718
|
-
o.current = new Audio(), o.current.preload = "auto", o.current.src =
|
|
25723
|
+
o.current = new Audio(), o.current.preload = "auto", o.current.src = k2.chatMessageNotification, o.current.volume = 0.9;
|
|
25719
25724
|
} catch (u) {
|
|
25720
25725
|
console.error("Error loading sound effect:", u), o.current = null;
|
|
25721
25726
|
}
|
|
@@ -25734,7 +25739,7 @@ function My({ storageKey: e, soundEnabled: t }) {
|
|
|
25734
25739
|
playNotificationSound: l
|
|
25735
25740
|
};
|
|
25736
25741
|
}
|
|
25737
|
-
function
|
|
25742
|
+
function UL({
|
|
25738
25743
|
apiUrl: e = "https://webchat.botpress.cloud",
|
|
25739
25744
|
clientId: t,
|
|
25740
25745
|
storageKey: n,
|
|
@@ -25859,7 +25864,7 @@ function HL({
|
|
|
25859
25864
|
disableSendButton: v
|
|
25860
25865
|
};
|
|
25861
25866
|
}
|
|
25862
|
-
const
|
|
25867
|
+
const E2 = () => {
|
|
25863
25868
|
const { client: e, userCredentials: t } = Cu();
|
|
25864
25869
|
return e ? {
|
|
25865
25870
|
userCredentials: t,
|
|
@@ -25871,7 +25876,7 @@ const k2 = () => {
|
|
|
25871
25876
|
updateUser: void 0
|
|
25872
25877
|
};
|
|
25873
25878
|
};
|
|
25874
|
-
function
|
|
25879
|
+
function C2() {
|
|
25875
25880
|
const {
|
|
25876
25881
|
client: e,
|
|
25877
25882
|
conversationId: t,
|
|
@@ -25932,7 +25937,7 @@ function E2() {
|
|
|
25932
25937
|
isTyping: c
|
|
25933
25938
|
};
|
|
25934
25939
|
}
|
|
25935
|
-
function
|
|
25940
|
+
function A2() {
|
|
25936
25941
|
const { client: e, openConversation: t, userCredentials: n } = Cu();
|
|
25937
25942
|
return e ? {
|
|
25938
25943
|
listConversations: async () => e.listConversations({}),
|
|
@@ -25971,7 +25976,7 @@ const tn = /* @__PURE__ */ new WeakMap(), rn = () => {
|
|
|
25971
25976
|
), wl = Object, be = (e) => e === ot, Yt = (e) => typeof e == "function", wn = (e, t) => ({
|
|
25972
25977
|
...e,
|
|
25973
25978
|
...t
|
|
25974
|
-
}), _y = (e) => Yt(e.then), fa = {}, Qi = {}, Du = "undefined", Ci = typeof window != Du, xl = typeof document != Du,
|
|
25979
|
+
}), _y = (e) => Yt(e.then), fa = {}, Qi = {}, Du = "undefined", Ci = typeof window != Du, xl = typeof document != Du, T2 = Ci && "Deno" in window, I2 = () => Ci && typeof window.requestAnimationFrame != Du, Fy = (e, t) => {
|
|
25975
25980
|
const n = tn.get(e);
|
|
25976
25981
|
return [
|
|
25977
25982
|
// Getter
|
|
@@ -25990,18 +25995,18 @@ const tn = /* @__PURE__ */ new WeakMap(), rn = () => {
|
|
|
25990
25995
|
];
|
|
25991
25996
|
};
|
|
25992
25997
|
let Sl = !0;
|
|
25993
|
-
const
|
|
25998
|
+
const O2 = () => Sl, [kl, El] = Ci && window.addEventListener ? [
|
|
25994
25999
|
window.addEventListener.bind(window),
|
|
25995
26000
|
window.removeEventListener.bind(window)
|
|
25996
26001
|
] : [
|
|
25997
26002
|
rn,
|
|
25998
26003
|
rn
|
|
25999
|
-
],
|
|
26004
|
+
], R2 = () => {
|
|
26000
26005
|
const e = xl && document.visibilityState;
|
|
26001
26006
|
return be(e) || e !== "hidden";
|
|
26002
|
-
},
|
|
26007
|
+
}, D2 = (e) => (xl && document.addEventListener("visibilitychange", e), kl("focus", e), () => {
|
|
26003
26008
|
xl && document.removeEventListener("visibilitychange", e), El("focus", e);
|
|
26004
|
-
}),
|
|
26009
|
+
}), M2 = (e) => {
|
|
26005
26010
|
const t = () => {
|
|
26006
26011
|
Sl = !0, e();
|
|
26007
26012
|
}, n = () => {
|
|
@@ -26010,23 +26015,23 @@ const I2 = () => Sl, [kl, El] = Ci && window.addEventListener ? [
|
|
|
26010
26015
|
return kl("online", t), kl("offline", n), () => {
|
|
26011
26016
|
El("online", t), El("offline", n);
|
|
26012
26017
|
};
|
|
26013
|
-
}, M2 = {
|
|
26014
|
-
isOnline: I2,
|
|
26015
|
-
isVisible: O2
|
|
26016
26018
|
}, N2 = {
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
},
|
|
26019
|
+
isOnline: O2,
|
|
26020
|
+
isVisible: R2
|
|
26021
|
+
}, P2 = {
|
|
26022
|
+
initFocus: D2,
|
|
26023
|
+
initReconnect: M2
|
|
26024
|
+
}, zd = !yt.useId, nr = !Ci || T2, L2 = (e) => I2() ? window.requestAnimationFrame(e) : setTimeout(e, 1), da = nr ? _e : hr, ha = typeof navigator < "u" && navigator.connection, Hd = !nr && ha && ([
|
|
26020
26025
|
"slow-2g",
|
|
26021
26026
|
"2g"
|
|
26022
|
-
].includes(ha.effectiveType) || ha.saveData), Zi = /* @__PURE__ */ new WeakMap(),
|
|
26023
|
-
let
|
|
26027
|
+
].includes(ha.effectiveType) || ha.saveData), Zi = /* @__PURE__ */ new WeakMap(), _2 = (e) => wl.prototype.toString.call(e), pa = (e, t) => e === `[object ${t}]`;
|
|
26028
|
+
let F2 = 0;
|
|
26024
26029
|
const Cl = (e) => {
|
|
26025
|
-
const t = typeof e, n =
|
|
26030
|
+
const t = typeof e, n = _2(e), r = pa(n, "Date"), i = pa(n, "RegExp"), o = pa(n, "Object");
|
|
26026
26031
|
let s, a;
|
|
26027
26032
|
if (wl(e) === e && !r && !i) {
|
|
26028
26033
|
if (s = Zi.get(e), s) return s;
|
|
26029
|
-
if (s = ++
|
|
26034
|
+
if (s = ++F2 + "~", Zi.set(e, s), Array.isArray(e)) {
|
|
26030
26035
|
for (s = "@", a = 0; a < e.length; a++)
|
|
26031
26036
|
s += Cl(e[a]) + ",";
|
|
26032
26037
|
Zi.set(e, s);
|
|
@@ -26054,8 +26059,8 @@ const Cl = (e) => {
|
|
|
26054
26059
|
t
|
|
26055
26060
|
];
|
|
26056
26061
|
};
|
|
26057
|
-
let
|
|
26058
|
-
const Al = () =>
|
|
26062
|
+
let $2 = 0;
|
|
26063
|
+
const Al = () => ++$2;
|
|
26059
26064
|
async function $y(...e) {
|
|
26060
26065
|
const [t, n, r, i] = e, o = wn({
|
|
26061
26066
|
populateCache: !0,
|
|
@@ -26138,9 +26143,9 @@ async function $y(...e) {
|
|
|
26138
26143
|
const Ud = (e, t) => {
|
|
26139
26144
|
for (const n in e)
|
|
26140
26145
|
e[n][0] && e[n][0](t);
|
|
26141
|
-
},
|
|
26146
|
+
}, B2 = (e, t) => {
|
|
26142
26147
|
if (!tn.has(e)) {
|
|
26143
|
-
const n = wn(
|
|
26148
|
+
const n = wn(P2, t), r = /* @__PURE__ */ Object.create(null), i = $y.bind(ot, e);
|
|
26144
26149
|
let o = rn;
|
|
26145
26150
|
const s = /* @__PURE__ */ Object.create(null), a = (f, c) => {
|
|
26146
26151
|
const h = s[f] || [];
|
|
@@ -26178,16 +26183,16 @@ const Ud = (e, t) => {
|
|
|
26178
26183
|
e,
|
|
26179
26184
|
tn.get(e)[4]
|
|
26180
26185
|
];
|
|
26181
|
-
},
|
|
26186
|
+
}, z2 = (e, t, n, r, i) => {
|
|
26182
26187
|
const o = n.errorRetryCount, s = i.retryCount, a = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
|
|
26183
26188
|
!be(o) && s > o || setTimeout(r, a, i);
|
|
26184
|
-
},
|
|
26189
|
+
}, H2 = bl, [By, U2] = B2(/* @__PURE__ */ new Map()), j2 = wn(
|
|
26185
26190
|
{
|
|
26186
26191
|
// events
|
|
26187
26192
|
onLoadingSlow: rn,
|
|
26188
26193
|
onSuccess: rn,
|
|
26189
26194
|
onError: rn,
|
|
26190
|
-
onErrorRetry:
|
|
26195
|
+
onErrorRetry: z2,
|
|
26191
26196
|
onDiscarded: rn,
|
|
26192
26197
|
// switches
|
|
26193
26198
|
revalidateOnFocus: !0,
|
|
@@ -26200,24 +26205,24 @@ const Ud = (e, t) => {
|
|
|
26200
26205
|
dedupingInterval: 2 * 1e3,
|
|
26201
26206
|
loadingTimeout: Hd ? 5e3 : 3e3,
|
|
26202
26207
|
// providers
|
|
26203
|
-
compare:
|
|
26208
|
+
compare: H2,
|
|
26204
26209
|
isPaused: () => !1,
|
|
26205
26210
|
cache: By,
|
|
26206
|
-
mutate:
|
|
26211
|
+
mutate: U2,
|
|
26207
26212
|
fallback: {}
|
|
26208
26213
|
},
|
|
26209
26214
|
// use web preset by default
|
|
26210
|
-
|
|
26211
|
-
),
|
|
26215
|
+
N2
|
|
26216
|
+
), V2 = (e, t) => {
|
|
26212
26217
|
const n = wn(e, t);
|
|
26213
26218
|
if (t) {
|
|
26214
26219
|
const { use: r, fallback: i } = e, { use: o, fallback: s } = t;
|
|
26215
26220
|
r && o && (n.use = r.concat(o)), i && s && (n.fallback = wn(i, s));
|
|
26216
26221
|
}
|
|
26217
26222
|
return n;
|
|
26218
|
-
},
|
|
26223
|
+
}, W2 = Po({}), q2 = "$inf$", zy = Ci && window.__SWR_DEVTOOLS_USE__, Y2 = zy ? window.__SWR_DEVTOOLS_USE__ : [], K2 = () => {
|
|
26219
26224
|
zy && (window.__SWR_DEVTOOLS_REACT__ = yt);
|
|
26220
|
-
},
|
|
26225
|
+
}, G2 = (e) => Yt(e[1]) ? [
|
|
26221
26226
|
e[0],
|
|
26222
26227
|
e[1],
|
|
26223
26228
|
e[2] || {}
|
|
@@ -26225,32 +26230,32 @@ const Ud = (e, t) => {
|
|
|
26225
26230
|
e[0],
|
|
26226
26231
|
null,
|
|
26227
26232
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
26228
|
-
],
|
|
26229
|
-
const e = Lo(
|
|
26230
|
-
return ct(() => wn(
|
|
26233
|
+
], Q2 = () => {
|
|
26234
|
+
const e = Lo(W2);
|
|
26235
|
+
return ct(() => wn(j2, e), [
|
|
26231
26236
|
e
|
|
26232
26237
|
]);
|
|
26233
|
-
},
|
|
26238
|
+
}, Z2 = (e) => (t, n, r) => e(t, n && ((...o) => {
|
|
26234
26239
|
const [s] = Mu(t), [, , , a] = tn.get(By);
|
|
26235
|
-
if (s.startsWith(
|
|
26240
|
+
if (s.startsWith(q2))
|
|
26236
26241
|
return n(...o);
|
|
26237
26242
|
const l = a[s];
|
|
26238
26243
|
return be(l) ? n(...o) : (delete a[s], l);
|
|
26239
|
-
}), r),
|
|
26240
|
-
const r =
|
|
26244
|
+
}), r), J2 = Y2.concat(Z2), X2 = (e) => function(...n) {
|
|
26245
|
+
const r = Q2(), [i, o, s] = G2(n), a = V2(r, s);
|
|
26241
26246
|
let l = e;
|
|
26242
|
-
const { use: u } = a, f = (u || []).concat(
|
|
26247
|
+
const { use: u } = a, f = (u || []).concat(J2);
|
|
26243
26248
|
for (let c = f.length; c--; )
|
|
26244
26249
|
l = f[c](l);
|
|
26245
26250
|
return l(i, o || a.fetcher || null, a);
|
|
26246
|
-
},
|
|
26251
|
+
}, eP = (e, t, n) => {
|
|
26247
26252
|
const r = t[e] || (t[e] = []);
|
|
26248
26253
|
return r.push(n), () => {
|
|
26249
26254
|
const i = r.indexOf(n);
|
|
26250
26255
|
i >= 0 && (r[i] = r[r.length - 1], r.pop());
|
|
26251
26256
|
};
|
|
26252
26257
|
};
|
|
26253
|
-
|
|
26258
|
+
K2();
|
|
26254
26259
|
const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
26255
26260
|
// and emitting an error.
|
|
26256
26261
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
@@ -26272,7 +26277,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26272
26277
|
}
|
|
26273
26278
|
}), ga = {
|
|
26274
26279
|
dedupe: !0
|
|
26275
|
-
}, jd = Promise.resolve(ot),
|
|
26280
|
+
}, jd = Promise.resolve(ot), tP = () => rn, nP = (e, t, n) => {
|
|
26276
26281
|
const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: h, strictServerPrefetchWarning: d } = n, [m, p, g, v] = tn.get(r), [y, w] = Mu(e), C = Se(!1), S = Se(!1), k = Se(y), I = Se(t), R = Se(n), N = () => R.current, A = () => N().isVisible() && N().isOnline(), [O, $, P, L] = Fy(r, y), _ = Se({}).current, D = be(s) ? be(n.fallback) ? ot : n.fallback[y] : s, H = (Z, le) => {
|
|
26277
26282
|
for (const fe in _) {
|
|
26278
26283
|
const ce = fe;
|
|
@@ -26320,7 +26325,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26320
26325
|
), V[0], V[1]), M = m[y] && m[y].length > 0, U = b.data, x = be(U) ? D && _y(D) ? ma(D) : D : U, j = b.error, q = Se(x), W = h ? be(U) ? be(q.current) ? x : q.current : U : x, G = y && be(x), J = Se(null);
|
|
26321
26326
|
!nr && // getServerSnapshot is only called during hydration
|
|
26322
26327
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
26323
|
-
Aa.useSyncExternalStore(
|
|
26328
|
+
Aa.useSyncExternalStore(tP, () => (J.current = !1, J), () => (J.current = !0, J));
|
|
26324
26329
|
const ie = J.current;
|
|
26325
26330
|
d && ie && !o && G && console.warn(`Missing pre-initiated data for serialized key "${y}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
26326
26331
|
const K = !y || !t || N().isPaused() || M && !be(j) ? !1 : B && !be(a) ? a : o ? be(x) ? !1 : l : be(x) || l, ee = be(b.isValidating) ? K : b.isValidating, F = be(b.isLoading) ? K : b.isLoading, te = Me(
|
|
@@ -26399,7 +26404,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26399
26404
|
const Z = te.bind(ot, ga);
|
|
26400
26405
|
let le = 0;
|
|
26401
26406
|
N().revalidateOnFocus && (le = Date.now() + N().focusThrottleInterval);
|
|
26402
|
-
const ce =
|
|
26407
|
+
const ce = eP(y, m, (Ce, $e = {}) => {
|
|
26403
26408
|
if (Ce == Ny) {
|
|
26404
26409
|
const Oe = Date.now();
|
|
26405
26410
|
N().revalidateOnFocus && Oe > le && A() && (le = Oe + N().focusThrottleInterval, Z());
|
|
@@ -26414,7 +26419,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26414
26419
|
});
|
|
26415
26420
|
return S.current = !1, k.current = y, C.current = !0, $({
|
|
26416
26421
|
_k: w
|
|
26417
|
-
}), K && (g[y] || (be(x) || nr ? Z() :
|
|
26422
|
+
}), K && (g[y] || (be(x) || nr ? Z() : L2(Z))), () => {
|
|
26418
26423
|
S.current = !0, ce();
|
|
26419
26424
|
};
|
|
26420
26425
|
}, [
|
|
@@ -26461,15 +26466,15 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
26461
26466
|
return _.isLoading = !0, F;
|
|
26462
26467
|
}
|
|
26463
26468
|
};
|
|
26464
|
-
},
|
|
26465
|
-
function
|
|
26469
|
+
}, rP = X2(nP);
|
|
26470
|
+
function iP({
|
|
26466
26471
|
userCredentials: e,
|
|
26467
26472
|
listConversations: t,
|
|
26468
26473
|
clientId: n
|
|
26469
26474
|
}) {
|
|
26470
|
-
const r = !!e && n && t, { data: i, error: o, isValidating: s, mutate: a } =
|
|
26475
|
+
const r = !!e && n && t, { data: i, error: o, isValidating: s, mutate: a } = rP(
|
|
26471
26476
|
r ? [n, "conversations", e == null ? void 0 : e.userId] : null,
|
|
26472
|
-
async () => (await t({})).conversations.filter(
|
|
26477
|
+
async () => (await t({})).conversations.filter(oP).sort((u, f) => new Date(f.updatedAt).getTime() - new Date(u.updatedAt).getTime()).map(
|
|
26473
26478
|
(u) => ({
|
|
26474
26479
|
...u,
|
|
26475
26480
|
lastMessage: {
|
|
@@ -26496,7 +26501,7 @@ function rP({
|
|
|
26496
26501
|
refresh: async () => await a()
|
|
26497
26502
|
};
|
|
26498
26503
|
}
|
|
26499
|
-
const
|
|
26504
|
+
const oP = (e) => !!e.lastMessage, sP = (e) => e == null || e.length === 0 ? "" : e.charAt(0).toUpperCase() + e.slice(1), Hy = ({
|
|
26500
26505
|
className: e,
|
|
26501
26506
|
onConversationClick: t,
|
|
26502
26507
|
onNewConversation: n,
|
|
@@ -26547,7 +26552,7 @@ const iP = (e) => !!e.lastMessage, oP = (e) => e == null || e.length === 0 ? ""
|
|
|
26547
26552
|
),
|
|
26548
26553
|
/* @__PURE__ */ ae("div", { ...f.conversation.content, children: [
|
|
26549
26554
|
/* @__PURE__ */ T("span", { ...f.conversation.name, children: d }),
|
|
26550
|
-
/* @__PURE__ */ T("span", { ...f.conversation.timestamp, children:
|
|
26555
|
+
/* @__PURE__ */ T("span", { ...f.conversation.timestamp, children: sP(ew(h.createdAt)) })
|
|
26551
26556
|
] }),
|
|
26552
26557
|
/* @__PURE__ */ T(Em, { strokeWidth: 1.5, ...f.conversation.chevron })
|
|
26553
26558
|
]
|
|
@@ -26564,7 +26569,7 @@ const iP = (e) => !!e.lastMessage, oP = (e) => e == null || e.length === 0 ? ""
|
|
|
26564
26569
|
);
|
|
26565
26570
|
};
|
|
26566
26571
|
Hy.displayName = "ConversationHistory";
|
|
26567
|
-
const
|
|
26572
|
+
const aP = ({
|
|
26568
26573
|
connected: e,
|
|
26569
26574
|
configuration: t,
|
|
26570
26575
|
isTyping: n,
|
|
@@ -26614,7 +26619,7 @@ const sP = ({
|
|
|
26614
26619
|
variant: $,
|
|
26615
26620
|
headerVariant: P,
|
|
26616
26621
|
additionalStylesheetUrl: b
|
|
26617
|
-
}, [j, q] = Te("chat"), W =
|
|
26622
|
+
}, [j, q] = Te("chat"), W = iP({
|
|
26618
26623
|
clientId: v,
|
|
26619
26624
|
listConversations: p,
|
|
26620
26625
|
userCredentials: i
|
|
@@ -26629,7 +26634,7 @@ const sP = ({
|
|
|
26629
26634
|
return _e(() => (K(ie.current), () => {
|
|
26630
26635
|
K(null);
|
|
26631
26636
|
}), [K]), /* @__PURE__ */ ae(Mt, { children: [
|
|
26632
|
-
/* @__PURE__ */ T(
|
|
26637
|
+
/* @__PURE__ */ T(TM, { ...x }),
|
|
26633
26638
|
/* @__PURE__ */ T(
|
|
26634
26639
|
"div",
|
|
26635
26640
|
{
|
|
@@ -26655,7 +26660,7 @@ const sP = ({
|
|
|
26655
26660
|
conversationId: k,
|
|
26656
26661
|
...I,
|
|
26657
26662
|
children: u || W.error ? /* @__PURE__ */ T(
|
|
26658
|
-
|
|
26663
|
+
b2,
|
|
26659
26664
|
{
|
|
26660
26665
|
error: u || W.error,
|
|
26661
26666
|
restartConversation: g,
|
|
@@ -26678,7 +26683,7 @@ const sP = ({
|
|
|
26678
26683
|
}
|
|
26679
26684
|
) : /* @__PURE__ */ ae(Mt, { children: [
|
|
26680
26685
|
/* @__PURE__ */ T(
|
|
26681
|
-
|
|
26686
|
+
h2,
|
|
26682
26687
|
{
|
|
26683
26688
|
showConversationHistory: U ? () => q("conversations") : void 0,
|
|
26684
26689
|
closeWindow: c,
|
|
@@ -26704,7 +26709,7 @@ const sP = ({
|
|
|
26704
26709
|
k
|
|
26705
26710
|
),
|
|
26706
26711
|
!J && /* @__PURE__ */ T(
|
|
26707
|
-
|
|
26712
|
+
SD,
|
|
26708
26713
|
{
|
|
26709
26714
|
sendMessage: h,
|
|
26710
26715
|
uploadFile: d,
|
|
@@ -26724,7 +26729,7 @@ const sP = ({
|
|
|
26724
26729
|
)
|
|
26725
26730
|
] });
|
|
26726
26731
|
};
|
|
26727
|
-
function
|
|
26732
|
+
function lP({
|
|
26728
26733
|
configuration: e,
|
|
26729
26734
|
storageKey: t,
|
|
26730
26735
|
clientId: n,
|
|
@@ -26741,12 +26746,12 @@ function aP({
|
|
|
26741
26746
|
error: h,
|
|
26742
26747
|
isTyping: d,
|
|
26743
26748
|
isAwaitingResponse: m
|
|
26744
|
-
} =
|
|
26749
|
+
} = C2(), { openConversation: p, listConversations: g } = A2(), { userCredentials: v } = E2(), { soundOn: y, toggleSound: w } = My({
|
|
26745
26750
|
storageKey: i,
|
|
26746
26751
|
soundEnabled: e == null ? void 0 : e.soundEnabled
|
|
26747
26752
|
});
|
|
26748
26753
|
return /* @__PURE__ */ T(
|
|
26749
|
-
|
|
26754
|
+
aP,
|
|
26750
26755
|
{
|
|
26751
26756
|
configuration: e ?? {},
|
|
26752
26757
|
user: v,
|
|
@@ -26771,7 +26776,7 @@ function aP({
|
|
|
26771
26776
|
}
|
|
26772
26777
|
);
|
|
26773
26778
|
}
|
|
26774
|
-
const
|
|
26779
|
+
const jL = ({
|
|
26775
26780
|
clientId: e,
|
|
26776
26781
|
storageKey: t,
|
|
26777
26782
|
configuration: n,
|
|
@@ -26782,7 +26787,7 @@ const UL = ({
|
|
|
26782
26787
|
}) => {
|
|
26783
26788
|
const a = t || `bp-webchat-${e}`;
|
|
26784
26789
|
return /* @__PURE__ */ T(
|
|
26785
|
-
|
|
26790
|
+
HN,
|
|
26786
26791
|
{
|
|
26787
26792
|
clientId: e,
|
|
26788
26793
|
apiUrl: r,
|
|
@@ -26791,11 +26796,11 @@ const UL = ({
|
|
|
26791
26796
|
storageKey: a,
|
|
26792
26797
|
storageLocation: n == null ? void 0 : n.storageLocation,
|
|
26793
26798
|
adminSecret: n == null ? void 0 : n.adminSecret,
|
|
26794
|
-
children: /* @__PURE__ */ T(
|
|
26799
|
+
children: /* @__PURE__ */ T(lP, { configuration: n, storageKey: t, clientId: e, ...s })
|
|
26795
26800
|
}
|
|
26796
26801
|
);
|
|
26797
26802
|
};
|
|
26798
|
-
function
|
|
26803
|
+
function uP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
26799
26804
|
const n = ir(e);
|
|
26800
26805
|
E.useEffect(() => {
|
|
26801
26806
|
const r = (i) => {
|
|
@@ -26804,7 +26809,7 @@ function lP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
26804
26809
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
26805
26810
|
}, [n, t]);
|
|
26806
26811
|
}
|
|
26807
|
-
var
|
|
26812
|
+
var cP = "DismissableLayer", Tl = "dismissableLayer.update", fP = "dismissableLayer.pointerDownOutside", dP = "dismissableLayer.focusOutside", Vd, Uy = E.createContext({
|
|
26808
26813
|
layers: /* @__PURE__ */ new Set(),
|
|
26809
26814
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
26810
26815
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -26818,14 +26823,14 @@ var uP = "DismissableLayer", Tl = "dismissableLayer.update", cP = "dismissableLa
|
|
|
26818
26823
|
onInteractOutside: s,
|
|
26819
26824
|
onDismiss: a,
|
|
26820
26825
|
...l
|
|
26821
|
-
} = e, u = E.useContext(Uy), [f, c] = E.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = E.useState({}), m = xn(t, (I) => c(I)), p = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(g), y = f ? p.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= v, S =
|
|
26826
|
+
} = e, u = E.useContext(Uy), [f, c] = E.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = E.useState({}), m = xn(t, (I) => c(I)), p = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(g), y = f ? p.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= v, S = mP((I) => {
|
|
26822
26827
|
const R = I.target, N = [...u.branches].some((A) => A.contains(R));
|
|
26823
26828
|
!C || N || (i == null || i(I), s == null || s(I), I.defaultPrevented || a == null || a());
|
|
26824
|
-
}, h), k =
|
|
26829
|
+
}, h), k = gP((I) => {
|
|
26825
26830
|
const R = I.target;
|
|
26826
26831
|
[...u.branches].some((A) => A.contains(R)) || (o == null || o(I), s == null || s(I), I.defaultPrevented || a == null || a());
|
|
26827
26832
|
}, h);
|
|
26828
|
-
return
|
|
26833
|
+
return uP((I) => {
|
|
26829
26834
|
y === u.layers.size - 1 && (r == null || r(I), !I.defaultPrevented && a && (I.preventDefault(), a()));
|
|
26830
26835
|
}, h), E.useEffect(() => {
|
|
26831
26836
|
if (f)
|
|
@@ -26856,8 +26861,8 @@ var uP = "DismissableLayer", Tl = "dismissableLayer.update", cP = "dismissableLa
|
|
|
26856
26861
|
);
|
|
26857
26862
|
}
|
|
26858
26863
|
);
|
|
26859
|
-
jy.displayName =
|
|
26860
|
-
var
|
|
26864
|
+
jy.displayName = cP;
|
|
26865
|
+
var hP = "DismissableLayerBranch", pP = E.forwardRef((e, t) => {
|
|
26861
26866
|
const n = E.useContext(Uy), r = E.useRef(null), i = xn(t, r);
|
|
26862
26867
|
return E.useEffect(() => {
|
|
26863
26868
|
const o = r.current;
|
|
@@ -26867,8 +26872,8 @@ var dP = "DismissableLayerBranch", hP = E.forwardRef((e, t) => {
|
|
|
26867
26872
|
};
|
|
26868
26873
|
}, [n.branches]), /* @__PURE__ */ T(Vt.div, { ...e, ref: i });
|
|
26869
26874
|
});
|
|
26870
|
-
|
|
26871
|
-
function
|
|
26875
|
+
pP.displayName = hP;
|
|
26876
|
+
function mP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
26872
26877
|
const n = ir(e), r = E.useRef(!1), i = E.useRef(() => {
|
|
26873
26878
|
});
|
|
26874
26879
|
return E.useEffect(() => {
|
|
@@ -26876,7 +26881,7 @@ function pP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
26876
26881
|
if (a.target && !r.current) {
|
|
26877
26882
|
let l = function() {
|
|
26878
26883
|
Vy(
|
|
26879
|
-
|
|
26884
|
+
fP,
|
|
26880
26885
|
n,
|
|
26881
26886
|
u,
|
|
26882
26887
|
{ discrete: !0 }
|
|
@@ -26898,11 +26903,11 @@ function pP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
26898
26903
|
onPointerDownCapture: () => r.current = !0
|
|
26899
26904
|
};
|
|
26900
26905
|
}
|
|
26901
|
-
function
|
|
26906
|
+
function gP(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
26902
26907
|
const n = ir(e), r = E.useRef(!1);
|
|
26903
26908
|
return E.useEffect(() => {
|
|
26904
26909
|
const i = (o) => {
|
|
26905
|
-
o.target && !r.current && Vy(
|
|
26910
|
+
o.target && !r.current && Vy(dP, n, { originalEvent: o }, {
|
|
26906
26911
|
discrete: !1
|
|
26907
26912
|
});
|
|
26908
26913
|
};
|
|
@@ -26918,9 +26923,9 @@ function Wd() {
|
|
|
26918
26923
|
}
|
|
26919
26924
|
function Vy(e, t, n, { discrete: r }) {
|
|
26920
26925
|
const i = n.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
26921
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
26926
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? e2(i, o) : i.dispatchEvent(o);
|
|
26922
26927
|
}
|
|
26923
|
-
var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", qd = { bubbles: !1, cancelable: !0 },
|
|
26928
|
+
var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", qd = { bubbles: !1, cancelable: !0 }, yP = "FocusScope", Wy = E.forwardRef((e, t) => {
|
|
26924
26929
|
const {
|
|
26925
26930
|
loop: n = !1,
|
|
26926
26931
|
trapped: r = !1,
|
|
@@ -26963,7 +26968,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", qd
|
|
|
26963
26968
|
const p = document.activeElement;
|
|
26964
26969
|
if (!a.contains(p)) {
|
|
26965
26970
|
const v = new CustomEvent(ya, qd);
|
|
26966
|
-
a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (
|
|
26971
|
+
a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (vP(kP(qy(a)), { select: !0 }), document.activeElement === p && cn(a));
|
|
26967
26972
|
}
|
|
26968
26973
|
return () => {
|
|
26969
26974
|
a.removeEventListener(ya, u), setTimeout(() => {
|
|
@@ -26978,7 +26983,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", qd
|
|
|
26978
26983
|
if (!n && !r || d.paused) return;
|
|
26979
26984
|
const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, v = document.activeElement;
|
|
26980
26985
|
if (g && v) {
|
|
26981
|
-
const y = p.currentTarget, [w, C] =
|
|
26986
|
+
const y = p.currentTarget, [w, C] = bP(y);
|
|
26982
26987
|
w && C ? !p.shiftKey && v === C ? (p.preventDefault(), n && cn(w, { select: !0 })) : p.shiftKey && v === w && (p.preventDefault(), n && cn(C, { select: !0 })) : v === y && p.preventDefault();
|
|
26983
26988
|
}
|
|
26984
26989
|
},
|
|
@@ -26986,13 +26991,13 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", qd
|
|
|
26986
26991
|
);
|
|
26987
26992
|
return /* @__PURE__ */ T(Vt.div, { tabIndex: -1, ...s, ref: h, onKeyDown: m });
|
|
26988
26993
|
});
|
|
26989
|
-
Wy.displayName =
|
|
26990
|
-
function
|
|
26994
|
+
Wy.displayName = yP;
|
|
26995
|
+
function vP(e, { select: t = !1 } = {}) {
|
|
26991
26996
|
const n = document.activeElement;
|
|
26992
26997
|
for (const r of e)
|
|
26993
26998
|
if (cn(r, { select: t }), document.activeElement !== n) return;
|
|
26994
26999
|
}
|
|
26995
|
-
function
|
|
27000
|
+
function bP(e) {
|
|
26996
27001
|
const t = qy(e), n = Yd(t, e), r = Yd(t.reverse(), e);
|
|
26997
27002
|
return [n, r];
|
|
26998
27003
|
}
|
|
@@ -27008,9 +27013,9 @@ function qy(e) {
|
|
|
27008
27013
|
}
|
|
27009
27014
|
function Yd(e, t) {
|
|
27010
27015
|
for (const n of e)
|
|
27011
|
-
if (!
|
|
27016
|
+
if (!wP(n, { upTo: t })) return n;
|
|
27012
27017
|
}
|
|
27013
|
-
function
|
|
27018
|
+
function wP(e, { upTo: t }) {
|
|
27014
27019
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
27015
27020
|
for (; e; ) {
|
|
27016
27021
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -27019,17 +27024,17 @@ function bP(e, { upTo: t }) {
|
|
|
27019
27024
|
}
|
|
27020
27025
|
return !1;
|
|
27021
27026
|
}
|
|
27022
|
-
function
|
|
27027
|
+
function xP(e) {
|
|
27023
27028
|
return e instanceof HTMLInputElement && "select" in e;
|
|
27024
27029
|
}
|
|
27025
27030
|
function cn(e, { select: t = !1 } = {}) {
|
|
27026
27031
|
if (e && e.focus) {
|
|
27027
27032
|
const n = document.activeElement;
|
|
27028
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
27033
|
+
e.focus({ preventScroll: !0 }), e !== n && xP(e) && t && e.select();
|
|
27029
27034
|
}
|
|
27030
27035
|
}
|
|
27031
|
-
var Kd =
|
|
27032
|
-
function
|
|
27036
|
+
var Kd = SP();
|
|
27037
|
+
function SP() {
|
|
27033
27038
|
let e = [];
|
|
27034
27039
|
return {
|
|
27035
27040
|
add(t) {
|
|
@@ -27046,11 +27051,11 @@ function Gd(e, t) {
|
|
|
27046
27051
|
const n = [...e], r = n.indexOf(t);
|
|
27047
27052
|
return r !== -1 && n.splice(r, 1), n;
|
|
27048
27053
|
}
|
|
27049
|
-
function
|
|
27054
|
+
function kP(e) {
|
|
27050
27055
|
return e.filter((t) => t.tagName !== "A");
|
|
27051
27056
|
}
|
|
27052
27057
|
var ba = 0;
|
|
27053
|
-
function
|
|
27058
|
+
function EP() {
|
|
27054
27059
|
E.useEffect(() => {
|
|
27055
27060
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
27056
27061
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Qd()), document.body.insertAdjacentElement("beforeend", e[1] ?? Qd()), ba++, () => {
|
|
@@ -27062,11 +27067,11 @@ function Qd() {
|
|
|
27062
27067
|
const e = document.createElement("span");
|
|
27063
27068
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
27064
27069
|
}
|
|
27065
|
-
var fo = "right-scroll-bar-position", ho = "width-before-scroll-bar",
|
|
27070
|
+
var fo = "right-scroll-bar-position", ho = "width-before-scroll-bar", CP = "with-scroll-bars-hidden", AP = "--removed-body-scroll-bar-size";
|
|
27066
27071
|
function wa(e, t) {
|
|
27067
27072
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
27068
27073
|
}
|
|
27069
|
-
function
|
|
27074
|
+
function TP(e, t) {
|
|
27070
27075
|
var n = Te(function() {
|
|
27071
27076
|
return {
|
|
27072
27077
|
// value
|
|
@@ -27087,14 +27092,14 @@ function AP(e, t) {
|
|
|
27087
27092
|
})[0];
|
|
27088
27093
|
return n.callback = t, n.facade;
|
|
27089
27094
|
}
|
|
27090
|
-
var
|
|
27091
|
-
function
|
|
27092
|
-
var n =
|
|
27095
|
+
var IP = typeof window < "u" ? E.useLayoutEffect : E.useEffect, Zd = /* @__PURE__ */ new WeakMap();
|
|
27096
|
+
function OP(e, t) {
|
|
27097
|
+
var n = TP(null, function(r) {
|
|
27093
27098
|
return e.forEach(function(i) {
|
|
27094
27099
|
return wa(i, r);
|
|
27095
27100
|
});
|
|
27096
27101
|
});
|
|
27097
|
-
return
|
|
27102
|
+
return IP(function() {
|
|
27098
27103
|
var r = Zd.get(n);
|
|
27099
27104
|
if (r) {
|
|
27100
27105
|
var i = new Set(r), o = new Set(e), s = n.current;
|
|
@@ -27107,11 +27112,11 @@ function IP(e, t) {
|
|
|
27107
27112
|
Zd.set(n, e);
|
|
27108
27113
|
}, [e]), n;
|
|
27109
27114
|
}
|
|
27110
|
-
function
|
|
27115
|
+
function RP(e) {
|
|
27111
27116
|
return e;
|
|
27112
27117
|
}
|
|
27113
|
-
function
|
|
27114
|
-
t === void 0 && (t =
|
|
27118
|
+
function DP(e, t) {
|
|
27119
|
+
t === void 0 && (t = RP);
|
|
27115
27120
|
var n = [], r = !1, i = {
|
|
27116
27121
|
read: function() {
|
|
27117
27122
|
if (r)
|
|
@@ -27165,9 +27170,9 @@ function RP(e, t) {
|
|
|
27165
27170
|
};
|
|
27166
27171
|
return i;
|
|
27167
27172
|
}
|
|
27168
|
-
function
|
|
27173
|
+
function MP(e) {
|
|
27169
27174
|
e === void 0 && (e = {});
|
|
27170
|
-
var t =
|
|
27175
|
+
var t = DP(null);
|
|
27171
27176
|
return t.options = Rt({ async: !0, ssr: !1 }, e), t;
|
|
27172
27177
|
}
|
|
27173
27178
|
var Yy = function(e) {
|
|
@@ -27180,16 +27185,16 @@ var Yy = function(e) {
|
|
|
27180
27185
|
return E.createElement(r, Rt({}, n));
|
|
27181
27186
|
};
|
|
27182
27187
|
Yy.isSideCarExport = !0;
|
|
27183
|
-
function
|
|
27188
|
+
function NP(e, t) {
|
|
27184
27189
|
return e.useMedium(t), Yy;
|
|
27185
27190
|
}
|
|
27186
|
-
var Ky =
|
|
27191
|
+
var Ky = MP(), xa = function() {
|
|
27187
27192
|
}, ls = E.forwardRef(function(e, t) {
|
|
27188
27193
|
var n = E.useRef(null), r = E.useState({
|
|
27189
27194
|
onScrollCapture: xa,
|
|
27190
27195
|
onWheelCapture: xa,
|
|
27191
27196
|
onTouchMoveCapture: xa
|
|
27192
|
-
}), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative, m = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, C = Hm(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, k =
|
|
27197
|
+
}), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative, m = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, C = Hm(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, k = OP([n, t]), I = Rt(Rt({}, C), i);
|
|
27193
27198
|
return E.createElement(
|
|
27194
27199
|
E.Fragment,
|
|
27195
27200
|
null,
|
|
@@ -27206,37 +27211,37 @@ ls.classNames = {
|
|
|
27206
27211
|
fullWidth: ho,
|
|
27207
27212
|
zeroRight: fo
|
|
27208
27213
|
};
|
|
27209
|
-
var
|
|
27214
|
+
var PP = function() {
|
|
27210
27215
|
if (typeof __webpack_nonce__ < "u")
|
|
27211
27216
|
return __webpack_nonce__;
|
|
27212
27217
|
};
|
|
27213
|
-
function
|
|
27218
|
+
function LP() {
|
|
27214
27219
|
if (!document)
|
|
27215
27220
|
return null;
|
|
27216
27221
|
var e = document.createElement("style");
|
|
27217
27222
|
e.type = "text/css";
|
|
27218
|
-
var t =
|
|
27223
|
+
var t = PP();
|
|
27219
27224
|
return t && e.setAttribute("nonce", t), e;
|
|
27220
27225
|
}
|
|
27221
|
-
function
|
|
27226
|
+
function _P(e, t) {
|
|
27222
27227
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
27223
27228
|
}
|
|
27224
|
-
function
|
|
27229
|
+
function FP(e) {
|
|
27225
27230
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
27226
27231
|
t.appendChild(e);
|
|
27227
27232
|
}
|
|
27228
|
-
var
|
|
27233
|
+
var $P = function() {
|
|
27229
27234
|
var e = 0, t = null;
|
|
27230
27235
|
return {
|
|
27231
27236
|
add: function(n) {
|
|
27232
|
-
e == 0 && (t =
|
|
27237
|
+
e == 0 && (t = LP()) && (_P(t, n), FP(t)), e++;
|
|
27233
27238
|
},
|
|
27234
27239
|
remove: function() {
|
|
27235
27240
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
27236
27241
|
}
|
|
27237
27242
|
};
|
|
27238
|
-
},
|
|
27239
|
-
var e =
|
|
27243
|
+
}, BP = function() {
|
|
27244
|
+
var e = $P();
|
|
27240
27245
|
return function(t, n) {
|
|
27241
27246
|
E.useEffect(function() {
|
|
27242
27247
|
return e.add(t), function() {
|
|
@@ -27245,35 +27250,35 @@ var FP = function() {
|
|
|
27245
27250
|
}, [t && n]);
|
|
27246
27251
|
};
|
|
27247
27252
|
}, Gy = function() {
|
|
27248
|
-
var e =
|
|
27253
|
+
var e = BP(), t = function(n) {
|
|
27249
27254
|
var r = n.styles, i = n.dynamic;
|
|
27250
27255
|
return e(r, i), null;
|
|
27251
27256
|
};
|
|
27252
27257
|
return t;
|
|
27253
|
-
},
|
|
27258
|
+
}, zP = {
|
|
27254
27259
|
left: 0,
|
|
27255
27260
|
top: 0,
|
|
27256
27261
|
right: 0,
|
|
27257
27262
|
gap: 0
|
|
27258
27263
|
}, Sa = function(e) {
|
|
27259
27264
|
return parseInt(e || "", 10) || 0;
|
|
27260
|
-
},
|
|
27265
|
+
}, HP = function(e) {
|
|
27261
27266
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
27262
27267
|
return [Sa(n), Sa(r), Sa(i)];
|
|
27263
|
-
},
|
|
27268
|
+
}, UP = function(e) {
|
|
27264
27269
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
27265
|
-
return
|
|
27266
|
-
var t =
|
|
27270
|
+
return zP;
|
|
27271
|
+
var t = HP(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
27267
27272
|
return {
|
|
27268
27273
|
left: t[0],
|
|
27269
27274
|
top: t[1],
|
|
27270
27275
|
right: t[2],
|
|
27271
27276
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
27272
27277
|
};
|
|
27273
|
-
},
|
|
27278
|
+
}, jP = Gy(), rr = "data-scroll-locked", VP = function(e, t, n, r) {
|
|
27274
27279
|
var i = e.left, o = e.top, s = e.right, a = e.gap;
|
|
27275
27280
|
return n === void 0 && (n = "margin"), `
|
|
27276
|
-
.`.concat(
|
|
27281
|
+
.`.concat(CP, ` {
|
|
27277
27282
|
overflow: hidden `).concat(r, `;
|
|
27278
27283
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
27279
27284
|
}
|
|
@@ -27311,26 +27316,26 @@ var FP = function() {
|
|
|
27311
27316
|
}
|
|
27312
27317
|
|
|
27313
27318
|
body[`).concat(rr, `] {
|
|
27314
|
-
`).concat(
|
|
27319
|
+
`).concat(AP, ": ").concat(a, `px;
|
|
27315
27320
|
}
|
|
27316
27321
|
`);
|
|
27317
27322
|
}, Jd = function() {
|
|
27318
27323
|
var e = parseInt(document.body.getAttribute(rr) || "0", 10);
|
|
27319
27324
|
return isFinite(e) ? e : 0;
|
|
27320
|
-
},
|
|
27325
|
+
}, WP = function() {
|
|
27321
27326
|
E.useEffect(function() {
|
|
27322
27327
|
return document.body.setAttribute(rr, (Jd() + 1).toString()), function() {
|
|
27323
27328
|
var e = Jd() - 1;
|
|
27324
27329
|
e <= 0 ? document.body.removeAttribute(rr) : document.body.setAttribute(rr, e.toString());
|
|
27325
27330
|
};
|
|
27326
27331
|
}, []);
|
|
27327
|
-
},
|
|
27332
|
+
}, qP = function(e) {
|
|
27328
27333
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
27329
|
-
|
|
27334
|
+
WP();
|
|
27330
27335
|
var o = E.useMemo(function() {
|
|
27331
|
-
return
|
|
27336
|
+
return UP(i);
|
|
27332
27337
|
}, [i]);
|
|
27333
|
-
return E.createElement(
|
|
27338
|
+
return E.createElement(jP, { styles: VP(o, !t, i, n ? "" : "!important") });
|
|
27334
27339
|
}, Il = !1;
|
|
27335
27340
|
if (typeof window < "u")
|
|
27336
27341
|
try {
|
|
@@ -27343,7 +27348,7 @@ if (typeof window < "u")
|
|
|
27343
27348
|
} catch {
|
|
27344
27349
|
Il = !1;
|
|
27345
27350
|
}
|
|
27346
|
-
var jn = Il ? { passive: !1 } : !1,
|
|
27351
|
+
var jn = Il ? { passive: !1 } : !1, YP = function(e) {
|
|
27347
27352
|
return e.tagName === "TEXTAREA";
|
|
27348
27353
|
}, Qy = function(e, t) {
|
|
27349
27354
|
if (!(e instanceof Element))
|
|
@@ -27352,11 +27357,11 @@ var jn = Il ? { passive: !1 } : !1, qP = function(e) {
|
|
|
27352
27357
|
return (
|
|
27353
27358
|
// not-not-scrollable
|
|
27354
27359
|
n[t] !== "hidden" && // contains scroll inside self
|
|
27355
|
-
!(n.overflowY === n.overflowX && !
|
|
27360
|
+
!(n.overflowY === n.overflowX && !YP(e) && n[t] === "visible")
|
|
27356
27361
|
);
|
|
27357
|
-
}, YP = function(e) {
|
|
27358
|
-
return Qy(e, "overflowY");
|
|
27359
27362
|
}, KP = function(e) {
|
|
27363
|
+
return Qy(e, "overflowY");
|
|
27364
|
+
}, GP = function(e) {
|
|
27360
27365
|
return Qy(e, "overflowX");
|
|
27361
27366
|
}, Xd = function(e, t) {
|
|
27362
27367
|
var n = t.ownerDocument, r = t;
|
|
@@ -27371,14 +27376,14 @@ var jn = Il ? { passive: !1 } : !1, qP = function(e) {
|
|
|
27371
27376
|
r = r.parentNode;
|
|
27372
27377
|
} while (r && r !== n.body);
|
|
27373
27378
|
return !1;
|
|
27374
|
-
},
|
|
27379
|
+
}, QP = function(e) {
|
|
27375
27380
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
27376
27381
|
return [
|
|
27377
27382
|
t,
|
|
27378
27383
|
n,
|
|
27379
27384
|
r
|
|
27380
27385
|
];
|
|
27381
|
-
},
|
|
27386
|
+
}, ZP = function(e) {
|
|
27382
27387
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
27383
27388
|
return [
|
|
27384
27389
|
t,
|
|
@@ -27386,13 +27391,13 @@ var jn = Il ? { passive: !1 } : !1, qP = function(e) {
|
|
|
27386
27391
|
r
|
|
27387
27392
|
];
|
|
27388
27393
|
}, Zy = function(e, t) {
|
|
27389
|
-
return e === "v" ?
|
|
27394
|
+
return e === "v" ? KP(t) : GP(t);
|
|
27390
27395
|
}, Jy = function(e, t) {
|
|
27391
|
-
return e === "v" ?
|
|
27392
|
-
},
|
|
27396
|
+
return e === "v" ? QP(t) : ZP(t);
|
|
27397
|
+
}, JP = function(e, t) {
|
|
27393
27398
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
27394
|
-
},
|
|
27395
|
-
var o =
|
|
27399
|
+
}, XP = function(e, t, n, r, i) {
|
|
27400
|
+
var o = JP(e, window.getComputedStyle(t).direction), s = o * r, a = n.target, l = t.contains(a), u = !1, f = s > 0, c = 0, h = 0;
|
|
27396
27401
|
do {
|
|
27397
27402
|
if (!a)
|
|
27398
27403
|
break;
|
|
@@ -27412,16 +27417,16 @@ var jn = Il ? { passive: !1 } : !1, qP = function(e) {
|
|
|
27412
27417
|
return [e.deltaX, e.deltaY];
|
|
27413
27418
|
}, th = function(e) {
|
|
27414
27419
|
return e && "current" in e ? e.current : e;
|
|
27415
|
-
},
|
|
27420
|
+
}, eL = function(e, t) {
|
|
27416
27421
|
return e[0] === t[0] && e[1] === t[1];
|
|
27417
|
-
},
|
|
27422
|
+
}, tL = function(e) {
|
|
27418
27423
|
return `
|
|
27419
27424
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
27420
27425
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
27421
27426
|
`);
|
|
27422
|
-
},
|
|
27423
|
-
function
|
|
27424
|
-
var t = E.useRef([]), n = E.useRef([0, 0]), r = E.useRef(), i = E.useState(
|
|
27427
|
+
}, nL = 0, Vn = [];
|
|
27428
|
+
function rL(e) {
|
|
27429
|
+
var t = E.useRef([]), n = E.useRef([0, 0]), r = E.useRef(), i = E.useState(nL++)[0], o = E.useState(Gy)[0], s = E.useRef(e);
|
|
27425
27430
|
E.useEffect(function() {
|
|
27426
27431
|
s.current = e;
|
|
27427
27432
|
}, [e]), E.useEffect(function() {
|
|
@@ -27451,12 +27456,12 @@ function nL(e) {
|
|
|
27451
27456
|
if (!r.current && "changedTouches" in p && (w || C) && (r.current = S), !S)
|
|
27452
27457
|
return !0;
|
|
27453
27458
|
var N = r.current || S;
|
|
27454
|
-
return
|
|
27459
|
+
return XP(N, g, p, N === "h" ? w : C);
|
|
27455
27460
|
}, []), l = E.useCallback(function(p) {
|
|
27456
27461
|
var g = p;
|
|
27457
27462
|
if (!(!Vn.length || Vn[Vn.length - 1] !== o)) {
|
|
27458
27463
|
var v = "deltaY" in g ? eh(g) : Xi(g), y = t.current.filter(function(S) {
|
|
27459
|
-
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) &&
|
|
27464
|
+
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && eL(S.delta, v);
|
|
27460
27465
|
})[0];
|
|
27461
27466
|
if (y && y.should) {
|
|
27462
27467
|
g.cancelable && g.preventDefault();
|
|
@@ -27470,7 +27475,7 @@ function nL(e) {
|
|
|
27470
27475
|
}
|
|
27471
27476
|
}
|
|
27472
27477
|
}, []), u = E.useCallback(function(p, g, v, y) {
|
|
27473
|
-
var w = { name: p, delta: g, target: v, should: y, shadowParent:
|
|
27478
|
+
var w = { name: p, delta: g, target: v, should: y, shadowParent: iL(v) };
|
|
27474
27479
|
t.current.push(w), setTimeout(function() {
|
|
27475
27480
|
t.current = t.current.filter(function(C) {
|
|
27476
27481
|
return C !== w;
|
|
@@ -27498,28 +27503,28 @@ function nL(e) {
|
|
|
27498
27503
|
return E.createElement(
|
|
27499
27504
|
E.Fragment,
|
|
27500
27505
|
null,
|
|
27501
|
-
m ? E.createElement(o, { styles:
|
|
27502
|
-
d ? E.createElement(
|
|
27506
|
+
m ? E.createElement(o, { styles: tL(i) }) : null,
|
|
27507
|
+
d ? E.createElement(qP, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
27503
27508
|
);
|
|
27504
27509
|
}
|
|
27505
|
-
function
|
|
27510
|
+
function iL(e) {
|
|
27506
27511
|
for (var t = null; e !== null; )
|
|
27507
27512
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
27508
27513
|
return t;
|
|
27509
27514
|
}
|
|
27510
|
-
const
|
|
27515
|
+
const oL = NP(Ky, rL);
|
|
27511
27516
|
var Xy = E.forwardRef(function(e, t) {
|
|
27512
|
-
return E.createElement(ls, Rt({}, e, { ref: t, sideCar:
|
|
27517
|
+
return E.createElement(ls, Rt({}, e, { ref: t, sideCar: oL }));
|
|
27513
27518
|
});
|
|
27514
27519
|
Xy.classNames = ls.classNames;
|
|
27515
|
-
var
|
|
27520
|
+
var sL = function(e) {
|
|
27516
27521
|
if (typeof document > "u")
|
|
27517
27522
|
return null;
|
|
27518
27523
|
var t = Array.isArray(e) ? e[0] : e;
|
|
27519
27524
|
return t.ownerDocument.body;
|
|
27520
27525
|
}, Wn = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap(), to = {}, ka = 0, ev = function(e) {
|
|
27521
27526
|
return e && (e.host || ev(e.parentNode));
|
|
27522
|
-
},
|
|
27527
|
+
}, aL = function(e, t) {
|
|
27523
27528
|
return t.map(function(n) {
|
|
27524
27529
|
if (e.contains(n))
|
|
27525
27530
|
return n;
|
|
@@ -27528,8 +27533,8 @@ var oL = function(e) {
|
|
|
27528
27533
|
}).filter(function(n) {
|
|
27529
27534
|
return !!n;
|
|
27530
27535
|
});
|
|
27531
|
-
},
|
|
27532
|
-
var i =
|
|
27536
|
+
}, lL = function(e, t, n, r) {
|
|
27537
|
+
var i = aL(t, Array.isArray(e) ? e : [e]);
|
|
27533
27538
|
to[n] || (to[n] = /* @__PURE__ */ new WeakMap());
|
|
27534
27539
|
var o = to[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(i), u = function(c) {
|
|
27535
27540
|
!c || a.has(c) || (a.add(c), u(c.parentNode));
|
|
@@ -27554,13 +27559,13 @@ var oL = function(e) {
|
|
|
27554
27559
|
Wn.set(c, h), o.set(c, d), h || (eo.has(c) || c.removeAttribute(r), eo.delete(c)), d || c.removeAttribute(n);
|
|
27555
27560
|
}), ka--, ka || (Wn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap(), to = {});
|
|
27556
27561
|
};
|
|
27557
|
-
},
|
|
27562
|
+
}, uL = function(e, t, n) {
|
|
27558
27563
|
n === void 0 && (n = "data-aria-hidden");
|
|
27559
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i =
|
|
27560
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
27564
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = sL(e);
|
|
27565
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), lL(r, i, n, "aria-hidden")) : function() {
|
|
27561
27566
|
return null;
|
|
27562
27567
|
};
|
|
27563
|
-
}, us = "Dialog", [tv] = gy(us), [
|
|
27568
|
+
}, us = "Dialog", [tv] = gy(us), [cL, Jt] = tv(us), nv = (e) => {
|
|
27564
27569
|
const {
|
|
27565
27570
|
__scopeDialog: t,
|
|
27566
27571
|
children: n,
|
|
@@ -27575,7 +27580,7 @@ var oL = function(e) {
|
|
|
27575
27580
|
caller: us
|
|
27576
27581
|
});
|
|
27577
27582
|
return /* @__PURE__ */ T(
|
|
27578
|
-
|
|
27583
|
+
cL,
|
|
27579
27584
|
{
|
|
27580
27585
|
scope: t,
|
|
27581
27586
|
triggerRef: a,
|
|
@@ -27611,22 +27616,22 @@ var rv = "DialogTrigger", iv = E.forwardRef(
|
|
|
27611
27616
|
}
|
|
27612
27617
|
);
|
|
27613
27618
|
iv.displayName = rv;
|
|
27614
|
-
var
|
|
27619
|
+
var fL = "DialogPortal", [VL, ov] = tv(fL, {
|
|
27615
27620
|
forceMount: void 0
|
|
27616
|
-
}), No = "DialogOverlay",
|
|
27621
|
+
}), No = "DialogOverlay", dL = E.forwardRef(
|
|
27617
27622
|
(e, t) => {
|
|
27618
27623
|
const n = ov(No, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = Jt(No, e.__scopeDialog);
|
|
27619
|
-
return o.modal ? /* @__PURE__ */ T(ss, { present: r || o.open, children: /* @__PURE__ */ T(
|
|
27624
|
+
return o.modal ? /* @__PURE__ */ T(ss, { present: r || o.open, children: /* @__PURE__ */ T(pL, { ...i, ref: t }) }) : null;
|
|
27620
27625
|
}
|
|
27621
27626
|
);
|
|
27622
|
-
|
|
27623
|
-
var
|
|
27627
|
+
dL.displayName = No;
|
|
27628
|
+
var hL = /* @__PURE__ */ vy("DialogOverlay.RemoveScroll"), pL = E.forwardRef(
|
|
27624
27629
|
(e, t) => {
|
|
27625
27630
|
const { __scopeDialog: n, ...r } = e, i = Jt(No, n);
|
|
27626
27631
|
return (
|
|
27627
27632
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
27628
27633
|
// ie. when `Overlay` and `Content` are siblings
|
|
27629
|
-
/* @__PURE__ */ T(Xy, { as:
|
|
27634
|
+
/* @__PURE__ */ T(Xy, { as: hL, allowPinchZoom: !0, shards: [i.contentRef], children: /* @__PURE__ */ T(
|
|
27630
27635
|
Vt.div,
|
|
27631
27636
|
{
|
|
27632
27637
|
"data-state": Pu(i.open),
|
|
@@ -27640,16 +27645,16 @@ var dL = /* @__PURE__ */ vy("DialogOverlay.RemoveScroll"), hL = E.forwardRef(
|
|
|
27640
27645
|
), _n = "DialogContent", sv = E.forwardRef(
|
|
27641
27646
|
(e, t) => {
|
|
27642
27647
|
const n = ov(_n, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = Jt(_n, e.__scopeDialog);
|
|
27643
|
-
return /* @__PURE__ */ T(ss, { present: r || o.open, children: o.modal ? /* @__PURE__ */ T(
|
|
27648
|
+
return /* @__PURE__ */ T(ss, { present: r || o.open, children: o.modal ? /* @__PURE__ */ T(mL, { ...i, ref: t }) : /* @__PURE__ */ T(gL, { ...i, ref: t }) });
|
|
27644
27649
|
}
|
|
27645
27650
|
);
|
|
27646
27651
|
sv.displayName = _n;
|
|
27647
|
-
var
|
|
27652
|
+
var mL = E.forwardRef(
|
|
27648
27653
|
(e, t) => {
|
|
27649
27654
|
const n = Jt(_n, e.__scopeDialog), r = E.useRef(null), i = xn(t, n.contentRef, r);
|
|
27650
27655
|
return E.useEffect(() => {
|
|
27651
27656
|
const o = r.current;
|
|
27652
|
-
if (o) return
|
|
27657
|
+
if (o) return uL(o);
|
|
27653
27658
|
}, []), /* @__PURE__ */ T(
|
|
27654
27659
|
av,
|
|
27655
27660
|
{
|
|
@@ -27672,7 +27677,7 @@ var pL = E.forwardRef(
|
|
|
27672
27677
|
}
|
|
27673
27678
|
);
|
|
27674
27679
|
}
|
|
27675
|
-
),
|
|
27680
|
+
), gL = E.forwardRef(
|
|
27676
27681
|
(e, t) => {
|
|
27677
27682
|
const n = Jt(_n, e.__scopeDialog), r = E.useRef(!1), i = E.useRef(!1);
|
|
27678
27683
|
return /* @__PURE__ */ T(
|
|
@@ -27698,7 +27703,7 @@ var pL = E.forwardRef(
|
|
|
27698
27703
|
), av = E.forwardRef(
|
|
27699
27704
|
(e, t) => {
|
|
27700
27705
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, a = Jt(_n, n), l = E.useRef(null), u = xn(t, l);
|
|
27701
|
-
return
|
|
27706
|
+
return EP(), /* @__PURE__ */ ae(Mt, { children: [
|
|
27702
27707
|
/* @__PURE__ */ T(
|
|
27703
27708
|
Wy,
|
|
27704
27709
|
{
|
|
@@ -27723,8 +27728,8 @@ var pL = E.forwardRef(
|
|
|
27723
27728
|
}
|
|
27724
27729
|
),
|
|
27725
27730
|
/* @__PURE__ */ ae(Mt, { children: [
|
|
27726
|
-
/* @__PURE__ */ T(
|
|
27727
|
-
/* @__PURE__ */ T(
|
|
27731
|
+
/* @__PURE__ */ T(yL, { titleId: a.titleId }),
|
|
27732
|
+
/* @__PURE__ */ T(bL, { contentRef: l, descriptionId: a.descriptionId })
|
|
27728
27733
|
] })
|
|
27729
27734
|
] });
|
|
27730
27735
|
}
|
|
@@ -27760,11 +27765,11 @@ dv.displayName = fv;
|
|
|
27760
27765
|
function Pu(e) {
|
|
27761
27766
|
return e ? "open" : "closed";
|
|
27762
27767
|
}
|
|
27763
|
-
var hv = "DialogTitleWarning", [
|
|
27768
|
+
var hv = "DialogTitleWarning", [WL, pv] = jN(hv, {
|
|
27764
27769
|
contentName: _n,
|
|
27765
27770
|
titleName: Nu,
|
|
27766
27771
|
docsSlug: "dialog"
|
|
27767
|
-
}),
|
|
27772
|
+
}), yL = ({ titleId: e }) => {
|
|
27768
27773
|
const t = pv(hv), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
27769
27774
|
|
|
27770
27775
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -27773,26 +27778,26 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
27773
27778
|
return E.useEffect(() => {
|
|
27774
27779
|
e && (document.getElementById(e) || console.error(n));
|
|
27775
27780
|
}, [n, e]), null;
|
|
27776
|
-
},
|
|
27777
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pv(
|
|
27781
|
+
}, vL = "DialogDescriptionWarning", bL = ({ contentRef: e, descriptionId: t }) => {
|
|
27782
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pv(vL).contentName}}.`;
|
|
27778
27783
|
return E.useEffect(() => {
|
|
27779
27784
|
var o;
|
|
27780
27785
|
const i = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
27781
27786
|
t && i && (document.getElementById(t) || console.warn(r));
|
|
27782
27787
|
}, [r, e, t]), null;
|
|
27783
|
-
},
|
|
27788
|
+
}, wL = nv, xL = iv, SL = sv, kL = lv, EL = cv, CL = dv;
|
|
27784
27789
|
function ui({
|
|
27785
27790
|
open: e,
|
|
27786
27791
|
onOpenChange: t,
|
|
27787
27792
|
children: n
|
|
27788
27793
|
}) {
|
|
27789
27794
|
const { modal: r } = ge;
|
|
27790
|
-
return /* @__PURE__ */ ae(
|
|
27795
|
+
return /* @__PURE__ */ ae(wL, { open: e, modal: !1, onOpenChange: t, children: [
|
|
27791
27796
|
e && /* @__PURE__ */ T("div", { ...r == null ? void 0 : r.overlay }),
|
|
27792
27797
|
n
|
|
27793
27798
|
] });
|
|
27794
27799
|
}
|
|
27795
|
-
function
|
|
27800
|
+
function AL({
|
|
27796
27801
|
title: e,
|
|
27797
27802
|
description: t,
|
|
27798
27803
|
onConfirm: n,
|
|
@@ -27802,9 +27807,9 @@ function CL({
|
|
|
27802
27807
|
children: s
|
|
27803
27808
|
}) {
|
|
27804
27809
|
const { modal: a } = ge;
|
|
27805
|
-
return /* @__PURE__ */ T(Mt, { children: /* @__PURE__ */ ae(
|
|
27806
|
-
/* @__PURE__ */ T(
|
|
27807
|
-
/* @__PURE__ */ T(
|
|
27810
|
+
return /* @__PURE__ */ T(Mt, { children: /* @__PURE__ */ ae(SL, { ...a.dialog.container, children: [
|
|
27811
|
+
/* @__PURE__ */ T(kL, { ...a.dialog.title, children: e }),
|
|
27812
|
+
/* @__PURE__ */ T(EL, { ...a.dialog.description, children: t }),
|
|
27808
27813
|
/* @__PURE__ */ T("div", { ...a.dialog.content.container, children: s }),
|
|
27809
27814
|
/* @__PURE__ */ ae("div", { ...a.dialog.button.container, children: [
|
|
27810
27815
|
i && /* @__PURE__ */ T("button", { ...a.dialog.button.confirm, type: "button", onClick: n, children: i }),
|
|
@@ -27812,10 +27817,10 @@ function CL({
|
|
|
27812
27817
|
] })
|
|
27813
27818
|
] }) });
|
|
27814
27819
|
}
|
|
27815
|
-
ui.Button =
|
|
27816
|
-
ui.Close =
|
|
27817
|
-
ui.Content =
|
|
27818
|
-
const
|
|
27820
|
+
ui.Button = xL;
|
|
27821
|
+
ui.Close = CL;
|
|
27822
|
+
ui.Content = AL;
|
|
27823
|
+
const TL = rt(({ children: e, onClick: t, avatarUrl: n, botName: r, description: i, onClose: o, ...s }, a) => {
|
|
27819
27824
|
const { messagePreview: l } = ge, { container: u, closeButton: f, message: c, avatar: h, description: d } = l ?? {};
|
|
27820
27825
|
return /* @__PURE__ */ ae("div", { ...s, ...u, ref: a, onClick: t, children: [
|
|
27821
27826
|
/* @__PURE__ */ T(sr, { src: n, ...h, children: r || "Bot" }),
|
|
@@ -27832,56 +27837,56 @@ const AL = rt(({ children: e, onClick: t, avatarUrl: n, botName: r, description:
|
|
|
27832
27837
|
)
|
|
27833
27838
|
] });
|
|
27834
27839
|
});
|
|
27835
|
-
|
|
27840
|
+
TL.displayName = "MessagePreview";
|
|
27836
27841
|
export {
|
|
27837
27842
|
sr as Avatar,
|
|
27838
27843
|
Tw as BOT_IS_BLOCKED,
|
|
27839
27844
|
dr as Block,
|
|
27840
|
-
|
|
27841
|
-
|
|
27842
|
-
|
|
27845
|
+
FL as CONFIG_ACCESS_DENIED,
|
|
27846
|
+
aP as Chat,
|
|
27847
|
+
SD as Composer,
|
|
27843
27848
|
my as Container,
|
|
27844
27849
|
Hy as ConversationHistory,
|
|
27845
|
-
|
|
27846
|
-
|
|
27847
|
-
|
|
27850
|
+
b2 as ErrorState,
|
|
27851
|
+
UN as Fab,
|
|
27852
|
+
h2 as Header,
|
|
27848
27853
|
Ew as INVALID_API_URL,
|
|
27849
27854
|
Aw as INVALID_BOTPRESS_URL,
|
|
27850
27855
|
Cw as INVALID_CLIENT_ID,
|
|
27851
|
-
|
|
27852
|
-
|
|
27856
|
+
_L as INVALID_CONFIGURATION,
|
|
27857
|
+
LL as INVALID_CONFIG_URL,
|
|
27853
27858
|
Rw as INVALID_MESSAGE_CONTENT_TYPE,
|
|
27854
|
-
|
|
27855
|
-
|
|
27859
|
+
ML as MISSING_API_URL,
|
|
27860
|
+
NL as MISSING_BOT_ID,
|
|
27856
27861
|
kw as MISSING_CLIENT_ID,
|
|
27857
|
-
|
|
27862
|
+
PL as MISSING_CONFIG_URL,
|
|
27858
27863
|
_d as Message,
|
|
27859
27864
|
_m as MessageContext,
|
|
27860
27865
|
Cy as MessageList,
|
|
27861
|
-
|
|
27866
|
+
TL as MessagePreview,
|
|
27862
27867
|
ui as Modal,
|
|
27863
27868
|
Fm as ModalContext,
|
|
27864
|
-
|
|
27869
|
+
CM as ModalProvider,
|
|
27865
27870
|
ws as NETWORK_ERROR,
|
|
27866
27871
|
cp as NOT_A_PARTICIPANT,
|
|
27867
27872
|
Iw as QUOTA_EXCEEDED,
|
|
27868
27873
|
ky as RestartConversationButton,
|
|
27869
|
-
|
|
27874
|
+
k2 as SOUND_EFFECTS,
|
|
27870
27875
|
Ow as SSE_DISCONNECTED_ERROR,
|
|
27871
|
-
|
|
27876
|
+
TM as StylesheetProvider,
|
|
27872
27877
|
Ey as TypingIndicator,
|
|
27873
|
-
|
|
27874
|
-
|
|
27875
|
-
|
|
27876
|
-
|
|
27878
|
+
jL as Webchat,
|
|
27879
|
+
HN as WebchatProvider,
|
|
27880
|
+
zL as _setDebugEnabled,
|
|
27881
|
+
HL as _setTrackFn,
|
|
27877
27882
|
dp as commonApiErrorMap,
|
|
27878
27883
|
Kv as enrichMessage,
|
|
27879
27884
|
xw as fileTypes,
|
|
27880
27885
|
bw as generateThemeOverride,
|
|
27881
27886
|
vw as generateThemeStylesheet,
|
|
27882
|
-
|
|
27883
|
-
|
|
27884
|
-
|
|
27887
|
+
pI as getUseChatSoundStore,
|
|
27888
|
+
uI as getUseWebchatClientStore,
|
|
27889
|
+
NM as integrationMessagePayloadToBlockPayload,
|
|
27885
27890
|
Gr as integrationMessageToBlockMessage,
|
|
27886
27891
|
Mw as isCommonApiErrorType,
|
|
27887
27892
|
Pw as isEventError,
|
|
@@ -27889,15 +27894,15 @@ export {
|
|
|
27889
27894
|
Nw as isIntegrationError,
|
|
27890
27895
|
Dw as isWebhookHandlerErrorType,
|
|
27891
27896
|
Ho as mapToWebchatError,
|
|
27892
|
-
|
|
27897
|
+
tD as renderers,
|
|
27893
27898
|
Lw as retryWithBackoff,
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
|
|
27899
|
+
C2 as useActiveConversation,
|
|
27900
|
+
iP as useConversationList,
|
|
27901
|
+
A2 as useConversations,
|
|
27902
|
+
gI as useMessageContext,
|
|
27898
27903
|
$m as useModalContext,
|
|
27899
|
-
|
|
27900
|
-
|
|
27904
|
+
E2 as useUser,
|
|
27905
|
+
UL as useWebchat,
|
|
27901
27906
|
Cu as useWebchatContext,
|
|
27902
27907
|
ti as useWebchatStore,
|
|
27903
27908
|
ge as webchatClasses,
|