@fluid-app/fluid-cli-theme-dev 0.1.534 → 0.1.535
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 +276 -295
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
- package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
- package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
- package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
- package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
- package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
- package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
- package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
- package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
- package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
- package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
- package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
- package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
- package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
- package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
- package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
- package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
- package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
- package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
- package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
- package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
- package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
- package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
- package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
- package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
- package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
- package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
- package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
- package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
- package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
- package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
- package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
- package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
- package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
|
@@ -1,457 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @license lucide-react v0.575.0 - ISC
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
const Xi = [
|
|
11
|
-
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
12
|
-
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
13
|
-
], Ee = I("arrow-right", Xi);
|
|
14
|
-
/**
|
|
15
|
-
* @license lucide-react v0.575.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
const Ji = [
|
|
21
|
-
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
22
|
-
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
23
|
-
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
24
|
-
], ze = I("download", Ji);
|
|
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 = [
|
|
32
|
-
[
|
|
33
|
-
"path",
|
|
34
|
-
{
|
|
35
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
36
|
-
key: "1oefj6"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
40
|
-
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
41
|
-
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
42
|
-
], Te = I("file-image", Qi);
|
|
43
|
-
/**
|
|
44
|
-
* @license lucide-react v0.575.0 - ISC
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the ISC license.
|
|
47
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/
|
|
49
|
-
const Zi = [
|
|
50
|
-
[
|
|
51
|
-
"path",
|
|
52
|
-
{
|
|
53
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
54
|
-
key: "1oefj6"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
58
|
-
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
59
|
-
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
60
|
-
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
61
|
-
], Ce = I("file-text", Zi);
|
|
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
|
-
/**
|
|
74
|
-
* @license lucide-react v0.575.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/
|
|
79
|
-
const it = [
|
|
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);
|
|
84
|
-
/**
|
|
85
|
-
* @license lucide-react v0.575.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/
|
|
90
|
-
const 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
|
-
/**
|
|
95
|
-
* @license lucide-react v0.575.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/
|
|
100
|
-
const et = [
|
|
101
|
-
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
102
|
-
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
103
|
-
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
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);
|
|
121
|
-
var [ma] = Ri("Tooltip", [
|
|
122
|
-
ri
|
|
123
|
-
]), ua = ri(), si = "TooltipProvider", ot = 700, Ta = "tooltip.open", [pt, Ra] = ma(si), di = (a) => {
|
|
124
|
-
const {
|
|
125
|
-
__scopeTooltip: i,
|
|
126
|
-
delayDuration: t = ot,
|
|
127
|
-
skipDelayDuration: e = 300,
|
|
128
|
-
disableHoverableContent: n = !1,
|
|
129
|
-
children: o
|
|
130
|
-
} = a, c = l.useRef(!0), r = l.useRef(!1), d = l.useRef(0);
|
|
131
|
-
return l.useEffect(() => {
|
|
132
|
-
const f = d.current;
|
|
133
|
-
return () => window.clearTimeout(f);
|
|
134
|
-
}, []), /* @__PURE__ */ b.jsx(
|
|
135
|
-
pt,
|
|
136
|
-
{
|
|
137
|
-
scope: i,
|
|
138
|
-
isOpenDelayedRef: c,
|
|
139
|
-
delayDuration: t,
|
|
140
|
-
onOpen: l.useCallback(() => {
|
|
141
|
-
window.clearTimeout(d.current), c.current = !1;
|
|
142
|
-
}, []),
|
|
143
|
-
onClose: l.useCallback(() => {
|
|
144
|
-
window.clearTimeout(d.current), d.current = window.setTimeout(
|
|
145
|
-
() => c.current = !0,
|
|
146
|
-
e
|
|
147
|
-
);
|
|
148
|
-
}, [e]),
|
|
149
|
-
isPointerInTransitRef: r,
|
|
150
|
-
onPointerInTransitChange: l.useCallback((f) => {
|
|
151
|
-
r.current = f;
|
|
152
|
-
}, []),
|
|
153
|
-
disableHoverableContent: n,
|
|
154
|
-
children: o
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
di.displayName = si;
|
|
159
|
-
var J = "Tooltip", [ct, Z] = ma(J), mi = (a) => {
|
|
160
|
-
const {
|
|
161
|
-
__scopeTooltip: i,
|
|
162
|
-
children: t,
|
|
163
|
-
open: e,
|
|
164
|
-
defaultOpen: n,
|
|
165
|
-
onOpenChange: o,
|
|
166
|
-
disableHoverableContent: c,
|
|
167
|
-
delayDuration: r
|
|
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({
|
|
169
|
-
prop: e,
|
|
170
|
-
defaultProp: n ?? !1,
|
|
171
|
-
onChange: (O) => {
|
|
172
|
-
O ? (d.onOpen(), document.dispatchEvent(new CustomEvent(Ta))) : d.onClose(), o?.(O);
|
|
173
|
-
},
|
|
174
|
-
caller: J
|
|
175
|
-
}), F = l.useMemo(() => _ ? D.current ? "delayed-open" : "instant-open" : "closed", [_]), S = l.useCallback(() => {
|
|
176
|
-
window.clearTimeout(v.current), v.current = 0, D.current = !1, z(!0);
|
|
177
|
-
}, [z]), R = l.useCallback(() => {
|
|
178
|
-
window.clearTimeout(v.current), v.current = 0, z(!1);
|
|
179
|
-
}, [z]), U = l.useCallback(() => {
|
|
180
|
-
window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
181
|
-
D.current = !0, z(!0), v.current = 0;
|
|
182
|
-
}, j);
|
|
183
|
-
}, [j, z]);
|
|
184
|
-
return l.useEffect(() => () => {
|
|
185
|
-
v.current && (window.clearTimeout(v.current), v.current = 0);
|
|
186
|
-
}, []), /* @__PURE__ */ b.jsx(Gi, { ...f, children: /* @__PURE__ */ b.jsx(
|
|
187
|
-
ct,
|
|
188
|
-
{
|
|
189
|
-
scope: i,
|
|
190
|
-
contentId: h,
|
|
191
|
-
open: _,
|
|
192
|
-
stateAttribute: F,
|
|
193
|
-
trigger: m,
|
|
194
|
-
onTriggerChange: x,
|
|
195
|
-
onTriggerEnter: l.useCallback(() => {
|
|
196
|
-
d.isOpenDelayedRef.current ? U() : S();
|
|
197
|
-
}, [d.isOpenDelayedRef, U, S]),
|
|
198
|
-
onTriggerLeave: l.useCallback(() => {
|
|
199
|
-
w ? R() : (window.clearTimeout(v.current), v.current = 0);
|
|
200
|
-
}, [R, w]),
|
|
201
|
-
onOpen: S,
|
|
202
|
-
onClose: R,
|
|
203
|
-
disableHoverableContent: w,
|
|
204
|
-
children: t
|
|
205
|
-
}
|
|
206
|
-
) });
|
|
207
|
-
};
|
|
208
|
-
mi.displayName = J;
|
|
209
|
-
var Ca = "TooltipTrigger", ui = l.forwardRef(
|
|
210
|
-
(a, i) => {
|
|
211
|
-
const { __scopeTooltip: t, ...e } = a, n = Z(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, []);
|
|
212
|
-
return l.useEffect(() => () => document.removeEventListener("pointerup", x), [x]), /* @__PURE__ */ b.jsx(Wi, { asChild: !0, ...c, children: /* @__PURE__ */ b.jsx(
|
|
213
|
-
Ii.button,
|
|
214
|
-
{
|
|
215
|
-
"aria-describedby": n.open ? n.contentId : void 0,
|
|
216
|
-
"data-state": n.stateAttribute,
|
|
217
|
-
...e,
|
|
218
|
-
ref: d,
|
|
219
|
-
onPointerMove: B(a.onPointerMove, (h) => {
|
|
220
|
-
h.pointerType !== "touch" && !m.current && !o.isPointerInTransitRef.current && (n.onTriggerEnter(), m.current = !0);
|
|
221
|
-
}),
|
|
222
|
-
onPointerLeave: B(a.onPointerLeave, () => {
|
|
223
|
-
n.onTriggerLeave(), m.current = !1;
|
|
224
|
-
}),
|
|
225
|
-
onPointerDown: B(a.onPointerDown, () => {
|
|
226
|
-
n.open && n.onClose(), f.current = !0, document.addEventListener("pointerup", x, { once: !0 });
|
|
227
|
-
}),
|
|
228
|
-
onFocus: B(a.onFocus, () => {
|
|
229
|
-
f.current || n.onOpen();
|
|
230
|
-
}),
|
|
231
|
-
onBlur: B(a.onBlur, n.onClose),
|
|
232
|
-
onClick: B(a.onClick, n.onClose)
|
|
233
|
-
}
|
|
234
|
-
) });
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
ui.displayName = Ca;
|
|
238
|
-
var Ia = "TooltipPortal", [lt, rt] = ma(Ia, {
|
|
239
|
-
forceMount: void 0
|
|
240
|
-
}), vi = (a) => {
|
|
241
|
-
const { __scopeTooltip: i, forceMount: t, children: e, container: n } = a, o = Z(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 }) }) });
|
|
243
|
-
};
|
|
244
|
-
vi.displayName = Ia;
|
|
245
|
-
var W = "TooltipContent", fi = l.forwardRef(
|
|
246
|
-
(a, i) => {
|
|
247
|
-
const t = rt(W, a.__scopeTooltip), { forceMount: e = t.forceMount, side: n = "top", ...o } = a, c = Z(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 }) });
|
|
249
|
-
}
|
|
250
|
-
), st = l.forwardRef((a, i) => {
|
|
251
|
-
const t = Z(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(() => {
|
|
252
|
-
r(null), x(!1);
|
|
253
|
-
}, [x]), v = l.useCallback(
|
|
254
|
-
(w, j) => {
|
|
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]);
|
|
256
|
-
r(R), x(!0);
|
|
257
|
-
},
|
|
258
|
-
[x]
|
|
259
|
-
);
|
|
260
|
-
return l.useEffect(() => () => h(), [h]), l.useEffect(() => {
|
|
261
|
-
if (d && m) {
|
|
262
|
-
const w = (D) => v(D, m), j = (D) => v(D, d);
|
|
263
|
-
return d.addEventListener("pointerleave", w), m.addEventListener("pointerleave", j), () => {
|
|
264
|
-
d.removeEventListener("pointerleave", w), m.removeEventListener("pointerleave", j);
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
}, [d, m, v, h]), l.useEffect(() => {
|
|
268
|
-
if (c) {
|
|
269
|
-
const w = (j) => {
|
|
270
|
-
const D = j.target, _ = { x: j.clientX, y: j.clientY }, z = d?.contains(D) || m?.contains(D), F = !ht(_, c);
|
|
271
|
-
z ? h() : F && (h(), f());
|
|
272
|
-
};
|
|
273
|
-
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
274
|
-
}
|
|
275
|
-
}, [d, m, c, f, h]), /* @__PURE__ */ b.jsx(xi, { ...a, ref: o });
|
|
276
|
-
}), [dt, mt] = ma(J, { isInside: !1 }), ut = Hi("TooltipContent"), xi = l.forwardRef(
|
|
277
|
-
(a, i) => {
|
|
278
|
-
const {
|
|
279
|
-
__scopeTooltip: t,
|
|
280
|
-
children: e,
|
|
281
|
-
"aria-label": n,
|
|
282
|
-
onEscapeKeyDown: o,
|
|
283
|
-
onPointerDownOutside: c,
|
|
284
|
-
...r
|
|
285
|
-
} = a, d = Z(W, t), f = ua(t), { onClose: m } = d;
|
|
286
|
-
return l.useEffect(() => (document.addEventListener(Ta, m), () => document.removeEventListener(Ta, m)), [m]), l.useEffect(() => {
|
|
287
|
-
if (d.trigger) {
|
|
288
|
-
const x = (h) => {
|
|
289
|
-
h.target?.contains(d.trigger) && m();
|
|
290
|
-
};
|
|
291
|
-
return window.addEventListener("scroll", x, { capture: !0 }), () => window.removeEventListener("scroll", x, { capture: !0 });
|
|
292
|
-
}
|
|
293
|
-
}, [d.trigger, m]), /* @__PURE__ */ b.jsx(
|
|
294
|
-
Li,
|
|
295
|
-
{
|
|
296
|
-
asChild: !0,
|
|
297
|
-
disableOutsidePointerEvents: !1,
|
|
298
|
-
onEscapeKeyDown: o,
|
|
299
|
-
onPointerDownOutside: c,
|
|
300
|
-
onFocusOutside: (x) => x.preventDefault(),
|
|
301
|
-
onDismiss: m,
|
|
302
|
-
children: /* @__PURE__ */ b.jsxs(
|
|
303
|
-
Ui,
|
|
304
|
-
{
|
|
305
|
-
"data-state": d.stateAttribute,
|
|
306
|
-
...f,
|
|
307
|
-
...r,
|
|
308
|
-
ref: i,
|
|
309
|
-
style: {
|
|
310
|
-
...r.style,
|
|
311
|
-
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
312
|
-
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
313
|
-
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
314
|
-
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
315
|
-
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
316
|
-
},
|
|
317
|
-
children: [
|
|
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 }) })
|
|
320
|
-
]
|
|
321
|
-
}
|
|
322
|
-
)
|
|
323
|
-
}
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
);
|
|
327
|
-
fi.displayName = W;
|
|
328
|
-
var gi = "TooltipArrow", vt = l.forwardRef(
|
|
329
|
-
(a, i) => {
|
|
330
|
-
const { __scopeTooltip: t, ...e } = a, n = ua(t);
|
|
331
|
-
return mt(
|
|
332
|
-
gi,
|
|
333
|
-
t
|
|
334
|
-
).isInside ? null : /* @__PURE__ */ b.jsx(Yi, { ...n, ...e, ref: i });
|
|
335
|
-
}
|
|
336
|
-
);
|
|
337
|
-
vt.displayName = gi;
|
|
338
|
-
function ft(a, i) {
|
|
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);
|
|
340
|
-
switch (Math.min(t, e, n, o)) {
|
|
341
|
-
case o:
|
|
342
|
-
return "left";
|
|
343
|
-
case n:
|
|
344
|
-
return "right";
|
|
345
|
-
case t:
|
|
346
|
-
return "top";
|
|
347
|
-
case e:
|
|
348
|
-
return "bottom";
|
|
349
|
-
default:
|
|
350
|
-
throw new Error("unreachable");
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function xt(a, i, t = 5) {
|
|
354
|
-
const e = [];
|
|
355
|
-
switch (i) {
|
|
356
|
-
case "top":
|
|
357
|
-
e.push(
|
|
358
|
-
{ x: a.x - t, y: a.y + t },
|
|
359
|
-
{ x: a.x + t, y: a.y + t }
|
|
360
|
-
);
|
|
361
|
-
break;
|
|
362
|
-
case "bottom":
|
|
363
|
-
e.push(
|
|
364
|
-
{ x: a.x - t, y: a.y - t },
|
|
365
|
-
{ x: a.x + t, y: a.y - t }
|
|
366
|
-
);
|
|
367
|
-
break;
|
|
368
|
-
case "left":
|
|
369
|
-
e.push(
|
|
370
|
-
{ x: a.x + t, y: a.y - t },
|
|
371
|
-
{ x: a.x + t, y: a.y + t }
|
|
372
|
-
);
|
|
373
|
-
break;
|
|
374
|
-
case "right":
|
|
375
|
-
e.push(
|
|
376
|
-
{ x: a.x - t, y: a.y - t },
|
|
377
|
-
{ x: a.x - t, y: a.y + t }
|
|
378
|
-
);
|
|
379
|
-
break;
|
|
380
|
-
}
|
|
381
|
-
return e;
|
|
382
|
-
}
|
|
383
|
-
function gt(a) {
|
|
384
|
-
const { top: i, right: t, bottom: e, left: n } = a;
|
|
385
|
-
return [
|
|
386
|
-
{ x: n, y: i },
|
|
387
|
-
{ x: t, y: i },
|
|
388
|
-
{ x: t, y: e },
|
|
389
|
-
{ x: n, y: e }
|
|
390
|
-
];
|
|
391
|
-
}
|
|
392
|
-
function ht(a, i) {
|
|
393
|
-
const { x: t, y: e } = a;
|
|
394
|
-
let n = !1;
|
|
395
|
-
for (let o = 0, c = i.length - 1; o < i.length; c = o++) {
|
|
396
|
-
const r = i[o], d = i[c], f = r.x, m = r.y, x = d.x, h = d.y;
|
|
397
|
-
m > e != h > e && t < (x - f) * (e - m) / (h - m) + f && (n = !n);
|
|
398
|
-
}
|
|
399
|
-
return n;
|
|
400
|
-
}
|
|
401
|
-
function bt(a) {
|
|
402
|
-
const i = a.slice();
|
|
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);
|
|
404
|
-
}
|
|
405
|
-
function yt(a) {
|
|
406
|
-
if (a.length <= 1) return a.slice();
|
|
407
|
-
const i = [];
|
|
408
|
-
for (let e = 0; e < a.length; e++) {
|
|
409
|
-
const n = a[e];
|
|
410
|
-
for (; i.length >= 2; ) {
|
|
411
|
-
const o = i[i.length - 1], c = i[i.length - 2];
|
|
412
|
-
if ((o.x - c.x) * (n.y - c.y) >= (o.y - c.y) * (n.x - c.x)) i.pop();
|
|
413
|
-
else break;
|
|
414
|
-
}
|
|
415
|
-
i.push(n);
|
|
416
|
-
}
|
|
417
|
-
i.pop();
|
|
418
|
-
const t = [];
|
|
419
|
-
for (let e = a.length - 1; e >= 0; e--) {
|
|
420
|
-
const n = a[e];
|
|
421
|
-
for (; t.length >= 2; ) {
|
|
422
|
-
const o = t[t.length - 1], c = t[t.length - 2];
|
|
423
|
-
if ((o.x - c.x) * (n.y - c.y) >= (o.y - c.y) * (n.x - c.x)) t.pop();
|
|
424
|
-
else break;
|
|
425
|
-
}
|
|
426
|
-
t.push(n);
|
|
427
|
-
}
|
|
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);
|
|
429
|
-
}
|
|
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 });
|
|
434
|
-
}
|
|
435
|
-
const Se = jt;
|
|
436
|
-
function Me({
|
|
437
|
-
className: a,
|
|
438
|
-
sideOffset: i = 4,
|
|
439
|
-
...t
|
|
440
|
-
}) {
|
|
441
|
-
const e = $i();
|
|
442
|
-
return /* @__PURE__ */ b.jsx(Dt, { container: e, children: /* @__PURE__ */ b.jsx(
|
|
443
|
-
Et,
|
|
444
|
-
{
|
|
445
|
-
sideOffset: i,
|
|
446
|
-
className: Ni(
|
|
447
|
-
"animate-in bg-popover text-popover-foreground fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",
|
|
448
|
-
a
|
|
449
|
-
),
|
|
450
|
-
...t
|
|
451
|
-
}
|
|
452
|
-
) });
|
|
453
|
-
}
|
|
454
|
-
const zt = /* @__PURE__ */ new Map([
|
|
1
|
+
import { aQ as D, ax as di, l as s, Z as mi } from "./account-screen-runtime-BqMndJcu.js";
|
|
2
|
+
import { P as d } from "./use-store-YC0Ovzht.js";
|
|
3
|
+
const ui = /* @__PURE__ */ new Map([
|
|
455
4
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
456
5
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
457
6
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1654,16 +1203,16 @@ const zt = /* @__PURE__ */ new Map([
|
|
|
1654
1203
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1655
1204
|
["zsh", "text/x-scriptzsh"]
|
|
1656
1205
|
]);
|
|
1657
|
-
function
|
|
1658
|
-
const
|
|
1659
|
-
return typeof
|
|
1206
|
+
function F(a, i, t) {
|
|
1207
|
+
const n = vi(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
|
|
1208
|
+
return typeof n.path != "string" && Ra(n, "path", o), Ra(n, "relativePath", o), n;
|
|
1660
1209
|
}
|
|
1661
|
-
function
|
|
1210
|
+
function vi(a) {
|
|
1662
1211
|
const { name: i } = a;
|
|
1663
1212
|
if (i && i.lastIndexOf(".") !== -1 && !a.type) {
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1666
|
-
value:
|
|
1213
|
+
const n = i.split(".").pop().toLowerCase(), p = ui.get(n);
|
|
1214
|
+
p && Object.defineProperty(a, "type", {
|
|
1215
|
+
value: p,
|
|
1667
1216
|
writable: !1,
|
|
1668
1217
|
configurable: !1,
|
|
1669
1218
|
enumerable: !0
|
|
@@ -1671,7 +1220,7 @@ function Tt(a) {
|
|
|
1671
1220
|
}
|
|
1672
1221
|
return a;
|
|
1673
1222
|
}
|
|
1674
|
-
function
|
|
1223
|
+
function Ra(a, i, t) {
|
|
1675
1224
|
Object.defineProperty(a, i, {
|
|
1676
1225
|
value: t,
|
|
1677
1226
|
writable: !1,
|
|
@@ -1679,316 +1228,316 @@ function Ya(a, i, t) {
|
|
|
1679
1228
|
enumerable: !0
|
|
1680
1229
|
});
|
|
1681
1230
|
}
|
|
1682
|
-
const
|
|
1231
|
+
const fi = [
|
|
1683
1232
|
// Thumbnail cache files for macOS and Windows
|
|
1684
1233
|
".DS_Store",
|
|
1685
1234
|
// macOs
|
|
1686
1235
|
"Thumbs.db"
|
|
1687
1236
|
// Windows
|
|
1688
1237
|
];
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1691
|
-
return
|
|
1238
|
+
function xi(a) {
|
|
1239
|
+
return D(this, void 0, void 0, function* () {
|
|
1240
|
+
return Q(a) && gi(a.dataTransfer) ? wi(a.dataTransfer, a.type) : bi(a) ? hi(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? yi(a) : [];
|
|
1692
1241
|
});
|
|
1693
1242
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1243
|
+
function gi(a) {
|
|
1244
|
+
return Q(a);
|
|
1696
1245
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1246
|
+
function bi(a) {
|
|
1247
|
+
return Q(a) && Q(a.target);
|
|
1699
1248
|
}
|
|
1700
|
-
function
|
|
1249
|
+
function Q(a) {
|
|
1701
1250
|
return typeof a == "object" && a !== null;
|
|
1702
1251
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return
|
|
1252
|
+
function hi(a) {
|
|
1253
|
+
return fa(a.target.files).map((i) => F(i));
|
|
1705
1254
|
}
|
|
1706
|
-
function
|
|
1707
|
-
return
|
|
1708
|
-
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) =>
|
|
1255
|
+
function yi(a) {
|
|
1256
|
+
return D(this, void 0, void 0, function* () {
|
|
1257
|
+
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => F(t));
|
|
1709
1258
|
});
|
|
1710
1259
|
}
|
|
1711
|
-
function
|
|
1712
|
-
return
|
|
1260
|
+
function wi(a, i) {
|
|
1261
|
+
return D(this, void 0, void 0, function* () {
|
|
1713
1262
|
if (a.items) {
|
|
1714
|
-
const t =
|
|
1263
|
+
const t = fa(a.items).filter((p) => p.kind === "file");
|
|
1715
1264
|
if (i !== "drop")
|
|
1716
1265
|
return t;
|
|
1717
|
-
const
|
|
1718
|
-
return
|
|
1266
|
+
const n = yield Promise.all(t.map(ki));
|
|
1267
|
+
return Ma(Ja(n));
|
|
1719
1268
|
}
|
|
1720
|
-
return
|
|
1269
|
+
return Ma(fa(a.files).map((t) => F(t)));
|
|
1721
1270
|
});
|
|
1722
1271
|
}
|
|
1723
|
-
function
|
|
1724
|
-
return a.filter((i) =>
|
|
1272
|
+
function Ma(a) {
|
|
1273
|
+
return a.filter((i) => fi.indexOf(i.name) === -1);
|
|
1725
1274
|
}
|
|
1726
|
-
function
|
|
1275
|
+
function fa(a) {
|
|
1727
1276
|
if (a === null)
|
|
1728
1277
|
return [];
|
|
1729
1278
|
const i = [];
|
|
1730
1279
|
for (let t = 0; t < a.length; t++) {
|
|
1731
|
-
const
|
|
1732
|
-
i.push(
|
|
1280
|
+
const n = a[t];
|
|
1281
|
+
i.push(n);
|
|
1733
1282
|
}
|
|
1734
1283
|
return i;
|
|
1735
1284
|
}
|
|
1736
|
-
function
|
|
1285
|
+
function ki(a) {
|
|
1737
1286
|
if (typeof a.webkitGetAsEntry != "function")
|
|
1738
|
-
return
|
|
1287
|
+
return La(a);
|
|
1739
1288
|
const i = a.webkitGetAsEntry();
|
|
1740
|
-
return i && i.isDirectory ?
|
|
1289
|
+
return i && i.isDirectory ? Qa(i) : La(a, i);
|
|
1741
1290
|
}
|
|
1742
|
-
function
|
|
1291
|
+
function Ja(a) {
|
|
1743
1292
|
return a.reduce((i, t) => [
|
|
1744
1293
|
...i,
|
|
1745
|
-
...Array.isArray(t) ?
|
|
1294
|
+
...Array.isArray(t) ? Ja(t) : [t]
|
|
1746
1295
|
], []);
|
|
1747
1296
|
}
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1297
|
+
function La(a, i) {
|
|
1298
|
+
return D(this, void 0, void 0, function* () {
|
|
1750
1299
|
var t;
|
|
1751
1300
|
if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
|
|
1752
1301
|
const o = yield a.getAsFileSystemHandle();
|
|
1753
1302
|
if (o === null)
|
|
1754
1303
|
throw new Error(`${a} is not a File`);
|
|
1755
1304
|
if (o !== void 0) {
|
|
1756
|
-
const
|
|
1757
|
-
return
|
|
1305
|
+
const l = yield o.getFile();
|
|
1306
|
+
return l.handle = o, F(l);
|
|
1758
1307
|
}
|
|
1759
1308
|
}
|
|
1760
|
-
const
|
|
1761
|
-
if (!
|
|
1309
|
+
const n = a.getAsFile();
|
|
1310
|
+
if (!n)
|
|
1762
1311
|
throw new Error(`${a} is not a File`);
|
|
1763
|
-
return
|
|
1312
|
+
return F(n, (t = i?.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
1764
1313
|
});
|
|
1765
1314
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return
|
|
1768
|
-
return a.isDirectory ?
|
|
1315
|
+
function ji(a) {
|
|
1316
|
+
return D(this, void 0, void 0, function* () {
|
|
1317
|
+
return a.isDirectory ? Qa(a) : Di(a);
|
|
1769
1318
|
});
|
|
1770
1319
|
}
|
|
1771
|
-
function
|
|
1320
|
+
function Qa(a) {
|
|
1772
1321
|
const i = a.createReader();
|
|
1773
|
-
return new Promise((t,
|
|
1774
|
-
const
|
|
1322
|
+
return new Promise((t, n) => {
|
|
1323
|
+
const p = [];
|
|
1775
1324
|
function o() {
|
|
1776
|
-
i.readEntries((
|
|
1777
|
-
if (
|
|
1778
|
-
const r = Promise.all(
|
|
1779
|
-
|
|
1325
|
+
i.readEntries((l) => D(this, void 0, void 0, function* () {
|
|
1326
|
+
if (l.length) {
|
|
1327
|
+
const r = Promise.all(l.map(ji));
|
|
1328
|
+
p.push(r), o();
|
|
1780
1329
|
} else
|
|
1781
1330
|
try {
|
|
1782
|
-
const r = yield Promise.all(
|
|
1331
|
+
const r = yield Promise.all(p);
|
|
1783
1332
|
t(r);
|
|
1784
1333
|
} catch (r) {
|
|
1785
|
-
|
|
1334
|
+
n(r);
|
|
1786
1335
|
}
|
|
1787
|
-
}), (
|
|
1788
|
-
|
|
1336
|
+
}), (l) => {
|
|
1337
|
+
n(l);
|
|
1789
1338
|
});
|
|
1790
1339
|
}
|
|
1791
1340
|
o();
|
|
1792
1341
|
});
|
|
1793
1342
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return
|
|
1343
|
+
function Di(a) {
|
|
1344
|
+
return D(this, void 0, void 0, function* () {
|
|
1796
1345
|
return new Promise((i, t) => {
|
|
1797
|
-
a.file((
|
|
1798
|
-
const
|
|
1799
|
-
i(
|
|
1800
|
-
}, (
|
|
1801
|
-
t(
|
|
1346
|
+
a.file((n) => {
|
|
1347
|
+
const p = F(n, a.fullPath);
|
|
1348
|
+
i(p);
|
|
1349
|
+
}, (n) => {
|
|
1350
|
+
t(n);
|
|
1802
1351
|
});
|
|
1803
1352
|
});
|
|
1804
1353
|
});
|
|
1805
1354
|
}
|
|
1806
|
-
var
|
|
1807
|
-
function
|
|
1808
|
-
return
|
|
1355
|
+
var G = {}, $a;
|
|
1356
|
+
function zi() {
|
|
1357
|
+
return $a || ($a = 1, G.__esModule = !0, G.default = function(a, i) {
|
|
1809
1358
|
if (a && i) {
|
|
1810
1359
|
var t = Array.isArray(i) ? i : i.split(",");
|
|
1811
1360
|
if (t.length === 0)
|
|
1812
1361
|
return !0;
|
|
1813
|
-
var
|
|
1814
|
-
return t.some(function(
|
|
1815
|
-
var r =
|
|
1816
|
-
return r.charAt(0) === "." ?
|
|
1362
|
+
var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
|
|
1363
|
+
return t.some(function(l) {
|
|
1364
|
+
var r = l.trim().toLowerCase();
|
|
1365
|
+
return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
|
|
1817
1366
|
});
|
|
1818
1367
|
}
|
|
1819
1368
|
return !0;
|
|
1820
|
-
}),
|
|
1369
|
+
}), G;
|
|
1821
1370
|
}
|
|
1822
|
-
var
|
|
1823
|
-
const
|
|
1824
|
-
function
|
|
1825
|
-
return
|
|
1371
|
+
var Ei = zi();
|
|
1372
|
+
const ua = /* @__PURE__ */ di(Ei);
|
|
1373
|
+
function Ka(a) {
|
|
1374
|
+
return Fi(a) || Oi(a) || Za(a) || Ai();
|
|
1826
1375
|
}
|
|
1827
|
-
function
|
|
1376
|
+
function Ai() {
|
|
1828
1377
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1829
1378
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1830
1379
|
}
|
|
1831
|
-
function
|
|
1380
|
+
function Oi(a) {
|
|
1832
1381
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1833
1382
|
}
|
|
1834
|
-
function
|
|
1835
|
-
if (Array.isArray(a)) return
|
|
1383
|
+
function Fi(a) {
|
|
1384
|
+
if (Array.isArray(a)) return xa(a);
|
|
1836
1385
|
}
|
|
1837
|
-
function
|
|
1386
|
+
function Ha(a, i) {
|
|
1838
1387
|
var t = Object.keys(a);
|
|
1839
1388
|
if (Object.getOwnPropertySymbols) {
|
|
1840
|
-
var
|
|
1841
|
-
i && (
|
|
1842
|
-
return Object.getOwnPropertyDescriptor(a,
|
|
1843
|
-
})), t.push.apply(t,
|
|
1389
|
+
var n = Object.getOwnPropertySymbols(a);
|
|
1390
|
+
i && (n = n.filter(function(p) {
|
|
1391
|
+
return Object.getOwnPropertyDescriptor(a, p).enumerable;
|
|
1392
|
+
})), t.push.apply(t, n);
|
|
1844
1393
|
}
|
|
1845
1394
|
return t;
|
|
1846
1395
|
}
|
|
1847
|
-
function
|
|
1396
|
+
function Wa(a) {
|
|
1848
1397
|
for (var i = 1; i < arguments.length; i++) {
|
|
1849
1398
|
var t = arguments[i] != null ? arguments[i] : {};
|
|
1850
|
-
i % 2 ?
|
|
1851
|
-
|
|
1852
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
1853
|
-
Object.defineProperty(a,
|
|
1399
|
+
i % 2 ? Ha(Object(t), !0).forEach(function(n) {
|
|
1400
|
+
Va(a, n, t[n]);
|
|
1401
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ha(Object(t)).forEach(function(n) {
|
|
1402
|
+
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1854
1403
|
});
|
|
1855
1404
|
}
|
|
1856
1405
|
return a;
|
|
1857
1406
|
}
|
|
1858
|
-
function
|
|
1407
|
+
function Va(a, i, t) {
|
|
1859
1408
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
1860
1409
|
}
|
|
1861
|
-
function
|
|
1862
|
-
return
|
|
1410
|
+
function $(a, i) {
|
|
1411
|
+
return Ci(a) || Pi(a, i) || Za(a, i) || _i();
|
|
1863
1412
|
}
|
|
1864
|
-
function
|
|
1413
|
+
function _i() {
|
|
1865
1414
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1866
1415
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1867
1416
|
}
|
|
1868
|
-
function
|
|
1417
|
+
function Za(a, i) {
|
|
1869
1418
|
if (a) {
|
|
1870
|
-
if (typeof a == "string") return
|
|
1419
|
+
if (typeof a == "string") return xa(a, i);
|
|
1871
1420
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
1872
1421
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
1873
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
1422
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return xa(a, i);
|
|
1874
1423
|
}
|
|
1875
1424
|
}
|
|
1876
|
-
function
|
|
1425
|
+
function xa(a, i) {
|
|
1877
1426
|
(i == null || i > a.length) && (i = a.length);
|
|
1878
|
-
for (var t = 0,
|
|
1879
|
-
|
|
1880
|
-
return
|
|
1427
|
+
for (var t = 0, n = new Array(i); t < i; t++)
|
|
1428
|
+
n[t] = a[t];
|
|
1429
|
+
return n;
|
|
1881
1430
|
}
|
|
1882
|
-
function
|
|
1431
|
+
function Pi(a, i) {
|
|
1883
1432
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1884
1433
|
if (t != null) {
|
|
1885
|
-
var
|
|
1434
|
+
var n = [], p = !0, o = !1, l, r;
|
|
1886
1435
|
try {
|
|
1887
|
-
for (t = t.call(a); !(
|
|
1436
|
+
for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
|
|
1888
1437
|
;
|
|
1889
|
-
} catch (
|
|
1890
|
-
o = !0, r =
|
|
1438
|
+
} catch (x) {
|
|
1439
|
+
o = !0, r = x;
|
|
1891
1440
|
} finally {
|
|
1892
1441
|
try {
|
|
1893
|
-
!
|
|
1442
|
+
!p && t.return != null && t.return();
|
|
1894
1443
|
} finally {
|
|
1895
1444
|
if (o) throw r;
|
|
1896
1445
|
}
|
|
1897
1446
|
}
|
|
1898
|
-
return
|
|
1447
|
+
return n;
|
|
1899
1448
|
}
|
|
1900
1449
|
}
|
|
1901
|
-
function
|
|
1450
|
+
function Ci(a) {
|
|
1902
1451
|
if (Array.isArray(a)) return a;
|
|
1903
1452
|
}
|
|
1904
|
-
var
|
|
1905
|
-
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","),
|
|
1453
|
+
var qi = typeof ua == "function" ? ua : ua.default, Si = "file-invalid-type", Ti = "file-too-large", Ii = "file-too-small", Ri = "too-many-files", Mi = function() {
|
|
1454
|
+
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
1906
1455
|
return {
|
|
1907
|
-
code:
|
|
1908
|
-
message: "File type must be ".concat(
|
|
1456
|
+
code: Si,
|
|
1457
|
+
message: "File type must be ".concat(n)
|
|
1909
1458
|
};
|
|
1910
|
-
},
|
|
1459
|
+
}, Ba = function(i) {
|
|
1911
1460
|
return {
|
|
1912
|
-
code:
|
|
1461
|
+
code: Ti,
|
|
1913
1462
|
message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1914
1463
|
};
|
|
1915
|
-
},
|
|
1464
|
+
}, Na = function(i) {
|
|
1916
1465
|
return {
|
|
1917
|
-
code:
|
|
1466
|
+
code: Ii,
|
|
1918
1467
|
message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1919
1468
|
};
|
|
1920
|
-
},
|
|
1921
|
-
code:
|
|
1469
|
+
}, Li = {
|
|
1470
|
+
code: Ri,
|
|
1922
1471
|
message: "Too many files"
|
|
1923
1472
|
};
|
|
1924
|
-
function
|
|
1925
|
-
var t = a.type === "application/x-moz-file" ||
|
|
1926
|
-
return [t, t ? null :
|
|
1927
|
-
}
|
|
1928
|
-
function
|
|
1929
|
-
if (
|
|
1930
|
-
if (
|
|
1931
|
-
if (a.size > t) return [!1,
|
|
1932
|
-
if (a.size < i) return [!1,
|
|
1473
|
+
function Xa(a, i) {
|
|
1474
|
+
var t = a.type === "application/x-moz-file" || qi(a, i);
|
|
1475
|
+
return [t, t ? null : Mi(i)];
|
|
1476
|
+
}
|
|
1477
|
+
function ai(a, i, t) {
|
|
1478
|
+
if (j(a.size))
|
|
1479
|
+
if (j(i) && j(t)) {
|
|
1480
|
+
if (a.size > t) return [!1, Ba(t)];
|
|
1481
|
+
if (a.size < i) return [!1, Na(i)];
|
|
1933
1482
|
} else {
|
|
1934
|
-
if (
|
|
1935
|
-
if (
|
|
1483
|
+
if (j(i) && a.size < i) return [!1, Na(i)];
|
|
1484
|
+
if (j(t) && a.size > t) return [!1, Ba(t)];
|
|
1936
1485
|
}
|
|
1937
1486
|
return [!0, null];
|
|
1938
1487
|
}
|
|
1939
|
-
function
|
|
1488
|
+
function j(a) {
|
|
1940
1489
|
return a != null;
|
|
1941
1490
|
}
|
|
1942
|
-
function
|
|
1943
|
-
var i = a.files, t = a.accept,
|
|
1944
|
-
return !o && i.length > 1 || o &&
|
|
1945
|
-
var
|
|
1946
|
-
return
|
|
1491
|
+
function $i(a) {
|
|
1492
|
+
var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
|
|
1493
|
+
return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(x) {
|
|
1494
|
+
var _ = Xa(x, t), P = $(_, 1), C = P[0], q = ai(x, n, p), S = $(q, 1), T = S[0], I = r ? r(x) : null;
|
|
1495
|
+
return C && T && !I;
|
|
1947
1496
|
});
|
|
1948
1497
|
}
|
|
1949
|
-
function
|
|
1498
|
+
function V(a) {
|
|
1950
1499
|
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
1951
1500
|
}
|
|
1952
|
-
function
|
|
1501
|
+
function J(a) {
|
|
1953
1502
|
return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
|
|
1954
1503
|
return i === "Files" || i === "application/x-moz-file";
|
|
1955
1504
|
}) : !!a.target && !!a.target.files;
|
|
1956
1505
|
}
|
|
1957
|
-
function
|
|
1506
|
+
function Ua(a) {
|
|
1958
1507
|
a.preventDefault();
|
|
1959
1508
|
}
|
|
1960
|
-
function
|
|
1509
|
+
function Ki(a) {
|
|
1961
1510
|
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
1962
1511
|
}
|
|
1963
|
-
function
|
|
1512
|
+
function Hi(a) {
|
|
1964
1513
|
return a.indexOf("Edge/") !== -1;
|
|
1965
1514
|
}
|
|
1966
|
-
function
|
|
1515
|
+
function Wi() {
|
|
1967
1516
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1968
|
-
return
|
|
1517
|
+
return Ki(a) || Hi(a);
|
|
1969
1518
|
}
|
|
1970
|
-
function
|
|
1519
|
+
function y() {
|
|
1971
1520
|
for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
|
|
1972
1521
|
i[t] = arguments[t];
|
|
1973
|
-
return function(
|
|
1974
|
-
for (var
|
|
1975
|
-
o[
|
|
1522
|
+
return function(n) {
|
|
1523
|
+
for (var p = arguments.length, o = new Array(p > 1 ? p - 1 : 0), l = 1; l < p; l++)
|
|
1524
|
+
o[l - 1] = arguments[l];
|
|
1976
1525
|
return i.some(function(r) {
|
|
1977
|
-
return !
|
|
1526
|
+
return !V(n) && r && r.apply(void 0, [n].concat(o)), V(n);
|
|
1978
1527
|
});
|
|
1979
1528
|
};
|
|
1980
1529
|
}
|
|
1981
|
-
function
|
|
1530
|
+
function Bi() {
|
|
1982
1531
|
return "showOpenFilePicker" in window;
|
|
1983
1532
|
}
|
|
1984
|
-
function
|
|
1985
|
-
if (
|
|
1533
|
+
function Ni(a) {
|
|
1534
|
+
if (j(a)) {
|
|
1986
1535
|
var i = Object.entries(a).filter(function(t) {
|
|
1987
|
-
var
|
|
1988
|
-
return
|
|
1989
|
-
}).reduce(function(t,
|
|
1990
|
-
var
|
|
1991
|
-
return
|
|
1536
|
+
var n = $(t, 2), p = n[0], o = n[1], l = !0;
|
|
1537
|
+
return ii(p) || (console.warn('Skipped "'.concat(p, '" 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.')), l = !1), (!Array.isArray(o) || !o.every(ti)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
|
|
1538
|
+
}).reduce(function(t, n) {
|
|
1539
|
+
var p = $(n, 2), o = p[0], l = p[1];
|
|
1540
|
+
return Wa(Wa({}, t), {}, Va({}, o, l));
|
|
1992
1541
|
}, {});
|
|
1993
1542
|
return [{
|
|
1994
1543
|
// description is required due to https://crbug.com/1264708
|
|
@@ -1998,139 +1547,139 @@ function ne(a) {
|
|
|
1998
1547
|
}
|
|
1999
1548
|
return a;
|
|
2000
1549
|
}
|
|
2001
|
-
function
|
|
2002
|
-
if (
|
|
1550
|
+
function Ui(a) {
|
|
1551
|
+
if (j(a))
|
|
2003
1552
|
return Object.entries(a).reduce(function(i, t) {
|
|
2004
|
-
var
|
|
2005
|
-
return [].concat(
|
|
1553
|
+
var n = $(t, 2), p = n[0], o = n[1];
|
|
1554
|
+
return [].concat(Ka(i), [p], Ka(o));
|
|
2006
1555
|
}, []).filter(function(i) {
|
|
2007
|
-
return
|
|
1556
|
+
return ii(i) || ti(i);
|
|
2008
1557
|
}).join(",");
|
|
2009
1558
|
}
|
|
2010
|
-
function
|
|
1559
|
+
function Yi(a) {
|
|
2011
1560
|
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
2012
1561
|
}
|
|
2013
|
-
function
|
|
1562
|
+
function Gi(a) {
|
|
2014
1563
|
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
2015
1564
|
}
|
|
2016
|
-
function
|
|
1565
|
+
function ii(a) {
|
|
2017
1566
|
return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
|
|
2018
1567
|
}
|
|
2019
|
-
function
|
|
1568
|
+
function ti(a) {
|
|
2020
1569
|
return /^.*\.[\w]+$/.test(a);
|
|
2021
1570
|
}
|
|
2022
|
-
var
|
|
2023
|
-
function
|
|
2024
|
-
return
|
|
1571
|
+
var Ji = ["children"], Qi = ["open"], Vi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Zi = ["refKey", "onChange", "onClick"];
|
|
1572
|
+
function Xi(a) {
|
|
1573
|
+
return tt(a) || it(a) || ni(a) || at();
|
|
2025
1574
|
}
|
|
2026
|
-
function
|
|
1575
|
+
function at() {
|
|
2027
1576
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2028
1577
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2029
1578
|
}
|
|
2030
|
-
function
|
|
1579
|
+
function it(a) {
|
|
2031
1580
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2032
1581
|
}
|
|
2033
|
-
function
|
|
2034
|
-
if (Array.isArray(a)) return
|
|
1582
|
+
function tt(a) {
|
|
1583
|
+
if (Array.isArray(a)) return ga(a);
|
|
2035
1584
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return
|
|
1585
|
+
function va(a, i) {
|
|
1586
|
+
return pt(a) || et(a, i) || ni(a, i) || nt();
|
|
2038
1587
|
}
|
|
2039
|
-
function
|
|
1588
|
+
function nt() {
|
|
2040
1589
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2041
1590
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2042
1591
|
}
|
|
2043
|
-
function
|
|
1592
|
+
function ni(a, i) {
|
|
2044
1593
|
if (a) {
|
|
2045
|
-
if (typeof a == "string") return
|
|
1594
|
+
if (typeof a == "string") return ga(a, i);
|
|
2046
1595
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
2047
1596
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
2048
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
1597
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ga(a, i);
|
|
2049
1598
|
}
|
|
2050
1599
|
}
|
|
2051
|
-
function
|
|
1600
|
+
function ga(a, i) {
|
|
2052
1601
|
(i == null || i > a.length) && (i = a.length);
|
|
2053
|
-
for (var t = 0,
|
|
2054
|
-
|
|
2055
|
-
return
|
|
1602
|
+
for (var t = 0, n = new Array(i); t < i; t++)
|
|
1603
|
+
n[t] = a[t];
|
|
1604
|
+
return n;
|
|
2056
1605
|
}
|
|
2057
|
-
function
|
|
1606
|
+
function et(a, i) {
|
|
2058
1607
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2059
1608
|
if (t != null) {
|
|
2060
|
-
var
|
|
1609
|
+
var n = [], p = !0, o = !1, l, r;
|
|
2061
1610
|
try {
|
|
2062
|
-
for (t = t.call(a); !(
|
|
1611
|
+
for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
|
|
2063
1612
|
;
|
|
2064
|
-
} catch (
|
|
2065
|
-
o = !0, r =
|
|
1613
|
+
} catch (x) {
|
|
1614
|
+
o = !0, r = x;
|
|
2066
1615
|
} finally {
|
|
2067
1616
|
try {
|
|
2068
|
-
!
|
|
1617
|
+
!p && t.return != null && t.return();
|
|
2069
1618
|
} finally {
|
|
2070
1619
|
if (o) throw r;
|
|
2071
1620
|
}
|
|
2072
1621
|
}
|
|
2073
|
-
return
|
|
1622
|
+
return n;
|
|
2074
1623
|
}
|
|
2075
1624
|
}
|
|
2076
|
-
function
|
|
1625
|
+
function pt(a) {
|
|
2077
1626
|
if (Array.isArray(a)) return a;
|
|
2078
1627
|
}
|
|
2079
|
-
function
|
|
1628
|
+
function Ya(a, i) {
|
|
2080
1629
|
var t = Object.keys(a);
|
|
2081
1630
|
if (Object.getOwnPropertySymbols) {
|
|
2082
|
-
var
|
|
2083
|
-
i && (
|
|
2084
|
-
return Object.getOwnPropertyDescriptor(a,
|
|
2085
|
-
})), t.push.apply(t,
|
|
1631
|
+
var n = Object.getOwnPropertySymbols(a);
|
|
1632
|
+
i && (n = n.filter(function(p) {
|
|
1633
|
+
return Object.getOwnPropertyDescriptor(a, p).enumerable;
|
|
1634
|
+
})), t.push.apply(t, n);
|
|
2086
1635
|
}
|
|
2087
1636
|
return t;
|
|
2088
1637
|
}
|
|
2089
|
-
function
|
|
1638
|
+
function m(a) {
|
|
2090
1639
|
for (var i = 1; i < arguments.length; i++) {
|
|
2091
1640
|
var t = arguments[i] != null ? arguments[i] : {};
|
|
2092
|
-
i % 2 ?
|
|
2093
|
-
|
|
2094
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
2095
|
-
Object.defineProperty(a,
|
|
1641
|
+
i % 2 ? Ya(Object(t), !0).forEach(function(n) {
|
|
1642
|
+
ba(a, n, t[n]);
|
|
1643
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ya(Object(t)).forEach(function(n) {
|
|
1644
|
+
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2096
1645
|
});
|
|
2097
1646
|
}
|
|
2098
1647
|
return a;
|
|
2099
1648
|
}
|
|
2100
|
-
function
|
|
1649
|
+
function ba(a, i, t) {
|
|
2101
1650
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
2102
1651
|
}
|
|
2103
|
-
function
|
|
1652
|
+
function Z(a, i) {
|
|
2104
1653
|
if (a == null) return {};
|
|
2105
|
-
var t =
|
|
1654
|
+
var t = ot(a, i), n, p;
|
|
2106
1655
|
if (Object.getOwnPropertySymbols) {
|
|
2107
1656
|
var o = Object.getOwnPropertySymbols(a);
|
|
2108
|
-
for (
|
|
2109
|
-
|
|
1657
|
+
for (p = 0; p < o.length; p++)
|
|
1658
|
+
n = o[p], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
|
|
2110
1659
|
}
|
|
2111
1660
|
return t;
|
|
2112
1661
|
}
|
|
2113
|
-
function
|
|
1662
|
+
function ot(a, i) {
|
|
2114
1663
|
if (a == null) return {};
|
|
2115
|
-
var t = {},
|
|
2116
|
-
for (o = 0; o <
|
|
2117
|
-
|
|
1664
|
+
var t = {}, n = Object.keys(a), p, o;
|
|
1665
|
+
for (o = 0; o < n.length; o++)
|
|
1666
|
+
p = n[o], !(i.indexOf(p) >= 0) && (t[p] = a[p]);
|
|
2118
1667
|
return t;
|
|
2119
1668
|
}
|
|
2120
|
-
var
|
|
2121
|
-
var t = a.children,
|
|
2122
|
-
return
|
|
1669
|
+
var ya = /* @__PURE__ */ s.forwardRef(function(a, i) {
|
|
1670
|
+
var t = a.children, n = Z(a, Ji), p = ct(n), o = p.open, l = Z(p, Qi);
|
|
1671
|
+
return s.useImperativeHandle(i, function() {
|
|
2123
1672
|
return {
|
|
2124
1673
|
open: o
|
|
2125
1674
|
};
|
|
2126
|
-
}, [o]), /* @__PURE__ */
|
|
1675
|
+
}, [o]), /* @__PURE__ */ mi.createElement(s.Fragment, null, t(m(m({}, l), {}, {
|
|
2127
1676
|
open: o
|
|
2128
1677
|
})));
|
|
2129
1678
|
});
|
|
2130
|
-
|
|
2131
|
-
var
|
|
1679
|
+
ya.displayName = "Dropzone";
|
|
1680
|
+
var ei = {
|
|
2132
1681
|
disabled: !1,
|
|
2133
|
-
getFilesFromEvent:
|
|
1682
|
+
getFilesFromEvent: xi,
|
|
2134
1683
|
maxSize: 1 / 0,
|
|
2135
1684
|
minSize: 0,
|
|
2136
1685
|
multiple: !0,
|
|
@@ -2144,8 +1693,8 @@ var Ti = {
|
|
|
2144
1693
|
useFsAccessApi: !1,
|
|
2145
1694
|
autoFocus: !1
|
|
2146
1695
|
};
|
|
2147
|
-
|
|
2148
|
-
|
|
1696
|
+
ya.defaultProps = ei;
|
|
1697
|
+
ya.propTypes = {
|
|
2149
1698
|
/**
|
|
2150
1699
|
* Render function that exposes the dropzone state and prop getter fns
|
|
2151
1700
|
*
|
|
@@ -2161,7 +1710,7 @@ Sa.propTypes = {
|
|
|
2161
1710
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2162
1711
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2163
1712
|
*/
|
|
2164
|
-
children:
|
|
1713
|
+
children: d.func,
|
|
2165
1714
|
/**
|
|
2166
1715
|
* Set accepted file types.
|
|
2167
1716
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2169,90 +1718,90 @@ Sa.propTypes = {
|
|
|
2169
1718
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2170
1719
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2171
1720
|
*/
|
|
2172
|
-
accept:
|
|
1721
|
+
accept: d.objectOf(d.arrayOf(d.string)),
|
|
2173
1722
|
/**
|
|
2174
1723
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2175
1724
|
*/
|
|
2176
|
-
multiple:
|
|
1725
|
+
multiple: d.bool,
|
|
2177
1726
|
/**
|
|
2178
1727
|
* If false, allow dropped items to take over the current browser window
|
|
2179
1728
|
*/
|
|
2180
|
-
preventDropOnDocument:
|
|
1729
|
+
preventDropOnDocument: d.bool,
|
|
2181
1730
|
/**
|
|
2182
1731
|
* If true, disables click to open the native file selection dialog
|
|
2183
1732
|
*/
|
|
2184
|
-
noClick:
|
|
1733
|
+
noClick: d.bool,
|
|
2185
1734
|
/**
|
|
2186
1735
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2187
1736
|
* Note that it also stops tracking the focus state.
|
|
2188
1737
|
*/
|
|
2189
|
-
noKeyboard:
|
|
1738
|
+
noKeyboard: d.bool,
|
|
2190
1739
|
/**
|
|
2191
1740
|
* If true, disables drag 'n' drop
|
|
2192
1741
|
*/
|
|
2193
|
-
noDrag:
|
|
1742
|
+
noDrag: d.bool,
|
|
2194
1743
|
/**
|
|
2195
1744
|
* If true, stops drag event propagation to parents
|
|
2196
1745
|
*/
|
|
2197
|
-
noDragEventsBubbling:
|
|
1746
|
+
noDragEventsBubbling: d.bool,
|
|
2198
1747
|
/**
|
|
2199
1748
|
* Minimum file size (in bytes)
|
|
2200
1749
|
*/
|
|
2201
|
-
minSize:
|
|
1750
|
+
minSize: d.number,
|
|
2202
1751
|
/**
|
|
2203
1752
|
* Maximum file size (in bytes)
|
|
2204
1753
|
*/
|
|
2205
|
-
maxSize:
|
|
1754
|
+
maxSize: d.number,
|
|
2206
1755
|
/**
|
|
2207
1756
|
* Maximum accepted number of files
|
|
2208
1757
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2209
1758
|
*/
|
|
2210
|
-
maxFiles:
|
|
1759
|
+
maxFiles: d.number,
|
|
2211
1760
|
/**
|
|
2212
1761
|
* Enable/disable the dropzone
|
|
2213
1762
|
*/
|
|
2214
|
-
disabled:
|
|
1763
|
+
disabled: d.bool,
|
|
2215
1764
|
/**
|
|
2216
1765
|
* Use this to provide a custom file aggregator
|
|
2217
1766
|
*
|
|
2218
1767
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2219
1768
|
*/
|
|
2220
|
-
getFilesFromEvent:
|
|
1769
|
+
getFilesFromEvent: d.func,
|
|
2221
1770
|
/**
|
|
2222
1771
|
* Cb for when closing the file dialog with no selection
|
|
2223
1772
|
*/
|
|
2224
|
-
onFileDialogCancel:
|
|
1773
|
+
onFileDialogCancel: d.func,
|
|
2225
1774
|
/**
|
|
2226
1775
|
* Cb for when opening the file dialog
|
|
2227
1776
|
*/
|
|
2228
|
-
onFileDialogOpen:
|
|
1777
|
+
onFileDialogOpen: d.func,
|
|
2229
1778
|
/**
|
|
2230
1779
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
2231
1780
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
2232
1781
|
*/
|
|
2233
|
-
useFsAccessApi:
|
|
1782
|
+
useFsAccessApi: d.bool,
|
|
2234
1783
|
/**
|
|
2235
1784
|
* Set to true to focus the root element on render
|
|
2236
1785
|
*/
|
|
2237
|
-
autoFocus:
|
|
1786
|
+
autoFocus: d.bool,
|
|
2238
1787
|
/**
|
|
2239
1788
|
* Cb for when the `dragenter` event occurs.
|
|
2240
1789
|
*
|
|
2241
1790
|
* @param {DragEvent} event
|
|
2242
1791
|
*/
|
|
2243
|
-
onDragEnter:
|
|
1792
|
+
onDragEnter: d.func,
|
|
2244
1793
|
/**
|
|
2245
1794
|
* Cb for when the `dragleave` event occurs
|
|
2246
1795
|
*
|
|
2247
1796
|
* @param {DragEvent} event
|
|
2248
1797
|
*/
|
|
2249
|
-
onDragLeave:
|
|
1798
|
+
onDragLeave: d.func,
|
|
2250
1799
|
/**
|
|
2251
1800
|
* Cb for when the `dragover` event occurs
|
|
2252
1801
|
*
|
|
2253
1802
|
* @param {DragEvent} event
|
|
2254
1803
|
*/
|
|
2255
|
-
onDragOver:
|
|
1804
|
+
onDragOver: d.func,
|
|
2256
1805
|
/**
|
|
2257
1806
|
* Cb for when the `drop` event occurs.
|
|
2258
1807
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -2283,7 +1832,7 @@ Sa.propTypes = {
|
|
|
2283
1832
|
* @param {FileRejection[]} fileRejections
|
|
2284
1833
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2285
1834
|
*/
|
|
2286
|
-
onDrop:
|
|
1835
|
+
onDrop: d.func,
|
|
2287
1836
|
/**
|
|
2288
1837
|
* Cb for when the `drop` event occurs.
|
|
2289
1838
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -2291,7 +1840,7 @@ Sa.propTypes = {
|
|
|
2291
1840
|
* @param {File[]} files
|
|
2292
1841
|
* @param {(DragEvent|Event)} event
|
|
2293
1842
|
*/
|
|
2294
|
-
onDropAccepted:
|
|
1843
|
+
onDropAccepted: d.func,
|
|
2295
1844
|
/**
|
|
2296
1845
|
* Cb for when the `drop` event occurs.
|
|
2297
1846
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -2299,21 +1848,21 @@ Sa.propTypes = {
|
|
|
2299
1848
|
* @param {FileRejection[]} fileRejections
|
|
2300
1849
|
* @param {(DragEvent|Event)} event
|
|
2301
1850
|
*/
|
|
2302
|
-
onDropRejected:
|
|
1851
|
+
onDropRejected: d.func,
|
|
2303
1852
|
/**
|
|
2304
1853
|
* Cb for when there's some error from any of the promises.
|
|
2305
1854
|
*
|
|
2306
1855
|
* @param {Error} error
|
|
2307
1856
|
*/
|
|
2308
|
-
onError:
|
|
1857
|
+
onError: d.func,
|
|
2309
1858
|
/**
|
|
2310
1859
|
* Custom validation function. It must return null if there's no errors.
|
|
2311
1860
|
* @param {File} file
|
|
2312
1861
|
* @returns {FileError|FileError[]|null}
|
|
2313
1862
|
*/
|
|
2314
|
-
validator:
|
|
1863
|
+
validator: d.func
|
|
2315
1864
|
};
|
|
2316
|
-
var
|
|
1865
|
+
var ha = {
|
|
2317
1866
|
isFocused: !1,
|
|
2318
1867
|
isFileDialogActive: !1,
|
|
2319
1868
|
isDragActive: !1,
|
|
@@ -2322,187 +1871,187 @@ var Fa = {
|
|
|
2322
1871
|
acceptedFiles: [],
|
|
2323
1872
|
fileRejections: []
|
|
2324
1873
|
};
|
|
2325
|
-
function
|
|
2326
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i =
|
|
2327
|
-
return
|
|
2328
|
-
}, [t]),
|
|
2329
|
-
return
|
|
2330
|
-
}, [t]),
|
|
2331
|
-
return typeof
|
|
2332
|
-
}, [
|
|
2333
|
-
return typeof
|
|
2334
|
-
}, [
|
|
2335
|
-
!
|
|
2336
|
-
if (
|
|
2337
|
-
var
|
|
2338
|
-
|
|
1874
|
+
function ct() {
|
|
1875
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, ei), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, x = i.maxFiles, _ = i.onDragEnter, P = i.onDragLeave, C = i.onDragOver, q = i.onDrop, S = i.onDropAccepted, T = i.onDropRejected, I = i.onFileDialogCancel, X = i.onFileDialogOpen, wa = i.useFsAccessApi, ka = i.autoFocus, aa = i.preventDropOnDocument, ja = i.noClick, ia = i.noKeyboard, Da = i.noDrag, w = i.noDragEventsBubbling, ta = i.onError, R = i.validator, M = s.useMemo(function() {
|
|
1876
|
+
return Ui(t);
|
|
1877
|
+
}, [t]), za = s.useMemo(function() {
|
|
1878
|
+
return Ni(t);
|
|
1879
|
+
}, [t]), na = s.useMemo(function() {
|
|
1880
|
+
return typeof X == "function" ? X : Ga;
|
|
1881
|
+
}, [X]), K = s.useMemo(function() {
|
|
1882
|
+
return typeof I == "function" ? I : Ga;
|
|
1883
|
+
}, [I]), f = s.useRef(null), h = s.useRef(null), pi = s.useReducer(lt, ha), Ea = va(pi, 2), ea = Ea[0], g = Ea[1], oi = ea.isFocused, Aa = ea.isFileDialogActive, H = s.useRef(typeof window < "u" && window.isSecureContext && wa && Bi()), Oa = function() {
|
|
1884
|
+
!H.current && Aa && setTimeout(function() {
|
|
1885
|
+
if (h.current) {
|
|
1886
|
+
var c = h.current.files;
|
|
1887
|
+
c.length || (g({
|
|
2339
1888
|
type: "closeDialog"
|
|
2340
|
-
}),
|
|
1889
|
+
}), K());
|
|
2341
1890
|
}
|
|
2342
1891
|
}, 300);
|
|
2343
1892
|
};
|
|
2344
|
-
|
|
2345
|
-
return window.addEventListener("focus",
|
|
2346
|
-
window.removeEventListener("focus",
|
|
1893
|
+
s.useEffect(function() {
|
|
1894
|
+
return window.addEventListener("focus", Oa, !1), function() {
|
|
1895
|
+
window.removeEventListener("focus", Oa, !1);
|
|
2347
1896
|
};
|
|
2348
|
-
}, [
|
|
2349
|
-
var
|
|
2350
|
-
|
|
1897
|
+
}, [h, Aa, K, H]);
|
|
1898
|
+
var z = s.useRef([]), Fa = function(c) {
|
|
1899
|
+
f.current && f.current.contains(c.target) || (c.preventDefault(), z.current = []);
|
|
2351
1900
|
};
|
|
2352
|
-
|
|
2353
|
-
return
|
|
2354
|
-
|
|
1901
|
+
s.useEffect(function() {
|
|
1902
|
+
return aa && (document.addEventListener("dragover", Ua, !1), document.addEventListener("drop", Fa, !1)), function() {
|
|
1903
|
+
aa && (document.removeEventListener("dragover", Ua), document.removeEventListener("drop", Fa));
|
|
2355
1904
|
};
|
|
2356
|
-
}, [
|
|
2357
|
-
return !
|
|
1905
|
+
}, [f, aa]), s.useEffect(function() {
|
|
1906
|
+
return !n && ka && f.current && f.current.focus(), function() {
|
|
2358
1907
|
};
|
|
2359
|
-
}, [
|
|
2360
|
-
var
|
|
2361
|
-
|
|
2362
|
-
}, [
|
|
2363
|
-
|
|
2364
|
-
if (!(
|
|
2365
|
-
var
|
|
2366
|
-
files:
|
|
2367
|
-
accept:
|
|
2368
|
-
minSize:
|
|
1908
|
+
}, [f, ka, n]);
|
|
1909
|
+
var k = s.useCallback(function(e) {
|
|
1910
|
+
ta ? ta(e) : console.error(e);
|
|
1911
|
+
}, [ta]), _a = s.useCallback(function(e) {
|
|
1912
|
+
e.preventDefault(), e.persist(), U(e), z.current = [].concat(Xi(z.current), [e.target]), J(e) && Promise.resolve(p(e)).then(function(c) {
|
|
1913
|
+
if (!(V(e) && !w)) {
|
|
1914
|
+
var u = c.length, v = u > 0 && $i({
|
|
1915
|
+
files: c,
|
|
1916
|
+
accept: M,
|
|
1917
|
+
minSize: l,
|
|
2369
1918
|
maxSize: o,
|
|
2370
1919
|
multiple: r,
|
|
2371
|
-
maxFiles:
|
|
2372
|
-
validator:
|
|
2373
|
-
}),
|
|
2374
|
-
|
|
2375
|
-
isDragAccept:
|
|
2376
|
-
isDragReject:
|
|
1920
|
+
maxFiles: x,
|
|
1921
|
+
validator: R
|
|
1922
|
+
}), b = u > 0 && !v;
|
|
1923
|
+
g({
|
|
1924
|
+
isDragAccept: v,
|
|
1925
|
+
isDragReject: b,
|
|
2377
1926
|
isDragActive: !0,
|
|
2378
1927
|
type: "setDraggedFiles"
|
|
2379
|
-
}),
|
|
1928
|
+
}), _ && _(e);
|
|
2380
1929
|
}
|
|
2381
|
-
}).catch(function(
|
|
2382
|
-
return
|
|
1930
|
+
}).catch(function(c) {
|
|
1931
|
+
return k(c);
|
|
2383
1932
|
});
|
|
2384
|
-
}, [
|
|
2385
|
-
|
|
2386
|
-
var
|
|
2387
|
-
if (
|
|
1933
|
+
}, [p, _, k, w, M, l, o, r, x, R]), Pa = s.useCallback(function(e) {
|
|
1934
|
+
e.preventDefault(), e.persist(), U(e);
|
|
1935
|
+
var c = J(e);
|
|
1936
|
+
if (c && e.dataTransfer)
|
|
2388
1937
|
try {
|
|
2389
|
-
|
|
1938
|
+
e.dataTransfer.dropEffect = "copy";
|
|
2390
1939
|
} catch {
|
|
2391
1940
|
}
|
|
2392
|
-
return
|
|
2393
|
-
}, [
|
|
2394
|
-
|
|
2395
|
-
var
|
|
2396
|
-
return
|
|
2397
|
-
}),
|
|
2398
|
-
|
|
1941
|
+
return c && C && C(e), !1;
|
|
1942
|
+
}, [C, w]), Ca = s.useCallback(function(e) {
|
|
1943
|
+
e.preventDefault(), e.persist(), U(e);
|
|
1944
|
+
var c = z.current.filter(function(v) {
|
|
1945
|
+
return f.current && f.current.contains(v);
|
|
1946
|
+
}), u = c.indexOf(e.target);
|
|
1947
|
+
u !== -1 && c.splice(u, 1), z.current = c, !(c.length > 0) && (g({
|
|
2399
1948
|
type: "setDraggedFiles",
|
|
2400
1949
|
isDragActive: !1,
|
|
2401
1950
|
isDragAccept: !1,
|
|
2402
1951
|
isDragReject: !1
|
|
2403
|
-
}),
|
|
2404
|
-
}, [
|
|
2405
|
-
var
|
|
2406
|
-
|
|
2407
|
-
var
|
|
2408
|
-
if (
|
|
2409
|
-
|
|
1952
|
+
}), J(e) && P && P(e));
|
|
1953
|
+
}, [f, P, w]), W = s.useCallback(function(e, c) {
|
|
1954
|
+
var u = [], v = [];
|
|
1955
|
+
e.forEach(function(b) {
|
|
1956
|
+
var L = Xa(b, M), O = va(L, 2), oa = O[0], ca = O[1], la = ai(b, l, o), Y = va(la, 2), ra = Y[0], sa = Y[1], da = R ? R(b) : null;
|
|
1957
|
+
if (oa && ra && !da)
|
|
1958
|
+
u.push(b);
|
|
2410
1959
|
else {
|
|
2411
|
-
var
|
|
2412
|
-
|
|
2413
|
-
file:
|
|
2414
|
-
errors:
|
|
2415
|
-
return
|
|
1960
|
+
var ma = [ca, sa];
|
|
1961
|
+
da && (ma = ma.concat(da)), v.push({
|
|
1962
|
+
file: b,
|
|
1963
|
+
errors: ma.filter(function(si) {
|
|
1964
|
+
return si;
|
|
2416
1965
|
})
|
|
2417
1966
|
});
|
|
2418
1967
|
}
|
|
2419
|
-
}), (!r &&
|
|
2420
|
-
|
|
2421
|
-
file:
|
|
2422
|
-
errors: [
|
|
1968
|
+
}), (!r && u.length > 1 || r && x >= 1 && u.length > x) && (u.forEach(function(b) {
|
|
1969
|
+
v.push({
|
|
1970
|
+
file: b,
|
|
1971
|
+
errors: [Li]
|
|
2423
1972
|
});
|
|
2424
|
-
}),
|
|
2425
|
-
acceptedFiles:
|
|
2426
|
-
fileRejections:
|
|
2427
|
-
isDragReject:
|
|
1973
|
+
}), u.splice(0)), g({
|
|
1974
|
+
acceptedFiles: u,
|
|
1975
|
+
fileRejections: v,
|
|
1976
|
+
isDragReject: v.length > 0,
|
|
2428
1977
|
type: "setFiles"
|
|
2429
|
-
}),
|
|
2430
|
-
}, [
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
}).catch(function(
|
|
2434
|
-
return
|
|
2435
|
-
}),
|
|
1978
|
+
}), q && q(u, v, c), v.length > 0 && T && T(v, c), u.length > 0 && S && S(u, c);
|
|
1979
|
+
}, [g, r, M, l, o, x, q, S, T, R]), B = s.useCallback(function(e) {
|
|
1980
|
+
e.preventDefault(), e.persist(), U(e), z.current = [], J(e) && Promise.resolve(p(e)).then(function(c) {
|
|
1981
|
+
V(e) && !w || W(c, e);
|
|
1982
|
+
}).catch(function(c) {
|
|
1983
|
+
return k(c);
|
|
1984
|
+
}), g({
|
|
2436
1985
|
type: "reset"
|
|
2437
1986
|
});
|
|
2438
|
-
}, [
|
|
2439
|
-
if (
|
|
2440
|
-
|
|
1987
|
+
}, [p, W, k, w]), E = s.useCallback(function() {
|
|
1988
|
+
if (H.current) {
|
|
1989
|
+
g({
|
|
2441
1990
|
type: "openDialog"
|
|
2442
|
-
}),
|
|
2443
|
-
var
|
|
1991
|
+
}), na();
|
|
1992
|
+
var e = {
|
|
2444
1993
|
multiple: r,
|
|
2445
|
-
types:
|
|
1994
|
+
types: za
|
|
2446
1995
|
};
|
|
2447
|
-
window.showOpenFilePicker(
|
|
2448
|
-
return
|
|
2449
|
-
}).then(function(
|
|
2450
|
-
|
|
1996
|
+
window.showOpenFilePicker(e).then(function(c) {
|
|
1997
|
+
return p(c);
|
|
1998
|
+
}).then(function(c) {
|
|
1999
|
+
W(c, null), g({
|
|
2451
2000
|
type: "closeDialog"
|
|
2452
2001
|
});
|
|
2453
|
-
}).catch(function(
|
|
2454
|
-
|
|
2002
|
+
}).catch(function(c) {
|
|
2003
|
+
Yi(c) ? (K(c), g({
|
|
2455
2004
|
type: "closeDialog"
|
|
2456
|
-
})) :
|
|
2005
|
+
})) : Gi(c) ? (H.current = !1, h.current ? (h.current.value = null, h.current.click()) : k(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."))) : k(c);
|
|
2457
2006
|
});
|
|
2458
2007
|
return;
|
|
2459
2008
|
}
|
|
2460
|
-
|
|
2009
|
+
h.current && (g({
|
|
2461
2010
|
type: "openDialog"
|
|
2462
|
-
}),
|
|
2463
|
-
}, [
|
|
2464
|
-
!
|
|
2465
|
-
}, [
|
|
2466
|
-
|
|
2011
|
+
}), na(), h.current.value = null, h.current.click());
|
|
2012
|
+
}, [g, na, K, wa, W, k, za, r]), qa = s.useCallback(function(e) {
|
|
2013
|
+
!f.current || !f.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), E());
|
|
2014
|
+
}, [f, E]), Sa = s.useCallback(function() {
|
|
2015
|
+
g({
|
|
2467
2016
|
type: "focus"
|
|
2468
2017
|
});
|
|
2469
|
-
}, []),
|
|
2470
|
-
|
|
2018
|
+
}, []), Ta = s.useCallback(function() {
|
|
2019
|
+
g({
|
|
2471
2020
|
type: "blur"
|
|
2472
2021
|
});
|
|
2473
|
-
}, []),
|
|
2474
|
-
|
|
2475
|
-
}, [
|
|
2476
|
-
return
|
|
2477
|
-
},
|
|
2478
|
-
return
|
|
2479
|
-
},
|
|
2480
|
-
return
|
|
2481
|
-
},
|
|
2482
|
-
|
|
2483
|
-
},
|
|
2022
|
+
}, []), Ia = s.useCallback(function() {
|
|
2023
|
+
ja || (Wi() ? setTimeout(E, 0) : E());
|
|
2024
|
+
}, [ja, E]), A = function(c) {
|
|
2025
|
+
return n ? null : c;
|
|
2026
|
+
}, pa = function(c) {
|
|
2027
|
+
return ia ? null : A(c);
|
|
2028
|
+
}, N = function(c) {
|
|
2029
|
+
return Da ? null : A(c);
|
|
2030
|
+
}, U = function(c) {
|
|
2031
|
+
w && c.stopPropagation();
|
|
2032
|
+
}, ci = s.useMemo(function() {
|
|
2484
2033
|
return function() {
|
|
2485
|
-
var
|
|
2486
|
-
return
|
|
2487
|
-
onKeyDown:
|
|
2488
|
-
onFocus:
|
|
2489
|
-
onBlur:
|
|
2490
|
-
onClick:
|
|
2491
|
-
onDragEnter:
|
|
2492
|
-
onDragOver:
|
|
2493
|
-
onDragLeave:
|
|
2494
|
-
onDrop:
|
|
2495
|
-
role: typeof
|
|
2496
|
-
},
|
|
2034
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, u = c === void 0 ? "ref" : c, v = e.role, b = e.onKeyDown, L = e.onFocus, O = e.onBlur, oa = e.onClick, ca = e.onDragEnter, la = e.onDragOver, Y = e.onDragLeave, ra = e.onDrop, sa = Z(e, Vi);
|
|
2035
|
+
return m(m(ba({
|
|
2036
|
+
onKeyDown: pa(y(b, qa)),
|
|
2037
|
+
onFocus: pa(y(L, Sa)),
|
|
2038
|
+
onBlur: pa(y(O, Ta)),
|
|
2039
|
+
onClick: A(y(oa, Ia)),
|
|
2040
|
+
onDragEnter: N(y(ca, _a)),
|
|
2041
|
+
onDragOver: N(y(la, Pa)),
|
|
2042
|
+
onDragLeave: N(y(Y, Ca)),
|
|
2043
|
+
onDrop: N(y(ra, B)),
|
|
2044
|
+
role: typeof v == "string" && v !== "" ? v : "presentation"
|
|
2045
|
+
}, u, f), !n && !ia ? {
|
|
2497
2046
|
tabIndex: 0
|
|
2498
|
-
} : {}),
|
|
2047
|
+
} : {}), sa);
|
|
2499
2048
|
};
|
|
2500
|
-
}, [
|
|
2501
|
-
|
|
2502
|
-
}, []),
|
|
2049
|
+
}, [f, qa, Sa, Ta, Ia, _a, Pa, Ca, B, ia, Da, n]), li = s.useCallback(function(e) {
|
|
2050
|
+
e.stopPropagation();
|
|
2051
|
+
}, []), ri = s.useMemo(function() {
|
|
2503
2052
|
return function() {
|
|
2504
|
-
var
|
|
2505
|
-
accept:
|
|
2053
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, u = c === void 0 ? "ref" : c, v = e.onChange, b = e.onClick, L = Z(e, Zi), O = ba({
|
|
2054
|
+
accept: M,
|
|
2506
2055
|
multiple: r,
|
|
2507
2056
|
type: "file",
|
|
2508
2057
|
style: {
|
|
@@ -2517,73 +2066,60 @@ function ye() {
|
|
|
2517
2066
|
width: "1px",
|
|
2518
2067
|
whiteSpace: "nowrap"
|
|
2519
2068
|
},
|
|
2520
|
-
onChange:
|
|
2521
|
-
onClick:
|
|
2069
|
+
onChange: A(y(v, B)),
|
|
2070
|
+
onClick: A(y(b, li)),
|
|
2522
2071
|
tabIndex: -1
|
|
2523
|
-
},
|
|
2524
|
-
return
|
|
2072
|
+
}, u, h);
|
|
2073
|
+
return m(m({}, O), L);
|
|
2525
2074
|
};
|
|
2526
|
-
}, [
|
|
2527
|
-
return
|
|
2528
|
-
isFocused:
|
|
2529
|
-
getRootProps:
|
|
2530
|
-
getInputProps:
|
|
2531
|
-
rootRef:
|
|
2532
|
-
inputRef:
|
|
2533
|
-
open:
|
|
2075
|
+
}, [h, t, r, B, n]);
|
|
2076
|
+
return m(m({}, ea), {}, {
|
|
2077
|
+
isFocused: oi && !n,
|
|
2078
|
+
getRootProps: ci,
|
|
2079
|
+
getInputProps: ri,
|
|
2080
|
+
rootRef: f,
|
|
2081
|
+
inputRef: h,
|
|
2082
|
+
open: A(E)
|
|
2534
2083
|
});
|
|
2535
2084
|
}
|
|
2536
|
-
function
|
|
2085
|
+
function lt(a, i) {
|
|
2537
2086
|
switch (i.type) {
|
|
2538
2087
|
case "focus":
|
|
2539
|
-
return
|
|
2088
|
+
return m(m({}, a), {}, {
|
|
2540
2089
|
isFocused: !0
|
|
2541
2090
|
});
|
|
2542
2091
|
case "blur":
|
|
2543
|
-
return
|
|
2092
|
+
return m(m({}, a), {}, {
|
|
2544
2093
|
isFocused: !1
|
|
2545
2094
|
});
|
|
2546
2095
|
case "openDialog":
|
|
2547
|
-
return
|
|
2096
|
+
return m(m({}, ha), {}, {
|
|
2548
2097
|
isFileDialogActive: !0
|
|
2549
2098
|
});
|
|
2550
2099
|
case "closeDialog":
|
|
2551
|
-
return
|
|
2100
|
+
return m(m({}, a), {}, {
|
|
2552
2101
|
isFileDialogActive: !1
|
|
2553
2102
|
});
|
|
2554
2103
|
case "setDraggedFiles":
|
|
2555
|
-
return
|
|
2104
|
+
return m(m({}, a), {}, {
|
|
2556
2105
|
isDragActive: i.isDragActive,
|
|
2557
2106
|
isDragAccept: i.isDragAccept,
|
|
2558
2107
|
isDragReject: i.isDragReject
|
|
2559
2108
|
});
|
|
2560
2109
|
case "setFiles":
|
|
2561
|
-
return
|
|
2110
|
+
return m(m({}, a), {}, {
|
|
2562
2111
|
acceptedFiles: i.acceptedFiles,
|
|
2563
2112
|
fileRejections: i.fileRejections,
|
|
2564
2113
|
isDragReject: i.isDragReject
|
|
2565
2114
|
});
|
|
2566
2115
|
case "reset":
|
|
2567
|
-
return
|
|
2116
|
+
return m({}, ha);
|
|
2568
2117
|
default:
|
|
2569
2118
|
return a;
|
|
2570
2119
|
}
|
|
2571
2120
|
}
|
|
2572
|
-
function
|
|
2121
|
+
function Ga() {
|
|
2573
2122
|
}
|
|
2574
2123
|
export {
|
|
2575
|
-
|
|
2576
|
-
ze as D,
|
|
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,
|
|
2586
|
-
Me as c,
|
|
2587
|
-
Ce as d,
|
|
2588
|
-
ye as u
|
|
2124
|
+
ct as u
|
|
2589
2125
|
};
|