quantum-component-library 1.4.45-qa.3 → 1.4.45-qa.4
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/components.cjs +1 -1
- package/dist/components.js +5 -5
- package/dist/{dnd-core-vendor-B8SfRHAC.cjs → dnd-core-vendor-DFyhudg3.cjs} +1 -1
- package/dist/{dnd-core-vendor-B9bDJoIO.js → dnd-core-vendor-GeFJIrqw.js} +2 -2
- package/dist/framer-motion-vendor-BpR8WNZk.js +2945 -0
- package/dist/framer-motion-vendor-DmZv69_a.cjs +9 -0
- package/dist/{graphql-vendor-2jHffeBc.cjs → graphql-vendor-Bp1AYkpN.cjs} +10 -10
- package/dist/{graphql-vendor-DZM4vSNi.js → graphql-vendor-D5ETG7wB.js} +42 -42
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +3 -3
- package/dist/{react-dnd-vendor-CMnbNCdx.cjs → react-dnd-vendor-CQ6n_Iry.cjs} +1 -1
- package/dist/{react-dnd-vendor-CrTWIfyP.js → react-dnd-vendor-bl4guadi.js} +11 -11
- package/dist/{react-select-vendor-Dt2A4G_u.js → react-select-vendor-CM41In8Q.js} +2 -2
- package/dist/{react-select-vendor-DwRVrD2f.cjs → react-select-vendor-qYWfPIoq.cjs} +1 -1
- package/dist/services.cjs +1 -1
- package/dist/services.js +1 -1
- package/dist/{ui-vendor-BAkBLewK.cjs → ui-vendor-CDpwLSe-.cjs} +1 -1
- package/dist/{ui-vendor-DLN2xOTj.js → ui-vendor-CTkR2JkD.js} +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +14 -14
- package/dist/vendor-D0fSwmdY.cjs +90 -0
- package/dist/vendor-DxZbxm3m.js +13085 -0
- package/package.json +4 -4
- package/dist/framer-motion-vendor-BgJ2HqtS.cjs +0 -1
- package/dist/framer-motion-vendor-Cn84b4iY.js +0 -3285
- package/dist/vendor-Br-qBXqd.cjs +0 -90
- package/dist/vendor-BvxNWBst.js +0 -11937
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as he, a2 as V, a3 as Me, a4 as W, a5 as $, a6 as Y, a7 as $e, a8 as pe, a9 as ne, aa as qe, ab as Le, ac as L, ad as _e, ae as ke, af as le, ag as B, ah as oe, ai as Ve, aj as Qe } from "./vendor-DxZbxm3m.js";
|
|
2
2
|
import * as q from "react";
|
|
3
3
|
var Pe = {
|
|
4
4
|
OPERATION_DEFINITION: "OperationDefinition"
|
|
@@ -192,7 +192,7 @@ function Ie(e) {
|
|
|
192
192
|
return s++, k(), r;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function R(e) {
|
|
196
196
|
if (c.charCodeAt(s) === 64) {
|
|
197
197
|
var r = [];
|
|
198
198
|
do
|
|
@@ -230,9 +230,9 @@ function Ue() {
|
|
|
230
230
|
function H() {
|
|
231
231
|
if (c.charCodeAt(s++) !== 123)
|
|
232
232
|
throw S("SelectionSet");
|
|
233
|
-
return k(),
|
|
233
|
+
return k(), K();
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function K() {
|
|
236
236
|
var e = [];
|
|
237
237
|
do
|
|
238
238
|
if (c.charCodeAt(s) === 46) {
|
|
@@ -243,7 +243,7 @@ function X() {
|
|
|
243
243
|
e.push({
|
|
244
244
|
kind: "InlineFragment",
|
|
245
245
|
typeCondition: void 0,
|
|
246
|
-
directives:
|
|
246
|
+
directives: R(!1),
|
|
247
247
|
selectionSet: H()
|
|
248
248
|
});
|
|
249
249
|
break;
|
|
@@ -254,12 +254,12 @@ function X() {
|
|
|
254
254
|
kind: "NamedType",
|
|
255
255
|
name: _()
|
|
256
256
|
},
|
|
257
|
-
directives:
|
|
257
|
+
directives: R(!1),
|
|
258
258
|
selectionSet: H()
|
|
259
259
|
})) : e.push({
|
|
260
260
|
kind: "FragmentSpread",
|
|
261
261
|
name: _(),
|
|
262
|
-
directives:
|
|
262
|
+
directives: R(!1)
|
|
263
263
|
});
|
|
264
264
|
break;
|
|
265
265
|
case 123:
|
|
@@ -267,21 +267,21 @@ function X() {
|
|
|
267
267
|
kind: "InlineFragment",
|
|
268
268
|
typeCondition: void 0,
|
|
269
269
|
directives: void 0,
|
|
270
|
-
selectionSet:
|
|
270
|
+
selectionSet: K()
|
|
271
271
|
});
|
|
272
272
|
break;
|
|
273
273
|
default:
|
|
274
274
|
e.push({
|
|
275
275
|
kind: "FragmentSpread",
|
|
276
276
|
name: _(),
|
|
277
|
-
directives:
|
|
277
|
+
directives: R(!1)
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
} else {
|
|
281
281
|
var r = _(), t = void 0;
|
|
282
282
|
c.charCodeAt(s) === 58 && (s++, k(), t = r, r = _());
|
|
283
|
-
var a = Ie(!1), i =
|
|
284
|
-
c.charCodeAt(s) === 123 && (s++, k(), n =
|
|
283
|
+
var a = Ie(!1), i = R(!1), n = void 0;
|
|
284
|
+
c.charCodeAt(s) === 123 && (s++, k(), n = K()), e.push({
|
|
285
285
|
kind: "Field",
|
|
286
286
|
alias: t,
|
|
287
287
|
name: r,
|
|
@@ -318,7 +318,7 @@ function ze() {
|
|
|
318
318
|
},
|
|
319
319
|
type: a,
|
|
320
320
|
defaultValue: i,
|
|
321
|
-
directives:
|
|
321
|
+
directives: R(!0)
|
|
322
322
|
};
|
|
323
323
|
r && (n.description = r), e.push(n);
|
|
324
324
|
} while (c.charCodeAt(s) !== 41);
|
|
@@ -337,7 +337,7 @@ function We(e) {
|
|
|
337
337
|
kind: "NamedType",
|
|
338
338
|
name: _()
|
|
339
339
|
},
|
|
340
|
-
directives:
|
|
340
|
+
directives: R(!1),
|
|
341
341
|
selectionSet: H()
|
|
342
342
|
};
|
|
343
343
|
return e && (t.description = e), t;
|
|
@@ -355,7 +355,7 @@ function be() {
|
|
|
355
355
|
name: void 0,
|
|
356
356
|
variableDefinitions: void 0,
|
|
357
357
|
directives: void 0,
|
|
358
|
-
selectionSet:
|
|
358
|
+
selectionSet: K()
|
|
359
359
|
});
|
|
360
360
|
} else {
|
|
361
361
|
var t = ye();
|
|
@@ -373,7 +373,7 @@ function be() {
|
|
|
373
373
|
operation: t,
|
|
374
374
|
name: i,
|
|
375
375
|
variableDefinitions: ze(),
|
|
376
|
-
directives:
|
|
376
|
+
directives: R(!1),
|
|
377
377
|
selectionSet: H()
|
|
378
378
|
};
|
|
379
379
|
r && (n.description = r), e.push(n);
|
|
@@ -416,7 +416,7 @@ function D(e, r, t) {
|
|
|
416
416
|
function He(e) {
|
|
417
417
|
return JSON.stringify(e);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Ke(e) {
|
|
420
420
|
return `"""
|
|
421
421
|
` + e.replace(/"""/g, '\\"""') + `
|
|
422
422
|
"""`;
|
|
@@ -443,7 +443,7 @@ var P = `
|
|
|
443
443
|
return e.directives && e.directives.length && (r += " " + D(e.directives, " ", N.Directive)), e.selectionSet && e.selectionSet.selections.length && (r += " " + N.SelectionSet(e.selectionSet)), r;
|
|
444
444
|
},
|
|
445
445
|
StringValue(e) {
|
|
446
|
-
return e.block ?
|
|
446
|
+
return e.block ? Ke(e.value).replace(/\n/g, P) : He(e.value);
|
|
447
447
|
},
|
|
448
448
|
BooleanValue: (e) => "" + e.value,
|
|
449
449
|
NullValue: (e) => "null",
|
|
@@ -483,14 +483,14 @@ var P = `
|
|
|
483
483
|
ListType: (e) => "[" + I(e.type) + "]",
|
|
484
484
|
NonNullType: (e) => I(e.type) + "!"
|
|
485
485
|
}, I = (e) => N[e.kind](e);
|
|
486
|
-
function
|
|
486
|
+
function Xe(e) {
|
|
487
487
|
return P = `
|
|
488
488
|
`, N[e.kind] ? N[e.kind](e) : "";
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var Ze = (e) => e && typeof e.message == "string" && (e.extensions || e.name === "GraphQLError") ? e : typeof e == "object" && typeof e.message == "string" ? new fe(e.message, e.nodes, e.source, e.positions, e.path, e, e.extensions || {}) : new fe(e);
|
|
491
491
|
class me extends Error {
|
|
492
492
|
constructor(r) {
|
|
493
|
-
var t = (r.graphQLErrors || []).map(
|
|
493
|
+
var t = (r.graphQLErrors || []).map(Ze), a = ((i, n) => {
|
|
494
494
|
var o = "";
|
|
495
495
|
if (i)
|
|
496
496
|
return `[Network] ${i.message}`;
|
|
@@ -510,8 +510,8 @@ var U = (e, r) => {
|
|
|
510
510
|
for (var t = 0 | (r || 5381), a = 0, i = 0 | e.length; a < i; a++)
|
|
511
511
|
t = (t << 5) + t + e.charCodeAt(a);
|
|
512
512
|
return t;
|
|
513
|
-
},
|
|
514
|
-
if (e === null ||
|
|
513
|
+
}, T = /* @__PURE__ */ new Set(), we = /* @__PURE__ */ new WeakMap(), j = (e, r) => {
|
|
514
|
+
if (e === null || T.has(e))
|
|
515
515
|
return "null";
|
|
516
516
|
if (typeof e != "object")
|
|
517
517
|
return JSON.stringify(e) || "";
|
|
@@ -521,7 +521,7 @@ var U = (e, r) => {
|
|
|
521
521
|
for (var t = "[", a = 0, i = e.length; a < i; a++)
|
|
522
522
|
t.length > 1 && (t += ","), t += j(e[a], r) || "null";
|
|
523
523
|
return t += "]";
|
|
524
|
-
} else if (!r && (
|
|
524
|
+
} else if (!r && (Z !== J && e instanceof Z || ee !== J && e instanceof ee))
|
|
525
525
|
return "null";
|
|
526
526
|
var n = Object.keys(e).sort();
|
|
527
527
|
if (!n.length && e.constructor && Object.getPrototypeOf(e).constructor !== Object.prototype.constructor) {
|
|
@@ -530,30 +530,30 @@ var U = (e, r) => {
|
|
|
530
530
|
__key: o
|
|
531
531
|
}, r);
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
T.add(e);
|
|
534
534
|
for (var d = "{", v = 0, g = n.length; v < g; v++) {
|
|
535
535
|
var p = j(e[n[v]], r);
|
|
536
536
|
p && (d.length > 1 && (d += ","), d += j(n[v], r) + ":" + p);
|
|
537
537
|
}
|
|
538
|
-
return
|
|
538
|
+
return T.delete(e), d += "}";
|
|
539
539
|
}, de = (e, r, t) => {
|
|
540
|
-
if (!(t == null || typeof t != "object" || t.toJSON ||
|
|
540
|
+
if (!(t == null || typeof t != "object" || t.toJSON || T.has(t))) if (Array.isArray(t))
|
|
541
541
|
for (var a = 0, i = t.length; a < i; a++)
|
|
542
542
|
de(e, `${r}.${a}`, t[a]);
|
|
543
|
-
else if (t instanceof
|
|
543
|
+
else if (t instanceof Z || t instanceof ee)
|
|
544
544
|
e.set(r, t);
|
|
545
545
|
else {
|
|
546
|
-
|
|
546
|
+
T.add(t);
|
|
547
547
|
for (var n in t)
|
|
548
548
|
de(e, `${r}.${n}`, t[n]);
|
|
549
549
|
}
|
|
550
|
-
},
|
|
550
|
+
}, X = (e, r) => (T.clear(), j(e, r || !1));
|
|
551
551
|
class J {
|
|
552
552
|
}
|
|
553
|
-
var
|
|
553
|
+
var Z = typeof File < "u" ? File : J, ee = typeof Blob < "u" ? Blob : J, er = /("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g, rr = /(?:#[^\n\r]+)?(?:[\r\n]+|$)/g, tr = (e, r) => r % 2 == 0 ? e.replace(rr, `
|
|
554
554
|
`) : e, Ae = (e) => e.split(er).map(tr).join("").trim(), Ne = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), ge = (e) => {
|
|
555
555
|
var r;
|
|
556
|
-
return typeof e == "string" ? r = Ae(e) : e.loc && z.get(e.__key) === e ? r = e.loc.source.body : (r = Ne.get(e) || Ae(
|
|
556
|
+
return typeof e == "string" ? r = Ae(e) : e.loc && z.get(e.__key) === e ? r = e.loc.source.body : (r = Ne.get(e) || Ae(Xe(e)), Ne.set(e, r)), typeof e != "string" && !e.loc && (e.loc = {
|
|
557
557
|
start: 0,
|
|
558
558
|
end: r.length,
|
|
559
559
|
source: {
|
|
@@ -570,7 +570,7 @@ var K = typeof File < "u" ? File : J, ee = typeof Blob < "u" ? Blob : J, er = /(
|
|
|
570
570
|
if (e.documentId)
|
|
571
571
|
r = U(e.documentId);
|
|
572
572
|
else if (r = U(ge(e)), e.definitions) {
|
|
573
|
-
var t =
|
|
573
|
+
var t = Re(e);
|
|
574
574
|
t && (r = U(`
|
|
575
575
|
# ${t}`, r));
|
|
576
576
|
}
|
|
@@ -581,14 +581,14 @@ var K = typeof File < "u" ? File : J, ee = typeof Blob < "u" ? Blob : J, er = /(
|
|
|
581
581
|
noLocation: !0
|
|
582
582
|
})) : (r = e.__key || Oe(e), t = z.get(r) || e), t.loc || ge(t), t.__key = r, z.set(r, t), t;
|
|
583
583
|
}, M = (e, r, t) => {
|
|
584
|
-
var a = r || {}, i = ar(e), n =
|
|
584
|
+
var a = r || {}, i = ar(e), n = X(a, !0), o = i.__key;
|
|
585
585
|
return n !== "{}" && (o = U(n, o)), {
|
|
586
586
|
key: o,
|
|
587
587
|
query: i,
|
|
588
588
|
variables: a,
|
|
589
589
|
extensions: t
|
|
590
590
|
};
|
|
591
|
-
},
|
|
591
|
+
}, Re = (e) => {
|
|
592
592
|
for (var r = 0, t = e.definitions.length; r < t; r++) {
|
|
593
593
|
var a = e.definitions[r];
|
|
594
594
|
if (a.kind === Pe.OPERATION_DEFINITION)
|
|
@@ -678,7 +678,7 @@ var K = typeof File < "u" ? File : J, ee = typeof Blob < "u" ? Blob : J, er = /(
|
|
|
678
678
|
hasNext: r.hasNext != null ? r.hasNext : e.hasNext,
|
|
679
679
|
stale: !1
|
|
680
680
|
};
|
|
681
|
-
},
|
|
681
|
+
}, Te = (e, r, t) => ({
|
|
682
682
|
operation: e,
|
|
683
683
|
data: void 0,
|
|
684
684
|
error: new me({
|
|
@@ -693,7 +693,7 @@ function or(e) {
|
|
|
693
693
|
var r = {
|
|
694
694
|
query: void 0,
|
|
695
695
|
documentId: void 0,
|
|
696
|
-
operationName:
|
|
696
|
+
operationName: Re(e.query),
|
|
697
697
|
variables: e.variables || void 0,
|
|
698
698
|
extensions: e.extensions
|
|
699
699
|
};
|
|
@@ -706,7 +706,7 @@ var sr = (e, r) => {
|
|
|
706
706
|
var a = ur(e.context.url);
|
|
707
707
|
for (var i in r) {
|
|
708
708
|
var n = r[i];
|
|
709
|
-
n && a[1].set(i, typeof n == "object" ?
|
|
709
|
+
n && a[1].set(i, typeof n == "object" ? X(n) : n);
|
|
710
710
|
}
|
|
711
711
|
var o = a.join("?");
|
|
712
712
|
return o.length > 2047 && t !== "force" ? (e.context.preferGetMethod = !1, e.context.url) : o;
|
|
@@ -715,13 +715,13 @@ var sr = (e, r) => {
|
|
|
715
715
|
return r > -1 ? [e.slice(0, r), new URLSearchParams(e.slice(r + 1))] : [e, new URLSearchParams()];
|
|
716
716
|
}, cr = (e, r) => {
|
|
717
717
|
if (r && !(e.kind === "query" && e.context.preferGetMethod)) {
|
|
718
|
-
var t =
|
|
718
|
+
var t = X(r), a = ((d) => {
|
|
719
719
|
var v = /* @__PURE__ */ new Map();
|
|
720
|
-
return (
|
|
720
|
+
return (Z !== J || ee !== J) && (T.clear(), de(v, "variables", d)), v;
|
|
721
721
|
})(r.variables);
|
|
722
722
|
if (a.size) {
|
|
723
723
|
var i = new FormData();
|
|
724
|
-
i.append("operations", t), i.append("map",
|
|
724
|
+
i.append("operations", t), i.append("map", X({
|
|
725
725
|
...[...a.keys()].map(((d) => [d]))
|
|
726
726
|
}));
|
|
727
727
|
var n = 0;
|
|
@@ -847,7 +847,7 @@ async function* vr(e, r, t) {
|
|
|
847
847
|
} catch (p) {
|
|
848
848
|
if (!a)
|
|
849
849
|
throw p;
|
|
850
|
-
yield
|
|
850
|
+
yield Te(e, n && (n.status < 200 || n.status >= 300) && n.statusText ? new Error(n.statusText) : p, n);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
function hr(e, r, t) {
|
|
@@ -1225,7 +1225,7 @@ function Dr(e) {
|
|
|
1225
1225
|
g = void 0;
|
|
1226
1226
|
var y = o;
|
|
1227
1227
|
o = /* @__PURE__ */ new Map(), y.forEach(((x) => {
|
|
1228
|
-
n.next(
|
|
1228
|
+
n.next(Te(x, w));
|
|
1229
1229
|
}));
|
|
1230
1230
|
}
|
|
1231
1231
|
var g, p = null;
|
package/dist/hooks.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-Bp1AYkpN.cjs"),a=require("react"),i=require("./services.cjs"),u=require("./types.cjs"),L=({url:e,getAuthToken:t})=>new l.C({url:e,requestPolicy:"cache-and-network",exchanges:[l.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),f=({url:e,getAuthToken:t})=>a.useMemo(()=>L({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),p=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),b=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(g=>g.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},h=e=>{const t=d(e),r=m(e),n=p(r.map(o=>o.id),u.AngleDataSource.Sensor),s=b(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]};exports.useGraphqlClient=f;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=h;
|
package/dist/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as c, c as d, f as p } from "./graphql-vendor-
|
|
1
|
+
import { C as c, c as d, f as p } from "./graphql-vendor-D5ETG7wB.js";
|
|
2
2
|
import { useMemo as i } from "react";
|
|
3
3
|
import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as u, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
|
|
4
4
|
import { sensorLocationToLimbId as l, AngleDataSource as a } from "./types.js";
|
package/dist/providers.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-D0fSwmdY.cjs"),u=require("./graphql-vendor-Bp1AYkpN.cjs"),s=require("./hooks.cjs"),a=require("./ui-vendor-CDpwLSe-.cjs"),c=({children:e,url:t,getAuthToken:o,chakraProviderProps:n})=>{const i=s.useGraphqlClient({url:t,getAuthToken:o});return r.jsxRuntimeExports.jsx(u.f,{value:i,children:r.jsxRuntimeExports.jsx(a.ChakraProvider,{...n,children:e})})};exports.QuantumLibraryProvider=c;
|
package/dist/providers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r } from "./vendor-
|
|
2
|
-
import { d as s } from "./graphql-vendor-
|
|
1
|
+
import { j as r } from "./vendor-DxZbxm3m.js";
|
|
2
|
+
import { d as s } from "./graphql-vendor-D5ETG7wB.js";
|
|
3
3
|
import { useGraphqlClient as a } from "./hooks.js";
|
|
4
|
-
import { P as n } from "./ui-vendor-
|
|
4
|
+
import { P as n } from "./ui-vendor-CTkR2JkD.js";
|
|
5
5
|
const x = ({ children: o, url: t, getAuthToken: i, chakraProviderProps: e }) => {
|
|
6
6
|
const m = a({ url: t, getAuthToken: i });
|
|
7
7
|
return /* @__PURE__ */ r.jsx(s, { value: m, children: /* @__PURE__ */ r.jsx(n, { ...e, children: o }) });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const U=require("./vendor-Br-qBXqd.cjs"),d=require("react"),se=require("./dnd-core-vendor-B8SfRHAC.cjs"),Y=d.createContext({dragDropManager:void 0});function m(r,e,...t){if(oe()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;i=new Error(e.replace(/%s/g,function(){return t[n++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function oe(){return typeof process<"u"&&process.env.NODE_ENV==="production"}const k=typeof global<"u"?global:self,X=k.MutationObserver||k.WebKitMutationObserver;function z(r){return function(){const t=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(t),clearInterval(i),r()}}}function ae(r){let e=1;const t=new X(r),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const ce=typeof X=="function"?ae:z;class ue{enqueueTask(e){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let i=0,n=e.length-this.index;i<n;i++)e[i]=e[i+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ce(this.flush),this.requestErrorThrow=z(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class de{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class le{create(e){const t=this.freeTasks,i=t.length?t.pop():new de(this.onError,n=>t[t.length]=n);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const W=new ue,he=new le(W.registerPendingError);function ge(r){W.enqueueTask(he.create(r))}function fe(r,e){if(r==null)return{};var t=pe(r,e),i,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function pe(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,s;for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}let _=0;const E=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=d.memo(function(e){var{children:t}=e,i=fe(e,["children"]);const[n,s]=De(i);return d.useEffect(()=>{if(s){const a=B();return++_,()=>{--_===0&&(a[E]=null)}}},[]),U.jsxRuntimeExports.jsx(Y.Provider,{value:n,children:t})});function De(r){if("manager"in r)return[{dragDropManager:r.manager},!1];const e=me(r.backend,r.context,r.options,r.debugMode),t=!r.context;return[e,t]}function me(r,e=B(),t,i){const n=e;return n[E]||(n[E]={dragDropManager:se.createDragDropManager(r,e,t,i)}),n[E]}function B(){return typeof global<"u"?global:window}const I=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Te(r,e,t){const[i,n]=d.useState(()=>e(r)),s=d.useCallback(()=>{const a=e(r);U.equal(i,a)||(n(a),t&&t())},[i,r,t]);return I(s),[i,s]}function Ie(r,e,t){const[i,n]=Te(r,e,t);return I(function(){const a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(n,{handlerIds:[a]})},[r,n]),i}function V(r,e,t){return Ie(e,r||(()=>({})),()=>t.reconnect())}function K(r,e){const t=[];return typeof r!="function"&&t.push(r),d.useMemo(()=>typeof r=="function"?r():r,t)}function Se(r){return d.useMemo(()=>r.hooks.dragSource(),[r])}function Ce(r){return d.useMemo(()=>r.hooks.dragPreview(),[r])}let y=!1,b=!1;class Oe{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){m(!y,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}isDragging(){if(!this.sourceId)return!1;m(!b,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let P=!1;class we{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;m(!P,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return P=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{P=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Ee(r,e,t){const i=t.getRegistry(),n=i.addTarget(r,e);return[n,()=>i.removeTarget(n)]}function ye(r,e,t){const i=t.getRegistry(),n=i.addSource(r,e);return[n,()=>i.removeSource(n)]}function x(r,e,t,i){let n;if(n!==void 0)return!!n;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const s=Object.keys(r),a=Object.keys(e);if(s.length!==a.length)return!1;const o=Object.prototype.hasOwnProperty.bind(e);for(let u=0;u<s.length;u++){const l=s[u];if(!o(l))return!1;const h=r[l],g=e[l];if(n=void 0,n===!1||n===void 0&&h!==g)return!1}return!0}function L(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function be(r){if(typeof r.type=="string")return;const e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function Pe(r){return(e=null,t=null)=>{if(!d.isValidElement(e)){const s=e;return r(s,t),s}const i=e;return be(i),Ne(i,t?s=>r(s,t):r)}}function G(r){const e={};return Object.keys(r).forEach(t=>{const i=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const n=Pe(i);e[t]=()=>n}}),e}function F(r,e){typeof r=="function"?r(e):r.current=e}function Ne(r,e){const t=r.ref;return m(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?d.cloneElement(r,{ref:i=>{F(t,i),F(e,i)}}):d.cloneElement(r,{ref:e})}class Me{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!x(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!x(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=G({dragSource:(t,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,L(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,L(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class xe{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!x(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=G({dropTarget:(t,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,L(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function S(){const{dragDropManager:r}=d.useContext(Y);return m(r!=null,"Expected drag drop context"),r}function Le(r,e){const t=S(),i=d.useMemo(()=>new Me(t.getBackend()),[t]);return I(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),I(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function Re(){const r=S();return d.useMemo(()=>new Oe(r),[r])}class He{beginDrag(){const e=this.spec,t=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(t):i={},i??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const i=this.spec,n=this.monitor,{isDragging:s}=i;return s?s(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,i=this.connector,{end:n}=e;n&&n(t.getItem(),t),i.reconnect()}constructor(e,t,i){this.spec=e,this.monitor=t,this.connector=i}}function ke(r,e,t){const i=d.useMemo(()=>new He(r,e,t),[e,t]);return d.useEffect(()=>{i.spec=r},[r]),i}function _e(r){return d.useMemo(()=>{const e=r.type;return m(e!=null,"spec.type must be defined"),e},[r])}function Fe(r,e,t){const i=S(),n=ke(r,e,t),s=_e(r);I(function(){if(s!=null){const[o,u]=ye(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u}},[i,e,t,n,s])}function Ae(r,e){const t=K(r);m(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=Re(),n=Le(t.options,t.previewOptions);return Fe(t,i,n),[V(t.collect,i,n),Se(n),Ce(n)]}function qe(r){return d.useMemo(()=>r.hooks.dropTarget(),[r])}function je(r){const e=S(),t=d.useMemo(()=>new xe(e.getBackend()),[e]);return I(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}function Ue(){const r=S();return d.useMemo(()=>new we(r),[r])}function Ye(r){const{accept:e}=r;return d.useMemo(()=>(m(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class Xe{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function ze(r,e){const t=d.useMemo(()=>new Xe(r,e),[e]);return d.useEffect(()=>{t.spec=r},[r]),t}function We(r,e,t){const i=S(),n=ze(r,e),s=Ye(r);I(function(){const[o,u]=Ee(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u},[i,e,n,t,s.map(a=>a.toString()).join("|")])}function Be(r,e){const t=K(r),i=Ue(),n=je(t.options);return We(t,i,n),[V(t.collect,i,n),qe(n)]}function $(r){let e=null;return()=>(e==null&&(e=r()),e)}function Ve(r,e){return r.filter(t=>t!==e)}function Ke(r,e){const t=new Set,i=s=>t.add(s);r.forEach(i),e.forEach(i);const n=[];return t.forEach(s=>n.push(s)),n}class Ge{enter(e){const t=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(e));return this.entered=Ke(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=Ve(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class $e{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(t[i]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Q="__NATIVE_FILE__",J="__NATIVE_URL__",Z="__NATIVE_TEXT__",ee="__NATIVE_HTML__",A=Object.freeze(Object.defineProperty({__proto__:null,FILE:Q,HTML:ee,TEXT:Z,URL:J},Symbol.toStringTag,{value:"Module"}));function N(r,e,t){const i=e.reduce((n,s)=>n||r.getData(s),"");return i??t}const R={[Q]:{exposeProperties:{files:r=>Array.prototype.slice.call(r.files),items:r=>r.items,dataTransfer:r=>r},matchesTypes:["Files"]},[ee]:{exposeProperties:{html:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Html","text/html"]},[J]:{exposeProperties:{urls:(r,e)=>N(r,e,"").split(`
|
|
1
|
+
"use strict";const U=require("./vendor-D0fSwmdY.cjs"),d=require("react"),se=require("./dnd-core-vendor-DFyhudg3.cjs"),Y=d.createContext({dragDropManager:void 0});function m(r,e,...t){if(oe()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;i=new Error(e.replace(/%s/g,function(){return t[n++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function oe(){return typeof process<"u"&&process.env.NODE_ENV==="production"}const k=typeof global<"u"?global:self,X=k.MutationObserver||k.WebKitMutationObserver;function z(r){return function(){const t=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(t),clearInterval(i),r()}}}function ae(r){let e=1;const t=new X(r),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const ce=typeof X=="function"?ae:z;class ue{enqueueTask(e){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let i=0,n=e.length-this.index;i<n;i++)e[i]=e[i+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ce(this.flush),this.requestErrorThrow=z(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class de{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class le{create(e){const t=this.freeTasks,i=t.length?t.pop():new de(this.onError,n=>t[t.length]=n);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const W=new ue,he=new le(W.registerPendingError);function ge(r){W.enqueueTask(he.create(r))}function fe(r,e){if(r==null)return{};var t=pe(r,e),i,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function pe(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,s;for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}let _=0;const E=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=d.memo(function(e){var{children:t}=e,i=fe(e,["children"]);const[n,s]=De(i);return d.useEffect(()=>{if(s){const a=B();return++_,()=>{--_===0&&(a[E]=null)}}},[]),U.jsxRuntimeExports.jsx(Y.Provider,{value:n,children:t})});function De(r){if("manager"in r)return[{dragDropManager:r.manager},!1];const e=me(r.backend,r.context,r.options,r.debugMode),t=!r.context;return[e,t]}function me(r,e=B(),t,i){const n=e;return n[E]||(n[E]={dragDropManager:se.createDragDropManager(r,e,t,i)}),n[E]}function B(){return typeof global<"u"?global:window}const I=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Te(r,e,t){const[i,n]=d.useState(()=>e(r)),s=d.useCallback(()=>{const a=e(r);U.equal(i,a)||(n(a),t&&t())},[i,r,t]);return I(s),[i,s]}function Ie(r,e,t){const[i,n]=Te(r,e,t);return I(function(){const a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(n,{handlerIds:[a]})},[r,n]),i}function V(r,e,t){return Ie(e,r||(()=>({})),()=>t.reconnect())}function K(r,e){const t=[];return typeof r!="function"&&t.push(r),d.useMemo(()=>typeof r=="function"?r():r,t)}function Se(r){return d.useMemo(()=>r.hooks.dragSource(),[r])}function Ce(r){return d.useMemo(()=>r.hooks.dragPreview(),[r])}let y=!1,b=!1;class Oe{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){m(!y,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}isDragging(){if(!this.sourceId)return!1;m(!b,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let P=!1;class we{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;m(!P,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return P=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{P=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Ee(r,e,t){const i=t.getRegistry(),n=i.addTarget(r,e);return[n,()=>i.removeTarget(n)]}function ye(r,e,t){const i=t.getRegistry(),n=i.addSource(r,e);return[n,()=>i.removeSource(n)]}function x(r,e,t,i){let n;if(n!==void 0)return!!n;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const s=Object.keys(r),a=Object.keys(e);if(s.length!==a.length)return!1;const o=Object.prototype.hasOwnProperty.bind(e);for(let u=0;u<s.length;u++){const l=s[u];if(!o(l))return!1;const h=r[l],g=e[l];if(n=void 0,n===!1||n===void 0&&h!==g)return!1}return!0}function L(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function be(r){if(typeof r.type=="string")return;const e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function Pe(r){return(e=null,t=null)=>{if(!d.isValidElement(e)){const s=e;return r(s,t),s}const i=e;return be(i),Ne(i,t?s=>r(s,t):r)}}function G(r){const e={};return Object.keys(r).forEach(t=>{const i=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const n=Pe(i);e[t]=()=>n}}),e}function F(r,e){typeof r=="function"?r(e):r.current=e}function Ne(r,e){const t=r.ref;return m(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?d.cloneElement(r,{ref:i=>{F(t,i),F(e,i)}}):d.cloneElement(r,{ref:e})}class Me{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!x(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!x(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=G({dragSource:(t,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,L(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,L(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class xe{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!x(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=G({dropTarget:(t,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,L(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function S(){const{dragDropManager:r}=d.useContext(Y);return m(r!=null,"Expected drag drop context"),r}function Le(r,e){const t=S(),i=d.useMemo(()=>new Me(t.getBackend()),[t]);return I(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),I(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function Re(){const r=S();return d.useMemo(()=>new Oe(r),[r])}class He{beginDrag(){const e=this.spec,t=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(t):i={},i??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const i=this.spec,n=this.monitor,{isDragging:s}=i;return s?s(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,i=this.connector,{end:n}=e;n&&n(t.getItem(),t),i.reconnect()}constructor(e,t,i){this.spec=e,this.monitor=t,this.connector=i}}function ke(r,e,t){const i=d.useMemo(()=>new He(r,e,t),[e,t]);return d.useEffect(()=>{i.spec=r},[r]),i}function _e(r){return d.useMemo(()=>{const e=r.type;return m(e!=null,"spec.type must be defined"),e},[r])}function Fe(r,e,t){const i=S(),n=ke(r,e,t),s=_e(r);I(function(){if(s!=null){const[o,u]=ye(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u}},[i,e,t,n,s])}function Ae(r,e){const t=K(r);m(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=Re(),n=Le(t.options,t.previewOptions);return Fe(t,i,n),[V(t.collect,i,n),Se(n),Ce(n)]}function qe(r){return d.useMemo(()=>r.hooks.dropTarget(),[r])}function je(r){const e=S(),t=d.useMemo(()=>new xe(e.getBackend()),[e]);return I(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}function Ue(){const r=S();return d.useMemo(()=>new we(r),[r])}function Ye(r){const{accept:e}=r;return d.useMemo(()=>(m(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class Xe{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function ze(r,e){const t=d.useMemo(()=>new Xe(r,e),[e]);return d.useEffect(()=>{t.spec=r},[r]),t}function We(r,e,t){const i=S(),n=ze(r,e),s=Ye(r);I(function(){const[o,u]=Ee(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u},[i,e,n,t,s.map(a=>a.toString()).join("|")])}function Be(r,e){const t=K(r),i=Ue(),n=je(t.options);return We(t,i,n),[V(t.collect,i,n),qe(n)]}function $(r){let e=null;return()=>(e==null&&(e=r()),e)}function Ve(r,e){return r.filter(t=>t!==e)}function Ke(r,e){const t=new Set,i=s=>t.add(s);r.forEach(i),e.forEach(i);const n=[];return t.forEach(s=>n.push(s)),n}class Ge{enter(e){const t=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(e));return this.entered=Ke(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=Ve(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class $e{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(t[i]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Q="__NATIVE_FILE__",J="__NATIVE_URL__",Z="__NATIVE_TEXT__",ee="__NATIVE_HTML__",A=Object.freeze(Object.defineProperty({__proto__:null,FILE:Q,HTML:ee,TEXT:Z,URL:J},Symbol.toStringTag,{value:"Module"}));function N(r,e,t){const i=e.reduce((n,s)=>n||r.getData(s),"");return i??t}const R={[Q]:{exposeProperties:{files:r=>Array.prototype.slice.call(r.files),items:r=>r.items,dataTransfer:r=>r},matchesTypes:["Files"]},[ee]:{exposeProperties:{html:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Html","text/html"]},[J]:{exposeProperties:{urls:(r,e)=>N(r,e,"").split(`
|
|
2
2
|
`),dataTransfer:r=>r},matchesTypes:["Url","text/uri-list"]},[Z]:{exposeProperties:{text:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Text","text/plain"]}};function Qe(r,e){const t=R[r];if(!t)throw new Error(`native type ${r} has no configuration`);const i=new $e(t);return i.loadDataTransfer(e),i}function M(r){if(!r)return null;const e=Array.prototype.slice.call(r.types||[]);return Object.keys(R).filter(t=>{const i=R[t];return i?.matchesTypes?i.matchesTypes.some(n=>e.indexOf(n)>-1):!1})[0]||null}const Je=$(()=>/firefox/i.test(navigator.userAgent)),te=$(()=>!!window.safari);class q{interpolate(e){const{xs:t,ys:i,c1s:n,c2s:s,c3s:a}=this;let o=t.length-1;if(e===t[o])return i[o];let u=0,l=a.length-1,h;for(;u<=l;){h=Math.floor(.5*(u+l));const c=t[h];if(c<e)u=h+1;else if(c>e)l=h-1;else return i[h]}o=Math.max(0,l);const g=e-t[o],f=g*g;return i[o]+n[o]*g+s[o]*f+a[o]*g*f}constructor(e,t){const{length:i}=e,n=[];for(let c=0;c<i;c++)n.push(c);n.sort((c,p)=>e[c]<e[p]?-1:1);const s=[],a=[];let o,u;for(let c=0;c<i-1;c++)o=e[c+1]-e[c],u=t[c+1]-t[c],s.push(o),a.push(u/o);const l=[a[0]];for(let c=0;c<s.length-1;c++){const p=a[c],v=a[c+1];if(p*v<=0)l.push(0);else{o=s[c];const D=s[c+1],T=o+D;l.push(3*T/((T+D)/p+(T+o)/v))}}l.push(a[a.length-1]);const h=[],g=[];let f;for(let c=0;c<l.length-1;c++){f=a[c];const p=l[c],v=1/s[c],D=p+l[c+1]-f-f;h.push((f-p-D)*v),g.push(D*v*v)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=h,this.c3s=g}}const Ze=1;function re(r){const e=r.nodeType===Ze?r:r.parentElement;if(!e)return null;const{top:t,left:i}=e.getBoundingClientRect();return{x:i,y:t}}function w(r){return{x:r.clientX,y:r.clientY}}function et(r){var e;return r.nodeName==="IMG"&&(Je()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(r)))}function tt(r,e,t,i){let n=r?e.width:t,s=r?e.height:i;return te()&&r&&(s/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:s}}function rt(r,e,t,i,n){const s=et(e),o=re(s?r:e),u={x:t.x-o.x,y:t.y-o.y},{offsetWidth:l,offsetHeight:h}=r,{anchorX:g,anchorY:f}=i,{dragPreviewWidth:c,dragPreviewHeight:p}=tt(s,e,l,h),v=()=>{let H=new q([0,.5,1],[u.y,u.y/h*p,u.y+p-h]).interpolate(f);return te()&&s&&(H+=(window.devicePixelRatio-1)*p),H},D=()=>new q([0,.5,1],[u.x,u.x/l*c,u.x+c-l]).interpolate(g),{offsetX:T,offsetY:C}=n,O=T===0||T,ne=C===0||C;return{x:O?T:D(),y:ne?C:v()}}class nt{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function it(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.forEach(function(n){it(r,n,t[n])})}return r}class st{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,i){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,i);const n=a=>this.handleDragStart(a,e),s=a=>this.handleSelectStart(a);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const i=a=>this.handleDragEnter(a,e),n=a=>this.handleDragOver(a,e),s=a=>this.handleDrop(a,e);return t.addEventListener("dragenter",i),t.addEventListener("dragover",n),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",i),t.removeEventListener("dragover",n),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return j({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return j({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(A).some(t=>A[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Qe(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const s=this.sourceNodes.get(n);return s&&re(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const a=w(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:o}=n,u=M(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){const h=this.monitor.getSourceId(),g=this.sourceNodes.get(h),f=this.sourcePreviewNodes.get(h)||g;if(f){const{anchorX:c,anchorY:p,offsetX:v,offsetY:D}=this.getCurrentSourcePreviewNodeOptions(),O=rt(g,f,a,{anchorX:c,anchorY:p},{offsetX:v,offsetY:D});o.setDragImage(f,O.x,O.y)}}try{o?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(o&&!o.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:o}=n,u=M(o);u&&this.beginDragNativeItem(u,o)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,s.length>0&&this.actions.hover(s,{clientOffset:w(n)}),s.some(o=>this.monitor.canDropOnTarget(o))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=w(n),this.scheduleHover(s),(s||[]).some(o=>this.monitor.canDropOnTarget(o))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;n.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}else M(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:w(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const s=n.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(n.preventDefault(),s.dragDrop()))},this.options=new nt(t,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ge(this.isNodeInDocument)}}const ot=function(e,t,i){return new st(e,t,i)};exports.DndProvider=ve;exports.HTML5Backend=ot;exports.asap=ge;exports.invariant=m;exports.useDrag=Ae;exports.useDrop=Be;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as oe,
|
|
2
|
-
import { createContext as ce, memo as ue, useEffect as y, useLayoutEffect as de, useState as le, useCallback as he, useMemo as p, isValidElement as ge, cloneElement as
|
|
3
|
-
import { c as pe } from "./dnd-core-vendor-
|
|
1
|
+
import { j as oe, ak as ae } from "./vendor-DxZbxm3m.js";
|
|
2
|
+
import { createContext as ce, memo as ue, useEffect as y, useLayoutEffect as de, useState as le, useCallback as he, useMemo as p, isValidElement as ge, cloneElement as _, useContext as fe } from "react";
|
|
3
|
+
import { c as pe } from "./dnd-core-vendor-GeFJIrqw.js";
|
|
4
4
|
const X = ce({
|
|
5
5
|
dragDropManager: void 0
|
|
6
6
|
});
|
|
@@ -444,20 +444,20 @@ function R(r) {
|
|
|
444
444
|
r !== null && typeof r == "object" && Object.prototype.hasOwnProperty.call(r, "current")
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function ke(r) {
|
|
448
448
|
if (typeof r.type == "string")
|
|
449
449
|
return;
|
|
450
450
|
const e = r.type.displayName || r.type.name || "the component";
|
|
451
451
|
throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function _e(r) {
|
|
454
454
|
return (e = null, t = null) => {
|
|
455
455
|
if (!ge(e)) {
|
|
456
456
|
const s = e;
|
|
457
457
|
return r(s, t), s;
|
|
458
458
|
}
|
|
459
459
|
const i = e;
|
|
460
|
-
return
|
|
460
|
+
return ke(i), Fe(i, t ? (s) => r(s, t) : r);
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
function $(r) {
|
|
@@ -467,7 +467,7 @@ function $(r) {
|
|
|
467
467
|
if (t.endsWith("Ref"))
|
|
468
468
|
e[t] = r[t];
|
|
469
469
|
else {
|
|
470
|
-
const n =
|
|
470
|
+
const n = _e(i);
|
|
471
471
|
e[t] = () => n;
|
|
472
472
|
}
|
|
473
473
|
}), e;
|
|
@@ -477,11 +477,11 @@ function q(r, e) {
|
|
|
477
477
|
}
|
|
478
478
|
function Fe(r, e) {
|
|
479
479
|
const t = r.ref;
|
|
480
|
-
return T(typeof t != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), t ?
|
|
480
|
+
return T(typeof t != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), t ? _(r, {
|
|
481
481
|
ref: (i) => {
|
|
482
482
|
q(t, i), q(e, i);
|
|
483
483
|
}
|
|
484
|
-
}) :
|
|
484
|
+
}) : _(r, {
|
|
485
485
|
ref: e
|
|
486
486
|
});
|
|
487
487
|
}
|
|
@@ -1047,7 +1047,7 @@ function ct(r, e, t, i, n) {
|
|
|
1047
1047
|
x: t.x - o.x,
|
|
1048
1048
|
y: t.y - o.y
|
|
1049
1049
|
}, { offsetWidth: d, offsetHeight: l } = r, { anchorX: h, anchorY: g } = i, { dragPreviewWidth: c, dragPreviewHeight: f } = at(s, e, d, l), v = () => {
|
|
1050
|
-
let
|
|
1050
|
+
let k = new U([
|
|
1051
1051
|
0,
|
|
1052
1052
|
0.5,
|
|
1053
1053
|
1
|
|
@@ -1059,7 +1059,7 @@ function ct(r, e, t, i, n) {
|
|
|
1059
1059
|
// Dock to the bottom
|
|
1060
1060
|
u.y + f - l
|
|
1061
1061
|
]).interpolate(g);
|
|
1062
|
-
return re() && s && (
|
|
1062
|
+
return re() && s && (k += (window.devicePixelRatio - 1) * f), k;
|
|
1063
1063
|
}, D = () => new U([
|
|
1064
1064
|
0,
|
|
1065
1065
|
0.5,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as X from "react";
|
|
2
2
|
import { useState as Y, useCallback as T, useRef as q, useMemo as ue, createContext as Yt, useContext as zt, Component as kt, Fragment as we, useEffect as Ve, forwardRef as oe } from "react";
|
|
3
3
|
import { _ as ee, a as D, b as f, c as jt, d as me, e as x, f as Ut, g as Qt, h as $t, i as _t, j as Kt, k as de } from "./babel-vendor-Brd7V25k.js";
|
|
4
|
-
import {
|
|
4
|
+
import { al as A, am as Je, an as qt, ao as gt, ap as en, aq as tn, j as S } from "./vendor-DxZbxm3m.js";
|
|
5
5
|
import { createPortal as nn } from "react-dom";
|
|
6
|
-
import { Q as bt, U as un, W as ae, B as L, X as Qe, Y as an, Z as ze, _ as on, x as rn, $ as ln, a0 as sn, a1 as cn, b as ke } from "./ui-vendor-
|
|
6
|
+
import { Q as bt, U as un, W as ae, B as L, X as Qe, Y as an, Z as ze, _ as on, x as rn, $ as ln, a0 as sn, a1 as cn, b as ke } from "./ui-vendor-CTkR2JkD.js";
|
|
7
7
|
var dn = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
8
8
|
function Fe(n) {
|
|
9
9
|
var t = n.defaultInputValue, i = t === void 0 ? "" : t, u = n.defaultMenuIsOpen, e = u === void 0 ? !1 : u, o = n.defaultValue, r = o === void 0 ? null : o, s = n.inputValue, a = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, p = n.onMenuOpen, b = n.value, m = ee(n, dn), I = Y(s !== void 0 ? s : i), g = D(I, 2), v = g[0], V = g[1], G = Y(a !== void 0 ? a : e), C = D(G, 2), B = C[0], E = C[1], y = Y(b !== void 0 ? b : r), h = D(y, 2), F = h[0], P = h[1], M = T(function(J, ne) {
|