@fluid-app/fluid-cli-theme-dev 0.1.432 → 0.1.434
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/dist-cli-preview/.vite/manifest.json +311 -314
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-D_SqXp7d.js → Breadcrumb-BKdVGms9.js} +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-Km3Vrphp.js → Combobox-CyU4gagO.js} +27 -27
- package/dist/dist-cli-preview/chunks/{ContactsScreen-kuRxflCD.js → ContactsScreen-nqNyMwxa.js} +370 -370
- package/dist/dist-cli-preview/chunks/MediaScreen-BGWqRFE4.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-BS6VVAvZ.js → MemberManagementProviders-D8tSqPWo.js} +6 -6
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-DMuIxGxX.js → MemberShareablesScreen-nYcxHAnv.js} +1313 -1329
- package/dist/dist-cli-preview/chunks/MessagingScreen-DaCvmrAU.js +50551 -0
- package/dist/dist-cli-preview/chunks/MobileActionSheet-DaIBkwQD.js +3884 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-Ch1cOkKp.js → MySiteScreen-BYY4CFhu.js} +15 -15
- package/dist/dist-cli-preview/chunks/OrdersScreen-DDdLpJ-7.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-DFqHUrkC.js → OrdersScreen-DkZKc0Z_.js} +7 -7
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-F04j44L-.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-DWOzWTBJ.js → PortalTenantClientProvider-D6a79po2.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-C_gqCV47.js → ProfileScreen-BPw0o_kl.js} +222 -237
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DiXGHeoZ.js → SubscriptionsScreen-DuiI_9iF.js} +3 -3
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-BjzMc3GU.js → account-screen-runtime-BYj9PrHT.js} +2326 -2358
- package/dist/dist-cli-preview/chunks/ar-1KIG4DjU.js +1032 -0
- package/dist/dist-cli-preview/chunks/{arrow-left-D62DJteK.js → arrow-left-DnjGVTam.js} +1 -1
- package/dist/dist-cli-preview/chunks/bg-yBy5d6ww.js +1032 -0
- package/dist/dist-cli-preview/chunks/bn-BDIXtBiu.js +1032 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-c45YGC1E.js → cli-preview-C-nTMZQi.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-DfWiOTes.js → client.gen-DO8I8bB0.js} +9 -9
- package/dist/dist-cli-preview/chunks/{copy-zqKnEIeM.js → copy-COLmacny.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-DRty_8ei.js → countries-api-adapter-B2ub-v6x.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-4VLe3B5O.js → create-card-entry-container-C7h1cYNe.js} +7380 -7374
- package/dist/dist-cli-preview/chunks/cs-eyeSjS66.js +1032 -0
- package/dist/dist-cli-preview/chunks/da-BMwLUsWZ.js +1032 -0
- package/dist/dist-cli-preview/chunks/de-CWgvDnNQ.js +1032 -0
- package/dist/dist-cli-preview/chunks/el-BhX-RBtB.js +1032 -0
- package/dist/dist-cli-preview/chunks/ellipsis-wdxlMcjt.js +15 -0
- package/dist/dist-cli-preview/chunks/es-fIpwOat4.js +1032 -0
- package/dist/dist-cli-preview/chunks/{eye-Ce93vUsx.js → eye-Cs-LW2s_.js} +1 -1
- package/dist/dist-cli-preview/chunks/fi-BI9n529u.js +1032 -0
- package/dist/dist-cli-preview/chunks/fr-DMDmmtDd.js +1032 -0
- package/dist/dist-cli-preview/chunks/he-BQxAPia2.js +1032 -0
- package/dist/dist-cli-preview/chunks/{hey-api-client-GUem9W6L.js → hey-api-client-C0XYGcOp.js} +1 -1
- package/dist/dist-cli-preview/chunks/hi--CH25zD0.js +1032 -0
- package/dist/dist-cli-preview/chunks/hr-vHPscpGv.js +1032 -0
- package/dist/dist-cli-preview/chunks/hu-BQTLt458.js +1032 -0
- package/dist/dist-cli-preview/chunks/id-R9lUJSOz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{index-B_xDY7q5.js → index-C3BTHcpz.js} +249 -232
- package/dist/dist-cli-preview/chunks/{index-DotYg_8P.js → index-DSTWchdg.js} +2294 -2088
- package/dist/dist-cli-preview/chunks/index-qwhiPvOP.js +135 -0
- package/dist/dist-cli-preview/chunks/isAfter-CcghMy5x.js +1324 -0
- package/dist/dist-cli-preview/chunks/it-iN8sGAC0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ja-BGIZaAW0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ko-Cr6Wl_2I.js +1032 -0
- package/dist/dist-cli-preview/chunks/log-out-BIykSy7b.js +30 -0
- package/dist/dist-cli-preview/chunks/{map-pin-C_2_P4BZ.js → map-pin-Be34_dU6.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-D7ENrup9.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-DLu4WsoN.js → mount-account-screen-BfLjUsgR.js} +8 -8
- package/dist/dist-cli-preview/chunks/ms-CVPERbjz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-Zm16FA01.js → navigate-account-screen-CiKHtySl.js} +1 -1
- package/dist/dist-cli-preview/chunks/nl-38XjLPxf.js +1032 -0
- package/dist/dist-cli-preview/chunks/no-C9CyNben.js +1032 -0
- package/dist/dist-cli-preview/chunks/pause-BBpqu34U.js +41 -0
- package/dist/dist-cli-preview/chunks/pl-DmR9h5su.js +1032 -0
- package/dist/dist-cli-preview/chunks/pt-t-mbd11H.js +1032 -0
- package/dist/dist-cli-preview/chunks/ro-T2DyDJMM.js +1032 -0
- package/dist/dist-cli-preview/chunks/ru-DEgbQN8m.js +1032 -0
- package/dist/dist-cli-preview/chunks/{schemas-CcDaDYH8.js → schemas-EHBiwcQ2.js} +1748 -1618
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-CKharc6_.js → screen-route-slug-utils-Bq-L-ohr.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-DTfySPrq.js → sheet-haptics-context-DT2_eUzd.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sidebar-CkC-f9zG.js → sidebar-C09syHYk.js} +10 -10
- package/dist/dist-cli-preview/chunks/sk-CFYGY_a5.js +1032 -0
- package/dist/dist-cli-preview/chunks/{sortable.esm-e9hcrOle.js → sortable.esm-ClljxXn3.js} +2 -2
- package/dist/dist-cli-preview/chunks/{store-api-context-CDtl_X71.js → store-api-context-DzwRm7gt.js} +1 -1
- package/dist/dist-cli-preview/chunks/sv-i61vcDan.js +1032 -0
- package/dist/dist-cli-preview/chunks/th-DfFRan1t.js +1032 -0
- package/dist/dist-cli-preview/chunks/tl-olBNOPcn.js +1032 -0
- package/dist/dist-cli-preview/chunks/tr-LZKZ4tKb.js +1032 -0
- package/dist/dist-cli-preview/chunks/trash-2-CZhp1ODr.js +17 -0
- package/dist/dist-cli-preview/chunks/uk-BtXttbkl.js +1032 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-DF76-293.js → use-mobile-B7ojcHh2.js} +3 -3
- package/dist/dist-cli-preview/chunks/{use-optional-store-DT9WAQPd.js → use-optional-store-DJYDCvhI.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-DeK8QAFv.js +400 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-CDXQnWw0.js → useInfiniteQuery-FHeNizQM.js} +1 -1
- package/dist/dist-cli-preview/chunks/{user-B-jZvwGL.js → user-ozIT6Hhj.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-TuK7MiQN.js → users-JoDv7hjw.js} +1 -1
- package/dist/dist-cli-preview/chunks/vi-BHWnhETf.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_CN-CTgClYOF.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_TW-aQ6cE6PF.js +1032 -0
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/MediaScreen-BvJdBMeQ.js +0 -8
- package/dist/dist-cli-preview/chunks/MessagingScreen-BKHqT1Ej.js +0 -35760
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CBoGiv4j.js +0 -2950
- package/dist/dist-cli-preview/chunks/OrdersScreen-BGgj4BZS.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Bx1XIkZA.js +0 -8
- package/dist/dist-cli-preview/chunks/Select-sVTiAmsy.js +0 -952
- package/dist/dist-cli-preview/chunks/Textarea-D-fkMEdH.js +0 -349
- package/dist/dist-cli-preview/chunks/ar-2rvzIrIR.js +0 -626
- package/dist/dist-cli-preview/chunks/bg-BYPRLePV.js +0 -626
- package/dist/dist-cli-preview/chunks/bn-C0wttE43.js +0 -626
- package/dist/dist-cli-preview/chunks/cs-C7Irs0-j.js +0 -626
- package/dist/dist-cli-preview/chunks/da-80sKijLl.js +0 -626
- package/dist/dist-cli-preview/chunks/de-tvILU4R6.js +0 -626
- package/dist/dist-cli-preview/chunks/el-B3kxyML7.js +0 -626
- package/dist/dist-cli-preview/chunks/es-BTQqBZ3c.js +0 -626
- package/dist/dist-cli-preview/chunks/fi-B3aiDLBd.js +0 -626
- package/dist/dist-cli-preview/chunks/fr-C6aLQLnC.js +0 -626
- package/dist/dist-cli-preview/chunks/he-yMMGeZ3u.js +0 -626
- package/dist/dist-cli-preview/chunks/hi-Cnovv3v0.js +0 -626
- package/dist/dist-cli-preview/chunks/hr-B9M6sJu9.js +0 -626
- package/dist/dist-cli-preview/chunks/hu-D__s9KvX.js +0 -626
- package/dist/dist-cli-preview/chunks/id-CrrK_-vk.js +0 -626
- package/dist/dist-cli-preview/chunks/index-BF-Yok75.js +0 -341
- package/dist/dist-cli-preview/chunks/it-C_g-lMfy.js +0 -626
- package/dist/dist-cli-preview/chunks/ja-Dmdbg-it.js +0 -626
- package/dist/dist-cli-preview/chunks/ko-C-jyYnAw.js +0 -626
- package/dist/dist-cli-preview/chunks/lock-B3ps7XBv.js +0 -14
- package/dist/dist-cli-preview/chunks/log-out-CDzQuZ5N.js +0 -15
- package/dist/dist-cli-preview/chunks/messaging-BETZIbiu.js +0 -4
- package/dist/dist-cli-preview/chunks/ms-Bk6rBm7W.js +0 -626
- package/dist/dist-cli-preview/chunks/nl-Bh5tyFlK.js +0 -626
- package/dist/dist-cli-preview/chunks/no-BqMQtHFU.js +0 -626
- package/dist/dist-cli-preview/chunks/pl-B4xTBpA_.js +0 -626
- package/dist/dist-cli-preview/chunks/pt-Biz6F-Fo.js +0 -626
- package/dist/dist-cli-preview/chunks/ro-BKd4fPGi.js +0 -626
- package/dist/dist-cli-preview/chunks/ru-CD8HG55y.js +0 -626
- package/dist/dist-cli-preview/chunks/sk-5vqOdyEq.js +0 -626
- package/dist/dist-cli-preview/chunks/sv-D-_y-QCE.js +0 -626
- package/dist/dist-cli-preview/chunks/th-BHVHNGsc.js +0 -626
- package/dist/dist-cli-preview/chunks/tl-DdaRIJXv.js +0 -626
- package/dist/dist-cli-preview/chunks/tr-CP55XLFp.js +0 -626
- package/dist/dist-cli-preview/chunks/trash-2-C5c1weGY.js +0 -137
- package/dist/dist-cli-preview/chunks/uk-C5cwrSwu.js +0 -626
- package/dist/dist-cli-preview/chunks/use-store-DUukxuYV.js +0 -92
- package/dist/dist-cli-preview/chunks/vi-7y-mSoow.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_CN-cvRqvqNw.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_TW-_Qzm5B74.js +0 -626
|
@@ -1,38 +1,27 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import { a as u } from "./use-store-
|
|
1
|
+
import { c as I, l, j as b, aa as Ri, aj as ci, ab as Ii, am as B, aY as Si, aK as Mi, al as li, aZ as qi, a_ as Li, aD as Hi, aN as $i, M as Ni, a$ as L, ar as Ki, H as Bi } from "./account-screen-runtime-BYj9PrHT.js";
|
|
2
|
+
import { q as ri, A as Wi, r as Gi, s as Ui, t as Vi, u as Yi } from "./MobileActionSheet-DaIBkwQD.js";
|
|
3
|
+
import { a as u } from "./use-store-DeK8QAFv.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.575.0 - ISC
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the ISC license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const Xi = [
|
|
11
11
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
12
12
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
13
|
-
],
|
|
13
|
+
], Ee = I("arrow-right", Xi);
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v0.575.0 - ISC
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the ISC license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
const
|
|
21
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
22
|
-
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
23
|
-
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
24
|
-
], Ee = S("circle-question-mark", Xi);
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v0.575.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
const Qi = [
|
|
20
|
+
const Ji = [
|
|
32
21
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
33
22
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
34
23
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
35
|
-
], ze =
|
|
24
|
+
], ze = I("download", Ji);
|
|
36
25
|
/**
|
|
37
26
|
* @license lucide-react v0.575.0 - ISC
|
|
38
27
|
*
|
|
@@ -50,14 +39,14 @@ const Zi = [
|
|
|
50
39
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
51
40
|
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
52
41
|
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
53
|
-
],
|
|
42
|
+
], Te = I("file-image", Zi);
|
|
54
43
|
/**
|
|
55
44
|
* @license lucide-react v0.575.0 - ISC
|
|
56
45
|
*
|
|
57
46
|
* This source code is licensed under the ISC license.
|
|
58
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
48
|
*/
|
|
60
|
-
const
|
|
49
|
+
const Qi = [
|
|
61
50
|
[
|
|
62
51
|
"path",
|
|
63
52
|
{
|
|
@@ -69,7 +58,18 @@ const at = [
|
|
|
69
58
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
70
59
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
71
60
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
72
|
-
],
|
|
61
|
+
], Ce = I("file-text", Qi);
|
|
62
|
+
/**
|
|
63
|
+
* @license lucide-react v0.575.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/
|
|
68
|
+
const at = [
|
|
69
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
70
|
+
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
71
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
72
|
+
], Ae = I("globe", at);
|
|
73
73
|
/**
|
|
74
74
|
* @license lucide-react v0.575.0 - ISC
|
|
75
75
|
*
|
|
@@ -77,9 +77,10 @@ const at = [
|
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
78
|
*/
|
|
79
79
|
const it = [
|
|
80
|
-
["
|
|
81
|
-
["
|
|
82
|
-
|
|
80
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
81
|
+
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
82
|
+
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
83
|
+
], _e = I("image", it);
|
|
83
84
|
/**
|
|
84
85
|
* @license lucide-react v0.575.0 - ISC
|
|
85
86
|
*
|
|
@@ -87,10 +88,9 @@ const it = [
|
|
|
87
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
89
|
*/
|
|
89
90
|
const tt = [
|
|
90
|
-
["path", { d: "
|
|
91
|
-
["path", { d: "
|
|
92
|
-
|
|
93
|
-
], Oe = S("menu", tt);
|
|
91
|
+
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
92
|
+
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
93
|
+
], Oe = I("link", tt);
|
|
94
94
|
/**
|
|
95
95
|
* @license lucide-react v0.575.0 - ISC
|
|
96
96
|
*
|
|
@@ -101,13 +101,29 @@ const et = [
|
|
|
101
101
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
102
102
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
103
103
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
104
|
-
],
|
|
104
|
+
], Pe = I("upload", et);
|
|
105
|
+
/**
|
|
106
|
+
* @license lucide-react v0.575.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/
|
|
111
|
+
const nt = [
|
|
112
|
+
[
|
|
113
|
+
"path",
|
|
114
|
+
{
|
|
115
|
+
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
116
|
+
key: "ftymec"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
120
|
+
], Fe = I("video", nt);
|
|
105
121
|
var [ma] = Ri("Tooltip", [
|
|
106
122
|
ri
|
|
107
|
-
]), ua = ri(), si = "TooltipProvider",
|
|
123
|
+
]), ua = ri(), si = "TooltipProvider", ot = 700, Ta = "tooltip.open", [pt, Ra] = ma(si), di = (a) => {
|
|
108
124
|
const {
|
|
109
125
|
__scopeTooltip: i,
|
|
110
|
-
delayDuration: t =
|
|
126
|
+
delayDuration: t = ot,
|
|
111
127
|
skipDelayDuration: e = 300,
|
|
112
128
|
disableHoverableContent: n = !1,
|
|
113
129
|
children: o
|
|
@@ -116,7 +132,7 @@ var [ma] = Ri("Tooltip", [
|
|
|
116
132
|
const f = d.current;
|
|
117
133
|
return () => window.clearTimeout(f);
|
|
118
134
|
}, []), /* @__PURE__ */ b.jsx(
|
|
119
|
-
|
|
135
|
+
pt,
|
|
120
136
|
{
|
|
121
137
|
scope: i,
|
|
122
138
|
isOpenDelayedRef: c,
|
|
@@ -140,7 +156,7 @@ var [ma] = Ri("Tooltip", [
|
|
|
140
156
|
);
|
|
141
157
|
};
|
|
142
158
|
di.displayName = si;
|
|
143
|
-
var
|
|
159
|
+
var J = "Tooltip", [ct, Q] = ma(J), mi = (a) => {
|
|
144
160
|
const {
|
|
145
161
|
__scopeTooltip: i,
|
|
146
162
|
children: t,
|
|
@@ -149,14 +165,14 @@ var X = "Tooltip", [pt, Z] = ma(X), mi = (a) => {
|
|
|
149
165
|
onOpenChange: o,
|
|
150
166
|
disableHoverableContent: c,
|
|
151
167
|
delayDuration: r
|
|
152
|
-
} = a, d = Ra(
|
|
168
|
+
} = a, d = Ra(J, a.__scopeTooltip), f = ua(i), [m, x] = l.useState(null), h = Si(), v = l.useRef(0), w = c ?? d.disableHoverableContent, j = r ?? d.delayDuration, D = l.useRef(!1), [_, z] = Mi({
|
|
153
169
|
prop: e,
|
|
154
170
|
defaultProp: n ?? !1,
|
|
155
|
-
onChange: (
|
|
156
|
-
|
|
171
|
+
onChange: (O) => {
|
|
172
|
+
O ? (d.onOpen(), document.dispatchEvent(new CustomEvent(Ta))) : d.onClose(), o?.(O);
|
|
157
173
|
},
|
|
158
|
-
caller:
|
|
159
|
-
}), F = l.useMemo(() =>
|
|
174
|
+
caller: J
|
|
175
|
+
}), F = l.useMemo(() => _ ? D.current ? "delayed-open" : "instant-open" : "closed", [_]), S = l.useCallback(() => {
|
|
160
176
|
window.clearTimeout(v.current), v.current = 0, D.current = !1, z(!0);
|
|
161
177
|
}, [z]), R = l.useCallback(() => {
|
|
162
178
|
window.clearTimeout(v.current), v.current = 0, z(!1);
|
|
@@ -168,33 +184,33 @@ var X = "Tooltip", [pt, Z] = ma(X), mi = (a) => {
|
|
|
168
184
|
return l.useEffect(() => () => {
|
|
169
185
|
v.current && (window.clearTimeout(v.current), v.current = 0);
|
|
170
186
|
}, []), /* @__PURE__ */ b.jsx(Gi, { ...f, children: /* @__PURE__ */ b.jsx(
|
|
171
|
-
|
|
187
|
+
ct,
|
|
172
188
|
{
|
|
173
189
|
scope: i,
|
|
174
190
|
contentId: h,
|
|
175
|
-
open:
|
|
191
|
+
open: _,
|
|
176
192
|
stateAttribute: F,
|
|
177
193
|
trigger: m,
|
|
178
194
|
onTriggerChange: x,
|
|
179
195
|
onTriggerEnter: l.useCallback(() => {
|
|
180
|
-
d.isOpenDelayedRef.current ? U() :
|
|
181
|
-
}, [d.isOpenDelayedRef, U,
|
|
196
|
+
d.isOpenDelayedRef.current ? U() : S();
|
|
197
|
+
}, [d.isOpenDelayedRef, U, S]),
|
|
182
198
|
onTriggerLeave: l.useCallback(() => {
|
|
183
199
|
w ? R() : (window.clearTimeout(v.current), v.current = 0);
|
|
184
200
|
}, [R, w]),
|
|
185
|
-
onOpen:
|
|
201
|
+
onOpen: S,
|
|
186
202
|
onClose: R,
|
|
187
203
|
disableHoverableContent: w,
|
|
188
204
|
children: t
|
|
189
205
|
}
|
|
190
206
|
) });
|
|
191
207
|
};
|
|
192
|
-
mi.displayName =
|
|
193
|
-
var
|
|
208
|
+
mi.displayName = J;
|
|
209
|
+
var Ca = "TooltipTrigger", ui = l.forwardRef(
|
|
194
210
|
(a, i) => {
|
|
195
|
-
const { __scopeTooltip: t, ...e } = a, n =
|
|
211
|
+
const { __scopeTooltip: t, ...e } = a, n = Q(Ca, t), o = Ra(Ca, t), c = ua(t), r = l.useRef(null), d = ci(i, r, n.onTriggerChange), f = l.useRef(!1), m = l.useRef(!1), x = l.useCallback(() => f.current = !1, []);
|
|
196
212
|
return l.useEffect(() => () => document.removeEventListener("pointerup", x), [x]), /* @__PURE__ */ b.jsx(Wi, { asChild: !0, ...c, children: /* @__PURE__ */ b.jsx(
|
|
197
|
-
|
|
213
|
+
Ii.button,
|
|
198
214
|
{
|
|
199
215
|
"aria-describedby": n.open ? n.contentId : void 0,
|
|
200
216
|
"data-state": n.stateAttribute,
|
|
@@ -218,25 +234,25 @@ var Ta = "TooltipTrigger", ui = l.forwardRef(
|
|
|
218
234
|
) });
|
|
219
235
|
}
|
|
220
236
|
);
|
|
221
|
-
ui.displayName =
|
|
222
|
-
var
|
|
237
|
+
ui.displayName = Ca;
|
|
238
|
+
var Ia = "TooltipPortal", [lt, rt] = ma(Ia, {
|
|
223
239
|
forceMount: void 0
|
|
224
240
|
}), vi = (a) => {
|
|
225
|
-
const { __scopeTooltip: i, forceMount: t, children: e, container: n } = a, o =
|
|
226
|
-
return /* @__PURE__ */ b.jsx(
|
|
241
|
+
const { __scopeTooltip: i, forceMount: t, children: e, container: n } = a, o = Q(Ia, i);
|
|
242
|
+
return /* @__PURE__ */ b.jsx(lt, { scope: i, forceMount: t, children: /* @__PURE__ */ b.jsx(li, { present: t || o.open, children: /* @__PURE__ */ b.jsx(qi, { asChild: !0, container: n, children: e }) }) });
|
|
227
243
|
};
|
|
228
|
-
vi.displayName =
|
|
244
|
+
vi.displayName = Ia;
|
|
229
245
|
var W = "TooltipContent", fi = l.forwardRef(
|
|
230
246
|
(a, i) => {
|
|
231
|
-
const t =
|
|
232
|
-
return /* @__PURE__ */ b.jsx(li, { present: e || c.open, children: c.disableHoverableContent ? /* @__PURE__ */ b.jsx(xi, { side: n, ...o, ref: i }) : /* @__PURE__ */ b.jsx(
|
|
247
|
+
const t = rt(W, a.__scopeTooltip), { forceMount: e = t.forceMount, side: n = "top", ...o } = a, c = Q(W, a.__scopeTooltip);
|
|
248
|
+
return /* @__PURE__ */ b.jsx(li, { present: e || c.open, children: c.disableHoverableContent ? /* @__PURE__ */ b.jsx(xi, { side: n, ...o, ref: i }) : /* @__PURE__ */ b.jsx(st, { side: n, ...o, ref: i }) });
|
|
233
249
|
}
|
|
234
|
-
),
|
|
235
|
-
const t =
|
|
250
|
+
), st = l.forwardRef((a, i) => {
|
|
251
|
+
const t = Q(W, a.__scopeTooltip), e = Ra(W, a.__scopeTooltip), n = l.useRef(null), o = ci(i, n), [c, r] = l.useState(null), { trigger: d, onClose: f } = t, m = n.current, { onPointerInTransitChange: x } = e, h = l.useCallback(() => {
|
|
236
252
|
r(null), x(!1);
|
|
237
253
|
}, [x]), v = l.useCallback(
|
|
238
254
|
(w, j) => {
|
|
239
|
-
const D = w.currentTarget,
|
|
255
|
+
const D = w.currentTarget, _ = { x: w.clientX, y: w.clientY }, z = ft(_, D.getBoundingClientRect()), F = xt(_, z), S = gt(j.getBoundingClientRect()), R = bt([...F, ...S]);
|
|
240
256
|
r(R), x(!0);
|
|
241
257
|
},
|
|
242
258
|
[x]
|
|
@@ -251,13 +267,13 @@ var W = "TooltipContent", fi = l.forwardRef(
|
|
|
251
267
|
}, [d, m, v, h]), l.useEffect(() => {
|
|
252
268
|
if (c) {
|
|
253
269
|
const w = (j) => {
|
|
254
|
-
const D = j.target,
|
|
270
|
+
const D = j.target, _ = { x: j.clientX, y: j.clientY }, z = d?.contains(D) || m?.contains(D), F = !ht(_, c);
|
|
255
271
|
z ? h() : F && (h(), f());
|
|
256
272
|
};
|
|
257
273
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
258
274
|
}
|
|
259
275
|
}, [d, m, c, f, h]), /* @__PURE__ */ b.jsx(xi, { ...a, ref: o });
|
|
260
|
-
}), [
|
|
276
|
+
}), [dt, mt] = ma(J, { isInside: !1 }), ut = Hi("TooltipContent"), xi = l.forwardRef(
|
|
261
277
|
(a, i) => {
|
|
262
278
|
const {
|
|
263
279
|
__scopeTooltip: t,
|
|
@@ -266,8 +282,8 @@ var W = "TooltipContent", fi = l.forwardRef(
|
|
|
266
282
|
onEscapeKeyDown: o,
|
|
267
283
|
onPointerDownOutside: c,
|
|
268
284
|
...r
|
|
269
|
-
} = a, d =
|
|
270
|
-
return l.useEffect(() => (document.addEventListener(
|
|
285
|
+
} = a, d = Q(W, t), f = ua(t), { onClose: m } = d;
|
|
286
|
+
return l.useEffect(() => (document.addEventListener(Ta, m), () => document.removeEventListener(Ta, m)), [m]), l.useEffect(() => {
|
|
271
287
|
if (d.trigger) {
|
|
272
288
|
const x = (h) => {
|
|
273
289
|
h.target?.contains(d.trigger) && m();
|
|
@@ -299,8 +315,8 @@ var W = "TooltipContent", fi = l.forwardRef(
|
|
|
299
315
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
300
316
|
},
|
|
301
317
|
children: [
|
|
302
|
-
/* @__PURE__ */ b.jsx(
|
|
303
|
-
/* @__PURE__ */ b.jsx(
|
|
318
|
+
/* @__PURE__ */ b.jsx(ut, { children: e }),
|
|
319
|
+
/* @__PURE__ */ b.jsx(dt, { scope: t, isInside: !0, children: /* @__PURE__ */ b.jsx(Vi, { id: d.contentId, role: "tooltip", children: n || e }) })
|
|
304
320
|
]
|
|
305
321
|
}
|
|
306
322
|
)
|
|
@@ -309,17 +325,17 @@ var W = "TooltipContent", fi = l.forwardRef(
|
|
|
309
325
|
}
|
|
310
326
|
);
|
|
311
327
|
fi.displayName = W;
|
|
312
|
-
var gi = "TooltipArrow",
|
|
328
|
+
var gi = "TooltipArrow", vt = l.forwardRef(
|
|
313
329
|
(a, i) => {
|
|
314
330
|
const { __scopeTooltip: t, ...e } = a, n = ua(t);
|
|
315
|
-
return
|
|
331
|
+
return mt(
|
|
316
332
|
gi,
|
|
317
333
|
t
|
|
318
|
-
).isInside ? null : /* @__PURE__ */ b.jsx(
|
|
334
|
+
).isInside ? null : /* @__PURE__ */ b.jsx(Yi, { ...n, ...e, ref: i });
|
|
319
335
|
}
|
|
320
336
|
);
|
|
321
|
-
|
|
322
|
-
function
|
|
337
|
+
vt.displayName = gi;
|
|
338
|
+
function ft(a, i) {
|
|
323
339
|
const t = Math.abs(i.top - a.y), e = Math.abs(i.bottom - a.y), n = Math.abs(i.right - a.x), o = Math.abs(i.left - a.x);
|
|
324
340
|
switch (Math.min(t, e, n, o)) {
|
|
325
341
|
case o:
|
|
@@ -334,7 +350,7 @@ function vt(a, i) {
|
|
|
334
350
|
throw new Error("unreachable");
|
|
335
351
|
}
|
|
336
352
|
}
|
|
337
|
-
function
|
|
353
|
+
function xt(a, i, t = 5) {
|
|
338
354
|
const e = [];
|
|
339
355
|
switch (i) {
|
|
340
356
|
case "top":
|
|
@@ -364,7 +380,7 @@ function ft(a, i, t = 5) {
|
|
|
364
380
|
}
|
|
365
381
|
return e;
|
|
366
382
|
}
|
|
367
|
-
function
|
|
383
|
+
function gt(a) {
|
|
368
384
|
const { top: i, right: t, bottom: e, left: n } = a;
|
|
369
385
|
return [
|
|
370
386
|
{ x: n, y: i },
|
|
@@ -373,7 +389,7 @@ function xt(a) {
|
|
|
373
389
|
{ x: n, y: e }
|
|
374
390
|
];
|
|
375
391
|
}
|
|
376
|
-
function
|
|
392
|
+
function ht(a, i) {
|
|
377
393
|
const { x: t, y: e } = a;
|
|
378
394
|
let n = !1;
|
|
379
395
|
for (let o = 0, c = i.length - 1; o < i.length; c = o++) {
|
|
@@ -382,11 +398,11 @@ function gt(a, i) {
|
|
|
382
398
|
}
|
|
383
399
|
return n;
|
|
384
400
|
}
|
|
385
|
-
function
|
|
401
|
+
function bt(a) {
|
|
386
402
|
const i = a.slice();
|
|
387
|
-
return i.sort((t, e) => t.x < e.x ? -1 : t.x > e.x ? 1 : t.y < e.y ? -1 : t.y > e.y ? 1 : 0),
|
|
403
|
+
return i.sort((t, e) => t.x < e.x ? -1 : t.x > e.x ? 1 : t.y < e.y ? -1 : t.y > e.y ? 1 : 0), yt(i);
|
|
388
404
|
}
|
|
389
|
-
function
|
|
405
|
+
function yt(a) {
|
|
390
406
|
if (a.length <= 1) return a.slice();
|
|
391
407
|
const i = [];
|
|
392
408
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -411,20 +427,20 @@ function bt(a) {
|
|
|
411
427
|
}
|
|
412
428
|
return t.pop(), i.length === 1 && t.length === 1 && i[0].x === t[0].x && i[0].y === t[0].y ? i : i.concat(t);
|
|
413
429
|
}
|
|
414
|
-
var
|
|
415
|
-
const
|
|
416
|
-
function
|
|
417
|
-
return /* @__PURE__ */ b.jsx(
|
|
430
|
+
var wt = di, kt = mi, jt = ui, Dt = vi, Et = fi;
|
|
431
|
+
const Re = wt;
|
|
432
|
+
function Ie(a) {
|
|
433
|
+
return /* @__PURE__ */ b.jsx(kt, { ...a });
|
|
418
434
|
}
|
|
419
|
-
const
|
|
435
|
+
const Se = jt;
|
|
420
436
|
function Me({
|
|
421
437
|
className: a,
|
|
422
438
|
sideOffset: i = 4,
|
|
423
439
|
...t
|
|
424
440
|
}) {
|
|
425
441
|
const e = $i();
|
|
426
|
-
return /* @__PURE__ */ b.jsx(
|
|
427
|
-
|
|
442
|
+
return /* @__PURE__ */ b.jsx(Dt, { container: e, children: /* @__PURE__ */ b.jsx(
|
|
443
|
+
Et,
|
|
428
444
|
{
|
|
429
445
|
sideOffset: i,
|
|
430
446
|
className: Ni(
|
|
@@ -435,7 +451,7 @@ function Me({
|
|
|
435
451
|
}
|
|
436
452
|
) });
|
|
437
453
|
}
|
|
438
|
-
const
|
|
454
|
+
const zt = /* @__PURE__ */ new Map([
|
|
439
455
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
440
456
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
441
457
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1639,13 +1655,13 @@ const Et = /* @__PURE__ */ new Map([
|
|
|
1639
1655
|
["zsh", "text/x-scriptzsh"]
|
|
1640
1656
|
]);
|
|
1641
1657
|
function G(a, i, t) {
|
|
1642
|
-
const e =
|
|
1643
|
-
return typeof e.path != "string" &&
|
|
1658
|
+
const e = Tt(a), { webkitRelativePath: n } = a, o = typeof i == "string" ? i : typeof n == "string" && n.length > 0 ? n : `./${a.name}`;
|
|
1659
|
+
return typeof e.path != "string" && Ya(e, "path", o), Ya(e, "relativePath", o), e;
|
|
1644
1660
|
}
|
|
1645
|
-
function
|
|
1661
|
+
function Tt(a) {
|
|
1646
1662
|
const { name: i } = a;
|
|
1647
1663
|
if (i && i.lastIndexOf(".") !== -1 && !a.type) {
|
|
1648
|
-
const e = i.split(".").pop().toLowerCase(), n =
|
|
1664
|
+
const e = i.split(".").pop().toLowerCase(), n = zt.get(e);
|
|
1649
1665
|
n && Object.defineProperty(a, "type", {
|
|
1650
1666
|
value: n,
|
|
1651
1667
|
writable: !1,
|
|
@@ -1655,7 +1671,7 @@ function zt(a) {
|
|
|
1655
1671
|
}
|
|
1656
1672
|
return a;
|
|
1657
1673
|
}
|
|
1658
|
-
function
|
|
1674
|
+
function Ya(a, i, t) {
|
|
1659
1675
|
Object.defineProperty(a, i, {
|
|
1660
1676
|
value: t,
|
|
1661
1677
|
writable: !1,
|
|
@@ -1670,12 +1686,12 @@ const Ct = [
|
|
|
1670
1686
|
"Thumbs.db"
|
|
1671
1687
|
// Windows
|
|
1672
1688
|
];
|
|
1673
|
-
function
|
|
1689
|
+
function At(a) {
|
|
1674
1690
|
return L(this, void 0, void 0, function* () {
|
|
1675
|
-
return ra(a) &&
|
|
1691
|
+
return ra(a) && _t(a.dataTransfer) ? Rt(a.dataTransfer, a.type) : Ot(a) ? Pt(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Ft(a) : [];
|
|
1676
1692
|
});
|
|
1677
1693
|
}
|
|
1678
|
-
function
|
|
1694
|
+
function _t(a) {
|
|
1679
1695
|
return ra(a);
|
|
1680
1696
|
}
|
|
1681
1697
|
function Ot(a) {
|
|
@@ -1684,27 +1700,27 @@ function Ot(a) {
|
|
|
1684
1700
|
function ra(a) {
|
|
1685
1701
|
return typeof a == "object" && a !== null;
|
|
1686
1702
|
}
|
|
1687
|
-
function
|
|
1703
|
+
function Pt(a) {
|
|
1688
1704
|
return Aa(a.target.files).map((i) => G(i));
|
|
1689
1705
|
}
|
|
1690
|
-
function
|
|
1706
|
+
function Ft(a) {
|
|
1691
1707
|
return L(this, void 0, void 0, function* () {
|
|
1692
1708
|
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => G(t));
|
|
1693
1709
|
});
|
|
1694
1710
|
}
|
|
1695
|
-
function
|
|
1711
|
+
function Rt(a, i) {
|
|
1696
1712
|
return L(this, void 0, void 0, function* () {
|
|
1697
1713
|
if (a.items) {
|
|
1698
1714
|
const t = Aa(a.items).filter((n) => n.kind === "file");
|
|
1699
1715
|
if (i !== "drop")
|
|
1700
1716
|
return t;
|
|
1701
|
-
const e = yield Promise.all(t.map(
|
|
1702
|
-
return
|
|
1717
|
+
const e = yield Promise.all(t.map(It));
|
|
1718
|
+
return Xa(hi(e));
|
|
1703
1719
|
}
|
|
1704
|
-
return
|
|
1720
|
+
return Xa(Aa(a.files).map((t) => G(t)));
|
|
1705
1721
|
});
|
|
1706
1722
|
}
|
|
1707
|
-
function
|
|
1723
|
+
function Xa(a) {
|
|
1708
1724
|
return a.filter((i) => Ct.indexOf(i.name) === -1);
|
|
1709
1725
|
}
|
|
1710
1726
|
function Aa(a) {
|
|
@@ -1717,11 +1733,11 @@ function Aa(a) {
|
|
|
1717
1733
|
}
|
|
1718
1734
|
return i;
|
|
1719
1735
|
}
|
|
1720
|
-
function
|
|
1736
|
+
function It(a) {
|
|
1721
1737
|
if (typeof a.webkitGetAsEntry != "function")
|
|
1722
|
-
return
|
|
1738
|
+
return Ja(a);
|
|
1723
1739
|
const i = a.webkitGetAsEntry();
|
|
1724
|
-
return i && i.isDirectory ? bi(i) :
|
|
1740
|
+
return i && i.isDirectory ? bi(i) : Ja(a, i);
|
|
1725
1741
|
}
|
|
1726
1742
|
function hi(a) {
|
|
1727
1743
|
return a.reduce((i, t) => [
|
|
@@ -1729,7 +1745,7 @@ function hi(a) {
|
|
|
1729
1745
|
...Array.isArray(t) ? hi(t) : [t]
|
|
1730
1746
|
], []);
|
|
1731
1747
|
}
|
|
1732
|
-
function
|
|
1748
|
+
function Ja(a, i) {
|
|
1733
1749
|
return L(this, void 0, void 0, function* () {
|
|
1734
1750
|
var t;
|
|
1735
1751
|
if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
|
|
@@ -1747,9 +1763,9 @@ function Xa(a, i) {
|
|
|
1747
1763
|
return G(e, (t = i?.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
1748
1764
|
});
|
|
1749
1765
|
}
|
|
1750
|
-
function
|
|
1766
|
+
function St(a) {
|
|
1751
1767
|
return L(this, void 0, void 0, function* () {
|
|
1752
|
-
return a.isDirectory ? bi(a) :
|
|
1768
|
+
return a.isDirectory ? bi(a) : Mt(a);
|
|
1753
1769
|
});
|
|
1754
1770
|
}
|
|
1755
1771
|
function bi(a) {
|
|
@@ -1759,7 +1775,7 @@ function bi(a) {
|
|
|
1759
1775
|
function o() {
|
|
1760
1776
|
i.readEntries((c) => L(this, void 0, void 0, function* () {
|
|
1761
1777
|
if (c.length) {
|
|
1762
|
-
const r = Promise.all(c.map(
|
|
1778
|
+
const r = Promise.all(c.map(St));
|
|
1763
1779
|
n.push(r), o();
|
|
1764
1780
|
} else
|
|
1765
1781
|
try {
|
|
@@ -1775,7 +1791,7 @@ function bi(a) {
|
|
|
1775
1791
|
o();
|
|
1776
1792
|
});
|
|
1777
1793
|
}
|
|
1778
|
-
function
|
|
1794
|
+
function Mt(a) {
|
|
1779
1795
|
return L(this, void 0, void 0, function* () {
|
|
1780
1796
|
return new Promise((i, t) => {
|
|
1781
1797
|
a.file((e) => {
|
|
@@ -1787,9 +1803,9 @@ function St(a) {
|
|
|
1787
1803
|
});
|
|
1788
1804
|
});
|
|
1789
1805
|
}
|
|
1790
|
-
var ca = {},
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1806
|
+
var ca = {}, Za;
|
|
1807
|
+
function qt() {
|
|
1808
|
+
return Za || (Za = 1, ca.__esModule = !0, ca.default = function(a, i) {
|
|
1793
1809
|
if (a && i) {
|
|
1794
1810
|
var t = Array.isArray(i) ? i : i.split(",");
|
|
1795
1811
|
if (t.length === 0)
|
|
@@ -1803,20 +1819,20 @@ function It() {
|
|
|
1803
1819
|
return !0;
|
|
1804
1820
|
}), ca;
|
|
1805
1821
|
}
|
|
1806
|
-
var
|
|
1807
|
-
const Ea = /* @__PURE__ */ Ki(
|
|
1808
|
-
function
|
|
1809
|
-
return
|
|
1822
|
+
var Lt = qt();
|
|
1823
|
+
const Ea = /* @__PURE__ */ Ki(Lt);
|
|
1824
|
+
function Qa(a) {
|
|
1825
|
+
return Nt(a) || $t(a) || wi(a) || Ht();
|
|
1810
1826
|
}
|
|
1811
|
-
function
|
|
1827
|
+
function Ht() {
|
|
1812
1828
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1813
1829
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1814
1830
|
}
|
|
1815
|
-
function
|
|
1831
|
+
function $t(a) {
|
|
1816
1832
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1817
1833
|
}
|
|
1818
|
-
function
|
|
1819
|
-
if (Array.isArray(a)) return
|
|
1834
|
+
function Nt(a) {
|
|
1835
|
+
if (Array.isArray(a)) return _a(a);
|
|
1820
1836
|
}
|
|
1821
1837
|
function ai(a, i) {
|
|
1822
1838
|
var t = Object.keys(a);
|
|
@@ -1842,28 +1858,28 @@ function ii(a) {
|
|
|
1842
1858
|
function yi(a, i, t) {
|
|
1843
1859
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
1844
1860
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1861
|
+
function Z(a, i) {
|
|
1862
|
+
return Wt(a) || Bt(a, i) || wi(a, i) || Kt();
|
|
1847
1863
|
}
|
|
1848
|
-
function
|
|
1864
|
+
function Kt() {
|
|
1849
1865
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1850
1866
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1851
1867
|
}
|
|
1852
1868
|
function wi(a, i) {
|
|
1853
1869
|
if (a) {
|
|
1854
|
-
if (typeof a == "string") return
|
|
1870
|
+
if (typeof a == "string") return _a(a, i);
|
|
1855
1871
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
1856
1872
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
1857
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
1873
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _a(a, i);
|
|
1858
1874
|
}
|
|
1859
1875
|
}
|
|
1860
|
-
function
|
|
1876
|
+
function _a(a, i) {
|
|
1861
1877
|
(i == null || i > a.length) && (i = a.length);
|
|
1862
1878
|
for (var t = 0, e = new Array(i); t < i; t++)
|
|
1863
1879
|
e[t] = a[t];
|
|
1864
1880
|
return e;
|
|
1865
1881
|
}
|
|
1866
|
-
function
|
|
1882
|
+
function Bt(a, i) {
|
|
1867
1883
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1868
1884
|
if (t != null) {
|
|
1869
1885
|
var e = [], n = !0, o = !1, c, r;
|
|
@@ -1882,18 +1898,18 @@ function Kt(a, i) {
|
|
|
1882
1898
|
return e;
|
|
1883
1899
|
}
|
|
1884
1900
|
}
|
|
1885
|
-
function
|
|
1901
|
+
function Wt(a) {
|
|
1886
1902
|
if (Array.isArray(a)) return a;
|
|
1887
1903
|
}
|
|
1888
|
-
var
|
|
1904
|
+
var Gt = typeof Ea == "function" ? Ea : Ea.default, Ut = "file-invalid-type", Vt = "file-too-large", Yt = "file-too-small", Xt = "too-many-files", Jt = function() {
|
|
1889
1905
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), e = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
1890
1906
|
return {
|
|
1891
|
-
code:
|
|
1907
|
+
code: Ut,
|
|
1892
1908
|
message: "File type must be ".concat(e)
|
|
1893
1909
|
};
|
|
1894
1910
|
}, ti = function(i) {
|
|
1895
1911
|
return {
|
|
1896
|
-
code:
|
|
1912
|
+
code: Vt,
|
|
1897
1913
|
message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1898
1914
|
};
|
|
1899
1915
|
}, ei = function(i) {
|
|
@@ -1901,12 +1917,12 @@ var Wt = typeof Ea == "function" ? Ea : Ea.default, Gt = "file-invalid-type", Ut
|
|
|
1901
1917
|
code: Yt,
|
|
1902
1918
|
message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1903
1919
|
};
|
|
1904
|
-
},
|
|
1905
|
-
code:
|
|
1920
|
+
}, Zt = {
|
|
1921
|
+
code: Xt,
|
|
1906
1922
|
message: "Too many files"
|
|
1907
1923
|
};
|
|
1908
1924
|
function ki(a, i) {
|
|
1909
|
-
var t = a.type === "application/x-moz-file" ||
|
|
1925
|
+
var t = a.type === "application/x-moz-file" || Gt(a, i);
|
|
1910
1926
|
return [t, t ? null : Jt(i)];
|
|
1911
1927
|
}
|
|
1912
1928
|
function ji(a, i, t) {
|
|
@@ -1926,7 +1942,7 @@ function q(a) {
|
|
|
1926
1942
|
function Qt(a) {
|
|
1927
1943
|
var i = a.files, t = a.accept, e = a.minSize, n = a.maxSize, o = a.multiple, c = a.maxFiles, r = a.validator;
|
|
1928
1944
|
return !o && i.length > 1 || o && c >= 1 && i.length > c ? !1 : i.every(function(d) {
|
|
1929
|
-
var f = ki(d, t), m =
|
|
1945
|
+
var f = ki(d, t), m = Z(f, 1), x = m[0], h = ji(d, e, n), v = Z(h, 1), w = v[0], j = r ? r(d) : null;
|
|
1930
1946
|
return x && w && !j;
|
|
1931
1947
|
});
|
|
1932
1948
|
}
|
|
@@ -1941,15 +1957,15 @@ function la(a) {
|
|
|
1941
1957
|
function ni(a) {
|
|
1942
1958
|
a.preventDefault();
|
|
1943
1959
|
}
|
|
1944
|
-
function
|
|
1960
|
+
function ae(a) {
|
|
1945
1961
|
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
1946
1962
|
}
|
|
1947
|
-
function
|
|
1963
|
+
function ie(a) {
|
|
1948
1964
|
return a.indexOf("Edge/") !== -1;
|
|
1949
1965
|
}
|
|
1950
|
-
function
|
|
1966
|
+
function te() {
|
|
1951
1967
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1952
|
-
return
|
|
1968
|
+
return ae(a) || ie(a);
|
|
1953
1969
|
}
|
|
1954
1970
|
function P() {
|
|
1955
1971
|
for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
|
|
@@ -1962,16 +1978,16 @@ function P() {
|
|
|
1962
1978
|
});
|
|
1963
1979
|
};
|
|
1964
1980
|
}
|
|
1965
|
-
function
|
|
1981
|
+
function ee() {
|
|
1966
1982
|
return "showOpenFilePicker" in window;
|
|
1967
1983
|
}
|
|
1968
|
-
function
|
|
1984
|
+
function ne(a) {
|
|
1969
1985
|
if (q(a)) {
|
|
1970
1986
|
var i = Object.entries(a).filter(function(t) {
|
|
1971
|
-
var e =
|
|
1987
|
+
var e = Z(t, 2), n = e[0], o = e[1], c = !0;
|
|
1972
1988
|
return Di(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), c = !1), (!Array.isArray(o) || !o.every(Ei)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), c = !1), c;
|
|
1973
1989
|
}).reduce(function(t, e) {
|
|
1974
|
-
var n =
|
|
1990
|
+
var n = Z(e, 2), o = n[0], c = n[1];
|
|
1975
1991
|
return ii(ii({}, t), {}, yi({}, o, c));
|
|
1976
1992
|
}, {});
|
|
1977
1993
|
return [{
|
|
@@ -1982,19 +1998,19 @@ function ee(a) {
|
|
|
1982
1998
|
}
|
|
1983
1999
|
return a;
|
|
1984
2000
|
}
|
|
1985
|
-
function
|
|
2001
|
+
function oe(a) {
|
|
1986
2002
|
if (q(a))
|
|
1987
2003
|
return Object.entries(a).reduce(function(i, t) {
|
|
1988
|
-
var e =
|
|
1989
|
-
return [].concat(
|
|
2004
|
+
var e = Z(t, 2), n = e[0], o = e[1];
|
|
2005
|
+
return [].concat(Qa(i), [n], Qa(o));
|
|
1990
2006
|
}, []).filter(function(i) {
|
|
1991
2007
|
return Di(i) || Ei(i);
|
|
1992
2008
|
}).join(",");
|
|
1993
2009
|
}
|
|
1994
|
-
function
|
|
2010
|
+
function pe(a) {
|
|
1995
2011
|
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
1996
2012
|
}
|
|
1997
|
-
function
|
|
2013
|
+
function ce(a) {
|
|
1998
2014
|
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
1999
2015
|
}
|
|
2000
2016
|
function Di(a) {
|
|
@@ -2003,42 +2019,42 @@ function Di(a) {
|
|
|
2003
2019
|
function Ei(a) {
|
|
2004
2020
|
return /^.*\.[\w]+$/.test(a);
|
|
2005
2021
|
}
|
|
2006
|
-
var
|
|
2007
|
-
function
|
|
2008
|
-
return
|
|
2022
|
+
var le = ["children"], re = ["open"], se = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], de = ["refKey", "onChange", "onClick"];
|
|
2023
|
+
function me(a) {
|
|
2024
|
+
return fe(a) || ve(a) || zi(a) || ue();
|
|
2009
2025
|
}
|
|
2010
|
-
function
|
|
2026
|
+
function ue() {
|
|
2011
2027
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2012
2028
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2013
2029
|
}
|
|
2014
|
-
function
|
|
2030
|
+
function ve(a) {
|
|
2015
2031
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2016
2032
|
}
|
|
2017
|
-
function
|
|
2018
|
-
if (Array.isArray(a)) return
|
|
2033
|
+
function fe(a) {
|
|
2034
|
+
if (Array.isArray(a)) return Oa(a);
|
|
2019
2035
|
}
|
|
2020
2036
|
function za(a, i) {
|
|
2021
|
-
return
|
|
2037
|
+
return he(a) || ge(a, i) || zi(a, i) || xe();
|
|
2022
2038
|
}
|
|
2023
|
-
function
|
|
2039
|
+
function xe() {
|
|
2024
2040
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2025
2041
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2026
2042
|
}
|
|
2027
2043
|
function zi(a, i) {
|
|
2028
2044
|
if (a) {
|
|
2029
|
-
if (typeof a == "string") return
|
|
2045
|
+
if (typeof a == "string") return Oa(a, i);
|
|
2030
2046
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
2031
2047
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
2032
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
2048
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oa(a, i);
|
|
2033
2049
|
}
|
|
2034
2050
|
}
|
|
2035
|
-
function
|
|
2051
|
+
function Oa(a, i) {
|
|
2036
2052
|
(i == null || i > a.length) && (i = a.length);
|
|
2037
2053
|
for (var t = 0, e = new Array(i); t < i; t++)
|
|
2038
2054
|
e[t] = a[t];
|
|
2039
2055
|
return e;
|
|
2040
2056
|
}
|
|
2041
|
-
function
|
|
2057
|
+
function ge(a, i) {
|
|
2042
2058
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2043
2059
|
if (t != null) {
|
|
2044
2060
|
var e = [], n = !0, o = !1, c, r;
|
|
@@ -2057,7 +2073,7 @@ function xe(a, i) {
|
|
|
2057
2073
|
return e;
|
|
2058
2074
|
}
|
|
2059
2075
|
}
|
|
2060
|
-
function
|
|
2076
|
+
function he(a) {
|
|
2061
2077
|
if (Array.isArray(a)) return a;
|
|
2062
2078
|
}
|
|
2063
2079
|
function oi(a, i) {
|
|
@@ -2086,7 +2102,7 @@ function Pa(a, i, t) {
|
|
|
2086
2102
|
}
|
|
2087
2103
|
function da(a, i) {
|
|
2088
2104
|
if (a == null) return {};
|
|
2089
|
-
var t =
|
|
2105
|
+
var t = be(a, i), e, n;
|
|
2090
2106
|
if (Object.getOwnPropertySymbols) {
|
|
2091
2107
|
var o = Object.getOwnPropertySymbols(a);
|
|
2092
2108
|
for (n = 0; n < o.length; n++)
|
|
@@ -2094,7 +2110,7 @@ function da(a, i) {
|
|
|
2094
2110
|
}
|
|
2095
2111
|
return t;
|
|
2096
2112
|
}
|
|
2097
|
-
function
|
|
2113
|
+
function be(a, i) {
|
|
2098
2114
|
if (a == null) return {};
|
|
2099
2115
|
var t = {}, e = Object.keys(a), n, o;
|
|
2100
2116
|
for (o = 0; o < e.length; o++)
|
|
@@ -2102,7 +2118,7 @@ function he(a, i) {
|
|
|
2102
2118
|
return t;
|
|
2103
2119
|
}
|
|
2104
2120
|
var Sa = /* @__PURE__ */ l.forwardRef(function(a, i) {
|
|
2105
|
-
var t = a.children, e = da(a,
|
|
2121
|
+
var t = a.children, e = da(a, le), n = ye(e), o = n.open, c = da(n, re);
|
|
2106
2122
|
return l.useImperativeHandle(i, function() {
|
|
2107
2123
|
return {
|
|
2108
2124
|
open: o
|
|
@@ -2112,9 +2128,9 @@ var Sa = /* @__PURE__ */ l.forwardRef(function(a, i) {
|
|
|
2112
2128
|
})));
|
|
2113
2129
|
});
|
|
2114
2130
|
Sa.displayName = "Dropzone";
|
|
2115
|
-
var
|
|
2131
|
+
var Ti = {
|
|
2116
2132
|
disabled: !1,
|
|
2117
|
-
getFilesFromEvent:
|
|
2133
|
+
getFilesFromEvent: At,
|
|
2118
2134
|
maxSize: 1 / 0,
|
|
2119
2135
|
minSize: 0,
|
|
2120
2136
|
multiple: !0,
|
|
@@ -2128,7 +2144,7 @@ var Ci = {
|
|
|
2128
2144
|
useFsAccessApi: !1,
|
|
2129
2145
|
autoFocus: !1
|
|
2130
2146
|
};
|
|
2131
|
-
Sa.defaultProps =
|
|
2147
|
+
Sa.defaultProps = Ti;
|
|
2132
2148
|
Sa.propTypes = {
|
|
2133
2149
|
/**
|
|
2134
2150
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -2306,20 +2322,20 @@ var Fa = {
|
|
|
2306
2322
|
acceptedFiles: [],
|
|
2307
2323
|
fileRejections: []
|
|
2308
2324
|
};
|
|
2309
|
-
function
|
|
2310
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = g(g({},
|
|
2325
|
+
function ye() {
|
|
2326
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = g(g({}, Ti), a), t = i.accept, e = i.disabled, n = i.getFilesFromEvent, o = i.maxSize, c = i.minSize, r = i.multiple, d = i.maxFiles, f = i.onDragEnter, m = i.onDragLeave, x = i.onDragOver, h = i.onDrop, v = i.onDropAccepted, w = i.onDropRejected, j = i.onFileDialogCancel, D = i.onFileDialogOpen, _ = i.useFsAccessApi, z = i.autoFocus, F = i.preventDropOnDocument, S = i.noClick, R = i.noKeyboard, U = i.noDrag, O = i.noDragEventsBubbling, va = i.onError, V = i.validator, Y = l.useMemo(function() {
|
|
2327
|
+
return oe(t);
|
|
2328
|
+
}, [t]), Ma = l.useMemo(function() {
|
|
2311
2329
|
return ne(t);
|
|
2312
|
-
}, [t]), Ia = l.useMemo(function() {
|
|
2313
|
-
return ee(t);
|
|
2314
2330
|
}, [t]), fa = l.useMemo(function() {
|
|
2315
2331
|
return typeof D == "function" ? D : pi;
|
|
2316
2332
|
}, [D]), aa = l.useMemo(function() {
|
|
2317
2333
|
return typeof j == "function" ? j : pi;
|
|
2318
|
-
}, [j]), E = l.useRef(null), A = l.useRef(null),
|
|
2334
|
+
}, [j]), E = l.useRef(null), A = l.useRef(null), Ci = l.useReducer(we, Fa), qa = za(Ci, 2), xa = qa[0], T = qa[1], Ai = xa.isFocused, La = xa.isFileDialogActive, ia = l.useRef(typeof window < "u" && window.isSecureContext && _ && ee()), Ha = function() {
|
|
2319
2335
|
!ia.current && La && setTimeout(function() {
|
|
2320
2336
|
if (A.current) {
|
|
2321
2337
|
var s = A.current.files;
|
|
2322
|
-
s.length || (
|
|
2338
|
+
s.length || (T({
|
|
2323
2339
|
type: "closeDialog"
|
|
2324
2340
|
}), aa());
|
|
2325
2341
|
}
|
|
@@ -2341,31 +2357,31 @@ function be() {
|
|
|
2341
2357
|
return !e && z && E.current && E.current.focus(), function() {
|
|
2342
2358
|
};
|
|
2343
2359
|
}, [E, z, e]);
|
|
2344
|
-
var
|
|
2360
|
+
var M = l.useCallback(function(p) {
|
|
2345
2361
|
va ? va(p) : console.error(p);
|
|
2346
2362
|
}, [va]), Na = l.useCallback(function(p) {
|
|
2347
|
-
p.preventDefault(), p.persist(), oa(p), H.current = [].concat(
|
|
2348
|
-
if (!(sa(p) && !
|
|
2363
|
+
p.preventDefault(), p.persist(), oa(p), H.current = [].concat(me(H.current), [p.target]), la(p) && Promise.resolve(n(p)).then(function(s) {
|
|
2364
|
+
if (!(sa(p) && !O)) {
|
|
2349
2365
|
var y = s.length, k = y > 0 && Qt({
|
|
2350
2366
|
files: s,
|
|
2351
|
-
accept:
|
|
2367
|
+
accept: Y,
|
|
2352
2368
|
minSize: c,
|
|
2353
2369
|
maxSize: o,
|
|
2354
2370
|
multiple: r,
|
|
2355
2371
|
maxFiles: d,
|
|
2356
|
-
validator:
|
|
2357
|
-
}),
|
|
2358
|
-
|
|
2372
|
+
validator: V
|
|
2373
|
+
}), C = y > 0 && !k;
|
|
2374
|
+
T({
|
|
2359
2375
|
isDragAccept: k,
|
|
2360
|
-
isDragReject:
|
|
2376
|
+
isDragReject: C,
|
|
2361
2377
|
isDragActive: !0,
|
|
2362
2378
|
type: "setDraggedFiles"
|
|
2363
2379
|
}), f && f(p);
|
|
2364
2380
|
}
|
|
2365
2381
|
}).catch(function(s) {
|
|
2366
|
-
return
|
|
2382
|
+
return M(s);
|
|
2367
2383
|
});
|
|
2368
|
-
}, [n, f,
|
|
2384
|
+
}, [n, f, M, O, Y, c, o, r, d, V]), Ka = l.useCallback(function(p) {
|
|
2369
2385
|
p.preventDefault(), p.persist(), oa(p);
|
|
2370
2386
|
var s = la(p);
|
|
2371
2387
|
if (s && p.dataTransfer)
|
|
@@ -2374,104 +2390,104 @@ function be() {
|
|
|
2374
2390
|
} catch {
|
|
2375
2391
|
}
|
|
2376
2392
|
return s && x && x(p), !1;
|
|
2377
|
-
}, [x,
|
|
2393
|
+
}, [x, O]), Ba = l.useCallback(function(p) {
|
|
2378
2394
|
p.preventDefault(), p.persist(), oa(p);
|
|
2379
2395
|
var s = H.current.filter(function(k) {
|
|
2380
2396
|
return E.current && E.current.contains(k);
|
|
2381
2397
|
}), y = s.indexOf(p.target);
|
|
2382
|
-
y !== -1 && s.splice(y, 1), H.current = s, !(s.length > 0) && (
|
|
2398
|
+
y !== -1 && s.splice(y, 1), H.current = s, !(s.length > 0) && (T({
|
|
2383
2399
|
type: "setDraggedFiles",
|
|
2384
2400
|
isDragActive: !1,
|
|
2385
2401
|
isDragAccept: !1,
|
|
2386
2402
|
isDragReject: !1
|
|
2387
2403
|
}), la(p) && m && m(p));
|
|
2388
|
-
}, [E, m,
|
|
2404
|
+
}, [E, m, O]), ta = l.useCallback(function(p, s) {
|
|
2389
2405
|
var y = [], k = [];
|
|
2390
|
-
p.forEach(function(
|
|
2391
|
-
var
|
|
2406
|
+
p.forEach(function(C) {
|
|
2407
|
+
var X = ki(C, Y), K = za(X, 2), ha = K[0], ba = K[1], ya = ji(C, c, o), pa = za(ya, 2), wa = pa[0], ka = pa[1], ja = V ? V(C) : null;
|
|
2392
2408
|
if (ha && wa && !ja)
|
|
2393
|
-
y.push(
|
|
2409
|
+
y.push(C);
|
|
2394
2410
|
else {
|
|
2395
2411
|
var Da = [ba, ka];
|
|
2396
2412
|
ja && (Da = Da.concat(ja)), k.push({
|
|
2397
|
-
file:
|
|
2413
|
+
file: C,
|
|
2398
2414
|
errors: Da.filter(function(Fi) {
|
|
2399
2415
|
return Fi;
|
|
2400
2416
|
})
|
|
2401
2417
|
});
|
|
2402
2418
|
}
|
|
2403
|
-
}), (!r && y.length > 1 || r && d >= 1 && y.length > d) && (y.forEach(function(
|
|
2419
|
+
}), (!r && y.length > 1 || r && d >= 1 && y.length > d) && (y.forEach(function(C) {
|
|
2404
2420
|
k.push({
|
|
2405
|
-
file:
|
|
2406
|
-
errors: [
|
|
2421
|
+
file: C,
|
|
2422
|
+
errors: [Zt]
|
|
2407
2423
|
});
|
|
2408
|
-
}), y.splice(0)),
|
|
2424
|
+
}), y.splice(0)), T({
|
|
2409
2425
|
acceptedFiles: y,
|
|
2410
2426
|
fileRejections: k,
|
|
2411
2427
|
isDragReject: k.length > 0,
|
|
2412
2428
|
type: "setFiles"
|
|
2413
2429
|
}), h && h(y, k, s), k.length > 0 && w && w(k, s), y.length > 0 && v && v(y, s);
|
|
2414
|
-
}, [
|
|
2430
|
+
}, [T, r, Y, c, o, d, h, v, w, V]), ea = l.useCallback(function(p) {
|
|
2415
2431
|
p.preventDefault(), p.persist(), oa(p), H.current = [], la(p) && Promise.resolve(n(p)).then(function(s) {
|
|
2416
|
-
sa(p) && !
|
|
2432
|
+
sa(p) && !O || ta(s, p);
|
|
2417
2433
|
}).catch(function(s) {
|
|
2418
|
-
return
|
|
2419
|
-
}),
|
|
2434
|
+
return M(s);
|
|
2435
|
+
}), T({
|
|
2420
2436
|
type: "reset"
|
|
2421
2437
|
});
|
|
2422
|
-
}, [n, ta,
|
|
2438
|
+
}, [n, ta, M, O]), $ = l.useCallback(function() {
|
|
2423
2439
|
if (ia.current) {
|
|
2424
|
-
|
|
2440
|
+
T({
|
|
2425
2441
|
type: "openDialog"
|
|
2426
2442
|
}), fa();
|
|
2427
2443
|
var p = {
|
|
2428
2444
|
multiple: r,
|
|
2429
|
-
types:
|
|
2445
|
+
types: Ma
|
|
2430
2446
|
};
|
|
2431
2447
|
window.showOpenFilePicker(p).then(function(s) {
|
|
2432
2448
|
return n(s);
|
|
2433
2449
|
}).then(function(s) {
|
|
2434
|
-
ta(s, null),
|
|
2450
|
+
ta(s, null), T({
|
|
2435
2451
|
type: "closeDialog"
|
|
2436
2452
|
});
|
|
2437
2453
|
}).catch(function(s) {
|
|
2438
|
-
|
|
2454
|
+
pe(s) ? (aa(s), T({
|
|
2439
2455
|
type: "closeDialog"
|
|
2440
|
-
})) :
|
|
2456
|
+
})) : ce(s) ? (ia.current = !1, A.current ? (A.current.value = null, A.current.click()) : M(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : M(s);
|
|
2441
2457
|
});
|
|
2442
2458
|
return;
|
|
2443
2459
|
}
|
|
2444
|
-
A.current && (
|
|
2460
|
+
A.current && (T({
|
|
2445
2461
|
type: "openDialog"
|
|
2446
2462
|
}), fa(), A.current.value = null, A.current.click());
|
|
2447
|
-
}, [
|
|
2463
|
+
}, [T, fa, aa, _, ta, M, Ma, r]), Wa = l.useCallback(function(p) {
|
|
2448
2464
|
!E.current || !E.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), $());
|
|
2449
2465
|
}, [E, $]), Ga = l.useCallback(function() {
|
|
2450
|
-
|
|
2466
|
+
T({
|
|
2451
2467
|
type: "focus"
|
|
2452
2468
|
});
|
|
2453
2469
|
}, []), Ua = l.useCallback(function() {
|
|
2454
|
-
|
|
2470
|
+
T({
|
|
2455
2471
|
type: "blur"
|
|
2456
2472
|
});
|
|
2457
|
-
}, []),
|
|
2458
|
-
|
|
2459
|
-
}, [
|
|
2473
|
+
}, []), Va = l.useCallback(function() {
|
|
2474
|
+
S || (te() ? setTimeout($, 0) : $());
|
|
2475
|
+
}, [S, $]), N = function(s) {
|
|
2460
2476
|
return e ? null : s;
|
|
2461
2477
|
}, ga = function(s) {
|
|
2462
2478
|
return R ? null : N(s);
|
|
2463
2479
|
}, na = function(s) {
|
|
2464
2480
|
return U ? null : N(s);
|
|
2465
2481
|
}, oa = function(s) {
|
|
2466
|
-
|
|
2467
|
-
},
|
|
2482
|
+
O && s.stopPropagation();
|
|
2483
|
+
}, _i = l.useMemo(function() {
|
|
2468
2484
|
return function() {
|
|
2469
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.role,
|
|
2485
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.role, C = p.onKeyDown, X = p.onFocus, K = p.onBlur, ha = p.onClick, ba = p.onDragEnter, ya = p.onDragOver, pa = p.onDragLeave, wa = p.onDrop, ka = da(p, se);
|
|
2470
2486
|
return g(g(Pa({
|
|
2471
|
-
onKeyDown: ga(P(
|
|
2472
|
-
onFocus: ga(P(
|
|
2487
|
+
onKeyDown: ga(P(C, Wa)),
|
|
2488
|
+
onFocus: ga(P(X, Ga)),
|
|
2473
2489
|
onBlur: ga(P(K, Ua)),
|
|
2474
|
-
onClick: N(P(ha,
|
|
2490
|
+
onClick: N(P(ha, Va)),
|
|
2475
2491
|
onDragEnter: na(P(ba, Na)),
|
|
2476
2492
|
onDragOver: na(P(ya, Ka)),
|
|
2477
2493
|
onDragLeave: na(P(pa, Ba)),
|
|
@@ -2481,12 +2497,12 @@ function be() {
|
|
|
2481
2497
|
tabIndex: 0
|
|
2482
2498
|
} : {}), ka);
|
|
2483
2499
|
};
|
|
2484
|
-
}, [E, Wa, Ga, Ua,
|
|
2500
|
+
}, [E, Wa, Ga, Ua, Va, Na, Ka, Ba, ea, R, U, e]), Oi = l.useCallback(function(p) {
|
|
2485
2501
|
p.stopPropagation();
|
|
2486
2502
|
}, []), Pi = l.useMemo(function() {
|
|
2487
2503
|
return function() {
|
|
2488
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.onChange,
|
|
2489
|
-
accept:
|
|
2504
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.onChange, C = p.onClick, X = da(p, de), K = Pa({
|
|
2505
|
+
accept: Y,
|
|
2490
2506
|
multiple: r,
|
|
2491
2507
|
type: "file",
|
|
2492
2508
|
style: {
|
|
@@ -2502,22 +2518,22 @@ function be() {
|
|
|
2502
2518
|
whiteSpace: "nowrap"
|
|
2503
2519
|
},
|
|
2504
2520
|
onChange: N(P(k, ea)),
|
|
2505
|
-
onClick: N(P(
|
|
2521
|
+
onClick: N(P(C, Oi)),
|
|
2506
2522
|
tabIndex: -1
|
|
2507
2523
|
}, y, A);
|
|
2508
|
-
return g(g({}, K),
|
|
2524
|
+
return g(g({}, K), X);
|
|
2509
2525
|
};
|
|
2510
2526
|
}, [A, t, r, ea, e]);
|
|
2511
2527
|
return g(g({}, xa), {}, {
|
|
2512
2528
|
isFocused: Ai && !e,
|
|
2513
|
-
getRootProps:
|
|
2529
|
+
getRootProps: _i,
|
|
2514
2530
|
getInputProps: Pi,
|
|
2515
2531
|
rootRef: E,
|
|
2516
2532
|
inputRef: A,
|
|
2517
2533
|
open: N($)
|
|
2518
2534
|
});
|
|
2519
2535
|
}
|
|
2520
|
-
function
|
|
2536
|
+
function we(a, i) {
|
|
2521
2537
|
switch (i.type) {
|
|
2522
2538
|
case "focus":
|
|
2523
2539
|
return g(g({}, a), {}, {
|
|
@@ -2556,17 +2572,18 @@ function ye(a, i) {
|
|
|
2556
2572
|
function pi() {
|
|
2557
2573
|
}
|
|
2558
2574
|
export {
|
|
2559
|
-
|
|
2560
|
-
Ee as C,
|
|
2575
|
+
Ee as A,
|
|
2561
2576
|
ze as D,
|
|
2562
|
-
|
|
2563
|
-
Ae as
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2577
|
+
Te as F,
|
|
2578
|
+
Ae as G,
|
|
2579
|
+
_e as I,
|
|
2580
|
+
Oe as L,
|
|
2581
|
+
Re as T,
|
|
2582
|
+
Pe as U,
|
|
2583
|
+
Fe as V,
|
|
2584
|
+
Ie as a,
|
|
2585
|
+
Se as b,
|
|
2569
2586
|
Me as c,
|
|
2570
|
-
|
|
2571
|
-
|
|
2587
|
+
Ce as d,
|
|
2588
|
+
ye as u
|
|
2572
2589
|
};
|