@smarttalks.ai/widget 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +501 -520
- package/lib/index.umd.cjs +16 -16
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -230,7 +230,7 @@ function wa(e, ...t) {
|
|
|
230
230
|
const X = (e) => {
|
|
231
231
|
const t = (n) => n[e] || [];
|
|
232
232
|
return t.isThemeGetter = !0, t;
|
|
233
|
-
}, xi = /^\[(?:([a-z-]+):)?(.+)\]$/i, xa = /^\d+\/\d+$/, Sa = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ca = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _a = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => ht(e) || Sa.has(e) || xa.test(e), qe = (e) =>
|
|
233
|
+
}, xi = /^\[(?:([a-z-]+):)?(.+)\]$/i, xa = /^\d+\/\d+$/, Sa = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ca = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _a = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => ht(e) || Sa.has(e) || xa.test(e), qe = (e) => wt(e, "length", Ra), ht = (e) => !!e && !Number.isNaN(Number(e)), Un = (e) => wt(e, "number", ht), At = (e) => !!e && Number.isInteger(Number(e)), Pa = (e) => e.endsWith("%") && ht(e.slice(0, -1)), N = (e) => xi.test(e), We = (e) => Ea.test(e), Aa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ta = (e) => wt(e, Aa, Si), La = (e) => wt(e, "position", Si), Da = /* @__PURE__ */ new Set(["image", "url"]), Ma = (e) => wt(e, Da, Fa), Ia = (e) => wt(e, "", $a), Tt = () => !0, wt = (e, t, n) => {
|
|
234
234
|
const r = xi.exec(e);
|
|
235
235
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
236
236
|
}, Ra = (e) => (
|
|
@@ -244,7 +244,7 @@ const X = (e) => {
|
|
|
244
244
|
cacheSize: 500,
|
|
245
245
|
separator: ":",
|
|
246
246
|
theme: {
|
|
247
|
-
colors: [
|
|
247
|
+
colors: [Tt],
|
|
248
248
|
spacing: [Ne, qe],
|
|
249
249
|
blur: ["none", "", We, N],
|
|
250
250
|
brightness: Ee(),
|
|
@@ -484,7 +484,7 @@ const X = (e) => {
|
|
|
484
484
|
* @see https://tailwindcss.com/docs/z-index
|
|
485
485
|
*/
|
|
486
486
|
z: [{
|
|
487
|
-
z: ["auto",
|
|
487
|
+
z: ["auto", At, N]
|
|
488
488
|
}],
|
|
489
489
|
// Flexbox and Grid
|
|
490
490
|
/**
|
|
@@ -534,14 +534,14 @@ const X = (e) => {
|
|
|
534
534
|
* @see https://tailwindcss.com/docs/order
|
|
535
535
|
*/
|
|
536
536
|
order: [{
|
|
537
|
-
order: ["first", "last", "none",
|
|
537
|
+
order: ["first", "last", "none", At, N]
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Grid Template Columns
|
|
541
541
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
542
542
|
*/
|
|
543
543
|
"grid-cols": [{
|
|
544
|
-
"grid-cols": [
|
|
544
|
+
"grid-cols": [Tt]
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* Grid Column Start / End
|
|
@@ -549,7 +549,7 @@ const X = (e) => {
|
|
|
549
549
|
*/
|
|
550
550
|
"col-start-end": [{
|
|
551
551
|
col: ["auto", {
|
|
552
|
-
span: ["full",
|
|
552
|
+
span: ["full", At, N]
|
|
553
553
|
}, N]
|
|
554
554
|
}],
|
|
555
555
|
/**
|
|
@@ -571,7 +571,7 @@ const X = (e) => {
|
|
|
571
571
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
572
572
|
*/
|
|
573
573
|
"grid-rows": [{
|
|
574
|
-
"grid-rows": [
|
|
574
|
+
"grid-rows": [Tt]
|
|
575
575
|
}],
|
|
576
576
|
/**
|
|
577
577
|
* Grid Row Start / End
|
|
@@ -579,7 +579,7 @@ const X = (e) => {
|
|
|
579
579
|
*/
|
|
580
580
|
"row-start-end": [{
|
|
581
581
|
row: ["auto", {
|
|
582
|
-
span: [
|
|
582
|
+
span: [At, N]
|
|
583
583
|
}, N]
|
|
584
584
|
}],
|
|
585
585
|
/**
|
|
@@ -927,14 +927,14 @@ const X = (e) => {
|
|
|
927
927
|
* @see https://tailwindcss.com/docs/font-weight
|
|
928
928
|
*/
|
|
929
929
|
"font-weight": [{
|
|
930
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
930
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Un]
|
|
931
931
|
}],
|
|
932
932
|
/**
|
|
933
933
|
* Font Family
|
|
934
934
|
* @see https://tailwindcss.com/docs/font-family
|
|
935
935
|
*/
|
|
936
936
|
"font-family": [{
|
|
937
|
-
font: [
|
|
937
|
+
font: [Tt]
|
|
938
938
|
}],
|
|
939
939
|
/**
|
|
940
940
|
* Font Variant Numeric
|
|
@@ -978,7 +978,7 @@ const X = (e) => {
|
|
|
978
978
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
979
979
|
*/
|
|
980
980
|
"line-clamp": [{
|
|
981
|
-
"line-clamp": ["none", ht,
|
|
981
|
+
"line-clamp": ["none", ht, Un]
|
|
982
982
|
}],
|
|
983
983
|
/**
|
|
984
984
|
* Line Height
|
|
@@ -1619,7 +1619,7 @@ const X = (e) => {
|
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1620
1620
|
*/
|
|
1621
1621
|
"shadow-color": [{
|
|
1622
|
-
shadow: [
|
|
1622
|
+
shadow: [Tt]
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Opacity
|
|
@@ -1898,7 +1898,7 @@ const X = (e) => {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/rotate
|
|
1899
1899
|
*/
|
|
1900
1900
|
rotate: [{
|
|
1901
|
-
rotate: [
|
|
1901
|
+
rotate: [At, N]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Translate X
|
|
@@ -2192,7 +2192,7 @@ const X = (e) => {
|
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2193
2193
|
*/
|
|
2194
2194
|
"stroke-w": [{
|
|
2195
|
-
stroke: [Ne, qe,
|
|
2195
|
+
stroke: [Ne, qe, Un]
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Stroke
|
|
@@ -2280,22 +2280,22 @@ function Ba(e) {
|
|
|
2280
2280
|
throw new Error("could not find root layer");
|
|
2281
2281
|
console.log("loading theme for", e.title), e.style.primary && t.style.setProperty(
|
|
2282
2282
|
"--primary",
|
|
2283
|
-
|
|
2283
|
+
Yt(e.style.primary)
|
|
2284
2284
|
), e.style.primaryForeground && t.style.setProperty(
|
|
2285
2285
|
"--primary-foreground",
|
|
2286
|
-
|
|
2286
|
+
Yt(e.style.primaryForeground)
|
|
2287
2287
|
), e.style.background && t.style.setProperty(
|
|
2288
2288
|
"--background",
|
|
2289
|
-
|
|
2289
|
+
Yt(e.style.background)
|
|
2290
2290
|
), e.style.foreground && t.style.setProperty(
|
|
2291
2291
|
"--foreground",
|
|
2292
|
-
|
|
2292
|
+
Yt(e.style.foreground)
|
|
2293
2293
|
);
|
|
2294
2294
|
} catch (t) {
|
|
2295
2295
|
console.error("failed to load widget theme", t);
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function Yt(e) {
|
|
2299
2299
|
e.length >= 8 && (e = e.substring(0, 7));
|
|
2300
2300
|
let t = 0, n = 0, r = 0;
|
|
2301
2301
|
e.length == 4 ? (t = "0x" + e[1] + e[1], n = "0x" + e[2] + e[2], r = "0x" + e[3] + e[3]) : e.length == 7 && (t = "0x" + e[1] + e[2], n = "0x" + e[3] + e[4], r = "0x" + e[5] + e[6]), t /= 255, n /= 255, r /= 255;
|
|
@@ -2349,7 +2349,7 @@ function gt(e) {
|
|
|
2349
2349
|
let n = "en";
|
|
2350
2350
|
return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), Ua[n][e];
|
|
2351
2351
|
}
|
|
2352
|
-
const
|
|
2352
|
+
const pn = "https://heimdall.smarttalks.ai/api", ja = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
|
|
2353
2353
|
function ee(e, ...t) {
|
|
2354
2354
|
window.postMessage({
|
|
2355
2355
|
from: Ei,
|
|
@@ -2482,7 +2482,7 @@ function Ja(e) {
|
|
|
2482
2482
|
function Za(e) {
|
|
2483
2483
|
return typeof e == "function" && e.toString().indexOf("class") === 0;
|
|
2484
2484
|
}
|
|
2485
|
-
let
|
|
2485
|
+
let jn;
|
|
2486
2486
|
function Qa(e, t) {
|
|
2487
2487
|
const n = Object.keys(t);
|
|
2488
2488
|
return class extends e {
|
|
@@ -2495,15 +2495,15 @@ function Qa(e, t) {
|
|
|
2495
2495
|
connectedCallback() {
|
|
2496
2496
|
if (this.__initialized) return;
|
|
2497
2497
|
this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = Ya(this, t);
|
|
2498
|
-
const o = Ga(this.props), i = this.Component, s =
|
|
2498
|
+
const o = Ga(this.props), i = this.Component, s = jn;
|
|
2499
2499
|
try {
|
|
2500
|
-
|
|
2500
|
+
jn = this, this.__initialized = !0, Za(i) ? new i(o, {
|
|
2501
2501
|
element: this
|
|
2502
2502
|
}) : i(o, {
|
|
2503
2503
|
element: this
|
|
2504
2504
|
});
|
|
2505
2505
|
} finally {
|
|
2506
|
-
|
|
2506
|
+
jn = s;
|
|
2507
2507
|
}
|
|
2508
2508
|
}
|
|
2509
2509
|
async disconnectedCallback() {
|
|
@@ -2566,25 +2566,25 @@ function mo(e) {
|
|
|
2566
2566
|
function tl(e) {
|
|
2567
2567
|
V.context = e;
|
|
2568
2568
|
}
|
|
2569
|
-
const nl = !1, rl = (e, t) => e === t, xe = Symbol("solid-proxy"), Pi = typeof Proxy == "function", cr = Symbol("solid-track"),
|
|
2569
|
+
const nl = !1, rl = (e, t) => e === t, xe = Symbol("solid-proxy"), Pi = typeof Proxy == "function", cr = Symbol("solid-track"), mn = {
|
|
2570
2570
|
equals: rl
|
|
2571
2571
|
};
|
|
2572
2572
|
let Ai = Ii;
|
|
2573
|
-
const He = 1,
|
|
2573
|
+
const He = 1, yn = 2, Ti = {
|
|
2574
2574
|
owned: null,
|
|
2575
2575
|
cleanups: null,
|
|
2576
2576
|
context: null,
|
|
2577
2577
|
owner: null
|
|
2578
|
-
},
|
|
2578
|
+
}, Hn = {};
|
|
2579
2579
|
var H = null;
|
|
2580
|
-
let
|
|
2580
|
+
let qn = null, ol = null, Y = null, le = null, Be = null, An = 0;
|
|
2581
2581
|
function ze(e, t) {
|
|
2582
2582
|
const n = Y, r = H, o = e.length === 0, i = t === void 0 ? r : t, s = o ? Ti : {
|
|
2583
2583
|
owned: null,
|
|
2584
2584
|
cleanups: null,
|
|
2585
2585
|
context: i ? i.context : null,
|
|
2586
2586
|
owner: i
|
|
2587
|
-
}, a = o ? e : () => e(() => q(() =>
|
|
2587
|
+
}, a = o ? e : () => e(() => q(() => Kt(s)));
|
|
2588
2588
|
H = s, Y = null;
|
|
2589
2589
|
try {
|
|
2590
2590
|
return Ve(a, !0);
|
|
@@ -2593,7 +2593,7 @@ function ze(e, t) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
2595
|
function P(e, t) {
|
|
2596
|
-
t = t ? Object.assign({},
|
|
2596
|
+
t = t ? Object.assign({}, mn, t) : mn;
|
|
2597
2597
|
const n = {
|
|
2598
2598
|
value: e,
|
|
2599
2599
|
observers: null,
|
|
@@ -2603,22 +2603,22 @@ function P(e, t) {
|
|
|
2603
2603
|
return [Di.bind(n), r];
|
|
2604
2604
|
}
|
|
2605
2605
|
function Li(e, t, n) {
|
|
2606
|
-
const r =
|
|
2607
|
-
|
|
2606
|
+
const r = Ln(e, t, !0, He);
|
|
2607
|
+
xt(r);
|
|
2608
2608
|
}
|
|
2609
2609
|
function oe(e, t, n) {
|
|
2610
|
-
const r =
|
|
2611
|
-
|
|
2610
|
+
const r = Ln(e, t, !1, He);
|
|
2611
|
+
xt(r);
|
|
2612
2612
|
}
|
|
2613
2613
|
function L(e, t, n) {
|
|
2614
2614
|
Ai = dl;
|
|
2615
|
-
const r =
|
|
2616
|
-
(!n || !n.render) && (r.user = !0), Be ? Be.push(r) :
|
|
2615
|
+
const r = Ln(e, t, !1, He);
|
|
2616
|
+
(!n || !n.render) && (r.user = !0), Be ? Be.push(r) : xt(r);
|
|
2617
2617
|
}
|
|
2618
2618
|
function C(e, t, n) {
|
|
2619
|
-
n = n ? Object.assign({},
|
|
2620
|
-
const r =
|
|
2621
|
-
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0,
|
|
2619
|
+
n = n ? Object.assign({}, mn, n) : mn;
|
|
2620
|
+
const r = Ln(e, t, !0, 0);
|
|
2621
|
+
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, xt(r), Di.bind(r);
|
|
2622
2622
|
}
|
|
2623
2623
|
function il(e) {
|
|
2624
2624
|
return e && typeof e == "object" && "then" in e;
|
|
@@ -2626,7 +2626,7 @@ function il(e) {
|
|
|
2626
2626
|
function sl(e, t, n) {
|
|
2627
2627
|
let r, o, i;
|
|
2628
2628
|
typeof t == "function" ? (r = e, o = t, i = {}) : (r = !0, o = e, i = t || {});
|
|
2629
|
-
let s = null, a =
|
|
2629
|
+
let s = null, a = Hn, l = null, c = !1, d = "initialValue" in i, u = typeof r == "function" && C(r);
|
|
2630
2630
|
const h = /* @__PURE__ */ new Set(), [m, f] = (i.storage || P)(i.initialValue), [g, p] = P(void 0), [b, v] = P(void 0, {
|
|
2631
2631
|
equals: !1
|
|
2632
2632
|
}), [w, x] = P(d ? "ready" : "unresolved");
|
|
@@ -2636,7 +2636,7 @@ function sl(e, t, n) {
|
|
|
2636
2636
|
() => i.onHydrated(M, {
|
|
2637
2637
|
value: R
|
|
2638
2638
|
})
|
|
2639
|
-
), a =
|
|
2639
|
+
), a = Hn, k(R, D)), R;
|
|
2640
2640
|
}
|
|
2641
2641
|
function k(_, R) {
|
|
2642
2642
|
Ve(() => {
|
|
@@ -2658,7 +2658,7 @@ function sl(e, t, n) {
|
|
|
2658
2658
|
O(s, q(m));
|
|
2659
2659
|
return;
|
|
2660
2660
|
}
|
|
2661
|
-
const D = a !==
|
|
2661
|
+
const D = a !== Hn ? a : q(
|
|
2662
2662
|
() => o(R, {
|
|
2663
2663
|
value: m(),
|
|
2664
2664
|
refetching: _
|
|
@@ -2728,7 +2728,7 @@ function tt(e, t, n) {
|
|
|
2728
2728
|
return o = a, l;
|
|
2729
2729
|
};
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function Tn(e) {
|
|
2732
2732
|
L(() => q(e));
|
|
2733
2733
|
}
|
|
2734
2734
|
function K(e) {
|
|
@@ -2773,10 +2773,10 @@ function Nr(e) {
|
|
|
2773
2773
|
let ll;
|
|
2774
2774
|
function Di() {
|
|
2775
2775
|
if (this.sources && this.state)
|
|
2776
|
-
if (this.state === He)
|
|
2776
|
+
if (this.state === He) xt(this);
|
|
2777
2777
|
else {
|
|
2778
2778
|
const e = le;
|
|
2779
|
-
le = null, Ve(() =>
|
|
2779
|
+
le = null, Ve(() => vn(this), !1), le = e;
|
|
2780
2780
|
}
|
|
2781
2781
|
if (Y) {
|
|
2782
2782
|
const e = this.observers ? this.observers.length : 0;
|
|
@@ -2788,17 +2788,17 @@ function Mi(e, t, n) {
|
|
|
2788
2788
|
let r = e.value;
|
|
2789
2789
|
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Ve(() => {
|
|
2790
2790
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
2791
|
-
const i = e.observers[o], s =
|
|
2792
|
-
s &&
|
|
2791
|
+
const i = e.observers[o], s = qn && qn.running;
|
|
2792
|
+
s && qn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? le.push(i) : Be.push(i), i.observers && Ri(i)), s || (i.state = He);
|
|
2793
2793
|
}
|
|
2794
2794
|
if (le.length > 1e6)
|
|
2795
2795
|
throw le = [], new Error();
|
|
2796
2796
|
}, !1)), t;
|
|
2797
2797
|
}
|
|
2798
|
-
function
|
|
2798
|
+
function xt(e) {
|
|
2799
2799
|
if (!e.fn) return;
|
|
2800
|
-
|
|
2801
|
-
const t =
|
|
2800
|
+
Kt(e);
|
|
2801
|
+
const t = An;
|
|
2802
2802
|
cl(
|
|
2803
2803
|
e,
|
|
2804
2804
|
e.value,
|
|
@@ -2812,13 +2812,13 @@ function cl(e, t, n) {
|
|
|
2812
2812
|
try {
|
|
2813
2813
|
r = e.fn(t);
|
|
2814
2814
|
} catch (s) {
|
|
2815
|
-
return e.pure && (e.state = He, e.owned && e.owned.forEach(
|
|
2815
|
+
return e.pure && (e.state = He, e.owned && e.owned.forEach(Kt), e.owned = null), e.updatedAt = n + 1, Kr(s);
|
|
2816
2816
|
} finally {
|
|
2817
2817
|
Y = i, H = o;
|
|
2818
2818
|
}
|
|
2819
2819
|
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Mi(e, r) : e.value = r, e.updatedAt = n);
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function Ln(e, t, n, r = He, o) {
|
|
2822
2822
|
const i = {
|
|
2823
2823
|
fn: e,
|
|
2824
2824
|
state: r,
|
|
@@ -2834,25 +2834,25 @@ function Dn(e, t, n, r = He, o) {
|
|
|
2834
2834
|
};
|
|
2835
2835
|
return H === null || H !== Ti && (H.owned ? H.owned.push(i) : H.owned = [i]), i;
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function bn(e) {
|
|
2838
2838
|
if (e.state === 0) return;
|
|
2839
|
-
if (e.state ===
|
|
2839
|
+
if (e.state === yn) return vn(e);
|
|
2840
2840
|
if (e.suspense && q(e.suspense.inFallback)) return e.suspense.effects.push(e);
|
|
2841
2841
|
const t = [e];
|
|
2842
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
|
2842
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < An); )
|
|
2843
2843
|
e.state && t.push(e);
|
|
2844
2844
|
for (let n = t.length - 1; n >= 0; n--)
|
|
2845
2845
|
if (e = t[n], e.state === He)
|
|
2846
|
-
|
|
2847
|
-
else if (e.state ===
|
|
2846
|
+
xt(e);
|
|
2847
|
+
else if (e.state === yn) {
|
|
2848
2848
|
const r = le;
|
|
2849
|
-
le = null, Ve(() =>
|
|
2849
|
+
le = null, Ve(() => vn(e, t[0]), !1), le = r;
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
2852
|
function Ve(e, t) {
|
|
2853
2853
|
if (le) return e();
|
|
2854
2854
|
let n = !1;
|
|
2855
|
-
t || (le = []), Be ? n = !0 : Be = [],
|
|
2855
|
+
t || (le = []), Be ? n = !0 : Be = [], An++;
|
|
2856
2856
|
try {
|
|
2857
2857
|
const r = e();
|
|
2858
2858
|
return ul(n), r;
|
|
@@ -2866,13 +2866,13 @@ function ul(e) {
|
|
|
2866
2866
|
Be = null, t.length && Ve(() => Ai(t), !1);
|
|
2867
2867
|
}
|
|
2868
2868
|
function Ii(e) {
|
|
2869
|
-
for (let t = 0; t < e.length; t++)
|
|
2869
|
+
for (let t = 0; t < e.length; t++) bn(e[t]);
|
|
2870
2870
|
}
|
|
2871
2871
|
function dl(e) {
|
|
2872
2872
|
let t, n = 0;
|
|
2873
2873
|
for (t = 0; t < e.length; t++) {
|
|
2874
2874
|
const r = e[t];
|
|
2875
|
-
r.user ? e[n++] = r :
|
|
2875
|
+
r.user ? e[n++] = r : bn(r);
|
|
2876
2876
|
}
|
|
2877
2877
|
if (V.context) {
|
|
2878
2878
|
if (V.count) {
|
|
@@ -2881,25 +2881,25 @@ function dl(e) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
tl();
|
|
2883
2883
|
}
|
|
2884
|
-
for (V.effects && (V.done || !V.count) && (e = [...V.effects, ...e], n += V.effects.length, delete V.effects), t = 0; t < n; t++)
|
|
2884
|
+
for (V.effects && (V.done || !V.count) && (e = [...V.effects, ...e], n += V.effects.length, delete V.effects), t = 0; t < n; t++) bn(e[t]);
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2886
|
+
function vn(e, t) {
|
|
2887
2887
|
e.state = 0;
|
|
2888
2888
|
for (let n = 0; n < e.sources.length; n += 1) {
|
|
2889
2889
|
const r = e.sources[n];
|
|
2890
2890
|
if (r.sources) {
|
|
2891
2891
|
const o = r.state;
|
|
2892
|
-
o === He ? r !== t && (!r.updatedAt || r.updatedAt <
|
|
2892
|
+
o === He ? r !== t && (!r.updatedAt || r.updatedAt < An) && bn(r) : o === yn && vn(r, t);
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
2896
|
function Ri(e) {
|
|
2897
2897
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2898
2898
|
const n = e.observers[t];
|
|
2899
|
-
n.state || (n.state =
|
|
2899
|
+
n.state || (n.state = yn, n.pure ? le.push(n) : Be.push(n), n.observers && Ri(n));
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function Kt(e) {
|
|
2903
2903
|
let t;
|
|
2904
2904
|
if (e.sources)
|
|
2905
2905
|
for (; e.sources.length; ) {
|
|
@@ -2910,11 +2910,11 @@ function Bt(e) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
2912
|
if (e.tOwned) {
|
|
2913
|
-
for (t = e.tOwned.length - 1; t >= 0; t--)
|
|
2913
|
+
for (t = e.tOwned.length - 1; t >= 0; t--) Kt(e.tOwned[t]);
|
|
2914
2914
|
delete e.tOwned;
|
|
2915
2915
|
}
|
|
2916
2916
|
if (e.owned) {
|
|
2917
|
-
for (t = e.owned.length - 1; t >= 0; t--)
|
|
2917
|
+
for (t = e.owned.length - 1; t >= 0; t--) Kt(e.owned[t]);
|
|
2918
2918
|
e.owned = null;
|
|
2919
2919
|
}
|
|
2920
2920
|
if (e.cleanups) {
|
|
@@ -2997,7 +2997,7 @@ function gl(e, t, n = {}) {
|
|
|
2997
2997
|
function y(e, t) {
|
|
2998
2998
|
return q(() => e(t || {}));
|
|
2999
2999
|
}
|
|
3000
|
-
function
|
|
3000
|
+
function Xt() {
|
|
3001
3001
|
return !0;
|
|
3002
3002
|
}
|
|
3003
3003
|
const hr = {
|
|
@@ -3007,8 +3007,8 @@ const hr = {
|
|
|
3007
3007
|
has(e, t) {
|
|
3008
3008
|
return t === xe ? !0 : e.has(t);
|
|
3009
3009
|
},
|
|
3010
|
-
set:
|
|
3011
|
-
deleteProperty:
|
|
3010
|
+
set: Xt,
|
|
3011
|
+
deleteProperty: Xt,
|
|
3012
3012
|
getOwnPropertyDescriptor(e, t) {
|
|
3013
3013
|
return {
|
|
3014
3014
|
configurable: !0,
|
|
@@ -3016,15 +3016,15 @@ const hr = {
|
|
|
3016
3016
|
get() {
|
|
3017
3017
|
return e.get(t);
|
|
3018
3018
|
},
|
|
3019
|
-
set:
|
|
3020
|
-
deleteProperty:
|
|
3019
|
+
set: Xt,
|
|
3020
|
+
deleteProperty: Xt
|
|
3021
3021
|
};
|
|
3022
3022
|
},
|
|
3023
3023
|
ownKeys(e) {
|
|
3024
3024
|
return e.keys();
|
|
3025
3025
|
}
|
|
3026
3026
|
};
|
|
3027
|
-
function
|
|
3027
|
+
function Wn(e) {
|
|
3028
3028
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
3029
3029
|
}
|
|
3030
3030
|
function pl() {
|
|
@@ -3044,19 +3044,19 @@ function T(...e) {
|
|
|
3044
3044
|
{
|
|
3045
3045
|
get(s) {
|
|
3046
3046
|
for (let a = e.length - 1; a >= 0; a--) {
|
|
3047
|
-
const l =
|
|
3047
|
+
const l = Wn(e[a])[s];
|
|
3048
3048
|
if (l !== void 0) return l;
|
|
3049
3049
|
}
|
|
3050
3050
|
},
|
|
3051
3051
|
has(s) {
|
|
3052
3052
|
for (let a = e.length - 1; a >= 0; a--)
|
|
3053
|
-
if (s in
|
|
3053
|
+
if (s in Wn(e[a])) return !0;
|
|
3054
3054
|
return !1;
|
|
3055
3055
|
},
|
|
3056
3056
|
keys() {
|
|
3057
3057
|
const s = [];
|
|
3058
3058
|
for (let a = 0; a < e.length; a++)
|
|
3059
|
-
s.push(...Object.keys(
|
|
3059
|
+
s.push(...Object.keys(Wn(e[a])));
|
|
3060
3060
|
return [...new Set(s)];
|
|
3061
3061
|
}
|
|
3062
3062
|
},
|
|
@@ -3138,7 +3138,7 @@ function Te() {
|
|
|
3138
3138
|
return V.context ? V.getNextContextId() : `cl-${ml++}`;
|
|
3139
3139
|
}
|
|
3140
3140
|
const $i = (e) => `Stale read from <${e}>.`;
|
|
3141
|
-
function
|
|
3141
|
+
function yt(e) {
|
|
3142
3142
|
const t = "fallback" in e && {
|
|
3143
3143
|
fallback: () => e.fallback
|
|
3144
3144
|
};
|
|
@@ -3203,7 +3203,7 @@ function Fi(e) {
|
|
|
3203
3203
|
void 0
|
|
3204
3204
|
);
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function Nt(e) {
|
|
3207
3207
|
return e;
|
|
3208
3208
|
}
|
|
3209
3209
|
const yl = [
|
|
@@ -3447,7 +3447,7 @@ function Pl(e, t, n, r) {
|
|
|
3447
3447
|
function Al(e, t, n) {
|
|
3448
3448
|
st(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function bt(e, t) {
|
|
3451
3451
|
st(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
|
3452
3452
|
}
|
|
3453
3453
|
function Tl(e, t, n, r) {
|
|
@@ -3471,7 +3471,7 @@ function Ll(e, t, n = {}) {
|
|
|
3471
3471
|
}
|
|
3472
3472
|
return n;
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3474
|
+
function Dn(e, t, n) {
|
|
3475
3475
|
if (!t) return n ? de(e, "style") : t;
|
|
3476
3476
|
const r = e.style;
|
|
3477
3477
|
if (typeof t == "string") return r.cssText = t;
|
|
@@ -3486,15 +3486,15 @@ function Mn(e, t, n) {
|
|
|
3486
3486
|
function it(e, t = {}, n, r) {
|
|
3487
3487
|
const o = {};
|
|
3488
3488
|
return r || oe(
|
|
3489
|
-
() => o.children =
|
|
3489
|
+
() => o.children = Bt(e, t.children, o.children)
|
|
3490
3490
|
), oe(() => typeof t.ref == "function" && Br(t.ref, e)), oe(() => Dl(e, t, n, !0, o, !0)), o;
|
|
3491
3491
|
}
|
|
3492
3492
|
function Br(e, t, n) {
|
|
3493
3493
|
return q(() => e(t, n));
|
|
3494
3494
|
}
|
|
3495
3495
|
function A(e, t, n, r) {
|
|
3496
|
-
if (n !== void 0 && !r && (r = []), typeof t != "function") return
|
|
3497
|
-
oe((o) =>
|
|
3496
|
+
if (n !== void 0 && !r && (r = []), typeof t != "function") return Bt(e, t, r, n);
|
|
3497
|
+
oe((o) => Bt(e, t(), o, n), r);
|
|
3498
3498
|
}
|
|
3499
3499
|
function Dl(e, t, n, r, o = {}, i = !1) {
|
|
3500
3500
|
t || (t = {});
|
|
@@ -3527,7 +3527,7 @@ function wo(e, t, n) {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
function xo(e, t, n, r, o, i, s) {
|
|
3529
3529
|
let a, l, c, d, u;
|
|
3530
|
-
if (t === "style") return
|
|
3530
|
+
if (t === "style") return Dn(e, n, r);
|
|
3531
3531
|
if (t === "classList") return Ll(e, n, r);
|
|
3532
3532
|
if (n === r) return r;
|
|
3533
3533
|
if (t === "ref")
|
|
@@ -3553,7 +3553,7 @@ function xo(e, t, n, r, o, i, s) {
|
|
|
3553
3553
|
if (u)
|
|
3554
3554
|
t = t.slice(5), l = !0;
|
|
3555
3555
|
else if (st(e)) return n;
|
|
3556
|
-
t === "class" || t === "className" ?
|
|
3556
|
+
t === "class" || t === "className" ? bt(e, n) : a && !l && !c ? e[Il(t)] = n : e[d || t] = n;
|
|
3557
3557
|
} else {
|
|
3558
3558
|
const h = o && t.indexOf(":") > -1 && Cl[t.split(":")[0]];
|
|
3559
3559
|
h ? Pl(e, h, t, n) : de(e, wl[t] || t, n);
|
|
@@ -3596,7 +3596,7 @@ function Rl(e) {
|
|
|
3596
3596
|
} else a();
|
|
3597
3597
|
i(r);
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function Bt(e, t, n, r, o) {
|
|
3600
3600
|
const i = st(e);
|
|
3601
3601
|
if (i) {
|
|
3602
3602
|
!n && (n = [...e.childNodes]);
|
|
@@ -3626,12 +3626,12 @@ function zt(e, t, n, r, o) {
|
|
|
3626
3626
|
return oe(() => {
|
|
3627
3627
|
let l = t();
|
|
3628
3628
|
for (; typeof l == "function"; ) l = l();
|
|
3629
|
-
n =
|
|
3629
|
+
n = Bt(e, l, n, r);
|
|
3630
3630
|
}), () => n;
|
|
3631
3631
|
if (Array.isArray(t)) {
|
|
3632
3632
|
const l = [], c = n && Array.isArray(n);
|
|
3633
3633
|
if (gr(l, t, n, o))
|
|
3634
|
-
return oe(() => n =
|
|
3634
|
+
return oe(() => n = Bt(e, l, n, r, !0)), () => n;
|
|
3635
3635
|
if (i) {
|
|
3636
3636
|
if (!l.length) return n;
|
|
3637
3637
|
if (r === void 0) return n = [...e.childNodes];
|
|
@@ -3747,7 +3747,7 @@ function Kl(e, t) {
|
|
|
3747
3747
|
}
|
|
3748
3748
|
});
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3750
|
+
function cn(e) {
|
|
3751
3751
|
const [, t] = j(e, ["component"]);
|
|
3752
3752
|
return Kl(() => e.component, t);
|
|
3753
3753
|
}
|
|
@@ -3819,33 +3819,33 @@ function Hi(e) {
|
|
|
3819
3819
|
}
|
|
3820
3820
|
return t;
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3822
|
+
function wn(e) {
|
|
3823
3823
|
let t;
|
|
3824
3824
|
return e != null && typeof e == "object" && (e[xe] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function zt(e, t = /* @__PURE__ */ new Set()) {
|
|
3827
3827
|
let n, r, o, i;
|
|
3828
3828
|
if (n = e != null && e[pr]) return n;
|
|
3829
|
-
if (!
|
|
3829
|
+
if (!wn(e) || t.has(e)) return e;
|
|
3830
3830
|
if (Array.isArray(e)) {
|
|
3831
3831
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
3832
3832
|
for (let s = 0, a = e.length; s < a; s++)
|
|
3833
|
-
o = e[s], (r =
|
|
3833
|
+
o = e[s], (r = zt(o, t)) !== o && (e[s] = r);
|
|
3834
3834
|
} else {
|
|
3835
3835
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
3836
3836
|
const s = Object.keys(e), a = Object.getOwnPropertyDescriptors(e);
|
|
3837
3837
|
for (let l = 0, c = s.length; l < c; l++)
|
|
3838
|
-
i = s[l], !a[i].get && (o = e[i], (r =
|
|
3838
|
+
i = s[l], !a[i].get && (o = e[i], (r = zt(o, t)) !== o && (e[i] = r));
|
|
3839
3839
|
}
|
|
3840
3840
|
return e;
|
|
3841
3841
|
}
|
|
3842
|
-
function
|
|
3842
|
+
function xn(e, t) {
|
|
3843
3843
|
let n = e[t];
|
|
3844
3844
|
return n || Object.defineProperty(e, t, {
|
|
3845
3845
|
value: n = /* @__PURE__ */ Object.create(null)
|
|
3846
3846
|
}), n;
|
|
3847
3847
|
}
|
|
3848
|
-
function
|
|
3848
|
+
function Vt(e, t, n) {
|
|
3849
3849
|
if (e[t]) return e[t];
|
|
3850
3850
|
const [r, o] = P(n, {
|
|
3851
3851
|
equals: !1,
|
|
@@ -3858,7 +3858,7 @@ function Yl(e, t) {
|
|
|
3858
3858
|
return !n || n.get || !n.configurable || t === xe || t === pt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
|
|
3859
3859
|
}
|
|
3860
3860
|
function qi(e) {
|
|
3861
|
-
ur() &&
|
|
3861
|
+
ur() && Vt(xn(e, pt), ji)();
|
|
3862
3862
|
}
|
|
3863
3863
|
function Xl(e) {
|
|
3864
3864
|
return qi(e), Reflect.ownKeys(e);
|
|
@@ -3869,17 +3869,17 @@ const Jl = {
|
|
|
3869
3869
|
if (t === xe) return n;
|
|
3870
3870
|
if (t === cr)
|
|
3871
3871
|
return qi(e), n;
|
|
3872
|
-
const r =
|
|
3872
|
+
const r = xn(e, pt), o = r[t];
|
|
3873
3873
|
let i = o ? o() : e[t];
|
|
3874
3874
|
if (t === pt || t === Ke || t === "__proto__") return i;
|
|
3875
3875
|
if (!o) {
|
|
3876
3876
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
3877
|
-
ur() && (typeof i != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (i =
|
|
3877
|
+
ur() && (typeof i != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (i = Vt(r, t, i)());
|
|
3878
3878
|
}
|
|
3879
|
-
return
|
|
3879
|
+
return wn(i) ? Hi(i) : i;
|
|
3880
3880
|
},
|
|
3881
3881
|
has(e, t) {
|
|
3882
|
-
return t === pr || t === xe || t === cr || t === pt || t === Ke || t === "__proto__" ? !0 : (ur() &&
|
|
3882
|
+
return t === pr || t === xe || t === cr || t === pt || t === Ke || t === "__proto__" ? !0 : (ur() && Vt(xn(e, Ke), t)(), t in e);
|
|
3883
3883
|
},
|
|
3884
3884
|
set() {
|
|
3885
3885
|
return !0;
|
|
@@ -3890,14 +3890,14 @@ const Jl = {
|
|
|
3890
3890
|
ownKeys: Xl,
|
|
3891
3891
|
getOwnPropertyDescriptor: Yl
|
|
3892
3892
|
};
|
|
3893
|
-
function
|
|
3893
|
+
function Sn(e, t, n, r = !1) {
|
|
3894
3894
|
if (!r && e[t] === n) return;
|
|
3895
3895
|
const o = e[t], i = e.length;
|
|
3896
3896
|
n === void 0 ? (delete e[t], e[Ke] && e[Ke][t] && o !== void 0 && e[Ke][t].$()) : (e[t] = n, e[Ke] && e[Ke][t] && o === void 0 && e[Ke][t].$());
|
|
3897
|
-
let s =
|
|
3898
|
-
if ((a =
|
|
3897
|
+
let s = xn(e, pt), a;
|
|
3898
|
+
if ((a = Vt(s, t, o)) && a.$(() => n), Array.isArray(e) && e.length !== i) {
|
|
3899
3899
|
for (let l = e.length; l < i; l++) (a = s[l]) && a.$();
|
|
3900
|
-
(a =
|
|
3900
|
+
(a = Vt(s, "length", i)) && a.$(e.length);
|
|
3901
3901
|
}
|
|
3902
3902
|
(a = s[ji]) && a.$();
|
|
3903
3903
|
}
|
|
@@ -3905,52 +3905,52 @@ function Wi(e, t) {
|
|
|
3905
3905
|
const n = Object.keys(t);
|
|
3906
3906
|
for (let r = 0; r < n.length; r += 1) {
|
|
3907
3907
|
const o = n[r];
|
|
3908
|
-
|
|
3908
|
+
Sn(e, o, t[o]);
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
3911
|
function Zl(e, t) {
|
|
3912
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
3912
|
+
if (typeof t == "function" && (t = t(e)), t = zt(t), Array.isArray(t)) {
|
|
3913
3913
|
if (e === t) return;
|
|
3914
3914
|
let n = 0, r = t.length;
|
|
3915
3915
|
for (; n < r; n++) {
|
|
3916
3916
|
const o = t[n];
|
|
3917
|
-
e[n] !== o &&
|
|
3917
|
+
e[n] !== o && Sn(e, n, o);
|
|
3918
3918
|
}
|
|
3919
|
-
|
|
3919
|
+
Sn(e, "length", r);
|
|
3920
3920
|
} else Wi(e, t);
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function It(e, t, n = []) {
|
|
3923
3923
|
let r, o = e;
|
|
3924
3924
|
if (t.length > 1) {
|
|
3925
3925
|
r = t.shift();
|
|
3926
3926
|
const s = typeof r, a = Array.isArray(e);
|
|
3927
3927
|
if (Array.isArray(r)) {
|
|
3928
3928
|
for (let l = 0; l < r.length; l++)
|
|
3929
|
-
|
|
3929
|
+
It(e, [r[l]].concat(t), n);
|
|
3930
3930
|
return;
|
|
3931
3931
|
} else if (a && s === "function") {
|
|
3932
3932
|
for (let l = 0; l < e.length; l++)
|
|
3933
|
-
r(e[l], l) &&
|
|
3933
|
+
r(e[l], l) && It(e, [l].concat(t), n);
|
|
3934
3934
|
return;
|
|
3935
3935
|
} else if (a && s === "object") {
|
|
3936
3936
|
const { from: l = 0, to: c = e.length - 1, by: d = 1 } = r;
|
|
3937
3937
|
for (let u = l; u <= c; u += d)
|
|
3938
|
-
|
|
3938
|
+
It(e, [u].concat(t), n);
|
|
3939
3939
|
return;
|
|
3940
3940
|
} else if (t.length > 1) {
|
|
3941
|
-
|
|
3941
|
+
It(e[r], t, [r].concat(n));
|
|
3942
3942
|
return;
|
|
3943
3943
|
}
|
|
3944
3944
|
o = e[r], n = [r].concat(n);
|
|
3945
3945
|
}
|
|
3946
3946
|
let i = t[0];
|
|
3947
|
-
typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i =
|
|
3947
|
+
typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = zt(i), r === void 0 || wn(o) && wn(i) && !Array.isArray(i) ? Wi(o, i) : Sn(e, r, i));
|
|
3948
3948
|
}
|
|
3949
3949
|
function Ql(...[e, t]) {
|
|
3950
|
-
const n =
|
|
3950
|
+
const n = zt(e || {}), r = Array.isArray(n), o = Hi(n);
|
|
3951
3951
|
function i(...s) {
|
|
3952
3952
|
Oe(() => {
|
|
3953
|
-
r && s.length === 1 ? Zl(n, s[0]) :
|
|
3953
|
+
r && s.length === 1 ? Zl(n, s[0]) : It(n, s);
|
|
3954
3954
|
});
|
|
3955
3955
|
}
|
|
3956
3956
|
return [o, i];
|
|
@@ -3971,7 +3971,7 @@ function ec(e, t, n) {
|
|
|
3971
3971
|
return L(() => ki(e, JSON.stringify(o()), n)), [o, i];
|
|
3972
3972
|
});
|
|
3973
3973
|
}
|
|
3974
|
-
const [
|
|
3974
|
+
const [pm, mm] = ec("lang", "en");
|
|
3975
3975
|
function tc(e) {
|
|
3976
3976
|
return {
|
|
3977
3977
|
type: "chat",
|
|
@@ -4031,7 +4031,7 @@ const rc = async (e) => {
|
|
|
4031
4031
|
const t = e.split("?"), n = t[0], r = t[1]?.split("&") ?? [];
|
|
4032
4032
|
if (!n) return;
|
|
4033
4033
|
console.info("fetching widget:", n);
|
|
4034
|
-
const o = `${
|
|
4034
|
+
const o = `${pn}/v1/widget/${n}`, { result: i } = await (await fetch(o, {
|
|
4035
4035
|
credentials: "include"
|
|
4036
4036
|
})).json();
|
|
4037
4037
|
if (i.type === "flow")
|
|
@@ -4049,7 +4049,7 @@ const rc = async (e) => {
|
|
|
4049
4049
|
return se(
|
|
4050
4050
|
"registerContactData",
|
|
4051
4051
|
(s) => {
|
|
4052
|
-
s && Object.keys(s).length && fetch(`${
|
|
4052
|
+
s && Object.keys(s).length && fetch(`${pn}/v1/contact-data/${n}`, {
|
|
4053
4053
|
credentials: "include",
|
|
4054
4054
|
method: "POST",
|
|
4055
4055
|
headers: {
|
|
@@ -4262,7 +4262,7 @@ function Sc(e, t, n, r) {
|
|
|
4262
4262
|
};
|
|
4263
4263
|
typeof e == "function" ? L(o) : oe(o);
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4265
|
+
function Jt() {
|
|
4266
4266
|
return !0;
|
|
4267
4267
|
}
|
|
4268
4268
|
const Ec = {
|
|
@@ -4272,8 +4272,8 @@ const Ec = {
|
|
|
4272
4272
|
has(e, t) {
|
|
4273
4273
|
return e.has(t);
|
|
4274
4274
|
},
|
|
4275
|
-
set:
|
|
4276
|
-
deleteProperty:
|
|
4275
|
+
set: Jt,
|
|
4276
|
+
deleteProperty: Jt,
|
|
4277
4277
|
getOwnPropertyDescriptor(e, t) {
|
|
4278
4278
|
return {
|
|
4279
4279
|
configurable: !0,
|
|
@@ -4281,8 +4281,8 @@ const Ec = {
|
|
|
4281
4281
|
get() {
|
|
4282
4282
|
return e.get(t);
|
|
4283
4283
|
},
|
|
4284
|
-
set:
|
|
4285
|
-
deleteProperty:
|
|
4284
|
+
set: Jt,
|
|
4285
|
+
deleteProperty: Jt
|
|
4286
4286
|
};
|
|
4287
4287
|
},
|
|
4288
4288
|
ownKeys(e) {
|
|
@@ -4304,7 +4304,7 @@ function Cc(e, t) {
|
|
|
4304
4304
|
} else typeof t == "string" && (t = Oo(t));
|
|
4305
4305
|
return { ...e, ...t };
|
|
4306
4306
|
}
|
|
4307
|
-
const
|
|
4307
|
+
const Gn = (e, t, n) => {
|
|
4308
4308
|
let r;
|
|
4309
4309
|
for (const o of e) {
|
|
4310
4310
|
const i = S(o)[t];
|
|
@@ -4334,7 +4334,7 @@ function Oc(...e) {
|
|
|
4334
4334
|
if (typeof s != "string")
|
|
4335
4335
|
return Reflect.get(i, s);
|
|
4336
4336
|
if (s === "style")
|
|
4337
|
-
return
|
|
4337
|
+
return Gn(n, "style", Cc);
|
|
4338
4338
|
if (s === "ref") {
|
|
4339
4339
|
const a = [];
|
|
4340
4340
|
for (const l of n) {
|
|
@@ -4347,7 +4347,7 @@ function Oc(...e) {
|
|
|
4347
4347
|
const a = o[s.toLowerCase()];
|
|
4348
4348
|
return a ? r(a) : Reflect.get(i, s);
|
|
4349
4349
|
}
|
|
4350
|
-
return s === "class" || s === "className" ?
|
|
4350
|
+
return s === "class" || s === "className" ? Gn(n, s, (a, l) => `${a} ${l}`) : s === "classList" ? Gn(n, s, (a, l) => ({ ...a, ...l })) : Reflect.get(i, s);
|
|
4351
4351
|
},
|
|
4352
4352
|
has(s) {
|
|
4353
4353
|
return Reflect.has(i, s);
|
|
@@ -4385,12 +4385,12 @@ function Zi(e) {
|
|
|
4385
4385
|
function Ae(e, t) {
|
|
4386
4386
|
return e ? e === t || e.contains(t) : !1;
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function Rt(e, t = !1) {
|
|
4389
4389
|
const { activeElement: n } = Ue(e);
|
|
4390
4390
|
if (!n?.nodeName)
|
|
4391
4391
|
return null;
|
|
4392
4392
|
if (Qi(n) && n.contentDocument)
|
|
4393
|
-
return
|
|
4393
|
+
return Rt(
|
|
4394
4394
|
n.contentDocument.body,
|
|
4395
4395
|
t
|
|
4396
4396
|
);
|
|
@@ -4417,7 +4417,7 @@ function Vr(e) {
|
|
|
4417
4417
|
window.navigator.userAgentData?.platform || window.navigator.platform
|
|
4418
4418
|
) : !1;
|
|
4419
4419
|
}
|
|
4420
|
-
function
|
|
4420
|
+
function Mn() {
|
|
4421
4421
|
return Vr(/^Mac/i);
|
|
4422
4422
|
}
|
|
4423
4423
|
function Lc() {
|
|
@@ -4425,13 +4425,13 @@ function Lc() {
|
|
|
4425
4425
|
}
|
|
4426
4426
|
function Dc() {
|
|
4427
4427
|
return Vr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4428
|
-
|
|
4428
|
+
Mn() && navigator.maxTouchPoints > 1;
|
|
4429
4429
|
}
|
|
4430
4430
|
function Mc() {
|
|
4431
4431
|
return Lc() || Dc();
|
|
4432
4432
|
}
|
|
4433
4433
|
function Ic() {
|
|
4434
|
-
return
|
|
4434
|
+
return Mn() || Mc();
|
|
4435
4435
|
}
|
|
4436
4436
|
function pe(e, t) {
|
|
4437
4437
|
return t && (Tc(t) ? t(e) : t[0](t[1], e)), e?.defaultPrevented;
|
|
@@ -4443,7 +4443,7 @@ function ve(e) {
|
|
|
4443
4443
|
};
|
|
4444
4444
|
}
|
|
4445
4445
|
function Rc(e) {
|
|
4446
|
-
return
|
|
4446
|
+
return Mn() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
|
|
4447
4447
|
}
|
|
4448
4448
|
function ue(e) {
|
|
4449
4449
|
if (e)
|
|
@@ -4454,20 +4454,20 @@ function ue(e) {
|
|
|
4454
4454
|
e.focus(), Nc(t);
|
|
4455
4455
|
}
|
|
4456
4456
|
}
|
|
4457
|
-
var
|
|
4457
|
+
var Zt = null;
|
|
4458
4458
|
function $c() {
|
|
4459
|
-
if (
|
|
4460
|
-
|
|
4459
|
+
if (Zt == null) {
|
|
4460
|
+
Zt = !1;
|
|
4461
4461
|
try {
|
|
4462
4462
|
document.createElement("div").focus({
|
|
4463
4463
|
get preventScroll() {
|
|
4464
|
-
return
|
|
4464
|
+
return Zt = !0, !0;
|
|
4465
4465
|
}
|
|
4466
4466
|
});
|
|
4467
4467
|
} catch {
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
|
-
return
|
|
4470
|
+
return Zt;
|
|
4471
4471
|
}
|
|
4472
4472
|
function Fc(e) {
|
|
4473
4473
|
let t = e.parentNode;
|
|
@@ -4597,26 +4597,26 @@ function Wc(e, t) {
|
|
|
4597
4597
|
function $e(e, t) {
|
|
4598
4598
|
return T(e, t);
|
|
4599
4599
|
}
|
|
4600
|
-
var
|
|
4600
|
+
var Lt = /* @__PURE__ */ new Map(), Ao = /* @__PURE__ */ new Set();
|
|
4601
4601
|
function To() {
|
|
4602
4602
|
if (typeof window > "u")
|
|
4603
4603
|
return;
|
|
4604
4604
|
const e = (n) => {
|
|
4605
4605
|
if (!n.target)
|
|
4606
4606
|
return;
|
|
4607
|
-
let r =
|
|
4608
|
-
r || (r = /* @__PURE__ */ new Set(),
|
|
4607
|
+
let r = Lt.get(n.target);
|
|
4608
|
+
r || (r = /* @__PURE__ */ new Set(), Lt.set(n.target, r), n.target.addEventListener(
|
|
4609
4609
|
"transitioncancel",
|
|
4610
4610
|
t
|
|
4611
4611
|
)), r.add(n.propertyName);
|
|
4612
4612
|
}, t = (n) => {
|
|
4613
4613
|
if (!n.target)
|
|
4614
4614
|
return;
|
|
4615
|
-
const r =
|
|
4615
|
+
const r = Lt.get(n.target);
|
|
4616
4616
|
if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener(
|
|
4617
4617
|
"transitioncancel",
|
|
4618
4618
|
t
|
|
4619
|
-
),
|
|
4619
|
+
), Lt.delete(n.target)), Lt.size === 0)) {
|
|
4620
4620
|
for (const o of Ao)
|
|
4621
4621
|
o();
|
|
4622
4622
|
Ao.clear();
|
|
@@ -4842,14 +4842,14 @@ function Qc(e) {
|
|
|
4842
4842
|
* Credits to the Chakra UI team:
|
|
4843
4843
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/dismissable/src/layer-stack.ts
|
|
4844
4844
|
*/
|
|
4845
|
-
const
|
|
4845
|
+
const En = "data-kb-top-layer";
|
|
4846
4846
|
let is, wr = !1;
|
|
4847
4847
|
const je = [];
|
|
4848
|
-
function
|
|
4848
|
+
function Ut(e) {
|
|
4849
4849
|
return je.findIndex((t) => t.node === e);
|
|
4850
4850
|
}
|
|
4851
4851
|
function eu(e) {
|
|
4852
|
-
return je[
|
|
4852
|
+
return je[Ut(e)];
|
|
4853
4853
|
}
|
|
4854
4854
|
function tu(e) {
|
|
4855
4855
|
return je[je.length - 1].node === e;
|
|
@@ -4864,14 +4864,14 @@ function qr() {
|
|
|
4864
4864
|
return ss().length > 0;
|
|
4865
4865
|
}
|
|
4866
4866
|
function as(e) {
|
|
4867
|
-
const t =
|
|
4868
|
-
return
|
|
4867
|
+
const t = Ut(nu()?.node);
|
|
4868
|
+
return Ut(e) < t;
|
|
4869
4869
|
}
|
|
4870
4870
|
function ru(e) {
|
|
4871
4871
|
je.push(e);
|
|
4872
4872
|
}
|
|
4873
4873
|
function ou(e) {
|
|
4874
|
-
const t =
|
|
4874
|
+
const t = Ut(e);
|
|
4875
4875
|
t < 0 || je.splice(t, 1);
|
|
4876
4876
|
}
|
|
4877
4877
|
function iu() {
|
|
@@ -4899,7 +4899,7 @@ const he = {
|
|
|
4899
4899
|
isBelowPointerBlockingLayer: as,
|
|
4900
4900
|
addLayer: ru,
|
|
4901
4901
|
removeLayer: ou,
|
|
4902
|
-
indexOf:
|
|
4902
|
+
indexOf: Ut,
|
|
4903
4903
|
find: eu,
|
|
4904
4904
|
assignPointerEventToLayers: iu,
|
|
4905
4905
|
disableBodyPointerEvents: su,
|
|
@@ -4919,7 +4919,7 @@ const he = {
|
|
|
4919
4919
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-on-child-unmount.ts
|
|
4920
4920
|
* https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-containment.ts
|
|
4921
4921
|
*/
|
|
4922
|
-
const
|
|
4922
|
+
const Yn = "focusScope.autoFocusOnMount", Xn = "focusScope.autoFocusOnUnmount", Do = {
|
|
4923
4923
|
bubbles: !1,
|
|
4924
4924
|
cancelable: !0
|
|
4925
4925
|
}, Mo = {
|
|
@@ -4961,7 +4961,7 @@ function lu(e, t) {
|
|
|
4961
4961
|
const f = t();
|
|
4962
4962
|
if (!f)
|
|
4963
4963
|
return !1;
|
|
4964
|
-
const g =
|
|
4964
|
+
const g = Rt(f);
|
|
4965
4965
|
return !g || Ae(f, g) ? !1 : rs(g);
|
|
4966
4966
|
};
|
|
4967
4967
|
L(() => {
|
|
@@ -4969,17 +4969,17 @@ function lu(e, t) {
|
|
|
4969
4969
|
if (!f)
|
|
4970
4970
|
return;
|
|
4971
4971
|
Mo.add(o);
|
|
4972
|
-
const g =
|
|
4972
|
+
const g = Rt(f);
|
|
4973
4973
|
if (!Ae(f, g)) {
|
|
4974
|
-
const b = new CustomEvent(
|
|
4975
|
-
f.addEventListener(
|
|
4976
|
-
ue(u()),
|
|
4974
|
+
const b = new CustomEvent(Yn, Do);
|
|
4975
|
+
f.addEventListener(Yn, s), f.dispatchEvent(b), b.defaultPrevented || setTimeout(() => {
|
|
4976
|
+
ue(u()), Rt(f) === g && ue(f);
|
|
4977
4977
|
}, 0);
|
|
4978
4978
|
}
|
|
4979
4979
|
K(() => {
|
|
4980
|
-
f.removeEventListener(
|
|
4981
|
-
const b = new CustomEvent(
|
|
4982
|
-
m() && b.preventDefault(), f.addEventListener(
|
|
4980
|
+
f.removeEventListener(Yn, s), setTimeout(() => {
|
|
4981
|
+
const b = new CustomEvent(Xn, Do);
|
|
4982
|
+
m() && b.preventDefault(), f.addEventListener(Xn, a), f.dispatchEvent(b), b.defaultPrevented || ue(g ?? l().body), f.removeEventListener(Xn, a), Mo.remove(o);
|
|
4983
4983
|
}, 0);
|
|
4984
4984
|
});
|
|
4985
4985
|
}), L(() => {
|
|
@@ -4988,10 +4988,10 @@ function lu(e, t) {
|
|
|
4988
4988
|
return;
|
|
4989
4989
|
const g = (b) => {
|
|
4990
4990
|
const v = b.target;
|
|
4991
|
-
v?.closest(`[${
|
|
4991
|
+
v?.closest(`[${En}]`) || (Ae(f, v) ? i = v : ue(i));
|
|
4992
4992
|
}, p = (b) => {
|
|
4993
|
-
const w = b.relatedTarget ??
|
|
4994
|
-
w?.closest(`[${
|
|
4993
|
+
const w = b.relatedTarget ?? Rt(f);
|
|
4994
|
+
w?.closest(`[${En}]`) || Ae(f, w) || ue(i);
|
|
4995
4995
|
};
|
|
4996
4996
|
l().addEventListener("focusin", g), l().addEventListener("focusout", p), K(() => {
|
|
4997
4997
|
l().removeEventListener("focusin", g), l().removeEventListener("focusout", p);
|
|
@@ -5041,10 +5041,10 @@ function uu(e) {
|
|
|
5041
5041
|
S(e.isDisabled) || K(du(S(e.targets), S(e.root)));
|
|
5042
5042
|
});
|
|
5043
5043
|
}
|
|
5044
|
-
const
|
|
5044
|
+
const Dt = /* @__PURE__ */ new WeakMap(), be = [];
|
|
5045
5045
|
function du(e, t = document.body) {
|
|
5046
5046
|
const n = new Set(e), r = /* @__PURE__ */ new Set(), o = (l) => {
|
|
5047
|
-
for (const h of l.querySelectorAll(`[${cu}], [${
|
|
5047
|
+
for (const h of l.querySelectorAll(`[${cu}], [${En}]`))
|
|
5048
5048
|
n.add(h);
|
|
5049
5049
|
const c = (h) => {
|
|
5050
5050
|
if (n.has(h) || h.parentElement && r.has(h.parentElement) && h.parentElement.getAttribute("role") !== "row")
|
|
@@ -5062,8 +5062,8 @@ function du(e, t = document.body) {
|
|
|
5062
5062
|
i(h), h = d.nextNode();
|
|
5063
5063
|
}
|
|
5064
5064
|
}, i = (l) => {
|
|
5065
|
-
const c =
|
|
5066
|
-
l.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && l.setAttribute("aria-hidden", "true"), r.add(l),
|
|
5065
|
+
const c = Dt.get(l) ?? 0;
|
|
5066
|
+
l.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && l.setAttribute("aria-hidden", "true"), r.add(l), Dt.set(l, c + 1));
|
|
5067
5067
|
};
|
|
5068
5068
|
be.length && be[be.length - 1].disconnect(), o(t);
|
|
5069
5069
|
const s = new MutationObserver((l) => {
|
|
@@ -5087,10 +5087,10 @@ function du(e, t = document.body) {
|
|
|
5087
5087
|
return be.push(a), () => {
|
|
5088
5088
|
s.disconnect();
|
|
5089
5089
|
for (const l of r) {
|
|
5090
|
-
const c =
|
|
5090
|
+
const c = Dt.get(l);
|
|
5091
5091
|
if (c == null)
|
|
5092
5092
|
return;
|
|
5093
|
-
c === 1 ? (l.removeAttribute("aria-hidden"),
|
|
5093
|
+
c === 1 ? (l.removeAttribute("aria-hidden"), Dt.delete(l)) : Dt.set(l, c - 1);
|
|
5094
5094
|
}
|
|
5095
5095
|
a === be[be.length - 1] ? (be.pop(), be.length && be[be.length - 1].observe()) : be.splice(be.indexOf(a), 1);
|
|
5096
5096
|
};
|
|
@@ -5113,7 +5113,7 @@ function fu(e, t) {
|
|
|
5113
5113
|
let n, r = qc;
|
|
5114
5114
|
const o = () => Ue(t()), i = (u) => e.onPointerDownOutside?.(u), s = (u) => e.onFocusOutside?.(u), a = (u) => e.onInteractOutside?.(u), l = (u) => {
|
|
5115
5115
|
const h = u.target;
|
|
5116
|
-
return !(h instanceof HTMLElement) || h.closest(`[${
|
|
5116
|
+
return !(h instanceof HTMLElement) || h.closest(`[${En}]`) || !Ae(o(), h) || Ae(t(), h) ? !1 : !e.shouldExcludeElement?.(h);
|
|
5117
5117
|
}, c = (u) => {
|
|
5118
5118
|
function h() {
|
|
5119
5119
|
const m = t(), f = u.target;
|
|
@@ -5189,20 +5189,20 @@ function hu(e) {
|
|
|
5189
5189
|
}
|
|
5190
5190
|
});
|
|
5191
5191
|
return L(tt(s, (l) => {
|
|
5192
|
-
const c =
|
|
5192
|
+
const c = Qt(r);
|
|
5193
5193
|
i = l === "mounted" ? c : "none";
|
|
5194
5194
|
})), L(tt(e, (l) => {
|
|
5195
5195
|
if (o === l)
|
|
5196
5196
|
return;
|
|
5197
|
-
const c =
|
|
5197
|
+
const c = Qt(r);
|
|
5198
5198
|
l ? a("MOUNT") : r?.display === "none" ? a("UNMOUNT") : a(o && i !== c ? "ANIMATION_OUT" : "UNMOUNT"), o = l;
|
|
5199
5199
|
})), L(tt(t, (l) => {
|
|
5200
5200
|
if (l) {
|
|
5201
5201
|
const c = (u) => {
|
|
5202
|
-
const m =
|
|
5202
|
+
const m = Qt(r).includes(u.animationName);
|
|
5203
5203
|
u.target === l && m && a("ANIMATION_END");
|
|
5204
5204
|
}, d = (u) => {
|
|
5205
|
-
u.target === l && (i =
|
|
5205
|
+
u.target === l && (i = Qt(r));
|
|
5206
5206
|
};
|
|
5207
5207
|
l.addEventListener("animationstart", d), l.addEventListener("animationcancel", c), l.addEventListener("animationend", c), K(() => {
|
|
5208
5208
|
l.removeEventListener("animationstart", d), l.removeEventListener("animationcancel", c), l.removeEventListener("animationend", c);
|
|
@@ -5216,7 +5216,7 @@ function hu(e) {
|
|
|
5216
5216
|
}
|
|
5217
5217
|
};
|
|
5218
5218
|
}
|
|
5219
|
-
function
|
|
5219
|
+
function Qt(e) {
|
|
5220
5220
|
return e?.animationName || "none";
|
|
5221
5221
|
}
|
|
5222
5222
|
function gu(e, t) {
|
|
@@ -5225,7 +5225,7 @@ function gu(e, t) {
|
|
|
5225
5225
|
o((a) => n(a, s));
|
|
5226
5226
|
}];
|
|
5227
5227
|
}
|
|
5228
|
-
function
|
|
5228
|
+
function kn(e) {
|
|
5229
5229
|
return (t) => (e(t), () => e(void 0));
|
|
5230
5230
|
}
|
|
5231
5231
|
/*!
|
|
@@ -5244,10 +5244,10 @@ function pu(e, t) {
|
|
|
5244
5244
|
function $o(e) {
|
|
5245
5245
|
return dt(e) ? e : void 0;
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function In(e) {
|
|
5248
5248
|
const [t, n] = j(e, ["asChild", "as", "children"]);
|
|
5249
5249
|
if (!t.asChild)
|
|
5250
|
-
return y(
|
|
5250
|
+
return y(cn, T({
|
|
5251
5251
|
get component() {
|
|
5252
5252
|
return t.as;
|
|
5253
5253
|
}
|
|
@@ -5259,12 +5259,12 @@ function Rn(e) {
|
|
|
5259
5259
|
const r = Nr(() => t.children);
|
|
5260
5260
|
if (Fo(r())) {
|
|
5261
5261
|
const o = No(n, r()?.props ?? {});
|
|
5262
|
-
return y(
|
|
5262
|
+
return y(cn, o);
|
|
5263
5263
|
}
|
|
5264
5264
|
if (Ac(r())) {
|
|
5265
5265
|
const o = r().find(Fo);
|
|
5266
5266
|
if (o) {
|
|
5267
|
-
const i = () => y(
|
|
5267
|
+
const i = () => y(yt, {
|
|
5268
5268
|
get each() {
|
|
5269
5269
|
return r();
|
|
5270
5270
|
},
|
|
@@ -5276,7 +5276,7 @@ function Rn(e) {
|
|
|
5276
5276
|
}
|
|
5277
5277
|
})
|
|
5278
5278
|
}), s = No(n, o?.props ?? {});
|
|
5279
|
-
return y(
|
|
5279
|
+
return y(cn, T(s, {
|
|
5280
5280
|
children: i
|
|
5281
5281
|
}));
|
|
5282
5282
|
}
|
|
@@ -5365,17 +5365,17 @@ function ls() {
|
|
|
5365
5365
|
};
|
|
5366
5366
|
}
|
|
5367
5367
|
let xr = ls();
|
|
5368
|
-
const
|
|
5368
|
+
const $t = /* @__PURE__ */ new Set();
|
|
5369
5369
|
function Ko() {
|
|
5370
5370
|
xr = ls();
|
|
5371
|
-
for (const e of
|
|
5371
|
+
for (const e of $t)
|
|
5372
5372
|
e(xr);
|
|
5373
5373
|
}
|
|
5374
5374
|
function xu() {
|
|
5375
5375
|
const [e, t] = P(xr), n = C(() => e());
|
|
5376
|
-
return
|
|
5377
|
-
|
|
5378
|
-
|
|
5376
|
+
return Tn(() => {
|
|
5377
|
+
$t.size === 0 && window.addEventListener("languagechange", Ko), $t.add(t), K(() => {
|
|
5378
|
+
$t.delete(t), $t.size === 0 && window.removeEventListener("languagechange", Ko);
|
|
5379
5379
|
});
|
|
5380
5380
|
}), {
|
|
5381
5381
|
locale: () => n().locale,
|
|
@@ -5394,13 +5394,13 @@ function Wr() {
|
|
|
5394
5394
|
* Credits to the React Spectrum team:
|
|
5395
5395
|
* https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
|
|
5396
5396
|
*/
|
|
5397
|
-
const
|
|
5397
|
+
const Jn = /* @__PURE__ */ new Map();
|
|
5398
5398
|
function Eu(e) {
|
|
5399
5399
|
const { locale: t } = Wr(), n = C(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
|
|
5400
5400
|
return C(() => {
|
|
5401
5401
|
const r = n();
|
|
5402
5402
|
let o;
|
|
5403
|
-
return
|
|
5403
|
+
return Jn.has(r) && (o = Jn.get(r)), o || (o = new Intl.Collator(t(), e), Jn.set(r, o)), o;
|
|
5404
5404
|
});
|
|
5405
5405
|
}
|
|
5406
5406
|
/*!
|
|
@@ -5434,7 +5434,7 @@ function cs(e) {
|
|
|
5434
5434
|
return Ic() ? e.altKey : e.ctrlKey;
|
|
5435
5435
|
}
|
|
5436
5436
|
function ft(e) {
|
|
5437
|
-
return
|
|
5437
|
+
return Mn() ? e.metaKey : e.ctrlKey;
|
|
5438
5438
|
}
|
|
5439
5439
|
function Bo(e) {
|
|
5440
5440
|
return new Ce(e);
|
|
@@ -5675,7 +5675,7 @@ function Tu(e, t, n) {
|
|
|
5675
5675
|
const x = t();
|
|
5676
5676
|
x && v == null && !S(o.shouldUseVirtualFocus) && ue(x);
|
|
5677
5677
|
};
|
|
5678
|
-
return
|
|
5678
|
+
return Tn(() => {
|
|
5679
5679
|
o.deferAutoFocus ? setTimeout(m, 0) : m();
|
|
5680
5680
|
}), L(tt([
|
|
5681
5681
|
i,
|
|
@@ -6193,7 +6193,7 @@ function Nu(e) {
|
|
|
6193
6193
|
type: r.type
|
|
6194
6194
|
});
|
|
6195
6195
|
}), a = C(() => i() === "input"), l = C(() => i() === "a" && t?.getAttribute("href") != null);
|
|
6196
|
-
return y(
|
|
6196
|
+
return y(In, T({
|
|
6197
6197
|
as: "button",
|
|
6198
6198
|
ref(c) {
|
|
6199
6199
|
var d = at((u) => t = u, r.ref);
|
|
@@ -6341,7 +6341,7 @@ function qu(e) {
|
|
|
6341
6341
|
K(r);
|
|
6342
6342
|
});
|
|
6343
6343
|
}
|
|
6344
|
-
var J = (e) => typeof e == "function" ? e() : e,
|
|
6344
|
+
var J = (e) => typeof e == "function" ? e() : e, Zn = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), Sr = (e, t) => {
|
|
6345
6345
|
if (e.contains(t)) return !0;
|
|
6346
6346
|
let n = t;
|
|
6347
6347
|
for (; n; ) {
|
|
@@ -6349,13 +6349,13 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
|
|
|
6349
6349
|
n = n._$host ?? n.parentElement;
|
|
6350
6350
|
}
|
|
6351
6351
|
return !1;
|
|
6352
|
-
},
|
|
6352
|
+
}, en = /* @__PURE__ */ new Map(), Wu = (e) => {
|
|
6353
6353
|
L(() => {
|
|
6354
6354
|
const t = J(e.style) ?? {}, n = J(e.properties) ?? [], r = {};
|
|
6355
6355
|
for (const i in t)
|
|
6356
6356
|
r[i] = e.element.style[i];
|
|
6357
|
-
const o =
|
|
6358
|
-
o ? o.activeCount++ :
|
|
6357
|
+
const o = en.get(e.key);
|
|
6358
|
+
o ? o.activeCount++ : en.set(e.key, {
|
|
6359
6359
|
activeCount: 1,
|
|
6360
6360
|
originalStyles: r,
|
|
6361
6361
|
properties: n.map((i) => i.key)
|
|
@@ -6363,13 +6363,13 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
|
|
|
6363
6363
|
for (const i of n)
|
|
6364
6364
|
e.element.style.setProperty(i.key, i.value);
|
|
6365
6365
|
K(() => {
|
|
6366
|
-
const i =
|
|
6366
|
+
const i = en.get(e.key);
|
|
6367
6367
|
if (i) {
|
|
6368
6368
|
if (i.activeCount !== 1) {
|
|
6369
6369
|
i.activeCount--;
|
|
6370
6370
|
return;
|
|
6371
6371
|
}
|
|
6372
|
-
|
|
6372
|
+
en.delete(e.key);
|
|
6373
6373
|
for (const [s, a] of Object.entries(i.originalStyles))
|
|
6374
6374
|
e.element.style[s] = a;
|
|
6375
6375
|
for (const s of i.properties)
|
|
@@ -6509,7 +6509,7 @@ function nd(e) {
|
|
|
6509
6509
|
onEscapeKeyDown: (u) => {
|
|
6510
6510
|
!t || !he.isTopMostLayer(t) || (r.onEscapeKeyDown?.(u), !u.defaultPrevented && r.onDismiss && (u.preventDefault(), r.onDismiss()));
|
|
6511
6511
|
}
|
|
6512
|
-
}),
|
|
6512
|
+
}), Tn(() => {
|
|
6513
6513
|
if (!t)
|
|
6514
6514
|
return;
|
|
6515
6515
|
he.addLayer({
|
|
@@ -6537,7 +6537,7 @@ function nd(e) {
|
|
|
6537
6537
|
return y(ps.Provider, {
|
|
6538
6538
|
value: d,
|
|
6539
6539
|
get children() {
|
|
6540
|
-
return y(
|
|
6540
|
+
return y(In, T({
|
|
6541
6541
|
as: "div",
|
|
6542
6542
|
ref(u) {
|
|
6543
6543
|
var h = at((m) => t = m, r.ref);
|
|
@@ -6556,7 +6556,7 @@ function rd() {
|
|
|
6556
6556
|
}
|
|
6557
6557
|
function od(e) {
|
|
6558
6558
|
const t = rd(), [n, r] = j(e, ["ref", "style"]);
|
|
6559
|
-
return y(
|
|
6559
|
+
return y(In, T({
|
|
6560
6560
|
as: "div",
|
|
6561
6561
|
ref(o) {
|
|
6562
6562
|
var i = at(t.setPositionerRef, n.ref);
|
|
@@ -6574,7 +6574,7 @@ function od(e) {
|
|
|
6574
6574
|
}
|
|
6575
6575
|
}, r));
|
|
6576
6576
|
}
|
|
6577
|
-
const id = ["top", "right", "bottom", "left"], Ye = Math.min, ge = Math.max,
|
|
6577
|
+
const id = ["top", "right", "bottom", "left"], Ye = Math.min, ge = Math.max, Cn = Math.round, tn = Math.floor, De = (e) => ({
|
|
6578
6578
|
x: e,
|
|
6579
6579
|
y: e
|
|
6580
6580
|
}), sd = {
|
|
@@ -6595,7 +6595,7 @@ function lt(e, t) {
|
|
|
6595
6595
|
function Xe(e) {
|
|
6596
6596
|
return e.split("-")[0];
|
|
6597
6597
|
}
|
|
6598
|
-
function
|
|
6598
|
+
function St(e) {
|
|
6599
6599
|
return e.split("-")[1];
|
|
6600
6600
|
}
|
|
6601
6601
|
function ys(e) {
|
|
@@ -6612,12 +6612,12 @@ function Yr(e) {
|
|
|
6612
6612
|
}
|
|
6613
6613
|
function ld(e, t, n) {
|
|
6614
6614
|
n === void 0 && (n = !1);
|
|
6615
|
-
const r =
|
|
6615
|
+
const r = St(e), o = Yr(e), i = Gr(o);
|
|
6616
6616
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6617
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
6617
|
+
return t.reference[i] > t.floating[i] && (s = On(s)), [s, On(s)];
|
|
6618
6618
|
}
|
|
6619
6619
|
function cd(e) {
|
|
6620
|
-
const t =
|
|
6620
|
+
const t = On(e);
|
|
6621
6621
|
return [kr(e), t, kr(t)];
|
|
6622
6622
|
}
|
|
6623
6623
|
function kr(e) {
|
|
@@ -6637,11 +6637,11 @@ function ud(e, t, n) {
|
|
|
6637
6637
|
}
|
|
6638
6638
|
}
|
|
6639
6639
|
function dd(e, t, n, r) {
|
|
6640
|
-
const o =
|
|
6640
|
+
const o = St(e);
|
|
6641
6641
|
let i = ud(Xe(e), n === "start", r);
|
|
6642
6642
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(kr)))), i;
|
|
6643
6643
|
}
|
|
6644
|
-
function
|
|
6644
|
+
function On(e) {
|
|
6645
6645
|
return e.replace(/left|right|bottom|top/g, (t) => sd[t]);
|
|
6646
6646
|
}
|
|
6647
6647
|
function fd(e) {
|
|
@@ -6661,7 +6661,7 @@ function bs(e) {
|
|
|
6661
6661
|
left: e
|
|
6662
6662
|
};
|
|
6663
6663
|
}
|
|
6664
|
-
function
|
|
6664
|
+
function _n(e) {
|
|
6665
6665
|
const {
|
|
6666
6666
|
x: t,
|
|
6667
6667
|
y: n,
|
|
@@ -6717,7 +6717,7 @@ function Wo(e, t, n) {
|
|
|
6717
6717
|
y: r.y
|
|
6718
6718
|
};
|
|
6719
6719
|
}
|
|
6720
|
-
switch (
|
|
6720
|
+
switch (St(t)) {
|
|
6721
6721
|
case "start":
|
|
6722
6722
|
m[s] -= h * (n && c ? -1 : 1);
|
|
6723
6723
|
break;
|
|
@@ -6788,7 +6788,7 @@ const hd = async (e, t, n) => {
|
|
|
6788
6788
|
middlewareData: m
|
|
6789
6789
|
};
|
|
6790
6790
|
};
|
|
6791
|
-
async function
|
|
6791
|
+
async function jt(e, t) {
|
|
6792
6792
|
var n;
|
|
6793
6793
|
t === void 0 && (t = {});
|
|
6794
6794
|
const {
|
|
@@ -6804,7 +6804,7 @@ async function Ht(e, t) {
|
|
|
6804
6804
|
elementContext: u = "floating",
|
|
6805
6805
|
altBoundary: h = !1,
|
|
6806
6806
|
padding: m = 0
|
|
6807
|
-
} = lt(t, e), f = bs(m), p = a[h ? u === "floating" ? "reference" : "floating" : u], b =
|
|
6807
|
+
} = lt(t, e), f = bs(m), p = a[h ? u === "floating" ? "reference" : "floating" : u], b = _n(await i.getClippingRect({
|
|
6808
6808
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(p))) == null || n ? p : p.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
6809
6809
|
boundary: c,
|
|
6810
6810
|
rootBoundary: d,
|
|
@@ -6820,7 +6820,7 @@ async function Ht(e, t) {
|
|
|
6820
6820
|
} : {
|
|
6821
6821
|
x: 1,
|
|
6822
6822
|
y: 1
|
|
6823
|
-
}, O =
|
|
6823
|
+
}, O = _n(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6824
6824
|
elements: a,
|
|
6825
6825
|
rect: v,
|
|
6826
6826
|
offsetParent: w,
|
|
@@ -6857,7 +6857,7 @@ const gd = (e) => ({
|
|
|
6857
6857
|
}, m = Yr(o), f = Gr(m), g = await s.getDimensions(c), p = m === "y", b = p ? "top" : "left", v = p ? "bottom" : "right", w = p ? "clientHeight" : "clientWidth", x = i.reference[f] + i.reference[m] - h[m] - i.floating[f], O = h[m] - i.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
6858
6858
|
let E = k ? k[w] : 0;
|
|
6859
6859
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(k))) && (E = a.floating[w] || i.floating[f]);
|
|
6860
|
-
const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), D = Ye(u[v], _), M = R, ne = E - g[f] - D, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, ne), F = !l.arrow &&
|
|
6860
|
+
const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), D = Ye(u[v], _), M = R, ne = E - g[f] - D, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, ne), F = !l.arrow && St(o) != null && W !== ce && i.reference[f] / 2 - (W < M ? R : D) - g[f] / 2 < 0, B = F ? W < M ? W - M : W - ne : 0;
|
|
6861
6861
|
return {
|
|
6862
6862
|
[m]: h[m] + B,
|
|
6863
6863
|
data: {
|
|
@@ -6894,9 +6894,9 @@ const gd = (e) => ({
|
|
|
6894
6894
|
} = lt(e, t);
|
|
6895
6895
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6896
6896
|
return {};
|
|
6897
|
-
const b = Xe(o), v = rt(a), w = Xe(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (w || !g ? [
|
|
6897
|
+
const b = Xe(o), v = rt(a), w = Xe(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (w || !g ? [On(a)] : cd(a)), k = f !== "none";
|
|
6898
6898
|
!h && k && O.push(...dd(a, g, f, x));
|
|
6899
|
-
const E = [a, ...O], $ = await
|
|
6899
|
+
const E = [a, ...O], $ = await jt(t, p), _ = [];
|
|
6900
6900
|
let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
6901
6901
|
if (d && _.push($[b]), u) {
|
|
6902
6902
|
const W = ld(o, s, x);
|
|
@@ -6974,7 +6974,7 @@ const md = function(e) {
|
|
|
6974
6974
|
} = lt(e, t);
|
|
6975
6975
|
switch (r) {
|
|
6976
6976
|
case "referenceHidden": {
|
|
6977
|
-
const i = await
|
|
6977
|
+
const i = await jt(t, {
|
|
6978
6978
|
...o,
|
|
6979
6979
|
elementContext: "reference"
|
|
6980
6980
|
}), s = Go(i, n.reference);
|
|
@@ -6986,7 +6986,7 @@ const md = function(e) {
|
|
|
6986
6986
|
};
|
|
6987
6987
|
}
|
|
6988
6988
|
case "escaped": {
|
|
6989
|
-
const i = await
|
|
6989
|
+
const i = await jt(t, {
|
|
6990
6990
|
...o,
|
|
6991
6991
|
altBoundary: !0
|
|
6992
6992
|
}), s = Go(i, n.floating);
|
|
@@ -7008,7 +7008,7 @@ async function yd(e, t) {
|
|
|
7008
7008
|
placement: n,
|
|
7009
7009
|
platform: r,
|
|
7010
7010
|
elements: o
|
|
7011
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Xe(n), a =
|
|
7011
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Xe(n), a = St(n), l = rt(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = lt(t, e);
|
|
7012
7012
|
let {
|
|
7013
7013
|
mainAxis: h,
|
|
7014
7014
|
crossAxis: m,
|
|
@@ -7080,7 +7080,7 @@ const bd = function(e) {
|
|
|
7080
7080
|
} = lt(e, t), c = {
|
|
7081
7081
|
x: n,
|
|
7082
7082
|
y: r
|
|
7083
|
-
}, d = await
|
|
7083
|
+
}, d = await jt(t, l), u = rt(Xe(o)), h = ys(u);
|
|
7084
7084
|
let m = c[h], f = c[u];
|
|
7085
7085
|
if (i) {
|
|
7086
7086
|
const p = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + d[p], w = m - d[b];
|
|
@@ -7123,7 +7123,7 @@ const bd = function(e) {
|
|
|
7123
7123
|
apply: l = () => {
|
|
7124
7124
|
},
|
|
7125
7125
|
...c
|
|
7126
|
-
} = lt(e, t), d = await
|
|
7126
|
+
} = lt(e, t), d = await jt(t, c), u = Xe(o), h = St(o), m = rt(o) === "y", {
|
|
7127
7127
|
width: f,
|
|
7128
7128
|
height: g
|
|
7129
7129
|
} = i.floating;
|
|
@@ -7149,10 +7149,10 @@ const bd = function(e) {
|
|
|
7149
7149
|
}
|
|
7150
7150
|
};
|
|
7151
7151
|
};
|
|
7152
|
-
function
|
|
7152
|
+
function Rn() {
|
|
7153
7153
|
return typeof window < "u";
|
|
7154
7154
|
}
|
|
7155
|
-
function
|
|
7155
|
+
function Et(e) {
|
|
7156
7156
|
return vs(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7157
7157
|
}
|
|
7158
7158
|
function me(e) {
|
|
@@ -7164,18 +7164,18 @@ function Fe(e) {
|
|
|
7164
7164
|
return (t = (vs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7165
7165
|
}
|
|
7166
7166
|
function vs(e) {
|
|
7167
|
-
return
|
|
7167
|
+
return Rn() ? e instanceof Node || e instanceof me(e).Node : !1;
|
|
7168
7168
|
}
|
|
7169
7169
|
function _e(e) {
|
|
7170
|
-
return
|
|
7170
|
+
return Rn() ? e instanceof Element || e instanceof me(e).Element : !1;
|
|
7171
7171
|
}
|
|
7172
7172
|
function Ie(e) {
|
|
7173
|
-
return
|
|
7173
|
+
return Rn() ? e instanceof HTMLElement || e instanceof me(e).HTMLElement : !1;
|
|
7174
7174
|
}
|
|
7175
7175
|
function Xo(e) {
|
|
7176
|
-
return
|
|
7176
|
+
return !Rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof me(e).ShadowRoot;
|
|
7177
7177
|
}
|
|
7178
|
-
function
|
|
7178
|
+
function qt(e) {
|
|
7179
7179
|
const {
|
|
7180
7180
|
overflow: t,
|
|
7181
7181
|
overflowX: n,
|
|
@@ -7185,9 +7185,9 @@ function Wt(e) {
|
|
|
7185
7185
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
7186
7186
|
}
|
|
7187
7187
|
function xd(e) {
|
|
7188
|
-
return ["table", "td", "th"].includes(
|
|
7188
|
+
return ["table", "td", "th"].includes(Et(e));
|
|
7189
7189
|
}
|
|
7190
|
-
function
|
|
7190
|
+
function $n(e) {
|
|
7191
7191
|
return [":popover-open", ":modal"].some((t) => {
|
|
7192
7192
|
try {
|
|
7193
7193
|
return e.matches(t);
|
|
@@ -7202,10 +7202,10 @@ function Xr(e) {
|
|
|
7202
7202
|
}
|
|
7203
7203
|
function Sd(e) {
|
|
7204
7204
|
let t = Je(e);
|
|
7205
|
-
for (; Ie(t) && !
|
|
7205
|
+
for (; Ie(t) && !vt(t); ) {
|
|
7206
7206
|
if (Xr(t))
|
|
7207
7207
|
return t;
|
|
7208
|
-
if (
|
|
7208
|
+
if ($n(t))
|
|
7209
7209
|
return null;
|
|
7210
7210
|
t = Je(t);
|
|
7211
7211
|
}
|
|
@@ -7214,13 +7214,13 @@ function Sd(e) {
|
|
|
7214
7214
|
function Jr() {
|
|
7215
7215
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7216
7216
|
}
|
|
7217
|
-
function
|
|
7218
|
-
return ["html", "body", "#document"].includes(
|
|
7217
|
+
function vt(e) {
|
|
7218
|
+
return ["html", "body", "#document"].includes(Et(e));
|
|
7219
7219
|
}
|
|
7220
7220
|
function Pe(e) {
|
|
7221
7221
|
return me(e).getComputedStyle(e);
|
|
7222
7222
|
}
|
|
7223
|
-
function
|
|
7223
|
+
function Fn(e) {
|
|
7224
7224
|
return _e(e) ? {
|
|
7225
7225
|
scrollLeft: e.scrollLeft,
|
|
7226
7226
|
scrollTop: e.scrollTop
|
|
@@ -7230,7 +7230,7 @@ function Nn(e) {
|
|
|
7230
7230
|
};
|
|
7231
7231
|
}
|
|
7232
7232
|
function Je(e) {
|
|
7233
|
-
if (
|
|
7233
|
+
if (Et(e) === "html")
|
|
7234
7234
|
return e;
|
|
7235
7235
|
const t = (
|
|
7236
7236
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -7243,17 +7243,17 @@ function Je(e) {
|
|
|
7243
7243
|
}
|
|
7244
7244
|
function ws(e) {
|
|
7245
7245
|
const t = Je(e);
|
|
7246
|
-
return
|
|
7246
|
+
return vt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && qt(t) ? t : ws(t);
|
|
7247
7247
|
}
|
|
7248
|
-
function
|
|
7248
|
+
function Ht(e, t, n) {
|
|
7249
7249
|
var r;
|
|
7250
7250
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7251
7251
|
const o = ws(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = me(o);
|
|
7252
7252
|
if (i) {
|
|
7253
7253
|
const a = Cr(s);
|
|
7254
|
-
return t.concat(s, s.visualViewport || [],
|
|
7254
|
+
return t.concat(s, s.visualViewport || [], qt(o) ? o : [], a && n ? Ht(a) : []);
|
|
7255
7255
|
}
|
|
7256
|
-
return t.concat(o,
|
|
7256
|
+
return t.concat(o, Ht(o, [], n));
|
|
7257
7257
|
}
|
|
7258
7258
|
function Cr(e) {
|
|
7259
7259
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -7261,7 +7261,7 @@ function Cr(e) {
|
|
|
7261
7261
|
function xs(e) {
|
|
7262
7262
|
const t = Pe(e);
|
|
7263
7263
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7264
|
-
const o = Ie(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a =
|
|
7264
|
+
const o = Ie(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = Cn(n) !== i || Cn(r) !== s;
|
|
7265
7265
|
return a && (n = i, r = s), {
|
|
7266
7266
|
width: n,
|
|
7267
7267
|
height: r,
|
|
@@ -7280,7 +7280,7 @@ function mt(e) {
|
|
|
7280
7280
|
height: o,
|
|
7281
7281
|
$: i
|
|
7282
7282
|
} = xs(t);
|
|
7283
|
-
let s = (i ?
|
|
7283
|
+
let s = (i ? Cn(n.width) : n.width) / r, a = (i ? Cn(n.height) : n.height) / o;
|
|
7284
7284
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
7285
7285
|
x: s,
|
|
7286
7286
|
y: a
|
|
@@ -7312,7 +7312,7 @@ function ot(e, t, n, r) {
|
|
|
7312
7312
|
l *= p.x, c *= p.y, d *= p.x, u *= p.y, l += w, c += x, f = me(g), g = Cr(f);
|
|
7313
7313
|
}
|
|
7314
7314
|
}
|
|
7315
|
-
return
|
|
7315
|
+
return _n({
|
|
7316
7316
|
width: d,
|
|
7317
7317
|
height: u,
|
|
7318
7318
|
x: l,
|
|
@@ -7320,7 +7320,7 @@ function ot(e, t, n, r) {
|
|
|
7320
7320
|
});
|
|
7321
7321
|
}
|
|
7322
7322
|
function Qr(e, t) {
|
|
7323
|
-
const n =
|
|
7323
|
+
const n = Fn(e).scrollLeft;
|
|
7324
7324
|
return t ? t.left + n : ot(Fe(e)).left + n;
|
|
7325
7325
|
}
|
|
7326
7326
|
function Es(e, t, n) {
|
|
@@ -7341,7 +7341,7 @@ function Cd(e) {
|
|
|
7341
7341
|
offsetParent: r,
|
|
7342
7342
|
strategy: o
|
|
7343
7343
|
} = e;
|
|
7344
|
-
const i = o === "fixed", s = Fe(r), a = t ?
|
|
7344
|
+
const i = o === "fixed", s = Fe(r), a = t ? $n(t.floating) : !1;
|
|
7345
7345
|
if (r === s || a && i)
|
|
7346
7346
|
return n;
|
|
7347
7347
|
let l = {
|
|
@@ -7349,7 +7349,7 @@ function Cd(e) {
|
|
|
7349
7349
|
scrollTop: 0
|
|
7350
7350
|
}, c = De(1);
|
|
7351
7351
|
const d = De(0), u = Ie(r);
|
|
7352
|
-
if ((u || !u && !i) && ((
|
|
7352
|
+
if ((u || !u && !i) && ((Et(r) !== "body" || qt(s)) && (l = Fn(r)), Ie(r))) {
|
|
7353
7353
|
const m = ot(r);
|
|
7354
7354
|
c = mt(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
|
|
7355
7355
|
}
|
|
@@ -7365,7 +7365,7 @@ function Od(e) {
|
|
|
7365
7365
|
return Array.from(e.getClientRects());
|
|
7366
7366
|
}
|
|
7367
7367
|
function _d(e) {
|
|
7368
|
-
const t = Fe(e), n =
|
|
7368
|
+
const t = Fe(e), n = Fn(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7369
7369
|
let s = -n.scrollLeft + Qr(e);
|
|
7370
7370
|
const a = -n.scrollTop;
|
|
7371
7371
|
return Pe(r).direction === "rtl" && (s += ge(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7416,22 +7416,22 @@ function Jo(e, t, n) {
|
|
|
7416
7416
|
height: t.height
|
|
7417
7417
|
};
|
|
7418
7418
|
}
|
|
7419
|
-
return
|
|
7419
|
+
return _n(r);
|
|
7420
7420
|
}
|
|
7421
7421
|
function ks(e, t) {
|
|
7422
7422
|
const n = Je(e);
|
|
7423
|
-
return n === t || !_e(n) ||
|
|
7423
|
+
return n === t || !_e(n) || vt(n) ? !1 : Pe(n).position === "fixed" || ks(n, t);
|
|
7424
7424
|
}
|
|
7425
7425
|
function Td(e, t) {
|
|
7426
7426
|
const n = t.get(e);
|
|
7427
7427
|
if (n)
|
|
7428
7428
|
return n;
|
|
7429
|
-
let r =
|
|
7429
|
+
let r = Ht(e, [], !1).filter((a) => _e(a) && Et(a) !== "body"), o = null;
|
|
7430
7430
|
const i = Pe(e).position === "fixed";
|
|
7431
7431
|
let s = i ? Je(e) : e;
|
|
7432
|
-
for (; _e(s) && !
|
|
7432
|
+
for (; _e(s) && !vt(s); ) {
|
|
7433
7433
|
const a = Pe(s), l = Xr(s);
|
|
7434
|
-
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
7434
|
+
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || qt(s) && !l && ks(e, s)) ? r = r.filter((d) => d !== s) : o = a, s = Je(s);
|
|
7435
7435
|
}
|
|
7436
7436
|
return t.set(e, r), r;
|
|
7437
7437
|
}
|
|
@@ -7442,7 +7442,7 @@ function Ld(e) {
|
|
|
7442
7442
|
rootBoundary: r,
|
|
7443
7443
|
strategy: o
|
|
7444
7444
|
} = e;
|
|
7445
|
-
const s = [...n === "clippingAncestors" ?
|
|
7445
|
+
const s = [...n === "clippingAncestors" ? $n(t) ? [] : Td(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, d) => {
|
|
7446
7446
|
const u = Jo(t, d, o);
|
|
7447
7447
|
return c.top = ge(u.top, c.top), c.right = Ye(u.right, c.right), c.bottom = Ye(u.bottom, c.bottom), c.left = ge(u.left, c.left), c;
|
|
7448
7448
|
}, Jo(t, a, o));
|
|
@@ -7471,7 +7471,7 @@ function Md(e, t, n) {
|
|
|
7471
7471
|
};
|
|
7472
7472
|
const l = De(0);
|
|
7473
7473
|
if (r || !r && !i)
|
|
7474
|
-
if ((
|
|
7474
|
+
if ((Et(t) !== "body" || qt(o)) && (a = Fn(t)), r) {
|
|
7475
7475
|
const h = ot(t, !0, i, t);
|
|
7476
7476
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
7477
7477
|
} else o && (l.x = Qr(o));
|
|
@@ -7483,7 +7483,7 @@ function Md(e, t, n) {
|
|
|
7483
7483
|
height: s.height
|
|
7484
7484
|
};
|
|
7485
7485
|
}
|
|
7486
|
-
function
|
|
7486
|
+
function Qn(e) {
|
|
7487
7487
|
return Pe(e).position === "static";
|
|
7488
7488
|
}
|
|
7489
7489
|
function Zo(e, t) {
|
|
@@ -7496,21 +7496,21 @@ function Zo(e, t) {
|
|
|
7496
7496
|
}
|
|
7497
7497
|
function Cs(e, t) {
|
|
7498
7498
|
const n = me(e);
|
|
7499
|
-
if (
|
|
7499
|
+
if ($n(e))
|
|
7500
7500
|
return n;
|
|
7501
7501
|
if (!Ie(e)) {
|
|
7502
7502
|
let o = Je(e);
|
|
7503
|
-
for (; o && !
|
|
7504
|
-
if (_e(o) && !
|
|
7503
|
+
for (; o && !vt(o); ) {
|
|
7504
|
+
if (_e(o) && !Qn(o))
|
|
7505
7505
|
return o;
|
|
7506
7506
|
o = Je(o);
|
|
7507
7507
|
}
|
|
7508
7508
|
return n;
|
|
7509
7509
|
}
|
|
7510
7510
|
let r = Zo(e, t);
|
|
7511
|
-
for (; r && xd(r) &&
|
|
7511
|
+
for (; r && xd(r) && Qn(r); )
|
|
7512
7512
|
r = Zo(r, t);
|
|
7513
|
-
return r &&
|
|
7513
|
+
return r && vt(r) && Qn(r) && !Xr(r) ? n : r || Sd(e) || n;
|
|
7514
7514
|
}
|
|
7515
7515
|
const Id = async function(e) {
|
|
7516
7516
|
const t = this.getOffsetParent || Cs, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -7559,7 +7559,7 @@ function $d(e, t) {
|
|
|
7559
7559
|
} = c;
|
|
7560
7560
|
if (a || t(), !h || !m)
|
|
7561
7561
|
return;
|
|
7562
|
-
const f =
|
|
7562
|
+
const f = tn(u), g = tn(o.clientWidth - (d + h)), p = tn(o.clientHeight - (u + m)), b = tn(d), w = {
|
|
7563
7563
|
rootMargin: -f + "px " + -g + "px " + -p + "px " + -b + "px",
|
|
7564
7564
|
threshold: ge(0, Ye(1, l)) || 1
|
|
7565
7565
|
};
|
|
@@ -7596,7 +7596,7 @@ function Fd(e, t, n, r) {
|
|
|
7596
7596
|
elementResize: s = typeof ResizeObserver == "function",
|
|
7597
7597
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
7598
7598
|
animationFrame: l = !1
|
|
7599
|
-
} = r, c = Zr(e), d = o || i ? [...c ?
|
|
7599
|
+
} = r, c = Zr(e), d = o || i ? [...c ? Ht(c) : [], ...Ht(t)] : [];
|
|
7600
7600
|
d.forEach((b) => {
|
|
7601
7601
|
o && b.addEventListener("scroll", n, {
|
|
7602
7602
|
passive: !0
|
|
@@ -7804,14 +7804,14 @@ const Ps = fe();
|
|
|
7804
7804
|
function As() {
|
|
7805
7805
|
return ye(Ps);
|
|
7806
7806
|
}
|
|
7807
|
-
function
|
|
7807
|
+
function kt() {
|
|
7808
7808
|
const e = As();
|
|
7809
7809
|
if (e === void 0)
|
|
7810
7810
|
throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");
|
|
7811
7811
|
return e;
|
|
7812
7812
|
}
|
|
7813
7813
|
const Ts = fe();
|
|
7814
|
-
function
|
|
7814
|
+
function Ct() {
|
|
7815
7815
|
const e = ye(Ts);
|
|
7816
7816
|
if (e === void 0)
|
|
7817
7817
|
throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");
|
|
@@ -7828,7 +7828,7 @@ function Xd(e, t) {
|
|
|
7828
7828
|
return t ? Wc([e.clientX, e.clientY], t) : !1;
|
|
7829
7829
|
}
|
|
7830
7830
|
function Jd(e) {
|
|
7831
|
-
const t =
|
|
7831
|
+
const t = Ct(), n = ds(), r = As(), o = $e({
|
|
7832
7832
|
placement: "bottom-start"
|
|
7833
7833
|
}, e), [i, s] = j(o, ["open", "defaultOpen", "onOpenChange"]);
|
|
7834
7834
|
let a = 0, l = null, c = "right";
|
|
@@ -7854,10 +7854,10 @@ function Jd(e) {
|
|
|
7854
7854
|
const U = p();
|
|
7855
7855
|
U && (ue(U), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
|
|
7856
7856
|
}, Z = (U) => {
|
|
7857
|
-
E((
|
|
7858
|
-
const
|
|
7857
|
+
E((Vn) => [...Vn, U]);
|
|
7858
|
+
const Gt = r?.registerNestedMenu(U);
|
|
7859
7859
|
return () => {
|
|
7860
|
-
E((
|
|
7860
|
+
E((Vn) => yr(Vn, U)), Gt?.();
|
|
7861
7861
|
};
|
|
7862
7862
|
}, re = (U) => c === l?.side && Xd(U, l?.area), ct = (U) => {
|
|
7863
7863
|
re(U) && U.preventDefault();
|
|
@@ -7873,9 +7873,9 @@ function Jd(e) {
|
|
|
7873
7873
|
const U = p();
|
|
7874
7874
|
if (!U || !r)
|
|
7875
7875
|
return;
|
|
7876
|
-
const
|
|
7876
|
+
const Gt = r.registerNestedMenu(U);
|
|
7877
7877
|
K(() => {
|
|
7878
|
-
|
|
7878
|
+
Gt();
|
|
7879
7879
|
});
|
|
7880
7880
|
});
|
|
7881
7881
|
const aa = {
|
|
@@ -7909,8 +7909,8 @@ function Jd(e) {
|
|
|
7909
7909
|
setPointerGraceIntent: (U) => l = U,
|
|
7910
7910
|
registerNestedMenu: Z,
|
|
7911
7911
|
registerItemToParentDomCollection: n?.registerItem,
|
|
7912
|
-
registerTriggerId:
|
|
7913
|
-
registerContentId:
|
|
7912
|
+
registerTriggerId: kn(u),
|
|
7913
|
+
registerContentId: kn(m)
|
|
7914
7914
|
};
|
|
7915
7915
|
return y(R, {
|
|
7916
7916
|
get children() {
|
|
@@ -7930,7 +7930,7 @@ function Jd(e) {
|
|
|
7930
7930
|
const Zd = fe();
|
|
7931
7931
|
function Qd(e) {
|
|
7932
7932
|
let t;
|
|
7933
|
-
const n =
|
|
7933
|
+
const n = Ct(), r = kt(), o = $e({
|
|
7934
7934
|
id: n.generateId(`item-${Te()}`)
|
|
7935
7935
|
}, e), [i, s] = j(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = P(), [c, d] = P(), [u, h] = P(), m = () => r.listState().selectionManager(), f = () => s.id, g = () => m().focusedKey() === f(), p = () => {
|
|
7936
7936
|
i.onSelect?.(), i.closeOnSelect && r.close(!0);
|
|
@@ -7979,13 +7979,13 @@ function Qd(e) {
|
|
|
7979
7979
|
dataset: E,
|
|
7980
7980
|
setLabelRef: h,
|
|
7981
7981
|
generateId: Zi(() => s.id),
|
|
7982
|
-
registerLabel:
|
|
7983
|
-
registerDescription:
|
|
7982
|
+
registerLabel: kn(l),
|
|
7983
|
+
registerDescription: kn(d)
|
|
7984
7984
|
};
|
|
7985
7985
|
return y(Zd.Provider, {
|
|
7986
7986
|
value: $,
|
|
7987
7987
|
get children() {
|
|
7988
|
-
return y(
|
|
7988
|
+
return y(In, T({
|
|
7989
7989
|
as: "div",
|
|
7990
7990
|
ref(_) {
|
|
7991
7991
|
var R = at((D) => t = D, i.ref);
|
|
@@ -8039,7 +8039,7 @@ function Ls() {
|
|
|
8039
8039
|
}
|
|
8040
8040
|
function tf(e) {
|
|
8041
8041
|
let t;
|
|
8042
|
-
const n =
|
|
8042
|
+
const n = Ct(), r = kt(), o = Ls(), i = $e({
|
|
8043
8043
|
id: n.generateId(`content-${Te()}`)
|
|
8044
8044
|
}, e), [s, a] = j(i, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
|
|
8045
8045
|
let l = 0;
|
|
@@ -8146,7 +8146,7 @@ function tf(e) {
|
|
|
8146
8146
|
}
|
|
8147
8147
|
function nf(e) {
|
|
8148
8148
|
let t;
|
|
8149
|
-
const n =
|
|
8149
|
+
const n = Ct(), r = kt(), [o, i] = j(e, ["ref"]);
|
|
8150
8150
|
return gs({
|
|
8151
8151
|
element: () => t ?? null,
|
|
8152
8152
|
enabled: () => r.isOpen() && n.preventScroll()
|
|
@@ -8166,7 +8166,7 @@ function rf(e) {
|
|
|
8166
8166
|
}, e));
|
|
8167
8167
|
}
|
|
8168
8168
|
function of(e) {
|
|
8169
|
-
const t =
|
|
8169
|
+
const t = kt();
|
|
8170
8170
|
return y(Q, {
|
|
8171
8171
|
get when() {
|
|
8172
8172
|
return t.contentPresence.isPresent();
|
|
@@ -8206,7 +8206,7 @@ function sf(e) {
|
|
|
8206
8206
|
});
|
|
8207
8207
|
}
|
|
8208
8208
|
function af(e) {
|
|
8209
|
-
const t =
|
|
8209
|
+
const t = Ct(), n = kt(), r = Ls(), o = $e({
|
|
8210
8210
|
id: t.generateId("trigger")
|
|
8211
8211
|
}, e), [i, s] = j(o, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
|
|
8212
8212
|
let a;
|
|
@@ -8283,7 +8283,7 @@ function af(e) {
|
|
|
8283
8283
|
}, () => n.dataset(), s));
|
|
8284
8284
|
}
|
|
8285
8285
|
function lf(e) {
|
|
8286
|
-
const t =
|
|
8286
|
+
const t = Ct(), n = kt(), [r, o] = j(e, ["onCloseAutoFocus", "onInteractOutside"]);
|
|
8287
8287
|
let i = !1;
|
|
8288
8288
|
return y(nf, T({
|
|
8289
8289
|
onCloseAutoFocus: (l) => {
|
|
@@ -8365,7 +8365,7 @@ function bf(e) {
|
|
|
8365
8365
|
}
|
|
8366
8366
|
}
|
|
8367
8367
|
async function vf(e, t, n) {
|
|
8368
|
-
const r = `${
|
|
8368
|
+
const r = `${pn}/v1/messages`, o = {
|
|
8369
8369
|
credentials: "include",
|
|
8370
8370
|
method: "POST",
|
|
8371
8371
|
headers: {
|
|
@@ -8382,7 +8382,7 @@ async function vf(e, t, n) {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
async function wf(e, t, n) {
|
|
8384
8384
|
if (!e || !t || !n) return;
|
|
8385
|
-
const r = `${
|
|
8385
|
+
const r = `${pn}/v1/widget/${e}/restart`, o = {
|
|
8386
8386
|
credentials: "include",
|
|
8387
8387
|
method: "POST",
|
|
8388
8388
|
headers: {
|
|
@@ -8403,9 +8403,9 @@ Re.pong = "3";
|
|
|
8403
8403
|
Re.message = "4";
|
|
8404
8404
|
Re.upgrade = "5";
|
|
8405
8405
|
Re.noop = "6";
|
|
8406
|
-
const
|
|
8406
|
+
const un = /* @__PURE__ */ Object.create(null);
|
|
8407
8407
|
Object.keys(Re).forEach((e) => {
|
|
8408
|
-
|
|
8408
|
+
un[Re[e]] = e;
|
|
8409
8409
|
});
|
|
8410
8410
|
const Or = { type: "error", data: "parser error" }, Ds = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ms = typeof ArrayBuffer == "function", Is = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, eo = ({ type: e, data: t }, n, r) => Ds && t instanceof Blob ? n ? r(t) : ei(t, r) : Ms && (t instanceof ArrayBuffer || Is(t)) ? n ? r(t) : ei(new Blob([t]), r) : r(Re[e] + (t || "")), ei = (e, t) => {
|
|
8411
8411
|
const n = new FileReader();
|
|
@@ -8417,25 +8417,25 @@ const Or = { type: "error", data: "parser error" }, Ds = typeof Blob == "functio
|
|
|
8417
8417
|
function ti(e) {
|
|
8418
8418
|
return e instanceof Uint8Array ? e : e instanceof ArrayBuffer ? new Uint8Array(e) : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
8419
8419
|
}
|
|
8420
|
-
let
|
|
8420
|
+
let er;
|
|
8421
8421
|
function xf(e, t) {
|
|
8422
8422
|
if (Ds && e.data instanceof Blob)
|
|
8423
8423
|
return e.data.arrayBuffer().then(ti).then(t);
|
|
8424
8424
|
if (Ms && (e.data instanceof ArrayBuffer || Is(e.data)))
|
|
8425
8425
|
return t(ti(e.data));
|
|
8426
8426
|
eo(e, !1, (n) => {
|
|
8427
|
-
|
|
8427
|
+
er || (er = new TextEncoder()), t(er.encode(n));
|
|
8428
8428
|
});
|
|
8429
8429
|
}
|
|
8430
|
-
const ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
8430
|
+
const ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ft = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
8431
8431
|
for (let e = 0; e < ni.length; e++)
|
|
8432
|
-
|
|
8432
|
+
Ft[ni.charCodeAt(e)] = e;
|
|
8433
8433
|
const Sf = (e) => {
|
|
8434
8434
|
let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
|
|
8435
8435
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
8436
8436
|
const c = new ArrayBuffer(t), d = new Uint8Array(c);
|
|
8437
8437
|
for (r = 0; r < n; r += 4)
|
|
8438
|
-
i =
|
|
8438
|
+
i = Ft[e.charCodeAt(r)], s = Ft[e.charCodeAt(r + 1)], a = Ft[e.charCodeAt(r + 2)], l = Ft[e.charCodeAt(r + 3)], d[o++] = i << 2 | s >> 4, d[o++] = (s & 15) << 4 | a >> 2, d[o++] = (a & 3) << 6 | l & 63;
|
|
8439
8439
|
return c;
|
|
8440
8440
|
}, Ef = typeof ArrayBuffer == "function", to = (e, t) => {
|
|
8441
8441
|
if (typeof e != "string")
|
|
@@ -8447,11 +8447,11 @@ const Sf = (e) => {
|
|
|
8447
8447
|
return n === "b" ? {
|
|
8448
8448
|
type: "message",
|
|
8449
8449
|
data: kf(e.substring(1), t)
|
|
8450
|
-
} :
|
|
8451
|
-
type:
|
|
8450
|
+
} : un[n] ? e.length > 1 ? {
|
|
8451
|
+
type: un[n],
|
|
8452
8452
|
data: e.substring(1)
|
|
8453
8453
|
} : {
|
|
8454
|
-
type:
|
|
8454
|
+
type: un[n]
|
|
8455
8455
|
} : Or;
|
|
8456
8456
|
}, kf = (e, t) => {
|
|
8457
8457
|
if (Ef) {
|
|
@@ -8506,11 +8506,11 @@ function _f() {
|
|
|
8506
8506
|
}
|
|
8507
8507
|
});
|
|
8508
8508
|
}
|
|
8509
|
-
let
|
|
8510
|
-
function
|
|
8509
|
+
let tr;
|
|
8510
|
+
function nn(e) {
|
|
8511
8511
|
return e.reduce((t, n) => t + n.length, 0);
|
|
8512
8512
|
}
|
|
8513
|
-
function
|
|
8513
|
+
function rn(e, t) {
|
|
8514
8514
|
if (e[0].length === t)
|
|
8515
8515
|
return e.shift();
|
|
8516
8516
|
const n = new Uint8Array(t);
|
|
@@ -8520,36 +8520,36 @@ function on(e, t) {
|
|
|
8520
8520
|
return e.length && r < e[0].length && (e[0] = e[0].slice(r)), n;
|
|
8521
8521
|
}
|
|
8522
8522
|
function Pf(e, t) {
|
|
8523
|
-
|
|
8523
|
+
tr || (tr = new TextDecoder());
|
|
8524
8524
|
const n = [];
|
|
8525
8525
|
let r = 0, o = -1, i = !1;
|
|
8526
8526
|
return new TransformStream({
|
|
8527
8527
|
transform(s, a) {
|
|
8528
8528
|
for (n.push(s); ; ) {
|
|
8529
8529
|
if (r === 0) {
|
|
8530
|
-
if (
|
|
8530
|
+
if (nn(n) < 1)
|
|
8531
8531
|
break;
|
|
8532
|
-
const l =
|
|
8532
|
+
const l = rn(n, 1);
|
|
8533
8533
|
i = (l[0] & 128) === 128, o = l[0] & 127, o < 126 ? r = 3 : o === 126 ? r = 1 : r = 2;
|
|
8534
8534
|
} else if (r === 1) {
|
|
8535
|
-
if (
|
|
8535
|
+
if (nn(n) < 2)
|
|
8536
8536
|
break;
|
|
8537
|
-
const l =
|
|
8537
|
+
const l = rn(n, 2);
|
|
8538
8538
|
o = new DataView(l.buffer, l.byteOffset, l.length).getUint16(0), r = 3;
|
|
8539
8539
|
} else if (r === 2) {
|
|
8540
|
-
if (
|
|
8540
|
+
if (nn(n) < 8)
|
|
8541
8541
|
break;
|
|
8542
|
-
const l =
|
|
8542
|
+
const l = rn(n, 8), c = new DataView(l.buffer, l.byteOffset, l.length), d = c.getUint32(0);
|
|
8543
8543
|
if (d > Math.pow(2, 21) - 1) {
|
|
8544
8544
|
a.enqueue(Or);
|
|
8545
8545
|
break;
|
|
8546
8546
|
}
|
|
8547
8547
|
o = d * Math.pow(2, 32) + c.getUint32(4), r = 3;
|
|
8548
8548
|
} else {
|
|
8549
|
-
if (
|
|
8549
|
+
if (nn(n) < o)
|
|
8550
8550
|
break;
|
|
8551
|
-
const l =
|
|
8552
|
-
a.enqueue(to(i ? l :
|
|
8551
|
+
const l = rn(n, o);
|
|
8552
|
+
a.enqueue(to(i ? l : tr.decode(l), t)), r = 0;
|
|
8553
8553
|
}
|
|
8554
8554
|
if (o === 0 || o > e) {
|
|
8555
8555
|
a.enqueue(Or);
|
|
@@ -8609,12 +8609,12 @@ te.prototype.listeners = function(e) {
|
|
|
8609
8609
|
te.prototype.hasListeners = function(e) {
|
|
8610
8610
|
return !!this.listeners(e).length;
|
|
8611
8611
|
};
|
|
8612
|
-
const
|
|
8612
|
+
const Nn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (t) => Promise.resolve().then(t) : (t, n) => n(t, 0), we = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), Tf = "arraybuffer";
|
|
8613
8613
|
function Ns(e, ...t) {
|
|
8614
8614
|
return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
|
|
8615
8615
|
}
|
|
8616
8616
|
const Lf = we.setTimeout, Df = we.clearTimeout;
|
|
8617
|
-
function
|
|
8617
|
+
function Kn(e, t) {
|
|
8618
8618
|
t.useNativeTimers ? (e.setTimeoutFn = Lf.bind(we), e.clearTimeoutFn = Df.bind(we)) : (e.setTimeoutFn = we.setTimeout.bind(we), e.clearTimeoutFn = we.clearTimeout.bind(we));
|
|
8619
8619
|
}
|
|
8620
8620
|
const Mf = 1.33;
|
|
@@ -8657,7 +8657,7 @@ class no extends te {
|
|
|
8657
8657
|
* @protected
|
|
8658
8658
|
*/
|
|
8659
8659
|
constructor(t) {
|
|
8660
|
-
super(), this.writable = !1,
|
|
8660
|
+
super(), this.writable = !1, Kn(this, t), this.opts = t, this.query = t.query, this.socket = t.socket, this.supportsBinary = !t.forceBase64;
|
|
8661
8661
|
}
|
|
8662
8662
|
/**
|
|
8663
8663
|
* Emits an error.
|
|
@@ -8897,7 +8897,7 @@ class Me extends te {
|
|
|
8897
8897
|
* @package
|
|
8898
8898
|
*/
|
|
8899
8899
|
constructor(t, n, r) {
|
|
8900
|
-
super(), this.createRequest = t,
|
|
8900
|
+
super(), this.createRequest = t, Kn(this, r), this._opts = r, this._method = r.method || "GET", this._uri = n, this._data = r.data !== void 0 ? r.data : null, this._create();
|
|
8901
8901
|
}
|
|
8902
8902
|
/**
|
|
8903
8903
|
* Creates the XHR object and sends the request.
|
|
@@ -9066,7 +9066,7 @@ class Hf extends no {
|
|
|
9066
9066
|
this.doWrite(r, i);
|
|
9067
9067
|
} catch {
|
|
9068
9068
|
}
|
|
9069
|
-
o &&
|
|
9069
|
+
o && Nn(() => {
|
|
9070
9070
|
this.writable = !0, this.emitReserved("drain");
|
|
9071
9071
|
}, this.setTimeoutFn);
|
|
9072
9072
|
});
|
|
@@ -9086,10 +9086,10 @@ class Hf extends no {
|
|
|
9086
9086
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = Ks()), this.supportsBinary || (n.b64 = 1), this.createUri(t, n);
|
|
9087
9087
|
}
|
|
9088
9088
|
}
|
|
9089
|
-
const
|
|
9089
|
+
const nr = we.WebSocket || we.MozWebSocket;
|
|
9090
9090
|
class qf extends Hf {
|
|
9091
9091
|
createSocket(t, n, r) {
|
|
9092
|
-
return Vs ? new
|
|
9092
|
+
return Vs ? new nr(t, n, r) : n ? new nr(t, n) : new nr(t);
|
|
9093
9093
|
}
|
|
9094
9094
|
doWrite(t, n) {
|
|
9095
9095
|
this.ws.send(n);
|
|
@@ -9130,7 +9130,7 @@ class Wf extends no {
|
|
|
9130
9130
|
for (let n = 0; n < t.length; n++) {
|
|
9131
9131
|
const r = t[n], o = n === t.length - 1;
|
|
9132
9132
|
this._writer.write(r).then(() => {
|
|
9133
|
-
o &&
|
|
9133
|
+
o && Nn(() => {
|
|
9134
9134
|
this.writable = !0, this.emitReserved("drain");
|
|
9135
9135
|
}, this.setTimeoutFn);
|
|
9136
9136
|
});
|
|
@@ -9181,9 +9181,9 @@ function Zf(e, t) {
|
|
|
9181
9181
|
o && (n[o] = i);
|
|
9182
9182
|
}), n;
|
|
9183
9183
|
}
|
|
9184
|
-
const Pr = typeof addEventListener == "function" && typeof removeEventListener == "function",
|
|
9184
|
+
const Pr = typeof addEventListener == "function" && typeof removeEventListener == "function", dn = [];
|
|
9185
9185
|
Pr && addEventListener("offline", () => {
|
|
9186
|
-
|
|
9186
|
+
dn.forEach((e) => e());
|
|
9187
9187
|
}, !1);
|
|
9188
9188
|
class Ge extends te {
|
|
9189
9189
|
/**
|
|
@@ -9197,7 +9197,7 @@ class Ge extends te {
|
|
|
9197
9197
|
const r = _r(t);
|
|
9198
9198
|
n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
|
|
9199
9199
|
} else n.host && (n.hostname = _r(n.host).host);
|
|
9200
|
-
|
|
9200
|
+
Kn(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, n.transports.forEach((r) => {
|
|
9201
9201
|
const o = r.prototype.name;
|
|
9202
9202
|
this.transports.push(o), this._transportsByName[o] = r;
|
|
9203
9203
|
}), this.opts = Object.assign({
|
|
@@ -9220,7 +9220,7 @@ class Ge extends te {
|
|
|
9220
9220
|
this._onClose("transport close", {
|
|
9221
9221
|
description: "network connection lost"
|
|
9222
9222
|
});
|
|
9223
|
-
},
|
|
9223
|
+
}, dn.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
|
|
9224
9224
|
}
|
|
9225
9225
|
/**
|
|
9226
9226
|
* Creates transport of the given type.
|
|
@@ -9369,7 +9369,7 @@ class Ge extends te {
|
|
|
9369
9369
|
if (!this._pingTimeoutTime)
|
|
9370
9370
|
return !0;
|
|
9371
9371
|
const t = Date.now() > this._pingTimeoutTime;
|
|
9372
|
-
return t && (this._pingTimeoutTime = 0,
|
|
9372
|
+
return t && (this._pingTimeoutTime = 0, Nn(() => {
|
|
9373
9373
|
this._onClose("ping timeout");
|
|
9374
9374
|
}, this.setTimeoutFn)), t;
|
|
9375
9375
|
}
|
|
@@ -9448,8 +9448,8 @@ class Ge extends te {
|
|
|
9448
9448
|
_onClose(t, n) {
|
|
9449
9449
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
9450
9450
|
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Pr && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
9451
|
-
const r =
|
|
9452
|
-
r !== -1 &&
|
|
9451
|
+
const r = dn.indexOf(this._offlineEventListener);
|
|
9452
|
+
r !== -1 && dn.splice(r, 1);
|
|
9453
9453
|
}
|
|
9454
9454
|
this.readyState = "closed", this.id = null, this.emitReserved("close", t, n), this.writeBuffer = [], this._prevBufferLen = 0;
|
|
9455
9455
|
}
|
|
@@ -9544,21 +9544,21 @@ const nh = typeof ArrayBuffer == "function", rh = (e) => typeof ArrayBuffer.isVi
|
|
|
9544
9544
|
function ro(e) {
|
|
9545
9545
|
return nh && (e instanceof ArrayBuffer || rh(e)) || oh && e instanceof Blob || ih && e instanceof File;
|
|
9546
9546
|
}
|
|
9547
|
-
function
|
|
9547
|
+
function fn(e, t) {
|
|
9548
9548
|
if (!e || typeof e != "object")
|
|
9549
9549
|
return !1;
|
|
9550
9550
|
if (Array.isArray(e)) {
|
|
9551
9551
|
for (let n = 0, r = e.length; n < r; n++)
|
|
9552
|
-
if (
|
|
9552
|
+
if (fn(e[n]))
|
|
9553
9553
|
return !0;
|
|
9554
9554
|
return !1;
|
|
9555
9555
|
}
|
|
9556
9556
|
if (ro(e))
|
|
9557
9557
|
return !0;
|
|
9558
9558
|
if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
|
|
9559
|
-
return
|
|
9559
|
+
return fn(e.toJSON(), !0);
|
|
9560
9560
|
for (const n in e)
|
|
9561
|
-
if (Object.prototype.hasOwnProperty.call(e, n) &&
|
|
9561
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && fn(e[n]))
|
|
9562
9562
|
return !0;
|
|
9563
9563
|
return !1;
|
|
9564
9564
|
}
|
|
@@ -9632,7 +9632,7 @@ class uh {
|
|
|
9632
9632
|
* @param {Object} obj - packet object
|
|
9633
9633
|
*/
|
|
9634
9634
|
encode(t) {
|
|
9635
|
-
return (t.type === z.EVENT || t.type === z.ACK) &&
|
|
9635
|
+
return (t.type === z.EVENT || t.type === z.ACK) && fn(t) ? this.encodeAsBinary({
|
|
9636
9636
|
type: t.type === z.EVENT ? z.BINARY_EVENT : z.BINARY_ACK,
|
|
9637
9637
|
nsp: t.nsp,
|
|
9638
9638
|
data: t.data,
|
|
@@ -10412,10 +10412,10 @@ class js extends te {
|
|
|
10412
10412
|
}
|
|
10413
10413
|
}
|
|
10414
10414
|
}
|
|
10415
|
-
function
|
|
10415
|
+
function Ot(e) {
|
|
10416
10416
|
e = e || {}, this.ms = e.min || 100, this.max = e.max || 1e4, this.factor = e.factor || 2, this.jitter = e.jitter > 0 && e.jitter <= 1 ? e.jitter : 0, this.attempts = 0;
|
|
10417
10417
|
}
|
|
10418
|
-
|
|
10418
|
+
Ot.prototype.duration = function() {
|
|
10419
10419
|
var e = this.ms * Math.pow(this.factor, this.attempts++);
|
|
10420
10420
|
if (this.jitter) {
|
|
10421
10421
|
var t = Math.random(), n = Math.floor(t * this.jitter * e);
|
|
@@ -10423,22 +10423,22 @@ _t.prototype.duration = function() {
|
|
|
10423
10423
|
}
|
|
10424
10424
|
return Math.min(e, this.max) | 0;
|
|
10425
10425
|
};
|
|
10426
|
-
|
|
10426
|
+
Ot.prototype.reset = function() {
|
|
10427
10427
|
this.attempts = 0;
|
|
10428
10428
|
};
|
|
10429
|
-
|
|
10429
|
+
Ot.prototype.setMin = function(e) {
|
|
10430
10430
|
this.ms = e;
|
|
10431
10431
|
};
|
|
10432
|
-
|
|
10432
|
+
Ot.prototype.setMax = function(e) {
|
|
10433
10433
|
this.max = e;
|
|
10434
10434
|
};
|
|
10435
|
-
|
|
10435
|
+
Ot.prototype.setJitter = function(e) {
|
|
10436
10436
|
this.jitter = e;
|
|
10437
10437
|
};
|
|
10438
10438
|
class Lr extends te {
|
|
10439
10439
|
constructor(t, n) {
|
|
10440
10440
|
var r;
|
|
10441
|
-
super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n,
|
|
10441
|
+
super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, Kn(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((r = n.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Ot({
|
|
10442
10442
|
min: this.reconnectionDelay(),
|
|
10443
10443
|
max: this.reconnectionDelayMax(),
|
|
10444
10444
|
jitter: this.randomizationFactor()
|
|
@@ -10556,7 +10556,7 @@ class Lr extends te {
|
|
|
10556
10556
|
* @private
|
|
10557
10557
|
*/
|
|
10558
10558
|
ondecoded(t) {
|
|
10559
|
-
|
|
10559
|
+
Nn(() => {
|
|
10560
10560
|
this.emitReserved("packet", t);
|
|
10561
10561
|
}, this.setTimeoutFn);
|
|
10562
10562
|
}
|
|
@@ -10673,25 +10673,25 @@ class Lr extends te {
|
|
|
10673
10673
|
this._reconnecting = !1, this.backoff.reset(), this.emitReserved("reconnect", t);
|
|
10674
10674
|
}
|
|
10675
10675
|
}
|
|
10676
|
-
const
|
|
10677
|
-
function
|
|
10676
|
+
const Mt = {};
|
|
10677
|
+
function hn(e, t) {
|
|
10678
10678
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
10679
|
-
const n = th(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s =
|
|
10679
|
+
const n = th(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s = Mt[o] && i in Mt[o].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || s;
|
|
10680
10680
|
let l;
|
|
10681
|
-
return a ? l = new Lr(r, t) : (
|
|
10681
|
+
return a ? l = new Lr(r, t) : (Mt[o] || (Mt[o] = new Lr(r, t)), l = Mt[o]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
|
|
10682
10682
|
}
|
|
10683
|
-
Object.assign(
|
|
10683
|
+
Object.assign(hn, {
|
|
10684
10684
|
Manager: Lr,
|
|
10685
10685
|
Socket: js,
|
|
10686
|
-
io:
|
|
10687
|
-
connect:
|
|
10686
|
+
io: hn,
|
|
10687
|
+
connect: hn
|
|
10688
10688
|
});
|
|
10689
10689
|
class et {
|
|
10690
10690
|
static instance;
|
|
10691
10691
|
constructor() {
|
|
10692
10692
|
}
|
|
10693
10693
|
static init(t) {
|
|
10694
|
-
return et.instance || (et.instance =
|
|
10694
|
+
return et.instance || (et.instance = hn(ja, {
|
|
10695
10695
|
path: "/ws",
|
|
10696
10696
|
withCredentials: !0,
|
|
10697
10697
|
extraHeaders: {
|
|
@@ -10705,23 +10705,23 @@ class et {
|
|
|
10705
10705
|
et.instance || this.init(n).on(t, r);
|
|
10706
10706
|
}
|
|
10707
10707
|
}
|
|
10708
|
-
const Hs = 1e3 * 60 * 60 * 24, [
|
|
10708
|
+
const Hs = 1e3 * 60 * 60 * 24, [Pn, qs] = Gi(
|
|
10709
10709
|
"smarttalks-widget-messages",
|
|
10710
10710
|
{},
|
|
10711
10711
|
Hs
|
|
10712
10712
|
), Ws = () => {
|
|
10713
10713
|
const { widgetId: e } = ie();
|
|
10714
|
-
return
|
|
10714
|
+
return Pn[e()] ?? [];
|
|
10715
10715
|
}, gh = (e) => {
|
|
10716
10716
|
const { widgetId: t } = ie();
|
|
10717
10717
|
qs({
|
|
10718
|
-
...
|
|
10719
|
-
[t()]: [...
|
|
10718
|
+
...Pn,
|
|
10719
|
+
[t()]: [...Pn[t()] ?? [], e]
|
|
10720
10720
|
});
|
|
10721
10721
|
}, ph = () => {
|
|
10722
10722
|
const { widgetId: e } = ie();
|
|
10723
10723
|
qs({
|
|
10724
|
-
...
|
|
10724
|
+
...Pn,
|
|
10725
10725
|
[e()]: []
|
|
10726
10726
|
});
|
|
10727
10727
|
}, [Gs, mh] = Gi(
|
|
@@ -10737,7 +10737,7 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
|
|
|
10737
10737
|
...Gs,
|
|
10738
10738
|
[t()]: e
|
|
10739
10739
|
});
|
|
10740
|
-
}, [yh,
|
|
10740
|
+
}, [yh, rr] = P(!1), [bh, ii] = P(!1), Js = [], si = () => {
|
|
10741
10741
|
Js.forEach((e) => e());
|
|
10742
10742
|
}, vh = (e) => Js.push(e), Dr = (e) => {
|
|
10743
10743
|
const t = yf(e);
|
|
@@ -10760,9 +10760,9 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
|
|
|
10760
10760
|
});
|
|
10761
10761
|
for (const s of i.messages)
|
|
10762
10762
|
Dr(s), ee("onAnswer", s);
|
|
10763
|
-
|
|
10764
|
-
}),
|
|
10765
|
-
console.error(i),
|
|
10763
|
+
rr(!1), bf(i.debug);
|
|
10764
|
+
}), rr(!0), vf(e, t, n()?._id).catch((i) => {
|
|
10765
|
+
console.error(i), rr(!1);
|
|
10766
10766
|
}));
|
|
10767
10767
|
}, xh = () => {
|
|
10768
10768
|
const { chatWidget: e } = ie(), t = Ys();
|
|
@@ -10932,7 +10932,7 @@ const Zs = ({
|
|
|
10932
10932
|
anchor: t = "end"
|
|
10933
10933
|
}) => (() => {
|
|
10934
10934
|
var n = Ah();
|
|
10935
|
-
return
|
|
10935
|
+
return bt(n, `${t === "end" ? "self-end" : "self-start"} pt-1 text-[10px] italic font-light text-slate-600`), A(n, () => new Date(e).toLocaleString([], {
|
|
10936
10936
|
hour: "2-digit",
|
|
10937
10937
|
minute: "2-digit"
|
|
10938
10938
|
})), n;
|
|
@@ -10949,7 +10949,7 @@ const Lh = ({
|
|
|
10949
10949
|
}), null), n;
|
|
10950
10950
|
})();
|
|
10951
10951
|
var Dh = /* @__PURE__ */ I("<span>");
|
|
10952
|
-
const
|
|
10952
|
+
const _t = (e) => {
|
|
10953
10953
|
const [, t] = j(e, ["class", "children"]);
|
|
10954
10954
|
let n = e.children?.toString();
|
|
10955
10955
|
return n && (n = za(Va(n))), (() => {
|
|
@@ -10974,13 +10974,13 @@ const Ih = ({
|
|
|
10974
10974
|
};
|
|
10975
10975
|
return (() => {
|
|
10976
10976
|
var a = Mh(), l = a.firstChild, c = l.firstChild;
|
|
10977
|
-
A(a, y(
|
|
10977
|
+
A(a, y(_t, {
|
|
10978
10978
|
get children() {
|
|
10979
10979
|
return t?.trim();
|
|
10980
10980
|
}
|
|
10981
10981
|
}), l);
|
|
10982
10982
|
var d = n;
|
|
10983
|
-
return typeof d == "function" ? Br(d, c) : n = c, A(c, y(
|
|
10983
|
+
return typeof d == "function" ? Br(d, c) : n = c, A(c, y(yt, {
|
|
10984
10984
|
each: e,
|
|
10985
10985
|
children: (u) => y(Le, {
|
|
10986
10986
|
variant: "outline",
|
|
@@ -10993,7 +10993,7 @@ const Ih = ({
|
|
|
10993
10993
|
return u.label?.trim();
|
|
10994
10994
|
}
|
|
10995
10995
|
})
|
|
10996
|
-
})), oe(() =>
|
|
10996
|
+
})), oe(() => bt(l, `flex items-center justify-center max-w-80 mx-[-1rem] ${o() && "opacity-50"}`)), a;
|
|
10997
10997
|
})();
|
|
10998
10998
|
};
|
|
10999
10999
|
var Rh = /* @__PURE__ */ I('<div class="flex flex-col"><span>'), $h = /* @__PURE__ */ I("<a target=_blank><img><span></span><span>");
|
|
@@ -11002,7 +11002,7 @@ const Fh = ({
|
|
|
11002
11002
|
text: t
|
|
11003
11003
|
}) => (() => {
|
|
11004
11004
|
var n = Rh(), r = n.firstChild;
|
|
11005
|
-
return A(r, () => t?.trim()), A(n, y(
|
|
11005
|
+
return A(r, () => t?.trim()), A(n, y(yt, {
|
|
11006
11006
|
each: e,
|
|
11007
11007
|
children: (o) => (() => {
|
|
11008
11008
|
var i = $h(), s = i.firstChild, a = s.nextSibling, l = a.nextSibling;
|
|
@@ -11036,30 +11036,30 @@ var G = (e) => typeof e == "function" ? e() : e, ai = (e) => requestAnimationFra
|
|
|
11036
11036
|
}, () => {
|
|
11037
11037
|
r(!1);
|
|
11038
11038
|
}];
|
|
11039
|
-
}, li = Bh,
|
|
11039
|
+
}, li = Bh, Wt = (e) => typeof e == "function", zh = ["button", "color", "file", "image", "reset", "submit"], Vh = (e, t) => e === "button" ? !0 : e === "input" && t ? zh.indexOf(t) !== -1 : !1;
|
|
11040
11040
|
function Uh(e) {
|
|
11041
11041
|
const [t, n] = P(e.initialValue), r = () => e.value?.() !== void 0, o = () => r() ? e.value?.() : t();
|
|
11042
11042
|
return [o, (s) => q(() => {
|
|
11043
11043
|
let a;
|
|
11044
|
-
return
|
|
11044
|
+
return Wt(s) ? a = s(o()) : a = s, Object.is(a, o()) || (r() || n(a), e.onChange?.(a)), a;
|
|
11045
11045
|
})];
|
|
11046
11046
|
}
|
|
11047
|
-
var Mr = Uh,
|
|
11048
|
-
if (
|
|
11049
|
-
return
|
|
11047
|
+
var Mr = Uh, gn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
|
|
11048
|
+
if (gn.has(e))
|
|
11049
|
+
return gn.get(e);
|
|
11050
11050
|
const n = fe(t);
|
|
11051
|
-
return
|
|
11051
|
+
return gn.set(e, n), n;
|
|
11052
11052
|
}, so = (e) => {
|
|
11053
|
-
const t =
|
|
11053
|
+
const t = gn.get(e);
|
|
11054
11054
|
if (t)
|
|
11055
11055
|
return ye(t);
|
|
11056
|
-
},
|
|
11056
|
+
}, on = /* @__PURE__ */ new Map(), jh = (e) => {
|
|
11057
11057
|
L(() => {
|
|
11058
11058
|
const t = G(e.style) ?? {}, n = G(e.properties) ?? [], r = {};
|
|
11059
11059
|
for (const i in t)
|
|
11060
11060
|
r[i] = e.element.style[i];
|
|
11061
|
-
const o =
|
|
11062
|
-
o ? o.activeCount++ :
|
|
11061
|
+
const o = on.get(e.key);
|
|
11062
|
+
o ? o.activeCount++ : on.set(e.key, {
|
|
11063
11063
|
activeCount: 1,
|
|
11064
11064
|
originalStyles: r,
|
|
11065
11065
|
properties: n.map((i) => i.key)
|
|
@@ -11067,13 +11067,13 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11067
11067
|
for (const i of n)
|
|
11068
11068
|
e.element.style.setProperty(i.key, i.value);
|
|
11069
11069
|
K(() => {
|
|
11070
|
-
const i =
|
|
11070
|
+
const i = on.get(e.key);
|
|
11071
11071
|
if (i) {
|
|
11072
11072
|
if (i.activeCount !== 1) {
|
|
11073
11073
|
i.activeCount--;
|
|
11074
11074
|
return;
|
|
11075
11075
|
}
|
|
11076
|
-
|
|
11076
|
+
on.delete(e.key);
|
|
11077
11077
|
for (const [s, a] of Object.entries(i.originalStyles))
|
|
11078
11078
|
e.element.style[s] = a;
|
|
11079
11079
|
for (const s of i.properties)
|
|
@@ -11197,7 +11197,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11197
11197
|
});
|
|
11198
11198
|
const a = C(() => n.children), l = () => {
|
|
11199
11199
|
const c = a();
|
|
11200
|
-
return
|
|
11200
|
+
return Wt(c) ? c({
|
|
11201
11201
|
get isLastLayer() {
|
|
11202
11202
|
return s();
|
|
11203
11203
|
}
|
|
@@ -11207,9 +11207,9 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11207
11207
|
}, tg = eg, ng = () => {
|
|
11208
11208
|
const [e, t] = P(!1);
|
|
11209
11209
|
return L(() => t(!0)), e;
|
|
11210
|
-
}, rg = ng, og = (e, t) => (e && (
|
|
11210
|
+
}, rg = ng, og = (e, t) => (e && (Wt(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented), ao = (...e) => e.some((t) => !!t()), ig = (e) => (...t) => {
|
|
11211
11211
|
for (const n of e) n && n(...t);
|
|
11212
|
-
},
|
|
11212
|
+
}, zn = (...e) => ig(e), ae = (e) => e ? "" : void 0, sg = "div", ag = (e) => {
|
|
11213
11213
|
const [t, n] = j(e, ["as"]), r = C(() => t.as ?? sg);
|
|
11214
11214
|
return C(() => {
|
|
11215
11215
|
const i = r();
|
|
@@ -11217,7 +11217,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11217
11217
|
case "function":
|
|
11218
11218
|
return q(() => i(n));
|
|
11219
11219
|
case "string":
|
|
11220
|
-
return y(
|
|
11220
|
+
return y(cn, T({
|
|
11221
11221
|
component: i
|
|
11222
11222
|
}, n));
|
|
11223
11223
|
}
|
|
@@ -11235,7 +11235,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11235
11235
|
return r.as ?? ui;
|
|
11236
11236
|
},
|
|
11237
11237
|
ref(a) {
|
|
11238
|
-
var l =
|
|
11238
|
+
var l = zn(n, r.ref);
|
|
11239
11239
|
typeof l == "function" && l(a);
|
|
11240
11240
|
},
|
|
11241
11241
|
get type() {
|
|
@@ -11245,7 +11245,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11245
11245
|
return s() ? void 0 : "button";
|
|
11246
11246
|
}
|
|
11247
11247
|
}, o));
|
|
11248
|
-
}, fg = dg, hg = 'a[href]:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])',
|
|
11248
|
+
}, fg = dg, hg = 'a[href]:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', or = "focusTrap.initialFocus", ir = "focusTrap.finalFocus", di = {
|
|
11249
11249
|
bubbles: !1,
|
|
11250
11250
|
cancelable: !0
|
|
11251
11251
|
}, gg = (e) => {
|
|
@@ -11262,7 +11262,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11262
11262
|
});
|
|
11263
11263
|
let s = null;
|
|
11264
11264
|
const a = () => {
|
|
11265
|
-
|
|
11265
|
+
Zn(() => {
|
|
11266
11266
|
l(J(t.element)), (document.activeElement === null || document.activeElement === document.body) && c(J(t.element));
|
|
11267
11267
|
});
|
|
11268
11268
|
};
|
|
@@ -11308,10 +11308,10 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11308
11308
|
element: p
|
|
11309
11309
|
}) => p));
|
|
11310
11310
|
}, c = (f) => {
|
|
11311
|
-
|
|
11311
|
+
Zn(() => {
|
|
11312
11312
|
const g = J(t.initialFocusElement) ?? o() ?? f, p = t.onInitialFocus;
|
|
11313
11313
|
let b;
|
|
11314
|
-
p && (b = new CustomEvent(
|
|
11314
|
+
p && (b = new CustomEvent(or, di), f.addEventListener(or, p), f.dispatchEvent(b), f.removeEventListener(or, p)), b?.defaultPrevented !== !0 && g.focus();
|
|
11315
11315
|
});
|
|
11316
11316
|
}, d = (f) => {
|
|
11317
11317
|
f.key === "Tab" && f.shiftKey && (f.preventDefault(), i().focus());
|
|
@@ -11320,14 +11320,14 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11320
11320
|
}, h = (f) => {
|
|
11321
11321
|
f.key === "Tab" && f.preventDefault();
|
|
11322
11322
|
}, m = (f) => {
|
|
11323
|
-
|
|
11323
|
+
Zn(() => {
|
|
11324
11324
|
if (!J(t.restoreFocus)) return;
|
|
11325
11325
|
const p = J(t.finalFocusElement) ?? s;
|
|
11326
11326
|
if (!p)
|
|
11327
11327
|
return;
|
|
11328
11328
|
let b;
|
|
11329
11329
|
const v = t.onFinalFocus;
|
|
11330
|
-
v && (b = new CustomEvent(
|
|
11330
|
+
v && (b = new CustomEvent(ir, di), f.addEventListener(ir, v), f.dispatchEvent(b), f.removeEventListener(ir, v)), b?.defaultPrevented !== !0 && p.focus();
|
|
11331
11331
|
});
|
|
11332
11332
|
};
|
|
11333
11333
|
}, pg = gg, mg = pg, yg = (e) => {
|
|
@@ -11361,7 +11361,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11361
11361
|
state: r,
|
|
11362
11362
|
setState: o
|
|
11363
11363
|
};
|
|
11364
|
-
}, bg = yg, fi = bg, vg = fe(), wg = (e) => e ?
|
|
11364
|
+
}, bg = yg, fi = bg, vg = fe(), wg = (e) => e ? Bn(`dialog-${e}`) : vg, ea = fe(), xg = (e) => e ? Bn(`dialog-internal-${e}`) : ea, Pt = (e) => {
|
|
11365
11365
|
if (!e) {
|
|
11366
11366
|
const n = ye(ea);
|
|
11367
11367
|
if (!n)
|
|
@@ -11373,7 +11373,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11373
11373
|
throw new Error(`[corvu]: Dialog context with id "${e}" not found. Make sure to wrap Dialog components in <Dialog.Root contextId="${e}">`);
|
|
11374
11374
|
return t;
|
|
11375
11375
|
}, Sg = "div", Eg = (e) => {
|
|
11376
|
-
const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = C(() =>
|
|
11376
|
+
const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = C(() => Pt(t.contextId)), o = () => ao(
|
|
11377
11377
|
r().open,
|
|
11378
11378
|
// eslint-disable-next-line solid/reactivity
|
|
11379
11379
|
() => t.forceMount,
|
|
@@ -11422,7 +11422,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11422
11422
|
get children() {
|
|
11423
11423
|
return y(lo, T({
|
|
11424
11424
|
ref(l) {
|
|
11425
|
-
var c =
|
|
11425
|
+
var c = zn(r().setContentRef, t.ref);
|
|
11426
11426
|
typeof c == "function" && c(l);
|
|
11427
11427
|
},
|
|
11428
11428
|
get as() {
|
|
@@ -11471,7 +11471,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11471
11471
|
}
|
|
11472
11472
|
});
|
|
11473
11473
|
}, kg = Eg, Cg = "div", Og = (e) => {
|
|
11474
|
-
const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-overlay"]), r = C(() =>
|
|
11474
|
+
const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-overlay"]), r = C(() => Pt(t.contextId)), o = () => ao(
|
|
11475
11475
|
r().open,
|
|
11476
11476
|
// eslint-disable-next-line solid/reactivity
|
|
11477
11477
|
() => t.forceMount,
|
|
@@ -11494,7 +11494,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11494
11494
|
return t.as ?? Cg;
|
|
11495
11495
|
},
|
|
11496
11496
|
ref(a) {
|
|
11497
|
-
var l =
|
|
11497
|
+
var l = zn(r().setOverlayRef, t.ref);
|
|
11498
11498
|
typeof l == "function" && l(a);
|
|
11499
11499
|
},
|
|
11500
11500
|
"aria-hidden": "true",
|
|
@@ -11525,7 +11525,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11525
11525
|
}
|
|
11526
11526
|
});
|
|
11527
11527
|
}, _g = Og, Pg = (e) => {
|
|
11528
|
-
const [t, n] = j(e, ["forceMount", "contextId", "children"]), r = C(() =>
|
|
11528
|
+
const [t, n] = j(e, ["forceMount", "contextId", "children"]), r = C(() => Pt(t.contextId)), o = () => ao(
|
|
11529
11529
|
r().open,
|
|
11530
11530
|
// eslint-disable-next-line solid/reactivity
|
|
11531
11531
|
() => t.forceMount,
|
|
@@ -11554,16 +11554,16 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11554
11554
|
})();
|
|
11555
11555
|
}
|
|
11556
11556
|
});
|
|
11557
|
-
}, Ag = Pg,
|
|
11557
|
+
}, Ag = Pg, sr = !0, Tg = (e) => {
|
|
11558
11558
|
const t = T({
|
|
11559
11559
|
role: "dialog",
|
|
11560
11560
|
initialOpen: !1,
|
|
11561
11561
|
modal: !0,
|
|
11562
11562
|
closeOnEscapeKeyDown: !0,
|
|
11563
|
-
closeOnOutsidePointer: () => !!(e.modal ??
|
|
11563
|
+
closeOnOutsidePointer: () => !!(e.modal ?? sr),
|
|
11564
11564
|
closeOnOutsidePointerStrategy: "pointerup",
|
|
11565
|
-
noOutsidePointerEvents: () => !!(e.modal ??
|
|
11566
|
-
preventScroll: () => !!(e.modal ??
|
|
11565
|
+
noOutsidePointerEvents: () => !!(e.modal ?? sr),
|
|
11566
|
+
preventScroll: () => !!(e.modal ?? sr),
|
|
11567
11567
|
hideScrollbar: !0,
|
|
11568
11568
|
preventScrollbarShift: !0,
|
|
11569
11569
|
preventScrollbarShiftMode: "padding",
|
|
@@ -11679,7 +11679,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11679
11679
|
}
|
|
11680
11680
|
}, w = Qs(() => t.children), x = () => {
|
|
11681
11681
|
const k = w()();
|
|
11682
|
-
return
|
|
11682
|
+
return Wt(k) ? k(v) : k;
|
|
11683
11683
|
};
|
|
11684
11684
|
return C(() => {
|
|
11685
11685
|
const k = wg(t.contextId), E = xg(t.contextId);
|
|
@@ -11758,10 +11758,10 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11758
11758
|
});
|
|
11759
11759
|
});
|
|
11760
11760
|
}, Lg = Tg, Dg = "button", Mg = (e) => {
|
|
11761
|
-
const [t, n] = j(e, ["as", "contextId", "ref", "onClick", "data-corvu-dialog-trigger"]), r = C(() =>
|
|
11761
|
+
const [t, n] = j(e, ["as", "contextId", "ref", "onClick", "data-corvu-dialog-trigger"]), r = C(() => Pt(t.contextId));
|
|
11762
11762
|
return y(fg, T({
|
|
11763
11763
|
ref(i) {
|
|
11764
|
-
var s =
|
|
11764
|
+
var s = zn(r().setTriggerRef, t.ref);
|
|
11765
11765
|
typeof s == "function" && s(i);
|
|
11766
11766
|
},
|
|
11767
11767
|
get as() {
|
|
@@ -11787,7 +11787,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11787
11787
|
return t.hasOwnProperty("data-corvu-dialog-trigger") ? t["data-corvu-dialog-trigger"] : "";
|
|
11788
11788
|
}
|
|
11789
11789
|
}, n));
|
|
11790
|
-
}, Ig = Mg,
|
|
11790
|
+
}, Ig = Mg, sn = (e) => typeof e == "function" ? e() : e, hi = (e) => requestAnimationFrame(() => requestAnimationFrame(e));
|
|
11791
11791
|
function Rg(e) {
|
|
11792
11792
|
const t = T({
|
|
11793
11793
|
enabled: !0,
|
|
@@ -11795,7 +11795,7 @@ function Rg(e) {
|
|
|
11795
11795
|
}, e), [n, r] = P(!1), [o, i] = P(null);
|
|
11796
11796
|
let s = null;
|
|
11797
11797
|
L(() => {
|
|
11798
|
-
const c =
|
|
11798
|
+
const c = sn(t.element), d = sn(t.enabled);
|
|
11799
11799
|
if (!c || !d) return;
|
|
11800
11800
|
const u = new ResizeObserver(a);
|
|
11801
11801
|
u.observe(c), c.addEventListener("transitionend", l), K(() => {
|
|
@@ -11804,19 +11804,19 @@ function Rg(e) {
|
|
|
11804
11804
|
});
|
|
11805
11805
|
const a = ([c]) => {
|
|
11806
11806
|
if (n()) return;
|
|
11807
|
-
const d = c.target, u = [d.offsetWidth, d.offsetHeight], h =
|
|
11807
|
+
const d = c.target, u = [d.offsetWidth, d.offsetHeight], h = sn(t.dimension);
|
|
11808
11808
|
h === "both" ? s ? s[0] !== u[0] && s[1] !== u[1] && (Oe(() => {
|
|
11809
11809
|
i(s), r(!0);
|
|
11810
11810
|
}), hi(() => {
|
|
11811
11811
|
i(u), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11812
|
-
})) : s = u : s ?
|
|
11813
|
-
i(
|
|
11812
|
+
})) : s = u : s ? an(h, s) !== an(h, u) && (Oe(() => {
|
|
11813
|
+
i(an(h, s)), r(!0);
|
|
11814
11814
|
}), hi(() => {
|
|
11815
|
-
i(
|
|
11815
|
+
i(an(h, u)), parseFloat(getComputedStyle(c.target).transitionDuration) === 0 && l();
|
|
11816
11816
|
})) : s = u;
|
|
11817
11817
|
}, l = () => {
|
|
11818
11818
|
if (!n()) return;
|
|
11819
|
-
const c =
|
|
11819
|
+
const c = sn(t.element);
|
|
11820
11820
|
c ? s = [c.offsetWidth, c.offsetHeight] : s = null, Oe(() => {
|
|
11821
11821
|
r(!1), i(null);
|
|
11822
11822
|
});
|
|
@@ -11826,7 +11826,7 @@ function Rg(e) {
|
|
|
11826
11826
|
transitionSize: o
|
|
11827
11827
|
};
|
|
11828
11828
|
}
|
|
11829
|
-
var
|
|
11829
|
+
var an = (e, t) => {
|
|
11830
11830
|
switch (e) {
|
|
11831
11831
|
case "width":
|
|
11832
11832
|
return t[0];
|
|
@@ -11873,7 +11873,7 @@ var Bg = (e, t) => {
|
|
|
11873
11873
|
}, Ug = (e) => y(Ig, T({
|
|
11874
11874
|
"data-corvu-dialog-trigger": void 0,
|
|
11875
11875
|
"data-corvu-drawer-trigger": ""
|
|
11876
|
-
}, e)), ta = fe(), jg = (e) => e ?
|
|
11876
|
+
}, e)), ta = fe(), jg = (e) => e ? Bn(`drawer-${e}`) : ta, Hg = (e) => {
|
|
11877
11877
|
if (!e) {
|
|
11878
11878
|
const n = ye(ta);
|
|
11879
11879
|
if (!n)
|
|
@@ -11884,7 +11884,7 @@ var Bg = (e, t) => {
|
|
|
11884
11884
|
if (!t)
|
|
11885
11885
|
throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
|
|
11886
11886
|
return t;
|
|
11887
|
-
}, na = fe(), qg = (e) => e ?
|
|
11887
|
+
}, na = fe(), qg = (e) => e ? Bn(`drawer-internal-${e}`) : na, ra = (e) => {
|
|
11888
11888
|
if (!e) {
|
|
11889
11889
|
const n = ye(na);
|
|
11890
11890
|
if (!n)
|
|
@@ -11899,16 +11899,16 @@ var Bg = (e, t) => {
|
|
|
11899
11899
|
if (n === void 0 || r === void 0)
|
|
11900
11900
|
return {
|
|
11901
11901
|
value: e,
|
|
11902
|
-
offset:
|
|
11902
|
+
offset: ln(e, t)
|
|
11903
11903
|
};
|
|
11904
|
-
const o = r[n - 1] ?
|
|
11904
|
+
const o = r[n - 1] ? ln(r[n - 1], t) : void 0, i = r[n] ? ln(r[n], t) : void 0;
|
|
11905
11905
|
return {
|
|
11906
11906
|
value: e,
|
|
11907
|
-
offset:
|
|
11907
|
+
offset: ln(e, t),
|
|
11908
11908
|
lowerBreakPoint: i,
|
|
11909
11909
|
upperBreakPoint: o
|
|
11910
11910
|
};
|
|
11911
|
-
},
|
|
11911
|
+
}, ln = (e, t) => {
|
|
11912
11912
|
if (typeof e == "number") return t - e * t;
|
|
11913
11913
|
if (!e.endsWith("px"))
|
|
11914
11914
|
throw new Error(`[corvu] Snap and break points must be a number or a string ending with 'px'. Got ${e}`);
|
|
@@ -12060,9 +12060,9 @@ var Bg = (e, t) => {
|
|
|
12060
12060
|
return n.transitionResize;
|
|
12061
12061
|
}
|
|
12062
12062
|
}, ne = Qs(() => n.children), W = (F) => {
|
|
12063
|
-
c(
|
|
12063
|
+
c(Pt(n.contextId));
|
|
12064
12064
|
const B = ne()();
|
|
12065
|
-
if (
|
|
12065
|
+
if (Wt(B)) {
|
|
12066
12066
|
const Z = T(F, M);
|
|
12067
12067
|
return B(Z);
|
|
12068
12068
|
}
|
|
@@ -12142,7 +12142,7 @@ var Bg = (e, t) => {
|
|
|
12142
12142
|
}, Jg = Xg, Zg = (e) => {
|
|
12143
12143
|
const [t, n] = j(e, ["contextId", "style"]);
|
|
12144
12144
|
let r = !1, o = null, i = [0, 0], s, a = 0;
|
|
12145
|
-
const l = C(() => ra(t.contextId)), c = C(() =>
|
|
12145
|
+
const l = C(() => ra(t.contextId)), c = C(() => Pt(t.contextId)), d = C(() => l().snapPoints().map((w, x) => oa(w, l().drawerSize(), x, l().breakPoints()))), u = C(() => {
|
|
12146
12146
|
switch (l().side()) {
|
|
12147
12147
|
case "top":
|
|
12148
12148
|
return `translate3d(0, ${-l().translate()}px, 0)`;
|
|
@@ -12352,7 +12352,7 @@ const hp = ({
|
|
|
12352
12352
|
};
|
|
12353
12353
|
return (() => {
|
|
12354
12354
|
var h = up(), m = h.firstChild;
|
|
12355
|
-
return A(h, y(
|
|
12355
|
+
return A(h, y(_t, {
|
|
12356
12356
|
get children() {
|
|
12357
12357
|
return t?.trim();
|
|
12358
12358
|
}
|
|
@@ -12378,11 +12378,11 @@ const hp = ({
|
|
|
12378
12378
|
return A(f, () => n?.trim() ?? gt("selectOption")), f;
|
|
12379
12379
|
})(), (() => {
|
|
12380
12380
|
var f = cp();
|
|
12381
|
-
return A(f, y(
|
|
12381
|
+
return A(f, y(yt, {
|
|
12382
12382
|
each: e,
|
|
12383
12383
|
children: (g) => (() => {
|
|
12384
12384
|
var p = dp(), b = p.firstChild;
|
|
12385
|
-
return A(b, () => g.label?.trim() ?? ""), A(p, y(
|
|
12385
|
+
return A(b, () => g.label?.trim() ?? ""), A(p, y(yt, {
|
|
12386
12386
|
get each() {
|
|
12387
12387
|
return g.items;
|
|
12388
12388
|
},
|
|
@@ -12432,7 +12432,7 @@ const hp = ({
|
|
|
12432
12432
|
}
|
|
12433
12433
|
})];
|
|
12434
12434
|
}
|
|
12435
|
-
})), oe(() =>
|
|
12435
|
+
})), oe(() => bt(m, o() ? "opacity-50" : "")), h;
|
|
12436
12436
|
})();
|
|
12437
12437
|
};
|
|
12438
12438
|
var gp = /* @__PURE__ */ I("<audio controls preload=auto class=h-8><source type=audio/mpeg><source type=audio/ogg>Your browser does not support the audio element.");
|
|
@@ -12451,7 +12451,7 @@ const yp = (e) => (() => {
|
|
|
12451
12451
|
var t = mp(), n = t.firstChild, r = n.firstChild;
|
|
12452
12452
|
return A(n, y(ff, {
|
|
12453
12453
|
class: "size-10"
|
|
12454
|
-
}), r), A(r, () => e.filename?.trim()), A(t, y(
|
|
12454
|
+
}), r), A(r, () => e.filename?.trim()), A(t, y(_t, {
|
|
12455
12455
|
get children() {
|
|
12456
12456
|
return e.text?.trim();
|
|
12457
12457
|
}
|
|
@@ -12460,7 +12460,7 @@ const yp = (e) => (() => {
|
|
|
12460
12460
|
var bp = /* @__PURE__ */ I('<div class="flex flex-col space-y-2"><a class="object-contain hover:brightness-50 transition-all duration-300"target=_blank><img class="w-full h-auto rounded-md">');
|
|
12461
12461
|
const vp = (e) => (() => {
|
|
12462
12462
|
var t = bp(), n = t.firstChild, r = n.firstChild;
|
|
12463
|
-
return A(t, y(
|
|
12463
|
+
return A(t, y(_t, {
|
|
12464
12464
|
get children() {
|
|
12465
12465
|
return e.text?.trim();
|
|
12466
12466
|
}
|
|
@@ -12476,7 +12476,7 @@ const vp = (e) => (() => {
|
|
|
12476
12476
|
var wp = /* @__PURE__ */ I('<div class="flex flex-col space-y-2"><video controls preload=auto class="size-full rounded-md"><source type=video/mp4><source type=video/ogg>Your browser does not support the video element.');
|
|
12477
12477
|
const xp = (e) => (() => {
|
|
12478
12478
|
var t = wp(), n = t.firstChild, r = n.firstChild, o = r.nextSibling;
|
|
12479
|
-
return A(t, y(
|
|
12479
|
+
return A(t, y(_t, {
|
|
12480
12480
|
get children() {
|
|
12481
12481
|
return e.text?.trim();
|
|
12482
12482
|
}
|
|
@@ -12491,7 +12491,7 @@ const xp = (e) => (() => {
|
|
|
12491
12491
|
var Sp = /* @__PURE__ */ I("<div>Media type not supported");
|
|
12492
12492
|
const ia = (e) => e.type === "image" ? y(vp, e) : e.type === "audio" ? y(pp, e) : e.type === "document" ? y(yp, e) : e.type === "video" ? y(xp, e) : Sp(), Rr = ({
|
|
12493
12493
|
text: e
|
|
12494
|
-
}) => y(
|
|
12494
|
+
}) => y(_t, {
|
|
12495
12495
|
get children() {
|
|
12496
12496
|
return e?.trim();
|
|
12497
12497
|
}
|
|
@@ -12550,70 +12550,51 @@ function Mp(e) {
|
|
|
12550
12550
|
c: '<path d="m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34Z"/>'
|
|
12551
12551
|
}, e);
|
|
12552
12552
|
}
|
|
12553
|
-
function
|
|
12553
|
+
function ar(e) {
|
|
12554
12554
|
return Se({
|
|
12555
12555
|
a: { viewBox: "0 0 512 512" },
|
|
12556
12556
|
c: '<path d="M256 464c-114.69 0-208-93.31-208-208S141.31 48 256 48s208 93.31 208 208-93.31 208-208 208Z"/>'
|
|
12557
12557
|
}, e);
|
|
12558
12558
|
}
|
|
12559
|
-
var Ip = /* @__PURE__ */ I('<
|
|
12560
|
-
const Rp = () => (() => {
|
|
12561
|
-
var e = Ip(), t = e.firstChild;
|
|
12562
|
-
return A(t, y(yt, {
|
|
12563
|
-
class: "size-2 animate-bounce"
|
|
12564
|
-
}), null), A(t, y(yt, {
|
|
12565
|
-
class: "size-2 animate-bounce delay-150"
|
|
12566
|
-
}), null), A(t, y(yt, {
|
|
12567
|
-
class: "size-2 animate-bounce delay-300"
|
|
12568
|
-
}), null), e;
|
|
12569
|
-
})();
|
|
12570
|
-
var $p = /* @__PURE__ */ I('<main class="flex-grow p-4 overflow-y-auto flex flex-col items-center scroll-smooth relative">'), Fp = /* @__PURE__ */ I("<div>");
|
|
12559
|
+
var Ip = /* @__PURE__ */ I('<main class="flex-grow p-4 overflow-y-auto flex flex-col items-center scroll-smooth relative">'), Rp = /* @__PURE__ */ I("<div>");
|
|
12571
12560
|
const co = () => {
|
|
12572
12561
|
let e;
|
|
12573
12562
|
const {
|
|
12574
12563
|
getMessages: t,
|
|
12575
12564
|
onMessage: n,
|
|
12576
|
-
|
|
12577
|
-
clearMessages: o
|
|
12565
|
+
clearMessages: r
|
|
12578
12566
|
} = Qe(), {
|
|
12579
|
-
onOpen:
|
|
12580
|
-
} = Ui(),
|
|
12567
|
+
onOpen: o
|
|
12568
|
+
} = Ui(), i = (s = 100) => {
|
|
12581
12569
|
setTimeout(() => {
|
|
12582
12570
|
e?.scrollTo(0, e.scrollHeight);
|
|
12583
|
-
},
|
|
12571
|
+
}, s);
|
|
12584
12572
|
};
|
|
12585
12573
|
return se("reset", () => {
|
|
12586
|
-
|
|
12587
|
-
}),
|
|
12588
|
-
|
|
12589
|
-
}), n(
|
|
12590
|
-
var
|
|
12591
|
-
return typeof
|
|
12574
|
+
r();
|
|
12575
|
+
}), Tn(() => {
|
|
12576
|
+
i(200);
|
|
12577
|
+
}), n(i), o(() => i(200)), (() => {
|
|
12578
|
+
var s = Ip(), a = e;
|
|
12579
|
+
return typeof a == "function" ? Br(a, s) : e = s, A(s, y(yt, {
|
|
12592
12580
|
get each() {
|
|
12593
12581
|
return t();
|
|
12594
12582
|
},
|
|
12595
12583
|
get fallback() {
|
|
12596
12584
|
return (() => {
|
|
12597
|
-
var
|
|
12598
|
-
return A(
|
|
12585
|
+
var l = Rp();
|
|
12586
|
+
return A(l, () => gt("emptyMessages")), l;
|
|
12599
12587
|
})();
|
|
12600
12588
|
},
|
|
12601
|
-
children: (
|
|
12602
|
-
})
|
|
12603
|
-
get when() {
|
|
12604
|
-
return r();
|
|
12605
|
-
},
|
|
12606
|
-
get children() {
|
|
12607
|
-
return y(Rp, {});
|
|
12608
|
-
}
|
|
12609
|
-
}), null), a;
|
|
12589
|
+
children: (l) => y(Dp, l)
|
|
12590
|
+
})), s;
|
|
12610
12591
|
})();
|
|
12611
12592
|
};
|
|
12612
|
-
var
|
|
12613
|
-
const
|
|
12593
|
+
var $p = /* @__PURE__ */ I("<textarea>");
|
|
12594
|
+
const Fp = (e) => {
|
|
12614
12595
|
const [, t] = j(e, ["class"]);
|
|
12615
12596
|
return (() => {
|
|
12616
|
-
var n =
|
|
12597
|
+
var n = $p();
|
|
12617
12598
|
return it(n, T({
|
|
12618
12599
|
get class() {
|
|
12619
12600
|
return Ze("flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e.class);
|
|
@@ -12621,19 +12602,19 @@ const Kp = (e) => {
|
|
|
12621
12602
|
}, t), !1, !1), n;
|
|
12622
12603
|
})();
|
|
12623
12604
|
};
|
|
12624
|
-
var
|
|
12625
|
-
const
|
|
12626
|
-
var t =
|
|
12605
|
+
var Np = /* @__PURE__ */ I('<svg viewBox="0 0 72 72"fill=none xmlns=http://www.w3.org/2000/svg><path d="M50.3241 0H21.6759C9.69907 0 0 9.68892 0 21.6519V50.3481C0 62.3111 9.69907 72 21.6759 72H67.9815C70.2546 72 72 70.1845 72 67.9105V21.6519C72 9.68892 62.3009 0 50.3241 0Z"fill=#212431></path><path d="M28.9868 56.1046H24.7249C21.9596 56.1046 19.7217 53.8671 19.7217 51.1129V45.9126C19.7217 44.244 18.3676 42.8929 16.6952 42.8929H13.6924C11.8108 42.8929 10.2857 41.3712 10.2857 39.494V37.0622C10.2857 35.185 11.8108 33.6633 13.6924 33.6633H25.3758C27.3713 33.6633 28.9868 35.275 28.9868 37.2613V56.1046Z"fill=white></path><path d="M61.7142 26.3227C61.7142 28.1782 60.2059 29.6992 58.3661 29.6992H46.2955V56.1042H37.629C34.9627 56.1042 32.8054 53.9238 32.8054 51.2395V36.1839C32.8054 32.6002 29.9243 29.6992 26.3755 29.6992H20.1791C18.3393 29.6992 16.8311 28.1782 16.8311 26.3227V19.2729C16.8311 17.408 18.33 15.8964 20.1791 15.8964H58.3661C60.2153 15.8964 61.7142 17.408 61.7142 19.2729V26.3227Z"fill=white>');
|
|
12606
|
+
const Kp = (e) => (() => {
|
|
12607
|
+
var t = Np();
|
|
12627
12608
|
return it(t, e, !0, !0), t;
|
|
12628
12609
|
})();
|
|
12629
|
-
var
|
|
12630
|
-
const
|
|
12631
|
-
var e =
|
|
12632
|
-
return A(e, y(
|
|
12610
|
+
var Bp = /* @__PURE__ */ I('<div class="absolute flex items-center justify-center left-1/2 transform -translate-x-1/2 bottom-0 pb-1"><span class="font-semibold text-xs text-gray-600 ml-1">SmartTalks.ai');
|
|
12611
|
+
const zp = () => (() => {
|
|
12612
|
+
var e = Bp(), t = e.firstChild;
|
|
12613
|
+
return A(e, y(Kp, {
|
|
12633
12614
|
height: 15
|
|
12634
12615
|
}), t), e;
|
|
12635
12616
|
})();
|
|
12636
|
-
var
|
|
12617
|
+
var Vp = /* @__PURE__ */ I('<footer class="relative flex-none p-4 bg-white min-h-16 flex space-x-1 pb-6">');
|
|
12637
12618
|
const uo = () => {
|
|
12638
12619
|
const {
|
|
12639
12620
|
pushMessage: e
|
|
@@ -12645,8 +12626,8 @@ const uo = () => {
|
|
|
12645
12626
|
return se("setInput", (i) => {
|
|
12646
12627
|
i && n(i);
|
|
12647
12628
|
}), (() => {
|
|
12648
|
-
var i =
|
|
12649
|
-
return A(i, y(
|
|
12629
|
+
var i = Vp();
|
|
12630
|
+
return A(i, y(Fp, {
|
|
12650
12631
|
get placeholder() {
|
|
12651
12632
|
return gt("inputPlaceholder");
|
|
12652
12633
|
},
|
|
@@ -12669,11 +12650,11 @@ const uo = () => {
|
|
|
12669
12650
|
size: 24
|
|
12670
12651
|
});
|
|
12671
12652
|
}
|
|
12672
|
-
}), null), A(i, y(
|
|
12653
|
+
}), null), A(i, y(zp, {}), null), i;
|
|
12673
12654
|
})();
|
|
12674
12655
|
};
|
|
12675
|
-
var
|
|
12676
|
-
const
|
|
12656
|
+
var Up = /* @__PURE__ */ I('<div id=smarttalks-widget class="rounded-md shadow-xl h-[85vh] w-[90vw] md:h-[min(100vh,500px)] md:w-[min(100vw,400px)] overflow-hidden bg-background text-foreground flex flex-col relative">'), jp = /* @__PURE__ */ I("<span class=sr-only>Close"), Hp = /* @__PURE__ */ I("<div>"), qp = /* @__PURE__ */ I("<span class=sr-only>Open"), Wp = /* @__PURE__ */ I("<span>"), Gp = /* @__PURE__ */ I('<div class="animate-pulse flex p-1">');
|
|
12657
|
+
const Yp = ({
|
|
12677
12658
|
children: e,
|
|
12678
12659
|
openIcon: t
|
|
12679
12660
|
}) => {
|
|
@@ -12700,13 +12681,13 @@ const Jp = ({
|
|
|
12700
12681
|
}), se("toggle", () => {
|
|
12701
12682
|
r();
|
|
12702
12683
|
}), (() => {
|
|
12703
|
-
var u =
|
|
12684
|
+
var u = Hp();
|
|
12704
12685
|
return A(u, y(Q, {
|
|
12705
12686
|
get when() {
|
|
12706
12687
|
return n();
|
|
12707
12688
|
},
|
|
12708
12689
|
get children() {
|
|
12709
|
-
var h =
|
|
12690
|
+
var h = Up();
|
|
12710
12691
|
return A(h, e), h;
|
|
12711
12692
|
}
|
|
12712
12693
|
}), null), A(u, y(Q, {
|
|
@@ -12720,24 +12701,24 @@ const Jp = ({
|
|
|
12720
12701
|
"aria-label": "Open",
|
|
12721
12702
|
type: "button",
|
|
12722
12703
|
get children() {
|
|
12723
|
-
return [t,
|
|
12704
|
+
return [t, qp(), y(Q, {
|
|
12724
12705
|
get when() {
|
|
12725
12706
|
return s()?.balloonMessage;
|
|
12726
12707
|
},
|
|
12727
12708
|
get children() {
|
|
12728
|
-
var h =
|
|
12709
|
+
var h = Wp();
|
|
12729
12710
|
return A(h, y(Q, {
|
|
12730
12711
|
get when() {
|
|
12731
12712
|
return !a();
|
|
12732
12713
|
},
|
|
12733
12714
|
get fallback() {
|
|
12734
12715
|
return (() => {
|
|
12735
|
-
var m =
|
|
12736
|
-
return A(m, y(
|
|
12716
|
+
var m = Gp();
|
|
12717
|
+
return A(m, y(ar, {
|
|
12737
12718
|
class: "size-2 animate-bounce"
|
|
12738
|
-
}), null), A(m, y(
|
|
12719
|
+
}), null), A(m, y(ar, {
|
|
12739
12720
|
class: "size-2 animate-bounce delay-150"
|
|
12740
|
-
}), null), A(m, y(
|
|
12721
|
+
}), null), A(m, y(ar, {
|
|
12741
12722
|
class: "size-2 animate-bounce delay-300"
|
|
12742
12723
|
}), null), m;
|
|
12743
12724
|
})();
|
|
@@ -12745,7 +12726,7 @@ const Jp = ({
|
|
|
12745
12726
|
get children() {
|
|
12746
12727
|
return s()?.balloonMessage;
|
|
12747
12728
|
}
|
|
12748
|
-
})), oe(() =>
|
|
12729
|
+
})), oe(() => bt(h, "absolute -top-2 bg-primary text-primary-foreground px-1 py-0.5 pointer-events-none rounded truncate" + (s()?.style.position === "left" ? " left-9" : " right-9"))), h;
|
|
12749
12730
|
}
|
|
12750
12731
|
})];
|
|
12751
12732
|
}
|
|
@@ -12760,33 +12741,33 @@ const Jp = ({
|
|
|
12760
12741
|
get children() {
|
|
12761
12742
|
return [y(Mp, {
|
|
12762
12743
|
size: 30
|
|
12763
|
-
}),
|
|
12744
|
+
}), jp()];
|
|
12764
12745
|
}
|
|
12765
12746
|
});
|
|
12766
12747
|
}
|
|
12767
12748
|
}), null), oe((h) => {
|
|
12768
12749
|
var m = "max-h-full max-w-full md:max-h-[90%] md:max-w-[90%] fixed bottom-5 flex flex-col space-y-2" + (s()?.style.position === "left" ? " items-start" : " items-end"), f = d();
|
|
12769
|
-
return m !== h.e &&
|
|
12750
|
+
return m !== h.e && bt(u, h.e = m), h.t = Dn(u, f, h.t), h;
|
|
12770
12751
|
}, {
|
|
12771
12752
|
e: void 0,
|
|
12772
12753
|
t: void 0
|
|
12773
12754
|
}), u;
|
|
12774
12755
|
})();
|
|
12775
12756
|
};
|
|
12776
|
-
var
|
|
12777
|
-
const
|
|
12757
|
+
var Xp = /* @__PURE__ */ I('<div id=smarttalks-widget class="h-screen w-full overflow-hidden bg-background text-foreground flex flex-col rounded-md">');
|
|
12758
|
+
const Jp = ({
|
|
12778
12759
|
children: e
|
|
12779
12760
|
}) => {
|
|
12780
12761
|
const {
|
|
12781
12762
|
chatWidget: t
|
|
12782
12763
|
} = ie(), n = {};
|
|
12783
12764
|
return t()?.style.width && (n.width = `min(100vw, ${t()?.style.width}px)`), t()?.style.height && (n.height = `min(100vh, ${t()?.style.height}px)`), (() => {
|
|
12784
|
-
var r =
|
|
12785
|
-
return
|
|
12765
|
+
var r = Xp();
|
|
12766
|
+
return Dn(r, n), A(r, e), r;
|
|
12786
12767
|
})();
|
|
12787
12768
|
};
|
|
12788
|
-
var
|
|
12789
|
-
const
|
|
12769
|
+
var Zp = /* @__PURE__ */ I('<div id=smarttalks-widget class="h-[85vh] w-[90vw] md:h-[min(100vh,500px)] md:w-[min(100vw,400px)] max-h-full max-w-full md:max-h-[90%] md:max-w-[90%] fixed bottom-5 rounded-md shadow-xl overflow-hidden bg-background text-foreground flex flex-col">');
|
|
12770
|
+
const Qp = ({
|
|
12790
12771
|
children: e
|
|
12791
12772
|
}) => {
|
|
12792
12773
|
const {
|
|
@@ -12808,25 +12789,25 @@ const tm = ({
|
|
|
12808
12789
|
return n();
|
|
12809
12790
|
},
|
|
12810
12791
|
get children() {
|
|
12811
|
-
var s =
|
|
12812
|
-
return A(s, e), oe((a) =>
|
|
12792
|
+
var s = Zp();
|
|
12793
|
+
return A(s, e), oe((a) => Dn(s, i(), a)), s;
|
|
12813
12794
|
}
|
|
12814
12795
|
});
|
|
12815
12796
|
};
|
|
12816
|
-
var
|
|
12797
|
+
var em = /* @__PURE__ */ I('<div class="absolute bg-black/50 text-white font-bold h-full w-full grid place-content-center z-50">');
|
|
12817
12798
|
const fo = () => (() => {
|
|
12818
|
-
var e =
|
|
12799
|
+
var e = em();
|
|
12819
12800
|
return A(e, y(mc, {
|
|
12820
12801
|
size: 45,
|
|
12821
12802
|
class: "animate-spin"
|
|
12822
12803
|
})), e;
|
|
12823
|
-
})(),
|
|
12804
|
+
})(), tm = () => {
|
|
12824
12805
|
const {
|
|
12825
12806
|
chatWidget: e
|
|
12826
12807
|
} = ie(), {
|
|
12827
12808
|
loading: t
|
|
12828
12809
|
} = Qe();
|
|
12829
|
-
return y(
|
|
12810
|
+
return y(Yp, {
|
|
12830
12811
|
get openIcon() {
|
|
12831
12812
|
return y(Xi, {
|
|
12832
12813
|
get src() {
|
|
@@ -12845,11 +12826,11 @@ const fo = () => (() => {
|
|
|
12845
12826
|
}), y(io, {}), y(co, {}), y(uo, {})];
|
|
12846
12827
|
}
|
|
12847
12828
|
});
|
|
12848
|
-
},
|
|
12829
|
+
}, nm = () => {
|
|
12849
12830
|
const {
|
|
12850
12831
|
loading: e
|
|
12851
12832
|
} = Qe();
|
|
12852
|
-
return y(
|
|
12833
|
+
return y(Qp, {
|
|
12853
12834
|
get children() {
|
|
12854
12835
|
return [y(Q, {
|
|
12855
12836
|
get when() {
|
|
@@ -12861,11 +12842,11 @@ const fo = () => (() => {
|
|
|
12861
12842
|
}), y(io, {}), y(co, {}), y(uo, {})];
|
|
12862
12843
|
}
|
|
12863
12844
|
});
|
|
12864
|
-
},
|
|
12845
|
+
}, rm = () => {
|
|
12865
12846
|
const {
|
|
12866
12847
|
loading: e
|
|
12867
12848
|
} = Qe();
|
|
12868
|
-
return y(
|
|
12849
|
+
return y(Jp, {
|
|
12869
12850
|
get children() {
|
|
12870
12851
|
return [y(Q, {
|
|
12871
12852
|
get when() {
|
|
@@ -12877,73 +12858,73 @@ const fo = () => (() => {
|
|
|
12877
12858
|
}), y(io, {}), y(co, {}), y(uo, {})];
|
|
12878
12859
|
}
|
|
12879
12860
|
});
|
|
12880
|
-
},
|
|
12861
|
+
}, om = () => {
|
|
12881
12862
|
const {
|
|
12882
12863
|
chatWidget: e
|
|
12883
12864
|
} = ie();
|
|
12884
12865
|
return y(Fi, {
|
|
12885
12866
|
get children() {
|
|
12886
|
-
return [y(
|
|
12867
|
+
return [y(Nt, {
|
|
12887
12868
|
get when() {
|
|
12888
12869
|
return e()?.mode === "standard";
|
|
12889
12870
|
},
|
|
12890
12871
|
get children() {
|
|
12891
|
-
return y(
|
|
12872
|
+
return y(tm, {});
|
|
12892
12873
|
}
|
|
12893
|
-
}), y(
|
|
12874
|
+
}), y(Nt, {
|
|
12894
12875
|
get when() {
|
|
12895
12876
|
return e()?.mode === "popup";
|
|
12896
12877
|
},
|
|
12897
12878
|
get children() {
|
|
12898
|
-
return y(
|
|
12879
|
+
return y(nm, {});
|
|
12899
12880
|
}
|
|
12900
|
-
}), y(
|
|
12881
|
+
}), y(Nt, {
|
|
12901
12882
|
get when() {
|
|
12902
12883
|
return e()?.mode === "static";
|
|
12903
12884
|
},
|
|
12904
12885
|
get children() {
|
|
12905
|
-
return y(
|
|
12886
|
+
return y(rm, {});
|
|
12906
12887
|
}
|
|
12907
12888
|
})];
|
|
12908
12889
|
}
|
|
12909
12890
|
});
|
|
12910
12891
|
};
|
|
12911
|
-
var
|
|
12912
|
-
const
|
|
12892
|
+
var im = /* @__PURE__ */ I("<div><div>Form");
|
|
12893
|
+
const sm = () => {
|
|
12913
12894
|
const {
|
|
12914
12895
|
formWidget: e
|
|
12915
12896
|
} = ie();
|
|
12916
12897
|
return (() => {
|
|
12917
|
-
var t =
|
|
12898
|
+
var t = im();
|
|
12918
12899
|
return t.firstChild, A(t, () => e()?._id, null), t;
|
|
12919
12900
|
})();
|
|
12920
12901
|
};
|
|
12921
|
-
function
|
|
12902
|
+
function am() {
|
|
12922
12903
|
const {
|
|
12923
12904
|
widget: e
|
|
12924
12905
|
} = ie();
|
|
12925
12906
|
return y(Fi, {
|
|
12926
12907
|
get children() {
|
|
12927
|
-
return [y(
|
|
12908
|
+
return [y(Nt, {
|
|
12928
12909
|
get when() {
|
|
12929
12910
|
return e()?.type === "chat";
|
|
12930
12911
|
},
|
|
12931
12912
|
get children() {
|
|
12932
|
-
return y(
|
|
12913
|
+
return y(om, {});
|
|
12933
12914
|
}
|
|
12934
|
-
}), y(
|
|
12915
|
+
}), y(Nt, {
|
|
12935
12916
|
get when() {
|
|
12936
12917
|
return e()?.type === "form";
|
|
12937
12918
|
},
|
|
12938
12919
|
get children() {
|
|
12939
|
-
return y(
|
|
12920
|
+
return y(sm, {});
|
|
12940
12921
|
}
|
|
12941
12922
|
})];
|
|
12942
12923
|
}
|
|
12943
12924
|
});
|
|
12944
12925
|
}
|
|
12945
|
-
var
|
|
12946
|
-
const
|
|
12926
|
+
var lm = /* @__PURE__ */ I("<style>"), cm = /* @__PURE__ */ I("<div>");
|
|
12927
|
+
const um = ({
|
|
12947
12928
|
id: e,
|
|
12948
12929
|
settings: t,
|
|
12949
12930
|
side: n,
|
|
@@ -12954,20 +12935,20 @@ const fm = ({
|
|
|
12954
12935
|
setWidgetId: i
|
|
12955
12936
|
} = ie(), s = (e || "default") + "?" + (t ? "&showSettings" : "") + (n ? `&${n}` : "") + (r ? `&margin=${r}` : "") + (o ? `&mode=${o}` : "");
|
|
12956
12937
|
return i(s), [(() => {
|
|
12957
|
-
var a =
|
|
12938
|
+
var a = lm();
|
|
12958
12939
|
return A(a, jl), a;
|
|
12959
12940
|
})(), (() => {
|
|
12960
|
-
var a =
|
|
12961
|
-
return A(a, y(
|
|
12941
|
+
var a = cm();
|
|
12942
|
+
return A(a, y(am, {})), a;
|
|
12962
12943
|
})()];
|
|
12963
|
-
},
|
|
12944
|
+
}, dm = {
|
|
12964
12945
|
id: "",
|
|
12965
12946
|
settings: !1,
|
|
12966
12947
|
side: void 0,
|
|
12967
12948
|
margin: void 0,
|
|
12968
12949
|
mode: void 0
|
|
12969
|
-
},
|
|
12970
|
-
typeof window > "u" || Ul("smarttalks-widget",
|
|
12950
|
+
}, fm = () => {
|
|
12951
|
+
typeof window > "u" || Ul("smarttalks-widget", dm, um);
|
|
12971
12952
|
};
|
|
12972
|
-
|
|
12953
|
+
fm();
|
|
12973
12954
|
Ha();
|