@boomi/embedkit 1.3.13 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +31 -31
- package/dist/index.js +335 -330
- package/dist/index.umd.cjs +31 -31
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1423,7 +1423,7 @@ Error generating stack: ` + x.message + `
|
|
|
1423
1423
|
` + x.stack;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
var zt = Object.prototype.hasOwnProperty, ze = t.unstable_scheduleCallback,
|
|
1426
|
+
var zt = Object.prototype.hasOwnProperty, ze = t.unstable_scheduleCallback, it = t.unstable_cancelCallback, dt = t.unstable_shouldYield, yt = t.unstable_requestPaint, st = t.unstable_now, Re = t.unstable_getCurrentPriorityLevel, je = t.unstable_ImmediatePriority, ot = t.unstable_UserBlockingPriority, nt = t.unstable_NormalPriority, wt = t.unstable_LowPriority, xt = t.unstable_IdlePriority, Dt = t.log, dn = t.unstable_setDisableYieldValue, kt = null, Lt = null;
|
|
1427
1427
|
function St(r) {
|
|
1428
1428
|
if (typeof Dt == "function" && dn(r), Lt && typeof Lt.setStrictMode == "function")
|
|
1429
1429
|
try {
|
|
@@ -1641,7 +1641,7 @@ Error generating stack: ` + x.message + `
|
|
|
1641
1641
|
W.p = v;
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
var Si = Math.random().toString(36).slice(2), en = "__reactFiber$" + Si, Xn = "__reactProps$" + Si, Qi = "__reactContainer$" + Si, yi = "__reactEvents$" + Si, Bo = "__reactListeners$" + Si, Nr = "__reactHandles$" + Si,
|
|
1644
|
+
var Si = Math.random().toString(36).slice(2), en = "__reactFiber$" + Si, Xn = "__reactProps$" + Si, Qi = "__reactContainer$" + Si, yi = "__reactEvents$" + Si, Bo = "__reactListeners$" + Si, Nr = "__reactHandles$" + Si, rt = "__reactResources$" + Si, Ee = "__reactMarker$" + Si;
|
|
1645
1645
|
function Ze(r) {
|
|
1646
1646
|
delete r[en], delete r[Xn], delete r[yi], delete r[Bo], delete r[Nr];
|
|
1647
1647
|
}
|
|
@@ -1675,10 +1675,10 @@ Error generating stack: ` + x.message + `
|
|
|
1675
1675
|
throw Error(a(33));
|
|
1676
1676
|
}
|
|
1677
1677
|
function $n(r) {
|
|
1678
|
-
var l = r[
|
|
1679
|
-
return l || (l = r[
|
|
1678
|
+
var l = r[rt];
|
|
1679
|
+
return l || (l = r[rt] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), l;
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function at(r) {
|
|
1682
1682
|
r[Ee] = !0;
|
|
1683
1683
|
}
|
|
1684
1684
|
var Sn = /* @__PURE__ */ new Set(), An = {};
|
|
@@ -5637,7 +5637,7 @@ Error generating stack: ` + x.message + `
|
|
|
5637
5637
|
null
|
|
5638
5638
|
)) ? l.memoizedState = v : _n || (v = l.type, r = l.pendingProps, x = Wc(
|
|
5639
5639
|
ie.current
|
|
5640
|
-
).createElement(v), x[en] = l, x[Xn] = r, Po(x, v, r),
|
|
5640
|
+
).createElement(v), x[en] = l, x[Xn] = r, Po(x, v, r), at(x), l.stateNode = x) : l.memoizedState = _f(
|
|
5641
5641
|
l.type,
|
|
5642
5642
|
r.memoizedProps,
|
|
5643
5643
|
l.pendingProps,
|
|
@@ -6719,7 +6719,7 @@ Error generating stack: ` + x.message + `
|
|
|
6719
6719
|
V = z.getElementsByTagName("title")[0], (!V || V[Ee] || V[en] || V.namespaceURI === "http://www.w3.org/2000/svg" || V.hasAttribute("itemprop")) && (V = z.createElement(x), z.head.insertBefore(
|
|
6720
6720
|
V,
|
|
6721
6721
|
z.querySelector("head > title")
|
|
6722
|
-
)), Po(V, x, v), V[en] = r,
|
|
6722
|
+
)), Po(V, x, v), V[en] = r, at(V), x = V;
|
|
6723
6723
|
break e;
|
|
6724
6724
|
case "link":
|
|
6725
6725
|
var J = ny(
|
|
@@ -6753,7 +6753,7 @@ Error generating stack: ` + x.message + `
|
|
|
6753
6753
|
default:
|
|
6754
6754
|
throw Error(a(468, x));
|
|
6755
6755
|
}
|
|
6756
|
-
V[en] = r,
|
|
6756
|
+
V[en] = r, at(V), x = V;
|
|
6757
6757
|
}
|
|
6758
6758
|
r.stateNode = x;
|
|
6759
6759
|
} else
|
|
@@ -7993,7 +7993,7 @@ Error generating stack: ` + x.message + `
|
|
|
7993
7993
|
J,
|
|
7994
7994
|
se,
|
|
7995
7995
|
be
|
|
7996
|
-
), r === ai && (Cn = ai = null, En = 0), Gc = l, ql = r, rl = v, Ir = V, $g = z, Ug = x, (l.subtreeFlags & 10256) !== 0 || (l.flags & 10256) !== 0 ? (r.callbackNode = null, r.callbackPriority = 0, a1(
|
|
7996
|
+
), r === ai && (Cn = ai = null, En = 0), Gc = l, ql = r, rl = v, Ir = V, $g = z, Ug = x, (l.subtreeFlags & 10256) !== 0 || (l.flags & 10256) !== 0 ? (r.callbackNode = null, r.callbackPriority = 0, a1(nt, function() {
|
|
7997
7997
|
return n1(), null;
|
|
7998
7998
|
})) : (r.callbackNode = null, r.callbackPriority = 0), x = (l.flags & 13878) !== 0, (l.subtreeFlags & 13878) !== 0 || x) {
|
|
7999
7999
|
x = I.T, I.T = null, z = W.p, W.p = 2, J = Bn, Bn |= 4;
|
|
@@ -8275,26 +8275,26 @@ Error generating stack: ` + x.message + `
|
|
|
8275
8275
|
r === l ? v : 0,
|
|
8276
8276
|
r.cancelPendingCommit !== null || r.timeoutHandle !== -1
|
|
8277
8277
|
), x = r.callbackNode, v === 0 || r === l && (Zn === 2 || Zn === 9) || r.cancelPendingCommit !== null)
|
|
8278
|
-
return x !== null && x !== null &&
|
|
8278
|
+
return x !== null && x !== null && it(x), r.callbackNode = null, r.callbackPriority = 0;
|
|
8279
8279
|
if ((v & 3) === 0 || Je(r, v)) {
|
|
8280
8280
|
if (l = v & -v, l === r.callbackPriority) return l;
|
|
8281
|
-
switch (x !== null &&
|
|
8281
|
+
switch (x !== null && it(x), Yn(v)) {
|
|
8282
8282
|
case 2:
|
|
8283
8283
|
case 8:
|
|
8284
|
-
v =
|
|
8284
|
+
v = ot;
|
|
8285
8285
|
break;
|
|
8286
8286
|
case 32:
|
|
8287
|
-
v =
|
|
8287
|
+
v = nt;
|
|
8288
8288
|
break;
|
|
8289
8289
|
case 268435456:
|
|
8290
8290
|
v = xt;
|
|
8291
8291
|
break;
|
|
8292
8292
|
default:
|
|
8293
|
-
v =
|
|
8293
|
+
v = nt;
|
|
8294
8294
|
}
|
|
8295
8295
|
return x = xm.bind(null, r), v = ze(v, x), r.callbackPriority = l, r.callbackNode = v, l;
|
|
8296
8296
|
}
|
|
8297
|
-
return x !== null && x !== null &&
|
|
8297
|
+
return x !== null && x !== null && it(x), r.callbackPriority = 2, r.callbackNode = null, 2;
|
|
8298
8298
|
}
|
|
8299
8299
|
function xm(r, l) {
|
|
8300
8300
|
if (mo !== 0 && mo !== 5)
|
|
@@ -9856,7 +9856,7 @@ Error generating stack: ` + x.message + `
|
|
|
9856
9856
|
var x = xf;
|
|
9857
9857
|
if (x && typeof l == "string" && l) {
|
|
9858
9858
|
var z = ar(l);
|
|
9859
|
-
z = 'link[rel="' + r + '"][href="' + z + '"]', typeof v == "string" && (z += '[crossorigin="' + v + '"]'), km.has(z) || (km.add(z), r = { rel: r, crossOrigin: v, href: l }, x.querySelector(z) === null && (l = x.createElement("link"), Po(l, "link", r),
|
|
9859
|
+
z = 'link[rel="' + r + '"][href="' + z + '"]', typeof v == "string" && (z += '[crossorigin="' + v + '"]'), km.has(z) || (km.add(z), r = { rel: r, crossOrigin: v, href: l }, x.querySelector(z) === null && (l = x.createElement("link"), Po(l, "link", r), at(l), x.head.appendChild(l)));
|
|
9860
9860
|
}
|
|
9861
9861
|
}
|
|
9862
9862
|
function Ue(r) {
|
|
@@ -9890,7 +9890,7 @@ Error generating stack: ` + x.message + `
|
|
|
9890
9890
|
as: l
|
|
9891
9891
|
},
|
|
9892
9892
|
v
|
|
9893
|
-
), Ur.set(V, r), x.querySelector(z) !== null || l === "style" && x.querySelector(qc(V)) || l === "script" && x.querySelector(Nf(V)) || (l = x.createElement("link"), Po(l, "link", r),
|
|
9893
|
+
), Ur.set(V, r), x.querySelector(z) !== null || l === "style" && x.querySelector(qc(V)) || l === "script" && x.querySelector(Nf(V)) || (l = x.createElement("link"), Po(l, "link", r), at(l), x.head.appendChild(l)));
|
|
9894
9894
|
}
|
|
9895
9895
|
}
|
|
9896
9896
|
function J0(r, l) {
|
|
@@ -9918,7 +9918,7 @@ Error generating stack: ` + x.message + `
|
|
|
9918
9918
|
if (v.querySelector(Nf(V)))
|
|
9919
9919
|
return;
|
|
9920
9920
|
}
|
|
9921
|
-
x = v.createElement("link"), Po(x, "link", r),
|
|
9921
|
+
x = v.createElement("link"), Po(x, "link", r), at(x), v.head.appendChild(x);
|
|
9922
9922
|
}
|
|
9923
9923
|
}
|
|
9924
9924
|
}
|
|
@@ -9941,7 +9941,7 @@ Error generating stack: ` + x.message + `
|
|
|
9941
9941
|
v
|
|
9942
9942
|
), (v = Ur.get(V)) && Kg(r, v);
|
|
9943
9943
|
var be = J = x.createElement("link");
|
|
9944
|
-
|
|
9944
|
+
at(be), Po(be, "link", r), be._p = new Promise(function(Me, Fe) {
|
|
9945
9945
|
be.onload = Me, be.onerror = Fe;
|
|
9946
9946
|
}), be.addEventListener("load", function() {
|
|
9947
9947
|
se.loading |= 1;
|
|
@@ -9963,7 +9963,7 @@ Error generating stack: ` + x.message + `
|
|
|
9963
9963
|
var v = xf;
|
|
9964
9964
|
if (v && r) {
|
|
9965
9965
|
var x = $n(v).hoistableScripts, z = nd(r), V = x.get(z);
|
|
9966
|
-
V || (V = v.querySelector(Nf(z)), V || (r = u({ src: r, async: !0 }, l), (l = Ur.get(z)) && Zg(r, l), V = v.createElement("script"),
|
|
9966
|
+
V || (V = v.querySelector(Nf(z)), V || (r = u({ src: r, async: !0 }, l), (l = Ur.get(z)) && Zg(r, l), V = v.createElement("script"), at(V), Po(V, "link", r), v.head.appendChild(V)), V = {
|
|
9967
9967
|
type: "script",
|
|
9968
9968
|
instance: V,
|
|
9969
9969
|
count: 1,
|
|
@@ -9976,7 +9976,7 @@ Error generating stack: ` + x.message + `
|
|
|
9976
9976
|
var v = xf;
|
|
9977
9977
|
if (v && r) {
|
|
9978
9978
|
var x = $n(v).hoistableScripts, z = nd(r), V = x.get(z);
|
|
9979
|
-
V || (V = v.querySelector(Nf(z)), V || (r = u({ src: r, async: !0, type: "module" }, l), (l = Ur.get(z)) && Zg(r, l), V = v.createElement("script"),
|
|
9979
|
+
V || (V = v.querySelector(Nf(z)), V || (r = u({ src: r, async: !0, type: "module" }, l), (l = Ur.get(z)) && Zg(r, l), V = v.createElement("script"), at(V), Po(V, "link", r), v.head.appendChild(V)), V = {
|
|
9980
9980
|
type: "script",
|
|
9981
9981
|
instance: V,
|
|
9982
9982
|
count: 1,
|
|
@@ -10064,7 +10064,7 @@ Error generating stack: ` + x.message + `
|
|
|
10064
10064
|
return x.loading |= 1;
|
|
10065
10065
|
}), l.addEventListener("error", function() {
|
|
10066
10066
|
return x.loading |= 2;
|
|
10067
|
-
}), Po(l, "link", v),
|
|
10067
|
+
}), Po(l, "link", v), at(l), r.head.appendChild(l));
|
|
10068
10068
|
}
|
|
10069
10069
|
function nd(r) {
|
|
10070
10070
|
return '[src="' + ar(r) + '"]';
|
|
@@ -10080,7 +10080,7 @@ Error generating stack: ` + x.message + `
|
|
|
10080
10080
|
'style[data-href~="' + ar(v.href) + '"]'
|
|
10081
10081
|
);
|
|
10082
10082
|
if (x)
|
|
10083
|
-
return l.instance = x,
|
|
10083
|
+
return l.instance = x, at(x), x;
|
|
10084
10084
|
var z = u({}, v, {
|
|
10085
10085
|
"data-href": v.href,
|
|
10086
10086
|
"data-precedence": v.precedence,
|
|
@@ -10089,15 +10089,15 @@ Error generating stack: ` + x.message + `
|
|
|
10089
10089
|
});
|
|
10090
10090
|
return x = (r.ownerDocument || r).createElement(
|
|
10091
10091
|
"style"
|
|
10092
|
-
),
|
|
10092
|
+
), at(x), Po(x, "style", z), Im(x, v.precedence, r), l.instance = x;
|
|
10093
10093
|
case "stylesheet":
|
|
10094
10094
|
z = la(v.href);
|
|
10095
10095
|
var V = r.querySelector(
|
|
10096
10096
|
qc(z)
|
|
10097
10097
|
);
|
|
10098
10098
|
if (V)
|
|
10099
|
-
return l.state.loading |= 4, l.instance = V,
|
|
10100
|
-
x = Cf(v), (z = Ur.get(z)) && Kg(x, z), V = (r.ownerDocument || r).createElement("link"),
|
|
10099
|
+
return l.state.loading |= 4, l.instance = V, at(V), V;
|
|
10100
|
+
x = Cf(v), (z = Ur.get(z)) && Kg(x, z), V = (r.ownerDocument || r).createElement("link"), at(V);
|
|
10101
10101
|
var J = V;
|
|
10102
10102
|
return J._p = new Promise(function(se, be) {
|
|
10103
10103
|
J.onload = se, J.onerror = be;
|
|
@@ -10105,7 +10105,7 @@ Error generating stack: ` + x.message + `
|
|
|
10105
10105
|
case "script":
|
|
10106
10106
|
return V = nd(v.src), (z = r.querySelector(
|
|
10107
10107
|
Nf(V)
|
|
10108
|
-
)) ? (l.instance = z,
|
|
10108
|
+
)) ? (l.instance = z, at(z), z) : (x = v, (z = Ur.get(V)) && (x = u({}, v), Zg(x, z)), r = r.ownerDocument || r, z = r.createElement("script"), at(z), Po(z, "link", x), r.head.appendChild(z), l.instance = z);
|
|
10109
10109
|
case "void":
|
|
10110
10110
|
return null;
|
|
10111
10111
|
default:
|
|
@@ -10191,10 +10191,10 @@ Error generating stack: ` + x.message + `
|
|
|
10191
10191
|
qc(z)
|
|
10192
10192
|
);
|
|
10193
10193
|
if (V) {
|
|
10194
|
-
l = V._p, l !== null && typeof l == "object" && typeof l.then == "function" && (r.count++, r = eb.bind(r), l.then(r, r)), v.state.loading |= 4, v.instance = V,
|
|
10194
|
+
l = V._p, l !== null && typeof l == "object" && typeof l.then == "function" && (r.count++, r = eb.bind(r), l.then(r, r)), v.state.loading |= 4, v.instance = V, at(V);
|
|
10195
10195
|
return;
|
|
10196
10196
|
}
|
|
10197
|
-
V = l.ownerDocument || l, x = Cf(x), (z = Ur.get(z)) && Kg(x, z), V = V.createElement("link"),
|
|
10197
|
+
V = l.ownerDocument || l, x = Cf(x), (z = Ur.get(z)) && Kg(x, z), V = V.createElement("link"), at(V);
|
|
10198
10198
|
var J = V;
|
|
10199
10199
|
J._p = new Promise(function(se, be) {
|
|
10200
10200
|
J.onload = se, J.onerror = be;
|
|
@@ -10500,9 +10500,9 @@ Error generating stack: ` + x.message + `
|
|
|
10500
10500
|
switch (Re()) {
|
|
10501
10501
|
case je:
|
|
10502
10502
|
return 2;
|
|
10503
|
-
case
|
|
10503
|
+
case ot:
|
|
10504
10504
|
return 8;
|
|
10505
|
-
case
|
|
10505
|
+
case nt:
|
|
10506
10506
|
case wt:
|
|
10507
10507
|
return 32;
|
|
10508
10508
|
case xt:
|
|
@@ -11584,7 +11584,7 @@ Error generating stack: ` + X.message + `
|
|
|
11584
11584
|
));
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
|
-
function
|
|
11587
|
+
function it(n) {
|
|
11588
11588
|
return n >>>= 0, n === 0 ? 32 : 31 - (sy(n) / rb | 0) | 0;
|
|
11589
11589
|
}
|
|
11590
11590
|
function dt(n) {
|
|
@@ -11702,11 +11702,11 @@ Error generating stack: ` + X.message + `
|
|
|
11702
11702
|
var n = Of;
|
|
11703
11703
|
return Of <<= 1, (Of & 62914560) === 0 && (Of = 4194304), n;
|
|
11704
11704
|
}
|
|
11705
|
-
function
|
|
11705
|
+
function ot(n) {
|
|
11706
11706
|
for (var i = [], s = 0; 31 > s; s++) i.push(n);
|
|
11707
11707
|
return i;
|
|
11708
11708
|
}
|
|
11709
|
-
function
|
|
11709
|
+
function nt(n, i) {
|
|
11710
11710
|
n.pendingLanes |= i, i !== 268435456 && (n.suspendedLanes = 0, n.pingedLanes = 0, n.warmLanes = 0);
|
|
11711
11711
|
}
|
|
11712
11712
|
function wt(n, i, s, w, _, L) {
|
|
@@ -12060,7 +12060,7 @@ Error generating stack: ` + X.message + `
|
|
|
12060
12060
|
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
|
|
12061
12061
|
), jm = !0);
|
|
12062
12062
|
}
|
|
12063
|
-
function
|
|
12063
|
+
function rt() {
|
|
12064
12064
|
var n = ve();
|
|
12065
12065
|
return n ? `
|
|
12066
12066
|
|
|
@@ -12092,11 +12092,11 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12092
12092
|
i.multiple && !w ? console.error(
|
|
12093
12093
|
"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",
|
|
12094
12094
|
s,
|
|
12095
|
-
|
|
12095
|
+
rt()
|
|
12096
12096
|
) : !i.multiple && w && console.error(
|
|
12097
12097
|
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",
|
|
12098
12098
|
s,
|
|
12099
|
-
|
|
12099
|
+
rt()
|
|
12100
12100
|
);
|
|
12101
12101
|
}
|
|
12102
12102
|
}
|
|
@@ -12140,7 +12140,7 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12140
12140
|
function $n(n, i) {
|
|
12141
12141
|
return n.serverProps === void 0 && n.serverTail.length === 0 && n.children.length === 1 && 3 < n.distanceFromLeaf && n.distanceFromLeaf > 15 - i ? $n(n.children[0], i) : n;
|
|
12142
12142
|
}
|
|
12143
|
-
function
|
|
12143
|
+
function at(n) {
|
|
12144
12144
|
return " " + " ".repeat(n);
|
|
12145
12145
|
}
|
|
12146
12146
|
function Sn(n) {
|
|
@@ -12188,7 +12188,7 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12188
12188
|
` + An(s) + Un(i, w) + `
|
|
12189
12189
|
`;
|
|
12190
12190
|
}
|
|
12191
|
-
return
|
|
12191
|
+
return at(s) + Un(n, w) + `
|
|
12192
12192
|
`;
|
|
12193
12193
|
}
|
|
12194
12194
|
function xa(n) {
|
|
@@ -12280,7 +12280,7 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12280
12280
|
_ += gc(
|
|
12281
12281
|
n,
|
|
12282
12282
|
i,
|
|
12283
|
-
|
|
12283
|
+
at(w)
|
|
12284
12284
|
);
|
|
12285
12285
|
else {
|
|
12286
12286
|
for (var G in i)
|
|
@@ -12297,17 +12297,17 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12297
12297
|
X = pc(
|
|
12298
12298
|
te,
|
|
12299
12299
|
X
|
|
12300
|
-
), typeof ne == "object" && ne !== null && typeof te == "object" && te !== null && xa(ne) === "Object" && xa(te) === "Object" && (2 < Object.keys(ne).length || 2 < Object.keys(te).length || -1 < Te.indexOf("...") || -1 < X.indexOf("...")) ? _ +=
|
|
12300
|
+
), typeof ne == "object" && ne !== null && typeof te == "object" && te !== null && xa(ne) === "Object" && xa(te) === "Object" && (2 < Object.keys(ne).length || 2 < Object.keys(te).length || -1 < Te.indexOf("...") || -1 < X.indexOf("...")) ? _ += at(w + 1) + G + `={{
|
|
12301
12301
|
` + Od(
|
|
12302
12302
|
ne,
|
|
12303
12303
|
te,
|
|
12304
12304
|
w + 2
|
|
12305
|
-
) +
|
|
12305
|
+
) + at(w + 1) + `}}
|
|
12306
12306
|
` : (_ += Sn(w + 1) + G + "=" + Te + `
|
|
12307
12307
|
`, _ += An(w + 1) + G + "=" + X + `
|
|
12308
12308
|
`);
|
|
12309
12309
|
} else
|
|
12310
|
-
_ +=
|
|
12310
|
+
_ += at(w + 1) + G + "=" + pc(i[G], X) + `
|
|
12311
12311
|
`;
|
|
12312
12312
|
}
|
|
12313
12313
|
L.forEach(function(Ae) {
|
|
@@ -12316,9 +12316,9 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12316
12316
|
_ += An(w + 1) + Ae + "=" + pc(s[Ae], he) + `
|
|
12317
12317
|
`;
|
|
12318
12318
|
}
|
|
12319
|
-
}), _ = _ === "" ?
|
|
12320
|
-
` :
|
|
12321
|
-
` + _ +
|
|
12319
|
+
}), _ = _ === "" ? at(w) + "<" + n + `>
|
|
12320
|
+
` : at(w) + "<" + n + `
|
|
12321
|
+
` + _ + at(w) + `>
|
|
12322
12322
|
`;
|
|
12323
12323
|
}
|
|
12324
12324
|
return n = s.children, i = i.children, typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? (L = "", (typeof i == "string" || typeof i == "number" || typeof i == "bigint") && (L = "" + i), _ += co(L, "" + n, w + 1)) : (typeof i == "string" || typeof i == "number" || typeof i == "bigint") && (_ = n == null ? _ + co("" + i, null, w + 1) : _ + co("" + i, void 0, w + 1)), _;
|
|
@@ -12330,20 +12330,20 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12330
12330
|
s += Ao(n, i), n = n.sibling;
|
|
12331
12331
|
return s;
|
|
12332
12332
|
}
|
|
12333
|
-
return
|
|
12333
|
+
return at(i) + "<" + s + `>
|
|
12334
12334
|
`;
|
|
12335
12335
|
}
|
|
12336
12336
|
function Dd(n, i) {
|
|
12337
12337
|
var s = $n(n, i);
|
|
12338
12338
|
if (s !== n && (n.children.length !== 1 || n.children[0] !== s))
|
|
12339
|
-
return
|
|
12339
|
+
return at(i) + `...
|
|
12340
12340
|
` + Dd(s, i + 1);
|
|
12341
12341
|
s = "";
|
|
12342
12342
|
var w = n.fiber._debugInfo;
|
|
12343
12343
|
if (w)
|
|
12344
12344
|
for (var _ = 0; _ < w.length; _++) {
|
|
12345
12345
|
var L = w[_].name;
|
|
12346
|
-
typeof L == "string" && (s +=
|
|
12346
|
+
typeof L == "string" && (s += at(i) + "<" + L + `>
|
|
12347
12347
|
`, i++);
|
|
12348
12348
|
}
|
|
12349
12349
|
if (w = "", _ = n.fiber.pendingProps, n.fiber.tag === 6)
|
|
@@ -12361,7 +12361,7 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12361
12361
|
}
|
|
12362
12362
|
X += " " + ne + "=" + te;
|
|
12363
12363
|
}
|
|
12364
|
-
w =
|
|
12364
|
+
w = at(w) + "<" + L + X + `>
|
|
12365
12365
|
`, i++;
|
|
12366
12366
|
} else
|
|
12367
12367
|
n.serverProps === null ? (w = gc(
|
|
@@ -12379,7 +12379,7 @@ Check the render method of \`` + n + "`." : "";
|
|
|
12379
12379
|
var ne = "";
|
|
12380
12380
|
for (_ = n.fiber.child, L = 0; _ && L < n.children.length; )
|
|
12381
12381
|
G = n.children[L], G.fiber === _ ? (ne += Dd(G, i), L++) : ne += Ao(_, i), _ = _.sibling;
|
|
12382
|
-
for (_ && 0 < n.children.length && (ne +=
|
|
12382
|
+
for (_ && 0 < n.children.length && (ne += at(i) + `...
|
|
12383
12383
|
`), _ = n.serverTail, n.serverProps === null && i--, n = 0; n < _.length; n++)
|
|
12384
12384
|
L = _[n], ne = typeof L == "string" ? ne + (An(i) + Un(L, 120 - 2 * i) + `
|
|
12385
12385
|
`) : ne + gc(
|
|
@@ -20643,7 +20643,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
20643
20643
|
yn,
|
|
20644
20644
|
Ya,
|
|
20645
20645
|
!1
|
|
20646
|
-
)),
|
|
20646
|
+
)), nt(n, s), (jn & Wo) !== nr && n === vi) {
|
|
20647
20647
|
if (ll)
|
|
20648
20648
|
switch (i.tag) {
|
|
20649
20649
|
case 0:
|
|
@@ -21866,7 +21866,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
21866
21866
|
}
|
|
21867
21867
|
}
|
|
21868
21868
|
function yr(n, i, s) {
|
|
21869
|
-
i = cr(s, i), yw(i), i = ag(n.stateNode, i, 2), n = Vs(n, i, 2), n !== null && (
|
|
21869
|
+
i = cr(s, i), yw(i), i = ag(n.stateNode, i, 2), n = Vs(n, i, 2), n !== null && (nt(n, 2), kr(n));
|
|
21870
21870
|
}
|
|
21871
21871
|
function hn(n, i, s) {
|
|
21872
21872
|
if (kb = !1, n.tag === 3)
|
|
@@ -21889,7 +21889,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
21889
21889
|
w,
|
|
21890
21890
|
i,
|
|
21891
21891
|
n
|
|
21892
|
-
),
|
|
21892
|
+
), nt(w, 2), kr(w));
|
|
21893
21893
|
return;
|
|
21894
21894
|
}
|
|
21895
21895
|
}
|
|
@@ -21931,7 +21931,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
21931
21931
|
), vi === n && (yn & s) === s && (Fi === Gf || Fi === X1 && (yn & 62914560) === yn && Oo() - eT < EL ? (jn & Wo) === nr && tl(n, 0) : qA |= s, tp === yn && (tp = 0)), kr(n);
|
|
21932
21932
|
}
|
|
21933
21933
|
function L0(n, i) {
|
|
21934
|
-
i === 0 && (i = je()), n = Xo(n, i), n !== null && (
|
|
21934
|
+
i === 0 && (i = je()), n = Xo(n, i), n !== null && (nt(n, i), kr(n));
|
|
21935
21935
|
}
|
|
21936
21936
|
function Xl(n) {
|
|
21937
21937
|
var i = n.memoizedState, s = 0;
|
|
@@ -24966,7 +24966,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
24966
24966
|
}
|
|
24967
24967
|
}
|
|
24968
24968
|
function Rm(n, i, s, w, _, L, G, X, te) {
|
|
24969
|
-
for (this.tag = 1, this.containerInfo = n, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = ap, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes =
|
|
24969
|
+
for (this.tag = 1, this.containerInfo = n, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = ap, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ot(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ot(0), this.hiddenUpdates = ot(null), this.identifierPrefix = w, this.onUncaughtError = _, this.onCaughtError = L, this.onRecoverableError = G, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = te, this.incompleteTransitions = /* @__PURE__ */ new Map(), this.passiveEffectDuration = this.effectDuration = -0, this.memoizedUpdaters = /* @__PURE__ */ new Set(), n = this.pendingUpdatersLaneMap = [], i = 0; 31 > i; i++) n.push(/* @__PURE__ */ new Set());
|
|
24970
24970
|
this._debugRootType = s ? "hydrateRoot()" : "createRoot()";
|
|
24971
24971
|
}
|
|
24972
24972
|
function Lm(n, i, s, w, _, L, G, X, te, ne, Te, Ae) {
|
|
@@ -25496,7 +25496,7 @@ Check the render method of %s.`,
|
|
|
25496
25496
|
action: null
|
|
25497
25497
|
}), J0 = [], ey = [], ec = -1, Xc = Y(null), _f = Y(null), la = Y(null), qc = Y(null), Cf = 0, b1, nd, Nf, ty, Im, Kg, Zg;
|
|
25498
25498
|
q.__reactDisabledLog = !0;
|
|
25499
|
-
var Rf, ny, Jg = !1, iy = new (typeof WeakMap == "function" ? WeakMap : Map)(), Hr = null, ll = !1, ca = Object.prototype.hasOwnProperty, oy = Ji.unstable_scheduleCallback, eb = Ji.unstable_cancelCallback, tb = Ji.unstable_shouldYield, nb = Ji.unstable_requestPaint, Oo = Ji.unstable_now, $m = Ji.unstable_getCurrentPriorityLevel, ry = Ji.unstable_ImmediatePriority, ib = Ji.unstable_UserBlockingPriority, id = Ji.unstable_NormalPriority, v1 = Ji.unstable_LowPriority, ob = Ji.unstable_IdlePriority, ay = Ji.log, y1 = Ji.unstable_setDisableYieldValue, od = null, po = null, cl = !1, ul = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", Vo = Math.clz32 ? Math.clz32 :
|
|
25499
|
+
var Rf, ny, Jg = !1, iy = new (typeof WeakMap == "function" ? WeakMap : Map)(), Hr = null, ll = !1, ca = Object.prototype.hasOwnProperty, oy = Ji.unstable_scheduleCallback, eb = Ji.unstable_cancelCallback, tb = Ji.unstable_shouldYield, nb = Ji.unstable_requestPaint, Oo = Ji.unstable_now, $m = Ji.unstable_getCurrentPriorityLevel, ry = Ji.unstable_ImmediatePriority, ib = Ji.unstable_UserBlockingPriority, id = Ji.unstable_NormalPriority, v1 = Ji.unstable_LowPriority, ob = Ji.unstable_IdlePriority, ay = Ji.log, y1 = Ji.unstable_setDisableYieldValue, od = null, po = null, cl = !1, ul = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", Vo = Math.clz32 ? Math.clz32 : it, sy = Math.log, rb = Math.LN2, Lf = 256, Um = 262144, Of = 4194304, go = 2, Go = 8, Jo = 32, Kc = 268435456, Ga = Math.random().toString(36).slice(2), Ci = "__reactFiber$" + Ga, Sr = "__reactProps$" + Ga, tc = "__reactContainer$" + Ga, rd = "__reactEvents$" + Ga, sA = "__reactListeners$" + Ga, E1 = "__reactHandles$" + Ga, Hm = "__reactResources$" + Ga, Df = "__reactMarker$" + Ga, w1 = /* @__PURE__ */ new Set(), dl = {}, Mf = {}, T1 = {
|
|
25500
25500
|
button: !0,
|
|
25501
25501
|
checkbox: !0,
|
|
25502
25502
|
image: !0,
|
|
@@ -27896,7 +27896,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
27896
27896
|
G,
|
|
27897
27897
|
X,
|
|
27898
27898
|
m1
|
|
27899
|
-
), i.context = u1(null), s = i.current, w = Ko(s), w = kt(w), _ = fo(w), _.callback = null, Vs(s, _, w), Bs(w, "hydrateRoot()", null), s = w, i.current.lanes = s,
|
|
27899
|
+
), i.context = u1(null), s = i.current, w = Ko(s), w = kt(w), _ = fo(w), _.callback = null, Vs(s, _, w), Bs(w, "hydrateRoot()", null), s = w, i.current.lanes = s, nt(i, s), kr(i), n[tc] = i.current, Vc(n), new Es(i);
|
|
27900
27900
|
}, oE.version = "19.2.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
27901
27901
|
})()), oE;
|
|
27902
27902
|
}
|
|
@@ -28964,17 +28964,17 @@ function lz(t) {
|
|
|
28964
28964
|
() => I.order.map((ze) => I.byId[ze]).filter(Boolean),
|
|
28965
28965
|
[I]
|
|
28966
28966
|
), [Z, q] = de("idle"), [K, oe] = de(void 0), ee = k || Z === "working", re = Xe(!1), ae = Xe(null), ie = Xe(null), ce = Xe(0), me = 1500, ve = pt(async (ze = !1) => {
|
|
28967
|
-
const
|
|
28968
|
-
if (!ze &&
|
|
28967
|
+
const it = Date.now();
|
|
28968
|
+
if (!ze && it - ce.current < me || ie.current) return;
|
|
28969
28969
|
const dt = (async () => {
|
|
28970
28970
|
R(!0), $(null);
|
|
28971
28971
|
try {
|
|
28972
28972
|
const Re = ((await h.current({ limit: 50 })).items ?? []).map((je) => {
|
|
28973
|
-
const
|
|
28973
|
+
const ot = jb(je.lastActivity) ?? jb(je.updatedAt) ?? jb(je.lastActivityMs) ?? jb(je.createdAt) ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
28974
28974
|
return {
|
|
28975
28975
|
sessionId: je.sessionId,
|
|
28976
28976
|
integrationPackId: je.integrationPackId,
|
|
28977
|
-
lastAt:
|
|
28977
|
+
lastAt: ot,
|
|
28978
28978
|
createdAt: jb(je.createdAt),
|
|
28979
28979
|
updatedAt: jb(je.updatedAt),
|
|
28980
28980
|
lastRole: je.lastRole ?? void 0,
|
|
@@ -29005,20 +29005,20 @@ function lz(t) {
|
|
|
29005
29005
|
if (re.current) return null;
|
|
29006
29006
|
re.current = !0;
|
|
29007
29007
|
try {
|
|
29008
|
-
const
|
|
29008
|
+
const it = (await T.current({
|
|
29009
29009
|
integrationPackId: e.integrationPackId
|
|
29010
29010
|
})).sessionId;
|
|
29011
29011
|
if (g)
|
|
29012
|
-
a == null || a(
|
|
29012
|
+
a == null || a(it);
|
|
29013
29013
|
else {
|
|
29014
29014
|
if (f)
|
|
29015
29015
|
try {
|
|
29016
|
-
localStorage.setItem(y,
|
|
29016
|
+
localStorage.setItem(y, it);
|
|
29017
29017
|
} catch {
|
|
29018
29018
|
}
|
|
29019
|
-
await ve(!0), U(
|
|
29019
|
+
await ve(!0), U(it), j.current = !1;
|
|
29020
29020
|
}
|
|
29021
|
-
return
|
|
29021
|
+
return it;
|
|
29022
29022
|
} catch (ze) {
|
|
29023
29023
|
return Le.warn({ e: ze }, "createSession failed"), null;
|
|
29024
29024
|
} finally {
|
|
@@ -29032,13 +29032,13 @@ function lz(t) {
|
|
|
29032
29032
|
y,
|
|
29033
29033
|
ve
|
|
29034
29034
|
]), ue = pt(async (ze) => {
|
|
29035
|
-
const
|
|
29036
|
-
if (!g && (
|
|
29035
|
+
const it = Y === ze;
|
|
29036
|
+
if (!g && (it && (j.current = !0), U((dt) => dt === ze ? null : dt), f))
|
|
29037
29037
|
try {
|
|
29038
29038
|
(localStorage.getItem(y) || "") === ze && localStorage.removeItem(y);
|
|
29039
29039
|
} catch {
|
|
29040
29040
|
}
|
|
29041
|
-
|
|
29041
|
+
it && (W({ type: "reset", list: [] }), q("idle"), oe(void 0));
|
|
29042
29042
|
try {
|
|
29043
29043
|
await A.current({ sessionId: ze });
|
|
29044
29044
|
} finally {
|
|
@@ -29052,13 +29052,13 @@ function lz(t) {
|
|
|
29052
29052
|
}
|
|
29053
29053
|
}, [g, f, y]), De = pt(async (ze) => {
|
|
29054
29054
|
var yt, st;
|
|
29055
|
-
let
|
|
29056
|
-
if (
|
|
29055
|
+
let it = Y;
|
|
29056
|
+
if (it || (it = await ye()), !it) return;
|
|
29057
29057
|
const dt = ((yt = ze.data) == null ? void 0 : yt.trim()) ?? "";
|
|
29058
29058
|
if (dt) {
|
|
29059
29059
|
const Re = {
|
|
29060
29060
|
id: crypto.randomUUID(),
|
|
29061
|
-
sessionId:
|
|
29061
|
+
sessionId: it,
|
|
29062
29062
|
integrationPackId: e.integrationPackId,
|
|
29063
29063
|
agentCommand: "sendMessage",
|
|
29064
29064
|
role: "user",
|
|
@@ -29074,7 +29074,7 @@ function lz(t) {
|
|
|
29074
29074
|
if ((((st = ze.files) == null ? void 0 : st.length) ?? 0) > 0 || c) {
|
|
29075
29075
|
if (u && Le.warn("Boomi direct transport does not support file attachments yet; sending text only."), u) {
|
|
29076
29076
|
await S.current({
|
|
29077
|
-
sessionId:
|
|
29077
|
+
sessionId: it,
|
|
29078
29078
|
agent_id: e.integrationPackId ?? "",
|
|
29079
29079
|
message: dt,
|
|
29080
29080
|
preview_mode: !1
|
|
@@ -29082,7 +29082,7 @@ function lz(t) {
|
|
|
29082
29082
|
return;
|
|
29083
29083
|
}
|
|
29084
29084
|
const je = new FormData();
|
|
29085
|
-
je.append("sessionId",
|
|
29085
|
+
je.append("sessionId", it), je.append("integrationPackId", e.integrationPackId ?? ""), je.append("agentCommand", "sendMessage"), je.append(
|
|
29086
29086
|
"message",
|
|
29087
29087
|
JSON.stringify({
|
|
29088
29088
|
role: "user",
|
|
@@ -29090,16 +29090,21 @@ function lz(t) {
|
|
|
29090
29090
|
content: { data: dt }
|
|
29091
29091
|
})
|
|
29092
29092
|
);
|
|
29093
|
-
|
|
29094
|
-
|
|
29093
|
+
const ot = ze.files ?? [];
|
|
29094
|
+
if (c && ot.length === 0) {
|
|
29095
|
+
const nt = new File([""], "empty.txt", { type: "text/plain" });
|
|
29096
|
+
je.append("files", nt);
|
|
29097
|
+
}
|
|
29098
|
+
for (const nt of ot)
|
|
29099
|
+
je.append("files", nt);
|
|
29095
29100
|
await d.sendMultipart({ formData: je });
|
|
29096
29101
|
} else u ? await S.current({
|
|
29097
|
-
sessionId:
|
|
29102
|
+
sessionId: it,
|
|
29098
29103
|
agent_id: e.integrationPackId ?? "",
|
|
29099
29104
|
message: dt,
|
|
29100
29105
|
preview_mode: !1
|
|
29101
29106
|
}) : await S.current({
|
|
29102
|
-
sessionId:
|
|
29107
|
+
sessionId: it,
|
|
29103
29108
|
integrationPackId: e.integrationPackId,
|
|
29104
29109
|
agentCommand: "sendMessage",
|
|
29105
29110
|
message: { role: "user", type: "text", content: { data: dt } }
|
|
@@ -29113,11 +29118,11 @@ function lz(t) {
|
|
|
29113
29118
|
await De({ data: ze, files: [] });
|
|
29114
29119
|
return;
|
|
29115
29120
|
}
|
|
29116
|
-
let
|
|
29117
|
-
if (
|
|
29121
|
+
let it = Y;
|
|
29122
|
+
if (it || (it = await ye()), !it) return;
|
|
29118
29123
|
const dt = ze ?? "", yt = {
|
|
29119
29124
|
id: crypto.randomUUID(),
|
|
29120
|
-
sessionId:
|
|
29125
|
+
sessionId: it,
|
|
29121
29126
|
integrationPackId: e.integrationPackId,
|
|
29122
29127
|
agentCommand: "sendMessage",
|
|
29123
29128
|
role: "user",
|
|
@@ -29130,12 +29135,12 @@ function lz(t) {
|
|
|
29130
29135
|
try {
|
|
29131
29136
|
const Re = await S.current(
|
|
29132
29137
|
u ? {
|
|
29133
|
-
sessionId:
|
|
29138
|
+
sessionId: it,
|
|
29134
29139
|
agent_id: e.integrationPackId ?? "",
|
|
29135
29140
|
message: dt,
|
|
29136
29141
|
preview_mode: !1
|
|
29137
29142
|
} : {
|
|
29138
|
-
sessionId:
|
|
29143
|
+
sessionId: it,
|
|
29139
29144
|
integrationPackId: e.integrationPackId,
|
|
29140
29145
|
agentCommand: "sendMessage",
|
|
29141
29146
|
message: { role: "user", type: "text", content: { data: dt } }
|
|
@@ -29153,7 +29158,7 @@ function lz(t) {
|
|
|
29153
29158
|
if (f)
|
|
29154
29159
|
try {
|
|
29155
29160
|
const ze = localStorage.getItem(y) || "";
|
|
29156
|
-
if (ze && N.some((
|
|
29161
|
+
if (ze && N.some((it) => it.sessionId === ze)) {
|
|
29157
29162
|
j.current = !1, U(ze);
|
|
29158
29163
|
return;
|
|
29159
29164
|
}
|
|
@@ -29175,12 +29180,12 @@ function lz(t) {
|
|
|
29175
29180
|
return;
|
|
29176
29181
|
}
|
|
29177
29182
|
ze.role === "user" ? W({ type: "reconcileUserEcho", server: ze }) : W({ type: "mergeFromServer", list: [ze] });
|
|
29178
|
-
const
|
|
29179
|
-
|
|
29183
|
+
const it = Date.now();
|
|
29184
|
+
it - tt.current > 5e3 && (tt.current = it, ve());
|
|
29180
29185
|
}, [W, ve]), Rt = pt((ze) => {
|
|
29181
|
-
const
|
|
29186
|
+
const it = ze.note;
|
|
29182
29187
|
let dt = ze.state;
|
|
29183
|
-
|
|
29188
|
+
it && /progress/i.test(it) && (dt = "progress"), it && /error|timeout|failed/i.test(it) && (dt = "error"), q(dt), oe(it);
|
|
29184
29189
|
}, []);
|
|
29185
29190
|
return rz({
|
|
29186
29191
|
sessionId: Y || "",
|
|
@@ -49419,7 +49424,7 @@ function O6() {
|
|
|
49419
49424
|
function ze(le, _e) {
|
|
49420
49425
|
return le.has(_e);
|
|
49421
49426
|
}
|
|
49422
|
-
function
|
|
49427
|
+
function it(le, _e) {
|
|
49423
49428
|
return le == null ? void 0 : le[_e];
|
|
49424
49429
|
}
|
|
49425
49430
|
function dt(le) {
|
|
@@ -49439,12 +49444,12 @@ function O6() {
|
|
|
49439
49444
|
qe[++_e] = ct;
|
|
49440
49445
|
}), qe;
|
|
49441
49446
|
}
|
|
49442
|
-
var Re = Array.prototype, je = Function.prototype,
|
|
49443
|
-
var le = /[^.]+$/.exec(
|
|
49447
|
+
var Re = Array.prototype, je = Function.prototype, ot = Object.prototype, nt = me["__core-js_shared__"], wt = je.toString, xt = ot.hasOwnProperty, Dt = (function() {
|
|
49448
|
+
var le = /[^.]+$/.exec(nt && nt.keys && nt.keys.IE_PROTO || "");
|
|
49444
49449
|
return le ? "Symbol(src)_1." + le : "";
|
|
49445
|
-
})(), dn =
|
|
49450
|
+
})(), dn = ot.toString, kt = RegExp(
|
|
49446
49451
|
"^" + wt.call(xt).replace(oe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
49447
|
-
), Lt = ye ? me.Buffer : void 0, St = me.Symbol, xe = me.Uint8Array, Ge =
|
|
49452
|
+
), Lt = ye ? me.Buffer : void 0, St = me.Symbol, xe = me.Uint8Array, Ge = ot.propertyIsEnumerable, Et = Re.splice, $t = St ? St.toStringTag : void 0, ft = Object.getOwnPropertySymbols, Tt = Lt ? Lt.isBuffer : void 0, Ft = yt(Object.keys, Object), Vt = Fo(me, "DataView"), Ce = Fo(me, "Map"), Je = Fo(me, "Promise"), mt = Fo(me, "Set"), Ct = Fo(me, "WeakMap"), Ut = Fo(Object, "create"), an = _a(Vt), qt = _a(Ce), fn = _a(Je), In = _a(mt), Jt = _a(Ct), et = St ? St.prototype : void 0, Yn = et ? et.valueOf : void 0;
|
|
49448
49453
|
function Mt(le) {
|
|
49449
49454
|
var _e = -1, qe = le == null ? 0 : le.length;
|
|
49450
49455
|
for (this.clear(); ++_e < qe; ) {
|
|
@@ -49493,7 +49498,7 @@ function O6() {
|
|
|
49493
49498
|
var ct = _e.length - 1;
|
|
49494
49499
|
return qe == ct ? _e.pop() : Et.call(_e, qe, 1), --this.size, !0;
|
|
49495
49500
|
}
|
|
49496
|
-
function
|
|
49501
|
+
function rt(le) {
|
|
49497
49502
|
var _e = this.__data__, qe = Ao(_e, le);
|
|
49498
49503
|
return qe < 0 ? void 0 : _e[qe][1];
|
|
49499
49504
|
}
|
|
@@ -49504,7 +49509,7 @@ function O6() {
|
|
|
49504
49509
|
var qe = this.__data__, ct = Ao(qe, le);
|
|
49505
49510
|
return ct < 0 ? (++this.size, qe.push([le, _e])) : qe[ct][1] = _e, this;
|
|
49506
49511
|
}
|
|
49507
|
-
yi.prototype.clear = Bo, yi.prototype.delete = Nr, yi.prototype.get =
|
|
49512
|
+
yi.prototype.clear = Bo, yi.prototype.delete = Nr, yi.prototype.get = rt, yi.prototype.has = Ee, yi.prototype.set = Ze;
|
|
49508
49513
|
function lt(le) {
|
|
49509
49514
|
var _e = -1, qe = le == null ? 0 : le.length;
|
|
49510
49515
|
for (this.clear(); ++_e < qe; ) {
|
|
@@ -49526,14 +49531,14 @@ function O6() {
|
|
|
49526
49531
|
function $n(le) {
|
|
49527
49532
|
return yc(this, le).get(le);
|
|
49528
49533
|
}
|
|
49529
|
-
function
|
|
49534
|
+
function at(le) {
|
|
49530
49535
|
return yc(this, le).has(le);
|
|
49531
49536
|
}
|
|
49532
49537
|
function Sn(le, _e) {
|
|
49533
49538
|
var qe = yc(this, le), ct = qe.size;
|
|
49534
49539
|
return qe.set(le, _e), this.size += qe.size == ct ? 0 : 1, this;
|
|
49535
49540
|
}
|
|
49536
|
-
lt.prototype.clear = cn, lt.prototype.delete = oi, lt.prototype.get = $n, lt.prototype.has =
|
|
49541
|
+
lt.prototype.clear = cn, lt.prototype.delete = oi, lt.prototype.get = $n, lt.prototype.has = at, lt.prototype.set = Sn;
|
|
49537
49542
|
function An(le) {
|
|
49538
49543
|
var _e = -1, qe = le == null ? 0 : le.length;
|
|
49539
49544
|
for (this.__data__ = new lt(); ++_e < qe; )
|
|
@@ -49747,7 +49752,7 @@ function O6() {
|
|
|
49747
49752
|
return Ev(_e) ? qe[typeof _e == "string" ? "string" : "hash"] : qe.map;
|
|
49748
49753
|
}
|
|
49749
49754
|
function Fo(le, _e) {
|
|
49750
|
-
var qe =
|
|
49755
|
+
var qe = it(le, _e);
|
|
49751
49756
|
return yv(qe) ? qe : void 0;
|
|
49752
49757
|
}
|
|
49753
49758
|
function Mp(le) {
|
|
@@ -49793,7 +49798,7 @@ function O6() {
|
|
|
49793
49798
|
return !!Dt && Dt in le;
|
|
49794
49799
|
}
|
|
49795
49800
|
function Rr(le) {
|
|
49796
|
-
var _e = le && le.constructor, qe = typeof _e == "function" && _e.prototype ||
|
|
49801
|
+
var _e = le && le.constructor, qe = typeof _e == "function" && _e.prototype || ot;
|
|
49797
49802
|
return le === qe;
|
|
49798
49803
|
}
|
|
49799
49804
|
function Yr(le) {
|
|
@@ -50328,12 +50333,12 @@ function qP() {
|
|
|
50328
50333
|
me.prototype.clear = ve, me.prototype.delete = pe, me.prototype.get = ye, me.prototype.has = ue, me.prototype.set = Ve;
|
|
50329
50334
|
function De(xe, Ge) {
|
|
50330
50335
|
for (var Et = xe.length; Et--; )
|
|
50331
|
-
if (
|
|
50336
|
+
if (nt(xe[Et][0], Ge))
|
|
50332
50337
|
return Et;
|
|
50333
50338
|
return -1;
|
|
50334
50339
|
}
|
|
50335
50340
|
function Ke(xe, Ge) {
|
|
50336
|
-
Ge =
|
|
50341
|
+
Ge = it(Ge, xe) ? [Ge] : Rt(Ge);
|
|
50337
50342
|
for (var Et = 0, $t = Ge.length; xe != null && Et < $t; )
|
|
50338
50343
|
xe = xe[Re(Ge[Et++])];
|
|
50339
50344
|
return Et && Et == $t ? xe : void 0;
|
|
@@ -50363,7 +50368,7 @@ function qP() {
|
|
|
50363
50368
|
var Et = T(xe, Ge);
|
|
50364
50369
|
return tt(Et) ? Et : void 0;
|
|
50365
50370
|
}
|
|
50366
|
-
function
|
|
50371
|
+
function it(xe, Ge) {
|
|
50367
50372
|
if (wt(xe))
|
|
50368
50373
|
return !1;
|
|
50369
50374
|
var Et = typeof xe;
|
|
@@ -50376,7 +50381,7 @@ function qP() {
|
|
|
50376
50381
|
function yt(xe) {
|
|
50377
50382
|
return !!R && R in xe;
|
|
50378
50383
|
}
|
|
50379
|
-
var st =
|
|
50384
|
+
var st = ot(function(xe) {
|
|
50380
50385
|
xe = Lt(xe);
|
|
50381
50386
|
var Ge = [];
|
|
50382
50387
|
return y.test(xe) && Ge.push(""), xe.replace(f, function(Et, $t, ft, Tt) {
|
|
@@ -50402,7 +50407,7 @@ function qP() {
|
|
|
50402
50407
|
}
|
|
50403
50408
|
return "";
|
|
50404
50409
|
}
|
|
50405
|
-
function
|
|
50410
|
+
function ot(xe, Ge) {
|
|
50406
50411
|
if (typeof xe != "function" || Ge && typeof Ge != "function")
|
|
50407
50412
|
throw new TypeError(t);
|
|
50408
50413
|
var Et = function() {
|
|
@@ -50412,10 +50417,10 @@ function qP() {
|
|
|
50412
50417
|
var Ft = xe.apply(this, $t);
|
|
50413
50418
|
return Et.cache = Tt.set(ft, Ft), Ft;
|
|
50414
50419
|
};
|
|
50415
|
-
return Et.cache = new (
|
|
50420
|
+
return Et.cache = new (ot.Cache || me)(), Et;
|
|
50416
50421
|
}
|
|
50417
|
-
|
|
50418
|
-
function
|
|
50422
|
+
ot.Cache = me;
|
|
50423
|
+
function nt(xe, Ge) {
|
|
50419
50424
|
return xe === Ge || xe !== xe && Ge !== Ge;
|
|
50420
50425
|
}
|
|
50421
50426
|
var wt = Array.isArray;
|
|
@@ -54163,12 +54168,12 @@ function TV({
|
|
|
54163
54168
|
emptyState: y,
|
|
54164
54169
|
loading: f = !1
|
|
54165
54170
|
}) {
|
|
54166
|
-
var
|
|
54167
|
-
const { boomiConfig: b } = ti(), [c, u] = de(""), [d, h] = de([]), [m, T] = de(!1), S = Xe(null), A = Xe(null), N = Xe(null), O = Xe(null), D = Xe(null), R = Xe(!1), [C, $] = de(120), F = (E == null ? void 0 : E.state) === "working" || (E == null ? void 0 : E.state) === "progress", U = !a && !F, j = t.integrationPackId, Y = j ? ((dt = (
|
|
54171
|
+
var it, dt, yt, st;
|
|
54172
|
+
const { boomiConfig: b } = ti(), [c, u] = de(""), [d, h] = de([]), [m, T] = de(!1), S = Xe(null), A = Xe(null), N = Xe(null), O = Xe(null), D = Xe(null), R = Xe(!1), [C, $] = de(120), F = (E == null ? void 0 : E.state) === "working" || (E == null ? void 0 : E.state) === "progress", U = !a && !F, j = t.integrationPackId, Y = j ? ((dt = (it = b == null ? void 0 : b.agents) == null ? void 0 : it[j]) == null ? void 0 : dt.ui) ?? void 0 : void 0, P = (Y == null ? void 0 : Y.allowFreeTextPrompt) !== !1, B = Array.isArray(Y == null ? void 0 : Y.prompts) ? Y.prompts : [], k = !!(Y != null && Y.fileAttachmentSupported), M = !!(Y != null && Y.fileAttachmentRequired), I = Array.isArray(Y == null ? void 0 : Y.allowedFileExtensions) ? Y.allowedFileExtensions.map((Re) => Re.startsWith(".") ? Re.toLowerCase() : `.${Re.toLowerCase()}`) : [], W = k && M && d.length === 0, Q = Number.isFinite(Y == null ? void 0 : Y.maxFiles) ? Y.maxFiles : 5, Z = Number.isFinite(Y == null ? void 0 : Y.maxTotalBytes) ? Y.maxTotalBytes : 25 * 1024 * 1024, q = (Y == null ? void 0 : Y.welcome) ?? void 0, K = (q == null ? void 0 : q.title) ?? "Welcome to your Agent Chat", oe = (q == null ? void 0 : q.subtitle) ?? "Ask me anything about your integrations.", ee = Xe(!0), [re, ae] = de(!0), ie = Xe(!0), ce = (Re = "smooth") => {
|
|
54168
54173
|
var dn;
|
|
54169
54174
|
const je = S.current;
|
|
54170
54175
|
if (!je) return;
|
|
54171
|
-
const
|
|
54176
|
+
const ot = A.current, nt = ((dn = O.current) == null ? void 0 : dn.offsetHeight) ?? 0, wt = 32, xt = ot ? ot.offsetTop : je.scrollHeight, Dt = Math.max(0, xt - (je.clientHeight - nt - wt));
|
|
54172
54177
|
je.scrollTo({ top: Dt, behavior: Re });
|
|
54173
54178
|
}, me = () => {
|
|
54174
54179
|
const Re = S.current;
|
|
@@ -54183,12 +54188,12 @@ function TV({
|
|
|
54183
54188
|
const Re = O.current;
|
|
54184
54189
|
if (!Re) return;
|
|
54185
54190
|
const je = () => {
|
|
54186
|
-
const
|
|
54187
|
-
$(Math.max(120,
|
|
54191
|
+
const nt = Re.offsetHeight || 0;
|
|
54192
|
+
$(Math.max(120, nt + 48));
|
|
54188
54193
|
};
|
|
54189
54194
|
je();
|
|
54190
|
-
const
|
|
54191
|
-
return
|
|
54195
|
+
const ot = new ResizeObserver(je);
|
|
54196
|
+
return ot.observe(Re), () => ot.disconnect();
|
|
54192
54197
|
}, []), ut(() => {
|
|
54193
54198
|
ce("auto");
|
|
54194
54199
|
}, [C]), ut(() => {
|
|
@@ -54202,34 +54207,34 @@ function TV({
|
|
|
54202
54207
|
const ve = Pt(
|
|
54203
54208
|
() => {
|
|
54204
54209
|
const Re = [];
|
|
54205
|
-
return o.forEach((je,
|
|
54206
|
-
const
|
|
54210
|
+
return o.forEach((je, ot) => {
|
|
54211
|
+
const nt = (je == null ? void 0 : je.id) ?? String(ot);
|
|
54207
54212
|
Re.push(
|
|
54208
|
-
/* @__PURE__ */ H.jsx("div", { className: "w-full", children: /* @__PURE__ */ H.jsx("div", { className: "w-full max-w-[1024px] px-4 md:px-6", children: /* @__PURE__ */ H.jsx(gV, { m: je, getMsgText: bV }) }) },
|
|
54213
|
+
/* @__PURE__ */ H.jsx("div", { className: "w-full", children: /* @__PURE__ */ H.jsx("div", { className: "w-full max-w-[1024px] px-4 md:px-6", children: /* @__PURE__ */ H.jsx(gV, { m: je, getMsgText: bV }) }) }, nt)
|
|
54209
54214
|
);
|
|
54210
|
-
const wt = o[
|
|
54211
|
-
wt && ((je == null ? void 0 : je.role) === "user" && (wt == null ? void 0 : wt.role) === "assistant" || (je == null ? void 0 : je.role) === "assistant" && (wt == null ? void 0 : wt.role) === "user") && Re.push(/* @__PURE__ */ H.jsx("div", { className: "boomi-agent-thread-separator" }, `${
|
|
54215
|
+
const wt = o[ot + 1];
|
|
54216
|
+
wt && ((je == null ? void 0 : je.role) === "user" && (wt == null ? void 0 : wt.role) === "assistant" || (je == null ? void 0 : je.role) === "assistant" && (wt == null ? void 0 : wt.role) === "user") && Re.push(/* @__PURE__ */ H.jsx("div", { className: "boomi-agent-thread-separator" }, `${nt}-sep`));
|
|
54212
54217
|
}), Re;
|
|
54213
54218
|
},
|
|
54214
54219
|
[o]
|
|
54215
54220
|
), pe = (Re) => {
|
|
54216
|
-
const je = (Re.name || "").toLowerCase(),
|
|
54217
|
-
return
|
|
54221
|
+
const je = (Re.name || "").toLowerCase(), ot = je.lastIndexOf(".");
|
|
54222
|
+
return ot >= 0 ? je.slice(ot) : "";
|
|
54218
54223
|
}, ye = (Re) => {
|
|
54219
54224
|
if (!I.length) return !0;
|
|
54220
54225
|
const je = pe(Re);
|
|
54221
54226
|
return !!je && I.includes(je);
|
|
54222
54227
|
}, ue = I.length ? I.join(",") : void 0, Ve = (Re) => {
|
|
54223
|
-
const je = [],
|
|
54228
|
+
const je = [], ot = [...d], nt = ot.reduce((wt, xt) => wt + ((xt == null ? void 0 : xt.size) || 0), 0);
|
|
54224
54229
|
for (const wt of Array.from(Re)) {
|
|
54225
54230
|
if (!ye(wt))
|
|
54226
54231
|
continue;
|
|
54227
|
-
if (
|
|
54232
|
+
if (ot.length + je.length >= Q || nt + je.reduce((Dt, dn) => Dt + dn.size, 0) + wt.size > Z) break;
|
|
54228
54233
|
je.push(wt);
|
|
54229
54234
|
}
|
|
54230
|
-
je.length && h([...
|
|
54235
|
+
je.length && h([...ot, ...je]);
|
|
54231
54236
|
}, De = (Re) => {
|
|
54232
|
-
h((je) => je.filter((
|
|
54237
|
+
h((je) => je.filter((ot, nt) => nt !== Re));
|
|
54233
54238
|
}, Ke = () => {
|
|
54234
54239
|
const Re = D.current;
|
|
54235
54240
|
Re && (Re.style.height = "auto", Re.style.height = `${Math.min(Re.scrollHeight, 720)}px`);
|
|
@@ -54242,8 +54247,8 @@ function TV({
|
|
|
54242
54247
|
}, bt = (Re) => {
|
|
54243
54248
|
k && (Re.preventDefault(), Re.stopPropagation(), T(!1));
|
|
54244
54249
|
}, Rt = (Re) => {
|
|
54245
|
-
var je,
|
|
54246
|
-
k && (Re.preventDefault(), Re.stopPropagation(), T(!1), (
|
|
54250
|
+
var je, ot;
|
|
54251
|
+
k && (Re.preventDefault(), Re.stopPropagation(), T(!1), (ot = (je = Re.dataTransfer) == null ? void 0 : je.files) != null && ot.length && Ve(Re.dataTransfer.files));
|
|
54247
54252
|
}, zt = async () => {
|
|
54248
54253
|
if (!U) return;
|
|
54249
54254
|
const Re = c.trim();
|
|
@@ -55450,20 +55455,20 @@ const qC = ({ message: t = "Loading...", variant: e = "full" }) => {
|
|
|
55450
55455
|
setIsLoading: a,
|
|
55451
55456
|
onCancel: E
|
|
55452
55457
|
}, p) => {
|
|
55453
|
-
var ve, pe, ye, ue, Ve, De, Ke, tt, bt, Rt, zt, ze,
|
|
55454
|
-
const { boomiConfig: g, setPageIsLoading: y } = ti(), f = Xe(null), { updateFromCombined: b, editedConnections: c } = $6(), { extensions: u, rawExtensions: d, isLoading: h, fetchEnvironmentExtensions: m } = U6(), [T, S] = de(null), [A, N] = de(null), { fetchOauth2Url: O } = H6(), { fetchEnvironmentExtensionConnectionStatus: D } = j6(), [R, C] = de({}), [$, F] = de({}), [U, j] = de({}), Y = Xe(null), P = Xe({}), B = (
|
|
55455
|
-
W ? M(
|
|
55458
|
+
var ve, pe, ye, ue, Ve, De, Ke, tt, bt, Rt, zt, ze, it, dt, yt, st, Re, je;
|
|
55459
|
+
const { boomiConfig: g, setPageIsLoading: y } = ti(), f = Xe(null), { updateFromCombined: b, editedConnections: c } = $6(), { extensions: u, rawExtensions: d, isLoading: h, fetchEnvironmentExtensions: m } = U6(), [T, S] = de(null), [A, N] = de(null), { fetchOauth2Url: O } = H6(), { fetchEnvironmentExtensionConnectionStatus: D } = j6(), [R, C] = de({}), [$, F] = de({}), [U, j] = de({}), Y = Xe(null), P = Xe({}), B = (ot, nt) => `${ot}:${nt}`, [k, M] = de(!1), I = (ve = g == null ? void 0 : g.agents) == null ? void 0 : ve[e.integrationPackId || ""], W = ((pe = I == null ? void 0 : I.ui) == null ? void 0 : pe.mode) === "modal", Q = (ot) => {
|
|
55460
|
+
W ? M(ot) : y(ot), a == null || a(ot);
|
|
55456
55461
|
}, Z = async () => {
|
|
55457
|
-
var
|
|
55462
|
+
var ot;
|
|
55458
55463
|
S(null), Q(!0);
|
|
55459
55464
|
try {
|
|
55460
|
-
const
|
|
55461
|
-
if (!
|
|
55465
|
+
const nt = (ot = f.current) == null ? void 0 : ot.validateAndSubmit();
|
|
55466
|
+
if (!nt || !e.environmentId)
|
|
55462
55467
|
return Le.warn("Connector form is invalid or missing environmentId"), !1;
|
|
55463
55468
|
const wt = e.installationType === "SINGLE" || !1;
|
|
55464
|
-
return await b(d ?? [],
|
|
55465
|
-
} catch (
|
|
55466
|
-
return S(
|
|
55469
|
+
return await b(d ?? [], nt ?? [], e.environmentId, e.id || "", wt), o == null || o(), !0;
|
|
55470
|
+
} catch (nt) {
|
|
55471
|
+
return S(nt.message || "Failed to update environment extensions"), Le.error("Update error:", nt), !1;
|
|
55467
55472
|
} finally {
|
|
55468
55473
|
Q(!1);
|
|
55469
55474
|
}
|
|
@@ -55473,8 +55478,8 @@ const qC = ({ message: t = "Loading...", variant: e = "full" }) => {
|
|
|
55473
55478
|
}));
|
|
55474
55479
|
const q = async () => {
|
|
55475
55480
|
await Z() && (E == null || E());
|
|
55476
|
-
}, K = (
|
|
55477
|
-
const xt = B(
|
|
55481
|
+
}, K = (ot, nt, wt) => {
|
|
55482
|
+
const xt = B(ot, nt), Dt = P.current[xt];
|
|
55478
55483
|
Dt != null && Dt.interval && window.clearInterval(Dt.interval), Dt != null && Dt.timeout && window.clearTimeout(Dt.timeout), Dt != null && Dt.watch && window.clearInterval(Dt.watch);
|
|
55479
55484
|
const dn = window.setTimeout(() => {
|
|
55480
55485
|
oe(xt, {
|
|
@@ -55487,8 +55492,8 @@ const qC = ({ message: t = "Loading...", variant: e = "full" }) => {
|
|
|
55487
55492
|
const St = await D(
|
|
55488
55493
|
e.environmentId,
|
|
55489
55494
|
e.id || "",
|
|
55490
|
-
|
|
55491
|
-
|
|
55495
|
+
ot,
|
|
55496
|
+
nt
|
|
55492
55497
|
);
|
|
55493
55498
|
!!(St === !0 || St != null && St.connected || (St == null ? void 0 : St.status) === "CONNECTED") ? (oe(xt, { success: !0, message: null, closePopup: !0 }), await m([], e.environmentId, e.id || "", !0), wt(!0)) : j((Ge) => ({ ...Ge, [xt]: "Waiting for connection to complete…" }));
|
|
55494
55499
|
} catch (St) {
|
|
@@ -55502,30 +55507,30 @@ const qC = ({ message: t = "Loading...", variant: e = "full" }) => {
|
|
|
55502
55507
|
}), wt(!1));
|
|
55503
55508
|
}, 500);
|
|
55504
55509
|
P.current[xt] = { interval: kt, timeout: dn, watch: Lt };
|
|
55505
|
-
}, oe = (
|
|
55506
|
-
success:
|
|
55510
|
+
}, oe = (ot, {
|
|
55511
|
+
success: nt,
|
|
55507
55512
|
message: wt,
|
|
55508
55513
|
closePopup: xt = !0
|
|
55509
55514
|
}) => {
|
|
55510
|
-
const Dt = P.current[
|
|
55511
|
-
if (Dt != null && Dt.interval && window.clearInterval(Dt.interval), Dt != null && Dt.timeout && window.clearTimeout(Dt.timeout), Dt != null && Dt.watch && window.clearInterval(Dt.watch), delete P.current[
|
|
55515
|
+
const Dt = P.current[ot];
|
|
55516
|
+
if (Dt != null && Dt.interval && window.clearInterval(Dt.interval), Dt != null && Dt.timeout && window.clearTimeout(Dt.timeout), Dt != null && Dt.watch && window.clearInterval(Dt.watch), delete P.current[ot], C((dn) => ({ ...dn, [ot]: !1 })), F((dn) => ({ ...dn, [ot]: nt })), wt !== void 0 && j((dn) => ({ ...dn, [ot]: wt })), xt)
|
|
55512
55517
|
try {
|
|
55513
55518
|
Y.current && !Y.current.closed && Y.current.close();
|
|
55514
55519
|
} catch {
|
|
55515
55520
|
}
|
|
55516
|
-
}, ee = async (
|
|
55517
|
-
const wt = B(
|
|
55518
|
-
Le.log("Authenticate connection:", { connectionId:
|
|
55521
|
+
}, ee = async (ot, nt) => {
|
|
55522
|
+
const wt = B(ot, nt);
|
|
55523
|
+
Le.log("Authenticate connection:", { connectionId: ot, fieldId: nt }), C((St) => ({ ...St, [wt]: !0 })), F((St) => ({ ...St, [wt]: !1 })), j((St) => ({ ...St, [wt]: "Opening authorization window…" }));
|
|
55519
55524
|
const xt = 600, Dt = 750, dn = window.screenX + Math.max(0, (window.outerWidth - xt) / 2), kt = window.screenY + Math.max(0, (window.outerHeight - Dt) / 2), Lt = window.open("", "oauth2_auth", `width=${xt},height=${Dt},left=${dn},top=${kt},resizable,scrollbars`);
|
|
55520
55525
|
Y.current = Lt ?? null;
|
|
55521
55526
|
try {
|
|
55522
55527
|
const St = await O(
|
|
55523
55528
|
e.id || "",
|
|
55524
55529
|
e.environmentId,
|
|
55525
|
-
|
|
55526
|
-
|
|
55530
|
+
ot,
|
|
55531
|
+
nt
|
|
55527
55532
|
);
|
|
55528
|
-
Y.current ? Y.current.location.href = St : window.location.assign(St), j((xe) => ({ ...xe, [wt]: "Please complete authentication in the new window…" })), K(
|
|
55533
|
+
Y.current ? Y.current.location.href = St : window.location.assign(St), j((xe) => ({ ...xe, [wt]: "Please complete authentication in the new window…" })), K(ot, nt, (xe) => {
|
|
55529
55534
|
if (!xe)
|
|
55530
55535
|
try {
|
|
55531
55536
|
Y.current && !Y.current.closed && Y.current.close();
|
|
@@ -55543,17 +55548,17 @@ const qC = ({ message: t = "Loading...", variant: e = "full" }) => {
|
|
|
55543
55548
|
}, [c]), ut(() => {
|
|
55544
55549
|
u && N(u);
|
|
55545
55550
|
}, [u]), ut(() => () => {
|
|
55546
|
-
Object.values(P.current).forEach(({ interval:
|
|
55547
|
-
|
|
55551
|
+
Object.values(P.current).forEach(({ interval: ot, timeout: nt }) => {
|
|
55552
|
+
ot && window.clearInterval(ot), nt && window.clearTimeout(nt);
|
|
55548
55553
|
}), Y.current && !Y.current.closed && Y.current.close();
|
|
55549
55554
|
}, []), ut(() => {
|
|
55550
55555
|
if (!(e != null && e.environmentId) || !(e != null && e.id)) return;
|
|
55551
|
-
const
|
|
55552
|
-
m([], e.environmentId, e.id,
|
|
55553
|
-
S(
|
|
55556
|
+
const ot = e.installationType === "SINGLE" || !1;
|
|
55557
|
+
m([], e.environmentId, e.id, ot).catch((nt) => {
|
|
55558
|
+
S(nt.message), Le.error("Failed to fetch environment extensions", nt);
|
|
55554
55559
|
});
|
|
55555
55560
|
}, [e.environmentId, e.id]);
|
|
55556
|
-
const re = ((De = (Ve = (ue = (ye = g == null ? void 0 : g.agents) == null ? void 0 : ye[t]) == null ? void 0 : ue.form) == null ? void 0 : Ve.configureAgent) == null ? void 0 : De.showTitle) ?? !0, ae = ((Rt = (bt = (tt = (Ke = g == null ? void 0 : g.agents) == null ? void 0 : Ke[t]) == null ? void 0 : tt.form) == null ? void 0 : bt.configureAgent) == null ? void 0 : Rt.title) ?? "Update Connections", ie = ((dt = (
|
|
55561
|
+
const re = ((De = (Ve = (ue = (ye = g == null ? void 0 : g.agents) == null ? void 0 : ye[t]) == null ? void 0 : ue.form) == null ? void 0 : Ve.configureAgent) == null ? void 0 : De.showTitle) ?? !0, ae = ((Rt = (bt = (tt = (Ke = g == null ? void 0 : g.agents) == null ? void 0 : Ke[t]) == null ? void 0 : tt.form) == null ? void 0 : bt.configureAgent) == null ? void 0 : Rt.title) ?? "Update Connections", ie = ((dt = (it = (ze = (zt = g == null ? void 0 : g.agents) == null ? void 0 : zt[t]) == null ? void 0 : ze.form) == null ? void 0 : it.configureAgent) == null ? void 0 : dt.showDescription) ?? !0, ce = ((je = (Re = (st = (yt = g == null ? void 0 : g.agents) == null ? void 0 : yt[t]) == null ? void 0 : st.form) == null ? void 0 : Re.configureAgent) == null ? void 0 : je.description) ?? "Please provide the necessary information to make connections to your target systems.", me = /* @__PURE__ */ H.jsx(H.Fragment, { children: /* @__PURE__ */ H.jsxs("div", { className: "boomi-agent-update p-2", children: [
|
|
55557
55562
|
W && k && /* @__PURE__ */ H.jsx(qC, { variant: "contained", message: "Updating..." }),
|
|
55558
55563
|
h && !A ? /* @__PURE__ */ H.jsx("div", { className: "boomi-center pt-6 m-6", children: /* @__PURE__ */ H.jsx(or, { message: "Loading..." }) }) : /* @__PURE__ */ H.jsxs("div", { className: "boomi-agent-update__body", children: [
|
|
55559
55564
|
T && /* @__PURE__ */ H.jsx(
|
|
@@ -57809,7 +57814,7 @@ const cE = {
|
|
|
57809
57814
|
};
|
|
57810
57815
|
function BU() {
|
|
57811
57816
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $W();
|
|
57812
|
-
const e = (
|
|
57817
|
+
const e = (rt) => BU(rt);
|
|
57813
57818
|
if (e.version = "3.2.7", e.removed = [], !t || !t.document || t.document.nodeType !== cE.document || !t.Element)
|
|
57814
57819
|
return e.isSupported = !1, e;
|
|
57815
57820
|
let {
|
|
@@ -57827,8 +57832,8 @@ function BU() {
|
|
|
57827
57832
|
trustedTypes: h
|
|
57828
57833
|
} = t, m = f.prototype, T = lE(m, "cloneNode"), S = lE(m, "remove"), A = lE(m, "nextSibling"), N = lE(m, "childNodes"), O = lE(m, "parentNode");
|
|
57829
57834
|
if (typeof g == "function") {
|
|
57830
|
-
const
|
|
57831
|
-
|
|
57835
|
+
const rt = o.createElement("template");
|
|
57836
|
+
rt.content && rt.content.ownerDocument && (o = rt.content.ownerDocument);
|
|
57832
57837
|
}
|
|
57833
57838
|
let D, R = "";
|
|
57834
57839
|
const {
|
|
@@ -57876,11 +57881,11 @@ function BU() {
|
|
|
57876
57881
|
enumerable: !0,
|
|
57877
57882
|
value: !1
|
|
57878
57883
|
}
|
|
57879
|
-
})), ie = null, ce = null, me = !0, ve = !0, pe = !1, ye = !0, ue = !1, Ve = !0, De = !1, Ke = !1, tt = !1, bt = !1, Rt = !1, zt = !1, ze = !0,
|
|
57884
|
+
})), ie = null, ce = null, me = !0, ve = !0, pe = !1, ye = !0, ue = !1, Ve = !0, De = !1, Ke = !1, tt = !1, bt = !1, Rt = !1, zt = !1, ze = !0, it = !1;
|
|
57880
57885
|
const dt = "user-content-";
|
|
57881
57886
|
let yt = !0, st = !1, Re = {}, je = null;
|
|
57882
|
-
const
|
|
57883
|
-
let
|
|
57887
|
+
const ot = Dn({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
57888
|
+
let nt = null;
|
|
57884
57889
|
const wt = Dn({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
57885
57890
|
let xt = null;
|
|
57886
57891
|
const Dt = Dn({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", kt = "http://www.w3.org/2000/svg", Lt = "http://www.w3.org/1999/xhtml";
|
|
@@ -57897,7 +57902,7 @@ function BU() {
|
|
|
57897
57902
|
let Ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
57898
57903
|
if (!(mt && mt === Ee)) {
|
|
57899
57904
|
if ((!Ee || typeof Ee != "object") && (Ee = {}), Ee = Td(Ee), Ft = // eslint-disable-next-line unicorn/prefer-includes
|
|
57900
|
-
Vt.indexOf(Ee.PARSER_MEDIA_TYPE) === -1 ? Ce : Ee.PARSER_MEDIA_TYPE, Je = Ft === "application/xhtml+xml" ? n_ : BT, K = cc(Ee, "ALLOWED_TAGS") ? Dn({}, Ee.ALLOWED_TAGS, Je) : oe, ee = cc(Ee, "ALLOWED_ATTR") ? Dn({}, Ee.ALLOWED_ATTR, Je) : re, Ge = cc(Ee, "ALLOWED_NAMESPACES") ? Dn({}, Ee.ALLOWED_NAMESPACES, n_) : Et, xt = cc(Ee, "ADD_URI_SAFE_ATTR") ? Dn(Td(Dt), Ee.ADD_URI_SAFE_ATTR, Je) : Dt,
|
|
57905
|
+
Vt.indexOf(Ee.PARSER_MEDIA_TYPE) === -1 ? Ce : Ee.PARSER_MEDIA_TYPE, Je = Ft === "application/xhtml+xml" ? n_ : BT, K = cc(Ee, "ALLOWED_TAGS") ? Dn({}, Ee.ALLOWED_TAGS, Je) : oe, ee = cc(Ee, "ALLOWED_ATTR") ? Dn({}, Ee.ALLOWED_ATTR, Je) : re, Ge = cc(Ee, "ALLOWED_NAMESPACES") ? Dn({}, Ee.ALLOWED_NAMESPACES, n_) : Et, xt = cc(Ee, "ADD_URI_SAFE_ATTR") ? Dn(Td(Dt), Ee.ADD_URI_SAFE_ATTR, Je) : Dt, nt = cc(Ee, "ADD_DATA_URI_TAGS") ? Dn(Td(wt), Ee.ADD_DATA_URI_TAGS, Je) : wt, je = cc(Ee, "FORBID_CONTENTS") ? Dn({}, Ee.FORBID_CONTENTS, Je) : ot, ie = cc(Ee, "FORBID_TAGS") ? Dn({}, Ee.FORBID_TAGS, Je) : Td({}), ce = cc(Ee, "FORBID_ATTR") ? Dn({}, Ee.FORBID_ATTR, Je) : Td({}), Re = cc(Ee, "USE_PROFILES") ? Ee.USE_PROFILES : !1, me = Ee.ALLOW_ARIA_ATTR !== !1, ve = Ee.ALLOW_DATA_ATTR !== !1, pe = Ee.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = Ee.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = Ee.SAFE_FOR_TEMPLATES || !1, Ve = Ee.SAFE_FOR_XML !== !1, De = Ee.WHOLE_DOCUMENT || !1, bt = Ee.RETURN_DOM || !1, Rt = Ee.RETURN_DOM_FRAGMENT || !1, zt = Ee.RETURN_TRUSTED_TYPE || !1, tt = Ee.FORCE_BODY || !1, ze = Ee.SANITIZE_DOM !== !1, it = Ee.SANITIZE_NAMED_PROPS || !1, yt = Ee.KEEP_CONTENT !== !1, st = Ee.IN_PLACE || !1, q = Ee.ALLOWED_URI_REGEXP || jU, St = Ee.NAMESPACE || Lt, $t = Ee.MATHML_TEXT_INTEGRATION_POINTS || $t, ft = Ee.HTML_INTEGRATION_POINTS || ft, ae = Ee.CUSTOM_ELEMENT_HANDLING || {}, Ee.CUSTOM_ELEMENT_HANDLING && Ut(Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ae.tagNameCheck = Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ee.CUSTOM_ELEMENT_HANDLING && Ut(Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ae.attributeNameCheck = Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ee.CUSTOM_ELEMENT_HANDLING && typeof Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ae.allowCustomizedBuiltInElements = Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (ve = !1), Rt && (bt = !0), Re && (K = Dn({}, P3), ee = [], Re.html === !0 && (Dn(K, F3), Dn(ee, V3)), Re.svg === !0 && (Dn(K, o_), Dn(ee, s_), Dn(ee, MT)), Re.svgFilters === !0 && (Dn(K, r_), Dn(ee, s_), Dn(ee, MT)), Re.mathMl === !0 && (Dn(K, a_), Dn(ee, G3), Dn(ee, MT))), Ee.ADD_TAGS && (K === oe && (K = Td(K)), Dn(K, Ee.ADD_TAGS, Je)), Ee.ADD_ATTR && (ee === re && (ee = Td(ee)), Dn(ee, Ee.ADD_ATTR, Je)), Ee.ADD_URI_SAFE_ATTR && Dn(xt, Ee.ADD_URI_SAFE_ATTR, Je), Ee.FORBID_CONTENTS && (je === ot && (je = Td(je)), Dn(je, Ee.FORBID_CONTENTS, Je)), yt && (K["#text"] = !0), De && Dn(K, ["html", "head", "body"]), K.table && (Dn(K, ["tbody"]), delete ie.tbody), Ee.TRUSTED_TYPES_POLICY) {
|
|
57901
57906
|
if (typeof Ee.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
57902
57907
|
throw sE('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
57903
57908
|
if (typeof Ee.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -57984,8 +57989,8 @@ function BU() {
|
|
|
57984
57989
|
}, Si = function(Ee) {
|
|
57985
57990
|
return typeof y == "function" && Ee instanceof y;
|
|
57986
57991
|
};
|
|
57987
|
-
function en(
|
|
57988
|
-
DT(
|
|
57992
|
+
function en(rt, Ee, Ze) {
|
|
57993
|
+
DT(rt, (lt) => {
|
|
57989
57994
|
lt.call(e, Ee, Ze, mt);
|
|
57990
57995
|
});
|
|
57991
57996
|
}
|
|
@@ -58006,8 +58011,8 @@ function BU() {
|
|
|
58006
58011
|
const cn = O(Ee) || Ee.parentNode, oi = N(Ee) || Ee.childNodes;
|
|
58007
58012
|
if (oi && cn) {
|
|
58008
58013
|
const $n = oi.length;
|
|
58009
|
-
for (let
|
|
58010
|
-
const Sn = T(oi[
|
|
58014
|
+
for (let at = $n - 1; at >= 0; --at) {
|
|
58015
|
+
const Sn = T(oi[at], !0);
|
|
58011
58016
|
Sn.__removalCount = (Ee.__removalCount || 0) + 1, cn.insertBefore(Sn, A(Ee));
|
|
58012
58017
|
}
|
|
58013
58018
|
}
|
|
@@ -58035,7 +58040,7 @@ function BU() {
|
|
|
58035
58040
|
) return !1;
|
|
58036
58041
|
} else if (!xt[Ze]) {
|
|
58037
58042
|
if (!ga(q, aE(lt, Q, ""))) {
|
|
58038
|
-
if (!((Ze === "src" || Ze === "xlink:href" || Ze === "href") && Ee !== "script" && TW(lt, "data:") === 0 &&
|
|
58043
|
+
if (!((Ze === "src" || Ze === "xlink:href" || Ze === "href") && Ee !== "script" && TW(lt, "data:") === 0 && nt[Ee])) {
|
|
58039
58044
|
if (!(pe && !ga(W, aE(lt, Q, "")))) {
|
|
58040
58045
|
if (lt)
|
|
58041
58046
|
return !1;
|
|
@@ -58066,11 +58071,11 @@ function BU() {
|
|
|
58066
58071
|
for (; cn--; ) {
|
|
58067
58072
|
const oi = Ze[cn], {
|
|
58068
58073
|
name: $n,
|
|
58069
|
-
namespaceURI:
|
|
58074
|
+
namespaceURI: at,
|
|
58070
58075
|
value: Sn
|
|
58071
58076
|
} = oi, An = Je($n), So = Sn;
|
|
58072
58077
|
let Un = $n === "value" ? So : SW(So);
|
|
58073
|
-
if (lt.attrName = An, lt.attrValue = Un, lt.keepAttr = !0, lt.forceKeepAttr = void 0, en(Y.uponSanitizeAttribute, Ee, lt), Un = lt.attrValue,
|
|
58078
|
+
if (lt.attrName = An, lt.attrValue = Un, lt.keepAttr = !0, lt.forceKeepAttr = void 0, en(Y.uponSanitizeAttribute, Ee, lt), Un = lt.attrValue, it && (An === "id" || An === "name") && (et($n, Ee), Un = dt + Un), Ve && ga(/((--!?|])>)|<\/(style|title|textarea)/i, Un)) {
|
|
58074
58079
|
et($n, Ee);
|
|
58075
58080
|
continue;
|
|
58076
58081
|
}
|
|
@@ -58096,7 +58101,7 @@ function BU() {
|
|
|
58096
58101
|
et($n, Ee);
|
|
58097
58102
|
continue;
|
|
58098
58103
|
}
|
|
58099
|
-
if (D && typeof h == "object" && typeof h.getAttributeType == "function" && !
|
|
58104
|
+
if (D && typeof h == "object" && typeof h.getAttributeType == "function" && !at)
|
|
58100
58105
|
switch (h.getAttributeType(co, An)) {
|
|
58101
58106
|
case "TrustedHTML": {
|
|
58102
58107
|
Un = D.createHTML(Un);
|
|
@@ -58109,50 +58114,50 @@ function BU() {
|
|
|
58109
58114
|
}
|
|
58110
58115
|
if (Un !== So)
|
|
58111
58116
|
try {
|
|
58112
|
-
|
|
58117
|
+
at ? Ee.setAttributeNS(at, $n, Un) : Ee.setAttribute($n, Un), lo(Ee) ? Jt(Ee) : B3(e.removed);
|
|
58113
58118
|
} catch {
|
|
58114
58119
|
et($n, Ee);
|
|
58115
58120
|
}
|
|
58116
58121
|
}
|
|
58117
58122
|
en(Y.afterSanitizeAttributes, Ee, null);
|
|
58118
|
-
}, Nr = function
|
|
58123
|
+
}, Nr = function rt(Ee) {
|
|
58119
58124
|
let Ze = null;
|
|
58120
58125
|
const lt = Mt(Ee);
|
|
58121
58126
|
for (en(Y.beforeSanitizeShadowDOM, Ee, null); Ze = lt.nextNode(); )
|
|
58122
|
-
en(Y.uponSanitizeShadowNode, Ze, null), Xn(Ze), Bo(Ze), Ze.content instanceof p &&
|
|
58127
|
+
en(Y.uponSanitizeShadowNode, Ze, null), Xn(Ze), Bo(Ze), Ze.content instanceof p && rt(Ze.content);
|
|
58123
58128
|
en(Y.afterSanitizeShadowDOM, Ee, null);
|
|
58124
58129
|
};
|
|
58125
|
-
return e.sanitize = function(
|
|
58130
|
+
return e.sanitize = function(rt) {
|
|
58126
58131
|
let Ee = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ze = null, lt = null, cn = null, oi = null;
|
|
58127
|
-
if (xe = !
|
|
58128
|
-
if (typeof
|
|
58129
|
-
if (
|
|
58132
|
+
if (xe = !rt, xe && (rt = "<!-->"), typeof rt != "string" && !Si(rt))
|
|
58133
|
+
if (typeof rt.toString == "function") {
|
|
58134
|
+
if (rt = rt.toString(), typeof rt != "string")
|
|
58130
58135
|
throw sE("dirty is not a string, aborting");
|
|
58131
58136
|
} else
|
|
58132
58137
|
throw sE("toString is not a function");
|
|
58133
58138
|
if (!e.isSupported)
|
|
58134
|
-
return
|
|
58135
|
-
if (Ke || an(Ee), e.removed = [], typeof
|
|
58136
|
-
if (
|
|
58137
|
-
const Sn = Je(
|
|
58139
|
+
return rt;
|
|
58140
|
+
if (Ke || an(Ee), e.removed = [], typeof rt == "string" && (st = !1), st) {
|
|
58141
|
+
if (rt.nodeName) {
|
|
58142
|
+
const Sn = Je(rt.nodeName);
|
|
58138
58143
|
if (!K[Sn] || ie[Sn])
|
|
58139
58144
|
throw sE("root node is forbidden and cannot be sanitized in-place");
|
|
58140
58145
|
}
|
|
58141
|
-
} else if (
|
|
58142
|
-
Ze = Yn("<!---->"), lt = Ze.ownerDocument.importNode(
|
|
58146
|
+
} else if (rt instanceof y)
|
|
58147
|
+
Ze = Yn("<!---->"), lt = Ze.ownerDocument.importNode(rt, !0), lt.nodeType === cE.element && lt.nodeName === "BODY" || lt.nodeName === "HTML" ? Ze = lt : Ze.appendChild(lt);
|
|
58143
58148
|
else {
|
|
58144
58149
|
if (!bt && !ue && !De && // eslint-disable-next-line unicorn/prefer-includes
|
|
58145
|
-
|
|
58146
|
-
return D && zt ? D.createHTML(
|
|
58147
|
-
if (Ze = Yn(
|
|
58150
|
+
rt.indexOf("<") === -1)
|
|
58151
|
+
return D && zt ? D.createHTML(rt) : rt;
|
|
58152
|
+
if (Ze = Yn(rt), !Ze)
|
|
58148
58153
|
return bt ? null : zt ? R : "";
|
|
58149
58154
|
}
|
|
58150
58155
|
Ze && tt && Jt(Ze.firstChild);
|
|
58151
|
-
const $n = Mt(st ?
|
|
58156
|
+
const $n = Mt(st ? rt : Ze);
|
|
58152
58157
|
for (; cn = $n.nextNode(); )
|
|
58153
58158
|
Xn(cn), Bo(cn), cn.content instanceof p && Nr(cn.content);
|
|
58154
58159
|
if (st)
|
|
58155
|
-
return
|
|
58160
|
+
return rt;
|
|
58156
58161
|
if (bt) {
|
|
58157
58162
|
if (Rt)
|
|
58158
58163
|
for (oi = F.call(Ze.ownerDocument); Ze.firstChild; )
|
|
@@ -58161,30 +58166,30 @@ function BU() {
|
|
|
58161
58166
|
oi = Ze;
|
|
58162
58167
|
return (ee.shadowroot || ee.shadowrootmode) && (oi = j.call(a, oi, !0)), oi;
|
|
58163
58168
|
}
|
|
58164
|
-
let
|
|
58165
|
-
return De && K["!doctype"] && Ze.ownerDocument && Ze.ownerDocument.doctype && Ze.ownerDocument.doctype.name && ga(zU, Ze.ownerDocument.doctype.name) && (
|
|
58166
|
-
` +
|
|
58167
|
-
|
|
58168
|
-
}), D && zt ? D.createHTML(
|
|
58169
|
+
let at = De ? Ze.outerHTML : Ze.innerHTML;
|
|
58170
|
+
return De && K["!doctype"] && Ze.ownerDocument && Ze.ownerDocument.doctype && Ze.ownerDocument.doctype.name && ga(zU, Ze.ownerDocument.doctype.name) && (at = "<!DOCTYPE " + Ze.ownerDocument.doctype.name + `>
|
|
58171
|
+
` + at), ue && DT([P, B, k], (Sn) => {
|
|
58172
|
+
at = aE(at, Sn, " ");
|
|
58173
|
+
}), D && zt ? D.createHTML(at) : at;
|
|
58169
58174
|
}, e.setConfig = function() {
|
|
58170
|
-
let
|
|
58171
|
-
an(
|
|
58175
|
+
let rt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
58176
|
+
an(rt), Ke = !0;
|
|
58172
58177
|
}, e.clearConfig = function() {
|
|
58173
58178
|
mt = null, Ke = !1;
|
|
58174
|
-
}, e.isValidAttribute = function(
|
|
58179
|
+
}, e.isValidAttribute = function(rt, Ee, Ze) {
|
|
58175
58180
|
mt || an({});
|
|
58176
|
-
const lt = Je(
|
|
58181
|
+
const lt = Je(rt), cn = Je(Ee);
|
|
58177
58182
|
return Qi(lt, cn, Ze);
|
|
58178
|
-
}, e.addHook = function(
|
|
58179
|
-
typeof Ee == "function" && rE(Y[
|
|
58180
|
-
}, e.removeHook = function(
|
|
58183
|
+
}, e.addHook = function(rt, Ee) {
|
|
58184
|
+
typeof Ee == "function" && rE(Y[rt], Ee);
|
|
58185
|
+
}, e.removeHook = function(rt, Ee) {
|
|
58181
58186
|
if (Ee !== void 0) {
|
|
58182
|
-
const Ze = EW(Y[
|
|
58183
|
-
return Ze === -1 ? void 0 : wW(Y[
|
|
58187
|
+
const Ze = EW(Y[rt], Ee);
|
|
58188
|
+
return Ze === -1 ? void 0 : wW(Y[rt], Ze, 1)[0];
|
|
58184
58189
|
}
|
|
58185
|
-
return B3(Y[
|
|
58186
|
-
}, e.removeHooks = function(
|
|
58187
|
-
Y[
|
|
58190
|
+
return B3(Y[rt]);
|
|
58191
|
+
}, e.removeHooks = function(rt) {
|
|
58192
|
+
Y[rt] = [];
|
|
58188
58193
|
}, e.removeAllHooks = function() {
|
|
58189
58194
|
Y = W3();
|
|
58190
58195
|
}, e;
|
|
@@ -58757,12 +58762,12 @@ const YW = (t) => {
|
|
|
58757
58762
|
({
|
|
58758
58763
|
componentKey: t
|
|
58759
58764
|
}, e) => {
|
|
58760
|
-
var j, Y, P, B, k, M, I, W, Q, Z, q, K, oe, ee, re, ae, ie, ce, me, ve, pe, ye, ue, Ve, De, Ke, tt, bt, Rt, zt, ze,
|
|
58765
|
+
var j, Y, P, B, k, M, I, W, Q, Z, q, K, oe, ee, re, ae, ie, ce, me, ve, pe, ye, ue, Ve, De, Ke, tt, bt, Rt, zt, ze, it, dt, yt, st, Re, je, ot, nt, wt, xt, Dt, dn;
|
|
58761
58766
|
const { boomiConfig: o } = ti(), [a, E] = de(null), [p, g] = de(null), [y, f] = de(""), [b, c] = de({
|
|
58762
58767
|
integrationPackId: "",
|
|
58763
58768
|
environmentId: "",
|
|
58764
58769
|
integrationName: ""
|
|
58765
|
-
}), u = !!(a != null && a.id), d = ((B = (P = (Y = (j = o == null ? void 0 : o.components) == null ? void 0 : j[t]) == null ? void 0 : Y.form) == null ? void 0 : P.addIntegration) == null ? void 0 : B.showIntegrationPackSelect) ?? !0, h = ((W = (I = (M = (k = o == null ? void 0 : o.components) == null ? void 0 : k[t]) == null ? void 0 : M.form) == null ? void 0 : I.addIntegration) == null ? void 0 : W.defaultIntegrationPackId) ?? "", m = ((K = (q = (Z = (Q = o == null ? void 0 : o.components) == null ? void 0 : Q[t]) == null ? void 0 : Z.form) == null ? void 0 : q.addIntegration) == null ? void 0 : K.showEnvironmentSelect) ?? !0, T = ((ae = (re = (ee = (oe = o == null ? void 0 : o.components) == null ? void 0 : oe[t]) == null ? void 0 : ee.form) == null ? void 0 : re.addIntegration) == null ? void 0 : ae.defaultEnvironmentId) ?? "", S = ((pe = (ve = (me = (ce = (ie = o == null ? void 0 : o.components) == null ? void 0 : ie[t]) == null ? void 0 : ce.form) == null ? void 0 : me.addIntegration) == null ? void 0 : ve.integrationPackName) == null ? void 0 : pe.defaultIntegrationPackName) ?? null, A = ((Ke = (De = (Ve = (ue = (ye = o == null ? void 0 : o.components) == null ? void 0 : ye[t]) == null ? void 0 : ue.form) == null ? void 0 : Ve.addIntegration) == null ? void 0 : De.integrationPackName) == null ? void 0 : Ke.editable) ?? !1, N = ((ze = (zt = (Rt = (bt = (tt = o == null ? void 0 : o.components) == null ? void 0 : tt[t]) == null ? void 0 : bt.form) == null ? void 0 : Rt.addIntegration) == null ? void 0 : zt.integrationPackName) == null ? void 0 : ze.label) ?? "Integration Name", O = !!(p != null && p.id), D = (a == null ? void 0 : a.installationType) === "SINGLE", R = ((dt = (
|
|
58770
|
+
}), u = !!(a != null && a.id), d = ((B = (P = (Y = (j = o == null ? void 0 : o.components) == null ? void 0 : j[t]) == null ? void 0 : Y.form) == null ? void 0 : P.addIntegration) == null ? void 0 : B.showIntegrationPackSelect) ?? !0, h = ((W = (I = (M = (k = o == null ? void 0 : o.components) == null ? void 0 : k[t]) == null ? void 0 : M.form) == null ? void 0 : I.addIntegration) == null ? void 0 : W.defaultIntegrationPackId) ?? "", m = ((K = (q = (Z = (Q = o == null ? void 0 : o.components) == null ? void 0 : Q[t]) == null ? void 0 : Z.form) == null ? void 0 : q.addIntegration) == null ? void 0 : K.showEnvironmentSelect) ?? !0, T = ((ae = (re = (ee = (oe = o == null ? void 0 : o.components) == null ? void 0 : oe[t]) == null ? void 0 : ee.form) == null ? void 0 : re.addIntegration) == null ? void 0 : ae.defaultEnvironmentId) ?? "", S = ((pe = (ve = (me = (ce = (ie = o == null ? void 0 : o.components) == null ? void 0 : ie[t]) == null ? void 0 : ce.form) == null ? void 0 : me.addIntegration) == null ? void 0 : ve.integrationPackName) == null ? void 0 : pe.defaultIntegrationPackName) ?? null, A = ((Ke = (De = (Ve = (ue = (ye = o == null ? void 0 : o.components) == null ? void 0 : ye[t]) == null ? void 0 : ue.form) == null ? void 0 : Ve.addIntegration) == null ? void 0 : De.integrationPackName) == null ? void 0 : Ke.editable) ?? !1, N = ((ze = (zt = (Rt = (bt = (tt = o == null ? void 0 : o.components) == null ? void 0 : tt[t]) == null ? void 0 : bt.form) == null ? void 0 : Rt.addIntegration) == null ? void 0 : zt.integrationPackName) == null ? void 0 : ze.label) ?? "Integration Name", O = !!(p != null && p.id), D = (a == null ? void 0 : a.installationType) === "SINGLE", R = ((dt = (it = o == null ? void 0 : o.components) == null ? void 0 : it[t]) == null ? void 0 : dt.renderType) || "integration";
|
|
58766
58771
|
ut(() => {
|
|
58767
58772
|
a != null && a.name && (f(a.name), c((kt) => ({ ...kt, integrationName: "" })));
|
|
58768
58773
|
}, [a]);
|
|
@@ -58813,9 +58818,9 @@ const YW = (t) => {
|
|
|
58813
58818
|
onIntegrationChange: C,
|
|
58814
58819
|
onBlur: $,
|
|
58815
58820
|
showLoading: !0,
|
|
58816
|
-
loadingMessage: ((
|
|
58821
|
+
loadingMessage: ((ot = (je = (Re = (st = (yt = o == null ? void 0 : o.components) == null ? void 0 : yt[t]) == null ? void 0 : st.form) == null ? void 0 : Re.addIntegration) == null ? void 0 : je.integrationPackSelect) == null ? void 0 : ot.loadingMessage) || "Loading...",
|
|
58817
58822
|
validationError: b.integrationPackId,
|
|
58818
|
-
label: ((dn = (Dt = (xt = (wt = (
|
|
58823
|
+
label: ((dn = (Dt = (xt = (wt = (nt = o == null ? void 0 : o.components) == null ? void 0 : nt[t]) == null ? void 0 : wt.form) == null ? void 0 : xt.addIntegration) == null ? void 0 : Dt.integrationPackSelect) == null ? void 0 : dn.label) || "Available Integrations",
|
|
58819
58824
|
renderType: R
|
|
58820
58825
|
}
|
|
58821
58826
|
),
|
|
@@ -60894,7 +60899,7 @@ const uX = ({
|
|
|
60894
60899
|
componentKey: t,
|
|
60895
60900
|
showUpdateControls: e
|
|
60896
60901
|
}) => {
|
|
60897
|
-
var dt, yt, st, Re, je,
|
|
60902
|
+
var dt, yt, st, Re, je, ot, nt, wt, xt, Dt, dn, kt, Lt, St, xe, Ge, Et, $t, ft, Tt, Ft, Vt, Ce, Je, mt, Ct, Ut, an, qt, fn, In, Jt, et, Yn, Mt, lo, Si, en, Xn, Qi, yi, Bo, Nr, rt, Ee, Ze, lt, cn, oi, $n;
|
|
60898
60903
|
const { boomiConfig: o, setPageIsLoading: a, renderComponent: E } = ti(), p = ((yt = (dt = o == null ? void 0 : o.components) == null ? void 0 : dt[t]) == null ? void 0 : yt.renderType) ?? "all", [g, y] = de({
|
|
60899
60904
|
delete: !1,
|
|
60900
60905
|
update: e || !1,
|
|
@@ -60912,36 +60917,36 @@ const uX = ({
|
|
|
60912
60917
|
isRunning: Y,
|
|
60913
60918
|
error: P,
|
|
60914
60919
|
runAllProcesses: B
|
|
60915
|
-
} = VU(), [k, M] = de(!1), [I, W] = de(null), Q = `integrations-list-all:${t}`, [Z, q] = de("off"), K = (
|
|
60916
|
-
if (
|
|
60917
|
-
if (
|
|
60918
|
-
if (typeof
|
|
60919
|
-
const Sn =
|
|
60920
|
+
} = VU(), [k, M] = de(!1), [I, W] = de(null), Q = `integrations-list-all:${t}`, [Z, q] = de("off"), K = (at) => oe(at ?? void 0), oe = (at) => {
|
|
60921
|
+
if (at === !0) return "on";
|
|
60922
|
+
if (at === !1) return "off";
|
|
60923
|
+
if (typeof at == "string") {
|
|
60924
|
+
const Sn = at.toLowerCase();
|
|
60920
60925
|
if (Sn === "table" || Sn === "on") return "on";
|
|
60921
60926
|
if (Sn === "grid" || Sn === "off") return "off";
|
|
60922
60927
|
}
|
|
60923
|
-
}, ee = (
|
|
60924
|
-
y((Sn) => ({ ...Sn, [
|
|
60925
|
-
y((Sn) => ({ ...Sn, [
|
|
60928
|
+
}, ee = (at) => {
|
|
60929
|
+
y((Sn) => ({ ...Sn, [at]: !0 })), setTimeout(() => {
|
|
60930
|
+
y((Sn) => ({ ...Sn, [at]: !1 }));
|
|
60926
60931
|
}, 3e3);
|
|
60927
|
-
}, re = (
|
|
60928
|
-
Le.debug("showing execution record:",
|
|
60932
|
+
}, re = (at) => {
|
|
60933
|
+
Le.debug("showing execution record:", at), W(at), M(!0);
|
|
60929
60934
|
}, ae = () => {
|
|
60930
60935
|
M(!1), W(null);
|
|
60931
60936
|
}, ie = D.filter(
|
|
60932
|
-
(
|
|
60933
|
-
), ce = ie.filter((
|
|
60937
|
+
(at) => !d.has(at.id || "")
|
|
60938
|
+
), ce = ie.filter((at) => !at.isAgent), me = async () => {
|
|
60934
60939
|
var Sn;
|
|
60935
|
-
const
|
|
60936
|
-
if (
|
|
60940
|
+
const at = (Sn = S.current) == null ? void 0 : Sn.validateAndSubmit();
|
|
60941
|
+
if (at) {
|
|
60937
60942
|
T(!1), O(null), a(!0);
|
|
60938
60943
|
try {
|
|
60939
|
-
Le.debug("Creating integration instance with:",
|
|
60944
|
+
Le.debug("Creating integration instance with:", at);
|
|
60940
60945
|
const An = await b(
|
|
60941
|
-
|
|
60942
|
-
|
|
60943
|
-
|
|
60944
|
-
|
|
60946
|
+
at.integrationPackId || "",
|
|
60947
|
+
at.isSingle || !1,
|
|
60948
|
+
at.environmentId,
|
|
60949
|
+
at.integrationName
|
|
60945
60950
|
);
|
|
60946
60951
|
An && (An.isAgent ? pe("RunAgent", An) : An.installationType === "SINGLE" ? pe("UpdateSchedules", An) : pe("ConfigureIntegration", An));
|
|
60947
60952
|
} catch (An) {
|
|
@@ -60955,40 +60960,40 @@ const uX = ({
|
|
|
60955
60960
|
componentKey: t || "integrationsMain"
|
|
60956
60961
|
}
|
|
60957
60962
|
});
|
|
60958
|
-
}, pe = (
|
|
60963
|
+
}, pe = (at, Sn) => {
|
|
60959
60964
|
a(!0), E == null || E({
|
|
60960
|
-
component:
|
|
60965
|
+
component: at || "ConfigureIntegration",
|
|
60961
60966
|
props: {
|
|
60962
60967
|
componentKey: t || "integrationsMain",
|
|
60963
60968
|
integration: Sn,
|
|
60964
60969
|
onBack: ve
|
|
60965
60970
|
}
|
|
60966
60971
|
});
|
|
60967
|
-
}, ye = (
|
|
60972
|
+
}, ye = (at) => {
|
|
60968
60973
|
a(!0), E == null || E({
|
|
60969
60974
|
component: "ExecutionHistory",
|
|
60970
60975
|
props: {
|
|
60971
60976
|
componentKey: t || "integrationsMain",
|
|
60972
|
-
integration:
|
|
60977
|
+
integration: at,
|
|
60973
60978
|
onBack: ve
|
|
60974
60979
|
}
|
|
60975
60980
|
});
|
|
60976
|
-
}, ue = async (
|
|
60977
|
-
await f(
|
|
60978
|
-
}, Ve = async (
|
|
60979
|
-
await B(
|
|
60981
|
+
}, ue = async (at) => {
|
|
60982
|
+
await f(at.id || "") && (h((An) => new Set(An).add(at.id || "")), ee("delete"), await $());
|
|
60983
|
+
}, Ve = async (at) => {
|
|
60984
|
+
await B(at.environmentId || "", at.id || "") && !P ? (a(!1), ee("startSuccess")) : P && ee("startError");
|
|
60980
60985
|
}, De = () => {
|
|
60981
|
-
const
|
|
60982
|
-
|
|
60983
|
-
}, Ke = (
|
|
60984
|
-
u(
|
|
60986
|
+
const at = K(localStorage.getItem(Q));
|
|
60987
|
+
at && q(at);
|
|
60988
|
+
}, Ke = (at) => {
|
|
60989
|
+
u(at);
|
|
60985
60990
|
};
|
|
60986
60991
|
ut(() => {
|
|
60987
60992
|
e && ee("update");
|
|
60988
60993
|
}, [e]), ut(() => {
|
|
60989
60994
|
var Un, co;
|
|
60990
60995
|
A.current || (A.current = !0);
|
|
60991
|
-
const
|
|
60996
|
+
const at = ((co = (Un = o == null ? void 0 : o.components) == null ? void 0 : Un[t]) == null ? void 0 : co.integrations) ?? {}, Sn = !!at.forceDefaultView, An = oe(at.defaultView), So = K(localStorage.getItem(Q));
|
|
60992
60997
|
if (Le.debug("Integrations view init", {
|
|
60993
60998
|
componentKey: t,
|
|
60994
60999
|
storageKey: Q,
|
|
@@ -61024,7 +61029,7 @@ const uX = ({
|
|
|
61024
61029
|
}, [o, t, Q]), ut(() => {
|
|
61025
61030
|
a(Y);
|
|
61026
61031
|
}, [Y, a]);
|
|
61027
|
-
const tt = ((
|
|
61032
|
+
const tt = ((ot = (je = (Re = (st = o == null ? void 0 : o.components) == null ? void 0 : st[t]) == null ? void 0 : Re.integrations) == null ? void 0 : je.search) == null ? void 0 : ot.show) ?? !0, bt = ((Dt = (xt = (wt = (nt = o == null ? void 0 : o.components) == null ? void 0 : nt[t]) == null ? void 0 : wt.integrations) == null ? void 0 : xt.addButton) == null ? void 0 : Dt.show) ?? !0, Rt = ((St = (Lt = (kt = (dn = o == null ? void 0 : o.components) == null ? void 0 : dn[t]) == null ? void 0 : kt.integrations) == null ? void 0 : Lt.viewTypeButton) == null ? void 0 : St.show) ?? !0, zt = /* @__PURE__ */ H.jsxs(H.Fragment, { children: [
|
|
61028
61033
|
tt && /* @__PURE__ */ H.jsx("div", { className: "flex-none pr-6 pt-4 pb-4", children: /* @__PURE__ */ H.jsx(UE, { searchCallback: Ke }) }),
|
|
61029
61034
|
bt && /* @__PURE__ */ H.jsx("div", { className: "flex-1 pr-4 pt-4", children: /* @__PURE__ */ H.jsx(
|
|
61030
61035
|
Wn,
|
|
@@ -61057,19 +61062,19 @@ const uX = ({
|
|
|
61057
61062
|
{
|
|
61058
61063
|
role: "list",
|
|
61059
61064
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-8",
|
|
61060
|
-
children: C ? /* @__PURE__ */ H.jsx("div", { className: "col-span-full flex justify-center items-center", children: /* @__PURE__ */ H.jsx(or, {}) }) : ie.length > 0 ? ie.map((
|
|
61065
|
+
children: C ? /* @__PURE__ */ H.jsx("div", { className: "col-span-full flex justify-center items-center", children: /* @__PURE__ */ H.jsx(or, {}) }) : ie.length > 0 ? ie.map((at) => /* @__PURE__ */ H.jsx(
|
|
61061
61066
|
i4,
|
|
61062
61067
|
{
|
|
61063
61068
|
componentKey: t,
|
|
61064
61069
|
viewType: "off",
|
|
61065
|
-
integration:
|
|
61070
|
+
integration: at,
|
|
61066
61071
|
onEditClick: pe,
|
|
61067
61072
|
onDeleteClick: ue,
|
|
61068
61073
|
onShowHistory: ye,
|
|
61069
61074
|
onViewDetails: re,
|
|
61070
61075
|
onRunClick: Ve
|
|
61071
61076
|
},
|
|
61072
|
-
|
|
61077
|
+
at.id
|
|
61073
61078
|
)) : /* @__PURE__ */ H.jsx("div", { className: "col-span-full flex justify-center items-center", children: /* @__PURE__ */ H.jsx("p", { className: "text-gray-500 text-xs", children: "No integrations found." }) })
|
|
61074
61079
|
}
|
|
61075
61080
|
),
|
|
@@ -61078,7 +61083,7 @@ const uX = ({
|
|
|
61078
61083
|
{
|
|
61079
61084
|
currentPage: F,
|
|
61080
61085
|
totalPages: U,
|
|
61081
|
-
onPageChange: (
|
|
61086
|
+
onPageChange: (at) => j(at)
|
|
61082
61087
|
}
|
|
61083
61088
|
)
|
|
61084
61089
|
] }) : /* @__PURE__ */ H.jsxs("div", { className: "", children: [
|
|
@@ -61089,19 +61094,19 @@ const uX = ({
|
|
|
61089
61094
|
/* @__PURE__ */ H.jsx("th", { className: "py-3 text-left text-sm font-semibold w-1/6", children: "Execution History" }),
|
|
61090
61095
|
(((Ct = (mt = (Je = (Ce = o == null ? void 0 : o.components) == null ? void 0 : Ce[t]) == null ? void 0 : Je.integrations) == null ? void 0 : mt.integration) == null ? void 0 : Ct.showControls) ?? !0) && /* @__PURE__ */ H.jsx("th", { className: "py-3 px-4" })
|
|
61091
61096
|
] }) }),
|
|
61092
|
-
/* @__PURE__ */ H.jsx("tbody", { className: "divide-y", children: C ? /* @__PURE__ */ H.jsx("tr", { children: /* @__PURE__ */ H.jsx("td", { colSpan: 5, children: /* @__PURE__ */ H.jsx("div", { className: "flex justify-center items-center py-6", children: /* @__PURE__ */ H.jsx(or, {}) }) }) }) : ce.length > 0 ? ce.map((
|
|
61097
|
+
/* @__PURE__ */ H.jsx("tbody", { className: "divide-y", children: C ? /* @__PURE__ */ H.jsx("tr", { children: /* @__PURE__ */ H.jsx("td", { colSpan: 5, children: /* @__PURE__ */ H.jsx("div", { className: "flex justify-center items-center py-6", children: /* @__PURE__ */ H.jsx(or, {}) }) }) }) : ce.length > 0 ? ce.map((at) => /* @__PURE__ */ H.jsx(
|
|
61093
61098
|
i4,
|
|
61094
61099
|
{
|
|
61095
61100
|
componentKey: t,
|
|
61096
61101
|
viewType: "on",
|
|
61097
|
-
integration:
|
|
61102
|
+
integration: at,
|
|
61098
61103
|
onEditClick: pe,
|
|
61099
61104
|
onDeleteClick: ue,
|
|
61100
61105
|
onShowHistory: ye,
|
|
61101
61106
|
onViewDetails: re,
|
|
61102
61107
|
onRunClick: Ve
|
|
61103
61108
|
},
|
|
61104
|
-
|
|
61109
|
+
at.id
|
|
61105
61110
|
)) : ie.length > 0 ? /* @__PURE__ */ H.jsx("tr", { children: /* @__PURE__ */ H.jsx("td", { colSpan: 5, children: /* @__PURE__ */ H.jsx("div", { className: "flex justify-center items-center py-4", children: /* @__PURE__ */ H.jsx("p", { className: "text-gray-500 text-xs", children: "No integrations found." }) }) }) }) : /* @__PURE__ */ H.jsx("tr", { children: /* @__PURE__ */ H.jsx("td", { colSpan: 5, children: /* @__PURE__ */ H.jsx("div", { className: "flex justify-center items-center py-4", children: /* @__PURE__ */ H.jsx("p", { className: "text-gray-500 text-xs", children: "No integrations found." }) }) }) }) })
|
|
61106
61111
|
] }),
|
|
61107
61112
|
!C && U > 1 && /* @__PURE__ */ H.jsx(
|
|
@@ -61109,10 +61114,10 @@ const uX = ({
|
|
|
61109
61114
|
{
|
|
61110
61115
|
currentPage: F,
|
|
61111
61116
|
totalPages: U,
|
|
61112
|
-
onPageChange: (
|
|
61117
|
+
onPageChange: (at) => j(at)
|
|
61113
61118
|
}
|
|
61114
61119
|
)
|
|
61115
|
-
] }),
|
|
61120
|
+
] }), it = R || N;
|
|
61116
61121
|
return /* @__PURE__ */ H.jsxs(H.Fragment, { children: [
|
|
61117
61122
|
/* @__PURE__ */ H.jsxs(H.Fragment, { children: [
|
|
61118
61123
|
g.delete && /* @__PURE__ */ H.jsx(au, { type: "success", content: "Integration deleted successfully!" }),
|
|
@@ -61150,13 +61155,13 @@ const uX = ({
|
|
|
61150
61155
|
componentKey: t,
|
|
61151
61156
|
componentName: "integrations",
|
|
61152
61157
|
isRootNavigation: !0,
|
|
61153
|
-
title: `${((Ze = (Ee = (
|
|
61158
|
+
title: `${((Ze = (Ee = (rt = (Nr = o == null ? void 0 : o.components) == null ? void 0 : Nr[t]) == null ? void 0 : rt.integrations) == null ? void 0 : Ee.header) == null ? void 0 : Ze.title) || "Integrations"}`,
|
|
61154
61159
|
description: (($n = (oi = (cn = (lt = o == null ? void 0 : o.components) == null ? void 0 : lt[t]) == null ? void 0 : cn.integrations) == null ? void 0 : oi.header) == null ? void 0 : $n.description) || "View your integrations below.",
|
|
61155
61160
|
headerContent: zt,
|
|
61156
61161
|
bodyContent: ze,
|
|
61157
|
-
error:
|
|
61162
|
+
error: it ? {
|
|
61158
61163
|
header: "Error",
|
|
61159
|
-
message:
|
|
61164
|
+
message: it,
|
|
61160
61165
|
errorType: "error"
|
|
61161
61166
|
} : void 0,
|
|
61162
61167
|
levelOne: "My Integrations",
|
|
@@ -66508,13 +66513,13 @@ const qJ = {
|
|
|
66508
66513
|
if (!Ke) return;
|
|
66509
66514
|
const bt = De.fromFunction ? `${De.fromFunction}.out.${Ls(Ke)}` : Ls(Ke), Rt = De.toFunction ? `${De.toFunction}.in.${Ls(tt)}` : Ls(tt), zt = De.fromFunction ? S.current.get(bt) : h.current.get(bt), ze = De.toFunction ? T.current.get(Rt) : m.current.get(Rt);
|
|
66510
66515
|
if (!zt || !ze) return;
|
|
66511
|
-
const
|
|
66512
|
-
x:
|
|
66513
|
-
y:
|
|
66516
|
+
const it = zt.getBoundingClientRect(), dt = ze.getBoundingClientRect(), yt = ue.getBoundingClientRect(), st = {
|
|
66517
|
+
x: it.left + it.width / 2 - yt.left,
|
|
66518
|
+
y: it.top + it.height / 2 - yt.top
|
|
66514
66519
|
}, Re = {
|
|
66515
66520
|
x: dt.left + dt.width / 2 - yt.left,
|
|
66516
66521
|
y: dt.top + dt.height / 2 - yt.top
|
|
66517
|
-
}, je = Re.x - st.x,
|
|
66522
|
+
}, je = Re.x - st.x, ot = Re.y - st.y, nt = je / 1.5, xt = Math.min(12, Math.abs(ot) / 2), Dt = ot > 0 ? 1 : -1, dn = { x: st.x + nt, y: st.y - Dt * xt }, kt = { x: Re.x - nt, y: Re.y - Dt * xt }, Lt = `M ${st.x} ${st.y} C ${dn.x} ${dn.y} ${kt.x} ${kt.y} ${Re.x} ${Re.y}`, St = c && De.fromXPath === c || j && De.toXPath === j || P && (De.fromFunction === P || De.toFunction === P), xe = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
66518
66523
|
xe.setAttribute("d", Lt), xe.setAttribute("fill", "none"), xe.setAttribute("stroke-linejoin", "round"), xe.setAttribute("stroke-linecap", "round"), St && (xe.classList.add("is-highlighted"), Ve = !0), ue.appendChild(xe);
|
|
66519
66524
|
}), Ve ? ue.classList.add("has-selection") : ue.classList.remove("has-selection");
|
|
66520
66525
|
}, ve = (ue) => {
|
|
@@ -66687,8 +66692,8 @@ const qJ = {
|
|
|
66687
66692
|
var tt;
|
|
66688
66693
|
const De = _E(ue.id), Ke = A.current[ue.id];
|
|
66689
66694
|
if (Ke) {
|
|
66690
|
-
const bt = ((tt = Ke.parentElement) == null ? void 0 : tt.getBoundingClientRect().top) ?? 0, Rt = Ke.getBoundingClientRect().top, zt = Math.round(Rt - bt), ze = Math.max(15, zt),
|
|
66691
|
-
(yt) => yt.id === ue.id && yt.id !==
|
|
66695
|
+
const bt = ((tt = Ke.parentElement) == null ? void 0 : tt.getBoundingClientRect().top) ?? 0, Rt = Ke.getBoundingClientRect().top, zt = Math.round(Rt - bt), ze = Math.max(15, zt), it = ES(De, ze), dt = o.map(
|
|
66696
|
+
(yt) => yt.id === ue.id && yt.id !== it ? { ...yt, newId: it, x: yt.x ?? A_, y: ze } : yt
|
|
66692
66697
|
);
|
|
66693
66698
|
p == null || p(dt), requestAnimationFrame(() => me());
|
|
66694
66699
|
}
|
|
@@ -66880,9 +66885,9 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
66880
66885
|
ce(Ce).forEach((mt) => {
|
|
66881
66886
|
mt.isLeaf || Je.add(mt.fullPath);
|
|
66882
66887
|
}), ve(Ce, Je);
|
|
66883
|
-
}, ue = (Ce) => ve(Ce, /* @__PURE__ */ new Set()), [Ve, De] = de(""), [Ke, tt] = de(""), [bt, Rt] = de([]), [zt, ze] = de([]), [
|
|
66888
|
+
}, ue = (Ce) => ve(Ce, /* @__PURE__ */ new Set()), [Ve, De] = de(""), [Ke, tt] = de(""), [bt, Rt] = de([]), [zt, ze] = de([]), [it, dt] = de(0), [yt, st] = de(0), Re = Pt(() => new Set(bt), [bt]), je = Pt(() => new Set(zt), [zt]), ot = () => {
|
|
66884
66889
|
u(null), h(null), T(null), A(null);
|
|
66885
|
-
},
|
|
66890
|
+
}, nt = (Ce, Je) => {
|
|
66886
66891
|
Ce && ($.current[Je] = Ce);
|
|
66887
66892
|
}, wt = (Ce, Je) => (mt) => {
|
|
66888
66893
|
mt ? Ce.set(Je, mt) : Ce.delete(Je);
|
|
@@ -66949,7 +66954,7 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
66949
66954
|
}, Tt = (Ce, Je) => {
|
|
66950
66955
|
const mt = Ce === "source" ? bt : zt;
|
|
66951
66956
|
if (!mt.length) return;
|
|
66952
|
-
const Ut = ((Ce === "source" ?
|
|
66957
|
+
const Ut = ((Ce === "source" ? it : yt) + Je + mt.length) % mt.length;
|
|
66953
66958
|
Ce === "source" ? dt(Ut) : st(Ut);
|
|
66954
66959
|
const an = mt[Ut];
|
|
66955
66960
|
pe(Ce, an), requestAnimationFrame(() => ft(Ce, an));
|
|
@@ -66966,11 +66971,11 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
66966
66971
|
const Mt = new Set(Yn);
|
|
66967
66972
|
return Mt.has(et) ? Mt.delete(et) : Mt.add(et), Mt;
|
|
66968
66973
|
});
|
|
66969
|
-
}, fn = Ce === "source" ? Re : je, In = Ce === "source" ? bt[
|
|
66974
|
+
}, fn = Ce === "source" ? Re : je, In = Ce === "source" ? bt[it] : zt[yt], Jt = (et) => {
|
|
66970
66975
|
var Bo, Nr;
|
|
66971
|
-
const Yn = mt.has(et.fullPath), Mt = (Bo = et.node) == null ? void 0 : Bo.xpath, lo = et.isLeaf ? Ce === "source" ? a.some((
|
|
66972
|
-
(
|
|
66973
|
-
), en = Ce === "target" && et.isLeaf && (!!c || !!S) && !a.some((
|
|
66976
|
+
const Yn = mt.has(et.fullPath), Mt = (Bo = et.node) == null ? void 0 : Bo.xpath, lo = et.isLeaf ? Ce === "source" ? a.some((rt) => ir(rt.fromXPath, Mt)) : a.some((rt) => ir(rt.toXPath, Mt)) : !1, Si = c && (Ce === "source" ? ir(Mt, c) || Rs(c, Mt) || Rs(Mt, c) : a.some((rt) => (ir(rt.fromXPath, c) || Rs(rt.fromXPath, c)) && (et.isLeaf ? ir(rt.toXPath, Mt) : Rs(rt.toXPath, et.fullPath)))) || d && (Ce === "target" ? ir(Mt, d) || Rs(d, Mt) || Rs(Mt, d) : a.some((rt) => (ir(rt.toXPath, d) || Rs(rt.toXPath, d)) && (et.isLeaf ? ir(rt.fromXPath, Mt) : Rs(rt.fromXPath, et.fullPath)))) || m && a.some(
|
|
66977
|
+
(rt) => rt.fromFunction === m && Ce === "source" && (et.isLeaf ? ir(rt.fromXPath, Mt) : Rs(rt.fromXPath, et.fullPath)) || rt.toFunction === m && Ce === "target" && (et.isLeaf ? ir(rt.toXPath, Mt) : Rs(rt.toXPath, et.fullPath))
|
|
66978
|
+
), en = Ce === "target" && et.isLeaf && (!!c || !!S) && !a.some((rt) => ir(rt.toXPath, Mt)), Xn = et.isLeaf ? ba(Mt) : ba(et.fullPath), Qi = fn.has(Xn), yi = In && Xn === In;
|
|
66974
66979
|
return /* @__PURE__ */ H.jsxs("div", { className: "boomi-tree-node", style: { marginBottom: 6 }, children: [
|
|
66975
66980
|
/* @__PURE__ */ H.jsx(
|
|
66976
66981
|
"div",
|
|
@@ -66985,8 +66990,8 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
66985
66990
|
yi ? "is-current-hit" : "",
|
|
66986
66991
|
"cursor-pointer"
|
|
66987
66992
|
].join(" "),
|
|
66988
|
-
onClick: (
|
|
66989
|
-
|
|
66993
|
+
onClick: (rt) => {
|
|
66994
|
+
rt.stopPropagation(), et.isLeaf && Mt ? Ce === "source" ? (u(Mt), h(null), T(null), A(null)) : Ut(Mt) : (qt(et.fullPath), requestAnimationFrame(Vt));
|
|
66990
66995
|
},
|
|
66991
66996
|
children: /* @__PURE__ */ H.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
66992
66997
|
/* @__PURE__ */ H.jsxs("div", { className: "flex items-center gap-1 flex-1 min-w-0", children: [
|
|
@@ -66994,8 +66999,8 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
66994
66999
|
"button",
|
|
66995
67000
|
{
|
|
66996
67001
|
className: "boomi-tree-toggle inline-flex items-center justify-center w-4 h-4 p-0 leading-none shrink-0",
|
|
66997
|
-
onClick: (
|
|
66998
|
-
|
|
67002
|
+
onClick: (rt) => {
|
|
67003
|
+
rt.stopPropagation(), qt(et.fullPath), requestAnimationFrame(Vt);
|
|
66999
67004
|
},
|
|
67000
67005
|
"aria-expanded": !Yn,
|
|
67001
67006
|
"aria-label": Yn ? "Expand" : "Collapse",
|
|
@@ -67022,8 +67027,8 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67022
67027
|
"is-selectable",
|
|
67023
67028
|
en ? "is-mappable" : ""
|
|
67024
67029
|
].join(" "),
|
|
67025
|
-
onClick: (
|
|
67026
|
-
if (
|
|
67030
|
+
onClick: (rt) => {
|
|
67031
|
+
if (rt.stopPropagation(), !(!et.isLeaf || !Mt)) {
|
|
67027
67032
|
if (Ce === "target") {
|
|
67028
67033
|
Ut(Mt);
|
|
67029
67034
|
return;
|
|
@@ -67036,8 +67041,8 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67036
67041
|
"span",
|
|
67037
67042
|
{
|
|
67038
67043
|
className: "boomi-map-pin-badge",
|
|
67039
|
-
onClick: (
|
|
67040
|
-
|
|
67044
|
+
onClick: (rt) => {
|
|
67045
|
+
rt.stopPropagation(), k(Mt), j(!0);
|
|
67041
67046
|
},
|
|
67042
67047
|
title: "Disconnect",
|
|
67043
67048
|
children: "×"
|
|
@@ -67047,8 +67052,8 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67047
67052
|
"span",
|
|
67048
67053
|
{
|
|
67049
67054
|
className: "boomi-map-pin-badge",
|
|
67050
|
-
onClick: (
|
|
67051
|
-
|
|
67055
|
+
onClick: (rt) => {
|
|
67056
|
+
rt.stopPropagation();
|
|
67052
67057
|
const Ee = a.find((Ze) => ir(Ze.toXPath, Mt));
|
|
67053
67058
|
Ee && Dt(Ee.fromXPath ?? "", Ee.toXPath ?? "");
|
|
67054
67059
|
},
|
|
@@ -67082,7 +67087,7 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67082
67087
|
return cn ? D.current.get(Ls(cn)) ?? null : null;
|
|
67083
67088
|
})();
|
|
67084
67089
|
if (!an || !qt) return;
|
|
67085
|
-
const fn = an.getBoundingClientRect(), In = qt.getBoundingClientRect(), Jt = Ce.getBoundingClientRect(), et = { x: fn.left + fn.width / 2 - Jt.left, y: fn.top + fn.height / 2 - Jt.top }, Yn = { x: In.left + In.width / 2 - Jt.left, y: In.top + In.height / 2 - Jt.top }, Mt = Yn.x - et.x, lo = Yn.y - et.y, Si = Mt / 1.5, Xn = Math.min(12, Math.abs(lo) / 2), Qi = lo > 0 ? 1 : -1, yi = { x: et.x + Si, y: et.y - Qi * Xn }, Bo = { x: Yn.x - Si, y: Yn.y - Qi * Xn }, Nr = `M ${et.x} ${et.y} C ${yi.x} ${yi.y} ${Bo.x} ${Bo.y} ${Yn.x} ${Yn.y}`,
|
|
67090
|
+
const fn = an.getBoundingClientRect(), In = qt.getBoundingClientRect(), Jt = Ce.getBoundingClientRect(), et = { x: fn.left + fn.width / 2 - Jt.left, y: fn.top + fn.height / 2 - Jt.top }, Yn = { x: In.left + In.width / 2 - Jt.left, y: In.top + In.height / 2 - Jt.top }, Mt = Yn.x - et.x, lo = Yn.y - et.y, Si = Mt / 1.5, Xn = Math.min(12, Math.abs(lo) / 2), Qi = lo > 0 ? 1 : -1, yi = { x: et.x + Si, y: et.y - Qi * Xn }, Bo = { x: Yn.x - Si, y: Yn.y - Qi * Xn }, Nr = `M ${et.x} ${et.y} C ${yi.x} ${yi.y} ${Bo.x} ${Bo.y} ${Yn.x} ${Yn.y}`, rt = c && (ir(mt.fromXPath, c) || Rs(mt.fromXPath, c)) || m && mt.fromFunction === m, Ee = d && (ir(mt.toXPath, d) || Rs(mt.toXPath, d)) || m && mt.toFunction === m, Ze = !!(rt || Ee), lt = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
67086
67091
|
lt.setAttribute("d", Nr), lt.setAttribute("fill", "none"), lt.setAttribute("stroke-linejoin", "round"), lt.setAttribute("stroke-linecap", "round"), Ze && (lt.classList.add("is-highlighted"), c && (ir(mt.fromXPath, c) || Rs(mt.fromXPath, c)) && lt.classList.add("is-danger"), Je = !0), Ce.appendChild(lt);
|
|
67087
67092
|
}), Je ? Ce.classList.add("has-selection") : Ce.classList.remove("has-selection");
|
|
67088
67093
|
};
|
|
@@ -67133,7 +67138,7 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67133
67138
|
className: "boomi-map-canvas",
|
|
67134
67139
|
onClick: (Ce) => {
|
|
67135
67140
|
const Je = Ce.target;
|
|
67136
|
-
!Je.closest(".boomi-map-card") && !Je.closest(".boomi-map-pin") &&
|
|
67141
|
+
!Je.closest(".boomi-map-card") && !Je.closest(".boomi-map-pin") && ot();
|
|
67137
67142
|
},
|
|
67138
67143
|
children: [
|
|
67139
67144
|
/* @__PURE__ */ H.jsx("svg", { ref: N, className: "boomi-map-svg" }),
|
|
@@ -67181,7 +67186,7 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67181
67186
|
children: "Prev"
|
|
67182
67187
|
}
|
|
67183
67188
|
),
|
|
67184
|
-
/* @__PURE__ */ H.jsx("span", { className: "min-w-[56px] text-center", children: bt.length ? `${
|
|
67189
|
+
/* @__PURE__ */ H.jsx("span", { className: "min-w-[56px] text-center", children: bt.length ? `${it + 1} / ${bt.length}` : "0 / 0" }),
|
|
67185
67190
|
/* @__PURE__ */ H.jsx(
|
|
67186
67191
|
"button",
|
|
67187
67192
|
{
|
|
@@ -67248,7 +67253,7 @@ const Rs = (t, e) => !!t && !!e && (ba(t) === ba(e) || ba(t).startsWith(ba(e) +
|
|
|
67248
67253
|
return /* @__PURE__ */ H.jsxs(
|
|
67249
67254
|
OH.div,
|
|
67250
67255
|
{
|
|
67251
|
-
ref: (Ct) =>
|
|
67256
|
+
ref: (Ct) => nt(Ct, Ce.id),
|
|
67252
67257
|
drag: "y",
|
|
67253
67258
|
dragMomentum: !1,
|
|
67254
67259
|
dragElastic: 0,
|
|
@@ -67587,14 +67592,14 @@ const GN = ({
|
|
|
67587
67592
|
onBack: E,
|
|
67588
67593
|
setIsLoading: p
|
|
67589
67594
|
}) => {
|
|
67590
|
-
var zt, ze,
|
|
67595
|
+
var zt, ze, it, dt, yt, st, Re, je, ot, nt, wt, xt, Dt, dn, kt, Lt, St, xe, Ge, Et, $t;
|
|
67591
67596
|
const { boomiConfig: g, setPageIsLoading: y, renderComponent: f } = ti(), { updateMapExtensions: b } = mX(), [c, u] = de(null), {
|
|
67592
67597
|
maps: d,
|
|
67593
67598
|
isLoading: h,
|
|
67594
67599
|
hasCandidates: m,
|
|
67595
67600
|
mapCandidates: T,
|
|
67596
67601
|
fetchMapExtensions: S
|
|
67597
|
-
} = hX(), [A, N] = de(0), O = d[A], D = O == null ? void 0 : O.mapId, [R, C] = de({}), [$, F] = de({}), [U, j] = de(null), [Y, P] = de(!1), B = Xe(null), [k, M] = de(""), I = Xe(null), [W, Q] = de(!1), { executeMapExtensions: Z, updatedCandidates: q } = pX(), [K, oe] = de(!1), ee = ((
|
|
67602
|
+
} = hX(), [A, N] = de(0), O = d[A], D = O == null ? void 0 : O.mapId, [R, C] = de({}), [$, F] = de({}), [U, j] = de(null), [Y, P] = de(!1), B = Xe(null), [k, M] = de(""), I = Xe(null), [W, Q] = de(!1), { executeMapExtensions: Z, updatedCandidates: q } = pX(), [K, oe] = de(!1), ee = ((it = (ze = (zt = O == null ? void 0 : O.Map) == null ? void 0 : zt.SourceProfile) == null ? void 0 : ze.Node) == null ? void 0 : it.filter((ft) => ft.xpath)) ?? [], re = ((st = (yt = (dt = O == null ? void 0 : O.Map) == null ? void 0 : dt.DestinationProfile) == null ? void 0 : yt.Node) == null ? void 0 : st.filter((ft) => ft.xpath)) ?? [], ae = ((ot = (je = (Re = g == null ? void 0 : g.components) == null ? void 0 : Re[t]) == null ? void 0 : je.mapping) == null ? void 0 : ot.useTreeMode) ?? !1, ie = async (ft) => {
|
|
67598
67603
|
p == null || p(!0), y == null || y(!0);
|
|
67599
67604
|
try {
|
|
67600
67605
|
return await ft();
|
|
@@ -67745,7 +67750,7 @@ const GN = ({
|
|
|
67745
67750
|
}, [e, o]), ut(() => {
|
|
67746
67751
|
m && Q(!0);
|
|
67747
67752
|
}, [m]);
|
|
67748
|
-
const tt = ((xt = (wt = (
|
|
67753
|
+
const tt = ((xt = (wt = (nt = g == null ? void 0 : g.components) == null ? void 0 : nt[t]) == null ? void 0 : wt.updateMaps) == null ? void 0 : xt.showTitle) ?? !0, bt = ((kt = (dn = (Dt = g == null ? void 0 : g.components) == null ? void 0 : Dt[t]) == null ? void 0 : dn.updateMaps) == null ? void 0 : kt.showDescription) ?? !0, Rt = /* @__PURE__ */ H.jsxs(H.Fragment, { children: [
|
|
67749
67754
|
K && /* @__PURE__ */ H.jsx(au, { type: "success", content: "Authentication Successful. Map has been updated." }),
|
|
67750
67755
|
Y && /* @__PURE__ */ H.jsx(
|
|
67751
67756
|
Sh,
|
|
@@ -67918,14 +67923,14 @@ const QN = ks(
|
|
|
67918
67923
|
setIsLoading: g
|
|
67919
67924
|
}, y) => {
|
|
67920
67925
|
var me, ve, pe, ye, ue, Ve, De, Ke, tt, bt, Rt, zt;
|
|
67921
|
-
const { boomiConfig: f, renderComponent: b } = ti(), c = Xe(null), { updateFromCombined: u, editedConnections: d } = $6(), { extensions: h, rawExtensions: m, isLoading: T, fetchEnvironmentExtensions: S } = U6(), [A, N] = de(null), [O, D] = de(null), { fetchOauth2Url: R } = H6(), { fetchEnvironmentExtensionConnectionStatus: C } = j6(), [$, F] = de({}), [U, j] = de({}), [Y, P] = de({}), B = Xe(null), k = Xe({}), M = (ze,
|
|
67926
|
+
const { boomiConfig: f, renderComponent: b } = ti(), c = Xe(null), { updateFromCombined: u, editedConnections: d } = $6(), { extensions: h, rawExtensions: m, isLoading: T, fetchEnvironmentExtensions: S } = U6(), [A, N] = de(null), [O, D] = de(null), { fetchOauth2Url: R } = H6(), { fetchEnvironmentExtensionConnectionStatus: C } = j6(), [$, F] = de({}), [U, j] = de({}), [Y, P] = de({}), B = Xe(null), k = Xe({}), M = (ze, it) => `${ze}:${it}`, I = async () => {
|
|
67922
67927
|
var ze;
|
|
67923
67928
|
N(null);
|
|
67924
67929
|
try {
|
|
67925
|
-
const
|
|
67926
|
-
return !
|
|
67927
|
-
} catch (
|
|
67928
|
-
return g == null || g(!1), N(
|
|
67930
|
+
const it = (ze = c.current) == null ? void 0 : ze.validateAndSubmit();
|
|
67931
|
+
return !it || !e.environmentId ? (Le.warn("Connector form is invalid or missing environmentId"), !1) : (g == null || g(!0), await u(m ?? [], it ?? [], e.environmentId, e.id || ""), g == null || g(!1), E == null || E(), !0);
|
|
67932
|
+
} catch (it) {
|
|
67933
|
+
return g == null || g(!1), N(it.message || "Failed to update environment extensions"), Le.error("Update error:", it), !1;
|
|
67929
67934
|
}
|
|
67930
67935
|
}, W = (ze) => {
|
|
67931
67936
|
b == null || b({
|
|
@@ -67940,8 +67945,8 @@ const QN = ks(
|
|
|
67940
67945
|
}));
|
|
67941
67946
|
const Q = () => W(), Z = async () => {
|
|
67942
67947
|
await I() && W();
|
|
67943
|
-
}, q = (ze,
|
|
67944
|
-
const yt = M(ze,
|
|
67948
|
+
}, q = (ze, it, dt) => {
|
|
67949
|
+
const yt = M(ze, it), st = k.current[yt];
|
|
67945
67950
|
st != null && st.interval && window.clearInterval(st.interval), st != null && st.timeout && window.clearTimeout(st.timeout), st != null && st.watch && window.clearInterval(st.watch);
|
|
67946
67951
|
const Re = window.setTimeout(() => {
|
|
67947
67952
|
K(yt, {
|
|
@@ -67951,63 +67956,63 @@ const QN = ks(
|
|
|
67951
67956
|
}), dt(!1);
|
|
67952
67957
|
}, 12e4), je = window.setInterval(async () => {
|
|
67953
67958
|
try {
|
|
67954
|
-
const
|
|
67959
|
+
const nt = await C(
|
|
67955
67960
|
e.environmentId,
|
|
67956
67961
|
e.id || "",
|
|
67957
67962
|
ze,
|
|
67958
|
-
|
|
67963
|
+
it
|
|
67959
67964
|
);
|
|
67960
|
-
if (!!(
|
|
67965
|
+
if (!!(nt === !0 || nt != null && nt.connected || (nt == null ? void 0 : nt.status) === "CONNECTED")) {
|
|
67961
67966
|
K(yt, { success: !0, message: null, closePopup: !0 });
|
|
67962
67967
|
const xt = e.installationType === "SINGLE" || !1;
|
|
67963
67968
|
Le.debug("Connection authorized, reloading extensions", { isSingle: xt }), await S([], e.environmentId, e.id || "", xt), dt(!0);
|
|
67964
67969
|
} else
|
|
67965
67970
|
P((xt) => ({ ...xt, [yt]: "Waiting for connection to complete…" }));
|
|
67966
|
-
} catch (
|
|
67967
|
-
Le.warn("Polling error (connection status)",
|
|
67971
|
+
} catch (nt) {
|
|
67972
|
+
Le.warn("Polling error (connection status)", nt);
|
|
67968
67973
|
}
|
|
67969
|
-
}, 5e3),
|
|
67974
|
+
}, 5e3), ot = window.setInterval(() => {
|
|
67970
67975
|
B.current && B.current.closed && (K(yt, {
|
|
67971
67976
|
success: !1,
|
|
67972
67977
|
message: "Authorization window closed.",
|
|
67973
67978
|
closePopup: !1
|
|
67974
67979
|
}), dt(!1));
|
|
67975
67980
|
}, 500);
|
|
67976
|
-
k.current[yt] = { interval: je, timeout: Re, watch:
|
|
67981
|
+
k.current[yt] = { interval: je, timeout: Re, watch: ot };
|
|
67977
67982
|
}, K = (ze, {
|
|
67978
|
-
success:
|
|
67983
|
+
success: it,
|
|
67979
67984
|
message: dt,
|
|
67980
67985
|
closePopup: yt = !0
|
|
67981
67986
|
}) => {
|
|
67982
67987
|
const st = k.current[ze];
|
|
67983
|
-
if (st != null && st.interval && window.clearInterval(st.interval), st != null && st.timeout && window.clearTimeout(st.timeout), st != null && st.watch && window.clearInterval(st.watch), delete k.current[ze], F((Re) => ({ ...Re, [ze]: !1 })), j((Re) => ({ ...Re, [ze]:
|
|
67988
|
+
if (st != null && st.interval && window.clearInterval(st.interval), st != null && st.timeout && window.clearTimeout(st.timeout), st != null && st.watch && window.clearInterval(st.watch), delete k.current[ze], F((Re) => ({ ...Re, [ze]: !1 })), j((Re) => ({ ...Re, [ze]: it })), dt !== void 0 && P((Re) => ({ ...Re, [ze]: dt })), yt)
|
|
67984
67989
|
try {
|
|
67985
67990
|
B.current && !B.current.closed && B.current.close();
|
|
67986
67991
|
} catch {
|
|
67987
67992
|
}
|
|
67988
|
-
}, oe = async (ze,
|
|
67989
|
-
const dt = M(ze,
|
|
67990
|
-
Le.log("Authenticate connection:", { connectionId: ze, fieldId:
|
|
67991
|
-
const yt = 600, st = 750, Re = window.screenX + Math.max(0, (window.outerWidth - yt) / 2), je = window.screenY + Math.max(0, (window.outerHeight - st) / 2),
|
|
67992
|
-
B.current =
|
|
67993
|
+
}, oe = async (ze, it) => {
|
|
67994
|
+
const dt = M(ze, it);
|
|
67995
|
+
Le.log("Authenticate connection:", { connectionId: ze, fieldId: it }), F((nt) => ({ ...nt, [dt]: !0 })), j((nt) => ({ ...nt, [dt]: !1 })), P((nt) => ({ ...nt, [dt]: "Opening authorization window…" }));
|
|
67996
|
+
const yt = 600, st = 750, Re = window.screenX + Math.max(0, (window.outerWidth - yt) / 2), je = window.screenY + Math.max(0, (window.outerHeight - st) / 2), ot = window.open("", "oauth2_auth", `width=${yt},height=${st},left=${Re},top=${je},resizable,scrollbars`);
|
|
67997
|
+
B.current = ot ?? null;
|
|
67993
67998
|
try {
|
|
67994
|
-
const
|
|
67999
|
+
const nt = await R(
|
|
67995
68000
|
e.id || "",
|
|
67996
68001
|
e.environmentId,
|
|
67997
68002
|
ze,
|
|
67998
|
-
|
|
68003
|
+
it
|
|
67999
68004
|
);
|
|
68000
|
-
B.current ? B.current.location.href =
|
|
68005
|
+
B.current ? B.current.location.href = nt : window.location.assign(nt), P((wt) => ({ ...wt, [dt]: "Please complete authentication in the new window…" })), q(ze, it, (wt) => {
|
|
68001
68006
|
if (!wt)
|
|
68002
68007
|
try {
|
|
68003
68008
|
B.current && !B.current.closed && B.current.close();
|
|
68004
68009
|
} catch {
|
|
68005
68010
|
}
|
|
68006
68011
|
});
|
|
68007
|
-
} catch (
|
|
68012
|
+
} catch (nt) {
|
|
68008
68013
|
B.current && !B.current.closed && B.current.close(), F((xt) => ({ ...xt, [dt]: !1 })), P((xt) => ({ ...xt, [dt]: null }));
|
|
68009
|
-
const wt = (
|
|
68010
|
-
N(wt), Le.error("Failed to fetch oauth2Url",
|
|
68014
|
+
const wt = (nt == null ? void 0 : nt.message) || "Failed to fetch OAuth2 URL";
|
|
68015
|
+
N(wt), Le.error("Failed to fetch oauth2Url", nt);
|
|
68011
68016
|
}
|
|
68012
68017
|
};
|
|
68013
68018
|
ut(() => {
|
|
@@ -68015,8 +68020,8 @@ const QN = ks(
|
|
|
68015
68020
|
}, [d]), ut(() => {
|
|
68016
68021
|
h && D(h);
|
|
68017
68022
|
}, [h]), ut(() => () => {
|
|
68018
|
-
Object.values(k.current).forEach(({ interval: ze, timeout:
|
|
68019
|
-
ze && window.clearInterval(ze),
|
|
68023
|
+
Object.values(k.current).forEach(({ interval: ze, timeout: it }) => {
|
|
68024
|
+
ze && window.clearInterval(ze), it && window.clearTimeout(it);
|
|
68020
68025
|
}), B.current && !B.current.closed && B.current.close();
|
|
68021
68026
|
}, []), ut(() => {
|
|
68022
68027
|
!(e != null && e.environmentId) || !(e != null && e.id) || (o || !a) && S([], e.environmentId, e.id).catch((ze) => {
|
|
@@ -69215,8 +69220,8 @@ const pee = () => {
|
|
|
69215
69220
|
] })
|
|
69216
69221
|
}
|
|
69217
69222
|
), __ = 12, $H = ({ componentKey: t, primaryAccountId: e }) => {
|
|
69218
|
-
var Rt, zt, ze,
|
|
69219
|
-
const { boomiConfig: o, tenantId: a, setPageIsLoading: E } = ti(), p = e ?? a ?? (o == null ? void 0 : o.tenantId), g = `cors-view:${t}`, y = (zt = (Rt = o == null ? void 0 : o.components) == null ? void 0 : Rt[t]) == null ? void 0 : zt.cors, f = ((ze = y == null ? void 0 : y.search) == null ? void 0 : ze.show) ?? !0, b = ((
|
|
69223
|
+
var Rt, zt, ze, it, dt, yt, st;
|
|
69224
|
+
const { boomiConfig: o, tenantId: a, setPageIsLoading: E } = ti(), p = e ?? a ?? (o == null ? void 0 : o.tenantId), g = `cors-view:${t}`, y = (zt = (Rt = o == null ? void 0 : o.components) == null ? void 0 : Rt[t]) == null ? void 0 : zt.cors, f = ((ze = y == null ? void 0 : y.search) == null ? void 0 : ze.show) ?? !0, b = ((it = y == null ? void 0 : y.addButton) == null ? void 0 : it.show) ?? !0, c = ((dt = y == null ? void 0 : y.viewTypeButton) == null ? void 0 : dt.show) ?? !0, { allowedOrigins: u, refetch: d, isLoading: h, error: m } = hee({
|
|
69220
69225
|
primaryAccountId: p,
|
|
69221
69226
|
auto: !!p
|
|
69222
69227
|
}), { updateCors: T, isUpdating: S, error: A } = mee(), { deleteCors: N, isDeleting: O, error: D } = pee(), [R, C] = de([]), [$, F] = de(""), [U, j] = de(1), [Y, P] = de("off"), [B, k] = de(!1), [M, I] = de(!1), [W, Q] = de(!1), [Z, q] = de(null), [K, oe] = de(null), [ee, re] = de({
|
|
@@ -69250,13 +69255,13 @@ const pee = () => {
|
|
|
69250
69255
|
}, [g]), ye = async (Re) => {
|
|
69251
69256
|
const je = ve();
|
|
69252
69257
|
if (!je) return;
|
|
69253
|
-
const
|
|
69258
|
+
const ot = Array.from(/* @__PURE__ */ new Set([...R, Re]));
|
|
69254
69259
|
E(!0);
|
|
69255
69260
|
try {
|
|
69256
|
-
const
|
|
69257
|
-
C(
|
|
69258
|
-
} catch (
|
|
69259
|
-
Le.error({ err:
|
|
69261
|
+
const nt = await T({ primaryAccountId: je, allowedOrigins: ot });
|
|
69262
|
+
C(nt.allowedOrigins), k(!1), me("add"), await d();
|
|
69263
|
+
} catch (nt) {
|
|
69264
|
+
Le.error({ err: nt }, "[Cors] add failed");
|
|
69260
69265
|
} finally {
|
|
69261
69266
|
E(!1);
|
|
69262
69267
|
}
|
|
@@ -69264,10 +69269,10 @@ const pee = () => {
|
|
|
69264
69269
|
if (!Z) return;
|
|
69265
69270
|
const je = ve();
|
|
69266
69271
|
if (!je) return;
|
|
69267
|
-
const
|
|
69272
|
+
const ot = R.map((wt) => wt === Z ? Re : wt), nt = Array.from(new Set(ot));
|
|
69268
69273
|
E(!0);
|
|
69269
69274
|
try {
|
|
69270
|
-
const wt = await T({ primaryAccountId: je, allowedOrigins:
|
|
69275
|
+
const wt = await T({ primaryAccountId: je, allowedOrigins: nt });
|
|
69271
69276
|
C(wt.allowedOrigins), I(!1), q(null), me("edit"), await d();
|
|
69272
69277
|
} catch (wt) {
|
|
69273
69278
|
Le.error({ err: wt }, "[Cors] edit failed");
|
|
@@ -69278,18 +69283,18 @@ const pee = () => {
|
|
|
69278
69283
|
if (!Z) return;
|
|
69279
69284
|
const Re = ve();
|
|
69280
69285
|
if (!Re) return;
|
|
69281
|
-
const je = R.filter((
|
|
69286
|
+
const je = R.filter((ot) => ot !== Z);
|
|
69282
69287
|
E(!0);
|
|
69283
69288
|
try {
|
|
69284
69289
|
if (je.length === 0)
|
|
69285
69290
|
await N({ primaryAccountId: Re }), C([]);
|
|
69286
69291
|
else {
|
|
69287
|
-
const
|
|
69288
|
-
C(
|
|
69292
|
+
const ot = await T({ primaryAccountId: Re, allowedOrigins: je });
|
|
69293
|
+
C(ot.allowedOrigins);
|
|
69289
69294
|
}
|
|
69290
69295
|
Q(!1), q(null), me("delete"), await d();
|
|
69291
|
-
} catch (
|
|
69292
|
-
Le.error({ err:
|
|
69296
|
+
} catch (ot) {
|
|
69297
|
+
Le.error({ err: ot }, "[Cors] delete failed");
|
|
69293
69298
|
} finally {
|
|
69294
69299
|
E(!1);
|
|
69295
69300
|
}
|