@okam/stack-ui 1.26.0 → 1.27.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/components/Alerts/interface.d.ts +3 -28
- package/components/Button/index.d.ts +2 -2
- package/components/Button/interface.d.ts +2 -2
- package/components/Carousel/components/CarouselNavigationButton.d.ts +8 -0
- package/components/Carousel/components/CarouselSlide.d.ts +3 -0
- package/components/Carousel/components/CarouselSwiper.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPagination.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPaginationBullet.d.ts +3 -0
- package/components/Carousel/interface.d.ts +34 -17
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +150 -149
- package/index100.js +2 -1
- package/index100.mjs +11 -64
- package/index101.js +1 -1
- package/index101.mjs +44 -141
- package/index102.js +1 -1
- package/index102.mjs +62 -119
- package/index103.js +1 -1
- package/index103.mjs +28 -217
- package/index104.js +1 -1
- package/index104.mjs +4 -175
- package/index105.js +1 -1
- package/index105.mjs +11 -127
- package/index106.js +1 -1
- package/index106.mjs +13 -240
- package/index107.js +1 -1
- package/index107.mjs +23 -4
- package/index108.js +1 -1
- package/index108.mjs +23 -11
- package/index109.js +1 -1
- package/index109.mjs +39 -14
- package/index11.js +1 -1
- package/index11.mjs +67 -60
- package/index110.js +2 -1
- package/index110.mjs +11 -21
- package/index111.js +1 -1
- package/index111.mjs +8 -23
- package/index112.js +1 -1
- package/index112.mjs +20 -37
- package/index113.js +1 -2
- package/index113.mjs +38 -12
- package/index114.js +1 -1
- package/index114.mjs +49 -7
- package/index115.js +1 -1
- package/index115.mjs +40 -21
- package/index116.js +1 -1
- package/index116.mjs +13 -38
- package/index117.js +1 -1
- package/index117.mjs +26 -50
- package/index118.js +1 -1
- package/index118.mjs +20 -41
- package/index119.js +1 -1
- package/index119.mjs +9 -14
- package/index120.js +1 -1
- package/index120.mjs +30 -26
- package/index121.js +1 -1
- package/index121.mjs +13 -18
- package/index122.js +1 -1
- package/index122.mjs +16 -8
- package/index123.js +1 -1
- package/index123.mjs +5 -30
- package/index124.js +1 -1
- package/index124.mjs +21 -15
- package/index125.js +1 -1
- package/index125.mjs +11 -17
- package/index126.js +1 -1
- package/index126.mjs +42 -5
- package/index127.js +2 -1
- package/index127.mjs +21 -20
- package/index128.js +1 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +46 -104
- package/index13.js +1 -1
- package/index13.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +237 -38
- package/index131.js +1 -1
- package/index131.mjs +12 -21
- package/index132.js +1 -1
- package/index132.mjs +29 -11
- package/index133.js +1 -1
- package/index133.mjs +49 -19
- package/index134.js +1 -1
- package/index134.mjs +25 -49
- package/index135.js +1 -1
- package/index135.mjs +19 -25
- package/index136.js +1 -1
- package/index136.mjs +4 -25
- package/index137.js +4 -1
- package/index137.mjs +247 -46
- package/index138.js +1 -2
- package/index138.mjs +61 -11
- package/index139.js +1 -0
- package/index139.mjs +97 -0
- package/index140.js +1 -0
- package/index140.mjs +34 -0
- package/index141.js +1 -1
- package/index141.mjs +119 -39
- package/index142.js +1 -1
- package/index142.mjs +28 -29
- package/index143.js +1 -1
- package/index143.mjs +122 -197
- package/index144.js +1 -1
- package/index144.mjs +131 -187
- package/index145.js +1 -1
- package/index145.mjs +14 -69
- package/index146.js +1 -1
- package/index146.mjs +85 -248
- package/index147.js +1 -1
- package/index147.mjs +102 -93
- package/index148.js +1 -1
- package/index148.mjs +5 -84
- package/index149.js +1 -1
- package/index149.mjs +3 -58
- package/index15.js +1 -1
- package/index15.mjs +2 -2
- package/index150.js +1 -1
- package/index150.mjs +121 -112
- package/index151.js +1 -1
- package/index151.mjs +26 -119
- package/index152.js +1 -1
- package/index152.mjs +51 -72
- package/index153.js +1 -1
- package/index153.mjs +41 -107
- package/index154.js +1 -1
- package/index154.mjs +36 -51
- package/index155.js +1 -1
- package/index155.mjs +111 -91
- package/index156.js +1 -1
- package/index156.mjs +77 -70
- package/index157.js +1 -1
- package/index157.mjs +101 -56
- package/index158.js +1 -1
- package/index158.mjs +98 -100
- package/index159.js +1 -5
- package/index159.mjs +2 -81
- package/index160.js +1 -1
- package/index160.mjs +5 -2011
- package/index161.js +1 -1
- package/index161.mjs +64 -59
- package/index162.js +1 -1
- package/index162.mjs +25 -187
- package/index163.js +1 -1
- package/index163.mjs +54 -5
- package/index164.js +1 -4
- package/index164.mjs +148 -239
- package/index165.js +1 -1
- package/index165.mjs +23 -31
- package/index166.js +1 -1
- package/index166.mjs +18 -60
- package/index167.js +1 -1
- package/index167.mjs +38 -93
- package/index168.js +1 -1
- package/index168.mjs +82 -31
- package/index169.js +1 -1
- package/index169.mjs +28 -128
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +19 -177
- package/index171.js +1 -1
- package/index171.mjs +52 -8
- package/index172.js +1 -1
- package/index172.mjs +2 -4
- package/index173.js +11 -1
- package/index173.mjs +114 -35
- package/index174.js +1 -1
- package/index174.mjs +199 -5
- package/index175.js +1 -1
- package/index175.mjs +61 -26
- package/index176.js +1 -1
- package/index176.mjs +141 -6
- package/index177.js +1 -1
- package/index177.mjs +114 -116
- package/index178.js +1 -1
- package/index178.mjs +217 -27
- package/index179.js +1 -1
- package/index179.mjs +188 -122
- package/index18.js +1 -1
- package/index18.mjs +2 -2
- package/index180.js +1 -1
- package/index180.mjs +67 -132
- package/index181.js +1 -1
- package/index181.mjs +258 -14
- package/index182.js +1 -1
- package/index182.mjs +92 -90
- package/index183.js +1 -1
- package/index183.mjs +172 -104
- package/index184.js +1 -1
- package/index184.mjs +84 -5
- package/index185.js +1 -1
- package/index185.mjs +58 -3
- package/index186.js +1 -1
- package/index186.mjs +123 -122
- package/index187.js +1 -1
- package/index187.mjs +113 -26
- package/index188.js +1 -1
- package/index188.mjs +119 -48
- package/index189.js +1 -1
- package/index189.mjs +72 -44
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index190.js +1 -1
- package/index190.mjs +107 -34
- package/index191.js +1 -1
- package/index191.mjs +50 -111
- package/index192.js +1 -1
- package/index192.mjs +93 -77
- package/index193.js +1 -1
- package/index193.mjs +70 -101
- package/index194.js +1 -1
- package/index194.mjs +57 -98
- package/index195.js +1 -1
- package/index195.mjs +100 -2
- package/index196.js +5 -1
- package/index196.mjs +80 -5
- package/index197.js +1 -1
- package/index197.mjs +2005 -58
- package/index198.js +1 -1
- package/index198.mjs +59 -26
- package/index199.js +1 -1
- package/index199.mjs +187 -53
- package/index200.js +1 -1
- package/index200.mjs +5 -155
- package/index201.js +1 -1
- package/index201.mjs +2 -23
- package/index202.js +1 -1
- package/index202.mjs +47 -14
- package/index203.js +1 -1
- package/index203.mjs +17 -36
- package/index204.js +1 -1
- package/index204.mjs +18 -77
- package/index205.js +1 -1
- package/index205.mjs +23 -27
- package/index206.js +1 -1
- package/index206.mjs +40 -15
- package/index207.js +1 -1
- package/index207.mjs +2 -61
- package/index208.js +1 -1
- package/index208.mjs +21 -2
- package/index209.js +1 -11
- package/index209.mjs +2 -116
- package/index210.js +1 -1
- package/index210.mjs +29 -2
- package/index211.js +1 -1
- package/index211.mjs +2 -6
- package/index212.mjs +2 -2
- package/index213.js +1 -1
- package/index213.mjs +18 -48
- package/index214.js +1 -1
- package/index214.mjs +2 -21
- package/index215.js +1 -1
- package/index215.mjs +2 -24
- package/index216.js +1 -1
- package/index216.mjs +2 -27
- package/index217.js +1 -1
- package/index217.mjs +34 -43
- package/index218.js +1 -1
- package/index218.mjs +2 -2
- package/index219.js +1 -1
- package/index219.mjs +12 -12
- package/index22.js +1 -1
- package/index22.mjs +3 -3
- package/index220.js +1 -1
- package/index220.mjs +23 -2
- package/index221.js +1 -1
- package/index221.mjs +2 -29
- package/index222.js +1 -1
- package/index222.mjs +23 -2
- package/index223.mjs +2 -2
- package/index224.js +1 -1
- package/index224.mjs +311 -20
- package/index225.js +1 -1
- package/index225.mjs +193 -2
- package/index226.js +1 -1
- package/index226.mjs +9 -2
- package/index227.js +1 -1
- package/index227.mjs +27 -2
- package/index228.js +1 -1
- package/index228.mjs +55 -37
- package/index229.js +1 -1
- package/index229.mjs +47 -2
- package/index23.js +1 -1
- package/index23.mjs +4 -4
- package/index230.js +1 -1
- package/index230.mjs +124 -20
- package/index231.js +1 -1
- package/index231.mjs +128 -20
- package/index232.js +1 -1
- package/index232.mjs +180 -2
- package/index233.js +1 -1
- package/index233.mjs +8 -21
- package/index234.js +1 -1
- package/index234.mjs +4 -2
- package/index235.js +1 -1
- package/index235.mjs +35 -312
- package/index236.js +1 -1
- package/index236.mjs +5 -192
- package/index237.js +1 -1
- package/index237.mjs +29 -8
- package/index238.js +1 -1
- package/index238.mjs +6 -26
- package/index239.js +1 -1
- package/index239.mjs +2 -56
- package/index240.js +1 -1
- package/index240.mjs +2 -47
- package/index241.js +1 -1
- package/index241.mjs +2 -125
- package/index242.js +1 -1
- package/index242.mjs +17 -5
- package/index243.js +1 -1
- package/index243.mjs +27 -2
- package/index244.mjs +2 -2
- package/index245.js +1 -1
- package/index245.mjs +89 -2
- package/index246.js +1 -1
- package/index246.mjs +11 -9
- package/index247.js +1 -1
- package/index247.mjs +2 -27
- package/index248.js +1 -1
- package/index248.mjs +38 -2
- package/index249.js +1 -1
- package/index249.mjs +131 -83
- package/index25.js +1 -1
- package/index25.mjs +2 -2
- package/index250.js +1 -1
- package/index250.mjs +2 -20
- package/index251.js +1 -1
- package/index251.mjs +23 -2
- package/index252.js +1 -1
- package/index252.mjs +2 -38
- package/index253.js +1 -1
- package/index253.mjs +2 -137
- package/index254.mjs +2 -2
- package/index255.js +1 -1
- package/index255.mjs +2 -23
- package/index256.js +1 -1
- package/index256.mjs +23 -2
- package/index257.js +1 -1
- package/index257.mjs +2 -2
- package/index258.js +1 -1
- package/index258.mjs +26 -2
- package/index259.js +1 -1
- package/index259.mjs +2 -2
- package/index26.js +1 -1
- package/index26.mjs +3 -3
- package/index260.js +1 -1
- package/index260.mjs +2 -23
- package/index261.js +1 -1
- package/index261.mjs +2 -2
- package/index262.js +1 -1
- package/index262.mjs +2 -26
- package/index264.js +1 -1
- package/index264.mjs +72 -2
- package/index265.mjs +2 -2
- package/index267.js +1 -1
- package/index267.mjs +19 -2
- package/index268.js +1 -1
- package/index268.mjs +2 -72
- package/index269.js +1 -1
- package/index269.mjs +6 -2
- package/index270.mjs +2 -2
- package/index271.js +1 -1
- package/index271.mjs +2 -19
- package/index272.js +1 -1
- package/index272.mjs +29 -2
- package/index273.js +1 -1
- package/index273.mjs +7 -2
- package/index274.js +1 -1
- package/index274.mjs +8 -2
- package/index275.js +1 -1
- package/index275.mjs +7 -28
- package/index276.js +1 -1
- package/index276.mjs +2 -7
- package/index277.js +1 -1
- package/index277.mjs +36 -7
- package/index278.js +1 -1
- package/index278.mjs +2 -8
- package/index279.js +1 -1
- package/index279.mjs +5 -2
- package/index28.js +1 -1
- package/index28.mjs +1 -1
- package/index280.js +1 -1
- package/index280.mjs +5 -36
- package/index281.js +1 -1
- package/index281.mjs +10 -2
- package/index282.js +1 -1
- package/index282.mjs +2 -5
- package/index283.js +1 -1
- package/index283.mjs +17 -5
- package/index284.js +1 -1
- package/index284.mjs +30 -9
- package/index285.mjs +2 -2
- package/index286.js +1 -1
- package/index286.mjs +2 -18
- package/index30.js +1 -1
- package/index30.mjs +2 -2
- package/index31.js +1 -1
- package/index31.mjs +1 -1
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.js +1 -1
- package/index33.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +30 -29
- package/index35.js +1 -1
- package/index35.mjs +16 -15
- package/index37.js +1 -1
- package/index37.mjs +1 -1
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index79.js +1 -1
- package/index79.mjs +13 -13
- package/index83.js +9 -1
- package/index83.mjs +52 -17
- package/index96.js +1 -1
- package/index96.mjs +3 -3
- package/index97.js +1 -1
- package/index97.mjs +1 -1
- package/package.json +1 -1
- package/providers/Swiper/index.d.ts +4 -0
- package/providers/{Alerts → Swiper}/interface.d.ts +2 -2
- package/theme/Alerts/index.d.ts +1 -1
- package/theme/Carousel/index.d.ts +216 -8
- package/components/Alerts/components/AlertsNavigationButton.d.ts +0 -8
- package/components/Alerts/components/AlertsSwiper.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +0 -3
- package/index287.js +0 -1
- package/index287.mjs +0 -33
- package/index288.js +0 -1
- package/index288.mjs +0 -4
- package/index289.js +0 -1
- package/index289.mjs +0 -4
- package/providers/Alerts/index.d.ts +0 -4
- package/style.css +0 -1
package/index210.mjs
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as u } from "./index252.mjs";
|
|
2
|
+
var p;
|
|
3
|
+
function o() {
|
|
4
|
+
if (p) return u;
|
|
5
|
+
p = 1;
|
|
6
|
+
function c(r) {
|
|
7
|
+
if (typeof WeakMap != "function") return null;
|
|
8
|
+
var n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
return (c = function(t) {
|
|
10
|
+
return t ? e : n;
|
|
11
|
+
})(r);
|
|
12
|
+
}
|
|
13
|
+
u._ = u._interop_require_wildcard = f;
|
|
14
|
+
function f(r, n) {
|
|
15
|
+
if (!n && r && r.__esModule) return r;
|
|
16
|
+
if (r === null || typeof r != "object" && typeof r != "function") return { default: r };
|
|
17
|
+
var e = c(n);
|
|
18
|
+
if (e && e.has(r)) return e.get(r);
|
|
19
|
+
var t = {}, _ = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
20
|
+
for (var i in r)
|
|
21
|
+
if (i !== "default" && Object.prototype.hasOwnProperty.call(r, i)) {
|
|
22
|
+
var a = _ ? Object.getOwnPropertyDescriptor(r, i) : null;
|
|
23
|
+
a && (a.get || a.set) ? Object.defineProperty(t, i, a) : t[i] = r[i];
|
|
24
|
+
}
|
|
25
|
+
return t.default = r, e && e.set(r, t), t;
|
|
26
|
+
}
|
|
27
|
+
return u;
|
|
28
|
+
}
|
|
2
29
|
export {
|
|
3
|
-
|
|
30
|
+
o as __require
|
|
4
31
|
};
|
package/index211.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index211.mjs
CHANGED
package/index212.mjs
CHANGED
package/index213.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index253.js"),c=require("./index222.js"),_=require("./index251.js");var o;function P(){return o||(o=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"addLocale",{enumerable:!0,get:function(){return d}});const a=c.__require(),u=_.__require();function d(e,r,f,s){if(!r||r===f)return e;const n=e.toLowerCase();return!s&&((0,u.pathHasPrefix)(n,"/api")||(0,u.pathHasPrefix)(n,"/"+r.toLowerCase()))?e:(0,a.addPathPrefix)(e,"/"+r)}}(t.__exports)),t.__exports}exports.__require=P;
|
package/index213.mjs
CHANGED
|
@@ -1,55 +1,25 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { __exports as t } from "./index253.mjs";
|
|
2
|
+
import { __require as _ } from "./index222.mjs";
|
|
3
|
+
import { __require as c } from "./index251.mjs";
|
|
4
|
+
var u;
|
|
5
|
+
function m() {
|
|
6
|
+
return u ? t : (u = 1, function(i) {
|
|
7
|
+
Object.defineProperty(i, "__esModule", {
|
|
6
8
|
value: !0
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
get: r[t]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
c(f, {
|
|
15
|
-
assign: function() {
|
|
16
|
-
return l;
|
|
17
|
-
},
|
|
18
|
-
searchParamsToUrlQuery: function() {
|
|
19
|
-
return y;
|
|
20
|
-
},
|
|
21
|
-
urlQueryToSearchParams: function() {
|
|
22
|
-
return h;
|
|
9
|
+
}), Object.defineProperty(i, "addLocale", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return n;
|
|
23
13
|
}
|
|
24
14
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
t
|
|
31
|
-
];
|
|
32
|
-
}), r;
|
|
33
|
-
}
|
|
34
|
-
function s(e) {
|
|
35
|
-
return typeof e == "string" || typeof e == "number" && !isNaN(e) || typeof e == "boolean" ? String(e) : "";
|
|
36
|
-
}
|
|
37
|
-
function h(e) {
|
|
38
|
-
const r = new URLSearchParams();
|
|
39
|
-
return Object.entries(e).forEach((t) => {
|
|
40
|
-
let [n, u] = t;
|
|
41
|
-
Array.isArray(u) ? u.forEach((o) => r.append(n, s(o))) : r.set(n, s(u));
|
|
42
|
-
}), r;
|
|
43
|
-
}
|
|
44
|
-
function l(e) {
|
|
45
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
46
|
-
t[n - 1] = arguments[n];
|
|
47
|
-
return t.forEach((u) => {
|
|
48
|
-
Array.from(u.keys()).forEach((o) => e.delete(o)), u.forEach((o, g) => e.append(g, o));
|
|
49
|
-
}), e;
|
|
15
|
+
const f = _(), a = c();
|
|
16
|
+
function n(e, r, d, s) {
|
|
17
|
+
if (!r || r === d) return e;
|
|
18
|
+
const o = e.toLowerCase();
|
|
19
|
+
return !s && ((0, a.pathHasPrefix)(o, "/api") || (0, a.pathHasPrefix)(o, "/" + r.toLowerCase())) ? e : (0, f.addPathPrefix)(e, "/" + r);
|
|
50
20
|
}
|
|
51
|
-
}(
|
|
21
|
+
}(t), t);
|
|
52
22
|
}
|
|
53
23
|
export {
|
|
54
|
-
|
|
24
|
+
m as __require
|
|
55
25
|
};
|
package/index214.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index214.mjs
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var u;
|
|
3
|
-
function m() {
|
|
4
|
-
return u ? r : (u = 1, function(t) {
|
|
5
|
-
Object.defineProperty(t, "__esModule", {
|
|
6
|
-
value: !0
|
|
7
|
-
}), Object.defineProperty(t, "omit", {
|
|
8
|
-
enumerable: !0,
|
|
9
|
-
get: function() {
|
|
10
|
-
return o;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
function o(i, f) {
|
|
14
|
-
const n = {};
|
|
15
|
-
return Object.keys(i).forEach((e) => {
|
|
16
|
-
f.includes(e) || (n[e] = i[e]);
|
|
17
|
-
}), n;
|
|
18
|
-
}
|
|
19
|
-
}(r), r);
|
|
20
|
-
}
|
|
1
|
+
var e = {};
|
|
21
2
|
export {
|
|
22
|
-
|
|
3
|
+
e as __exports
|
|
23
4
|
};
|
package/index215.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index215.mjs
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as _ } from "./index246.mjs";
|
|
3
|
-
import { __require as d } from "./index247.mjs";
|
|
4
|
-
var u;
|
|
5
|
-
function S() {
|
|
6
|
-
return u ? t.exports : (u = 1, function(s, e) {
|
|
7
|
-
Object.defineProperty(e, "__esModule", {
|
|
8
|
-
value: !0
|
|
9
|
-
}), Object.defineProperty(e, "normalizePathTrailingSlash", {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: function() {
|
|
12
|
-
return f;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const l = _(), o = d(), f = (n) => {
|
|
16
|
-
if (!n.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
17
|
-
return n;
|
|
18
|
-
const { pathname: r, query: a, hash: i } = (0, o.parsePath)(n);
|
|
19
|
-
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(r) ? "" + (0, l.removeTrailingSlash)(r) + a + i : r.endsWith("/") ? "" + r + a + i : r + "/" + a + i : "" + (0, l.removeTrailingSlash)(r) + a + i;
|
|
20
|
-
};
|
|
21
|
-
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), s.exports = e.default);
|
|
22
|
-
}(t, t.exports), t.exports);
|
|
23
|
-
}
|
|
1
|
+
var e = {};
|
|
24
2
|
export {
|
|
25
|
-
|
|
3
|
+
e as __exports
|
|
26
4
|
};
|
package/index216.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/index216.mjs
CHANGED
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as _ } from "./index249.mjs";
|
|
3
|
-
import { __require as f } from "./index250.mjs";
|
|
4
|
-
var o;
|
|
5
|
-
function p() {
|
|
6
|
-
return o ? e : (o = 1, function(r) {
|
|
7
|
-
Object.defineProperty(r, "__esModule", {
|
|
8
|
-
value: !0
|
|
9
|
-
});
|
|
10
|
-
function u(c, t) {
|
|
11
|
-
for (var i in t) Object.defineProperty(c, i, {
|
|
12
|
-
enumerable: !0,
|
|
13
|
-
get: t[i]
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
u(r, {
|
|
17
|
-
getSortedRoutes: function() {
|
|
18
|
-
return n.getSortedRoutes;
|
|
19
|
-
},
|
|
20
|
-
isDynamicRoute: function() {
|
|
21
|
-
return s.isDynamicRoute;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const n = _(), s = f();
|
|
25
|
-
}(e), e);
|
|
26
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
27
2
|
export {
|
|
28
|
-
|
|
3
|
+
e as __module
|
|
29
4
|
};
|
package/index217.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index254.js");var a;function i(){return a||(a=1,function(d,e){Object.defineProperty(e,"__esModule",{value:!0});function r(l,t){for(var n in t)Object.defineProperty(l,n,{enumerable:!0,get:t[n]})}r(e,{requestIdleCallback:function(){return c},cancelIdleCallback:function(){return f}});const c=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(l){let t=Date.now();return self.setTimeout(function(){l({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},f=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(l){return clearTimeout(l)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),d.exports=e.default)}(u.__module,u.__module.exports)),u.__module.exports}exports.__require=i;
|
package/index217.mjs
CHANGED
|
@@ -1,49 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return d ? u : (d = 1, function(c) {
|
|
7
|
-
Object.defineProperty(c, "__esModule", {
|
|
1
|
+
import { __module as n } from "./index254.mjs";
|
|
2
|
+
var a;
|
|
3
|
+
function o() {
|
|
4
|
+
return a ? n.exports : (a = 1, function(f, e) {
|
|
5
|
+
Object.defineProperty(e, "__esModule", {
|
|
8
6
|
value: !0
|
|
9
|
-
}), Object.defineProperty(c, "interpolateAs", {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: function() {
|
|
12
|
-
return y;
|
|
13
|
-
}
|
|
14
7
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(s !== o ? (0, m.getRouteMatcher)(a)(s) : "") || // Fall back to reading the values from the href
|
|
21
|
-
// TODO: should this take priority; also need to change in the router.
|
|
22
|
-
g
|
|
23
|
-
);
|
|
24
|
-
t = o;
|
|
25
|
-
const f = Object.keys(p);
|
|
26
|
-
return f.every((r) => {
|
|
27
|
-
let e = l[r] || "";
|
|
28
|
-
const { repeat: n, optional: _ } = p[r];
|
|
29
|
-
let i = "[" + (n ? "..." : "") + r + "]";
|
|
30
|
-
return _ && (i = (e ? "" : "/") + "[" + i + "]"), n && !Array.isArray(e) && (e = [
|
|
31
|
-
e
|
|
32
|
-
]), (_ || r in l) && // Interpolate group into data URL if present
|
|
33
|
-
(t = t.replace(i, n ? e.map(
|
|
34
|
-
// these values should be fully encoded instead of just
|
|
35
|
-
// path delimiter escaped since they are being inserted
|
|
36
|
-
// into the URL and we expect URL encoded segments
|
|
37
|
-
// when parsing dynamic route params
|
|
38
|
-
(q) => encodeURIComponent(q)
|
|
39
|
-
).join("/") : encodeURIComponent(e)) || "/");
|
|
40
|
-
}) || (t = ""), {
|
|
41
|
-
params: f,
|
|
42
|
-
result: t
|
|
43
|
-
};
|
|
8
|
+
function d(l, t) {
|
|
9
|
+
for (var u in t) Object.defineProperty(l, u, {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: t[u]
|
|
12
|
+
});
|
|
44
13
|
}
|
|
45
|
-
|
|
14
|
+
d(e, {
|
|
15
|
+
requestIdleCallback: function() {
|
|
16
|
+
return r;
|
|
17
|
+
},
|
|
18
|
+
cancelIdleCallback: function() {
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const r = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(l) {
|
|
23
|
+
let t = Date.now();
|
|
24
|
+
return self.setTimeout(function() {
|
|
25
|
+
l({
|
|
26
|
+
didTimeout: !1,
|
|
27
|
+
timeRemaining: function() {
|
|
28
|
+
return Math.max(0, 50 - (Date.now() - t));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}, 1);
|
|
32
|
+
}, c = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(l) {
|
|
33
|
+
return clearTimeout(l);
|
|
34
|
+
};
|
|
35
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), f.exports = e.default);
|
|
36
|
+
}(n, n.exports), n.exports);
|
|
46
37
|
}
|
|
47
38
|
export {
|
|
48
|
-
|
|
39
|
+
o as __require
|
|
49
40
|
};
|
package/index218.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/index218.mjs
CHANGED
package/index219.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index255.js"),n=require("./index256.js");var r;function i(){return r||(r=1,function(l,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return o}});const o=(u,a)=>process.env.__NEXT_I18N_SUPPORT?n.__require().normalizeLocalePath(u,a):{pathname:u,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),l.exports=e.default)}(t.__module,t.__module.exports)),t.__module.exports}exports.__require=i;
|
package/index219.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { __module as
|
|
2
|
-
import { __require as
|
|
1
|
+
import { __module as r } from "./index255.mjs";
|
|
2
|
+
import { __require as n } from "./index256.mjs";
|
|
3
3
|
var a;
|
|
4
|
-
function
|
|
5
|
-
return a ?
|
|
4
|
+
function d() {
|
|
5
|
+
return a ? r.exports : (a = 1, function(u, e) {
|
|
6
6
|
Object.defineProperty(e, "__esModule", {
|
|
7
7
|
value: !0
|
|
8
|
-
}), Object.defineProperty(e, "
|
|
8
|
+
}), Object.defineProperty(e, "normalizeLocalePath", {
|
|
9
9
|
enumerable: !0,
|
|
10
10
|
get: function() {
|
|
11
|
-
return
|
|
11
|
+
return o;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
14
|
+
const o = (t, l) => process.env.__NEXT_I18N_SUPPORT ? n().normalizeLocalePath(t, l) : {
|
|
15
|
+
pathname: t,
|
|
16
|
+
detectedLocale: void 0
|
|
17
|
+
};
|
|
18
18
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), u.exports = e.default);
|
|
19
|
-
}(
|
|
19
|
+
}(r, r.exports), r.exports);
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
d as __require
|
|
23
23
|
};
|
package/index22.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),T=require("./index6.js"),F=require("./index25.js"),R=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),T=require("./index6.js"),F=require("./index25.js"),R=require("./index111.js"),S=require("./index13.js"),w=require("./index112.js"),x=require("./index113.js");function C({popoverPlacement:p="bottom start",tokens:r,customTheme:y,themeName:s="datePicker",icon:P="ArrowDown",description:c,buttonLabel:a,...n}){const i=g.useDatePickerState({...n}),t=k.useRef(null),{groupProps:h,fieldProps:d,labelProps:j,descriptionProps:q,buttonProps:l,dialogProps:v,calendarProps:$}=D.useDatePicker({...n},i,t),{label:u}={...n},b=o(`${s}.container`,r),f=o(`${s}.dateField`,r),m=o(`${s}.label`,r);return e.jsxs("div",{className:b,children:[u&&e.jsx("span",{...j,children:u}),c&&e.jsx("div",{...q,children:c}),e.jsx("div",{...h,ref:t,children:e.jsxs(T.default,{themeName:`${s}.button`,tokens:{...r},type:"button",...l,handlePress:l.onPress,children:[a&&e.jsx("p",{className:m,children:a}),e.jsxs("div",{className:f,children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${s}.icon`,tokens:{...r},icon:P})]})}),i.isOpen&&e.jsx(w.CalendarPopover,{triggerRef:t,state:i,placement:p,children:e.jsxs(R.Dialog,{...v,children:[e.jsxs("div",{children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(F,{...$})]})})]})}module.exports=C;
|
package/index22.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import { useRef as S } from "react";
|
|
|
6
6
|
import l from "./index64.mjs";
|
|
7
7
|
import j from "./index6.mjs";
|
|
8
8
|
import k from "./index25.mjs";
|
|
9
|
-
import { Dialog as w } from "./
|
|
9
|
+
import { Dialog as w } from "./index111.mjs";
|
|
10
10
|
import R from "./index13.mjs";
|
|
11
|
-
import { CalendarPopover as y } from "./
|
|
12
|
-
import f from "./
|
|
11
|
+
import { CalendarPopover as y } from "./index112.mjs";
|
|
12
|
+
import f from "./index113.mjs";
|
|
13
13
|
function M({
|
|
14
14
|
popoverPlacement: h = "bottom start",
|
|
15
15
|
tokens: r,
|
package/index220.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index257.js"),i=require("./index258.js");var r;function l(){return r||(r=1,function(a,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return c}});const c=function(){for(var n=arguments.length,o=new Array(n),t=0;t<n;t++)o[t]=arguments[t];if(process.env.__NEXT_I18N_SUPPORT)return i.__require().detectDomainLocale(...o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),a.exports=e.default)}(u.__module,u.__module.exports)),u.__module.exports}exports.__require=l;
|
package/index220.mjs
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { __module as u } from "./index257.mjs";
|
|
2
|
+
import { __require as c } from "./index258.mjs";
|
|
3
|
+
var a;
|
|
4
|
+
function d() {
|
|
5
|
+
return a ? u.exports : (a = 1, function(o, e) {
|
|
6
|
+
Object.defineProperty(e, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(e, "detectDomainLocale", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return i;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const i = function() {
|
|
15
|
+
for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
16
|
+
r[t] = arguments[t];
|
|
17
|
+
if (process.env.__NEXT_I18N_SUPPORT)
|
|
18
|
+
return c().detectDomainLocale(...r);
|
|
19
|
+
};
|
|
20
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), o.exports = e.default);
|
|
21
|
+
}(u, u.exports), u.exports);
|
|
22
|
+
}
|
|
2
23
|
export {
|
|
3
|
-
|
|
24
|
+
d as __require
|
|
4
25
|
};
|
package/index221.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/index221.mjs
CHANGED
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var _;
|
|
3
|
-
function o() {
|
|
4
|
-
if (_) return u;
|
|
5
|
-
_ = 1;
|
|
6
|
-
function p(r) {
|
|
7
|
-
if (typeof WeakMap != "function") return null;
|
|
8
|
-
var n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap();
|
|
9
|
-
return (p = function(t) {
|
|
10
|
-
return t ? e : n;
|
|
11
|
-
})(r);
|
|
12
|
-
}
|
|
13
|
-
u._ = u._interop_require_wildcard = c;
|
|
14
|
-
function c(r, n) {
|
|
15
|
-
if (!n && r && r.__esModule) return r;
|
|
16
|
-
if (r === null || typeof r != "object" && typeof r != "function") return { default: r };
|
|
17
|
-
var e = p(n);
|
|
18
|
-
if (e && e.has(r)) return e.get(r);
|
|
19
|
-
var t = { __proto__: null }, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
20
|
-
for (var i in r)
|
|
21
|
-
if (i !== "default" && Object.prototype.hasOwnProperty.call(r, i)) {
|
|
22
|
-
var a = f ? Object.getOwnPropertyDescriptor(r, i) : null;
|
|
23
|
-
a && (a.get || a.set) ? Object.defineProperty(t, i, a) : t[i] = r[i];
|
|
24
|
-
}
|
|
25
|
-
return t.default = r, e && e.set(r, t), t;
|
|
26
|
-
}
|
|
27
|
-
return u;
|
|
28
|
-
}
|
|
1
|
+
var a = { exports: {} };
|
|
29
2
|
export {
|
|
30
|
-
|
|
3
|
+
a as __module
|
|
31
4
|
};
|
package/index222.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index259.js"),P=require("./index243.js");var n;function f(){return n||(n=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return i}});const a=P.__require();function i(e,u){if(!e.startsWith("/")||!u)return e;const{pathname:o,query:d,hash:s}=(0,a.parsePath)(e);return""+u+o+d+s}}(r.__exports)),r.__exports}exports.__require=f;
|
package/index222.mjs
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as r } from "./index259.mjs";
|
|
2
|
+
import { __require as o } from "./index243.mjs";
|
|
3
|
+
var i;
|
|
4
|
+
function _() {
|
|
5
|
+
return i ? r : (i = 1, function(t) {
|
|
6
|
+
Object.defineProperty(t, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(t, "addPathPrefix", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const u = o();
|
|
15
|
+
function n(e, a) {
|
|
16
|
+
if (!e.startsWith("/") || !a)
|
|
17
|
+
return e;
|
|
18
|
+
const { pathname: P, query: d, hash: f } = (0, u.parsePath)(e);
|
|
19
|
+
return "" + a + P + d + f;
|
|
20
|
+
}
|
|
21
|
+
}(r), r);
|
|
22
|
+
}
|
|
2
23
|
export {
|
|
3
|
-
|
|
24
|
+
_ as __require
|
|
4
25
|
};
|
package/index223.mjs
CHANGED
package/index224.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index257.js"),c=require("./index233.js"),_=require("./index255.js");var o;function P(){return o||(o=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"addLocale",{enumerable:!0,get:function(){return d}});const a=c.__require(),u=_.__require();function d(e,r,f,s){if(!r||r===f)return e;const n=e.toLowerCase();return!s&&((0,u.pathHasPrefix)(n,"/api")||(0,u.pathHasPrefix)(n,"/"+r.toLowerCase()))?e:(0,a.addPathPrefix)(e,"/"+r)}}(t.__exports)),t.__exports}exports.__require=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index272.js"),B=require("./index273.js"),N=require("./index274.js"),j=require("./index148.js"),U=require("./index275.js"),o=require("@react-aria/utils"),w=require("react");function z(i){let s=w.useContext(B.PressResponderContext);if(s){let{register:u,...c}=s;i=o.mergeProps(c,i),u()}return o.useSyncRef(s,i.ref),i}var x=new WeakMap;class C{continuePropagation(){U._class_private_field_set(this,x,!1)}get shouldStopPropagation(){return N._class_private_field_get(this,x)}constructor(s,u,c){j._class_private_field_init(this,x,{writable:!0,value:void 0}),U._class_private_field_set(this,x,!0),this.type=s,this.pointerType=u,this.target=c.currentTarget,this.shiftKey=c.shiftKey,this.metaKey=c.metaKey,this.ctrlKey=c.ctrlKey,this.altKey=c.altKey}}const R=Symbol("linkClicked");function J(i){let{onPress:s,onPressChange:u,onPressStart:c,onPressEnd:g,onPressUp:M,isDisabled:v,isPressed:H,preventFocusOnPress:k,shouldCancelOnPointerExit:G,allowTextSelectionOnPress:y,ref:re,...V}=z(i),[X,A]=w.useState(!1),S=w.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:h,removeAllGlobalListeners:$}=o.useGlobalListeners(),T=o.useEffectEvent((e,a)=>{let d=S.current;if(v||d.didFirePressStart)return!1;let n=!0;if(d.isTriggeringEvent=!0,c){let l=new C("pressstart",a,e);c(l),n=l.shouldStopPropagation}return u&&u(!0),d.isTriggeringEvent=!1,d.didFirePressStart=!0,A(!0),n}),p=o.useEffectEvent((e,a,d=!0)=>{let n=S.current;if(!n.didFirePressStart)return!1;n.ignoreClickAfterPress=!0,n.didFirePressStart=!1,n.isTriggeringEvent=!0;let l=!0;if(g){let t=new C("pressend",a,e);g(t),l=t.shouldStopPropagation}if(u&&u(!1),A(!1),s&&d&&!v){let t=new C("press",a,e);s(t),l&&(l=t.shouldStopPropagation)}return n.isTriggeringEvent=!1,l}),m=o.useEffectEvent((e,a)=>{let d=S.current;if(v)return!1;if(M){d.isTriggeringEvent=!0;let n=new C("pressup",a,e);return M(n),d.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),E=o.useEffectEvent(e=>{let a=S.current;a.isPressed&&a.target&&(a.isOverTarget&&a.pointerType!=null&&p(P(a.target,e),a.pointerType,!1),a.isPressed=!1,a.isOverTarget=!1,a.activePointerId=null,a.pointerType=null,$(),y||b.restoreTextSelection(a.target))}),_=o.useEffectEvent(e=>{G&&E(e)}),Y=w.useMemo(()=>{let e=S.current,a={onKeyDown(n){if(D(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){var l;W(n.target,n.key)&&n.preventDefault();let t=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,t=T(n,"keyboard");let r=n.currentTarget,f=O=>{D(O,r)&&!O.repeat&&r.contains(O.target)&&e.target&&m(P(e.target,O),"keyboard")};h(o.getOwnerDocument(n.currentTarget),"keyup",o.chain(f,d),!0)}t&&n.stopPropagation(),n.metaKey&&o.isMac()&&((l=e.metaKeyEvents)===null||l===void 0||l.set(n.key,n.nativeEvent))}else n.key==="Meta"&&(e.metaKeyEvents=new Map)},onClick(n){if(!(n&&!n.currentTarget.contains(n.target))&&n&&n.button===0&&!e.isTriggeringEvent&&!o.openLink.isOpening){let l=!0;if(v&&n.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType==="virtual"||o.isVirtualClick(n.nativeEvent))){!v&&!k&&o.focusWithoutScrolling(n.currentTarget);let t=T(n,"virtual"),r=m(n,"virtual"),f=p(n,"virtual");l=t&&r&&f}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,l&&n.stopPropagation()}}},d=n=>{var l;if(e.isPressed&&e.target&&D(n,e.target)){var t;W(n.target,n.key)&&n.preventDefault();let f=n.target;p(P(e.target,n),"keyboard",e.target.contains(f)),$(),n.key!=="Enter"&&L(e.target)&&e.target.contains(f)&&!n[R]&&(n[R]=!0,o.openLink(e.target,n,!1)),e.isPressed=!1,(t=e.metaKeyEvents)===null||t===void 0||t.delete(n.key)}else if(n.key==="Meta"&&(!((l=e.metaKeyEvents)===null||l===void 0)&&l.size)){var r;let f=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let O of f.values())(r=e.target)===null||r===void 0||r.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){a.onPointerDown=r=>{if(r.button!==0||!r.currentTarget.contains(r.target))return;if(o.isVirtualPointerEvent(r.nativeEvent)){e.pointerType="virtual";return}I(r.currentTarget)&&r.preventDefault(),e.pointerType=r.pointerType;let f=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=r.pointerId,e.target=r.currentTarget,!v&&!k&&o.focusWithoutScrolling(r.currentTarget),y||b.disableTextSelection(e.target),f=T(r,e.pointerType),h(o.getOwnerDocument(r.currentTarget),"pointermove",n,!1),h(o.getOwnerDocument(r.currentTarget),"pointerup",l,!1),h(o.getOwnerDocument(r.currentTarget),"pointercancel",t,!1)),f&&r.stopPropagation()},a.onMouseDown=r=>{r.currentTarget.contains(r.target)&&r.button===0&&(I(r.currentTarget)&&r.preventDefault(),r.stopPropagation())},a.onPointerUp=r=>{!r.currentTarget.contains(r.target)||e.pointerType==="virtual"||r.button===0&&K(r,r.currentTarget)&&m(r,e.pointerType||r.pointerType)};let n=r=>{r.pointerId===e.activePointerId&&(e.target&&K(r,e.target)?!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,T(P(e.target,r),e.pointerType)):e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,p(P(e.target,r),e.pointerType,!1),_(r)))},l=r=>{r.pointerId===e.activePointerId&&e.isPressed&&r.button===0&&e.target&&(K(r,e.target)&&e.pointerType!=null?p(P(e.target,r),e.pointerType):e.isOverTarget&&e.pointerType!=null&&p(P(e.target,r),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),y||b.restoreTextSelection(e.target))},t=r=>{E(r)};a.onDragStart=r=>{r.currentTarget.contains(r.target)&&E(r)}}else{a.onMouseDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if(I(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=o.isVirtualClick(t.nativeEvent)?"virtual":"mouse",!v&&!k&&o.focusWithoutScrolling(t.currentTarget),T(t,e.pointerType)&&t.stopPropagation(),h(o.getOwnerDocument(t.currentTarget),"mouseup",n,!1)},a.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!0,r=T(t,e.pointerType)),r&&t.stopPropagation()},a.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!1,r=p(t,e.pointerType,!1),_(t)),r&&t.stopPropagation()},a.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&t.button===0&&m(t,e.pointerType||"mouse")};let n=t=>{if(t.button===0){if(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&K(t,e.target)&&e.pointerType!=null?p(P(e.target,t),e.pointerType):e.target&&e.isOverTarget&&e.pointerType!=null&&p(P(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};a.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=Q(t.nativeEvent);if(!r)return;e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",!v&&!k&&o.focusWithoutScrolling(t.currentTarget),y||b.disableTextSelection(e.target),T(t,e.pointerType)&&t.stopPropagation(),h(o.getOwnerWindow(t.currentTarget),"scroll",l,!0)},a.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=F(t.nativeEvent,e.activePointerId),f=!0;r&&K(r,t.currentTarget)?!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,f=T(t,e.pointerType)):e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,f=p(t,e.pointerType,!1),_(t)),f&&t.stopPropagation()},a.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=F(t.nativeEvent,e.activePointerId),f=!0;r&&K(r,t.currentTarget)&&e.pointerType!=null?(m(t,e.pointerType),f=p(t,e.pointerType)):e.isOverTarget&&e.pointerType!=null&&(f=p(t,e.pointerType,!1)),f&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!y&&b.restoreTextSelection(e.target),$()},a.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(t))};let l=t=>{e.isPressed&&t.target.contains(e.target)&&E({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};a.onDragStart=t=>{t.currentTarget.contains(t.target)&&E(t)}}return a},[h,v,k,$,y,E,_,p,T,m]);return w.useEffect(()=>()=>{var e;y||b.restoreTextSelection((e=S.current.target)!==null&&e!==void 0?e:void 0)},[y]),{isPressed:H||X,pressProps:o.mergeProps(V,Y)}}function L(i){return i.tagName==="A"&&i.hasAttribute("href")}function D(i,s){const{key:u,code:c}=i,g=s,M=g.getAttribute("role");return(u==="Enter"||u===" "||u==="Spacebar"||c==="Space")&&!(g instanceof o.getOwnerWindow(g).HTMLInputElement&&!q(g,u)||g instanceof o.getOwnerWindow(g).HTMLTextAreaElement||g.isContentEditable)&&!((M==="link"||!M&&L(g))&&u!=="Enter")}function Q(i){const{targetTouches:s}=i;return s.length>0?s[0]:null}function F(i,s){const u=i.changedTouches;for(let c=0;c<u.length;c++){const g=u[c];if(g.identifier===s)return g}return null}function P(i,s){return{currentTarget:i,shiftKey:s.shiftKey,ctrlKey:s.ctrlKey,metaKey:s.metaKey,altKey:s.altKey}}function Z(i){let s=0,u=0;return i.width!==void 0?s=i.width/2:i.radiusX!==void 0&&(s=i.radiusX),i.height!==void 0?u=i.height/2:i.radiusY!==void 0&&(u=i.radiusY),{top:i.clientY-u,right:i.clientX+s,bottom:i.clientY+u,left:i.clientX-s}}function ee(i,s){return!(i.left>s.right||s.left>i.right||i.top>s.bottom||s.top>i.bottom)}function K(i,s){let u=s.getBoundingClientRect(),c=Z(i);return ee(u,c)}function I(i){return!(i instanceof HTMLElement)||!i.hasAttribute("draggable")}function W(i,s){return i instanceof HTMLInputElement?!q(i,s):i instanceof HTMLButtonElement?i.type!=="submit"&&i.type!=="reset":!L(i)}const te=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q(i,s){return i.type==="checkbox"||i.type==="radio"?s===" ":te.has(i.type)}exports.usePress=J;
|