@smarttalks.ai/widget 0.8.5 → 0.8.7
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 +257 -249
- package/lib/index.umd.cjs +17 -17
- 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)\(.+\)$/,
|
|
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) => ft(e) || Sa.has(e) || xa.test(e), qe = (e) => xt(e, "length", Ra), ft = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => xt(e, "number", ft), Tt = (e) => !!e && Number.isInteger(Number(e)), Pa = (e) => e.endsWith("%") && ft(e.slice(0, -1)), N = (e) => xi.test(e), We = (e) => Ea.test(e), Aa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ta = (e) => xt(e, Aa, Si), Da = (e) => xt(e, "position", Si), La = /* @__PURE__ */ new Set(["image", "url"]), Ma = (e) => xt(e, La, Fa), Ia = (e) => xt(e, "", $a), Dt = () => !0, xt = (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) => (
|
|
@@ -238,24 +238,24 @@ const X = (e) => {
|
|
|
238
238
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
239
239
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
240
240
|
ka.test(e) && !Ca.test(e)
|
|
241
|
-
), Si = () => !1, $a = (e) => Oa.test(e),
|
|
242
|
-
const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), h = X("gap"), m = X("gradientColorStops"), f = X("gradientColorStopPositions"), g = X("inset"), p = X("margin"), b = X("opacity"), v = X("padding"), w = X("saturate"), x = X("scale"), O = X("sepia"), k = X("skew"), E = X("space"), $ = X("translate"), _ = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto",
|
|
241
|
+
), Si = () => !1, $a = (e) => Oa.test(e), Fa = (e) => _a.test(e), Na = () => {
|
|
242
|
+
const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), h = X("gap"), m = X("gradientColorStops"), f = X("gradientColorStopPositions"), g = X("inset"), p = X("margin"), b = X("opacity"), v = X("padding"), w = X("saturate"), x = X("scale"), O = X("sepia"), k = X("skew"), E = X("space"), $ = X("translate"), _ = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", N, t], M = () => [N, t], te = () => ["", Ne, qe], W = () => ["auto", ft, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", N], lt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Ee = () => [ft, N];
|
|
243
243
|
return {
|
|
244
244
|
cacheSize: 500,
|
|
245
245
|
separator: ":",
|
|
246
246
|
theme: {
|
|
247
247
|
colors: [Dt],
|
|
248
|
-
spacing: [
|
|
249
|
-
blur: ["none", "", We,
|
|
248
|
+
spacing: [Ne, qe],
|
|
249
|
+
blur: ["none", "", We, N],
|
|
250
250
|
brightness: Ee(),
|
|
251
251
|
borderColor: [e],
|
|
252
|
-
borderRadius: ["none", "", "full", We,
|
|
252
|
+
borderRadius: ["none", "", "full", We, N],
|
|
253
253
|
borderSpacing: M(),
|
|
254
254
|
borderWidth: te(),
|
|
255
255
|
contrast: Ee(),
|
|
256
|
-
grayscale:
|
|
256
|
+
grayscale: re(),
|
|
257
257
|
hueRotate: Ee(),
|
|
258
|
-
invert:
|
|
258
|
+
invert: re(),
|
|
259
259
|
gap: M(),
|
|
260
260
|
gradientColorStops: [e],
|
|
261
261
|
gradientColorStopPositions: [Pa, qe],
|
|
@@ -265,7 +265,7 @@ const X = (e) => {
|
|
|
265
265
|
padding: M(),
|
|
266
266
|
saturate: Ee(),
|
|
267
267
|
scale: Ee(),
|
|
268
|
-
sepia:
|
|
268
|
+
sepia: re(),
|
|
269
269
|
skew: Ee(),
|
|
270
270
|
space: M(),
|
|
271
271
|
translate: M()
|
|
@@ -277,7 +277,7 @@ const X = (e) => {
|
|
|
277
277
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
278
278
|
*/
|
|
279
279
|
aspect: [{
|
|
280
|
-
aspect: ["auto", "square", "video",
|
|
280
|
+
aspect: ["auto", "square", "video", N]
|
|
281
281
|
}],
|
|
282
282
|
/**
|
|
283
283
|
* Container
|
|
@@ -362,7 +362,7 @@ const X = (e) => {
|
|
|
362
362
|
* @see https://tailwindcss.com/docs/object-position
|
|
363
363
|
*/
|
|
364
364
|
"object-position": [{
|
|
365
|
-
object: [...ce(),
|
|
365
|
+
object: [...ce(), N]
|
|
366
366
|
}],
|
|
367
367
|
/**
|
|
368
368
|
* Overflow
|
|
@@ -484,7 +484,7 @@ const X = (e) => {
|
|
|
484
484
|
* @see https://tailwindcss.com/docs/z-index
|
|
485
485
|
*/
|
|
486
486
|
z: [{
|
|
487
|
-
z: ["auto", Tt,
|
|
487
|
+
z: ["auto", Tt, N]
|
|
488
488
|
}],
|
|
489
489
|
// Flexbox and Grid
|
|
490
490
|
/**
|
|
@@ -513,28 +513,28 @@ const X = (e) => {
|
|
|
513
513
|
* @see https://tailwindcss.com/docs/flex
|
|
514
514
|
*/
|
|
515
515
|
flex: [{
|
|
516
|
-
flex: ["1", "auto", "initial", "none",
|
|
516
|
+
flex: ["1", "auto", "initial", "none", N]
|
|
517
517
|
}],
|
|
518
518
|
/**
|
|
519
519
|
* Flex Grow
|
|
520
520
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
521
521
|
*/
|
|
522
522
|
grow: [{
|
|
523
|
-
grow:
|
|
523
|
+
grow: re()
|
|
524
524
|
}],
|
|
525
525
|
/**
|
|
526
526
|
* Flex Shrink
|
|
527
527
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
528
528
|
*/
|
|
529
529
|
shrink: [{
|
|
530
|
-
shrink:
|
|
530
|
+
shrink: re()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Order
|
|
534
534
|
* @see https://tailwindcss.com/docs/order
|
|
535
535
|
*/
|
|
536
536
|
order: [{
|
|
537
|
-
order: ["first", "last", "none", Tt,
|
|
537
|
+
order: ["first", "last", "none", Tt, N]
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Grid Template Columns
|
|
@@ -549,8 +549,8 @@ const X = (e) => {
|
|
|
549
549
|
*/
|
|
550
550
|
"col-start-end": [{
|
|
551
551
|
col: ["auto", {
|
|
552
|
-
span: ["full", Tt,
|
|
553
|
-
},
|
|
552
|
+
span: ["full", Tt, N]
|
|
553
|
+
}, N]
|
|
554
554
|
}],
|
|
555
555
|
/**
|
|
556
556
|
* Grid Column Start
|
|
@@ -579,8 +579,8 @@ const X = (e) => {
|
|
|
579
579
|
*/
|
|
580
580
|
"row-start-end": [{
|
|
581
581
|
row: ["auto", {
|
|
582
|
-
span: [Tt,
|
|
583
|
-
},
|
|
582
|
+
span: [Tt, N]
|
|
583
|
+
}, N]
|
|
584
584
|
}],
|
|
585
585
|
/**
|
|
586
586
|
* Grid Row Start
|
|
@@ -608,14 +608,14 @@ const X = (e) => {
|
|
|
608
608
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
609
609
|
*/
|
|
610
610
|
"auto-cols": [{
|
|
611
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
611
|
+
"auto-cols": ["auto", "min", "max", "fr", N]
|
|
612
612
|
}],
|
|
613
613
|
/**
|
|
614
614
|
* Grid Auto Rows
|
|
615
615
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
616
616
|
*/
|
|
617
617
|
"auto-rows": [{
|
|
618
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
618
|
+
"auto-rows": ["auto", "min", "max", "fr", N]
|
|
619
619
|
}],
|
|
620
620
|
/**
|
|
621
621
|
* Gap
|
|
@@ -858,21 +858,21 @@ const X = (e) => {
|
|
|
858
858
|
* @see https://tailwindcss.com/docs/width
|
|
859
859
|
*/
|
|
860
860
|
w: [{
|
|
861
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
861
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", N, t]
|
|
862
862
|
}],
|
|
863
863
|
/**
|
|
864
864
|
* Min-Width
|
|
865
865
|
* @see https://tailwindcss.com/docs/min-width
|
|
866
866
|
*/
|
|
867
867
|
"min-w": [{
|
|
868
|
-
"min-w": [
|
|
868
|
+
"min-w": [N, t, "min", "max", "fit"]
|
|
869
869
|
}],
|
|
870
870
|
/**
|
|
871
871
|
* Max-Width
|
|
872
872
|
* @see https://tailwindcss.com/docs/max-width
|
|
873
873
|
*/
|
|
874
874
|
"max-w": [{
|
|
875
|
-
"max-w": [
|
|
875
|
+
"max-w": [N, t, "none", "full", "min", "max", "fit", "prose", {
|
|
876
876
|
screen: [We]
|
|
877
877
|
}, We]
|
|
878
878
|
}],
|
|
@@ -881,28 +881,28 @@ const X = (e) => {
|
|
|
881
881
|
* @see https://tailwindcss.com/docs/height
|
|
882
882
|
*/
|
|
883
883
|
h: [{
|
|
884
|
-
h: [
|
|
884
|
+
h: [N, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
885
885
|
}],
|
|
886
886
|
/**
|
|
887
887
|
* Min-Height
|
|
888
888
|
* @see https://tailwindcss.com/docs/min-height
|
|
889
889
|
*/
|
|
890
890
|
"min-h": [{
|
|
891
|
-
"min-h": [
|
|
891
|
+
"min-h": [N, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
892
892
|
}],
|
|
893
893
|
/**
|
|
894
894
|
* Max-Height
|
|
895
895
|
* @see https://tailwindcss.com/docs/max-height
|
|
896
896
|
*/
|
|
897
897
|
"max-h": [{
|
|
898
|
-
"max-h": [
|
|
898
|
+
"max-h": [N, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
899
899
|
}],
|
|
900
900
|
/**
|
|
901
901
|
* Size
|
|
902
902
|
* @see https://tailwindcss.com/docs/size
|
|
903
903
|
*/
|
|
904
904
|
size: [{
|
|
905
|
-
size: [
|
|
905
|
+
size: [N, t, "auto", "min", "max", "fit"]
|
|
906
906
|
}],
|
|
907
907
|
// Typography
|
|
908
908
|
/**
|
|
@@ -971,7 +971,7 @@ const X = (e) => {
|
|
|
971
971
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
972
972
|
*/
|
|
973
973
|
tracking: [{
|
|
974
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
974
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", N]
|
|
975
975
|
}],
|
|
976
976
|
/**
|
|
977
977
|
* Line Clamp
|
|
@@ -985,21 +985,21 @@ const X = (e) => {
|
|
|
985
985
|
* @see https://tailwindcss.com/docs/line-height
|
|
986
986
|
*/
|
|
987
987
|
leading: [{
|
|
988
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
988
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Ne, N]
|
|
989
989
|
}],
|
|
990
990
|
/**
|
|
991
991
|
* List Style Image
|
|
992
992
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
993
993
|
*/
|
|
994
994
|
"list-image": [{
|
|
995
|
-
"list-image": ["none",
|
|
995
|
+
"list-image": ["none", N]
|
|
996
996
|
}],
|
|
997
997
|
/**
|
|
998
998
|
* List Style Type
|
|
999
999
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1000
1000
|
*/
|
|
1001
1001
|
"list-style-type": [{
|
|
1002
|
-
list: ["none", "disc", "decimal",
|
|
1002
|
+
list: ["none", "disc", "decimal", N]
|
|
1003
1003
|
}],
|
|
1004
1004
|
/**
|
|
1005
1005
|
* List Style Position
|
|
@@ -1054,21 +1054,21 @@ const X = (e) => {
|
|
|
1054
1054
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1055
1055
|
*/
|
|
1056
1056
|
"text-decoration-style": [{
|
|
1057
|
-
decoration: [...
|
|
1057
|
+
decoration: [...F(), "wavy"]
|
|
1058
1058
|
}],
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Text Decoration Thickness
|
|
1061
1061
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1062
1062
|
*/
|
|
1063
1063
|
"text-decoration-thickness": [{
|
|
1064
|
-
decoration: ["auto", "from-font",
|
|
1064
|
+
decoration: ["auto", "from-font", Ne, qe]
|
|
1065
1065
|
}],
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Text Underline Offset
|
|
1068
1068
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1069
1069
|
*/
|
|
1070
1070
|
"underline-offset": [{
|
|
1071
|
-
"underline-offset": ["auto",
|
|
1071
|
+
"underline-offset": ["auto", Ne, N]
|
|
1072
1072
|
}],
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Text Decoration Color
|
|
@@ -1106,7 +1106,7 @@ const X = (e) => {
|
|
|
1106
1106
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1107
1107
|
*/
|
|
1108
1108
|
"vertical-align": [{
|
|
1109
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1109
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N]
|
|
1110
1110
|
}],
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Whitespace
|
|
@@ -1134,7 +1134,7 @@ const X = (e) => {
|
|
|
1134
1134
|
* @see https://tailwindcss.com/docs/content
|
|
1135
1135
|
*/
|
|
1136
1136
|
content: [{
|
|
1137
|
-
content: ["none",
|
|
1137
|
+
content: ["none", N]
|
|
1138
1138
|
}],
|
|
1139
1139
|
// Backgrounds
|
|
1140
1140
|
/**
|
|
@@ -1428,7 +1428,7 @@ const X = (e) => {
|
|
|
1428
1428
|
* @see https://tailwindcss.com/docs/border-style
|
|
1429
1429
|
*/
|
|
1430
1430
|
"border-style": [{
|
|
1431
|
-
border: [...
|
|
1431
|
+
border: [...F(), "hidden"]
|
|
1432
1432
|
}],
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Divide Width X
|
|
@@ -1466,7 +1466,7 @@ const X = (e) => {
|
|
|
1466
1466
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1467
1467
|
*/
|
|
1468
1468
|
"divide-style": [{
|
|
1469
|
-
divide:
|
|
1469
|
+
divide: F()
|
|
1470
1470
|
}],
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Border Color
|
|
@@ -1543,21 +1543,21 @@ const X = (e) => {
|
|
|
1543
1543
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1544
1544
|
*/
|
|
1545
1545
|
"outline-style": [{
|
|
1546
|
-
outline: ["", ...
|
|
1546
|
+
outline: ["", ...F()]
|
|
1547
1547
|
}],
|
|
1548
1548
|
/**
|
|
1549
1549
|
* Outline Offset
|
|
1550
1550
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1551
1551
|
*/
|
|
1552
1552
|
"outline-offset": [{
|
|
1553
|
-
"outline-offset": [
|
|
1553
|
+
"outline-offset": [Ne, N]
|
|
1554
1554
|
}],
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Outline Width
|
|
1557
1557
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1558
1558
|
*/
|
|
1559
1559
|
"outline-w": [{
|
|
1560
|
-
outline: [
|
|
1560
|
+
outline: [Ne, qe]
|
|
1561
1561
|
}],
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Outline Color
|
|
@@ -1597,7 +1597,7 @@ const X = (e) => {
|
|
|
1597
1597
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1598
1598
|
*/
|
|
1599
1599
|
"ring-offset-w": [{
|
|
1600
|
-
"ring-offset": [
|
|
1600
|
+
"ring-offset": [Ne, qe]
|
|
1601
1601
|
}],
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Ring Offset Color
|
|
@@ -1677,7 +1677,7 @@ const X = (e) => {
|
|
|
1677
1677
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1678
1678
|
*/
|
|
1679
1679
|
"drop-shadow": [{
|
|
1680
|
-
"drop-shadow": ["", "none", We,
|
|
1680
|
+
"drop-shadow": ["", "none", We, N]
|
|
1681
1681
|
}],
|
|
1682
1682
|
/**
|
|
1683
1683
|
* Grayscale
|
|
@@ -1834,7 +1834,7 @@ const X = (e) => {
|
|
|
1834
1834
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1835
1835
|
*/
|
|
1836
1836
|
transition: [{
|
|
1837
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1837
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
|
|
1838
1838
|
}],
|
|
1839
1839
|
/**
|
|
1840
1840
|
* Transition Duration
|
|
@@ -1848,7 +1848,7 @@ const X = (e) => {
|
|
|
1848
1848
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1849
1849
|
*/
|
|
1850
1850
|
ease: [{
|
|
1851
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1851
|
+
ease: ["linear", "in", "out", "in-out", N]
|
|
1852
1852
|
}],
|
|
1853
1853
|
/**
|
|
1854
1854
|
* Transition Delay
|
|
@@ -1862,7 +1862,7 @@ const X = (e) => {
|
|
|
1862
1862
|
* @see https://tailwindcss.com/docs/animation
|
|
1863
1863
|
*/
|
|
1864
1864
|
animate: [{
|
|
1865
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1865
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", N]
|
|
1866
1866
|
}],
|
|
1867
1867
|
// Transforms
|
|
1868
1868
|
/**
|
|
@@ -1898,7 +1898,7 @@ const X = (e) => {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/rotate
|
|
1899
1899
|
*/
|
|
1900
1900
|
rotate: [{
|
|
1901
|
-
rotate: [Tt,
|
|
1901
|
+
rotate: [Tt, N]
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Translate X
|
|
@@ -1933,7 +1933,7 @@ const X = (e) => {
|
|
|
1933
1933
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1934
1934
|
*/
|
|
1935
1935
|
"transform-origin": [{
|
|
1936
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1936
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
|
|
1937
1937
|
}],
|
|
1938
1938
|
// Interactivity
|
|
1939
1939
|
/**
|
|
@@ -1955,7 +1955,7 @@ const X = (e) => {
|
|
|
1955
1955
|
* @see https://tailwindcss.com/docs/cursor
|
|
1956
1956
|
*/
|
|
1957
1957
|
cursor: [{
|
|
1958
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
1958
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N]
|
|
1959
1959
|
}],
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Caret Color
|
|
@@ -2177,7 +2177,7 @@ const X = (e) => {
|
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/will-change
|
|
2178
2178
|
*/
|
|
2179
2179
|
"will-change": [{
|
|
2180
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2180
|
+
"will-change": ["auto", "scroll", "contents", "transform", N]
|
|
2181
2181
|
}],
|
|
2182
2182
|
// SVG
|
|
2183
2183
|
/**
|
|
@@ -2192,7 +2192,7 @@ const X = (e) => {
|
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2193
2193
|
*/
|
|
2194
2194
|
"stroke-w": [{
|
|
2195
|
-
stroke: [
|
|
2195
|
+
stroke: [Ne, qe, jn]
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Stroke
|
|
@@ -2267,7 +2267,7 @@ const X = (e) => {
|
|
|
2267
2267
|
"font-size": ["leading"]
|
|
2268
2268
|
}
|
|
2269
2269
|
};
|
|
2270
|
-
}, Ka = /* @__PURE__ */ wa(
|
|
2270
|
+
}, Ka = /* @__PURE__ */ wa(Na);
|
|
2271
2271
|
function Ze(...e) {
|
|
2272
2272
|
return Ka(yi(e));
|
|
2273
2273
|
}
|
|
@@ -2314,7 +2314,7 @@ function za(e) {
|
|
|
2314
2314
|
function Va(e) {
|
|
2315
2315
|
return e && e.replace(/\n/gm, "<br>").replace(/(?:\*)([^*]*)(?:\*)/gm, "<strong>$1</strong>").replace(/(?:_)([^_]*)(?:_)/gm, "<i>$1</i>").replace(/(?:~)([^~]*)(?:~)/gm, "<strike>$1</strike>").replace(/(?:```)([^```]*)(?:```)/gm, "<tt>$1</tt>");
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function Fr() {
|
|
2318
2318
|
const e = document.querySelector("smarttalks-widget");
|
|
2319
2319
|
let t;
|
|
2320
2320
|
if (e ? t = e.shadowRoot?.getElementById("smarttalks-widget") : t = document.getElementById("smarttalks-widget"), !t)
|
|
@@ -2350,14 +2350,14 @@ function ht(e) {
|
|
|
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
2352
|
const mn = "https://heimdall.smarttalks.ai/api", ja = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
|
|
2353
|
-
function
|
|
2353
|
+
function ne(e, ...t) {
|
|
2354
2354
|
window.postMessage({
|
|
2355
2355
|
from: Ei,
|
|
2356
2356
|
command: e,
|
|
2357
2357
|
args: t
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function se(e, t) {
|
|
2361
2361
|
window.addEventListener("message", (n) => {
|
|
2362
2362
|
n.data?.from === Ei && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
|
|
2363
2363
|
});
|
|
@@ -2365,38 +2365,41 @@ function le(e, t) {
|
|
|
2365
2365
|
function Ha() {
|
|
2366
2366
|
typeof window < "u" && (window.SmartTalksWidget = {
|
|
2367
2367
|
registerContactData: (e) => {
|
|
2368
|
-
|
|
2368
|
+
ne("registerContactData", e);
|
|
2369
2369
|
},
|
|
2370
2370
|
open: (e) => {
|
|
2371
|
-
|
|
2371
|
+
ne("open"), e && ne("setInput", e);
|
|
2372
2372
|
},
|
|
2373
2373
|
close: () => {
|
|
2374
|
-
|
|
2374
|
+
ne("close");
|
|
2375
2375
|
},
|
|
2376
2376
|
toggle: () => {
|
|
2377
|
-
|
|
2377
|
+
ne("toggle");
|
|
2378
|
+
},
|
|
2379
|
+
toggleFullscreen: () => {
|
|
2380
|
+
ne("toggleFullscreen");
|
|
2378
2381
|
},
|
|
2379
2382
|
reset: () => {
|
|
2380
|
-
|
|
2383
|
+
ne("reset");
|
|
2381
2384
|
},
|
|
2382
2385
|
// Callbacks
|
|
2383
2386
|
onOpen: (e) => {
|
|
2384
|
-
|
|
2387
|
+
se("onOpen", e);
|
|
2385
2388
|
},
|
|
2386
2389
|
onClose: (e) => {
|
|
2387
|
-
|
|
2390
|
+
se("onClose", e);
|
|
2388
2391
|
},
|
|
2389
2392
|
onToggle: (e) => {
|
|
2390
|
-
|
|
2393
|
+
se("onToggle", e);
|
|
2391
2394
|
},
|
|
2392
2395
|
onReset: (e) => {
|
|
2393
|
-
|
|
2396
|
+
se("onReset", e);
|
|
2394
2397
|
},
|
|
2395
2398
|
onInput: (e) => {
|
|
2396
|
-
|
|
2399
|
+
se("onInput", e);
|
|
2397
2400
|
},
|
|
2398
2401
|
onAnswer: (e) => {
|
|
2399
|
-
|
|
2402
|
+
se("onAnswer", e);
|
|
2400
2403
|
}
|
|
2401
2404
|
});
|
|
2402
2405
|
}
|
|
@@ -2571,7 +2574,7 @@ const He = 1, bn = 2, Ti = {
|
|
|
2571
2574
|
owner: null
|
|
2572
2575
|
}, qn = {};
|
|
2573
2576
|
var H = null;
|
|
2574
|
-
let Wn = null, ol = null, Y = null,
|
|
2577
|
+
let Wn = null, ol = null, Y = null, le = null, Be = null, Tn = 0;
|
|
2575
2578
|
function ze(e, t) {
|
|
2576
2579
|
const n = Y, r = H, o = e.length === 0, i = t === void 0 ? r : t, s = o ? Ti : {
|
|
2577
2580
|
owned: null,
|
|
@@ -2757,7 +2760,7 @@ function ye(e) {
|
|
|
2757
2760
|
let t;
|
|
2758
2761
|
return H && H.context && (t = H.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
2759
2762
|
}
|
|
2760
|
-
function
|
|
2763
|
+
function Nr(e) {
|
|
2761
2764
|
const t = C(e), n = C(() => fr(t()));
|
|
2762
2765
|
return n.toArray = () => {
|
|
2763
2766
|
const r = n();
|
|
@@ -2769,8 +2772,8 @@ function Li() {
|
|
|
2769
2772
|
if (this.sources && this.state)
|
|
2770
2773
|
if (this.state === He) St(this);
|
|
2771
2774
|
else {
|
|
2772
|
-
const e =
|
|
2773
|
-
|
|
2775
|
+
const e = le;
|
|
2776
|
+
le = null, Ve(() => wn(this), !1), le = e;
|
|
2774
2777
|
}
|
|
2775
2778
|
if (Y) {
|
|
2776
2779
|
const e = this.observers ? this.observers.length : 0;
|
|
@@ -2783,10 +2786,10 @@ function Mi(e, t, n) {
|
|
|
2783
2786
|
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Ve(() => {
|
|
2784
2787
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
2785
2788
|
const i = e.observers[o], s = Wn && Wn.running;
|
|
2786
|
-
s && Wn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ?
|
|
2789
|
+
s && Wn.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? le.push(i) : Be.push(i), i.observers && Ri(i)), s || (i.state = He);
|
|
2787
2790
|
}
|
|
2788
|
-
if (
|
|
2789
|
-
throw
|
|
2791
|
+
if (le.length > 1e6)
|
|
2792
|
+
throw le = [], new Error();
|
|
2790
2793
|
}, !1)), t;
|
|
2791
2794
|
}
|
|
2792
2795
|
function St(e) {
|
|
@@ -2839,23 +2842,23 @@ function vn(e) {
|
|
|
2839
2842
|
if (e = t[n], e.state === He)
|
|
2840
2843
|
St(e);
|
|
2841
2844
|
else if (e.state === bn) {
|
|
2842
|
-
const r =
|
|
2843
|
-
|
|
2845
|
+
const r = le;
|
|
2846
|
+
le = null, Ve(() => wn(e, t[0]), !1), le = r;
|
|
2844
2847
|
}
|
|
2845
2848
|
}
|
|
2846
2849
|
function Ve(e, t) {
|
|
2847
|
-
if (
|
|
2850
|
+
if (le) return e();
|
|
2848
2851
|
let n = !1;
|
|
2849
|
-
t || (
|
|
2852
|
+
t || (le = []), Be ? n = !0 : Be = [], Tn++;
|
|
2850
2853
|
try {
|
|
2851
2854
|
const r = e();
|
|
2852
2855
|
return ul(n), r;
|
|
2853
2856
|
} catch (r) {
|
|
2854
|
-
n || (Be = null),
|
|
2857
|
+
n || (Be = null), le = null, Kr(r);
|
|
2855
2858
|
}
|
|
2856
2859
|
}
|
|
2857
2860
|
function ul(e) {
|
|
2858
|
-
if (
|
|
2861
|
+
if (le && (Ii(le), le = null), e) return;
|
|
2859
2862
|
const t = Be;
|
|
2860
2863
|
Be = null, t.length && Ve(() => Ai(t), !1);
|
|
2861
2864
|
}
|
|
@@ -2890,7 +2893,7 @@ function wn(e, t) {
|
|
|
2890
2893
|
function Ri(e) {
|
|
2891
2894
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
2892
2895
|
const n = e.observers[t];
|
|
2893
|
-
n.state || (n.state = bn, n.pure ?
|
|
2896
|
+
n.state || (n.state = bn, n.pure ? le.push(n) : Be.push(n), n.observers && Ri(n));
|
|
2894
2897
|
}
|
|
2895
2898
|
}
|
|
2896
2899
|
function Bt(e) {
|
|
@@ -2944,7 +2947,7 @@ function fl(e, t) {
|
|
|
2944
2947
|
() => o = q(() => (H.context = {
|
|
2945
2948
|
...H.context,
|
|
2946
2949
|
[e]: r.value
|
|
2947
|
-
},
|
|
2950
|
+
}, Nr(() => r.children))),
|
|
2948
2951
|
void 0
|
|
2949
2952
|
), o;
|
|
2950
2953
|
};
|
|
@@ -3162,8 +3165,8 @@ function Q(e) {
|
|
|
3162
3165
|
void 0
|
|
3163
3166
|
);
|
|
3164
3167
|
}
|
|
3165
|
-
function
|
|
3166
|
-
const t =
|
|
3168
|
+
function Fi(e) {
|
|
3169
|
+
const t = Nr(() => e.children), n = C(() => {
|
|
3167
3170
|
const r = t(), o = Array.isArray(r) ? r : [r];
|
|
3168
3171
|
let i = () => {
|
|
3169
3172
|
};
|
|
@@ -3696,9 +3699,9 @@ function ct(e, t, n, r) {
|
|
|
3696
3699
|
function $l() {
|
|
3697
3700
|
return V.getNextContextId();
|
|
3698
3701
|
}
|
|
3699
|
-
const
|
|
3700
|
-
function
|
|
3701
|
-
return t ? document.createElementNS(
|
|
3702
|
+
const Fl = !1, Nl = "http://www.w3.org/2000/svg";
|
|
3703
|
+
function Ni(e, t = !1) {
|
|
3704
|
+
return t ? document.createElementNS(Nl, e) : document.createElement(e);
|
|
3702
3705
|
}
|
|
3703
3706
|
function Ki(e) {
|
|
3704
3707
|
const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, o = yo();
|
|
@@ -3711,7 +3714,7 @@ function Ki(e) {
|
|
|
3711
3714
|
const [l, c] = P(!1), d = () => c(!0);
|
|
3712
3715
|
ze((u) => A(a, () => l() ? u() : i(), null)), K(d);
|
|
3713
3716
|
} else {
|
|
3714
|
-
const l =
|
|
3717
|
+
const l = Ni(e.isSVG ? "g" : "div", e.isSVG), c = t && l.attachShadow ? l.attachShadow({
|
|
3715
3718
|
mode: "open"
|
|
3716
3719
|
}) : l;
|
|
3717
3720
|
Object.defineProperty(l, "_$host", {
|
|
@@ -3736,7 +3739,7 @@ function Kl(e, t) {
|
|
|
3736
3739
|
case "function":
|
|
3737
3740
|
return q(() => r(t));
|
|
3738
3741
|
case "string":
|
|
3739
|
-
const o = kl.has(r), i = V.context ? Ml() :
|
|
3742
|
+
const o = kl.has(r), i = V.context ? Ml() : Ni(r, o);
|
|
3740
3743
|
return ot(i, t, o), i;
|
|
3741
3744
|
}
|
|
3742
3745
|
});
|
|
@@ -3785,11 +3788,11 @@ const jl = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
|
|
|
3785
3788
|
zi.forEach((e) => e());
|
|
3786
3789
|
}, ql = () => {
|
|
3787
3790
|
const e = !Bi();
|
|
3788
|
-
zr(e),
|
|
3791
|
+
zr(e), ne("onToggle"), ne(e ? "onOpen" : "onClose"), Vi();
|
|
3789
3792
|
}, Wl = () => {
|
|
3790
|
-
zr(!1),
|
|
3793
|
+
zr(!1), ne("onClose");
|
|
3791
3794
|
}, Gl = () => {
|
|
3792
|
-
zr(!0),
|
|
3795
|
+
zr(!0), ne("onOpen"), Vi();
|
|
3793
3796
|
}, Ui = () => ({
|
|
3794
3797
|
bubble: Bi,
|
|
3795
3798
|
show: Gl,
|
|
@@ -4040,7 +4043,7 @@ const rc = async (e) => {
|
|
|
4040
4043
|
const s = r.find((a) => a.includes("mode"))?.split("=")[1];
|
|
4041
4044
|
(s === "popup" || s === "static" || s === "standard") && (i.mode = s);
|
|
4042
4045
|
}
|
|
4043
|
-
return
|
|
4046
|
+
return se(
|
|
4044
4047
|
"registerContactData",
|
|
4045
4048
|
(s) => {
|
|
4046
4049
|
s && Object.keys(s).length && fetch(`${mn}/v1/contact-data/${n}`, {
|
|
@@ -4194,7 +4197,7 @@ function Se(e, t) {
|
|
|
4194
4197
|
get innerHTML() {
|
|
4195
4198
|
return i();
|
|
4196
4199
|
}
|
|
4197
|
-
}), !0, !0), A(l, () =>
|
|
4200
|
+
}), !0, !0), A(l, () => Fl), l;
|
|
4198
4201
|
})();
|
|
4199
4202
|
}
|
|
4200
4203
|
function gc(e) {
|
|
@@ -4440,8 +4443,8 @@ function ue(e) {
|
|
|
4440
4443
|
if ($c())
|
|
4441
4444
|
e.focus({ preventScroll: !0 });
|
|
4442
4445
|
else {
|
|
4443
|
-
const t =
|
|
4444
|
-
e.focus(),
|
|
4446
|
+
const t = Fc(e);
|
|
4447
|
+
e.focus(), Nc(t);
|
|
4445
4448
|
}
|
|
4446
4449
|
}
|
|
4447
4450
|
var Qt = null;
|
|
@@ -4459,7 +4462,7 @@ function $c() {
|
|
|
4459
4462
|
}
|
|
4460
4463
|
return Qt;
|
|
4461
4464
|
}
|
|
4462
|
-
function
|
|
4465
|
+
function Fc(e) {
|
|
4463
4466
|
let t = e.parentNode;
|
|
4464
4467
|
const n = [], r = document.scrollingElement || document.documentElement;
|
|
4465
4468
|
for (; t instanceof HTMLElement && t !== r; )
|
|
@@ -4474,7 +4477,7 @@ function Nc(e) {
|
|
|
4474
4477
|
scrollLeft: r.scrollLeft
|
|
4475
4478
|
}), n;
|
|
4476
4479
|
}
|
|
4477
|
-
function
|
|
4480
|
+
function Nc(e) {
|
|
4478
4481
|
for (const { element: t, scrollTop: n, scrollLeft: r } of e)
|
|
4479
4482
|
t.scrollTop = n, t.scrollLeft = r;
|
|
4480
4483
|
}
|
|
@@ -5246,13 +5249,13 @@ function Rn(e) {
|
|
|
5246
5249
|
return t.children;
|
|
5247
5250
|
}
|
|
5248
5251
|
}));
|
|
5249
|
-
const r =
|
|
5250
|
-
if (
|
|
5251
|
-
const o =
|
|
5252
|
+
const r = Nr(() => t.children);
|
|
5253
|
+
if (Fo(r())) {
|
|
5254
|
+
const o = No(n, r()?.props ?? {});
|
|
5252
5255
|
return y(un, o);
|
|
5253
5256
|
}
|
|
5254
5257
|
if (Ac(r())) {
|
|
5255
|
-
const o = r().find(
|
|
5258
|
+
const o = r().find(Fo);
|
|
5256
5259
|
if (o) {
|
|
5257
5260
|
const i = () => y(yt, {
|
|
5258
5261
|
get each() {
|
|
@@ -5265,7 +5268,7 @@ function Rn(e) {
|
|
|
5265
5268
|
return o.props.children;
|
|
5266
5269
|
}
|
|
5267
5270
|
})
|
|
5268
|
-
}), s =
|
|
5271
|
+
}), s = No(n, o?.props ?? {});
|
|
5269
5272
|
return y(un, T(s, {
|
|
5270
5273
|
children: i
|
|
5271
5274
|
}));
|
|
@@ -5274,10 +5277,10 @@ function Rn(e) {
|
|
|
5274
5277
|
throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.");
|
|
5275
5278
|
}
|
|
5276
5279
|
const mu = Symbol("$$KobalteAsComponent");
|
|
5277
|
-
function
|
|
5280
|
+
function Fo(e) {
|
|
5278
5281
|
return e?.[mu] === !0;
|
|
5279
5282
|
}
|
|
5280
|
-
function
|
|
5283
|
+
function No(e, t) {
|
|
5281
5284
|
return Oc([e, t], {
|
|
5282
5285
|
reverseEventHandlers: !0
|
|
5283
5286
|
});
|
|
@@ -5355,17 +5358,17 @@ function ls() {
|
|
|
5355
5358
|
};
|
|
5356
5359
|
}
|
|
5357
5360
|
let xr = ls();
|
|
5358
|
-
const
|
|
5361
|
+
const Ft = /* @__PURE__ */ new Set();
|
|
5359
5362
|
function Ko() {
|
|
5360
5363
|
xr = ls();
|
|
5361
|
-
for (const e of
|
|
5364
|
+
for (const e of Ft)
|
|
5362
5365
|
e(xr);
|
|
5363
5366
|
}
|
|
5364
5367
|
function xu() {
|
|
5365
5368
|
const [e, t] = P(xr), n = C(() => e());
|
|
5366
5369
|
return Dn(() => {
|
|
5367
|
-
|
|
5368
|
-
|
|
5370
|
+
Ft.size === 0 && window.addEventListener("languagechange", Ko), Ft.add(t), K(() => {
|
|
5371
|
+
Ft.delete(t), Ft.size === 0 && window.removeEventListener("languagechange", Ko);
|
|
5369
5372
|
});
|
|
5370
5373
|
}), {
|
|
5371
5374
|
locale: () => n().locale,
|
|
@@ -6168,17 +6171,17 @@ const $u = [
|
|
|
6168
6171
|
"reset",
|
|
6169
6172
|
"submit"
|
|
6170
6173
|
];
|
|
6171
|
-
function
|
|
6174
|
+
function Fu(e) {
|
|
6172
6175
|
const t = e.tagName.toLowerCase();
|
|
6173
6176
|
return t === "button" ? !0 : t === "input" && e.type ? $u.indexOf(e.type) !== -1 : !1;
|
|
6174
6177
|
}
|
|
6175
|
-
function
|
|
6178
|
+
function Nu(e) {
|
|
6176
6179
|
let t;
|
|
6177
6180
|
const n = $e({
|
|
6178
6181
|
type: "button"
|
|
6179
6182
|
}, e), [r, o] = j(n, ["ref", "type", "disabled"]), i = pu(() => t, () => "button"), s = C(() => {
|
|
6180
6183
|
const c = i();
|
|
6181
|
-
return c == null ? !1 :
|
|
6184
|
+
return c == null ? !1 : Fu({
|
|
6182
6185
|
tagName: c,
|
|
6183
6186
|
type: r.type
|
|
6184
6187
|
});
|
|
@@ -6847,17 +6850,17 @@ const gd = (e) => ({
|
|
|
6847
6850
|
}, 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));
|
|
6848
6851
|
let E = k ? k[w] : 0;
|
|
6849
6852
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(k))) && (E = a.floating[w] || i.floating[f]);
|
|
6850
|
-
const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), L = Ye(u[v], _), M = R, te = E - g[f] - L, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, te),
|
|
6853
|
+
const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), L = Ye(u[v], _), M = R, te = E - g[f] - L, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, te), F = !l.arrow && Et(o) != null && W !== ce && i.reference[f] / 2 - (W < M ? R : L) - g[f] / 2 < 0, B = F ? W < M ? W - M : W - te : 0;
|
|
6851
6854
|
return {
|
|
6852
6855
|
[m]: h[m] + B,
|
|
6853
6856
|
data: {
|
|
6854
6857
|
[m]: ce,
|
|
6855
6858
|
centerOffset: W - ce - B,
|
|
6856
|
-
...
|
|
6859
|
+
...F && {
|
|
6857
6860
|
alignmentOffset: B
|
|
6858
6861
|
}
|
|
6859
6862
|
},
|
|
6860
|
-
reset:
|
|
6863
|
+
reset: F
|
|
6861
6864
|
};
|
|
6862
6865
|
}
|
|
6863
6866
|
}), pd = function(e) {
|
|
@@ -6908,31 +6911,31 @@ const gd = (e) => ({
|
|
|
6908
6911
|
placement: ce
|
|
6909
6912
|
}
|
|
6910
6913
|
};
|
|
6911
|
-
let
|
|
6912
|
-
if (!
|
|
6914
|
+
let F = (M = R.filter((B) => B.overflows[0] <= 0).sort((B, Z) => B.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
6915
|
+
if (!F)
|
|
6913
6916
|
switch (m) {
|
|
6914
6917
|
case "bestFit": {
|
|
6915
6918
|
var te;
|
|
6916
6919
|
const B = (te = R.filter((Z) => {
|
|
6917
6920
|
if (k) {
|
|
6918
|
-
const
|
|
6919
|
-
return
|
|
6921
|
+
const re = nt(Z.placement);
|
|
6922
|
+
return re === v || // Create a bias to the `y` side axis due to horizontal
|
|
6920
6923
|
// reading directions favoring greater width.
|
|
6921
|
-
|
|
6924
|
+
re === "y";
|
|
6922
6925
|
}
|
|
6923
6926
|
return !0;
|
|
6924
|
-
}).map((Z) => [Z.placement, Z.overflows.filter((
|
|
6925
|
-
B && (
|
|
6927
|
+
}).map((Z) => [Z.placement, Z.overflows.filter((re) => re > 0).reduce((re, lt) => re + lt, 0)]).sort((Z, re) => Z[1] - re[1])[0]) == null ? void 0 : te[0];
|
|
6928
|
+
B && (F = B);
|
|
6926
6929
|
break;
|
|
6927
6930
|
}
|
|
6928
6931
|
case "initialPlacement":
|
|
6929
|
-
|
|
6932
|
+
F = a;
|
|
6930
6933
|
break;
|
|
6931
6934
|
}
|
|
6932
|
-
if (o !==
|
|
6935
|
+
if (o !== F)
|
|
6933
6936
|
return {
|
|
6934
6937
|
reset: {
|
|
6935
|
-
placement:
|
|
6938
|
+
placement: F
|
|
6936
6939
|
}
|
|
6937
6940
|
};
|
|
6938
6941
|
}
|
|
@@ -7149,7 +7152,7 @@ function me(e) {
|
|
|
7149
7152
|
var t;
|
|
7150
7153
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
7151
7154
|
}
|
|
7152
|
-
function
|
|
7155
|
+
function Fe(e) {
|
|
7153
7156
|
var t;
|
|
7154
7157
|
return (t = (vs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7155
7158
|
}
|
|
@@ -7177,7 +7180,7 @@ function Wt(e) {
|
|
|
7177
7180
|
function xd(e) {
|
|
7178
7181
|
return ["table", "td", "th"].includes(kt(e));
|
|
7179
7182
|
}
|
|
7180
|
-
function
|
|
7183
|
+
function Fn(e) {
|
|
7181
7184
|
return [":popover-open", ":modal"].some((t) => {
|
|
7182
7185
|
try {
|
|
7183
7186
|
return e.matches(t);
|
|
@@ -7195,7 +7198,7 @@ function Sd(e) {
|
|
|
7195
7198
|
for (; Ie(t) && !wt(t); ) {
|
|
7196
7199
|
if (Xr(t))
|
|
7197
7200
|
return t;
|
|
7198
|
-
if (
|
|
7201
|
+
if (Fn(t))
|
|
7199
7202
|
return null;
|
|
7200
7203
|
t = Je(t);
|
|
7201
7204
|
}
|
|
@@ -7210,7 +7213,7 @@ function wt(e) {
|
|
|
7210
7213
|
function Pe(e) {
|
|
7211
7214
|
return me(e).getComputedStyle(e);
|
|
7212
7215
|
}
|
|
7213
|
-
function
|
|
7216
|
+
function Nn(e) {
|
|
7214
7217
|
return _e(e) ? {
|
|
7215
7218
|
scrollLeft: e.scrollLeft,
|
|
7216
7219
|
scrollTop: e.scrollTop
|
|
@@ -7227,7 +7230,7 @@ function Je(e) {
|
|
|
7227
7230
|
e.assignedSlot || // DOM Element detected.
|
|
7228
7231
|
e.parentNode || // ShadowRoot detected.
|
|
7229
7232
|
Xo(e) && e.host || // Fallback.
|
|
7230
|
-
|
|
7233
|
+
Fe(e)
|
|
7231
7234
|
);
|
|
7232
7235
|
return Xo(t) ? t.host : t;
|
|
7233
7236
|
}
|
|
@@ -7310,8 +7313,8 @@ function rt(e, t, n, r) {
|
|
|
7310
7313
|
});
|
|
7311
7314
|
}
|
|
7312
7315
|
function Qr(e, t) {
|
|
7313
|
-
const n =
|
|
7314
|
-
return t ? t.left + n : rt(
|
|
7316
|
+
const n = Nn(e).scrollLeft;
|
|
7317
|
+
return t ? t.left + n : rt(Fe(e)).left + n;
|
|
7315
7318
|
}
|
|
7316
7319
|
function Es(e, t, n) {
|
|
7317
7320
|
n === void 0 && (n = !1);
|
|
@@ -7331,7 +7334,7 @@ function Cd(e) {
|
|
|
7331
7334
|
offsetParent: r,
|
|
7332
7335
|
strategy: o
|
|
7333
7336
|
} = e;
|
|
7334
|
-
const i = o === "fixed", s =
|
|
7337
|
+
const i = o === "fixed", s = Fe(r), a = t ? Fn(t.floating) : !1;
|
|
7335
7338
|
if (r === s || a && i)
|
|
7336
7339
|
return n;
|
|
7337
7340
|
let l = {
|
|
@@ -7339,7 +7342,7 @@ function Cd(e) {
|
|
|
7339
7342
|
scrollTop: 0
|
|
7340
7343
|
}, c = Le(1);
|
|
7341
7344
|
const d = Le(0), u = Ie(r);
|
|
7342
|
-
if ((u || !u && !i) && ((kt(r) !== "body" || Wt(s)) && (l =
|
|
7345
|
+
if ((u || !u && !i) && ((kt(r) !== "body" || Wt(s)) && (l = Nn(r)), Ie(r))) {
|
|
7343
7346
|
const m = rt(r);
|
|
7344
7347
|
c = pt(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
|
|
7345
7348
|
}
|
|
@@ -7355,7 +7358,7 @@ function Od(e) {
|
|
|
7355
7358
|
return Array.from(e.getClientRects());
|
|
7356
7359
|
}
|
|
7357
7360
|
function _d(e) {
|
|
7358
|
-
const t =
|
|
7361
|
+
const t = Fe(e), n = Nn(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);
|
|
7359
7362
|
let s = -n.scrollLeft + Qr(e);
|
|
7360
7363
|
const a = -n.scrollTop;
|
|
7361
7364
|
return Pe(r).direction === "rtl" && (s += ge(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7366,7 +7369,7 @@ function _d(e) {
|
|
|
7366
7369
|
};
|
|
7367
7370
|
}
|
|
7368
7371
|
function Pd(e, t) {
|
|
7369
|
-
const n = me(e), r =
|
|
7372
|
+
const n = me(e), r = Fe(e), o = n.visualViewport;
|
|
7370
7373
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
7371
7374
|
if (o) {
|
|
7372
7375
|
i = o.width, s = o.height;
|
|
@@ -7394,7 +7397,7 @@ function Jo(e, t, n) {
|
|
|
7394
7397
|
if (t === "viewport")
|
|
7395
7398
|
r = Pd(e, n);
|
|
7396
7399
|
else if (t === "document")
|
|
7397
|
-
r = _d(
|
|
7400
|
+
r = _d(Fe(e));
|
|
7398
7401
|
else if (_e(t))
|
|
7399
7402
|
r = Ad(t, n);
|
|
7400
7403
|
else {
|
|
@@ -7432,7 +7435,7 @@ function Dd(e) {
|
|
|
7432
7435
|
rootBoundary: r,
|
|
7433
7436
|
strategy: o
|
|
7434
7437
|
} = e;
|
|
7435
|
-
const s = [...n === "clippingAncestors" ?
|
|
7438
|
+
const s = [...n === "clippingAncestors" ? Fn(t) ? [] : Td(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, d) => {
|
|
7436
7439
|
const u = Jo(t, d, o);
|
|
7437
7440
|
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;
|
|
7438
7441
|
}, Jo(t, a, o));
|
|
@@ -7454,14 +7457,14 @@ function Ld(e) {
|
|
|
7454
7457
|
};
|
|
7455
7458
|
}
|
|
7456
7459
|
function Md(e, t, n) {
|
|
7457
|
-
const r = Ie(t), o =
|
|
7460
|
+
const r = Ie(t), o = Fe(t), i = n === "fixed", s = rt(e, !0, i, t);
|
|
7458
7461
|
let a = {
|
|
7459
7462
|
scrollLeft: 0,
|
|
7460
7463
|
scrollTop: 0
|
|
7461
7464
|
};
|
|
7462
7465
|
const l = Le(0);
|
|
7463
7466
|
if (r || !r && !i)
|
|
7464
|
-
if ((kt(t) !== "body" || Wt(o)) && (a =
|
|
7467
|
+
if ((kt(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
|
|
7465
7468
|
const h = rt(t, !0, i, t);
|
|
7466
7469
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
7467
7470
|
} else o && (l.x = Qr(o));
|
|
@@ -7482,11 +7485,11 @@ function Zo(e, t) {
|
|
|
7482
7485
|
if (t)
|
|
7483
7486
|
return t(e);
|
|
7484
7487
|
let n = e.offsetParent;
|
|
7485
|
-
return
|
|
7488
|
+
return Fe(e) === n && (n = n.ownerDocument.body), n;
|
|
7486
7489
|
}
|
|
7487
7490
|
function Cs(e, t) {
|
|
7488
7491
|
const n = me(e);
|
|
7489
|
-
if (
|
|
7492
|
+
if (Fn(e))
|
|
7490
7493
|
return n;
|
|
7491
7494
|
if (!Ie(e)) {
|
|
7492
7495
|
let o = Je(e);
|
|
@@ -7519,7 +7522,7 @@ function Rd(e) {
|
|
|
7519
7522
|
}
|
|
7520
7523
|
const Os = {
|
|
7521
7524
|
convertOffsetParentRelativeRectToViewportRelativeRect: Cd,
|
|
7522
|
-
getDocumentElement:
|
|
7525
|
+
getDocumentElement: Fe,
|
|
7523
7526
|
getClippingRect: Dd,
|
|
7524
7527
|
getOffsetParent: Cs,
|
|
7525
7528
|
getElementRects: Id,
|
|
@@ -7534,7 +7537,7 @@ function _s(e, t) {
|
|
|
7534
7537
|
}
|
|
7535
7538
|
function $d(e, t) {
|
|
7536
7539
|
let n = null, r;
|
|
7537
|
-
const o =
|
|
7540
|
+
const o = Fe(e);
|
|
7538
7541
|
function i() {
|
|
7539
7542
|
var a;
|
|
7540
7543
|
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
@@ -7578,7 +7581,7 @@ function $d(e, t) {
|
|
|
7578
7581
|
}
|
|
7579
7582
|
return s(!0), i;
|
|
7580
7583
|
}
|
|
7581
|
-
function
|
|
7584
|
+
function Fd(e, t, n, r) {
|
|
7582
7585
|
r === void 0 && (r = {});
|
|
7583
7586
|
const {
|
|
7584
7587
|
ancestorScroll: o = !0,
|
|
@@ -7614,7 +7617,7 @@ function Nd(e, t, n, r) {
|
|
|
7614
7617
|
}), u?.(), (b = m) == null || b.disconnect(), m = null, l && cancelAnimationFrame(f);
|
|
7615
7618
|
};
|
|
7616
7619
|
}
|
|
7617
|
-
const
|
|
7620
|
+
const Nd = bd, Kd = vd, Bd = pd, zd = wd, Vd = md, Ud = gd, jd = (e, t, n) => {
|
|
7618
7621
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7619
7622
|
platform: Os,
|
|
7620
7623
|
...n
|
|
@@ -7691,7 +7694,7 @@ function Yd(e) {
|
|
|
7691
7694
|
m.style.setProperty("--kb-popper-content-overflow-padding", `${t.overflowPadding}px`), h.getBoundingClientRect();
|
|
7692
7695
|
const b = [
|
|
7693
7696
|
// https://floating-ui.com/docs/offset
|
|
7694
|
-
|
|
7697
|
+
Nd(({
|
|
7695
7698
|
placement: k
|
|
7696
7699
|
}) => {
|
|
7697
7700
|
const E = !!k.split("-")[1];
|
|
@@ -7766,7 +7769,7 @@ function Yd(e) {
|
|
|
7766
7769
|
const h = l(), m = n();
|
|
7767
7770
|
if (!h || !m)
|
|
7768
7771
|
return;
|
|
7769
|
-
const f =
|
|
7772
|
+
const f = Fd(h, m, d, {
|
|
7770
7773
|
// JSDOM doesn't support ResizeObserver
|
|
7771
7774
|
elementResize: typeof ResizeObserver == "function"
|
|
7772
7775
|
});
|
|
@@ -7838,7 +7841,7 @@ function Jd(e) {
|
|
|
7838
7841
|
w(U), L.open();
|
|
7839
7842
|
}, ce = (U = !1) => {
|
|
7840
7843
|
L.close(), U && r && r.close(!0);
|
|
7841
|
-
},
|
|
7844
|
+
}, F = (U) => {
|
|
7842
7845
|
w(U), L.toggle();
|
|
7843
7846
|
}, B = () => {
|
|
7844
7847
|
const U = p();
|
|
@@ -7849,12 +7852,12 @@ function Jd(e) {
|
|
|
7849
7852
|
return () => {
|
|
7850
7853
|
E((Un) => yr(Un, U)), Yt?.();
|
|
7851
7854
|
};
|
|
7852
|
-
},
|
|
7853
|
-
|
|
7855
|
+
}, re = (U) => c === l?.side && Xd(U, l?.area), lt = (U) => {
|
|
7856
|
+
re(U) && U.preventDefault();
|
|
7854
7857
|
}, Ee = (U) => {
|
|
7855
|
-
|
|
7858
|
+
re(U) || B();
|
|
7856
7859
|
}, sa = (U) => {
|
|
7857
|
-
|
|
7860
|
+
re(U) && U.preventDefault();
|
|
7858
7861
|
};
|
|
7859
7862
|
uu({
|
|
7860
7863
|
isDisabled: () => !(r == null && L.isOpen() && t.isModal()),
|
|
@@ -7889,7 +7892,7 @@ function Jd(e) {
|
|
|
7889
7892
|
setContentRef: b,
|
|
7890
7893
|
open: W,
|
|
7891
7894
|
close: ce,
|
|
7892
|
-
toggle:
|
|
7895
|
+
toggle: F,
|
|
7893
7896
|
focusContent: B,
|
|
7894
7897
|
onItemEnter: lt,
|
|
7895
7898
|
onItemLeave: Ee,
|
|
@@ -8240,7 +8243,7 @@ function af(e) {
|
|
|
8240
8243
|
}, m = (f) => {
|
|
8241
8244
|
pe(f, i.onFocus), r !== void 0 && r.setValue(a);
|
|
8242
8245
|
};
|
|
8243
|
-
return D(() => K(n.registerTriggerId(i.id))), y(
|
|
8246
|
+
return D(() => K(n.registerTriggerId(i.id))), y(Nu, T({
|
|
8244
8247
|
ref(f) {
|
|
8245
8248
|
var g = st(n.setTriggerRef, i.ref);
|
|
8246
8249
|
typeof g == "function" && g(f);
|
|
@@ -8314,7 +8317,7 @@ const hf = (e) => y(cf, T({
|
|
|
8314
8317
|
const [, t] = j(e, ["class"]);
|
|
8315
8318
|
return y(of, {
|
|
8316
8319
|
get mount() {
|
|
8317
|
-
return
|
|
8320
|
+
return Fr();
|
|
8318
8321
|
},
|
|
8319
8322
|
get children() {
|
|
8320
8323
|
return y(lf, T({
|
|
@@ -8417,15 +8420,15 @@ function xf(e, t) {
|
|
|
8417
8420
|
tr || (tr = new TextEncoder()), t(tr.encode(n));
|
|
8418
8421
|
});
|
|
8419
8422
|
}
|
|
8420
|
-
const ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
8423
|
+
const ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Nt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
8421
8424
|
for (let e = 0; e < ni.length; e++)
|
|
8422
|
-
|
|
8425
|
+
Nt[ni.charCodeAt(e)] = e;
|
|
8423
8426
|
const Sf = (e) => {
|
|
8424
8427
|
let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
|
|
8425
8428
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
8426
8429
|
const c = new ArrayBuffer(t), d = new Uint8Array(c);
|
|
8427
8430
|
for (r = 0; r < n; r += 4)
|
|
8428
|
-
i =
|
|
8431
|
+
i = Nt[e.charCodeAt(r)], s = Nt[e.charCodeAt(r + 1)], a = Nt[e.charCodeAt(r + 2)], l = Nt[e.charCodeAt(r + 3)], d[o++] = i << 2 | s >> 4, d[o++] = (s & 15) << 4 | a >> 2, d[o++] = (a & 3) << 6 | l & 63;
|
|
8429
8432
|
return c;
|
|
8430
8433
|
}, Ef = typeof ArrayBuffer == "function", to = (e, t) => {
|
|
8431
8434
|
if (typeof e != "string")
|
|
@@ -8549,7 +8552,7 @@ function Pf(e, t) {
|
|
|
8549
8552
|
}
|
|
8550
8553
|
});
|
|
8551
8554
|
}
|
|
8552
|
-
const
|
|
8555
|
+
const Fs = 4;
|
|
8553
8556
|
function ee(e) {
|
|
8554
8557
|
if (e) return Af(e);
|
|
8555
8558
|
}
|
|
@@ -8600,7 +8603,7 @@ ee.prototype.hasListeners = function(e) {
|
|
|
8600
8603
|
return !!this.listeners(e).length;
|
|
8601
8604
|
};
|
|
8602
8605
|
const Kn = 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";
|
|
8603
|
-
function
|
|
8606
|
+
function Ns(e, ...t) {
|
|
8604
8607
|
return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
|
|
8605
8608
|
}
|
|
8606
8609
|
const Df = we.setTimeout, Lf = we.clearTimeout;
|
|
@@ -8626,7 +8629,7 @@ function $f(e) {
|
|
|
8626
8629
|
e.hasOwnProperty(n) && (t.length && (t += "&"), t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
|
|
8627
8630
|
return t;
|
|
8628
8631
|
}
|
|
8629
|
-
function
|
|
8632
|
+
function Ff(e) {
|
|
8630
8633
|
let t = {}, n = e.split("&");
|
|
8631
8634
|
for (let r = 0, o = n.length; r < o; r++) {
|
|
8632
8635
|
let i = n[r].split("=");
|
|
@@ -8634,7 +8637,7 @@ function Nf(e) {
|
|
|
8634
8637
|
}
|
|
8635
8638
|
return t;
|
|
8636
8639
|
}
|
|
8637
|
-
class
|
|
8640
|
+
class Nf extends Error {
|
|
8638
8641
|
constructor(t, n, r) {
|
|
8639
8642
|
super(t), this.description = n, this.context = r, this.type = "TransportError";
|
|
8640
8643
|
}
|
|
@@ -8659,7 +8662,7 @@ class no extends ee {
|
|
|
8659
8662
|
* @protected
|
|
8660
8663
|
*/
|
|
8661
8664
|
onError(t, n, r) {
|
|
8662
|
-
return super.emitReserved("error", new
|
|
8665
|
+
return super.emitReserved("error", new Nf(t, n, r)), this;
|
|
8663
8666
|
}
|
|
8664
8667
|
/**
|
|
8665
8668
|
* Opens the transport.
|
|
@@ -8896,7 +8899,7 @@ class Me extends ee {
|
|
|
8896
8899
|
*/
|
|
8897
8900
|
_create() {
|
|
8898
8901
|
var t;
|
|
8899
|
-
const n =
|
|
8902
|
+
const n = Ns(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
8900
8903
|
n.xdomain = !!this._opts.xd;
|
|
8901
8904
|
const r = this._xhr = this.createRequest(n);
|
|
8902
8905
|
try {
|
|
@@ -9025,7 +9028,7 @@ class Hf extends no {
|
|
|
9025
9028
|
return "websocket";
|
|
9026
9029
|
}
|
|
9027
9030
|
doOpen() {
|
|
9028
|
-
const t = this.uri(), n = this.opts.protocols, r = Vs ? {} :
|
|
9031
|
+
const t = this.uri(), n = this.opts.protocols, r = Vs ? {} : Ns(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
9029
9032
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
9030
9033
|
try {
|
|
9031
9034
|
this.ws = this.createSocket(t, n, r);
|
|
@@ -9204,7 +9207,7 @@ class Ge extends ee {
|
|
|
9204
9207
|
},
|
|
9205
9208
|
transportOptions: {},
|
|
9206
9209
|
closeOnBeforeunload: !1
|
|
9207
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
9210
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Ff(this.opts.query)), Pr && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
9208
9211
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
9209
9212
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
9210
9213
|
this._onClose("transport close", {
|
|
@@ -9221,7 +9224,7 @@ class Ge extends ee {
|
|
|
9221
9224
|
*/
|
|
9222
9225
|
createTransport(t) {
|
|
9223
9226
|
const n = Object.assign({}, this.opts.query);
|
|
9224
|
-
n.EIO =
|
|
9227
|
+
n.EIO = Fs, n.transport = t, this.id && (n.sid = this.id);
|
|
9225
9228
|
const r = Object.assign({}, this.opts, {
|
|
9226
9229
|
query: n,
|
|
9227
9230
|
socket: this,
|
|
@@ -9445,7 +9448,7 @@ class Ge extends ee {
|
|
|
9445
9448
|
}
|
|
9446
9449
|
}
|
|
9447
9450
|
}
|
|
9448
|
-
Ge.protocol =
|
|
9451
|
+
Ge.protocol = Fs;
|
|
9449
9452
|
class Qf extends Ge {
|
|
9450
9453
|
constructor() {
|
|
9451
9454
|
super(...arguments), this._upgrades = [];
|
|
@@ -10740,13 +10743,13 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
|
|
|
10740
10743
|
type: "text",
|
|
10741
10744
|
origin: "user",
|
|
10742
10745
|
createdAt: (/* @__PURE__ */ new Date()).toString()
|
|
10743
|
-
}),
|
|
10746
|
+
}), ne("onInput", e), et.on("message", (o) => {
|
|
10744
10747
|
(o.contactId !== r.contactId || o.interactionId !== r.interactionId) && Xs({
|
|
10745
10748
|
contactId: o.contactId,
|
|
10746
10749
|
interactionId: o.interactionId
|
|
10747
10750
|
});
|
|
10748
10751
|
for (const i of o.messages)
|
|
10749
|
-
Lr(i),
|
|
10752
|
+
Lr(i), ne("onAnswer", i);
|
|
10750
10753
|
or(!1), bf(o.debug);
|
|
10751
10754
|
}), or(!0), vf(e, t, n()?._id).catch((o) => {
|
|
10752
10755
|
console.error(o), or(!1);
|
|
@@ -10759,7 +10762,7 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
|
|
|
10759
10762
|
t.interactionId
|
|
10760
10763
|
).finally(() => {
|
|
10761
10764
|
Xs({}), ii(!1), Sh();
|
|
10762
|
-
}),
|
|
10765
|
+
}), ne("onReset");
|
|
10763
10766
|
}, Sh = () => {
|
|
10764
10767
|
const { chatWidget: e } = ie();
|
|
10765
10768
|
if (Ws().length === 0 && e()?.balloonMessage) {
|
|
@@ -10847,16 +10850,22 @@ const io = () => {
|
|
|
10847
10850
|
const {
|
|
10848
10851
|
chatWidget: e
|
|
10849
10852
|
} = ie(), [t, n] = P(!1), r = () => {
|
|
10850
|
-
|
|
10851
|
-
|
|
10853
|
+
try {
|
|
10854
|
+
const i = Fr();
|
|
10855
|
+
i && (t() ? document.exitFullscreen().then(() => n(!1)) : i.requestFullscreen().then(() => n(!0)));
|
|
10856
|
+
} catch {
|
|
10857
|
+
console.error("SmartTalks.ai Widget unable to toggle fullscreen in the current state.");
|
|
10858
|
+
}
|
|
10852
10859
|
};
|
|
10853
10860
|
document.addEventListener("fullscreenchange", () => {
|
|
10854
10861
|
document.fullscreenElement || n(!1);
|
|
10855
10862
|
});
|
|
10856
10863
|
const o = () => {
|
|
10857
|
-
e()?.mode === "popup" &&
|
|
10864
|
+
e()?.mode === "popup" && ne("close");
|
|
10858
10865
|
};
|
|
10859
|
-
return (() => {
|
|
10866
|
+
return se("toggleFullscreen", () => {
|
|
10867
|
+
r();
|
|
10868
|
+
}), (() => {
|
|
10860
10869
|
var i = Ph(), s = i.firstChild;
|
|
10861
10870
|
return A(i, y(fc, {}), s), A(s, y(De, {
|
|
10862
10871
|
size: "icon",
|
|
@@ -10978,7 +10987,7 @@ const Ih = ({
|
|
|
10978
10987
|
})();
|
|
10979
10988
|
};
|
|
10980
10989
|
var Rh = /* @__PURE__ */ I('<div class="flex flex-col"><span>'), $h = /* @__PURE__ */ I("<a target=_blank><img><span></span><span>");
|
|
10981
|
-
const
|
|
10990
|
+
const Fh = ({
|
|
10982
10991
|
options: e,
|
|
10983
10992
|
text: t
|
|
10984
10993
|
}) => (() => {
|
|
@@ -10997,12 +11006,12 @@ const Nh = ({
|
|
|
10997
11006
|
})()
|
|
10998
11007
|
}), null), n;
|
|
10999
11008
|
})();
|
|
11000
|
-
var
|
|
11009
|
+
var Nh = /* @__PURE__ */ I("<a target=_blank>");
|
|
11001
11010
|
const Kh = ({
|
|
11002
11011
|
url: e,
|
|
11003
11012
|
text: t
|
|
11004
11013
|
}) => (() => {
|
|
11005
|
-
var n =
|
|
11014
|
+
var n = Nh();
|
|
11006
11015
|
return de(n, "href", e), A(n, () => t?.trim()), n;
|
|
11007
11016
|
})();
|
|
11008
11017
|
var G = (e) => typeof e == "function" ? e() : e, ai = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), Bh = (e) => {
|
|
@@ -11190,7 +11199,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11190
11199
|
return D(() => t(!0)), e;
|
|
11191
11200
|
}, rg = ng, og = (e, t) => (e && (Gt(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented), ao = (...e) => e.some((t) => !!t()), ig = (e) => (...t) => {
|
|
11192
11201
|
for (const n of e) n && n(...t);
|
|
11193
|
-
}, Vn = (...e) => ig(e),
|
|
11202
|
+
}, Vn = (...e) => ig(e), ae = (e) => e ? "" : void 0, sg = "div", ag = (e) => {
|
|
11194
11203
|
const [t, n] = j(e, ["as"]), r = C(() => t.as ?? sg);
|
|
11195
11204
|
return C(() => {
|
|
11196
11205
|
const i = r();
|
|
@@ -11425,10 +11434,10 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11425
11434
|
return r().modal() ? "true" : "false";
|
|
11426
11435
|
},
|
|
11427
11436
|
get "data-open"() {
|
|
11428
|
-
return
|
|
11437
|
+
return ae(r().open());
|
|
11429
11438
|
},
|
|
11430
11439
|
get "data-closed"() {
|
|
11431
|
-
return
|
|
11440
|
+
return ae(!r().open());
|
|
11432
11441
|
},
|
|
11433
11442
|
get "data-corvu-dialog-content"() {
|
|
11434
11443
|
return t.hasOwnProperty("data-corvu-dialog-content") ? t["data-corvu-dialog-content"] : "";
|
|
@@ -11480,10 +11489,10 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11480
11489
|
},
|
|
11481
11490
|
"aria-hidden": "true",
|
|
11482
11491
|
get "data-open"() {
|
|
11483
|
-
return
|
|
11492
|
+
return ae(r().open());
|
|
11484
11493
|
},
|
|
11485
11494
|
get "data-closed"() {
|
|
11486
|
-
return
|
|
11495
|
+
return ae(!r().open());
|
|
11487
11496
|
},
|
|
11488
11497
|
get "data-corvu-dialog-overlay"() {
|
|
11489
11498
|
return t.hasOwnProperty("data-corvu-dialog-overlay") ? t["data-corvu-dialog-overlay"] : "";
|
|
@@ -11759,10 +11768,10 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
|
|
|
11759
11768
|
return r().dialogId();
|
|
11760
11769
|
},
|
|
11761
11770
|
get "data-open"() {
|
|
11762
|
-
return
|
|
11771
|
+
return ae(r().open());
|
|
11763
11772
|
},
|
|
11764
11773
|
get "data-closed"() {
|
|
11765
|
-
return
|
|
11774
|
+
return ae(!r().open());
|
|
11766
11775
|
},
|
|
11767
11776
|
get "data-corvu-dialog-trigger"() {
|
|
11768
11777
|
return t.hasOwnProperty("data-corvu-dialog-trigger") ? t["data-corvu-dialog-trigger"] : "";
|
|
@@ -11814,8 +11823,8 @@ var ln = (e, t) => {
|
|
|
11814
11823
|
case "height":
|
|
11815
11824
|
return t[1];
|
|
11816
11825
|
}
|
|
11817
|
-
}, $g = Rg,
|
|
11818
|
-
const
|
|
11826
|
+
}, $g = Rg, Fg = $g;
|
|
11827
|
+
const Ng = (e, t) => e.length > 0 ? () => e(q(t)) : e;
|
|
11819
11828
|
function Kg(e, t) {
|
|
11820
11829
|
let n = 0;
|
|
11821
11830
|
const r = e.map((o, i) => C(() => (n = i, o()), void 0, mr));
|
|
@@ -11823,7 +11832,7 @@ function Kg(e, t) {
|
|
|
11823
11832
|
}
|
|
11824
11833
|
function gi(e, t, n) {
|
|
11825
11834
|
let r = () => t;
|
|
11826
|
-
const [o, i] = P(t, mr), s = C(
|
|
11835
|
+
const [o, i] = P(t, mr), s = C(Ng(e, () => r()), t, mr);
|
|
11827
11836
|
return [
|
|
11828
11837
|
r = Kg([o, s], n),
|
|
11829
11838
|
(a) => i(() => typeof a == "function" ? a(q(r)) : a)
|
|
@@ -11911,9 +11920,9 @@ var Bg = (e, t) => {
|
|
|
11911
11920
|
breakPoints: [Yg],
|
|
11912
11921
|
defaultSnapPoint: 1,
|
|
11913
11922
|
side: "bottom",
|
|
11914
|
-
dampFunction: (
|
|
11915
|
-
velocityFunction: (
|
|
11916
|
-
const Z =
|
|
11923
|
+
dampFunction: (F) => 6 * Math.log(F + 1),
|
|
11924
|
+
velocityFunction: (F, B) => {
|
|
11925
|
+
const Z = F / B;
|
|
11917
11926
|
return Z < 1 && Z > -1 ? 1 : Z;
|
|
11918
11927
|
},
|
|
11919
11928
|
velocityCacheReset: 200,
|
|
@@ -11933,7 +11942,7 @@ var Bg = (e, t) => {
|
|
|
11933
11942
|
}), [l, c] = P(), {
|
|
11934
11943
|
transitioning: d,
|
|
11935
11944
|
transitionSize: u
|
|
11936
|
-
} =
|
|
11945
|
+
} = Fg({
|
|
11937
11946
|
element: () => l()?.contentRef() ?? null,
|
|
11938
11947
|
enabled: () => o() && n.transitionResize,
|
|
11939
11948
|
dimension: () => {
|
|
@@ -11947,14 +11956,14 @@ var Bg = (e, t) => {
|
|
|
11947
11956
|
}
|
|
11948
11957
|
}
|
|
11949
11958
|
}), [h, m] = P(!1), [f, g] = gi(() => d() ? "resizing" : null), p = C(() => {
|
|
11950
|
-
const
|
|
11951
|
-
if (
|
|
11952
|
-
return getComputedStyle(
|
|
11959
|
+
const F = l()?.contentRef();
|
|
11960
|
+
if (F)
|
|
11961
|
+
return getComputedStyle(F);
|
|
11953
11962
|
}), [b, v] = P(!1);
|
|
11954
11963
|
D(() => {
|
|
11955
|
-
const
|
|
11964
|
+
const F = o();
|
|
11956
11965
|
q(() => {
|
|
11957
|
-
b() !==
|
|
11966
|
+
b() !== F && (F ? (v(!0), ai(() => {
|
|
11958
11967
|
Oe(() => {
|
|
11959
11968
|
g("opening"), a(n.defaultSnapPoint);
|
|
11960
11969
|
}), parseFloat(p().transitionDuration) === 0 && g(null);
|
|
@@ -11971,29 +11980,29 @@ var Bg = (e, t) => {
|
|
|
11971
11980
|
});
|
|
11972
11981
|
}, [x, O] = P(0);
|
|
11973
11982
|
D(() => {
|
|
11974
|
-
const
|
|
11975
|
-
if (!
|
|
11976
|
-
E(
|
|
11983
|
+
const F = l()?.contentRef();
|
|
11984
|
+
if (!F) return;
|
|
11985
|
+
E(F);
|
|
11977
11986
|
const B = new ResizeObserver(k);
|
|
11978
|
-
B.observe(
|
|
11987
|
+
B.observe(F), K(() => {
|
|
11979
11988
|
B.disconnect();
|
|
11980
11989
|
});
|
|
11981
11990
|
});
|
|
11982
|
-
const k = (
|
|
11983
|
-
for (const B of
|
|
11991
|
+
const k = (F) => {
|
|
11992
|
+
for (const B of F)
|
|
11984
11993
|
B.target === l()?.contentRef() && E(B.target);
|
|
11985
|
-
}, E = (
|
|
11994
|
+
}, E = (F) => {
|
|
11986
11995
|
const B = q(() => x());
|
|
11987
11996
|
switch (n.side) {
|
|
11988
11997
|
case "top":
|
|
11989
11998
|
case "bottom":
|
|
11990
|
-
if (B ===
|
|
11991
|
-
O(
|
|
11999
|
+
if (B === F.offsetHeight) return;
|
|
12000
|
+
O(F.offsetHeight);
|
|
11992
12001
|
break;
|
|
11993
12002
|
case "left":
|
|
11994
12003
|
case "right":
|
|
11995
|
-
if (B ===
|
|
11996
|
-
O(
|
|
12004
|
+
if (B === F.offsetWidth) return;
|
|
12005
|
+
O(F.offsetWidth);
|
|
11997
12006
|
break;
|
|
11998
12007
|
}
|
|
11999
12008
|
}, $ = C(() => oa(s(), x())), [_, R] = gi(() => $().offset), L = C(() => x() ? (x() - _()) / x() : 0), M = {
|
|
@@ -12040,18 +12049,18 @@ var Bg = (e, t) => {
|
|
|
12040
12049
|
get transitionResize() {
|
|
12041
12050
|
return n.transitionResize;
|
|
12042
12051
|
}
|
|
12043
|
-
}, te = Qs(() => n.children), W = (
|
|
12052
|
+
}, te = Qs(() => n.children), W = (F) => {
|
|
12044
12053
|
c(At(n.contextId));
|
|
12045
12054
|
const B = te()();
|
|
12046
12055
|
if (Gt(B)) {
|
|
12047
|
-
const Z = T(
|
|
12056
|
+
const Z = T(F, M);
|
|
12048
12057
|
return B(Z);
|
|
12049
12058
|
}
|
|
12050
12059
|
return B;
|
|
12051
12060
|
};
|
|
12052
12061
|
return C(() => {
|
|
12053
|
-
const
|
|
12054
|
-
return q(() => y(
|
|
12062
|
+
const F = jg(n.contextId), B = qg(n.contextId);
|
|
12063
|
+
return q(() => y(F.Provider, {
|
|
12055
12064
|
value: {
|
|
12056
12065
|
snapPoints: () => n.snapPoints,
|
|
12057
12066
|
breakPoints: () => n.breakPoints,
|
|
@@ -12171,7 +12180,7 @@ var Bg = (e, t) => {
|
|
|
12171
12180
|
return;
|
|
12172
12181
|
}
|
|
12173
12182
|
if (l().handleScrollableElements()) {
|
|
12174
|
-
const _ = [x, O].map((ce,
|
|
12183
|
+
const _ = [x, O].map((ce, F) => i[F] - ce), R = Math.abs(_[0]) > Math.abs(_[1]) ? "x" : "y", L = R === "x" ? _[0] : _[1];
|
|
12175
12184
|
if (Math.abs(L) < 0.3) return;
|
|
12176
12185
|
const M = c().contentRef(), [te, W] = Vg(w, R, M);
|
|
12177
12186
|
if (L > 0 && Math.abs(te) > 1 || L < 0 && Math.abs(W) > 0) {
|
|
@@ -12239,19 +12248,19 @@ var Bg = (e, t) => {
|
|
|
12239
12248
|
});
|
|
12240
12249
|
},
|
|
12241
12250
|
get "data-transitioning"() {
|
|
12242
|
-
return
|
|
12251
|
+
return ae(l().isTransitioning());
|
|
12243
12252
|
},
|
|
12244
12253
|
get "data-opening"() {
|
|
12245
|
-
return
|
|
12254
|
+
return ae(l().transitionState() === "opening");
|
|
12246
12255
|
},
|
|
12247
12256
|
get "data-closing"() {
|
|
12248
|
-
return
|
|
12257
|
+
return ae(l().transitionState() === "closing");
|
|
12249
12258
|
},
|
|
12250
12259
|
get "data-snapping"() {
|
|
12251
|
-
return
|
|
12260
|
+
return ae(l().transitionState() === "snapping");
|
|
12252
12261
|
},
|
|
12253
12262
|
get "data-resizing"() {
|
|
12254
|
-
return
|
|
12263
|
+
return ae(l().transitionState() === "resizing");
|
|
12255
12264
|
},
|
|
12256
12265
|
"data-corvu-dialog-content": void 0,
|
|
12257
12266
|
"data-corvu-drawer-content": ""
|
|
@@ -12263,19 +12272,19 @@ var Bg = (e, t) => {
|
|
|
12263
12272
|
return t.contextId;
|
|
12264
12273
|
},
|
|
12265
12274
|
get "data-transitioning"() {
|
|
12266
|
-
return
|
|
12275
|
+
return ae(r().isTransitioning());
|
|
12267
12276
|
},
|
|
12268
12277
|
get "data-opening"() {
|
|
12269
|
-
return
|
|
12278
|
+
return ae(r().transitionState() === "opening");
|
|
12270
12279
|
},
|
|
12271
12280
|
get "data-closing"() {
|
|
12272
|
-
return
|
|
12281
|
+
return ae(r().transitionState() === "closing");
|
|
12273
12282
|
},
|
|
12274
12283
|
get "data-snapping"() {
|
|
12275
|
-
return
|
|
12284
|
+
return ae(r().transitionState() === "snapping");
|
|
12276
12285
|
},
|
|
12277
12286
|
get "data-resizing"() {
|
|
12278
|
-
return
|
|
12287
|
+
return ae(r().transitionState() === "resizing");
|
|
12279
12288
|
},
|
|
12280
12289
|
"data-corvu-dialog-overlay": void 0,
|
|
12281
12290
|
"data-corvu-drawer-overlay": ""
|
|
@@ -12297,7 +12306,7 @@ const rp = Jg, op = Ug, ip = Ag, sp = (e) => {
|
|
|
12297
12306
|
const [, t] = j(e, ["class", "children"]);
|
|
12298
12307
|
return y(ip, {
|
|
12299
12308
|
get mount() {
|
|
12300
|
-
return
|
|
12309
|
+
return Fr();
|
|
12301
12310
|
},
|
|
12302
12311
|
get children() {
|
|
12303
12312
|
return [y(sp, {}), y(Qg, T({
|
|
@@ -12487,7 +12496,7 @@ const kp = (e) => y(Dh, {
|
|
|
12487
12496
|
get text() {
|
|
12488
12497
|
return e.text;
|
|
12489
12498
|
}
|
|
12490
|
-
}) : e.type === "buttons" ? y(Ih, T(() => e.buttons)) : e.type === "list" ? y(hp, T(() => e.list)) : e.type === "media" ? y(ia, T(() => e.media)) : e.type === "link" ? y(Kh, T(() => e.link)) : e.type === "cards" ? y(
|
|
12499
|
+
}) : e.type === "buttons" ? y(Ih, T(() => e.buttons)) : e.type === "list" ? y(hp, T(() => e.list)) : e.type === "media" ? y(ia, T(() => e.media)) : e.type === "link" ? y(Kh, T(() => e.link)) : e.type === "cards" ? y(Fh, T(() => e.cards)) : e.type === "date" ? y(Rr, {
|
|
12491
12500
|
get text() {
|
|
12492
12501
|
return e.text;
|
|
12493
12502
|
}
|
|
@@ -12548,7 +12557,7 @@ const Rp = () => (() => {
|
|
|
12548
12557
|
class: "size-2 animate-bounce delay-300"
|
|
12549
12558
|
}), null), e;
|
|
12550
12559
|
})();
|
|
12551
|
-
var $p = /* @__PURE__ */ I('<main class="flex-grow p-4 overflow-y-auto flex flex-col items-center scroll-smooth relative">'),
|
|
12560
|
+
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>");
|
|
12552
12561
|
const co = () => {
|
|
12553
12562
|
let e;
|
|
12554
12563
|
const {
|
|
@@ -12563,7 +12572,7 @@ const co = () => {
|
|
|
12563
12572
|
e?.scrollTo(0, e.scrollHeight);
|
|
12564
12573
|
}, a);
|
|
12565
12574
|
};
|
|
12566
|
-
return
|
|
12575
|
+
return se("reset", () => {
|
|
12567
12576
|
o();
|
|
12568
12577
|
}), Dn(() => {
|
|
12569
12578
|
s(200);
|
|
@@ -12575,7 +12584,7 @@ const co = () => {
|
|
|
12575
12584
|
},
|
|
12576
12585
|
get fallback() {
|
|
12577
12586
|
return (() => {
|
|
12578
|
-
var c =
|
|
12587
|
+
var c = Fp();
|
|
12579
12588
|
return A(c, () => ht("emptyMessages")), c;
|
|
12580
12589
|
})();
|
|
12581
12590
|
},
|
|
@@ -12590,11 +12599,11 @@ const co = () => {
|
|
|
12590
12599
|
}), null), a;
|
|
12591
12600
|
})();
|
|
12592
12601
|
};
|
|
12593
|
-
var
|
|
12602
|
+
var Np = /* @__PURE__ */ I("<textarea>");
|
|
12594
12603
|
const Kp = (e) => {
|
|
12595
12604
|
const [, t] = j(e, ["class"]);
|
|
12596
12605
|
return (() => {
|
|
12597
|
-
var n =
|
|
12606
|
+
var n = Np();
|
|
12598
12607
|
return ot(n, T({
|
|
12599
12608
|
get class() {
|
|
12600
12609
|
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);
|
|
@@ -12623,7 +12632,7 @@ const uo = () => {
|
|
|
12623
12632
|
}, o = (i) => {
|
|
12624
12633
|
i.key === "Enter" && !i.shiftKey && r();
|
|
12625
12634
|
};
|
|
12626
|
-
return
|
|
12635
|
+
return se("setInput", (i) => {
|
|
12627
12636
|
i && n(i);
|
|
12628
12637
|
}), (() => {
|
|
12629
12638
|
var i = jp();
|
|
@@ -12674,11 +12683,11 @@ const Jp = ({
|
|
|
12674
12683
|
} : {
|
|
12675
12684
|
right: `${c()}rem`
|
|
12676
12685
|
};
|
|
12677
|
-
return
|
|
12686
|
+
return se("open", () => {
|
|
12678
12687
|
o();
|
|
12679
|
-
}),
|
|
12688
|
+
}), se("close", () => {
|
|
12680
12689
|
i();
|
|
12681
|
-
}),
|
|
12690
|
+
}), se("toggle", () => {
|
|
12682
12691
|
r();
|
|
12683
12692
|
}), (() => {
|
|
12684
12693
|
var u = Wp();
|
|
@@ -12772,19 +12781,18 @@ const tm = ({
|
|
|
12772
12781
|
}) => {
|
|
12773
12782
|
const {
|
|
12774
12783
|
chatWidget: t
|
|
12775
|
-
} = ie(), [n, r] = P(!1), o = () => (t()?.style.margin ?? 5) / 4, i = () =>
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
right: `${o()}rem`
|
|
12784
|
+
} = ie(), [n, r] = P(!1), o = () => (t()?.style.margin ?? 5) / 4, i = () => {
|
|
12785
|
+
const s = {};
|
|
12786
|
+
return t()?.fullscreen ? (s.height = "100%", s["max-height"] = "100%", s.width = "100%", s["max-width"] = "100%", s.bottom = 0, s.left = 0) : t()?.style.position && (s[t()?.style.position || "right"] = `${o()}rem`), s;
|
|
12779
12787
|
};
|
|
12780
|
-
return
|
|
12781
|
-
r(!0),
|
|
12782
|
-
}),
|
|
12783
|
-
r(!1),
|
|
12784
|
-
}),
|
|
12785
|
-
r(!n()),
|
|
12788
|
+
return se("open", () => {
|
|
12789
|
+
r(!0), ne("onOpen");
|
|
12790
|
+
}), se("close", () => {
|
|
12791
|
+
r(!1), ne("onClose");
|
|
12792
|
+
}), se("toggle", () => {
|
|
12793
|
+
r(!n()), ne("onToggle");
|
|
12786
12794
|
}), setTimeout(() => {
|
|
12787
|
-
r(!0),
|
|
12795
|
+
r(!0), ne("onOpen");
|
|
12788
12796
|
}, (t()?.openDelay || 0) * 1e3), y(Q, {
|
|
12789
12797
|
get when() {
|
|
12790
12798
|
return n();
|
|
@@ -12863,7 +12871,7 @@ const fo = () => (() => {
|
|
|
12863
12871
|
const {
|
|
12864
12872
|
chatWidget: e
|
|
12865
12873
|
} = ie();
|
|
12866
|
-
return y(
|
|
12874
|
+
return y(Fi, {
|
|
12867
12875
|
get children() {
|
|
12868
12876
|
return [y(Kt, {
|
|
12869
12877
|
get when() {
|
|
@@ -12904,7 +12912,7 @@ function cm() {
|
|
|
12904
12912
|
const {
|
|
12905
12913
|
widget: e
|
|
12906
12914
|
} = ie();
|
|
12907
|
-
return y(
|
|
12915
|
+
return y(Fi, {
|
|
12908
12916
|
get children() {
|
|
12909
12917
|
return [y(Kt, {
|
|
12910
12918
|
get when() {
|