@amp-labs/react 1.15.0 → 1.15.2
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 +362 -347
- package/build/index.d.ts +11 -2
- package/build/style.css +1 -1
- package/package.json +2 -1
package/build/amp-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as F, Fragment as We } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import Ut, { createContext as Qe, useContext as et, useState as U, useCallback as ee, useMemo as Re, useEffect as
|
|
3
|
+
import Ut, { createContext as Qe, useContext as et, useState as U, useCallback as ee, useMemo as Re, useEffect as ie, forwardRef as Yn, useRef as ke, cloneElement as wc, useLayoutEffect as _c, useReducer as bc, Component as Cc, createElement as Kn } from "react";
|
|
4
4
|
import { extendTheme as yi, ChakraProvider as Oc, Box as Je, Container as Nc, Text as jt, Stack as Kt, Spinner as Sc, useTab as vi, useMultiStyleConfig as Ii, Button as Se, Select as Ec, Divider as Tc, FormControl as mt, FormErrorMessage as xc, Checkbox as $n, Link as Rc, FormLabel as bt, Heading as Ct, InputGroup as Gn, Input as ot, InputRightElement as Zn, createIcon as Ac, Flex as Pc, Textarea as wi, Tabs as Dc } from "@chakra-ui/react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const Fc = {
|
|
@@ -592,6 +592,7 @@ function Il(e) {
|
|
|
592
592
|
destination: e.destination,
|
|
593
593
|
selectedFields: e.selectedFields,
|
|
594
594
|
selectedFieldMappings: e.selectedFieldMappings,
|
|
595
|
+
selectedFieldsAuto: e.selectedFieldsAuto,
|
|
595
596
|
backfill: gl(e.backfill)
|
|
596
597
|
};
|
|
597
598
|
}
|
|
@@ -793,13 +794,15 @@ function Wl(e) {
|
|
|
793
794
|
}
|
|
794
795
|
function Jl(e, t) {
|
|
795
796
|
return e == null ? e : {
|
|
796
|
-
fieldName: e.fieldName
|
|
797
|
+
fieldName: e.fieldName,
|
|
798
|
+
mapToField: M(e, "mapToField") ? e.mapToField : void 0
|
|
797
799
|
};
|
|
798
800
|
}
|
|
799
801
|
function zl(e) {
|
|
800
802
|
if (e !== void 0)
|
|
801
803
|
return e === null ? null : {
|
|
802
|
-
fieldName: e.fieldName
|
|
804
|
+
fieldName: e.fieldName,
|
|
805
|
+
mapToField: e.mapToField
|
|
803
806
|
};
|
|
804
807
|
}
|
|
805
808
|
function Xl(e) {
|
|
@@ -886,13 +889,15 @@ function iu(e) {
|
|
|
886
889
|
}
|
|
887
890
|
function au(e, t) {
|
|
888
891
|
return e == null ? e : {
|
|
889
|
-
objectName: e.objectName
|
|
892
|
+
objectName: e.objectName,
|
|
893
|
+
inheritMappingFromRead: M(e, "inheritMappingFromRead") ? e.inheritMappingFromRead : void 0
|
|
890
894
|
};
|
|
891
895
|
}
|
|
892
896
|
function su(e) {
|
|
893
897
|
if (e !== void 0)
|
|
894
898
|
return e === null ? null : {
|
|
895
|
-
objectName: e.objectName
|
|
899
|
+
objectName: e.objectName,
|
|
900
|
+
inheritMappingFromRead: e.inheritMappingFromRead
|
|
896
901
|
};
|
|
897
902
|
}
|
|
898
903
|
function cu(e) {
|
|
@@ -2009,7 +2014,7 @@ class bd {
|
|
|
2009
2014
|
this.connectionApi = new hd(t), this.installationApi = new md(t), this.integrationApi = new gd(t), this.oAuthApi = new yd(t), this.projectApi = new vd(t), this.providerApi = new Id(t), this.providerAppApi = new wd(t), this.revisionApi = new _d(t);
|
|
2010
2015
|
}
|
|
2011
2016
|
}
|
|
2012
|
-
const Cd = "1.15.
|
|
2017
|
+
const Cd = "1.15.2", Od = "v1", Sn = "https://api.withampersand.com";
|
|
2013
2018
|
function Fi() {
|
|
2014
2019
|
try {
|
|
2015
2020
|
const e = process.env.REACT_APP_AMP_SERVER;
|
|
@@ -2119,7 +2124,7 @@ const Ee = async (e, t) => {
|
|
|
2119
2124
|
};
|
|
2120
2125
|
function $d({ projectIdOrName: e, children: t }) {
|
|
2121
2126
|
const n = Ce(), { setError: o, isError: i } = Ot(), [r, a] = U(null), [s, l] = U(!0);
|
|
2122
|
-
|
|
2127
|
+
ie(() => {
|
|
2123
2128
|
me().integrationApi.listIntegrations({ projectIdOrName: e }, {
|
|
2124
2129
|
headers: {
|
|
2125
2130
|
"X-Api-Key": n ?? ""
|
|
@@ -2148,7 +2153,7 @@ const Ki = Qe({
|
|
|
2148
2153
|
};
|
|
2149
2154
|
function Ld({ projectIdOrName: e, children: t }) {
|
|
2150
2155
|
const n = Ce(), { isError: o, setError: i } = Ot(), [r, a] = U(null), [s, l] = U(!0);
|
|
2151
|
-
|
|
2156
|
+
ie(() => {
|
|
2152
2157
|
me().projectApi.getProject({ projectIdOrName: e }, {
|
|
2153
2158
|
headers: {
|
|
2154
2159
|
"X-Api-Key": n ?? ""
|
|
@@ -2167,7 +2172,7 @@ function Ld({ projectIdOrName: e, children: t }) {
|
|
|
2167
2172
|
}), [e, r]);
|
|
2168
2173
|
return o(ye.PROJECT, e) ? /* @__PURE__ */ c(ht, { message: `Error loading project ${e}` }) : /* @__PURE__ */ c(Ki.Provider, { value: d, children: s ? /* @__PURE__ */ c(Ze, {}) : t });
|
|
2169
2174
|
}
|
|
2170
|
-
function
|
|
2175
|
+
function ug(e) {
|
|
2171
2176
|
const { options: { apiKey: t, projectId: n, project: o }, children: i } = e, r = o || n;
|
|
2172
2177
|
if (n && o)
|
|
2173
2178
|
throw new Error("Use AmpersandProvider either with projectId or project but not both.");
|
|
@@ -2178,7 +2183,7 @@ function lg(e) {
|
|
|
2178
2183
|
return /* @__PURE__ */ c(Kc, { children: /* @__PURE__ */ c(Vc, { children: /* @__PURE__ */ c($c, { value: t, children: /* @__PURE__ */ c(Ld, { projectIdOrName: r, children: /* @__PURE__ */ c($d, { projectIdOrName: r, children: i }) }) }) }) });
|
|
2179
2184
|
}
|
|
2180
2185
|
const Vd = Qe(null);
|
|
2181
|
-
function
|
|
2186
|
+
function dg() {
|
|
2182
2187
|
const e = et(Vd);
|
|
2183
2188
|
if (!e)
|
|
2184
2189
|
throw new Error(`Cannot call useAmpersandProvider unless your
|
|
@@ -2228,11 +2233,11 @@ function Ud({
|
|
|
2228
2233
|
onUninstallSuccess: l,
|
|
2229
2234
|
fieldMapping: d
|
|
2230
2235
|
}) {
|
|
2231
|
-
const p = Ce(), { projectId: h } = _e(), { integrations: g } = Mi(), { setError: f, isError: m } = Ot(), { isIntegrationDeleted:
|
|
2236
|
+
const p = Ce(), { projectId: h } = _e(), { integrations: g } = Mi(), { setError: f, isError: m } = Ot(), { isIntegrationDeleted: v, setIntegrationDeleted: w } = Hd(), [O, y] = U([]), [C, b] = U(!0), I = (O == null ? void 0 : O[0]) || null, N = Re(
|
|
2232
2237
|
() => Uc(t, g || []),
|
|
2233
2238
|
[t, g]
|
|
2234
2239
|
);
|
|
2235
|
-
|
|
2240
|
+
ie(() => {
|
|
2236
2241
|
N === null && (g != null && g.length) && console.error(`Integration "${t}" not found in integration list`);
|
|
2237
2242
|
}, [t, N, g]);
|
|
2238
2243
|
const V = ee((z) => {
|
|
@@ -2255,7 +2260,7 @@ function Ud({
|
|
|
2255
2260
|
},
|
|
2256
2261
|
[N, h, p, f, i]
|
|
2257
2262
|
), H = (N == null ? void 0 : N.id) || "";
|
|
2258
|
-
|
|
2263
|
+
ie(() => {
|
|
2259
2264
|
D();
|
|
2260
2265
|
}, [D]);
|
|
2261
2266
|
const Y = Re(() => ({
|
|
@@ -2272,8 +2277,8 @@ function Ud({
|
|
|
2272
2277
|
onInstallSuccess: a,
|
|
2273
2278
|
onUpdateSuccess: s,
|
|
2274
2279
|
onUninstallSuccess: l,
|
|
2275
|
-
isIntegrationDeleted:
|
|
2276
|
-
setIntegrationDeleted:
|
|
2280
|
+
isIntegrationDeleted: v,
|
|
2281
|
+
setIntegrationDeleted: w,
|
|
2277
2282
|
fieldMapping: d
|
|
2278
2283
|
}), [
|
|
2279
2284
|
N,
|
|
@@ -2287,8 +2292,8 @@ function Ud({
|
|
|
2287
2292
|
a,
|
|
2288
2293
|
s,
|
|
2289
2294
|
l,
|
|
2290
|
-
w,
|
|
2291
2295
|
v,
|
|
2296
|
+
w,
|
|
2292
2297
|
d
|
|
2293
2298
|
]);
|
|
2294
2299
|
if (N !== null) {
|
|
@@ -2321,24 +2326,24 @@ function Vi({
|
|
|
2321
2326
|
const m = e || f;
|
|
2322
2327
|
if (!m)
|
|
2323
2328
|
throw new Error("ConnectionsProvider must be given a provider prop or be used within InstallIntegrationProvider");
|
|
2324
|
-
|
|
2329
|
+
ie(() => {
|
|
2325
2330
|
me().connectionApi.listConnections({ projectIdOrName: i, groupRef: t, provider: m }, {
|
|
2326
2331
|
headers: {
|
|
2327
2332
|
"X-Api-Key": o ?? ""
|
|
2328
2333
|
}
|
|
2329
|
-
}).then((
|
|
2330
|
-
p(!1), a(
|
|
2331
|
-
}).catch((
|
|
2332
|
-
console.error(`Error retrieving existing OAuth connections for group ID ${t}.`), Ee(
|
|
2334
|
+
}).then((w) => {
|
|
2335
|
+
p(!1), a(w);
|
|
2336
|
+
}).catch((w) => {
|
|
2337
|
+
console.error(`Error retrieving existing OAuth connections for group ID ${t}.`), Ee(w), p(!1), h(ye.CONNECTION_LIST, i);
|
|
2333
2338
|
});
|
|
2334
2339
|
}, [i, o, t, m, h]);
|
|
2335
|
-
const
|
|
2340
|
+
const v = Re(() => ({
|
|
2336
2341
|
connections: r,
|
|
2337
2342
|
selectedConnection: s,
|
|
2338
2343
|
setConnections: a,
|
|
2339
2344
|
setSelectedConnection: l
|
|
2340
2345
|
}), [r, s, a, l]);
|
|
2341
|
-
return g(ye.CONNECTION_LIST, i) ? /* @__PURE__ */ c(ht, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ c(Li.Provider, { value:
|
|
2346
|
+
return g(ye.CONNECTION_LIST, i) ? /* @__PURE__ */ c(ht, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ c(Li.Provider, { value: v, children: d ? /* @__PURE__ */ c(Ze, {}) : n });
|
|
2342
2347
|
}
|
|
2343
2348
|
var En = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2344
2349
|
function Ur(e) {
|
|
@@ -2347,9 +2352,9 @@ function Ur(e) {
|
|
|
2347
2352
|
var Ln = { exports: {} };
|
|
2348
2353
|
Ln.exports;
|
|
2349
2354
|
(function(e, t) {
|
|
2350
|
-
var n = 200, o = "__lodash_hash_undefined__", i = 1, r = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", h = "[object Date]", g = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]",
|
|
2351
|
-
T[ne] = T[Q] = T[de] = T[pe] = T[oe] = T[Te] = T[Ae] = T[E] = T[K] = !0, T[s] = T[l] = T[z] = T[p] = T[Z] = T[h] = T[g] = T[f] = T[
|
|
2352
|
-
var B = typeof En == "object" && En && En.Object === Object && En, W = typeof self == "object" && self && self.Object === Object && self, j = B || W || Function("return this")(), J = t && !t.nodeType && t, q = J && !0 && e && !e.nodeType && e,
|
|
2355
|
+
var n = 200, o = "__lodash_hash_undefined__", i = 1, r = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", h = "[object Date]", g = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", v = "[object Map]", w = "[object Number]", O = "[object Null]", y = "[object Object]", C = "[object Promise]", b = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", V = "[object String]", D = "[object Symbol]", H = "[object Undefined]", Y = "[object WeakMap]", z = "[object ArrayBuffer]", Z = "[object DataView]", ne = "[object Float32Array]", Q = "[object Float64Array]", de = "[object Int8Array]", pe = "[object Int16Array]", oe = "[object Int32Array]", Te = "[object Uint8Array]", Ae = "[object Uint8ClampedArray]", E = "[object Uint16Array]", K = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, T = {};
|
|
2356
|
+
T[ne] = T[Q] = T[de] = T[pe] = T[oe] = T[Te] = T[Ae] = T[E] = T[K] = !0, T[s] = T[l] = T[z] = T[p] = T[Z] = T[h] = T[g] = T[f] = T[v] = T[w] = T[y] = T[I] = T[N] = T[V] = T[Y] = !1;
|
|
2357
|
+
var B = typeof En == "object" && En && En.Object === Object && En, W = typeof self == "object" && self && self.Object === Object && self, j = B || W || Function("return this")(), J = t && !t.nodeType && t, q = J && !0 && e && !e.nodeType && e, ae = q && q.exports === J, R = ae && B.process, fe = function() {
|
|
2353
2358
|
try {
|
|
2354
2359
|
return R && R.binding && R.binding("util");
|
|
2355
2360
|
} catch {
|
|
@@ -2411,7 +2416,7 @@ Ln.exports;
|
|
|
2411
2416
|
return u ? "Symbol(src)_1." + u : "";
|
|
2412
2417
|
}(), Io = Ke.toString, bs = RegExp(
|
|
2413
2418
|
"^" + yn.call(rt).replace(k, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2414
|
-
), wo =
|
|
2419
|
+
), wo = ae ? j.Buffer : void 0, vn = j.Symbol, _o = j.Uint8Array, bo = Ke.propertyIsEnumerable, Cs = nt.splice, Et = vn ? vn.toStringTag : void 0, Co = Object.getOwnPropertySymbols, Os = wo ? wo.isBuffer : void 0, Ns = en(Object.keys, Object), ar = Vt(j, "DataView"), tn = Vt(j, "Map"), sr = Vt(j, "Promise"), cr = Vt(j, "Set"), lr = Vt(j, "WeakMap"), nn = Vt(Object, "create"), Ss = Rt(ar), Es = Rt(tn), Ts = Rt(sr), xs = Rt(cr), Rs = Rt(lr), Oo = vn ? vn.prototype : void 0, ur = Oo ? Oo.valueOf : void 0;
|
|
2415
2420
|
function Tt(u) {
|
|
2416
2421
|
var _ = -1, S = u == null ? 0 : u.length;
|
|
2417
2422
|
for (this.clear(); ++_ < S; ) {
|
|
@@ -2650,14 +2655,14 @@ Ln.exports;
|
|
|
2650
2655
|
return !(u.byteLength != _.byteLength || !te(new _o(u), new _o(_)));
|
|
2651
2656
|
case p:
|
|
2652
2657
|
case h:
|
|
2653
|
-
case
|
|
2658
|
+
case w:
|
|
2654
2659
|
return xo(+u, +_);
|
|
2655
2660
|
case g:
|
|
2656
2661
|
return u.name == _.name && u.message == _.message;
|
|
2657
2662
|
case I:
|
|
2658
2663
|
case V:
|
|
2659
2664
|
return u == _ + "";
|
|
2660
|
-
case
|
|
2665
|
+
case v:
|
|
2661
2666
|
var Oe = St;
|
|
2662
2667
|
case N:
|
|
2663
2668
|
var Ne = L & i;
|
|
@@ -2732,14 +2737,14 @@ Ln.exports;
|
|
|
2732
2737
|
return bo.call(u, _);
|
|
2733
2738
|
}));
|
|
2734
2739
|
} : vc, vt = rn;
|
|
2735
|
-
(ar && vt(new ar(new ArrayBuffer(1))) != Z || tn && vt(new tn()) !=
|
|
2740
|
+
(ar && vt(new ar(new ArrayBuffer(1))) != Z || tn && vt(new tn()) != v || sr && vt(sr.resolve()) != C || cr && vt(new cr()) != N || lr && vt(new lr()) != Y) && (vt = function(u) {
|
|
2736
2741
|
var _ = rn(u), S = _ == y ? u.constructor : void 0, L = S ? Rt(S) : "";
|
|
2737
2742
|
if (L)
|
|
2738
2743
|
switch (L) {
|
|
2739
2744
|
case Ss:
|
|
2740
2745
|
return Z;
|
|
2741
2746
|
case Es:
|
|
2742
|
-
return
|
|
2747
|
+
return v;
|
|
2743
2748
|
case Ts:
|
|
2744
2749
|
return C;
|
|
2745
2750
|
case xs:
|
|
@@ -2891,10 +2896,10 @@ function jr(e, t) {
|
|
|
2891
2896
|
return Bd(e, t);
|
|
2892
2897
|
}
|
|
2893
2898
|
const Gd = (e, t, n) => {
|
|
2894
|
-
var f, m,
|
|
2899
|
+
var f, m, v, w, O, y;
|
|
2895
2900
|
if (!e)
|
|
2896
2901
|
return null;
|
|
2897
|
-
const o = qd(e, t), i = o && Wd(o), r = o && zd(o), a = o && Jd(o), s = (o == null ? void 0 : o.allFields) || [], l = n == null ? void 0 : n.content, d = ((
|
|
2902
|
+
const o = qd(e, t), i = o && Wd(o), r = o && zd(o), a = o && Jd(o), s = (o == null ? void 0 : o.allFields) || [], l = n == null ? void 0 : n.content, d = ((v = (m = (f = l == null ? void 0 : l.read) == null ? void 0 : f.objects) == null ? void 0 : m[t]) == null ? void 0 : v.selectedFields) || {}, p = ((y = (O = (w = l == null ? void 0 : l.read) == null ? void 0 : w.objects) == null ? void 0 : O[t]) == null ? void 0 : y.selectedFieldMappings) || {}, h = { ...d }, g = { ...p };
|
|
2898
2903
|
return {
|
|
2899
2904
|
allFields: s,
|
|
2900
2905
|
// from hydrated revision
|
|
@@ -3247,8 +3252,8 @@ function yp({
|
|
|
3247
3252
|
children: t
|
|
3248
3253
|
}) {
|
|
3249
3254
|
var C;
|
|
3250
|
-
const { selectedConnection: n } = Gt(), { integrationId: o, integrationObj: i } = tt(), [r, a] = U(null), [s, l] = U(!0), { isError: d, removeError: p, setError: h } = Ot(), g = Ce(), f = n == null ? void 0 : n.id, m = (C = i == null ? void 0 : i.latestRevision) == null ? void 0 : C.id,
|
|
3251
|
-
|
|
3255
|
+
const { selectedConnection: n } = Gt(), { integrationId: o, integrationObj: i } = tt(), [r, a] = U(null), [s, l] = U(!0), { isError: d, removeError: p, setError: h } = Ot(), g = Ce(), f = n == null ? void 0 : n.id, m = (C = i == null ? void 0 : i.latestRevision) == null ? void 0 : C.id, v = (i == null ? void 0 : i.name) || o;
|
|
3256
|
+
ie(() => {
|
|
3252
3257
|
e && o && m && f && g && me().revisionApi.getHydratedRevision({
|
|
3253
3258
|
projectIdOrName: e,
|
|
3254
3259
|
integrationId: o,
|
|
@@ -3259,9 +3264,9 @@ function yp({
|
|
|
3259
3264
|
"X-Api-Key": g ?? ""
|
|
3260
3265
|
}
|
|
3261
3266
|
}).then((b) => {
|
|
3262
|
-
a(b), l(!1), p(ye.HYDRATED_REVISION,
|
|
3267
|
+
a(b), l(!1), p(ye.HYDRATED_REVISION, v);
|
|
3263
3268
|
}).catch((b) => {
|
|
3264
|
-
console.error(`Error loading integration ${
|
|
3269
|
+
console.error(`Error loading integration ${v}.`), Ee(b), l(!1), h(ye.HYDRATED_REVISION, v);
|
|
3265
3270
|
});
|
|
3266
3271
|
}, [
|
|
3267
3272
|
e,
|
|
@@ -3271,13 +3276,13 @@ function yp({
|
|
|
3271
3276
|
g,
|
|
3272
3277
|
p,
|
|
3273
3278
|
h,
|
|
3274
|
-
|
|
3279
|
+
v
|
|
3275
3280
|
]);
|
|
3276
|
-
const
|
|
3281
|
+
const w = Re(() => ({
|
|
3277
3282
|
hydratedRevision: r,
|
|
3278
3283
|
loading: s
|
|
3279
3284
|
}), [r, s]), y = `Error retrieving integration details for '${(i == null ? void 0 : i.name) || o || "unknown integration"}. This is sometimes caused by insufficient permissions with your credentials'`;
|
|
3280
|
-
return /* @__PURE__ */ c(ea.Provider, { value:
|
|
3285
|
+
return /* @__PURE__ */ c(ea.Provider, { value: w, children: d(ye.HYDRATED_REVISION, v) ? /* @__PURE__ */ c(ht, { message: y }) : t });
|
|
3281
3286
|
}
|
|
3282
3287
|
function pt(e, t) {
|
|
3283
3288
|
if (e == null) return {};
|
|
@@ -3318,7 +3323,7 @@ var Uo;
|
|
|
3318
3323
|
function Ip() {
|
|
3319
3324
|
if (Uo) return se;
|
|
3320
3325
|
Uo = 1;
|
|
3321
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116,
|
|
3326
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
3322
3327
|
function C(I) {
|
|
3323
3328
|
if (typeof I == "object" && I !== null) {
|
|
3324
3329
|
var N = I.$$typeof;
|
|
@@ -3377,7 +3382,7 @@ function Ip() {
|
|
|
3377
3382
|
}, se.isSuspense = function(I) {
|
|
3378
3383
|
return C(I) === h;
|
|
3379
3384
|
}, se.isValidElementType = function(I) {
|
|
3380
|
-
return typeof I == "string" || typeof I == "function" || I === o || I === d || I === r || I === i || I === h || I === g || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === f || I.$$typeof === a || I.$$typeof === s || I.$$typeof === p || I.$$typeof ===
|
|
3385
|
+
return typeof I == "string" || typeof I == "function" || I === o || I === d || I === r || I === i || I === h || I === g || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === f || I.$$typeof === a || I.$$typeof === s || I.$$typeof === p || I.$$typeof === w || I.$$typeof === O || I.$$typeof === y || I.$$typeof === v);
|
|
3381
3386
|
}, se.typeOf = C, se;
|
|
3382
3387
|
}
|
|
3383
3388
|
var ce = {};
|
|
@@ -3392,10 +3397,10 @@ var ce = {};
|
|
|
3392
3397
|
var jo;
|
|
3393
3398
|
function wp() {
|
|
3394
3399
|
return jo || (jo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3395
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116,
|
|
3400
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
3396
3401
|
function C(R) {
|
|
3397
3402
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3398
|
-
R === o || R === d || R === r || R === i || R === h || R === g || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === f || R.$$typeof === a || R.$$typeof === s || R.$$typeof === p || R.$$typeof ===
|
|
3403
|
+
R === o || R === d || R === r || R === i || R === h || R === g || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === f || R.$$typeof === a || R.$$typeof === s || R.$$typeof === p || R.$$typeof === w || R.$$typeof === O || R.$$typeof === y || R.$$typeof === v);
|
|
3399
3404
|
}
|
|
3400
3405
|
function b(R) {
|
|
3401
3406
|
if (typeof R == "object" && R !== null) {
|
|
@@ -3466,10 +3471,10 @@ function wp() {
|
|
|
3466
3471
|
function q(R) {
|
|
3467
3472
|
return b(R) === i;
|
|
3468
3473
|
}
|
|
3469
|
-
function
|
|
3474
|
+
function ae(R) {
|
|
3470
3475
|
return b(R) === h;
|
|
3471
3476
|
}
|
|
3472
|
-
ce.AsyncMode = I, ce.ConcurrentMode = N, ce.ContextConsumer = V, ce.ContextProvider = D, ce.Element = H, ce.ForwardRef = Y, ce.Fragment = z, ce.Lazy = Z, ce.Memo = ne, ce.Portal = Q, ce.Profiler = de, ce.StrictMode = pe, ce.Suspense = oe, ce.isAsyncMode = Ae, ce.isConcurrentMode = E, ce.isContextConsumer = K, ce.isContextProvider = k, ce.isElement = P, ce.isForwardRef = A, ce.isFragment = T, ce.isLazy = B, ce.isMemo = W, ce.isPortal = j, ce.isProfiler = J, ce.isStrictMode = q, ce.isSuspense =
|
|
3477
|
+
ce.AsyncMode = I, ce.ConcurrentMode = N, ce.ContextConsumer = V, ce.ContextProvider = D, ce.Element = H, ce.ForwardRef = Y, ce.Fragment = z, ce.Lazy = Z, ce.Memo = ne, ce.Portal = Q, ce.Profiler = de, ce.StrictMode = pe, ce.Suspense = oe, ce.isAsyncMode = Ae, ce.isConcurrentMode = E, ce.isContextConsumer = K, ce.isContextProvider = k, ce.isElement = P, ce.isForwardRef = A, ce.isFragment = T, ce.isLazy = B, ce.isMemo = W, ce.isPortal = j, ce.isProfiler = J, ce.isStrictMode = q, ce.isSuspense = ae, ce.isValidElementType = C, ce.typeOf = b;
|
|
3473
3478
|
}()), ce;
|
|
3474
3479
|
}
|
|
3475
3480
|
var Bo;
|
|
@@ -3635,15 +3640,15 @@ function Cp() {
|
|
|
3635
3640
|
function m(E, K) {
|
|
3636
3641
|
return E === K ? E !== 0 || 1 / E === 1 / K : E !== E && K !== K;
|
|
3637
3642
|
}
|
|
3638
|
-
function
|
|
3643
|
+
function v(E, K) {
|
|
3639
3644
|
this.message = E, this.data = K && typeof K == "object" ? K : {}, this.stack = "";
|
|
3640
3645
|
}
|
|
3641
|
-
|
|
3642
|
-
function
|
|
3646
|
+
v.prototype = Error.prototype;
|
|
3647
|
+
function w(E) {
|
|
3643
3648
|
if (process.env.NODE_ENV !== "production")
|
|
3644
3649
|
var K = {}, k = 0;
|
|
3645
|
-
function P(T, B, W, j, J, q,
|
|
3646
|
-
if (j = j || g, q = q || W,
|
|
3650
|
+
function P(T, B, W, j, J, q, ae) {
|
|
3651
|
+
if (j = j || g, q = q || W, ae !== n) {
|
|
3647
3652
|
if (l) {
|
|
3648
3653
|
var R = new Error(
|
|
3649
3654
|
"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"
|
|
@@ -3657,7 +3662,7 @@ function Cp() {
|
|
|
3657
3662
|
), K[fe] = !0, k++);
|
|
3658
3663
|
}
|
|
3659
3664
|
}
|
|
3660
|
-
return B[W] == null ? T ? B[W] === null ? new
|
|
3665
|
+
return B[W] == null ? T ? B[W] === null ? new v("The " + J + " `" + q + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new v("The " + J + " `" + q + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : E(B, W, j, J, q);
|
|
3661
3666
|
}
|
|
3662
3667
|
var A = P.bind(null, !1);
|
|
3663
3668
|
return A.isRequired = P.bind(null, !0), A;
|
|
@@ -3667,26 +3672,26 @@ function Cp() {
|
|
|
3667
3672
|
var j = k[P], J = pe(j);
|
|
3668
3673
|
if (J !== E) {
|
|
3669
3674
|
var q = oe(j);
|
|
3670
|
-
return new
|
|
3675
|
+
return new v(
|
|
3671
3676
|
"Invalid " + T + " `" + B + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected ") + ("`" + E + "`."),
|
|
3672
3677
|
{ expectedType: E }
|
|
3673
3678
|
);
|
|
3674
3679
|
}
|
|
3675
3680
|
return null;
|
|
3676
3681
|
}
|
|
3677
|
-
return
|
|
3682
|
+
return w(K);
|
|
3678
3683
|
}
|
|
3679
3684
|
function y() {
|
|
3680
|
-
return
|
|
3685
|
+
return w(a);
|
|
3681
3686
|
}
|
|
3682
3687
|
function C(E) {
|
|
3683
3688
|
function K(k, P, A, T, B) {
|
|
3684
3689
|
if (typeof E != "function")
|
|
3685
|
-
return new
|
|
3690
|
+
return new v("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
3686
3691
|
var W = k[P];
|
|
3687
3692
|
if (!Array.isArray(W)) {
|
|
3688
3693
|
var j = pe(W);
|
|
3689
|
-
return new
|
|
3694
|
+
return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an array."));
|
|
3690
3695
|
}
|
|
3691
3696
|
for (var J = 0; J < W.length; J++) {
|
|
3692
3697
|
var q = E(W, J, A, T, B + "[" + J + "]", n);
|
|
@@ -3695,39 +3700,39 @@ function Cp() {
|
|
|
3695
3700
|
}
|
|
3696
3701
|
return null;
|
|
3697
3702
|
}
|
|
3698
|
-
return
|
|
3703
|
+
return w(K);
|
|
3699
3704
|
}
|
|
3700
3705
|
function b() {
|
|
3701
3706
|
function E(K, k, P, A, T) {
|
|
3702
3707
|
var B = K[k];
|
|
3703
3708
|
if (!s(B)) {
|
|
3704
3709
|
var W = pe(B);
|
|
3705
|
-
return new
|
|
3710
|
+
return new v("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
3706
3711
|
}
|
|
3707
3712
|
return null;
|
|
3708
3713
|
}
|
|
3709
|
-
return
|
|
3714
|
+
return w(E);
|
|
3710
3715
|
}
|
|
3711
3716
|
function I() {
|
|
3712
3717
|
function E(K, k, P, A, T) {
|
|
3713
3718
|
var B = K[k];
|
|
3714
3719
|
if (!e.isValidElementType(B)) {
|
|
3715
3720
|
var W = pe(B);
|
|
3716
|
-
return new
|
|
3721
|
+
return new v("Invalid " + A + " `" + T + "` of type " + ("`" + W + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
3717
3722
|
}
|
|
3718
3723
|
return null;
|
|
3719
3724
|
}
|
|
3720
|
-
return
|
|
3725
|
+
return w(E);
|
|
3721
3726
|
}
|
|
3722
3727
|
function N(E) {
|
|
3723
3728
|
function K(k, P, A, T, B) {
|
|
3724
3729
|
if (!(k[P] instanceof E)) {
|
|
3725
3730
|
var W = E.name || g, j = Ae(k[P]);
|
|
3726
|
-
return new
|
|
3731
|
+
return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected ") + ("instance of `" + W + "`."));
|
|
3727
3732
|
}
|
|
3728
3733
|
return null;
|
|
3729
3734
|
}
|
|
3730
|
-
return
|
|
3735
|
+
return w(K);
|
|
3731
3736
|
}
|
|
3732
3737
|
function V(E) {
|
|
3733
3738
|
if (!Array.isArray(E))
|
|
@@ -3738,21 +3743,21 @@ function Cp() {
|
|
|
3738
3743
|
for (var W = k[P], j = 0; j < E.length; j++)
|
|
3739
3744
|
if (m(W, E[j]))
|
|
3740
3745
|
return null;
|
|
3741
|
-
var J = JSON.stringify(E, function(
|
|
3746
|
+
var J = JSON.stringify(E, function(ae, R) {
|
|
3742
3747
|
var fe = oe(R);
|
|
3743
3748
|
return fe === "symbol" ? String(R) : R;
|
|
3744
3749
|
});
|
|
3745
|
-
return new
|
|
3750
|
+
return new v("Invalid " + T + " `" + B + "` of value `" + String(W) + "` " + ("supplied to `" + A + "`, expected one of " + J + "."));
|
|
3746
3751
|
}
|
|
3747
|
-
return
|
|
3752
|
+
return w(K);
|
|
3748
3753
|
}
|
|
3749
3754
|
function D(E) {
|
|
3750
3755
|
function K(k, P, A, T, B) {
|
|
3751
3756
|
if (typeof E != "function")
|
|
3752
|
-
return new
|
|
3757
|
+
return new v("Property `" + B + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
3753
3758
|
var W = k[P], j = pe(W);
|
|
3754
3759
|
if (j !== "object")
|
|
3755
|
-
return new
|
|
3760
|
+
return new v("Invalid " + T + " `" + B + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an object."));
|
|
3756
3761
|
for (var J in W)
|
|
3757
3762
|
if (o(W, J)) {
|
|
3758
3763
|
var q = E(W, J, A, T, B + "." + J, n);
|
|
@@ -3761,7 +3766,7 @@ function Cp() {
|
|
|
3761
3766
|
}
|
|
3762
3767
|
return null;
|
|
3763
3768
|
}
|
|
3764
|
-
return
|
|
3769
|
+
return w(K);
|
|
3765
3770
|
}
|
|
3766
3771
|
function H(E) {
|
|
3767
3772
|
if (!Array.isArray(E))
|
|
@@ -3775,24 +3780,24 @@ function Cp() {
|
|
|
3775
3780
|
}
|
|
3776
3781
|
function P(A, T, B, W, j) {
|
|
3777
3782
|
for (var J = [], q = 0; q < E.length; q++) {
|
|
3778
|
-
var
|
|
3783
|
+
var ae = E[q], R = ae(A, T, B, W, j, n);
|
|
3779
3784
|
if (R == null)
|
|
3780
3785
|
return null;
|
|
3781
3786
|
R.data && o(R.data, "expectedType") && J.push(R.data.expectedType);
|
|
3782
3787
|
}
|
|
3783
3788
|
var fe = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
3784
|
-
return new
|
|
3789
|
+
return new v("Invalid " + W + " `" + j + "` supplied to " + ("`" + B + "`" + fe + "."));
|
|
3785
3790
|
}
|
|
3786
|
-
return
|
|
3791
|
+
return w(P);
|
|
3787
3792
|
}
|
|
3788
3793
|
function Y() {
|
|
3789
3794
|
function E(K, k, P, A, T) {
|
|
3790
|
-
return Q(K[k]) ? null : new
|
|
3795
|
+
return Q(K[k]) ? null : new v("Invalid " + A + " `" + T + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
3791
3796
|
}
|
|
3792
|
-
return
|
|
3797
|
+
return w(E);
|
|
3793
3798
|
}
|
|
3794
3799
|
function z(E, K, k, P, A) {
|
|
3795
|
-
return new
|
|
3800
|
+
return new v(
|
|
3796
3801
|
(E || "React class") + ": " + K + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
3797
3802
|
);
|
|
3798
3803
|
}
|
|
@@ -3800,41 +3805,41 @@ function Cp() {
|
|
|
3800
3805
|
function K(k, P, A, T, B) {
|
|
3801
3806
|
var W = k[P], j = pe(W);
|
|
3802
3807
|
if (j !== "object")
|
|
3803
|
-
return new
|
|
3808
|
+
return new v("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3804
3809
|
for (var J in E) {
|
|
3805
3810
|
var q = E[J];
|
|
3806
3811
|
if (typeof q != "function")
|
|
3807
3812
|
return z(A, T, B, J, oe(q));
|
|
3808
|
-
var
|
|
3809
|
-
if (
|
|
3810
|
-
return
|
|
3813
|
+
var ae = q(W, J, A, T, B + "." + J, n);
|
|
3814
|
+
if (ae)
|
|
3815
|
+
return ae;
|
|
3811
3816
|
}
|
|
3812
3817
|
return null;
|
|
3813
3818
|
}
|
|
3814
|
-
return
|
|
3819
|
+
return w(K);
|
|
3815
3820
|
}
|
|
3816
3821
|
function ne(E) {
|
|
3817
3822
|
function K(k, P, A, T, B) {
|
|
3818
3823
|
var W = k[P], j = pe(W);
|
|
3819
3824
|
if (j !== "object")
|
|
3820
|
-
return new
|
|
3825
|
+
return new v("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3821
3826
|
var J = t({}, k[P], E);
|
|
3822
3827
|
for (var q in J) {
|
|
3823
|
-
var
|
|
3824
|
-
if (o(E, q) && typeof
|
|
3825
|
-
return z(A, T, B, q, oe(
|
|
3826
|
-
if (!
|
|
3827
|
-
return new
|
|
3828
|
+
var ae = E[q];
|
|
3829
|
+
if (o(E, q) && typeof ae != "function")
|
|
3830
|
+
return z(A, T, B, q, oe(ae));
|
|
3831
|
+
if (!ae)
|
|
3832
|
+
return new v(
|
|
3828
3833
|
"Invalid " + T + " `" + B + "` key `" + q + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
|
|
3829
3834
|
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
3830
3835
|
);
|
|
3831
|
-
var R =
|
|
3836
|
+
var R = ae(W, q, A, T, B + "." + q, n);
|
|
3832
3837
|
if (R)
|
|
3833
3838
|
return R;
|
|
3834
3839
|
}
|
|
3835
3840
|
return null;
|
|
3836
3841
|
}
|
|
3837
|
-
return
|
|
3842
|
+
return w(K);
|
|
3838
3843
|
}
|
|
3839
3844
|
function Q(E) {
|
|
3840
3845
|
switch (typeof E) {
|
|
@@ -3979,27 +3984,27 @@ function Tp() {
|
|
|
3979
3984
|
Go = 1;
|
|
3980
3985
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m;
|
|
3981
3986
|
m = Symbol.for("react.module.reference");
|
|
3982
|
-
function w
|
|
3983
|
-
if (typeof
|
|
3984
|
-
var O =
|
|
3987
|
+
function v(w) {
|
|
3988
|
+
if (typeof w == "object" && w !== null) {
|
|
3989
|
+
var O = w.$$typeof;
|
|
3985
3990
|
switch (O) {
|
|
3986
3991
|
case e:
|
|
3987
|
-
switch (
|
|
3992
|
+
switch (w = w.type, w) {
|
|
3988
3993
|
case n:
|
|
3989
3994
|
case i:
|
|
3990
3995
|
case o:
|
|
3991
3996
|
case d:
|
|
3992
3997
|
case p:
|
|
3993
|
-
return
|
|
3998
|
+
return w;
|
|
3994
3999
|
default:
|
|
3995
|
-
switch (
|
|
4000
|
+
switch (w = w && w.$$typeof, w) {
|
|
3996
4001
|
case s:
|
|
3997
4002
|
case a:
|
|
3998
4003
|
case l:
|
|
3999
4004
|
case g:
|
|
4000
4005
|
case h:
|
|
4001
4006
|
case r:
|
|
4002
|
-
return
|
|
4007
|
+
return w;
|
|
4003
4008
|
default:
|
|
4004
4009
|
return O;
|
|
4005
4010
|
}
|
|
@@ -4013,33 +4018,33 @@ function Tp() {
|
|
|
4013
4018
|
return !1;
|
|
4014
4019
|
}, le.isConcurrentMode = function() {
|
|
4015
4020
|
return !1;
|
|
4016
|
-
}, le.isContextConsumer = function(
|
|
4017
|
-
return w
|
|
4018
|
-
}, le.isContextProvider = function(
|
|
4019
|
-
return w
|
|
4020
|
-
}, le.isElement = function(
|
|
4021
|
-
return typeof
|
|
4022
|
-
}, le.isForwardRef = function(
|
|
4023
|
-
return w
|
|
4024
|
-
}, le.isFragment = function(
|
|
4025
|
-
return w
|
|
4026
|
-
}, le.isLazy = function(
|
|
4027
|
-
return w
|
|
4028
|
-
}, le.isMemo = function(
|
|
4029
|
-
return w
|
|
4030
|
-
}, le.isPortal = function(
|
|
4031
|
-
return w
|
|
4032
|
-
}, le.isProfiler = function(
|
|
4033
|
-
return w
|
|
4034
|
-
}, le.isStrictMode = function(
|
|
4035
|
-
return w
|
|
4036
|
-
}, le.isSuspense = function(
|
|
4037
|
-
return w
|
|
4038
|
-
}, le.isSuspenseList = function(
|
|
4039
|
-
return w
|
|
4040
|
-
}, le.isValidElementType = function(
|
|
4041
|
-
return typeof
|
|
4042
|
-
}, le.typeOf =
|
|
4021
|
+
}, le.isContextConsumer = function(w) {
|
|
4022
|
+
return v(w) === a;
|
|
4023
|
+
}, le.isContextProvider = function(w) {
|
|
4024
|
+
return v(w) === r;
|
|
4025
|
+
}, le.isElement = function(w) {
|
|
4026
|
+
return typeof w == "object" && w !== null && w.$$typeof === e;
|
|
4027
|
+
}, le.isForwardRef = function(w) {
|
|
4028
|
+
return v(w) === l;
|
|
4029
|
+
}, le.isFragment = function(w) {
|
|
4030
|
+
return v(w) === n;
|
|
4031
|
+
}, le.isLazy = function(w) {
|
|
4032
|
+
return v(w) === g;
|
|
4033
|
+
}, le.isMemo = function(w) {
|
|
4034
|
+
return v(w) === h;
|
|
4035
|
+
}, le.isPortal = function(w) {
|
|
4036
|
+
return v(w) === t;
|
|
4037
|
+
}, le.isProfiler = function(w) {
|
|
4038
|
+
return v(w) === i;
|
|
4039
|
+
}, le.isStrictMode = function(w) {
|
|
4040
|
+
return v(w) === o;
|
|
4041
|
+
}, le.isSuspense = function(w) {
|
|
4042
|
+
return v(w) === d;
|
|
4043
|
+
}, le.isSuspenseList = function(w) {
|
|
4044
|
+
return v(w) === p;
|
|
4045
|
+
}, le.isValidElementType = function(w) {
|
|
4046
|
+
return typeof w == "string" || typeof w == "function" || w === n || w === i || w === o || w === d || w === p || w === f || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === h || w.$$typeof === r || w.$$typeof === a || w.$$typeof === l || w.$$typeof === m || w.getModuleId !== void 0);
|
|
4047
|
+
}, le.typeOf = v, le;
|
|
4043
4048
|
}
|
|
4044
4049
|
var ue = {};
|
|
4045
4050
|
/**
|
|
@@ -4054,10 +4059,10 @@ var ue = {};
|
|
|
4054
4059
|
var Zo;
|
|
4055
4060
|
function xp() {
|
|
4056
4061
|
return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4057
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m = !1,
|
|
4062
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m = !1, v = !1, w = !1, O = !1, y = !1, C;
|
|
4058
4063
|
C = Symbol.for("react.module.reference");
|
|
4059
4064
|
function b($) {
|
|
4060
|
-
return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === i || y || $ === o || $ === d || $ === p || O || $ === f || m ||
|
|
4065
|
+
return !!(typeof $ == "string" || typeof $ == "function" || $ === n || $ === i || y || $ === o || $ === d || $ === p || O || $ === f || m || v || w || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === h || $.$$typeof === r || $.$$typeof === a || $.$$typeof === l || // This needs to include all possible module reference object
|
|
4061
4066
|
// types supported by any Flight configuration anywhere since
|
|
4062
4067
|
// we don't know which Flight build this will end up being used
|
|
4063
4068
|
// with.
|
|
@@ -4129,7 +4134,7 @@ function xp() {
|
|
|
4129
4134
|
function q($) {
|
|
4130
4135
|
return I($) === i;
|
|
4131
4136
|
}
|
|
4132
|
-
function
|
|
4137
|
+
function ae($) {
|
|
4133
4138
|
return I($) === o;
|
|
4134
4139
|
}
|
|
4135
4140
|
function R($) {
|
|
@@ -4138,7 +4143,7 @@ function xp() {
|
|
|
4138
4143
|
function fe($) {
|
|
4139
4144
|
return I($) === p;
|
|
4140
4145
|
}
|
|
4141
|
-
ue.ContextConsumer = N, ue.ContextProvider = V, ue.Element = D, ue.ForwardRef = H, ue.Fragment = Y, ue.Lazy = z, ue.Memo = Z, ue.Portal = ne, ue.Profiler = Q, ue.StrictMode = de, ue.Suspense = pe, ue.SuspenseList = oe, ue.isAsyncMode = E, ue.isConcurrentMode = K, ue.isContextConsumer = k, ue.isContextProvider = P, ue.isElement = A, ue.isForwardRef = T, ue.isFragment = B, ue.isLazy = W, ue.isMemo = j, ue.isPortal = J, ue.isProfiler = q, ue.isStrictMode =
|
|
4146
|
+
ue.ContextConsumer = N, ue.ContextProvider = V, ue.Element = D, ue.ForwardRef = H, ue.Fragment = Y, ue.Lazy = z, ue.Memo = Z, ue.Portal = ne, ue.Profiler = Q, ue.StrictMode = de, ue.Suspense = pe, ue.SuspenseList = oe, ue.isAsyncMode = E, ue.isConcurrentMode = K, ue.isContextConsumer = k, ue.isContextProvider = P, ue.isElement = A, ue.isForwardRef = T, ue.isFragment = B, ue.isLazy = W, ue.isMemo = j, ue.isPortal = J, ue.isProfiler = q, ue.isStrictMode = ae, ue.isSuspense = R, ue.isSuspenseList = fe, ue.isValidElementType = b, ue.typeOf = I;
|
|
4142
4147
|
}()), ue;
|
|
4143
4148
|
}
|
|
4144
4149
|
process.env.NODE_ENV === "production" ? Tr.exports = Tp() : Tr.exports = xp();
|
|
@@ -4176,7 +4181,7 @@ const ei = (e) => typeof e == "object" && e != null && e.nodeType === 1, ti = (e
|
|
|
4176
4181
|
}
|
|
4177
4182
|
m != null && m === document.body && _r(m) && !_r(document.documentElement) || m != null && _r(m, p) && f.push(m);
|
|
4178
4183
|
}
|
|
4179
|
-
const
|
|
4184
|
+
const v = (o = (n = window.visualViewport) == null ? void 0 : n.width) != null ? o : innerWidth, w = (r = (i = window.visualViewport) == null ? void 0 : i.height) != null ? r : innerHeight, { scrollX: O, scrollY: y } = window, { height: C, width: b, top: I, right: N, bottom: V, left: D } = e.getBoundingClientRect(), { top: H, right: Y, bottom: z, left: Z } = ((pe) => {
|
|
4180
4185
|
const oe = window.getComputedStyle(pe);
|
|
4181
4186
|
return { top: parseFloat(oe.scrollMarginTop) || 0, right: parseFloat(oe.scrollMarginRight) || 0, bottom: parseFloat(oe.scrollMarginBottom) || 0, left: parseFloat(oe.scrollMarginLeft) || 0 };
|
|
4182
4187
|
})(e);
|
|
@@ -4184,15 +4189,15 @@ const ei = (e) => typeof e == "object" && e != null && e.nodeType === 1, ti = (e
|
|
|
4184
4189
|
const de = [];
|
|
4185
4190
|
for (let pe = 0; pe < f.length; pe++) {
|
|
4186
4191
|
const oe = f[pe], { height: Te, width: Ae, top: E, right: K, bottom: k, left: P } = oe.getBoundingClientRect();
|
|
4187
|
-
if (a === "if-needed" && I >= 0 && D >= 0 && V <=
|
|
4192
|
+
if (a === "if-needed" && I >= 0 && D >= 0 && V <= w && N <= v && I >= E && V <= k && D >= P && N <= K) return de;
|
|
4188
4193
|
const A = getComputedStyle(oe), T = parseInt(A.borderLeftWidth, 10), B = parseInt(A.borderTopWidth, 10), W = parseInt(A.borderRightWidth, 10), j = parseInt(A.borderBottomWidth, 10);
|
|
4189
4194
|
let J = 0, q = 0;
|
|
4190
|
-
const
|
|
4191
|
-
if (g === oe) J = s === "start" ? ne : s === "end" ? ne -
|
|
4195
|
+
const ae = "offsetWidth" in oe ? oe.offsetWidth - oe.clientWidth - T - W : 0, R = "offsetHeight" in oe ? oe.offsetHeight - oe.clientHeight - B - j : 0, fe = "offsetWidth" in oe ? oe.offsetWidth === 0 ? 0 : Ae / oe.offsetWidth : 0, $ = "offsetHeight" in oe ? oe.offsetHeight === 0 ? 0 : Te / oe.offsetHeight : 0;
|
|
4196
|
+
if (g === oe) J = s === "start" ? ne : s === "end" ? ne - w : s === "nearest" ? xn(y, y + w, w, B, j, y + ne, y + ne + C, C) : ne - w / 2, q = l === "start" ? Q : l === "center" ? Q - v / 2 : l === "end" ? Q - v : xn(O, O + v, v, T, W, O + Q, O + Q + b, b), J = Math.max(0, J + y), q = Math.max(0, q + O);
|
|
4192
4197
|
else {
|
|
4193
|
-
J = s === "start" ? ne - E - B : s === "end" ? ne - k + j + R : s === "nearest" ? xn(E, k, Te, B, j + R, ne, ne + C, C) : ne - (E + Te / 2) + R / 2, q = l === "start" ? Q - P - T : l === "center" ? Q - (P + Ae / 2) +
|
|
4198
|
+
J = s === "start" ? ne - E - B : s === "end" ? ne - k + j + R : s === "nearest" ? xn(E, k, Te, B, j + R, ne, ne + C, C) : ne - (E + Te / 2) + R / 2, q = l === "start" ? Q - P - T : l === "center" ? Q - (P + Ae / 2) + ae / 2 : l === "end" ? Q - K + W + ae : xn(P, K, Ae, T, W + ae, Q, Q + b, b);
|
|
4194
4199
|
const { scrollLeft: Pe, scrollTop: De } = oe;
|
|
4195
|
-
J = $ === 0 ? 0 : Math.max(0, Math.min(De + J / $, oe.scrollHeight - Te / $ + R)), q = fe === 0 ? 0 : Math.max(0, Math.min(Pe + q / fe, oe.scrollWidth - Ae / fe +
|
|
4200
|
+
J = $ === 0 ? 0 : Math.max(0, Math.min(De + J / $, oe.scrollHeight - Te / $ + R)), q = fe === 0 ? 0 : Math.max(0, Math.min(Pe + q / fe, oe.scrollWidth - Ae / fe + ae)), ne += De - J, Q += Pe - q;
|
|
4196
4201
|
}
|
|
4197
4202
|
de.push({ el: oe, top: J, left: q });
|
|
4198
4203
|
}
|
|
@@ -4733,11 +4738,11 @@ var la = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
4733
4738
|
r.previousResultCount = I, ca(N, r.props.environment.document);
|
|
4734
4739
|
}
|
|
4735
4740
|
}, 200);
|
|
4736
|
-
var a = r.props, s = a.defaultHighlightedIndex, l = a.initialHighlightedIndex, d = l === void 0 ? s : l, p = a.defaultIsOpen, h = a.initialIsOpen, g = h === void 0 ? p : h, f = a.initialInputValue, m = f === void 0 ? "" : f,
|
|
4741
|
+
var a = r.props, s = a.defaultHighlightedIndex, l = a.initialHighlightedIndex, d = l === void 0 ? s : l, p = a.defaultIsOpen, h = a.initialIsOpen, g = h === void 0 ? p : h, f = a.initialInputValue, m = f === void 0 ? "" : f, v = a.initialSelectedItem, w = v === void 0 ? null : v, O = r.getState({
|
|
4737
4742
|
highlightedIndex: d,
|
|
4738
4743
|
isOpen: g,
|
|
4739
4744
|
inputValue: m,
|
|
4740
|
-
selectedItem:
|
|
4745
|
+
selectedItem: w
|
|
4741
4746
|
});
|
|
4742
4747
|
return O.selectedItem != null && r.props.initialInputValue === void 0 && (O.inputValue = r.props.itemToString(O.selectedItem)), r.state = O, r;
|
|
4743
4748
|
}
|
|
@@ -4768,14 +4773,14 @@ var la = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
4768
4773
|
this.setHighlightedIndex(p, a);
|
|
4769
4774
|
}
|
|
4770
4775
|
}, o.getStateAndHelpers = function() {
|
|
4771
|
-
var r = this.getState(), a = r.highlightedIndex, s = r.inputValue, l = r.selectedItem, d = r.isOpen, p = this.props.itemToString, h = this.id, g = this.getRootProps, f = this.getToggleButtonProps, m = this.getLabelProps,
|
|
4776
|
+
var r = this.getState(), a = r.highlightedIndex, s = r.inputValue, l = r.selectedItem, d = r.isOpen, p = this.props.itemToString, h = this.id, g = this.getRootProps, f = this.getToggleButtonProps, m = this.getLabelProps, v = this.getMenuProps, w = this.getInputProps, O = this.getItemProps, y = this.openMenu, C = this.closeMenu, b = this.toggleMenu, I = this.selectItem, N = this.selectItemAtIndex, V = this.selectHighlightedItem, D = this.setHighlightedIndex, H = this.clearSelection, Y = this.clearItems, z = this.reset, Z = this.setItemCount, ne = this.unsetItemCount, Q = this.internalSetState;
|
|
4772
4777
|
return {
|
|
4773
4778
|
// prop getters
|
|
4774
4779
|
getRootProps: g,
|
|
4775
4780
|
getToggleButtonProps: f,
|
|
4776
4781
|
getLabelProps: m,
|
|
4777
|
-
getMenuProps:
|
|
4778
|
-
getInputProps:
|
|
4782
|
+
getMenuProps: v,
|
|
4783
|
+
getInputProps: w,
|
|
4779
4784
|
getItemProps: O,
|
|
4780
4785
|
// actions
|
|
4781
4786
|
reset: z,
|
|
@@ -4964,7 +4969,7 @@ function Xp(e, t) {
|
|
|
4964
4969
|
}
|
|
4965
4970
|
var ai = Wr(function(e, t) {
|
|
4966
4971
|
ca(e, t);
|
|
4967
|
-
}, 200), Yp = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? _c :
|
|
4972
|
+
}, 200), Yp = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? _c : ie, Gp = "useId" in Ut ? function(t) {
|
|
4968
4973
|
var n = t.id, o = t.labelId, i = t.menuId, r = t.getItemId, a = t.toggleButtonId, s = t.inputId, l = "downshift-" + Ut.useId();
|
|
4969
4974
|
n || (n = l);
|
|
4970
4975
|
var d = ke({
|
|
@@ -5009,16 +5014,16 @@ function Oa(e) {
|
|
|
5009
5014
|
function Qp(e, t, n, o) {
|
|
5010
5015
|
var i = ke(), r = ke(), a = ee(function(f, m) {
|
|
5011
5016
|
r.current = m, f = Vn(f, m.props);
|
|
5012
|
-
var
|
|
5013
|
-
changes:
|
|
5017
|
+
var v = e(f, m), w = m.props.stateReducer(f, re({}, m, {
|
|
5018
|
+
changes: v
|
|
5014
5019
|
}));
|
|
5015
|
-
return
|
|
5020
|
+
return w;
|
|
5016
5021
|
}, [e]), s = bc(a, t, n), l = s[0], d = s[1], p = Oa(t), h = ee(function(f) {
|
|
5017
5022
|
return d(re({
|
|
5018
5023
|
props: p.current
|
|
5019
5024
|
}, f));
|
|
5020
5025
|
}, [p]), g = r.current;
|
|
5021
|
-
return
|
|
5026
|
+
return ie(function() {
|
|
5022
5027
|
var f = Vn(i.current, g == null ? void 0 : g.props), m = g && i.current && !o(f, l);
|
|
5023
5028
|
m && Jp(g, f, l), i.current = l;
|
|
5024
5029
|
}, [l, g, o]), [l, h];
|
|
@@ -5073,7 +5078,7 @@ function tf(e, t, n) {
|
|
|
5073
5078
|
isTouchMove: !1,
|
|
5074
5079
|
isTouchEnd: !1
|
|
5075
5080
|
});
|
|
5076
|
-
return
|
|
5081
|
+
return ie(function() {
|
|
5077
5082
|
if (!e)
|
|
5078
5083
|
return Le;
|
|
5079
5084
|
var i = n.map(function(p) {
|
|
@@ -5108,7 +5113,7 @@ process.env.NODE_ENV !== "production" && (Na = function() {
|
|
|
5108
5113
|
var i = ke(n.reduce(function(a, s) {
|
|
5109
5114
|
return a[s] = {}, a;
|
|
5110
5115
|
}, {}));
|
|
5111
|
-
|
|
5116
|
+
ie(function() {
|
|
5112
5117
|
Object.keys(i.current).forEach(function(a) {
|
|
5113
5118
|
var s = i.current[a];
|
|
5114
5119
|
if (!Object.keys(s).length) {
|
|
@@ -5131,12 +5136,12 @@ process.env.NODE_ENV !== "production" && (Na = function() {
|
|
|
5131
5136
|
function nf(e, t, n, o) {
|
|
5132
5137
|
o === void 0 && (o = {});
|
|
5133
5138
|
var i = o.document, r = er();
|
|
5134
|
-
|
|
5139
|
+
ie(function() {
|
|
5135
5140
|
if (!(!e || r || !i)) {
|
|
5136
5141
|
var a = e(t);
|
|
5137
5142
|
ai(a, i);
|
|
5138
5143
|
}
|
|
5139
|
-
}, n),
|
|
5144
|
+
}, n), ie(function() {
|
|
5140
5145
|
return function() {
|
|
5141
5146
|
ai.cancel(), $p(i);
|
|
5142
5147
|
};
|
|
@@ -5151,7 +5156,7 @@ function rf(e) {
|
|
|
5151
5156
|
var Sa = Le;
|
|
5152
5157
|
process.env.NODE_ENV !== "production" && (Sa = function(t) {
|
|
5153
5158
|
var n = t.props, o = t.state, i = ke(n), r = er();
|
|
5154
|
-
|
|
5159
|
+
ie(function() {
|
|
5155
5160
|
r || (Jr(o, i.current, n), i.current = n);
|
|
5156
5161
|
}, [o, n, r]);
|
|
5157
5162
|
});
|
|
@@ -5350,7 +5355,7 @@ var lf = re({}, Ea, {
|
|
|
5350
5355
|
});
|
|
5351
5356
|
function uf(e, t, n, o) {
|
|
5352
5357
|
var i = ke(), r = Qp(e, t, n, o), a = r[0], s = r[1], l = er();
|
|
5353
|
-
return
|
|
5358
|
+
return ie(function() {
|
|
5354
5359
|
if (Hn(t, "selectedItem")) {
|
|
5355
5360
|
if (!l) {
|
|
5356
5361
|
var d = t.itemToKey(t.selectedItem) !== t.itemToKey(i.current);
|
|
@@ -5473,7 +5478,7 @@ var ff = ["onMouseLeave", "refKey", "ref"], hf = ["item", "index", "refKey", "re
|
|
|
5473
5478
|
co.stateChangeTypes = Ka;
|
|
5474
5479
|
function co(e) {
|
|
5475
5480
|
e === void 0 && (e = {}), $a(e, co);
|
|
5476
|
-
var t = re({}, df, e), n = t.items, o = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, a = uf(pf, t, cf, of), s = a[0], l = a[1], d = s.isOpen, p = s.highlightedIndex, h = s.selectedItem, g = s.inputValue, f = ke(null), m = ke({}),
|
|
5481
|
+
var t = re({}, df, e), n = t.items, o = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, a = uf(pf, t, cf, of), s = a[0], l = a[1], d = s.isOpen, p = s.highlightedIndex, h = s.selectedItem, g = s.inputValue, f = ke(null), m = ke({}), v = ke(null), w = ke(null), O = er(), y = Gp(t), C = ke(), b = Oa({
|
|
5477
5482
|
state: s,
|
|
5478
5483
|
props: t
|
|
5479
5484
|
}), I = ee(function(k) {
|
|
@@ -5491,10 +5496,10 @@ function co(e) {
|
|
|
5491
5496
|
Sa({
|
|
5492
5497
|
props: t,
|
|
5493
5498
|
state: s
|
|
5494
|
-
}),
|
|
5499
|
+
}), ie(function() {
|
|
5495
5500
|
var k = ln(t, "isOpen");
|
|
5496
|
-
k &&
|
|
5497
|
-
}, []),
|
|
5501
|
+
k && v.current && v.current.focus();
|
|
5502
|
+
}, []), ie(function() {
|
|
5498
5503
|
O || (C.current = n.length);
|
|
5499
5504
|
});
|
|
5500
5505
|
var V = tf(i, ee(function() {
|
|
@@ -5503,13 +5508,13 @@ function co(e) {
|
|
|
5503
5508
|
selectItem: !1
|
|
5504
5509
|
});
|
|
5505
5510
|
}, [l, b]), Re(function() {
|
|
5506
|
-
return [f,
|
|
5507
|
-
}, [f.current,
|
|
5508
|
-
|
|
5511
|
+
return [f, w, v];
|
|
5512
|
+
}, [f.current, w.current, v.current])), D = Na("getInputProps", "getMenuProps");
|
|
5513
|
+
ie(function() {
|
|
5509
5514
|
d || (m.current = {});
|
|
5510
|
-
}, [d]),
|
|
5515
|
+
}, [d]), ie(function() {
|
|
5511
5516
|
var k;
|
|
5512
|
-
!d || !(i != null && i.document) || !(
|
|
5517
|
+
!d || !(i != null && i.document) || !(v != null && (k = v.current) != null && k.focus) || i.document.activeElement !== v.current && v.current.focus();
|
|
5513
5518
|
}, [d, i]);
|
|
5514
5519
|
var H = Re(function() {
|
|
5515
5520
|
return {
|
|
@@ -5564,7 +5569,7 @@ function co(e) {
|
|
|
5564
5569
|
htmlFor: y.inputId
|
|
5565
5570
|
}, k);
|
|
5566
5571
|
}, [y]), z = ee(function(k, P) {
|
|
5567
|
-
var A, T = k === void 0 ? {} : k, B = T.onMouseLeave, W = T.refKey, j = W === void 0 ? "ref" : W, J = T.ref, q = pt(T, ff),
|
|
5572
|
+
var A, T = k === void 0 ? {} : k, B = T.onMouseLeave, W = T.refKey, j = W === void 0 ? "ref" : W, J = T.ref, q = pt(T, ff), ae = P === void 0 ? {} : P, R = ae.suppressRefError, fe = R === void 0 ? !1 : R;
|
|
5568
5573
|
return D("getMenuProps", fe, j, f), re((A = {}, A[j] = Ht(J, function($) {
|
|
5569
5574
|
f.current = $;
|
|
5570
5575
|
}), A.id = y.menuId, A.role = "listbox", A["aria-labelledby"] = q && q["aria-label"] ? void 0 : "" + y.labelId, A.onMouseLeave = be(B, function() {
|
|
@@ -5573,7 +5578,7 @@ function co(e) {
|
|
|
5573
5578
|
});
|
|
5574
5579
|
}), A), q);
|
|
5575
5580
|
}, [l, D, y]), Z = ee(function(k) {
|
|
5576
|
-
var P, A, T = k === void 0 ? {} : k, B = T.item, W = T.index, j = T.refKey, J = j === void 0 ? "ref" : j, q = T.ref,
|
|
5581
|
+
var P, A, T = k === void 0 ? {} : k, B = T.item, W = T.index, j = T.refKey, J = j === void 0 ? "ref" : j, q = T.ref, ae = T.onMouseMove, R = T.onMouseDown, fe = T.onClick;
|
|
5577
5582
|
T.onPress;
|
|
5578
5583
|
var $ = T.disabled, Pe = pt(T, hf);
|
|
5579
5584
|
$ !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
@@ -5594,27 +5599,27 @@ function co(e) {
|
|
|
5594
5599
|
return re((P = {}, P[J] = Ht(q, function(Fe) {
|
|
5595
5600
|
Fe && (m.current[y.getItemId(Ye)] = Fe);
|
|
5596
5601
|
}), P["aria-disabled"] = St, P["aria-selected"] = Ye === Xe.highlightedIndex, P.id = y.getItemId(Ye), P.role = "option", P), !St && (A = {}, A[en] = be(Lt, ct), A), {
|
|
5597
|
-
onMouseMove: be(
|
|
5602
|
+
onMouseMove: be(ae, nt),
|
|
5598
5603
|
onMouseDown: be(R, Ke)
|
|
5599
5604
|
}, Pe);
|
|
5600
5605
|
}, [l, y, b, V, N]), ne = ee(function(k) {
|
|
5601
5606
|
var P, A = k === void 0 ? {} : k, T = A.onClick;
|
|
5602
5607
|
A.onPress;
|
|
5603
|
-
var B = A.refKey, W = B === void 0 ? "ref" : B, j = A.ref, J = pt(A, mf), q = b.current.state,
|
|
5608
|
+
var B = A.refKey, W = B === void 0 ? "ref" : B, j = A.ref, J = pt(A, mf), q = b.current.state, ae = function() {
|
|
5604
5609
|
l({
|
|
5605
5610
|
type: Ra
|
|
5606
5611
|
});
|
|
5607
5612
|
};
|
|
5608
5613
|
return re((P = {}, P[W] = Ht(j, function(R) {
|
|
5609
|
-
|
|
5614
|
+
w.current = R;
|
|
5610
5615
|
}), P["aria-controls"] = y.menuId, P["aria-expanded"] = q.isOpen, P.id = y.toggleButtonId, P.tabIndex = -1, P), !J.disabled && re({}, {
|
|
5611
|
-
onClick: be(T,
|
|
5616
|
+
onClick: be(T, ae)
|
|
5612
5617
|
}), J);
|
|
5613
5618
|
}, [l, b, y]), Q = ee(function(k, P) {
|
|
5614
5619
|
var A, T = k === void 0 ? {} : k, B = T.onKeyDown, W = T.onChange, j = T.onInput, J = T.onBlur;
|
|
5615
5620
|
T.onChangeText;
|
|
5616
|
-
var q = T.onClick,
|
|
5617
|
-
D("getInputProps", st, R,
|
|
5621
|
+
var q = T.onClick, ae = T.refKey, R = ae === void 0 ? "ref" : ae, fe = T.ref, $ = pt(T, gf), Pe = P === void 0 ? {} : P, De = Pe.suppressRefError, st = De === void 0 ? !1 : De;
|
|
5622
|
+
D("getInputProps", st, R, v);
|
|
5618
5623
|
var Xe = b.current.state, $t = function(Ke) {
|
|
5619
5624
|
var Fe = xr(Ke);
|
|
5620
5625
|
Fe && H[Fe] && H[Fe](Ke);
|
|
@@ -5641,7 +5646,7 @@ function co(e) {
|
|
|
5641
5646
|
Lt = (nt = {}, nt[en] = be(W, j, Qt), nt.onKeyDown = be(B, $t), nt.onBlur = be(J, Ye), nt.onClick = be(q, St), nt);
|
|
5642
5647
|
}
|
|
5643
5648
|
return re((A = {}, A[R] = Ht(fe, function(ct) {
|
|
5644
|
-
|
|
5649
|
+
v.current = ct;
|
|
5645
5650
|
}), A["aria-activedescendant"] = Xe.isOpen && Xe.highlightedIndex > -1 ? y.getItemId(Xe.highlightedIndex) : "", A["aria-autocomplete"] = "list", A["aria-controls"] = y.menuId, A["aria-expanded"] = Xe.isOpen, A["aria-labelledby"] = $ && $["aria-label"] ? void 0 : y.labelId, A.autoComplete = "off", A.id = y.inputId, A.role = "combobox", A.value = Xe.inputValue, A), Lt, $);
|
|
5646
5651
|
}, [l, y, i, H, b, V, D]), de = ee(function() {
|
|
5647
5652
|
l({
|
|
@@ -5738,7 +5743,9 @@ function Tf({
|
|
|
5738
5743
|
// label,
|
|
5739
5744
|
placeholder: o
|
|
5740
5745
|
}) {
|
|
5741
|
-
const [i, r] = U(e)
|
|
5746
|
+
const [i, r] = U(e);
|
|
5747
|
+
ie(() => r(e), [e]);
|
|
5748
|
+
const a = (f) => {
|
|
5742
5749
|
r(e.filter(Ef(f)));
|
|
5743
5750
|
}, {
|
|
5744
5751
|
isOpen: s,
|
|
@@ -6285,7 +6292,7 @@ function Uf({ children: e }) {
|
|
|
6285
6292
|
i,
|
|
6286
6293
|
r
|
|
6287
6294
|
] = U(Hf), a = t == null ? void 0 : t.config;
|
|
6288
|
-
|
|
6295
|
+
ie(() => {
|
|
6289
6296
|
n != null && n.content && !o && a && !(Object.entries(i).length > 0) && Qd(
|
|
6290
6297
|
n,
|
|
6291
6298
|
a,
|
|
@@ -6293,12 +6300,12 @@ function Uf({ children: e }) {
|
|
|
6293
6300
|
);
|
|
6294
6301
|
}, [n, o, a, i]);
|
|
6295
6302
|
const s = ee((f, m) => {
|
|
6296
|
-
r((
|
|
6297
|
-
|
|
6303
|
+
r((v) => sn(v, (w) => {
|
|
6304
|
+
w[f] = sn(w[f], m);
|
|
6298
6305
|
}));
|
|
6299
6306
|
}, [r]), l = ee((f, m) => {
|
|
6300
|
-
r((
|
|
6301
|
-
|
|
6307
|
+
r((v) => sn(v, (w) => {
|
|
6308
|
+
w[f] = m;
|
|
6302
6309
|
}));
|
|
6303
6310
|
}, [r]), d = ee(() => {
|
|
6304
6311
|
r(
|
|
@@ -6310,9 +6317,9 @@ function Uf({ children: e }) {
|
|
|
6310
6317
|
}, [r]), p = ee((f) => {
|
|
6311
6318
|
r(
|
|
6312
6319
|
sn((m) => {
|
|
6313
|
-
var
|
|
6314
|
-
const
|
|
6315
|
-
|
|
6320
|
+
var w;
|
|
6321
|
+
const v = (w = m[f]) == null ? void 0 : w.read;
|
|
6322
|
+
v && (v.isOptionalFieldsModified = !1, v.isRequiredMapFieldsModified = !1);
|
|
6316
6323
|
})
|
|
6317
6324
|
);
|
|
6318
6325
|
}, [r]), h = ee((f) => {
|
|
@@ -6360,7 +6367,7 @@ function Xa(e, t, n, o) {
|
|
|
6360
6367
|
function Bf({ field: e, onSelectChange: t, allFields: n }) {
|
|
6361
6368
|
var f;
|
|
6362
6369
|
const { configureState: o, selectedObjectName: i, setConfigureState: r } = Nt(), [a, s] = U(!0), l = (f = o == null ? void 0 : o.read) == null ? void 0 : f.selectedFieldMappings, d = l == null ? void 0 : l[e.mapToName];
|
|
6363
|
-
|
|
6370
|
+
ie(() => {
|
|
6364
6371
|
e._default && !d && i && o && Xa(i, r, e.mapToName, e._default), s(!1);
|
|
6365
6372
|
}, [e, r, i, d, o]);
|
|
6366
6373
|
const p = Re(() => n == null ? void 0 : n.map(
|
|
@@ -6382,7 +6389,7 @@ function Bf({ field: e, onSelectChange: t, allFields: n }) {
|
|
|
6382
6389
|
}
|
|
6383
6390
|
});
|
|
6384
6391
|
},
|
|
6385
|
-
placeholder: "Please select one"
|
|
6392
|
+
placeholder: d || "Please select one"
|
|
6386
6393
|
}
|
|
6387
6394
|
) : /* @__PURE__ */ c(
|
|
6388
6395
|
Ec,
|
|
@@ -6451,7 +6458,7 @@ function Jf() {
|
|
|
6451
6458
|
var p;
|
|
6452
6459
|
if (!e || !o) return [];
|
|
6453
6460
|
const l = o ? Object.values(o[e] || {}).flat() : [];
|
|
6454
|
-
return (((p = t == null ? void 0 : t.read) == null ? void 0 : p.requiredMapFields) || []).concat(l).reduce((h, g) => h.find((m) => m.mapToName === g.mapToName) ? h.map((m) => m.mapToName === g.mapToName ? g : m) : h.concat(g), new Array()).filter(at)
|
|
6461
|
+
return (((p = t == null ? void 0 : t.read) == null ? void 0 : p.requiredMapFields) || []).concat(l).reduce((h, g) => h.find((m) => m.mapToName === g.mapToName) ? h.map((m) => m.mapToName === g.mapToName ? g : m) : h.concat(g), new Array()).filter(at);
|
|
6455
6462
|
}, [t, o, e]);
|
|
6456
6463
|
return s.length ? /* @__PURE__ */ F(We, { children: [
|
|
6457
6464
|
/* @__PURE__ */ c(Zt, { string: "Map the following fields (required)" }),
|
|
@@ -6494,13 +6501,13 @@ function Xf(e, t = []) {
|
|
|
6494
6501
|
n = [...n, a];
|
|
6495
6502
|
const d = (h) => {
|
|
6496
6503
|
var O;
|
|
6497
|
-
const { scope: g, children: f, ...m } = h,
|
|
6498
|
-
return /* @__PURE__ */ c(
|
|
6504
|
+
const { scope: g, children: f, ...m } = h, v = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[l]) || s, w = X.useMemo(() => m, Object.values(m));
|
|
6505
|
+
return /* @__PURE__ */ c(v.Provider, { value: w, children: f });
|
|
6499
6506
|
};
|
|
6500
6507
|
d.displayName = r + "Provider";
|
|
6501
6508
|
function p(h, g) {
|
|
6502
|
-
var
|
|
6503
|
-
const f = ((
|
|
6509
|
+
var v;
|
|
6510
|
+
const f = ((v = g == null ? void 0 : g[e]) == null ? void 0 : v[l]) || s, m = X.useContext(f);
|
|
6504
6511
|
if (m) return m;
|
|
6505
6512
|
if (a !== void 0) return a;
|
|
6506
6513
|
throw new Error(`\`${h}\` must be used within \`${r}\``);
|
|
@@ -6642,11 +6649,11 @@ function nh(e) {
|
|
|
6642
6649
|
if (t) {
|
|
6643
6650
|
let d;
|
|
6644
6651
|
const p = t.ownerDocument.defaultView ?? window, h = (f) => {
|
|
6645
|
-
const
|
|
6646
|
-
if (f.target === t &&
|
|
6647
|
-
const
|
|
6652
|
+
const v = An(o.current).includes(f.animationName);
|
|
6653
|
+
if (f.target === t && v && (l("ANIMATION_END"), !i.current)) {
|
|
6654
|
+
const w = t.style.animationFillMode;
|
|
6648
6655
|
t.style.animationFillMode = "forwards", d = p.setTimeout(() => {
|
|
6649
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
6656
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
|
|
6650
6657
|
});
|
|
6651
6658
|
}
|
|
6652
6659
|
}, g = (f) => {
|
|
@@ -6736,7 +6743,7 @@ var ch = [
|
|
|
6736
6743
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(s, { ...a, ref: i });
|
|
6737
6744
|
});
|
|
6738
6745
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
6739
|
-
}, {}), ho = "Checkbox", [lh,
|
|
6746
|
+
}, {}), ho = "Checkbox", [lh, pg] = Xf(ho), [uh, dh] = lh(ho), ns = X.forwardRef(
|
|
6740
6747
|
(e, t) => {
|
|
6741
6748
|
const {
|
|
6742
6749
|
__scopeCheckbox: n,
|
|
@@ -6749,7 +6756,7 @@ var ch = [
|
|
|
6749
6756
|
onCheckedChange: d,
|
|
6750
6757
|
form: p,
|
|
6751
6758
|
...h
|
|
6752
|
-
} = e, [g, f] = X.useState(null), m = Ga(t, (b) => f(b)),
|
|
6759
|
+
} = e, [g, f] = X.useState(null), m = Ga(t, (b) => f(b)), v = X.useRef(!1), w = g ? p || !!g.closest("form") : !0, [O = !1, y] = Gf({
|
|
6753
6760
|
prop: i,
|
|
6754
6761
|
defaultProp: r,
|
|
6755
6762
|
onChange: d
|
|
@@ -6778,15 +6785,15 @@ var ch = [
|
|
|
6778
6785
|
b.key === "Enter" && b.preventDefault();
|
|
6779
6786
|
}),
|
|
6780
6787
|
onClick: hi(e.onClick, (b) => {
|
|
6781
|
-
y((I) => _t(I) ? !0 : !I),
|
|
6788
|
+
y((I) => _t(I) ? !0 : !I), w && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
|
|
6782
6789
|
})
|
|
6783
6790
|
}
|
|
6784
6791
|
),
|
|
6785
|
-
|
|
6792
|
+
w && /* @__PURE__ */ c(
|
|
6786
6793
|
ph,
|
|
6787
6794
|
{
|
|
6788
6795
|
control: g,
|
|
6789
|
-
bubbles: !
|
|
6796
|
+
bubbles: !v.current,
|
|
6790
6797
|
name: o,
|
|
6791
6798
|
value: l,
|
|
6792
6799
|
checked: O,
|
|
@@ -7013,12 +7020,12 @@ function Ch() {
|
|
|
7013
7020
|
setConfigureState: n,
|
|
7014
7021
|
selectedObjectName: o
|
|
7015
7022
|
} = Nt(), i = (h = t == null ? void 0 : t.read) == null ? void 0 : h.selectedOptionalFields, r = (f) => {
|
|
7016
|
-
const { name: m, checked:
|
|
7017
|
-
o && t && Jn(o, n, m,
|
|
7023
|
+
const { name: m, checked: v } = f.target;
|
|
7024
|
+
o && t && Jn(o, n, m, v);
|
|
7018
7025
|
}, a = (g = t == null ? void 0 : t.read) == null ? void 0 : g.optionalFields, s = (f) => {
|
|
7019
7026
|
const { checked: m } = f.target;
|
|
7020
|
-
o && a && a.forEach((
|
|
7021
|
-
at(
|
|
7027
|
+
o && a && a.forEach((v) => {
|
|
7028
|
+
at(v) || Jn(o, n, v.fieldName, m);
|
|
7022
7029
|
});
|
|
7023
7030
|
}, l = !!(a && a.length > 0), d = Object.keys(i || {}).length === (a == null ? void 0 : a.length), p = !d && Object.keys(i || {}).length > 0;
|
|
7024
7031
|
return l && /* @__PURE__ */ F(We, { children: [
|
|
@@ -7122,16 +7129,16 @@ function Ph() {
|
|
|
7122
7129
|
selectedObjectName: t,
|
|
7123
7130
|
configureState: n,
|
|
7124
7131
|
setConfigureState: o
|
|
7125
|
-
} = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (
|
|
7126
|
-
|
|
7127
|
-
}, s = (
|
|
7128
|
-
var
|
|
7129
|
-
t && n && ((O = (
|
|
7130
|
-
zn(t, o, y.objectName,
|
|
7132
|
+
} = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (v, w) => {
|
|
7133
|
+
v !== "indeterminate" && t && n && zn(t, o, w, v);
|
|
7134
|
+
}, s = (v) => {
|
|
7135
|
+
var w, O;
|
|
7136
|
+
t && n && ((O = (w = n == null ? void 0 : n.write) == null ? void 0 : w.writeObjects) == null || O.forEach((y) => {
|
|
7137
|
+
zn(t, o, y.objectName, v);
|
|
7131
7138
|
}));
|
|
7132
7139
|
}, l = !!r, d = Object.keys(i || {}).length === ((m = (f = n == null ? void 0 : n.write) == null ? void 0 : f.writeObjects) == null ? void 0 : m.length), p = !d && Object.keys(i || {}).length > 0;
|
|
7133
7140
|
return l && /* @__PURE__ */ F(We, { children: [
|
|
7134
|
-
/* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these
|
|
7141
|
+
/* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these objects` }),
|
|
7135
7142
|
/* @__PURE__ */ F(ps, { children: [
|
|
7136
7143
|
((r == null ? void 0 : r.length) || 0) >= 2 && /* @__PURE__ */ c(
|
|
7137
7144
|
ds,
|
|
@@ -7143,15 +7150,15 @@ function Ph() {
|
|
|
7143
7150
|
label: "Select all"
|
|
7144
7151
|
}
|
|
7145
7152
|
),
|
|
7146
|
-
/* @__PURE__ */ c(fs, { children: r.map((
|
|
7153
|
+
/* @__PURE__ */ c(fs, { children: r.map((v) => /* @__PURE__ */ c(
|
|
7147
7154
|
us,
|
|
7148
7155
|
{
|
|
7149
|
-
id:
|
|
7150
|
-
onCheckedChange: (
|
|
7151
|
-
isChecked: !!(i != null && i[
|
|
7152
|
-
label:
|
|
7156
|
+
id: v.objectName,
|
|
7157
|
+
onCheckedChange: (w) => a(w, v.objectName),
|
|
7158
|
+
isChecked: !!(i != null && i[v.objectName]),
|
|
7159
|
+
label: v.displayName
|
|
7153
7160
|
},
|
|
7154
|
-
|
|
7161
|
+
v.objectName
|
|
7155
7162
|
)) })
|
|
7156
7163
|
] })
|
|
7157
7164
|
] });
|
|
@@ -7163,18 +7170,18 @@ function Dh() {
|
|
|
7163
7170
|
selectedObjectName: t,
|
|
7164
7171
|
configureState: n,
|
|
7165
7172
|
setConfigureState: o
|
|
7166
|
-
} = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (
|
|
7167
|
-
const { name:
|
|
7168
|
-
t && n && zn(t, o,
|
|
7169
|
-
}, s = (
|
|
7173
|
+
} = Nt(), i = (h = n == null ? void 0 : n.write) == null ? void 0 : h.selectedNonConfigurableWriteFields, r = (g = n == null ? void 0 : n.write) == null ? void 0 : g.writeObjects, a = (v) => {
|
|
7174
|
+
const { name: w, checked: O } = v.target;
|
|
7175
|
+
t && n && zn(t, o, w, O);
|
|
7176
|
+
}, s = (v) => {
|
|
7170
7177
|
var O, y;
|
|
7171
|
-
const { checked:
|
|
7178
|
+
const { checked: w } = v.target;
|
|
7172
7179
|
t && n && ((y = (O = n == null ? void 0 : n.write) == null ? void 0 : O.writeObjects) == null || y.forEach((C) => {
|
|
7173
|
-
zn(t, o, C.objectName,
|
|
7180
|
+
zn(t, o, C.objectName, w);
|
|
7174
7181
|
}));
|
|
7175
7182
|
}, l = !!r, d = Object.keys(i || {}).length === ((m = (f = n == null ? void 0 : n.write) == null ? void 0 : f.writeObjects) == null ? void 0 : m.length), p = !d && Object.keys(i || {}).length > 0;
|
|
7176
7183
|
return l && /* @__PURE__ */ F(We, { children: [
|
|
7177
|
-
/* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these
|
|
7184
|
+
/* @__PURE__ */ c(Zt, { string: `Allow ${e} to write to these objects` }),
|
|
7178
7185
|
/* @__PURE__ */ F(
|
|
7179
7186
|
Kt,
|
|
7180
7187
|
{
|
|
@@ -7196,7 +7203,7 @@ function Dh() {
|
|
|
7196
7203
|
children: "Select all"
|
|
7197
7204
|
}
|
|
7198
7205
|
) }),
|
|
7199
|
-
r.map((
|
|
7206
|
+
r.map((v) => /* @__PURE__ */ c(
|
|
7200
7207
|
Je,
|
|
7201
7208
|
{
|
|
7202
7209
|
display: "flex",
|
|
@@ -7208,15 +7215,15 @@ function Dh() {
|
|
|
7208
7215
|
children: /* @__PURE__ */ c(
|
|
7209
7216
|
$n,
|
|
7210
7217
|
{
|
|
7211
|
-
name:
|
|
7212
|
-
id:
|
|
7218
|
+
name: v.objectName,
|
|
7219
|
+
id: v.objectName,
|
|
7213
7220
|
onChange: a,
|
|
7214
|
-
isChecked: !!(i != null && i[
|
|
7215
|
-
children: /* @__PURE__ */ c("p", { style: { overflowWrap: "anywhere" }, children:
|
|
7221
|
+
isChecked: !!(i != null && i[v.objectName]),
|
|
7222
|
+
children: /* @__PURE__ */ c("p", { style: { overflowWrap: "anywhere" }, children: v.displayName })
|
|
7216
7223
|
}
|
|
7217
7224
|
)
|
|
7218
7225
|
},
|
|
7219
|
-
|
|
7226
|
+
v.objectName
|
|
7220
7227
|
))
|
|
7221
7228
|
]
|
|
7222
7229
|
}
|
|
@@ -7249,8 +7256,8 @@ function kh() {
|
|
|
7249
7256
|
}
|
|
7250
7257
|
}
|
|
7251
7258
|
), console.warn("successfully uninstalled installation: ", i.id), s == null || s(i == null ? void 0 : i.id), r(), a();
|
|
7252
|
-
} catch (
|
|
7253
|
-
console.error("Error uninstalling installation."), Ee(
|
|
7259
|
+
} catch (v) {
|
|
7260
|
+
console.error("Error uninstalling installation."), Ee(v);
|
|
7254
7261
|
} finally {
|
|
7255
7262
|
d(!1);
|
|
7256
7263
|
}
|
|
@@ -7320,9 +7327,9 @@ const ms = () => {
|
|
|
7320
7327
|
resetBoundary: g,
|
|
7321
7328
|
setErrors: f,
|
|
7322
7329
|
setError: m,
|
|
7323
|
-
getError:
|
|
7330
|
+
getError: v
|
|
7324
7331
|
} = Ot(), {
|
|
7325
|
-
resetConfigureState:
|
|
7332
|
+
resetConfigureState: w,
|
|
7326
7333
|
objectConfigurationsState: O,
|
|
7327
7334
|
resetPendingConfigurationState: y
|
|
7328
7335
|
} = po(), C = Xi(l || "", O), { onNextIncompleteTab: b } = xf(), I = ee(() => {
|
|
@@ -7332,8 +7339,8 @@ const ms = () => {
|
|
|
7332
7339
|
} : (H) => {
|
|
7333
7340
|
console.error("objectName is required to set installation error: ", H);
|
|
7334
7341
|
}, [m]), V = ee(
|
|
7335
|
-
(D) => D ?
|
|
7336
|
-
[
|
|
7342
|
+
(D) => D ? v(ye.INSTALLATION_MUTATION, D) : "",
|
|
7343
|
+
[v]
|
|
7337
7344
|
);
|
|
7338
7345
|
return {
|
|
7339
7346
|
integrationId: e,
|
|
@@ -7351,7 +7358,7 @@ const ms = () => {
|
|
|
7351
7358
|
setMutateInstallationError: N,
|
|
7352
7359
|
getMutateInstallationError: V,
|
|
7353
7360
|
resetMutateInstallationErrorState: I,
|
|
7354
|
-
resetConfigureState:
|
|
7361
|
+
resetConfigureState: w,
|
|
7355
7362
|
objectConfigurationsState: O,
|
|
7356
7363
|
resetPendingConfigurationState: y,
|
|
7357
7364
|
configureState: C,
|
|
@@ -7377,8 +7384,8 @@ function Lh() {
|
|
|
7377
7384
|
setMutateInstallationError: g,
|
|
7378
7385
|
getMutateInstallationError: f,
|
|
7379
7386
|
resetMutateInstallationErrorState: m,
|
|
7380
|
-
resetConfigureState:
|
|
7381
|
-
objectConfigurationsState:
|
|
7387
|
+
resetConfigureState: v,
|
|
7388
|
+
objectConfigurationsState: w,
|
|
7382
7389
|
resetPendingConfigurationState: O,
|
|
7383
7390
|
configureState: y,
|
|
7384
7391
|
onInstallSuccess: C,
|
|
@@ -7389,14 +7396,14 @@ function Lh() {
|
|
|
7389
7396
|
i,
|
|
7390
7397
|
$h,
|
|
7391
7398
|
a,
|
|
7392
|
-
|
|
7399
|
+
v
|
|
7393
7400
|
);
|
|
7394
7401
|
},
|
|
7395
|
-
[p, i, r, a,
|
|
7402
|
+
[p, i, r, a, v]
|
|
7396
7403
|
);
|
|
7397
|
-
|
|
7404
|
+
ie(() => {
|
|
7398
7405
|
!y && (i != null && i.content) && !r && H();
|
|
7399
|
-
}, [y,
|
|
7406
|
+
}, [y, w, i, r, H]);
|
|
7400
7407
|
const Y = () => {
|
|
7401
7408
|
m();
|
|
7402
7409
|
const { requiredMapFields: ne, selectedFieldMappings: Q } = (y == null ? void 0 : y.read) || {}, { errorList: de } = Bi(
|
|
@@ -7578,17 +7585,17 @@ function qh({ installation: e, integrationObj: t }) {
|
|
|
7578
7585
|
resetConfigureState: g,
|
|
7579
7586
|
resetPendingConfigurationState: f,
|
|
7580
7587
|
configureState: m,
|
|
7581
|
-
onUpdateSuccess:
|
|
7582
|
-
onNextIncompleteTab:
|
|
7588
|
+
onUpdateSuccess: v,
|
|
7589
|
+
onNextIncompleteTab: w
|
|
7583
7590
|
} = ms(), [O, y] = U(!1), C = r === Ft, b = h(r), { config: I } = e, N = ee(
|
|
7584
7591
|
() => {
|
|
7585
7592
|
l(ye.MAPPING), o != null && o.content && !i && r && Wi(o, I, r, g);
|
|
7586
7593
|
},
|
|
7587
7594
|
[l, o, i, r, I, g]
|
|
7588
7595
|
);
|
|
7589
|
-
|
|
7596
|
+
ie(() => {
|
|
7590
7597
|
m || N();
|
|
7591
|
-
}, [m, N]),
|
|
7598
|
+
}, [m, N]), ie(() => {
|
|
7592
7599
|
e && N();
|
|
7593
7600
|
}, [e, N]);
|
|
7594
7601
|
const V = Re(() => {
|
|
@@ -7614,9 +7621,9 @@ function qh({ installation: e, integrationObj: t }) {
|
|
|
7614
7621
|
o,
|
|
7615
7622
|
p(r),
|
|
7616
7623
|
// setError
|
|
7617
|
-
|
|
7624
|
+
v
|
|
7618
7625
|
).finally(() => {
|
|
7619
|
-
y(!1), f(r),
|
|
7626
|
+
y(!1), f(r), w();
|
|
7620
7627
|
})) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
|
|
7621
7628
|
}, H = () => {
|
|
7622
7629
|
e && r && a && s && o ? (y(!0), Bh(
|
|
@@ -7629,9 +7636,9 @@ function qh({ installation: e, integrationObj: t }) {
|
|
|
7629
7636
|
p(r),
|
|
7630
7637
|
// setError
|
|
7631
7638
|
n,
|
|
7632
|
-
|
|
7639
|
+
v
|
|
7633
7640
|
).finally(() => {
|
|
7634
|
-
y(!1), f(r),
|
|
7641
|
+
y(!1), f(r), w();
|
|
7635
7642
|
})) : console.error("UpdateInstallation - onSaveUpdate missing required props");
|
|
7636
7643
|
};
|
|
7637
7644
|
return /* @__PURE__ */ c(
|
|
@@ -7754,11 +7761,11 @@ function Zh({ children: e, resetComponent: t }) {
|
|
|
7754
7761
|
setInstallation: p,
|
|
7755
7762
|
onInstallSuccess: h,
|
|
7756
7763
|
isIntegrationDeleted: g
|
|
7757
|
-
} = tt(), { selectedConnection: f } = Gt(), [m,
|
|
7764
|
+
} = tt(), { selectedConnection: f } = Gt(), [m, v] = U(!1), w = r || m, O = (b = i == null ? void 0 : i.content) == null ? void 0 : b.provider, y = Gh(i), C = (I) => {
|
|
7758
7765
|
console.error("Error when creating proxy installation:", I);
|
|
7759
7766
|
};
|
|
7760
|
-
return
|
|
7761
|
-
!
|
|
7767
|
+
return ie(() => {
|
|
7768
|
+
!w && i && y && !s && f && o && (a != null && a.id) && (v(!0), Xh({
|
|
7762
7769
|
apiKey: o,
|
|
7763
7770
|
projectId: n,
|
|
7764
7771
|
integrationId: a == null ? void 0 : a.id,
|
|
@@ -7770,9 +7777,9 @@ function Zh({ children: e, resetComponent: t }) {
|
|
|
7770
7777
|
setInstallation: p,
|
|
7771
7778
|
onInstallSuccess: h
|
|
7772
7779
|
}).then(() => {
|
|
7773
|
-
|
|
7780
|
+
v(!1);
|
|
7774
7781
|
}).catch((I) => {
|
|
7775
|
-
|
|
7782
|
+
v(!1), console.error("Error when creating proxy installation:", I);
|
|
7776
7783
|
}));
|
|
7777
7784
|
}, [
|
|
7778
7785
|
i,
|
|
@@ -7785,9 +7792,9 @@ function Zh({ children: e, resetComponent: t }) {
|
|
|
7785
7792
|
l,
|
|
7786
7793
|
d,
|
|
7787
7794
|
p,
|
|
7788
|
-
|
|
7795
|
+
w,
|
|
7789
7796
|
h
|
|
7790
|
-
]), a ?
|
|
7797
|
+
]), a ? w ? /* @__PURE__ */ c(Ze, {}) : y && O && s ? /* @__PURE__ */ c(Yh, { provider: O }) : g ? /* @__PURE__ */ c(
|
|
7791
7798
|
mo,
|
|
7792
7799
|
{
|
|
7793
7800
|
text: "Integration successfully uninstalled.",
|
|
@@ -7972,8 +7979,8 @@ function um({
|
|
|
7972
7979
|
error: o,
|
|
7973
7980
|
isButtonDisabled: i
|
|
7974
7981
|
}) {
|
|
7975
|
-
var
|
|
7976
|
-
const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), p = (
|
|
7982
|
+
var v;
|
|
7983
|
+
const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), p = (w) => d(w.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
|
|
7977
7984
|
return /* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ F(mt, { children: [
|
|
7978
7985
|
/* @__PURE__ */ c(bt, { my: "6", children: /* @__PURE__ */ c(Ct, { as: "h4", size: "md", children: `Set up ${f} integration` }) }),
|
|
7979
7986
|
/* @__PURE__ */ c(je, { error: o }),
|
|
@@ -8022,8 +8029,8 @@ function dm({
|
|
|
8022
8029
|
error: o,
|
|
8023
8030
|
isButtonDisabled: i
|
|
8024
8031
|
}) {
|
|
8025
|
-
var
|
|
8026
|
-
const [r, a] = U(!1), s = () => a((
|
|
8032
|
+
var v;
|
|
8033
|
+
const [r, a] = U(!1), s = () => a((w) => !w), [l, d] = U(""), p = (w) => d(w.currentTarget.value), h = l.length > 0, g = i || !h, f = gt(e, t), m = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
|
|
8027
8034
|
return /* @__PURE__ */ c(
|
|
8028
8035
|
go,
|
|
8029
8036
|
{
|
|
@@ -8059,7 +8066,7 @@ function dm({
|
|
|
8059
8066
|
name: "password",
|
|
8060
8067
|
type: r ? "text" : "password",
|
|
8061
8068
|
placeholder: "Password",
|
|
8062
|
-
onChange: (
|
|
8069
|
+
onChange: (w) => p(w)
|
|
8063
8070
|
}
|
|
8064
8071
|
),
|
|
8065
8072
|
/* @__PURE__ */ c(
|
|
@@ -8093,9 +8100,9 @@ function fm({
|
|
|
8093
8100
|
setSelectedConnection: l
|
|
8094
8101
|
}) {
|
|
8095
8102
|
const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
|
|
8096
|
-
|
|
8103
|
+
ie(() => {
|
|
8097
8104
|
if (e && me && p && g != null) {
|
|
8098
|
-
const
|
|
8105
|
+
const w = {
|
|
8099
8106
|
groupName: r,
|
|
8100
8107
|
groupRef: i,
|
|
8101
8108
|
consumerName: o,
|
|
@@ -8103,7 +8110,7 @@ function fm({
|
|
|
8103
8110
|
provider: e,
|
|
8104
8111
|
apiKey: g
|
|
8105
8112
|
};
|
|
8106
|
-
me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams:
|
|
8113
|
+
me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: w }, {
|
|
8107
8114
|
headers: { "X-Api-Key": m ?? "", "Content-Type": "application/json" }
|
|
8108
8115
|
}).then((O) => {
|
|
8109
8116
|
l(O);
|
|
@@ -8123,10 +8130,10 @@ function fm({
|
|
|
8123
8130
|
l,
|
|
8124
8131
|
g
|
|
8125
8132
|
]);
|
|
8126
|
-
const
|
|
8127
|
-
f(
|
|
8133
|
+
const v = (w) => {
|
|
8134
|
+
f(w.apiKey), h(!0);
|
|
8128
8135
|
};
|
|
8129
|
-
return s === null ? /* @__PURE__ */ c(pm, { provider: e, providerInfo: t, handleSubmit:
|
|
8136
|
+
return s === null ? /* @__PURE__ */ c(pm, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : a;
|
|
8130
8137
|
}
|
|
8131
8138
|
function hm({
|
|
8132
8139
|
provider: e,
|
|
@@ -8136,16 +8143,16 @@ function hm({
|
|
|
8136
8143
|
isButtonDisabled: i
|
|
8137
8144
|
}) {
|
|
8138
8145
|
var y;
|
|
8139
|
-
const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), [p, h] = U(""), g = (C) => d(C.currentTarget.value), f = (C) => h(C.currentTarget.value), m = gt(e, t),
|
|
8146
|
+
const [r, a] = U(!1), s = () => a(!r), [l, d] = U(""), [p, h] = U(""), g = (C) => d(C.currentTarget.value), f = (C) => h(C.currentTarget.value), m = gt(e, t), v = (y = t.basicOpts) == null ? void 0 : y.docsURL, w = l.length > 0, O = i || !w;
|
|
8140
8147
|
return /* @__PURE__ */ c(Ue, { children: /* @__PURE__ */ F(mt, { children: [
|
|
8141
8148
|
/* @__PURE__ */ c(bt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ c(Ct, { as: "h4", size: "md", children: `Set up ${m} integration` }) }),
|
|
8142
8149
|
/* @__PURE__ */ c(je, { error: o }),
|
|
8143
8150
|
/* @__PURE__ */ c("br", {}),
|
|
8144
8151
|
/* @__PURE__ */ F(Kt, { spacing: 4, children: [
|
|
8145
|
-
|
|
8152
|
+
v && /* @__PURE__ */ c(
|
|
8146
8153
|
ir,
|
|
8147
8154
|
{
|
|
8148
|
-
url:
|
|
8155
|
+
url: v,
|
|
8149
8156
|
providerDisplayName: m,
|
|
8150
8157
|
credentialName: "credentials"
|
|
8151
8158
|
}
|
|
@@ -8188,7 +8195,7 @@ function mm({
|
|
|
8188
8195
|
isButtonDisabled: i
|
|
8189
8196
|
}) {
|
|
8190
8197
|
var O;
|
|
8191
|
-
const [r, a] = U(!1), s = () => a((y) => !y), [l, d] = U({ username: "", password: "" }), { username: p, password: h } = l, g = gt(e, t), f = (O = t.basicOpts) == null ? void 0 : O.docsURL, m = p.length > 0,
|
|
8198
|
+
const [r, a] = U(!1), s = () => a((y) => !y), [l, d] = U({ username: "", password: "" }), { username: p, password: h } = l, g = gt(e, t), f = (O = t.basicOpts) == null ? void 0 : O.docsURL, m = p.length > 0, v = i || !m, w = (y) => {
|
|
8192
8199
|
const { name: C, value: b } = y.currentTarget;
|
|
8193
8200
|
d((I) => ({ ...I, [C]: b }));
|
|
8194
8201
|
};
|
|
@@ -8200,7 +8207,7 @@ function mm({
|
|
|
8200
8207
|
n({ user: p, pass: h });
|
|
8201
8208
|
},
|
|
8202
8209
|
error: o,
|
|
8203
|
-
isButtonDisabled:
|
|
8210
|
+
isButtonDisabled: v,
|
|
8204
8211
|
children: /* @__PURE__ */ F(
|
|
8205
8212
|
"div",
|
|
8206
8213
|
{
|
|
@@ -8226,7 +8233,7 @@ function mm({
|
|
|
8226
8233
|
name: "username",
|
|
8227
8234
|
type: "text",
|
|
8228
8235
|
placeholder: "Username",
|
|
8229
|
-
onChange: (y) =>
|
|
8236
|
+
onChange: (y) => w(y)
|
|
8230
8237
|
}
|
|
8231
8238
|
),
|
|
8232
8239
|
/* @__PURE__ */ F("div", { style: { display: "flex", gap: ".5rem" }, children: [
|
|
@@ -8237,7 +8244,7 @@ function mm({
|
|
|
8237
8244
|
name: "password",
|
|
8238
8245
|
type: r ? "text" : "password",
|
|
8239
8246
|
placeholder: "Password",
|
|
8240
|
-
onChange: (y) =>
|
|
8247
|
+
onChange: (y) => w(y)
|
|
8241
8248
|
}
|
|
8242
8249
|
),
|
|
8243
8250
|
/* @__PURE__ */ c(
|
|
@@ -8271,9 +8278,9 @@ function ym({
|
|
|
8271
8278
|
setSelectedConnection: l
|
|
8272
8279
|
}) {
|
|
8273
8280
|
const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
|
|
8274
|
-
|
|
8281
|
+
ie(() => {
|
|
8275
8282
|
if (e && me && p && g != null) {
|
|
8276
|
-
const
|
|
8283
|
+
const w = {
|
|
8277
8284
|
groupName: r,
|
|
8278
8285
|
groupRef: i,
|
|
8279
8286
|
consumerName: o,
|
|
@@ -8284,7 +8291,7 @@ function ym({
|
|
|
8284
8291
|
password: g.pass
|
|
8285
8292
|
}
|
|
8286
8293
|
};
|
|
8287
|
-
me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams:
|
|
8294
|
+
me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: w }, {
|
|
8288
8295
|
headers: { "X-Api-Key": m ?? "", "Content-Type": "application/json" }
|
|
8289
8296
|
}).then((O) => {
|
|
8290
8297
|
l(O);
|
|
@@ -8304,8 +8311,8 @@ function ym({
|
|
|
8304
8311
|
g,
|
|
8305
8312
|
l
|
|
8306
8313
|
]);
|
|
8307
|
-
const
|
|
8308
|
-
const { user: O, pass: y } =
|
|
8314
|
+
const v = (w) => {
|
|
8315
|
+
const { user: O, pass: y } = w;
|
|
8309
8316
|
f({ user: O, pass: y }), h(!0);
|
|
8310
8317
|
};
|
|
8311
8318
|
return s === null ? /* @__PURE__ */ c(
|
|
@@ -8313,7 +8320,7 @@ function ym({
|
|
|
8313
8320
|
{
|
|
8314
8321
|
provider: e,
|
|
8315
8322
|
providerInfo: t,
|
|
8316
|
-
handleSubmit:
|
|
8323
|
+
handleSubmit: v,
|
|
8317
8324
|
error: null
|
|
8318
8325
|
}
|
|
8319
8326
|
) : a;
|
|
@@ -8356,7 +8363,7 @@ function wm({
|
|
|
8356
8363
|
providerName: l
|
|
8357
8364
|
}) {
|
|
8358
8365
|
const d = _e(), p = Ce(), [h, g] = U(!1);
|
|
8359
|
-
|
|
8366
|
+
ie(() => {
|
|
8360
8367
|
if (e && me && h) {
|
|
8361
8368
|
const m = {
|
|
8362
8369
|
groupName: i,
|
|
@@ -8367,10 +8374,10 @@ function wm({
|
|
|
8367
8374
|
};
|
|
8368
8375
|
me().connectionApi.generateConnection({ projectIdOrName: d.projectId, generateConnectionParams: m }, {
|
|
8369
8376
|
headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
|
|
8370
|
-
}).then((
|
|
8371
|
-
s(
|
|
8372
|
-
}).catch((
|
|
8373
|
-
console.error("Error loading provider info."), Ee(
|
|
8377
|
+
}).then((v) => {
|
|
8378
|
+
s(v);
|
|
8379
|
+
}).catch((v) => {
|
|
8380
|
+
console.error("Error loading provider info."), Ee(v);
|
|
8374
8381
|
});
|
|
8375
8382
|
}
|
|
8376
8383
|
}, [p, e, h, n, t, i, o, s, d]);
|
|
@@ -8389,7 +8396,7 @@ const ys = async (e, t, n, o, i, r, a, s) => {
|
|
|
8389
8396
|
if (l.authType === "oauth2" && ((d = l.oauth2Opts) == null ? void 0 : d.grantType) === "authorizationCode") {
|
|
8390
8397
|
const h = (await me().providerAppApi.listProviderApps({ projectIdOrName: e }, {
|
|
8391
8398
|
headers: { "X-Api-Key": o ?? "" }
|
|
8392
|
-
})).find((
|
|
8399
|
+
})).find((v) => v.provider === i), g = gt(i, l);
|
|
8393
8400
|
if (!h)
|
|
8394
8401
|
throw new Error(`You must first set up a ${g} Provider App using the Ampersand Console.`);
|
|
8395
8402
|
const f = {
|
|
@@ -8443,19 +8450,23 @@ function vs({
|
|
|
8443
8450
|
error: i
|
|
8444
8451
|
}) {
|
|
8445
8452
|
const r = Ce(), { projectId: a } = _e(), [s, l] = U(null), [d, p] = U(null), { setSelectedConnection: h } = Gt(), g = Nm(l, o), f = Om(n, p, g, t), m = Cm(a, r, h);
|
|
8446
|
-
|
|
8453
|
+
return ie(() => {
|
|
8447
8454
|
t && !d && f();
|
|
8448
|
-
}, [t, d, f, g, n]),
|
|
8455
|
+
}, [t, d, f, g, n]), ie(() => {
|
|
8449
8456
|
s && m(s).then(() => {
|
|
8450
8457
|
d == null || d.close();
|
|
8451
8458
|
}).catch((v) => {
|
|
8452
8459
|
console.error("Error refreshing connection: ", v), o == null || o(v.message ?? "Unexpected error: not able to refresh connection");
|
|
8453
8460
|
});
|
|
8454
|
-
}, [s, r, h, m, d, o])
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8461
|
+
}, [s, r, h, m, d, o]), ie(() => {
|
|
8462
|
+
if (!d) return;
|
|
8463
|
+
const v = setInterval(() => {
|
|
8464
|
+
d.closed && (clearInterval(v), window.removeEventListener("message", g), p(null), !s && !i ? (console.error("OAuth failed. Please try again."), o == null || o("OAuth failed. Please try again.")) : s && (o == null || o(null)));
|
|
8465
|
+
}, 500);
|
|
8466
|
+
return () => {
|
|
8467
|
+
clearInterval(v), window.removeEventListener("message", g);
|
|
8468
|
+
};
|
|
8469
|
+
}, [d, s, i, g, o]), /* @__PURE__ */ c("div", { children: e });
|
|
8459
8470
|
}
|
|
8460
8471
|
function Sm({
|
|
8461
8472
|
handleSubmit: e,
|
|
@@ -8739,9 +8750,9 @@ function km({
|
|
|
8739
8750
|
} catch (O) {
|
|
8740
8751
|
console.error(O), f((O == null ? void 0 : O.message) ?? "Unexpected error");
|
|
8741
8752
|
}
|
|
8742
|
-
},
|
|
8753
|
+
}, v = ee((O) => {
|
|
8743
8754
|
f(O), h(null);
|
|
8744
|
-
}, []),
|
|
8755
|
+
}, []), w = e === Fm ? /* @__PURE__ */ c(
|
|
8745
8756
|
Am,
|
|
8746
8757
|
{
|
|
8747
8758
|
handleSubmit: m,
|
|
@@ -8767,8 +8778,8 @@ function km({
|
|
|
8767
8778
|
{
|
|
8768
8779
|
windowTitle: `Connect to ${r}`,
|
|
8769
8780
|
oauthUrl: p,
|
|
8770
|
-
onError:
|
|
8771
|
-
children:
|
|
8781
|
+
onError: v,
|
|
8782
|
+
children: w
|
|
8772
8783
|
}
|
|
8773
8784
|
);
|
|
8774
8785
|
}
|
|
@@ -8779,7 +8790,7 @@ function Mm({
|
|
|
8779
8790
|
isButtonDisabled: o,
|
|
8780
8791
|
providerName: i
|
|
8781
8792
|
}) {
|
|
8782
|
-
const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), f = () => a(!r), m = (I) => l(I.currentTarget.value),
|
|
8793
|
+
const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), f = () => a(!r), m = (I) => l(I.currentTarget.value), v = (I) => p(I.currentTarget.value), w = (I) => g(I.currentTarget.value), O = s.length > 0, y = d.length > 0, C = o || !O || !y, b = () => {
|
|
8783
8794
|
const I = {
|
|
8784
8795
|
clientId: d,
|
|
8785
8796
|
clientSecret: s
|
|
@@ -8791,7 +8802,7 @@ function Mm({
|
|
|
8791
8802
|
/* @__PURE__ */ c(je, { error: t }),
|
|
8792
8803
|
/* @__PURE__ */ c("br", {}),
|
|
8793
8804
|
/* @__PURE__ */ F(Kt, { spacing: 4, children: [
|
|
8794
|
-
/* @__PURE__ */ c(ot, { placeholder: "Client ID", onChange:
|
|
8805
|
+
/* @__PURE__ */ c(ot, { placeholder: "Client ID", onChange: v }),
|
|
8795
8806
|
/* @__PURE__ */ F(Gn, { size: "md", children: [
|
|
8796
8807
|
/* @__PURE__ */ c(
|
|
8797
8808
|
ot,
|
|
@@ -8808,7 +8819,7 @@ function Mm({
|
|
|
8808
8819
|
wi,
|
|
8809
8820
|
{
|
|
8810
8821
|
placeholder: "Scopes separated by new line",
|
|
8811
|
-
onChange:
|
|
8822
|
+
onChange: w
|
|
8812
8823
|
}
|
|
8813
8824
|
)
|
|
8814
8825
|
] }),
|
|
@@ -8839,7 +8850,7 @@ function Km({
|
|
|
8839
8850
|
}) {
|
|
8840
8851
|
const { projectId: d } = _e(), p = Ce(), [h, g] = U(null), f = async (m) => {
|
|
8841
8852
|
g(null);
|
|
8842
|
-
const
|
|
8853
|
+
const v = {
|
|
8843
8854
|
groupName: i,
|
|
8844
8855
|
groupRef: o,
|
|
8845
8856
|
consumerName: n,
|
|
@@ -8851,12 +8862,12 @@ function Km({
|
|
|
8851
8862
|
scopes: m.scopes
|
|
8852
8863
|
}
|
|
8853
8864
|
};
|
|
8854
|
-
me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams:
|
|
8865
|
+
me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: v }, {
|
|
8855
8866
|
headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
|
|
8856
|
-
}).then((
|
|
8857
|
-
l(
|
|
8858
|
-
}).catch((
|
|
8859
|
-
console.error("Error loading provider info."), Ee(
|
|
8867
|
+
}).then((w) => {
|
|
8868
|
+
l(w);
|
|
8869
|
+
}).catch((w) => {
|
|
8870
|
+
console.error("Error loading provider info."), Ee(w), g("Error loading provider info");
|
|
8860
8871
|
});
|
|
8861
8872
|
};
|
|
8862
8873
|
return s === null ? /* @__PURE__ */ c(
|
|
@@ -8876,7 +8887,7 @@ function $m({
|
|
|
8876
8887
|
providerName: o,
|
|
8877
8888
|
explicitScopesRequired: i
|
|
8878
8889
|
}) {
|
|
8879
|
-
const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), [f, m] = U(""),
|
|
8890
|
+
const [r, a] = U(!1), [s, l] = U(""), [d, p] = U(""), [h, g] = U(""), [f, m] = U(""), v = () => a(!r), w = (H) => l(H.currentTarget.value), O = (H) => p(H.currentTarget.value), y = (H) => g(H.currentTarget.value), C = (H) => m(H.currentTarget.value), b = s.length > 0, I = d.length > 0, N = h.length > 0, V = n || !b || !I || !N, D = () => {
|
|
8880
8891
|
const H = {
|
|
8881
8892
|
workspace: h,
|
|
8882
8893
|
clientId: d,
|
|
@@ -8901,13 +8912,13 @@ function $m({
|
|
|
8901
8912
|
/* @__PURE__ */ c(
|
|
8902
8913
|
ot,
|
|
8903
8914
|
{
|
|
8904
|
-
onChange:
|
|
8915
|
+
onChange: w,
|
|
8905
8916
|
pr: "4.5rem",
|
|
8906
8917
|
type: r ? "text" : "password",
|
|
8907
8918
|
placeholder: "Client Secret"
|
|
8908
8919
|
}
|
|
8909
8920
|
),
|
|
8910
|
-
/* @__PURE__ */ c(Zn, { width: "4.5rem", children: /* @__PURE__ */ c(Se, { h: "1.75rem", size: "sm", onClick:
|
|
8921
|
+
/* @__PURE__ */ c(Zn, { width: "4.5rem", children: /* @__PURE__ */ c(Se, { h: "1.75rem", size: "sm", onClick: v, children: r ? "Hide" : "Show" }) })
|
|
8911
8922
|
] }),
|
|
8912
8923
|
i && /* @__PURE__ */ c(
|
|
8913
8924
|
wi,
|
|
@@ -8944,7 +8955,7 @@ function Lm({
|
|
|
8944
8955
|
}) {
|
|
8945
8956
|
const { projectId: d } = _e(), p = Ce(), [h, g] = U(null), f = async (m) => {
|
|
8946
8957
|
g(null);
|
|
8947
|
-
const
|
|
8958
|
+
const v = {
|
|
8948
8959
|
groupName: r,
|
|
8949
8960
|
groupRef: i,
|
|
8950
8961
|
consumerName: o,
|
|
@@ -8957,12 +8968,12 @@ function Lm({
|
|
|
8957
8968
|
scopes: m.scopes
|
|
8958
8969
|
}
|
|
8959
8970
|
};
|
|
8960
|
-
me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams:
|
|
8971
|
+
me().connectionApi.generateConnection({ projectIdOrName: d, generateConnectionParams: v }, {
|
|
8961
8972
|
headers: { "X-Api-Key": p ?? "", "Content-Type": "application/json" }
|
|
8962
|
-
}).then((
|
|
8963
|
-
l(
|
|
8964
|
-
}).catch((
|
|
8965
|
-
console.error("Error loading provider info."), Ee(
|
|
8973
|
+
}).then((w) => {
|
|
8974
|
+
l(w);
|
|
8975
|
+
}).catch((w) => {
|
|
8976
|
+
console.error("Error loading provider info."), Ee(w), g("Error loading provider info");
|
|
8966
8977
|
});
|
|
8967
8978
|
};
|
|
8968
8979
|
return s === null ? /* @__PURE__ */ c(
|
|
@@ -8998,13 +9009,13 @@ function Vm({
|
|
|
8998
9009
|
clientSecret: g,
|
|
8999
9010
|
clientId: f,
|
|
9000
9011
|
workspace: m,
|
|
9001
|
-
scopes:
|
|
9002
|
-
} = l,
|
|
9012
|
+
scopes: v
|
|
9013
|
+
} = l, w = g.length > 0, O = f.length > 0, y = r ? m.length > 0 : !0, C = n || !w || !O || !y, b = () => {
|
|
9003
9014
|
const I = {
|
|
9004
9015
|
clientId: f,
|
|
9005
9016
|
clientSecret: g
|
|
9006
9017
|
};
|
|
9007
|
-
r && (I.workspace = m), i &&
|
|
9018
|
+
r && (I.workspace = m), i && v.length > 0 && (I.scopes = Vr(v)), e(I);
|
|
9008
9019
|
};
|
|
9009
9020
|
return /* @__PURE__ */ F(Ue, { children: [
|
|
9010
9021
|
/* @__PURE__ */ c(gn, { children: `Set up ${o} integration` }),
|
|
@@ -9086,22 +9097,22 @@ function Hm({
|
|
|
9086
9097
|
selectedConnection: l,
|
|
9087
9098
|
setSelectedConnection: d
|
|
9088
9099
|
}) {
|
|
9089
|
-
const { projectId: p } = _e(), h = Ce(), [g, f] = U(null), m = async (
|
|
9100
|
+
const { projectId: p } = _e(), h = Ce(), [g, f] = U(null), m = async (v) => {
|
|
9090
9101
|
f(null);
|
|
9091
|
-
const
|
|
9102
|
+
const w = {
|
|
9092
9103
|
groupName: r,
|
|
9093
9104
|
groupRef: i,
|
|
9094
9105
|
consumerName: o,
|
|
9095
9106
|
consumerRef: n,
|
|
9096
9107
|
provider: e,
|
|
9097
|
-
providerWorkspaceRef:
|
|
9108
|
+
providerWorkspaceRef: v.workspace,
|
|
9098
9109
|
oauth2ClientCredentials: {
|
|
9099
|
-
clientId:
|
|
9100
|
-
clientSecret:
|
|
9101
|
-
scopes:
|
|
9110
|
+
clientId: v.clientId,
|
|
9111
|
+
clientSecret: v.clientSecret,
|
|
9112
|
+
scopes: v.scopes
|
|
9102
9113
|
}
|
|
9103
9114
|
};
|
|
9104
|
-
me().connectionApi.generateConnection({ projectIdOrName: p, generateConnectionParams:
|
|
9115
|
+
me().connectionApi.generateConnection({ projectIdOrName: p, generateConnectionParams: w }, {
|
|
9105
9116
|
headers: { "X-Api-Key": h ?? "", "Content-Type": "application/json" }
|
|
9106
9117
|
}).then((O) => {
|
|
9107
9118
|
d(O);
|
|
@@ -9160,7 +9171,7 @@ function qm({
|
|
|
9160
9171
|
}
|
|
9161
9172
|
function Wm(e) {
|
|
9162
9173
|
const { selectedConnection: t } = Gt();
|
|
9163
|
-
|
|
9174
|
+
ie(() => {
|
|
9164
9175
|
e && t && e(t.id);
|
|
9165
9176
|
}, [e, t]);
|
|
9166
9177
|
}
|
|
@@ -9186,8 +9197,8 @@ function ws({
|
|
|
9186
9197
|
}) {
|
|
9187
9198
|
const s = Ce(), [l, d] = U(null), { provider: p } = tt(), { selectedConnection: h, setSelectedConnection: g, connections: f } = Gt();
|
|
9188
9199
|
Jm({ onSuccess: a });
|
|
9189
|
-
const m = e || p,
|
|
9190
|
-
if (
|
|
9200
|
+
const m = e || p, v = (l == null ? void 0 : l.displayName) ?? Ci(m);
|
|
9201
|
+
if (ie(() => {
|
|
9191
9202
|
if (!h && f && f.length > 0) {
|
|
9192
9203
|
const [O] = f;
|
|
9193
9204
|
g(O);
|
|
@@ -9201,7 +9212,7 @@ function ws({
|
|
|
9201
9212
|
throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
|
|
9202
9213
|
if (h) return r;
|
|
9203
9214
|
if (l == null) return /* @__PURE__ */ c("strong", { children: "Provider not found" });
|
|
9204
|
-
const
|
|
9215
|
+
const w = {
|
|
9205
9216
|
provider: m,
|
|
9206
9217
|
consumerRef: t,
|
|
9207
9218
|
consumerName: n,
|
|
@@ -9209,10 +9220,10 @@ function ws({
|
|
|
9209
9220
|
groupName: i,
|
|
9210
9221
|
selectedConnection: h,
|
|
9211
9222
|
setSelectedConnection: g,
|
|
9212
|
-
providerName:
|
|
9223
|
+
providerName: v,
|
|
9213
9224
|
providerInfo: l
|
|
9214
9225
|
};
|
|
9215
|
-
return l.authType === "none" ? /* @__PURE__ */ c(wm, { ...
|
|
9226
|
+
return l.authType === "none" ? /* @__PURE__ */ c(wm, { ...w, children: r }) : l.authType === "basic" ? /* @__PURE__ */ c(ym, { ...w, children: r }) : l.authType === "apiKey" ? /* @__PURE__ */ c(fm, { ...w, children: r }) : /* @__PURE__ */ c(qm, { ...w });
|
|
9216
9227
|
}
|
|
9217
9228
|
const Xm = /* @__PURE__ */ F("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
9218
9229
|
/* @__PURE__ */ c("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
|
|
@@ -9292,11 +9303,11 @@ function eg({
|
|
|
9292
9303
|
const { project: t } = _e(), { installation: n, provider: o } = tt(), { hydratedRevision: i } = mn(), { objectConfigurationsState: r } = po(), [a, s] = U(0), l = (t == null ? void 0 : t.appName) || "", d = n == null ? void 0 : n.config, p = i && Ui(d, i), h = p !== null, g = !!((O = i == null ? void 0 : i.content) != null && O.write), f = g ? ji(d) : void 0, m = Re(() => {
|
|
9293
9304
|
const b = [...p || []];
|
|
9294
9305
|
return f && g && b.push(f), b;
|
|
9295
|
-
}, [p, f, g]),
|
|
9296
|
-
const b = m.find((I) =>
|
|
9306
|
+
}, [p, f, g]), v = Zm(m, a), w = ee(() => {
|
|
9307
|
+
const b = m.find((I) => v !== I && !I.completed);
|
|
9297
9308
|
b && s(m.indexOf(b));
|
|
9298
|
-
}, [m,
|
|
9299
|
-
return /* @__PURE__ */ c(Ha.Provider, { value:
|
|
9309
|
+
}, [m, v]);
|
|
9310
|
+
return /* @__PURE__ */ c(Ha.Provider, { value: w, children: /* @__PURE__ */ c(La.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ F(hn, { style: { maxWidth: "55rem" }, children: [
|
|
9300
9311
|
/* @__PURE__ */ F(
|
|
9301
9312
|
Yt,
|
|
9302
9313
|
{
|
|
@@ -9361,13 +9372,16 @@ function eg({
|
|
|
9361
9372
|
/* @__PURE__ */ c(gs, {})
|
|
9362
9373
|
] }) }) });
|
|
9363
9374
|
}
|
|
9364
|
-
function tg() {
|
|
9375
|
+
function tg({ ...e }) {
|
|
9376
|
+
return /* @__PURE__ */ c(eg, { ...e });
|
|
9377
|
+
}
|
|
9378
|
+
function ng() {
|
|
9365
9379
|
const [e, t] = U(1);
|
|
9366
9380
|
return { seed: e, reset: () => {
|
|
9367
9381
|
t(Math.random());
|
|
9368
9382
|
} };
|
|
9369
9383
|
}
|
|
9370
|
-
function
|
|
9384
|
+
function fg({
|
|
9371
9385
|
integration: e,
|
|
9372
9386
|
consumerRef: t,
|
|
9373
9387
|
consumerName: n,
|
|
@@ -9379,7 +9393,7 @@ function pg({
|
|
|
9379
9393
|
fieldMapping: l
|
|
9380
9394
|
}) {
|
|
9381
9395
|
var f;
|
|
9382
|
-
const { projectId: d } = _e(), { errorState: p } = Ot(), { seed: h, reset: g } =
|
|
9396
|
+
const { projectId: d } = _e(), { errorState: p } = Ot(), { seed: h, reset: g } = ng();
|
|
9383
9397
|
return (f = p[ye.INTEGRATION_LIST]) != null && f.apiError ? /* @__PURE__ */ c(ht, { message: "Something went wrong, couldn't find integration information" }) : (
|
|
9384
9398
|
// install integration provider provides all props, integrationObj and installation
|
|
9385
9399
|
/* @__PURE__ */ c(
|
|
@@ -9401,7 +9415,7 @@ function pg({
|
|
|
9401
9415
|
consumerName: n,
|
|
9402
9416
|
groupRef: o,
|
|
9403
9417
|
groupName: i,
|
|
9404
|
-
children: /* @__PURE__ */ c(yp, { projectId: d, children: /* @__PURE__ */ c(Zh, { resetComponent: g, children: /* @__PURE__ */ c(Uf, { children: /* @__PURE__ */ c(
|
|
9418
|
+
children: /* @__PURE__ */ c(yp, { projectId: d, children: /* @__PURE__ */ c(Zh, { resetComponent: g, children: /* @__PURE__ */ c(Uf, { children: /* @__PURE__ */ c(tg, { children: /* @__PURE__ */ c(Wh, {}) }) }) }) })
|
|
9405
9419
|
}
|
|
9406
9420
|
) })
|
|
9407
9421
|
},
|
|
@@ -9409,7 +9423,7 @@ function pg({
|
|
|
9409
9423
|
)
|
|
9410
9424
|
);
|
|
9411
9425
|
}
|
|
9412
|
-
function
|
|
9426
|
+
function rg() {
|
|
9413
9427
|
return /* @__PURE__ */ F(
|
|
9414
9428
|
hn,
|
|
9415
9429
|
{
|
|
@@ -9426,16 +9440,16 @@ function ng() {
|
|
|
9426
9440
|
}
|
|
9427
9441
|
);
|
|
9428
9442
|
}
|
|
9429
|
-
function
|
|
9430
|
-
return
|
|
9443
|
+
function og({ redirectURL: e, children: t }) {
|
|
9444
|
+
return ie(() => {
|
|
9431
9445
|
e && window.location.replace(e);
|
|
9432
|
-
}, [e]), e ? /* @__PURE__ */ c(
|
|
9446
|
+
}, [e]), e ? /* @__PURE__ */ c(rg, {}) : t;
|
|
9433
9447
|
}
|
|
9434
|
-
function
|
|
9448
|
+
function ig({ provider: e }) {
|
|
9435
9449
|
const { appName: t } = _e(), n = `You have successfully connected your ${gt(e)} account to ${t}.`;
|
|
9436
9450
|
return /* @__PURE__ */ c(mo, { text: n });
|
|
9437
9451
|
}
|
|
9438
|
-
function
|
|
9452
|
+
function hg({
|
|
9439
9453
|
provider: e,
|
|
9440
9454
|
consumerRef: t,
|
|
9441
9455
|
consumerName: n,
|
|
@@ -9453,11 +9467,11 @@ function fg({
|
|
|
9453
9467
|
groupRef: o,
|
|
9454
9468
|
groupName: i,
|
|
9455
9469
|
onSuccess: a,
|
|
9456
|
-
children: /* @__PURE__ */ c(
|
|
9470
|
+
children: /* @__PURE__ */ c(og, { redirectURL: r, children: /* @__PURE__ */ c(ig, { provider: e }) })
|
|
9457
9471
|
}
|
|
9458
9472
|
) });
|
|
9459
9473
|
}
|
|
9460
|
-
const
|
|
9474
|
+
const mg = (e, t) => {
|
|
9461
9475
|
const n = Ce(), { projectId: o } = _e(), { integrations: i } = Mi(), [r, a] = U(!1), [s, l] = U(null);
|
|
9462
9476
|
if (!n || !o)
|
|
9463
9477
|
throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
|
|
@@ -9469,7 +9483,7 @@ const hg = (e, t) => {
|
|
|
9469
9483
|
(p, h) => (h == null ? void 0 : h.name) === e ? h : p,
|
|
9470
9484
|
{}
|
|
9471
9485
|
), [i, e]);
|
|
9472
|
-
return
|
|
9486
|
+
return ie(() => {
|
|
9473
9487
|
d && me().installationApi.listInstallations({
|
|
9474
9488
|
projectIdOrName: o,
|
|
9475
9489
|
integrationId: d.id,
|
|
@@ -9487,9 +9501,10 @@ const hg = (e, t) => {
|
|
|
9487
9501
|
};
|
|
9488
9502
|
export {
|
|
9489
9503
|
Vd as AmpersandContext,
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9504
|
+
ug as AmpersandProvider,
|
|
9505
|
+
hg as ConnectProvider,
|
|
9506
|
+
Bf as FieldMapping,
|
|
9507
|
+
fg as InstallIntegration,
|
|
9508
|
+
dg as useAmpersandProvider,
|
|
9509
|
+
mg as useIsIntegrationInstalled
|
|
9495
9510
|
};
|