@object-ui/plugin-map 3.1.5 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +14 -9
- package/CHANGELOG.md +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +301 -284
- package/dist/index.umd.cjs +41 -49
- package/dist/{maplibre-gl-Dl-lwKEH.js → maplibre-gl-DK6BxsIK.js} +6144 -6098
- package/dist/packages/plugin-map/src/ObjectMap.d.ts.map +1 -0
- package/dist/packages/plugin-map/src/index.d.ts.map +1 -0
- package/package.json +11 -11
- package/vite.config.ts +1 -0
- package/dist/src/ObjectMap.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- /package/dist/{src → packages/plugin-map/src}/ObjectMap.d.ts +0 -0
- /package/dist/{src → packages/plugin-map/src}/index.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { n as e, r as t, t as n } from "./chunk-vKJrgz-R.js";
|
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { forwardRef as i, memo as a, useContext as o, useEffect as s, useImperativeHandle as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
4
4
|
import { ComponentRegistry as p, buildExpandFields as m, extractRecords as h } from "@object-ui/core";
|
|
5
|
-
import { useNavigationOverlay as
|
|
6
|
-
import { NavigationOverlay as
|
|
7
|
-
import { createPortal as
|
|
5
|
+
import { useNavigationOverlay as ee, useSchemaContext as g } from "@object-ui/react";
|
|
6
|
+
import { NavigationOverlay as _, cn as v } from "@object-ui/components";
|
|
7
|
+
import { createPortal as te } from "react-dom";
|
|
8
8
|
Object.freeze({ status: "aborted" });
|
|
9
|
-
function
|
|
9
|
+
function y(e, t, n) {
|
|
10
10
|
function r(n, r) {
|
|
11
11
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
12
12
|
value: {
|
|
@@ -35,21 +35,21 @@ function b(e, t, n) {
|
|
|
35
35
|
}
|
|
36
36
|
return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var b = class extends Error {
|
|
39
39
|
constructor() {
|
|
40
40
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, x = class extends Error {
|
|
43
43
|
constructor(e) {
|
|
44
44
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
45
45
|
}
|
|
46
|
-
},
|
|
47
|
-
function
|
|
48
|
-
return e && Object.assign(
|
|
46
|
+
}, S = {};
|
|
47
|
+
function C(e) {
|
|
48
|
+
return e && Object.assign(S, e), S;
|
|
49
49
|
}
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
52
|
-
function
|
|
52
|
+
function w(e) {
|
|
53
53
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
54
54
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
55
55
|
}
|
|
@@ -69,7 +69,7 @@ function ne(e) {
|
|
|
69
69
|
return e == null;
|
|
70
70
|
}
|
|
71
71
|
function D(e) {
|
|
72
|
-
let t = e.startsWith("^")
|
|
72
|
+
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
73
73
|
return e.slice(t, n);
|
|
74
74
|
}
|
|
75
75
|
function O(e, t) {
|
|
@@ -325,7 +325,7 @@ var xe = (e, t) => {
|
|
|
325
325
|
value: () => e.message,
|
|
326
326
|
enumerable: !1
|
|
327
327
|
});
|
|
328
|
-
}, Se =
|
|
328
|
+
}, Se = y("$ZodError", xe), Ce = y("$ZodError", xe, { Parent: Error });
|
|
329
329
|
function we(e, t = (e) => e.message) {
|
|
330
330
|
let n = {}, r = [];
|
|
331
331
|
for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
@@ -357,9 +357,9 @@ var Ee = (e) => (t, n, r, i) => {
|
|
|
357
357
|
value: n,
|
|
358
358
|
issues: []
|
|
359
359
|
}, a);
|
|
360
|
-
if (o instanceof Promise) throw new
|
|
360
|
+
if (o instanceof Promise) throw new b();
|
|
361
361
|
if (o.issues.length) {
|
|
362
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a,
|
|
362
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a, C())));
|
|
363
363
|
throw ie(t, i?.callee), t;
|
|
364
364
|
}
|
|
365
365
|
return o.value;
|
|
@@ -369,7 +369,7 @@ var Ee = (e) => (t, n, r, i) => {
|
|
|
369
369
|
issues: []
|
|
370
370
|
}, a);
|
|
371
371
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
372
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a,
|
|
372
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a, C())));
|
|
373
373
|
throw ie(t, i?.callee), t;
|
|
374
374
|
}
|
|
375
375
|
return o.value;
|
|
@@ -381,10 +381,10 @@ var Ee = (e) => (t, n, r, i) => {
|
|
|
381
381
|
value: n,
|
|
382
382
|
issues: []
|
|
383
383
|
}, i);
|
|
384
|
-
if (a instanceof Promise) throw new
|
|
384
|
+
if (a instanceof Promise) throw new b();
|
|
385
385
|
return a.issues.length ? {
|
|
386
386
|
success: !1,
|
|
387
|
-
error: new (e ?? Se)(a.issues.map((e) => B(e, i,
|
|
387
|
+
error: new (e ?? Se)(a.issues.map((e) => B(e, i, C())))
|
|
388
388
|
} : {
|
|
389
389
|
success: !0,
|
|
390
390
|
data: a.value
|
|
@@ -396,7 +396,7 @@ var Ee = (e) => (t, n, r, i) => {
|
|
|
396
396
|
}, i);
|
|
397
397
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
398
398
|
success: !1,
|
|
399
|
-
error: new e(a.issues.map((e) => B(e, i,
|
|
399
|
+
error: new e(a.issues.map((e) => B(e, i, C())))
|
|
400
400
|
} : {
|
|
401
401
|
success: !0,
|
|
402
402
|
data: a.value
|
|
@@ -434,14 +434,14 @@ function lt(e) {
|
|
|
434
434
|
var ut = (e) => {
|
|
435
435
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
436
436
|
return RegExp(`^${t}$`);
|
|
437
|
-
}, dt = /^-?\d+$/, ft = /^-?\d+(?:\.\d+)?$/, pt = /^[^A-Z]*$/, mt = /^[^a-z]*$/, V = /* @__PURE__ */
|
|
437
|
+
}, dt = /^-?\d+$/, ft = /^-?\d+(?:\.\d+)?$/, pt = /^[^A-Z]*$/, mt = /^[^a-z]*$/, V = /* @__PURE__ */ y("$ZodCheck", (e, t) => {
|
|
438
438
|
var n;
|
|
439
439
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
440
440
|
}), ht = {
|
|
441
441
|
number: "number",
|
|
442
442
|
bigint: "bigint",
|
|
443
443
|
object: "date"
|
|
444
|
-
}, gt = /* @__PURE__ */
|
|
444
|
+
}, gt = /* @__PURE__ */ y("$ZodCheckLessThan", (e, t) => {
|
|
445
445
|
V.init(e, t);
|
|
446
446
|
let n = ht[typeof t.value];
|
|
447
447
|
e._zod.onattach.push((e) => {
|
|
@@ -458,7 +458,7 @@ var ut = (e) => {
|
|
|
458
458
|
continue: !t.abort
|
|
459
459
|
});
|
|
460
460
|
};
|
|
461
|
-
}), _t = /* @__PURE__ */
|
|
461
|
+
}), _t = /* @__PURE__ */ y("$ZodCheckGreaterThan", (e, t) => {
|
|
462
462
|
V.init(e, t);
|
|
463
463
|
let n = ht[typeof t.value];
|
|
464
464
|
e._zod.onattach.push((e) => {
|
|
@@ -475,7 +475,7 @@ var ut = (e) => {
|
|
|
475
475
|
continue: !t.abort
|
|
476
476
|
});
|
|
477
477
|
};
|
|
478
|
-
}), vt = /* @__PURE__ */
|
|
478
|
+
}), vt = /* @__PURE__ */ y("$ZodCheckMultipleOf", (e, t) => {
|
|
479
479
|
V.init(e, t), e._zod.onattach.push((e) => {
|
|
480
480
|
var n;
|
|
481
481
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
@@ -490,7 +490,7 @@ var ut = (e) => {
|
|
|
490
490
|
continue: !t.abort
|
|
491
491
|
});
|
|
492
492
|
};
|
|
493
|
-
}), yt = /* @__PURE__ */
|
|
493
|
+
}), yt = /* @__PURE__ */ y("$ZodCheckNumberFormat", (e, t) => {
|
|
494
494
|
V.init(e, t), t.format = t.format || "float64";
|
|
495
495
|
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = le[t.format];
|
|
496
496
|
e._zod.onattach.push((e) => {
|
|
@@ -551,7 +551,7 @@ var ut = (e) => {
|
|
|
551
551
|
continue: !t.abort
|
|
552
552
|
});
|
|
553
553
|
};
|
|
554
|
-
}), bt = /* @__PURE__ */
|
|
554
|
+
}), bt = /* @__PURE__ */ y("$ZodCheckMaxLength", (e, t) => {
|
|
555
555
|
var n;
|
|
556
556
|
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
557
557
|
let t = e.value;
|
|
@@ -573,7 +573,7 @@ var ut = (e) => {
|
|
|
573
573
|
continue: !t.abort
|
|
574
574
|
});
|
|
575
575
|
};
|
|
576
|
-
}), xt = /* @__PURE__ */
|
|
576
|
+
}), xt = /* @__PURE__ */ y("$ZodCheckMinLength", (e, t) => {
|
|
577
577
|
var n;
|
|
578
578
|
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
579
579
|
let t = e.value;
|
|
@@ -595,7 +595,7 @@ var ut = (e) => {
|
|
|
595
595
|
continue: !t.abort
|
|
596
596
|
});
|
|
597
597
|
};
|
|
598
|
-
}), St = /* @__PURE__ */
|
|
598
|
+
}), St = /* @__PURE__ */ y("$ZodCheckLengthEquals", (e, t) => {
|
|
599
599
|
var n;
|
|
600
600
|
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
601
601
|
let t = e.value;
|
|
@@ -623,7 +623,7 @@ var ut = (e) => {
|
|
|
623
623
|
continue: !t.abort
|
|
624
624
|
});
|
|
625
625
|
};
|
|
626
|
-
}), Ct = /* @__PURE__ */
|
|
626
|
+
}), Ct = /* @__PURE__ */ y("$ZodCheckStringFormat", (e, t) => {
|
|
627
627
|
var n, r;
|
|
628
628
|
V.init(e, t), e._zod.onattach.push((e) => {
|
|
629
629
|
let n = e._zod.bag;
|
|
@@ -639,7 +639,7 @@ var ut = (e) => {
|
|
|
639
639
|
continue: !t.abort
|
|
640
640
|
});
|
|
641
641
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
642
|
-
}), wt = /* @__PURE__ */
|
|
642
|
+
}), wt = /* @__PURE__ */ y("$ZodCheckRegex", (e, t) => {
|
|
643
643
|
Ct.init(e, t), e._zod.check = (n) => {
|
|
644
644
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
645
645
|
origin: "string",
|
|
@@ -651,11 +651,11 @@ var ut = (e) => {
|
|
|
651
651
|
continue: !t.abort
|
|
652
652
|
});
|
|
653
653
|
};
|
|
654
|
-
}), Tt = /* @__PURE__ */
|
|
654
|
+
}), Tt = /* @__PURE__ */ y("$ZodCheckLowerCase", (e, t) => {
|
|
655
655
|
t.pattern ??= pt, Ct.init(e, t);
|
|
656
|
-
}), Et = /* @__PURE__ */
|
|
656
|
+
}), Et = /* @__PURE__ */ y("$ZodCheckUpperCase", (e, t) => {
|
|
657
657
|
t.pattern ??= mt, Ct.init(e, t);
|
|
658
|
-
}), Dt = /* @__PURE__ */
|
|
658
|
+
}), Dt = /* @__PURE__ */ y("$ZodCheckIncludes", (e, t) => {
|
|
659
659
|
V.init(e, t);
|
|
660
660
|
let n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
661
661
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
@@ -672,7 +672,7 @@ var ut = (e) => {
|
|
|
672
672
|
continue: !t.abort
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
|
-
}), Ot = /* @__PURE__ */
|
|
675
|
+
}), Ot = /* @__PURE__ */ y("$ZodCheckStartsWith", (e, t) => {
|
|
676
676
|
V.init(e, t);
|
|
677
677
|
let n = RegExp(`^${se(t.prefix)}.*`);
|
|
678
678
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
@@ -689,7 +689,7 @@ var ut = (e) => {
|
|
|
689
689
|
continue: !t.abort
|
|
690
690
|
});
|
|
691
691
|
};
|
|
692
|
-
}), kt = /* @__PURE__ */
|
|
692
|
+
}), kt = /* @__PURE__ */ y("$ZodCheckEndsWith", (e, t) => {
|
|
693
693
|
V.init(e, t);
|
|
694
694
|
let n = RegExp(`.*${se(t.suffix)}$`);
|
|
695
695
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
@@ -706,7 +706,7 @@ var ut = (e) => {
|
|
|
706
706
|
continue: !t.abort
|
|
707
707
|
});
|
|
708
708
|
};
|
|
709
|
-
}), At = /* @__PURE__ */
|
|
709
|
+
}), At = /* @__PURE__ */ y("$ZodCheckOverwrite", (e, t) => {
|
|
710
710
|
V.init(e, t), e._zod.check = (e) => {
|
|
711
711
|
e.value = t.tx(e.value);
|
|
712
712
|
};
|
|
@@ -733,7 +733,7 @@ var ut = (e) => {
|
|
|
733
733
|
major: 4,
|
|
734
734
|
minor: 3,
|
|
735
735
|
patch: 6
|
|
736
|
-
}, H = /* @__PURE__ */
|
|
736
|
+
}, H = /* @__PURE__ */ y("$ZodType", (e, t) => {
|
|
737
737
|
var n;
|
|
738
738
|
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Mt;
|
|
739
739
|
let r = [...e._zod.def.checks ?? []];
|
|
@@ -750,7 +750,7 @@ var ut = (e) => {
|
|
|
750
750
|
if (!a._zod.def.when(e)) continue;
|
|
751
751
|
} else if (r) continue;
|
|
752
752
|
let t = e.issues.length, o = a._zod.check(e);
|
|
753
|
-
if (o instanceof Promise && n?.async === !1) throw new
|
|
753
|
+
if (o instanceof Promise && n?.async === !1) throw new b();
|
|
754
754
|
if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
|
|
755
755
|
await o, e.issues.length !== t && (r ||= z(e, t));
|
|
756
756
|
});
|
|
@@ -764,7 +764,7 @@ var ut = (e) => {
|
|
|
764
764
|
if (z(n)) return n.aborted = !0, n;
|
|
765
765
|
let o = t(i, r, a);
|
|
766
766
|
if (o instanceof Promise) {
|
|
767
|
-
if (a.async === !1) throw new
|
|
767
|
+
if (a.async === !1) throw new b();
|
|
768
768
|
return o.then((t) => e._zod.parse(t, a));
|
|
769
769
|
}
|
|
770
770
|
return e._zod.parse(o, a);
|
|
@@ -783,7 +783,7 @@ var ut = (e) => {
|
|
|
783
783
|
}
|
|
784
784
|
let o = e._zod.parse(i, a);
|
|
785
785
|
if (o instanceof Promise) {
|
|
786
|
-
if (a.async === !1) throw new
|
|
786
|
+
if (a.async === !1) throw new b();
|
|
787
787
|
return o.then((e) => t(e, r, a));
|
|
788
788
|
}
|
|
789
789
|
return t(o, r, a);
|
|
@@ -801,7 +801,7 @@ var ut = (e) => {
|
|
|
801
801
|
vendor: "zod",
|
|
802
802
|
version: 1
|
|
803
803
|
}));
|
|
804
|
-
}), Nt = /* @__PURE__ */
|
|
804
|
+
}), Nt = /* @__PURE__ */ y("$ZodString", (e, t) => {
|
|
805
805
|
H.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ut(e._zod.bag), e._zod.parse = (n, r) => {
|
|
806
806
|
if (t.coerce) try {
|
|
807
807
|
n.value = String(n.value);
|
|
@@ -813,11 +813,11 @@ var ut = (e) => {
|
|
|
813
813
|
inst: e
|
|
814
814
|
}), n;
|
|
815
815
|
};
|
|
816
|
-
}), U = /* @__PURE__ */
|
|
816
|
+
}), U = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
|
|
817
817
|
Ct.init(e, t), Nt.init(e, t);
|
|
818
|
-
}), Pt = /* @__PURE__ */
|
|
818
|
+
}), Pt = /* @__PURE__ */ y("$ZodGUID", (e, t) => {
|
|
819
819
|
t.pattern ??= qe, U.init(e, t);
|
|
820
|
-
}), Ft = /* @__PURE__ */
|
|
820
|
+
}), Ft = /* @__PURE__ */ y("$ZodUUID", (e, t) => {
|
|
821
821
|
if (t.version) {
|
|
822
822
|
let e = {
|
|
823
823
|
v1: 1,
|
|
@@ -833,9 +833,9 @@ var ut = (e) => {
|
|
|
833
833
|
t.pattern ??= Je(e);
|
|
834
834
|
} else t.pattern ??= Je();
|
|
835
835
|
U.init(e, t);
|
|
836
|
-
}), It = /* @__PURE__ */
|
|
836
|
+
}), It = /* @__PURE__ */ y("$ZodEmail", (e, t) => {
|
|
837
837
|
t.pattern ??= Ye, U.init(e, t);
|
|
838
|
-
}), Lt = /* @__PURE__ */
|
|
838
|
+
}), Lt = /* @__PURE__ */ y("$ZodURL", (e, t) => {
|
|
839
839
|
U.init(e, t), e._zod.check = (n) => {
|
|
840
840
|
try {
|
|
841
841
|
let r = n.value.trim(), i = new URL(r);
|
|
@@ -867,31 +867,31 @@ var ut = (e) => {
|
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
|
-
}), Rt = /* @__PURE__ */
|
|
870
|
+
}), Rt = /* @__PURE__ */ y("$ZodEmoji", (e, t) => {
|
|
871
871
|
t.pattern ??= Ze(), U.init(e, t);
|
|
872
|
-
}), zt = /* @__PURE__ */
|
|
872
|
+
}), zt = /* @__PURE__ */ y("$ZodNanoID", (e, t) => {
|
|
873
873
|
t.pattern ??= Ge, U.init(e, t);
|
|
874
|
-
}), Bt = /* @__PURE__ */
|
|
874
|
+
}), Bt = /* @__PURE__ */ y("$ZodCUID", (e, t) => {
|
|
875
875
|
t.pattern ??= Be, U.init(e, t);
|
|
876
|
-
}), Vt = /* @__PURE__ */
|
|
876
|
+
}), Vt = /* @__PURE__ */ y("$ZodCUID2", (e, t) => {
|
|
877
877
|
t.pattern ??= Ve, U.init(e, t);
|
|
878
|
-
}), Ht = /* @__PURE__ */
|
|
878
|
+
}), Ht = /* @__PURE__ */ y("$ZodULID", (e, t) => {
|
|
879
879
|
t.pattern ??= He, U.init(e, t);
|
|
880
|
-
}), Ut = /* @__PURE__ */
|
|
880
|
+
}), Ut = /* @__PURE__ */ y("$ZodXID", (e, t) => {
|
|
881
881
|
t.pattern ??= Ue, U.init(e, t);
|
|
882
|
-
}), Wt = /* @__PURE__ */
|
|
882
|
+
}), Wt = /* @__PURE__ */ y("$ZodKSUID", (e, t) => {
|
|
883
883
|
t.pattern ??= We, U.init(e, t);
|
|
884
|
-
}), Gt = /* @__PURE__ */
|
|
884
|
+
}), Gt = /* @__PURE__ */ y("$ZodISODateTime", (e, t) => {
|
|
885
885
|
t.pattern ??= lt(t), U.init(e, t);
|
|
886
|
-
}), Kt = /* @__PURE__ */
|
|
886
|
+
}), Kt = /* @__PURE__ */ y("$ZodISODate", (e, t) => {
|
|
887
887
|
t.pattern ??= ot, U.init(e, t);
|
|
888
|
-
}), qt = /* @__PURE__ */
|
|
888
|
+
}), qt = /* @__PURE__ */ y("$ZodISOTime", (e, t) => {
|
|
889
889
|
t.pattern ??= ct(t), U.init(e, t);
|
|
890
|
-
}), Jt = /* @__PURE__ */
|
|
890
|
+
}), Jt = /* @__PURE__ */ y("$ZodISODuration", (e, t) => {
|
|
891
891
|
t.pattern ??= Ke, U.init(e, t);
|
|
892
|
-
}), Yt = /* @__PURE__ */
|
|
892
|
+
}), Yt = /* @__PURE__ */ y("$ZodIPv4", (e, t) => {
|
|
893
893
|
t.pattern ??= Qe, U.init(e, t), e._zod.bag.format = "ipv4";
|
|
894
|
-
}), Xt = /* @__PURE__ */
|
|
894
|
+
}), Xt = /* @__PURE__ */ y("$ZodIPv6", (e, t) => {
|
|
895
895
|
t.pattern ??= $e, U.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
896
896
|
try {
|
|
897
897
|
new URL(`http://[${n.value}]`);
|
|
@@ -905,9 +905,9 @@ var ut = (e) => {
|
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
}), Zt = /* @__PURE__ */
|
|
908
|
+
}), Zt = /* @__PURE__ */ y("$ZodCIDRv4", (e, t) => {
|
|
909
909
|
t.pattern ??= et, U.init(e, t);
|
|
910
|
-
}), Qt = /* @__PURE__ */
|
|
910
|
+
}), Qt = /* @__PURE__ */ y("$ZodCIDRv6", (e, t) => {
|
|
911
911
|
t.pattern ??= tt, U.init(e, t), e._zod.check = (n) => {
|
|
912
912
|
let r = n.value.split("/");
|
|
913
913
|
try {
|
|
@@ -937,7 +937,7 @@ function $t(e) {
|
|
|
937
937
|
return !1;
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
var en = /* @__PURE__ */
|
|
940
|
+
var en = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
|
|
941
941
|
t.pattern ??= nt, U.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
942
942
|
$t(n.value) || n.issues.push({
|
|
943
943
|
code: "invalid_format",
|
|
@@ -953,7 +953,7 @@ function tn(e) {
|
|
|
953
953
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
954
954
|
return $t(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
955
955
|
}
|
|
956
|
-
var nn = /* @__PURE__ */
|
|
956
|
+
var nn = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
|
|
957
957
|
t.pattern ??= rt, U.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
958
958
|
tn(n.value) || n.issues.push({
|
|
959
959
|
code: "invalid_format",
|
|
@@ -963,7 +963,7 @@ var nn = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
|
|
|
963
963
|
continue: !t.abort
|
|
964
964
|
});
|
|
965
965
|
};
|
|
966
|
-
}), rn = /* @__PURE__ */
|
|
966
|
+
}), rn = /* @__PURE__ */ y("$ZodE164", (e, t) => {
|
|
967
967
|
t.pattern ??= it, U.init(e, t);
|
|
968
968
|
});
|
|
969
969
|
function an(e, t = null) {
|
|
@@ -978,7 +978,7 @@ function an(e, t = null) {
|
|
|
978
978
|
return !1;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
var on = /* @__PURE__ */
|
|
981
|
+
var on = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
|
|
982
982
|
U.init(e, t), e._zod.check = (n) => {
|
|
983
983
|
an(n.value, t.alg) || n.issues.push({
|
|
984
984
|
code: "invalid_format",
|
|
@@ -988,7 +988,7 @@ var on = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
|
|
|
988
988
|
continue: !t.abort
|
|
989
989
|
});
|
|
990
990
|
};
|
|
991
|
-
}), sn = /* @__PURE__ */
|
|
991
|
+
}), sn = /* @__PURE__ */ y("$ZodNumber", (e, t) => {
|
|
992
992
|
H.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ft, e._zod.parse = (n, r) => {
|
|
993
993
|
if (t.coerce) try {
|
|
994
994
|
n.value = Number(n.value);
|
|
@@ -1004,11 +1004,11 @@ var on = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
|
|
|
1004
1004
|
...a ? { received: a } : {}
|
|
1005
1005
|
}), n;
|
|
1006
1006
|
};
|
|
1007
|
-
}), cn = /* @__PURE__ */
|
|
1007
|
+
}), cn = /* @__PURE__ */ y("$ZodNumberFormat", (e, t) => {
|
|
1008
1008
|
yt.init(e, t), sn.init(e, t);
|
|
1009
|
-
}), ln = /* @__PURE__ */
|
|
1009
|
+
}), ln = /* @__PURE__ */ y("$ZodUnknown", (e, t) => {
|
|
1010
1010
|
H.init(e, t), e._zod.parse = (e) => e;
|
|
1011
|
-
}), un = /* @__PURE__ */
|
|
1011
|
+
}), un = /* @__PURE__ */ y("$ZodNever", (e, t) => {
|
|
1012
1012
|
H.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1013
1013
|
expected: "never",
|
|
1014
1014
|
code: "invalid_type",
|
|
@@ -1019,7 +1019,7 @@ var on = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
|
|
|
1019
1019
|
function dn(e, t, n) {
|
|
1020
1020
|
e.issues.length && t.issues.push(..._e(n, e.issues)), t.value[n] = e.value;
|
|
1021
1021
|
}
|
|
1022
|
-
var fn = /* @__PURE__ */
|
|
1022
|
+
var fn = /* @__PURE__ */ y("$ZodArray", (e, t) => {
|
|
1023
1023
|
H.init(e, t), e._zod.parse = (n, r) => {
|
|
1024
1024
|
let i = n.value;
|
|
1025
1025
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -1080,7 +1080,7 @@ function hn(e, t, n, r, i, a) {
|
|
|
1080
1080
|
inst: a
|
|
1081
1081
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1082
1082
|
}
|
|
1083
|
-
var gn = /* @__PURE__ */
|
|
1083
|
+
var gn = /* @__PURE__ */ y("$ZodObject", (e, t) => {
|
|
1084
1084
|
if (H.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1085
1085
|
let e = t.shape;
|
|
1086
1086
|
Object.defineProperty(t, "shape", { get: () => {
|
|
@@ -1121,7 +1121,7 @@ var gn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
return i ? hn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1123
1123
|
};
|
|
1124
|
-
}), _n = /* @__PURE__ */
|
|
1124
|
+
}), _n = /* @__PURE__ */ y("$ZodObjectJIT", (e, t) => {
|
|
1125
1125
|
gn.init(e, t);
|
|
1126
1126
|
let n = e._zod.parse, r = E(() => mn(t)), i = (e) => {
|
|
1127
1127
|
let t = new jt([
|
|
@@ -1177,7 +1177,7 @@ var gn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1177
1177
|
t.write("payload.value = newResult;"), t.write("return payload;");
|
|
1178
1178
|
let s = t.compile();
|
|
1179
1179
|
return (t, n) => s(e, t, n);
|
|
1180
|
-
}, a, o = P, s = !
|
|
1180
|
+
}, a, o = P, s = !S.jitless, c = s && F.value, l = t.catchall, u;
|
|
1181
1181
|
e._zod.parse = (d, f) => {
|
|
1182
1182
|
u ??= r.value;
|
|
1183
1183
|
let p = d.value;
|
|
@@ -1196,10 +1196,10 @@ function vn(e, t, n, r) {
|
|
|
1196
1196
|
code: "invalid_union",
|
|
1197
1197
|
input: t.value,
|
|
1198
1198
|
inst: n,
|
|
1199
|
-
errors: e.map((e) => e.issues.map((e) => B(e, r,
|
|
1199
|
+
errors: e.map((e) => e.issues.map((e) => B(e, r, C())))
|
|
1200
1200
|
}), t);
|
|
1201
1201
|
}
|
|
1202
|
-
var yn = /* @__PURE__ */
|
|
1202
|
+
var yn = /* @__PURE__ */ y("$ZodUnion", (e, t) => {
|
|
1203
1203
|
H.init(e, t), A(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), A(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), A(e._zod, "values", () => {
|
|
1204
1204
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1205
1205
|
}), A(e._zod, "pattern", () => {
|
|
@@ -1225,7 +1225,7 @@ var yn = /* @__PURE__ */ b("$ZodUnion", (e, t) => {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
return o ? Promise.all(s).then((t) => vn(t, i, e, a)) : vn(s, i, e, a);
|
|
1227
1227
|
};
|
|
1228
|
-
}), bn = /* @__PURE__ */
|
|
1228
|
+
}), bn = /* @__PURE__ */ y("$ZodIntersection", (e, t) => {
|
|
1229
1229
|
H.init(e, t), e._zod.parse = (e, n) => {
|
|
1230
1230
|
let r = e.value, i = t.left._zod.run({
|
|
1231
1231
|
value: r,
|
|
@@ -1301,7 +1301,7 @@ function Sn(e, t, n) {
|
|
|
1301
1301
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1302
1302
|
return e.value = o.data, e;
|
|
1303
1303
|
}
|
|
1304
|
-
var Cn = /* @__PURE__ */
|
|
1304
|
+
var Cn = /* @__PURE__ */ y("$ZodTuple", (e, t) => {
|
|
1305
1305
|
H.init(e, t);
|
|
1306
1306
|
let n = t.items;
|
|
1307
1307
|
e._zod.parse = (r, i) => {
|
|
@@ -1356,9 +1356,9 @@ var Cn = /* @__PURE__ */ b("$ZodTuple", (e, t) => {
|
|
|
1356
1356
|
function wn(e, t, n) {
|
|
1357
1357
|
e.issues.length && t.issues.push(..._e(n, e.issues)), t.value[n] = e.value;
|
|
1358
1358
|
}
|
|
1359
|
-
var Tn = /* @__PURE__ */
|
|
1359
|
+
var Tn = /* @__PURE__ */ y("$ZodEnum", (e, t) => {
|
|
1360
1360
|
H.init(e, t);
|
|
1361
|
-
let n =
|
|
1361
|
+
let n = w(t.entries), r = new Set(n);
|
|
1362
1362
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => oe.has(typeof e)).map((e) => typeof e == "string" ? se(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
1363
1363
|
let a = t.value;
|
|
1364
1364
|
return r.has(a) || t.issues.push({
|
|
@@ -1368,12 +1368,12 @@ var Tn = /* @__PURE__ */ b("$ZodEnum", (e, t) => {
|
|
|
1368
1368
|
inst: e
|
|
1369
1369
|
}), t;
|
|
1370
1370
|
};
|
|
1371
|
-
}), En = /* @__PURE__ */
|
|
1371
|
+
}), En = /* @__PURE__ */ y("$ZodTransform", (e, t) => {
|
|
1372
1372
|
H.init(e, t), e._zod.parse = (n, r) => {
|
|
1373
|
-
if (r.direction === "backward") throw new
|
|
1373
|
+
if (r.direction === "backward") throw new x(e.constructor.name);
|
|
1374
1374
|
let i = t.transform(n.value, n);
|
|
1375
1375
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1376
|
-
if (i instanceof Promise) throw new
|
|
1376
|
+
if (i instanceof Promise) throw new b();
|
|
1377
1377
|
return n.value = i, n;
|
|
1378
1378
|
};
|
|
1379
1379
|
});
|
|
@@ -1383,7 +1383,7 @@ function Dn(e, t) {
|
|
|
1383
1383
|
value: void 0
|
|
1384
1384
|
} : e;
|
|
1385
1385
|
}
|
|
1386
|
-
var On = /* @__PURE__ */
|
|
1386
|
+
var On = /* @__PURE__ */ y("$ZodOptional", (e, t) => {
|
|
1387
1387
|
H.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", A(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), A(e._zod, "pattern", () => {
|
|
1388
1388
|
let e = t.innerType._zod.pattern;
|
|
1389
1389
|
return e ? RegExp(`^(${D(e.source)})?$`) : void 0;
|
|
@@ -1394,14 +1394,14 @@ var On = /* @__PURE__ */ b("$ZodOptional", (e, t) => {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1396
1396
|
};
|
|
1397
|
-
}), kn = /* @__PURE__ */
|
|
1397
|
+
}), kn = /* @__PURE__ */ y("$ZodExactOptional", (e, t) => {
|
|
1398
1398
|
On.init(e, t), A(e._zod, "values", () => t.innerType._zod.values), A(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1399
|
-
}), An = /* @__PURE__ */
|
|
1399
|
+
}), An = /* @__PURE__ */ y("$ZodNullable", (e, t) => {
|
|
1400
1400
|
H.init(e, t), A(e._zod, "optin", () => t.innerType._zod.optin), A(e._zod, "optout", () => t.innerType._zod.optout), A(e._zod, "pattern", () => {
|
|
1401
1401
|
let e = t.innerType._zod.pattern;
|
|
1402
1402
|
return e ? RegExp(`^(${D(e.source)}|null)$`) : void 0;
|
|
1403
1403
|
}), A(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1404
|
-
}), jn = /* @__PURE__ */
|
|
1404
|
+
}), jn = /* @__PURE__ */ y("$ZodDefault", (e, t) => {
|
|
1405
1405
|
H.init(e, t), e._zod.optin = "optional", A(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1406
1406
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1407
1407
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
@@ -1412,9 +1412,9 @@ var On = /* @__PURE__ */ b("$ZodOptional", (e, t) => {
|
|
|
1412
1412
|
function Mn(e, t) {
|
|
1413
1413
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1414
1414
|
}
|
|
1415
|
-
var Nn = /* @__PURE__ */
|
|
1415
|
+
var Nn = /* @__PURE__ */ y("$ZodPrefault", (e, t) => {
|
|
1416
1416
|
H.init(e, t), e._zod.optin = "optional", A(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1417
|
-
}), Pn = /* @__PURE__ */
|
|
1417
|
+
}), Pn = /* @__PURE__ */ y("$ZodNonOptional", (e, t) => {
|
|
1418
1418
|
H.init(e, t), A(e._zod, "values", () => {
|
|
1419
1419
|
let e = t.innerType._zod.values;
|
|
1420
1420
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
@@ -1431,21 +1431,21 @@ function Fn(e, t) {
|
|
|
1431
1431
|
inst: t
|
|
1432
1432
|
}), e;
|
|
1433
1433
|
}
|
|
1434
|
-
var In = /* @__PURE__ */
|
|
1434
|
+
var In = /* @__PURE__ */ y("$ZodCatch", (e, t) => {
|
|
1435
1435
|
H.init(e, t), A(e._zod, "optin", () => t.innerType._zod.optin), A(e._zod, "optout", () => t.innerType._zod.optout), A(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1436
1436
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1437
1437
|
let r = t.innerType._zod.run(e, n);
|
|
1438
1438
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1439
1439
|
...e,
|
|
1440
|
-
error: { issues: r.issues.map((e) => B(e, n,
|
|
1440
|
+
error: { issues: r.issues.map((e) => B(e, n, C())) },
|
|
1441
1441
|
input: e.value
|
|
1442
1442
|
}), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1443
1443
|
...e,
|
|
1444
|
-
error: { issues: r.issues.map((e) => B(e, n,
|
|
1444
|
+
error: { issues: r.issues.map((e) => B(e, n, C())) },
|
|
1445
1445
|
input: e.value
|
|
1446
1446
|
}), e.issues = []), e);
|
|
1447
1447
|
};
|
|
1448
|
-
}), Ln = /* @__PURE__ */
|
|
1448
|
+
}), Ln = /* @__PURE__ */ y("$ZodPipe", (e, t) => {
|
|
1449
1449
|
H.init(e, t), A(e._zod, "values", () => t.in._zod.values), A(e._zod, "optin", () => t.in._zod.optin), A(e._zod, "optout", () => t.out._zod.optout), A(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1450
1450
|
if (n.direction === "backward") {
|
|
1451
1451
|
let r = t.out._zod.run(e, n);
|
|
@@ -1461,7 +1461,7 @@ function Rn(e, t, n) {
|
|
|
1461
1461
|
issues: e.issues
|
|
1462
1462
|
}, n);
|
|
1463
1463
|
}
|
|
1464
|
-
var zn = /* @__PURE__ */
|
|
1464
|
+
var zn = /* @__PURE__ */ y("$ZodReadonly", (e, t) => {
|
|
1465
1465
|
H.init(e, t), A(e._zod, "propValues", () => t.innerType._zod.propValues), A(e._zod, "values", () => t.innerType._zod.values), A(e._zod, "optin", () => t.innerType?._zod?.optin), A(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1466
1466
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1467
1467
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -1471,7 +1471,7 @@ var zn = /* @__PURE__ */ b("$ZodReadonly", (e, t) => {
|
|
|
1471
1471
|
function Bn(e) {
|
|
1472
1472
|
return e.value = Object.freeze(e.value), e;
|
|
1473
1473
|
}
|
|
1474
|
-
var Vn = /* @__PURE__ */
|
|
1474
|
+
var Vn = /* @__PURE__ */ y("$ZodCustom", (e, t) => {
|
|
1475
1475
|
V.init(e, t), H.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1476
1476
|
let r = n.value, i = t.fn(r);
|
|
1477
1477
|
if (i instanceof Promise) return i.then((t) => Hn(t, n, r, e));
|
|
@@ -2255,7 +2255,7 @@ var Xr = (e, t = {}) => (n) => {
|
|
|
2255
2255
|
}, ti = (e, t, n, r) => {
|
|
2256
2256
|
n.not = {};
|
|
2257
2257
|
}, ni = (e, t, n, r) => {
|
|
2258
|
-
let i = e._zod.def, a =
|
|
2258
|
+
let i = e._zod.def, a = w(i.entries);
|
|
2259
2259
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
2260
2260
|
}, ri = (e, t, n, r) => {
|
|
2261
2261
|
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
@@ -2380,25 +2380,25 @@ var Xr = (e, t = {}) => (n) => {
|
|
|
2380
2380
|
G(i.innerType, t, r);
|
|
2381
2381
|
let a = t.seen.get(e);
|
|
2382
2382
|
a.ref = i.innerType;
|
|
2383
|
-
}, vi = /* @__PURE__ */
|
|
2383
|
+
}, vi = /* @__PURE__ */ y("ZodISODateTime", (e, t) => {
|
|
2384
2384
|
Gt.init(e, t), Y.init(e, t);
|
|
2385
2385
|
});
|
|
2386
2386
|
function yi(e) {
|
|
2387
2387
|
return /* @__PURE__ */ gr(vi, e);
|
|
2388
2388
|
}
|
|
2389
|
-
var bi = /* @__PURE__ */
|
|
2389
|
+
var bi = /* @__PURE__ */ y("ZodISODate", (e, t) => {
|
|
2390
2390
|
Kt.init(e, t), Y.init(e, t);
|
|
2391
2391
|
});
|
|
2392
2392
|
function xi(e) {
|
|
2393
2393
|
return /* @__PURE__ */ _r(bi, e);
|
|
2394
2394
|
}
|
|
2395
|
-
var Si = /* @__PURE__ */
|
|
2395
|
+
var Si = /* @__PURE__ */ y("ZodISOTime", (e, t) => {
|
|
2396
2396
|
qt.init(e, t), Y.init(e, t);
|
|
2397
2397
|
});
|
|
2398
2398
|
function Ci(e) {
|
|
2399
2399
|
return /* @__PURE__ */ vr(Si, e);
|
|
2400
2400
|
}
|
|
2401
|
-
var wi = /* @__PURE__ */
|
|
2401
|
+
var wi = /* @__PURE__ */ y("ZodISODuration", (e, t) => {
|
|
2402
2402
|
Jt.init(e, t), Y.init(e, t);
|
|
2403
2403
|
});
|
|
2404
2404
|
function Ti(e) {
|
|
@@ -2421,8 +2421,8 @@ var Ei = (e, t) => {
|
|
|
2421
2421
|
} }
|
|
2422
2422
|
});
|
|
2423
2423
|
};
|
|
2424
|
-
|
|
2425
|
-
var q =
|
|
2424
|
+
y("ZodError", Ei);
|
|
2425
|
+
var q = y("ZodError", Ei, { Parent: Error }), Di = /* @__PURE__ */ Ee(q), Oi = /* @__PURE__ */ De(q), ki = /* @__PURE__ */ Oe(q), Ai = /* @__PURE__ */ Ae(q), ji = /* @__PURE__ */ Me(q), Mi = /* @__PURE__ */ Ne(q), Ni = /* @__PURE__ */ Pe(q), Pi = /* @__PURE__ */ Fe(q), Fi = /* @__PURE__ */ Ie(q), Ii = /* @__PURE__ */ Le(q), Li = /* @__PURE__ */ Re(q), Ri = /* @__PURE__ */ ze(q), J = /* @__PURE__ */ y("ZodType", (e, t) => (H.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
2426
2426
|
input: Zr(e, "input"),
|
|
2427
2427
|
output: Zr(e, "output")
|
|
2428
2428
|
} }), e.toJSONSchema = Xr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(M(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -2441,57 +2441,57 @@ var q = b("ZodError", Ei, { Parent: Error }), Di = /* @__PURE__ */ Ee(q), Oi = /
|
|
|
2441
2441
|
if (t.length === 0) return Kn.get(e);
|
|
2442
2442
|
let n = e.clone();
|
|
2443
2443
|
return Kn.add(n, t[0]), n;
|
|
2444
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), zi = /* @__PURE__ */
|
|
2444
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), zi = /* @__PURE__ */ y("_ZodString", (e, t) => {
|
|
2445
2445
|
Nt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => $r(e, t, n, r);
|
|
2446
2446
|
let n = e._zod.bag;
|
|
2447
2447
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Mr(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Fr(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ Ir(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ Lr(...t)), e.min = (...t) => e.check(/* @__PURE__ */ Ar(...t)), e.max = (...t) => e.check(/* @__PURE__ */ kr(...t)), e.length = (...t) => e.check(/* @__PURE__ */ jr(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ Ar(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Nr(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ Pr(t)), e.trim = () => e.check(/* @__PURE__ */ zr()), e.normalize = (...t) => e.check(/* @__PURE__ */ Rr(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ Br()), e.toUpperCase = () => e.check(/* @__PURE__ */ Vr()), e.slugify = () => e.check(/* @__PURE__ */ Hr());
|
|
2448
|
-
}), Bi = /* @__PURE__ */
|
|
2448
|
+
}), Bi = /* @__PURE__ */ y("ZodString", (e, t) => {
|
|
2449
2449
|
Nt.init(e, t), zi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Jn(Hi, t)), e.url = (t) => e.check(/* @__PURE__ */ er(Gi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ hr(oa, t)), e.emoji = (t) => e.check(/* @__PURE__ */ tr(Ki, t)), e.guid = (t) => e.check(/* @__PURE__ */ Yn(Ui, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Xn(Wi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Zn(Wi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Qn(Wi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ $n(Wi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ nr(qi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Yn(Ui, t)), e.cuid = (t) => e.check(/* @__PURE__ */ rr(Ji, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ir(Yi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ ar(Xi, t)), e.base64 = (t) => e.check(/* @__PURE__ */ fr(ra, t)), e.base64url = (t) => e.check(/* @__PURE__ */ pr(ia, t)), e.xid = (t) => e.check(/* @__PURE__ */ or(Zi, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ sr(Qi, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ cr($i, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ lr(ea, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ ur(ta, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ dr(na, t)), e.e164 = (t) => e.check(/* @__PURE__ */ mr(aa, t)), e.datetime = (t) => e.check(yi(t)), e.date = (t) => e.check(xi(t)), e.time = (t) => e.check(Ci(t)), e.duration = (t) => e.check(Ti(t));
|
|
2450
2450
|
});
|
|
2451
2451
|
function Vi(e) {
|
|
2452
2452
|
return /* @__PURE__ */ qn(Bi, e);
|
|
2453
2453
|
}
|
|
2454
|
-
var Y = /* @__PURE__ */
|
|
2454
|
+
var Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
|
|
2455
2455
|
U.init(e, t), zi.init(e, t);
|
|
2456
|
-
}), Hi = /* @__PURE__ */
|
|
2456
|
+
}), Hi = /* @__PURE__ */ y("ZodEmail", (e, t) => {
|
|
2457
2457
|
It.init(e, t), Y.init(e, t);
|
|
2458
|
-
}), Ui = /* @__PURE__ */
|
|
2458
|
+
}), Ui = /* @__PURE__ */ y("ZodGUID", (e, t) => {
|
|
2459
2459
|
Pt.init(e, t), Y.init(e, t);
|
|
2460
|
-
}), Wi = /* @__PURE__ */
|
|
2460
|
+
}), Wi = /* @__PURE__ */ y("ZodUUID", (e, t) => {
|
|
2461
2461
|
Ft.init(e, t), Y.init(e, t);
|
|
2462
|
-
}), Gi = /* @__PURE__ */
|
|
2462
|
+
}), Gi = /* @__PURE__ */ y("ZodURL", (e, t) => {
|
|
2463
2463
|
Lt.init(e, t), Y.init(e, t);
|
|
2464
|
-
}), Ki = /* @__PURE__ */
|
|
2464
|
+
}), Ki = /* @__PURE__ */ y("ZodEmoji", (e, t) => {
|
|
2465
2465
|
Rt.init(e, t), Y.init(e, t);
|
|
2466
|
-
}), qi = /* @__PURE__ */
|
|
2466
|
+
}), qi = /* @__PURE__ */ y("ZodNanoID", (e, t) => {
|
|
2467
2467
|
zt.init(e, t), Y.init(e, t);
|
|
2468
|
-
}), Ji = /* @__PURE__ */
|
|
2468
|
+
}), Ji = /* @__PURE__ */ y("ZodCUID", (e, t) => {
|
|
2469
2469
|
Bt.init(e, t), Y.init(e, t);
|
|
2470
|
-
}), Yi = /* @__PURE__ */
|
|
2470
|
+
}), Yi = /* @__PURE__ */ y("ZodCUID2", (e, t) => {
|
|
2471
2471
|
Vt.init(e, t), Y.init(e, t);
|
|
2472
|
-
}), Xi = /* @__PURE__ */
|
|
2472
|
+
}), Xi = /* @__PURE__ */ y("ZodULID", (e, t) => {
|
|
2473
2473
|
Ht.init(e, t), Y.init(e, t);
|
|
2474
|
-
}), Zi = /* @__PURE__ */
|
|
2474
|
+
}), Zi = /* @__PURE__ */ y("ZodXID", (e, t) => {
|
|
2475
2475
|
Ut.init(e, t), Y.init(e, t);
|
|
2476
|
-
}), Qi = /* @__PURE__ */
|
|
2476
|
+
}), Qi = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
|
|
2477
2477
|
Wt.init(e, t), Y.init(e, t);
|
|
2478
|
-
}), $i = /* @__PURE__ */
|
|
2478
|
+
}), $i = /* @__PURE__ */ y("ZodIPv4", (e, t) => {
|
|
2479
2479
|
Yt.init(e, t), Y.init(e, t);
|
|
2480
|
-
}), ea = /* @__PURE__ */
|
|
2480
|
+
}), ea = /* @__PURE__ */ y("ZodIPv6", (e, t) => {
|
|
2481
2481
|
Xt.init(e, t), Y.init(e, t);
|
|
2482
|
-
}), ta = /* @__PURE__ */
|
|
2482
|
+
}), ta = /* @__PURE__ */ y("ZodCIDRv4", (e, t) => {
|
|
2483
2483
|
Zt.init(e, t), Y.init(e, t);
|
|
2484
|
-
}), na = /* @__PURE__ */
|
|
2484
|
+
}), na = /* @__PURE__ */ y("ZodCIDRv6", (e, t) => {
|
|
2485
2485
|
Qt.init(e, t), Y.init(e, t);
|
|
2486
|
-
}), ra = /* @__PURE__ */
|
|
2486
|
+
}), ra = /* @__PURE__ */ y("ZodBase64", (e, t) => {
|
|
2487
2487
|
en.init(e, t), Y.init(e, t);
|
|
2488
|
-
}), ia = /* @__PURE__ */
|
|
2488
|
+
}), ia = /* @__PURE__ */ y("ZodBase64URL", (e, t) => {
|
|
2489
2489
|
nn.init(e, t), Y.init(e, t);
|
|
2490
|
-
}), aa = /* @__PURE__ */
|
|
2490
|
+
}), aa = /* @__PURE__ */ y("ZodE164", (e, t) => {
|
|
2491
2491
|
rn.init(e, t), Y.init(e, t);
|
|
2492
|
-
}), oa = /* @__PURE__ */
|
|
2492
|
+
}), oa = /* @__PURE__ */ y("ZodJWT", (e, t) => {
|
|
2493
2493
|
on.init(e, t), Y.init(e, t);
|
|
2494
|
-
}), sa = /* @__PURE__ */
|
|
2494
|
+
}), sa = /* @__PURE__ */ y("ZodNumber", (e, t) => {
|
|
2495
2495
|
sn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r), e.gt = (t, n) => e.check(/* @__PURE__ */ Er(t, n)), e.gte = (t, n) => e.check(/* @__PURE__ */ Dr(t, n)), e.min = (t, n) => e.check(/* @__PURE__ */ Dr(t, n)), e.lt = (t, n) => e.check(/* @__PURE__ */ wr(t, n)), e.lte = (t, n) => e.check(/* @__PURE__ */ Tr(t, n)), e.max = (t, n) => e.check(/* @__PURE__ */ Tr(t, n)), e.int = (t) => e.check(ua(t)), e.safe = (t) => e.check(ua(t)), e.positive = (t) => e.check(/* @__PURE__ */ Er(0, t)), e.nonnegative = (t) => e.check(/* @__PURE__ */ Dr(0, t)), e.negative = (t) => e.check(/* @__PURE__ */ wr(0, t)), e.nonpositive = (t) => e.check(/* @__PURE__ */ Tr(0, t)), e.multipleOf = (t, n) => e.check(/* @__PURE__ */ Or(t, n)), e.step = (t, n) => e.check(/* @__PURE__ */ Or(t, n)), e.finite = () => e;
|
|
2496
2496
|
let n = e._zod.bag;
|
|
2497
2497
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
@@ -2499,31 +2499,31 @@ var Y = /* @__PURE__ */ b("ZodStringFormat", (e, t) => {
|
|
|
2499
2499
|
function ca(e) {
|
|
2500
2500
|
return /* @__PURE__ */ br(sa, e);
|
|
2501
2501
|
}
|
|
2502
|
-
var la = /* @__PURE__ */
|
|
2502
|
+
var la = /* @__PURE__ */ y("ZodNumberFormat", (e, t) => {
|
|
2503
2503
|
cn.init(e, t), sa.init(e, t);
|
|
2504
2504
|
});
|
|
2505
2505
|
function ua(e) {
|
|
2506
2506
|
return /* @__PURE__ */ xr(la, e);
|
|
2507
2507
|
}
|
|
2508
|
-
var da = /* @__PURE__ */
|
|
2508
|
+
var da = /* @__PURE__ */ y("ZodUnknown", (e, t) => {
|
|
2509
2509
|
ln.init(e, t), J.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
2510
2510
|
});
|
|
2511
2511
|
function fa() {
|
|
2512
2512
|
return /* @__PURE__ */ Sr(da);
|
|
2513
2513
|
}
|
|
2514
|
-
var pa = /* @__PURE__ */
|
|
2514
|
+
var pa = /* @__PURE__ */ y("ZodNever", (e, t) => {
|
|
2515
2515
|
un.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ti(e, t, n, r);
|
|
2516
2516
|
});
|
|
2517
2517
|
function ma(e) {
|
|
2518
2518
|
return /* @__PURE__ */ Cr(pa, e);
|
|
2519
2519
|
}
|
|
2520
|
-
var ha = /* @__PURE__ */
|
|
2520
|
+
var ha = /* @__PURE__ */ y("ZodArray", (e, t) => {
|
|
2521
2521
|
fn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ Ar(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ Ar(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ kr(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ jr(t, n)), e.unwrap = () => e.element;
|
|
2522
2522
|
});
|
|
2523
2523
|
function ga(e, t) {
|
|
2524
2524
|
return /* @__PURE__ */ Ur(ha, e, t);
|
|
2525
2525
|
}
|
|
2526
|
-
var _a = /* @__PURE__ */
|
|
2526
|
+
var _a = /* @__PURE__ */ y("ZodObject", (e, t) => {
|
|
2527
2527
|
_n.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r), A(e, "shape", () => t.shape), e.keyof = () => Ea(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
|
|
2528
2528
|
...e._zod.def,
|
|
2529
2529
|
catchall: t
|
|
@@ -2548,7 +2548,7 @@ function va(e, t) {
|
|
|
2548
2548
|
...R(t)
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
|
-
var ya = /* @__PURE__ */
|
|
2551
|
+
var ya = /* @__PURE__ */ y("ZodUnion", (e, t) => {
|
|
2552
2552
|
yn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.options = t.options;
|
|
2553
2553
|
});
|
|
2554
2554
|
function ba(e, t) {
|
|
@@ -2558,7 +2558,7 @@ function ba(e, t) {
|
|
|
2558
2558
|
...R(t)
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
2561
|
-
var xa = /* @__PURE__ */
|
|
2561
|
+
var xa = /* @__PURE__ */ y("ZodIntersection", (e, t) => {
|
|
2562
2562
|
bn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
|
|
2563
2563
|
});
|
|
2564
2564
|
function Sa(e, t) {
|
|
@@ -2568,7 +2568,7 @@ function Sa(e, t) {
|
|
|
2568
2568
|
right: t
|
|
2569
2569
|
});
|
|
2570
2570
|
}
|
|
2571
|
-
var Ca = /* @__PURE__ */
|
|
2571
|
+
var Ca = /* @__PURE__ */ y("ZodTuple", (e, t) => {
|
|
2572
2572
|
Cn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e.rest = (t) => e.clone({
|
|
2573
2573
|
...e._zod.def,
|
|
2574
2574
|
rest: t
|
|
@@ -2583,7 +2583,7 @@ function wa(e, t, n) {
|
|
|
2583
2583
|
...R(r ? n : t)
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
|
-
var Ta = /* @__PURE__ */
|
|
2586
|
+
var Ta = /* @__PURE__ */ y("ZodEnum", (e, t) => {
|
|
2587
2587
|
Tn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ni(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2588
2588
|
let n = new Set(Object.keys(t.entries));
|
|
2589
2589
|
e.extract = (e, r) => {
|
|
@@ -2615,9 +2615,9 @@ function Ea(e, t) {
|
|
|
2615
2615
|
...R(t)
|
|
2616
2616
|
});
|
|
2617
2617
|
}
|
|
2618
|
-
var Da = /* @__PURE__ */
|
|
2618
|
+
var Da = /* @__PURE__ */ y("ZodTransform", (e, t) => {
|
|
2619
2619
|
En.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r), e._zod.parse = (n, r) => {
|
|
2620
|
-
if (r.direction === "backward") throw new
|
|
2620
|
+
if (r.direction === "backward") throw new x(e.constructor.name);
|
|
2621
2621
|
n.addIssue = (r) => {
|
|
2622
2622
|
if (typeof r == "string") n.issues.push(be(r, n.value, t));
|
|
2623
2623
|
else {
|
|
@@ -2635,7 +2635,7 @@ function Oa(e) {
|
|
|
2635
2635
|
transform: e
|
|
2636
2636
|
});
|
|
2637
2637
|
}
|
|
2638
|
-
var ka = /* @__PURE__ */
|
|
2638
|
+
var ka = /* @__PURE__ */ y("ZodOptional", (e, t) => {
|
|
2639
2639
|
On.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2640
2640
|
});
|
|
2641
2641
|
function Aa(e) {
|
|
@@ -2644,7 +2644,7 @@ function Aa(e) {
|
|
|
2644
2644
|
innerType: e
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
|
-
var ja = /* @__PURE__ */
|
|
2647
|
+
var ja = /* @__PURE__ */ y("ZodExactOptional", (e, t) => {
|
|
2648
2648
|
kn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2649
2649
|
});
|
|
2650
2650
|
function Ma(e) {
|
|
@@ -2653,7 +2653,7 @@ function Ma(e) {
|
|
|
2653
2653
|
innerType: e
|
|
2654
2654
|
});
|
|
2655
2655
|
}
|
|
2656
|
-
var Na = /* @__PURE__ */
|
|
2656
|
+
var Na = /* @__PURE__ */ y("ZodNullable", (e, t) => {
|
|
2657
2657
|
An.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2658
2658
|
});
|
|
2659
2659
|
function Pa(e) {
|
|
@@ -2662,7 +2662,7 @@ function Pa(e) {
|
|
|
2662
2662
|
innerType: e
|
|
2663
2663
|
});
|
|
2664
2664
|
}
|
|
2665
|
-
var Fa = /* @__PURE__ */
|
|
2665
|
+
var Fa = /* @__PURE__ */ y("ZodDefault", (e, t) => {
|
|
2666
2666
|
jn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2667
2667
|
});
|
|
2668
2668
|
function Ia(e, t) {
|
|
@@ -2674,7 +2674,7 @@ function Ia(e, t) {
|
|
|
2674
2674
|
}
|
|
2675
2675
|
});
|
|
2676
2676
|
}
|
|
2677
|
-
var La = /* @__PURE__ */
|
|
2677
|
+
var La = /* @__PURE__ */ y("ZodPrefault", (e, t) => {
|
|
2678
2678
|
Nn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2679
2679
|
});
|
|
2680
2680
|
function Ra(e, t) {
|
|
@@ -2686,7 +2686,7 @@ function Ra(e, t) {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
});
|
|
2688
2688
|
}
|
|
2689
|
-
var za = /* @__PURE__ */
|
|
2689
|
+
var za = /* @__PURE__ */ y("ZodNonOptional", (e, t) => {
|
|
2690
2690
|
Pn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2691
2691
|
});
|
|
2692
2692
|
function Ba(e, t) {
|
|
@@ -2696,7 +2696,7 @@ function Ba(e, t) {
|
|
|
2696
2696
|
...R(t)
|
|
2697
2697
|
});
|
|
2698
2698
|
}
|
|
2699
|
-
var Va = /* @__PURE__ */
|
|
2699
|
+
var Va = /* @__PURE__ */ y("ZodCatch", (e, t) => {
|
|
2700
2700
|
In.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2701
2701
|
});
|
|
2702
2702
|
function Ha(e, t) {
|
|
@@ -2706,7 +2706,7 @@ function Ha(e, t) {
|
|
|
2706
2706
|
catchValue: typeof t == "function" ? t : () => t
|
|
2707
2707
|
});
|
|
2708
2708
|
}
|
|
2709
|
-
var Ua = /* @__PURE__ */
|
|
2709
|
+
var Ua = /* @__PURE__ */ y("ZodPipe", (e, t) => {
|
|
2710
2710
|
Ln.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
2711
2711
|
});
|
|
2712
2712
|
function Wa(e, t) {
|
|
@@ -2716,7 +2716,7 @@ function Wa(e, t) {
|
|
|
2716
2716
|
out: t
|
|
2717
2717
|
});
|
|
2718
2718
|
}
|
|
2719
|
-
var Ga = /* @__PURE__ */
|
|
2719
|
+
var Ga = /* @__PURE__ */ y("ZodReadonly", (e, t) => {
|
|
2720
2720
|
zn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2721
2721
|
});
|
|
2722
2722
|
function Ka(e) {
|
|
@@ -2725,7 +2725,7 @@ function Ka(e) {
|
|
|
2725
2725
|
innerType: e
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
|
-
var qa = /* @__PURE__ */
|
|
2728
|
+
var qa = /* @__PURE__ */ y("ZodCustom", (e, t) => {
|
|
2729
2729
|
Vn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
|
|
2730
2730
|
});
|
|
2731
2731
|
function Ja(e, t = {}) {
|
|
@@ -2735,10 +2735,10 @@ function Ya(e) {
|
|
|
2735
2735
|
return /* @__PURE__ */ Gr(e);
|
|
2736
2736
|
}
|
|
2737
2737
|
//#endregion
|
|
2738
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
2738
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/use-map.js
|
|
2739
2739
|
var Xa = r.createContext(null);
|
|
2740
2740
|
//#endregion
|
|
2741
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
2741
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/deep-equal.js
|
|
2742
2742
|
function Za(e, t) {
|
|
2743
2743
|
let n = Array.isArray(e) ? e[0] : e ? e.x : 0, r = Array.isArray(e) ? e[1] : e ? e.y : 0, i = Array.isArray(t) ? t[0] : t ? t.x : 0, a = Array.isArray(t) ? t[1] : t ? t.y : 0;
|
|
2744
2744
|
return n === i && r === a;
|
|
@@ -2760,7 +2760,7 @@ function X(e, t) {
|
|
|
2760
2760
|
return !1;
|
|
2761
2761
|
}
|
|
2762
2762
|
//#endregion
|
|
2763
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
2763
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/transform.js
|
|
2764
2764
|
function Qa(e) {
|
|
2765
2765
|
return {
|
|
2766
2766
|
longitude: e.center.lng,
|
|
@@ -2780,7 +2780,7 @@ function $a(e, t) {
|
|
|
2780
2780
|
return "zoom" in n && n.zoom !== e.zoom && (r.zoom = n.zoom), "bearing" in n && n.bearing !== e.bearing && (r.bearing = n.bearing), "pitch" in n && n.pitch !== e.pitch && (r.pitch = n.pitch), n.padding && e.padding && !X(n.padding, e.padding) && (r.padding = n.padding), r;
|
|
2781
2781
|
}
|
|
2782
2782
|
//#endregion
|
|
2783
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
2783
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js
|
|
2784
2784
|
var eo = [
|
|
2785
2785
|
"type",
|
|
2786
2786
|
"source",
|
|
@@ -2811,12 +2811,25 @@ function to(e) {
|
|
|
2811
2811
|
};
|
|
2812
2812
|
}
|
|
2813
2813
|
//#endregion
|
|
2814
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
2814
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js
|
|
2815
2815
|
var no = {
|
|
2816
2816
|
version: 8,
|
|
2817
2817
|
sources: {},
|
|
2818
2818
|
layers: []
|
|
2819
2819
|
}, ro = {
|
|
2820
|
+
minZoom: 0,
|
|
2821
|
+
maxZoom: 22,
|
|
2822
|
+
minPitch: 0,
|
|
2823
|
+
maxPitch: 85,
|
|
2824
|
+
maxBounds: [
|
|
2825
|
+
-180,
|
|
2826
|
+
-85.051129,
|
|
2827
|
+
180,
|
|
2828
|
+
85.051129
|
|
2829
|
+
],
|
|
2830
|
+
projection: "mercator",
|
|
2831
|
+
renderWorldCopies: !0
|
|
2832
|
+
}, io = {
|
|
2820
2833
|
mousedown: "onMouseDown",
|
|
2821
2834
|
mouseup: "onMouseUp",
|
|
2822
2835
|
mouseover: "onMouseOver",
|
|
@@ -2831,7 +2844,7 @@ var no = {
|
|
|
2831
2844
|
touchend: "onTouchEnd",
|
|
2832
2845
|
touchmove: "onTouchMove",
|
|
2833
2846
|
touchcancel: "onTouchCancel"
|
|
2834
|
-
},
|
|
2847
|
+
}, ao = {
|
|
2835
2848
|
movestart: "onMoveStart",
|
|
2836
2849
|
move: "onMove",
|
|
2837
2850
|
moveend: "onMoveEnd",
|
|
@@ -2847,7 +2860,7 @@ var no = {
|
|
|
2847
2860
|
pitchstart: "onPitchStart",
|
|
2848
2861
|
pitch: "onPitch",
|
|
2849
2862
|
pitchend: "onPitchEnd"
|
|
2850
|
-
},
|
|
2863
|
+
}, oo = {
|
|
2851
2864
|
wheel: "onWheel",
|
|
2852
2865
|
boxzoomstart: "onBoxZoomStart",
|
|
2853
2866
|
boxzoomend: "onBoxZoomEnd",
|
|
@@ -2861,7 +2874,7 @@ var no = {
|
|
|
2861
2874
|
styledata: "onStyleData",
|
|
2862
2875
|
sourcedata: "onSourceData",
|
|
2863
2876
|
error: "onError"
|
|
2864
|
-
},
|
|
2877
|
+
}, so = [
|
|
2865
2878
|
"minZoom",
|
|
2866
2879
|
"maxZoom",
|
|
2867
2880
|
"minPitch",
|
|
@@ -2869,7 +2882,7 @@ var no = {
|
|
|
2869
2882
|
"maxBounds",
|
|
2870
2883
|
"projection",
|
|
2871
2884
|
"renderWorldCopies"
|
|
2872
|
-
],
|
|
2885
|
+
], co = [
|
|
2873
2886
|
"scrollZoom",
|
|
2874
2887
|
"boxZoom",
|
|
2875
2888
|
"dragRotate",
|
|
@@ -2878,19 +2891,19 @@ var no = {
|
|
|
2878
2891
|
"doubleClickZoom",
|
|
2879
2892
|
"touchZoomRotate",
|
|
2880
2893
|
"touchPitch"
|
|
2881
|
-
],
|
|
2894
|
+
], lo = class e {
|
|
2882
2895
|
constructor(e, t, n) {
|
|
2883
2896
|
this._map = null, this._internalUpdate = !1, this._hoveredFeatures = null, this._propsedCameraUpdate = null, this._styleComponents = {}, this._onEvent = (e) => {
|
|
2884
|
-
let t = this.props[
|
|
2897
|
+
let t = this.props[oo[e.type]];
|
|
2885
2898
|
t ? t(e) : e.type === "error" && console.error(e.error);
|
|
2886
2899
|
}, this._onCameraEvent = (e) => {
|
|
2887
2900
|
if (this._internalUpdate) return;
|
|
2888
2901
|
e.viewState = this._propsedCameraUpdate || Qa(this._map.transform);
|
|
2889
|
-
let t = this.props[
|
|
2902
|
+
let t = this.props[ao[e.type]];
|
|
2890
2903
|
t && t(e);
|
|
2891
2904
|
}, this._onCameraUpdate = (e) => this._internalUpdate ? e : (this._propsedCameraUpdate = Qa(e), $a(e, this.props)), this._onPointerEvent = (e) => {
|
|
2892
2905
|
(e.type === "mousemove" || e.type === "mouseout") && this._updateHover(e);
|
|
2893
|
-
let t = this.props[
|
|
2906
|
+
let t = this.props[io[e.type]];
|
|
2894
2907
|
t && (this.props.interactiveLayerIds && e.type !== "mouseover" && e.type !== "mouseout" && (e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point)), t(e), delete e.features);
|
|
2895
2908
|
}, this._MapClass = e, this.props = t, this._initialize(n);
|
|
2896
2909
|
}
|
|
@@ -2947,9 +2960,9 @@ var no = {
|
|
|
2947
2960
|
}), a.on("sourcedata", () => {
|
|
2948
2961
|
this._updateStyleComponents(this.props);
|
|
2949
2962
|
});
|
|
2950
|
-
for (let e in
|
|
2951
|
-
for (let e in
|
|
2952
|
-
for (let e in
|
|
2963
|
+
for (let e in io) a.on(e, this._onPointerEvent);
|
|
2964
|
+
for (let e in ao) a.on(e, this._onCameraEvent);
|
|
2965
|
+
for (let e in oo) a.on(e, this._onEvent);
|
|
2953
2966
|
this._map = a;
|
|
2954
2967
|
}
|
|
2955
2968
|
recycle() {
|
|
@@ -2980,7 +2993,11 @@ var no = {
|
|
|
2980
2993
|
}
|
|
2981
2994
|
_updateSettings(e, t) {
|
|
2982
2995
|
let n = this._map, r = !1;
|
|
2983
|
-
for (let i of
|
|
2996
|
+
for (let i of so) if ((i in e || i in t) && !X(e[i], t[i])) {
|
|
2997
|
+
r = !0;
|
|
2998
|
+
let t = i in e ? e[i] : ro[i];
|
|
2999
|
+
n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n, t);
|
|
3000
|
+
}
|
|
2984
3001
|
return r;
|
|
2985
3002
|
}
|
|
2986
3003
|
_updateStyle(e, t) {
|
|
@@ -2991,11 +3008,11 @@ var no = {
|
|
|
2991
3008
|
}
|
|
2992
3009
|
_updateStyleComponents({ light: e, projection: t, sky: n, terrain: r }) {
|
|
2993
3010
|
let i = this._map, a = this._styleComponents;
|
|
2994
|
-
i.style
|
|
3011
|
+
i.style?._loaded && (e && !X(e, a.light) && (a.light = e, i.setLight(e)), t && !X(t, a.projection) && t !== a.projection?.type && (a.projection = typeof t == "string" ? { type: t } : t, i.setProjection?.(a.projection)), n && !X(n, a.sky) && (a.sky = n, i.setSky(n)), r !== void 0 && !X(r, a.terrain) && (!r || i.getSource(r.source)) && (a.terrain = r, i.setTerrain(r)));
|
|
2995
3012
|
}
|
|
2996
3013
|
_updateHandlers(e, t) {
|
|
2997
3014
|
let n = this._map;
|
|
2998
|
-
for (let r of
|
|
3015
|
+
for (let r of co) {
|
|
2999
3016
|
let i = e[r] ?? !0;
|
|
3000
3017
|
X(i, t[r] ?? !0) || (i ? n[r].enable(i) : n[r].disable());
|
|
3001
3018
|
}
|
|
@@ -3016,10 +3033,10 @@ var no = {
|
|
|
3016
3033
|
} else this._hoveredFeatures = null;
|
|
3017
3034
|
}
|
|
3018
3035
|
};
|
|
3019
|
-
|
|
3036
|
+
lo.savedMaps = [];
|
|
3020
3037
|
//#endregion
|
|
3021
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3022
|
-
var
|
|
3038
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/maplibre/create-ref.js
|
|
3039
|
+
var uo = [
|
|
3023
3040
|
"setMaxBounds",
|
|
3024
3041
|
"setMinZoom",
|
|
3025
3042
|
"setMaxZoom",
|
|
@@ -3041,13 +3058,13 @@ var lo = [
|
|
|
3041
3058
|
"setFog",
|
|
3042
3059
|
"remove"
|
|
3043
3060
|
];
|
|
3044
|
-
function
|
|
3061
|
+
function fo(e) {
|
|
3045
3062
|
if (!e) return null;
|
|
3046
3063
|
let t = e.map, n = { getMap: () => t };
|
|
3047
|
-
for (let e of
|
|
3064
|
+
for (let e of po(t)) !(e in n) && !uo.includes(e) && (n[e] = t[e].bind(t));
|
|
3048
3065
|
return n;
|
|
3049
3066
|
}
|
|
3050
|
-
function
|
|
3067
|
+
function po(e) {
|
|
3051
3068
|
let t = /* @__PURE__ */ new Set(), n = e;
|
|
3052
3069
|
for (; n;) {
|
|
3053
3070
|
for (let r of Object.getOwnPropertyNames(n)) r[0] !== "_" && typeof e[r] == "function" && r !== "fire" && r !== "setEventedParent" && t.add(r);
|
|
@@ -3056,11 +3073,11 @@ function fo(e) {
|
|
|
3056
3073
|
return Array.from(t);
|
|
3057
3074
|
}
|
|
3058
3075
|
//#endregion
|
|
3059
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3060
|
-
var
|
|
3076
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/use-isomorphic-layout-effect.js
|
|
3077
|
+
var mo = typeof document < "u" ? l : s;
|
|
3061
3078
|
//#endregion
|
|
3062
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3063
|
-
function
|
|
3079
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/set-globals.js
|
|
3080
|
+
function ho(e, t) {
|
|
3064
3081
|
let { RTLTextPlugin: n, maxParallelImageRequests: r, workerCount: i, workerUrl: a } = t;
|
|
3065
3082
|
if (n && e.getRTLTextPluginStatus && e.getRTLTextPluginStatus() === "unavailable") {
|
|
3066
3083
|
let { pluginUrl: t, lazy: r = !0 } = typeof n == "string" ? { pluginUrl: n } : n;
|
|
@@ -3071,21 +3088,21 @@ function mo(e, t) {
|
|
|
3071
3088
|
r !== void 0 && e.setMaxParallelImageRequests(r), i !== void 0 && e.setWorkerCount(i), a !== void 0 && e.setWorkerUrl(a);
|
|
3072
3089
|
}
|
|
3073
3090
|
//#endregion
|
|
3074
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3075
|
-
var
|
|
3076
|
-
function
|
|
3091
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/map.js
|
|
3092
|
+
var go = r.createContext(null);
|
|
3093
|
+
function _o(e, n) {
|
|
3077
3094
|
let i = o(Xa), [a, l] = f(null), p = d(), { current: m } = d({
|
|
3078
3095
|
mapLib: null,
|
|
3079
3096
|
map: null
|
|
3080
3097
|
});
|
|
3081
3098
|
s(() => {
|
|
3082
3099
|
let n = e.mapLib, r = !0, a;
|
|
3083
|
-
return Promise.resolve(n || import("./maplibre-gl-
|
|
3100
|
+
return Promise.resolve(n || import("./maplibre-gl-DK6BxsIK.js").then((e) => /* @__PURE__ */ t(e.default, 1))).then((t) => {
|
|
3084
3101
|
if (!r) return;
|
|
3085
3102
|
if (!t) throw Error("Invalid mapLib");
|
|
3086
3103
|
let n = "Map" in t ? t : t.default;
|
|
3087
3104
|
if (!n.Map) throw Error("Invalid mapLib");
|
|
3088
|
-
|
|
3105
|
+
ho(n, e), e.reuseMaps && (a = lo.reuse(e, p.current)), a ||= new lo(n.Map, e, p.current), m.map = fo(a), m.mapLib = n, l(a), i?.onMapMount(m.map, e.id);
|
|
3089
3106
|
}).catch((t) => {
|
|
3090
3107
|
let { onError: n } = e;
|
|
3091
3108
|
n ? n({
|
|
@@ -3097,7 +3114,7 @@ function go(e, n) {
|
|
|
3097
3114
|
}), () => {
|
|
3098
3115
|
r = !1, a && (i?.onMapUnmount(e.id), e.reuseMaps ? a.recycle() : a.destroy());
|
|
3099
3116
|
};
|
|
3100
|
-
}, []),
|
|
3117
|
+
}, []), mo(() => {
|
|
3101
3118
|
a && a.setProps(e);
|
|
3102
3119
|
}), c(n, () => m.map, [a]);
|
|
3103
3120
|
let h = u(() => ({
|
|
@@ -3105,41 +3122,41 @@ function go(e, n) {
|
|
|
3105
3122
|
width: "100%",
|
|
3106
3123
|
height: "100%",
|
|
3107
3124
|
...e.style
|
|
3108
|
-
}), [e.style])
|
|
3125
|
+
}), [e.style]);
|
|
3109
3126
|
return r.createElement("div", {
|
|
3110
3127
|
id: e.id,
|
|
3111
3128
|
ref: p,
|
|
3112
3129
|
style: h
|
|
3113
|
-
}, a && r.createElement(
|
|
3130
|
+
}, a && r.createElement(go.Provider, { value: m }, r.createElement("div", {
|
|
3114
3131
|
"mapboxgl-children": "",
|
|
3115
|
-
style:
|
|
3132
|
+
style: { height: "100%" }
|
|
3116
3133
|
}, e.children)));
|
|
3117
3134
|
}
|
|
3118
|
-
var
|
|
3135
|
+
var vo = r.forwardRef(_o), yo = /box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;
|
|
3119
3136
|
function Z(e, t) {
|
|
3120
3137
|
if (!e || !t) return;
|
|
3121
3138
|
let n = e.style;
|
|
3122
3139
|
for (let e in t) {
|
|
3123
3140
|
let r = t[e];
|
|
3124
|
-
Number.isFinite(r) && !
|
|
3141
|
+
Number.isFinite(r) && !yo.test(e) ? n[e] = `${r}px` : n[e] = r;
|
|
3125
3142
|
}
|
|
3126
3143
|
}
|
|
3127
3144
|
//#endregion
|
|
3128
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3129
|
-
function
|
|
3145
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/compare-class-names.js
|
|
3146
|
+
function bo(e, t) {
|
|
3130
3147
|
if (e === t) return null;
|
|
3131
|
-
let n =
|
|
3148
|
+
let n = xo(e), r = xo(t), i = [];
|
|
3132
3149
|
for (let e of r) n.has(e) || i.push(e);
|
|
3133
3150
|
for (let e of n) r.has(e) || i.push(e);
|
|
3134
3151
|
return i.length === 0 ? null : i;
|
|
3135
3152
|
}
|
|
3136
|
-
function
|
|
3153
|
+
function xo(e) {
|
|
3137
3154
|
return new Set(e ? e.trim().split(/\s+/) : []);
|
|
3138
3155
|
}
|
|
3139
3156
|
//#endregion
|
|
3140
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3141
|
-
var
|
|
3142
|
-
let { map: n, mapLib: i } = o(
|
|
3157
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/marker.js
|
|
3158
|
+
var So = a(i((e, t) => {
|
|
3159
|
+
let { map: n, mapLib: i } = o(go), a = d({ props: e }), l = u(() => {
|
|
3143
3160
|
let t = !1;
|
|
3144
3161
|
r.Children.forEach(e.children, (e) => {
|
|
3145
3162
|
e && (t = !0);
|
|
@@ -3168,17 +3185,17 @@ var xo = a(i((e, t) => {
|
|
|
3168
3185
|
s(() => (l.addTo(n.getMap()), () => {
|
|
3169
3186
|
l.remove();
|
|
3170
3187
|
}), []);
|
|
3171
|
-
let { longitude: f, latitude: p, offset: m, style: h, draggable:
|
|
3188
|
+
let { longitude: f, latitude: p, offset: m, style: h, draggable: ee = !1, popup: g = null, rotation: _ = 0, rotationAlignment: v = "auto", pitchAlignment: y = "auto" } = e;
|
|
3172
3189
|
s(() => {
|
|
3173
3190
|
Z(l.getElement(), h);
|
|
3174
3191
|
}, [h]), c(t, () => l, []);
|
|
3175
|
-
let
|
|
3176
|
-
(l.getLngLat().lng !== f || l.getLngLat().lat !== p) && l.setLngLat([f, p]), m && !Za(l.getOffset(), m) && l.setOffset(m), l.isDraggable() !==
|
|
3177
|
-
let
|
|
3178
|
-
if (
|
|
3179
|
-
return a.current.props = e,
|
|
3180
|
-
})),
|
|
3181
|
-
let { map: n, mapLib: r } = o(
|
|
3192
|
+
let b = a.current.props;
|
|
3193
|
+
(l.getLngLat().lng !== f || l.getLngLat().lat !== p) && l.setLngLat([f, p]), m && !Za(l.getOffset(), m) && l.setOffset(m), l.isDraggable() !== ee && l.setDraggable(ee), l.getRotation() !== _ && l.setRotation(_), l.getRotationAlignment() !== v && l.setRotationAlignment(v), l.getPitchAlignment() !== y && l.setPitchAlignment(y), l.getPopup() !== g && l.setPopup(g);
|
|
3194
|
+
let x = bo(b.className, e.className);
|
|
3195
|
+
if (x) for (let e of x) l.toggleClassName(e);
|
|
3196
|
+
return a.current.props = e, te(e.children, l.getElement());
|
|
3197
|
+
})), Co = a(i((e, t) => {
|
|
3198
|
+
let { map: n, mapLib: r } = o(go), i = u(() => document.createElement("div"), []), a = d({ props: e }), l = u(() => {
|
|
3182
3199
|
let t = { ...e }, n = new r.Popup(t);
|
|
3183
3200
|
return n.setLngLat([e.longitude, e.latitude]), n.once("open", (e) => {
|
|
3184
3201
|
a.current.props.onOpen?.(e);
|
|
@@ -3196,16 +3213,16 @@ var xo = a(i((e, t) => {
|
|
|
3196
3213
|
}, [e.style]), c(t, () => l, []), l.isOpen()) {
|
|
3197
3214
|
let t = a.current.props;
|
|
3198
3215
|
(l.getLngLat().lng !== e.longitude || l.getLngLat().lat !== e.latitude) && l.setLngLat([e.longitude, e.latitude]), e.offset && !X(t.offset, e.offset) && l.setOffset(e.offset), (t.anchor !== e.anchor || t.maxWidth !== e.maxWidth) && (l.options.anchor = e.anchor, l.setMaxWidth(e.maxWidth));
|
|
3199
|
-
let n =
|
|
3216
|
+
let n = bo(t.className, e.className);
|
|
3200
3217
|
if (n) for (let e of n) l.toggleClassName(e);
|
|
3201
3218
|
a.current.props = e;
|
|
3202
3219
|
}
|
|
3203
|
-
return
|
|
3220
|
+
return te(e.children, i);
|
|
3204
3221
|
}));
|
|
3205
3222
|
//#endregion
|
|
3206
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3223
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/use-control.js
|
|
3207
3224
|
function Q(e, t, n, r) {
|
|
3208
|
-
let i = o(
|
|
3225
|
+
let i = o(go), a = u(() => e(i), []);
|
|
3209
3226
|
return s(() => {
|
|
3210
3227
|
let e = r || n || t, o = typeof t == "function" && typeof n == "function" ? t : null, s = typeof n == "function" ? n : typeof t == "function" ? t : null, { map: c } = i;
|
|
3211
3228
|
return c.hasControl(a) || (c.addControl(a, e?.position), o && o(i)), () => {
|
|
@@ -3214,26 +3231,26 @@ function Q(e, t, n, r) {
|
|
|
3214
3231
|
}, []), a;
|
|
3215
3232
|
}
|
|
3216
3233
|
//#endregion
|
|
3217
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3218
|
-
function
|
|
3234
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/attribution-control.js
|
|
3235
|
+
function wo(e) {
|
|
3219
3236
|
let t = Q(({ mapLib: t }) => new t.AttributionControl(e), { position: e.position });
|
|
3220
3237
|
return s(() => {
|
|
3221
3238
|
Z(t._container, e.style);
|
|
3222
3239
|
}, [e.style]), null;
|
|
3223
3240
|
}
|
|
3224
|
-
a(
|
|
3241
|
+
a(wo);
|
|
3225
3242
|
//#endregion
|
|
3226
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3227
|
-
function
|
|
3243
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/fullscreen-control.js
|
|
3244
|
+
function To(e) {
|
|
3228
3245
|
let t = Q(({ mapLib: t }) => new t.FullscreenControl({ container: e.containerId && document.getElementById(e.containerId) }), { position: e.position });
|
|
3229
3246
|
return s(() => {
|
|
3230
3247
|
Z(t._controlContainer, e.style);
|
|
3231
3248
|
}, [e.style]), null;
|
|
3232
3249
|
}
|
|
3233
|
-
a(
|
|
3250
|
+
a(To);
|
|
3234
3251
|
//#endregion
|
|
3235
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3236
|
-
function
|
|
3252
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/geolocate-control.js
|
|
3253
|
+
function Eo(e, t) {
|
|
3237
3254
|
let n = d({ props: e }), r = Q(({ mapLib: t }) => {
|
|
3238
3255
|
let r = new t.GeolocateControl(e), i = r._setupUI;
|
|
3239
3256
|
return r._setupUI = () => {
|
|
@@ -3254,19 +3271,19 @@ function To(e, t) {
|
|
|
3254
3271
|
Z(r._container, e.style);
|
|
3255
3272
|
}, [e.style]), null;
|
|
3256
3273
|
}
|
|
3257
|
-
a(i(
|
|
3274
|
+
a(i(Eo));
|
|
3258
3275
|
//#endregion
|
|
3259
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3260
|
-
function
|
|
3276
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/navigation-control.js
|
|
3277
|
+
function Do(e) {
|
|
3261
3278
|
let t = Q(({ mapLib: t }) => new t.NavigationControl(e), { position: e.position });
|
|
3262
3279
|
return s(() => {
|
|
3263
3280
|
Z(t._container, e.style);
|
|
3264
3281
|
}, [e.style]), null;
|
|
3265
3282
|
}
|
|
3266
|
-
var
|
|
3283
|
+
var Oo = a(Do);
|
|
3267
3284
|
//#endregion
|
|
3268
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3269
|
-
function
|
|
3285
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/scale-control.js
|
|
3286
|
+
function ko(e) {
|
|
3270
3287
|
let t = Q(({ mapLib: t }) => new t.ScaleControl(e), { position: e.position }), n = d(e), r = n.current;
|
|
3271
3288
|
n.current = e;
|
|
3272
3289
|
let { style: i } = e;
|
|
@@ -3274,28 +3291,28 @@ function Oo(e) {
|
|
|
3274
3291
|
Z(t._container, i);
|
|
3275
3292
|
}, [i]), null;
|
|
3276
3293
|
}
|
|
3277
|
-
a(
|
|
3294
|
+
a(ko);
|
|
3278
3295
|
//#endregion
|
|
3279
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3280
|
-
function
|
|
3296
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/terrain-control.js
|
|
3297
|
+
function Ao(e) {
|
|
3281
3298
|
let t = Q(({ mapLib: t }) => new t.TerrainControl(e), { position: e.position });
|
|
3282
3299
|
return s(() => {
|
|
3283
3300
|
Z(t._container, e.style);
|
|
3284
3301
|
}, [e.style]), null;
|
|
3285
3302
|
}
|
|
3286
|
-
a(
|
|
3303
|
+
a(Ao);
|
|
3287
3304
|
//#endregion
|
|
3288
|
-
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.
|
|
3289
|
-
function
|
|
3305
|
+
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.23.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/logo-control.js
|
|
3306
|
+
function jo(e) {
|
|
3290
3307
|
let t = Q(({ mapLib: t }) => new t.LogoControl(e), { position: e.position });
|
|
3291
3308
|
return s(() => {
|
|
3292
3309
|
Z(t._container, e.style);
|
|
3293
3310
|
}, [e.style]), null;
|
|
3294
3311
|
}
|
|
3295
|
-
a(
|
|
3312
|
+
a(jo);
|
|
3296
3313
|
//#endregion
|
|
3297
|
-
//#region ../../node_modules/.pnpm/react@19.2.
|
|
3298
|
-
var
|
|
3314
|
+
//#region ../../node_modules/.pnpm/react@19.2.5/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
3315
|
+
var Mo = /* @__PURE__ */ n(((e) => {
|
|
3299
3316
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
3300
3317
|
function r(e, n, r) {
|
|
3301
3318
|
var i = null;
|
|
@@ -3310,28 +3327,28 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3310
3327
|
};
|
|
3311
3328
|
}
|
|
3312
3329
|
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
3313
|
-
})),
|
|
3330
|
+
})), No = /* @__PURE__ */ n(((t) => {
|
|
3314
3331
|
process.env.NODE_ENV !== "production" && (function() {
|
|
3315
3332
|
function n(e) {
|
|
3316
3333
|
if (e == null) return null;
|
|
3317
3334
|
if (typeof e == "function") return e.$$typeof === ne ? null : e.displayName || e.name || null;
|
|
3318
3335
|
if (typeof e == "string") return e;
|
|
3319
3336
|
switch (e) {
|
|
3320
|
-
case
|
|
3321
|
-
case
|
|
3322
|
-
case
|
|
3323
|
-
case
|
|
3324
|
-
case
|
|
3337
|
+
case _: return "Fragment";
|
|
3338
|
+
case te: return "Profiler";
|
|
3339
|
+
case v: return "StrictMode";
|
|
3340
|
+
case S: return "Suspense";
|
|
3341
|
+
case C: return "SuspenseList";
|
|
3325
3342
|
case E: return "Activity";
|
|
3326
3343
|
}
|
|
3327
3344
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
3328
|
-
case
|
|
3329
|
-
case
|
|
3330
|
-
case
|
|
3331
|
-
case
|
|
3345
|
+
case g: return "Portal";
|
|
3346
|
+
case b: return e.displayName || "Context";
|
|
3347
|
+
case y: return (e._context.displayName || "Context") + ".Consumer";
|
|
3348
|
+
case x:
|
|
3332
3349
|
var t = e.render;
|
|
3333
3350
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
3334
|
-
case
|
|
3351
|
+
case w: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
|
|
3335
3352
|
case T:
|
|
3336
3353
|
t = e._payload, e = e._init;
|
|
3337
3354
|
try {
|
|
@@ -3357,7 +3374,7 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3357
3374
|
}
|
|
3358
3375
|
}
|
|
3359
3376
|
function a(e) {
|
|
3360
|
-
if (e ===
|
|
3377
|
+
if (e === _) return "<>";
|
|
3361
3378
|
if (typeof e == "object" && e && e.$$typeof === T) return "<...>";
|
|
3362
3379
|
try {
|
|
3363
3380
|
var t = n(e);
|
|
@@ -3396,7 +3413,7 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3396
3413
|
function d(e, t, n, r, i, a) {
|
|
3397
3414
|
var o = n.ref;
|
|
3398
3415
|
return e = {
|
|
3399
|
-
$$typeof:
|
|
3416
|
+
$$typeof: ee,
|
|
3400
3417
|
type: e,
|
|
3401
3418
|
key: t,
|
|
3402
3419
|
props: n,
|
|
@@ -3451,16 +3468,16 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3451
3468
|
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === T && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
3452
3469
|
}
|
|
3453
3470
|
function m(e) {
|
|
3454
|
-
return typeof e == "object" && !!e && e.$$typeof ===
|
|
3471
|
+
return typeof e == "object" && !!e && e.$$typeof === ee;
|
|
3455
3472
|
}
|
|
3456
|
-
var h = e("react"),
|
|
3473
|
+
var h = e("react"), ee = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), te = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), b = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), D = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, k = Array.isArray, A = console.createTask ? console.createTask : function() {
|
|
3457
3474
|
return null;
|
|
3458
3475
|
};
|
|
3459
3476
|
h = { react_stack_bottom_frame: function(e) {
|
|
3460
3477
|
return e();
|
|
3461
3478
|
} };
|
|
3462
3479
|
var j, M = {}, N = h.react_stack_bottom_frame.bind(h, s)(), re = A(a(s)), ie = {};
|
|
3463
|
-
t.Fragment =
|
|
3480
|
+
t.Fragment = _, t.jsx = function(e, t, n) {
|
|
3464
3481
|
var r = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
3465
3482
|
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : N, r ? A(a(e)) : re);
|
|
3466
3483
|
}, t.jsxs = function(e, t, n) {
|
|
@@ -3469,8 +3486,8 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3469
3486
|
};
|
|
3470
3487
|
})();
|
|
3471
3488
|
})), $ = (/* @__PURE__ */ n(((e, t) => {
|
|
3472
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
3473
|
-
})))(),
|
|
3489
|
+
process.env.NODE_ENV === "production" ? t.exports = Mo() : t.exports = No();
|
|
3490
|
+
})))(), Po = va({
|
|
3474
3491
|
latitudeField: Vi().optional(),
|
|
3475
3492
|
longitudeField: Vi().optional(),
|
|
3476
3493
|
locationField: Vi().optional(),
|
|
@@ -3479,7 +3496,7 @@ var jo = /* @__PURE__ */ n(((e) => {
|
|
|
3479
3496
|
zoom: ca().optional(),
|
|
3480
3497
|
center: wa([ca(), ca()]).optional()
|
|
3481
3498
|
});
|
|
3482
|
-
function
|
|
3499
|
+
function Fo(e) {
|
|
3483
3500
|
return e.data ? e.data : e.staticData ? {
|
|
3484
3501
|
provider: "value",
|
|
3485
3502
|
items: e.staticData
|
|
@@ -3488,7 +3505,7 @@ function Po(e) {
|
|
|
3488
3505
|
object: e.objectName
|
|
3489
3506
|
} : null;
|
|
3490
3507
|
}
|
|
3491
|
-
function
|
|
3508
|
+
function Io(e) {
|
|
3492
3509
|
if (e) {
|
|
3493
3510
|
if (typeof e == "string") {
|
|
3494
3511
|
let t = e.split(" "), n = t[0], r = t[1]?.toLowerCase() === "desc" ? "desc" : "asc";
|
|
@@ -3497,7 +3514,7 @@ function Fo(e) {
|
|
|
3497
3514
|
if (Array.isArray(e)) return e.reduce((e, t) => (t.field && t.order && (e[t.field] = t.order), e), {});
|
|
3498
3515
|
}
|
|
3499
3516
|
}
|
|
3500
|
-
function
|
|
3517
|
+
function Lo(e) {
|
|
3501
3518
|
if (e.locationField || e.latitudeField) return {
|
|
3502
3519
|
locationField: e.locationField,
|
|
3503
3520
|
latitudeField: e.latitudeField,
|
|
@@ -3509,7 +3526,7 @@ function Io(e) {
|
|
|
3509
3526
|
};
|
|
3510
3527
|
let t = null;
|
|
3511
3528
|
if (e.filter && typeof e.filter == "object" && "map" in e.filter ? t = e.filter.map : e.map && (t = e.map), t) {
|
|
3512
|
-
let e =
|
|
3529
|
+
let e = Po.safeParse(t);
|
|
3513
3530
|
return e.success || console.warn("[ObjectMap] Invalid map configuration:", e.error.format()), t;
|
|
3514
3531
|
}
|
|
3515
3532
|
return {
|
|
@@ -3522,7 +3539,7 @@ function Io(e) {
|
|
|
3522
3539
|
center: [0, 0]
|
|
3523
3540
|
};
|
|
3524
3541
|
}
|
|
3525
|
-
function
|
|
3542
|
+
function Ro(e, t) {
|
|
3526
3543
|
if (t.latitudeField && t.longitudeField) {
|
|
3527
3544
|
let n = e[t.latitudeField], r = e[t.longitudeField];
|
|
3528
3545
|
if (typeof n == "number" && typeof r == "number") return [n, r];
|
|
@@ -3544,7 +3561,7 @@ function Lo(e, t) {
|
|
|
3544
3561
|
}
|
|
3545
3562
|
return null;
|
|
3546
3563
|
}
|
|
3547
|
-
function
|
|
3564
|
+
function zo(e, t, n = 50) {
|
|
3548
3565
|
if (e.length <= 1 || t >= 15) return e.map((e) => ({
|
|
3549
3566
|
id: e.id,
|
|
3550
3567
|
coordinates: e.coordinates,
|
|
@@ -3575,41 +3592,41 @@ function Ro(e, t, n = 50) {
|
|
|
3575
3592
|
}
|
|
3576
3593
|
}), a;
|
|
3577
3594
|
}
|
|
3578
|
-
var
|
|
3579
|
-
let [p,
|
|
3595
|
+
var Bo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick: i, onEdit: a, onDelete: o, enableClustering: c, clusterRadius: l = 50, ...d }) => {
|
|
3596
|
+
let [p, g] = f([]), [te, y] = f(!0), [b, x] = f(null), [S, C] = f(null), [w, T] = f(null), [E, ne] = f(""), D = Fo(e), O = u(() => D, [JSON.stringify(D)]), k = Lo(e), A = O?.provider === "value";
|
|
3580
3597
|
s(() => {
|
|
3581
3598
|
(async () => {
|
|
3582
3599
|
try {
|
|
3583
|
-
if (
|
|
3600
|
+
if (y(!0), d.data) {
|
|
3584
3601
|
let e = d.data;
|
|
3585
3602
|
if (Array.isArray(e)) {
|
|
3586
|
-
|
|
3603
|
+
g(e), y(!1);
|
|
3587
3604
|
return;
|
|
3588
3605
|
}
|
|
3589
3606
|
}
|
|
3590
3607
|
if (e.data) {
|
|
3591
3608
|
let t = e.data;
|
|
3592
3609
|
if (Array.isArray(t)) {
|
|
3593
|
-
|
|
3610
|
+
g(t), y(!1);
|
|
3594
3611
|
return;
|
|
3595
3612
|
}
|
|
3596
3613
|
}
|
|
3597
3614
|
if (A && O?.provider === "value") {
|
|
3598
|
-
|
|
3615
|
+
g(O.items), y(!1);
|
|
3599
3616
|
return;
|
|
3600
3617
|
}
|
|
3601
3618
|
if (!t || typeof t.find != "function") throw Error("DataSource required for object/api providers");
|
|
3602
3619
|
if (O?.provider === "object") {
|
|
3603
|
-
let n = O.object, r = m(
|
|
3604
|
-
|
|
3620
|
+
let n = O.object, r = m(S?.fields);
|
|
3621
|
+
g(h(await t.find(n, {
|
|
3605
3622
|
$filter: e.filter,
|
|
3606
|
-
$orderby:
|
|
3623
|
+
$orderby: Io(e.sort),
|
|
3607
3624
|
...r.length > 0 ? { $expand: r } : {}
|
|
3608
3625
|
})));
|
|
3609
|
-
} else O?.provider === "api" && (console.warn("API provider not yet implemented for ObjectMap"),
|
|
3610
|
-
|
|
3626
|
+
} else O?.provider === "api" && (console.warn("API provider not yet implemented for ObjectMap"), g([]));
|
|
3627
|
+
y(!1);
|
|
3611
3628
|
} catch (e) {
|
|
3612
|
-
|
|
3629
|
+
x(e), y(!1);
|
|
3613
3630
|
}
|
|
3614
3631
|
})();
|
|
3615
3632
|
}, [
|
|
@@ -3618,14 +3635,14 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3618
3635
|
A,
|
|
3619
3636
|
e.filter,
|
|
3620
3637
|
e.sort,
|
|
3621
|
-
|
|
3638
|
+
S
|
|
3622
3639
|
]), s(() => {
|
|
3623
3640
|
!A && t && (async () => {
|
|
3624
3641
|
try {
|
|
3625
3642
|
if (!t) return;
|
|
3626
3643
|
let n = O?.provider === "object" ? O.object : e.objectName;
|
|
3627
3644
|
if (!n) return;
|
|
3628
|
-
|
|
3645
|
+
C(await t.getObjectSchema(n));
|
|
3629
3646
|
} catch (e) {
|
|
3630
3647
|
console.error("Failed to fetch object schema:", e);
|
|
3631
3648
|
}
|
|
@@ -3640,7 +3657,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3640
3657
|
let e = 0;
|
|
3641
3658
|
return {
|
|
3642
3659
|
markers: p.map((t, n) => {
|
|
3643
|
-
let r =
|
|
3660
|
+
let r = Ro(t, k);
|
|
3644
3661
|
if (!r) return e++, null;
|
|
3645
3662
|
let i = k.titleField ? t[k.titleField] : "Marker", a = k.descriptionField ? t[k.descriptionField] : void 0, [o, s] = r;
|
|
3646
3663
|
return !isFinite(o) || !isFinite(s) || o < -90 || o > 90 || s < -180 || s > 180 ? (e++, null) : {
|
|
@@ -3653,7 +3670,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3653
3670
|
}).filter((e) => e !== null),
|
|
3654
3671
|
invalidCount: e
|
|
3655
3672
|
};
|
|
3656
|
-
}, [p, k]), N = u(() => j.find((e) => e.id ===
|
|
3673
|
+
}, [p, k]), N = u(() => j.find((e) => e.id === w), [j, w]), [re, ie] = f(k.zoom || 3), P = ee({
|
|
3657
3674
|
navigation: e.navigation,
|
|
3658
3675
|
objectName: e.objectName,
|
|
3659
3676
|
onRowClick: i
|
|
@@ -3661,7 +3678,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3661
3678
|
if (!E.trim()) return j;
|
|
3662
3679
|
let e = E.toLowerCase();
|
|
3663
3680
|
return j.filter((t) => t.title?.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e));
|
|
3664
|
-
}, [j, E]), I = u(() => c ?? (e.enableClustering || F.length > 100) ?
|
|
3681
|
+
}, [j, E]), I = u(() => c ?? (e.enableClustering || F.length > 100) ? zo(F, re, l) : F.map((e) => ({
|
|
3665
3682
|
id: e.id,
|
|
3666
3683
|
coordinates: e.coordinates,
|
|
3667
3684
|
markers: [e],
|
|
@@ -3685,8 +3702,8 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3685
3702
|
zoom: k.zoom || 3
|
|
3686
3703
|
};
|
|
3687
3704
|
}, [F, k]);
|
|
3688
|
-
return
|
|
3689
|
-
className:
|
|
3705
|
+
return te ? /* @__PURE__ */ (0, $.jsx)("div", {
|
|
3706
|
+
className: v("min-w-0 overflow-hidden", n),
|
|
3690
3707
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
3691
3708
|
className: "flex items-center justify-center h-96 bg-muted rounded-lg border",
|
|
3692
3709
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
@@ -3694,17 +3711,17 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3694
3711
|
children: "Loading map..."
|
|
3695
3712
|
})
|
|
3696
3713
|
})
|
|
3697
|
-
}) :
|
|
3698
|
-
className:
|
|
3714
|
+
}) : b ? /* @__PURE__ */ (0, $.jsx)("div", {
|
|
3715
|
+
className: v("min-w-0 overflow-hidden", n),
|
|
3699
3716
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
3700
3717
|
className: "flex items-center justify-center h-96 bg-muted rounded-lg border",
|
|
3701
3718
|
children: /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
3702
3719
|
className: "text-destructive",
|
|
3703
|
-
children: ["Error: ",
|
|
3720
|
+
children: ["Error: ", b.message]
|
|
3704
3721
|
})
|
|
3705
3722
|
})
|
|
3706
3723
|
}) : /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
3707
|
-
className:
|
|
3724
|
+
className: v("min-w-0 overflow-hidden", n),
|
|
3708
3725
|
children: [
|
|
3709
3726
|
M > 0 && /* @__PURE__ */ (0, $.jsx)("div", {
|
|
3710
3727
|
className: "mb-2 p-2 text-sm text-yellow-800 bg-yellow-50 border border-yellow-200 rounded",
|
|
@@ -3722,7 +3739,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3722
3739
|
}),
|
|
3723
3740
|
/* @__PURE__ */ (0, $.jsx)("div", {
|
|
3724
3741
|
className: "relative border rounded-lg overflow-hidden bg-muted h-[300px] sm:h-[400px] md:h-[500px] lg:h-[600px] w-full",
|
|
3725
|
-
children: /* @__PURE__ */ (0, $.jsxs)(
|
|
3742
|
+
children: /* @__PURE__ */ (0, $.jsxs)(vo, {
|
|
3726
3743
|
initialViewState: ae,
|
|
3727
3744
|
style: {
|
|
3728
3745
|
width: "100%",
|
|
@@ -3734,12 +3751,12 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3734
3751
|
touchPitch: !0,
|
|
3735
3752
|
onZoom: (e) => ie(Math.round(e.viewState.zoom)),
|
|
3736
3753
|
children: [
|
|
3737
|
-
/* @__PURE__ */ (0, $.jsx)(
|
|
3754
|
+
/* @__PURE__ */ (0, $.jsx)(Oo, {
|
|
3738
3755
|
position: "top-right",
|
|
3739
3756
|
showCompass: !0,
|
|
3740
3757
|
showZoom: !0
|
|
3741
3758
|
}),
|
|
3742
|
-
I.map((e) => e.isCluster ? /* @__PURE__ */ (0, $.jsx)(
|
|
3759
|
+
I.map((e) => e.isCluster ? /* @__PURE__ */ (0, $.jsx)(So, {
|
|
3743
3760
|
longitude: e.coordinates[0],
|
|
3744
3761
|
latitude: e.coordinates[1],
|
|
3745
3762
|
anchor: "center",
|
|
@@ -3752,7 +3769,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3752
3769
|
title: `${e.markers.length} markers`,
|
|
3753
3770
|
children: e.markers.length
|
|
3754
3771
|
})
|
|
3755
|
-
}, e.id) : /* @__PURE__ */ (0, $.jsx)(
|
|
3772
|
+
}, e.id) : /* @__PURE__ */ (0, $.jsx)(So, {
|
|
3756
3773
|
longitude: e.coordinates[0],
|
|
3757
3774
|
latitude: e.coordinates[1],
|
|
3758
3775
|
anchor: "bottom",
|
|
@@ -3766,7 +3783,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3766
3783
|
children: "📍"
|
|
3767
3784
|
})
|
|
3768
3785
|
}, e.id)),
|
|
3769
|
-
N && /* @__PURE__ */ (0, $.jsx)(
|
|
3786
|
+
N && /* @__PURE__ */ (0, $.jsx)(Co, {
|
|
3770
3787
|
longitude: N.coordinates[0],
|
|
3771
3788
|
latitude: N.coordinates[1],
|
|
3772
3789
|
anchor: "top",
|
|
@@ -3801,7 +3818,7 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3801
3818
|
]
|
|
3802
3819
|
})
|
|
3803
3820
|
}),
|
|
3804
|
-
P.isOverlay && /* @__PURE__ */ (0, $.jsx)(
|
|
3821
|
+
P.isOverlay && /* @__PURE__ */ (0, $.jsx)(_, {
|
|
3805
3822
|
...P,
|
|
3806
3823
|
title: "Location Details",
|
|
3807
3824
|
children: (e) => /* @__PURE__ */ (0, $.jsx)("div", {
|
|
@@ -3820,15 +3837,15 @@ var zo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
3820
3837
|
})
|
|
3821
3838
|
]
|
|
3822
3839
|
});
|
|
3823
|
-
},
|
|
3824
|
-
let { dataSource: n } =
|
|
3825
|
-
return /* @__PURE__ */ (0, $.jsx)(
|
|
3840
|
+
}, Vo = ({ schema: e, ...t }) => {
|
|
3841
|
+
let { dataSource: n } = g() || {};
|
|
3842
|
+
return /* @__PURE__ */ (0, $.jsx)(Bo, {
|
|
3826
3843
|
schema: e,
|
|
3827
3844
|
dataSource: n,
|
|
3828
3845
|
...t
|
|
3829
3846
|
});
|
|
3830
3847
|
};
|
|
3831
|
-
console.log("Registering object-map..."), p.register("object-map",
|
|
3848
|
+
console.log("Registering object-map..."), p.register("object-map", Vo, {
|
|
3832
3849
|
namespace: "plugin-map",
|
|
3833
3850
|
label: "Object Map",
|
|
3834
3851
|
category: "view",
|
|
@@ -3843,7 +3860,7 @@ console.log("Registering object-map..."), p.register("object-map", Bo, {
|
|
|
3843
3860
|
label: "Map Config",
|
|
3844
3861
|
description: "latitudeField, longitudeField, titleField"
|
|
3845
3862
|
}]
|
|
3846
|
-
}), p.register("map",
|
|
3863
|
+
}), p.register("map", Vo, {
|
|
3847
3864
|
namespace: "view",
|
|
3848
3865
|
label: "Map View",
|
|
3849
3866
|
category: "view",
|
|
@@ -3860,4 +3877,4 @@ console.log("Registering object-map..."), p.register("object-map", Bo, {
|
|
|
3860
3877
|
}]
|
|
3861
3878
|
});
|
|
3862
3879
|
//#endregion
|
|
3863
|
-
export {
|
|
3880
|
+
export { Bo as ObjectMap, Vo as ObjectMapRenderer };
|