@lgsm/modules 1.6.19 → 1.6.20-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/main.css +1 -1
- package/dist/main.js +64 -64
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -356,12 +356,12 @@ function _s(e, ...t) {
|
|
|
356
356
|
const X = (e) => {
|
|
357
357
|
const t = (n) => n[e] || [];
|
|
358
358
|
return t.isThemeGetter = !0, t;
|
|
359
|
-
}, jr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hs = /^\d+\/\d+$/, Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ks = /\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$/, Vs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ys = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => Hs.test(e),
|
|
359
|
+
}, jr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hs = /^\d+\/\d+$/, Ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ks = /\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$/, Vs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ys = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => Hs.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), Oe = (e) => !!e && Number.isInteger(Number(e)), Kt = (e) => e.endsWith("%") && U(e.slice(0, -1)), Ce = (e) => Ws.test(e), Js = () => !0, Gs = (e) => (
|
|
360
360
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
361
361
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
362
362
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
363
363
|
Ks.test(e) && !Vs.test(e)
|
|
364
|
-
), _r = () => !1, Qs = (e) => qs.test(e), Xs = (e) => Ys.test(e), Zs = (e) => !R(e) && !C(e), $s = (e) => Xe(e, Kr, _r), R = (e) => jr.test(e), Ie = (e) => Xe(e, Vr, Gs), Vt = (e) => Xe(e, oa,
|
|
364
|
+
), _r = () => !1, Qs = (e) => qs.test(e), Xs = (e) => Ys.test(e), Zs = (e) => !R(e) && !C(e), $s = (e) => Xe(e, Kr, _r), R = (e) => jr.test(e), Ie = (e) => Xe(e, Vr, Gs), Vt = (e) => Xe(e, oa, U), Kn = (e) => Xe(e, Hr, _r), ea = (e) => Xe(e, Wr, Xs), gt = (e) => Xe(e, qr, Qs), C = (e) => zr.test(e), nt = (e) => Ze(e, Vr), ta = (e) => Ze(e, sa), Vn = (e) => Ze(e, Hr), na = (e) => Ze(e, Kr), ra = (e) => Ze(e, Wr), bt = (e) => Ze(e, qr, !0), Xe = (e, t, n) => {
|
|
365
365
|
const r = jr.exec(e);
|
|
366
366
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
367
367
|
}, Ze = (e, t, n = !1) => {
|
|
@@ -402,14 +402,14 @@ const X = (e) => {
|
|
|
402
402
|
c,
|
|
403
403
|
C,
|
|
404
404
|
R
|
|
405
|
-
], M = () => ["",
|
|
405
|
+
], M = () => ["", U, nt, Ie], L = () => ["solid", "dashed", "dotted", "double"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [U, Kt, Vn, Kn], H = () => [
|
|
406
406
|
// Deprecated since Tailwind CSS v4.0.0
|
|
407
407
|
"",
|
|
408
408
|
"none",
|
|
409
409
|
m,
|
|
410
410
|
C,
|
|
411
411
|
R
|
|
412
|
-
], me = () => ["none",
|
|
412
|
+
], me = () => ["none", U, C, R], Se = () => ["none", U, C, R], Ae = () => [U, C, R], pe = () => [Ke, "full", ...S()];
|
|
413
413
|
return {
|
|
414
414
|
cacheSize: 500,
|
|
415
415
|
theme: {
|
|
@@ -428,7 +428,7 @@ const X = (e) => {
|
|
|
428
428
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
429
429
|
radius: [Ce],
|
|
430
430
|
shadow: [Ce],
|
|
431
|
-
spacing: ["px",
|
|
431
|
+
spacing: ["px", U],
|
|
432
432
|
text: [Ce],
|
|
433
433
|
"text-shadow": [Ce],
|
|
434
434
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -455,7 +455,7 @@ const X = (e) => {
|
|
|
455
455
|
* @see https://tailwindcss.com/docs/columns
|
|
456
456
|
*/
|
|
457
457
|
columns: [{
|
|
458
|
-
columns: [
|
|
458
|
+
columns: [U, R, C, i]
|
|
459
459
|
}],
|
|
460
460
|
/**
|
|
461
461
|
* Break After
|
|
@@ -686,21 +686,21 @@ const X = (e) => {
|
|
|
686
686
|
* @see https://tailwindcss.com/docs/flex
|
|
687
687
|
*/
|
|
688
688
|
flex: [{
|
|
689
|
-
flex: [
|
|
689
|
+
flex: [U, Ke, "auto", "initial", "none", R]
|
|
690
690
|
}],
|
|
691
691
|
/**
|
|
692
692
|
* Flex Grow
|
|
693
693
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
694
694
|
*/
|
|
695
695
|
grow: [{
|
|
696
|
-
grow: ["",
|
|
696
|
+
grow: ["", U, C, R]
|
|
697
697
|
}],
|
|
698
698
|
/**
|
|
699
699
|
* Flex Shrink
|
|
700
700
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
701
701
|
*/
|
|
702
702
|
shrink: [{
|
|
703
|
-
shrink: ["",
|
|
703
|
+
shrink: ["", U, C, R]
|
|
704
704
|
}],
|
|
705
705
|
/**
|
|
706
706
|
* Order
|
|
@@ -1177,7 +1177,7 @@ const X = (e) => {
|
|
|
1177
1177
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1178
1178
|
*/
|
|
1179
1179
|
"line-clamp": [{
|
|
1180
|
-
"line-clamp": [
|
|
1180
|
+
"line-clamp": [U, "none", C, Vt]
|
|
1181
1181
|
}],
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Line Height
|
|
@@ -1243,14 +1243,14 @@ const X = (e) => {
|
|
|
1243
1243
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1244
1244
|
*/
|
|
1245
1245
|
"text-decoration-style": [{
|
|
1246
|
-
decoration: [...
|
|
1246
|
+
decoration: [...L(), "wavy"]
|
|
1247
1247
|
}],
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Text Decoration Thickness
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1251
1251
|
*/
|
|
1252
1252
|
"text-decoration-thickness": [{
|
|
1253
|
-
decoration: [
|
|
1253
|
+
decoration: [U, "from-font", "auto", C, Ie]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Text Decoration Color
|
|
@@ -1264,7 +1264,7 @@ const X = (e) => {
|
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1265
1265
|
*/
|
|
1266
1266
|
"underline-offset": [{
|
|
1267
|
-
"underline-offset": [
|
|
1267
|
+
"underline-offset": [U, "auto", C, R]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Text Transform
|
|
@@ -1639,14 +1639,14 @@ const X = (e) => {
|
|
|
1639
1639
|
* @see https://tailwindcss.com/docs/border-style
|
|
1640
1640
|
*/
|
|
1641
1641
|
"border-style": [{
|
|
1642
|
-
border: [...
|
|
1642
|
+
border: [...L(), "hidden", "none"]
|
|
1643
1643
|
}],
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Divide Style
|
|
1646
1646
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1647
1647
|
*/
|
|
1648
1648
|
"divide-style": [{
|
|
1649
|
-
divide: [...
|
|
1649
|
+
divide: [...L(), "hidden", "none"]
|
|
1650
1650
|
}],
|
|
1651
1651
|
/**
|
|
1652
1652
|
* Border Color
|
|
@@ -1723,21 +1723,21 @@ const X = (e) => {
|
|
|
1723
1723
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1724
1724
|
*/
|
|
1725
1725
|
"outline-style": [{
|
|
1726
|
-
outline: [...
|
|
1726
|
+
outline: [...L(), "none", "hidden"]
|
|
1727
1727
|
}],
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Outline Offset
|
|
1730
1730
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1731
1731
|
*/
|
|
1732
1732
|
"outline-offset": [{
|
|
1733
|
-
"outline-offset": [
|
|
1733
|
+
"outline-offset": [U, C, R]
|
|
1734
1734
|
}],
|
|
1735
1735
|
/**
|
|
1736
1736
|
* Outline Width
|
|
1737
1737
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1738
1738
|
*/
|
|
1739
1739
|
"outline-w": [{
|
|
1740
|
-
outline: ["",
|
|
1740
|
+
outline: ["", U, nt, Ie]
|
|
1741
1741
|
}],
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Outline Color
|
|
@@ -1812,7 +1812,7 @@ const X = (e) => {
|
|
|
1812
1812
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1813
1813
|
*/
|
|
1814
1814
|
"ring-offset-w": [{
|
|
1815
|
-
"ring-offset": [
|
|
1815
|
+
"ring-offset": [U, Ie]
|
|
1816
1816
|
}],
|
|
1817
1817
|
/**
|
|
1818
1818
|
* Ring Offset Color
|
|
@@ -1856,7 +1856,7 @@ const X = (e) => {
|
|
|
1856
1856
|
* @see https://tailwindcss.com/docs/opacity
|
|
1857
1857
|
*/
|
|
1858
1858
|
opacity: [{
|
|
1859
|
-
opacity: [
|
|
1859
|
+
opacity: [U, C, R]
|
|
1860
1860
|
}],
|
|
1861
1861
|
/**
|
|
1862
1862
|
* Mix Blend Mode
|
|
@@ -1891,7 +1891,7 @@ const X = (e) => {
|
|
|
1891
1891
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1892
1892
|
*/
|
|
1893
1893
|
"mask-image-linear-pos": [{
|
|
1894
|
-
"mask-linear": [
|
|
1894
|
+
"mask-linear": [U]
|
|
1895
1895
|
}],
|
|
1896
1896
|
"mask-image-linear-from-pos": [{
|
|
1897
1897
|
"mask-linear-from": K()
|
|
@@ -2005,7 +2005,7 @@ const X = (e) => {
|
|
|
2005
2005
|
"mask-radial-at": O()
|
|
2006
2006
|
}],
|
|
2007
2007
|
"mask-image-conic-pos": [{
|
|
2008
|
-
"mask-conic": [
|
|
2008
|
+
"mask-conic": [U]
|
|
2009
2009
|
}],
|
|
2010
2010
|
"mask-image-conic-from-pos": [{
|
|
2011
2011
|
"mask-conic-from": K()
|
|
@@ -2096,14 +2096,14 @@ const X = (e) => {
|
|
|
2096
2096
|
* @see https://tailwindcss.com/docs/brightness
|
|
2097
2097
|
*/
|
|
2098
2098
|
brightness: [{
|
|
2099
|
-
brightness: [
|
|
2099
|
+
brightness: [U, C, R]
|
|
2100
2100
|
}],
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Contrast
|
|
2103
2103
|
* @see https://tailwindcss.com/docs/contrast
|
|
2104
2104
|
*/
|
|
2105
2105
|
contrast: [{
|
|
2106
|
-
contrast: [
|
|
2106
|
+
contrast: [U, C, R]
|
|
2107
2107
|
}],
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Drop Shadow
|
|
@@ -2131,35 +2131,35 @@ const X = (e) => {
|
|
|
2131
2131
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2132
2132
|
*/
|
|
2133
2133
|
grayscale: [{
|
|
2134
|
-
grayscale: ["",
|
|
2134
|
+
grayscale: ["", U, C, R]
|
|
2135
2135
|
}],
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Hue Rotate
|
|
2138
2138
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2139
2139
|
*/
|
|
2140
2140
|
"hue-rotate": [{
|
|
2141
|
-
"hue-rotate": [
|
|
2141
|
+
"hue-rotate": [U, C, R]
|
|
2142
2142
|
}],
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Invert
|
|
2145
2145
|
* @see https://tailwindcss.com/docs/invert
|
|
2146
2146
|
*/
|
|
2147
2147
|
invert: [{
|
|
2148
|
-
invert: ["",
|
|
2148
|
+
invert: ["", U, C, R]
|
|
2149
2149
|
}],
|
|
2150
2150
|
/**
|
|
2151
2151
|
* Saturate
|
|
2152
2152
|
* @see https://tailwindcss.com/docs/saturate
|
|
2153
2153
|
*/
|
|
2154
2154
|
saturate: [{
|
|
2155
|
-
saturate: [
|
|
2155
|
+
saturate: [U, C, R]
|
|
2156
2156
|
}],
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Sepia
|
|
2159
2159
|
* @see https://tailwindcss.com/docs/sepia
|
|
2160
2160
|
*/
|
|
2161
2161
|
sepia: [{
|
|
2162
|
-
sepia: ["",
|
|
2162
|
+
sepia: ["", U, C, R]
|
|
2163
2163
|
}],
|
|
2164
2164
|
/**
|
|
2165
2165
|
* Backdrop Filter
|
|
@@ -2186,56 +2186,56 @@ const X = (e) => {
|
|
|
2186
2186
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2187
2187
|
*/
|
|
2188
2188
|
"backdrop-brightness": [{
|
|
2189
|
-
"backdrop-brightness": [
|
|
2189
|
+
"backdrop-brightness": [U, C, R]
|
|
2190
2190
|
}],
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Backdrop Contrast
|
|
2193
2193
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2194
2194
|
*/
|
|
2195
2195
|
"backdrop-contrast": [{
|
|
2196
|
-
"backdrop-contrast": [
|
|
2196
|
+
"backdrop-contrast": [U, C, R]
|
|
2197
2197
|
}],
|
|
2198
2198
|
/**
|
|
2199
2199
|
* Backdrop Grayscale
|
|
2200
2200
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2201
2201
|
*/
|
|
2202
2202
|
"backdrop-grayscale": [{
|
|
2203
|
-
"backdrop-grayscale": ["",
|
|
2203
|
+
"backdrop-grayscale": ["", U, C, R]
|
|
2204
2204
|
}],
|
|
2205
2205
|
/**
|
|
2206
2206
|
* Backdrop Hue Rotate
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2208
2208
|
*/
|
|
2209
2209
|
"backdrop-hue-rotate": [{
|
|
2210
|
-
"backdrop-hue-rotate": [
|
|
2210
|
+
"backdrop-hue-rotate": [U, C, R]
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Backdrop Invert
|
|
2214
2214
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2215
2215
|
*/
|
|
2216
2216
|
"backdrop-invert": [{
|
|
2217
|
-
"backdrop-invert": ["",
|
|
2217
|
+
"backdrop-invert": ["", U, C, R]
|
|
2218
2218
|
}],
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Backdrop Opacity
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2222
2222
|
*/
|
|
2223
2223
|
"backdrop-opacity": [{
|
|
2224
|
-
"backdrop-opacity": [
|
|
2224
|
+
"backdrop-opacity": [U, C, R]
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Backdrop Saturate
|
|
2228
2228
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2229
2229
|
*/
|
|
2230
2230
|
"backdrop-saturate": [{
|
|
2231
|
-
"backdrop-saturate": [
|
|
2231
|
+
"backdrop-saturate": [U, C, R]
|
|
2232
2232
|
}],
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Backdrop Sepia
|
|
2235
2235
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2236
2236
|
*/
|
|
2237
2237
|
"backdrop-sepia": [{
|
|
2238
|
-
"backdrop-sepia": ["",
|
|
2238
|
+
"backdrop-sepia": ["", U, C, R]
|
|
2239
2239
|
}],
|
|
2240
2240
|
// --------------
|
|
2241
2241
|
// --- Tables ---
|
|
@@ -2304,7 +2304,7 @@ const X = (e) => {
|
|
|
2304
2304
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2305
2305
|
*/
|
|
2306
2306
|
duration: [{
|
|
2307
|
-
duration: [
|
|
2307
|
+
duration: [U, "initial", C, R]
|
|
2308
2308
|
}],
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Transition Timing Function
|
|
@@ -2318,7 +2318,7 @@ const X = (e) => {
|
|
|
2318
2318
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2319
2319
|
*/
|
|
2320
2320
|
delay: [{
|
|
2321
|
-
delay: [
|
|
2321
|
+
delay: [U, C, R]
|
|
2322
2322
|
}],
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Animation
|
|
@@ -2762,7 +2762,7 @@ const X = (e) => {
|
|
|
2762
2762
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2763
2763
|
*/
|
|
2764
2764
|
"stroke-w": [{
|
|
2765
|
-
stroke: [
|
|
2765
|
+
stroke: [U, nt, Ie, Vt]
|
|
2766
2766
|
}],
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Stroke
|
|
@@ -3488,7 +3488,7 @@ function ti(e) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
const ni = (e) => {
|
|
3490
3490
|
var t, n, r, o, s, a, i, u, c;
|
|
3491
|
-
const { invert: d, toast: l, unstyled: b, interacting: x, setHeights: m, visibleToasts: f, heights: g, index: y, toasts: A, expanded: k, removeToast: O, defaultRichColors: D, closeButton: I, style: N, cancelButtonStyle: S, actionButtonStyle: _, className: te = "", descriptionClassName: de = "", duration: Z, position: q, gap: Q, expandByDefault: $, classNames: P, icons: z, closeButtonAriaLabel: E = "Close toast" } = e, [V, W] = w.useState(null), [j, Y] = w.useState(null), [T, M] = w.useState(!1), [
|
|
3491
|
+
const { invert: d, toast: l, unstyled: b, interacting: x, setHeights: m, visibleToasts: f, heights: g, index: y, toasts: A, expanded: k, removeToast: O, defaultRichColors: D, closeButton: I, style: N, cancelButtonStyle: S, actionButtonStyle: _, className: te = "", descriptionClassName: de = "", duration: Z, position: q, gap: Q, expandByDefault: $, classNames: P, icons: z, closeButtonAriaLabel: E = "Close toast" } = e, [V, W] = w.useState(null), [j, Y] = w.useState(null), [T, M] = w.useState(!1), [L, G] = w.useState(!1), [K, H] = w.useState(!1), [me, Se] = w.useState(!1), [Ae, pe] = w.useState(!1), [ls, _t] = w.useState(0), [cs, On] = w.useState(0), tt = w.useRef(l.duration || Z || Xn), Pn = w.useRef(null), Re = w.useRef(null), us = y === 0, ds = y + 1 <= f, ce = l.type, _e = l.dismissible !== !1, fs = l.className || "", ms = l.descriptionClassName || "", mt = w.useMemo(() => g.findIndex((B) => B.toastId === l.id) || 0, [
|
|
3492
3492
|
g,
|
|
3493
3493
|
l.id
|
|
3494
3494
|
]), ps = w.useMemo(() => {
|
|
@@ -3618,7 +3618,7 @@ const ni = (e) => {
|
|
|
3618
3618
|
"data-mounted": T,
|
|
3619
3619
|
"data-promise": !!l.promise,
|
|
3620
3620
|
"data-swiped": Ae,
|
|
3621
|
-
"data-removed":
|
|
3621
|
+
"data-removed": L,
|
|
3622
3622
|
"data-visible": ds,
|
|
3623
3623
|
"data-y-position": hs,
|
|
3624
3624
|
"data-x-position": gs,
|
|
@@ -3636,7 +3636,7 @@ const ni = (e) => {
|
|
|
3636
3636
|
"--index": y,
|
|
3637
3637
|
"--toasts-before": y,
|
|
3638
3638
|
"--z-index": A.length - y,
|
|
3639
|
-
"--offset": `${
|
|
3639
|
+
"--offset": `${L ? ls : He.current}px`,
|
|
3640
3640
|
"--initial-height": $ ? "auto" : `${cs}px`,
|
|
3641
3641
|
...N,
|
|
3642
3642
|
...l.style
|
|
@@ -3778,31 +3778,31 @@ const oi = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3778
3778
|
s
|
|
3779
3779
|
]), [te, de] = w.useState([]), [Z, q] = w.useState(!1), [Q, $] = w.useState(!1), [P, z] = w.useState(b !== "system" ? b : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), E = w.useRef(null), V = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), W = w.useRef(null), j = w.useRef(!1), Y = w.useCallback((T) => {
|
|
3780
3780
|
N((M) => {
|
|
3781
|
-
var
|
|
3782
|
-
return (
|
|
3781
|
+
var L;
|
|
3782
|
+
return (L = M.find((G) => G.id === T.id)) != null && L.delete || ae.dismiss(T.id), M.filter(({ id: G }) => G !== T.id);
|
|
3783
3783
|
});
|
|
3784
3784
|
}, []);
|
|
3785
3785
|
return w.useEffect(() => ae.subscribe((T) => {
|
|
3786
3786
|
if (T.dismiss) {
|
|
3787
3787
|
requestAnimationFrame(() => {
|
|
3788
|
-
N((M) => M.map((
|
|
3789
|
-
...
|
|
3788
|
+
N((M) => M.map((L) => L.id === T.id ? {
|
|
3789
|
+
...L,
|
|
3790
3790
|
delete: !0
|
|
3791
|
-
} :
|
|
3791
|
+
} : L));
|
|
3792
3792
|
});
|
|
3793
3793
|
return;
|
|
3794
3794
|
}
|
|
3795
3795
|
setTimeout(() => {
|
|
3796
3796
|
Mr.flushSync(() => {
|
|
3797
3797
|
N((M) => {
|
|
3798
|
-
const
|
|
3799
|
-
return
|
|
3800
|
-
...M.slice(0,
|
|
3798
|
+
const L = M.findIndex((G) => G.id === T.id);
|
|
3799
|
+
return L !== -1 ? [
|
|
3800
|
+
...M.slice(0, L),
|
|
3801
3801
|
{
|
|
3802
|
-
...M[
|
|
3802
|
+
...M[L],
|
|
3803
3803
|
...T
|
|
3804
3804
|
},
|
|
3805
|
-
...M.slice(
|
|
3805
|
+
...M.slice(L + 1)
|
|
3806
3806
|
] : [
|
|
3807
3807
|
T,
|
|
3808
3808
|
...M
|
|
@@ -3824,9 +3824,9 @@ const oi = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3824
3824
|
z(M ? "dark" : "light");
|
|
3825
3825
|
});
|
|
3826
3826
|
} catch {
|
|
3827
|
-
T.addListener(({ matches:
|
|
3827
|
+
T.addListener(({ matches: L }) => {
|
|
3828
3828
|
try {
|
|
3829
|
-
z(
|
|
3829
|
+
z(L ? "dark" : "light");
|
|
3830
3830
|
} catch (G) {
|
|
3831
3831
|
console.error(G);
|
|
3832
3832
|
}
|
|
@@ -3840,12 +3840,12 @@ const oi = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3840
3840
|
I
|
|
3841
3841
|
]), w.useEffect(() => {
|
|
3842
3842
|
const T = (M) => {
|
|
3843
|
-
var
|
|
3843
|
+
var L;
|
|
3844
3844
|
if (a.every((H) => M[H] || M.code === H)) {
|
|
3845
3845
|
var K;
|
|
3846
3846
|
q(!0), (K = E.current) == null || K.focus();
|
|
3847
3847
|
}
|
|
3848
|
-
M.code === "Escape" && (document.activeElement === E.current || (
|
|
3848
|
+
M.code === "Escape" && (document.activeElement === E.current || (L = E.current) != null && L.contains(document.activeElement)) && q(!1);
|
|
3849
3849
|
};
|
|
3850
3850
|
return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
|
|
3851
3851
|
}, [
|
|
@@ -3869,7 +3869,7 @@ const oi = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3869
3869
|
"aria-atomic": "false",
|
|
3870
3870
|
suppressHydrationWarning: !0
|
|
3871
3871
|
}, _.map((T, M) => {
|
|
3872
|
-
var
|
|
3872
|
+
var L;
|
|
3873
3873
|
const [G, K] = T.split("-");
|
|
3874
3874
|
return S.length ? /* @__PURE__ */ w.createElement("ol", {
|
|
3875
3875
|
key: T,
|
|
@@ -3882,7 +3882,7 @@ const oi = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3882
3882
|
"data-y-position": G,
|
|
3883
3883
|
"data-x-position": K,
|
|
3884
3884
|
style: {
|
|
3885
|
-
"--front-toast-height": `${((
|
|
3885
|
+
"--front-toast-height": `${((L = te[0]) == null ? void 0 : L.height) || 0}px`,
|
|
3886
3886
|
"--width": `${Xa}px`,
|
|
3887
3887
|
"--gap": `${k}px`,
|
|
3888
3888
|
...f,
|
|
@@ -6666,8 +6666,8 @@ const ns = (e) => {
|
|
|
6666
6666
|
const V = d && (N === "stream" || N === "response");
|
|
6667
6667
|
if (d && (D || V && Q)) {
|
|
6668
6668
|
const j = {};
|
|
6669
|
-
["status", "statusText", "headers"].forEach((
|
|
6670
|
-
j[
|
|
6669
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
6670
|
+
j[L] = E[L];
|
|
6671
6671
|
});
|
|
6672
6672
|
const Y = p.toFiniteNumber(E.headers.get("content-length")), [T, M] = D && br(
|
|
6673
6673
|
Y,
|
|
@@ -7212,11 +7212,11 @@ function Ju(e, t, n, r, o) {
|
|
|
7212
7212
|
}, 1500);
|
|
7213
7213
|
}));
|
|
7214
7214
|
else if (i !== 401 && i > 299) {
|
|
7215
|
-
const E = (D = (O = (k = (A = (y = s == null ? void 0 : s.response) == null ? void 0 : y.data) == null ? void 0 : A.data) == null ? void 0 : k.details) == null ? void 0 : O[0]) == null ? void 0 : D.message, V = (N = (I = s == null ? void 0 : s.response) == null ? void 0 : I.data) == null ? void 0 : N.errors, W = (_ = (S = s == null ? void 0 : s.response) == null ? void 0 : S.data) == null ? void 0 : _.data, j = V != null && V.length ? V.length === 1 ? V[0].errorMessage : V.map((
|
|
7215
|
+
const E = (D = (O = (k = (A = (y = s == null ? void 0 : s.response) == null ? void 0 : y.data) == null ? void 0 : A.data) == null ? void 0 : k.details) == null ? void 0 : O[0]) == null ? void 0 : D.message, V = (N = (I = s == null ? void 0 : s.response) == null ? void 0 : I.data) == null ? void 0 : N.errors, W = (_ = (S = s == null ? void 0 : s.response) == null ? void 0 : S.data) == null ? void 0 : _.data, j = V != null && V.length ? V.length === 1 ? V[0].errorMessage : V.map((L, G) => `${G + 1}. ${L.errorMessage}`).join(" | ") : null, Y = W && typeof W == "object" ? Object.values(W).filter((L) => typeof L == "string").map((L, G) => `${G + 1}. ${L}`).join(" | ") : null, M = [E, j, Y].filter(Boolean).join(" | ") || ((de = (te = s == null ? void 0 : s.response) == null ? void 0 : te.data) == null ? void 0 : de.data) || ((q = (Z = s == null ? void 0 : s.response) == null ? void 0 : Z.data) == null ? void 0 : q.message) || s.message || "An unexpected error occurred";
|
|
7216
7216
|
if (r == "qa" || r == "prod")
|
|
7217
|
-
rt(
|
|
7217
|
+
rt(E, "");
|
|
7218
7218
|
else {
|
|
7219
|
-
const
|
|
7219
|
+
const L = ((Q = s.config) == null ? void 0 : Q.url) || "", G = L.substring(L.lastIndexOf("/"));
|
|
7220
7220
|
rt(
|
|
7221
7221
|
`Error ${($ = s.response) == null ? void 0 : $.status} for ${G}`,
|
|
7222
7222
|
`${M} [${((z = (P = s.response) == null ? void 0 : P.data) == null ? void 0 : z.errorCode) || "N/A"}]`
|