zywlagent 0.1.3 → 0.1.5
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/chunks/{index-CRD1Z7Xy.js → index-Bfu4BZ3N.js} +185 -184
- package/dist/gis-agent.js +15 -16
- package/package.json +1 -1
|
@@ -4,19 +4,19 @@ function H0() {
|
|
|
4
4
|
if (Cd) return Hl;
|
|
5
5
|
Cd = 1;
|
|
6
6
|
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
7
|
-
function m(f, Y,
|
|
7
|
+
function m(f, Y, z) {
|
|
8
8
|
var S = null;
|
|
9
|
-
if (
|
|
10
|
-
|
|
9
|
+
if (z !== void 0 && (S = "" + z), Y.key !== void 0 && (S = "" + Y.key), "key" in Y) {
|
|
10
|
+
z = {};
|
|
11
11
|
for (var C in Y)
|
|
12
|
-
C !== "key" && (
|
|
13
|
-
} else
|
|
14
|
-
return Y =
|
|
12
|
+
C !== "key" && (z[C] = Y[C]);
|
|
13
|
+
} else z = Y;
|
|
14
|
+
return Y = z.ref, {
|
|
15
15
|
$$typeof: u,
|
|
16
16
|
type: f,
|
|
17
17
|
key: S,
|
|
18
18
|
ref: Y !== void 0 ? Y : null,
|
|
19
|
-
props:
|
|
19
|
+
props: z
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
return Hl.Fragment = o, Hl.jsx = m, Hl.jsxs = m, Hl;
|
|
@@ -63,9 +63,9 @@ function X0() {
|
|
|
63
63
|
return V !== 0 ? V : M.id - G.id;
|
|
64
64
|
}
|
|
65
65
|
if (u.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
|
|
66
|
-
var
|
|
66
|
+
var z = performance;
|
|
67
67
|
u.unstable_now = function() {
|
|
68
|
-
return
|
|
68
|
+
return z.now();
|
|
69
69
|
};
|
|
70
70
|
} else {
|
|
71
71
|
var S = Date, C = S.now();
|
|
@@ -255,7 +255,7 @@ var Xd;
|
|
|
255
255
|
function U0() {
|
|
256
256
|
if (Xd) return nt;
|
|
257
257
|
Xd = 1;
|
|
258
|
-
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), f = /* @__PURE__ */ Symbol.for("react.strict_mode"), Y = /* @__PURE__ */ Symbol.for("react.profiler"),
|
|
258
|
+
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), f = /* @__PURE__ */ Symbol.for("react.strict_mode"), Y = /* @__PURE__ */ Symbol.for("react.profiler"), z = /* @__PURE__ */ Symbol.for("react.consumer"), S = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.memo"), X = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), F = Symbol.iterator;
|
|
259
259
|
function P(g) {
|
|
260
260
|
return g === null || typeof g != "object" ? null : (g = F && g[F] || g["@@iterator"], typeof g == "function" ? g : null);
|
|
261
261
|
}
|
|
@@ -519,7 +519,7 @@ function U0() {
|
|
|
519
519
|
Provider: null,
|
|
520
520
|
Consumer: null
|
|
521
521
|
}, g.Provider = g, g.Consumer = {
|
|
522
|
-
$$typeof:
|
|
522
|
+
$$typeof: z,
|
|
523
523
|
_context: g
|
|
524
524
|
}, g;
|
|
525
525
|
}, nt.createElement = function(g, A, Z) {
|
|
@@ -648,7 +648,7 @@ function Q0() {
|
|
|
648
648
|
p: 0,
|
|
649
649
|
findDOMNode: null
|
|
650
650
|
}, Y = /* @__PURE__ */ Symbol.for("react.portal");
|
|
651
|
-
function
|
|
651
|
+
function z(O, x, X) {
|
|
652
652
|
var B = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
653
653
|
return {
|
|
654
654
|
$$typeof: Y,
|
|
@@ -668,7 +668,7 @@ function Q0() {
|
|
|
668
668
|
var X = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
669
669
|
if (!x || x.nodeType !== 1 && x.nodeType !== 9 && x.nodeType !== 11)
|
|
670
670
|
throw Error(o(299));
|
|
671
|
-
return
|
|
671
|
+
return z(O, x, null, X);
|
|
672
672
|
}, re.flushSync = function(O) {
|
|
673
673
|
var x = S.T, X = f.p;
|
|
674
674
|
try {
|
|
@@ -779,7 +779,7 @@ function K0() {
|
|
|
779
779
|
function Y(t) {
|
|
780
780
|
return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function z(t) {
|
|
783
783
|
var e = t, a = t;
|
|
784
784
|
if (t.alternate) for (; e.return; ) e = e.return;
|
|
785
785
|
else {
|
|
@@ -805,13 +805,13 @@ function K0() {
|
|
|
805
805
|
return null;
|
|
806
806
|
}
|
|
807
807
|
function O(t) {
|
|
808
|
-
if (
|
|
808
|
+
if (z(t) !== t)
|
|
809
809
|
throw Error(f(188));
|
|
810
810
|
}
|
|
811
811
|
function x(t) {
|
|
812
812
|
var e = t.alternate;
|
|
813
813
|
if (!e) {
|
|
814
|
-
if (e =
|
|
814
|
+
if (e = z(t), e === null) throw Error(f(188));
|
|
815
815
|
return e !== t ? null : t;
|
|
816
816
|
}
|
|
817
817
|
for (var a = t, n = e; ; ) {
|
|
@@ -2861,16 +2861,16 @@ Error generating stack: ` + n.message + `
|
|
|
2861
2861
|
function c(b) {
|
|
2862
2862
|
return t && b.alternate === null && (b.flags |= 67108866), b;
|
|
2863
2863
|
}
|
|
2864
|
-
function r(b, p, h,
|
|
2865
|
-
return p === null || p.tag !== 6 ? (p = Zc(h, b.mode,
|
|
2864
|
+
function r(b, p, h, T) {
|
|
2865
|
+
return p === null || p.tag !== 6 ? (p = Zc(h, b.mode, T), p.return = b, p) : (p = l(p, h), p.return = b, p);
|
|
2866
2866
|
}
|
|
2867
|
-
function d(b, p, h,
|
|
2867
|
+
function d(b, p, h, T) {
|
|
2868
2868
|
var q = h.type;
|
|
2869
2869
|
return q === _ ? N(
|
|
2870
2870
|
b,
|
|
2871
2871
|
p,
|
|
2872
2872
|
h.props.children,
|
|
2873
|
-
|
|
2873
|
+
T,
|
|
2874
2874
|
h.key
|
|
2875
2875
|
) : p !== null && (p.elementType === q || typeof q == "object" && q !== null && q.$$typeof === Ht && Va(q) === p.type) ? (p = l(p, h.props), ol(p, h), p.return = b, p) : (p = ci(
|
|
2876
2876
|
h.type,
|
|
@@ -2878,17 +2878,17 @@ Error generating stack: ` + n.message + `
|
|
|
2878
2878
|
h.props,
|
|
2879
2879
|
null,
|
|
2880
2880
|
b.mode,
|
|
2881
|
-
|
|
2881
|
+
T
|
|
2882
2882
|
), ol(p, h), p.return = b, p);
|
|
2883
2883
|
}
|
|
2884
|
-
function v(b, p, h,
|
|
2885
|
-
return p === null || p.tag !== 4 || p.stateNode.containerInfo !== h.containerInfo || p.stateNode.implementation !== h.implementation ? (p = Hc(h, b.mode,
|
|
2884
|
+
function v(b, p, h, T) {
|
|
2885
|
+
return p === null || p.tag !== 4 || p.stateNode.containerInfo !== h.containerInfo || p.stateNode.implementation !== h.implementation ? (p = Hc(h, b.mode, T), p.return = b, p) : (p = l(p, h.children || []), p.return = b, p);
|
|
2886
2886
|
}
|
|
2887
|
-
function N(b, p, h,
|
|
2887
|
+
function N(b, p, h, T, q) {
|
|
2888
2888
|
return p === null || p.tag !== 7 ? (p = Ra(
|
|
2889
2889
|
h,
|
|
2890
2890
|
b.mode,
|
|
2891
|
-
|
|
2891
|
+
T,
|
|
2892
2892
|
q
|
|
2893
2893
|
), p.return = b, p) : (p = l(p, h), p.return = b, p);
|
|
2894
2894
|
}
|
|
@@ -2938,91 +2938,91 @@ Error generating stack: ` + n.message + `
|
|
|
2938
2938
|
}
|
|
2939
2939
|
return null;
|
|
2940
2940
|
}
|
|
2941
|
-
function y(b, p, h,
|
|
2941
|
+
function y(b, p, h, T) {
|
|
2942
2942
|
var q = p !== null ? p.key : null;
|
|
2943
2943
|
if (typeof h == "string" && h !== "" || typeof h == "number" || typeof h == "bigint")
|
|
2944
|
-
return q !== null ? null : r(b, p, "" + h,
|
|
2944
|
+
return q !== null ? null : r(b, p, "" + h, T);
|
|
2945
2945
|
if (typeof h == "object" && h !== null) {
|
|
2946
2946
|
switch (h.$$typeof) {
|
|
2947
2947
|
case P:
|
|
2948
|
-
return h.key === q ? d(b, p, h,
|
|
2948
|
+
return h.key === q ? d(b, p, h, T) : null;
|
|
2949
2949
|
case L:
|
|
2950
|
-
return h.key === q ? v(b, p, h,
|
|
2950
|
+
return h.key === q ? v(b, p, h, T) : null;
|
|
2951
2951
|
case Ht:
|
|
2952
|
-
return h = Va(h), y(b, p, h,
|
|
2952
|
+
return h = Va(h), y(b, p, h, T);
|
|
2953
2953
|
}
|
|
2954
2954
|
if (St(h) || E(h))
|
|
2955
|
-
return q !== null ? null : N(b, p, h,
|
|
2955
|
+
return q !== null ? null : N(b, p, h, T, null);
|
|
2956
2956
|
if (typeof h.then == "function")
|
|
2957
2957
|
return y(
|
|
2958
2958
|
b,
|
|
2959
2959
|
p,
|
|
2960
2960
|
mi(h),
|
|
2961
|
-
|
|
2961
|
+
T
|
|
2962
2962
|
);
|
|
2963
2963
|
if (h.$$typeof === st)
|
|
2964
2964
|
return y(
|
|
2965
2965
|
b,
|
|
2966
2966
|
p,
|
|
2967
2967
|
si(b, h),
|
|
2968
|
-
|
|
2968
|
+
T
|
|
2969
2969
|
);
|
|
2970
2970
|
gi(b, h);
|
|
2971
2971
|
}
|
|
2972
2972
|
return null;
|
|
2973
2973
|
}
|
|
2974
|
-
function w(b, p, h,
|
|
2975
|
-
if (typeof
|
|
2976
|
-
return b = b.get(h) || null, r(p, b, "" +
|
|
2977
|
-
if (typeof
|
|
2978
|
-
switch (
|
|
2974
|
+
function w(b, p, h, T, q) {
|
|
2975
|
+
if (typeof T == "string" && T !== "" || typeof T == "number" || typeof T == "bigint")
|
|
2976
|
+
return b = b.get(h) || null, r(p, b, "" + T, q);
|
|
2977
|
+
if (typeof T == "object" && T !== null) {
|
|
2978
|
+
switch (T.$$typeof) {
|
|
2979
2979
|
case P:
|
|
2980
2980
|
return b = b.get(
|
|
2981
|
-
|
|
2982
|
-
) || null, d(p, b,
|
|
2981
|
+
T.key === null ? h : T.key
|
|
2982
|
+
) || null, d(p, b, T, q);
|
|
2983
2983
|
case L:
|
|
2984
2984
|
return b = b.get(
|
|
2985
|
-
|
|
2986
|
-
) || null, v(p, b,
|
|
2985
|
+
T.key === null ? h : T.key
|
|
2986
|
+
) || null, v(p, b, T, q);
|
|
2987
2987
|
case Ht:
|
|
2988
|
-
return
|
|
2988
|
+
return T = Va(T), w(
|
|
2989
2989
|
b,
|
|
2990
2990
|
p,
|
|
2991
2991
|
h,
|
|
2992
|
-
|
|
2992
|
+
T,
|
|
2993
2993
|
q
|
|
2994
2994
|
);
|
|
2995
2995
|
}
|
|
2996
|
-
if (St(
|
|
2997
|
-
return b = b.get(h) || null, N(p, b,
|
|
2998
|
-
if (typeof
|
|
2996
|
+
if (St(T) || E(T))
|
|
2997
|
+
return b = b.get(h) || null, N(p, b, T, q, null);
|
|
2998
|
+
if (typeof T.then == "function")
|
|
2999
2999
|
return w(
|
|
3000
3000
|
b,
|
|
3001
3001
|
p,
|
|
3002
3002
|
h,
|
|
3003
|
-
mi(
|
|
3003
|
+
mi(T),
|
|
3004
3004
|
q
|
|
3005
3005
|
);
|
|
3006
|
-
if (
|
|
3006
|
+
if (T.$$typeof === st)
|
|
3007
3007
|
return w(
|
|
3008
3008
|
b,
|
|
3009
3009
|
p,
|
|
3010
3010
|
h,
|
|
3011
|
-
si(p,
|
|
3011
|
+
si(p, T),
|
|
3012
3012
|
q
|
|
3013
3013
|
);
|
|
3014
|
-
gi(p,
|
|
3014
|
+
gi(p, T);
|
|
3015
3015
|
}
|
|
3016
3016
|
return null;
|
|
3017
3017
|
}
|
|
3018
|
-
function U(b, p, h,
|
|
3018
|
+
function U(b, p, h, T) {
|
|
3019
3019
|
for (var q = null, xt = null, K = p, ct = p = 0, bt = null; K !== null && ct < h.length; ct++) {
|
|
3020
3020
|
K.index > ct ? (bt = K, K = null) : bt = K.sibling;
|
|
3021
3021
|
var wt = y(
|
|
3022
3022
|
b,
|
|
3023
3023
|
K,
|
|
3024
3024
|
h[ct],
|
|
3025
|
-
|
|
3025
|
+
T
|
|
3026
3026
|
);
|
|
3027
3027
|
if (wt === null) {
|
|
3028
3028
|
K === null && (K = bt);
|
|
@@ -3034,7 +3034,7 @@ Error generating stack: ` + n.message + `
|
|
|
3034
3034
|
return a(b, K), ht && Pe(b, ct), q;
|
|
3035
3035
|
if (K === null) {
|
|
3036
3036
|
for (; ct < h.length; ct++)
|
|
3037
|
-
K = D(b, h[ct],
|
|
3037
|
+
K = D(b, h[ct], T), K !== null && (p = i(
|
|
3038
3038
|
K,
|
|
3039
3039
|
p,
|
|
3040
3040
|
ct
|
|
@@ -3047,7 +3047,7 @@ Error generating stack: ` + n.message + `
|
|
|
3047
3047
|
b,
|
|
3048
3048
|
ct,
|
|
3049
3049
|
h[ct],
|
|
3050
|
-
|
|
3050
|
+
T
|
|
3051
3051
|
), bt !== null && (t && bt.alternate !== null && K.delete(
|
|
3052
3052
|
bt.key === null ? ct : bt.key
|
|
3053
3053
|
), p = i(
|
|
@@ -3059,11 +3059,11 @@ Error generating stack: ` + n.message + `
|
|
|
3059
3059
|
return e(b, Za);
|
|
3060
3060
|
}), ht && Pe(b, ct), q;
|
|
3061
3061
|
}
|
|
3062
|
-
function tt(b, p, h,
|
|
3062
|
+
function tt(b, p, h, T) {
|
|
3063
3063
|
if (h == null) throw Error(f(151));
|
|
3064
3064
|
for (var q = null, xt = null, K = p, ct = p = 0, bt = null, wt = h.next(); K !== null && !wt.done; ct++, wt = h.next()) {
|
|
3065
3065
|
K.index > ct ? (bt = K, K = null) : bt = K.sibling;
|
|
3066
|
-
var Za = y(b, K, wt.value,
|
|
3066
|
+
var Za = y(b, K, wt.value, T);
|
|
3067
3067
|
if (Za === null) {
|
|
3068
3068
|
K === null && (K = bt);
|
|
3069
3069
|
break;
|
|
@@ -3074,16 +3074,16 @@ Error generating stack: ` + n.message + `
|
|
|
3074
3074
|
return a(b, K), ht && Pe(b, ct), q;
|
|
3075
3075
|
if (K === null) {
|
|
3076
3076
|
for (; !wt.done; ct++, wt = h.next())
|
|
3077
|
-
wt = D(b, wt.value,
|
|
3077
|
+
wt = D(b, wt.value, T), wt !== null && (p = i(wt, p, ct), xt === null ? q = wt : xt.sibling = wt, xt = wt);
|
|
3078
3078
|
return ht && Pe(b, ct), q;
|
|
3079
3079
|
}
|
|
3080
3080
|
for (K = n(K); !wt.done; ct++, wt = h.next())
|
|
3081
|
-
wt = w(K, b, ct, wt.value,
|
|
3081
|
+
wt = w(K, b, ct, wt.value, T), wt !== null && (t && wt.alternate !== null && K.delete(wt.key === null ? ct : wt.key), p = i(wt, p, ct), xt === null ? q = wt : xt.sibling = wt, xt = wt);
|
|
3082
3082
|
return t && K.forEach(function(Z0) {
|
|
3083
3083
|
return e(b, Z0);
|
|
3084
3084
|
}), ht && Pe(b, ct), q;
|
|
3085
3085
|
}
|
|
3086
|
-
function Gt(b, p, h,
|
|
3086
|
+
function Gt(b, p, h, T) {
|
|
3087
3087
|
if (typeof h == "object" && h !== null && h.type === _ && h.key === null && (h = h.props.children), typeof h == "object" && h !== null) {
|
|
3088
3088
|
switch (h.$$typeof) {
|
|
3089
3089
|
case P:
|
|
@@ -3095,17 +3095,17 @@ Error generating stack: ` + n.message + `
|
|
|
3095
3095
|
a(
|
|
3096
3096
|
b,
|
|
3097
3097
|
p.sibling
|
|
3098
|
-
),
|
|
3098
|
+
), T = l(
|
|
3099
3099
|
p,
|
|
3100
3100
|
h.props.children
|
|
3101
|
-
),
|
|
3101
|
+
), T.return = b, b = T;
|
|
3102
3102
|
break t;
|
|
3103
3103
|
}
|
|
3104
3104
|
} else if (p.elementType === q || typeof q == "object" && q !== null && q.$$typeof === Ht && Va(q) === p.type) {
|
|
3105
3105
|
a(
|
|
3106
3106
|
b,
|
|
3107
3107
|
p.sibling
|
|
3108
|
-
),
|
|
3108
|
+
), T = l(p, h.props), ol(T, h), T.return = b, b = T;
|
|
3109
3109
|
break t;
|
|
3110
3110
|
}
|
|
3111
3111
|
a(b, p);
|
|
@@ -3113,19 +3113,19 @@ Error generating stack: ` + n.message + `
|
|
|
3113
3113
|
} else e(b, p);
|
|
3114
3114
|
p = p.sibling;
|
|
3115
3115
|
}
|
|
3116
|
-
h.type === _ ? (
|
|
3116
|
+
h.type === _ ? (T = Ra(
|
|
3117
3117
|
h.props.children,
|
|
3118
3118
|
b.mode,
|
|
3119
|
-
|
|
3119
|
+
T,
|
|
3120
3120
|
h.key
|
|
3121
|
-
),
|
|
3121
|
+
), T.return = b, b = T) : (T = ci(
|
|
3122
3122
|
h.type,
|
|
3123
3123
|
h.key,
|
|
3124
3124
|
h.props,
|
|
3125
3125
|
null,
|
|
3126
3126
|
b.mode,
|
|
3127
|
-
|
|
3128
|
-
), ol(
|
|
3127
|
+
T
|
|
3128
|
+
), ol(T, h), T.return = b, b = T);
|
|
3129
3129
|
}
|
|
3130
3130
|
return c(b);
|
|
3131
3131
|
case L:
|
|
@@ -3136,7 +3136,7 @@ Error generating stack: ` + n.message + `
|
|
|
3136
3136
|
a(
|
|
3137
3137
|
b,
|
|
3138
3138
|
p.sibling
|
|
3139
|
-
),
|
|
3139
|
+
), T = l(p, h.children || []), T.return = b, b = T;
|
|
3140
3140
|
break t;
|
|
3141
3141
|
} else {
|
|
3142
3142
|
a(b, p);
|
|
@@ -3145,7 +3145,7 @@ Error generating stack: ` + n.message + `
|
|
|
3145
3145
|
else e(b, p);
|
|
3146
3146
|
p = p.sibling;
|
|
3147
3147
|
}
|
|
3148
|
-
|
|
3148
|
+
T = Hc(h, b.mode, T), T.return = b, b = T;
|
|
3149
3149
|
}
|
|
3150
3150
|
return c(b);
|
|
3151
3151
|
case Ht:
|
|
@@ -3153,7 +3153,7 @@ Error generating stack: ` + n.message + `
|
|
|
3153
3153
|
b,
|
|
3154
3154
|
p,
|
|
3155
3155
|
h,
|
|
3156
|
-
|
|
3156
|
+
T
|
|
3157
3157
|
);
|
|
3158
3158
|
}
|
|
3159
3159
|
if (St(h))
|
|
@@ -3161,7 +3161,7 @@ Error generating stack: ` + n.message + `
|
|
|
3161
3161
|
b,
|
|
3162
3162
|
p,
|
|
3163
3163
|
h,
|
|
3164
|
-
|
|
3164
|
+
T
|
|
3165
3165
|
);
|
|
3166
3166
|
if (E(h)) {
|
|
3167
3167
|
if (q = E(h), typeof q != "function") throw Error(f(150));
|
|
@@ -3169,7 +3169,7 @@ Error generating stack: ` + n.message + `
|
|
|
3169
3169
|
b,
|
|
3170
3170
|
p,
|
|
3171
3171
|
h,
|
|
3172
|
-
|
|
3172
|
+
T
|
|
3173
3173
|
);
|
|
3174
3174
|
}
|
|
3175
3175
|
if (typeof h.then == "function")
|
|
@@ -3177,33 +3177,33 @@ Error generating stack: ` + n.message + `
|
|
|
3177
3177
|
b,
|
|
3178
3178
|
p,
|
|
3179
3179
|
mi(h),
|
|
3180
|
-
|
|
3180
|
+
T
|
|
3181
3181
|
);
|
|
3182
3182
|
if (h.$$typeof === st)
|
|
3183
3183
|
return Gt(
|
|
3184
3184
|
b,
|
|
3185
3185
|
p,
|
|
3186
3186
|
si(b, h),
|
|
3187
|
-
|
|
3187
|
+
T
|
|
3188
3188
|
);
|
|
3189
3189
|
gi(b, h);
|
|
3190
3190
|
}
|
|
3191
|
-
return typeof h == "string" && h !== "" || typeof h == "number" || typeof h == "bigint" ? (h = "" + h, p !== null && p.tag === 6 ? (a(b, p.sibling),
|
|
3191
|
+
return typeof h == "string" && h !== "" || typeof h == "number" || typeof h == "bigint" ? (h = "" + h, p !== null && p.tag === 6 ? (a(b, p.sibling), T = l(p, h), T.return = b, b = T) : (a(b, p), T = Zc(h, b.mode, T), T.return = b, b = T), c(b)) : a(b, p);
|
|
3192
3192
|
}
|
|
3193
|
-
return function(b, p, h,
|
|
3193
|
+
return function(b, p, h, T) {
|
|
3194
3194
|
try {
|
|
3195
3195
|
sl = 0;
|
|
3196
3196
|
var q = Gt(
|
|
3197
3197
|
b,
|
|
3198
3198
|
p,
|
|
3199
3199
|
h,
|
|
3200
|
-
|
|
3200
|
+
T
|
|
3201
3201
|
);
|
|
3202
3202
|
return zn = null, q;
|
|
3203
3203
|
} catch (K) {
|
|
3204
3204
|
if (K === Nn || K === fi) throw K;
|
|
3205
3205
|
var xt = ze(29, K, null, b.mode);
|
|
3206
|
-
return xt.lanes =
|
|
3206
|
+
return xt.lanes = T, xt.return = b, xt;
|
|
3207
3207
|
}
|
|
3208
3208
|
};
|
|
3209
3209
|
}
|
|
@@ -7736,8 +7736,8 @@ Error generating stack: ` + n.message + `
|
|
|
7736
7736
|
top: w.scrollTop
|
|
7737
7737
|
});
|
|
7738
7738
|
for (typeof r.focus == "function" && r.focus(), r = 0; r < D.length; r++) {
|
|
7739
|
-
var
|
|
7740
|
-
|
|
7739
|
+
var T = D[r];
|
|
7740
|
+
T.element.scrollLeft = T.left, T.element.scrollTop = T.top;
|
|
7741
7741
|
}
|
|
7742
7742
|
}
|
|
7743
7743
|
Pi = !!ar, nr = ar = null;
|
|
@@ -8301,9 +8301,9 @@ Error generating stack: ` + n.message + `
|
|
|
8301
8301
|
var tt = (e & 4) !== 0, Gt = !tt && (t === "scroll" || t === "scrollend"), b = tt ? y !== null ? y + "Capture" : null : y;
|
|
8302
8302
|
tt = [];
|
|
8303
8303
|
for (var p = v, h; p !== null; ) {
|
|
8304
|
-
var
|
|
8305
|
-
if (h =
|
|
8306
|
-
jl(p,
|
|
8304
|
+
var T = p;
|
|
8305
|
+
if (h = T.stateNode, T = T.tag, T !== 5 && T !== 26 && T !== 27 || h === null || b === null || (T = In(p, b), T != null && tt.push(
|
|
8306
|
+
jl(p, T, h)
|
|
8307
8307
|
)), Gt) break;
|
|
8308
8308
|
p = p.return;
|
|
8309
8309
|
}
|
|
@@ -8320,30 +8320,30 @@ Error generating stack: ` + n.message + `
|
|
|
8320
8320
|
t: {
|
|
8321
8321
|
if (y = t === "mouseover" || t === "pointerover", w = t === "mouseout" || t === "pointerout", y && a !== bc && (U = a.relatedTarget || a.fromElement) && (nn(U) || U[an]))
|
|
8322
8322
|
break t;
|
|
8323
|
-
if ((w || y) && (y = N.window === N ? N : (y = N.ownerDocument) ? y.defaultView || y.parentWindow : window, w ? (U = a.relatedTarget || a.toElement, w = v, U = U ? nn(U) : null, U !== null && (Gt =
|
|
8324
|
-
if (tt = is,
|
|
8325
|
-
|
|
8323
|
+
if ((w || y) && (y = N.window === N ? N : (y = N.ownerDocument) ? y.defaultView || y.parentWindow : window, w ? (U = a.relatedTarget || a.toElement, w = v, U = U ? nn(U) : null, U !== null && (Gt = z(U), tt = U.tag, U !== Gt || tt !== 5 && tt !== 27 && tt !== 6) && (U = null)) : (w = null, U = v), w !== U)) {
|
|
8324
|
+
if (tt = is, T = "onMouseLeave", b = "onMouseEnter", p = "mouse", (t === "pointerout" || t === "pointerover") && (tt = us, T = "onPointerLeave", b = "onPointerEnter", p = "pointer"), Gt = w == null ? y : Vn(w), h = U == null ? y : Vn(U), y = new tt(
|
|
8325
|
+
T,
|
|
8326
8326
|
p + "leave",
|
|
8327
8327
|
w,
|
|
8328
8328
|
a,
|
|
8329
8329
|
N
|
|
8330
|
-
), y.target = Gt, y.relatedTarget = h,
|
|
8330
|
+
), y.target = Gt, y.relatedTarget = h, T = null, nn(N) === v && (tt = new tt(
|
|
8331
8331
|
b,
|
|
8332
8332
|
p + "enter",
|
|
8333
8333
|
U,
|
|
8334
8334
|
a,
|
|
8335
8335
|
N
|
|
8336
|
-
), tt.target = h, tt.relatedTarget = Gt,
|
|
8336
|
+
), tt.target = h, tt.relatedTarget = Gt, T = tt), Gt = T, w && U)
|
|
8337
8337
|
e: {
|
|
8338
|
-
for (tt = n0, b = w, p = U, h = 0,
|
|
8338
|
+
for (tt = n0, b = w, p = U, h = 0, T = b; T; T = tt(T))
|
|
8339
8339
|
h++;
|
|
8340
|
-
|
|
8340
|
+
T = 0;
|
|
8341
8341
|
for (var q = p; q; q = tt(q))
|
|
8342
|
-
|
|
8343
|
-
for (; 0 < h -
|
|
8342
|
+
T++;
|
|
8343
|
+
for (; 0 < h - T; )
|
|
8344
8344
|
b = tt(b), h--;
|
|
8345
|
-
for (; 0 <
|
|
8346
|
-
p = tt(p),
|
|
8345
|
+
for (; 0 < T - h; )
|
|
8346
|
+
p = tt(p), T--;
|
|
8347
8347
|
for (; h--; ) {
|
|
8348
8348
|
if (b === p || p !== null && b === p.alternate) {
|
|
8349
8349
|
tt = b;
|
|
@@ -10056,7 +10056,7 @@ Error generating stack: ` + n.message + `
|
|
|
10056
10056
|
var _i = null;
|
|
10057
10057
|
function br(t) {
|
|
10058
10058
|
if (_i = null, t = nn(t), t !== null) {
|
|
10059
|
-
var e =
|
|
10059
|
+
var e = z(t);
|
|
10060
10060
|
if (e === null) t = null;
|
|
10061
10061
|
else {
|
|
10062
10062
|
var a = e.tag;
|
|
@@ -10263,7 +10263,7 @@ Error generating stack: ` + n.message + `
|
|
|
10263
10263
|
function Sd(t) {
|
|
10264
10264
|
var e = nn(t.target);
|
|
10265
10265
|
if (e !== null) {
|
|
10266
|
-
var a =
|
|
10266
|
+
var a = z(e);
|
|
10267
10267
|
if (a !== null) {
|
|
10268
10268
|
if (e = a.tag, e === 13) {
|
|
10269
10269
|
if (e = S(a), e !== null) {
|
|
@@ -10548,7 +10548,7 @@ const I0 = k.forwardRef(
|
|
|
10548
10548
|
strokeWidth: m = 2,
|
|
10549
10549
|
absoluteStrokeWidth: f,
|
|
10550
10550
|
className: Y = "",
|
|
10551
|
-
children:
|
|
10551
|
+
children: z,
|
|
10552
10552
|
iconNode: S,
|
|
10553
10553
|
...C
|
|
10554
10554
|
}, O) => k.createElement(
|
|
@@ -10561,19 +10561,19 @@ const I0 = k.forwardRef(
|
|
|
10561
10561
|
stroke: u,
|
|
10562
10562
|
strokeWidth: f ? Number(m) * 24 / Number(o) : m,
|
|
10563
10563
|
className: om("lucide", Y),
|
|
10564
|
-
...!
|
|
10564
|
+
...!z && !V0(C) && { "aria-hidden": "true" },
|
|
10565
10565
|
...C
|
|
10566
10566
|
},
|
|
10567
10567
|
[
|
|
10568
10568
|
...S.map(([x, X]) => k.createElement(x, X)),
|
|
10569
|
-
...Array.isArray(
|
|
10569
|
+
...Array.isArray(z) ? z : [z]
|
|
10570
10570
|
]
|
|
10571
10571
|
)
|
|
10572
10572
|
);
|
|
10573
10573
|
const _t = (u, o) => {
|
|
10574
10574
|
const m = k.forwardRef(
|
|
10575
|
-
({ className: f, ...Y },
|
|
10576
|
-
ref:
|
|
10575
|
+
({ className: f, ...Y }, z) => k.createElement(I0, {
|
|
10576
|
+
ref: z,
|
|
10577
10577
|
iconNode: o,
|
|
10578
10578
|
className: om(
|
|
10579
10579
|
`lucide-${J0(Fd(u))}`,
|
|
@@ -10691,8 +10691,8 @@ function Cp(u, o) {
|
|
|
10691
10691
|
}
|
|
10692
10692
|
function Zp(u) {
|
|
10693
10693
|
if (!Br(u)) return !1;
|
|
10694
|
-
const o = u.key, m = u.label, f = u.format, Y = u.precision,
|
|
10695
|
-
return !!(typeof o == "string" && o.trim() && typeof m == "string" && m.trim() && typeof f == "string" && Gp.has(f) && (Y === void 0 || typeof Y == "number" && Number.isInteger(Y) && Y >= 0 && Y <= 8) && (
|
|
10694
|
+
const o = u.key, m = u.label, f = u.format, Y = u.precision, z = u.unit;
|
|
10695
|
+
return !!(typeof o == "string" && o.trim() && typeof m == "string" && m.trim() && typeof f == "string" && Gp.has(f) && (Y === void 0 || typeof Y == "number" && Number.isInteger(Y) && Y >= 0 && Y <= 8) && (z === void 0 || typeof z == "string") && Cp(u.value, f));
|
|
10696
10696
|
}
|
|
10697
10697
|
function Hp(u) {
|
|
10698
10698
|
if (!Br(u) || u.source !== "full_result" || !Array.isArray(u.items)) return;
|
|
@@ -10707,10 +10707,10 @@ function kp(u) {
|
|
|
10707
10707
|
queryKind: m,
|
|
10708
10708
|
fieldProfileRef: f,
|
|
10709
10709
|
summary: Y,
|
|
10710
|
-
...
|
|
10710
|
+
...z
|
|
10711
10711
|
} = u, S = Jd(o), C = Jd(m), O = C && S && C !== S ? void 0 : C, x = typeof f == "string" && f.trim() ? f : void 0, X = S === "aggregate" ? Hp(Y) : void 0;
|
|
10712
10712
|
return {
|
|
10713
|
-
...
|
|
10713
|
+
...z,
|
|
10714
10714
|
...S ? { resultKind: S } : {},
|
|
10715
10715
|
...O ? { queryKind: O } : {},
|
|
10716
10716
|
...x ? { fieldProfileRef: x } : {},
|
|
@@ -10766,7 +10766,7 @@ function Gr(u = {}) {
|
|
|
10766
10766
|
function Y() {
|
|
10767
10767
|
return m("conversations", { method: "POST" });
|
|
10768
10768
|
}
|
|
10769
|
-
function
|
|
10769
|
+
function z(L) {
|
|
10770
10770
|
return m(`conversations/${L}`, { method: "DELETE" });
|
|
10771
10771
|
}
|
|
10772
10772
|
function S() {
|
|
@@ -10810,7 +10810,7 @@ function Gr(u = {}) {
|
|
|
10810
10810
|
method: "POST"
|
|
10811
10811
|
});
|
|
10812
10812
|
}
|
|
10813
|
-
return { listConversations: f, createConversation: Y, deleteConversation:
|
|
10813
|
+
return { listConversations: f, createConversation: Y, deleteConversation: z, clearConversations: S, getConversationSnapshot: C, createConfirmation: O, sendPlatformMessage: x, confirmOperation: X, confirmLocation: B, confirmDrawingType: F, cancelConfirmation: P };
|
|
10814
10814
|
}
|
|
10815
10815
|
const { listConversations: Cb, createConversation: Zb, deleteConversation: Hb, clearConversations: kb, getConversationSnapshot: Xb, createConfirmation: Lb, sendPlatformMessage: Ub, confirmOperation: Qb, confirmLocation: Kb, confirmDrawingType: Rb, cancelConfirmation: Fb } = Gr(), dm = k.createContext(Gr()), mm = () => k.useContext(dm);
|
|
10816
10816
|
function Qp(u, o, m) {
|
|
@@ -10838,7 +10838,7 @@ function fa({
|
|
|
10838
10838
|
text: u,
|
|
10839
10839
|
className: o
|
|
10840
10840
|
}) {
|
|
10841
|
-
const m = k.useRef(null), [f, Y] = k.useState(null),
|
|
10841
|
+
const m = k.useRef(null), [f, Y] = k.useState(null), z = k.useCallback(() => {
|
|
10842
10842
|
const O = m.current;
|
|
10843
10843
|
if (!O || !u || O.scrollWidth <= O.clientWidth) return;
|
|
10844
10844
|
const x = O.getBoundingClientRect(), X = Math.min(
|
|
@@ -10899,7 +10899,7 @@ function fa({
|
|
|
10899
10899
|
ref: m,
|
|
10900
10900
|
className: o,
|
|
10901
10901
|
title: u,
|
|
10902
|
-
onMouseEnter:
|
|
10902
|
+
onMouseEnter: z,
|
|
10903
10903
|
onMouseLeave: S,
|
|
10904
10904
|
children: u
|
|
10905
10905
|
}
|
|
@@ -10935,13 +10935,13 @@ function Ip({
|
|
|
10935
10935
|
onCancel: m,
|
|
10936
10936
|
confirmationLabel: f,
|
|
10937
10937
|
cardId: Y,
|
|
10938
|
-
locked:
|
|
10938
|
+
locked: z = !1,
|
|
10939
10939
|
lockedSelectedDockSns: S,
|
|
10940
10940
|
lockedState: C = "confirmed",
|
|
10941
10941
|
paginationEnabled: O = !1,
|
|
10942
10942
|
selectAllEnabled: x = !1
|
|
10943
10943
|
}) {
|
|
10944
|
-
const [X, B] = k.useState([]), [F, P] = k.useState(!1), [L, _] = k.useState(1), $ = u.candidates ?? Fp, et = u.selectedDockSns ?? Jp, R =
|
|
10944
|
+
const [X, B] = k.useState([]), [F, P] = k.useState(!1), [L, _] = k.useState(1), $ = u.candidates ?? Fp, et = u.selectedDockSns ?? Jp, R = z ? S ?? et : X, st = $.length > 0 && $.every((I) => R.includes(I.dock_sn)), Dt = R.length > 0 && !F && !z, Mt = u.action === "terminate" || u.action === "resume", Tt = u.action === "takeoff", W = u.action === "power-on" || u.action === "power-off", Ht = ["set-altitude", "set-distance", "disable-distance", "upper-avoidance", "lower-avoidance", "horizontal-avoidance"].includes(u.action), kt = ["ground-wind", "aerial-wind", "rainfall"].includes(u.action), It = {
|
|
10945
10945
|
enable: "开启",
|
|
10946
10946
|
disable: "关闭",
|
|
10947
10947
|
terminate: "停飞",
|
|
@@ -10959,16 +10959,16 @@ function Ip({
|
|
|
10959
10959
|
"ground-wind": "设置机场停飞风速",
|
|
10960
10960
|
"aerial-wind": "设置空中停飞风速",
|
|
10961
10961
|
rainfall: "设置雨量阈值"
|
|
10962
|
-
}[u.action] ?? "执行操作", E =
|
|
10962
|
+
}[u.action] ?? "执行操作", E = z && C === "cancelled", lt = Vp(u.parameters), Ot = Math.max(1, Math.ceil($.length / lc)), St = Math.min(L, Ot), M = O ? $.slice((St - 1) * lc, St * lc) : $;
|
|
10963
10963
|
k.useEffect(() => {
|
|
10964
10964
|
B(et), P(!1), _(1);
|
|
10965
10965
|
}, [u.id, et]);
|
|
10966
10966
|
const G = (I) => {
|
|
10967
|
-
|
|
10967
|
+
z || B(
|
|
10968
10968
|
(rt) => rt.includes(I.dock_sn) ? rt.filter((g) => g !== I.dock_sn) : [...rt, I.dock_sn]
|
|
10969
10969
|
);
|
|
10970
10970
|
}, V = () => {
|
|
10971
|
-
|
|
10971
|
+
z || F || B(st ? [] : Array.from(new Set($.map((I) => I.dock_sn))));
|
|
10972
10972
|
};
|
|
10973
10973
|
return /* @__PURE__ */ s.jsxs("section", { "data-card-id": Y, className: "mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
10974
10974
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
@@ -10981,7 +10981,7 @@ function Ip({
|
|
|
10981
10981
|
] })
|
|
10982
10982
|
] }),
|
|
10983
10983
|
/* @__PURE__ */ s.jsxs("span", { className: "rounded-full bg-white/15 px-2.5 py-1 text-xs text-slate-100", children: [
|
|
10984
|
-
|
|
10984
|
+
z ? E ? "已取消" : "已确认" : "已选",
|
|
10985
10985
|
" ",
|
|
10986
10986
|
R.length,
|
|
10987
10987
|
"/",
|
|
@@ -10990,13 +10990,13 @@ function Ip({
|
|
|
10990
10990
|
] }),
|
|
10991
10991
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3 border-b border-slate-100 px-5 py-4 text-sm text-slate-600", children: [
|
|
10992
10992
|
/* @__PURE__ */ s.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
10993
|
-
|
|
10993
|
+
z ? E ? "本次操作已取消,候选目标未执行,确认内容已锁定。" : "确认已完成,所选目标与确认内容已锁定,不可再次编辑。" : Mt ? "请选择要执行的飞行任务;默认均不选中。确认后将按任务并行下发,不占用机场锁。" : "请选择要执行的机场;默认均不选中。机场与无人机序列号仅展示前后四位,供人工核对。",
|
|
10994
10994
|
lt ? /* @__PURE__ */ s.jsxs("p", { className: "mt-2 font-medium text-slate-700", children: [
|
|
10995
10995
|
"本次参数:",
|
|
10996
10996
|
lt
|
|
10997
10997
|
] }) : null
|
|
10998
10998
|
] }),
|
|
10999
|
-
x && !
|
|
10999
|
+
x && !z && $.length > 0 ? /* @__PURE__ */ s.jsxs(
|
|
11000
11000
|
"button",
|
|
11001
11001
|
{
|
|
11002
11002
|
type: "button",
|
|
@@ -11017,16 +11017,16 @@ function Ip({
|
|
|
11017
11017
|
return /* @__PURE__ */ s.jsxs(
|
|
11018
11018
|
"div",
|
|
11019
11019
|
{
|
|
11020
|
-
role:
|
|
11021
|
-
"aria-checked":
|
|
11022
|
-
tabIndex:
|
|
11023
|
-
onClick:
|
|
11024
|
-
onKeyDown:
|
|
11020
|
+
role: z ? void 0 : "checkbox",
|
|
11021
|
+
"aria-checked": z ? void 0 : rt,
|
|
11022
|
+
tabIndex: z ? void 0 : 0,
|
|
11023
|
+
onClick: z ? void 0 : () => G(I),
|
|
11024
|
+
onKeyDown: z ? void 0 : (g) => {
|
|
11025
11025
|
(g.key === " " || g.key === "Enter") && (g.preventDefault(), G(I));
|
|
11026
11026
|
},
|
|
11027
|
-
className: `flex items-center gap-3 px-5 py-4 transition-colors ${
|
|
11027
|
+
className: `flex items-center gap-3 px-5 py-4 transition-colors ${z ? "cursor-default" : "cursor-pointer hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sky-500"}`,
|
|
11028
11028
|
children: [
|
|
11029
|
-
|
|
11029
|
+
z ? null : rt ? /* @__PURE__ */ s.jsx(fm, { className: "h-5 w-5 shrink-0 text-emerald-600" }) : /* @__PURE__ */ s.jsx(rp, { className: "h-5 w-5 shrink-0 text-slate-300" }),
|
|
11030
11030
|
/* @__PURE__ */ s.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
11031
11031
|
/* @__PURE__ */ s.jsx(fa, { text: I.airport_name, className: "block truncate text-sm font-semibold text-slate-800" }),
|
|
11032
11032
|
/* @__PURE__ */ s.jsx("span", { className: "mt-0.5 block break-words font-mono text-xs leading-5 text-slate-500", children: Mt ? `任务编号:${I.dock_sn} · ${I.device_model}` : qp(I) })
|
|
@@ -11049,8 +11049,8 @@ function Ip({
|
|
|
11049
11049
|
/* @__PURE__ */ s.jsx("button", { type: "button", disabled: St === Ot, onClick: () => _((I) => Math.min(Ot, I + 1)), className: "gis-platform-agent-card-button gis-platform-agent-card-button-secondary gis-platform-agent-page-button", "aria-label": "下一页", children: "下一页" })
|
|
11050
11050
|
] }) : null,
|
|
11051
11051
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 border-t border-slate-100 bg-slate-50 px-5 py-4", children: [
|
|
11052
|
-
/* @__PURE__ */ s.jsx("p", { className: "text-xs text-slate-600", children:
|
|
11053
|
-
|
|
11052
|
+
/* @__PURE__ */ s.jsx("p", { className: "text-xs text-slate-600", children: z ? E ? "本次操作已取消,未下发指令。" : "指令已完成确认,执行结果在下方统一展示。" : Mt ? "确认后将按任务并行下发,不占用机场锁。" : Tt ? "确认后将并行下发起飞指令,执行期间占用对应机场资源组锁。" : "确认后将并行下发指令,执行结果会在下方统一展示。" }),
|
|
11053
|
+
z ? /* @__PURE__ */ s.jsx("span", { className: `rounded-xl px-4 py-2 text-sm font-semibold ${E ? "bg-slate-200 text-slate-600" : "bg-emerald-50 text-emerald-700"}`, children: E ? "已取消" : "已确认" }) : /* @__PURE__ */ s.jsxs("div", { className: "flex gap-2", children: [
|
|
11054
11054
|
/* @__PURE__ */ s.jsx(
|
|
11055
11055
|
"button",
|
|
11056
11056
|
{
|
|
@@ -11099,11 +11099,11 @@ function _p({
|
|
|
11099
11099
|
onConfirm: o,
|
|
11100
11100
|
onCancel: m
|
|
11101
11101
|
}) {
|
|
11102
|
-
const f = u.status !== "pending", Y = u.status === "cancelled", [
|
|
11102
|
+
const f = u.status !== "pending", Y = u.status === "cancelled", [z, S] = k.useState(u.selectedCandidateId ?? null), [C, O] = k.useState(!1), [x, X] = k.useState(1);
|
|
11103
11103
|
k.useEffect(() => {
|
|
11104
11104
|
S(u.selectedCandidateId ?? null), X(1);
|
|
11105
11105
|
}, [u.id, u.selectedCandidateId, u.status]);
|
|
11106
|
-
const B = u.candidates.find((R) => R.id ===
|
|
11106
|
+
const B = u.candidates.find((R) => R.id === z), F = u.parameters?.keyword?.trim() || "当前地点", P = !!(u.parameters?.drawing && typeof u.parameters.drawing == "object"), L = Math.max(1, Math.ceil(u.candidates.length / ic)), _ = Math.min(x, L), $ = (_ - 1) * ic, et = u.candidates.slice($, $ + ic);
|
|
11107
11107
|
return /* @__PURE__ */ s.jsxs(
|
|
11108
11108
|
"section",
|
|
11109
11109
|
{
|
|
@@ -11129,7 +11129,7 @@ function _p({
|
|
|
11129
11129
|
/* @__PURE__ */ s.jsxs("fieldset", { disabled: f, className: "space-y-2 px-5 py-4", children: [
|
|
11130
11130
|
/* @__PURE__ */ s.jsx("legend", { className: "sr-only", children: "地理位置候选项,单选" }),
|
|
11131
11131
|
et.map((R, st) => {
|
|
11132
|
-
const Dt =
|
|
11132
|
+
const Dt = z === R.id;
|
|
11133
11133
|
return /* @__PURE__ */ s.jsxs(
|
|
11134
11134
|
"label",
|
|
11135
11135
|
{
|
|
@@ -11222,12 +11222,12 @@ function _p({
|
|
|
11222
11222
|
"button",
|
|
11223
11223
|
{
|
|
11224
11224
|
type: "button",
|
|
11225
|
-
disabled: !
|
|
11225
|
+
disabled: !z || C,
|
|
11226
11226
|
onClick: async () => {
|
|
11227
|
-
if (
|
|
11227
|
+
if (z) {
|
|
11228
11228
|
O(!0);
|
|
11229
11229
|
try {
|
|
11230
|
-
await o(
|
|
11230
|
+
await o(z);
|
|
11231
11231
|
} finally {
|
|
11232
11232
|
O(!1);
|
|
11233
11233
|
}
|
|
@@ -11259,15 +11259,15 @@ function Pd(u) {
|
|
|
11259
11259
|
return $p[u.id] ?? u.name ?? u.id;
|
|
11260
11260
|
}
|
|
11261
11261
|
function eb(u) {
|
|
11262
|
-
const o = u?.drawing, m = u?.location, f = typeof o?.shape == "string" ? tb[o.shape] ?? o.shape : "图形",
|
|
11263
|
-
return typeof o?.radiusMeters == "number" &&
|
|
11262
|
+
const o = u?.drawing, m = u?.location, f = typeof o?.shape == "string" ? tb[o.shape] ?? o.shape : "图形", z = [String(m?.name ?? m?.address ?? u?.keyword ?? "已选地点"), f];
|
|
11263
|
+
return typeof o?.radiusMeters == "number" && z.push(`半径 ${o.radiusMeters} 米`), typeof o?.sideMeters == "number" && z.push(`边长 ${o.sideMeters} 米`), typeof o?.lengthMeters == "number" && z.push(`长 ${o.lengthMeters} 米`), typeof o?.widthMeters == "number" && z.push(`宽 ${o.widthMeters} 米`), typeof o?.roadName == "string" && z.push(o.roadName), z;
|
|
11264
11264
|
}
|
|
11265
11265
|
function ab({
|
|
11266
11266
|
confirmation: u,
|
|
11267
11267
|
onConfirm: o,
|
|
11268
11268
|
onCancel: m
|
|
11269
11269
|
}) {
|
|
11270
|
-
const f = u.status !== "pending", Y = u.status === "cancelled", [
|
|
11270
|
+
const f = u.status !== "pending", Y = u.status === "cancelled", [z, S] = k.useState(u.selectedPurposeId ?? null), [C, O] = k.useState(!1);
|
|
11271
11271
|
k.useEffect(() => {
|
|
11272
11272
|
S(u.selectedPurposeId ?? null);
|
|
11273
11273
|
}, [u.id, u.selectedPurposeId, u.status]);
|
|
@@ -11294,7 +11294,7 @@ function ab({
|
|
|
11294
11294
|
/* @__PURE__ */ s.jsxs("fieldset", { disabled: f, className: "space-y-2 px-5 py-4", children: [
|
|
11295
11295
|
/* @__PURE__ */ s.jsx("legend", { className: "sr-only", children: "绘制用途,单选" }),
|
|
11296
11296
|
u.candidates.map((X) => {
|
|
11297
|
-
const B =
|
|
11297
|
+
const B = z === X.id;
|
|
11298
11298
|
return /* @__PURE__ */ s.jsxs(
|
|
11299
11299
|
"label",
|
|
11300
11300
|
{
|
|
@@ -11346,12 +11346,12 @@ function ab({
|
|
|
11346
11346
|
"button",
|
|
11347
11347
|
{
|
|
11348
11348
|
type: "button",
|
|
11349
|
-
disabled: !
|
|
11349
|
+
disabled: !z || C,
|
|
11350
11350
|
onClick: async () => {
|
|
11351
|
-
if (
|
|
11351
|
+
if (z) {
|
|
11352
11352
|
O(!0);
|
|
11353
11353
|
try {
|
|
11354
|
-
await o(
|
|
11354
|
+
await o(z);
|
|
11355
11355
|
} finally {
|
|
11356
11356
|
O(!1);
|
|
11357
11357
|
}
|
|
@@ -11424,11 +11424,11 @@ function Ll(u) {
|
|
|
11424
11424
|
return Er(u);
|
|
11425
11425
|
}
|
|
11426
11426
|
function lb(u, o, m, f, Y) {
|
|
11427
|
-
const
|
|
11427
|
+
const z = m.map((S) => {
|
|
11428
11428
|
const C = o[S]?.find((O) => O.key === u)?.status;
|
|
11429
11429
|
return C ? Ll(C) : Y ? "待执行" : "未执行";
|
|
11430
11430
|
});
|
|
11431
|
-
return
|
|
11431
|
+
return z.length ? z.every((S) => S === "成功") ? "成功" : z.every((S) => S === "失败") ? "失败" : z.every((S) => S === "未执行") ? "未执行" : z.some((S) => S === "执行中") ? "执行中" : !z.some((S) => S === "成功") && z.some((S) => S === "失败") ? "失败" : z.some((S) => S === "成功") ? "部分成功" : z.every((S) => S === "待执行") ? "待执行" : Ll(f) : Ll(f);
|
|
11432
11432
|
}
|
|
11433
11433
|
const gm = {
|
|
11434
11434
|
enable: "开启机场运维模式",
|
|
@@ -11466,8 +11466,8 @@ function ub(u, o, m, f) {
|
|
|
11466
11466
|
if (u !== "power-on") return;
|
|
11467
11467
|
const Y = Math.max(
|
|
11468
11468
|
0,
|
|
11469
|
-
...m.map((
|
|
11470
|
-
const S = o[
|
|
11469
|
+
...m.map((z) => {
|
|
11470
|
+
const S = o[z]?.find((C) => C.key === u)?.waitUntil;
|
|
11471
11471
|
return S ? cb(S, f) : 0;
|
|
11472
11472
|
})
|
|
11473
11473
|
);
|
|
@@ -11479,7 +11479,7 @@ function rb({
|
|
|
11479
11479
|
steps: m,
|
|
11480
11480
|
targetSteps: f = {},
|
|
11481
11481
|
title: Y,
|
|
11482
|
-
cardId:
|
|
11482
|
+
cardId: z,
|
|
11483
11483
|
operationInProgress: S = !1
|
|
11484
11484
|
}) {
|
|
11485
11485
|
const C = u.action === "terminate" || u.action === "resume", O = u.action === "takeoff", x = u.action === "power-on" || u.action === "power-off", X = ["set-altitude", "set-distance", "disable-distance", "upper-avoidance", "lower-avoidance", "horizontal-avoidance"].includes(u.action), [B, F] = k.useState(() => Object.entries(o).find(([, lt]) => lt.status !== "成功")?.[0] ?? null), [P, L] = k.useState(() => Date.now()), _ = Y ?? gm[u.action] ?? "执行操作", $ = k.useMemo(
|
|
@@ -11550,7 +11550,7 @@ function rb({
|
|
|
11550
11550
|
)];
|
|
11551
11551
|
})
|
|
11552
11552
|
), [st, f, $]), de = W.findIndex((E) => E.status === "执行中"), It = de >= 0 ? (de + 0.5) / W.length * 100 : W.every((E) => !["待执行", "执行中"].includes(E.status)) ? 100 : W.filter((E) => E.status === "成功").length / W.length * 100;
|
|
11553
|
-
return /* @__PURE__ */ s.jsxs("section", { "data-card-id":
|
|
11553
|
+
return /* @__PURE__ */ s.jsxs("section", { "data-card-id": z, className: "mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
11554
11554
|
/* @__PURE__ */ s.jsxs("div", { className: "bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
11555
11555
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
11556
11556
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
@@ -11692,12 +11692,12 @@ function gb({
|
|
|
11692
11692
|
columns: m,
|
|
11693
11693
|
rows: f,
|
|
11694
11694
|
cardId: Y,
|
|
11695
|
-
resultKind:
|
|
11695
|
+
resultKind: z,
|
|
11696
11696
|
queryKind: S,
|
|
11697
11697
|
fieldProfileRef: C,
|
|
11698
11698
|
summary: O
|
|
11699
11699
|
}) {
|
|
11700
|
-
const [x, X] = k.useState(1), B = Math.max(1, Math.ceil(f.length / Xl)), F = Math.min(x, B), P = (F - 1) * Xl, L = f.slice(P, P + Xl), _ = f.length > Xl, $ =
|
|
11700
|
+
const [x, X] = k.useState(1), B = Math.max(1, Math.ceil(f.length / Xl)), F = Math.min(x, B), P = (F - 1) * Xl, L = f.slice(P, P + Xl), _ = f.length > Xl, $ = z === "aggregate" && O?.source === "full_result" && Array.isArray(O.items) ? O.items.filter(fb) : [], et = $.some(db);
|
|
11701
11701
|
return /* @__PURE__ */ s.jsxs("section", { "data-card-id": Y, "data-field-profile-ref": C, "data-query-kind": S, className: "gis-platform-agent-query-card overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm", children: [
|
|
11702
11702
|
/* @__PURE__ */ s.jsxs("div", { className: "gis-platform-agent-query-card-header flex flex-wrap items-center justify-between gap-3 bg-gradient-to-r from-slate-900 to-slate-700 px-5 py-4 text-white", children: [
|
|
11703
11703
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
@@ -11785,12 +11785,12 @@ function hb(u, o, m = [], f = []) {
|
|
|
11785
11785
|
return { label: "已完成", className: "bg-emerald-50 text-emerald-700" };
|
|
11786
11786
|
if (Y?.status === "cancelled")
|
|
11787
11787
|
return { label: "已取消", className: "bg-slate-100 text-slate-600" };
|
|
11788
|
-
const
|
|
11789
|
-
if (
|
|
11788
|
+
const z = m.at(-1);
|
|
11789
|
+
if (z?.status === "pending")
|
|
11790
11790
|
return { label: "待确认", className: "bg-amber-50 text-amber-700" };
|
|
11791
|
-
if (
|
|
11791
|
+
if (z?.status === "confirmed")
|
|
11792
11792
|
return { label: "已完成", className: "bg-emerald-50 text-emerald-700" };
|
|
11793
|
-
if (
|
|
11793
|
+
if (z?.status === "cancelled")
|
|
11794
11794
|
return { label: "已取消", className: "bg-slate-100 text-slate-600" };
|
|
11795
11795
|
const S = o.at(-1);
|
|
11796
11796
|
return S?.status === "pending" ? { label: "待确认", className: "bg-amber-50 text-amber-700" } : S?.status === "confirmed" && ["pending", "running", "in_progress"].includes(S.operationStatus ?? "") ? { label: "执行中", className: "bg-blue-50 text-blue-700" } : S?.status === "confirmed" && S.operationStatus === "failed" ? { label: "失败", className: "bg-red-50 text-red-700" } : S?.status === "confirmed" && S.operationStatus === "partial_success" ? { label: "部分成功", className: "bg-amber-50 text-amber-700" } : S?.status === "confirmed" ? { label: "已完成", className: "bg-emerald-50 text-emerald-700" } : S?.status === "cancelled" ? { label: "已取消", className: "bg-slate-100 text-slate-600" } : u === "failed" ? { label: "失败", className: "bg-red-50 text-red-700" } : { label: "可继续", className: "bg-slate-100 text-slate-600" };
|
|
@@ -11882,8 +11882,8 @@ function im(u) {
|
|
|
11882
11882
|
if (!o.length || !m.length) return !1;
|
|
11883
11883
|
const f = u.targetSteps ?? {};
|
|
11884
11884
|
return m.some(
|
|
11885
|
-
(Y) => o.some((
|
|
11886
|
-
const S = f[Y]?.find((C) => C.key ===
|
|
11885
|
+
(Y) => o.some((z) => {
|
|
11886
|
+
const S = f[Y]?.find((C) => C.key === z.key);
|
|
11887
11887
|
return !S || !bb.has(S.status);
|
|
11888
11888
|
})
|
|
11889
11889
|
);
|
|
@@ -12012,8 +12012,8 @@ function zb(u, o, m = []) {
|
|
|
12012
12012
|
id: "编号",
|
|
12013
12013
|
oid: "对象编号",
|
|
12014
12014
|
name: "名称"
|
|
12015
|
-
},
|
|
12016
|
-
return (S.length ? S : [...
|
|
12015
|
+
}, z = new Set(u.flatMap((O) => Object.keys(O))), S = m.filter((O) => z.has(O));
|
|
12016
|
+
return (S.length ? S : [...z].slice(0, 8)).map((O) => ({ key: O, label: Y[O] ?? "其他数据" }));
|
|
12017
12017
|
}
|
|
12018
12018
|
function cm({ content: u }) {
|
|
12019
12019
|
const o = wb(u), m = Mb(u);
|
|
@@ -12084,7 +12084,7 @@ function Ob({
|
|
|
12084
12084
|
title: f = "智能助手",
|
|
12085
12085
|
onMapEvent: Y
|
|
12086
12086
|
}) {
|
|
12087
|
-
const { cancelConfirmation:
|
|
12087
|
+
const { cancelConfirmation: z, confirmDrawingType: S, confirmLocation: C, confirmOperation: O, getConversationSnapshot: x, sendPlatformMessage: X } = mm(), [B, F] = k.useState(""), [P, L] = k.useState([em]), [_, $] = k.useState([]), [et, R] = k.useState([]), [st, Dt] = k.useState([]), [Mt, Tt] = k.useState(""), [W, Ht] = k.useState(!1), kt = k.useRef(null), de = k.useRef(null), It = k.useRef(!0), E = hb(m, _, et, st), lt = _.map((j) => `${j.id}:${Object.keys(j.results ?? {}).length}:${Object.keys(j.targetSteps ?? {}).length}`).join("|"), Ot = et.map((j) => `${j.id}:${j.status}:${j.selectedCandidateId ?? ""}`).join("|"), St = st.map((j) => `${j.id}:${j.status}:${j.selectedPurposeId ?? ""}`).join("|"), M = () => {
|
|
12088
12088
|
const j = de.current;
|
|
12089
12089
|
if (!j) return;
|
|
12090
12090
|
const H = j.scrollHeight - j.scrollTop - j.clientHeight;
|
|
@@ -12351,7 +12351,7 @@ function Ob({
|
|
|
12351
12351
|
},
|
|
12352
12352
|
onCancel: async () => {
|
|
12353
12353
|
try {
|
|
12354
|
-
await
|
|
12354
|
+
await z(j.id), rt(j.id, (se) => ({
|
|
12355
12355
|
...se,
|
|
12356
12356
|
canConfirm: !1,
|
|
12357
12357
|
selectedDockSns: [],
|
|
@@ -12414,7 +12414,7 @@ function Ob({
|
|
|
12414
12414
|
},
|
|
12415
12415
|
onCancel: async () => {
|
|
12416
12416
|
try {
|
|
12417
|
-
await
|
|
12417
|
+
await z(j.id), g(j.id, (H) => ({
|
|
12418
12418
|
...H,
|
|
12419
12419
|
canConfirm: !1,
|
|
12420
12420
|
status: "cancelled"
|
|
@@ -12457,7 +12457,7 @@ function Ob({
|
|
|
12457
12457
|
},
|
|
12458
12458
|
onCancel: async () => {
|
|
12459
12459
|
try {
|
|
12460
|
-
await
|
|
12460
|
+
await z(j.id), A(j.id, (H) => ({
|
|
12461
12461
|
...H,
|
|
12462
12462
|
canConfirm: !1,
|
|
12463
12463
|
status: "cancelled"
|
|
@@ -12541,7 +12541,7 @@ function Ab({
|
|
|
12541
12541
|
onCreate: m,
|
|
12542
12542
|
onSelect: f,
|
|
12543
12543
|
onDelete: Y,
|
|
12544
|
-
onClear:
|
|
12544
|
+
onClear: z,
|
|
12545
12545
|
className: S = ""
|
|
12546
12546
|
}) {
|
|
12547
12547
|
return /* @__PURE__ */ s.jsxs("aside", { className: `hidden w-[260px] shrink-0 flex-col border-r border-slate-200 bg-slate-50 p-4 lg:flex ${S}`, children: [
|
|
@@ -12573,7 +12573,7 @@ function Ab({
|
|
|
12573
12573
|
type: "button",
|
|
12574
12574
|
disabled: !u.length,
|
|
12575
12575
|
onClick: () => {
|
|
12576
|
-
window.confirm("确定清空全部历史会话吗?") &&
|
|
12576
|
+
window.confirm("确定清空全部历史会话吗?") && z();
|
|
12577
12577
|
},
|
|
12578
12578
|
className: "text-xs font-medium text-slate-500 transition-colors hover:text-red-600 disabled:cursor-not-allowed disabled:text-slate-300",
|
|
12579
12579
|
children: "清空全部"
|
|
@@ -12620,10 +12620,10 @@ function Ab({
|
|
|
12620
12620
|
] });
|
|
12621
12621
|
}
|
|
12622
12622
|
function jb() {
|
|
12623
|
-
const { clearConversations: u, createConversation: o, deleteConversation: m, listConversations: f } = mm(), [Y,
|
|
12623
|
+
const { clearConversations: u, createConversation: o, deleteConversation: m, listConversations: f } = mm(), [Y, z] = k.useState([]), [S, C] = k.useState(""), [O, x] = k.useState(""), [X, B] = k.useState(!1), F = k.useRef(!1), P = k.useCallback(async () => {
|
|
12624
12624
|
try {
|
|
12625
12625
|
const et = await f();
|
|
12626
|
-
|
|
12626
|
+
z(et.conversations), C((R) => R || et.conversations[0]?.id || ""), x("");
|
|
12627
12627
|
} catch (et) {
|
|
12628
12628
|
x(et instanceof Error ? et.message : "会话加载失败");
|
|
12629
12629
|
} finally {
|
|
@@ -12702,11 +12702,12 @@ const Sb = '/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@im
|
|
|
12702
12702
|
}
|
|
12703
12703
|
|
|
12704
12704
|
.gis-platform-agent-panel.is-expanded {
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12705
|
+
inset: 0;
|
|
12706
|
+
width: 100%;
|
|
12707
|
+
height: 100dvh;
|
|
12708
|
+
max-width: none;
|
|
12709
12709
|
max-height: none;
|
|
12710
|
+
border-radius: 0;
|
|
12710
12711
|
}
|
|
12711
12712
|
|
|
12712
12713
|
/* 原 GIS 对话框默认不显示历史栏;会话管理从按钮抽屉打开。 */
|
|
@@ -13258,8 +13259,7 @@ const Sb = '/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@im
|
|
|
13258
13259
|
}
|
|
13259
13260
|
|
|
13260
13261
|
@media (max-width: 760px) {
|
|
13261
|
-
.gis-platform-agent-panel
|
|
13262
|
-
.gis-platform-agent-panel.is-expanded {
|
|
13262
|
+
.gis-platform-agent-panel:not(.is-expanded) {
|
|
13263
13263
|
left: 12px;
|
|
13264
13264
|
top: 12px;
|
|
13265
13265
|
width: calc(100vw - 24px);
|
|
@@ -13814,8 +13814,7 @@ const Sb = '/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@im
|
|
|
13814
13814
|
}
|
|
13815
13815
|
|
|
13816
13816
|
@media (max-width: 760px) {
|
|
13817
|
-
.gis-platform-agent-panel
|
|
13818
|
-
.gis-platform-agent-panel.is-expanded {
|
|
13817
|
+
.gis-platform-agent-panel:not(.is-expanded) {
|
|
13819
13818
|
left: 0;
|
|
13820
13819
|
top: 0;
|
|
13821
13820
|
width: min(420px, 100vw);
|
|
@@ -13854,19 +13853,19 @@ class Bb {
|
|
|
13854
13853
|
}
|
|
13855
13854
|
const Gb = 420;
|
|
13856
13855
|
function um(u) {
|
|
13857
|
-
const o = window.visualViewport, m = o?.width ?? window.innerWidth, f = o?.height ?? window.innerHeight, Y = o?.offsetTop ?? 0,
|
|
13856
|
+
const o = window.visualViewport, m = o?.width ?? window.innerWidth, f = o?.height ?? window.innerHeight, Y = o?.offsetTop ?? 0, z = Math.min(680, Math.max(0, f - 104)), S = u.anchorElement?.getBoundingClientRect(), C = S ? S.right + 12 : 340, O = S ? S.top : 80, x = u.position?.left ?? C, X = u.position?.top ?? O;
|
|
13858
13857
|
return {
|
|
13859
13858
|
left: rm(x, 12, Math.max(12, m - Gb - 12)),
|
|
13860
|
-
top: rm(X, Math.max(12, Y + 12), Math.max(Y + 12, Y + f -
|
|
13859
|
+
top: rm(X, Math.max(12, Y + 12), Math.max(Y + 12, Y + f - z - 12))
|
|
13861
13860
|
};
|
|
13862
13861
|
}
|
|
13863
13862
|
function rm(u, o, m) {
|
|
13864
13863
|
return Math.min(Math.max(u, o), m);
|
|
13865
13864
|
}
|
|
13866
13865
|
function Eb({ options: u, runtime: o }) {
|
|
13867
|
-
const m = (L) => o.subscribe(L), f = () => o.isOpen(), Y = k.useSyncExternalStore(m, f, f), [
|
|
13868
|
-
|
|
13869
|
-
}, [
|
|
13866
|
+
const m = (L) => o.subscribe(L), f = () => o.isOpen(), Y = k.useSyncExternalStore(m, f, f), [z, S] = k.useState(!1), [C, O] = k.useState(!1), [x, X] = k.useState(() => um(u)), B = jb(), F = B.sessions.find((L) => L.id === B.activeId), P = k.useCallback(() => {
|
|
13867
|
+
z || X(um(u));
|
|
13868
|
+
}, [z, u]);
|
|
13870
13869
|
return k.useEffect(() => (P(), window.addEventListener("resize", P), window.visualViewport?.addEventListener("resize", P), window.visualViewport?.addEventListener("scroll", P), () => {
|
|
13871
13870
|
window.removeEventListener("resize", P), window.visualViewport?.removeEventListener("resize", P), window.visualViewport?.removeEventListener("scroll", P);
|
|
13872
13871
|
}), [P]), k.useEffect(() => {
|
|
@@ -13874,10 +13873,10 @@ function Eb({ options: u, runtime: o }) {
|
|
|
13874
13873
|
}, [u, B.error]), Y ? /* @__PURE__ */ s.jsx("div", { className: "gis-platform-agent-host", children: /* @__PURE__ */ s.jsxs(
|
|
13875
13874
|
"section",
|
|
13876
13875
|
{
|
|
13877
|
-
className: `gis-platform-agent-panel${
|
|
13876
|
+
className: `gis-platform-agent-panel${z ? " is-expanded" : ""}`,
|
|
13878
13877
|
role: "dialog",
|
|
13879
13878
|
"aria-label": u.title ?? "智能助手",
|
|
13880
|
-
style: Qp(x, u.style,
|
|
13879
|
+
style: Qp(x, u.style, z),
|
|
13881
13880
|
children: [
|
|
13882
13881
|
/* @__PURE__ */ s.jsx(
|
|
13883
13882
|
Ab,
|
|
@@ -13923,11 +13922,13 @@ function Eb({ options: u, runtime: o }) {
|
|
|
13923
13922
|
{
|
|
13924
13923
|
type: "button",
|
|
13925
13924
|
className: "gis-platform-agent-expand",
|
|
13926
|
-
"aria-label":
|
|
13925
|
+
"aria-label": z ? "退出全屏" : "全屏",
|
|
13926
|
+
title: z ? "退出全屏" : "全屏",
|
|
13927
|
+
"aria-pressed": z,
|
|
13927
13928
|
onClick: () => {
|
|
13928
|
-
S((L) => !L),
|
|
13929
|
+
S((L) => !L), z && P();
|
|
13929
13930
|
},
|
|
13930
|
-
children:
|
|
13931
|
+
children: z ? /* @__PURE__ */ s.jsx(xp, { className: "h-4 w-4" }) : /* @__PURE__ */ s.jsx(bp, { className: "h-4 w-4" })
|
|
13931
13932
|
}
|
|
13932
13933
|
),
|
|
13933
13934
|
/* @__PURE__ */ s.jsx(
|
|
@@ -13948,11 +13949,11 @@ function Jb(u, o) {
|
|
|
13948
13949
|
if (!(u instanceof Element)) throw new TypeError("mountAgentChat 需要有效的 DOM 容器。");
|
|
13949
13950
|
const m = Gr(o.platform), f = new Bb(o), Y = u.ownerDocument.createElement("div");
|
|
13950
13951
|
Y.dataset.agentChatInstance = "platform";
|
|
13951
|
-
const
|
|
13952
|
+
const z = Y.attachShadow({ mode: "open" }), S = u.ownerDocument.createElement("style");
|
|
13952
13953
|
S.textContent = `${Sb}
|
|
13953
13954
|
${Yb}`;
|
|
13954
13955
|
const C = u.ownerDocument.createElement("div");
|
|
13955
|
-
|
|
13956
|
+
z.append(S, C), u.appendChild(Y);
|
|
13956
13957
|
const O = F0.createRoot(C);
|
|
13957
13958
|
O.render(/* @__PURE__ */ s.jsx(dm.Provider, { value: m, children: /* @__PURE__ */ s.jsx(Eb, { options: o, runtime: f }) }));
|
|
13958
13959
|
let x = !1;
|
package/dist/gis-agent.js
CHANGED
|
@@ -4,15 +4,15 @@ function v({
|
|
|
4
4
|
buttonId: s = `${g}-MapEngineAIAgent`,
|
|
5
5
|
style: m,
|
|
6
6
|
onEvent: y,
|
|
7
|
-
platform:
|
|
8
|
-
baseUrl: "/
|
|
7
|
+
platform: f = {
|
|
8
|
+
baseUrl: "/platform"
|
|
9
9
|
},
|
|
10
10
|
GIS_AGENT_PLATFORM_URL: a,
|
|
11
|
-
onError:
|
|
11
|
+
onError: u
|
|
12
12
|
} = {}) {
|
|
13
13
|
if (typeof s != "string" || !s.trim())
|
|
14
14
|
throw new TypeError("buttonId 必须是非空的元素 ID,不需要带 #。");
|
|
15
|
-
let
|
|
15
|
+
let h = f;
|
|
16
16
|
if (a !== void 0) {
|
|
17
17
|
let e;
|
|
18
18
|
try {
|
|
@@ -22,11 +22,10 @@ function v({
|
|
|
22
22
|
}
|
|
23
23
|
if (typeof a != "string" || !["http:", "https:"].includes(e.protocol) || e.username || e.password || e.search || e.hash || e.pathname.replace(/\/+$/, "") !== "")
|
|
24
24
|
throw new TypeError("GIS_AGENT_PLATFORM_URL 只填写 HTTP(S) 服务地址和端口,不要包含 /platform、查询参数或账号密码。");
|
|
25
|
-
|
|
25
|
+
h = { ...f, baseUrl: `${e.origin}/platform` };
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const f = (e = t) => {
|
|
27
|
+
let r = !1, l, t, d;
|
|
28
|
+
const c = (e = t) => {
|
|
30
29
|
if (!e) return;
|
|
31
30
|
const n = o.get(e);
|
|
32
31
|
n && (n.destroyed = !0, e.removeEventListener("click", n.onClick), n.handle && n.handle.destroy(), o.delete(e)), e === t && (t = void 0, d = void 0);
|
|
@@ -44,29 +43,29 @@ function v({
|
|
|
44
43
|
n.handle.toggle();
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
n.loading || (n.loading = import("./chunks/index-
|
|
46
|
+
n.loading || (n.loading = import("./chunks/index-Bfu4BZ3N.js").then(({ mountAgentChat: i }) => {
|
|
48
47
|
if (!n.destroyed)
|
|
49
48
|
return n.handle = i(document.body, {
|
|
50
49
|
anchorElement: e,
|
|
51
50
|
initialOpen: !0,
|
|
52
51
|
title: "智能助手",
|
|
53
52
|
onEvent: y,
|
|
54
|
-
platform:
|
|
53
|
+
platform: h,
|
|
55
54
|
style: m,
|
|
56
|
-
onError:
|
|
55
|
+
onError: u
|
|
57
56
|
}), n.handle;
|
|
58
57
|
}).catch((i) => {
|
|
59
|
-
n.loading = void 0, console.error("智能体对话框加载失败。", i),
|
|
58
|
+
n.loading = void 0, console.error("智能体对话框加载失败。", i), u?.({ code: "AGENT_LOAD_FAILED", message: i instanceof Error ? i.message : String(i) });
|
|
60
59
|
}));
|
|
61
60
|
}
|
|
62
61
|
}, e.addEventListener("click", n.onClick), o.set(e, n), t = e, d = n;
|
|
63
|
-
},
|
|
62
|
+
}, p = () => {
|
|
64
63
|
if (r) return;
|
|
65
64
|
const e = document.getElementById(s);
|
|
66
|
-
e !== t && (t && !t.isConnected &&
|
|
65
|
+
e !== t && (t && !t.isConnected && c(t), e && w(e)), t && !t.isConnected && c(t);
|
|
67
66
|
};
|
|
68
|
-
return
|
|
69
|
-
r || (r = !0,
|
|
67
|
+
return p(), l = new MutationObserver(p), l.observe(document.body, { childList: !0, subtree: !0 }), () => {
|
|
68
|
+
r || (r = !0, l?.disconnect(), d && (d.destroyed = !0), c(t));
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
export {
|