@amp-labs/react 2.4.7 → 2.4.8
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/build/amp-react.cjs.js +11 -11
- package/build/amp-react.es.js +769 -767
- package/package.json +1 -1
package/build/amp-react.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Va = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var C = (e, t, n) => (
|
|
6
|
-
var
|
|
4
|
+
var Vo = (e, t, n) => t.has(e) || Va("Cannot " + n);
|
|
5
|
+
var C = (e, t, n) => (Vo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), se = (e, t, n) => t.has(e) ? Va("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), J = (e, t, n, r) => (Vo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ge = (e, t, n) => (Vo(e, t, "access private method"), n);
|
|
6
|
+
var Vi = (e, t, n, r) => ({
|
|
7
7
|
set _(o) {
|
|
8
8
|
J(e, t, o, n);
|
|
9
9
|
},
|
|
@@ -13,7 +13,7 @@ var Ki = (e, t, n, r) => ({
|
|
|
13
13
|
});
|
|
14
14
|
import { jsx as p, jsxs as z, Fragment as tt } from "react/jsx-runtime";
|
|
15
15
|
import * as P from "react";
|
|
16
|
-
import Be, { createContext as kt, useContext as Lt, useState as de, useCallback as re, useMemo as
|
|
16
|
+
import Be, { createContext as kt, useContext as Lt, useState as de, useCallback as re, useMemo as Ke, useEffect as Y, useRef as xe, cloneElement as Tp, useLayoutEffect as el, useReducer as Rp, Component as Ap, useImperativeHandle as xp, forwardRef as tl, createElement as no } from "react";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
var zr = class {
|
|
19
19
|
constructor() {
|
|
@@ -60,7 +60,7 @@ function $a(e, t) {
|
|
|
60
60
|
} = e;
|
|
61
61
|
if (s) {
|
|
62
62
|
if (r) {
|
|
63
|
-
if (t.queryHash !==
|
|
63
|
+
if (t.queryHash !== Vs(s, t.options))
|
|
64
64
|
return !1;
|
|
65
65
|
} else if (!ui(t.queryKey, s))
|
|
66
66
|
return !1;
|
|
@@ -72,7 +72,7 @@ function $a(e, t) {
|
|
|
72
72
|
}
|
|
73
73
|
return !(typeof a == "boolean" && t.isStale() !== a || o && o !== t.state.fetchStatus || i && !i(t));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function qa(e, t) {
|
|
76
76
|
const { exact: n, status: r, predicate: o, mutationKey: i } = e;
|
|
77
77
|
if (i) {
|
|
78
78
|
if (!t.options.mutationKey)
|
|
@@ -85,7 +85,7 @@ function Ua(e, t) {
|
|
|
85
85
|
}
|
|
86
86
|
return !(r && t.state.status !== r || o && !o(t));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Vs(e, t) {
|
|
89
89
|
return ((t == null ? void 0 : t.queryKeyHashFn) || fr)(e);
|
|
90
90
|
}
|
|
91
91
|
function fr(e) {
|
|
@@ -100,7 +100,7 @@ function ui(e, t) {
|
|
|
100
100
|
function os(e, t) {
|
|
101
101
|
if (e === t)
|
|
102
102
|
return e;
|
|
103
|
-
const n =
|
|
103
|
+
const n = Ua(e) && Ua(t);
|
|
104
104
|
if (n || ss(e) && ss(t)) {
|
|
105
105
|
const r = n ? e : Object.keys(e), o = r.length, i = n ? t : Object.keys(t), s = i.length, a = n ? [] : {};
|
|
106
106
|
let c = 0;
|
|
@@ -120,7 +120,7 @@ function ro(e, t) {
|
|
|
120
120
|
return !1;
|
|
121
121
|
return !0;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ua(e) {
|
|
124
124
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
125
125
|
}
|
|
126
126
|
function ss(e) {
|
|
@@ -170,11 +170,11 @@ function rl(e, t) {
|
|
|
170
170
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
171
171
|
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === io ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
172
172
|
}
|
|
173
|
-
var rr,
|
|
173
|
+
var rr, An, Er, Bc, kp = (Bc = class extends zr {
|
|
174
174
|
constructor() {
|
|
175
175
|
super();
|
|
176
176
|
se(this, rr);
|
|
177
|
-
se(this,
|
|
177
|
+
se(this, An);
|
|
178
178
|
se(this, Er);
|
|
179
179
|
J(this, Er, (t) => {
|
|
180
180
|
if (!pr && window.addEventListener) {
|
|
@@ -186,15 +186,15 @@ var rr, Rn, Er, Bc, kp = (Bc = class extends zr {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
onSubscribe() {
|
|
189
|
-
C(this,
|
|
189
|
+
C(this, An) || this.setEventListener(C(this, Er));
|
|
190
190
|
}
|
|
191
191
|
onUnsubscribe() {
|
|
192
192
|
var t;
|
|
193
|
-
this.hasListeners() || ((t = C(this,
|
|
193
|
+
this.hasListeners() || ((t = C(this, An)) == null || t.call(this), J(this, An, void 0));
|
|
194
194
|
}
|
|
195
195
|
setEventListener(t) {
|
|
196
196
|
var n;
|
|
197
|
-
J(this, Er, t), (n = C(this,
|
|
197
|
+
J(this, Er, t), (n = C(this, An)) == null || n.call(this), J(this, An, t((r) => {
|
|
198
198
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
199
199
|
}));
|
|
200
200
|
}
|
|
@@ -211,11 +211,11 @@ var rr, Rn, Er, Bc, kp = (Bc = class extends zr {
|
|
|
211
211
|
var t;
|
|
212
212
|
return typeof C(this, rr) == "boolean" ? C(this, rr) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
213
213
|
}
|
|
214
|
-
}, rr = new WeakMap(),
|
|
214
|
+
}, rr = new WeakMap(), An = new WeakMap(), Er = new WeakMap(), Bc), $s = new kp(), Sr, xn, Nr, Wc, Lp = (Wc = class extends zr {
|
|
215
215
|
constructor() {
|
|
216
216
|
super();
|
|
217
217
|
se(this, Sr, !0);
|
|
218
|
-
se(this,
|
|
218
|
+
se(this, xn);
|
|
219
219
|
se(this, Nr);
|
|
220
220
|
J(this, Nr, (t) => {
|
|
221
221
|
if (!pr && window.addEventListener) {
|
|
@@ -227,15 +227,15 @@ var rr, Rn, Er, Bc, kp = (Bc = class extends zr {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
onSubscribe() {
|
|
230
|
-
C(this,
|
|
230
|
+
C(this, xn) || this.setEventListener(C(this, Nr));
|
|
231
231
|
}
|
|
232
232
|
onUnsubscribe() {
|
|
233
233
|
var t;
|
|
234
|
-
this.hasListeners() || ((t = C(this,
|
|
234
|
+
this.hasListeners() || ((t = C(this, xn)) == null || t.call(this), J(this, xn, void 0));
|
|
235
235
|
}
|
|
236
236
|
setEventListener(t) {
|
|
237
237
|
var n;
|
|
238
|
-
J(this, Nr, t), (n = C(this,
|
|
238
|
+
J(this, Nr, t), (n = C(this, xn)) == null || n.call(this), J(this, xn, t(this.setOnline.bind(this)));
|
|
239
239
|
}
|
|
240
240
|
setOnline(t) {
|
|
241
241
|
C(this, Sr) !== t && (J(this, Sr, t), this.listeners.forEach((r) => {
|
|
@@ -245,7 +245,7 @@ var rr, Rn, Er, Bc, kp = (Bc = class extends zr {
|
|
|
245
245
|
isOnline() {
|
|
246
246
|
return C(this, Sr);
|
|
247
247
|
}
|
|
248
|
-
}, Sr = new WeakMap(),
|
|
248
|
+
}, Sr = new WeakMap(), xn = new WeakMap(), Nr = new WeakMap(), Wc), oo = new Lp();
|
|
249
249
|
function cs() {
|
|
250
250
|
let e, t;
|
|
251
251
|
const n = new Promise((o, i) => {
|
|
@@ -268,7 +268,7 @@ function cs() {
|
|
|
268
268
|
}), t(o);
|
|
269
269
|
}, n;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Kp(e) {
|
|
272
272
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
273
273
|
}
|
|
274
274
|
function il(e) {
|
|
@@ -319,7 +319,7 @@ function sl(e) {
|
|
|
319
319
|
var T;
|
|
320
320
|
if (r)
|
|
321
321
|
return;
|
|
322
|
-
const g = e.retry ?? (pr ? 0 : 3), I = e.retryDelay ??
|
|
322
|
+
const g = e.retry ?? (pr ? 0 : 3), I = e.retryDelay ?? Kp, O = typeof I == "function" ? I(n, _) : I, b = g === !0 || typeof g == "number" && n < g || typeof g == "function" && g(n, _);
|
|
323
323
|
if (t || !b) {
|
|
324
324
|
m(_);
|
|
325
325
|
return;
|
|
@@ -339,7 +339,7 @@ function sl(e) {
|
|
|
339
339
|
start: () => (u() ? y() : h().then(y), i)
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Vp() {
|
|
343
343
|
let e = [], t = 0, n = (a) => {
|
|
344
344
|
a();
|
|
345
345
|
}, r = (a) => {
|
|
@@ -398,7 +398,7 @@ function Kp() {
|
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
var Xe =
|
|
401
|
+
var Xe = Vp(), ir, Jc, al = (Jc = class {
|
|
402
402
|
constructor() {
|
|
403
403
|
se(this, ir);
|
|
404
404
|
}
|
|
@@ -430,7 +430,7 @@ var Xe = Kp(), ir, Jc, al = (Jc = class {
|
|
|
430
430
|
se(this, dt);
|
|
431
431
|
se(this, vi);
|
|
432
432
|
se(this, sr);
|
|
433
|
-
J(this, sr, !1), J(this, vi, t.defaultOptions), this.setOptions(t.options), this.observers = [], J(this, or, t.client), J(this, Ft, C(this, or).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, J(this, Tr,
|
|
433
|
+
J(this, sr, !1), J(this, vi, t.defaultOptions), this.setOptions(t.options), this.observers = [], J(this, or, t.client), J(this, Ft, C(this, or).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, J(this, Tr, qp(this.options)), this.state = t.state ?? C(this, Tr), this.scheduleGc();
|
|
434
434
|
}
|
|
435
435
|
get meta() {
|
|
436
436
|
return this.options.meta;
|
|
@@ -687,7 +687,7 @@ function cl(e, t) {
|
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function qp(e) {
|
|
691
691
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
692
692
|
return {
|
|
693
693
|
data: t,
|
|
@@ -704,14 +704,14 @@ function Up(e) {
|
|
|
704
704
|
fetchStatus: "idle"
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
var en, jc,
|
|
707
|
+
var en, jc, Up = (jc = class extends zr {
|
|
708
708
|
constructor(t = {}) {
|
|
709
709
|
super();
|
|
710
710
|
se(this, en);
|
|
711
711
|
this.config = t, J(this, en, /* @__PURE__ */ new Map());
|
|
712
712
|
}
|
|
713
713
|
build(t, n, r) {
|
|
714
|
-
const o = n.queryKey, i = n.queryHash ??
|
|
714
|
+
const o = n.queryKey, i = n.queryHash ?? Vs(o, n);
|
|
715
715
|
let s = this.get(i);
|
|
716
716
|
return s || (s = new $p({
|
|
717
717
|
client: t,
|
|
@@ -776,7 +776,7 @@ var en, jc, qp = (jc = class extends zr {
|
|
|
776
776
|
});
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
|
-
}, en = new WeakMap(), jc), tn, pt, ar, nn,
|
|
779
|
+
}, en = new WeakMap(), jc), tn, pt, ar, nn, Rn, Gc, Hp = (Gc = class extends al {
|
|
780
780
|
constructor(t) {
|
|
781
781
|
super();
|
|
782
782
|
se(this, nn);
|
|
@@ -818,13 +818,13 @@ var en, jc, qp = (jc = class extends zr {
|
|
|
818
818
|
J(this, ar, sl({
|
|
819
819
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
820
820
|
onFail: (N, D) => {
|
|
821
|
-
ge(this, nn,
|
|
821
|
+
ge(this, nn, Rn).call(this, { type: "failed", failureCount: N, error: D });
|
|
822
822
|
},
|
|
823
823
|
onPause: () => {
|
|
824
|
-
ge(this, nn,
|
|
824
|
+
ge(this, nn, Rn).call(this, { type: "pause" });
|
|
825
825
|
},
|
|
826
826
|
onContinue: () => {
|
|
827
|
-
ge(this, nn,
|
|
827
|
+
ge(this, nn, Rn).call(this, { type: "continue" });
|
|
828
828
|
},
|
|
829
829
|
retry: this.options.retry ?? 0,
|
|
830
830
|
retryDelay: this.options.retryDelay,
|
|
@@ -834,13 +834,13 @@ var en, jc, qp = (jc = class extends zr {
|
|
|
834
834
|
const n = this.state.status === "pending", r = !C(this, ar).canStart();
|
|
835
835
|
try {
|
|
836
836
|
if (!n) {
|
|
837
|
-
ge(this, nn,
|
|
837
|
+
ge(this, nn, Rn).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = C(this, pt).config).onMutate) == null ? void 0 : i.call(
|
|
838
838
|
o,
|
|
839
839
|
t,
|
|
840
840
|
this
|
|
841
841
|
));
|
|
842
842
|
const D = await ((a = (s = this.options).onMutate) == null ? void 0 : a.call(s, t));
|
|
843
|
-
D !== this.state.context && ge(this, nn,
|
|
843
|
+
D !== this.state.context && ge(this, nn, Rn).call(this, {
|
|
844
844
|
type: "pending",
|
|
845
845
|
context: D,
|
|
846
846
|
variables: t,
|
|
@@ -861,7 +861,7 @@ var en, jc, qp = (jc = class extends zr {
|
|
|
861
861
|
this.state.variables,
|
|
862
862
|
this.state.context,
|
|
863
863
|
this
|
|
864
|
-
)), await ((v = (y = this.options).onSettled) == null ? void 0 : v.call(y, N, null, t, this.state.context)), ge(this, nn,
|
|
864
|
+
)), await ((v = (y = this.options).onSettled) == null ? void 0 : v.call(y, N, null, t, this.state.context)), ge(this, nn, Rn).call(this, { type: "success", data: N }), N;
|
|
865
865
|
} catch (N) {
|
|
866
866
|
try {
|
|
867
867
|
throw await ((_ = (f = C(this, pt).config).onError) == null ? void 0 : _.call(
|
|
@@ -890,13 +890,13 @@ var en, jc, qp = (jc = class extends zr {
|
|
|
890
890
|
this.state.context
|
|
891
891
|
)), N;
|
|
892
892
|
} finally {
|
|
893
|
-
ge(this, nn,
|
|
893
|
+
ge(this, nn, Rn).call(this, { type: "error", error: N });
|
|
894
894
|
}
|
|
895
895
|
} finally {
|
|
896
896
|
C(this, pt).runNext(this);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
}, tn = new WeakMap(), pt = new WeakMap(), ar = new WeakMap(), nn = new WeakSet(),
|
|
899
|
+
}, tn = new WeakMap(), pt = new WeakMap(), ar = new WeakMap(), nn = new WeakSet(), Rn = function(t) {
|
|
900
900
|
const n = (r) => {
|
|
901
901
|
switch (t.type) {
|
|
902
902
|
case "failed":
|
|
@@ -984,7 +984,7 @@ var gn, jt, wi, Qc, Bp = (Qc = class extends zr {
|
|
|
984
984
|
build(t, n, r) {
|
|
985
985
|
const o = new Hp({
|
|
986
986
|
mutationCache: this,
|
|
987
|
-
mutationId: ++
|
|
987
|
+
mutationId: ++Vi(this, wi)._,
|
|
988
988
|
options: t.defaultMutationOptions(n),
|
|
989
989
|
state: r
|
|
990
990
|
});
|
|
@@ -1045,11 +1045,11 @@ var gn, jt, wi, Qc, Bp = (Qc = class extends zr {
|
|
|
1045
1045
|
find(t) {
|
|
1046
1046
|
const n = { exact: !0, ...t };
|
|
1047
1047
|
return this.getAll().find(
|
|
1048
|
-
(r) =>
|
|
1048
|
+
(r) => qa(n, r)
|
|
1049
1049
|
);
|
|
1050
1050
|
}
|
|
1051
1051
|
findAll(t = {}) {
|
|
1052
|
-
return this.getAll().filter((n) =>
|
|
1052
|
+
return this.getAll().filter((n) => qa(t, n));
|
|
1053
1053
|
}
|
|
1054
1054
|
notify(t) {
|
|
1055
1055
|
Xe.batch(() => {
|
|
@@ -1154,20 +1154,20 @@ function Wp(e, { pages: t, pageParams: n }) {
|
|
|
1154
1154
|
var r;
|
|
1155
1155
|
return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
|
|
1156
1156
|
}
|
|
1157
|
-
var $e,
|
|
1157
|
+
var $e, Pn, Dn, Ar, xr, Fn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
1158
1158
|
constructor(e = {}) {
|
|
1159
1159
|
se(this, $e);
|
|
1160
|
-
se(this, xn);
|
|
1161
1160
|
se(this, Pn);
|
|
1161
|
+
se(this, Dn);
|
|
1162
1162
|
se(this, Ar);
|
|
1163
1163
|
se(this, xr);
|
|
1164
|
-
se(this,
|
|
1164
|
+
se(this, Fn);
|
|
1165
1165
|
se(this, Pr);
|
|
1166
1166
|
se(this, Dr);
|
|
1167
|
-
J(this, $e, e.queryCache || new
|
|
1167
|
+
J(this, $e, e.queryCache || new Up()), J(this, Pn, e.mutationCache || new Bp()), J(this, Dn, e.defaultOptions || {}), J(this, Ar, /* @__PURE__ */ new Map()), J(this, xr, /* @__PURE__ */ new Map()), J(this, Fn, 0);
|
|
1168
1168
|
}
|
|
1169
1169
|
mount() {
|
|
1170
|
-
|
|
1170
|
+
Vi(this, Fn)._++, C(this, Fn) === 1 && (J(this, Pr, $s.subscribe(async (e) => {
|
|
1171
1171
|
e && (await this.resumePausedMutations(), C(this, $e).onFocus());
|
|
1172
1172
|
})), J(this, Dr, oo.subscribe(async (e) => {
|
|
1173
1173
|
e && (await this.resumePausedMutations(), C(this, $e).onOnline());
|
|
@@ -1175,13 +1175,13 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
unmount() {
|
|
1177
1177
|
var e, t;
|
|
1178
|
-
|
|
1178
|
+
Vi(this, Fn)._--, C(this, Fn) === 0 && ((e = C(this, Pr)) == null || e.call(this), J(this, Pr, void 0), (t = C(this, Dr)) == null || t.call(this), J(this, Dr, void 0));
|
|
1179
1179
|
}
|
|
1180
1180
|
isFetching(e) {
|
|
1181
1181
|
return C(this, $e).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
1182
1182
|
}
|
|
1183
1183
|
isMutating(e) {
|
|
1184
|
-
return C(this,
|
|
1184
|
+
return C(this, Pn).findAll({ ...e, status: "pending" }).length;
|
|
1185
1185
|
}
|
|
1186
1186
|
getQueryData(e) {
|
|
1187
1187
|
var n;
|
|
@@ -1289,19 +1289,19 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1289
1289
|
return e.behavior = Ba(e.pages), this.ensureQueryData(e);
|
|
1290
1290
|
}
|
|
1291
1291
|
resumePausedMutations() {
|
|
1292
|
-
return oo.isOnline() ? C(this,
|
|
1292
|
+
return oo.isOnline() ? C(this, Pn).resumePausedMutations() : Promise.resolve();
|
|
1293
1293
|
}
|
|
1294
1294
|
getQueryCache() {
|
|
1295
1295
|
return C(this, $e);
|
|
1296
1296
|
}
|
|
1297
1297
|
getMutationCache() {
|
|
1298
|
-
return C(this,
|
|
1298
|
+
return C(this, Pn);
|
|
1299
1299
|
}
|
|
1300
1300
|
getDefaultOptions() {
|
|
1301
|
-
return C(this,
|
|
1301
|
+
return C(this, Dn);
|
|
1302
1302
|
}
|
|
1303
1303
|
setDefaultOptions(e) {
|
|
1304
|
-
J(this,
|
|
1304
|
+
J(this, Dn, e);
|
|
1305
1305
|
}
|
|
1306
1306
|
setQueryDefaults(e, t) {
|
|
1307
1307
|
C(this, Ar).set(fr(e), {
|
|
@@ -1332,28 +1332,28 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1332
1332
|
if (e._defaulted)
|
|
1333
1333
|
return e;
|
|
1334
1334
|
const t = {
|
|
1335
|
-
...C(this,
|
|
1335
|
+
...C(this, Dn).queries,
|
|
1336
1336
|
...this.getQueryDefaults(e.queryKey),
|
|
1337
1337
|
...e,
|
|
1338
1338
|
_defaulted: !0
|
|
1339
1339
|
};
|
|
1340
|
-
return t.queryHash || (t.queryHash =
|
|
1340
|
+
return t.queryHash || (t.queryHash = Vs(
|
|
1341
1341
|
t.queryKey,
|
|
1342
1342
|
t
|
|
1343
1343
|
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === io && (t.enabled = !1), t;
|
|
1344
1344
|
}
|
|
1345
1345
|
defaultMutationOptions(e) {
|
|
1346
1346
|
return e != null && e._defaulted ? e : {
|
|
1347
|
-
...C(this,
|
|
1347
|
+
...C(this, Dn).mutations,
|
|
1348
1348
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
1349
1349
|
...e,
|
|
1350
1350
|
_defaulted: !0
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
1353
|
clear() {
|
|
1354
|
-
C(this, $e).clear(), C(this,
|
|
1354
|
+
C(this, $e).clear(), C(this, Pn).clear();
|
|
1355
1355
|
}
|
|
1356
|
-
}, $e = new WeakMap(),
|
|
1356
|
+
}, $e = new WeakMap(), Pn = new WeakMap(), Dn = new WeakMap(), Ar = new WeakMap(), xr = new WeakMap(), Fn = new WeakMap(), Pr = new WeakMap(), Dr = new WeakMap(), Xc), vt, Ie, Ii, ft, cr, Fr, Mn, rn, bi, Mr, kr, lr, ur, kn, Lr, Te, si, ls, us, ds, ps, fs, hs, ms, ul, Yc, zp = (Yc = class extends zr {
|
|
1357
1357
|
constructor(t, n) {
|
|
1358
1358
|
super();
|
|
1359
1359
|
se(this, Te);
|
|
@@ -1363,7 +1363,7 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1363
1363
|
se(this, ft);
|
|
1364
1364
|
se(this, cr);
|
|
1365
1365
|
se(this, Fr);
|
|
1366
|
-
se(this,
|
|
1366
|
+
se(this, Mn);
|
|
1367
1367
|
se(this, rn);
|
|
1368
1368
|
se(this, bi);
|
|
1369
1369
|
se(this, Mr);
|
|
@@ -1372,9 +1372,9 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1372
1372
|
se(this, kr);
|
|
1373
1373
|
se(this, lr);
|
|
1374
1374
|
se(this, ur);
|
|
1375
|
-
se(this,
|
|
1375
|
+
se(this, kn);
|
|
1376
1376
|
se(this, Lr, /* @__PURE__ */ new Set());
|
|
1377
|
-
this.options = n, J(this, vt, t), J(this, rn, null), J(this,
|
|
1377
|
+
this.options = n, J(this, vt, t), J(this, rn, null), J(this, Mn, cs()), this.options.experimental_prefetchInRender || C(this, Mn).reject(
|
|
1378
1378
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
1379
1379
|
), this.bindMethods(), this.setOptions(n);
|
|
1380
1380
|
}
|
|
@@ -1423,7 +1423,7 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1423
1423
|
r
|
|
1424
1424
|
) && ge(this, Te, si).call(this), this.updateResult(n), i && (C(this, Ie) !== o || Gt(this.options.enabled, C(this, Ie)) !== Gt(r.enabled, C(this, Ie)) || Or(this.options.staleTime, C(this, Ie)) !== Or(r.staleTime, C(this, Ie))) && ge(this, Te, ls).call(this);
|
|
1425
1425
|
const s = ge(this, Te, us).call(this);
|
|
1426
|
-
i && (C(this, Ie) !== o || Gt(this.options.enabled, C(this, Ie)) !== Gt(r.enabled, C(this, Ie)) || s !== C(this,
|
|
1426
|
+
i && (C(this, Ie) !== o || Gt(this.options.enabled, C(this, Ie)) !== Gt(r.enabled, C(this, Ie)) || s !== C(this, kn)) && ge(this, Te, ds).call(this, s);
|
|
1427
1427
|
}
|
|
1428
1428
|
getOptimisticResult(t) {
|
|
1429
1429
|
const n = C(this, vt).getQueryCache().build(C(this, vt), t), r = this.createResult(n, t);
|
|
@@ -1468,8 +1468,8 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1468
1468
|
const r = C(this, Ie), o = this.options, i = C(this, ft), s = C(this, cr), a = C(this, Fr), l = t !== r ? t.state : C(this, Ii), { state: u } = t;
|
|
1469
1469
|
let d = { ...u }, m = !1, h;
|
|
1470
1470
|
if (n._optimisticResults) {
|
|
1471
|
-
const D = this.hasListeners(),
|
|
1472
|
-
(
|
|
1471
|
+
const D = this.hasListeners(), q = !D && Ja(t, n), j = D && za(t, r, n, o);
|
|
1472
|
+
(q || j) && (d = {
|
|
1473
1473
|
...d,
|
|
1474
1474
|
...cl(u.data, t.options)
|
|
1475
1475
|
}), n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
@@ -1496,8 +1496,8 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1496
1496
|
) : n.placeholderData, n.select && D !== void 0)
|
|
1497
1497
|
try {
|
|
1498
1498
|
D = n.select(D), J(this, rn, null);
|
|
1499
|
-
} catch (
|
|
1500
|
-
J(this, rn,
|
|
1499
|
+
} catch (q) {
|
|
1500
|
+
J(this, rn, q);
|
|
1501
1501
|
}
|
|
1502
1502
|
D !== void 0 && (f = "success", h = as(
|
|
1503
1503
|
i == null ? void 0 : i.data,
|
|
@@ -1529,26 +1529,26 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1529
1529
|
isPaused: d.fetchStatus === "paused",
|
|
1530
1530
|
isPlaceholderData: m,
|
|
1531
1531
|
isRefetchError: I && b,
|
|
1532
|
-
isStale:
|
|
1532
|
+
isStale: qs(t, n),
|
|
1533
1533
|
refetch: this.refetch,
|
|
1534
|
-
promise: C(this,
|
|
1534
|
+
promise: C(this, Mn)
|
|
1535
1535
|
};
|
|
1536
1536
|
if (this.options.experimental_prefetchInRender) {
|
|
1537
1537
|
const D = (G) => {
|
|
1538
1538
|
S.status === "error" ? G.reject(S.error) : S.data !== void 0 && G.resolve(S.data);
|
|
1539
|
-
},
|
|
1540
|
-
const G = J(this,
|
|
1539
|
+
}, q = () => {
|
|
1540
|
+
const G = J(this, Mn, S.promise = cs());
|
|
1541
1541
|
D(G);
|
|
1542
|
-
}, j = C(this,
|
|
1542
|
+
}, j = C(this, Mn);
|
|
1543
1543
|
switch (j.status) {
|
|
1544
1544
|
case "pending":
|
|
1545
1545
|
t.queryHash === r.queryHash && D(j);
|
|
1546
1546
|
break;
|
|
1547
1547
|
case "fulfilled":
|
|
1548
|
-
(S.status === "error" || S.data !== j.value) &&
|
|
1548
|
+
(S.status === "error" || S.data !== j.value) && q();
|
|
1549
1549
|
break;
|
|
1550
1550
|
case "rejected":
|
|
1551
|
-
(S.status !== "error" || S.error !== j.reason) &&
|
|
1551
|
+
(S.status !== "error" || S.error !== j.reason) && q();
|
|
1552
1552
|
break;
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
@@ -1578,7 +1578,7 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1578
1578
|
onQueryUpdate() {
|
|
1579
1579
|
this.updateResult(), this.hasListeners() && ge(this, Te, ps).call(this);
|
|
1580
1580
|
}
|
|
1581
|
-
}, vt = new WeakMap(), Ie = new WeakMap(), Ii = new WeakMap(), ft = new WeakMap(), cr = new WeakMap(), Fr = new WeakMap(),
|
|
1581
|
+
}, vt = new WeakMap(), Ie = new WeakMap(), Ii = new WeakMap(), ft = new WeakMap(), cr = new WeakMap(), Fr = new WeakMap(), Mn = new WeakMap(), rn = new WeakMap(), bi = new WeakMap(), Mr = new WeakMap(), kr = new WeakMap(), lr = new WeakMap(), ur = new WeakMap(), kn = new WeakMap(), Lr = new WeakMap(), Te = new WeakSet(), si = function(t) {
|
|
1582
1582
|
ge(this, Te, ms).call(this);
|
|
1583
1583
|
let n = C(this, Ie).fetch(
|
|
1584
1584
|
this.options,
|
|
@@ -1600,9 +1600,9 @@ var $e, xn, Pn, Ar, xr, Dn, Pr, Dr, Xc, Jp = (Xc = class {
|
|
|
1600
1600
|
}, us = function() {
|
|
1601
1601
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(C(this, Ie)) : this.options.refetchInterval) ?? !1;
|
|
1602
1602
|
}, ds = function(t) {
|
|
1603
|
-
ge(this, Te, hs).call(this), J(this,
|
|
1603
|
+
ge(this, Te, hs).call(this), J(this, kn, t), !(pr || Gt(this.options.enabled, C(this, Ie)) === !1 || !is(C(this, kn)) || C(this, kn) === 0) && J(this, ur, setInterval(() => {
|
|
1604
1604
|
(this.options.refetchIntervalInBackground || $s.isFocused()) && ge(this, Te, si).call(this);
|
|
1605
|
-
}, C(this,
|
|
1605
|
+
}, C(this, kn)));
|
|
1606
1606
|
}, ps = function() {
|
|
1607
1607
|
ge(this, Te, ls).call(this), ge(this, Te, ds).call(this, ge(this, Te, us).call(this));
|
|
1608
1608
|
}, fs = function() {
|
|
@@ -1634,28 +1634,28 @@ function Ja(e, t) {
|
|
|
1634
1634
|
function gs(e, t, n) {
|
|
1635
1635
|
if (Gt(t.enabled, e) !== !1) {
|
|
1636
1636
|
const r = typeof n == "function" ? n(e) : n;
|
|
1637
|
-
return r === "always" || r !== !1 &&
|
|
1637
|
+
return r === "always" || r !== !1 && qs(e, t);
|
|
1638
1638
|
}
|
|
1639
1639
|
return !1;
|
|
1640
1640
|
}
|
|
1641
1641
|
function za(e, t, n, r) {
|
|
1642
|
-
return (e !== t || Gt(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") &&
|
|
1642
|
+
return (e !== t || Gt(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && qs(e, n);
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function qs(e, t) {
|
|
1645
1645
|
return Gt(t.enabled, e) !== !1 && e.isStaleByTime(Or(t.staleTime, e));
|
|
1646
1646
|
}
|
|
1647
1647
|
function Gp(e, t) {
|
|
1648
1648
|
return !ro(e.getCurrentResult(), t);
|
|
1649
1649
|
}
|
|
1650
|
-
var
|
|
1650
|
+
var Ln, Kn, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
1651
1651
|
constructor(n, r) {
|
|
1652
1652
|
super();
|
|
1653
1653
|
se(this, In);
|
|
1654
|
-
se(this, kn);
|
|
1655
1654
|
se(this, Ln);
|
|
1655
|
+
se(this, Kn);
|
|
1656
1656
|
se(this, wt);
|
|
1657
1657
|
se(this, yn);
|
|
1658
|
-
J(this,
|
|
1658
|
+
J(this, Ln, n), this.setOptions(r), this.bindMethods(), ge(this, In, Qi).call(this);
|
|
1659
1659
|
}
|
|
1660
1660
|
bindMethods() {
|
|
1661
1661
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -1663,7 +1663,7 @@ var kn, Ln, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
|
1663
1663
|
setOptions(n) {
|
|
1664
1664
|
var o;
|
|
1665
1665
|
const r = this.options;
|
|
1666
|
-
this.options = C(this,
|
|
1666
|
+
this.options = C(this, Ln).defaultMutationOptions(n), ro(this.options, r) || C(this, Ln).getMutationCache().notify({
|
|
1667
1667
|
type: "observerOptionsUpdated",
|
|
1668
1668
|
mutation: C(this, wt),
|
|
1669
1669
|
observer: this
|
|
@@ -1677,7 +1677,7 @@ var kn, Ln, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
|
1677
1677
|
ge(this, In, Qi).call(this), ge(this, In, ys).call(this, n);
|
|
1678
1678
|
}
|
|
1679
1679
|
getCurrentResult() {
|
|
1680
|
-
return C(this,
|
|
1680
|
+
return C(this, Kn);
|
|
1681
1681
|
}
|
|
1682
1682
|
reset() {
|
|
1683
1683
|
var n;
|
|
@@ -1685,12 +1685,12 @@ var kn, Ln, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
mutate(n, r) {
|
|
1687
1687
|
var o;
|
|
1688
|
-
return J(this, yn, r), (o = C(this, wt)) == null || o.removeObserver(this), J(this, wt, C(this,
|
|
1688
|
+
return J(this, yn, r), (o = C(this, wt)) == null || o.removeObserver(this), J(this, wt, C(this, Ln).getMutationCache().build(C(this, Ln), this.options)), C(this, wt).addObserver(this), C(this, wt).execute(n);
|
|
1689
1689
|
}
|
|
1690
|
-
},
|
|
1690
|
+
}, Ln = new WeakMap(), Kn = new WeakMap(), wt = new WeakMap(), yn = new WeakMap(), In = new WeakSet(), Qi = function() {
|
|
1691
1691
|
var r;
|
|
1692
1692
|
const n = ((r = C(this, wt)) == null ? void 0 : r.state) ?? ll();
|
|
1693
|
-
J(this,
|
|
1693
|
+
J(this, Kn, {
|
|
1694
1694
|
...n,
|
|
1695
1695
|
isPending: n.status === "pending",
|
|
1696
1696
|
isSuccess: n.status === "success",
|
|
@@ -1703,7 +1703,7 @@ var kn, Ln, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
|
1703
1703
|
Xe.batch(() => {
|
|
1704
1704
|
var r, o, i, s, a, c, l, u;
|
|
1705
1705
|
if (C(this, yn) && this.hasListeners()) {
|
|
1706
|
-
const d = C(this,
|
|
1706
|
+
const d = C(this, Kn).variables, m = C(this, Kn).context;
|
|
1707
1707
|
(n == null ? void 0 : n.type) === "success" ? ((o = (r = C(this, yn)).onSuccess) == null || o.call(r, n.data, d, m), (s = (i = C(this, yn)).onSettled) == null || s.call(i, n.data, null, d, m)) : (n == null ? void 0 : n.type) === "error" && ((c = (a = C(this, yn)).onError) == null || c.call(a, n.error, d, m), (u = (l = C(this, yn)).onSettled) == null || u.call(
|
|
1708
1708
|
l,
|
|
1709
1709
|
void 0,
|
|
@@ -1713,12 +1713,12 @@ var kn, Ln, wt, yn, In, Qi, ys, Zc, Qp = (Zc = class extends zr {
|
|
|
1713
1713
|
));
|
|
1714
1714
|
}
|
|
1715
1715
|
this.listeners.forEach((d) => {
|
|
1716
|
-
d(C(this,
|
|
1716
|
+
d(C(this, Kn));
|
|
1717
1717
|
});
|
|
1718
1718
|
});
|
|
1719
1719
|
}, Zc), dl = P.createContext(
|
|
1720
1720
|
void 0
|
|
1721
|
-
),
|
|
1721
|
+
), bn = (e) => {
|
|
1722
1722
|
const t = P.useContext(dl);
|
|
1723
1723
|
if (!t)
|
|
1724
1724
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
@@ -1772,7 +1772,7 @@ function lf(e, t, n) {
|
|
|
1772
1772
|
throw new Error(
|
|
1773
1773
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
1774
1774
|
);
|
|
1775
|
-
const r =
|
|
1775
|
+
const r = bn(), o = Yp(), i = tf(), s = r.defaultQueryOptions(e);
|
|
1776
1776
|
(m = (d = r.getDefaultOptions().queries) == null ? void 0 : d._experimental_beforeQuery) == null || m.call(
|
|
1777
1777
|
d,
|
|
1778
1778
|
s
|
|
@@ -1827,7 +1827,7 @@ function jr(e, t) {
|
|
|
1827
1827
|
return lf(e, zp);
|
|
1828
1828
|
}
|
|
1829
1829
|
function hl(e, t) {
|
|
1830
|
-
const n =
|
|
1830
|
+
const n = bn(), [r] = P.useState(
|
|
1831
1831
|
() => new Qp(
|
|
1832
1832
|
n,
|
|
1833
1833
|
e
|
|
@@ -1861,7 +1861,7 @@ const ml = kt(null), uf = ml.Provider, Gr = () => {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
var fe = /* @__PURE__ */ ((e) => (e.MAPPING = "mappingError", e.INTEGRATION_LIST = "integrationListError", e.PROJECT = "projectError", e.CONNECTION_LIST = "connectionListError", e.HYDRATED_REVISION = "hydratedRevisionError", e.INSTALLATION_LIST = "installationListError", e.INSTALLATION_MUTATION = "installationMutationError", e.VALUE_MAPPING = "valueMappingError", e))(fe || {});
|
|
1863
1863
|
const gl = kt(void 0);
|
|
1864
|
-
function
|
|
1864
|
+
function Kt() {
|
|
1865
1865
|
const e = Lt(gl);
|
|
1866
1866
|
if (!e)
|
|
1867
1867
|
throw new Error("useErrorState must be used within a ErrorProvider");
|
|
@@ -1911,7 +1911,7 @@ function pf({ children: e }) {
|
|
|
1911
1911
|
h[u][y] = !0;
|
|
1912
1912
|
}), h;
|
|
1913
1913
|
});
|
|
1914
|
-
}, [n]), l =
|
|
1914
|
+
}, [n]), l = Ke(
|
|
1915
1915
|
() => ({
|
|
1916
1916
|
errorState: t,
|
|
1917
1917
|
setErrorState: n,
|
|
@@ -1927,7 +1927,7 @@ function pf({ children: e }) {
|
|
|
1927
1927
|
return /* @__PURE__ */ p(gl.Provider, { value: l, children: e });
|
|
1928
1928
|
}
|
|
1929
1929
|
const ff = "https://api.withampersand.com/v1".replace(/\/+$/, "");
|
|
1930
|
-
class
|
|
1930
|
+
class Us {
|
|
1931
1931
|
constructor(t = {}) {
|
|
1932
1932
|
this.configuration = t;
|
|
1933
1933
|
}
|
|
@@ -1969,7 +1969,7 @@ class qs {
|
|
|
1969
1969
|
return this.configuration.credentials;
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
|
-
const hf = new
|
|
1972
|
+
const hf = new Us(), bo = class bo {
|
|
1973
1973
|
constructor(t = hf) {
|
|
1974
1974
|
this.configuration = t, this.fetchApi = async (n, r) => {
|
|
1975
1975
|
let o = { url: n, init: r };
|
|
@@ -2232,13 +2232,13 @@ function Lf(e) {
|
|
|
2232
2232
|
fullHistory: e.fullHistory
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Kf(e) {
|
|
2236
2236
|
if (e !== void 0)
|
|
2237
2237
|
return e === null ? null : {
|
|
2238
2238
|
defaultPeriod: Lf(e.defaultPeriod)
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function Vf(e) {
|
|
2242
2242
|
return $f(e);
|
|
2243
2243
|
}
|
|
2244
2244
|
function $f(e, t) {
|
|
@@ -2252,7 +2252,7 @@ function bl(e) {
|
|
|
2252
2252
|
enabled: e.enabled
|
|
2253
2253
|
};
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function qf(e) {
|
|
2256
2256
|
if (e !== void 0)
|
|
2257
2257
|
return e === null ? null : {
|
|
2258
2258
|
objectName: e.objectName,
|
|
@@ -2262,13 +2262,13 @@ function Uf(e) {
|
|
|
2262
2262
|
selectedValueMappings: e.selectedValueMappings,
|
|
2263
2263
|
selectedFieldMappings: e.selectedFieldMappings,
|
|
2264
2264
|
selectedFieldsAuto: e.selectedFieldsAuto,
|
|
2265
|
-
backfill:
|
|
2265
|
+
backfill: Kf(e.backfill)
|
|
2266
2266
|
};
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function Uf(e) {
|
|
2269
2269
|
if (e !== void 0)
|
|
2270
2270
|
return e === null ? null : {
|
|
2271
|
-
objects: e.objects === void 0 ? void 0 : _i(e.objects,
|
|
2271
|
+
objects: e.objects === void 0 ? void 0 : _i(e.objects, qf)
|
|
2272
2272
|
};
|
|
2273
2273
|
}
|
|
2274
2274
|
function Hf(e) {
|
|
@@ -2338,7 +2338,7 @@ function eh(e) {
|
|
|
2338
2338
|
sourceYaml: e.sourceYaml
|
|
2339
2339
|
};
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function qi(e) {
|
|
2342
2342
|
return th(e);
|
|
2343
2343
|
}
|
|
2344
2344
|
function th(e, t) {
|
|
@@ -2370,7 +2370,7 @@ function oh(e, t) {
|
|
|
2370
2370
|
provider: e.provider,
|
|
2371
2371
|
read: R(e, "read") ? e.read : void 0,
|
|
2372
2372
|
write: R(e, "write") ? e.write : void 0,
|
|
2373
|
-
proxy: R(e, "proxy") ?
|
|
2373
|
+
proxy: R(e, "proxy") ? Vf(e.proxy) : void 0
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
2376
|
function sh(e) {
|
|
@@ -2596,10 +2596,10 @@ function Cl(e) {
|
|
|
2596
2596
|
function Lh(e, t) {
|
|
2597
2597
|
return e;
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2600
|
-
return
|
|
2599
|
+
function Kh(e) {
|
|
2600
|
+
return Vh(e);
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function Vh(e, t) {
|
|
2603
2603
|
return e == null ? e : {
|
|
2604
2604
|
objectName: e.objectName,
|
|
2605
2605
|
destination: e.destination,
|
|
@@ -2628,12 +2628,12 @@ function $h(e) {
|
|
|
2628
2628
|
delivery: Ah(e.delivery)
|
|
2629
2629
|
};
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return
|
|
2631
|
+
function qh(e) {
|
|
2632
|
+
return Uh(e);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2634
|
+
function Uh(e, t) {
|
|
2635
2635
|
return e == null ? e : {
|
|
2636
|
-
objects: R(e, "objects") ? e.objects.map(
|
|
2636
|
+
objects: R(e, "objects") ? e.objects.map(Kh) : void 0
|
|
2637
2637
|
};
|
|
2638
2638
|
}
|
|
2639
2639
|
function Hh(e) {
|
|
@@ -2768,7 +2768,7 @@ function dm(e, t) {
|
|
|
2768
2768
|
name: e.name,
|
|
2769
2769
|
displayName: R(e, "displayName") ? e.displayName : void 0,
|
|
2770
2770
|
provider: e.provider,
|
|
2771
|
-
read: R(e, "read") ?
|
|
2771
|
+
read: R(e, "read") ? qh(e.read) : void 0,
|
|
2772
2772
|
write: R(e, "write") ? am(e.write) : void 0,
|
|
2773
2773
|
proxy: R(e, "proxy") ? Eh(e.proxy) : void 0,
|
|
2774
2774
|
subscribe: R(e, "subscribe") ? Zh(e.subscribe) : void 0
|
|
@@ -2929,7 +2929,7 @@ function xm(e, t) {
|
|
|
2929
2929
|
mapToDisplayName: R(e, "mapToDisplayName") ? e.mapToDisplayName : void 0
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function qo(e) {
|
|
2933
2933
|
return Pm(e);
|
|
2934
2934
|
}
|
|
2935
2935
|
function Pm(e, t) {
|
|
@@ -2946,10 +2946,10 @@ function Fm(e, t) {
|
|
|
2946
2946
|
mapToDisplayName: R(e, "mapToDisplayName") ? e.mapToDisplayName : void 0,
|
|
2947
2947
|
destination: e.destination,
|
|
2948
2948
|
schedule: e.schedule,
|
|
2949
|
-
requiredFields: R(e, "requiredFields") ? e.requiredFields.map(
|
|
2950
|
-
optionalFields: R(e, "optionalFields") ? e.optionalFields.map(
|
|
2949
|
+
requiredFields: R(e, "requiredFields") ? e.requiredFields.map(qo) : void 0,
|
|
2950
|
+
optionalFields: R(e, "optionalFields") ? e.optionalFields.map(qo) : void 0,
|
|
2951
2951
|
optionalFieldsAuto: R(e, "optionalFieldsAuto") ? Cl(e.optionalFieldsAuto) : void 0,
|
|
2952
|
-
allFields: R(e, "allFields") ? e.allFields.map(
|
|
2952
|
+
allFields: R(e, "allFields") ? e.allFields.map(qo) : void 0,
|
|
2953
2953
|
allFieldsMetadata: R(e, "allFieldsMetadata") ? _i(e.allFieldsMetadata, Im) : void 0,
|
|
2954
2954
|
backfill: R(e, "backfill") ? Il(e.backfill) : void 0
|
|
2955
2955
|
};
|
|
@@ -2963,16 +2963,16 @@ function km(e, t) {
|
|
|
2963
2963
|
};
|
|
2964
2964
|
}
|
|
2965
2965
|
function Lm(e) {
|
|
2966
|
-
return
|
|
2966
|
+
return Km(e);
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function Km(e, t) {
|
|
2969
2969
|
return e == null ? e : {
|
|
2970
2970
|
objectName: e.objectName,
|
|
2971
2971
|
displayName: e.displayName,
|
|
2972
2972
|
valueDefaults: R(e, "valueDefaults") ? El(e.valueDefaults) : void 0
|
|
2973
2973
|
};
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function Vm(e) {
|
|
2976
2976
|
return $m(e);
|
|
2977
2977
|
}
|
|
2978
2978
|
function $m(e, t) {
|
|
@@ -2980,16 +2980,16 @@ function $m(e, t) {
|
|
|
2980
2980
|
objects: R(e, "objects") ? e.objects.map(Lm) : void 0
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2984
|
-
return
|
|
2983
|
+
function qm(e) {
|
|
2984
|
+
return Um(e);
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2986
|
+
function Um(e, t) {
|
|
2987
2987
|
return e == null ? e : {
|
|
2988
2988
|
name: e.name,
|
|
2989
2989
|
displayName: R(e, "displayName") ? e.displayName : void 0,
|
|
2990
2990
|
provider: e.provider,
|
|
2991
2991
|
read: R(e, "read") ? Mm(e.read) : void 0,
|
|
2992
|
-
write: R(e, "write") ?
|
|
2992
|
+
write: R(e, "write") ? Vm(e.write) : void 0,
|
|
2993
2993
|
proxy: R(e, "proxy") ? Rm(e.proxy) : void 0
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
@@ -3001,10 +3001,10 @@ function Bm(e, t) {
|
|
|
3001
3001
|
id: e.id,
|
|
3002
3002
|
specVersion: e.specVersion,
|
|
3003
3003
|
createTime: new Date(e.createTime),
|
|
3004
|
-
content:
|
|
3004
|
+
content: qm(e.content)
|
|
3005
3005
|
};
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function Ui(e) {
|
|
3008
3008
|
return Wm(e);
|
|
3009
3009
|
}
|
|
3010
3010
|
function Wm(e, t) {
|
|
@@ -3171,7 +3171,7 @@ function fg(e) {
|
|
|
3171
3171
|
if (e !== void 0)
|
|
3172
3172
|
return e === null ? null : {
|
|
3173
3173
|
provider: e.provider,
|
|
3174
|
-
read:
|
|
3174
|
+
read: Uf(e.read),
|
|
3175
3175
|
write: Xf(e.write),
|
|
3176
3176
|
proxy: bl(e.proxy)
|
|
3177
3177
|
};
|
|
@@ -3352,7 +3352,7 @@ class _g extends sn {
|
|
|
3352
3352
|
query: r,
|
|
3353
3353
|
body: Ch(t.installation)
|
|
3354
3354
|
}, n);
|
|
3355
|
-
return new We(i, (s) =>
|
|
3355
|
+
return new We(i, (s) => Ui(s));
|
|
3356
3356
|
}
|
|
3357
3357
|
/**
|
|
3358
3358
|
* Create a new installation
|
|
@@ -3404,7 +3404,7 @@ class _g extends sn {
|
|
|
3404
3404
|
headers: o,
|
|
3405
3405
|
query: r
|
|
3406
3406
|
}, n);
|
|
3407
|
-
return new We(i, (s) =>
|
|
3407
|
+
return new We(i, (s) => Ui(s));
|
|
3408
3408
|
}
|
|
3409
3409
|
/**
|
|
3410
3410
|
* Get an installation
|
|
@@ -3430,7 +3430,7 @@ class _g extends sn {
|
|
|
3430
3430
|
headers: o,
|
|
3431
3431
|
query: r
|
|
3432
3432
|
}, n);
|
|
3433
|
-
return new We(i, (s) => s.map(
|
|
3433
|
+
return new We(i, (s) => s.map(Ui));
|
|
3434
3434
|
}
|
|
3435
3435
|
/**
|
|
3436
3436
|
* List installations
|
|
@@ -3459,7 +3459,7 @@ class _g extends sn {
|
|
|
3459
3459
|
query: r,
|
|
3460
3460
|
body: gg(t.installationUpdate)
|
|
3461
3461
|
}, n);
|
|
3462
|
-
return new We(i, (s) =>
|
|
3462
|
+
return new We(i, (s) => Ui(s));
|
|
3463
3463
|
}
|
|
3464
3464
|
/**
|
|
3465
3465
|
* Update an installation
|
|
@@ -3609,7 +3609,7 @@ class Eg extends sn {
|
|
|
3609
3609
|
query: r,
|
|
3610
3610
|
body: mm(t.project)
|
|
3611
3611
|
}, n);
|
|
3612
|
-
return new We(i, (s) =>
|
|
3612
|
+
return new We(i, (s) => qi(s));
|
|
3613
3613
|
}
|
|
3614
3614
|
/**
|
|
3615
3615
|
* Create a new project
|
|
@@ -3653,7 +3653,7 @@ class Eg extends sn {
|
|
|
3653
3653
|
headers: o,
|
|
3654
3654
|
query: r
|
|
3655
3655
|
}, n);
|
|
3656
|
-
return new We(i, (s) =>
|
|
3656
|
+
return new We(i, (s) => qi(s));
|
|
3657
3657
|
}
|
|
3658
3658
|
/**
|
|
3659
3659
|
* Get a project
|
|
@@ -3673,7 +3673,7 @@ class Eg extends sn {
|
|
|
3673
3673
|
headers: r,
|
|
3674
3674
|
query: n
|
|
3675
3675
|
}, t);
|
|
3676
|
-
return new We(o, (i) => i.map(
|
|
3676
|
+
return new We(o, (i) => i.map(qi));
|
|
3677
3677
|
}
|
|
3678
3678
|
/**
|
|
3679
3679
|
* List all projects that the API key or user credential has access to
|
|
@@ -3698,7 +3698,7 @@ class Eg extends sn {
|
|
|
3698
3698
|
query: r,
|
|
3699
3699
|
body: vg(t.projectUpdate)
|
|
3700
3700
|
}, n);
|
|
3701
|
-
return new We(i, (s) =>
|
|
3701
|
+
return new We(i, (s) => qi(s));
|
|
3702
3702
|
}
|
|
3703
3703
|
/**
|
|
3704
3704
|
* Update a project
|
|
@@ -3917,7 +3917,7 @@ class Sl {
|
|
|
3917
3917
|
this.connectionApi = new bg(t), this.installationApi = new _g(t), this.integrationApi = new Og(t), this.oAuthApi = new Cg(t), this.projectApi = new Eg(t), this.providerApi = new Sg(t), this.providerAppApi = new Ng(t), this.revisionApi = new Tg(t);
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
|
-
const Nl = "2.4.
|
|
3920
|
+
const Nl = "2.4.8", Rg = "v1", Hi = "https://api.withampersand.com";
|
|
3921
3921
|
function Tl() {
|
|
3922
3922
|
try {
|
|
3923
3923
|
const e = process.env.REACT_APP_AMP_SERVER;
|
|
@@ -3945,7 +3945,7 @@ const Ag = (e, t) => `${e}/${t}`;
|
|
|
3945
3945
|
function xg() {
|
|
3946
3946
|
return Ag(Tl(), Rg);
|
|
3947
3947
|
}
|
|
3948
|
-
const Pg = Tl(), Rl = xg(), Dg = new
|
|
3948
|
+
const Pg = Tl(), Rl = xg(), Dg = new Us({
|
|
3949
3949
|
basePath: Rl,
|
|
3950
3950
|
headers: {
|
|
3951
3951
|
"X-Amp-Client": "react",
|
|
@@ -3958,7 +3958,7 @@ function Wn() {
|
|
|
3958
3958
|
const e = Gr();
|
|
3959
3959
|
return re(async () => {
|
|
3960
3960
|
e || console.error("Unable to create API service without API key.");
|
|
3961
|
-
const n = new
|
|
3961
|
+
const n = new Us({
|
|
3962
3962
|
basePath: Rl,
|
|
3963
3963
|
headers: {
|
|
3964
3964
|
"X-Amp-Client": "react",
|
|
@@ -3995,18 +3995,18 @@ const bt = async (e, t) => {
|
|
|
3995
3995
|
projectId: "",
|
|
3996
3996
|
projectIdOrName: "",
|
|
3997
3997
|
isLoading: !0
|
|
3998
|
-
}),
|
|
3998
|
+
}), qe = () => {
|
|
3999
3999
|
const e = Lt(Al);
|
|
4000
4000
|
if (!e)
|
|
4001
4001
|
throw new Error("useProject must be used within a ProjectProvider");
|
|
4002
4002
|
return e;
|
|
4003
4003
|
};
|
|
4004
4004
|
function kg({ projectIdOrName: e, children: t }) {
|
|
4005
|
-
const { setError: n } =
|
|
4006
|
-
|
|
4005
|
+
const { setError: n } = Kt(), { data: r, isLoading: o, isError: i } = Mg(e);
|
|
4006
|
+
Y(() => {
|
|
4007
4007
|
i && n(fe.PROJECT, e);
|
|
4008
4008
|
}, [i, e, n]);
|
|
4009
|
-
const s =
|
|
4009
|
+
const s = Ke(() => ({
|
|
4010
4010
|
projectId: (r == null ? void 0 : r.id) || "",
|
|
4011
4011
|
projectIdOrName: e,
|
|
4012
4012
|
project: r || null,
|
|
@@ -4025,7 +4025,7 @@ const xl = kt({
|
|
|
4025
4025
|
return e;
|
|
4026
4026
|
};
|
|
4027
4027
|
function Lg() {
|
|
4028
|
-
const e = Wn(), { projectIdOrName: t } =
|
|
4028
|
+
const e = Wn(), { projectIdOrName: t } = qe();
|
|
4029
4029
|
return jr({
|
|
4030
4030
|
queryKey: ["amp", "integrations", t],
|
|
4031
4031
|
queryFn: async () => {
|
|
@@ -4035,18 +4035,18 @@ function Lg() {
|
|
|
4035
4035
|
enabled: !!t
|
|
4036
4036
|
});
|
|
4037
4037
|
}
|
|
4038
|
-
function
|
|
4039
|
-
const { projectIdOrName: t } =
|
|
4040
|
-
|
|
4038
|
+
function Kg({ children: e }) {
|
|
4039
|
+
const { projectIdOrName: t } = qe(), { setError: n, removeError: r } = Kt(), { data: o, isLoading: i, isError: s } = Lg();
|
|
4040
|
+
Y(() => {
|
|
4041
4041
|
s ? (bt(s), n(fe.INTEGRATION_LIST, t)) : r(fe.INTEGRATION_LIST, t);
|
|
4042
4042
|
}, [s, t, r, n]);
|
|
4043
|
-
const a =
|
|
4043
|
+
const a = Ke(() => ({
|
|
4044
4044
|
integrations: o || null,
|
|
4045
4045
|
isLoading: i
|
|
4046
4046
|
}), [o, i]);
|
|
4047
4047
|
return /* @__PURE__ */ p(xl.Provider, { value: a, children: e });
|
|
4048
4048
|
}
|
|
4049
|
-
const
|
|
4049
|
+
const Vg = new Jp();
|
|
4050
4050
|
function Z_(e) {
|
|
4051
4051
|
const { options: { apiKey: t, projectId: n, project: r }, children: o } = e, i = r || n;
|
|
4052
4052
|
if (n && r)
|
|
@@ -4055,7 +4055,7 @@ function Z_(e) {
|
|
|
4055
4055
|
throw new Error("Cannot use AmpersandProvider without a projectId or name.");
|
|
4056
4056
|
if (!t)
|
|
4057
4057
|
throw new Error("Cannot use AmpersandProvider without an apiKey.");
|
|
4058
|
-
return /* @__PURE__ */ p(Xp, { client:
|
|
4058
|
+
return /* @__PURE__ */ p(Xp, { client: Vg, children: /* @__PURE__ */ p(pf, { children: /* @__PURE__ */ p(uf, { value: t, children: /* @__PURE__ */ p(kg, { projectIdOrName: i, children: /* @__PURE__ */ p(Kg, { children: o }) }) }) }) });
|
|
4059
4059
|
}
|
|
4060
4060
|
const $g = kt(null);
|
|
4061
4061
|
function eO() {
|
|
@@ -4065,7 +4065,7 @@ function eO() {
|
|
|
4065
4065
|
component is wrapped with AmpersandProvider`);
|
|
4066
4066
|
return e;
|
|
4067
4067
|
}
|
|
4068
|
-
function
|
|
4068
|
+
function qg() {
|
|
4069
4069
|
return /* @__PURE__ */ z("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4070
4070
|
/* @__PURE__ */ p(
|
|
4071
4071
|
"path",
|
|
@@ -4081,8 +4081,8 @@ function Ug() {
|
|
|
4081
4081
|
/* @__PURE__ */ p("path", { d: "M24 34H24.02", stroke: "#7F1D1D", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4082
4082
|
] });
|
|
4083
4083
|
}
|
|
4084
|
-
const
|
|
4085
|
-
box:
|
|
4084
|
+
const Ug = "_box_1p7c5_1", Za = {
|
|
4085
|
+
box: Ug
|
|
4086
4086
|
};
|
|
4087
4087
|
function Jn({ children: e, className: t, style: n }) {
|
|
4088
4088
|
return /* @__PURE__ */ p("div", { className: t ? `${Za.box} ${t}` : Za.box, style: n, children: e });
|
|
@@ -4100,15 +4100,15 @@ function Qr({ children: e, className: t, style: n }) {
|
|
|
4100
4100
|
}
|
|
4101
4101
|
);
|
|
4102
4102
|
}
|
|
4103
|
-
const Bg = "_errorBoxContainer_4sdb2_1", Wg = "_errorBox_4sdb2_1", Jg = "_errorText_4sdb2_20",
|
|
4103
|
+
const Bg = "_errorBoxContainer_4sdb2_1", Wg = "_errorBox_4sdb2_1", Jg = "_errorText_4sdb2_20", Uo = {
|
|
4104
4104
|
errorBoxContainer: Bg,
|
|
4105
4105
|
errorBox: Wg,
|
|
4106
4106
|
errorText: Jg
|
|
4107
4107
|
};
|
|
4108
4108
|
function Pl({ message: e }) {
|
|
4109
|
-
return /* @__PURE__ */ z(Qr, { className:
|
|
4110
|
-
/* @__PURE__ */ p(
|
|
4111
|
-
/* @__PURE__ */ p(Jn, { className:
|
|
4109
|
+
return /* @__PURE__ */ z(Qr, { className: Uo.errorBoxContainer, children: [
|
|
4110
|
+
/* @__PURE__ */ p(qg, {}),
|
|
4111
|
+
/* @__PURE__ */ p(Jn, { className: Uo.errorBox, children: /* @__PURE__ */ p("p", { className: Uo.errorText, children: e }) })
|
|
4112
4112
|
] });
|
|
4113
4113
|
}
|
|
4114
4114
|
const zg = "_loader_6ubm6_1", jg = "_rotate_6ubm6_1", Gg = "_ball1_6ubm6_1", Qg = "_ball2_6ubm6_1", Xg = {
|
|
@@ -4147,7 +4147,7 @@ function on({ message: e }) {
|
|
|
4147
4147
|
}
|
|
4148
4148
|
const Fl = (e, t) => {
|
|
4149
4149
|
var s;
|
|
4150
|
-
const n = Wn(), { projectIdOrName: r } =
|
|
4150
|
+
const n = Wn(), { projectIdOrName: r } = qe(), { integrations: o } = Hs(), i = (s = o == null ? void 0 : o.find((a) => a.name === e)) == null ? void 0 : s.id;
|
|
4151
4151
|
return jr({
|
|
4152
4152
|
queryKey: ["amp", "installations", r, i, t],
|
|
4153
4153
|
queryFn: async () => {
|
|
@@ -4170,11 +4170,11 @@ function Bs(e, t) {
|
|
|
4170
4170
|
return t;
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function Kr(e) {
|
|
4174
4174
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
4175
4175
|
}
|
|
4176
4176
|
function Ml(e, t) {
|
|
4177
|
-
return (t == null ? void 0 : t.displayName) ??
|
|
4177
|
+
return (t == null ? void 0 : t.displayName) ?? Kr(e);
|
|
4178
4178
|
}
|
|
4179
4179
|
const Zg = (e) => e.split(`
|
|
4180
4180
|
`).filter((n) => n.trim() !== ""), ey = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
|
|
@@ -4224,7 +4224,7 @@ function ny({
|
|
|
4224
4224
|
onUninstallSuccess: c,
|
|
4225
4225
|
fieldMapping: l
|
|
4226
4226
|
}) {
|
|
4227
|
-
const { integrations: u } = Hs(), { setError: d, isError: m, removeError: h } =
|
|
4227
|
+
const { integrations: u } = Hs(), { setError: d, isError: m, removeError: h } = Kt(), { isIntegrationDeleted: y, setIntegrationDeleted: v, resetIntegrationDeleted: f } = ty(), _ = Ke(
|
|
4228
4228
|
() => ey(t, u || []),
|
|
4229
4229
|
[t, u]
|
|
4230
4230
|
), {
|
|
@@ -4233,7 +4233,7 @@ function ny({
|
|
|
4233
4233
|
isError: O,
|
|
4234
4234
|
error: b
|
|
4235
4235
|
} = Fl(t, o), T = (g == null ? void 0 : g[0]) || null;
|
|
4236
|
-
|
|
4236
|
+
Y(() => {
|
|
4237
4237
|
f();
|
|
4238
4238
|
}, [
|
|
4239
4239
|
t,
|
|
@@ -4243,19 +4243,19 @@ function ny({
|
|
|
4243
4243
|
i,
|
|
4244
4244
|
l
|
|
4245
4245
|
// onInstallSuccess, onUpdateSuccess, onUninstallSuccess, fieldMapping, resetIntegrationDeleted
|
|
4246
|
-
]),
|
|
4246
|
+
]), Y(() => {
|
|
4247
4247
|
_ === null && (u != null && u.length) && console.error(`Integration "${t}" not found in integration list`);
|
|
4248
|
-
}, [t, _, u]),
|
|
4248
|
+
}, [t, _, u]), Y(
|
|
4249
4249
|
() => {
|
|
4250
4250
|
O ? (d(fe.INSTALLATION_LIST, (_ == null ? void 0 : _.id) || ""), bt(b)) : h(fe.INSTALLATION_LIST, (_ == null ? void 0 : _.id) || "");
|
|
4251
4251
|
},
|
|
4252
4252
|
[O, _, d, h, b]
|
|
4253
4253
|
);
|
|
4254
|
-
const S =
|
|
4254
|
+
const S = bn(), N = re(() => {
|
|
4255
4255
|
S.invalidateQueries({ queryKey: ["amp", "installations"] });
|
|
4256
4256
|
}, [S]), D = re((G) => {
|
|
4257
4257
|
S.setQueryData(["amp", "installations"], [G]), S.invalidateQueries({ queryKey: ["amp", "installations"] });
|
|
4258
|
-
}, [S]),
|
|
4258
|
+
}, [S]), q = (_ == null ? void 0 : _.id) || "", j = Ke(() => ({
|
|
4259
4259
|
integrationId: (_ == null ? void 0 : _.id) || "",
|
|
4260
4260
|
provider: (_ == null ? void 0 : _.provider) || "",
|
|
4261
4261
|
integrationObj: _,
|
|
@@ -4292,7 +4292,7 @@ function ny({
|
|
|
4292
4292
|
return /* @__PURE__ */ p(Xr, {});
|
|
4293
4293
|
if (_ === null)
|
|
4294
4294
|
return /* @__PURE__ */ p(on, { message: `Integration "${t}" not found` });
|
|
4295
|
-
if (m(fe.INSTALLATION_LIST,
|
|
4295
|
+
if (m(fe.INSTALLATION_LIST, q)) {
|
|
4296
4296
|
const G = `Error retrieving installation information for integration "${(_ == null ? void 0 : _.name) || "unknown"}"`;
|
|
4297
4297
|
return /* @__PURE__ */ p(on, { message: G });
|
|
4298
4298
|
}
|
|
@@ -4312,7 +4312,7 @@ const Ll = kt({
|
|
|
4312
4312
|
throw new Error("useConnections must be used within a ConnectionsProvider");
|
|
4313
4313
|
return e;
|
|
4314
4314
|
}, ry = () => {
|
|
4315
|
-
const { projectIdOrName: e } =
|
|
4315
|
+
const { projectIdOrName: e } = qe(), { groupRef: t, provider: n } = at(), r = Wn();
|
|
4316
4316
|
return jr({
|
|
4317
4317
|
queryKey: ["amp", "connections", e, t, n],
|
|
4318
4318
|
queryFn: async () => {
|
|
@@ -4327,8 +4327,8 @@ const Ll = kt({
|
|
|
4327
4327
|
enabled: !!e && !!t && !!n
|
|
4328
4328
|
});
|
|
4329
4329
|
};
|
|
4330
|
-
function
|
|
4331
|
-
const t =
|
|
4330
|
+
function Kl({ children: e }) {
|
|
4331
|
+
const t = bn(), { setError: n, isError: r } = Kt(), { projectId: o, isLoading: i } = qe(), {
|
|
4332
4332
|
data: s,
|
|
4333
4333
|
isLoading: a,
|
|
4334
4334
|
isError: c,
|
|
@@ -4338,13 +4338,13 @@ function Vl({ children: e }) {
|
|
|
4338
4338
|
}, [t]), m = re(() => {
|
|
4339
4339
|
t.invalidateQueries({ queryKey: ["amp", "connections"] });
|
|
4340
4340
|
}, [t]);
|
|
4341
|
-
|
|
4341
|
+
Y(
|
|
4342
4342
|
() => {
|
|
4343
4343
|
c ? (n(fe.CONNECTION_LIST, o, !0), bt(l)) : n(fe.CONNECTION_LIST, o, !1);
|
|
4344
4344
|
},
|
|
4345
4345
|
[c, n, o, l]
|
|
4346
4346
|
);
|
|
4347
|
-
const h =
|
|
4347
|
+
const h = Ke(
|
|
4348
4348
|
() => ({
|
|
4349
4349
|
connections: s || null,
|
|
4350
4350
|
isConnectionsLoading: a,
|
|
@@ -4372,7 +4372,7 @@ function Vl({ children: e }) {
|
|
|
4372
4372
|
);
|
|
4373
4373
|
return /* @__PURE__ */ p(Ll.Provider, { value: h, children: e });
|
|
4374
4374
|
}
|
|
4375
|
-
function
|
|
4375
|
+
function Vl() {
|
|
4376
4376
|
const [e, t] = de(1);
|
|
4377
4377
|
return { seed: e, reset: () => {
|
|
4378
4378
|
t(Math.random());
|
|
@@ -4388,9 +4388,9 @@ function Ws(e) {
|
|
|
4388
4388
|
var so = { exports: {} };
|
|
4389
4389
|
so.exports;
|
|
4390
4390
|
(function(e, t) {
|
|
4391
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", m = "[object Error]", h = "[object Function]", y = "[object GeneratorFunction]", v = "[object Map]", f = "[object Number]", _ = "[object Null]", g = "[object Object]", I = "[object Promise]", O = "[object Proxy]", b = "[object RegExp]", T = "[object Set]", S = "[object String]", N = "[object Symbol]", D = "[object Undefined]",
|
|
4392
|
-
F[ie] = F[B] = F[ue] = F[ae] = F[ne] = F[we] = F[_e] = F[A] = F[k] = !0, F[a] = F[c] = F[j] = F[u] = F[G] = F[d] = F[m] = F[h] = F[v] = F[f] = F[g] = F[b] = F[T] = F[S] = F[
|
|
4393
|
-
var
|
|
4391
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", m = "[object Error]", h = "[object Function]", y = "[object GeneratorFunction]", v = "[object Map]", f = "[object Number]", _ = "[object Null]", g = "[object Object]", I = "[object Promise]", O = "[object Proxy]", b = "[object RegExp]", T = "[object Set]", S = "[object String]", N = "[object Symbol]", D = "[object Undefined]", q = "[object WeakMap]", j = "[object ArrayBuffer]", G = "[object DataView]", ie = "[object Float32Array]", B = "[object Float64Array]", ue = "[object Int8Array]", ae = "[object Int16Array]", ne = "[object Int32Array]", we = "[object Uint8Array]", _e = "[object Uint8ClampedArray]", A = "[object Uint16Array]", k = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, K = /^\[object .+?Constructor\]$/, L = /^(?:0|[1-9]\d*)$/, F = {};
|
|
4392
|
+
F[ie] = F[B] = F[ue] = F[ae] = F[ne] = F[we] = F[_e] = F[A] = F[k] = !0, F[a] = F[c] = F[j] = F[u] = F[G] = F[d] = F[m] = F[h] = F[v] = F[f] = F[g] = F[b] = F[T] = F[S] = F[q] = !1;
|
|
4393
|
+
var Z = typeof Bi == "object" && Bi && Bi.Object === Object && Bi, ee = typeof self == "object" && self && self.Object === Object && self, U = Z || ee || Function("return this")(), te = t && !t.nodeType && t, Q = te && !0 && e && !e.nodeType && e, he = Q && Q.exports === te, M = he && Z.process, be = function() {
|
|
4394
4394
|
try {
|
|
4395
4395
|
return M && M.binding && M.binding("util");
|
|
4396
4396
|
} catch {
|
|
@@ -4398,8 +4398,8 @@ so.exports;
|
|
|
4398
4398
|
}(), H = be && be.isTypedArray;
|
|
4399
4399
|
function Re(w, E) {
|
|
4400
4400
|
for (var x = -1, X = w == null ? 0 : w.length, De = 0, me = []; ++x < X; ) {
|
|
4401
|
-
var
|
|
4402
|
-
E(
|
|
4401
|
+
var Ve = w[x];
|
|
4402
|
+
E(Ve, x, w) && (me[De++] = Ve);
|
|
4403
4403
|
}
|
|
4404
4404
|
return me;
|
|
4405
4405
|
}
|
|
@@ -4424,7 +4424,7 @@ so.exports;
|
|
|
4424
4424
|
return w(E);
|
|
4425
4425
|
};
|
|
4426
4426
|
}
|
|
4427
|
-
function
|
|
4427
|
+
function Vt(w, E) {
|
|
4428
4428
|
return w.has(E);
|
|
4429
4429
|
}
|
|
4430
4430
|
function rt(w, E) {
|
|
@@ -4441,18 +4441,18 @@ so.exports;
|
|
|
4441
4441
|
return w(E(x));
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function qt(w) {
|
|
4445
4445
|
var E = -1, x = Array(w.size);
|
|
4446
4446
|
return w.forEach(function(X) {
|
|
4447
4447
|
x[++E] = X;
|
|
4448
4448
|
}), x;
|
|
4449
4449
|
}
|
|
4450
|
-
var it = Array.prototype, Ye = Function.prototype, ze = Object.prototype, Me =
|
|
4450
|
+
var it = Array.prototype, Ye = Function.prototype, ze = Object.prototype, Me = U["__core-js_shared__"], Ut = Ye.toString, ct = ze.hasOwnProperty, ln = function() {
|
|
4451
4451
|
var w = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
|
|
4452
4452
|
return w ? "Symbol(src)_1." + w : "";
|
|
4453
|
-
}(),
|
|
4454
|
-
"^" +
|
|
4455
|
-
), ke = he ?
|
|
4453
|
+
}(), _n = ze.toString, Ot = RegExp(
|
|
4454
|
+
"^" + Ut.call(ct).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4455
|
+
), ke = he ? U.Buffer : void 0, un = U.Symbol, On = U.Uint8Array, dn = ze.propertyIsEnumerable, jn = it.splice, mt = un ? un.toStringTag : void 0, pn = Object.getOwnPropertySymbols, Cn = ke ? ke.isBuffer : void 0, Gn = $t(Object.keys, Object), En = Ir(U, "DataView"), Fe = Ir(U, "Map"), lt = Ir(U, "Promise"), oe = Ir(U, "Set"), ve = Ir(U, "WeakMap"), je = Ir(Object, "create"), fn = Yn(En), W = Yn(Fe), le = Yn(lt), pe = Yn(oe), Ue = Yn(ve), Ge = un ? un.prototype : void 0, gt = Ge ? Ge.valueOf : void 0;
|
|
4456
4456
|
function Ze(w) {
|
|
4457
4457
|
var E = -1, x = w == null ? 0 : w.length;
|
|
4458
4458
|
for (this.clear(); ++E < x; ) {
|
|
@@ -4554,7 +4554,7 @@ so.exports;
|
|
|
4554
4554
|
return this.__data__.has(w);
|
|
4555
4555
|
}
|
|
4556
4556
|
Di.prototype.add = Di.prototype.push = ep, Di.prototype.has = tp;
|
|
4557
|
-
function
|
|
4557
|
+
function Sn(w) {
|
|
4558
4558
|
var E = this.__data__ = new At(w);
|
|
4559
4559
|
this.size = E.size;
|
|
4560
4560
|
}
|
|
@@ -4581,11 +4581,11 @@ so.exports;
|
|
|
4581
4581
|
}
|
|
4582
4582
|
return x.set(w, E), this.size = x.size, this;
|
|
4583
4583
|
}
|
|
4584
|
-
|
|
4584
|
+
Sn.prototype.clear = np, Sn.prototype.delete = rp, Sn.prototype.get = ip, Sn.prototype.has = op, Sn.prototype.set = sp;
|
|
4585
4585
|
function ap(w, E) {
|
|
4586
|
-
var x = ki(w), X = !x && _p(w), De = !x && !X &&
|
|
4586
|
+
var x = ki(w), X = !x && _p(w), De = !x && !X && Ko(w), me = !x && !X && !De && La(w), Ve = x || X || De || me, et = Ve ? Je(w.length, String) : [], st = et.length;
|
|
4587
4587
|
for (var Le in w)
|
|
4588
|
-
ct.call(w, Le) && !(
|
|
4588
|
+
ct.call(w, Le) && !(Ve && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4589
4589
|
(Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
4590
4590
|
De && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
4591
4591
|
me && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
|
|
@@ -4612,29 +4612,29 @@ so.exports;
|
|
|
4612
4612
|
return w === E ? !0 : w == null || E == null || !ii(w) && !ii(E) ? w !== w && E !== E : lp(w, E, x, X, Aa, De);
|
|
4613
4613
|
}
|
|
4614
4614
|
function lp(w, E, x, X, De, me) {
|
|
4615
|
-
var
|
|
4615
|
+
var Ve = ki(w), et = ki(E), st = Ve ? c : Nn(w), Le = et ? c : Nn(E);
|
|
4616
4616
|
st = st == a ? g : st, Le = Le == a ? g : Le;
|
|
4617
4617
|
var Ct = st == g, Wt = Le == g, ut = st == Le;
|
|
4618
|
-
if (ut &&
|
|
4619
|
-
if (!
|
|
4618
|
+
if (ut && Ko(w)) {
|
|
4619
|
+
if (!Ko(E))
|
|
4620
4620
|
return !1;
|
|
4621
|
-
|
|
4621
|
+
Ve = !0, Ct = !1;
|
|
4622
4622
|
}
|
|
4623
4623
|
if (ut && !Ct)
|
|
4624
|
-
return me || (me = new
|
|
4624
|
+
return me || (me = new Sn()), Ve || La(w) ? xa(w, E, x, X, De, me) : fp(w, E, st, x, X, De, me);
|
|
4625
4625
|
if (!(x & o)) {
|
|
4626
4626
|
var xt = Ct && ct.call(w, "__wrapped__"), Pt = Wt && ct.call(E, "__wrapped__");
|
|
4627
4627
|
if (xt || Pt) {
|
|
4628
|
-
var
|
|
4629
|
-
return me || (me = new
|
|
4628
|
+
var Tn = xt ? w.value() : w, hn = Pt ? E.value() : E;
|
|
4629
|
+
return me || (me = new Sn()), De(Tn, hn, x, X, me);
|
|
4630
4630
|
}
|
|
4631
4631
|
}
|
|
4632
|
-
return ut ? (me || (me = new
|
|
4632
|
+
return ut ? (me || (me = new Sn()), hp(w, E, x, X, De, me)) : !1;
|
|
4633
4633
|
}
|
|
4634
4634
|
function up(w) {
|
|
4635
4635
|
if (!ka(w) || wp(w))
|
|
4636
4636
|
return !1;
|
|
4637
|
-
var E = Fa(w) ? Ot :
|
|
4637
|
+
var E = Fa(w) ? Ot : K;
|
|
4638
4638
|
return E.test(Yn(w));
|
|
4639
4639
|
}
|
|
4640
4640
|
function dp(w) {
|
|
@@ -4649,8 +4649,8 @@ so.exports;
|
|
|
4649
4649
|
return E;
|
|
4650
4650
|
}
|
|
4651
4651
|
function xa(w, E, x, X, De, me) {
|
|
4652
|
-
var
|
|
4653
|
-
if (et != st && !(
|
|
4652
|
+
var Ve = x & o, et = w.length, st = E.length;
|
|
4653
|
+
if (et != st && !(Ve && st > et))
|
|
4654
4654
|
return !1;
|
|
4655
4655
|
var Le = me.get(w);
|
|
4656
4656
|
if (Le && me.get(E))
|
|
@@ -4659,16 +4659,16 @@ so.exports;
|
|
|
4659
4659
|
for (me.set(w, E), me.set(E, w); ++Ct < et; ) {
|
|
4660
4660
|
var xt = w[Ct], Pt = E[Ct];
|
|
4661
4661
|
if (X)
|
|
4662
|
-
var
|
|
4663
|
-
if (
|
|
4664
|
-
if (
|
|
4662
|
+
var Tn = Ve ? X(Pt, xt, Ct, E, w, me) : X(xt, Pt, Ct, w, E, me);
|
|
4663
|
+
if (Tn !== void 0) {
|
|
4664
|
+
if (Tn)
|
|
4665
4665
|
continue;
|
|
4666
4666
|
Wt = !1;
|
|
4667
4667
|
break;
|
|
4668
4668
|
}
|
|
4669
4669
|
if (ut) {
|
|
4670
4670
|
if (!nt(E, function(hn, Zn) {
|
|
4671
|
-
if (!
|
|
4671
|
+
if (!Vt(ut, Zn) && (xt === hn || De(xt, hn, x, X, me)))
|
|
4672
4672
|
return ut.push(Zn);
|
|
4673
4673
|
})) {
|
|
4674
4674
|
Wt = !1;
|
|
@@ -4681,14 +4681,14 @@ so.exports;
|
|
|
4681
4681
|
}
|
|
4682
4682
|
return me.delete(w), me.delete(E), Wt;
|
|
4683
4683
|
}
|
|
4684
|
-
function fp(w, E, x, X, De, me,
|
|
4684
|
+
function fp(w, E, x, X, De, me, Ve) {
|
|
4685
4685
|
switch (x) {
|
|
4686
4686
|
case G:
|
|
4687
4687
|
if (w.byteLength != E.byteLength || w.byteOffset != E.byteOffset)
|
|
4688
4688
|
return !1;
|
|
4689
4689
|
w = w.buffer, E = E.buffer;
|
|
4690
4690
|
case j:
|
|
4691
|
-
return !(w.byteLength != E.byteLength || !me(new
|
|
4691
|
+
return !(w.byteLength != E.byteLength || !me(new On(w), new On(E)));
|
|
4692
4692
|
case u:
|
|
4693
4693
|
case d:
|
|
4694
4694
|
case f:
|
|
@@ -4702,14 +4702,14 @@ so.exports;
|
|
|
4702
4702
|
var et = _t;
|
|
4703
4703
|
case T:
|
|
4704
4704
|
var st = X & o;
|
|
4705
|
-
if (et || (et =
|
|
4705
|
+
if (et || (et = qt), w.size != E.size && !st)
|
|
4706
4706
|
return !1;
|
|
4707
|
-
var Le =
|
|
4707
|
+
var Le = Ve.get(w);
|
|
4708
4708
|
if (Le)
|
|
4709
4709
|
return Le == E;
|
|
4710
|
-
X |= i,
|
|
4711
|
-
var Ct = xa(et(w), et(E), X, De, me,
|
|
4712
|
-
return
|
|
4710
|
+
X |= i, Ve.set(w, E);
|
|
4711
|
+
var Ct = xa(et(w), et(E), X, De, me, Ve);
|
|
4712
|
+
return Ve.delete(w), Ct;
|
|
4713
4713
|
case N:
|
|
4714
4714
|
if (gt)
|
|
4715
4715
|
return gt.call(w) == gt.call(E);
|
|
@@ -4717,12 +4717,12 @@ so.exports;
|
|
|
4717
4717
|
return !1;
|
|
4718
4718
|
}
|
|
4719
4719
|
function hp(w, E, x, X, De, me) {
|
|
4720
|
-
var
|
|
4721
|
-
if (st != Ct && !
|
|
4720
|
+
var Ve = x & o, et = Pa(w), st = et.length, Le = Pa(E), Ct = Le.length;
|
|
4721
|
+
if (st != Ct && !Ve)
|
|
4722
4722
|
return !1;
|
|
4723
4723
|
for (var Wt = st; Wt--; ) {
|
|
4724
4724
|
var ut = et[Wt];
|
|
4725
|
-
if (!(
|
|
4725
|
+
if (!(Ve ? ut in E : ct.call(E, ut)))
|
|
4726
4726
|
return !1;
|
|
4727
4727
|
}
|
|
4728
4728
|
var xt = me.get(w);
|
|
@@ -4730,20 +4730,20 @@ so.exports;
|
|
|
4730
4730
|
return xt == E;
|
|
4731
4731
|
var Pt = !0;
|
|
4732
4732
|
me.set(w, E), me.set(E, w);
|
|
4733
|
-
for (var
|
|
4733
|
+
for (var Tn = Ve; ++Wt < st; ) {
|
|
4734
4734
|
ut = et[Wt];
|
|
4735
4735
|
var hn = w[ut], Zn = E[ut];
|
|
4736
4736
|
if (X)
|
|
4737
|
-
var
|
|
4738
|
-
if (!(
|
|
4737
|
+
var Ka = Ve ? X(Zn, hn, ut, E, w, me) : X(hn, Zn, ut, w, E, me);
|
|
4738
|
+
if (!(Ka === void 0 ? hn === Zn || De(hn, Zn, x, X, me) : Ka)) {
|
|
4739
4739
|
Pt = !1;
|
|
4740
4740
|
break;
|
|
4741
4741
|
}
|
|
4742
|
-
|
|
4742
|
+
Tn || (Tn = ut == "constructor");
|
|
4743
4743
|
}
|
|
4744
|
-
if (Pt && !
|
|
4745
|
-
var Li = w.constructor,
|
|
4746
|
-
Li !=
|
|
4744
|
+
if (Pt && !Tn) {
|
|
4745
|
+
var Li = w.constructor, Ki = E.constructor;
|
|
4746
|
+
Li != Ki && "constructor" in w && "constructor" in E && !(typeof Li == "function" && Li instanceof Li && typeof Ki == "function" && Ki instanceof Ki) && (Pt = !1);
|
|
4747
4747
|
}
|
|
4748
4748
|
return me.delete(w), me.delete(E), Pt;
|
|
4749
4749
|
}
|
|
@@ -4765,15 +4765,15 @@ so.exports;
|
|
|
4765
4765
|
var X = !0;
|
|
4766
4766
|
} catch {
|
|
4767
4767
|
}
|
|
4768
|
-
var De =
|
|
4768
|
+
var De = _n.call(w);
|
|
4769
4769
|
return X && (E ? w[mt] = x : delete w[mt]), De;
|
|
4770
4770
|
}
|
|
4771
4771
|
var gp = pn ? function(w) {
|
|
4772
4772
|
return w == null ? [] : (w = Object(w), Re(pn(w), function(E) {
|
|
4773
4773
|
return dn.call(w, E);
|
|
4774
4774
|
}));
|
|
4775
|
-
} : Sp,
|
|
4776
|
-
(
|
|
4775
|
+
} : Sp, Nn = ri;
|
|
4776
|
+
(En && Nn(new En(new ArrayBuffer(1))) != G || Fe && Nn(new Fe()) != v || lt && Nn(lt.resolve()) != I || oe && Nn(new oe()) != T || ve && Nn(new ve()) != q) && (Nn = function(w) {
|
|
4777
4777
|
var E = ri(w), x = E == g ? w.constructor : void 0, X = x ? Yn(x) : "";
|
|
4778
4778
|
if (X)
|
|
4779
4779
|
switch (X) {
|
|
@@ -4785,8 +4785,8 @@ so.exports;
|
|
|
4785
4785
|
return I;
|
|
4786
4786
|
case pe:
|
|
4787
4787
|
return T;
|
|
4788
|
-
case
|
|
4789
|
-
return
|
|
4788
|
+
case Ue:
|
|
4789
|
+
return q;
|
|
4790
4790
|
}
|
|
4791
4791
|
return E;
|
|
4792
4792
|
});
|
|
@@ -4805,12 +4805,12 @@ so.exports;
|
|
|
4805
4805
|
return w === x;
|
|
4806
4806
|
}
|
|
4807
4807
|
function bp(w) {
|
|
4808
|
-
return
|
|
4808
|
+
return _n.call(w);
|
|
4809
4809
|
}
|
|
4810
4810
|
function Yn(w) {
|
|
4811
4811
|
if (w != null) {
|
|
4812
4812
|
try {
|
|
4813
|
-
return
|
|
4813
|
+
return Ut.call(w);
|
|
4814
4814
|
} catch {
|
|
4815
4815
|
}
|
|
4816
4816
|
try {
|
|
@@ -4831,7 +4831,7 @@ so.exports;
|
|
|
4831
4831
|
function Op(w) {
|
|
4832
4832
|
return w != null && Ma(w.length) && !Fa(w);
|
|
4833
4833
|
}
|
|
4834
|
-
var
|
|
4834
|
+
var Ko = Cn || Np;
|
|
4835
4835
|
function Cp(w, E) {
|
|
4836
4836
|
return Aa(w, E);
|
|
4837
4837
|
}
|
|
@@ -4864,7 +4864,7 @@ so.exports;
|
|
|
4864
4864
|
e.exports = Cp;
|
|
4865
4865
|
})(so, so.exports);
|
|
4866
4866
|
var oy = so.exports;
|
|
4867
|
-
const
|
|
4867
|
+
const ql = /* @__PURE__ */ Ws(oy), mr = "other", ao = "uninstall-installation";
|
|
4868
4868
|
function Un(e) {
|
|
4869
4869
|
return !e.fieldName;
|
|
4870
4870
|
}
|
|
@@ -4896,7 +4896,7 @@ function uy(e) {
|
|
|
4896
4896
|
(n) => !Un(n) && !!n.fieldName
|
|
4897
4897
|
)) || null;
|
|
4898
4898
|
}
|
|
4899
|
-
const
|
|
4899
|
+
const Ul = (e, t) => {
|
|
4900
4900
|
var n, r, o;
|
|
4901
4901
|
return (o = (r = (n = e == null ? void 0 : e.content) == null ? void 0 : n.read) == null ? void 0 : r.objects) == null ? void 0 : o[t];
|
|
4902
4902
|
};
|
|
@@ -4910,11 +4910,11 @@ const Hl = (e, t) => {
|
|
|
4910
4910
|
n.push(
|
|
4911
4911
|
{
|
|
4912
4912
|
name: s == null ? void 0 : s.objectName,
|
|
4913
|
-
displayName: (s == null ? void 0 : s.mapToDisplayName) || (s == null ? void 0 : s.displayName) || (s == null ? void 0 : s.objectName) &&
|
|
4913
|
+
displayName: (s == null ? void 0 : s.mapToDisplayName) || (s == null ? void 0 : s.displayName) || (s == null ? void 0 : s.objectName) && Kr(s == null ? void 0 : s.objectName),
|
|
4914
4914
|
// fallback to objectName
|
|
4915
4915
|
// if no config, object is not completed
|
|
4916
4916
|
// object is completed if the key exists in the config
|
|
4917
|
-
completed: e ? !!
|
|
4917
|
+
completed: e ? !!Ul(e, s.objectName) : !1
|
|
4918
4918
|
}
|
|
4919
4919
|
);
|
|
4920
4920
|
}), n;
|
|
@@ -4937,10 +4937,10 @@ function Wl(e, t, n) {
|
|
|
4937
4937
|
return n(fe.MAPPING, o), r != null && r.length && console.error("required fields not met", r.map((i) => i.mapToDisplayName)), { errorList: o };
|
|
4938
4938
|
}
|
|
4939
4939
|
function fy(e, t) {
|
|
4940
|
-
return
|
|
4940
|
+
return ql(e, t);
|
|
4941
4941
|
}
|
|
4942
4942
|
function Jl(e, t) {
|
|
4943
|
-
return
|
|
4943
|
+
return ql(e, t);
|
|
4944
4944
|
}
|
|
4945
4945
|
const hy = (e, t, n) => {
|
|
4946
4946
|
var f, _, g, I, O, b, T, S, N;
|
|
@@ -5250,40 +5250,42 @@ const nu = kt({
|
|
|
5250
5250
|
throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
|
|
5251
5251
|
return e;
|
|
5252
5252
|
}, Ry = () => {
|
|
5253
|
-
var
|
|
5254
|
-
const e = Wn(), { selectedConnection:
|
|
5255
|
-
return
|
|
5256
|
-
queryKey: ["amp", "hydratedRevision"
|
|
5253
|
+
var l;
|
|
5254
|
+
const e = bn(), t = Wn(), { selectedConnection: n, isConnectionsLoading: r } = Yr(), { projectIdOrName: o } = qe(), { integrationId: i, integrationObj: s } = at(), a = n == null ? void 0 : n.id, c = (l = s == null ? void 0 : s.latestRevision) == null ? void 0 : l.id;
|
|
5255
|
+
return Y(() => {
|
|
5256
|
+
a || e.invalidateQueries({ queryKey: ["amp", "hydratedRevision"] });
|
|
5257
|
+
}, [a, e]), jr({
|
|
5258
|
+
queryKey: ["amp", "hydratedRevision", o, i, c, a],
|
|
5257
5259
|
queryFn: async () => {
|
|
5258
|
-
if (!
|
|
5259
|
-
if (!
|
|
5260
|
-
if (!
|
|
5261
|
-
if (!
|
|
5262
|
-
return (await
|
|
5263
|
-
projectIdOrName:
|
|
5264
|
-
integrationId:
|
|
5265
|
-
revisionId:
|
|
5266
|
-
connectionId:
|
|
5260
|
+
if (!o) throw new Error("projectIdOrName is required");
|
|
5261
|
+
if (!i) throw new Error("integrationId is required");
|
|
5262
|
+
if (!c) throw new Error("revisionId is required");
|
|
5263
|
+
if (!a) throw new Error("connectionId is required");
|
|
5264
|
+
return (await t()).revisionApi.getHydratedRevision({
|
|
5265
|
+
projectIdOrName: o,
|
|
5266
|
+
integrationId: i,
|
|
5267
|
+
revisionId: c,
|
|
5268
|
+
connectionId: a
|
|
5267
5269
|
});
|
|
5268
5270
|
},
|
|
5269
5271
|
retry: 3,
|
|
5270
5272
|
// retry 3 times before showing error
|
|
5271
|
-
enabled: !!
|
|
5273
|
+
enabled: !!o && !!i && !!c && !!a && !r
|
|
5272
5274
|
});
|
|
5273
5275
|
};
|
|
5274
5276
|
function Ay({
|
|
5275
5277
|
children: e
|
|
5276
5278
|
}) {
|
|
5277
|
-
const { integrationId: t, integrationObj: n } = at(), { isError: r, removeError: o, setError: i } =
|
|
5279
|
+
const { integrationId: t, integrationObj: n } = at(), { isError: r, removeError: o, setError: i } = Kt(), s = (n == null ? void 0 : n.name) || t, {
|
|
5278
5280
|
data: a,
|
|
5279
5281
|
isLoading: c,
|
|
5280
5282
|
isError: l,
|
|
5281
5283
|
error: u
|
|
5282
5284
|
} = Ry();
|
|
5283
|
-
|
|
5285
|
+
Y(() => {
|
|
5284
5286
|
l ? (i(fe.HYDRATED_REVISION, s), bt(u)) : o(fe.HYDRATED_REVISION, s);
|
|
5285
5287
|
}, [l, s, i, o, u]);
|
|
5286
|
-
const d =
|
|
5288
|
+
const d = Ke(() => {
|
|
5287
5289
|
var m, h, y;
|
|
5288
5290
|
return {
|
|
5289
5291
|
hydratedRevision: a || null,
|
|
@@ -5357,7 +5359,7 @@ function It(e, ...t) {
|
|
|
5357
5359
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
5358
5360
|
);
|
|
5359
5361
|
}
|
|
5360
|
-
var
|
|
5362
|
+
var Vr = Object.getPrototypeOf;
|
|
5361
5363
|
function $r(e) {
|
|
5362
5364
|
return !!e && !!e[Tt];
|
|
5363
5365
|
}
|
|
@@ -5369,7 +5371,7 @@ var Dy = Object.prototype.constructor.toString();
|
|
|
5369
5371
|
function au(e) {
|
|
5370
5372
|
if (!e || typeof e != "object")
|
|
5371
5373
|
return !1;
|
|
5372
|
-
const t =
|
|
5374
|
+
const t = Vr(e);
|
|
5373
5375
|
if (t === null)
|
|
5374
5376
|
return !0;
|
|
5375
5377
|
const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -5425,9 +5427,9 @@ function Is(e, t) {
|
|
|
5425
5427
|
value: e[s]
|
|
5426
5428
|
});
|
|
5427
5429
|
}
|
|
5428
|
-
return Object.create(
|
|
5430
|
+
return Object.create(Vr(e), r);
|
|
5429
5431
|
} else {
|
|
5430
|
-
const r =
|
|
5432
|
+
const r = Vr(e);
|
|
5431
5433
|
if (r !== null && n)
|
|
5432
5434
|
return { ...e };
|
|
5433
5435
|
const o = Object.create(r);
|
|
@@ -5467,7 +5469,7 @@ function nc(e, t) {
|
|
|
5467
5469
|
t && (yr("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
5468
5470
|
}
|
|
5469
5471
|
function bs(e) {
|
|
5470
|
-
_s(e), e.drafts_.forEach(
|
|
5472
|
+
_s(e), e.drafts_.forEach(Ky), e.drafts_ = null;
|
|
5471
5473
|
}
|
|
5472
5474
|
function _s(e) {
|
|
5473
5475
|
e === pi && (pi = e.parent_);
|
|
@@ -5475,7 +5477,7 @@ function _s(e) {
|
|
|
5475
5477
|
function rc(e) {
|
|
5476
5478
|
return pi = Ly(pi, e);
|
|
5477
5479
|
}
|
|
5478
|
-
function
|
|
5480
|
+
function Ky(e) {
|
|
5479
5481
|
const t = e[Tt];
|
|
5480
5482
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
5481
5483
|
}
|
|
@@ -5536,7 +5538,7 @@ function oc(e, t, n, r, o, i, s) {
|
|
|
5536
5538
|
function uo(e, t, n = !1) {
|
|
5537
5539
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && zs(t, n);
|
|
5538
5540
|
}
|
|
5539
|
-
function
|
|
5541
|
+
function Vy(e, t) {
|
|
5540
5542
|
const n = Array.isArray(e), r = {
|
|
5541
5543
|
type_: n ? 1 : 0,
|
|
5542
5544
|
// Track which produce call this is associated with.
|
|
@@ -5615,7 +5617,7 @@ var js = {
|
|
|
5615
5617
|
It(11);
|
|
5616
5618
|
},
|
|
5617
5619
|
getPrototypeOf(e) {
|
|
5618
|
-
return
|
|
5620
|
+
return Vr(e.base_);
|
|
5619
5621
|
},
|
|
5620
5622
|
setPrototypeOf() {
|
|
5621
5623
|
It(12);
|
|
@@ -5648,12 +5650,12 @@ function $y(e, t, n) {
|
|
|
5648
5650
|
function uu(e, t) {
|
|
5649
5651
|
if (!(t in e))
|
|
5650
5652
|
return;
|
|
5651
|
-
let n =
|
|
5653
|
+
let n = Vr(e);
|
|
5652
5654
|
for (; n; ) {
|
|
5653
5655
|
const r = Object.getOwnPropertyDescriptor(n, t);
|
|
5654
5656
|
if (r)
|
|
5655
5657
|
return r;
|
|
5656
|
-
n =
|
|
5658
|
+
n = Vr(n);
|
|
5657
5659
|
}
|
|
5658
5660
|
}
|
|
5659
5661
|
function Os(e) {
|
|
@@ -5665,7 +5667,7 @@ function Wo(e) {
|
|
|
5665
5667
|
e.scope_.immer_.useStrictShallowCopy_
|
|
5666
5668
|
));
|
|
5667
5669
|
}
|
|
5668
|
-
var
|
|
5670
|
+
var qy = class {
|
|
5669
5671
|
constructor(e) {
|
|
5670
5672
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, n, r) => {
|
|
5671
5673
|
if (typeof t == "function" && typeof n != "function") {
|
|
@@ -5705,7 +5707,7 @@ var Uy = class {
|
|
|
5705
5707
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
5706
5708
|
}
|
|
5707
5709
|
createDraft(e) {
|
|
5708
|
-
gr(e) || It(8), $r(e) && (e =
|
|
5710
|
+
gr(e) || It(8), $r(e) && (e = Uy(e));
|
|
5709
5711
|
const t = rc(this), n = Cs(e, void 0);
|
|
5710
5712
|
return n[Tt].isManual_ = !0, _s(t), n;
|
|
5711
5713
|
}
|
|
@@ -5749,10 +5751,10 @@ var Uy = class {
|
|
|
5749
5751
|
}
|
|
5750
5752
|
};
|
|
5751
5753
|
function Cs(e, t) {
|
|
5752
|
-
const n = Co(e) ? yr("MapSet").proxyMap_(e, t) : Eo(e) ? yr("MapSet").proxySet_(e, t) :
|
|
5754
|
+
const n = Co(e) ? yr("MapSet").proxyMap_(e, t) : Eo(e) ? yr("MapSet").proxySet_(e, t) : Vy(e, t);
|
|
5753
5755
|
return (t ? t.scope_ : lu()).drafts_.push(n), n;
|
|
5754
5756
|
}
|
|
5755
|
-
function
|
|
5757
|
+
function Uy(e) {
|
|
5756
5758
|
return $r(e) || It(10, e), du(e);
|
|
5757
5759
|
}
|
|
5758
5760
|
function du(e) {
|
|
@@ -5770,7 +5772,7 @@ function du(e) {
|
|
|
5770
5772
|
cu(n, r, du(o));
|
|
5771
5773
|
}), t && (t.finalized_ = !1), n;
|
|
5772
5774
|
}
|
|
5773
|
-
var Rt = new
|
|
5775
|
+
var Rt = new qy(), oi = Rt.produce;
|
|
5774
5776
|
Rt.produceWithPatches.bind(
|
|
5775
5777
|
Rt
|
|
5776
5778
|
);
|
|
@@ -5791,7 +5793,7 @@ function By({ children: e }) {
|
|
|
5791
5793
|
o,
|
|
5792
5794
|
i
|
|
5793
5795
|
] = de(Hy), s = t == null ? void 0 : t.config;
|
|
5794
|
-
|
|
5796
|
+
Y(() => {
|
|
5795
5797
|
n != null && n.content && !r && s && !(Object.entries(o).length > 0) && gy(
|
|
5796
5798
|
n,
|
|
5797
5799
|
s,
|
|
@@ -5823,7 +5825,7 @@ function By({ children: e }) {
|
|
|
5823
5825
|
);
|
|
5824
5826
|
}, [i]), d = re((h) => {
|
|
5825
5827
|
h === mr ? l() : u(h);
|
|
5826
|
-
}, [u, l]), m =
|
|
5828
|
+
}, [u, l]), m = Ke(
|
|
5827
5829
|
() => ({
|
|
5828
5830
|
objectConfigurationsState: o,
|
|
5829
5831
|
setObjectConfigurationsState: i,
|
|
@@ -5841,7 +5843,7 @@ function By({ children: e }) {
|
|
|
5841
5843
|
return /* @__PURE__ */ p(pu.Provider, { value: m, children: e });
|
|
5842
5844
|
}
|
|
5843
5845
|
const Zt = () => {
|
|
5844
|
-
const { appName: e } =
|
|
5846
|
+
const { appName: e } = qe(), { objectConfigurationsState: t, setConfigureState: n } = Gs(), { selectedObjectName: r } = iu(), o = Yl(r || "", t);
|
|
5845
5847
|
return {
|
|
5846
5848
|
appName: e,
|
|
5847
5849
|
configureState: o,
|
|
@@ -5870,7 +5872,7 @@ const Jy = (e, t) => e.filter((n) => !t.has(n));
|
|
|
5870
5872
|
function zy() {
|
|
5871
5873
|
var m, h, y;
|
|
5872
5874
|
const { selectedObjectName: e, configureState: t, setConfigureState: n } = Zt(), { fieldMapping: r } = at(), o = ((m = t == null ? void 0 : t.read) == null ? void 0 : m.selectedFieldMappings) || {}, i = Object.keys(o), s = ((h = t == null ? void 0 : t.read) == null ? void 0 : h.requiredMapFields) || [], a = ((y = t == null ? void 0 : t.read) == null ? void 0 : y.optionalMapFields) || [], c = e && r ? Object.values(r[e] || {}).flat().filter((v) => !v.fieldName) : [], l = s.concat(c, a).map((v) => v.mapToName), u = new Set(l), d = Jy(i, u);
|
|
5873
|
-
|
|
5875
|
+
Y(() => {
|
|
5874
5876
|
e && d.length && hi(e, n, d.map((v) => ({
|
|
5875
5877
|
field: v,
|
|
5876
5878
|
value: null
|
|
@@ -6027,7 +6029,7 @@ function Qy() {
|
|
|
6027
6029
|
}
|
|
6028
6030
|
}
|
|
6029
6031
|
}
|
|
6030
|
-
var b = c, T = l, S = a, N = s, D = t,
|
|
6032
|
+
var b = c, T = l, S = a, N = s, D = t, q = u, j = r, G = y, ie = h, B = n, ue = i, ae = o, ne = d, we = !1;
|
|
6031
6033
|
function _e(M) {
|
|
6032
6034
|
return we || (we = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), A(M) || O(M) === c;
|
|
6033
6035
|
}
|
|
@@ -6040,7 +6042,7 @@ function Qy() {
|
|
|
6040
6042
|
function $(M) {
|
|
6041
6043
|
return O(M) === s;
|
|
6042
6044
|
}
|
|
6043
|
-
function
|
|
6045
|
+
function K(M) {
|
|
6044
6046
|
return typeof M == "object" && M !== null && M.$$typeof === t;
|
|
6045
6047
|
}
|
|
6046
6048
|
function L(M) {
|
|
@@ -6049,13 +6051,13 @@ function Qy() {
|
|
|
6049
6051
|
function F(M) {
|
|
6050
6052
|
return O(M) === r;
|
|
6051
6053
|
}
|
|
6052
|
-
function
|
|
6054
|
+
function Z(M) {
|
|
6053
6055
|
return O(M) === y;
|
|
6054
6056
|
}
|
|
6055
|
-
function
|
|
6057
|
+
function ee(M) {
|
|
6056
6058
|
return O(M) === h;
|
|
6057
6059
|
}
|
|
6058
|
-
function
|
|
6060
|
+
function U(M) {
|
|
6059
6061
|
return O(M) === n;
|
|
6060
6062
|
}
|
|
6061
6063
|
function te(M) {
|
|
@@ -6067,7 +6069,7 @@ function Qy() {
|
|
|
6067
6069
|
function he(M) {
|
|
6068
6070
|
return O(M) === d;
|
|
6069
6071
|
}
|
|
6070
|
-
Ee.AsyncMode = b, Ee.ConcurrentMode = T, Ee.ContextConsumer = S, Ee.ContextProvider = N, Ee.Element = D, Ee.ForwardRef =
|
|
6072
|
+
Ee.AsyncMode = b, Ee.ConcurrentMode = T, Ee.ContextConsumer = S, Ee.ContextProvider = N, Ee.Element = D, Ee.ForwardRef = q, Ee.Fragment = j, Ee.Lazy = G, Ee.Memo = ie, Ee.Portal = B, Ee.Profiler = ue, Ee.StrictMode = ae, Ee.Suspense = ne, Ee.isAsyncMode = _e, Ee.isConcurrentMode = A, Ee.isContextConsumer = k, Ee.isContextProvider = $, Ee.isElement = K, Ee.isForwardRef = L, Ee.isFragment = F, Ee.isLazy = Z, Ee.isMemo = ee, Ee.isPortal = U, Ee.isProfiler = te, Ee.isStrictMode = Q, Ee.isSuspense = he, Ee.isValidElementType = I, Ee.typeOf = O;
|
|
6071
6073
|
}()), Ee;
|
|
6072
6074
|
}
|
|
6073
6075
|
var cc;
|
|
@@ -6223,7 +6225,7 @@ function Zy() {
|
|
|
6223
6225
|
element: O(),
|
|
6224
6226
|
elementType: b(),
|
|
6225
6227
|
instanceOf: T,
|
|
6226
|
-
node:
|
|
6228
|
+
node: q(),
|
|
6227
6229
|
objectOf: N,
|
|
6228
6230
|
oneOf: S,
|
|
6229
6231
|
oneOfType: D,
|
|
@@ -6240,33 +6242,33 @@ function Zy() {
|
|
|
6240
6242
|
function f(A) {
|
|
6241
6243
|
if (process.env.NODE_ENV !== "production")
|
|
6242
6244
|
var k = {}, $ = 0;
|
|
6243
|
-
function
|
|
6244
|
-
if (
|
|
6245
|
+
function K(F, Z, ee, U, te, Q, he) {
|
|
6246
|
+
if (U = U || m, Q = Q || ee, he !== n) {
|
|
6245
6247
|
if (c) {
|
|
6246
6248
|
var M = new Error(
|
|
6247
6249
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
6248
6250
|
);
|
|
6249
6251
|
throw M.name = "Invariant Violation", M;
|
|
6250
6252
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6251
|
-
var be =
|
|
6253
|
+
var be = U + ":" + ee;
|
|
6252
6254
|
!k[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
6253
6255
|
$ < 3 && (i(
|
|
6254
|
-
"You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" +
|
|
6256
|
+
"You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
6255
6257
|
), k[be] = !0, $++);
|
|
6256
6258
|
}
|
|
6257
6259
|
}
|
|
6258
|
-
return
|
|
6260
|
+
return Z[ee] == null ? F ? Z[ee] === null ? new v("The " + te + " `" + Q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + te + " `" + Q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : A(Z, ee, U, te, Q);
|
|
6259
6261
|
}
|
|
6260
|
-
var L =
|
|
6261
|
-
return L.isRequired =
|
|
6262
|
+
var L = K.bind(null, !1);
|
|
6263
|
+
return L.isRequired = K.bind(null, !0), L;
|
|
6262
6264
|
}
|
|
6263
6265
|
function _(A) {
|
|
6264
|
-
function k($,
|
|
6265
|
-
var
|
|
6266
|
+
function k($, K, L, F, Z, ee) {
|
|
6267
|
+
var U = $[K], te = ae(U);
|
|
6266
6268
|
if (te !== A) {
|
|
6267
|
-
var Q = ne(
|
|
6269
|
+
var Q = ne(U);
|
|
6268
6270
|
return new v(
|
|
6269
|
-
"Invalid " + F + " `" +
|
|
6271
|
+
"Invalid " + F + " `" + Z + "` of type " + ("`" + Q + "` supplied to `" + L + "`, expected ") + ("`" + A + "`."),
|
|
6270
6272
|
{ expectedType: A }
|
|
6271
6273
|
);
|
|
6272
6274
|
}
|
|
@@ -6278,16 +6280,16 @@ function Zy() {
|
|
|
6278
6280
|
return f(s);
|
|
6279
6281
|
}
|
|
6280
6282
|
function I(A) {
|
|
6281
|
-
function k($,
|
|
6283
|
+
function k($, K, L, F, Z) {
|
|
6282
6284
|
if (typeof A != "function")
|
|
6283
|
-
return new v("Property `" +
|
|
6284
|
-
var
|
|
6285
|
-
if (!Array.isArray(
|
|
6286
|
-
var
|
|
6287
|
-
return new v("Invalid " + F + " `" +
|
|
6285
|
+
return new v("Property `" + Z + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
6286
|
+
var ee = $[K];
|
|
6287
|
+
if (!Array.isArray(ee)) {
|
|
6288
|
+
var U = ae(ee);
|
|
6289
|
+
return new v("Invalid " + F + " `" + Z + "` of type " + ("`" + U + "` supplied to `" + L + "`, expected an array."));
|
|
6288
6290
|
}
|
|
6289
|
-
for (var te = 0; te <
|
|
6290
|
-
var Q = A(
|
|
6291
|
+
for (var te = 0; te < ee.length; te++) {
|
|
6292
|
+
var Q = A(ee, te, L, F, Z + "[" + te + "]", n);
|
|
6291
6293
|
if (Q instanceof Error)
|
|
6292
6294
|
return Q;
|
|
6293
6295
|
}
|
|
@@ -6296,32 +6298,32 @@ function Zy() {
|
|
|
6296
6298
|
return f(k);
|
|
6297
6299
|
}
|
|
6298
6300
|
function O() {
|
|
6299
|
-
function A(k, $,
|
|
6300
|
-
var
|
|
6301
|
-
if (!a(
|
|
6302
|
-
var
|
|
6303
|
-
return new v("Invalid " + L + " `" + F + "` of type " + ("`" +
|
|
6301
|
+
function A(k, $, K, L, F) {
|
|
6302
|
+
var Z = k[$];
|
|
6303
|
+
if (!a(Z)) {
|
|
6304
|
+
var ee = ae(Z);
|
|
6305
|
+
return new v("Invalid " + L + " `" + F + "` of type " + ("`" + ee + "` supplied to `" + K + "`, expected a single ReactElement."));
|
|
6304
6306
|
}
|
|
6305
6307
|
return null;
|
|
6306
6308
|
}
|
|
6307
6309
|
return f(A);
|
|
6308
6310
|
}
|
|
6309
6311
|
function b() {
|
|
6310
|
-
function A(k, $,
|
|
6311
|
-
var
|
|
6312
|
-
if (!e.isValidElementType(
|
|
6313
|
-
var
|
|
6314
|
-
return new v("Invalid " + L + " `" + F + "` of type " + ("`" +
|
|
6312
|
+
function A(k, $, K, L, F) {
|
|
6313
|
+
var Z = k[$];
|
|
6314
|
+
if (!e.isValidElementType(Z)) {
|
|
6315
|
+
var ee = ae(Z);
|
|
6316
|
+
return new v("Invalid " + L + " `" + F + "` of type " + ("`" + ee + "` supplied to `" + K + "`, expected a single ReactElement type."));
|
|
6315
6317
|
}
|
|
6316
6318
|
return null;
|
|
6317
6319
|
}
|
|
6318
6320
|
return f(A);
|
|
6319
6321
|
}
|
|
6320
6322
|
function T(A) {
|
|
6321
|
-
function k($,
|
|
6322
|
-
if (!($[
|
|
6323
|
-
var
|
|
6324
|
-
return new v("Invalid " + F + " `" +
|
|
6323
|
+
function k($, K, L, F, Z) {
|
|
6324
|
+
if (!($[K] instanceof A)) {
|
|
6325
|
+
var ee = A.name || m, U = _e($[K]);
|
|
6326
|
+
return new v("Invalid " + F + " `" + Z + "` of type " + ("`" + U + "` supplied to `" + L + "`, expected ") + ("instance of `" + ee + "`."));
|
|
6325
6327
|
}
|
|
6326
6328
|
return null;
|
|
6327
6329
|
}
|
|
@@ -6332,28 +6334,28 @@ function Zy() {
|
|
|
6332
6334
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
6333
6335
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
6334
6336
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
6335
|
-
function k($,
|
|
6336
|
-
for (var
|
|
6337
|
-
if (y(
|
|
6337
|
+
function k($, K, L, F, Z) {
|
|
6338
|
+
for (var ee = $[K], U = 0; U < A.length; U++)
|
|
6339
|
+
if (y(ee, A[U]))
|
|
6338
6340
|
return null;
|
|
6339
6341
|
var te = JSON.stringify(A, function(he, M) {
|
|
6340
6342
|
var be = ne(M);
|
|
6341
6343
|
return be === "symbol" ? String(M) : M;
|
|
6342
6344
|
});
|
|
6343
|
-
return new v("Invalid " + F + " `" +
|
|
6345
|
+
return new v("Invalid " + F + " `" + Z + "` of value `" + String(ee) + "` " + ("supplied to `" + L + "`, expected one of " + te + "."));
|
|
6344
6346
|
}
|
|
6345
6347
|
return f(k);
|
|
6346
6348
|
}
|
|
6347
6349
|
function N(A) {
|
|
6348
|
-
function k($,
|
|
6350
|
+
function k($, K, L, F, Z) {
|
|
6349
6351
|
if (typeof A != "function")
|
|
6350
|
-
return new v("Property `" +
|
|
6351
|
-
var
|
|
6352
|
-
if (
|
|
6353
|
-
return new v("Invalid " + F + " `" +
|
|
6354
|
-
for (var te in
|
|
6355
|
-
if (r(
|
|
6356
|
-
var Q = A(
|
|
6352
|
+
return new v("Property `" + Z + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
6353
|
+
var ee = $[K], U = ae(ee);
|
|
6354
|
+
if (U !== "object")
|
|
6355
|
+
return new v("Invalid " + F + " `" + Z + "` of type " + ("`" + U + "` supplied to `" + L + "`, expected an object."));
|
|
6356
|
+
for (var te in ee)
|
|
6357
|
+
if (r(ee, te)) {
|
|
6358
|
+
var Q = A(ee, te, L, F, Z + "." + te, n);
|
|
6357
6359
|
if (Q instanceof Error)
|
|
6358
6360
|
return Q;
|
|
6359
6361
|
}
|
|
@@ -6371,39 +6373,39 @@ function Zy() {
|
|
|
6371
6373
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + we($) + " at index " + k + "."
|
|
6372
6374
|
), s;
|
|
6373
6375
|
}
|
|
6374
|
-
function
|
|
6376
|
+
function K(L, F, Z, ee, U) {
|
|
6375
6377
|
for (var te = [], Q = 0; Q < A.length; Q++) {
|
|
6376
|
-
var he = A[Q], M = he(L, F,
|
|
6378
|
+
var he = A[Q], M = he(L, F, Z, ee, U, n);
|
|
6377
6379
|
if (M == null)
|
|
6378
6380
|
return null;
|
|
6379
6381
|
M.data && r(M.data, "expectedType") && te.push(M.data.expectedType);
|
|
6380
6382
|
}
|
|
6381
6383
|
var be = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
6382
|
-
return new v("Invalid " +
|
|
6384
|
+
return new v("Invalid " + ee + " `" + U + "` supplied to " + ("`" + Z + "`" + be + "."));
|
|
6383
6385
|
}
|
|
6384
|
-
return f(
|
|
6386
|
+
return f(K);
|
|
6385
6387
|
}
|
|
6386
|
-
function
|
|
6387
|
-
function A(k, $,
|
|
6388
|
-
return B(k[$]) ? null : new v("Invalid " + L + " `" + F + "` supplied to " + ("`" +
|
|
6388
|
+
function q() {
|
|
6389
|
+
function A(k, $, K, L, F) {
|
|
6390
|
+
return B(k[$]) ? null : new v("Invalid " + L + " `" + F + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
|
|
6389
6391
|
}
|
|
6390
6392
|
return f(A);
|
|
6391
6393
|
}
|
|
6392
|
-
function j(A, k, $,
|
|
6394
|
+
function j(A, k, $, K, L) {
|
|
6393
6395
|
return new v(
|
|
6394
|
-
(A || "React class") + ": " + k + " type `" + $ + "." +
|
|
6396
|
+
(A || "React class") + ": " + k + " type `" + $ + "." + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
6395
6397
|
);
|
|
6396
6398
|
}
|
|
6397
6399
|
function G(A) {
|
|
6398
|
-
function k($,
|
|
6399
|
-
var
|
|
6400
|
-
if (
|
|
6401
|
-
return new v("Invalid " + F + " `" +
|
|
6400
|
+
function k($, K, L, F, Z) {
|
|
6401
|
+
var ee = $[K], U = ae(ee);
|
|
6402
|
+
if (U !== "object")
|
|
6403
|
+
return new v("Invalid " + F + " `" + Z + "` of type `" + U + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
6402
6404
|
for (var te in A) {
|
|
6403
6405
|
var Q = A[te];
|
|
6404
6406
|
if (typeof Q != "function")
|
|
6405
|
-
return j(L, F,
|
|
6406
|
-
var he = Q(
|
|
6407
|
+
return j(L, F, Z, te, ne(Q));
|
|
6408
|
+
var he = Q(ee, te, L, F, Z + "." + te, n);
|
|
6407
6409
|
if (he)
|
|
6408
6410
|
return he;
|
|
6409
6411
|
}
|
|
@@ -6412,21 +6414,21 @@ function Zy() {
|
|
|
6412
6414
|
return f(k);
|
|
6413
6415
|
}
|
|
6414
6416
|
function ie(A) {
|
|
6415
|
-
function k($,
|
|
6416
|
-
var
|
|
6417
|
-
if (
|
|
6418
|
-
return new v("Invalid " + F + " `" +
|
|
6419
|
-
var te = t({}, $[
|
|
6417
|
+
function k($, K, L, F, Z) {
|
|
6418
|
+
var ee = $[K], U = ae(ee);
|
|
6419
|
+
if (U !== "object")
|
|
6420
|
+
return new v("Invalid " + F + " `" + Z + "` of type `" + U + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
6421
|
+
var te = t({}, $[K], A);
|
|
6420
6422
|
for (var Q in te) {
|
|
6421
6423
|
var he = A[Q];
|
|
6422
6424
|
if (r(A, Q) && typeof he != "function")
|
|
6423
|
-
return j(L, F,
|
|
6425
|
+
return j(L, F, Z, Q, ne(he));
|
|
6424
6426
|
if (!he)
|
|
6425
6427
|
return new v(
|
|
6426
|
-
"Invalid " + F + " `" +
|
|
6428
|
+
"Invalid " + F + " `" + Z + "` key `" + Q + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify($[K], null, " ") + `
|
|
6427
6429
|
Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
6428
6430
|
);
|
|
6429
|
-
var M = he(
|
|
6431
|
+
var M = he(ee, Q, L, F, Z + "." + Q, n);
|
|
6430
6432
|
if (M)
|
|
6431
6433
|
return M;
|
|
6432
6434
|
}
|
|
@@ -6449,14 +6451,14 @@ Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
|
6449
6451
|
return !0;
|
|
6450
6452
|
var k = d(A);
|
|
6451
6453
|
if (k) {
|
|
6452
|
-
var $ = k.call(A),
|
|
6454
|
+
var $ = k.call(A), K;
|
|
6453
6455
|
if (k !== A.entries) {
|
|
6454
|
-
for (; !(
|
|
6455
|
-
if (!B(
|
|
6456
|
+
for (; !(K = $.next()).done; )
|
|
6457
|
+
if (!B(K.value))
|
|
6456
6458
|
return !1;
|
|
6457
6459
|
} else
|
|
6458
|
-
for (; !(
|
|
6459
|
-
var L =
|
|
6460
|
+
for (; !(K = $.next()).done; ) {
|
|
6461
|
+
var L = K.value;
|
|
6460
6462
|
if (L && !B(L[1]))
|
|
6461
6463
|
return !1;
|
|
6462
6464
|
}
|
|
@@ -6560,7 +6562,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6560
6562
|
} else
|
|
6561
6563
|
Ss.exports = ev()();
|
|
6562
6564
|
var rv = Ss.exports;
|
|
6563
|
-
const
|
|
6565
|
+
const V = /* @__PURE__ */ Ws(rv);
|
|
6564
6566
|
var Ns = { exports: {} }, Se = {};
|
|
6565
6567
|
/**
|
|
6566
6568
|
* @license React
|
|
@@ -6693,7 +6695,7 @@ function ov() {
|
|
|
6693
6695
|
}
|
|
6694
6696
|
}
|
|
6695
6697
|
}
|
|
6696
|
-
var T = s, S = i, N = e, D = c,
|
|
6698
|
+
var T = s, S = i, N = e, D = c, q = n, j = m, G = d, ie = t, B = o, ue = r, ae = l, ne = u, we = !1, _e = !1;
|
|
6697
6699
|
function A(H) {
|
|
6698
6700
|
return we || (we = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6699
6701
|
}
|
|
@@ -6703,7 +6705,7 @@ function ov() {
|
|
|
6703
6705
|
function $(H) {
|
|
6704
6706
|
return b(H) === s;
|
|
6705
6707
|
}
|
|
6706
|
-
function
|
|
6708
|
+
function K(H) {
|
|
6707
6709
|
return b(H) === i;
|
|
6708
6710
|
}
|
|
6709
6711
|
function L(H) {
|
|
@@ -6712,13 +6714,13 @@ function ov() {
|
|
|
6712
6714
|
function F(H) {
|
|
6713
6715
|
return b(H) === c;
|
|
6714
6716
|
}
|
|
6715
|
-
function
|
|
6717
|
+
function Z(H) {
|
|
6716
6718
|
return b(H) === n;
|
|
6717
6719
|
}
|
|
6718
|
-
function
|
|
6720
|
+
function ee(H) {
|
|
6719
6721
|
return b(H) === m;
|
|
6720
6722
|
}
|
|
6721
|
-
function
|
|
6723
|
+
function U(H) {
|
|
6722
6724
|
return b(H) === d;
|
|
6723
6725
|
}
|
|
6724
6726
|
function te(H) {
|
|
@@ -6736,7 +6738,7 @@ function ov() {
|
|
|
6736
6738
|
function be(H) {
|
|
6737
6739
|
return b(H) === u;
|
|
6738
6740
|
}
|
|
6739
|
-
Ne.ContextConsumer = T, Ne.ContextProvider = S, Ne.Element = N, Ne.ForwardRef = D, Ne.Fragment =
|
|
6741
|
+
Ne.ContextConsumer = T, Ne.ContextProvider = S, Ne.Element = N, Ne.ForwardRef = D, Ne.Fragment = q, Ne.Lazy = j, Ne.Memo = G, Ne.Portal = ie, Ne.Profiler = B, Ne.StrictMode = ue, Ne.Suspense = ae, Ne.SuspenseList = ne, Ne.isAsyncMode = A, Ne.isConcurrentMode = k, Ne.isContextConsumer = $, Ne.isContextProvider = K, Ne.isElement = L, Ne.isForwardRef = F, Ne.isFragment = Z, Ne.isLazy = ee, Ne.isMemo = U, Ne.isPortal = te, Ne.isProfiler = Q, Ne.isStrictMode = he, Ne.isSuspense = M, Ne.isSuspenseList = be, Ne.isValidElementType = O, Ne.typeOf = b;
|
|
6740
6742
|
}()), Ne;
|
|
6741
6743
|
}
|
|
6742
6744
|
process.env.NODE_ENV === "production" ? Ns.exports = iv() : Ns.exports = ov();
|
|
@@ -6774,21 +6776,21 @@ const vc = (e) => typeof e == "object" && e != null && e.nodeType === 1, wc = (e
|
|
|
6774
6776
|
}
|
|
6775
6777
|
y != null && y === document.body && Yo(y) && !Yo(document.documentElement) || y != null && Yo(y, u) && h.push(y);
|
|
6776
6778
|
}
|
|
6777
|
-
const v = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, f = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX: _, scrollY: g } = window, { height: I, width: O, top: b, right: T, bottom: S, left: N } = e.getBoundingClientRect(), { top: D, right:
|
|
6779
|
+
const v = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, f = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX: _, scrollY: g } = window, { height: I, width: O, top: b, right: T, bottom: S, left: N } = e.getBoundingClientRect(), { top: D, right: q, bottom: j, left: G } = ((ae) => {
|
|
6778
6780
|
const ne = window.getComputedStyle(ae);
|
|
6779
6781
|
return { top: parseFloat(ne.scrollMarginTop) || 0, right: parseFloat(ne.scrollMarginRight) || 0, bottom: parseFloat(ne.scrollMarginBottom) || 0, left: parseFloat(ne.scrollMarginLeft) || 0 };
|
|
6780
6782
|
})(e);
|
|
6781
|
-
let ie = a === "start" || a === "nearest" ? b - D : a === "end" ? S + j : b + I / 2 - D + j, B = c === "center" ? N + O / 2 - G +
|
|
6783
|
+
let ie = a === "start" || a === "nearest" ? b - D : a === "end" ? S + j : b + I / 2 - D + j, B = c === "center" ? N + O / 2 - G + q : c === "end" ? T + q : N - G;
|
|
6782
6784
|
const ue = [];
|
|
6783
6785
|
for (let ae = 0; ae < h.length; ae++) {
|
|
6784
|
-
const ne = h[ae], { height: we, width: _e, top: A, right: k, bottom: $, left:
|
|
6785
|
-
if (s === "if-needed" && b >= 0 && N >= 0 && S <= f && T <= v && b >= A && S <= $ && N >=
|
|
6786
|
-
const L = getComputedStyle(ne), F = parseInt(L.borderLeftWidth, 10),
|
|
6786
|
+
const ne = h[ae], { height: we, width: _e, top: A, right: k, bottom: $, left: K } = ne.getBoundingClientRect();
|
|
6787
|
+
if (s === "if-needed" && b >= 0 && N >= 0 && S <= f && T <= v && b >= A && S <= $ && N >= K && T <= k) return ue;
|
|
6788
|
+
const L = getComputedStyle(ne), F = parseInt(L.borderLeftWidth, 10), Z = parseInt(L.borderTopWidth, 10), ee = parseInt(L.borderRightWidth, 10), U = parseInt(L.borderBottomWidth, 10);
|
|
6787
6789
|
let te = 0, Q = 0;
|
|
6788
|
-
const he = "offsetWidth" in ne ? ne.offsetWidth - ne.clientWidth - F -
|
|
6789
|
-
if (m === ne) te = a === "start" ? ie : a === "end" ? ie - f : a === "nearest" ? Ji(g, g + f, f,
|
|
6790
|
+
const he = "offsetWidth" in ne ? ne.offsetWidth - ne.clientWidth - F - ee : 0, M = "offsetHeight" in ne ? ne.offsetHeight - ne.clientHeight - Z - U : 0, be = "offsetWidth" in ne ? ne.offsetWidth === 0 ? 0 : _e / ne.offsetWidth : 0, H = "offsetHeight" in ne ? ne.offsetHeight === 0 ? 0 : we / ne.offsetHeight : 0;
|
|
6791
|
+
if (m === ne) te = a === "start" ? ie : a === "end" ? ie - f : a === "nearest" ? Ji(g, g + f, f, Z, U, g + ie, g + ie + I, I) : ie - f / 2, Q = c === "start" ? B : c === "center" ? B - v / 2 : c === "end" ? B - v : Ji(_, _ + v, v, F, ee, _ + B, _ + B + O, O), te = Math.max(0, te + g), Q = Math.max(0, Q + _);
|
|
6790
6792
|
else {
|
|
6791
|
-
te = a === "start" ? ie - A -
|
|
6793
|
+
te = a === "start" ? ie - A - Z : a === "end" ? ie - $ + U + M : a === "nearest" ? Ji(A, $, we, Z, U + M, ie, ie + I, I) : ie - (A + we / 2) + M / 2, Q = c === "start" ? B - K - F : c === "center" ? B - (K + _e / 2) + he / 2 : c === "end" ? B - k + ee + he : Ji(K, k, _e, F, ee + he, B, B + O, O);
|
|
6792
6794
|
const { scrollLeft: Re, scrollTop: He } = ne;
|
|
6793
6795
|
te = H === 0 ? 0 : Math.max(0, Math.min(He + te / H, ne.scrollHeight - we / H + M)), Q = be === 0 ? 0 : Math.max(0, Math.min(Re + Q / be, ne.scrollWidth - _e / be + he)), ie += He - te, B += Re - Q;
|
|
6794
6796
|
}
|
|
@@ -6796,14 +6798,14 @@ const vc = (e) => typeof e == "object" && e != null && e.nodeType === 1, wc = (e
|
|
|
6796
6798
|
}
|
|
6797
6799
|
return ue;
|
|
6798
6800
|
};
|
|
6799
|
-
var
|
|
6800
|
-
return
|
|
6801
|
+
var qr = function() {
|
|
6802
|
+
return qr = Object.assign || function(t) {
|
|
6801
6803
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
6802
6804
|
n = arguments[r];
|
|
6803
6805
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
6804
6806
|
}
|
|
6805
6807
|
return t;
|
|
6806
|
-
},
|
|
6808
|
+
}, qr.apply(this, arguments);
|
|
6807
6809
|
};
|
|
6808
6810
|
var cv = 0;
|
|
6809
6811
|
function Ic(e) {
|
|
@@ -6915,10 +6917,10 @@ function nr(e, t, n, r, o) {
|
|
|
6915
6917
|
(typeof e != "number" || e < 0 || e > s) && (e = t > 0 ? -1 : s + 1);
|
|
6916
6918
|
var a = e + t;
|
|
6917
6919
|
a < 0 ? a = s : a > s && (a = 0);
|
|
6918
|
-
var c =
|
|
6920
|
+
var c = Ur(a, t < 0, n, r, o);
|
|
6919
6921
|
return c === -1 ? e >= i ? -1 : e : c;
|
|
6920
6922
|
}
|
|
6921
|
-
function
|
|
6923
|
+
function Ur(e, t, n, r, o) {
|
|
6922
6924
|
o === void 0 && (o = !1);
|
|
6923
6925
|
var i = n.length;
|
|
6924
6926
|
if (t) {
|
|
@@ -6929,7 +6931,7 @@ function qr(e, t, n, r, o) {
|
|
|
6929
6931
|
for (var a = e; a < i; a++)
|
|
6930
6932
|
if (!r(n[a], a))
|
|
6931
6933
|
return a;
|
|
6932
|
-
return o ?
|
|
6934
|
+
return o ? Ur(t ? i - 1 : 0, t, n, r) : -1;
|
|
6933
6935
|
}
|
|
6934
6936
|
function ho(e, t, n, r) {
|
|
6935
6937
|
return r === void 0 && (r = !0), n && t.some(function(o) {
|
|
@@ -7036,12 +7038,12 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7036
7038
|
return !S && g.hasOwnProperty("inputValue") && i.props.onInputValueChange(g.inputValue, ye({}, i.getStateAndHelpers(), g)), i.setState(function(N) {
|
|
7037
7039
|
var D;
|
|
7038
7040
|
N = i.getState(N);
|
|
7039
|
-
var
|
|
7040
|
-
|
|
7041
|
+
var q = S ? g(N) : g;
|
|
7042
|
+
q = i.props.stateReducer(N, q), O = q.hasOwnProperty("selectedItem");
|
|
7041
7043
|
var j = {};
|
|
7042
|
-
return O &&
|
|
7043
|
-
N[G] !==
|
|
7044
|
-
}), S &&
|
|
7044
|
+
return O && q.selectedItem !== N.selectedItem && (b = q.selectedItem), (D = q).type || (D.type = bu), Object.keys(q).forEach(function(G) {
|
|
7045
|
+
N[G] !== q[G] && (T[G] = q[G]), G !== "type" && (q[G], fo(i.props, G) || (j[G] = q[G]));
|
|
7046
|
+
}), S && q.hasOwnProperty("inputValue") && i.props.onInputValueChange(q.inputValue, ye({}, i.getStateAndHelpers(), q)), j;
|
|
7045
7047
|
}, function() {
|
|
7046
7048
|
Ic(I)();
|
|
7047
7049
|
var N = Object.keys(T).length > 1;
|
|
@@ -7050,7 +7052,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7050
7052
|
}, i.rootRef = function(g) {
|
|
7051
7053
|
return i._rootNode = g;
|
|
7052
7054
|
}, i.getRootProps = function(g, I) {
|
|
7053
|
-
var O, b = g === void 0 ? {} : g, T = b.refKey, S = T === void 0 ? "ref" : T, N = b.ref, D = vn(b, gv),
|
|
7055
|
+
var O, b = g === void 0 ? {} : g, T = b.refKey, S = T === void 0 ? "ref" : T, N = b.ref, D = vn(b, gv), q = I === void 0 ? {} : I, j = q.suppressRefError, G = j === void 0 ? !1 : j;
|
|
7054
7056
|
i.getRootProps.called = !0, i.getRootProps.refKey = S, i.getRootProps.suppressRefError = G;
|
|
7055
7057
|
var ie = i.getState(), B = ie.isOpen;
|
|
7056
7058
|
return ye((O = {}, O[S] = _r(N, i.rootRef), O.role = "combobox", O["aria-expanded"] = B, O["aria-haspopup"] = "listbox", O["aria-owns"] = B ? i.menuId : void 0, O["aria-labelledby"] = i.labelId, O), D);
|
|
@@ -7136,7 +7138,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7136
7138
|
I.preventDefault();
|
|
7137
7139
|
var T = this.getItemCount();
|
|
7138
7140
|
if (!(T <= 0 || !b)) {
|
|
7139
|
-
var S =
|
|
7141
|
+
var S = Ur(0, !1, {
|
|
7140
7142
|
length: T
|
|
7141
7143
|
}, this.isItemDisabled);
|
|
7142
7144
|
this.setHighlightedIndex(S, {
|
|
@@ -7151,7 +7153,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7151
7153
|
I.preventDefault();
|
|
7152
7154
|
var T = this.getItemCount();
|
|
7153
7155
|
if (!(T <= 0 || !b)) {
|
|
7154
|
-
var S =
|
|
7156
|
+
var S = Ur(T - 1, !0, {
|
|
7155
7157
|
length: T
|
|
7156
7158
|
}, this.isItemDisabled);
|
|
7157
7159
|
this.setHighlightedIndex(S, {
|
|
@@ -7163,7 +7165,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7163
7165
|
}), i.getToggleButtonProps = function(g) {
|
|
7164
7166
|
var I = g === void 0 ? {} : g, O = I.onClick;
|
|
7165
7167
|
I.onPress;
|
|
7166
|
-
var b = I.onKeyDown, T = I.onKeyUp, S = I.onBlur, N = vn(I, yv), D = i.getState(),
|
|
7168
|
+
var b = I.onKeyDown, T = I.onKeyUp, S = I.onBlur, N = vn(I, yv), D = i.getState(), q = D.isOpen, j = {
|
|
7167
7169
|
onClick: Qe(O, i.buttonHandleClick),
|
|
7168
7170
|
onKeyDown: Qe(b, i.buttonHandleKeyDown),
|
|
7169
7171
|
onKeyUp: Qe(T, i.buttonHandleKeyUp),
|
|
@@ -7172,7 +7174,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7172
7174
|
return ye({
|
|
7173
7175
|
type: "button",
|
|
7174
7176
|
role: "button",
|
|
7175
|
-
"aria-label":
|
|
7177
|
+
"aria-label": q ? "close menu" : "open menu",
|
|
7176
7178
|
"aria-haspopup": !0,
|
|
7177
7179
|
"data-toggle": !0
|
|
7178
7180
|
}, G, N);
|
|
@@ -7211,12 +7213,12 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7211
7213
|
}, i.getInputProps = function(g) {
|
|
7212
7214
|
var I = g === void 0 ? {} : g, O = I.onKeyDown, b = I.onBlur, T = I.onChange, S = I.onInput;
|
|
7213
7215
|
I.onChangeText;
|
|
7214
|
-
var N = vn(I, vv), D,
|
|
7216
|
+
var N = vn(I, vv), D, q = {};
|
|
7215
7217
|
D = "onChange";
|
|
7216
7218
|
var j = i.getState(), G = j.inputValue, ie = j.isOpen, B = j.highlightedIndex;
|
|
7217
7219
|
if (!N.disabled) {
|
|
7218
7220
|
var ue;
|
|
7219
|
-
|
|
7221
|
+
q = (ue = {}, ue[D] = Qe(T, S, i.inputHandleChange), ue.onKeyDown = Qe(O, i.inputHandleKeyDown), ue.onBlur = Qe(b, i.inputHandleBlur), ue);
|
|
7220
7222
|
}
|
|
7221
7223
|
return ye({
|
|
7222
7224
|
"aria-autocomplete": "list",
|
|
@@ -7228,7 +7230,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7228
7230
|
autoComplete: "off",
|
|
7229
7231
|
value: G,
|
|
7230
7232
|
id: i.inputId
|
|
7231
|
-
},
|
|
7233
|
+
}, q, N);
|
|
7232
7234
|
}, i.inputHandleKeyDown = function(g) {
|
|
7233
7235
|
var I = Ts(g);
|
|
7234
7236
|
I && i.inputKeyDownHandlers[I] && i.inputKeyDownHandlers[I].call(i, g);
|
|
@@ -7252,16 +7254,16 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7252
7254
|
}, i.menuRef = function(g) {
|
|
7253
7255
|
i._menuNode = g;
|
|
7254
7256
|
}, i.getMenuProps = function(g, I) {
|
|
7255
|
-
var O, b = g === void 0 ? {} : g, T = b.refKey, S = T === void 0 ? "ref" : T, N = b.ref, D = vn(b, wv),
|
|
7257
|
+
var O, b = g === void 0 ? {} : g, T = b.refKey, S = T === void 0 ? "ref" : T, N = b.ref, D = vn(b, wv), q = I === void 0 ? {} : I, j = q.suppressRefError, G = j === void 0 ? !1 : j;
|
|
7256
7258
|
return i.getMenuProps.called = !0, i.getMenuProps.refKey = S, i.getMenuProps.suppressRefError = G, ye((O = {}, O[S] = _r(N, i.menuRef), O.role = "listbox", O["aria-labelledby"] = D && D["aria-label"] ? void 0 : i.labelId, O.id = i.menuId, O), D);
|
|
7257
7259
|
}, i.getItemProps = function(g) {
|
|
7258
7260
|
var I, O = g === void 0 ? {} : g, b = O.onMouseMove, T = O.onMouseDown, S = O.onClick;
|
|
7259
7261
|
O.onPress;
|
|
7260
|
-
var N = O.index, D = O.item,
|
|
7262
|
+
var N = O.index, D = O.item, q = D === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
7261
7263
|
/* istanbul ignore next */
|
|
7262
7264
|
void 0
|
|
7263
7265
|
) : uv("getItemProps", "item") : D, j = vn(O, Iv);
|
|
7264
|
-
N === void 0 ? (i.items.push(
|
|
7266
|
+
N === void 0 ? (i.items.push(q), N = i.items.indexOf(q)) : i.items[N] = q;
|
|
7265
7267
|
var G = "onClick", ie = S, B = (I = {
|
|
7266
7268
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
7267
7269
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
@@ -7366,7 +7368,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7366
7368
|
this.setHighlightedIndex(u, s);
|
|
7367
7369
|
}
|
|
7368
7370
|
}, r.getStateAndHelpers = function() {
|
|
7369
|
-
var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, c = i.selectedItem, l = i.isOpen, u = this.props.itemToString, d = this.id, m = this.getRootProps, h = this.getToggleButtonProps, y = this.getLabelProps, v = this.getMenuProps, f = this.getInputProps, _ = this.getItemProps, g = this.openMenu, I = this.closeMenu, O = this.toggleMenu, b = this.selectItem, T = this.selectItemAtIndex, S = this.selectHighlightedItem, N = this.setHighlightedIndex, D = this.clearSelection,
|
|
7371
|
+
var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, c = i.selectedItem, l = i.isOpen, u = this.props.itemToString, d = this.id, m = this.getRootProps, h = this.getToggleButtonProps, y = this.getLabelProps, v = this.getMenuProps, f = this.getInputProps, _ = this.getItemProps, g = this.openMenu, I = this.closeMenu, O = this.toggleMenu, b = this.selectItem, T = this.selectItemAtIndex, S = this.selectHighlightedItem, N = this.setHighlightedIndex, D = this.clearSelection, q = this.clearItems, j = this.reset, G = this.setItemCount, ie = this.unsetItemCount, B = this.internalSetState;
|
|
7370
7372
|
return {
|
|
7371
7373
|
// prop getters
|
|
7372
7374
|
getRootProps: m,
|
|
@@ -7385,7 +7387,7 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7385
7387
|
selectHighlightedItem: S,
|
|
7386
7388
|
setHighlightedIndex: N,
|
|
7387
7389
|
clearSelection: D,
|
|
7388
|
-
clearItems:
|
|
7390
|
+
clearItems: q,
|
|
7389
7391
|
setItemCount: G,
|
|
7390
7392
|
unsetItemCount: ie,
|
|
7391
7393
|
setState: B,
|
|
@@ -7484,49 +7486,49 @@ var bu = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
7484
7486
|
}, e.stateChangeTypes = mv, e;
|
|
7485
7487
|
}();
|
|
7486
7488
|
process.env.NODE_ENV !== "production" && (bv.propTypes = {
|
|
7487
|
-
children:
|
|
7488
|
-
defaultHighlightedIndex:
|
|
7489
|
-
defaultIsOpen:
|
|
7490
|
-
initialHighlightedIndex:
|
|
7491
|
-
initialSelectedItem:
|
|
7492
|
-
initialInputValue:
|
|
7493
|
-
initialIsOpen:
|
|
7494
|
-
getA11yStatusMessage:
|
|
7495
|
-
itemToString:
|
|
7496
|
-
onChange:
|
|
7497
|
-
onSelect:
|
|
7498
|
-
onStateChange:
|
|
7499
|
-
onInputValueChange:
|
|
7500
|
-
onUserAction:
|
|
7501
|
-
onOuterClick:
|
|
7502
|
-
selectedItemChanged:
|
|
7503
|
-
stateReducer:
|
|
7504
|
-
itemCount:
|
|
7505
|
-
id:
|
|
7506
|
-
environment:
|
|
7507
|
-
addEventListener:
|
|
7508
|
-
removeEventListener:
|
|
7509
|
-
document:
|
|
7510
|
-
createElement:
|
|
7511
|
-
getElementById:
|
|
7512
|
-
activeElement:
|
|
7513
|
-
body:
|
|
7489
|
+
children: V.func,
|
|
7490
|
+
defaultHighlightedIndex: V.number,
|
|
7491
|
+
defaultIsOpen: V.bool,
|
|
7492
|
+
initialHighlightedIndex: V.number,
|
|
7493
|
+
initialSelectedItem: V.any,
|
|
7494
|
+
initialInputValue: V.string,
|
|
7495
|
+
initialIsOpen: V.bool,
|
|
7496
|
+
getA11yStatusMessage: V.func,
|
|
7497
|
+
itemToString: V.func,
|
|
7498
|
+
onChange: V.func,
|
|
7499
|
+
onSelect: V.func,
|
|
7500
|
+
onStateChange: V.func,
|
|
7501
|
+
onInputValueChange: V.func,
|
|
7502
|
+
onUserAction: V.func,
|
|
7503
|
+
onOuterClick: V.func,
|
|
7504
|
+
selectedItemChanged: V.func,
|
|
7505
|
+
stateReducer: V.func,
|
|
7506
|
+
itemCount: V.number,
|
|
7507
|
+
id: V.string,
|
|
7508
|
+
environment: V.shape({
|
|
7509
|
+
addEventListener: V.func.isRequired,
|
|
7510
|
+
removeEventListener: V.func.isRequired,
|
|
7511
|
+
document: V.shape({
|
|
7512
|
+
createElement: V.func.isRequired,
|
|
7513
|
+
getElementById: V.func.isRequired,
|
|
7514
|
+
activeElement: V.any.isRequired,
|
|
7515
|
+
body: V.any.isRequired
|
|
7514
7516
|
}).isRequired,
|
|
7515
|
-
Node:
|
|
7517
|
+
Node: V.func.isRequired
|
|
7516
7518
|
}),
|
|
7517
|
-
suppressRefError:
|
|
7518
|
-
scrollIntoView:
|
|
7519
|
+
suppressRefError: V.bool,
|
|
7520
|
+
scrollIntoView: V.func,
|
|
7519
7521
|
// things we keep in state for uncontrolled components
|
|
7520
7522
|
// but can accept as props for controlled components
|
|
7521
7523
|
/* eslint-disable react/no-unused-prop-types */
|
|
7522
|
-
selectedItem:
|
|
7523
|
-
isOpen:
|
|
7524
|
-
inputValue:
|
|
7525
|
-
highlightedIndex:
|
|
7526
|
-
labelId:
|
|
7527
|
-
inputId:
|
|
7528
|
-
menuId:
|
|
7529
|
-
getItemId:
|
|
7524
|
+
selectedItem: V.any,
|
|
7525
|
+
isOpen: V.bool,
|
|
7526
|
+
inputValue: V.string,
|
|
7527
|
+
highlightedIndex: V.number,
|
|
7528
|
+
labelId: V.string,
|
|
7529
|
+
inputId: V.string,
|
|
7530
|
+
menuId: V.string,
|
|
7531
|
+
getItemId: V.func
|
|
7530
7532
|
/* eslint-enable react/no-unused-prop-types */
|
|
7531
7533
|
});
|
|
7532
7534
|
function Oc(e, t) {
|
|
@@ -7562,7 +7564,7 @@ function Ev(e, t) {
|
|
|
7562
7564
|
}
|
|
7563
7565
|
var Cc = Xs(function(e, t) {
|
|
7564
7566
|
Iu(e, t);
|
|
7565
|
-
}, 200), Sv = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? el :
|
|
7567
|
+
}, 200), Sv = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? el : Y, Nv = "useId" in Be ? function(t) {
|
|
7566
7568
|
var n = t.id, r = t.labelId, o = t.menuId, i = t.getItemId, s = t.toggleButtonId, a = t.inputId, c = "downshift-" + Be.useId();
|
|
7567
7569
|
n || (n = c);
|
|
7568
7570
|
var l = xe({
|
|
@@ -7616,7 +7618,7 @@ function Rv(e, t, n, r) {
|
|
|
7616
7618
|
props: u.current
|
|
7617
7619
|
}, h));
|
|
7618
7620
|
}, [u]), m = i.current;
|
|
7619
|
-
return
|
|
7621
|
+
return Y(function() {
|
|
7620
7622
|
var h = po(o.current, m == null ? void 0 : m.props), y = m && o.current && !r(h, c);
|
|
7621
7623
|
y && Ov(m, h, c), o.current = c;
|
|
7622
7624
|
}, [c, m, r]), [c, d];
|
|
@@ -7635,7 +7637,7 @@ var ai = {
|
|
|
7635
7637
|
typeof window > "u" ? void 0 : window
|
|
7636
7638
|
)
|
|
7637
7639
|
};
|
|
7638
|
-
function
|
|
7640
|
+
function $n(e, t, n) {
|
|
7639
7641
|
n === void 0 && (n = Mu);
|
|
7640
7642
|
var r = e["default" + Zs(t)];
|
|
7641
7643
|
return r !== void 0 ? r : n[t];
|
|
@@ -7646,7 +7648,7 @@ function ci(e, t, n) {
|
|
|
7646
7648
|
if (r !== void 0)
|
|
7647
7649
|
return r;
|
|
7648
7650
|
var o = e["initial" + Zs(t)];
|
|
7649
|
-
return o !== void 0 ? o :
|
|
7651
|
+
return o !== void 0 ? o : $n(e, t, n);
|
|
7650
7652
|
}
|
|
7651
7653
|
function Av(e) {
|
|
7652
7654
|
var t = ci(e, "selectedItem"), n = ci(e, "isOpen"), r = Mv(e), o = ci(e, "inputValue");
|
|
@@ -7671,7 +7673,7 @@ function xv(e, t, n) {
|
|
|
7671
7673
|
isTouchMove: !1,
|
|
7672
7674
|
isTouchEnd: !1
|
|
7673
7675
|
});
|
|
7674
|
-
return
|
|
7676
|
+
return Y(function() {
|
|
7675
7677
|
if (!e)
|
|
7676
7678
|
return Et;
|
|
7677
7679
|
var o = n.map(function(u) {
|
|
@@ -7706,7 +7708,7 @@ process.env.NODE_ENV !== "production" && (Lu = function() {
|
|
|
7706
7708
|
var o = xe(n.reduce(function(s, a) {
|
|
7707
7709
|
return s[a] = {}, s;
|
|
7708
7710
|
}, {}));
|
|
7709
|
-
|
|
7711
|
+
Y(function() {
|
|
7710
7712
|
Object.keys(o.current).forEach(function(s) {
|
|
7711
7713
|
var a = o.current[s];
|
|
7712
7714
|
if (!Object.keys(a).length) {
|
|
@@ -7729,12 +7731,12 @@ process.env.NODE_ENV !== "production" && (Lu = function() {
|
|
|
7729
7731
|
function Pv(e, t, n, r) {
|
|
7730
7732
|
r === void 0 && (r = {});
|
|
7731
7733
|
var o = r.document, i = No();
|
|
7732
|
-
|
|
7734
|
+
Y(function() {
|
|
7733
7735
|
if (!(!e || i || !o)) {
|
|
7734
7736
|
var s = e(t);
|
|
7735
7737
|
Cc(s, o);
|
|
7736
7738
|
}
|
|
7737
|
-
}, n),
|
|
7739
|
+
}, n), Y(function() {
|
|
7738
7740
|
return function() {
|
|
7739
7741
|
Cc.cancel(), hv(o);
|
|
7740
7742
|
};
|
|
@@ -7746,10 +7748,10 @@ function Dv(e) {
|
|
|
7746
7748
|
t < 0 || !n || !Object.keys(r.current).length || (a.current === !1 ? a.current = !0 : s(o(t), i));
|
|
7747
7749
|
}, [t]), a;
|
|
7748
7750
|
}
|
|
7749
|
-
var
|
|
7750
|
-
process.env.NODE_ENV !== "production" && (
|
|
7751
|
+
var Ku = Et;
|
|
7752
|
+
process.env.NODE_ENV !== "production" && (Ku = function(t) {
|
|
7751
7753
|
var n = t.props, r = t.state, o = xe(n), i = No();
|
|
7752
|
-
|
|
7754
|
+
Y(function() {
|
|
7753
7755
|
i || (Ys(r, o.current, n), o.current = n);
|
|
7754
7756
|
}, [r, n, i]);
|
|
7755
7757
|
});
|
|
@@ -7762,8 +7764,8 @@ function Ec(e, t, n) {
|
|
|
7762
7764
|
highlightedIndex: -1
|
|
7763
7765
|
}, o && ye({
|
|
7764
7766
|
selectedItem: e.items[t],
|
|
7765
|
-
isOpen:
|
|
7766
|
-
highlightedIndex:
|
|
7767
|
+
isOpen: $n(e, "isOpen"),
|
|
7768
|
+
highlightedIndex: $n(e, "highlightedIndex")
|
|
7767
7769
|
}, n && {
|
|
7768
7770
|
inputValue: e.itemToString(e.items[t])
|
|
7769
7771
|
}));
|
|
@@ -7780,7 +7782,7 @@ function No() {
|
|
|
7780
7782
|
}, []), e.current;
|
|
7781
7783
|
}
|
|
7782
7784
|
function As(e) {
|
|
7783
|
-
var t =
|
|
7785
|
+
var t = $n(e, "highlightedIndex");
|
|
7784
7786
|
return t > -1 && e.isItemDisabled(e.items[t], t) ? -1 : t;
|
|
7785
7787
|
}
|
|
7786
7788
|
function Mv(e) {
|
|
@@ -7788,41 +7790,41 @@ function Mv(e) {
|
|
|
7788
7790
|
return t > -1 && e.isItemDisabled(e.items[t], t) ? -1 : t;
|
|
7789
7791
|
}
|
|
7790
7792
|
var to = {
|
|
7791
|
-
environment:
|
|
7792
|
-
addEventListener:
|
|
7793
|
-
removeEventListener:
|
|
7794
|
-
document:
|
|
7795
|
-
createElement:
|
|
7796
|
-
getElementById:
|
|
7797
|
-
activeElement:
|
|
7798
|
-
body:
|
|
7793
|
+
environment: V.shape({
|
|
7794
|
+
addEventListener: V.func.isRequired,
|
|
7795
|
+
removeEventListener: V.func.isRequired,
|
|
7796
|
+
document: V.shape({
|
|
7797
|
+
createElement: V.func.isRequired,
|
|
7798
|
+
getElementById: V.func.isRequired,
|
|
7799
|
+
activeElement: V.any.isRequired,
|
|
7800
|
+
body: V.any.isRequired
|
|
7799
7801
|
}).isRequired,
|
|
7800
|
-
Node:
|
|
7802
|
+
Node: V.func.isRequired
|
|
7801
7803
|
}),
|
|
7802
|
-
itemToString:
|
|
7803
|
-
itemToKey:
|
|
7804
|
-
stateReducer:
|
|
7805
|
-
},
|
|
7806
|
-
getA11yStatusMessage:
|
|
7807
|
-
highlightedIndex:
|
|
7808
|
-
defaultHighlightedIndex:
|
|
7809
|
-
initialHighlightedIndex:
|
|
7810
|
-
isOpen:
|
|
7811
|
-
defaultIsOpen:
|
|
7812
|
-
initialIsOpen:
|
|
7813
|
-
selectedItem:
|
|
7814
|
-
initialSelectedItem:
|
|
7815
|
-
defaultSelectedItem:
|
|
7816
|
-
id:
|
|
7817
|
-
labelId:
|
|
7818
|
-
menuId:
|
|
7819
|
-
getItemId:
|
|
7820
|
-
toggleButtonId:
|
|
7821
|
-
onSelectedItemChange:
|
|
7822
|
-
onHighlightedIndexChange:
|
|
7823
|
-
onStateChange:
|
|
7824
|
-
onIsOpenChange:
|
|
7825
|
-
scrollIntoView:
|
|
7804
|
+
itemToString: V.func,
|
|
7805
|
+
itemToKey: V.func,
|
|
7806
|
+
stateReducer: V.func
|
|
7807
|
+
}, Vu = ye({}, to, {
|
|
7808
|
+
getA11yStatusMessage: V.func,
|
|
7809
|
+
highlightedIndex: V.number,
|
|
7810
|
+
defaultHighlightedIndex: V.number,
|
|
7811
|
+
initialHighlightedIndex: V.number,
|
|
7812
|
+
isOpen: V.bool,
|
|
7813
|
+
defaultIsOpen: V.bool,
|
|
7814
|
+
initialIsOpen: V.bool,
|
|
7815
|
+
selectedItem: V.any,
|
|
7816
|
+
initialSelectedItem: V.any,
|
|
7817
|
+
defaultSelectedItem: V.any,
|
|
7818
|
+
id: V.string,
|
|
7819
|
+
labelId: V.string,
|
|
7820
|
+
menuId: V.string,
|
|
7821
|
+
getItemId: V.func,
|
|
7822
|
+
toggleButtonId: V.string,
|
|
7823
|
+
onSelectedItemChange: V.func,
|
|
7824
|
+
onHighlightedIndexChange: V.func,
|
|
7825
|
+
onStateChange: V.func,
|
|
7826
|
+
onIsOpenChange: V.func,
|
|
7827
|
+
scrollIntoView: V.func
|
|
7826
7828
|
});
|
|
7827
7829
|
function kv(e, t, n) {
|
|
7828
7830
|
var r = t.type, o = t.props, i;
|
|
@@ -7868,9 +7870,9 @@ function kv(e, t, n) {
|
|
|
7868
7870
|
case n.FunctionReset:
|
|
7869
7871
|
i = {
|
|
7870
7872
|
highlightedIndex: As(o),
|
|
7871
|
-
isOpen:
|
|
7872
|
-
selectedItem:
|
|
7873
|
-
inputValue:
|
|
7873
|
+
isOpen: $n(o, "isOpen"),
|
|
7874
|
+
selectedItem: $n(o, "selectedItem"),
|
|
7875
|
+
inputValue: $n(o, "inputValue")
|
|
7874
7876
|
};
|
|
7875
7877
|
break;
|
|
7876
7878
|
default:
|
|
@@ -7878,8 +7880,8 @@ function kv(e, t, n) {
|
|
|
7878
7880
|
}
|
|
7879
7881
|
return ye({}, e, i);
|
|
7880
7882
|
}
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
+
qr(qr({}, Vu), { items: V.array.isRequired, isItemDisabled: V.func });
|
|
7884
|
+
qr(qr({}, ai), { isItemDisabled: function() {
|
|
7883
7885
|
return !1;
|
|
7884
7886
|
} });
|
|
7885
7887
|
process.env.NODE_ENV;
|
|
@@ -7905,7 +7907,7 @@ process.env.NODE_ENV;
|
|
|
7905
7907
|
process.env.NODE_ENV;
|
|
7906
7908
|
process.env.NODE_ENV;
|
|
7907
7909
|
process.env.NODE_ENV;
|
|
7908
|
-
var ea = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ta = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, na = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, ra = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, ia = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, oa = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, sa = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, aa = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, ca = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, mo = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, la = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, $u = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11,
|
|
7910
|
+
var ea = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ta = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, na = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, ra = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, ia = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, oa = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, sa = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, aa = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, ca = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, mo = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, la = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, $u = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, qu = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, ua = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Uu = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Hu = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Bu = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Wu = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Ju = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, da = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, zu = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, ju = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, pa = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Gu = /* @__PURE__ */ Object.freeze({
|
|
7909
7911
|
__proto__: null,
|
|
7910
7912
|
ControlledPropUpdatedSelectedItem: pa,
|
|
7911
7913
|
FunctionCloseMenu: Wu,
|
|
@@ -7927,9 +7929,9 @@ var ea = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
7927
7929
|
InputKeyDownPageDown: sa,
|
|
7928
7930
|
InputKeyDownPageUp: oa,
|
|
7929
7931
|
ItemClick: ua,
|
|
7930
|
-
ItemMouseMove:
|
|
7932
|
+
ItemMouseMove: qu,
|
|
7931
7933
|
MenuMouseLeave: $u,
|
|
7932
|
-
ToggleButtonClick:
|
|
7934
|
+
ToggleButtonClick: Uu
|
|
7933
7935
|
});
|
|
7934
7936
|
function Lv(e) {
|
|
7935
7937
|
var t = Av(e), n = t.selectedItem, r = t.inputValue;
|
|
@@ -7937,18 +7939,18 @@ function Lv(e) {
|
|
|
7937
7939
|
inputValue: r
|
|
7938
7940
|
});
|
|
7939
7941
|
}
|
|
7940
|
-
var
|
|
7941
|
-
items:
|
|
7942
|
-
isItemDisabled:
|
|
7943
|
-
inputValue:
|
|
7944
|
-
defaultInputValue:
|
|
7945
|
-
initialInputValue:
|
|
7946
|
-
inputId:
|
|
7947
|
-
onInputValueChange:
|
|
7942
|
+
var Kv = ye({}, Vu, {
|
|
7943
|
+
items: V.array.isRequired,
|
|
7944
|
+
isItemDisabled: V.func,
|
|
7945
|
+
inputValue: V.string,
|
|
7946
|
+
defaultInputValue: V.string,
|
|
7947
|
+
initialInputValue: V.string,
|
|
7948
|
+
inputId: V.string,
|
|
7949
|
+
onInputValueChange: V.func
|
|
7948
7950
|
});
|
|
7949
|
-
function
|
|
7951
|
+
function Vv(e, t, n, r) {
|
|
7950
7952
|
var o = xe(), i = Rv(e, t, n, r), s = i[0], a = i[1], c = No();
|
|
7951
|
-
return
|
|
7953
|
+
return Y(function() {
|
|
7952
7954
|
if (fo(t, "selectedItem")) {
|
|
7953
7955
|
if (!c) {
|
|
7954
7956
|
var l = t.itemToKey(t.selectedItem) !== t.itemToKey(o.current);
|
|
@@ -7963,19 +7965,19 @@ function Kv(e, t, n, r) {
|
|
|
7963
7965
|
}
|
|
7964
7966
|
var Qu = Et;
|
|
7965
7967
|
process.env.NODE_ENV !== "production" && (Qu = function(t, n) {
|
|
7966
|
-
|
|
7968
|
+
V.checkPropTypes(Kv, t, "prop", n.name);
|
|
7967
7969
|
});
|
|
7968
7970
|
var $v = ye({}, ai, {
|
|
7969
7971
|
isItemDisabled: function() {
|
|
7970
7972
|
return !1;
|
|
7971
7973
|
}
|
|
7972
7974
|
});
|
|
7973
|
-
function
|
|
7975
|
+
function qv(e, t) {
|
|
7974
7976
|
var n, r = t.type, o = t.props, i = t.altKey, s;
|
|
7975
7977
|
switch (r) {
|
|
7976
7978
|
case ua:
|
|
7977
7979
|
s = {
|
|
7978
|
-
isOpen:
|
|
7980
|
+
isOpen: $n(o, "isOpen"),
|
|
7979
7981
|
highlightedIndex: As(o),
|
|
7980
7982
|
selectedItem: o.items[t.index],
|
|
7981
7983
|
inputValue: o.itemToString(o.items[t.index])
|
|
@@ -8021,12 +8023,12 @@ function Uv(e, t) {
|
|
|
8021
8023
|
break;
|
|
8022
8024
|
case ra:
|
|
8023
8025
|
s = {
|
|
8024
|
-
highlightedIndex:
|
|
8026
|
+
highlightedIndex: Ur(0, !1, o.items, o.isItemDisabled)
|
|
8025
8027
|
};
|
|
8026
8028
|
break;
|
|
8027
8029
|
case ia:
|
|
8028
8030
|
s = {
|
|
8029
|
-
highlightedIndex:
|
|
8031
|
+
highlightedIndex: Ur(o.items.length - 1, !0, o.items, o.isItemDisabled)
|
|
8030
8032
|
};
|
|
8031
8033
|
break;
|
|
8032
8034
|
case mo:
|
|
@@ -8067,11 +8069,11 @@ function Uv(e, t) {
|
|
|
8067
8069
|
}
|
|
8068
8070
|
return ye({}, e, s);
|
|
8069
8071
|
}
|
|
8070
|
-
var
|
|
8072
|
+
var Uv = ["onMouseLeave", "refKey", "ref"], Hv = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Bv = ["onClick", "onPress", "refKey", "ref"], Wv = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
|
|
8071
8073
|
fa.stateChangeTypes = Gu;
|
|
8072
8074
|
function fa(e) {
|
|
8073
8075
|
e === void 0 && (e = {}), Qu(e, fa);
|
|
8074
|
-
var t = ye({}, $v, e), n = t.items, r = t.scrollIntoView, o = t.environment, i = t.getA11yStatusMessage, s =
|
|
8076
|
+
var t = ye({}, $v, e), n = t.items, r = t.scrollIntoView, o = t.environment, i = t.getA11yStatusMessage, s = Vv(qv, t, Lv, Fv), a = s[0], c = s[1], l = a.isOpen, u = a.highlightedIndex, d = a.selectedItem, m = a.inputValue, h = xe(null), y = xe({}), v = xe(null), f = xe(null), _ = No(), g = Nv(t), I = xe(), O = ku({
|
|
8075
8077
|
state: a,
|
|
8076
8078
|
props: t
|
|
8077
8079
|
}), b = re(function($) {
|
|
@@ -8086,13 +8088,13 @@ function fa(e) {
|
|
|
8086
8088
|
scrollIntoView: r,
|
|
8087
8089
|
getItemNodeFromIndex: b
|
|
8088
8090
|
});
|
|
8089
|
-
|
|
8091
|
+
Ku({
|
|
8090
8092
|
props: t,
|
|
8091
8093
|
state: a
|
|
8092
|
-
}),
|
|
8094
|
+
}), Y(function() {
|
|
8093
8095
|
var $ = ci(t, "isOpen");
|
|
8094
8096
|
$ && v.current && v.current.focus();
|
|
8095
|
-
}, []),
|
|
8097
|
+
}, []), Y(function() {
|
|
8096
8098
|
_ || (I.current = n.length);
|
|
8097
8099
|
});
|
|
8098
8100
|
var S = xv(o, re(function() {
|
|
@@ -8100,84 +8102,84 @@ function fa(e) {
|
|
|
8100
8102
|
type: mo,
|
|
8101
8103
|
selectItem: !1
|
|
8102
8104
|
});
|
|
8103
|
-
}, [c, O]),
|
|
8105
|
+
}, [c, O]), Ke(function() {
|
|
8104
8106
|
return [h, f, v];
|
|
8105
8107
|
}, [h.current, f.current, v.current])), N = Lu("getInputProps", "getMenuProps");
|
|
8106
|
-
|
|
8108
|
+
Y(function() {
|
|
8107
8109
|
l || (y.current = {});
|
|
8108
|
-
}, [l]),
|
|
8110
|
+
}, [l]), Y(function() {
|
|
8109
8111
|
var $;
|
|
8110
8112
|
!l || !(o != null && o.document) || !(v != null && ($ = v.current) != null && $.focus) || o.document.activeElement !== v.current && v.current.focus();
|
|
8111
8113
|
}, [l, o]);
|
|
8112
|
-
var D =
|
|
8114
|
+
var D = Ke(function() {
|
|
8113
8115
|
return {
|
|
8114
|
-
ArrowDown: function(
|
|
8115
|
-
|
|
8116
|
+
ArrowDown: function(K) {
|
|
8117
|
+
K.preventDefault(), c({
|
|
8116
8118
|
type: ea,
|
|
8117
|
-
altKey:
|
|
8119
|
+
altKey: K.altKey
|
|
8118
8120
|
});
|
|
8119
8121
|
},
|
|
8120
|
-
ArrowUp: function(
|
|
8121
|
-
|
|
8122
|
+
ArrowUp: function(K) {
|
|
8123
|
+
K.preventDefault(), c({
|
|
8122
8124
|
type: ta,
|
|
8123
|
-
altKey:
|
|
8125
|
+
altKey: K.altKey
|
|
8124
8126
|
});
|
|
8125
8127
|
},
|
|
8126
|
-
Home: function(
|
|
8127
|
-
O.current.state.isOpen && (
|
|
8128
|
+
Home: function(K) {
|
|
8129
|
+
O.current.state.isOpen && (K.preventDefault(), c({
|
|
8128
8130
|
type: ra
|
|
8129
8131
|
}));
|
|
8130
8132
|
},
|
|
8131
|
-
End: function(
|
|
8132
|
-
O.current.state.isOpen && (
|
|
8133
|
+
End: function(K) {
|
|
8134
|
+
O.current.state.isOpen && (K.preventDefault(), c({
|
|
8133
8135
|
type: ia
|
|
8134
8136
|
}));
|
|
8135
8137
|
},
|
|
8136
|
-
Escape: function(
|
|
8138
|
+
Escape: function(K) {
|
|
8137
8139
|
var L = O.current.state;
|
|
8138
|
-
(L.isOpen || L.inputValue || L.selectedItem || L.highlightedIndex > -1) && (
|
|
8140
|
+
(L.isOpen || L.inputValue || L.selectedItem || L.highlightedIndex > -1) && (K.preventDefault(), c({
|
|
8139
8141
|
type: na
|
|
8140
8142
|
}));
|
|
8141
8143
|
},
|
|
8142
|
-
Enter: function(
|
|
8144
|
+
Enter: function(K) {
|
|
8143
8145
|
var L = O.current.state;
|
|
8144
|
-
!L.isOpen ||
|
|
8146
|
+
!L.isOpen || K.which === 229 || (K.preventDefault(), c({
|
|
8145
8147
|
type: aa
|
|
8146
8148
|
}));
|
|
8147
8149
|
},
|
|
8148
|
-
PageUp: function(
|
|
8149
|
-
O.current.state.isOpen && (
|
|
8150
|
+
PageUp: function(K) {
|
|
8151
|
+
O.current.state.isOpen && (K.preventDefault(), c({
|
|
8150
8152
|
type: oa
|
|
8151
8153
|
}));
|
|
8152
8154
|
},
|
|
8153
|
-
PageDown: function(
|
|
8154
|
-
O.current.state.isOpen && (
|
|
8155
|
+
PageDown: function(K) {
|
|
8156
|
+
O.current.state.isOpen && (K.preventDefault(), c({
|
|
8155
8157
|
type: sa
|
|
8156
8158
|
}));
|
|
8157
8159
|
}
|
|
8158
8160
|
};
|
|
8159
|
-
}, [c, O]),
|
|
8161
|
+
}, [c, O]), q = re(function($) {
|
|
8160
8162
|
return ye({
|
|
8161
8163
|
id: g.labelId,
|
|
8162
8164
|
htmlFor: g.inputId
|
|
8163
8165
|
}, $);
|
|
8164
|
-
}, [g]), j = re(function($,
|
|
8165
|
-
var L, F = $ === void 0 ? {} : $,
|
|
8166
|
-
return N("getMenuProps", be,
|
|
8166
|
+
}, [g]), j = re(function($, K) {
|
|
8167
|
+
var L, F = $ === void 0 ? {} : $, Z = F.onMouseLeave, ee = F.refKey, U = ee === void 0 ? "ref" : ee, te = F.ref, Q = vn(F, Uv), he = K === void 0 ? {} : K, M = he.suppressRefError, be = M === void 0 ? !1 : M;
|
|
8168
|
+
return N("getMenuProps", be, U, h), ye((L = {}, L[U] = _r(te, function(H) {
|
|
8167
8169
|
h.current = H;
|
|
8168
|
-
}), L.id = g.menuId, L.role = "listbox", L["aria-labelledby"] = Q && Q["aria-label"] ? void 0 : "" + g.labelId, L.onMouseLeave = Qe(
|
|
8170
|
+
}), L.id = g.menuId, L.role = "listbox", L["aria-labelledby"] = Q && Q["aria-label"] ? void 0 : "" + g.labelId, L.onMouseLeave = Qe(Z, function() {
|
|
8169
8171
|
c({
|
|
8170
8172
|
type: $u
|
|
8171
8173
|
});
|
|
8172
8174
|
}), L), Q);
|
|
8173
8175
|
}, [c, N, g]), G = re(function($) {
|
|
8174
|
-
var
|
|
8176
|
+
var K, L, F = $ === void 0 ? {} : $, Z = F.item, ee = F.index, U = F.refKey, te = U === void 0 ? "ref" : U, Q = F.ref, he = F.onMouseMove, M = F.onMouseDown, be = F.onClick;
|
|
8175
8177
|
F.onPress;
|
|
8176
8178
|
var H = F.disabled, Re = vn(F, Hv);
|
|
8177
8179
|
H !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
8178
|
-
var He = O.current, nt = He.props, Je = He.state, Oe = Tv(
|
|
8180
|
+
var He = O.current, nt = He.props, Je = He.state, Oe = Tv(Z, ee, nt.items, "Pass either item or index to getItemProps!"), Vt = Oe[0], rt = Oe[1], _t = nt.isItemDisabled(Vt, rt), $t = "onClick", qt = be, it = function() {
|
|
8179
8181
|
S.isTouchEnd || rt === Je.highlightedIndex || (T.current = !1, c({
|
|
8180
|
-
type:
|
|
8182
|
+
type: qu,
|
|
8181
8183
|
index: rt,
|
|
8182
8184
|
disabled: _t
|
|
8183
8185
|
}));
|
|
@@ -8186,37 +8188,37 @@ function fa(e) {
|
|
|
8186
8188
|
type: ua,
|
|
8187
8189
|
index: rt
|
|
8188
8190
|
});
|
|
8189
|
-
}, ze = function(
|
|
8190
|
-
return
|
|
8191
|
+
}, ze = function(Ut) {
|
|
8192
|
+
return Ut.preventDefault();
|
|
8191
8193
|
};
|
|
8192
|
-
return ye((
|
|
8194
|
+
return ye((K = {}, K[te] = _r(Q, function(Me) {
|
|
8193
8195
|
Me && (y.current[g.getItemId(rt)] = Me);
|
|
8194
|
-
}),
|
|
8196
|
+
}), K["aria-disabled"] = _t, K["aria-selected"] = rt === Je.highlightedIndex, K.id = g.getItemId(rt), K.role = "option", K), !_t && (L = {}, L[$t] = Qe(qt, Ye), L), {
|
|
8195
8197
|
onMouseMove: Qe(he, it),
|
|
8196
8198
|
onMouseDown: Qe(M, ze)
|
|
8197
8199
|
}, Re);
|
|
8198
8200
|
}, [c, g, O, S, T]), ie = re(function($) {
|
|
8199
|
-
var
|
|
8201
|
+
var K, L = $ === void 0 ? {} : $, F = L.onClick;
|
|
8200
8202
|
L.onPress;
|
|
8201
|
-
var
|
|
8203
|
+
var Z = L.refKey, ee = Z === void 0 ? "ref" : Z, U = L.ref, te = vn(L, Bv), Q = O.current.state, he = function() {
|
|
8202
8204
|
c({
|
|
8203
|
-
type:
|
|
8205
|
+
type: Uu
|
|
8204
8206
|
});
|
|
8205
8207
|
};
|
|
8206
|
-
return ye((
|
|
8208
|
+
return ye((K = {}, K[ee] = _r(U, function(M) {
|
|
8207
8209
|
f.current = M;
|
|
8208
|
-
}),
|
|
8210
|
+
}), K["aria-controls"] = g.menuId, K["aria-expanded"] = Q.isOpen, K.id = g.toggleButtonId, K.tabIndex = -1, K), !te.disabled && ye({}, {
|
|
8209
8211
|
onClick: Qe(F, he)
|
|
8210
8212
|
}), te);
|
|
8211
|
-
}, [c, O, g]), B = re(function($,
|
|
8212
|
-
var L, F = $ === void 0 ? {} : $,
|
|
8213
|
+
}, [c, O, g]), B = re(function($, K) {
|
|
8214
|
+
var L, F = $ === void 0 ? {} : $, Z = F.onKeyDown, ee = F.onChange, U = F.onInput, te = F.onBlur;
|
|
8213
8215
|
F.onChangeText;
|
|
8214
|
-
var Q = F.onClick, he = F.refKey, M = he === void 0 ? "ref" : he, be = F.ref, H = vn(F, Wv), Re =
|
|
8216
|
+
var Q = F.onClick, he = F.refKey, M = he === void 0 ? "ref" : he, be = F.ref, H = vn(F, Wv), Re = K === void 0 ? {} : K, He = Re.suppressRefError, nt = He === void 0 ? !1 : He;
|
|
8215
8217
|
N("getInputProps", nt, M, v);
|
|
8216
8218
|
var Je = O.current.state, Oe = function(ze) {
|
|
8217
8219
|
var Me = Ts(ze);
|
|
8218
8220
|
Me && D[Me] && D[Me](ze);
|
|
8219
|
-
},
|
|
8221
|
+
}, Vt = function(ze) {
|
|
8220
8222
|
c({
|
|
8221
8223
|
type: ca,
|
|
8222
8224
|
inputValue: ze.target.value
|
|
@@ -8233,14 +8235,14 @@ function fa(e) {
|
|
|
8233
8235
|
c({
|
|
8234
8236
|
type: la
|
|
8235
8237
|
});
|
|
8236
|
-
}, $t = "onChange",
|
|
8238
|
+
}, $t = "onChange", qt = {};
|
|
8237
8239
|
if (!H.disabled) {
|
|
8238
8240
|
var it;
|
|
8239
|
-
|
|
8241
|
+
qt = (it = {}, it[$t] = Qe(ee, U, Vt), it.onKeyDown = Qe(Z, Oe), it.onBlur = Qe(te, rt), it.onClick = Qe(Q, _t), it);
|
|
8240
8242
|
}
|
|
8241
8243
|
return ye((L = {}, L[M] = _r(be, function(Ye) {
|
|
8242
8244
|
v.current = Ye;
|
|
8243
|
-
}), L["aria-activedescendant"] = Je.isOpen && Je.highlightedIndex > -1 ? g.getItemId(Je.highlightedIndex) : "", L["aria-autocomplete"] = "list", L["aria-controls"] = g.menuId, L["aria-expanded"] = Je.isOpen, L["aria-labelledby"] = H && H["aria-label"] ? void 0 : g.labelId, L.autoComplete = "off", L.id = g.inputId, L.role = "combobox", L.value = Je.inputValue, L),
|
|
8245
|
+
}), L["aria-activedescendant"] = Je.isOpen && Je.highlightedIndex > -1 ? g.getItemId(Je.highlightedIndex) : "", L["aria-autocomplete"] = "list", L["aria-controls"] = g.menuId, L["aria-expanded"] = Je.isOpen, L["aria-labelledby"] = H && H["aria-label"] ? void 0 : g.labelId, L.autoComplete = "off", L.id = g.inputId, L.role = "combobox", L.value = Je.inputValue, L), qt, H);
|
|
8244
8246
|
}, [c, g, o, D, O, S, N]), ue = re(function() {
|
|
8245
8247
|
c({
|
|
8246
8248
|
type: Hu
|
|
@@ -8276,7 +8278,7 @@ function fa(e) {
|
|
|
8276
8278
|
return {
|
|
8277
8279
|
// prop getters.
|
|
8278
8280
|
getItemProps: G,
|
|
8279
|
-
getLabelProps:
|
|
8281
|
+
getLabelProps: q,
|
|
8280
8282
|
getMenuProps: j,
|
|
8281
8283
|
getInputProps: B,
|
|
8282
8284
|
getToggleButtonProps: ie,
|
|
@@ -8295,7 +8297,7 @@ function fa(e) {
|
|
|
8295
8297
|
inputValue: m
|
|
8296
8298
|
};
|
|
8297
8299
|
}
|
|
8298
|
-
to.stateReducer, to.itemToKey, to.environment,
|
|
8300
|
+
to.stateReducer, to.itemToKey, to.environment, V.array, V.array, V.array, V.func, V.number, V.number, V.number, V.func, V.func, V.string, V.string;
|
|
8299
8301
|
ai.itemToKey, ai.stateReducer, ai.environment;
|
|
8300
8302
|
process.env.NODE_ENV;
|
|
8301
8303
|
process.env.NODE_ENV;
|
|
@@ -8342,7 +8344,7 @@ function Xu({
|
|
|
8342
8344
|
menuPosition: s = "bottom"
|
|
8343
8345
|
}) {
|
|
8344
8346
|
const [a, c] = de(e), l = xe(null);
|
|
8345
|
-
|
|
8347
|
+
Y(() => c(e), [e]);
|
|
8346
8348
|
const u = re((S) => {
|
|
8347
8349
|
(S == null ? void 0 : S.length) > 0 ? c(e.filter(iw(S))) : c(e);
|
|
8348
8350
|
}, [e]), {
|
|
@@ -8366,7 +8368,7 @@ function Xu({
|
|
|
8366
8368
|
}
|
|
8367
8369
|
}), I = () => {
|
|
8368
8370
|
_(""), c(e);
|
|
8369
|
-
}, O = () => I(), b =
|
|
8371
|
+
}, O = () => I(), b = Ke(
|
|
8370
8372
|
() => {
|
|
8371
8373
|
var S;
|
|
8372
8374
|
return (S = e.find((N) => N.value === t)) == null ? void 0 : S.label;
|
|
@@ -8418,7 +8420,7 @@ function Xu({
|
|
|
8418
8420
|
)
|
|
8419
8421
|
] });
|
|
8420
8422
|
}
|
|
8421
|
-
const Hr = Math.min, dr = Math.max, go = Math.round, ji = Math.floor,
|
|
8423
|
+
const Hr = Math.min, dr = Math.max, go = Math.round, ji = Math.floor, Hn = (e) => ({
|
|
8422
8424
|
x: e,
|
|
8423
8425
|
y: e
|
|
8424
8426
|
}), ow = {
|
|
@@ -8701,7 +8703,7 @@ const fw = (e) => ({
|
|
|
8701
8703
|
}, h = ma(o), y = ha(h), v = await s.getDimensions(l), f = h === "y", _ = f ? "top" : "left", g = f ? "bottom" : "right", I = f ? "clientHeight" : "clientWidth", O = i.reference[y] + i.reference[h] - m[h] - i.floating[y], b = m[h] - i.reference[h], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
8702
8704
|
let S = T ? T[I] : 0;
|
|
8703
8705
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(T))) && (S = a.floating[I] || i.floating[y]);
|
|
8704
|
-
const N = O / 2 - b / 2, D = S / 2 - v[y] / 2 - 1,
|
|
8706
|
+
const N = O / 2 - b / 2, D = S / 2 - v[y] / 2 - 1, q = Hr(d[_], D), j = Hr(d[g], D), G = q, ie = S - v[y] - j, B = S / 2 - v[y] / 2 + N, ue = xs(G, B, ie), ae = !c.arrow && Ci(o) != null && B !== ue && i.reference[y] / 2 - (B < G ? q : j) - v[y] / 2 < 0, ne = ae ? B < G ? B - G : B - ie : 0;
|
|
8705
8707
|
return {
|
|
8706
8708
|
[h]: m[h] + ne,
|
|
8707
8709
|
data: {
|
|
@@ -8741,12 +8743,12 @@ const fw = (e) => ({
|
|
|
8741
8743
|
const _ = vr(o), g = Br(a), I = vr(a) === a, O = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), b = m || (I || !v ? [yo(a)] : cw(a)), T = y !== "none";
|
|
8742
8744
|
!m && T && b.push(...uw(a, v, y, O));
|
|
8743
8745
|
const S = [a, ...b], N = await ed(t, f), D = [];
|
|
8744
|
-
let
|
|
8746
|
+
let q = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
8745
8747
|
if (u && D.push(N[_]), d) {
|
|
8746
8748
|
const B = aw(o, s, O);
|
|
8747
8749
|
D.push(N[B[0]], N[B[1]]);
|
|
8748
8750
|
}
|
|
8749
|
-
if (
|
|
8751
|
+
if (q = [...q, {
|
|
8750
8752
|
placement: o,
|
|
8751
8753
|
overflows: D
|
|
8752
8754
|
}], !D.every((B) => B <= 0)) {
|
|
@@ -8756,18 +8758,18 @@ const fw = (e) => ({
|
|
|
8756
8758
|
return {
|
|
8757
8759
|
data: {
|
|
8758
8760
|
index: B,
|
|
8759
|
-
overflows:
|
|
8761
|
+
overflows: q
|
|
8760
8762
|
},
|
|
8761
8763
|
reset: {
|
|
8762
8764
|
placement: ue
|
|
8763
8765
|
}
|
|
8764
8766
|
};
|
|
8765
|
-
let ae = (G =
|
|
8767
|
+
let ae = (G = q.filter((ne) => ne.overflows[0] <= 0).sort((ne, we) => ne.overflows[1] - we.overflows[1])[0]) == null ? void 0 : G.placement;
|
|
8766
8768
|
if (!ae)
|
|
8767
8769
|
switch (h) {
|
|
8768
8770
|
case "bestFit": {
|
|
8769
8771
|
var ie;
|
|
8770
|
-
const ne = (ie =
|
|
8772
|
+
const ne = (ie = q.filter((we) => {
|
|
8771
8773
|
if (T) {
|
|
8772
8774
|
const _e = Br(we.placement);
|
|
8773
8775
|
return _e === g || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -8952,13 +8954,13 @@ function ga(e) {
|
|
|
8952
8954
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
8953
8955
|
}
|
|
8954
8956
|
function ww(e) {
|
|
8955
|
-
let t =
|
|
8957
|
+
let t = Bn(e);
|
|
8956
8958
|
for (; an(t) && !Wr(t); ) {
|
|
8957
8959
|
if (ga(t))
|
|
8958
8960
|
return t;
|
|
8959
8961
|
if (Ro(t))
|
|
8960
8962
|
return null;
|
|
8961
|
-
t =
|
|
8963
|
+
t = Bn(t);
|
|
8962
8964
|
}
|
|
8963
8965
|
return null;
|
|
8964
8966
|
}
|
|
@@ -8980,7 +8982,7 @@ function Ao(e) {
|
|
|
8980
8982
|
scrollTop: e.scrollY
|
|
8981
8983
|
};
|
|
8982
8984
|
}
|
|
8983
|
-
function
|
|
8985
|
+
function Bn(e) {
|
|
8984
8986
|
if (ei(e) === "html")
|
|
8985
8987
|
return e;
|
|
8986
8988
|
const t = (
|
|
@@ -8993,7 +8995,7 @@ function Hn(e) {
|
|
|
8993
8995
|
return Nc(t) ? t.host : t;
|
|
8994
8996
|
}
|
|
8995
8997
|
function nd(e) {
|
|
8996
|
-
const t =
|
|
8998
|
+
const t = Bn(e);
|
|
8997
8999
|
return Wr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : an(t) && Ei(t) ? t : nd(t);
|
|
8998
9000
|
}
|
|
8999
9001
|
function mi(e, t, n) {
|
|
@@ -9025,7 +9027,7 @@ function va(e) {
|
|
|
9025
9027
|
function Cr(e) {
|
|
9026
9028
|
const t = va(e);
|
|
9027
9029
|
if (!an(t))
|
|
9028
|
-
return
|
|
9030
|
+
return Hn(1);
|
|
9029
9031
|
const n = t.getBoundingClientRect(), {
|
|
9030
9032
|
width: r,
|
|
9031
9033
|
height: o,
|
|
@@ -9037,7 +9039,7 @@ function Cr(e) {
|
|
|
9037
9039
|
y: a
|
|
9038
9040
|
};
|
|
9039
9041
|
}
|
|
9040
|
-
const Iw = /* @__PURE__ */
|
|
9042
|
+
const Iw = /* @__PURE__ */ Hn(0);
|
|
9041
9043
|
function id(e) {
|
|
9042
9044
|
const t = Nt(e);
|
|
9043
9045
|
return !ya() || !t.visualViewport ? Iw : {
|
|
@@ -9051,9 +9053,9 @@ function bw(e, t, n) {
|
|
|
9051
9053
|
function wr(e, t, n, r) {
|
|
9052
9054
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
9053
9055
|
const o = e.getBoundingClientRect(), i = va(e);
|
|
9054
|
-
let s =
|
|
9056
|
+
let s = Hn(1);
|
|
9055
9057
|
t && (r ? Xt(r) && (s = Cr(r)) : s = Cr(e));
|
|
9056
|
-
const a = bw(i, n, r) ? id(i) :
|
|
9058
|
+
const a = bw(i, n, r) ? id(i) : Hn(0);
|
|
9057
9059
|
let c = (o.left + a.x) / s.x, l = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
|
|
9058
9060
|
if (i) {
|
|
9059
9061
|
const m = Nt(i), h = r && Xt(r) ? Nt(r) : r;
|
|
@@ -9083,8 +9085,8 @@ function _w(e) {
|
|
|
9083
9085
|
let c = {
|
|
9084
9086
|
scrollLeft: 0,
|
|
9085
9087
|
scrollTop: 0
|
|
9086
|
-
}, l =
|
|
9087
|
-
const u =
|
|
9088
|
+
}, l = Hn(1);
|
|
9089
|
+
const u = Hn(0), d = an(r);
|
|
9088
9090
|
if ((d || !d && !i) && ((ei(r) !== "body" || Ei(s)) && (c = Ao(r)), an(r))) {
|
|
9089
9091
|
const m = wr(r);
|
|
9090
9092
|
l = Cr(r), u.x = m.x + r.clientLeft, u.y = m.y + r.clientTop;
|
|
@@ -9130,7 +9132,7 @@ function Ew(e, t) {
|
|
|
9130
9132
|
};
|
|
9131
9133
|
}
|
|
9132
9134
|
function Sw(e, t) {
|
|
9133
|
-
const n = wr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = an(e) ? Cr(e) :
|
|
9135
|
+
const n = wr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = an(e) ? Cr(e) : Hn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
|
|
9134
9136
|
return {
|
|
9135
9137
|
width: s,
|
|
9136
9138
|
height: a,
|
|
@@ -9157,7 +9159,7 @@ function Tc(e, t, n) {
|
|
|
9157
9159
|
return vo(r);
|
|
9158
9160
|
}
|
|
9159
9161
|
function od(e, t) {
|
|
9160
|
-
const n =
|
|
9162
|
+
const n = Bn(e);
|
|
9161
9163
|
return n === t || !Xt(n) || Wr(n) ? !1 : Yt(n).position === "fixed" || od(n, t);
|
|
9162
9164
|
}
|
|
9163
9165
|
function Nw(e, t) {
|
|
@@ -9166,10 +9168,10 @@ function Nw(e, t) {
|
|
|
9166
9168
|
return n;
|
|
9167
9169
|
let r = mi(e, [], !1).filter((a) => Xt(a) && ei(a) !== "body"), o = null;
|
|
9168
9170
|
const i = Yt(e).position === "fixed";
|
|
9169
|
-
let s = i ?
|
|
9171
|
+
let s = i ? Bn(e) : e;
|
|
9170
9172
|
for (; Xt(s) && !Wr(s); ) {
|
|
9171
9173
|
const a = Yt(s), c = ga(s);
|
|
9172
|
-
!c && a.position === "fixed" && (o = null), (i ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ei(s) && !c && od(e, s)) ? r = r.filter((u) => u !== s) : o = a, s =
|
|
9174
|
+
!c && a.position === "fixed" && (o = null), (i ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ei(s) && !c && od(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = Bn(s);
|
|
9173
9175
|
}
|
|
9174
9176
|
return t.set(e, r), r;
|
|
9175
9177
|
}
|
|
@@ -9207,7 +9209,7 @@ function Aw(e, t, n) {
|
|
|
9207
9209
|
scrollLeft: 0,
|
|
9208
9210
|
scrollTop: 0
|
|
9209
9211
|
};
|
|
9210
|
-
const c =
|
|
9212
|
+
const c = Hn(0);
|
|
9211
9213
|
if (r || !r && !i)
|
|
9212
9214
|
if ((ei(t) !== "body" || Ei(o)) && (a = Ao(t)), r) {
|
|
9213
9215
|
const h = wr(t, !0, i, t);
|
|
@@ -9243,11 +9245,11 @@ function sd(e, t) {
|
|
|
9243
9245
|
if (Ro(e))
|
|
9244
9246
|
return n;
|
|
9245
9247
|
if (!an(e)) {
|
|
9246
|
-
let o =
|
|
9248
|
+
let o = Bn(e);
|
|
9247
9249
|
for (; o && !Wr(o); ) {
|
|
9248
9250
|
if (Xt(o) && !Zo(o))
|
|
9249
9251
|
return o;
|
|
9250
|
-
o =
|
|
9252
|
+
o = Bn(o);
|
|
9251
9253
|
}
|
|
9252
9254
|
return n;
|
|
9253
9255
|
}
|
|
@@ -9365,7 +9367,7 @@ function Mw(e, t, n, r) {
|
|
|
9365
9367
|
}), d == null || d(), (_ = h) == null || _.disconnect(), h = null, c && cancelAnimationFrame(y);
|
|
9366
9368
|
};
|
|
9367
9369
|
}
|
|
9368
|
-
const kw = gw, Lw = yw,
|
|
9370
|
+
const kw = gw, Lw = yw, Kw = hw, Vw = fw, Ac = (e, t, n) => {
|
|
9369
9371
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
9370
9372
|
platform: Dw,
|
|
9371
9373
|
...n
|
|
@@ -9384,8 +9386,8 @@ const kw = gw, Lw = yw, Vw = hw, Kw = fw, Ac = (e, t, n) => {
|
|
|
9384
9386
|
* @copyright ReactTooltip Team
|
|
9385
9387
|
* @license MIT
|
|
9386
9388
|
*/
|
|
9387
|
-
const $w = "react-tooltip-core-styles",
|
|
9388
|
-
function Pc({ css: e, id: t =
|
|
9389
|
+
const $w = "react-tooltip-core-styles", qw = "react-tooltip-base-styles", xc = { core: !1, base: !1 };
|
|
9390
|
+
function Pc({ css: e, id: t = qw, type: n = "base", ref: r }) {
|
|
9389
9391
|
var o, i;
|
|
9390
9392
|
if (!e || typeof document > "u" || xc[n] || n === "core" && typeof process < "u" && (!((o = process == null ? void 0 : process.env) === null || o === void 0) && o.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((i = process == null ? void 0 : process.env) === null || i === void 0) && i.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
|
|
9391
9393
|
n === "core" && (t = $w), r || (r = {});
|
|
@@ -9394,11 +9396,11 @@ function Pc({ css: e, id: t = Uw, type: n = "base", ref: r }) {
|
|
|
9394
9396
|
const a = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
|
|
9395
9397
|
c.id = t, c.type = "text/css", s === "top" && a.firstChild ? a.insertBefore(c, a.firstChild) : a.appendChild(c), c.styleSheet ? c.styleSheet.cssText = e : c.appendChild(document.createTextNode(e)), xc[n] = !0;
|
|
9396
9398
|
}
|
|
9397
|
-
const Dc = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: o = 10, strategy: i = "absolute", middlewares: s = [kw(Number(o)),
|
|
9399
|
+
const Dc = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: o = 10, strategy: i = "absolute", middlewares: s = [kw(Number(o)), Kw({ fallbackAxisSideDirection: "start" }), Lw({ padding: 5 })], border: a }) => {
|
|
9398
9400
|
if (!e) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
9399
9401
|
if (t === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
9400
9402
|
const c = s;
|
|
9401
|
-
return n ? (c.push(
|
|
9403
|
+
return n ? (c.push(Vw({ element: n, padding: 5 })), Ac(e, t, { placement: r, strategy: i, middleware: c }).then(({ x: l, y: u, placement: d, middlewareData: m }) => {
|
|
9402
9404
|
var h, y;
|
|
9403
9405
|
const v = { left: `${l}px`, top: `${u}px`, border: a }, { x: f, y: _ } = (h = m.arrow) !== null && h !== void 0 ? h : { x: 0, y: 0 }, g = (y = { top: "bottom", right: "left", bottom: "top", left: "right" }[d.split("-")[0]]) !== null && y !== void 0 ? y : "bottom", I = a && { borderBottom: a, borderRight: a };
|
|
9404
9406
|
let O = 0;
|
|
@@ -9426,7 +9428,7 @@ const Dc = async ({ elementReference: e = null, tooltipReference: t = null, tool
|
|
|
9426
9428
|
if (!kc(e) || !kc(t)) return e === t;
|
|
9427
9429
|
const n = Object.keys(e), r = Object.keys(t);
|
|
9428
9430
|
return n.length === r.length && n.every((o) => Ms(e[o], t[o]));
|
|
9429
|
-
},
|
|
9431
|
+
}, Uw = (e) => {
|
|
9430
9432
|
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
9431
9433
|
const t = getComputedStyle(e);
|
|
9432
9434
|
return ["overflow", "overflow-x", "overflow-y"].some((n) => {
|
|
@@ -9437,11 +9439,11 @@ const Dc = async ({ elementReference: e = null, tooltipReference: t = null, tool
|
|
|
9437
9439
|
if (!e) return null;
|
|
9438
9440
|
let t = e.parentElement;
|
|
9439
9441
|
for (; t; ) {
|
|
9440
|
-
if (
|
|
9442
|
+
if (Uw(t)) return t;
|
|
9441
9443
|
t = t.parentElement;
|
|
9442
9444
|
}
|
|
9443
9445
|
return document.scrollingElement || document.documentElement;
|
|
9444
|
-
}, Hw = typeof window < "u" ? el :
|
|
9446
|
+
}, Hw = typeof window < "u" ? el : Y, Dt = (e) => {
|
|
9445
9447
|
e.current && (clearTimeout(e.current), e.current = null);
|
|
9446
9448
|
}, Bw = "DEFAULT_TOOLTIP_ID", Ww = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
|
|
9447
9449
|
}, detach: () => {
|
|
@@ -9451,14 +9453,14 @@ function ad(e = Bw) {
|
|
|
9451
9453
|
return Lt(Jw).getTooltipData(e);
|
|
9452
9454
|
}
|
|
9453
9455
|
var br = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, es = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
9454
|
-
const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: i, anchorSelect: s, place: a = "top", offset: c = 10, events: l = ["hover"], openOnClick: u = !1, positionStrategy: d = "absolute", middlewares: m, wrapper: h, delayShow: y = 0, delayHide: v = 0, float: f = !1, hidden: _ = !1, noArrow: g = !1, clickable: I = !1, closeOnEsc: O = !1, closeOnScroll: b = !1, closeOnResize: T = !1, openEvents: S, closeEvents: N, globalCloseEvents: D, imperativeModeOnly:
|
|
9455
|
-
var
|
|
9456
|
-
const
|
|
9457
|
-
!S &&
|
|
9458
|
-
const
|
|
9459
|
-
!N &&
|
|
9456
|
+
const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: i, anchorSelect: s, place: a = "top", offset: c = 10, events: l = ["hover"], openOnClick: u = !1, positionStrategy: d = "absolute", middlewares: m, wrapper: h, delayShow: y = 0, delayHide: v = 0, float: f = !1, hidden: _ = !1, noArrow: g = !1, clickable: I = !1, closeOnEsc: O = !1, closeOnScroll: b = !1, closeOnResize: T = !1, openEvents: S, closeEvents: N, globalCloseEvents: D, imperativeModeOnly: q, style: j, position: G, afterShow: ie, afterHide: B, disableTooltip: ue, content: ae, contentWrapperRef: ne, isOpen: we, defaultIsOpen: _e = !1, setIsOpen: A, activeAnchor: k, setActiveAnchor: $, border: K, opacity: L, arrowColor: F, role: Z = "tooltip" }) => {
|
|
9457
|
+
var ee;
|
|
9458
|
+
const U = xe(null), te = xe(null), Q = xe(null), he = xe(null), M = xe(null), [be, H] = de({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [Re, He] = de(!1), [nt, Je] = de(!1), [Oe, Vt] = de(null), rt = xe(!1), _t = xe(null), { anchorRefs: $t, setActiveAnchor: qt } = ad(t), it = xe(!1), [Ye, ze] = de([]), Me = xe(!1), Ut = u || l.includes("click"), ct = Ut || (S == null ? void 0 : S.click) || (S == null ? void 0 : S.dblclick) || (S == null ? void 0 : S.mousedown), ln = S ? { ...S } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
9459
|
+
!S && Ut && Object.assign(ln, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
9460
|
+
const _n = N ? { ...N } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
9461
|
+
!N && Ut && Object.assign(_n, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
9460
9462
|
const Ot = D ? { ...D } : { escape: O || !1, scroll: b || !1, resize: T || !1, clickOutsideAnchor: ct || !1 };
|
|
9461
|
-
|
|
9463
|
+
q && (Object.assign(ln, { mouseenter: !1, focus: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(_n, { mouseleave: !1, blur: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(Ot, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), Hw(() => (Me.current = !0, () => {
|
|
9462
9464
|
Me.current = !1;
|
|
9463
9465
|
}), []);
|
|
9464
9466
|
const ke = (W) => {
|
|
@@ -9466,7 +9468,7 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9466
9468
|
Me.current && (A == null || A(W), we === void 0 && He(W));
|
|
9467
9469
|
}, 10));
|
|
9468
9470
|
};
|
|
9469
|
-
|
|
9471
|
+
Y(() => {
|
|
9470
9472
|
if (we === void 0) return () => null;
|
|
9471
9473
|
we && Je(!0);
|
|
9472
9474
|
const W = setTimeout(() => {
|
|
@@ -9475,23 +9477,23 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9475
9477
|
return () => {
|
|
9476
9478
|
clearTimeout(W);
|
|
9477
9479
|
};
|
|
9478
|
-
}, [we]),
|
|
9480
|
+
}, [we]), Y(() => {
|
|
9479
9481
|
if (Re !== rt.current) if (Dt(M), rt.current = Re, Re) ie == null || ie();
|
|
9480
9482
|
else {
|
|
9481
9483
|
const W = ((le) => {
|
|
9482
9484
|
const pe = le.match(/^([\d.]+)(ms|s)$/);
|
|
9483
9485
|
if (!pe) return 0;
|
|
9484
|
-
const [,
|
|
9485
|
-
return Number(
|
|
9486
|
+
const [, Ue, Ge] = pe;
|
|
9487
|
+
return Number(Ue) * (Ge === "ms" ? 1 : 1e3);
|
|
9486
9488
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
9487
9489
|
M.current = setTimeout(() => {
|
|
9488
|
-
Je(!1),
|
|
9490
|
+
Je(!1), Vt(null), B == null || B();
|
|
9489
9491
|
}, W + 25);
|
|
9490
9492
|
}
|
|
9491
9493
|
}, [Re]);
|
|
9492
9494
|
const un = (W) => {
|
|
9493
9495
|
H((le) => Ms(le, W) ? le : W);
|
|
9494
|
-
},
|
|
9496
|
+
}, On = (W = y) => {
|
|
9495
9497
|
Dt(Q), nt ? ke(!0) : Q.current = setTimeout(() => {
|
|
9496
9498
|
ke(!0);
|
|
9497
9499
|
}, W);
|
|
@@ -9503,17 +9505,17 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9503
9505
|
var le;
|
|
9504
9506
|
if (!W) return;
|
|
9505
9507
|
const pe = (le = W.currentTarget) !== null && le !== void 0 ? le : W.target;
|
|
9506
|
-
if (!(pe != null && pe.isConnected)) return $(null), void
|
|
9507
|
-
y ?
|
|
9508
|
+
if (!(pe != null && pe.isConnected)) return $(null), void qt({ current: null });
|
|
9509
|
+
y ? On() : ke(!0), $(pe), qt({ current: pe }), Dt(he);
|
|
9508
9510
|
}, mt = () => {
|
|
9509
9511
|
I ? dn(v || 100) : v ? dn() : ke(!1), Dt(Q);
|
|
9510
9512
|
}, pn = ({ x: W, y: le }) => {
|
|
9511
9513
|
var pe;
|
|
9512
|
-
const
|
|
9513
|
-
Dc({ place: (pe = Oe == null ? void 0 : Oe.place) !== null && pe !== void 0 ? pe : a, offset: c, elementReference:
|
|
9514
|
+
const Ue = { getBoundingClientRect: () => ({ x: W, y: le, width: 0, height: 0, top: le, left: W, right: W, bottom: le }) };
|
|
9515
|
+
Dc({ place: (pe = Oe == null ? void 0 : Oe.place) !== null && pe !== void 0 ? pe : a, offset: c, elementReference: Ue, tooltipReference: U.current, tooltipArrowReference: te.current, strategy: d, middlewares: m, border: K }).then((Ge) => {
|
|
9514
9516
|
un(Ge);
|
|
9515
9517
|
});
|
|
9516
|
-
},
|
|
9518
|
+
}, Cn = (W) => {
|
|
9517
9519
|
if (!W) return;
|
|
9518
9520
|
const le = W, pe = { x: le.clientX, y: le.clientY };
|
|
9519
9521
|
pn(pe), _t.current = pe;
|
|
@@ -9521,32 +9523,32 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9521
9523
|
var le;
|
|
9522
9524
|
if (!Re) return;
|
|
9523
9525
|
const pe = W.target;
|
|
9524
|
-
pe.isConnected && (!((le =
|
|
9525
|
-
},
|
|
9526
|
-
Fe.cancel(),
|
|
9526
|
+
pe.isConnected && (!((le = U.current) === null || le === void 0) && le.contains(pe) || [document.querySelector(`[id='${i}']`), ...Ye].some((Ue) => Ue == null ? void 0 : Ue.contains(pe)) || (ke(!1), Dt(Q)));
|
|
9527
|
+
}, En = Mc(jn, 50), Fe = Mc(mt, 50), lt = (W) => {
|
|
9528
|
+
Fe.cancel(), En(W);
|
|
9527
9529
|
}, oe = () => {
|
|
9528
|
-
|
|
9530
|
+
En.cancel(), Fe();
|
|
9529
9531
|
}, ve = re(() => {
|
|
9530
9532
|
var W, le;
|
|
9531
9533
|
const pe = (W = Oe == null ? void 0 : Oe.position) !== null && W !== void 0 ? W : G;
|
|
9532
|
-
pe ? pn(pe) : f ? _t.current && pn(_t.current) : k != null && k.isConnected && Dc({ place: (le = Oe == null ? void 0 : Oe.place) !== null && le !== void 0 ? le : a, offset: c, elementReference: k, tooltipReference:
|
|
9533
|
-
Me.current && un(
|
|
9534
|
+
pe ? pn(pe) : f ? _t.current && pn(_t.current) : k != null && k.isConnected && Dc({ place: (le = Oe == null ? void 0 : Oe.place) !== null && le !== void 0 ? le : a, offset: c, elementReference: k, tooltipReference: U.current, tooltipArrowReference: te.current, strategy: d, middlewares: m, border: K }).then((Ue) => {
|
|
9535
|
+
Me.current && un(Ue);
|
|
9534
9536
|
});
|
|
9535
9537
|
}, [Re, k, ae, j, a, Oe == null ? void 0 : Oe.place, c, d, G, Oe == null ? void 0 : Oe.position, f]);
|
|
9536
|
-
|
|
9538
|
+
Y(() => {
|
|
9537
9539
|
var W, le;
|
|
9538
9540
|
const pe = new Set($t);
|
|
9539
9541
|
Ye.forEach((Ae) => {
|
|
9540
9542
|
ue != null && ue(Ae) || pe.add({ current: Ae });
|
|
9541
9543
|
});
|
|
9542
|
-
const
|
|
9543
|
-
|
|
9544
|
+
const Ue = document.querySelector(`[id='${i}']`);
|
|
9545
|
+
Ue && !(ue != null && ue(Ue)) && pe.add({ current: Ue });
|
|
9544
9546
|
const Ge = () => {
|
|
9545
9547
|
ke(!1);
|
|
9546
|
-
}, gt = Lc(k), Ze = Lc(
|
|
9548
|
+
}, gt = Lc(k), Ze = Lc(U.current);
|
|
9547
9549
|
Ot.scroll && (window.addEventListener("scroll", Ge), gt == null || gt.addEventListener("scroll", Ge), Ze == null || Ze.addEventListener("scroll", Ge));
|
|
9548
9550
|
let ot = null;
|
|
9549
|
-
Ot.resize ? window.addEventListener("resize", Ge) : k &&
|
|
9551
|
+
Ot.resize ? window.addEventListener("resize", Ge) : k && U.current && (ot = Mw(k, U.current, ve, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
|
|
9550
9552
|
const yt = (Ae) => {
|
|
9551
9553
|
Ae.key === "Escape" && ke(!1);
|
|
9552
9554
|
};
|
|
@@ -9558,33 +9560,33 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9558
9560
|
}, At = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], Ai = ["click", "dblclick", "mousedown", "mouseup"];
|
|
9559
9561
|
Object.entries(ln).forEach(([Ae, Ht]) => {
|
|
9560
9562
|
Ht && (At.includes(Ae) ? Pe.push({ event: Ae, listener: lt }) : Ai.includes(Ae) && Pe.push({ event: Ae, listener: Qn }));
|
|
9561
|
-
}), Object.entries(
|
|
9563
|
+
}), Object.entries(_n).forEach(([Ae, Ht]) => {
|
|
9562
9564
|
Ht && (At.includes(Ae) ? Pe.push({ event: Ae, listener: oe }) : Ai.includes(Ae) && Pe.push({ event: Ae, listener: ko }));
|
|
9563
|
-
}), f && Pe.push({ event: "pointermove", listener:
|
|
9565
|
+
}), f && Pe.push({ event: "pointermove", listener: Cn });
|
|
9564
9566
|
const xi = () => {
|
|
9565
9567
|
it.current = !0;
|
|
9566
9568
|
}, Pi = () => {
|
|
9567
9569
|
it.current = !1, mt();
|
|
9568
9570
|
};
|
|
9569
|
-
return I && !ct && ((W =
|
|
9571
|
+
return I && !ct && ((W = U.current) === null || W === void 0 || W.addEventListener("mouseenter", xi), (le = U.current) === null || le === void 0 || le.addEventListener("mouseleave", Pi)), Pe.forEach(({ event: Ae, listener: Ht }) => {
|
|
9570
9572
|
pe.forEach((Bt) => {
|
|
9571
9573
|
var Xn;
|
|
9572
9574
|
(Xn = Bt.current) === null || Xn === void 0 || Xn.addEventListener(Ae, Ht);
|
|
9573
9575
|
});
|
|
9574
9576
|
}), () => {
|
|
9575
9577
|
var Ae, Ht;
|
|
9576
|
-
Ot.scroll && (window.removeEventListener("scroll", Ge), gt == null || gt.removeEventListener("scroll", Ge), Ze == null || Ze.removeEventListener("scroll", Ge)), Ot.resize ? window.removeEventListener("resize", Ge) : ot == null || ot(), Ot.clickOutsideAnchor && window.removeEventListener("click", Gn), Ot.escape && window.removeEventListener("keydown", yt), I && !ct && ((Ae =
|
|
9578
|
+
Ot.scroll && (window.removeEventListener("scroll", Ge), gt == null || gt.removeEventListener("scroll", Ge), Ze == null || Ze.removeEventListener("scroll", Ge)), Ot.resize ? window.removeEventListener("resize", Ge) : ot == null || ot(), Ot.clickOutsideAnchor && window.removeEventListener("click", Gn), Ot.escape && window.removeEventListener("keydown", yt), I && !ct && ((Ae = U.current) === null || Ae === void 0 || Ae.removeEventListener("mouseenter", xi), (Ht = U.current) === null || Ht === void 0 || Ht.removeEventListener("mouseleave", Pi)), Pe.forEach(({ event: Bt, listener: Xn }) => {
|
|
9577
9579
|
pe.forEach((Lo) => {
|
|
9578
9580
|
var ni;
|
|
9579
9581
|
(ni = Lo.current) === null || ni === void 0 || ni.removeEventListener(Bt, Xn);
|
|
9580
9582
|
});
|
|
9581
9583
|
});
|
|
9582
9584
|
};
|
|
9583
|
-
}, [k, ve, nt, $t, Ye, S, N, D,
|
|
9585
|
+
}, [k, ve, nt, $t, Ye, S, N, D, Ut, y, v]), Y(() => {
|
|
9584
9586
|
var W, le;
|
|
9585
9587
|
let pe = (le = (W = Oe == null ? void 0 : Oe.anchorSelect) !== null && W !== void 0 ? W : s) !== null && le !== void 0 ? le : "";
|
|
9586
9588
|
!pe && t && (pe = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
9587
|
-
const
|
|
9589
|
+
const Ue = new MutationObserver((Ge) => {
|
|
9588
9590
|
const gt = [], Ze = [];
|
|
9589
9591
|
Ge.forEach((ot) => {
|
|
9590
9592
|
if (ot.type === "attributes" && ot.attributeName === "data-tooltip-id" && (ot.target.getAttribute("data-tooltip-id") === t ? gt.push(ot.target) : ot.oldValue === t && Ze.push(ot.target)), ot.type === "childList") {
|
|
@@ -9607,12 +9609,12 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9607
9609
|
}
|
|
9608
9610
|
}), (gt.length || Ze.length) && ze((ot) => [...ot.filter((yt) => !Ze.includes(yt)), ...gt]);
|
|
9609
9611
|
});
|
|
9610
|
-
return
|
|
9611
|
-
|
|
9612
|
+
return Ue.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
9613
|
+
Ue.disconnect();
|
|
9612
9614
|
};
|
|
9613
|
-
}, [t, s, Oe == null ? void 0 : Oe.anchorSelect, k]),
|
|
9615
|
+
}, [t, s, Oe == null ? void 0 : Oe.anchorSelect, k]), Y(() => {
|
|
9614
9616
|
ve();
|
|
9615
|
-
}, [ve]),
|
|
9617
|
+
}, [ve]), Y(() => {
|
|
9616
9618
|
if (!(ne != null && ne.current)) return () => null;
|
|
9617
9619
|
const W = new ResizeObserver(() => {
|
|
9618
9620
|
setTimeout(() => ve());
|
|
@@ -9620,13 +9622,13 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9620
9622
|
return W.observe(ne.current), () => {
|
|
9621
9623
|
W.disconnect();
|
|
9622
9624
|
};
|
|
9623
|
-
}, [ae, ne == null ? void 0 : ne.current]),
|
|
9625
|
+
}, [ae, ne == null ? void 0 : ne.current]), Y(() => {
|
|
9624
9626
|
var W;
|
|
9625
9627
|
const le = document.querySelector(`[id='${i}']`), pe = [...Ye, le];
|
|
9626
9628
|
k && pe.includes(k) || $((W = Ye[0]) !== null && W !== void 0 ? W : le);
|
|
9627
|
-
}, [i, Ye, k]),
|
|
9629
|
+
}, [i, Ye, k]), Y(() => (_e && ke(!0), () => {
|
|
9628
9630
|
Dt(Q), Dt(he);
|
|
9629
|
-
}), []),
|
|
9631
|
+
}), []), Y(() => {
|
|
9630
9632
|
var W;
|
|
9631
9633
|
let le = (W = Oe == null ? void 0 : Oe.anchorSelect) !== null && W !== void 0 ? W : s;
|
|
9632
9634
|
if (!le && t && (le = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), le) try {
|
|
@@ -9635,24 +9637,24 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9635
9637
|
} catch {
|
|
9636
9638
|
ze([]);
|
|
9637
9639
|
}
|
|
9638
|
-
}, [t, s, Oe == null ? void 0 : Oe.anchorSelect]),
|
|
9639
|
-
Q.current && (Dt(Q),
|
|
9640
|
+
}, [t, s, Oe == null ? void 0 : Oe.anchorSelect]), Y(() => {
|
|
9641
|
+
Q.current && (Dt(Q), On(y));
|
|
9640
9642
|
}, [y]);
|
|
9641
|
-
const je = (
|
|
9643
|
+
const je = (ee = Oe == null ? void 0 : Oe.content) !== null && ee !== void 0 ? ee : ae, fn = Re && Object.keys(be.tooltipStyles).length > 0;
|
|
9642
9644
|
return xp(e, () => ({ open: (W) => {
|
|
9643
9645
|
if (W != null && W.anchorSelect) try {
|
|
9644
9646
|
document.querySelector(W.anchorSelect);
|
|
9645
9647
|
} catch {
|
|
9646
9648
|
return void console.warn(`[react-tooltip] "${W.anchorSelect}" is not a valid CSS selector`);
|
|
9647
9649
|
}
|
|
9648
|
-
|
|
9650
|
+
Vt(W ?? null), W != null && W.delay ? On(W.delay) : ke(!0);
|
|
9649
9651
|
}, close: (W) => {
|
|
9650
9652
|
W != null && W.delay ? dn(W.delay) : ke(!1);
|
|
9651
|
-
}, activeAnchor: k, place: be.place, isOpen: !!(nt && !_ && je && fn) })), nt && !_ && je ? Be.createElement(h, { id: t, role:
|
|
9652
|
-
Dt(M), Re || W.propertyName !== "opacity" || (Je(!1),
|
|
9653
|
-
}, style: { ...j, ...be.tooltipStyles, opacity: L !== void 0 && fn ? L : void 0 }, ref:
|
|
9654
|
-
}, jw = ({ content: e }) => Be.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), Gw = Be.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render: i, className: s, classNameArrow: a, variant: c = "dark", place: l = "top", offset: u = 10, wrapper: d = "div", children: m = null, events: h = ["hover"], openOnClick: y = !1, positionStrategy: v = "absolute", middlewares: f, delayShow: _ = 0, delayHide: g = 0, float: I = !1, hidden: O = !1, noArrow: b = !1, clickable: T = !1, closeOnEsc: S = !1, closeOnScroll: N = !1, closeOnResize: D = !1, openEvents:
|
|
9655
|
-
const [
|
|
9653
|
+
}, activeAnchor: k, place: be.place, isOpen: !!(nt && !_ && je && fn) })), nt && !_ && je ? Be.createElement(h, { id: t, role: Z, className: St("react-tooltip", br.tooltip, es.tooltip, es[o], n, `react-tooltip__place-${be.place}`, br[fn ? "show" : "closing"], fn ? "react-tooltip__show" : "react-tooltip__closing", d === "fixed" && br.fixed, I && br.clickable), onTransitionEnd: (W) => {
|
|
9654
|
+
Dt(M), Re || W.propertyName !== "opacity" || (Je(!1), Vt(null), B == null || B());
|
|
9655
|
+
}, style: { ...j, ...be.tooltipStyles, opacity: L !== void 0 && fn ? L : void 0 }, ref: U }, je, Be.createElement(h, { className: St("react-tooltip-arrow", br.arrow, es.arrow, r, g && br.noArrow), style: { ...be.tooltipArrowStyles, background: F ? `linear-gradient(to right bottom, transparent 50%, ${F} 50%)` : void 0 }, ref: te })) : null;
|
|
9656
|
+
}, jw = ({ content: e }) => Be.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), Gw = Be.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render: i, className: s, classNameArrow: a, variant: c = "dark", place: l = "top", offset: u = 10, wrapper: d = "div", children: m = null, events: h = ["hover"], openOnClick: y = !1, positionStrategy: v = "absolute", middlewares: f, delayShow: _ = 0, delayHide: g = 0, float: I = !1, hidden: O = !1, noArrow: b = !1, clickable: T = !1, closeOnEsc: S = !1, closeOnScroll: N = !1, closeOnResize: D = !1, openEvents: q, closeEvents: j, globalCloseEvents: G, imperativeModeOnly: ie = !1, style: B, position: ue, isOpen: ae, defaultIsOpen: ne = !1, disableStyleInjection: we = !1, border: _e, opacity: A, arrowColor: k, setIsOpen: $, afterShow: K, afterHide: L, disableTooltip: F, role: Z = "tooltip" }, ee) => {
|
|
9657
|
+
const [U, te] = de(r), [Q, he] = de(o), [M, be] = de(l), [H, Re] = de(c), [He, nt] = de(u), [Je, Oe] = de(_), [Vt, rt] = de(g), [_t, $t] = de(I), [qt, it] = de(O), [Ye, ze] = de(d), [Me, Ut] = de(h), [ct, ln] = de(v), [_n, Ot] = de(null), [ke, un] = de(null), On = xe(we), { anchorRefs: dn, activeAnchor: jn } = ad(e), mt = (Fe) => Fe == null ? void 0 : Fe.getAttributeNames().reduce((lt, oe) => {
|
|
9656
9658
|
var ve;
|
|
9657
9659
|
return oe.startsWith("data-tooltip-") && (lt[oe.replace(/^data-tooltip-/, "")] = (ve = Fe == null ? void 0 : Fe.getAttribute(oe)) !== null && ve !== void 0 ? ve : null), lt;
|
|
9658
9660
|
}, {}), pn = (Fe) => {
|
|
@@ -9673,7 +9675,7 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9673
9675
|
ze((ve = oe) !== null && ve !== void 0 ? ve : d);
|
|
9674
9676
|
}, events: (oe) => {
|
|
9675
9677
|
const ve = oe == null ? void 0 : oe.split(" ");
|
|
9676
|
-
|
|
9678
|
+
Ut(ve ?? h);
|
|
9677
9679
|
}, "position-strategy": (oe) => {
|
|
9678
9680
|
var ve;
|
|
9679
9681
|
ln((ve = oe) !== null && ve !== void 0 ? ve : v);
|
|
@@ -9693,31 +9695,31 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9693
9695
|
(je = lt[oe]) === null || je === void 0 || je.call(lt, ve);
|
|
9694
9696
|
});
|
|
9695
9697
|
};
|
|
9696
|
-
|
|
9698
|
+
Y(() => {
|
|
9697
9699
|
te(r);
|
|
9698
|
-
}, [r]),
|
|
9700
|
+
}, [r]), Y(() => {
|
|
9699
9701
|
he(o);
|
|
9700
|
-
}, [o]),
|
|
9702
|
+
}, [o]), Y(() => {
|
|
9701
9703
|
be(l);
|
|
9702
|
-
}, [l]),
|
|
9704
|
+
}, [l]), Y(() => {
|
|
9703
9705
|
Re(c);
|
|
9704
|
-
}, [c]),
|
|
9706
|
+
}, [c]), Y(() => {
|
|
9705
9707
|
nt(u);
|
|
9706
|
-
}, [u]),
|
|
9708
|
+
}, [u]), Y(() => {
|
|
9707
9709
|
Oe(_);
|
|
9708
|
-
}, [_]),
|
|
9710
|
+
}, [_]), Y(() => {
|
|
9709
9711
|
rt(g);
|
|
9710
|
-
}, [g]),
|
|
9712
|
+
}, [g]), Y(() => {
|
|
9711
9713
|
$t(I);
|
|
9712
|
-
}, [I]),
|
|
9714
|
+
}, [I]), Y(() => {
|
|
9713
9715
|
it(O);
|
|
9714
|
-
}, [O]),
|
|
9716
|
+
}, [O]), Y(() => {
|
|
9715
9717
|
ln(v);
|
|
9716
|
-
}, [v]),
|
|
9717
|
-
|
|
9718
|
-
}, [we]),
|
|
9718
|
+
}, [v]), Y(() => {
|
|
9719
|
+
On.current !== we && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
9720
|
+
}, [we]), Y(() => {
|
|
9719
9721
|
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: we === "core", disableBase: we } }));
|
|
9720
|
-
}, []),
|
|
9722
|
+
}, []), Y(() => {
|
|
9721
9723
|
var Fe;
|
|
9722
9724
|
const lt = new Set(dn);
|
|
9723
9725
|
let oe = n;
|
|
@@ -9732,8 +9734,8 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9732
9734
|
if (ve && lt.add({ current: ve }), !lt.size) return () => null;
|
|
9733
9735
|
const je = (Fe = ke ?? ve) !== null && Fe !== void 0 ? Fe : jn.current, fn = new MutationObserver((le) => {
|
|
9734
9736
|
le.forEach((pe) => {
|
|
9735
|
-
var
|
|
9736
|
-
if (!je || pe.type !== "attributes" || !(!((
|
|
9737
|
+
var Ue;
|
|
9738
|
+
if (!je || pe.type !== "attributes" || !(!((Ue = pe.attributeName) === null || Ue === void 0) && Ue.startsWith("data-tooltip-"))) return;
|
|
9737
9739
|
const Ge = mt(je);
|
|
9738
9740
|
pn(Ge);
|
|
9739
9741
|
});
|
|
@@ -9745,18 +9747,18 @@ const zw = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
9745
9747
|
return () => {
|
|
9746
9748
|
fn.disconnect();
|
|
9747
9749
|
};
|
|
9748
|
-
}, [dn, jn, ke, t, n]),
|
|
9750
|
+
}, [dn, jn, ke, t, n]), Y(() => {
|
|
9749
9751
|
B != null && B.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), _e && !Fc("border", `${_e}`) && console.warn(`[react-tooltip] "${_e}" is not a valid \`border\`.`), B != null && B.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), A && !Fc("opacity", `${A}`) && console.warn(`[react-tooltip] "${A}" is not a valid \`opacity\`.`);
|
|
9750
9752
|
}, []);
|
|
9751
|
-
let
|
|
9753
|
+
let Cn = m;
|
|
9752
9754
|
const Gn = xe(null);
|
|
9753
9755
|
if (i) {
|
|
9754
|
-
const Fe = i({ content: (ke == null ? void 0 : ke.getAttribute("data-tooltip-content")) ||
|
|
9755
|
-
|
|
9756
|
-
} else
|
|
9757
|
-
Q && (
|
|
9758
|
-
const
|
|
9759
|
-
return Be.createElement(zw, { ...
|
|
9756
|
+
const Fe = i({ content: (ke == null ? void 0 : ke.getAttribute("data-tooltip-content")) || U || null, activeAnchor: ke });
|
|
9757
|
+
Cn = Fe ? Be.createElement("div", { ref: Gn, className: "react-tooltip-content-wrapper" }, Fe) : null;
|
|
9758
|
+
} else U && (Cn = U);
|
|
9759
|
+
Q && (Cn = Be.createElement(jw, { content: Q }));
|
|
9760
|
+
const En = { forwardRef: ee, id: e, anchorId: t, anchorSelect: n, className: St(s, _n), classNameArrow: a, content: Cn, contentWrapperRef: Gn, place: M, variant: H, offset: He, wrapper: Ye, events: Me, openOnClick: y, positionStrategy: ct, middlewares: f, delayShow: Je, delayHide: Vt, float: _t, hidden: qt, noArrow: b, clickable: T, closeOnEsc: S, closeOnScroll: N, closeOnResize: D, openEvents: q, closeEvents: j, globalCloseEvents: G, imperativeModeOnly: ie, style: B, position: ue, isOpen: ae, defaultIsOpen: ne, border: _e, opacity: A, arrowColor: k, setIsOpen: $, afterShow: K, afterHide: L, disableTooltip: F, activeAnchor: ke, setActiveAnchor: (Fe) => un(Fe), role: Z };
|
|
9761
|
+
return Be.createElement(zw, { ...En });
|
|
9760
9762
|
});
|
|
9761
9763
|
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (e) => {
|
|
9762
9764
|
e.detail.disableCore || Pc({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), e.detail.disableBase || Pc({ css: `
|
|
@@ -9784,8 +9786,8 @@ function wa({
|
|
|
9784
9786
|
allFields: n
|
|
9785
9787
|
}) {
|
|
9786
9788
|
var g;
|
|
9787
|
-
const { configureState: r, selectedObjectName: o, setConfigureState: i } = Zt(), [s, a] = de(!0), { isError: c, removeError: l, getError: u } =
|
|
9788
|
-
|
|
9789
|
+
const { configureState: r, selectedObjectName: o, setConfigureState: i } = Zt(), [s, a] = de(!0), { isError: c, removeError: l, getError: u } = Kt(), d = (g = r == null ? void 0 : r.read) == null ? void 0 : g.selectedFieldMappings, m = d == null ? void 0 : d[e.mapToName];
|
|
9790
|
+
Y(() => {
|
|
9789
9791
|
e._default && !m && o && r && hi(o, i, [
|
|
9790
9792
|
{
|
|
9791
9793
|
field: e.mapToName,
|
|
@@ -9799,7 +9801,7 @@ function wa({
|
|
|
9799
9801
|
m,
|
|
9800
9802
|
r
|
|
9801
9803
|
]);
|
|
9802
|
-
const h =
|
|
9804
|
+
const h = Ke(
|
|
9803
9805
|
() => n.map((I) => ({
|
|
9804
9806
|
id: I.fieldName,
|
|
9805
9807
|
label: I.displayName,
|
|
@@ -9837,7 +9839,7 @@ function wa({
|
|
|
9837
9839
|
i,
|
|
9838
9840
|
c,
|
|
9839
9841
|
l
|
|
9840
|
-
]), { hasDuplicationError: f, errorMessage: _ } =
|
|
9842
|
+
]), { hasDuplicationError: f, errorMessage: _ } = Ke(() => {
|
|
9841
9843
|
const I = u(fe.MAPPING, o), O = Array.isArray(I) && I.length > 0 && I.includes(e.mapToName);
|
|
9842
9844
|
return {
|
|
9843
9845
|
hasDuplicationError: O,
|
|
@@ -9926,14 +9928,14 @@ function xo({
|
|
|
9926
9928
|
}
|
|
9927
9929
|
);
|
|
9928
9930
|
}
|
|
9929
|
-
const sI = "_divider_1kmoj_1",
|
|
9931
|
+
const sI = "_divider_1kmoj_1", Kc = {
|
|
9930
9932
|
divider: sI
|
|
9931
9933
|
};
|
|
9932
9934
|
function Po({ className: e, style: t }) {
|
|
9933
9935
|
return /* @__PURE__ */ p(
|
|
9934
9936
|
"hr",
|
|
9935
9937
|
{
|
|
9936
|
-
className: e ? `${
|
|
9938
|
+
className: e ? `${Kc.divider} ${e}` : Kc.divider,
|
|
9937
9939
|
style: t
|
|
9938
9940
|
}
|
|
9939
9941
|
);
|
|
@@ -10004,7 +10006,7 @@ function aI({
|
|
|
10004
10006
|
}
|
|
10005
10007
|
function cI() {
|
|
10006
10008
|
var y, v;
|
|
10007
|
-
const { selectedObjectName: e, configureState: t, setConfigureState: n } = Zt(), { isError: r, removeError: o, setError: i } =
|
|
10009
|
+
const { selectedObjectName: e, configureState: t, setConfigureState: n } = Zt(), { isError: r, removeError: o, setError: i } = Kt(), s = ((y = t == null ? void 0 : t.read) == null ? void 0 : y.allFields) || [], { fieldMapping: a } = at(), c = (v = t == null ? void 0 : t.read) == null ? void 0 : v.selectedFieldMappings, l = (f) => {
|
|
10008
10010
|
const { value: _, name: g } = f.target;
|
|
10009
10011
|
!_ || cd({
|
|
10010
10012
|
selectedFieldMappings: c,
|
|
@@ -10018,7 +10020,7 @@ function cI() {
|
|
|
10018
10020
|
value: _
|
|
10019
10021
|
}
|
|
10020
10022
|
]), r(fe.MAPPING, g) && o(fe.MAPPING, g), e && r(fe.MAPPING, e) && o(fe.MAPPING, e));
|
|
10021
|
-
}, u =
|
|
10023
|
+
}, u = Ke(() => !e || !a ? [] : Object.values(a[e] || {}).flat().filter((f) => !f.fieldName), [a, e]), d = Ke(() => {
|
|
10022
10024
|
var g;
|
|
10023
10025
|
return (((g = t == null ? void 0 : t.read) == null ? void 0 : g.optionalMapFields) || []).filter(
|
|
10024
10026
|
(I) => !u.some(
|
|
@@ -10050,7 +10052,7 @@ function cI() {
|
|
|
10050
10052
|
}
|
|
10051
10053
|
function lI() {
|
|
10052
10054
|
var l;
|
|
10053
|
-
const { selectedObjectName: e, configureState: t, setConfigureState: n } = Zt(), { isError: r, removeError: o, setError: i } =
|
|
10055
|
+
const { selectedObjectName: e, configureState: t, setConfigureState: n } = Zt(), { isError: r, removeError: o, setError: i } = Kt(), s = (l = t == null ? void 0 : t.read) == null ? void 0 : l.selectedFieldMappings, a = (u) => {
|
|
10054
10056
|
const { value: d, name: m } = u.target;
|
|
10055
10057
|
!d || cd({
|
|
10056
10058
|
selectedFieldMappings: s,
|
|
@@ -10064,7 +10066,7 @@ function lI() {
|
|
|
10064
10066
|
value: d
|
|
10065
10067
|
}
|
|
10066
10068
|
]), r(fe.MAPPING, m) && o(fe.MAPPING, m), e && r(fe.MAPPING, e) && o(fe.MAPPING, e));
|
|
10067
|
-
}, c =
|
|
10069
|
+
}, c = Ke(
|
|
10068
10070
|
() => {
|
|
10069
10071
|
var u;
|
|
10070
10072
|
return ((u = t == null ? void 0 : t.read) == null ? void 0 : u.requiredMapFields) || [];
|
|
@@ -10125,9 +10127,9 @@ const pI = (e) => {
|
|
|
10125
10127
|
};
|
|
10126
10128
|
function fI() {
|
|
10127
10129
|
var l, u, d;
|
|
10128
|
-
const { project: e } =
|
|
10130
|
+
const { project: e } = qe(), { hydratedRevision: t } = Zr(), { selectedObjectName: n } = Zt(), { providerName: r } = zn(), o = e == null ? void 0 : e.appName, i = (d = (u = (l = t == null ? void 0 : t.content) == null ? void 0 : l.read) == null ? void 0 : u.objects) == null ? void 0 : d.find(
|
|
10129
10131
|
(m) => m.objectName === n
|
|
10130
|
-
), s = (i == null ? void 0 : i.displayName) || n &&
|
|
10132
|
+
), s = (i == null ? void 0 : i.displayName) || n && Kr(n), a = i == null ? void 0 : i.mapToName, c = (i == null ? void 0 : i.mapToDisplayName) || a && Kr(a);
|
|
10131
10133
|
return c && o && r ? /* @__PURE__ */ p(dI, { style: { marginTop: "1rem" }, children: /* @__PURE__ */ z("p", { style: { margin: "1rem 0" }, children: [
|
|
10132
10134
|
/* @__PURE__ */ p("b", { children: c }),
|
|
10133
10135
|
" in ",
|
|
@@ -10139,7 +10141,7 @@ function fI() {
|
|
|
10139
10141
|
"."
|
|
10140
10142
|
] }) }) : null;
|
|
10141
10143
|
}
|
|
10142
|
-
function
|
|
10144
|
+
function Vc(e, t) {
|
|
10143
10145
|
if (typeof e == "function")
|
|
10144
10146
|
return e(t);
|
|
10145
10147
|
e != null && (e.current = t);
|
|
@@ -10148,14 +10150,14 @@ function Ia(...e) {
|
|
|
10148
10150
|
return (t) => {
|
|
10149
10151
|
let n = !1;
|
|
10150
10152
|
const r = e.map((o) => {
|
|
10151
|
-
const i =
|
|
10153
|
+
const i = Vc(o, t);
|
|
10152
10154
|
return !n && typeof i == "function" && (n = !0), i;
|
|
10153
10155
|
});
|
|
10154
10156
|
if (n)
|
|
10155
10157
|
return () => {
|
|
10156
10158
|
for (let o = 0; o < r.length; o++) {
|
|
10157
10159
|
const i = r[o];
|
|
10158
|
-
typeof i == "function" ? i() :
|
|
10160
|
+
typeof i == "function" ? i() : Vc(e[o], null);
|
|
10159
10161
|
}
|
|
10160
10162
|
};
|
|
10161
10163
|
};
|
|
@@ -10442,7 +10444,7 @@ var EI = [
|
|
|
10442
10444
|
{
|
|
10443
10445
|
type: "button",
|
|
10444
10446
|
role: "checkbox",
|
|
10445
|
-
"aria-checked":
|
|
10447
|
+
"aria-checked": qn(_) ? "mixed" : _,
|
|
10446
10448
|
"aria-required": s,
|
|
10447
10449
|
"data-state": hd(_),
|
|
10448
10450
|
"data-disabled": a ? "" : void 0,
|
|
@@ -10454,7 +10456,7 @@ var EI = [
|
|
|
10454
10456
|
O.key === "Enter" && O.preventDefault();
|
|
10455
10457
|
}),
|
|
10456
10458
|
onClick: Qt(e.onClick, (O) => {
|
|
10457
|
-
g((b) =>
|
|
10459
|
+
g((b) => qn(b) ? !0 : !b), f && (v.current = O.isPropagationStopped(), v.current || O.stopPropagation());
|
|
10458
10460
|
})
|
|
10459
10461
|
}
|
|
10460
10462
|
),
|
|
@@ -10470,7 +10472,7 @@ var EI = [
|
|
|
10470
10472
|
disabled: a,
|
|
10471
10473
|
form: u,
|
|
10472
10474
|
style: { transform: "translateX(-100%)" },
|
|
10473
|
-
defaultChecked:
|
|
10475
|
+
defaultChecked: qn(i) ? !1 : i
|
|
10474
10476
|
}
|
|
10475
10477
|
)
|
|
10476
10478
|
] });
|
|
@@ -10480,7 +10482,7 @@ dd.displayName = Ca;
|
|
|
10480
10482
|
var pd = "CheckboxIndicator", fd = P.forwardRef(
|
|
10481
10483
|
(e, t) => {
|
|
10482
10484
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, i = TI(pd, n);
|
|
10483
|
-
return /* @__PURE__ */ p(Oa, { present: r ||
|
|
10485
|
+
return /* @__PURE__ */ p(Oa, { present: r || qn(i.state) || i.state === !0, children: /* @__PURE__ */ p(
|
|
10484
10486
|
ud.span,
|
|
10485
10487
|
{
|
|
10486
10488
|
"data-state": hd(i.state),
|
|
@@ -10499,10 +10501,10 @@ var RI = (e) => {
|
|
|
10499
10501
|
const u = s.current, d = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
10500
10502
|
if (a !== n && h) {
|
|
10501
10503
|
const y = new Event("click", { bubbles: r });
|
|
10502
|
-
u.indeterminate =
|
|
10504
|
+
u.indeterminate = qn(n), h.call(u, qn(n) ? !1 : n), u.dispatchEvent(y);
|
|
10503
10505
|
}
|
|
10504
10506
|
}, [a, n, r]);
|
|
10505
|
-
const l = P.useRef(
|
|
10507
|
+
const l = P.useRef(qn(n) ? !1 : n);
|
|
10506
10508
|
return /* @__PURE__ */ p(
|
|
10507
10509
|
"input",
|
|
10508
10510
|
{
|
|
@@ -10523,11 +10525,11 @@ var RI = (e) => {
|
|
|
10523
10525
|
}
|
|
10524
10526
|
);
|
|
10525
10527
|
};
|
|
10526
|
-
function
|
|
10528
|
+
function qn(e) {
|
|
10527
10529
|
return e === "indeterminate";
|
|
10528
10530
|
}
|
|
10529
10531
|
function hd(e) {
|
|
10530
|
-
return
|
|
10532
|
+
return qn(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
10531
10533
|
}
|
|
10532
10534
|
var md = dd, gd = fd;
|
|
10533
10535
|
function yd(e, t) {
|
|
@@ -10626,7 +10628,7 @@ function bd({ children: e }) {
|
|
|
10626
10628
|
function _d({ children: e }) {
|
|
10627
10629
|
return /* @__PURE__ */ p("div", { className: Jr.stack, children: e });
|
|
10628
10630
|
}
|
|
10629
|
-
function
|
|
10631
|
+
function KI(e, t, n) {
|
|
10630
10632
|
var o, i;
|
|
10631
10633
|
const r = ((o = e == null ? void 0 : e.read) == null ? void 0 : o.selectedOptionalFields) || {};
|
|
10632
10634
|
if (r[t] = n, n || delete r[t], (i = e.read) != null && i.savedConfig.optionalFields) {
|
|
@@ -10638,10 +10640,10 @@ function VI(e, t, n) {
|
|
|
10638
10640
|
function $c(e, t, n, r) {
|
|
10639
10641
|
t(
|
|
10640
10642
|
e,
|
|
10641
|
-
(o) =>
|
|
10643
|
+
(o) => KI(o, n, r)
|
|
10642
10644
|
);
|
|
10643
10645
|
}
|
|
10644
|
-
function
|
|
10646
|
+
function VI() {
|
|
10645
10647
|
var d, m;
|
|
10646
10648
|
const {
|
|
10647
10649
|
appName: e,
|
|
@@ -10682,9 +10684,9 @@ function KI() {
|
|
|
10682
10684
|
] });
|
|
10683
10685
|
}
|
|
10684
10686
|
function $I() {
|
|
10685
|
-
return /* @__PURE__ */ p(
|
|
10687
|
+
return /* @__PURE__ */ p(VI, {});
|
|
10686
10688
|
}
|
|
10687
|
-
const
|
|
10689
|
+
const qI = {
|
|
10688
10690
|
color: "var(--amp-colors-text-regular)",
|
|
10689
10691
|
backgroundColor: "var(--amp-colors-bg-highlight)",
|
|
10690
10692
|
borderRadius: "4px",
|
|
@@ -10694,11 +10696,11 @@ const UI = {
|
|
|
10694
10696
|
lineHeight: "1.25",
|
|
10695
10697
|
padding: "0.25rem 0.5rem"
|
|
10696
10698
|
};
|
|
10697
|
-
function
|
|
10699
|
+
function UI({ children: e, style: t, ...n }) {
|
|
10698
10700
|
return /* @__PURE__ */ p(
|
|
10699
10701
|
"span",
|
|
10700
10702
|
{
|
|
10701
|
-
style: { ...
|
|
10703
|
+
style: { ...qI, ...t },
|
|
10702
10704
|
...n,
|
|
10703
10705
|
children: e
|
|
10704
10706
|
}
|
|
@@ -10706,7 +10708,7 @@ function qI({ children: e, style: t, ...n }) {
|
|
|
10706
10708
|
}
|
|
10707
10709
|
function HI() {
|
|
10708
10710
|
var r, o, i;
|
|
10709
|
-
const { configureState: e, selectedObjectName: t } = Zt(), { appName: n } =
|
|
10711
|
+
const { configureState: e, selectedObjectName: t } = Zt(), { appName: n } = qe();
|
|
10710
10712
|
return /* @__PURE__ */ z(tt, { children: [
|
|
10711
10713
|
/* @__PURE__ */ p(Si, { string: `${n} reads the following ${t} fields` }),
|
|
10712
10714
|
/* @__PURE__ */ p(
|
|
@@ -10718,7 +10720,7 @@ function HI() {
|
|
|
10718
10720
|
marginBottom: ".5rem",
|
|
10719
10721
|
flexWrap: "wrap"
|
|
10720
10722
|
},
|
|
10721
|
-
children: (o = (r = e == null ? void 0 : e.read) == null ? void 0 : r.requiredFields) != null && o.length ? (i = e.read) == null ? void 0 : i.requiredFields.map((s) => Un(s) ? null : /* @__PURE__ */ p(
|
|
10723
|
+
children: (o = (r = e == null ? void 0 : e.read) == null ? void 0 : r.requiredFields) != null && o.length ? (i = e.read) == null ? void 0 : i.requiredFields.map((s) => Un(s) ? null : /* @__PURE__ */ p(UI, { children: s.displayName }, s.fieldName)) : "There are no required fields."
|
|
10722
10724
|
}
|
|
10723
10725
|
)
|
|
10724
10726
|
] });
|
|
@@ -10795,17 +10797,17 @@ function zI({
|
|
|
10795
10797
|
resetBoundary: m,
|
|
10796
10798
|
isError: h,
|
|
10797
10799
|
removeError: y
|
|
10798
|
-
} =
|
|
10800
|
+
} = Kt(), v = Ke(
|
|
10799
10801
|
() => {
|
|
10800
10802
|
var T, S;
|
|
10801
10803
|
return ((S = (T = i == null ? void 0 : i.read) == null ? void 0 : T.selectedValueMappings) == null ? void 0 : S[n]) || {};
|
|
10802
10804
|
},
|
|
10803
10805
|
[(b = i == null ? void 0 : i.read) == null ? void 0 : b.selectedValueMappings, n]
|
|
10804
|
-
), f =
|
|
10806
|
+
), f = Ke(
|
|
10805
10807
|
() => v == null ? void 0 : v[e.mappedValue],
|
|
10806
10808
|
[v, e.mappedValue]
|
|
10807
10809
|
);
|
|
10808
|
-
|
|
10810
|
+
Y(() => {
|
|
10809
10811
|
l(!1);
|
|
10810
10812
|
}, [
|
|
10811
10813
|
e,
|
|
@@ -10814,7 +10816,7 @@ function zI({
|
|
|
10814
10816
|
f,
|
|
10815
10817
|
i
|
|
10816
10818
|
]);
|
|
10817
|
-
const _ =
|
|
10819
|
+
const _ = Ke(
|
|
10818
10820
|
() => r.map((T) => ({
|
|
10819
10821
|
id: T.value,
|
|
10820
10822
|
label: T.displayValue,
|
|
@@ -10856,7 +10858,7 @@ function zI({
|
|
|
10856
10858
|
d,
|
|
10857
10859
|
u
|
|
10858
10860
|
]
|
|
10859
|
-
), I =
|
|
10861
|
+
), I = Ke(
|
|
10860
10862
|
() => /* @__PURE__ */ p(
|
|
10861
10863
|
Xu,
|
|
10862
10864
|
{
|
|
@@ -10909,7 +10911,7 @@ function zI({
|
|
|
10909
10911
|
}
|
|
10910
10912
|
function jI() {
|
|
10911
10913
|
var h, y, v;
|
|
10912
|
-
const { fieldMapping: e } = at(), { selectedObjectName: t, configureState: n, setConfigureState: r } = Zt(), { isError: o, removeError: i, getError: s } =
|
|
10914
|
+
const { fieldMapping: e } = at(), { selectedObjectName: t, configureState: n, setConfigureState: r } = Zt(), { isError: o, removeError: i, getError: s } = Kt(), a = (h = n == null ? void 0 : n.read) == null ? void 0 : h.selectedFieldMappings, c = (y = n == null ? void 0 : n.read) == null ? void 0 : y.selectedValueMappings, l = (v = n == null ? void 0 : n.read) == null ? void 0 : v.isValueMappingsModified, u = xe(!1), d = Ke(() => {
|
|
10913
10915
|
const f = t && e ? Object.values(e[t] || {}).flat().filter((_) => _.mappedValues).map((_) => ({ ..._ })) : [];
|
|
10914
10916
|
if (a)
|
|
10915
10917
|
for (let _ = 0; _ < f.length; _ += 1) {
|
|
@@ -10924,7 +10926,7 @@ function jI() {
|
|
|
10924
10926
|
},
|
|
10925
10927
|
[t, r, o, i]
|
|
10926
10928
|
);
|
|
10927
|
-
return
|
|
10929
|
+
return Y(() => {
|
|
10928
10930
|
var f;
|
|
10929
10931
|
if (t && c) {
|
|
10930
10932
|
const _ = ((f = e == null ? void 0 : e[t]) == null ? void 0 : f.filter(
|
|
@@ -10967,7 +10969,7 @@ function jI() {
|
|
|
10967
10969
|
id: f.mapToName || f.fieldName,
|
|
10968
10970
|
children: (N = f == null ? void 0 : f.mappedValues) == null ? void 0 : N.map((D) => {
|
|
10969
10971
|
var ie, B, ue;
|
|
10970
|
-
const
|
|
10972
|
+
const q = s(fe.VALUE_MAPPING, f.fieldName), j = Array.isArray(q) && q.includes(D.mappedValue), G = ((ue = (B = (ie = n == null ? void 0 : n.read) == null ? void 0 : ie.allFieldsMetadata) == null ? void 0 : B[f.fieldName]) == null ? void 0 : ue.values) || [];
|
|
10971
10973
|
return /* @__PURE__ */ z(tt, { children: [
|
|
10972
10974
|
/* @__PURE__ */ p(
|
|
10973
10975
|
zI,
|
|
@@ -11016,7 +11018,7 @@ function QI(e, t, n) {
|
|
|
11016
11018
|
}
|
|
11017
11019
|
}
|
|
11018
11020
|
}
|
|
11019
|
-
function
|
|
11021
|
+
function qc(e, t, n, r) {
|
|
11020
11022
|
t(
|
|
11021
11023
|
e,
|
|
11022
11024
|
(o) => {
|
|
@@ -11032,11 +11034,11 @@ function XI() {
|
|
|
11032
11034
|
configureState: n,
|
|
11033
11035
|
setConfigureState: r
|
|
11034
11036
|
} = Zt(), o = (d = n == null ? void 0 : n.write) == null ? void 0 : d.selectedWriteObjects, i = (m = n == null ? void 0 : n.write) == null ? void 0 : m.writeObjects, s = (v, f) => {
|
|
11035
|
-
v !== "indeterminate" && t && n &&
|
|
11037
|
+
v !== "indeterminate" && t && n && qc(t, r, f, v);
|
|
11036
11038
|
}, a = (v) => {
|
|
11037
11039
|
var f, _;
|
|
11038
11040
|
t && n && ((_ = (f = n == null ? void 0 : n.write) == null ? void 0 : f.writeObjects) == null || _.forEach((g) => {
|
|
11039
|
-
|
|
11041
|
+
qc(t, r, g.objectName, v);
|
|
11040
11042
|
}));
|
|
11041
11043
|
}, c = !!i, l = Object.keys(o || {}).length === ((y = (h = n == null ? void 0 : n.write) == null ? void 0 : h.writeObjects) == null ? void 0 : y.length), u = !l && Object.keys(o || {}).length > 0;
|
|
11042
11044
|
return c && /* @__PURE__ */ z(tt, { children: [
|
|
@@ -11069,7 +11071,7 @@ function YI() {
|
|
|
11069
11071
|
return /* @__PURE__ */ p(tt, { children: /* @__PURE__ */ p(XI, {}) });
|
|
11070
11072
|
}
|
|
11071
11073
|
const ZI = () => {
|
|
11072
|
-
const e = Wn(), t =
|
|
11074
|
+
const e = Wn(), t = bn();
|
|
11073
11075
|
return hl({
|
|
11074
11076
|
mutationFn: async ({ projectIdOrName: n, integrationId: r, installationId: o }) => (await e()).installationApi.deleteInstallation(
|
|
11075
11077
|
{ projectIdOrName: n, integrationId: r, installationId: o }
|
|
@@ -11087,7 +11089,7 @@ function Cd({
|
|
|
11087
11089
|
buttonVariant: t = "secondary",
|
|
11088
11090
|
buttonStyle: n = {}
|
|
11089
11091
|
}) {
|
|
11090
|
-
const { projectId: r } =
|
|
11092
|
+
const { projectId: r } = qe(), {
|
|
11091
11093
|
integrationId: o,
|
|
11092
11094
|
installation: i,
|
|
11093
11095
|
setIntegrationDeleted: s,
|
|
@@ -11138,7 +11140,7 @@ function Ed({
|
|
|
11138
11140
|
errorMsg: o
|
|
11139
11141
|
}) {
|
|
11140
11142
|
var T, S, N, D;
|
|
11141
|
-
const { installation: i } = at(), { hydratedRevision: s, loading: a } = Zr(), { configureState: c, selectedObjectName: l } = Zt(), u = i == null ? void 0 : i.config, d = u && l && !!
|
|
11143
|
+
const { installation: i } = at(), { hydratedRevision: s, loading: a } = Zr(), { configureState: c, selectedObjectName: l } = Zt(), u = i == null ? void 0 : i.config, d = u && l && !!Ul(u, l) || !1, m = ((T = c == null ? void 0 : c.read) == null ? void 0 : T.isOptionalFieldsModified) || ((S = c == null ? void 0 : c.read) == null ? void 0 : S.isRequiredMapFieldsModified) || ((N = c == null ? void 0 : c.read) == null ? void 0 : N.isValueMappingsModified), h = (D = c == null ? void 0 : c.write) == null ? void 0 : D.isWriteModified, _ = a || n || !c || !l || !(m || h || r || l !== mr && !d), g = l === mr, I = l === ao;
|
|
11142
11144
|
return n ? /* @__PURE__ */ p(di, {}) : /* @__PURE__ */ z("form", { style: { width: "34rem" }, onSubmit: e, children: [
|
|
11143
11145
|
/* @__PURE__ */ z(
|
|
11144
11146
|
"div",
|
|
@@ -11183,12 +11185,12 @@ const Sd = () => {
|
|
|
11183
11185
|
setInstallation: r,
|
|
11184
11186
|
onInstallSuccess: o,
|
|
11185
11187
|
onUpdateSuccess: i
|
|
11186
|
-
} = at(), { hydratedRevision: s, loading: a } = Zr(), { selectedObjectName: c } = iu(), { selectedConnection: l } = Yr(), u = Gr(), { projectId: d } =
|
|
11188
|
+
} = at(), { hydratedRevision: s, loading: a } = Zr(), { selectedObjectName: c } = iu(), { selectedConnection: l } = Yr(), u = Gr(), { projectId: d } = qe(), {
|
|
11187
11189
|
resetBoundary: m,
|
|
11188
11190
|
setErrors: h,
|
|
11189
11191
|
setError: y,
|
|
11190
11192
|
getError: v
|
|
11191
|
-
} =
|
|
11193
|
+
} = Kt(), {
|
|
11192
11194
|
resetConfigureState: f,
|
|
11193
11195
|
objectConfigurationsState: _,
|
|
11194
11196
|
resetPendingConfigurationState: g
|
|
@@ -11261,10 +11263,10 @@ function nb() {
|
|
|
11261
11263
|
},
|
|
11262
11264
|
[u, o, i, s, v]
|
|
11263
11265
|
);
|
|
11264
|
-
|
|
11266
|
+
Y(() => {
|
|
11265
11267
|
!g && (o != null && o.content) && !i && D();
|
|
11266
11268
|
}, [g, f, o, i, D]);
|
|
11267
|
-
const
|
|
11269
|
+
const q = () => {
|
|
11268
11270
|
y();
|
|
11269
11271
|
const { requiredMapFields: ie, selectedFieldMappings: B } = (g == null ? void 0 : g.read) || {}, { errorList: ue } = Wl(
|
|
11270
11272
|
ie,
|
|
@@ -11311,7 +11313,7 @@ function nb() {
|
|
|
11311
11313
|
isCreateMode: !0,
|
|
11312
11314
|
isLoading: b,
|
|
11313
11315
|
onSave: (ie) => {
|
|
11314
|
-
ie.preventDefault(), S ? j() :
|
|
11316
|
+
ie.preventDefault(), S ? j() : q();
|
|
11315
11317
|
},
|
|
11316
11318
|
onReset: D
|
|
11317
11319
|
}
|
|
@@ -11454,10 +11456,10 @@ function cb({ installation: e, integrationObj: t }) {
|
|
|
11454
11456
|
},
|
|
11455
11457
|
[c, r, o, i, b, m]
|
|
11456
11458
|
);
|
|
11457
|
-
|
|
11459
|
+
Y(() => {
|
|
11458
11460
|
y || T();
|
|
11459
11461
|
}, [y, T]);
|
|
11460
|
-
const S =
|
|
11462
|
+
const S = Ke(() => {
|
|
11461
11463
|
var G, ie, B;
|
|
11462
11464
|
return (B = (ie = (G = r == null ? void 0 : r.content) == null ? void 0 : G.read) == null ? void 0 : ie.objects) == null ? void 0 : B.find(
|
|
11463
11465
|
(ue) => (ue == null ? void 0 : ue.objectName) === i
|
|
@@ -11617,7 +11619,7 @@ const hb = (e) => {
|
|
|
11617
11619
|
};
|
|
11618
11620
|
function mb({ children: e }) {
|
|
11619
11621
|
var O;
|
|
11620
|
-
const { projectId: t } =
|
|
11622
|
+
const { projectId: t } = qe(), n = Gr(), { hydratedRevision: r, loading: o } = Zr(), {
|
|
11621
11623
|
integrationObj: i,
|
|
11622
11624
|
installation: s,
|
|
11623
11625
|
groupRef: a,
|
|
@@ -11628,7 +11630,7 @@ function mb({ children: e }) {
|
|
|
11628
11630
|
} = at(), { selectedConnection: m, isConnectionsLoading: h } = Yr(), [y, v] = de(!1), f = o || y, _ = (O = r == null ? void 0 : r.content) == null ? void 0 : O.provider, g = hb(r), I = (b) => {
|
|
11629
11631
|
console.error("Error when creating proxy installation:", b);
|
|
11630
11632
|
};
|
|
11631
|
-
return
|
|
11633
|
+
return Y(() => {
|
|
11632
11634
|
!f && !h && r && g && !s && m && n && (i != null && i.id) && !d && (v(!0), db({
|
|
11633
11635
|
apiKey: n,
|
|
11634
11636
|
projectId: t,
|
|
@@ -11663,7 +11665,7 @@ function mb({ children: e }) {
|
|
|
11663
11665
|
]), i ? f ? /* @__PURE__ */ p(Xr, {}) : g && _ && s ? /* @__PURE__ */ p(fb, { provider: _ }) : /* @__PURE__ */ p("div", { children: e }) : /* @__PURE__ */ p(on, { message: "We can't load the integration" });
|
|
11664
11666
|
}
|
|
11665
11667
|
function Fo() {
|
|
11666
|
-
const e = Wn(), t =
|
|
11668
|
+
const e = Wn(), t = bn();
|
|
11667
11669
|
return hl({
|
|
11668
11670
|
mutationKey: ["createConnection"],
|
|
11669
11671
|
mutationFn: async (n) => (await e()).connectionApi.generateConnection(n),
|
|
@@ -11882,7 +11884,7 @@ function Nb({
|
|
|
11882
11884
|
Rd,
|
|
11883
11885
|
{
|
|
11884
11886
|
url: y,
|
|
11885
|
-
providerDisplayName: d ||
|
|
11887
|
+
providerDisplayName: d || Kr(e),
|
|
11886
11888
|
credentialName: "API key"
|
|
11887
11889
|
}
|
|
11888
11890
|
),
|
|
@@ -11926,7 +11928,7 @@ function Rb({
|
|
|
11926
11928
|
children: s,
|
|
11927
11929
|
selectedConnection: a
|
|
11928
11930
|
}) {
|
|
11929
|
-
const { projectIdOrName: c } =
|
|
11931
|
+
const { projectIdOrName: c } = qe(), l = Fo(), u = re((d) => {
|
|
11930
11932
|
const { apiKey: m } = d, h = {
|
|
11931
11933
|
projectIdOrName: c,
|
|
11932
11934
|
generateConnectionParams: {
|
|
@@ -11950,7 +11952,7 @@ function Ab({
|
|
|
11950
11952
|
isButtonDisabled: o
|
|
11951
11953
|
}) {
|
|
11952
11954
|
var g;
|
|
11953
|
-
const [i, s] = de(!1), a = () => s((I) => !I), [c, l] = de({ username: "", password: "" }), { username: u, password: d } = c, { providerName: m } = zn(e), h = m ||
|
|
11955
|
+
const [i, s] = de(!1), a = () => s((I) => !I), [c, l] = de({ username: "", password: "" }), { username: u, password: d } = c, { providerName: m } = zn(e), h = m || Kr(e), y = (g = t.basicOpts) == null ? void 0 : g.docsURL, v = u.length > 0, f = o || !v, _ = (I) => {
|
|
11954
11956
|
const { name: O, value: b } = I.currentTarget;
|
|
11955
11957
|
l((T) => ({ ...T, [O]: b }));
|
|
11956
11958
|
};
|
|
@@ -12031,7 +12033,7 @@ function Pb({
|
|
|
12031
12033
|
children: s,
|
|
12032
12034
|
selectedConnection: a
|
|
12033
12035
|
}) {
|
|
12034
|
-
const { projectIdOrName: c } =
|
|
12036
|
+
const { projectIdOrName: c } = qe(), l = Fo(), u = re((d) => {
|
|
12035
12037
|
const { user: m, pass: h } = d, y = {
|
|
12036
12038
|
projectIdOrName: c,
|
|
12037
12039
|
generateConnectionParams: {
|
|
@@ -12071,7 +12073,7 @@ function Fb({
|
|
|
12071
12073
|
selectedConnection: s,
|
|
12072
12074
|
providerName: a
|
|
12073
12075
|
}) {
|
|
12074
|
-
const { projectIdOrName: c } =
|
|
12076
|
+
const { projectIdOrName: c } = qe(), l = Fo(), u = re(() => {
|
|
12075
12077
|
const d = {
|
|
12076
12078
|
projectIdOrName: c,
|
|
12077
12079
|
generateConnectionParams: {
|
|
@@ -12086,7 +12088,7 @@ function Fb({
|
|
|
12086
12088
|
}, [c, o, r, n, t, e, l]);
|
|
12087
12089
|
return s === null ? /* @__PURE__ */ p(Db, { handleSubmit: u, error: null, providerName: a }) : i;
|
|
12088
12090
|
}
|
|
12089
|
-
const Mb = Bs("VITE_AMP_ENABLE_CSRF", !1), kb = Bs("NEXT_AMP_ENABLE_CSRF", !1), Lb = Bs("REACT_APP_AMP_ENABLE_CSRF", !1),
|
|
12091
|
+
const Mb = Bs("VITE_AMP_ENABLE_CSRF", !1), kb = Bs("NEXT_AMP_ENABLE_CSRF", !1), Lb = Bs("REACT_APP_AMP_ENABLE_CSRF", !1), Kb = !!Mb || !!kb || !!Lb, Ad = async (e, t, n, r, o, i, s, a) => {
|
|
12090
12092
|
var l, u;
|
|
12091
12093
|
const c = await Vn().providerApi.getProvider({ provider: o }, {
|
|
12092
12094
|
headers: { "X-Api-Key": r ?? "" }
|
|
@@ -12109,7 +12111,7 @@ const Mb = Bs("VITE_AMP_ENABLE_CSRF", !1), kb = Bs("NEXT_AMP_ENABLE_CSRF", !1),
|
|
|
12109
12111
|
consumerName: s,
|
|
12110
12112
|
providerAppId: m.id,
|
|
12111
12113
|
provider: o,
|
|
12112
|
-
enableCSRFProtection:
|
|
12114
|
+
enableCSRFProtection: Kb
|
|
12113
12115
|
}
|
|
12114
12116
|
};
|
|
12115
12117
|
return await Vn().oAuthApi.oauthConnect(y, {
|
|
@@ -12118,20 +12120,20 @@ const Mb = Bs("VITE_AMP_ENABLE_CSRF", !1), kb = Bs("NEXT_AMP_ENABLE_CSRF", !1),
|
|
|
12118
12120
|
});
|
|
12119
12121
|
}
|
|
12120
12122
|
throw new Error(`Provider ${o} does not support an OAuth2 web flow.`);
|
|
12121
|
-
},
|
|
12122
|
-
function
|
|
12123
|
+
}, Uc = 600, Hc = 600, Vb = "AUTHORIZATION_SUCCEEDED", $b = "AUTHORIZATION_FAILED";
|
|
12124
|
+
function qb(e, t, n, r) {
|
|
12123
12125
|
return re(() => {
|
|
12124
12126
|
if (!r) return;
|
|
12125
|
-
const o = window.screenX + (window.outerWidth -
|
|
12127
|
+
const o = window.screenX + (window.outerWidth - Uc) / 2, i = window.screenY + (window.outerHeight - Hc) / 2.5, s = `width=${Uc},height=${Hc},left=${o},top=${i}`, a = window.open(r, e, s);
|
|
12126
12128
|
t(a), window.addEventListener("message", n, !1);
|
|
12127
12129
|
}, [r, e, t, n]);
|
|
12128
12130
|
}
|
|
12129
|
-
function
|
|
12130
|
-
const r =
|
|
12131
|
+
function Ub(e, t, n) {
|
|
12132
|
+
const r = bn();
|
|
12131
12133
|
return re((o) => {
|
|
12132
12134
|
var i, s;
|
|
12133
12135
|
if (o.origin === Pg) {
|
|
12134
|
-
if (o.data.eventType ===
|
|
12136
|
+
if (o.data.eventType === Vb) {
|
|
12135
12137
|
const a = (i = o.data.data) == null ? void 0 : i.connection;
|
|
12136
12138
|
a ? (e(a), t == null || t.close(), r.invalidateQueries({ queryKey: ["amp", "connections"] })) : console.error("Connection ID not found in event data: ", { event: o });
|
|
12137
12139
|
}
|
|
@@ -12146,10 +12148,10 @@ function xd({
|
|
|
12146
12148
|
onError: r,
|
|
12147
12149
|
error: o
|
|
12148
12150
|
}) {
|
|
12149
|
-
const [i, s] = de(null), [a, c] = de(null), l =
|
|
12150
|
-
return
|
|
12151
|
+
const [i, s] = de(null), [a, c] = de(null), l = Ub(s, a, r), u = qb(n, c, l, t);
|
|
12152
|
+
return Y(() => {
|
|
12151
12153
|
t && !a && u();
|
|
12152
|
-
}, [t, a, u, l, n]),
|
|
12154
|
+
}, [t, a, u, l, n]), Y(() => {
|
|
12153
12155
|
if (!a) return;
|
|
12154
12156
|
const d = setInterval(() => {
|
|
12155
12157
|
a.closed && (clearInterval(d), window.removeEventListener("message", l), c(null), !i && !o ? (console.error("OAuth failed. Please try again."), r == null || r("Something went wrong. Please try again.")) : i && (r == null || r(null)));
|
|
@@ -12189,7 +12191,7 @@ function Bb({
|
|
|
12189
12191
|
groupName: o,
|
|
12190
12192
|
providerName: i
|
|
12191
12193
|
}) {
|
|
12192
|
-
const { projectId: s } =
|
|
12194
|
+
const { projectId: s } = qe(), a = Gr(), [c, l] = de(null), [u, d] = de(null), m = async () => {
|
|
12193
12195
|
d(null);
|
|
12194
12196
|
try {
|
|
12195
12197
|
const y = await Ad(
|
|
@@ -12300,7 +12302,7 @@ function Gb({
|
|
|
12300
12302
|
groupName: o,
|
|
12301
12303
|
providerName: i
|
|
12302
12304
|
}) {
|
|
12303
|
-
const { projectId: s } =
|
|
12305
|
+
const { projectId: s } = qe(), a = Gr(), [c, l] = de(""), [u, d] = de(null), [m, h] = de(null), y = async () => {
|
|
12304
12306
|
if (h(null), !c) {
|
|
12305
12307
|
h("Workspace is required");
|
|
12306
12308
|
return;
|
|
@@ -12463,7 +12465,7 @@ function Xb({
|
|
|
12463
12465
|
explicitWorkspaceRequired: a,
|
|
12464
12466
|
selectedConnection: c
|
|
12465
12467
|
}) {
|
|
12466
|
-
const { projectIdOrName: l } =
|
|
12468
|
+
const { projectIdOrName: l } = qe(), u = Fo(), [d, m] = de(null), h = re((y) => {
|
|
12467
12469
|
m(null);
|
|
12468
12470
|
const v = {
|
|
12469
12471
|
projectIdOrName: l,
|
|
@@ -12538,7 +12540,7 @@ function n_({
|
|
|
12538
12540
|
}
|
|
12539
12541
|
function r_(e) {
|
|
12540
12542
|
const { selectedConnection: t } = Yr();
|
|
12541
|
-
|
|
12543
|
+
Y(() => {
|
|
12542
12544
|
e && t && e(t);
|
|
12543
12545
|
}, [e, t]);
|
|
12544
12546
|
}
|
|
@@ -12565,8 +12567,8 @@ function Pd({
|
|
|
12565
12567
|
selectedProvider: y
|
|
12566
12568
|
} = zn(e), { provider: v, isIntegrationDeleted: f } = at(), { selectedConnection: _, setSelectedConnection: g } = Yr();
|
|
12567
12569
|
i_({ onSuccess: s });
|
|
12568
|
-
const I =
|
|
12569
|
-
|
|
12570
|
+
const I = bn();
|
|
12571
|
+
Y(() => {
|
|
12570
12572
|
d && (console.error("Error loading provider info."), bt(m));
|
|
12571
12573
|
}, [d, m]);
|
|
12572
12574
|
const O = re(() => {
|
|
@@ -12720,11 +12722,11 @@ function Fd(e) {
|
|
|
12720
12722
|
const t = P.useContext(f_);
|
|
12721
12723
|
return e || t || "ltr";
|
|
12722
12724
|
}
|
|
12723
|
-
var rs = "rovingFocusGroup.onEntryFocus", h_ = { bubbles: !1, cancelable: !0 }, Mo = "RovingFocusGroup", [
|
|
12725
|
+
var rs = "rovingFocusGroup.onEntryFocus", h_ = { bubbles: !1, cancelable: !0 }, Mo = "RovingFocusGroup", [Ks, Md, m_] = l_(Mo), [g_, kd] = Do(
|
|
12724
12726
|
Mo,
|
|
12725
12727
|
[m_]
|
|
12726
12728
|
), [y_, v_] = g_(Mo), Ld = P.forwardRef(
|
|
12727
|
-
(e, t) => /* @__PURE__ */ p(
|
|
12729
|
+
(e, t) => /* @__PURE__ */ p(Ks.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Ks.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(w_, { ...e, ref: t }) }) })
|
|
12728
12730
|
);
|
|
12729
12731
|
Ld.displayName = Mo;
|
|
12730
12732
|
var w_ = P.forwardRef((e, t) => {
|
|
@@ -12783,8 +12785,8 @@ var w_ = P.forwardRef((e, t) => {
|
|
|
12783
12785
|
onFocus: Qt(e.onFocus, (N) => {
|
|
12784
12786
|
const D = !b.current;
|
|
12785
12787
|
if (N.target === N.currentTarget && D && !_) {
|
|
12786
|
-
const
|
|
12787
|
-
if (N.currentTarget.dispatchEvent(
|
|
12788
|
+
const q = new CustomEvent(rs, h_);
|
|
12789
|
+
if (N.currentTarget.dispatchEvent(q), !q.defaultPrevented) {
|
|
12788
12790
|
const j = O().filter((ae) => ae.focusable), G = j.find((ae) => ae.active), ie = j.find((ae) => ae.id === v), ue = [G, ie, ...j].filter(
|
|
12789
12791
|
Boolean
|
|
12790
12792
|
).map((ae) => ae.ref.current);
|
|
@@ -12798,7 +12800,7 @@ var w_ = P.forwardRef((e, t) => {
|
|
|
12798
12800
|
)
|
|
12799
12801
|
}
|
|
12800
12802
|
);
|
|
12801
|
-
}),
|
|
12803
|
+
}), Kd = "RovingFocusGroupItem", Vd = P.forwardRef(
|
|
12802
12804
|
(e, t) => {
|
|
12803
12805
|
const {
|
|
12804
12806
|
__scopeRovingFocusGroup: n,
|
|
@@ -12806,12 +12808,12 @@ var w_ = P.forwardRef((e, t) => {
|
|
|
12806
12808
|
active: o = !1,
|
|
12807
12809
|
tabStopId: i,
|
|
12808
12810
|
...s
|
|
12809
|
-
} = e, a = Dd(), c = i || a, l = v_(
|
|
12811
|
+
} = e, a = Dd(), c = i || a, l = v_(Kd, n), u = l.currentTabStopId === c, d = Md(n), { onFocusableItemAdd: m, onFocusableItemRemove: h } = l;
|
|
12810
12812
|
return P.useEffect(() => {
|
|
12811
12813
|
if (r)
|
|
12812
12814
|
return m(), () => h();
|
|
12813
12815
|
}, [r, m, h]), /* @__PURE__ */ p(
|
|
12814
|
-
|
|
12816
|
+
Ks.ItemSlot,
|
|
12815
12817
|
{
|
|
12816
12818
|
scope: n,
|
|
12817
12819
|
id: c,
|
|
@@ -12854,7 +12856,7 @@ var w_ = P.forwardRef((e, t) => {
|
|
|
12854
12856
|
);
|
|
12855
12857
|
}
|
|
12856
12858
|
);
|
|
12857
|
-
|
|
12859
|
+
Vd.displayName = Kd;
|
|
12858
12860
|
var I_ = {
|
|
12859
12861
|
ArrowLeft: "prev",
|
|
12860
12862
|
ArrowUp: "prev",
|
|
@@ -12881,9 +12883,9 @@ function $d(e, t = !1) {
|
|
|
12881
12883
|
function O_(e, t) {
|
|
12882
12884
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
12883
12885
|
}
|
|
12884
|
-
var C_ = Ld, E_ =
|
|
12886
|
+
var C_ = Ld, E_ = Vd, Na = "Tabs", [S_, nO] = Do(Na, [
|
|
12885
12887
|
kd
|
|
12886
|
-
]),
|
|
12888
|
+
]), qd = kd(), [N_, Ta] = S_(Na), Ud = P.forwardRef(
|
|
12887
12889
|
(e, t) => {
|
|
12888
12890
|
const {
|
|
12889
12891
|
__scopeTabs: n,
|
|
@@ -12922,10 +12924,10 @@ var C_ = Ld, E_ = Kd, Na = "Tabs", [S_, nO] = Do(Na, [
|
|
|
12922
12924
|
);
|
|
12923
12925
|
}
|
|
12924
12926
|
);
|
|
12925
|
-
|
|
12927
|
+
Ud.displayName = Na;
|
|
12926
12928
|
var Hd = "TabsList", Bd = P.forwardRef(
|
|
12927
12929
|
(e, t) => {
|
|
12928
|
-
const { __scopeTabs: n, loop: r = !0, ...o } = e, i = Ta(Hd, n), s =
|
|
12930
|
+
const { __scopeTabs: n, loop: r = !0, ...o } = e, i = Ta(Hd, n), s = qd(n);
|
|
12929
12931
|
return /* @__PURE__ */ p(
|
|
12930
12932
|
C_,
|
|
12931
12933
|
{
|
|
@@ -12950,7 +12952,7 @@ var Hd = "TabsList", Bd = P.forwardRef(
|
|
|
12950
12952
|
Bd.displayName = Hd;
|
|
12951
12953
|
var Wd = "TabsTrigger", Jd = P.forwardRef(
|
|
12952
12954
|
(e, t) => {
|
|
12953
|
-
const { __scopeTabs: n, value: r, disabled: o = !1, ...i } = e, s = Ta(Wd, n), a =
|
|
12955
|
+
const { __scopeTabs: n, value: r, disabled: o = !1, ...i } = e, s = Ta(Wd, n), a = qd(n), c = jd(s.baseId, r), l = Gd(s.baseId, r), u = r === s.value;
|
|
12954
12956
|
return /* @__PURE__ */ p(
|
|
12955
12957
|
E_,
|
|
12956
12958
|
{
|
|
@@ -13022,7 +13024,7 @@ function jd(e, t) {
|
|
|
13022
13024
|
function Gd(e, t) {
|
|
13023
13025
|
return `${e}-content-${t}`;
|
|
13024
13026
|
}
|
|
13025
|
-
var R_ =
|
|
13027
|
+
var R_ = Ud, A_ = Bd, Qd = Jd;
|
|
13026
13028
|
const x_ = /* @__PURE__ */ z("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
13027
13029
|
/* @__PURE__ */ p("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
|
|
13028
13030
|
/* @__PURE__ */ p("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
@@ -13093,7 +13095,7 @@ function Xd({
|
|
|
13093
13095
|
}
|
|
13094
13096
|
) });
|
|
13095
13097
|
}
|
|
13096
|
-
function
|
|
13098
|
+
function K_({
|
|
13097
13099
|
completed: e,
|
|
13098
13100
|
pending: t,
|
|
13099
13101
|
displayName: n
|
|
@@ -13112,7 +13114,7 @@ function V_({
|
|
|
13112
13114
|
)
|
|
13113
13115
|
] });
|
|
13114
13116
|
}
|
|
13115
|
-
function
|
|
13117
|
+
function V_() {
|
|
13116
13118
|
return /* @__PURE__ */ z(tt, { children: [
|
|
13117
13119
|
/* @__PURE__ */ p(Po, { style: { margin: "3rem 0 1rem 0" } }),
|
|
13118
13120
|
/* @__PURE__ */ p(
|
|
@@ -13163,31 +13165,31 @@ function $_({
|
|
|
13163
13165
|
);
|
|
13164
13166
|
}),
|
|
13165
13167
|
o && /* @__PURE__ */ p(
|
|
13166
|
-
|
|
13168
|
+
K_,
|
|
13167
13169
|
{
|
|
13168
13170
|
completed: o.completed,
|
|
13169
13171
|
pending: ((a = (s = r == null ? void 0 : r.other) == null ? void 0 : s.write) == null ? void 0 : a.isWriteModified) || !1,
|
|
13170
13172
|
displayName: "Write"
|
|
13171
13173
|
}
|
|
13172
13174
|
),
|
|
13173
|
-
i && /* @__PURE__ */ p(
|
|
13175
|
+
i && /* @__PURE__ */ p(V_, {})
|
|
13174
13176
|
] }) });
|
|
13175
13177
|
}
|
|
13176
|
-
function
|
|
13178
|
+
function q_(e, t) {
|
|
13177
13179
|
return t === ao ? { name: ao, completed: !1 } : e.find((n) => n.name === t);
|
|
13178
13180
|
}
|
|
13179
|
-
function
|
|
13181
|
+
function U_({
|
|
13180
13182
|
children: e
|
|
13181
13183
|
}) {
|
|
13182
13184
|
var _;
|
|
13183
|
-
const { project: t } =
|
|
13185
|
+
const { project: t } = qe(), { installation: n } = at(), { providerName: r } = zn(), { hydratedRevision: o } = Zr(), { objectConfigurationsState: i } = Gs(), [s, a] = de(""), c = (t == null ? void 0 : t.appName) || "", l = n == null ? void 0 : n.config, u = o && Hl(l, o), d = u !== null, m = !!((_ = o == null ? void 0 : o.content) != null && _.write), h = m ? Bl(l) : void 0, y = Ke(() => {
|
|
13184
13186
|
const g = [...u || []];
|
|
13185
13187
|
return h && m && g.push(h), g;
|
|
13186
|
-
}, [u, h, m]), v =
|
|
13188
|
+
}, [u, h, m]), v = q_(y, s), f = re(() => {
|
|
13187
13189
|
const g = y.find((I) => v !== I && !I.completed);
|
|
13188
13190
|
g && a(g.name);
|
|
13189
13191
|
}, [y, v]);
|
|
13190
|
-
return
|
|
13192
|
+
return Y(() => {
|
|
13191
13193
|
!s && y.length > 0 && a(y[0].name);
|
|
13192
13194
|
}, [y, s, f]), /* @__PURE__ */ p(ou.Provider, { value: f, children: /* @__PURE__ */ p(ru.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ z(Qr, { style: { maxWidth: "55rem" }, children: [
|
|
13193
13195
|
/* @__PURE__ */ z(
|
|
@@ -13228,7 +13230,7 @@ function q_({
|
|
|
13228
13230
|
] }) }) });
|
|
13229
13231
|
}
|
|
13230
13232
|
function H_({ ...e }) {
|
|
13231
|
-
return /* @__PURE__ */ p(
|
|
13233
|
+
return /* @__PURE__ */ p(U_, { ...e });
|
|
13232
13234
|
}
|
|
13233
13235
|
function rO({
|
|
13234
13236
|
integration: e,
|
|
@@ -13242,7 +13244,7 @@ function rO({
|
|
|
13242
13244
|
fieldMapping: c
|
|
13243
13245
|
}) {
|
|
13244
13246
|
var f;
|
|
13245
|
-
const { projectIdOrName: l, isLoading: u } =
|
|
13247
|
+
const { projectIdOrName: l, isLoading: u } = qe(), { isLoading: d } = Hs(), { isError: m, errorState: h } = Kt(), { seed: y, reset: v } = Vl();
|
|
13246
13248
|
return u || d ? /* @__PURE__ */ p(Xr, {}) : m(fe.PROJECT, l) ? /* @__PURE__ */ p(on, { message: `Error loading project ${l}` }) : m(fe.INTEGRATION_LIST, l) ? /* @__PURE__ */ p(on, { message: "Error retrieving integrations for the project, double check the API key" }) : (f = h[fe.INTEGRATION_LIST]) != null && f.apiError ? /* @__PURE__ */ p(on, { message: "Something went wrong, couldn't find integration information" }) : /* @__PURE__ */ p("div", { className: $l.resetContainer, children: /* @__PURE__ */ p(
|
|
13247
13249
|
ny,
|
|
13248
13250
|
{
|
|
@@ -13255,7 +13257,7 @@ function rO({
|
|
|
13255
13257
|
onUpdateSuccess: s,
|
|
13256
13258
|
onUninstallSuccess: a,
|
|
13257
13259
|
fieldMapping: c,
|
|
13258
|
-
children: /* @__PURE__ */ p(
|
|
13260
|
+
children: /* @__PURE__ */ p(Kl, { children: /* @__PURE__ */ p(
|
|
13259
13261
|
Pd,
|
|
13260
13262
|
{
|
|
13261
13263
|
consumerRef: t,
|
|
@@ -13288,7 +13290,7 @@ function B_() {
|
|
|
13288
13290
|
);
|
|
13289
13291
|
}
|
|
13290
13292
|
function W_({ redirectURL: e, children: t }) {
|
|
13291
|
-
return
|
|
13293
|
+
return Y(() => {
|
|
13292
13294
|
e && window.location.replace(e);
|
|
13293
13295
|
}, [e]), e ? /* @__PURE__ */ p(B_, {}) : t;
|
|
13294
13296
|
}
|
|
@@ -13299,7 +13301,7 @@ function J_({
|
|
|
13299
13301
|
onDisconnectSuccess: r,
|
|
13300
13302
|
resetComponent: o
|
|
13301
13303
|
}) {
|
|
13302
|
-
const i = Gr(), { projectId: s } =
|
|
13304
|
+
const i = Gr(), { projectId: s } = qe(), { selectedConnection: a, setConnections: c } = Yr(), [l, u] = de(!1), d = !s || !a || !a.id || l;
|
|
13303
13305
|
return /* @__PURE__ */ p(
|
|
13304
13306
|
ht,
|
|
13305
13307
|
{
|
|
@@ -13351,7 +13353,7 @@ function J_({
|
|
|
13351
13353
|
);
|
|
13352
13354
|
}
|
|
13353
13355
|
function z_({ provider: e, onDisconnectSuccess: t, resetComponent: n }) {
|
|
13354
|
-
const { appName: r } =
|
|
13356
|
+
const { appName: r } = qe(), { providerName: o } = zn(e), i = `You have successfully connected your ${o} account to ${r}.`;
|
|
13355
13357
|
return /* @__PURE__ */ p(Ea, { text: i, children: /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: /* @__PURE__ */ p(
|
|
13356
13358
|
J_,
|
|
13357
13359
|
{
|
|
@@ -13374,10 +13376,10 @@ function iO({
|
|
|
13374
13376
|
onDisconnectSuccess: a,
|
|
13375
13377
|
onConnectSuccess: c
|
|
13376
13378
|
}) {
|
|
13377
|
-
const { seed: l, reset: u } =
|
|
13379
|
+
const { seed: l, reset: u } = Vl(), d = re((m) => {
|
|
13378
13380
|
s ? s(m.id) : c && c(m);
|
|
13379
13381
|
}, [s, c]);
|
|
13380
|
-
return /* @__PURE__ */ p("div", { className: $l.resetContainer, children: /* @__PURE__ */ p(
|
|
13382
|
+
return /* @__PURE__ */ p("div", { className: $l.resetContainer, children: /* @__PURE__ */ p(Kl, { children: /* @__PURE__ */ p(
|
|
13381
13383
|
Pd,
|
|
13382
13384
|
{
|
|
13383
13385
|
resetComponent: u,
|
|
@@ -13406,7 +13408,7 @@ const oO = (e, t) => {
|
|
|
13406
13408
|
isError: o,
|
|
13407
13409
|
error: i
|
|
13408
13410
|
} = Fl(e, t), s = ((n == null ? void 0 : n.length) || 0) > 0, a = !!n && !r;
|
|
13409
|
-
return
|
|
13411
|
+
return Y(() => {
|
|
13410
13412
|
o && bt(i);
|
|
13411
13413
|
}, [o, i]), { isLoaded: a, isIntegrationInstalled: s, isLoading: r };
|
|
13412
13414
|
};
|